From f51ab9e31e2d12f015e4f1d3e2f9392903c007ff Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Thu, 1 Aug 2024 16:02:06 -0700 Subject: [PATCH] samplse: drag-and-drop and list-view-drag-and-drop --- _data/samples-haxe-openfl.json | 14 + .../haxe-openfl/drag-and-drop/DragAndDrop.js | 1961 ++++++++++++ .../haxe-openfl/drag-and-drop/favicon.png | Bin 0 -> 5515 bytes .../haxe-openfl/drag-and-drop/index.html | 44 + .../haxe-openfl/img/custom-drag-and-drop.png | Bin 0 -> 13582 bytes .../img/list-view-drag-and-drop.png | Bin 0 -> 17240 bytes .../ListViewDragAndDrop.js | 2836 +++++++++++++++++ .../assets/img/feathersui-logo.png | Bin 0 -> 3872 bytes .../list-view-drag-and-drop/favicon.png | Bin 0 -> 5515 bytes .../list-view-drag-and-drop/index.html | 44 + .../manifest/default.json | 1 + 11 files changed, 4900 insertions(+) create mode 100644 static/samples/haxe-openfl/drag-and-drop/DragAndDrop.js create mode 100644 static/samples/haxe-openfl/drag-and-drop/favicon.png create mode 100644 static/samples/haxe-openfl/drag-and-drop/index.html create mode 100644 static/samples/haxe-openfl/img/custom-drag-and-drop.png create mode 100644 static/samples/haxe-openfl/img/list-view-drag-and-drop.png create mode 100644 static/samples/haxe-openfl/list-view-drag-and-drop/ListViewDragAndDrop.js create mode 100644 static/samples/haxe-openfl/list-view-drag-and-drop/assets/img/feathersui-logo.png create mode 100644 static/samples/haxe-openfl/list-view-drag-and-drop/favicon.png create mode 100644 static/samples/haxe-openfl/list-view-drag-and-drop/index.html create mode 100644 static/samples/haxe-openfl/list-view-drag-and-drop/manifest/default.json diff --git a/_data/samples-haxe-openfl.json b/_data/samples-haxe-openfl.json index 2e53a8bf..4cc2ec68 100644 --- a/_data/samples-haxe-openfl.json +++ b/_data/samples-haxe-openfl.json @@ -72,6 +72,13 @@ "codeLink": "https://github.com/feathersui/feathersui-openfl/tree/v1.3.0/samples/dark-mode/", "content": "Easily switch between light and dark mode with the default theme." }, + { + "title": "Custom Drag-and-Drop", + "image": "/samples/haxe-openfl/img/custom-drag-and-drop.png", + "demoLink": "/samples/haxe-openfl/drag-and-drop/", + "codeLink": "https://github.com/feathersui/feathersui-openfl/tree/v1.3.0/samples/drag-and-drop/", + "content": "Demonstrates using the drag-and-drop interfaces in Feathers UI." + }, { "title": "Hello world", "image": "/samples/haxe-openfl/img/hello-world.png", @@ -79,6 +86,13 @@ "codeLink": "https://github.com/feathersui/feathersui-openfl/tree/v1.3.0/samples/hello-world/", "content": "Every project needs a \"Hello World\" to get you started!" }, + { + "title": "List View Drag-and-Drop", + "image": "/samples/haxe-openfl/img/list-view-drag-and-drop.png", + "demoLink": "/samples/haxe-openfl/list-view-drag-and-drop/", + "codeLink": "https://github.com/feathersui/feathersui-openfl/tree/v1.3.0/samples/list-view-drag-and-drop/", + "content": "Demonstrates drag-and-drop with the Feathers UI ListView component." + }, { "title": "Login Form", "image": "/samples/haxe-openfl/img/login-form.png", diff --git a/static/samples/haxe-openfl/drag-and-drop/DragAndDrop.js b/static/samples/haxe-openfl/drag-and-drop/DragAndDrop.js new file mode 100644 index 00000000..659a19d1 --- /dev/null +++ b/static/samples/haxe-openfl/drag-and-drop/DragAndDrop.js @@ -0,0 +1,1961 @@ +/* + howler.js v2.2.4 | (c) 2013-2020, James Simpson of GoldFire Studios | MIT License | howlerjs.com Spatial Plugin @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(t){var l=0;return function(){return lA||1114111=A?t+=String.fromCharCode(A):(A-=65536,t+=String.fromCharCode(A>>>10&1023|55296),t+=String.fromCharCode(A&1023|56320))}return t}},"es6","es3"); +$jscomp.checkStringArgs=function(t,l,E){if(null==t)throw new TypeError("The 'this' value for String.prototype."+E+" must not be null or undefined");if(l instanceof RegExp)throw new TypeError("First argument to String.prototype."+E+" must not be a regular expression");return t+""}; +$jscomp.polyfill("String.prototype.repeat",function(t){return t?t:function(l){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>l||1342177279>>=1)t+=t;return z}},"es6","es3"); +$jscomp.polyfill("String.prototype.startsWith",function(t){return t?t:function(l,t){var E=$jscomp.checkStringArgs(this,l,"startsWith");l+="";var A=E.length,J=l.length;t=Math.max(0,Math.min(t|0,E.length));for(var B=0;B=J}},"es6","es3");$jscomp.owns=function(t,l){return Object.prototype.hasOwnProperty.call(t,l)};$jscomp.polyfill("Object.values",function(t){return t?t:function(l){var t=[],z;for(z in l)$jscomp.owns(l,z)&&t.push(l[z]);return t}},"es8","es3"); +$jscomp.polyfill("Object.setPrototypeOf",function(t){return t||$jscomp.setPrototypeOf},"es6","es5");$jscomp.polyfill("Array.prototype.fill",function(t){return t?t:function(l,t,z){var A=this.length||0;0>t&&(t=Math.max(0,A+t));if(null==z||z>A)z=A;z=Number(z);0>z&&(z=Math.max(0,A+z));for(t=Number(t||0);t=A}},"es6","es3");$jscomp.polyfill("Object.is",function(t){return t?t:function(l,t){return l===t?0!==l||1/l===1/t:l!==l&&t!==t}},"es6","es3"); +$jscomp.polyfill("Array.prototype.includes",function(t){return t?t:function(l,t){var z=this;z instanceof String&&(z=String(z));var A=z.length;t=t||0;for(0>t&&(t=Math.max(t+A,0));t=a)return a+32;switch(a){case 12:return 1073741980;case 16:return 1073742049;case 17:return 1073742048;case 18:return 1073742050;case 19:return 1073741896;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 41:return 1073741943;case 43:return 1073741940;case 44:return 1073741894;case 45:return 1073741897;case 46:return 127;case 91:return 1073742051;case 92:return 1073742055;case 93:return 1073742055;case 95:return 1073742106;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 108:return 1073741923;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 127:return 1073741931;case 128:return 1073741932;case 129:return 1073741933;case 130:return 1073741934;case 131:return 1073741935;case 132:return 1073741936;case 133:return 1073741937;case 134:return 1073741938;case 135:return 1073741939;case 144:return 1073741907;case 145:return 1073741895;case 160:return 94;case 161:return 33;case 163:return 35;case 164:return 36;case 166:return 1073742094;case 167:return 1073742095;case 168:return 1073742097;case 169:return 41;case 170:return 42; +case 171:return 96;case 172:return 1073741898;case 173:return 45;case 174:return 1073741953;case 175:return 1073741952;case 176:return 1073742082;case 177:return 1073742083;case 178:return 1073742084;case 179:return 1073742085;case 180:return 1073742089;case 181:return 1073742086;case 182:return 1073741953;case 183:return 1073741952;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 193:return 63;case 194:return 1073741923; +case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39;case 223:return 96;case 224:return 1073742051;case 226:return 92}return a},exec:function(){window.addEventListener("keydown",h(this,this.handleKeyEvent),!1);window.addEventListener("keyup",h(this,this.handleKeyEvent),!1);window.addEventListener("focus",h(this,this.handleWindowEvent),!1);window.addEventListener("blur",h(this,this.handleWindowEvent),!1);window.addEventListener("resize",h(this,this.handleWindowEvent),!1);window.addEventListener("beforeunload", +h(this,this.handleWindowEvent),!1);Object.prototype.hasOwnProperty.call(window,"Accelerometer")&&window.addEventListener("devicemotion",h(this,this.handleSensorEvent),!1);CanvasRenderingContext2D.prototype.isPointInStroke||(CanvasRenderingContext2D.prototype.isPointInStroke=function(a,b,c){return!1});CanvasRenderingContext2D.prototype.isPointInPath||(CanvasRenderingContext2D.prototype.isPointInPath=function(a,b,c){return!1});0=="performance"in window&&(window.performance={});if(0=="now"in window.performance){var a= +Date.now();performance.timing&&performance.timing.navigationStart&&(a=performance.timing.navigationStart);window.performance.now=function(){return Date.now()-a}}for(var b=0,c=["ms","moz","webkit","o"],d=0;d=this.nextUpdate){this.deltaTime=this.currentUpdate-this.lastUpdate;a=0;for(b=this.parent.__windows;athis.framePeriod?this.currentUpdate:this.currentUpdate-this.currentUpdate%this.framePeriod+this.framePeriod;this.lastUpdate=this.currentUpdate}window.requestAnimationFrame(h(this,this.handleApplicationEvent))},handleKeyEvent:function(a){if(null!= +this.parent.__window){var b=this.convertKeyCode(null!=a.keyCode?a.keyCode:a.which),c=(a.shiftKey?3:0)|(a.ctrlKey?192:0)|(a.altKey?768:0)|(a.metaKey?3072:0);"keydown"==a.type?(this.parent.__window.onKeyDown.dispatch(b,c),this.parent.__window.onKeyDown.canceled&&a.cancelable&&a.preventDefault()):(this.parent.__window.onKeyUp.dispatch(b,c),this.parent.__window.onKeyUp.canceled&&a.cancelable&&a.preventDefault())}},handleSensorEvent:function(a){this.accelerometer.onUpdate.dispatch(a.accelerationIncludingGravity.x, +a.accelerationIncludingGravity.y,a.accelerationIncludingGravity.z)},handleWindowEvent:function(a){if(null!=this.parent.__window)switch(a.type){case "blur":this.hidden||(this.parent.__window.onFocusOut.dispatch(),this.parent.__window.onDeactivate.dispatch(),this.hidden=!0);break;case "focus":this.hidden&&(this.parent.__window.onFocusIn.dispatch(),this.parent.__window.onActivate.dispatch(),this.hidden=!1);break;case "resize":this.parent.__window.__backend.handleResizeEvent(a);break;case "visibilitychange":window.document.hidden? +this.hidden||(this.parent.__window.onFocusOut.dispatch(),this.parent.__window.onDeactivate.dispatch(),this.hidden=!0):this.hidden&&(this.parent.__window.onFocusIn.dispatch(),this.parent.__window.onActivate.dispatch(),this.hidden=!1)}},updateGameDevices:function(){var a=Gb.__getDeviceData();if(null!=a)for(var b,c,d,f,k,q=0,D=a.length;q=Object.keys(this.__eventMap.h).length&&(this.__iterators=this.__eventMap=null)}}},toString:function(){return"[object "+I.getClass(this).__name__.split(".").pop()+"]"},__dispatchEvent:function(a){if(null==this.__eventMap||null==a)return!0;var b=a.type,c=this.__eventMap.h[b];if(null==c)return!0;null==a.target&&(a.target=null!=this.__targetDispatcher? +this.__targetDispatcher:this);a.currentTarget=this;var d=1==a.eventPhase;b=this.__iterators.h[b];var f=b[0];f.active&&(f=new Ke(c),b.push(f));f.start();for(var k=f;k.hasNext();){var q=k.next();if(null!=q&&q.useCapture==d){if(q.useWeakReference&&null!=q.weakRefCallback){var D=q.weakRefCallback.deref();if(null==D)D=f.index-1,c.splice(D,1),f.remove(q,D);else if(null!=Ca.get_current()&&null!=Ca.get_current().stage&&Ca.get_current().stage.__uncaughtErrorEvents.__enabled)try{D(a)}catch(n){ya.lastError= +n,q=Ja.caught(n).unwrap(),a instanceof he||Ca.get_current().stage.__handleError(q)}else D(a)}else if(null!=Ca.get_current()&&null!=Ca.get_current().stage&&Ca.get_current().stage.__uncaughtErrorEvents.__enabled)try{q.callback(a)}catch(n){ya.lastError=n,q=Ja.caught(n).unwrap(),a instanceof he||Ca.get_current().stage.__handleError(q)}else q.callback(a);if(a.__isCanceledNow)break}}f.stop();f!=b[0]?sa.remove(b,f):f.reset(c);return!a.isDefaultPrevented()},__addListenerByPriority:function(a,b){for(var c= +a.length,d=c,f=0;f=a||0==this.inactiveObjects)&&(null!=this.__inactiveObject0&&(this.__pool.remove(this.__inactiveObject0),this.__inactiveObject0=null,this.inactiveObjects--,--a),0!=a&&0!=this.inactiveObjects&&(null!=this.__inactiveObject1&&(this.__pool.remove(this.__inactiveObject1),this.__inactiveObject1=null,this.inactiveObjects--,--a),0!=a&& +0!=this.inactiveObjects)))for(var b=this.__inactiveObjectList.h;null!=b;){var c=b.item;b=b.next;this.__pool.remove(c);this.__inactiveObjectList.remove(c);this.inactiveObjects--;--a;if(0==a||0==this.inactiveObjects)break}},set_size:function(a){if(null==a)this.__size=null;else{var b=this.inactiveObjects+this.activeObjects;this.__size=a;if(b>a)this.__removeInactive(b-a);else if(a>b)for(var c=0,d=a-b;ca&&(a=0);a==this.__alpha||this.get_cacheAsBitmap()||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()); +return this.__alpha=a},get_cacheAsBitmap:function(){return null==this.__filters?this.__cacheAsBitmap:!0},get_height:function(){var a=ca.__pool.get();this.__getLocalBounds(a);var b=a.height;ca.__pool.release(a);return b},set_height:function(a){var b=ca.__pool.get(),c=fa.__pool.get();c.identity();this.__getBounds(b,c);a!=b.height?this.set_scaleY(a/b.height):this.set_scaleY(1);ca.__pool.release(b);fa.__pool.release(c);return a},get_loaderInfo:function(){return null!=this.stage?bc.current.__loaderInfo: +null},get_mask:function(){return this.__mask},set_mask:function(a){if(a==this.__mask)return a;a!=this.__mask&&(this.__setTransformDirty(),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));if(null!=this.__mask){this.__mask.__isMask=!1;this.__mask.__maskTarget=null;this.__mask.__setTransformDirty();var b=this.__mask;b.__renderDirty||(b.__renderDirty=!0,b.__setParentRenderDirty())}null!=a&&(a.__isMask=!0,a.__maskTarget=this,a.__setWorldTransformInvalid());null!=this.__cacheBitmap&& +this.__cacheBitmap.get_mask()!=a&&this.__cacheBitmap.set_mask(a);return this.__mask=a},get_mouseX:function(){var a=null!=this.stage?this.stage.__mouseX:bc.current.stage.__mouseX,b=null!=this.stage?this.stage.__mouseY:bc.current.stage.__mouseY,c=this.__getRenderTransform(),d=c.a*c.d-c.b*c.c;return 0==d?-c.tx:1/d*(c.c*(c.ty-b)+c.d*(a-c.tx))},get_mouseY:function(){var a=null!=this.stage?this.stage.__mouseX:bc.current.stage.__mouseX,b=null!=this.stage?this.stage.__mouseY:bc.current.stage.__mouseY,c=this.__getRenderTransform(), +d=c.a*c.d-c.b*c.c;return 0==d?-c.ty:1/d*(c.a*(b-c.ty)+c.b*(c.tx-a))},get_name:function(){return this.__name},set_name:function(a){return this.__name=a},get_rotation:function(){return this.__rotation},set_rotation:function(a){if(a!=this.__rotation){a%=360;180a&&(a+=360);this.__rotation=a;var b=Math.PI/180*this.__rotation;this.__rotationSine=Math.sin(b);this.__rotationCosine=Math.cos(b);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 a},get_scaleX:function(){return this.__scaleX},set_scaleX:function(a){if(a!=this.__scaleX)if(this.__scaleX=a,0==this.__transform.b)a!=this.__transform.a&&this.__setTransformDirty(),this.__transform.a=a;else{var b=this.__rotationCosine*a,c=this.__rotationSine*a;this.__transform.a==b&&this.__transform.b==c||this.__setTransformDirty();this.__transform.a=b;this.__transform.b= +c}return a},get_scaleY:function(){return this.__scaleY},set_scaleY:function(a){if(a!=this.__scaleY)if(this.__scaleY=a,0==this.__transform.c)a!=this.__transform.d&&this.__setTransformDirty(),this.__transform.d=a;else{var b=-this.__rotationSine*a,c=this.__rotationCosine*a;this.__transform.d==c&&this.__transform.c==b||this.__setTransformDirty();this.__transform.c=b;this.__transform.d=c}return a},get_scrollRect:function(){return null==this.__scrollRect?null:this.__scrollRect.clone()},get_transform:function(){null== +this.__objectTransform&&(this.__objectTransform=new tf(this));return this.__objectTransform},set_transform:function(a){if(null==a)throw new Id("Parameter transform must be non-null.");null==this.__objectTransform&&(this.__objectTransform=new tf(this));this.__setTransformDirty();this.__objectTransform.set_matrix(a.get_matrix());if(!this.__objectTransform.__colorTransform.__equals(a.__colorTransform,!0)||!this.get_cacheAsBitmap()&&this.__objectTransform.__colorTransform.alphaMultiplier!=a.__colorTransform.alphaMultiplier)this.__objectTransform.__colorTransform.__copyFrom(a.get_colorTransform()), +this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__objectTransform},get_visible:function(){return this.__visible},set_visible:function(a){a==this.__visible||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__visible=a},get_width:function(){var a=ca.__pool.get();this.__getLocalBounds(a);var b=a.width;ca.__pool.release(a);return b},set_width:function(a){var b=ca.__pool.get(),c=fa.__pool.get();c.identity();this.__getBounds(b,c); +a!=b.width?this.set_scaleX(a/b.width):this.set_scaleX(1);ca.__pool.release(b);fa.__pool.release(c);return a},get_x:function(){return this.__transform.tx},set_x:function(a){a!=this.__transform.tx&&this.__setTransformDirty();return this.__transform.tx=a},get_y:function(){return this.__transform.ty},set_y:function(a){a!=this.__transform.ty&&this.__setTransformDirty();return this.__transform.ty=a},__class__:W,__properties__:{set_y:"set_y",get_y:"get_y",set_x:"set_x",get_x:"get_x",set_width:"set_width", +get_width:"get_width",set_visible:"set_visible",get_visible:"get_visible",set_transform:"set_transform",get_transform:"get_transform",get_scrollRect:"get_scrollRect",set_scaleY:"set_scaleY",get_scaleY:"get_scaleY",set_scaleX:"set_scaleX",get_scaleX:"get_scaleX",set_rotation:"set_rotation",get_rotation:"get_rotation",set_name:"set_name",get_name:"get_name",get_mouseY:"get_mouseY",get_mouseX:"get_mouseX",set_mask:"set_mask",get_mask:"get_mask",get_loaderInfo:"get_loaderInfo",set_height:"set_height", +get_height:"get_height",get_cacheAsBitmap:"get_cacheAsBitmap",set_alpha:"set_alpha",get_alpha:"get_alpha"}});var S=function(){W.call(this);this.doubleClickEnabled=!1;this.mouseEnabled=!0;this.needsSoftKeyboard=!1;this.__tabEnabled=null;this.__tabIndex=-1};S.__name__="openfl.display.InteractiveObject";S.__super__=W;S.prototype=u(W.prototype,{__allowMouseFocus:function(){return this.mouseEnabled?this.get_tabEnabled():!1},__getInteractive:function(a){null!=a&&(a.push(this),null!=this.parent&&this.parent.__getInteractive(a)); +return!0},__hitTest:function(a,b,c,d,f,k){return!k.get_visible()||this.__isMask||f&&!this.mouseEnabled?!1:W.prototype.__hitTest.call(this,a,b,c,d,f,k)},__tabTest:function(a){this.get_tabEnabled()&&a.push(this)},get_tabEnabled:function(){return 1==this.__tabEnabled?!0:!1},set_tabEnabled:function(a){this.__tabEnabled!=a&&(this.__tabEnabled=a,this.dispatchEvent(new ea("tabEnabledChange",!0,!1)));return this.__tabEnabled},get_tabIndex:function(){return this.__tabIndex},set_tabIndex:function(a){if(this.__tabIndex!= +a){if(-1>a)throw new uf("Parameter tabIndex must be a non-negative number; got "+a);this.__tabIndex=a;this.dispatchEvent(new ea("tabIndexChange",!0,!1))}return this.__tabIndex},__class__:S,__properties__:u(W.prototype.__properties__,{set_tabIndex:"set_tabIndex",get_tabIndex:"get_tabIndex",set_tabEnabled:"set_tabEnabled",get_tabEnabled:"get_tabEnabled"})});var ia=function(){S.call(this);this.__tabChildren=this.mouseChildren=!0;this.__children=[];this.__removedChildren=xa.toObjectVector(null)};ia.__name__= +"openfl.display.DisplayObjectContainer";ia.__super__=S;ia.prototype=u(S.prototype,{addChild:function(a){return this.addChildAt(a,this.get_numChildren())},addChildAt:function(a,b){if(null==a)throw a=new Id("Error #2007: Parameter child must be non-null."),a.errorID=2007,a;if(a==this)throw a=new Kb("Error #2024: An object cannot be added as a child of itself."),a.errorID=2024,a;if(a.stage==a)throw a=new Kb("Error #3783: A Stage object cannot be added as the child of another object."),a.errorID=3783, +a;if(b>this.__children.length||0>b)throw Ja.thrown("Invalid index position "+b);if(a.parent==this)this.__children[b]!=a&&(sa.remove(this.__children,a),this.__children.splice(b,0,a),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));else{null!=a.parent&&a.parent.removeChild(a);this.__children.splice(b,0,a);a.parent=this;(b=null!=this.stage&&null==a.stage)&&a.__setStageReference(this.stage);a.__setTransformDirty();a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()); +this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());var c=new ea("added");c.bubbles=!0;c.target=a;a.__dispatchWithCapture(c);b&&(c=new ea("addedToStage",!1,!1),a.__dispatchWithCapture(c),a.__dispatchChildren(c))}return a},contains:function(a){for(;a!=this&&null!=a;)a=a.parent;return a==this},getChildAt:function(a){return 0<=a&&af)););if(n)return d.splice(f,0,k),!0}}else{for(n=!1;0<=--q&&(!this.__children[q].__hitTest(a,b,c,d,!1,this.__children[q])||(n=!0,null!=d)););return n}return!1},__hitTestMask:function(a,b){for(var c=this.__children.length;0<=--c;)if(this.__children[c].__hitTestMask(a,b))return!0;return!1},__setStageReference:function(a){S.prototype.__setStageReference.call(this, +a);if(null!=this.__children)for(var b=0,c=this.__children;ba||c==b)&&this.setInvalid(T.SIZE)}return this._explicitMaxWidth},get_explicitMaxHeight:function(){return this._explicitMaxHeight},set_explicitMaxHeight:function(a){if(this._explicitMaxHeight==a)return this._explicitMaxHeight;var b=this._explicitMaxHeight;this._explicitMaxHeight=a;if(null==a)this.actualMaxHeight=1/0,this.scaledActualMaxHeight= +1/0,this.setInvalid(T.SIZE);else{var c=this.actualHeight;this.saveMeasurements(this.actualWidth,this.actualHeight,this.actualMinWidth,this.actualMinHeight,this.actualMaxWidth,a);null==this._explicitHeight&&(c>a||c==b)&&this.setInvalid(T.SIZE)}return this._explicitMaxHeight},get_maxWidth:function(){return this.scaledActualMaxWidth},set_maxWidth:function(a){1!=this.get_scaleX()&&(a/=this.get_scaleX());this.set_explicitMaxWidth(a);return this.scaledActualMaxWidth},get_maxHeight:function(){return this.scaledActualMaxHeight}, +set_maxHeight:function(a){1!=this.get_scaleY()&&(a/=this.get_scaleY());this.set_explicitMaxHeight(a);return this.scaledActualMaxHeight},resetWidth:function(){this.set_explicitWidth(null)},resetHeight:function(){this.set_explicitHeight(null)},resetMinWidth:function(){this.set_explicitMinWidth(null)},resetMinHeight:function(){this.set_explicitMinHeight(null)},resetMaxWidth:function(){this.set_explicitMaxWidth(null)},resetMaxHeight:function(){this.set_explicitMaxHeight(null)},getBounds:function(a){null== +this.__getBoundsHelperMatrix1?this.__getBoundsHelperMatrix1=new fa:this.__getBoundsHelperMatrix1.identity();if(null!=a&&a!=this){null==this.__getBoundsHelperMatrix2&&(this.__getBoundsHelperMatrix2=new fa);var b=this.__getWorldTransform();this.__getBoundsHelperMatrix1.copyFrom(b);a=a.__getWorldTransform();this.__getBoundsHelperMatrix2.copyFrom(a);this.__getBoundsHelperMatrix2.invert();this.__getBoundsHelperMatrix1.concat(this.__getBoundsHelperMatrix2);this.__getBoundsHelperMatrix2.identity()}a=this.__getBoundsHelperMatrix1.tx; +b=this.__getBoundsHelperMatrix1.ty;var c=this.actualWidth*this.__getBoundsHelperMatrix1.a+this.actualHeight*this.__getBoundsHelperMatrix1.c+this.__getBoundsHelperMatrix1.tx-a,d=this.actualWidth*this.__getBoundsHelperMatrix1.b+this.actualHeight*this.__getBoundsHelperMatrix1.d+this.__getBoundsHelperMatrix1.ty-b;this.__getBoundsHelperMatrix1.identity();return new ca(a,b,c,d)},saveMeasurements:function(a,b,c,d,f,k){null==d&&(d=0);null==c&&(c=0);null==f&&(f=1/0);null==k&&(k=1/0);null!=this._explicitMinWidth&& +(c=this._explicitMinWidth);null!=this._explicitMinHeight&&(d=this._explicitMinHeight);null!=this._explicitMaxWidth?f=this._explicitMaxWidth:null==f&&(f=1/0);null!=this._explicitMaxHeight?k=this._explicitMaxHeight:null==k&&(k=1/0);null==this._explicitMaxWidth&&ff&&(c=f);null==this._explicitMaxHeight&&kk&&(d=k);null!=this._explicitWidth?a=this._explicitWidth:af&&(a=f);null!=this._explicitHeight?b=this._explicitHeight: +bk&&(b=k);var q=this.get_scaleX();0>q&&(q=-q);var D=this.get_scaleY();0>D&&(D=-D);var n=!1;this.actualWidth!=a&&(this.actualWidth=a,n=!0);this.actualHeight!=b&&(this.actualHeight=b,n=!0);this.actualMinWidth!=c&&(this.actualMinWidth=c,n=!0);this.actualMinHeight!=d&&(this.actualMinHeight=d,n=!0);this.actualMaxWidth!=f&&(this.actualMaxWidth=f,n=!0);this.actualMaxHeight!=k&&(this.actualMaxHeight=k,n=!0);a=this.scaledActualWidth;b=this.scaledActualHeight;this.scaledActualWidth=this.actualWidth* +q;this.scaledActualHeight=this.actualHeight*D;this.scaledActualMinWidth=this.actualMinWidth*q;this.scaledActualMinHeight=this.actualMinHeight*D;this.scaledActualMaxWidth=this.actualMaxWidth*q;this.scaledActualMaxHeight=this.actualMaxHeight*D;if(a!=this.scaledActualWidth||b!=this.scaledActualHeight)n=!0,Wa.dispatch(this,"resize");return n},__class__:fb,__properties__:u(nb.prototype.__properties__,{set_maxHeight:"set_maxHeight",get_maxHeight:"get_maxHeight",set_maxWidth:"set_maxWidth",get_maxWidth:"get_maxWidth", +set_explicitMaxHeight:"set_explicitMaxHeight",get_explicitMaxHeight:"get_explicitMaxHeight",set_explicitMaxWidth:"set_explicitMaxWidth",get_explicitMaxWidth:"get_explicitMaxWidth",set_minHeight:"set_minHeight",get_minHeight:"get_minHeight",set_minWidth:"set_minWidth",get_minWidth:"get_minWidth",set_explicitMinHeight:"set_explicitMinHeight",get_explicitMinHeight:"get_explicitMinHeight",set_explicitMinWidth:"set_explicitMinWidth",get_explicitMinWidth:"get_explicitMinWidth",set_explicitHeight:"set_explicitHeight", +get_explicitHeight:"get_explicitHeight",set_explicitWidth:"set_explicitWidth",get_explicitWidth:"get_explicitWidth"})});var wa=function(){};wa.__name__="feathers.layout.ILayoutObject";wa.__isInterface__=!0;wa.__interfaces__=[E];wa.prototype={__class__:wa,__properties__:{get_layoutData:"get_layoutData",get_includeInLayout:"get_includeInLayout"}};var x=function(){};x.__name__="feathers.style.IStyleObject";x.__isInterface__=!0;x.prototype={__class__:x,__properties__:{get_themeEnabled:"get_themeEnabled"}}; +var cb=function(){};cb.__name__="feathers.style.IVariantStyleObject";cb.__isInterface__=!0;cb.__interfaces__=[x];cb.prototype={__class__:cb,__properties__:{set_variant:"set_variant",get_variant:"get_variant",get_styleContext:"get_styleContext"}};var db=function(){};db.__name__="feathers.core.IUIControl";db.__isInterface__=!0;db.__interfaces__=[Lb];db.prototype={__class__:db,__properties__:{get_toolTip:"get_toolTip",get_enabled:"get_enabled"}};var la=function(){this._restrictedStyles=[];this._styleProviderStyles= +[];this._applyingStyles=this._clearingStyles=!1;this._focusPaddingTop=this._focusPaddingRight=this._focusPaddingBottom=this._focusPaddingLeft=0;this._focusRectSkin=null;this._alwaysShowFocus=!1;this._currentFocusRectSkin=null;this._focusEnabled=!0;this._disabledAlpha=this._focusManager=null;this._explicitAlpha=1;this._includeInLayout=!0;this._currentStyleProvider=this._customStyleProvider=null;this._themeEnabled=!0;this._toolTip=null;this._enabled=!0;this._waitingToApplyStyles=this._initializing= +this._initialized=this._created=!1;fb.call(this);this.set_tabEnabled(I.__implements(this,hb));this.addEventListener("addedToStage",h(this,this.feathersControl_addedToStageHandler));this.addEventListener("removedFromStage",h(this,this.feathersControl_removedFromStageHandler));this.addEventListener("focusIn",h(this,this.feathersControl_focusInHandler));this.addEventListener("focusOut",h(this,this.feathersControl_focusOutHandler))};la.__name__="feathers.core.FeathersControl";la.__interfaces__=[wa,cb, +db];la.__super__=fb;la.prototype=u(fb.prototype,{get_enabled:function(){return this._enabled},get_toolTip:function(){return this._toolTip},get_themeEnabled:function(){return this._themeEnabled},get_styleContext:function(){return null},get_includeInLayout:function(){return this._includeInLayout},get_layoutData:function(){return this._layoutData},set_alpha:function(a){this._explicitAlpha=a;(this._enabled||null==this._disabledAlpha)&&fb.prototype.set_alpha.call(this,a);return this._explicitAlpha},get_focusManager:function(){return this._focusManager}, +set_focusManager:function(a){if(this._focusManager==a)return this._focusManager;null!=this._focusManager&&this.showFocus(!1);return this._focusManager=a},get_focusOwner:function(){return this._focusOwner},get_rawTabEnabled:function(){return fb.prototype.get_tabEnabled.call(this)},get_focusEnabled:function(){return this._enabled?this._focusEnabled:!1},get_tabEnabled:function(){return this._enabled?fb.prototype.get_tabEnabled.call(this):!1},get_alwaysShowFocus:function(){return this._alwaysShowFocus}, +get_focusRectSkin:function(){return this._focusRectSkin},set_focusRectSkin:function(a){if(!this.setStyle("focusRectSkin"))return this._focusRectSkin;this.showFocus(!1);this._previousClearStyle=h(this,this.clearStyle_focusRectSkin);return this._focusRectSkin=a},showFocus:function(a){this._currentFocusRectSkin=this.getCurrentFocusRectSkin();null!=this._focusManager&&null!=this._currentFocusRectSkin&&(a?(this._focusManager.get_focusPane().addChild(this._currentFocusRectSkin),this.addEventListener("enterFrame", +h(this,this.feathersControl_focusRect_enterFrameHandler)),this.positionFocusRect()):null!=this._currentFocusRectSkin.parent&&(this.removeEventListener("enterFrame",h(this,this.feathersControl_focusRect_enterFrameHandler)),this._currentFocusRectSkin.parent.removeChild(this._currentFocusRectSkin)))},getCurrentFocusRectSkin:function(){return this._focusRectSkin},clearStyle_focusRectSkin:function(){this.showFocus(!1);return this._focusRectSkin=null},positionFocusRect:function(){if(null!=this._focusManager&& +null!=this._currentFocusRectSkin&&null!=this._currentFocusRectSkin.parent){var a=new Ma(-this._focusPaddingLeft,-this._focusPaddingTop);a=this.localToGlobal(a);a=this._focusManager.get_focusPane().globalToLocal(a);this._currentFocusRectSkin.set_x(a.x);this._currentFocusRectSkin.set_y(a.y);a.setTo(this.actualWidth+this._focusPaddingRight,this.actualHeight+this._focusPaddingBottom);a=this.localToGlobal(a);a=this._focusManager.get_focusPane().globalToLocal(a);this._currentFocusRectSkin.set_width(a.x- +this._currentFocusRectSkin.get_x());this._currentFocusRectSkin.set_height(a.y-this._currentFocusRectSkin.get_y())}},get_variant:function(){return this._variant},set_variant:function(a){if(this._variant==a)return this._variant;this._variant=a;this._initialized&&null!=this.stage?this.applyStyles():this._waitingToApplyStyles=!0;this.setInvalid(T.STYLES);return this._variant},validateNow:function(){if(!this._initialized){if(this._initializing)throw new Bb("A component cannot validate until after it has finished initializing."); +this.initializeNow()}this._waitingToApplyStyles&&this.applyStyles();fb.prototype.validateNow.call(this);this._created||(this._created=!0,Wa.dispatch(this,"creationComplete"))},initializeNow:function(){this._initialized||this._initializing||(this._initializing=this._waitingToApplyStyles=!0,this.initialize(),this.setInvalid(),this._initializing=!1,this._initialized=!0,Wa.dispatch(this,"initialize"))},initialize:function(){},setStyle:function(a,b){a=null==b?ja.Name(a):ja.NameAndState(a,b);b=this.containsStyleDef(this._restrictedStyles, +a);if(this._applyingStyles&&b)return!1;this._applyingStyles?this._clearingStyles||this.containsStyleDef(this._styleProviderStyles,a)||this._styleProviderStyles.push(a):b||(!this._clearingStyles&&this.containsStyleDef(this._styleProviderStyles,a)&&sa.remove(this._styleProviderStyles,a),this._restrictedStyles.push(a));return!0},containsStyleDef:function(a,b){for(var c=0;ca&&(a=this._backgroundSkinMeasurements.width):null!=this._backgroundSkinMeasurements.minWidth&&this._backgroundSkinMeasurements.minWidth>a&&(a=this._backgroundSkinMeasurements.minWidth),null!=this._backgroundSkinMeasurements.height?this._backgroundSkinMeasurements.height>c&&(c=this._backgroundSkinMeasurements.height): +null!=this._backgroundSkinMeasurements.minHeight&&this._backgroundSkinMeasurements.minHeight>c&&(c=this._backgroundSkinMeasurements.minHeight));this._layoutMeasurements.minWidth=a;this._layoutMeasurements.minHeight=c;this._layoutMeasurements.maxWidth=d;this._layoutMeasurements.maxHeight=f},handleLayout:function(){null!=this._currentLayout?this.handleCustomLayout():this.handleManualLayout();this.handleLayoutResult()},handleCustomLayout:function(){var a=this._ignoreChildChanges;this._ignoreChildChanges= +!0;this._layoutResult.reset();this._currentLayout.layout(this.items,this._layoutMeasurements,this._layoutResult);this._ignoreChildChanges=a},handleManualLayout:function(){var a=this._layoutMeasurements.width;null==a&&(a=0);var b=this._layoutMeasurements.height;null==b&&(b=0);var c=this._ignoreChildChanges;this._ignoreChildChanges=!0;for(var d=0,f=this.items;dthis._layoutMeasurements.maxWidth&&(a= +this._layoutMeasurements.maxWidth),this._layoutResult.viewPortWidth=a);null!=this._layoutMeasurements.height?this._layoutResult.viewPortHeight=this._layoutMeasurements.height:(null!=this._layoutMeasurements.minHeight&&bthis._layoutMeasurements.maxHeight&&(b=this._layoutMeasurements.maxHeight),this._layoutResult.viewPortHeight=b)},handleLayoutResult:function(){var a=this._layoutResult.viewPortWidth, +b=this._layoutResult.viewPortHeight;this.saveMeasurements(a,b,a,b)},refreshMaskLayout:function(){null!=this._currentMaskSkin&&(this._currentMaskSkin.set_x(0),this._currentMaskSkin.set_y(0),this._currentMaskSkin.set_width(this.actualWidth),this._currentMaskSkin.set_height(this.actualHeight),I.__implements(this._currentMaskSkin,La)&&this._currentMaskSkin.validateNow())},refreshBackgroundLayout:function(){null!=this._currentBackgroundSkin&&(this._currentBackgroundSkin.set_x(0),this._currentBackgroundSkin.set_y(0), +this._currentBackgroundSkin.get_width()!=this.actualWidth&&this._currentBackgroundSkin.set_width(this.actualWidth),this._currentBackgroundSkin.get_height()!=this.actualHeight&&this._currentBackgroundSkin.set_height(this.actualHeight),I.__implements(this._currentBackgroundSkin,La)&&this._currentBackgroundSkin.validateNow())},validateChildren:function(){I.__implements(this._currentBackgroundSkin,La)&&this._currentBackgroundSkin.validateNow();for(var a=0,b=this.items;ac?a:sa.substr(a,0,b+c)),c=null!=this.r.m)this.r.s=a}else if(c=this.match(0>c?sa.substr(a,b,null):sa.substr(a,b,c)))this.r.s=a,this.r.m.index+=b;return c},split:function(a){return a.replace(this.r,"#__delim__#").split("#__delim__#")},map:function(a,b){var c=0,d="";do{if(c>=a.length)break;else if(!this.matchSub(a,c)){d+=L.string(sa.substr(a,c,null));break}var f=this.matchedPos();d+=L.string(sa.substr(a,c,f.pos-c));d+=L.string(b(this));0==f.len?(d+=L.string(sa.substr(a,f.pos, +1)),c=f.pos+1):c=f.pos+f.len}while(this.r.global);!this.r.global&&0c)if(0==b)c=a.length+c;else return"";return a.substr(b,c)};sa.remove=function(a,b){b=a.indexOf(b);if(-1==b)return!1;a.splice(b,1);return!0};sa.now=function(){return Date.now()};var G=function(){};G.__name__= +"Lambda";G.array=function(a){var b=[];for(a=A(a);a.hasNext();){var c=a.next();b.push(c)}return b};Math.__name__="Math";var r=function(){};r.__name__="Reflect";r.field=function(a,b){try{return a[b]}catch(c){return ya.lastError=c,null}};r.getProperty=function(a,b){var c;if(null==a)return null;var d=a.__properties__?c=a.__properties__["get_"+b]:!1;return d?a[c]():a[b]};r.fields=function(a){var b=[];if(null!=a){var c=Object.prototype.hasOwnProperty,d;for(d in a)"__id__"!=d&&"hx__closures__"!=d&&c.call(a, +d)&&b.push(d)}return b};r.compare=function(a,b){return a==b?0:a>b?1:-1};r.isEnumValue=function(a){return null!=a?null!=a.__enum__:!1};r.deleteField=function(a,b){if(!Object.prototype.hasOwnProperty.call(a,b))return!1;delete a[b];return!0};var L=function(){};L.__name__="Std";L.string=function(a){return I.__string_rec(a,"")};L.parseInt=function(a){a=parseInt(a);return isNaN(a)?null:a};var zb=function(){};zb.__name__="_String.String_Impl_";zb.fromCharCode=function(a){return String.fromCodePoint(a)}; +var mc=function(){this.b=""};mc.__name__="StringBuf";mc.prototype={__class__:mc};var aa=function(){};aa.__name__="StringTools";aa.htmlEscape=function(a,b){for(var c="",d=0,f=a;d=q&&(q=q-55232<<10|a.charCodeAt(k+1)&1023);a=q;65536<=a&&++d;switch(a){case 34:c=b?c+""":c+String.fromCodePoint(a);break;case 38:c+="&";break;case 39:c=b?c+"'":c+String.fromCodePoint(a);break;case 60:c+="<";break;case 62:c+=">";break;default:c+= +String.fromCodePoint(a)}}return c};aa.htmlUnescape=function(a){return a.split(">").join(">").split("<").join("<").split(""").join('"').split("'").join("'").split("&").join("&")};aa.startsWith=function(a,b){return a.length>=b.length?0==a.lastIndexOf(b,0):!1};aa.endsWith=function(a,b){var c=b.length,d=a.length;return d>=c?a.indexOf(b,d-c)==d-c:!1};aa.isSpace=function(a,b){a=sa.cca(a,b);return 8a?!0:32==a};aa.ltrim=function(a){for(var b=a.length,c=0;c>>=4;while(0a;return c!=0>b?c:a>b},toFloat:function(a){return 0>a?4294967296+a:a+0}},kb=function(){};kb.__name__="feathers.core.IStateContext";kb.__isInterface__=!0;kb.__interfaces__=[E];kb.prototype= +{__class__:kb,__properties__:{get_currentState:"get_currentState"}};var ke=function(){};ke.__name__="feathers.controls.ITriggerView";ke.__isInterface__=!0;ke.__interfaces__=[db];var nc=function(a){this.__backgroundSkin=null;this.__keepDownStateOnRollOut=!1;this._stateToSkin=new Hc;this._pointerToState=this._keyToState=this._pointerTrigger=this._backgroundSkinMeasurements=this._currentBackgroundSkin=null;this._currentState=Mb.UP;la.call(this);this.mouseChildren=!1;this.set_buttonMode(!0);this.useHandCursor= +!1;this.addEventListener("click",h(this,this.basicButton_clickHandler));this.addEventListener("touchTap",h(this,this.basicButton_touchTapHandler));null!=a&&this.addEventListener("trigger",a)};nc.__name__="feathers.controls.BasicButton";nc.__interfaces__=[kb,ke];nc.__super__=la;nc.prototype=u(la.prototype,{get_currentState:function(){return this._currentState},initialize:function(){la.prototype.initialize.call(this);null==this._pointerToState&&(this._pointerToState=new mg(this,h(this,this.changeState), +Mb.UP,Mb.DOWN,Mb.HOVER));null==this._keyToState&&(this._keyToState=new ng(this,h(this,this.changeState),Mb.UP,Mb.DOWN));null==this._pointerTrigger&&(this._pointerTrigger=new og(this))},update:function(){this.commitChanges();this.measure();this.layoutContent()},commitChanges:function(){var a=this.isInvalid(T.STYLES),b=this.isInvalid(T.STATE);(a||b)&&this.refreshBackgroundSkin();a&&this.refreshInteractivity()},layoutContent:function(){this.layoutBackgroundSkin()},refreshInteractivity:function(){this._pointerToState.set_keepDownStateOnRollOut(this.get_keepDownStateOnRollOut())}, +refreshBackgroundSkin:function(){var a=this._currentBackgroundSkin;this._currentBackgroundSkin=this.getCurrentBackgroundSkin();this._currentBackgroundSkin!=a&&(this.removeCurrentBackgroundSkin(a),this.addCurrentBackgroundSkin(this._currentBackgroundSkin))},getCurrentBackgroundSkin:function(){var a=this._stateToSkin.get(this._currentState);return null!=a?a:this.get_backgroundSkin()},addCurrentBackgroundSkin:function(a){null==a?this._backgroundSkinMeasurements=null:(I.__implements(a,db)&&a.initializeNow(), +null==this._backgroundSkinMeasurements?this._backgroundSkinMeasurements=new ta(a):this._backgroundSkinMeasurements.save(a),I.__implements(a,kc)&&a.set_uiContext(this),I.__implements(a,Jc)&&a.set_stateContext(this),this.addChildAt(a,0))},removeCurrentBackgroundSkin:function(a){null!=a&&(I.__implements(a,kc)&&a.set_uiContext(null),I.__implements(a,Jc)&&a.set_stateContext(null),this._backgroundSkinMeasurements.restore(a),a.parent==this&&this.removeChild(a))},measure:function(){var a=null==this.get_explicitWidth(), +b=null==this.get_explicitHeight(),c=null==this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;null!=this._currentBackgroundSkin&&Kd.resetFluidlyWithParent(this._backgroundSkinMeasurements,this._currentBackgroundSkin,this);var q=null;I.__implements(this._currentBackgroundSkin,Va)&&(q=this._currentBackgroundSkin);I.__implements(this._currentBackgroundSkin,La)&&this._currentBackgroundSkin.validateNow(); +var D=this.get_explicitWidth();a&&(D=null!=this._currentBackgroundSkin?this._currentBackgroundSkin.get_width():0);a=this.get_explicitHeight();b&&(a=null!=this._currentBackgroundSkin?this._currentBackgroundSkin.get_height():0);b=this.get_explicitMinWidth();c&&(b=null!=q?q.get_minWidth():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minWidth?this._backgroundSkinMeasurements.minWidth:0);c=this.get_explicitMinHeight();d&&(c=null!=q?q.get_minHeight():null!=this._backgroundSkinMeasurements&& +null!=this._backgroundSkinMeasurements.minHeight?this._backgroundSkinMeasurements.minHeight:0);d=this.get_explicitMaxWidth();f&&(d=null!=q?q.get_maxWidth():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxWidth?this._backgroundSkinMeasurements.maxWidth:1/0);f=this.get_explicitMaxHeight();k&&(f=null!=q?q.get_maxHeight():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxHeight?this._backgroundSkinMeasurements.maxHeight:1/0);return this.saveMeasurements(D, +a,b,c,d,f)},layoutBackgroundSkin:function(){null!=this._currentBackgroundSkin&&(this._currentBackgroundSkin.set_x(0),this._currentBackgroundSkin.set_y(0),this._currentBackgroundSkin.get_width()!=this.actualWidth&&this._currentBackgroundSkin.set_width(this.actualWidth),this._currentBackgroundSkin.get_height()!=this.actualHeight&&this._currentBackgroundSkin.set_height(this.actualHeight),I.__implements(this._currentBackgroundSkin,La)&&this._currentBackgroundSkin.validateNow())},changeState:function(a){this._enabled|| +(a=Mb.DISABLED);this._currentState!=a&&(this._currentState=a,this.setInvalid(T.STATE),Wa.dispatch(this,"stateChange"))},basicButton_clickHandler:function(a){this._enabled||a.stopImmediatePropagation()},basicButton_touchTapHandler:function(a){this._enabled||a.stopImmediatePropagation()},get_keepDownStateOnRollOut:function(){return this.__keepDownStateOnRollOut},get_backgroundSkin:function(){return this.__backgroundSkin},set_backgroundSkin:function(a){if(!this.setStyle("backgroundSkin")||this.__backgroundSkin== +a)return this.__backgroundSkin;this._previousClearStyle=h(this,this.clearStyle_backgroundSkin);this.__backgroundSkin=a;this.setInvalid(T.STYLES);return this.__backgroundSkin},clearStyle_backgroundSkin:function(){this.set_backgroundSkin(null);return this.get_backgroundSkin()},__class__:nc,__properties__:u(la.prototype.__properties__,{set_backgroundSkin:"set_backgroundSkin",get_backgroundSkin:"get_backgroundSkin",get_keepDownStateOnRollOut:"get_keepDownStateOnRollOut",get_currentState:"get_currentState"})}); +var hb=function(){};hb.__name__="feathers.core.IFocusObject";hb.__isInterface__=!0;hb.__interfaces__=[Lb,qa];hb.prototype={__class__:hb,__properties__:{get_focusOwner:"get_focusOwner",get_focusEnabled:"get_focusEnabled"}};var Ld=function(){};Ld.__name__="feathers.core.IHTMLTextControl";Ld.__isInterface__=!0;Ld.__interfaces__=[db];var fd=function(){};fd.__name__="feathers.core.ITextControl";fd.__isInterface__=!0;fd.__interfaces__=[db];fd.prototype={__class__:fd,__properties__:{set_text:"set_text"}}; +var Hb=function(a,b){this.__showText=!0;this.__gap=this.__minGap=this.__iconOffsetX=this.__iconOffsetY=this.__textOffsetX=this.__textOffsetY=0;this.__iconPosition=Qa.LEFT;this.__verticalAlign=Yb.MIDDLE;this.__horizontalAlign=cc.CENTER;this.__paddingTop=this.__paddingRight=this.__paddingBottom=this.__paddingLeft=0;this.__icon=null;this.__embedFonts=this.__wordWrap=!1;this.__textFormat=this.__styleSheet=this.__disabledTextFormat=null;this._stateToTextFormat=new Hc;this._ignoreIconResizes=this._wrappedOnMeasure= +!1;this._iconMeasurements=this._currentIcon=null;this._stateToIcon=new Hc;this._htmlText=null;this._updatedTextStyles=!1;this._previousText=this._previousHTMLText=this._previousTextFormat=this._previousSimpleTextFormat=null;this.initializeButtonTheme();nc.call(this,b);this.set_text(a);this.set_tabEnabled(!0);this.set_tabChildren(!1);this.focusRect=!1;this.addEventListener("keyDown",h(this,this.button_keyDownHandler));this.addEventListener("focusIn",h(this,this.button_focusInHandler));this.addEventListener("focusOut", +h(this,this.button_focusOutHandler))};Hb.__name__="feathers.controls.Button";Hb.__interfaces__=[hb,Ld,fd];Hb.__super__=nc;Hb.prototype=u(nc.prototype,{set_text:function(a){if(this._text==a)return this._text;this._text=a;this.setInvalid(T.DATA);return this._text},initializeButtonTheme:function(){eh.initialize()},initialize:function(){nc.prototype.initialize.call(this);null==this.textField&&(this.textField=new gc,this.textField.set_selectable(!1),this.textField.set_multiline(!0),this.addChild(this.textField))}, +commitChanges:function(){nc.prototype.commitChanges.call(this);var a=this.isInvalid(T.DATA),b=this.isInvalid(T.SIZE),c=this.isInvalid(T.STATE),d=this.isInvalid(T.STYLES);this._updatedTextStyles=!1;(d||c)&&this.refreshIcon();(d||c)&&this.refreshTextStyles();(a||d||c||b)&&this.refreshText(b)},measure:function(){var a=null==this.get_explicitWidth(),b=null==this.get_explicitHeight(),c=null==this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight(); +if(!(a||b||c||d||f||k))return!1;var q=this.get_showText()&&null!=this._text,D=this.get_showText()&&null!=this._htmlText&&0a&&(a=0);return a},measureContentWidth:function(){var a=this.get_gap();a==1/0&&(a=this.get_minGap());var b=this.get_showText()&&null!=this._text,c=this.get_showText()&&null!=this._htmlText&&0a&&(this.textField.set_wordWrap(!0),this.textField.set_width(a),this._textMeasuredWidth=this.textField.get_width(),this._wrappedOnMeasure=!0)),this._textMeasuredHeight=this.textField.get_height(),this.textField.set_autoSize(2),this.textField.get_wordWrap()!=this.get_wordWrap()&& +this.textField.set_wordWrap(this.get_wordWrap()),b||c||this.textField.set_text(""),this._previousText=this._text,this._previousHTMLText=this._htmlText},getCurrentTextFormat:function(){if(null!=this.get_styleSheet())return null;var a=this._stateToTextFormat.get(this._currentState);return null!=a?a:this._enabled||null==this.get_disabledTextFormat()?this.get_textFormat():this.get_disabledTextFormat()},layoutContent:function(){nc.prototype.layoutContent.call(this);this.layoutChildren()},layoutChildren:function(){this.refreshTextFieldDimensions(!1); +var a=this.get_showText()&&null!=this._text,b=this.get_showText()&&null!=this._htmlText&&0this._textMeasuredWidth&&(b=this._textMeasuredWidth);c>this._textMeasuredHeight&&(c=this._textMeasuredHeight);0>b&&(b=0);0>c&&(c=0);this.textField.set_width(b);(a=this.get_wordWrap())&&!this._wrappedOnMeasure&&b>=this._textMeasuredWidth&&(a=!1);this.textField.get_wordWrap()!=a&&this.textField.set_wordWrap(a);this.textField.set_height(c)}},positionSingleChild:function(a){this.get_horizontalAlign()== +cc.LEFT?a.set_x(this.get_paddingLeft()):this.get_horizontalAlign()==cc.RIGHT?a.set_x(this.actualWidth-this.get_paddingRight()-a.get_width()):a.set_x(this.get_paddingLeft()+(this.actualWidth-this.get_paddingLeft()-this.get_paddingRight()-a.get_width())/2);this.get_verticalAlign()==Yb.TOP?a.set_y(this.get_paddingTop()):this.get_verticalAlign()==Yb.BOTTOM?a.set_y(this.actualHeight-this.get_paddingBottom()-a.get_height()):a.set_y(this.get_paddingTop()+(this.actualHeight-this.get_paddingTop()-this.get_paddingBottom()- +a.get_height())/2)},positionTextAndIcon:function(){if(this.get_iconPosition()==Qa.TOP)if(this.get_gap()==1/0)this._currentIcon.set_y(this.get_paddingTop()),this.textField.set_y(this.actualHeight-this.get_paddingBottom()-this.textField.get_height());else{if(this.get_verticalAlign()==Yb.TOP){var a=this.textField;a.set_y(a.get_y()+(this._currentIcon.get_height()+this.get_gap()))}else this.get_verticalAlign()==Yb.MIDDLE&&(a=this.textField,a.set_y(a.get_y()+(this._currentIcon.get_height()+this.get_gap())/ +2));this._currentIcon.set_y(this.textField.get_y()-this._currentIcon.get_height()-this.get_gap())}else this.get_iconPosition()==Qa.RIGHT?this.get_gap()==1/0?(this.textField.set_x(this.get_paddingLeft()),this._currentIcon.set_x(this.actualWidth-this.get_paddingRight()-this._currentIcon.get_width())):(this.get_horizontalAlign()==cc.RIGHT?(a=this.textField,a.set_x(a.get_x()-(this._currentIcon.get_width()+this.get_gap()))):this.get_horizontalAlign()==cc.CENTER&&(a=this.textField,a.set_x(a.get_x()-(this._currentIcon.get_width()+ +this.get_gap())/2)),this._currentIcon.set_x(this.textField.get_x()+this.textField.get_width()+this.get_gap())):this.get_iconPosition()==Qa.BOTTOM?this.get_gap()==1/0?(this.textField.set_y(this.get_paddingTop()),this._currentIcon.set_y(this.actualHeight-this.get_paddingBottom()-this._currentIcon.get_height())):(this.get_verticalAlign()==Yb.BOTTOM?(a=this.textField,a.set_y(a.get_y()-(this._currentIcon.get_height()+this.get_gap()))):this.get_verticalAlign()==Yb.MIDDLE&&(a=this.textField,a.set_y(a.get_y()- +(this._currentIcon.get_height()+this.get_gap())/2)),this._currentIcon.set_y(this.textField.get_y()+this.textField.get_height()+this.get_gap())):this.get_iconPosition()==Qa.LEFT&&(this.get_gap()==1/0?(this._currentIcon.set_x(this.get_paddingLeft()),this.textField.set_x(this.actualWidth-this.get_paddingRight()-this.textField.get_width())):(this.get_horizontalAlign()==cc.LEFT?(a=this.textField,a.set_x(a.get_x()+(this.get_gap()+this._currentIcon.get_width()))):this.get_horizontalAlign()==cc.CENTER&&(a= +this.textField,a.set_x(a.get_x()+(this.get_gap()+this._currentIcon.get_width())/2)),this._currentIcon.set_x(this.textField.get_x()-this.get_gap()-this._currentIcon.get_width())));this.get_iconPosition()==Qa.LEFT||this.get_iconPosition()==Qa.RIGHT?this.get_verticalAlign()==Yb.TOP?this._currentIcon.set_y(this.get_paddingTop()):this.get_verticalAlign()==Yb.BOTTOM?this._currentIcon.set_y(this.actualHeight-this.get_paddingBottom()-this._currentIcon.get_height()):this._currentIcon.set_y(this.get_paddingTop()+ +(this.actualHeight-this.get_paddingTop()-this.get_paddingBottom()-this._currentIcon.get_height())/2):this.get_horizontalAlign()==cc.LEFT?this._currentIcon.set_x(this.get_paddingLeft()):this.get_horizontalAlign()==cc.RIGHT?this._currentIcon.set_x(this.actualWidth-this.get_paddingRight()-this._currentIcon.get_width()):this._currentIcon.set_x(this.get_paddingLeft()+(this.actualWidth-this.get_paddingLeft()-this.get_paddingRight()-this._currentIcon.get_width())/2)},refreshIcon:function(){var a=this._currentIcon; +this._currentIcon=this.getCurrentIcon();this._currentIcon!=a&&(this.removeCurrentIcon(a),this.addCurrentIcon(this._currentIcon))},addCurrentIcon:function(a){if(null==a)this._iconMeasurements=null;else{I.__implements(a,db)&&a.initializeNow();null==this._iconMeasurements?this._iconMeasurements=new ta(a):this._iconMeasurements.save(a);I.__implements(a,kc)&&a.set_uiContext(this);I.__implements(a,Jc)&&a.set_stateContext(this);a.addEventListener("resize",h(this,this.button_icon_resizeHandler),!1,0,!0); +var b=this.getChildIndex(this.textField);this.addChildAt(a,b)}},getCurrentIcon:function(){var a=this._stateToIcon.get(this._currentState);return null!=a?a:this.get_icon()},removeCurrentIcon:function(a){null!=a&&(a.removeEventListener("resize",h(this,this.button_icon_resizeHandler)),I.__implements(a,kc)&&a.set_uiContext(null),I.__implements(a,Jc)&&a.set_stateContext(null),this._iconMeasurements.restore(a),a.parent==this&&this.removeChild(a))},button_keyDownHandler:function(a){!this._enabled||this.get_buttonMode()&& +1==this.focusRect||null!=this._focusManager&&this._focusManager.get_focus()!=this||32!=a.keyCode&&13!=a.keyCode||(a.preventDefault(),this.dispatchEvent(new gb("click")))},button_focusInHandler:function(a){this._keyToState.set_enabled(this._enabled)},button_focusOutHandler:function(a){this._keyToState.set_enabled(!1)},button_textFormat_changeHandler:function(a){this.setInvalid(T.STYLES)},button_icon_resizeHandler:function(a){this._ignoreIconResizes||this.setInvalid(T.STYLES)},get_styleContext:function(){return Hb}, +get_textFormat:function(){return this.__textFormat},set_textFormat:function(a){if(!this.setStyle("textFormat")||this.__textFormat==a)return this.__textFormat;this._previousClearStyle=h(this,this.clearStyle_textFormat);this.__textFormat=a;this.setInvalid(T.STYLES);return this.__textFormat},clearStyle_textFormat:function(){this.set_textFormat(null);return this.get_textFormat()},get_styleSheet:function(){return this.__styleSheet},get_disabledTextFormat:function(){return this.__disabledTextFormat},set_disabledTextFormat:function(a){if(!this.setStyle("disabledTextFormat")|| +this.__disabledTextFormat==a)return this.__disabledTextFormat;this._previousClearStyle=h(this,this.clearStyle_disabledTextFormat);this.__disabledTextFormat=a;this.setInvalid(T.STYLES);return this.__disabledTextFormat},clearStyle_disabledTextFormat:function(){this.set_disabledTextFormat(null);return this.get_disabledTextFormat()},get_embedFonts:function(){return this.__embedFonts},get_wordWrap:function(){return this.__wordWrap},get_icon:function(){return this.__icon},get_paddingTop:function(){return this.__paddingTop}, +set_paddingTop:function(a){if(!this.setStyle("paddingTop")||this.__paddingTop==a)return this.__paddingTop;this._previousClearStyle=h(this,this.clearStyle_paddingTop);this.__paddingTop=a;this.setInvalid(T.STYLES);return this.__paddingTop},clearStyle_paddingTop:function(){this.set_paddingTop(0);return this.get_paddingTop()},get_paddingRight:function(){return this.__paddingRight},set_paddingRight:function(a){if(!this.setStyle("paddingRight")||this.__paddingRight==a)return this.__paddingRight;this._previousClearStyle= +h(this,this.clearStyle_paddingRight);this.__paddingRight=a;this.setInvalid(T.STYLES);return this.__paddingRight},clearStyle_paddingRight:function(){this.set_paddingRight(0);return this.get_paddingRight()},get_paddingBottom:function(){return this.__paddingBottom},set_paddingBottom:function(a){if(!this.setStyle("paddingBottom")||this.__paddingBottom==a)return this.__paddingBottom;this._previousClearStyle=h(this,this.clearStyle_paddingBottom);this.__paddingBottom=a;this.setInvalid(T.STYLES);return this.__paddingBottom}, +clearStyle_paddingBottom:function(){this.set_paddingBottom(0);return this.get_paddingBottom()},get_paddingLeft:function(){return this.__paddingLeft},set_paddingLeft:function(a){if(!this.setStyle("paddingLeft")||this.__paddingLeft==a)return this.__paddingLeft;this._previousClearStyle=h(this,this.clearStyle_paddingLeft);this.__paddingLeft=a;this.setInvalid(T.STYLES);return this.__paddingLeft},clearStyle_paddingLeft:function(){this.set_paddingLeft(0);return this.get_paddingLeft()},get_horizontalAlign:function(){return this.__horizontalAlign}, +get_verticalAlign:function(){return this.__verticalAlign},get_iconPosition:function(){return this.__iconPosition},get_gap:function(){return this.__gap},set_gap:function(a){if(!this.setStyle("gap")||this.__gap==a)return this.__gap;this._previousClearStyle=h(this,this.clearStyle_gap);this.__gap=a;this.setInvalid(T.STYLES);return this.__gap},clearStyle_gap:function(){this.set_gap(0);return this.get_gap()},get_minGap:function(){return this.__minGap},get_iconOffsetX:function(){return this.__iconOffsetX}, +get_iconOffsetY:function(){return this.__iconOffsetY},get_textOffsetX:function(){return this.__textOffsetX},get_textOffsetY:function(){return this.__textOffsetY},get_showText:function(){return this.__showText},__class__:Hb,__properties__:u(nc.prototype.__properties__,{get_showText:"get_showText",get_textOffsetY:"get_textOffsetY",get_textOffsetX:"get_textOffsetX",get_iconOffsetY:"get_iconOffsetY",get_iconOffsetX:"get_iconOffsetX",get_minGap:"get_minGap",set_gap:"set_gap",get_gap:"get_gap",get_iconPosition:"get_iconPosition", +get_verticalAlign:"get_verticalAlign",get_horizontalAlign:"get_horizontalAlign",set_paddingLeft:"set_paddingLeft",get_paddingLeft:"get_paddingLeft",set_paddingBottom:"set_paddingBottom",get_paddingBottom:"get_paddingBottom",set_paddingRight:"set_paddingRight",get_paddingRight:"get_paddingRight",set_paddingTop:"set_paddingTop",get_paddingTop:"get_paddingTop",get_icon:"get_icon",get_wordWrap:"get_wordWrap",get_embedFonts:"get_embedFonts",set_disabledTextFormat:"set_disabledTextFormat",get_disabledTextFormat:"get_disabledTextFormat", +get_styleSheet:"get_styleSheet",set_textFormat:"set_textFormat",get_textFormat:"get_textFormat",set_text:"set_text"})});var Mb=w["feathers.controls.ButtonState"]={__ename__:!0,__constructs__:null,UP:{_hx_name:"UP",_hx_index:0,__enum__:"feathers.controls.ButtonState",toString:g},HOVER:{_hx_name:"HOVER",_hx_index:1,__enum__:"feathers.controls.ButtonState",toString:g},DOWN:{_hx_name:"DOWN",_hx_index:2,__enum__:"feathers.controls.ButtonState",toString:g},DISABLED:{_hx_name:"DISABLED",_hx_index:3,__enum__:"feathers.controls.ButtonState", +toString:g}};Mb.__constructs__=[Mb.UP,Mb.HOVER,Mb.DOWN,Mb.DISABLED];var Cb=function(){};Cb.__name__="feathers.controls.IToggle";Cb.__isInterface__=!0;Cb.__interfaces__=[db];Cb.prototype={__class__:Cb,__properties__:{get_selected:"get_selected"}};var Oc=function(){};Oc.__name__="feathers.controls.IGroupedToggle";Oc.__isInterface__=!0;Oc.__interfaces__=[Cb];Oc.prototype={__class__:Oc,__properties__:{get_toggleGroup:"get_toggleGroup"}};var Vc=function(){};Vc.__name__="feathers.core.IStageFocusDelegate"; +Vc.__isInterface__=!0;Vc.__interfaces__=[hb];Vc.prototype={__class__:Vc,__properties__:{get_stageFocusTarget:"get_stageFocusTarget"}};var bb=function(a){null==a&&(a="");this.__backgroundSkin=this.__disabledBackgroundSkin=null;this.__wordWrap=!1;this.__verticalAlign=Yb.TOP;this.__paddingTop=this.__paddingRight=this.__paddingBottom=this.__paddingLeft=0;this.__disabledTextFormat=null;this.__embedFonts=!1;this._currentBackgroundSkin=this._backgroundSkinMeasurements=this.__textFormat=this.__styleSheet= +null;this._selectable=!1;this._htmlText=null;this._updatedTextStyles=this._wrappedOnMeasure=!1;this._previousText=this._previousHTMLText=this._previousTextFormat=this._previousSimpleTextFormat=null;this.initializeLabelTheme();la.call(this);this.set_text(a);this.set_tabEnabled(!1);this.set_tabChildren(!1);this.addEventListener("focusIn",h(this,this.label_focusInHandler))};bb.__name__="feathers.controls.Label";bb.__interfaces__=[Vc,hb,Ld,fd];bb.__super__=la;bb.prototype=u(la.prototype,{set_text:function(a){if(null== +a){if(0==this._text.length)return this._text;a=""}if(this._text==a)return this._text;this._text=a;this.setInvalid(T.DATA);return this._text},get_tabEnabled:function(){return this._selectable&&this._enabled?this.get_rawTabEnabled():!1},get_focusEnabled:function(){return this._selectable?la.prototype.get_focusEnabled.call(this):!1},get_stageFocusTarget:function(){return this.textField},initializeLabelTheme:function(){fh.initialize()},initialize:function(){la.prototype.initialize.call(this);null==this.textField&& +(this.textField=new gc,this.textField.set_multiline(!0),this.addChild(this.textField))},update:function(){var a=this.isInvalid(T.DATA),b=this.isInvalid(T.SELECTION),c=this.isInvalid(T.SIZE),d=this.isInvalid(T.STATE),f=this.isInvalid(T.STYLES);this._updatedTextStyles=!1;(f||d)&&this.refreshBackgroundSkin();(f||d)&&this.refreshTextStyles();(a||f||d||c)&&this.refreshText(c);(a||f||b)&&this.refreshSelection();this.measure()&&(c=!0);(f||d||a||c)&&this.layoutContent()},measure:function(){var a=null==this.get_explicitWidth(), +b=null==this.get_explicitHeight(),c=null==this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;null!=this._currentBackgroundSkin&&Kd.resetFluidlyWithParent(this._backgroundSkinMeasurements,this._currentBackgroundSkin,this);var q=null;I.__implements(this._currentBackgroundSkin,Va)&&(q=this._currentBackgroundSkin);I.__implements(this._currentBackgroundSkin,La)&&this._currentBackgroundSkin.validateNow(); +var D=this.get_explicitWidth();a&&(D=this._textMeasuredWidth+this.get_paddingLeft()+this.get_paddingRight(),null!=this._currentBackgroundSkin&&(D=Math.max(this._currentBackgroundSkin.get_width(),D)));a=this.get_explicitHeight();b&&(a=this._textMeasuredHeight+this.get_paddingTop()+this.get_paddingBottom(),null!=this._currentBackgroundSkin&&(a=Math.max(this._currentBackgroundSkin.get_height(),a)));b=this.get_explicitMinWidth();c&&(b=this._textMeasuredWidth+this.get_paddingLeft()+this.get_paddingRight(), +null!=q?b=Math.max(q.get_minWidth(),b):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minWidth&&(b=Math.max(this._backgroundSkinMeasurements.minWidth,b)));c=this.get_explicitMinHeight();d&&(c=this._textMeasuredHeight+this.get_paddingTop()+this.get_paddingBottom(),null!=q?c=Math.max(q.get_minHeight(),c):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minHeight&&(c=Math.max(this._backgroundSkinMeasurements.minHeight,c)));d=this.get_explicitMaxWidth(); +f&&(d=null!=q?q.get_maxWidth():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxWidth?this._backgroundSkinMeasurements.maxWidth:1/0);f=this.get_explicitMaxHeight();k&&(f=null!=q?q.get_maxHeight():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxHeight?this._backgroundSkinMeasurements.maxHeight:1/0);return this.saveMeasurements(D,a,b,c,d,f)},refreshTextStyles:function(){this.textField.get_wordWrap()!=this.get_wordWrap()&&(this.textField.set_wordWrap(this.get_wordWrap()), +this._updatedTextStyles=!0);this.textField.get_embedFonts()!=this.get_embedFonts()&&(this.textField.set_embedFonts(this.get_embedFonts()),this._updatedTextStyles=!0);this.textField.get_styleSheet()!=this.get_styleSheet()&&(this.textField.set_styleSheet(this.get_styleSheet()),this._updatedTextStyles=!0);var a=this.getCurrentTextFormat(),b=null!=a?a.toSimpleTextFormat():null;b!=this._previousSimpleTextFormat&&(null!=this._previousTextFormat&&this._previousTextFormat.removeEventListener("change",h(this, +this.label_textFormat_changeHandler)),-1!=this.textField.get_caretIndex()&&this.textField.get_selectionBeginIndex()!=this.textField.get_selectionEndIndex()&&this.textField.setSelection(0,0),null!=a&&(a.addEventListener("change",h(this,this.label_textFormat_changeHandler),!1,0,!0),this.textField.set_defaultTextFormat(b),this._updatedTextStyles=!0),this._previousTextFormat=a,this._previousSimpleTextFormat=b)},refreshText:function(a){var b=null!=this._text&&0a&&(this.textField.set_wordWrap(!0),this.textField.set_width(a),this._textMeasuredWidth=this.textField.get_width(),this._wrappedOnMeasure=!0)),this._textMeasuredHeight=this.textField.get_height(),this.textField.set_autoSize(2),this.textField.get_wordWrap()!=this.get_wordWrap()&&this.textField.set_wordWrap(this.get_wordWrap()),b||c||this.textField.set_text(""),this._previousText=this._text,this._previousHTMLText=this._htmlText},calculateExplicitWidthForTextMeasurement:function(){var a= +null;null!=this.get_explicitWidth()?a=this.get_explicitWidth():null!=this.get_explicitMaxWidth()?a=this.get_explicitMaxWidth():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxWidth&&(a=this._backgroundSkinMeasurements.maxWidth);if(null==a)return a;a-=this.get_paddingLeft()+this.get_paddingRight();0>a&&(a=0);return a},refreshSelection:function(){var a=this._selectable&&this._enabled;this.textField.get_selectable()!=a&&this.textField.set_selectable(a)},getCurrentTextFormat:function(){return null!= +this.get_styleSheet()?null:this._enabled||null==this.get_disabledTextFormat()?this.get_textFormat():this.get_disabledTextFormat()},refreshBackgroundSkin:function(){var a=this._currentBackgroundSkin;this._currentBackgroundSkin=this.getCurrentBackgroundSkin();this._currentBackgroundSkin!=a&&(this.removeCurrentBackgroundSkin(a),this.addCurrentBackgroundSkin(this._currentBackgroundSkin))},getCurrentBackgroundSkin:function(){return this._enabled||null==this.get_disabledBackgroundSkin()?this.get_backgroundSkin(): +this.get_disabledBackgroundSkin()},addCurrentBackgroundSkin:function(a){null==a?this._backgroundSkinMeasurements=null:(I.__implements(a,db)&&a.initializeNow(),null==this._backgroundSkinMeasurements?this._backgroundSkinMeasurements=new ta(a):this._backgroundSkinMeasurements.save(a),I.__implements(a,kc)&&a.set_uiContext(this),this.addChildAt(a,0))},removeCurrentBackgroundSkin:function(a){null!=a&&(I.__implements(a,kc)&&a.set_uiContext(null),this._backgroundSkinMeasurements.restore(a),a.parent==this&& +this.removeChild(a))},layoutContent:function(){this.layoutBackgroundSkin();var a=this.actualWidth-this.get_paddingLeft()-this.get_paddingRight();0>a&&(a=0);this.textField.set_x(this.get_paddingLeft());this.textField.set_width(a);var b=this.get_wordWrap();b&&!this._wrappedOnMeasure&&a>=this._textMeasuredWidth&&(b=!1);this.textField.get_wordWrap()!=b&&this.textField.set_wordWrap(b);a=this._textMeasuredHeight;b=this.actualHeight-this.get_paddingTop()-this.get_paddingBottom();a>b&&(a=b);0>a&&(a=0);this.textField.set_height(a); +switch(this.get_verticalAlign()._hx_index){case 0:this.textField.set_y(this.get_paddingTop());break;case 2:this.textField.set_y(this.actualHeight-this.get_paddingBottom()-a);break;default:this.textField.set_y(this.get_paddingTop()+(b-a)/2)}},layoutBackgroundSkin:function(){null!=this._currentBackgroundSkin&&(this._currentBackgroundSkin.set_x(0),this._currentBackgroundSkin.set_y(0),this._currentBackgroundSkin.get_width()!=this.actualWidth&&this._currentBackgroundSkin.set_width(this.actualWidth),this._currentBackgroundSkin.get_height()!= +this.actualHeight&&this._currentBackgroundSkin.set_height(this.actualHeight),I.__implements(this._currentBackgroundSkin,La)&&this._currentBackgroundSkin.validateNow())},label_focusInHandler:function(a){null!=this.stage&&this.stage.get_focus()!=this.textField&&(a.stopImmediatePropagation(),this.stage.set_focus(this.textField))},label_textFormat_changeHandler:function(a){this.setInvalid(T.STYLES)},get_textFormat:function(){return this.__textFormat},set_textFormat:function(a){if(!this.setStyle("textFormat")|| +this.__textFormat==a)return this.__textFormat;this._previousClearStyle=h(this,this.clearStyle_textFormat);this.__textFormat=a;this.setInvalid(T.STYLES);return this.__textFormat},clearStyle_textFormat:function(){this.set_textFormat(null);return this.get_textFormat()},get_styleSheet:function(){return this.__styleSheet},get_embedFonts:function(){return this.__embedFonts},get_disabledTextFormat:function(){return this.__disabledTextFormat},set_disabledTextFormat:function(a){if(!this.setStyle("disabledTextFormat")|| +this.__disabledTextFormat==a)return this.__disabledTextFormat;this._previousClearStyle=h(this,this.clearStyle_disabledTextFormat);this.__disabledTextFormat=a;this.setInvalid(T.STYLES);return this.__disabledTextFormat},clearStyle_disabledTextFormat:function(){this.set_disabledTextFormat(null);return this.get_disabledTextFormat()},get_paddingTop:function(){return this.__paddingTop},set_paddingTop:function(a){if(!this.setStyle("paddingTop")||this.__paddingTop==a)return this.__paddingTop;this._previousClearStyle= +h(this,this.clearStyle_paddingTop);this.__paddingTop=a;this.setInvalid(T.STYLES);return this.__paddingTop},clearStyle_paddingTop:function(){this.set_paddingTop(0);return this.get_paddingTop()},get_paddingRight:function(){return this.__paddingRight},set_paddingRight:function(a){if(!this.setStyle("paddingRight")||this.__paddingRight==a)return this.__paddingRight;this._previousClearStyle=h(this,this.clearStyle_paddingRight);this.__paddingRight=a;this.setInvalid(T.STYLES);return this.__paddingRight}, +clearStyle_paddingRight:function(){this.set_paddingRight(0);return this.get_paddingRight()},get_paddingBottom:function(){return this.__paddingBottom},set_paddingBottom:function(a){if(!this.setStyle("paddingBottom")||this.__paddingBottom==a)return this.__paddingBottom;this._previousClearStyle=h(this,this.clearStyle_paddingBottom);this.__paddingBottom=a;this.setInvalid(T.STYLES);return this.__paddingBottom},clearStyle_paddingBottom:function(){this.set_paddingBottom(0);return this.get_paddingBottom()}, +get_paddingLeft:function(){return this.__paddingLeft},set_paddingLeft:function(a){if(!this.setStyle("paddingLeft")||this.__paddingLeft==a)return this.__paddingLeft;this._previousClearStyle=h(this,this.clearStyle_paddingLeft);this.__paddingLeft=a;this.setInvalid(T.STYLES);return this.__paddingLeft},clearStyle_paddingLeft:function(){this.set_paddingLeft(0);return this.get_paddingLeft()},get_verticalAlign:function(){return this.__verticalAlign},get_wordWrap:function(){return this.__wordWrap},set_wordWrap:function(a){if(!this.setStyle("wordWrap")|| +this.__wordWrap==a)return this.__wordWrap;this._previousClearStyle=h(this,this.clearStyle_wordWrap);this.__wordWrap=a;this.setInvalid(T.STYLES);return this.__wordWrap},clearStyle_wordWrap:function(){this.set_wordWrap(!1);return this.get_wordWrap()},get_backgroundSkin:function(){return this.__backgroundSkin},set_backgroundSkin:function(a){if(!this.setStyle("backgroundSkin")||this.__backgroundSkin==a)return this.__backgroundSkin;this._previousClearStyle=h(this,this.clearStyle_backgroundSkin);this.__backgroundSkin= +a;this.setInvalid(T.STYLES);return this.__backgroundSkin},clearStyle_backgroundSkin:function(){this.set_backgroundSkin(null);return this.get_backgroundSkin()},get_disabledBackgroundSkin:function(){return this.__disabledBackgroundSkin},get_styleContext:function(){return bb},__class__:bb,__properties__:u(la.prototype.__properties__,{get_disabledBackgroundSkin:"get_disabledBackgroundSkin",set_backgroundSkin:"set_backgroundSkin",get_backgroundSkin:"get_backgroundSkin",set_wordWrap:"set_wordWrap",get_wordWrap:"get_wordWrap", +get_verticalAlign:"get_verticalAlign",set_paddingLeft:"set_paddingLeft",get_paddingLeft:"get_paddingLeft",set_paddingBottom:"set_paddingBottom",get_paddingBottom:"get_paddingBottom",set_paddingRight:"set_paddingRight",get_paddingRight:"get_paddingRight",set_paddingTop:"set_paddingTop",get_paddingTop:"get_paddingTop",set_disabledTextFormat:"set_disabledTextFormat",get_disabledTextFormat:"get_disabledTextFormat",get_stageFocusTarget:"get_stageFocusTarget",get_embedFonts:"get_embedFonts",get_styleSheet:"get_styleSheet", +set_textFormat:"set_textFormat",get_textFormat:"get_textFormat",set_text:"set_text"})});var wd=function(){};wd.__name__="feathers.controls.supportClasses.IViewPort";wd.__isInterface__=!0;wd.__interfaces__=[Va,La,db];var Pc=function(){};Pc.__name__="feathers.core.IFocusManager";Pc.__isInterface__=!0;Pc.__interfaces__=[E];Pc.prototype={__class__:Pc,__properties__:{get_showFocusIndicator:"get_showFocusIndicator",get_focusPane:"get_focusPane",get_focus:"get_focus",get_root:"get_root"}};var oc=function(a){this._showFocusIndicator= +this._cancelMouseFocusChange=!1;this._root=this._focusPane=null;this._enabled=!0;B.call(this);this.set_root(a)};oc.__name__="feathers.core.DefaultFocusManager";oc.__interfaces__=[Pc];oc.__super__=B;oc.prototype=u(B.prototype,{get_root:function(){return this._root},set_root:function(a){if(this._root==a)return this._root;null!=this._root&&(this.clearFocusManager(this._root),this._root.removeEventListener("addedToStage",h(this,this.defaultFocusManager_root_addedToStageHandler)),this._root.removeEventListener("removedFromStage", +h(this,this.defaultFocusManager_root_removedFromStageHandler)),this._root.removeEventListener("added",h(this,this.defaultFocusManager_root_addedHandler)),this._root.removeEventListener("removed",h(this,this.defaultFocusManager_root_removedHandler)),this._root.removeEventListener("mouseDown",h(this,this.defaultFocusManager_root_mouseDownCaptureHandler),!0),this._root.removeEventListener("focusIn",h(this,this.defaultFocusManager_root_focusInCaptureHandler),!0),this._root.removeEventListener("mouseFocusChange", +h(this,this.defaultFocusManager_root_mouseFocusChangeHandler)),this._root.removeEventListener("activate",h(this,this.defaultFocusManager_root_activateHandler)),this._root.removeEventListener("deactivate",h(this,this.defaultFocusManager_root_deactivateHandler)),this.handleRootRemovedFromStage(this._root.stage));this._root=a;null!=this._root&&(this.handleRootAddedToStage(this._root),this.setFocusManager(this._root),this._root.addEventListener("addedToStage",h(this,this.defaultFocusManager_root_addedToStageHandler), +!1,0,!0),this._root.addEventListener("removedFromStage",h(this,this.defaultFocusManager_root_removedFromStageHandler),!1,0,!0),this._root.addEventListener("added",h(this,this.defaultFocusManager_root_addedHandler),!1,0,!0),this._root.addEventListener("removed",h(this,this.defaultFocusManager_root_removedHandler),!1,0,!0),this._root.addEventListener("mouseDown",h(this,this.defaultFocusManager_root_mouseDownCaptureHandler),!0,0,!0),this._root.addEventListener("focusIn",h(this,this.defaultFocusManager_root_focusInCaptureHandler), +!0,0,!0),this._root.addEventListener("mouseFocusChange",h(this,this.defaultFocusManager_root_mouseFocusChangeHandler),!1,0,!0),this._root.addEventListener("activate",h(this,this.defaultFocusManager_root_activateHandler),!1,0,!0),this._root.addEventListener("deactivate",h(this,this.defaultFocusManager_root_deactivateHandler),!1,0,!0));return this._root},get_focusPane:function(){null==this._focusPane&&(this._focusPane=new Ta,this._focusPane.mouseEnabled=!1,this._focusPane.mouseChildren=!1,this._focusPane.set_tabEnabled(!1), +this._focusPane.set_tabChildren(!1),rb.forStage(this._root.stage).addPopUp(this._focusPane,!1,!1));return this._focusPane},get_showFocusIndicator:function(){return this._showFocusIndicator},get_focus:function(){return null==this._root.stage?null:this.findFocusForDisplayObject(this._root.stage.get_focus())},set_focus:function(a){if(this._enabled&&null!=this._root.stage&&this.findFocusForDisplayObject(this._root.stage.get_focus())==a)return this.setStageFocus(I.__cast(a,S)),this.get_focus();if(null!= +a&&a.get_focusManager()!=this)throw new Kb("Failed to change focus. Object is not managed by this focus manager: "+L.string(a));this._enabled&&null!=this._root.stage&&this.setStageFocus(I.__cast(a,S));return this.get_focus()},dispose:function(){null!=this.get_focus()&&this.set_focus(null);null!=this._focusPane&&(null!=this._focusPane.parent&&this._focusPane.parent.removeChild(this._focusPane),this._focusPane=null);var a=this._root;this.set_root(null);this._root=a;Wa.dispatch(this,"clear");this._root= +null},findNextFocusInternal:function(a){null==a&&(a=!1);var b=null,c=!1,d=this.get_focus();null!=d&&null!=d.get_focusOwner()?(a=d.get_focusOwner(),null!=a&&a.get_focusManager()!=this&&(a=null),null!=a&&(b=a)):a?(null!=d&&null!=d.parent&&(b=this.findPreviousContainerFocus(d.parent,I.__cast(d,W),!0)),null==b&&(b=this.findPreviousChildFocus(this._root),c=null!=d)):(null!=d&&(I.__implements(d,pc)&&d.get_childFocusEnabled()?b=this.findNextContainerFocus(I.__cast(d,ia),null,!0):null!=d.parent&&(b=this.findNextContainerFocus(d.parent, +I.__cast(d,W),!0))),null==b&&(b=this.findNextChildFocus(this._root),c=null!=d));return new eb(b,c)},findNextRelativeFocusInternal:function(a){switch(a){case 37:a=Qa.LEFT;break;case 38:a=Qa.TOP;break;case 39:a=Qa.RIGHT;break;case 40:a=Qa.BOTTOM;break;default:return new eb(null,!1)}var b=this.get_focus(),c=le.findAllFocusableObjects(this._root);if(null==b)return 0c?c=0:c+this._toolTip.get_width()>b.x&&(c=b.x-this._toolTip.get_width());a=a.y-this._toolTip.get_height()+this._offsetY;0>a?a=0:a+this._toolTip.get_height()>b.y&&(a=b.y-this._toolTip.get_height());this._toolTip.set_x(c);this._toolTip.set_y(a);rb.addPopUp(I.__cast(this._toolTip,W),I.__cast(this._target, +W),!1,!1)}},defaultToolTipManager_root_mouseMoveHandler:function(a){if(!a.buttonDown){for(var b=I.__cast(a.target,W);null!=b&&!I.__implements(b,db);)b=b.parent;I.__implements(b,db)?this._target==b?(this._toolTipStageX=a.stageX,this._toolTipStageY=a.stageY):(this.clearTarget(),this._target=b,null==this._target.get_toolTip()?this._target=null:(this._target.addEventListener("mouseDown",h(this,this.defaultToolTipManager_target_mouseDownHandler),!1,0,!0),this._target.addEventListener("rightMouseDown", +h(this,this.defaultToolTipManager_target_rightMouseDownHandler),!1,0,!0),this._target.addEventListener("middleMouseDown",h(this,this.defaultToolTipManager_target_middleMouseDownHandler),!1,0,!0),this._target.addEventListener("rollOut",h(this,this.defaultToolTipManager_target_rollOutHandler),!1,0,!0),this._target.addEventListener("removedFromStage",h(this,this.defaultToolTipManager_target_removedFromStageHandler),!1,0,!0),this._toolTipStageX=a.stageX,this._toolTipStageY=a.stageY,this._delayTimeoutID= +Ca.setTimeout(h(this,this.hoverDelayCallback),1E3*this._delay|0))):this.clearTarget()}},defaultToolTipManager_target_mouseDownHandler:function(a){this.hideToolTip()},defaultToolTipManager_target_rightMouseDownHandler:function(a){this.hideToolTip()},defaultToolTipManager_target_middleMouseDownHandler:function(a){this.hideToolTip()},defaultToolTipManager_target_rollOutHandler:function(a){this.clearTarget()},defaultToolTipManager_target_removedFromStageHandler:function(a){this.clearTarget()},__class__:H}; +var ja=w["feathers.core._FeathersControl.StyleDefinition"]={__ename__:!0,__constructs__:null,Name:(C=function(a){return{_hx_index:0,name:a,__enum__:"feathers.core._FeathersControl.StyleDefinition",toString:g}},C._hx_name="Name",C.__params__=["name"],C),NameAndState:(C=function(a,b){return{_hx_index:1,name:a,state:b,__enum__:"feathers.core._FeathersControl.StyleDefinition",toString:g}},C._hx_name="NameAndState",C.__params__=["name","state"],C)};ja.__constructs__=[ja.Name,ja.NameAndState];var oa=function(){}; +oa.__name__="feathers.core.FocusManager";oa.__properties__={get_focusManagerFactory:"get_focusManagerFactory"};oa.defaultFocusManagerFactory=function(a){return new oc(a)};oa.get_focusManagerFactory=function(){return oa._focusManagerFactory};oa.hasRoot=function(a){return null!=oa.stageToManager.h.__keys__[a.__id__]};oa.addRoot=function(a){if(null==a)throw new Kb("FocusManager stage argument must not be null.");if(null!=oa.stageToManager.h.__keys__[a.__id__])throw new Kb("Focus manager root already exists"); +var b=oa.get_focusManagerFactory();null==b&&(b=oa.defaultFocusManagerFactory);b=b(a);b.addEventListener("clear",oa.focusManager_clearHandler,!1,0,!0);oa.stageToManager.set(a,b);return b};oa.removeRoot=function(a){a=oa.stageToManager.h[a.__id__];null!=a&&a.dispose()};oa.focusManager_clearHandler=function(a){a=I.__cast(a.currentTarget,Pc);a.removeEventListener("clear",oa.focusManager_clearHandler);a=a.get_root();a=a instanceof Wc?a:null;null!=a&&oa.stageToManager.remove(a)};var ra=function(){};ra.__name__= +"feathers.core.IDataSelector";ra.__isInterface__=!0;var pc=function(){};pc.__name__="feathers.core.IFocusContainer";pc.__isInterface__=!0;pc.__interfaces__=[hb];pc.prototype={__class__:pc,__properties__:{get_childFocusEnabled:"get_childFocusEnabled"}};var Db=function(){};Db.__name__="feathers.core.IFocusExclusions";Db.__isInterface__=!0;Db.__interfaces__=[qa];Db.prototype={__class__:Db,__properties__:{get_focusExclusions:"get_focusExclusions"}};var Xa=function(){};Xa.__name__="feathers.core.IFocusExtras"; +Xa.__isInterface__=!0;Xa.__interfaces__=[qa];Xa.prototype={__class__:Xa,__properties__:{get_focusExtrasAfter:"get_focusExtrasAfter",get_focusExtrasBefore:"get_focusExtrasBefore"}};var Nd=function(){};Nd.__name__="feathers.core.IIndexSelector";Nd.__isInterface__=!0;var yc=function(){};yc.__name__="feathers.core.IScaleManager";yc.__isInterface__=!0;yc.__interfaces__=[E];yc.prototype={__class__:yc,__properties__:{set_target:"set_target"}};var Jc=function(){};Jc.__name__="feathers.core.IStateObserver"; +Jc.__isInterface__=!0;Jc.prototype={__class__:Jc,__properties__:{set_stateContext:"set_stateContext"}};var T=w["feathers.core.InvalidationFlag"]={__ename__:!0,__constructs__:null,STATE:{_hx_name:"STATE",_hx_index:0,__enum__:"feathers.core.InvalidationFlag",toString:g},SIZE:{_hx_name:"SIZE",_hx_index:1,__enum__:"feathers.core.InvalidationFlag",toString:g},STYLES:{_hx_name:"STYLES",_hx_index:2,__enum__:"feathers.core.InvalidationFlag",toString:g},SKIN:{_hx_name:"SKIN",_hx_index:3,__enum__:"feathers.core.InvalidationFlag", +toString:g},LAYOUT:{_hx_name:"LAYOUT",_hx_index:4,__enum__:"feathers.core.InvalidationFlag",toString:g},DATA:{_hx_name:"DATA",_hx_index:5,__enum__:"feathers.core.InvalidationFlag",toString:g},SCROLL:{_hx_name:"SCROLL",_hx_index:6,__enum__:"feathers.core.InvalidationFlag",toString:g},SELECTION:{_hx_name:"SELECTION",_hx_index:7,__enum__:"feathers.core.InvalidationFlag",toString:g},FOCUS:{_hx_name:"FOCUS",_hx_index:8,__enum__:"feathers.core.InvalidationFlag",toString:g},SORT:{_hx_name:"SORT",_hx_index:9, +__enum__:"feathers.core.InvalidationFlag",toString:g},CUSTOM:(C=function(a){return{_hx_index:10,value:a,__enum__:"feathers.core.InvalidationFlag",toString:g}},C._hx_name="CUSTOM",C.__params__=["value"],C)};T.__constructs__=[T.STATE,T.SIZE,T.STYLES,T.SKIN,T.LAYOUT,T.DATA,T.SCROLL,T.SELECTION,T.FOCUS,T.SORT,T.CUSTOM];var rb=function(){};rb.__name__="feathers.core.PopUpManager";rb.forStage=function(a){if(null==a)throw new Kb("PopUpManager stage argument must not be null.");var b=rb.stageToManager.h[a.__id__]; +null==b&&(b=rb.popUpManagerFactory,null==b&&(b=rb.defaultPopUpManagerFactory),b=b(a),rb.stageToManager.set(a,b));return b};rb.addPopUp=function(a,b,c,d,f){null==d&&(d=!0);null==c&&(c=!0);if(null==b)throw new Kb("The pop-up's owner must not be null.");b=b.stage;if(null==b)throw new Kb("The stage property of a pop-up's owner must not be null.");return rb.forStage(b).addPopUp(a,c,d,f)};rb.removePopUp=function(a){var b=a.stage;return null==b?a:rb.forStage(b).removePopUp(a)};rb.isPopUp=function(a){if(null== +a)return!1;var b=a.stage;return null==b?!1:rb.forStage(b).isPopUp(a)};rb.defaultPopUpManagerFactory=function(a){return new p(a)};var ec=function(a){B.call(this);this._scaler=a};ec.__name__="feathers.core.ScreenDensityScaleManager";ec.__interfaces__=[yc];ec.__super__=B;ec.prototype=u(B.prototype,{set_target:function(a){if(this._target==a)return this._target;null!=this._target&&(this.removeTargetStageListeners(),this._target.removeEventListener("addedToStage",h(this,this.screenDensityScaleManager_target_addedToStageHandler)), +this._target.removeEventListener("removedFromStage",h(this,this.screenDensityScaleManager_target_removedFromStageHandler)));this._target=a;null!=this._target&&(this._target.addEventListener("addedToStage",h(this,this.screenDensityScaleManager_target_addedToStageHandler),!1,0,!0),this._target.addEventListener("removedFromStage",h(this,this.screenDensityScaleManager_target_removedFromStageHandler),!1,0,!0),this.addTargetStageListeners());Wa.dispatch(this,"change");return this._target},getScale:function(){var a= +1;if(null==this._target)return a;var b=I.__cast(t,Window).document.getElementById("viewport");if(null!=b&&"meta"==b.localName&&(b=b.getAttribute("content"),-1!=b.indexOf("user-scalable=no"))){var c=new F("initial-scale=(\\d(?:\\.\\d+)?)","");c.match(b)&&(b=parseFloat(c.matched(1)),a*=1/b)}return a},getBounds:function(){var a=new ca;if(null==this._target)return a;var b=this._target.stage;if(null==b)return a;var c=Math.floor(this._target.get_scaleX())!=this._target.get_scaleX(),d=Math.floor(b.stageWidth); +c&&(d=Oe.roundDownToNearest(d,2));a.width=d;b=Math.floor(b.stageHeight);c&&(b=Oe.roundDownToNearest(b,2));a.height=b;return a},addTargetStageListeners:function(){null!=this._target&&null!=this._target.stage&&this._target.stage.addEventListener("resize",h(this,this.screenDensityScaleManager_stage_resizeHandler),!1,0,!0)},removeTargetStageListeners:function(){null!=this._target&&null!=this._target.stage&&this._target.stage.removeEventListener("resize",h(this,this.screenDensityScaleManager_stage_resizeHandler))}, +screenDensityScaleManager_target_addedToStageHandler:function(a){this.addTargetStageListeners()},screenDensityScaleManager_target_removedFromStageHandler:function(a){this.removeTargetStageListeners()},screenDensityScaleManager_stage_resizeHandler:function(a){Wa.dispatch(this,"change")},__class__:ec,__properties__:{set_target:"set_target"}});var Od=function(){this._selectedIndex=-1;this._items=[];B.call(this)};Od.__name__="feathers.core.ToggleGroup";Od.__interfaces__=[ra,Nd];Od.__super__=B;Od.prototype= +u(B.prototype,{get_selectedItem:function(){return-1==this._selectedIndex?null:this._items[this._selectedIndex]},__class__:Od,__properties__:{get_selectedItem:"get_selectedItem"}});var pb=function(){};pb.__name__="feathers.core.ToolTipManager";pb.__properties__={get_toolTipManagerFactory:"get_toolTipManagerFactory"};pb.defaultToolTipManagerFactory=function(a){return new H(a)};pb.get_toolTipManagerFactory=function(){return pb._toolTipManagerFactory};pb.hasRoot=function(a){return null!=pb.stageToManager.h.__keys__[a.__id__]}; +pb.addRoot=function(a){if(null==a)throw new Kb("ToolTipManager stage argument must not be null.");if(null!=pb.stageToManager.h.__keys__[a.__id__])throw new Kb("Tool tip manager root already exists");var b=pb.get_toolTipManagerFactory();null==b&&(b=pb.defaultToolTipManagerFactory);b=b(a);pb.stageToManager.set(a,b);return b};pb.removeRoot=function(a){var b=pb.stageToManager.h[a.__id__];null!=b&&(b.dispose(),pb.stageToManager.remove(a))};var Ic=function(a){this._validating=!1;this._queue=[];this._stage= +a;this._stage.addEventListener("render",h(this,this.validationQueue_stage_renderHandler),!1,-1E3,!0)};Ic.__name__="feathers.core.ValidationQueue";Ic.forStage=function(a){if(null==a)return null;null==Ic.STAGE_TO_VALIDATION_QUEUE.h.__keys__[a.__id__]&&Ic.STAGE_TO_VALIDATION_QUEUE.set(a,new Ic(a));return Ic.STAGE_TO_VALIDATION_QUEUE.h[a.__id__]};Ic.prototype={addControl:function(a){if(-1==this._queue.indexOf(a)){var b=this._queue.length;if(this._validating){var c=a.get_depth();for(--b;0<=b;){var d=this._queue[b].get_depth(); +if(c>=d)break;--b}++b;this._queue.splice(b,0,a)}else this._queue[b]=a,this._stage.invalidate()}},validateNow:function(){if(!this._validating){var a=this._queue.length;if(0!=a){this._validating=!0;for(1a?1:0});0a.get_depth()||a.validateNow();this._validating=!1}}},validationQueue_stage_renderHandler:function(a){this.validateNow()},__class__:Ic};var lg=function(){this._data= +new Sa};lg.__name__="feathers.dragDrop.DragData";lg.prototype={exists:function(a){return Object.prototype.hasOwnProperty.call(this._data.h,a)},get:function(a){return this._data.h[a]},set:function(a,b){this._data.h[a]=b},__class__:lg};var M=function(){};M.__name__="feathers.dragDrop.DragDropManager";M.__properties__={get_dragging:"get_dragging"};M.get_dragging=function(){return null!=M.dragData};M.startDrag=function(a,b,c,d,f){null==f&&(f=0);null==d&&(d=0);M.get_dragging()&&M.cancelDrag();if(null== +a)throw new Kb("Drag source must not be null.");if(null==b)throw new Kb("Drag data must not be null.");M.dragSource=a;M.dragData=b;M.dragAvatar=c;M.dragAvatarOffsetX=d;M.dragAvatarOffsetY=f;a=I.__cast(a,W);M._dragSourceStage=a.stage;null==M.dragAvatar&&(M._dragSourceBitmapData=new Ib(Math.ceil(1*a.get_width()),Math.ceil(1*a.get_height())),c=new fa,c.scale(1,1),M._dragSourceBitmapData.draw(a,c),M.dragAvatar=new Pe(M._dragSourceBitmapData),M.dragAvatar.set_alpha(.75),M.dragAvatar.set_scaleX(1),M.dragAvatar.set_scaleY(1)); +M.dragAvatar instanceof S&&(a=M.dragAvatar,M._oldDragAvatarMouseEnabled=a.mouseEnabled,a.mouseEnabled=!1);M.dragAvatar instanceof ia&&(a=M.dragAvatar,M._oldDragAvatarMouseChildren=a.mouseChildren,a.mouseChildren=!1);M.dragAvatar.set_x(M._dragSourceStage.get_mouseX()+M.dragAvatarOffsetX);M.dragAvatar.set_y(M._dragSourceStage.get_mouseY()+M.dragAvatarOffsetY);rb.addPopUp(M.dragAvatar,M._dragSourceStage,!1,!1);M._dragSourceStage.addEventListener("mouseMove",M.dragDropManager_stage_mouseMoveHandler,!1, +0,!0);M._dragSourceStage.addEventListener("mouseUp",M.dragDropManager_stage_mouseUpHandler,!1,0,!0);qc.dispatch(M.dragSource,"dragStart",b,!1,null,null,M.dragSource);M.updateDropTarget(M._dragSourceStage,M._dragSourceStage.get_mouseX(),M._dragSourceStage.get_mouseY())};M.acceptDrag=function(a){if(M.currentDropTarget!=a)throw new Kb("Drop target cannot accept a drag at this time. Acceptance may only happen after the DragDropEvent.DRAG_ENTER event is dispatched and before the DragDropEvent.DRAG_EXIT event is dispatched."); +M.dropAccepted=!0};M.cancelDrag=function(){M.get_dragging()&&M.completeDrag(!1)};M.completeDrag=function(a){if(!M.get_dragging())throw new Bb("Drag cannot be completed because none is currently active.");null!=M.currentDropTarget&&(qc.dispatch(M.currentDropTarget,"dragExit",M.dragData,!1,M._dropTargetLocalX,M._dropTargetLocalY,M.dragSource),M.currentDropTarget=null);var b=M.dragSource,c=M.dragData;M.cleanup();qc.dispatch(b,"dragComplete",c,a,null,null,b)};M.cleanup=function(){null!=M._dragSourceStage&& +(M._dragSourceStage.removeEventListener("mouseMove",M.dragDropManager_stage_mouseMoveHandler),M._dragSourceStage.removeEventListener("mouseUp",M.dragDropManager_stage_mouseUpHandler),M._dragSourceStage=null);null!=M._dragSourceBitmapData&&(M._dragSourceBitmapData.dispose(),M._dragSourceBitmapData=null);null!=M.dragAvatar&&(rb.isPopUp(M.dragAvatar)&&rb.removePopUp(M.dragAvatar),M.dragAvatar instanceof S&&(M.dragAvatar.mouseEnabled=M._oldDragAvatarMouseEnabled),M.dragAvatar instanceof ia&&(M.dragAvatar.mouseChildren= +M._oldDragAvatarMouseChildren),M.dragAvatar=null);M.dragSource=null;M.dragData=null};M.updateDropTarget=function(a,b,c){b=new Ma(b,c);c=null;a=a.getObjectsUnderPoint(b);for(var d=0;dg?g=0:100p&&(n.set_height(p),I.__implements(n,La)&&n.validateNow()))}this.applyPercentWidth(a,b.width,b.minWidth, +b.maxWidth,d);k=this._paddingLeft;for(f=q=0;fb.maxWidth&&(D=b.maxWidth);p=q;null!=b.height?p=b.height:null!=b.minHeight&&pb.maxHeight&&(p=b.maxHeight);this.applyPercentHeight(a,p);for(f=0;fn&&(d+=(g-n)/(a.length-1)),d-=this._minGap;else{switch(this._horizontalAlign._hx_index){case 0:b=0;break;case 1:b= +(g-n)/2;break;case 2:b=g-n;break;default:throw new Kb("Unknown horizontal align: "+L.string(this._horizontalAlign));}0>b&&(b=0)}if(0!=b||0!=d)for(f=0;fv&&(v=0);I.__implements(m,Va)&&(g=m,D+=g.get_minWidth());n+=v;null!=h.get_marginLeft()&&(q+=h.get_marginLeft());null!=h.get_marginRight()&&(q+=h.get_marginRight());q+=f;k.push(m);continue}}q+=g.get_width()+f}q=q-f+(this._paddingLeft+this._paddingRight);100>n&&(n=100);null!=b?a=b:(a=q+D,null!=c&&a< +c?a=c:null!=d&&a>d&&(a=d));a-=q;0>a&&(a=0);for(c=!0;c;)for(c=!1,d=a/n,p=0;pv&&(v=0),h=d*v,I.__implements(m,Va)&&(g=m,g=g.get_explicitMinWidth(),null!=g&&g>a&&(g=a),hf?f=0:100b&&(q=b),fk&&(f=k)}d.set_height(f)}}}},__class__:je,__properties__:{set_verticalAlign:"set_verticalAlign",set_horizontalAlign:"set_horizontalAlign",set_gap:"set_gap",set_paddingLeft:"set_paddingLeft",set_paddingBottom:"set_paddingBottom",set_paddingRight:"set_paddingRight", +set_paddingTop:"set_paddingTop"}});var yf=function(){};yf.__name__="feathers.layout.ILayoutData";yf.__isInterface__=!0;yf.__interfaces__=[E];var gd=function(a,b){this._percentWidth=this._percentHeight=this._marginLeft=this._marginRight=null;B.call(this);this.set_percentWidth(a);this.set_percentHeight(b)};gd.__name__="feathers.layout.HorizontalLayoutData";gd.__interfaces__=[yf];gd.__super__=B;gd.prototype=u(B.prototype,{get_percentWidth:function(){return this._percentWidth},set_percentWidth:function(a){if(this._percentWidth== +a)return this._percentWidth;this._percentWidth=a;Wa.dispatch(this,"change");return this._percentWidth},get_percentHeight:function(){return this._percentHeight},set_percentHeight:function(a){if(this._percentHeight==a)return this._percentHeight;this._percentHeight=a;Wa.dispatch(this,"change");return this._percentHeight},get_marginLeft:function(){return this._marginLeft},get_marginRight:function(){return this._marginRight},__class__:gd,__properties__:{get_marginRight:"get_marginRight",get_marginLeft:"get_marginLeft", +set_percentHeight:"set_percentHeight",get_percentHeight:"get_percentHeight",set_percentWidth:"set_percentWidth",get_percentWidth:"get_percentWidth"}});var Jd=function(){this.reset()};Jd.__name__="feathers.layout.LayoutBoundsResult";Jd.prototype={reset:function(){this.contentMinHeight=this.contentMinWidth=this.contentHeight=this.contentWidth=this.contentY=this.contentX=0;this.contentMaxWidth=1/0;this.contentMaxHeight=1/0;this.viewPortHeight=this.viewPortWidth=0},__class__:Jd};var ta=function(a){this.width= +this.height=this.minWidth=this.minHeight=this.maxWidth=this.maxHeight=null;this.save(a)};ta.__name__="feathers.layout.Measurements";ta.prototype={save:function(a){null==a?this.maxHeight=this.maxWidth=this.minHeight=this.minWidth=this.height=this.width=null:I.__implements(a,Va)?(this.width=a.get_explicitWidth(),this.height=a.get_explicitHeight(),this.minWidth=a.get_explicitMinWidth(),this.minHeight=a.get_explicitMinHeight(),this.maxWidth=a.get_explicitMaxWidth(),this.maxHeight=a.get_explicitMaxHeight()): +(this.width=a.get_width(),this.height=a.get_height(),this.minWidth=this.width,this.minHeight=this.height,this.maxWidth=this.width,this.maxHeight=this.height)},restore:function(a){I.__implements(a,Va)?(null==this.width?a.resetWidth():a.set_width(this.width),null==this.height?a.resetHeight():a.set_height(this.height),null==this.minWidth?a.resetMinWidth():a.set_minWidth(this.minWidth),null==this.minHeight?a.resetMinHeight():a.set_minHeight(this.minHeight),null==this.maxWidth?a.resetMaxWidth():a.set_maxWidth(this.maxWidth), +null==this.maxHeight?a.resetMaxHeight():a.set_maxHeight(this.maxHeight)):(null!=this.width&&a.set_width(this.width),null!=this.height&&a.set_height(this.height))},__class__:ta};var Qa=w["feathers.layout.RelativePosition"]={__ename__:!0,__constructs__:null,TOP:{_hx_name:"TOP",_hx_index:0,__enum__:"feathers.layout.RelativePosition",toString:g},RIGHT:{_hx_name:"RIGHT",_hx_index:1,__enum__:"feathers.layout.RelativePosition",toString:g},BOTTOM:{_hx_name:"BOTTOM",_hx_index:2,__enum__:"feathers.layout.RelativePosition", +toString:g},LEFT:{_hx_name:"LEFT",_hx_index:3,__enum__:"feathers.layout.RelativePosition",toString:g},MANUAL:{_hx_name:"MANUAL",_hx_index:4,__enum__:"feathers.layout.RelativePosition",toString:g}};Qa.__constructs__=[Qa.TOP,Qa.RIGHT,Qa.BOTTOM,Qa.LEFT,Qa.MANUAL];var Yb=w["feathers.layout.VerticalAlign"]={__ename__:!0,__constructs__:null,TOP:{_hx_name:"TOP",_hx_index:0,__enum__:"feathers.layout.VerticalAlign",toString:g},MIDDLE:{_hx_name:"MIDDLE",_hx_index:1,__enum__:"feathers.layout.VerticalAlign", +toString:g},BOTTOM:{_hx_name:"BOTTOM",_hx_index:2,__enum__:"feathers.layout.VerticalAlign",toString:g},JUSTIFY:{_hx_name:"JUSTIFY",_hx_index:3,__enum__:"feathers.layout.VerticalAlign",toString:g}};Yb.__constructs__=[Yb.TOP,Yb.MIDDLE,Yb.BOTTOM,Yb.JUSTIFY];var Ne=function(){this._justifyResetEnabled=this._percentWidthResetEnabled=this._percentHeightResetEnabled=!1;this._verticalAlign=Yb.TOP;this._horizontalAlign=cc.LEFT;this._paddingTop=this._paddingRight=this._paddingBottom=this._paddingLeft=this._gap= +this._minGap=0;B.call(this)};Ne.__name__="feathers.layout.VerticalLayout";Ne.__interfaces__=[xf,Pd];Ne.__super__=B;Ne.prototype=u(B.prototype,{set_gap:function(a){if(this._gap==a)return this._gap;this._gap=a;Wa.dispatch(this,"change");return this._gap},set_horizontalAlign:function(a){if(this._horizontalAlign==a)return this._horizontalAlign;this._horizontalAlign=a;Wa.dispatch(this,"change");return this._horizontalAlign},set_verticalAlign:function(a){if(this._verticalAlign==a)return this._verticalAlign; +this._verticalAlign=a;Wa.dispatch(this,"change");return this._verticalAlign},layout:function(a,b,c){var d=this._gap,f=this._gap==1/0;f&&(d=this._minGap);var k=this._horizontalAlign==cc.JUSTIFY,q=b.width;null!=q&&(q-=this._paddingLeft+this._paddingRight);var D=b.height;null!=D&&(D-=this._paddingTop+this._paddingBottom);for(f=0;fp?p=0:100p&& +(n.set_width(p),I.__implements(n,La)&&n.validateNow()))}this.applyPercentHeight(a,b.height,b.minHeight,b.maxHeight,d);k=0;q=this._paddingTop;for(f=0;fb.maxWidth&&(D=b.maxWidth);p=q;null!=b.height?p=b.height:null!=b.minHeight&&pb.maxHeight&&(p=b.maxHeight);this.applyPercentWidth(a,D);for(f=0;fn&&(d+=(g-n)/(a.length- +1)),d-=this._minGap;else{switch(this._verticalAlign._hx_index){case 0:b=0;break;case 1:b=(g-n)/2;break;case 2:b=g-n;break;default:throw new Kb("Unknown vertical align: "+L.string(this._verticalAlign));}0>b&&(b=0)}if(0!=b||0!=d)for(f=0;ff?f=0:100b&&(q=b),fk&&(f=k)}d.set_width(f)}}}},applyPercentHeight:function(a,b, +c,d,f){for(var k=[],q=0,D=0,n=0,p=0;pv&&(v=0);I.__implements(m,Va)&&(g=m,D+=g.get_minHeight());n+=v;null!=h.get_marginTop()&&(q+=h.get_marginTop());null!=h.get_marginBottom()&&(q+=h.get_marginBottom());q+=f;k.push(m);continue}}q+=g.get_height()+f}q=q-f+(this._paddingTop+this._paddingBottom);100>n&&(n=100); +null!=b?a=b:(a=q+D,null!=c&&ad&&(a=d));a-=q;0>a&&(a=0);for(c=!0;c;)for(c=!1,d=a/n,p=0;pv&&(v=0),h=d*v,I.__implements(m,Va)&&(g=m,g=g.get_explicitMinHeight(),null!=g&&g>a&&(g=a),h>16&255)+(b>>16&255);255>8&255)+ +(b>>8&255);255>16&255)-(b>>16&255);0>c&&(c=0);var d=(a>>8&255)-(b>>8&255);0>d&&(d=0);a=(a&255)-(b&255);0>a&&(a=0);return(c<<16)+(d<<8)+a},mediaQueryList_changeHandler:function(a){this.refreshFontSizes();this.refreshPaddings();Fb.dispatch(this.styleProvider,"stylesChange")},__class__:Kc});var zf=function(a,b){Kc.call(this,a,b)};zf.__name__="feathers.themes.steel.DefaultSteelTheme";zf.__super__=Kc;zf.prototype= +u(Kc.prototype,{__class__:zf});var vf=function(){};vf.__name__="feathers.themes.steel.components.SteelApplicationStyles";vf.initialize=function(a){if(null==a){var b=Ub.get_fallbackTheme();a=b instanceof Kc?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(da,null)&&b.setStyleFunction(da,null,function(b){null==b.get_scaleManager()&&b.set_scaleManager(new ec);vf.refreshStageColor(b.stage,a)}))};vf.refreshStageColor=function(a,b){null!=a&&a.set_color(b.rootFillColor)};var eh=function(){};eh.__name__= +"feathers.themes.steel.components.SteelButtonStyles";eh.initialize=function(a){if(null==a){var b=Ub.get_fallbackTheme();a=b instanceof Kc?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(Hb,null)&&b.setStyleFunction(Hb,null,function(b){if(null==b.get_backgroundSkin()){var c=new xc;c.set_fill(a.getButtonFill());c.set_disabledFill(a.getButtonDisabledFill());c.setFillForState(Mb.DOWN,a.getReversedActiveThemeFill());c.set_border(a.getButtonBorder());c.set_disabledBorder(a.getButtonDisabledBorder()); +c.setBorderForState(Mb.DOWN,a.getActiveFillBorder());c.set_cornerRadius(3);b.set_backgroundSkin(c)}null==b.get_focusRectSkin()&&(c=new xc,c.set_fill(Qb.None),c.set_border(a.getFocusBorder()),c.set_cornerRadius(3),b.set_focusRectSkin(c));null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat());b.set_paddingTop(a.smallPadding);b.set_paddingRight(a.largePadding);b.set_paddingBottom(a.smallPadding);b.set_paddingLeft(a.largePadding); +b.set_gap(a.smallPadding)}),null==b.getStyleFunction(Hb,Hb.VARIANT_PRIMARY)&&b.setStyleFunction(Hb,Hb.VARIANT_PRIMARY,function(b){if(null==b.get_backgroundSkin()){var c=new xc;c.set_fill(a.getActiveThemeFill());c.set_disabledFill(a.getButtonDisabledFill());c.setFillForState(Mb.DOWN,a.getReversedActiveThemeFill());c.set_border(a.getActiveFillBorder());c.set_disabledBorder(a.getButtonDisabledBorder());c.set_cornerRadius(3);b.set_backgroundSkin(c)}null==b.get_focusRectSkin()&&(c=new xc,c.set_fill(Qb.None), +c.set_border(a.getFocusBorder()),c.set_cornerRadius(3),b.set_focusRectSkin(c));null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat());b.set_paddingTop(a.smallPadding);b.set_paddingRight(a.largePadding);b.set_paddingBottom(a.smallPadding);b.set_paddingLeft(a.largePadding);b.set_gap(a.smallPadding)}),null==b.getStyleFunction(Hb,Hb.VARIANT_DANGER)&&b.setStyleFunction(Hb,Hb.VARIANT_DANGER,function(b){if(null== +b.get_backgroundSkin()){var c=new xc;c.set_fill(a.getDangerFill());c.set_disabledFill(a.getButtonDisabledFill());c.setFillForState(Mb.DOWN,a.getReversedDangerFill());c.set_border(a.getDangerBorder());c.set_disabledBorder(a.getButtonDisabledBorder());c.set_cornerRadius(3);b.set_backgroundSkin(c)}null==b.get_focusRectSkin()&&(c=new xc,c.set_fill(Qb.None),c.set_border(a.getFocusBorder()),c.set_cornerRadius(3),b.set_focusRectSkin(c));null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null== +b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat());b.set_paddingTop(a.smallPadding);b.set_paddingRight(a.largePadding);b.set_paddingBottom(a.smallPadding);b.set_paddingLeft(a.largePadding);b.set_gap(a.smallPadding)}))};var fh=function(){};fh.__name__="feathers.themes.steel.components.SteelLabelStyles";fh.initialize=function(a){if(null==a){var b=Ub.get_fallbackTheme();a=b instanceof Kc?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(bb,null)&&b.setStyleFunction(bb, +null,function(b){null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat())}),null==b.getStyleFunction(bb,bb.VARIANT_HEADING)&&b.setStyleFunction(bb,bb.VARIANT_HEADING,function(b){null==b.get_textFormat()&&b.set_textFormat(a.getHeaderTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledHeaderTextFormat())}),null==b.getStyleFunction(bb,bb.VARIANT_DETAIL)&&b.setStyleFunction(bb, +bb.VARIANT_DETAIL,function(b){null==b.get_textFormat()&&b.set_textFormat(a.getDetailTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledDetailTextFormat())}),null==b.getStyleFunction(bb,bb.VARIANT_DANGER)&&b.setStyleFunction(bb,bb.VARIANT_DANGER,function(b){null==b.get_textFormat()&&b.set_textFormat(a.getDangerTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat())}))};var dh=function(){};dh.__name__="feathers.themes.steel.components.SteelLayoutGroupStyles"; +dh.initialize=function(a){if(null==a){var b=Ub.get_fallbackTheme();a=b instanceof Kc?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(ma,ma.VARIANT_TOOL_BAR)&&b.setStyleFunction(ma,ma.VARIANT_TOOL_BAR,function(b){var c=oe.isDesktop();if(null==b.get_backgroundSkin()){var f=new xc;f.set_fill(a.getHeaderFill());f.set_border(Qc.None);c?(f.set_width(32),f.set_height(32),f.set_minHeight(32)):(f.set_width(44),f.set_height(44),f.set_minHeight(44));b.set_backgroundSkin(f)}null==b.get_layout()&& +(c=new je,c.set_horizontalAlign(cc.LEFT),c.set_verticalAlign(Yb.MIDDLE),c.set_paddingTop(a.smallPadding),c.set_paddingRight(a.largePadding),c.set_paddingBottom(a.smallPadding),c.set_paddingLeft(a.largePadding),c.set_gap(a.smallPadding),b.set_layout(c))}))};var hh=function(){};hh.__name__="feathers.themes.steel.components.SteelToolTipStyles";hh.initialize=function(a){if(null==a){var b=Ub.get_fallbackTheme();a=b instanceof Kc?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(bb,H.CHILD_VARIANT_TOOL_TIP)&& +b.setStyleFunction(bb,H.CHILD_VARIANT_TOOL_TIP,function(b){if(null==b.get_backgroundSkin()){var c=new xc;c.set_border(a.getBorder());c.set_fill(a.getContainerFill());c.set_cornerRadius(2);c.set_maxWidth(276);b.set_backgroundSkin(c)}null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledDetailTextFormat());b.set_wordWrap(!0);b.set_paddingTop(a.xsmallPadding);b.set_paddingRight(a.xsmallPadding);b.set_paddingBottom(a.xsmallPadding); +b.set_paddingLeft(a.xsmallPadding)}))};var tc=function(){};tc.__name__="feathers.utils.DPadFocusUtil";tc.isBetterFocusForRelativePosition=function(a,b,c,d){var f=a.getBounds(a.stage);a=tc.calculateMinPrimaryAxisDistanceForRelativePosition(c,f,d);if(Infinity==a)return!1;var k=tc.calculateMaxPrimaryAxisDistanceForRelativePosition(c,f,d),q=tc.calculateSecondaryAxisDistanceForRelativePosition(c,f,d),D=tc.itemsAreOnSameAxis(c,f,d),n=Infinity,p=Infinity,g=Infinity;f=!1;null!=b&&(f=b.getBounds(b.stage), +n=tc.calculateMinPrimaryAxisDistanceForRelativePosition(c,f,d),p=tc.calculateMaxPrimaryAxisDistanceForRelativePosition(c,f,d),g=tc.calculateSecondaryAxisDistanceForRelativePosition(c,f,d),f=tc.itemsAreOnSameAxis(c,f,d));if(D&&f)return 0b.get_bottom()||a.y>=b.get_bottom())if(a=a.get_bottom()-b.y,0b.get_right()||a.x>=b.get_right())if(a=a.get_right()- +b.x,0b.get_bottom()||a.y>=b.get_bottom())if(a=a.get_bottom()-b.get_bottom(),0b.get_right()||a.x>=b.get_right())if(a=a.get_right()-b.get_right(),0a)a=b.get_explicitMinWidth();null==a&&(a=0);b.set_minWidth(a);if(null==k||null!=b.get_explicitMinHeight()&&b.get_explicitMinHeight()>k)k=b.get_explicitMinHeight();null==k&&(k=0);b.set_minHeight(k);if(null==q||null!= +b.get_explicitMaxWidth()&&b.get_explicitMaxWidth()c&&(c=d),++d,d>=a.length)break}else c=-1}if(0<=c)break}return 0<=c?a.slice(0,c):a},equalItems:function(a,b){if(null==a)return null==b?!0:!1;switch(a._hx_index){case 0:return null==b?!1:0==b._hx_index?!0:!1;case 1:return null==b?!1:1==b._hx_index?a.m==b.m:!1;case 2:if(null==b)return!1;if(2==b._hx_index){var c=b.s,d=b.line,f=b.column,k=a.column,q=a.line,D=a.s;return a.file==b.file&&q==d&&k==f?id.equalItems(D,c):!1}return!1;case 3:return null== +b?!1:3==b._hx_index?(c=b.method,d=a.method,a.classname==b.classname?d==c:!1):!1;case 4:return null==b?!1:4==b._hx_index?a.v==b.v:!1}},itemToString:function(a,b){switch(b._hx_index){case 0:a.b+="a C function";break;case 1:b=b.m;a.b+="module ";a.b+=null==b?"null":""+b;break;case 2:var c=b.s,d=b.file,f=b.line;b=b.column;null!=c&&(id.itemToString(a,c),a.b+=" (");a.b+=null==d?"null":""+d;a.b+=" line ";a.b+=null==f?"null":""+f;null!=b&&(a.b+=" column ",a.b+=null==b?"null":""+b);null!=c&&(a.b+=")");break; +case 3:c=b.classname;b=b.method;a.b+=L.string(null==c?"":c);a.b+=".";a.b+=null==b?"null":""+b;break;case 4:b=b.v,a.b+="local function #",a.b+=null==b?"null":""+b}}},Ja=function(a,b,c){Error.call(this,a);this.message=a;this.__previousException=b;this.__nativeException=null!=c?c:this;this.__skipStack=0;a=Error.prepareStackTrace;Error.prepareStackTrace=function(a){return a.stack};if(c instanceof Error)this.stack=c.stack;else{c=null;if(Error.captureStackTrace)Error.captureStackTrace(this,Ja), +c=this;else if(c=Error(),"undefined"==typeof c.stack){try{throw c;}catch(d){}this.__skipStack++}this.stack=c.stack}Error.prepareStackTrace=a};Ja.__name__="haxe.Exception";Ja.caught=function(a){return a instanceof Ja?a:a instanceof Error?new Ja(a.message,null,a):new Se(a,null,a)};Ja.thrown=function(a){if(a instanceof Ja)return a.get_native();if(a instanceof Error)return a;a=new Se(a);a.__skipStack++;return a};Ja.__super__=Error;Ja.prototype=u(Error.prototype,{unwrap:function(){return this.__nativeException}, +__shiftStack:function(){this.__skipStack++},get_message:function(){return this.message},get_native:function(){return this.__nativeException},get_stack:function(){var a=this.__exceptionStack;null==a&&(a=ya.toHaxe(ya.normalize(this.stack),this.__skipStack),this.setProperty("__exceptionStack",a));return a},setProperty:function(a,b){try{Object.defineProperty(this,a,{value:b})}catch(c){this[a]=b}},__class__:Ja,__properties__:{get_native:"get_native",get_stack:"get_stack",get_message:"get_message"}});var Fa= +function(a,b){this.high=a;this.low=b};Fa.__name__="haxe._Int64.___Int64";Fa.prototype={__class__:Fa};var ya=function(){};ya.__name__="haxe.NativeStackTrace";ya.saveStack=function(a){ya.lastError=a};ya.callStack=function(){var a=Error(""),b=ya.tryHaxeStack(a);if("undefined"==typeof b){try{throw a;}catch(c){}b=a.stack}return ya.normalize(b,2)};ya.exceptionStack=function(){return ya.normalize(ya.tryHaxeStack(ya.lastError))};ya.toHaxe=function(a,b){null==b&&(b=0);if(null==a)return[];if("string"==typeof a){a= +a.split("\n");"Error"==a[0]&&a.shift();for(var c=[],d=0,f=a.length;dk)){var q=a[k];k=q.match(/^ at ([$A-Za-z0-9_. ]+) \(([^)]+):([0-9]+):([0-9]+)\)$/);if(null!=k){q=k[1].split(".");"$hxClasses"==q[0]&&q.shift();var D=q.pop(),n=k[2],p=L.parseInt(k[3]);k=L.parseInt(k[4]);c.push(Lc.FilePos("Anonymous function"==D?Lc.LocalFunction():"Global code"==D?null:Lc.Method(q.join("."),D),n,p,k))}else c.push(Lc.Module(aa.trim(q)))}}return c}return 0c?"":ya.skipLines(a,--b,c+1)):a.substring(c)};var Sd=function(a){var b=this;this.id=setInterval(function(){b.run()},a)};Sd.__name__= +"haxe.Timer";Sd.delay=function(a,b){var c=new Sd(b);c.run=function(){c.stop();a()};return c};Sd.prototype={stop:function(){null!=this.id&&(clearInterval(this.id),this.id=null)},run:function(){},__class__:Sd};var Se=function(a,b,c){Ja.call(this,String(a),b,c);this.value=a;this.__skipStack++};Se.__name__="haxe.ValueException";Se.__super__=Ja;Se.prototype=u(Ja.prototype,{unwrap:function(){return this.value},__class__:Se});var Wb=function(a){this.length=a.byteLength;this.b=new Uint8Array(a);this.b.bufferValue= +a;a.hxBytes=this;a.bytes=this.b};Wb.__name__="haxe.io.Bytes";Wb.ofString=function(a,b){b=[];for(var c=0;c=d&&(d=d-55232<<10|a.charCodeAt(c++)&1023);127>=d?b.push(d):(2047>=d?b.push(192|d>>6):(65535>=d?b.push(224|d>>12):(b.push(240|d>>18),b.push(128|d>>12&63)),b.push(128|d>>6&63)),b.push(128|d&63))}return new Wb((new Uint8Array(b)).buffer)};Wb.ofData=function(a){var b=a.hxBytes;return null!=b?b:new Wb(a)};Wb.prototype={blit:function(a,b,c,d){if(0> +a||0>c||0>d||a+d>this.length||c+d>b.length)throw Ja.thrown(pe.OutsideBounds);0==c&&d==b.b.byteLength?this.b.set(b.b,a):this.b.set(b.b.subarray(c,c+d),a)},getString:function(a,b,c){if(0>a||0>b||a+b>this.length)throw Ja.thrown(pe.OutsideBounds);c="";var d=this.b,f=zb.fromCharCode,k=a;for(a+=b;kb){if(0==b)break;c+=f(b)}else if(224>b)c+=f((b&63)<<6|d[k++]&127);else if(240>b){var q=d[k++];c+=f((b&31)<<12|(q&127)<<6|d[k++]&127)}else{q=d[k++];var D=d[k++];b=(b&15)<<18|(q&127)<<12|(D& +127)<<6|d[k++]&127;c+=f((b>>10)+55232);c+=f(b&1023|56320)}return c},__class__:Wb};var Rb=function(){};Rb.__name__="haxe.ds.ArraySort";Rb.sort=function(a,b){Rb.rec(a,b,0,a.length)};Rb.rec=function(a,b,c,d){var f=c+d>>1;if(12>d-c){if(!(d<=c))for(f=c+1;fc;){if(0>b(a[k],a[k-1]))Rb.swap(a,k-1,k);else break;--k}}else Rb.rec(a,b,c,f),Rb.rec(a,b,f,d),Rb.doMerge(a,b,c,f,d,f-c,d-f)};Rb.doMerge=function(a,b,c,d,f,k,q){if(0!=k&&0!=q)if(2==k+q)0>b(a[d],a[c])&&Rb.swap(a,d,c);else{if(k>q){var D= +k>>1;var n=c+D;var p=Rb.lower(a,b,d,f,n);var g=p-d}else g=q>>1,p=d+g,n=Rb.upper(a,b,c,d,p),D=n-c;Rb.rotate(a,b,n,d,p);d=n+g;Rb.doMerge(a,b,c,n,d,D,g);Rb.doMerge(a,b,d,p,f,k-D,q-g)}};Rb.rotate=function(a,b,c,d,f){if(c!=d&&d!=f)for(b=Rb.gcd(f-c,d-c);0!=b--;){for(var k=a[c+b],q=d-c,D=c+b,n=c+b+q;n!=c+b;)a[D]=a[n],D=n,n=f-n>q?n+q:c+(q-(f-n));a[D]=k}};Rb.gcd=function(a,b){for(;0!=b;){var c=a%b;a=b;b=c}return a};Rb.upper=function(a,b,c,d,f){d-=c;for(var k,q;0>1,q=c+k,0>b(a[f],a[q])?d=k:(c=q+1,d= +d-k-1);return c};Rb.lower=function(a,b,c,d,f){d-=c;for(var k,q;0>1,q=c+k,0>b(a[q],a[f])?(c=q+1,d=d-k-1):d=k;return c};Rb.swap=function(a,b,c){var d=a[b];a[b]=a[c];a[c]=d};var jd=function(){};jd.__name__="haxe.ds.BalancedTree";jd.__interfaces__=[ab];jd.iteratorLoop=function(a,b){null!=a&&(jd.iteratorLoop(a.left,b),b.push(a.value),jd.iteratorLoop(a.right,b))};jd.prototype={set:function(a,b){this.root=this.setLoop(a,b,this.root)},get:function(a){for(var b=this.root;null!=b;){var c=this.compare(a, +b.key);if(0==c)return b.value;b=0>c?b.left:b.right}return null},remove:function(a){try{return this.root=this.removeLoop(a,this.root),!0}catch(b){ya.lastError=b;if("string"==typeof Ja.caught(b).unwrap())return!1;throw b;}},exists:function(a){for(var b=this.root;null!=b;){var c=this.compare(a,b.key);if(0==c)return!0;b=0>c?b.left:b.right}return!1},iterator:function(){var a=[];jd.iteratorLoop(this.root,a);return new ud(a)},keys:function(){var a=[];this.keysLoop(this.root,a);return new ud(a)},setLoop:function(a, +b,c){if(null==c)return new rc(null,a,b,null);var d=this.compare(a,c.key);if(0==d)return new rc(c.left,a,b,c.right,null==c?0:c._height);if(0>d)return a=this.setLoop(a,b,c.left),this.balance(a,c.key,c.value,c.right);a=this.setLoop(a,b,c.right);return this.balance(c.left,c.key,c.value,a)},removeLoop:function(a,b){if(null==b)throw Ja.thrown("Not_found");var c=this.compare(a,b.key);return 0==c?this.merge(b.left,b.right):0>c?this.balance(this.removeLoop(a,b.left),b.key,b.value,b.right):this.balance(b.left, +b.key,b.value,this.removeLoop(a,b.right))},keysLoop:function(a,b){null!=a&&(this.keysLoop(a.left,b),b.push(a.key),this.keysLoop(a.right,b))},merge:function(a,b){if(null==a)return b;if(null==b)return a;var c=this.minBinding(b);return this.balance(a,c.key,c.value,this.removeMinBinding(b))},minBinding:function(a){if(null==a)throw Ja.thrown("Not_found");return null==a.left?a:this.minBinding(a.left)},removeMinBinding:function(a){return null==a.left?a.right:this.balance(this.removeMinBinding(a.left),a.key, +a.value,a.right)},balance:function(a,b,c,d){var f=null==a?0:a._height,k=null==d?0:d._height;return f>k+2?(f=a.left,k=a.right,(null==f?0:f._height)>=(null==k?0:k._height)?new rc(a.left,a.key,a.value,new rc(a.right,b,c,d)):new rc(new rc(a.left,a.key,a.value,a.right.left),a.right.key,a.right.value,new rc(a.right.right,b,c,d))):k>f+2?(f=d.right,k=d.left,(null==f?0:f._height)>(null==k?0:k._height)?new rc(new rc(a,b,c,d.left),d.key,d.value,d.right):new rc(new rc(a,b,c,d.left.left),d.left.key,d.left.value, +new rc(d.left.right,d.key,d.value,d.right))):new rc(a,b,c,d,(f>k?f:k)+1)},compare:function(a,b){return r.compare(a,b)},clear:function(){this.root=null},__class__:jd};var rc=function(a,b,c,d,f){null==f&&(f=-1);this.left=a;this.key=b;this.value=c;this.right=d;-1==f?(a=this.left,b=this.right,a=(null==a?0:a._height)>(null==b?0:b._height)?this.left:this.right,this._height=(null==a?0:a._height)+1):this._height=f};rc.__name__="haxe.ds.TreeNode";rc.prototype={__class__:rc};var Hc=function(){};Hc.__name__= +"haxe.ds.EnumValueMap";Hc.__interfaces__=[ab];Hc.__super__=jd;Hc.prototype=u(jd.prototype,{compare:function(a,b){var c=a._hx_index-b._hx_index;if(0!=c)return c;a=ob.enumParameters(a);b=ob.enumParameters(b);return 0==a.length&&0==b.length?0:this.compareArgs(a,b)},compareArgs:function(a,b){var c=a.length-b.length;if(0!=c)return c;c=0;for(var d=a.length;c>2);return new Float32Array(a.b.bufferValue,b,c)}},ud=function(a){this.current=0;this.array=a};ud.__name__="haxe.iterators.ArrayIterator";ud.prototype={hasNext:function(){return this.current";var c=typeof a;"function"==c&&(a.__name__||a.__ename__)&&(c="object");switch(c){case "function":return"";case "object":if(a.__enum__){var d= +w[a.__enum__].__constructs__[a._hx_index];c=d._hx_name;if(d.__params__){b+="\t";var f=[],k=0;for(d=d.__params__;kc.request.status||c.validStatus0&&0==c.request.status)?(c.processResponse(),b.complete(a)):(c.processResponse(),b.error(new qe(c.request.status,a))),c.request=null,Ba.activeRequests--,Ba.processQueue())})},__loadText:function(a,b){var c=this;this.binary= +!1;this.load(a,function(a){b.progress(a.loaded,a.total)},function(a){4==c.request.readyState&&(null!=c.request.status&&(200<=c.request.status&&400>c.request.status||c.validStatus0&&0==c.request.status)?(c.processResponse(),b.complete(c.request.responseText)):(c.processResponse(),b.error(new qe(c.request.status,c.request.responseText))),c.request=null,Ba.activeRequests--,Ba.processQueue())})},__class__:Ba};var re=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]}; +re.__name__="lime.app._Event_Dynamic_Void";re.prototype={add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,f=this.__priorities.length;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b, +1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;da.sourceCode.indexOf("[native code]"))return a.func=null,!0;a.sourceCode=null;throw Ja.thrown("Only static class functions can be made portable. Set -Dlime-warn-portability to see which line caused this.");}return null==a.func}},Na=function(a,b){this.__href=a;null!=b&&(this.__worker=b,this.__worker.onmessage=h(this,this.dispatchMessage),this.onMessage=new re); +Ue.disablePreserveClasses(this)};Na.__name__="lime._internal.backend.html5.HTML5Thread";Na.create=function(a){var b=new URL(Na.__current.__href);b.pathname=sa.substr(b.pathname,0,b.pathname.lastIndexOf("/")+1)+va.current.meta.h.file+".js";0this.parent.application.__backend.framePeriod?60:1E3==this.parent.application.__backend.framePeriod?0:1E3/this.parent.application.__backend.framePeriod},handleContextEvent:function(a){switch(a.type){case "webglcontextlost":a.cancelable&&a.preventDefault();this.parent.context=null;this.parent.onRenderContextLost.dispatch();break;case "webglcontextrestored":this.createContext(),this.parent.onRenderContextRestored.dispatch(this.parent.context)}}, +handleContextMenuEvent:function(a){(this.parent.onMouseUp.canceled||this.parent.onMouseDown.canceled)&&a.cancelable&&a.preventDefault()},handleCutOrCopyEvent:function(a){var b=Ob.get_text();null==b&&(b="");a.clipboardData.setData("text/plain",b);a.cancelable&&a.preventDefault()},handleDragEvent:function(a){switch(a.type){case "dragover":return a.preventDefault(),!1;case "dragstart":if("img"==I.__cast(a.target,HTMLElement).nodeName.toLowerCase()&&a.cancelable)return a.preventDefault(),!1;break;case "drop":if(null!= +a.dataTransfer&&0>12&4095],b[n+1]=d[p&4095],D+=3,n+=2;switch(f-3*k){case 1:p=a.b[D]<<16;b[n]=d[p>>12&4095]; +b[n+1]="==";break;case 2:p=a.b[D]<<16|a.b[D+1]<<8,b[n]=d[p>>12&4095],b[n+1]=c[p>>6&63]+"="}return b.join("")};var Ea=function(){};Ea.__name__="lime._internal.graphics.ImageCanvasUtil";Ea.colorTransform=function(a,b,c){Ea.convertToData(a);zc.colorTransform(a,b,c)};Ea.convertToCanvas=function(a,b){null==b&&(b=!1);var c=a.buffer;null!=c.__srcImage?(null==c.__srcCanvas&&(Ea.createCanvas(a,c.__srcImage.width,c.__srcImage.height),c.__srcContext.drawImage(c.__srcImage,0,0)),c.__srcImage=null):null==c.__srcCanvas&& +null!=c.data?(a.set_transparent(!0),Ea.createCanvas(a,c.width,c.height),Ea.createImageData(a),c.__srcContext.putImageData(c.__srcImageData,0,0)):a.type==$b.DATA&&null!=c.__srcImageData&&a.dirty&&(c.__srcContext.putImageData(c.__srcImageData,0,0),a.dirty=!1);b?(c.data=null,c.__srcImageData=null):null==c.data&&null!=c.__srcImageData&&(c.data=c.__srcImageData.data);a.type=$b.CANVAS};Ea.convertToData=function(a,b){null==b&&(b=!1);var c=a.buffer;null!=c.__srcImage&&Ea.convertToCanvas(a);if(null!=c.__srcCanvas&& +null==c.data)Ea.createImageData(a),a.type==$b.CANVAS&&(a.dirty=!1);else if(a.type==$b.CANVAS&&null!=c.__srcCanvas&&a.dirty){if(null==c.__srcImageData)Ea.createImageData(a);else{c.__srcImageData=c.__srcContext.getImageData(0,0,c.width,c.height);var d=c.__srcImageData.data.buffer;d=null!=d?new Uint8Array(d):null;c.data=d}a.dirty=!1}b&&(a.buffer.__srcCanvas=null,a.buffer.__srcContext=null);a.type=$b.DATA};Ea.copyChannel=function(a,b,c,d,f,k){Ea.convertToData(b);Ea.convertToData(a);zc.copyChannel(a,b, +c,d,f,k)};Ea.copyPixels=function(a,b,c,d,f,k,q){null==q&&(q=!1);null==d||d.x>=a.width||d.y>=a.height||null==c||1>c.width||1>c.height||(null!=f&&f.get_transparent()&&(null==k&&(k=new se),b=b.clone(),b.copyChannel(f,new Ac(c.x+k.x,c.y+k.y,c.width,c.height),new se(c.x,c.y),Td.ALPHA,Td.ALPHA)),Ea.convertToCanvas(a,!0),q||a.get_transparent()&&b.get_transparent()&&a.buffer.__srcContext.clearRect(d.x+a.offsetX,d.y+a.offsetY,c.width+a.offsetX,c.height+a.offsetY),Ea.convertToCanvas(b),null!=b.buffer.get_src()&& +(a.buffer.__srcContext.globalCompositeOperation="source-over",a.buffer.__srcContext.drawImage(b.buffer.get_src(),c.x+b.offsetX|0,c.y+b.offsetY|0,c.width|0,c.height|0,d.x+a.offsetX|0,d.y+a.offsetY|0,c.width|0,c.height|0)),a.dirty=!0,a.version++)};Ea.createCanvas=function(a,b,c){var d=a.buffer;null==d.__srcCanvas&&(d.__srcCanvas=window.document.createElement("canvas"),d.__srcCanvas.width=b,d.__srcCanvas.height=c,a.get_transparent()?d.__srcContext=d.__srcCanvas.getContext("2d"):(a.get_transparent()|| +d.__srcCanvas.setAttribute("moz-opaque","true"),d.__srcContext=d.__srcCanvas.getContext("2d",{alpha:!1})))};Ea.createImageData=function(a){a=a.buffer;if(null==a.__srcImageData){null==a.data?a.__srcImageData=a.__srcContext.getImageData(0,0,a.width,a.height):(a.__srcImageData=a.__srcContext.createImageData(a.width,a.height),a.__srcImageData.data.set(a.data));var b=a.__srcImageData.data.buffer;b=null!=b?new Uint8Array(b):null;a.data=b}};Ea.fillRect=function(a,b,c,d){Ea.convertToCanvas(a);if(1==d){d= +c>>16&255;var f=c>>8&255;var k=c&255;c=a.get_transparent()?c>>24&255:255}else d=c>>24&255,f=c>>16&255,k=c>>8&255,c=a.get_transparent()?c&255:255;0==b.x&&0==b.y&&b.width==a.width&&b.height==a.height&&a.get_transparent()&&0==c?a.buffer.__srcCanvas.width=a.buffer.width:(255>c&&a.buffer.__srcContext.clearRect(b.x+a.offsetX,b.y+a.offsetY,b.width+a.offsetX,b.height+a.offsetY),0>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((m>>> +16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((m>>>8&255)*X.unmult)]&255)<<8|m&255);m=(D[m>>>24&255]&255)<<24|(n[m>>>16&255]&255)<<16|(c[m>>>8&255]&255)<<8|q[m&255]&255;r=f;w=k;null==w&&(w=!1);null==r&&(r=0);w&&(0==(m&255)?0!=m&&(m=0):255!=(m&255)&&(X.a16=X.__alpha16[m&255],m=((m>>>24&255)*X.a16>>16&255)<<24|((m>>>16&255)*X.a16>>16&255)<<16|((m>>>8&255)*X.a16>>16&255)<<8|m&255));switch(r){case 0:d[g]=m>>>24&255;d[g+1]=m>>>16&255;d[g+2]=m>>>8&255;d[g+3]=m&255;break;case 1:d[g]=m&255;d[g+1]=m>>> +24&255;d[g+2]=m>>>16&255;d[g+3]=m>>>8&255;break;case 2:d[g]=m>>>8&255,d[g+1]=m>>>16&255,d[g+2]=m>>>24&255,d[g+3]=m&255}}}a.dirty=!0;a.version++}};zc.copyChannel=function(a,b,c,d,f,k){switch(k._hx_index){case 0:var q=0;break;case 1:q=1;break;case 2:q=2;break;case 3:q=3}switch(f._hx_index){case 0:var D=0;break;case 1:D=1;break;case 2:D=2;break;case 3:D=3}f=b.buffer.data;k=a.buffer.data;if(null!=f&&null!=k){c=new od(b,c);d=new od(a,new Ac(d.x,d.y,c.width,c.height));var n=b.buffer.format,p=a.buffer.format; +b=b.buffer.premultiplied;for(var g=a.buffer.premultiplied,m,v,h=0,F=0,l=0,r=0,w=d.height;r>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((h>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((h>>>8&255)*X.unmult)]&255)<<8|h&255);y=p;G=g;null==G&&(G=!1);null==y&&(y=0);switch(y){case 0:F=(k[v]&255)<<24|(k[v+1]&255)<<16|(k[v+2]&255)<<8|k[v+3]&255;break;case 1:F=(k[v+1]&255)<<24|(k[v+2]&255)<<16|(k[v+3]&255)<<8|k[v]&255;break;case 2:F=(k[v+2]&255)<<24|(k[v+1]&255)<<16|(k[v]&255)<<8|k[v+3]&255}G&&0!=(F&255)&&255!=(F&255)&&(X.unmult=255/(F&255),F=(X.__clamp[Math.round((F>>> +24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((F>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((F>>>8&255)*X.unmult)]&255)<<8|F&255);switch(D){case 0:l=h>>>24&255;break;case 1:l=h>>>16&255;break;case 2:l=h>>>8&255;break;case 3:l=h&255}switch(q){case 0:F=(l&255)<<24|(F>>>16&255)<<16|(F>>>8&255)<<8|F&255;break;case 1:F=(F>>>24&255)<<24|(l&255)<<16|(F>>>8&255)<<8|F&255;break;case 2:F=(F>>>24&255)<<24|(F>>>16&255)<<16|(l&255)<<8|F&255;break;case 3:F=(F>>>24&255)<<24|(F>>>16&255)<<16|(F>>>8& +255)<<8|l&255}y=p;G=g;null==G&&(G=!1);null==y&&(y=0);G&&(0==(F&255)?0!=F&&(F=0):255!=(F&255)&&(X.a16=X.__alpha16[F&255],F=((F>>>24&255)*X.a16>>16&255)<<24|((F>>>16&255)*X.a16>>16&255)<<16|((F>>>8&255)*X.a16>>16&255)<<8|F&255));switch(y){case 0:k[v]=F>>>24&255;k[v+1]=F>>>16&255;k[v+2]=F>>>8&255;k[v+3]=F&255;break;case 1:k[v]=F&255;k[v+1]=F>>>24&255;k[v+2]=F>>>16&255;k[v+3]=F>>>8&255;break;case 2:k[v]=F>>>8&255,k[v+1]=F>>>16&255,k[v+2]=F>>>24&255,k[v+3]=F&255}m+=4;v+=4}}a.dirty=!0;a.version++}};zc.copyPixels= +function(a,b,c,d,f,k,q){null==q&&(q=!1);if(a.width==b.width&&a.height==b.height&&c.width==b.width&&c.height==b.height&&0==c.x&&0==c.y&&0==d.x&&0==d.y&&null==f&&null==k&&0==q&&a.get_format()==b.get_format())a.buffer.data.set(b.buffer.data);else{var D=b.buffer.data,n=a.buffer.data;if(null==D||null==n)return;c=new od(b,c);var p=new Ac(d.x,d.y,c.width,c.height);p=new od(a,p);var g=b.buffer.format,m=a.buffer.format,v=0,h=0,F=b.buffer.premultiplied,l=a.buffer.premultiplied,r=b.buffer.bitsPerPixel/8|0,w= +a.buffer.bitsPerPixel/8|0,y=null!=f&&f.get_transparent(),C=q||y&&!a.get_transparent()||!q&&!a.get_transparent()&&b.get_transparent();if(y)if(w=f.buffer.data,b=f.buffer.format,q=0,f=new od(f,new Ac(c.x+(null==k?0:k.x),c.y+(null==k?0:k.y),c.width,c.height)),p.clip(d.x|0,d.y|0,f.width,f.height),C)for(C=0,r=p.height;C>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((v>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((v>>>8&255)*X.unmult)]&255)<<8|v&255);H=m;G=l;null==G&&(G=!1);null==H&&(H=0);switch(H){case 0:h=(n[k]&255)<<24|(n[k+ +1]&255)<<16|(n[k+2]&255)<<8|n[k+3]&255;break;case 1:h=(n[k+1]&255)<<24|(n[k+2]&255)<<16|(n[k+3]&255)<<8|n[k]&255;break;case 2:h=(n[k+2]&255)<<24|(n[k+1]&255)<<16|(n[k]&255)<<8|n[k+3]&255}G&&0!=(h&255)&&255!=(h&255)&&(X.unmult=255/(h&255),h=(X.__clamp[Math.round((h>>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((h>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((h>>>8&255)*X.unmult)]&255)<<8|h&255);H=b;G=!1;null==G&&(G=!1);null==H&&(H=0);switch(H){case 0:q=(w[y]&255)<<24|(w[y+1]&255)<<16| +(w[y+2]&255)<<8|w[y+3]&255;break;case 1:q=(w[y+1]&255)<<24|(w[y+2]&255)<<16|(w[y+3]&255)<<8|w[y]&255;break;case 2:q=(w[y+2]&255)<<24|(w[y+1]&255)<<16|(w[y]&255)<<8|w[y+3]&255}G&&0!=(q&255)&&255!=(q&255)&&(X.unmult=255/(q&255),q=(X.__clamp[Math.round((q>>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((q>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((q>>>8&255)*X.unmult)]&255)<<8|q&255);G=(q&255)/255*((v&255)/255);if(0>>24& +255)*G+(h>>>24&255)*t*x)/H)];h=(ra&255)<<24|(h>>>16&255)<<16|(h>>>8&255)<<8|h&255;ra=X.__clamp[Math.round(((v>>>16&255)*G+(h>>>16&255)*t*x)/H)];h=(h>>>24&255)<<24|(ra&255)<<16|(h>>>8&255)<<8|h&255;G=X.__clamp[Math.round(((v>>>8&255)*G+(h>>>8&255)*t*x)/H)];h=(h>>>24&255)<<24|(h>>>16&255)<<16|(G&255)<<8|h&255;H=X.__clamp[Math.round(255*H)];h=(h>>>24&255)<<24|(h>>>16&255)<<16|(h>>>8&255)<<8|H&255;H=m;G=l;null==G&&(G=!1);null==H&&(H=0);G&&(0==(h&255)?0!=h&&(h=0):255!=(h&255)&&(X.a16=X.__alpha16[h&255], +h=((h>>>24&255)*X.a16>>16&255)<<24|((h>>>16&255)*X.a16>>16&255)<<16|((h>>>8&255)*X.a16>>16&255)<<8|h&255));switch(H){case 0:n[k]=h>>>24&255;n[k+1]=h>>>16&255;n[k+2]=h>>>8&255;n[k+3]=h&255;break;case 1:n[k]=h&255;n[k+1]=h>>>24&255;n[k+2]=h>>>16&255;n[k+3]=h>>>8&255;break;case 2:n[k]=h>>>8&255,n[k+1]=h>>>16&255,n[k+2]=h>>>24&255,n[k+3]=h&255}}d+=4;k+=4;y+=4}else for(C=0,r=p.height;C>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((v>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((v>>>8&255)*X.unmult)]&255)<<8|v&255);H=b;G=!1;null== +G&&(G=!1);null==H&&(H=0);switch(H){case 0:q=(w[y]&255)<<24|(w[y+1]&255)<<16|(w[y+2]&255)<<8|w[y+3]&255;break;case 1:q=(w[y+1]&255)<<24|(w[y+2]&255)<<16|(w[y+3]&255)<<8|w[y]&255;break;case 2:q=(w[y+2]&255)<<24|(w[y+1]&255)<<16|(w[y]&255)<<8|w[y+3]&255}G&&0!=(q&255)&&255!=(q&255)&&(X.unmult=255/(q&255),q=(X.__clamp[Math.round((q>>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((q>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((q>>>8&255)*X.unmult)]&255)<<8|q&255);ra=Math.round((q&255)/255*(v& +255));v=(v>>>24&255)<<24|(v>>>16&255)<<16|(v>>>8&255)<<8|ra&255;H=m;G=l;null==G&&(G=!1);null==H&&(H=0);G&&(0==(v&255)?0!=v&&(v=0):255!=(v&255)&&(X.a16=X.__alpha16[v&255],v=((v>>>24&255)*X.a16>>16&255)<<24|((v>>>16&255)*X.a16>>16&255)<<16|((v>>>8&255)*X.a16>>16&255)<<8|v&255));switch(H){case 0:n[k]=v>>>24&255;n[k+1]=v>>>16&255;n[k+2]=v>>>8&255;n[k+3]=v&255;break;case 1:n[k]=v&255;n[k+1]=v>>>24&255;n[k+2]=v>>>16&255;n[k+3]=v>>>8&255;break;case 2:n[k]=v>>>8&255,n[k+1]=v>>>16&255,n[k+2]=v>>>24&255,n[k+ +3]=v&255}d+=4;k+=4;y+=4}else if(C)for(C=0,r=p.height;C>>24&255)* +X.unmult)]&255)<<24|(X.__clamp[Math.round((v>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((v>>>8&255)*X.unmult)]&255)<<8|v&255);H=m;G=l;null==G&&(G=!1);null==H&&(H=0);switch(H){case 0:h=(n[k]&255)<<24|(n[k+1]&255)<<16|(n[k+2]&255)<<8|n[k+3]&255;break;case 1:h=(n[k+1]&255)<<24|(n[k+2]&255)<<16|(n[k+3]&255)<<8|n[k]&255;break;case 2:h=(n[k+2]&255)<<24|(n[k+1]&255)<<16|(n[k]&255)<<8|n[k+3]&255}G&&0!=(h&255)&&255!=(h&255)&&(X.unmult=255/(h&255),h=(X.__clamp[Math.round((h>>>24&255)*X.unmult)]&255)<< +24|(X.__clamp[Math.round((h>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((h>>>8&255)*X.unmult)]&255)<<8|h&255);G=(v&255)/255;t=(h&255)/255;x=1-G;H=G+t*x;if(0==H)h=0;else{var ra=X.__clamp[Math.round(((v>>>24&255)*G+(h>>>24&255)*t*x)/H)];h=(ra&255)<<24|(h>>>16&255)<<16|(h>>>8&255)<<8|h&255;ra=X.__clamp[Math.round(((v>>>16&255)*G+(h>>>16&255)*t*x)/H)];h=(h>>>24&255)<<24|(ra&255)<<16|(h>>>8&255)<<8|h&255;G=X.__clamp[Math.round(((v>>>8&255)*G+(h>>>8&255)*t*x)/H)];h=(h>>>24&255)<<24|(h>>>16&255)<< +16|(G&255)<<8|h&255;H=X.__clamp[Math.round(255*H)];h=(h>>>24&255)<<24|(h>>>16&255)<<16|(h>>>8&255)<<8|H&255}H=m;G=l;null==G&&(G=!1);null==H&&(H=0);G&&(0==(h&255)?0!=h&&(h=0):255!=(h&255)&&(X.a16=X.__alpha16[h&255],h=((h>>>24&255)*X.a16>>16&255)<<24|((h>>>16&255)*X.a16>>16&255)<<16|((h>>>8&255)*X.a16>>16&255)<<8|h&255));switch(H){case 0:n[k]=h>>>24&255;n[k+1]=h>>>16&255;n[k+2]=h>>>8&255;n[k+3]=h&255;break;case 1:n[k]=h&255;n[k+1]=h>>>24&255;n[k+2]=h>>>16&255;n[k+3]=h>>>8&255;break;case 2:n[k]=h>>> +8&255,n[k+1]=h>>>16&255,n[k+2]=h>>>24&255,n[k+3]=h&255}d+=4;k+=4}}else if(g==m&&F==l&&r==w)for(C=0,r=p.height;C>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((v>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((v>>>8&255)*X.unmult)]&255)<<8|v&255);H=m;G=l;null==G&&(G=!1);null==H&&(H=0);G&&(0==(v&255)?0!=v&&(v=0):255!=(v&255)&&(X.a16=X.__alpha16[v&255],v=((v>>>24&255)*X.a16>>16&255)<<24|((v>>>16&255)*X.a16>>16&255)<<16|((v>>>8&255)*X.a16>> +16&255)<<8|v&255));switch(H){case 0:n[k]=v>>>24&255;n[k+1]=v>>>16&255;n[k+2]=v>>>8&255;n[k+3]=v&255;break;case 1:n[k]=v&255;n[k+1]=v>>>24&255;n[k+2]=v>>>16&255;n[k+3]=v>>>8&255;break;case 2:n[k]=v>>>8&255,n[k+1]=v>>>16&255,n[k+2]=v>>>24&255,n[k+3]=v&255}d+=4;k+=4}}a.dirty=!0;a.version++};zc.fillRect=function(a,b,c,d){switch(d){case 1:c=(c>>>16&255)<<24|(c>>>8&255)<<16|(c&255)<<8|c>>>24&255;break;case 2:c=(c>>>8&255)<<24|(c>>>16&255)<<16|(c>>>24&255)<<8|c&255}a.get_transparent()||(c=(c>>>24&255)<< +24|(c>>>16&255)<<16|(c>>>8&255)<<8|255);var f=a.buffer.data;if(null!=f){d=a.buffer.format;var k=a.buffer.premultiplied;k&&(0==(c&255)?0!=c&&(c=0):255!=(c&255)&&(X.a16=X.__alpha16[c&255],c=((c>>>24&255)*X.a16>>16&255)<<24|((c>>>16&255)*X.a16>>16&255)<<16|((c>>>8&255)*X.a16>>16&255)<<8|c&255));b=new od(a,b);for(var q,D=0,n=b.height;D>>24&255)*X.a16>>16&255)<<24|((c>>>16&255)*X.a16>>16&255)<<16|((c>>>8&255)*X.a16>>16&255)<<8|c&255));switch(v){case 0:f[m]=c>>>24&255;f[m+1]=c>>>16&255;f[m+2]=c>>>8&255;f[m+3]=c&255;break;case 1:f[m]=c&255;f[m+1]=c>>>24&255;f[m+2]=c>>>16&255;f[m+3]=c>>>8&255;break;case 2:f[m]=c>>>8&255,f[m+1]=c>>>16&255,f[m+2]=c>>>24&255,f[m+3]=c&255}}}a.dirty=!0;a.version++}};zc.setFormat=function(a,b){var c=a.buffer.data;if(null!=c){var d=c.length/4|0;switch(a.get_format()){case 0:var f= +0;var k=1;var q=2;var D=3;break;case 1:f=1;k=2;q=3;D=0;break;case 2:f=2,k=1,q=0,D=3}switch(b){case 0:var n=0;var p=1;var g=2;var m=3;break;case 1:n=1;p=2;g=3;m=0;break;case 2:n=2,p=1,g=0,m=3}for(var v=0;vb.x&&(b.x=0),0>b.y&&(b.y=0),b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height> +a.height&&(b.height=a.height-b.y),0>b.width&&(b.width=0),0>b.height&&(b.height=0),this.rect=b);this.stride=a.buffer.get_stride();this.__update()};od.__name__="lime._internal.graphics._ImageDataUtil.ImageDataView";od.prototype={clip:function(a,b,c,d){null==this.tempRect&&(this.tempRect=new Ac);this.tempRect.setTo(a,b,c,d);this.rect.intersection(this.tempRect,this.rect);this.__update()},__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__:od};var Ve=function(a,b){null==b&&(b=!1);if(null!=a){var c=new zd;c.future=this;b&&Mc.makePortable(a);Ya.run({func:Ve.dispatchWorkFunction,classPath:"lime.app.Future",functionName:"dispatchWorkFunction"},a,c,b&&!0,!0)}};Ve.__name__="lime.app.Future";Ve.dispatchWorkFunction=function(a){return Mc.toFunction(a)()};Ve.prototype={onComplete:function(a){null!=a&&(this.isComplete? +a(this.value):this.isError||(null==this.__completeListeners&&(this.__completeListeners=[]),this.__completeListeners.push(a)));return this},onError:function(a){null!=a&&(this.isError?a(this.error):this.isComplete||(null==this.__errorListeners&&(this.__errorListeners=[]),this.__errorListeners.push(a)));return this},onProgress:function(a){null!=a&&(null==this.__progressListeners&&(this.__progressListeners=[]),this.__progressListeners.push(a));return this},__class__:Ve};var Ya=function(){};Ya.__name__= +"lime.app.FutureWork";Ya.getPool=function(a){if(1==a)return null==Ya.multiThreadPool&&(Ya.multiThreadPool=new qb(Ya.minThreads,Ya.maxThreads,!0),Ya.multiThreadPool.onComplete.add(Ya.multiThreadPool_onComplete),Ya.multiThreadPool.onError.add(Ya.multiThreadPool_onError)),Ya.multiThreadPool;null==Ya.singleThreadPool&&(Ya.singleThreadPool=new qb(Ya.minThreads,Ya.maxThreads,!1),Ya.singleThreadPool.onComplete.add(Ya.singleThreadPool_onComplete),Ya.singleThreadPool.onError.add(Ya.singleThreadPool_onError)); +return Ya.singleThreadPool};Ya.run=function(a,b,c,d,f){null==f&&(f=!1);null==d&&(d=!0);b={work:a,state:b,promise:c,legacyCode:f};1==d&&(Mc.makePortable(a),b.promise=null);a=Ya.getPool(d).run({func:Ya.threadPool_doWork,classPath:"lime.app.FutureWork",functionName:"threadPool_doWork"},b);1==d&&(c={complete:h(c,c.complete),error:h(c,c.error)},Ya.promises.h[a]=c)};Ya.threadPool_doWork=function(a,b){try{var c=Mc.toFunction(a.work)(a.state);if(null!=c||a.legacyCode)Mc.makePortable(a.work),b.sendComplete(c)}catch(d){ya.lastError= +d,c=Ja.caught(d).unwrap(),Mc.makePortable(a.work),b.sendError(c)}};Ya.singleThreadPool_onComplete=function(a){Ya.singleThreadPool.__activeJob.value.state.promise.complete(a)};Ya.singleThreadPool_onError=function(a){Ya.singleThreadPool.__activeJob.value.state.promise.error(a)};Ya.multiThreadPool_onComplete=function(a){var b=Ya.promises.h[Ya.multiThreadPool.__activeJob.value.id];Ya.promises.remove(Ya.multiThreadPool.__activeJob.value.id);b.complete(a)};Ya.multiThreadPool_onError=function(a){var b=Ya.promises.h[Ya.multiThreadPool.__activeJob.value.id]; +Ya.promises.remove(Ya.multiThreadPool.__activeJob.value.id);b.error(a)};var zd=function(){this.future=new Ve};zd.__name__="lime.app.Promise";zd.prototype={complete:function(a){if(!this.future.isError&&(this.future.isComplete=!0,this.future.value=a,null!=this.future.__completeListeners)){for(var b=0,c=this.future.__completeListeners;bthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1), +this.__repeat.splice(b,1))},dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,f=this.__repeat,k=0;kthis.__priorities[k]){this.__listeners.splice(k, +0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,f=0;fthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b= +this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,f=this.__repeat,k=0;kthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))}, +dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,f=this.__repeat,k=0;kthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k, +0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,f=0;fthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b, +1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,f=0;fthis.__priorities[k]){this.__listeners.splice(k, +0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},has:function(a){for(var b=0,c=this.__listeners;bthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a); +this.__priorities.push(c);this.__repeat.push(!b)},__class__:yg};var zg=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};zg.__name__="lime.app._Event_String_Int_Int_Void";zg.prototype={add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,f=this.__priorities.length;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c); +this.__repeat.push(!b)},__class__:zg};var Cf=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};Cf.__name__="lime.app._Event_String_Void";Cf.prototype={add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,f=this.__priorities.length;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled= +!0},has:function(a){for(var b=0,c=this.__listeners;bthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b, +1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(){this.canceled=!1;for(var a=this.__listeners,b=this.__repeat,c=0;cthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c); +this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,f=0;fthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled= +!1;for(var b=this.__listeners,c=this.__repeat,d=0;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k, +0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b, +1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,f=0;f< +c.length&&(c[f](a,b),d[f]?++f:this.remove(c[f]),!this.canceled););},__class__:Ff};var te=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};te.__name__="lime.app._Event_lime_ui_Touch_Void";te.prototype={add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,f=this.__priorities.length;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c); +this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled= +!1;for(var b=this.__listeners,c=this.__repeat,d=0;da.length)return!1;a=a.getString(0,6);return"GIF87a"!=a?"GIF89a"==a:!0};Sb.__isJPG=function(a){return null==a||4>a.length?!1:255==a.b[0]&&216==a.b[1]&&255==a.b[a.length-2]?217==a.b[a.length-1]:!1};Sb.__isPNG=function(a){return null==a||8>a.length?!1:137==a.b[0]&&80==a.b[1]&&78==a.b[2]&&71==a.b[3]&&13==a.b[4]&&10==a.b[5]&&26==a.b[6]?10==a.b[7]:!1};Sb.prototype={clone:function(){if(null!=this.buffer){this.type==$b.CANVAS?Ea.convertToCanvas(this):Ea.convertToData(this);var a=new Sb(this.buffer.clone(), +this.offsetX,this.offsetY,this.width,this.height,null,this.type);a.version=this.version;return a}return new Sb(null,this.offsetX,this.offsetY,this.width,this.height,null,this.type)},colorTransform:function(a,b){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(this.type._hx_index){case 0:Ea.colorTransform(this,a,b);break;case 1:Ea.convertToData(this);zc.colorTransform(this,a,b);break;case 2:a.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.colorTransform(a.__toFlashRectangle(), +Tb.__toFlashColorTransform(b))}},copyChannel:function(a,b,c,d,f){b=this.__clipRect(b);if(null!=this.buffer&&null!=b&&!(f==Td.ALPHA&&!this.get_transparent()||0>=b.width||0>=b.height))switch(b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),this.type._hx_index){case 0:Ea.copyChannel(this,a,b,c,d,f);break;case 1:Ea.convertToData(this);Ea.convertToData(a);zc.copyChannel(this,a,b,c,d,f);break;case 2:switch(d._hx_index){case 0:var k=1;break;case 1:k=2;break;case 2:k= +4;break;case 3:k=8}switch(f._hx_index){case 0:var q=1;break;case 1:q=2;break;case 2:q=4;break;case 3:q=8}b.offset(a.offsetX,a.offsetY);c.offset(this.offsetX,this.offsetY);this.buffer.__srcBitmapData.copyChannel(a.buffer.get_src(),b.__toFlashRectangle(),c.__toFlashPoint(),k,q)}},copyPixels:function(a,b,c,d,f,k){null==k&&(k=!1);if(null!=this.buffer&&null!=a&&!(0>=b.width||0>=b.height||0>=this.width||0>=this.height))switch(b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height- +b.y),0>b.x&&(b.width+=b.x,b.x=0),0>b.y&&(b.height+=b.y,b.y=0),c.x+b.width>this.width&&(b.width=this.width-c.x),c.y+b.height>this.height&&(b.height=this.height-c.y),0>c.x&&(b.width+=c.x,b.x-=c.x,c.x=0),0>c.y&&(b.height+=c.y,b.y-=c.y,c.y=0),a==this&&c.x>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255;else switch(c){case 1:break;case 2:b=(b&255)<<24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255;break;default:b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255}this.buffer.__srcBitmapData.fillRect(a.__toFlashRectangle(), +b)}},__clipRect:function(a){return null==a||0>a.x&&(a.width-=-a.x,a.x=0,0>=a.x+a.width)||0>a.y&&(a.height-=-a.y,a.y=0,0>=a.y+a.height)||a.x+a.width>=this.width&&(a.width-=a.x+a.width-this.width,0>=a.width)||a.y+a.height>=this.height&&(a.height-=a.y+a.height-this.height,0>=a.height)?null:a},__fromBase64:function(a,b,c){var d=this,f=new window.Image;f.addEventListener("load",function(a){d.buffer=new kd(null,f.width,f.height);d.buffer.__srcImage=f;d.offsetX=0;d.offsetY=0;d.width=d.buffer.width;d.height= +d.buffer.height;null!=c&&c(d)},!1);f.src="data:"+b+";base64,"+a},__fromBytes:function(a,b){if(Sb.__isPNG(a))var c="image/png";else if(Sb.__isJPG(a))c="image/jpeg";else if(Sb.__isGIF(a))c="image/gif";else return!1;this.__fromBase64(nd.encode(a),c,b);return!0},__fromFile:function(a,b,c){var d=this,f=new window.Image;Ba.__isSameOrigin(a)||(f.crossOrigin="Anonymous");f.onload=function(a){d.buffer=new kd(null,f.width,f.height);d.buffer.__srcImage=f;d.width=f.width;d.height=f.height;null!=b&&b(d)};f.onerror= +function(a){null!=c&&c()};f.src=a;return!0},__fromImageBuffer:function(a){this.buffer=a;null!=a&&(-1==this.width&&(this.width=a.width),-1==this.height&&(this.height=a.height))},get_data:function(){null==this.buffer.data&&0b;){var c=b++;var d=Math.floor(c*a[18]+255*a[19]);255d&&(d=0);Tb.__alphaTable[c]=d}return Tb.__alphaTable},getBlueTable:function(a){null==Tb.__blueTable&&(Tb.__blueTable=new Uint8Array(256));for(var b, +c=0;256>c;){var d=c++;b=Math.floor(d*a[12]+255*a[14]);255b&&(b=0);Tb.__blueTable[d]=b}return Tb.__blueTable},getGreenTable:function(a){null==Tb.__greenTable&&(Tb.__greenTable=new Uint8Array(256));for(var b,c=0;256>c;){var d=c++;b=Math.floor(d*a[6]+255*a[9]);255b&&(b=0);Tb.__greenTable[d]=b}return Tb.__greenTable},getRedTable:function(a){null==Tb.__redTable&&(Tb.__redTable=new Uint8Array(256));for(var b,c=0;256>c;){var d=c++;b=Math.floor(d*a[0]+255*a[4]);255b&&(b=0);Tb.__redTable[d]=b}return Tb.__redTable},__toFlashColorTransform:function(a){return null}},Ra={_new:function(a){if(null==a||16!=a.length)a=Ra.__identity,a=null!=a?new Float32Array(a):null;return a},append:function(a,b){var c=a[0],d=a[4],f=a[8],k=a[12],q=a[1],D=a[5],n=a[9],p=a[13],g=a[2],m=a[6],v=a[10],h=a[14],F=a[3],l=a[7],w=a[11],H=a[15],r=Ra.get(b,0),y=Ra.get(b,4),G=Ra.get(b,8),C=Ra.get(b,12),t=Ra.get(b,1),x=Ra.get(b,5),L=Ra.get(b,9),u=Ra.get(b,13),ra=Ra.get(b,2),B=Ra.get(b,6),oa=Ra.get(b, +10),K=Ra.get(b,14),ja=Ra.get(b,3),N=Ra.get(b,7),ha=Ra.get(b,11);b=Ra.get(b,15);a[0]=c*r+q*y+g*G+F*C;a[1]=c*t+q*x+g*L+F*u;a[2]=c*ra+q*B+g*oa+F*K;a[3]=c*ja+q*N+g*ha+F*b;a[4]=d*r+D*y+m*G+l*C;a[5]=d*t+D*x+m*L+l*u;a[6]=d*ra+D*B+m*oa+l*K;a[7]=d*ja+D*N+m*ha+l*b;a[8]=f*r+n*y+v*G+w*C;a[9]=f*t+n*x+v*L+w*u;a[10]=f*ra+n*B+v*oa+w*K;a[11]=f*ja+n*N+v*ha+w*b;a[12]=k*r+p*y+h*G+H*C;a[13]=k*t+p*x+h*L+H*u;a[14]=k*ra+p*B+h*oa+H*K;a[15]=k*ja+p*N+h*ha+H*b},createOrtho:function(a,b,c,d,f,k,q){var D=1/(c-b),n=1/(f-d),p=1/ +(q-k);a[0]=2*D;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=2*n;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=-2*p;a[11]=0;a[12]=-(b+c)*D;a[13]=-(d+f)*n;a[14]=-(k+q)*p;a[15]=1},identity:function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1},get:function(a,b){return a[b]},set:function(a,b,c){return a[b]=c}},X={},Ac=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.width=c;this.height=d};Ac.__name__= +"lime.math.Rectangle";Ac.prototype={intersection:function(a,b){null==b&&(b=new Ac);var c=this.xa.get_right()?a.get_right():this.get_right();if(d<=c)return b.setEmpty(),b;var f=this.ya.get_bottom()?a.get_bottom():this.get_bottom();if(a<=f)return b.setEmpty(),b;b.x=c;b.y=f;b.width=d-c;b.height=a-f;return b},offset:function(a,b){this.x+=a;this.y+=b},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(a,b,c, +d){this.x=a;this.y=b;this.width=c;this.height=d},__toFlashRectangle:function(){return null},get_bottom:function(){return this.y+this.height},get_right:function(){return this.x+this.width},__class__:Ac,__properties__:{get_right:"get_right",get_bottom:"get_bottom"}};var se=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};se.__name__="lime.math.Vector2";se.prototype={offset:function(a,b){this.x+=a;this.y+=b},__toFlashPoint:function(){return null},__class__:se};var uc=function(){};uc.__name__= +"lime.media.AudioBuffer";uc.fromBytes=function(a){if(null==a)return null;var b=new uc;b.set_src(new Howl({src:["data:"+uc.__getCodec(a)+";base64,"+nd.encode(a)],html5:!0,preload:!1}));return b};uc.fromFile=function(a){if(null==a)return null;var b=new uc;b.__srcHowl=new Howl({src:[a],preload:!1});return b};uc.loadFromFile=function(a){var b=new zd,c=uc.fromFile(a);null!=c?null!=c&&(c.__srcHowl.on("load",function(){b.complete(c)}),c.__srcHowl.on("loaderror",function(a,c){b.error(c)}),c.__srcHowl.load()): +b.error(null);return b.future};uc.__getCodec=function(a){switch(a.getString(0,4)){case "OggS":return"audio/ogg";case "RIFF":if("WAVE"==a.getString(8,4))return"audio/wav";var b=a.b[1],c=a.b[2];switch(a.b[0]){case 73:if(68==b&&51==c)return"audio/mp3";break;case 255:switch(b){case 243:case 250:case 251:return"audio/mp3"}}break;case "fLaC":return"audio/flac";default:switch(b=a.b[1],c=a.b[2],a.b[0]){case 73:if(68==b&&51==c)return"audio/mp3";break;case 255:switch(b){case 243:case 250:case 251:return"audio/mp3"}}}Da.error("Unsupported sound format", +{fileName:"lime/media/AudioBuffer.hx",lineNumber:362,className:"lime.media.AudioBuffer",methodName:"__getCodec"});return null};uc.prototype={set_src:function(a){return this.__srcHowl=a},__class__:uc,__properties__:{set_src:"set_src"}};var Fg=function(a){if("custom"!=a){if(null==a||"web"==a)try{window.AudioContext=window.AudioContext||window.webkitAudioContext,this.web=new window.AudioContext,this.type="web"}catch(b){ya.lastError=b}null==this.web&&"web"!=a&&(this.html5=new Eg,this.type="html5")}else this.type= +"custom"};Fg.__name__="lime.media.AudioContext";Fg.prototype={__class__:Fg};var cd=function(){};cd.__name__="lime.media.AudioManager";cd.init=function(a){if(null==cd.context){if(null==a&&(cd.context=new Fg,a=cd.context,"openal"==a.type)){var b=a.openal,c=b.openDevice();c=b.createContext(c);b.makeContextCurrent(c);b.processContext(c)}cd.context=a}};var Eg=function(){};Eg.__name__="lime.media.HTML5AudioContext";Eg.prototype={__class__:Eg};var Gf=function(){};Gf.__name__="lime.net._IHTTPRequest";Gf.__isInterface__= +!0;Gf.prototype={__class__:Gf};var Yc=function(a){this.uri=a;this.contentType="application/x-www-form-urlencoded";this.followRedirects=!0;this.enableResponseHeaders=!1;this.formData=new Sa;this.headers=[];this.method="GET";this.timeout=3E4;this.withCredentials=!1;this.manageCookies=!0;this.__backend=new Ba;this.__backend.init(this)};Yc.__name__="lime.net._HTTPRequest.AbstractHTTPRequest";Yc.__interfaces__=[Gf];Yc.prototype={__class__:Yc};var ue=function(a){Yc.call(this,a)};ue.__name__="lime.net._HTTPRequest_Bytes"; +ue.__super__=Yc;ue.prototype=u(Yc.prototype,{fromBytes:function(a){return a},load:function(a){var b=this;null!=a&&(this.uri=a);var c=new zd;a=this.__backend.loadData(this.uri);a.onProgress(h(c,c.progress));a.onError(function(a){b.responseData=a.responseData;c.error(a.error)});a.onComplete(function(a){b.responseData=b.fromBytes(a);c.complete(b.responseData)});return c.future},__class__:ue});var Xe=function(a){Yc.call(this,a)};Xe.__name__="lime.net._HTTPRequest_String";Xe.__super__=Yc;Xe.prototype= +u(Yc.prototype,{load:function(a){var b=this;null!=a&&(this.uri=a);var c=new zd;a=this.__backend.loadText(this.uri);a.onProgress(h(c,c.progress));a.onError(function(a){b.responseData=a.responseData;c.error(a.error)});a.onComplete(function(a){b.responseData=a;c.complete(b.responseData)});return c.future},__class__:Xe});var qe=function(a,b){this.error=a;this.responseData=b};qe.__name__="lime.net._HTTPRequestErrorResponse";qe.prototype={__class__:qe};var Af=function(a,b){null==b&&(b="");this.name=a;this.value= +b};Af.__name__="lime.net.HTTPRequestHeader";Af.prototype={__class__:Af};var Hf=function(a){Yc.call(this,a)};Hf.__name__="lime.net._HTTPRequest_openfl_utils_ByteArray";Hf.__super__=ue;Hf.prototype=u(ue.prototype,{fromBytes:function(a){return Ad.fromBytes(a)},__class__:Hf});var Ob=function(){};Ob.__name__="lime.system.Clipboard";Ob.__properties__={set_text:"set_text",get_text:"get_text"};Ob.__update=function(){var a=Ob._text;Ob._text=a;Ob.__updated=!0;Ob._text!=a&&Ob.onUpdate.dispatch()};Ob.get_text= +function(){Ob.__update();return Ob._text};Ob.set_text=function(a){var b=Ob._text;Ob._text=a;var c=va.current.__window;null!=c&&c.__backend.setClipboard(a);Ob._text!=b&&Ob.onUpdate.dispatch();return a};var Ye=w["lime.system.Endian"]={__ename__:!0,__constructs__:null,LITTLE_ENDIAN:{_hx_name:"LITTLE_ENDIAN",_hx_index:0,__enum__:"lime.system.Endian",toString:g},BIG_ENDIAN:{_hx_name:"BIG_ENDIAN",_hx_index:1,__enum__:"lime.system.Endian",toString:g}};Ye.__constructs__=[Ye.LITTLE_ENDIAN,Ye.BIG_ENDIAN];var dd= +function(a,b){this.onUpdate=new tg;this.type=a;this.id=b};dd.__name__="lime.system.Sensor";dd.registerSensor=function(a,b){a=new dd(a,b);dd.sensors.push(a);return dd.sensorByID.h[b]=a};dd.prototype={__class__:dd};var bh=w["lime.system.SensorType"]={__ename__:!0,__constructs__:null,ACCELEROMETER:{_hx_name:"ACCELEROMETER",_hx_index:0,__enum__:"lime.system.SensorType",toString:g}};bh.__constructs__=[bh.ACCELEROMETER];var Pb=function(){};Pb.__name__="lime.system.System";Pb.__properties__={get_endianness:"get_endianness"}; +Pb.embed=l.lime.embed=function(a,b,c,d,f){if(null!=Pb.__applicationEntryPoint&&Object.prototype.hasOwnProperty.call(Pb.__applicationEntryPoint.h,a)){var k="string"==typeof b?window.document.getElementById(b):null==b?window.document.createElement("div"):b;null==k?window.console.log("[lime.embed] ERROR: Cannot find target element: "+L.string(b)):(null==c&&(c=0),null==d&&(d=0),null==f&&(f={}),Object.prototype.hasOwnProperty.call(f,"background")&&"string"==typeof f.background&&(b=aa.replace(L.string(f.background), +"#",""),-1=b.__jobs.length&&(b.__index=0);this.__activeJob.value=b.__jobs[b.__index];b=this.__activeJob.value.state;this.__jobComplete.value=!1;this.workIterations.value= +0;c=this.workPriority*qb.workLoad/(qb.__totalWorkPriority*va.current.__window.__backend.getFrameRate());var d=(new Date).getTime()/1E3;a=0;try{do this.workIterations.value++,Mc.toFunction(this.__activeJob.value.doWork)(b,this),a=(new Date).getTime()/1E3-d;while(!this.__jobComplete.value&&a +this.maxThreads||0==this.__jobQueue.__jobs.length&&this.__activeJobs.__jobs.length+this.__idleThreads.length>this.minThreads?c.sendMessage(new Zc("EXIT",null,null)):this.__idleThreads.push(c));this.completed="COMPLETE"==b.event&&0==this.__activeJobs.__jobs.length&&0==this.__jobQueue.__jobs.length;break;case "PROGRESS":this.onProgress.dispatch(b.message);break;case "WORK":this.onRun.dispatch(b.message)}this.__activeJob.value=null}}this.completed&&va.current.onUpdate.remove(h(this,this.__update))}}, +createThread:function(a){return Ud.prototype.createThread.call(this,a)},__class__:qb});var If=function(a){this.__jobs=[];this.__index=0;this.pool=a;this.__addingWorkPriority=!1};If.__name__="lime.system.JobList";If.prototype={hasNext:function(){return 0=this.__jobs.length&&(this.__index=0);return this.__jobs[this.__index]},remove:function(a){if(sa.remove(this.__jobs,a))return a=0=(a&256)?0<(a&512):!0}, +get_ctrlKey:function(a){return 0>=(a&64)?0<(a&128):!0},get_metaKey:function(a){return 0>=(a&1024)?0<(a&2048):!0},get_shiftKey:function(a){return 0>=(a&1)?0<(a&2):!0}},xb=w["lime.ui.MouseCursor"]={__ename__:!0,__constructs__:null,ARROW:{_hx_name:"ARROW",_hx_index:0,__enum__:"lime.ui.MouseCursor",toString:g},CROSSHAIR:{_hx_name:"CROSSHAIR",_hx_index:1,__enum__:"lime.ui.MouseCursor",toString:g},DEFAULT:{_hx_name:"DEFAULT",_hx_index:2,__enum__:"lime.ui.MouseCursor",toString:g},MOVE:{_hx_name:"MOVE",_hx_index:3, +__enum__:"lime.ui.MouseCursor",toString:g},POINTER:{_hx_name:"POINTER",_hx_index:4,__enum__:"lime.ui.MouseCursor",toString:g},RESIZE_NESW:{_hx_name:"RESIZE_NESW",_hx_index:5,__enum__:"lime.ui.MouseCursor",toString:g},RESIZE_NS:{_hx_name:"RESIZE_NS",_hx_index:6,__enum__:"lime.ui.MouseCursor",toString:g},RESIZE_NWSE:{_hx_name:"RESIZE_NWSE",_hx_index:7,__enum__:"lime.ui.MouseCursor",toString:g},RESIZE_WE:{_hx_name:"RESIZE_WE",_hx_index:8,__enum__:"lime.ui.MouseCursor",toString:g},TEXT:{_hx_name:"TEXT", +_hx_index:9,__enum__:"lime.ui.MouseCursor",toString:g},WAIT:{_hx_name:"WAIT",_hx_index:10,__enum__:"lime.ui.MouseCursor",toString:g},WAIT_ARROW:{_hx_name:"WAIT_ARROW",_hx_index:11,__enum__:"lime.ui.MouseCursor",toString:g},CUSTOM:{_hx_name:"CUSTOM",_hx_index:12,__enum__:"lime.ui.MouseCursor",toString:g}};xb.__constructs__=[xb.ARROW,xb.CROSSHAIR,xb.DEFAULT,xb.MOVE,xb.POINTER,xb.RESIZE_NESW,xb.RESIZE_NS,xb.RESIZE_NWSE,xb.RESIZE_WE,xb.TEXT,xb.WAIT,xb.WAIT_ARROW,xb.CUSTOM];var md=w["lime.ui.MouseWheelMode"]= +{__ename__:!0,__constructs__:null,PIXELS:{_hx_name:"PIXELS",_hx_index:0,__enum__:"lime.ui.MouseWheelMode",toString:g},LINES:{_hx_name:"LINES",_hx_index:1,__enum__:"lime.ui.MouseWheelMode",toString:g},PAGES:{_hx_name:"PAGES",_hx_index:2,__enum__:"lime.ui.MouseWheelMode",toString:g},UNKNOWN:{_hx_name:"UNKNOWN",_hx_index:3,__enum__:"lime.ui.MouseWheelMode",toString:g}};md.__constructs__=[md.PIXELS,md.LINES,md.PAGES,md.UNKNOWN];var yb=function(a,b,c,d,f,k,q){this.x=a;this.y=b;this.id=c;this.dx=d;this.dy= +f;this.pressure=k;this.device=q};yb.__name__="lime.ui.Touch";yb.prototype={__class__:yb};var ve=function(a,b){this.clickCount=0;this.onTextInput=new Cf;this.onTextEdit=new zg;this.onRestore=new ac;this.onResize=new Bf;this.onRenderContextRestored=new Df;this.onRenderContextLost=new ac;this.onRender=new Df;this.onMove=new We;this.onMouseWheel=new wg;this.onMouseUp=new ug;this.onMouseMoveRelative=new We;this.onMouseMove=new We;this.onMouseDown=new vg;this.onMinimize=new ac;this.onLeave=new ac;this.onKeyUp= +new Ff;this.onKeyDown=new Ff;this.onFullscreen=new ac;this.onFocusOut=new ac;this.onFocusIn=new ac;this.onExpose=new ac;this.onEnter=new ac;this.onDropFile=new Cf;this.onDeactivate=new ac;this.onClose=new ac;this.onActivate=new ac;this.application=a;this.__attributes=null!=b?b:{};Object.prototype.hasOwnProperty.call(this.__attributes,"parameters")&&(this.parameters=this.__attributes.parameters);this.__height=this.__width=0;this.__fullscreen=!1;this.__scale=1;this.__y=this.__x=0;this.__title=Object.prototype.hasOwnProperty.call(this.__attributes, +"title")?this.__attributes.title:"";this.id=-1;this.__backend=new Aa(this)};ve.__name__="lime.ui.Window";ve.prototype={close:function(){this.__backend.close()},set_cursor:function(a){return this.__backend.setCursor(a)},setTextInputRect:function(a){return this.__backend.setTextInputRect(a)},__class__:ve,__properties__:{set_cursor:"set_cursor"}};var Gg=function(){this.enabled=!0;this.audio=new Sa;this.font=new Sa;this.image=new Sa;this.version=731496};Gg.__name__="lime.utils.AssetCache";Gg.prototype= +{exists:function(a,b){return("IMAGE"==b||null==b)&&Object.prototype.hasOwnProperty.call(this.image.h,a)||("FONT"==b||null==b)&&Object.prototype.hasOwnProperty.call(this.font.h,a)||("SOUND"==b||"MUSIC"==b||null==b)&&Object.prototype.hasOwnProperty.call(this.audio.h,a)?!0:!1},set:function(a,b,c){switch(b){case "FONT":this.font.h[a]=c;break;case "IMAGE":if(!(c instanceof Sb))throw Ja.thrown("Cannot cache non-Image asset: "+L.string(c)+" as Image");this.image.h[a]=c;break;case "MUSIC":case "SOUND":if(!(c instanceof +uc))throw Ja.thrown("Cannot cache non-AudioBuffer asset: "+L.string(c)+" as AudioBuffer");this.audio.h[a]=c;break;default:throw Ja.thrown(b+" assets are not cachable");}},__class__:Gg};var vc=function(){this.types=new Sa;this.paths=new Sa;this.pathGroups=new Sa;this.classTypes=new Sa;this.cachedText=new Sa;this.cachedImages=new Sa;this.cachedFonts=new Sa;this.cachedBytes=new Sa;this.cachedAudioBuffers=new Sa;this.bytesTotal=this.bytesLoaded=0};vc.__name__="lime.utils.AssetLibrary";vc.prototype={exists:function(a, +b){b=null!=b?I.__cast(b,String):null;a=this.types.h[a];return null==a||a!=b&&("SOUND"!=b&&"MUSIC"!=b||"MUSIC"!=a&&"SOUND"!=a)&&"BINARY"!=b&&null!=b&&("BINARY"!=a||"TEXT"!=b)?!1:!0},getAsset:function(a,b){switch(b){case "BINARY":return this.getBytes(a);case "FONT":return this.getFont(a);case "IMAGE":return this.getImage(a);case "MUSIC":case "SOUND":return this.getAudioBuffer(a);case "TEMPLATE":throw Ja.thrown("Not sure how to get template: "+a);case "TEXT":return this.getText(a);default:throw Ja.thrown("Unknown asset type: "+ +b);}},getAudioBuffer:function(a){return Object.prototype.hasOwnProperty.call(this.cachedAudioBuffers.h,a)?this.cachedAudioBuffers.h[a]:Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?uc.fromBytes(I.__cast(ob.createInstance(this.classTypes.h[a],[]),Wb)):uc.fromFile(this.getPath(a))},getBytes:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a))return this.cachedBytes.h[a];if(Object.prototype.hasOwnProperty.call(this.cachedText.h,a)){var b=lh.ofString(this.cachedText.h[a]); +return this.cachedBytes.h[a]=b}return Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?I.__cast(ob.createInstance(this.classTypes.h[a],[]),Wb):lh.fromFile(this.getPath(a))},getFont:function(a){return Object.prototype.hasOwnProperty.call(this.cachedFonts.h,a)?this.cachedFonts.h[a]:Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?I.__cast(ob.createInstance(this.classTypes.h[a],[]),pd):pd.fromFile(this.getPath(a))},getImage:function(a){return Object.prototype.hasOwnProperty.call(this.cachedImages.h, +a)?this.cachedImages.h[a]:Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?I.__cast(ob.createInstance(this.classTypes.h[a],[]),Sb):Sb.fromFile(this.getPath(a))},getPath:function(a){return Object.prototype.hasOwnProperty.call(this.paths.h,a)?this.paths.h[a]:Object.prototype.hasOwnProperty.call(this.pathGroups.h,a)?this.pathGroups.h[a][0]:null},getText:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedText.h,a))return this.cachedText.h[a];a=this.getBytes(a);return null==a?null: +a.getString(0,a.length)},isLocal:function(a,b){if(Object.prototype.hasOwnProperty.call(this.classTypes.h,a))return!0;b=I.__cast(b,String);if(null==b)return Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a)||Object.prototype.hasOwnProperty.call(this.cachedText.h,a)||Object.prototype.hasOwnProperty.call(this.cachedImages.h,a)||Object.prototype.hasOwnProperty.call(this.cachedAudioBuffers.h,a)?!0:Object.prototype.hasOwnProperty.call(this.cachedFonts.h,a);switch(b){case "FONT":return Object.prototype.hasOwnProperty.call(this.cachedFonts.h, +a);case "IMAGE":return Object.prototype.hasOwnProperty.call(this.cachedImages.h,a);case "MUSIC":case "SOUND":return Object.prototype.hasOwnProperty.call(this.cachedAudioBuffers.h,a);default:return Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a)?!0:Object.prototype.hasOwnProperty.call(this.cachedText.h,a)}},__class__:vc};var Ab=function(){};Ab.__name__="lime.utils.Assets";Ab.getAsset=function(a,b,c){if(c&&Ab.cache.enabled)switch(b){case "FONT":var d=Ab.cache.font.h[a];if(null!=d)return d; +break;case "IMAGE":d=Ab.cache.image.h[a];if(Ab.isValidImage(d))return d;break;case "MUSIC":case "SOUND":d=Ab.cache.audio.h[a];if(Ab.isValidAudio(d))return d;break;case "TEMPLATE":throw Ja.thrown("Not sure how to get template: "+a);case "BINARY":case "TEXT":c=!1;break;default:return null}var f=a.indexOf(":");d=a.substring(0,f);f=a.substring(f+1);var k=Ab.getLibrary(d);if(null!=k)if(k.exists(f,b)){if(k.isLocal(f,b))return d=k.getAsset(f,b),c&&Ab.cache.enabled&&Ab.cache.set(a,b,d),d;Da.error(b+' asset "'+ +a+'" exists, but only asynchronously',{fileName:"lime/utils/Assets.hx",lineNumber:133,className:"lime.utils.Assets",methodName:"getAsset"})}else Da.error("There is no "+b+' asset with an ID of "'+a+'"',{fileName:"lime/utils/Assets.hx",lineNumber:138,className:"lime.utils.Assets",methodName:"getAsset"});else Da.error(Ab.__libraryNotFound(d),{fileName:"lime/utils/Assets.hx",lineNumber:143,className:"lime.utils.Assets",methodName:"getAsset"});return null};Ab.getBytes=function(a){return Ab.getAsset(a, +"BINARY",!1)};Ab.getLibrary=function(a){if(null==a||""==a)a="default";return Ab.libraries.h[a]};Ab.isLocal=function(a,b,c){null==c&&(c=!0);if(c&&Ab.cache.enabled&&Ab.cache.exists(a,b))return!0;var d=a.indexOf(":");c=a.substring(0,d);a=a.substring(d+1);c=Ab.getLibrary(c);return null!=c?c.isLocal(a,b):!1};Ab.isValidAudio=function(a){return null!=a};Ab.isValidImage=function(a){return null!=a?null!=a.buffer:!1};Ab.__libraryNotFound=function(a){if(null==a||""==a)a="default";return null==va.current||null== +va.current.__preloader||va.current.__preloader.complete?'There is no asset library named "'+a+'"':'There is no asset library named "'+a+'", or it is not yet preloaded'};var Hg=function(a,b){this.bytes=a;this.offset=b};Hg.__name__="lime.utils.BytePointerData";Hg.prototype={__class__:Hg};var lh={_new:function(a,b){return new Wb(b)},fromFile:function(a){return null},ofString:function(a){a=Wb.ofString(a);return lh._new(a.length,a.b.bufferValue)}},we={toArrayBufferView:function(a){return a}},Da=function(){}; +Da.__name__="lime.utils.Log";Da.debug=function(a,b){4<=Da.level&&console.debug("["+b.className+"] "+L.string(a))};Da.error=function(a,b){if(1<=Da.level){a="["+b.className+"] ERROR: "+L.string(a);if(Da.throwErrors)throw Ja.thrown(a);console.error(a)}};Da.info=function(a,b){3<=Da.level&&console.info("["+b.className+"] "+L.string(a))};Da.verbose=function(a,b){5<=Da.level&&(a="["+b.className+"] "+L.string(a),console.log(a))};Da.warn=function(a,b){2<=Da.level&&console.warn("["+b.className+"] WARNING: "+ +L.string(a))};var jg=function(){this.bytesLoadedCache=new N;this.onProgress=new Bf;this.onComplete=new ac;this.bytesTotal=this.bytesLoaded=0;this.libraries=[];this.libraryNames=[];this.onProgress.add(h(this,this.update))};jg.__name__="lime.utils.Preloader";jg.prototype={load:function(){for(var a=this,b=0,c=this.libraries;ba&&(a=0);if(a>b)for(;ba;)this.__array.pop()}return this.__array.length},__class__:ed,__properties__:{set_length:"set_length",get_length:"get_length"}};var Le=function(a,b,c){null==b&&(b=!1);null==a&&(a=0);null==c&&(c=[]);this.__array=c;0a&&(a=0);if(a>b)for(;ba;)this.__array.pop()}return this.__array.length},__class__:Le,__properties__:{set_length:"set_length",get_length:"get_length"}};var ie=function(a, +b,c,d){null==d&&(d=!1);null==b&&(b=!1);null==a&&(a=0);if(d){if(this.__array=[],null!=c){d=0;for(var f=c.length;da&&(a=0);if(a>b)for(;ba;)this.__array.pop()}return this.__array.length},__class__:ie,__properties__:{set_length:"set_length",get_length:"get_length"}};var Ie=function(){va.call(this);null==bc.application&&(bc.application=this);null==bc.current&&(bc.current=new Gd);bc.current.__loaderInfo=Rc.create(null);bc.current.__loaderInfo.content=bc.current};Ie.__name__="openfl.display.Application";Ie.__super__=va;Ie.prototype= +u(va.prototype,{createWindow:function(a){var b=new af(this,a);this.__windows.push(b);this.__windowByID.h[b.id]=b;var c=this;b.onClose.add(function(){c.__onWindowClose(b)},!1,-1E4);null==this.__window&&(this.__window=b,b.onActivate.add(h(this,this.onWindowActivate)),b.onRenderContextLost.add(h(this,this.onRenderContextLost)),b.onRenderContextRestored.add(h(this,this.onRenderContextRestored)),b.onDeactivate.add(h(this,this.onWindowDeactivate)),b.onDropFile.add(h(this,this.onWindowDropFile)),b.onEnter.add(h(this, +this.onWindowEnter)),b.onExpose.add(h(this,this.onWindowExpose)),b.onFocusIn.add(h(this,this.onWindowFocusIn)),b.onFocusOut.add(h(this,this.onWindowFocusOut)),b.onFullscreen.add(h(this,this.onWindowFullscreen)),b.onKeyDown.add(h(this,this.onKeyDown)),b.onKeyUp.add(h(this,this.onKeyUp)),b.onLeave.add(h(this,this.onWindowLeave)),b.onMinimize.add(h(this,this.onWindowMinimize)),b.onMouseDown.add(h(this,this.onMouseDown)),b.onMouseMove.add(h(this,this.onMouseMove)),b.onMouseMoveRelative.add(h(this,this.onMouseMoveRelative)), +b.onMouseUp.add(h(this,this.onMouseUp)),b.onMouseWheel.add(h(this,this.onMouseWheel)),b.onMove.add(h(this,this.onWindowMove)),b.onRender.add(h(this,this.render)),b.onResize.add(h(this,this.onWindowResize)),b.onRestore.add(h(this,this.onWindowRestore)),b.onTextEdit.add(h(this,this.onTextEdit)),b.onTextInput.add(h(this,this.onTextInput)),this.onWindowCreate());this.onCreateWindow.dispatch(b);return b},exec:function(){return va.prototype.exec.call(this)},__checkForAllWindowsClosed:function(){0a&&(a=0);0>b&&(b=0);this.width=a;this.height=b;this.rect=new ca(0,0,a,b);this.__textureWidth=a;this.__textureHeight=b;0>>24&255),this.image.set_transparent(c),this.readable= +this.__isValid=!0);this.__renderTransform=new fa;this.__worldAlpha=1;this.__worldTransform=new fa;this.__worldColorTransform=new tb;this.__renderable=!0};Ib.__name__="openfl.display.BitmapData";Ib.__interfaces__=[J];Ib.fromCanvas=function(a,b){null==b&&(b=!0);if(null==a)return null;var c=new Ib(0,0,b,0);c.__fromImage(Sb.fromCanvas(a));c.image.set_transparent(b);return c};Ib.prototype={colorTransform:function(a,b){this.readable&&this.image.colorTransform(a.__toLimeRectangle(),b.__toLimeColorMatrix())}, +copyPixels:function(a,b,c,d,f,k){null==k&&(k=!1);this.readable&&null!=a&&(null!=f&&(Ib.__tempVector.x=f.x,Ib.__tempVector.y=f.y),this.image.copyPixels(a.image,b.__toLimeRectangle(),c.__toLimeVector2(),null!=d?d.image:null,null!=f?Ib.__tempVector:null,k))},dispose:function(){this.image=null;this.height=this.width=0;this.rect=null;this.readable=this.__isValid=!1;this.__textureContext=this.__texture=this.__framebufferContext=this.__framebuffer=this.__vertexBuffer=this.__surface=null},draw:function(a, +b,c,d,f,k){null==k&&(k=!1);if(null!=a){var q=!0,D=null;a instanceof W&&(D=I.__cast(a,W),D.get_visible()||(q=!1,D.set_visible(!0)));a.__update(!1,!0);var n=fa.__pool.get();n.copyFrom(a.__renderTransform);n.invert();null!=b&&n.concat(b);b=null;null!=f&&(b=fa.__pool.get(),b.copyFrom(n),b.invert());var p=new tb;p.__copyFrom(a.__worldColorTransform);p.__invert();if(this.readable||null==Ca.get_current().stage.context3D){if(null!=c){var g=ca.__pool.get(),m=fa.__pool.get();a.__getBounds(g,m);var v=Math.ceil(g.width), +h=Math.ceil(g.height);m.tx=-g.x;m.ty=-g.y;v=new Ib(v,h,!0,0);v.draw(a,m);v.colorTransform(v.rect,c);v.__renderTransform.identity();v.__renderTransform.tx=g.x;v.__renderTransform.ty=g.y;v.__renderTransform.concat(a.__renderTransform);v.__worldAlpha=a.__worldAlpha;v.__worldColorTransform.__copyFrom(a.__worldColorTransform);a=v;ca.__pool.release(g);fa.__pool.release(m)}Ea.convertToCanvas(this.image);c=new qd(this.image.buffer.__srcContext);c.__allowSmoothing=k;c.__overrideBlendMode=d;c.__worldTransform= +n;c.__worldAlpha=1/a.__worldAlpha;c.__worldColorTransform=p;null!=f&&c.__pushMaskRect(f,b);this.__drawCanvas(a,c)}else null==this.__textureContext&&(this.__textureContext=va.current.__window.context),null!=c&&p.__combine(c),c=new Ha(Ca.get_current().stage.context3D,this),c.__allowSmoothing=k,c.__pixelRatio=Ca.get_current().stage.window.__scale,c.__overrideBlendMode=d,c.__worldTransform=n,c.__worldAlpha=1/a.__worldAlpha,c.__worldColorTransform=p,c.__resize(this.width,this.height),null!=f&&c.__pushMaskRect(f, +b),this.__drawGL(a,c);null!=f&&(c.__popMaskRect(),fa.__pool.release(b));fa.__pool.release(n);null==D||q||D.set_visible(!1)}},fillRect:function(a,b){this.__fillRect(a,b,!0)},getIndexBuffer:function(a,b){if(null==this.__indexBuffer||this.__indexBufferContext!=a.__context||null!=b&&null==this.__indexBufferGrid||null!=this.__indexBufferGrid&&!this.__indexBufferGrid.equals(b)){this.__indexBufferContext=a.__context;this.__indexBuffer=null;if(null!=b){null==this.__indexBufferGrid&&(this.__indexBufferGrid= +new ca);this.__indexBufferGrid.copyFrom(b);var c=b.width;b=b.height;0!=c&&0!=b?(this.__indexBufferData=new Uint16Array(54),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBufferData[6]=4,this.__indexBufferData[7]=0,this.__indexBufferData[8]=5,this.__indexBufferData[9]=5,this.__indexBufferData[10]=0,this.__indexBufferData[11]=2,this.__indexBufferData[12]=6,this.__indexBufferData[13]= +4,this.__indexBufferData[14]=7,this.__indexBufferData[15]=7,this.__indexBufferData[16]=4,this.__indexBufferData[17]=5,this.__indexBufferData[18]=8,this.__indexBufferData[19]=9,this.__indexBufferData[20]=0,this.__indexBufferData[21]=0,this.__indexBufferData[22]=9,this.__indexBufferData[23]=1,this.__indexBufferData[24]=10,this.__indexBufferData[25]=8,this.__indexBufferData[26]=4,this.__indexBufferData[27]=4,this.__indexBufferData[28]=8,this.__indexBufferData[29]=0,this.__indexBufferData[30]=11,this.__indexBufferData[31]= +10,this.__indexBufferData[32]=6,this.__indexBufferData[33]=6,this.__indexBufferData[34]=10,this.__indexBufferData[35]=4,this.__indexBufferData[36]=12,this.__indexBufferData[37]=13,this.__indexBufferData[38]=8,this.__indexBufferData[39]=8,this.__indexBufferData[40]=13,this.__indexBufferData[41]=9,this.__indexBufferData[42]=14,this.__indexBufferData[43]=12,this.__indexBufferData[44]=10,this.__indexBufferData[45]=10,this.__indexBufferData[46]=12,this.__indexBufferData[47]=8,this.__indexBufferData[48]= +15,this.__indexBufferData[49]=14,this.__indexBufferData[50]=11,this.__indexBufferData[51]=11,this.__indexBufferData[52]=14,this.__indexBufferData[53]=10,this.__indexBuffer=a.createIndexBuffer(54)):0==c&&0!=b?(this.__indexBufferData=new Uint16Array(18),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBufferData[6]=4,this.__indexBufferData[7]=5,this.__indexBufferData[8]= +0,this.__indexBufferData[9]=0,this.__indexBufferData[10]=5,this.__indexBufferData[11]=1,this.__indexBufferData[12]=6,this.__indexBufferData[13]=7,this.__indexBufferData[14]=4,this.__indexBufferData[15]=4,this.__indexBufferData[16]=7,this.__indexBufferData[17]=5,this.__indexBuffer=a.createIndexBuffer(18)):0!=c&&0==b&&(this.__indexBufferData=new Uint16Array(18),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1, +this.__indexBufferData[5]=3,this.__indexBufferData[6]=4,this.__indexBufferData[7]=0,this.__indexBufferData[8]=5,this.__indexBufferData[9]=5,this.__indexBufferData[10]=0,this.__indexBufferData[11]=2,this.__indexBufferData[12]=6,this.__indexBufferData[13]=4,this.__indexBufferData[14]=7,this.__indexBufferData[15]=7,this.__indexBufferData[16]=4,this.__indexBufferData[17]=5,this.__indexBuffer=a.createIndexBuffer(18))}else this.__indexBufferGrid=null;null==this.__indexBuffer&&(this.__indexBufferData=new Uint16Array(6), +this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBuffer=a.createIndexBuffer(6));this.__indexBuffer.uploadFromTypedArray(this.__indexBufferData)}return this.__indexBuffer},getVertexBuffer:function(a,b,c){if(null==this.__vertexBuffer||this.__vertexBufferContext!=a.__context||null!=b&&null==this.__vertexBufferGrid||null!=this.__vertexBufferGrid&&!this.__vertexBufferGrid.equals(b)|| +null!=c&&(this.__vertexBufferWidth!=c.get_width()||this.__vertexBufferHeight!=c.get_height()||this.__vertexBufferScaleX!=c.get_scaleX()||this.__vertexBufferScaleY!=c.get_scaleY())){this.__uvRect=new ca(0,0,this.width,this.height);this.__vertexBufferContext=a.__context;this.__vertexBuffer=null;null!=c&&(this.__vertexBufferWidth=c.get_width(),this.__vertexBufferHeight=c.get_height(),this.__vertexBufferScaleX=c.get_scaleX(),this.__vertexBufferScaleY=c.get_scaleY());if(null!=b&&null!=c){null==this.__vertexBufferGrid&& +(this.__vertexBufferGrid=new ca);this.__vertexBufferGrid.copyFrom(b);this.__vertexBufferWidth=c.get_width();this.__vertexBufferHeight=c.get_height();this.__vertexBufferScaleX=c.get_scaleX();this.__vertexBufferScaleY=c.get_scaleY();var d=b.width,f=b.height;if(0!=d&&0!=f){this.__vertexBufferData=new Float32Array(224);var k=b.x,q=b.y,p=this.width-d-k,n=this.height-f-q;b=k/this.width;var g=q/this.height;d/=this.width;f/=this.height;k/=c.get_scaleX();q/=c.get_scaleY();p/=c.get_scaleX();var v=n/c.get_scaleY(); +n=c.get_width()/c.get_scaleX()-k-p;p=c.get_height()/c.get_scaleY()-q-v;this.__vertexBufferData[0]=k;this.__vertexBufferData[1]=q;this.__vertexBufferData[3]=1*b;this.__vertexBufferData[4]=1*g;this.__vertexBufferData[15]=q;this.__vertexBufferData[18]=1*g;this.__vertexBufferData[28]=k;this.__vertexBufferData[31]=1*b;this.__vertexBufferData[56]=k+n;this.__vertexBufferData[57]=q;this.__vertexBufferData[59]=1*(b+d);this.__vertexBufferData[60]=1*g;this.__vertexBufferData[70]=k+n;this.__vertexBufferData[73]= +1*(b+d);this.__vertexBufferData[84]=this.width;this.__vertexBufferData[85]=q;this.__vertexBufferData[87]=1;this.__vertexBufferData[88]=1*g;this.__vertexBufferData[98]=this.width;this.__vertexBufferData[101]=1;this.__vertexBufferData[112]=k;this.__vertexBufferData[113]=q+p;this.__vertexBufferData[115]=1*b;this.__vertexBufferData[116]=1*(g+f);this.__vertexBufferData[127]=q+p;this.__vertexBufferData[130]=1*(g+f);this.__vertexBufferData[140]=k+n;this.__vertexBufferData[141]=q+p;this.__vertexBufferData[143]= +1*(b+d);this.__vertexBufferData[144]=1*(g+f);this.__vertexBufferData[154]=this.width;this.__vertexBufferData[155]=q+p;this.__vertexBufferData[157]=1;this.__vertexBufferData[158]=1*(g+f);this.__vertexBufferData[168]=k;this.__vertexBufferData[169]=this.height;this.__vertexBufferData[171]=1*b;this.__vertexBufferData[172]=1;this.__vertexBufferData[183]=this.height;this.__vertexBufferData[186]=1;this.__vertexBufferData[196]=k+n;this.__vertexBufferData[197]=this.height;this.__vertexBufferData[199]=1*(b+ +d);this.__vertexBufferData[200]=1;this.__vertexBufferData[210]=this.width;this.__vertexBufferData[211]=this.height;this.__vertexBufferData[213]=1;this.__vertexBufferData[214]=1;this.__vertexBuffer=a.createVertexBuffer(16,14)}else 0==d&&0!=f?(this.__vertexBufferData=new Float32Array(112),q=b.y,n=this.height-f-q,g=q/this.height,f/=this.height,q/=c.get_scaleY(),v=n/c.get_scaleY(),p=c.get_height()/c.get_scaleY()-q-v,c=c.get_width()/c.get_scaleX(),this.__vertexBufferData[0]=c,this.__vertexBufferData[1]= +q,this.__vertexBufferData[3]=1,this.__vertexBufferData[4]=1*g,this.__vertexBufferData[15]=q,this.__vertexBufferData[18]=1*g,this.__vertexBufferData[28]=c,this.__vertexBufferData[31]=1,this.__vertexBufferData[56]=c,this.__vertexBufferData[57]=q+p,this.__vertexBufferData[59]=1,this.__vertexBufferData[60]=1*(g+f),this.__vertexBufferData[71]=q+p,this.__vertexBufferData[74]=1*(g+f),this.__vertexBufferData[84]=c,this.__vertexBufferData[85]=this.height,this.__vertexBufferData[87]=1,this.__vertexBufferData[88]= +1,this.__vertexBufferData[99]=this.height,this.__vertexBufferData[102]=1,this.__vertexBuffer=a.createVertexBuffer(8,14)):0==f&&0!=d&&(this.__vertexBufferData=new Float32Array(112),k=b.x,p=this.width-d-k,b=k/this.width,d/=this.width,k/=c.get_scaleX(),p/=c.get_scaleX(),n=c.get_width()/c.get_scaleX()-k-p,c=c.get_height()/c.get_scaleY(),this.__vertexBufferData[0]=k,this.__vertexBufferData[1]=c,this.__vertexBufferData[3]=1*b,this.__vertexBufferData[4]=1,this.__vertexBufferData[15]=c,this.__vertexBufferData[18]= +1,this.__vertexBufferData[28]=k,this.__vertexBufferData[31]=1*b,this.__vertexBufferData[56]=k+n,this.__vertexBufferData[57]=c,this.__vertexBufferData[59]=1*(b+d),this.__vertexBufferData[60]=1,this.__vertexBufferData[70]=k+n,this.__vertexBufferData[73]=1*(b+d),this.__vertexBufferData[84]=this.width,this.__vertexBufferData[85]=c,this.__vertexBufferData[87]=1,this.__vertexBufferData[88]=1,this.__vertexBufferData[98]=this.width,this.__vertexBufferData[101]=1,this.__vertexBuffer=a.createVertexBuffer(8, +14))}else this.__vertexBufferGrid=null;null==this.__vertexBuffer&&(this.__vertexBufferData=new Float32Array(56),this.__vertexBufferData[0]=this.width,this.__vertexBufferData[1]=this.height,this.__vertexBufferData[3]=1,this.__vertexBufferData[4]=1,this.__vertexBufferData[15]=this.height,this.__vertexBufferData[18]=1,this.__vertexBufferData[28]=this.width,this.__vertexBufferData[31]=1,this.__vertexBuffer=a.createVertexBuffer(3,14));this.__vertexBuffer.uploadFromTypedArray(we.toArrayBufferView(this.__vertexBufferData))}return this.__vertexBuffer}, +getTexture:function(a){if(!this.__isValid)return null;if(null==this.__texture||this.__textureContext!=a.__context)this.__textureContext=a.__context,this.__texture=a.createRectangleTexture(this.width,this.height,1,!1),this.__textureVersion=-1;Ea.sync(this.image,!1);null!=this.image&&this.image.version>this.__textureVersion&&(null!=this.__surface&&Bh.flush(this.__surface),a=this.image,Za.__supportsBGRA||0==a.get_format()||(a=a.clone(),a.set_format(0)),this.__texture.__uploadFromImage(a),this.__textureVersion= +this.image.version,this.__textureWidth=a.buffer.width,this.__textureHeight=a.buffer.height);this.readable||null==this.image||(this.image=this.__surface=null);return this.__texture},__drawCanvas:function(a,b){var c=this.image.buffer;b.__allowSmoothing||b.applySmoothing(c.__srcContext,!1);b.__render(a);b.__allowSmoothing||b.applySmoothing(c.__srcContext,!0);c.__srcContext.setTransform(1,0,0,1,0,0);c.__srcImageData=null;c.data=null;this.image.dirty=!0;this.image.version++},__drawGL:function(a,b){var c= +b.__context3D,d=c.__state.renderToTexture,f=c.__state.renderToTextureDepthStencil,k=c.__state.renderToTextureAntiAlias,q=c.__state.renderToTextureSurfaceSelector;c.setRenderToTexture(this.getTexture(c),!0);b.__render(a);null!=d?c.setRenderToTexture(d,f,k,q):c.setRenderToBackBuffer()},__fillRect:function(a,b,c){if(null!=a)if(this.transparent&&0==(b&-16777216)&&(b=0),c&&null!=this.__texture&&null!=this.__texture.__glFramebuffer&&"opengl"==Ca.get_current().stage.__renderer.__type){c=Ca.get_current().stage.__renderer.__context3D; +var d=!this.rect.equals(a),f=c.__state.renderToTexture,k=c.__state.renderToTextureDepthStencil,q=c.__state.renderToTextureAntiAlias,p=c.__state.renderToTextureSurfaceSelector;c.setRenderToTexture(this.__texture);d&&c.setScissorRectangle(a);c.clear((b>>>16&255)/255,(b>>>8&255)/255,(b&255)/255,this.transparent?(b>>>24&255)/255:1,0,0,1);d&&c.setScissorRectangle(null);null!=f?c.setRenderToTexture(f,k,q,p):c.setRenderToBackBuffer()}else this.readable&&this.image.fillRect(a.__toLimeRectangle(),b,1)},__fromImage:function(a){null!= +a&&null!=a.buffer&&(this.image=a,this.width=a.width,this.height=a.height,this.rect=new ca(0,0,a.width,a.height),this.__textureWidth=this.width,this.__textureHeight=this.height,this.__isValid=this.readable=!0)},__getBounds:function(a,b){var c=ca.__pool.get();this.rect.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);ca.__pool.release(c)},__setUVRect:function(a,b,c,d,f){if(null!=this.getVertexBuffer(a)&&(d!=this.__uvRect.width||f!=this.__uvRect.height||b!=this.__uvRect.x||c!=this.__uvRect.y)){null== +this.__uvRect&&(this.__uvRect=new ca);this.__uvRect.setTo(b,c,d,f);a=0a.__cacheBitmapData.width||F>a.__cacheBitmapData.height?(q=Math.ceil(Math.max(1.25*h,a.__cacheBitmapData.width)),m=Math.ceil(Math.max(1.25*F,a.__cacheBitmapData.height)),b=!0):(q=a.__cacheBitmapData.width,m=a.__cacheBitmapData.height):(q=h,m=F);if(b)if(k=!0,a.__cacheBitmapBackground=a.opaqueBackground,.5<=h&&.5<=F){var w=null!=a.opaqueBackground&&(q!=h||m!=F),H=null!=a.opaqueBackground?-16777216|a.opaqueBackground:0,r=w?0:H,y="opengl"==this.__type;null==a.__cacheBitmapData|| +q>a.__cacheBitmapData.width||m>a.__cacheBitmapData.height?(a.__cacheBitmapData=new Ib(q,m,!0,r),null==a.__cacheBitmap&&(a.__cacheBitmap=new Pe),a.__cacheBitmap.__bitmapData=a.__cacheBitmapData,a.__cacheBitmapRenderer=null):a.__cacheBitmapData.__fillRect(a.__cacheBitmapData.rect,r,y);w&&(f.setTo(0,0,h,F),a.__cacheBitmapData.__fillRect(f,H,y))}else return tb.__pool.release(d),a.__cacheBitmap=null,a.__cacheBitmapData=null,a.__cacheBitmapData2=null,a.__cacheBitmapData3=null,a.__cacheBitmapRenderer=null, +7==a.__drawableType&&(d=a,null!=d.__cacheBitmap&&(d.__cacheBitmap.__renderTransform.tx-=d.__offsetX*g,d.__cacheBitmap.__renderTransform.ty-=d.__offsetY*g)),!0;else a.__cacheBitmapData=a.__cacheBitmap.get_bitmapData(),a.__cacheBitmapData2=null,a.__cacheBitmapData3=null;if(k||b)a.__cacheBitmap.__worldTransform.copyFrom(a.__worldTransform),n==a.__renderTransform?(a.__cacheBitmap.__renderTransform.identity(),a.__cacheBitmap.__renderTransform.scale(1/g,1/g),a.__cacheBitmap.__renderTransform.tx=a.__renderTransform.tx+ +v,a.__cacheBitmap.__renderTransform.ty=a.__renderTransform.ty+l):(a.__cacheBitmap.__renderTransform.copyFrom(a.__cacheBitmapMatrix),a.__cacheBitmap.__renderTransform.invert(),a.__cacheBitmap.__renderTransform.concat(a.__renderTransform),a.__cacheBitmap.__renderTransform.a*=1/g,a.__cacheBitmap.__renderTransform.d*=1/g,a.__cacheBitmap.__renderTransform.tx+=v,a.__cacheBitmap.__renderTransform.ty+=l);a.__cacheBitmap.smoothing=this.__allowSmoothing;a.__cacheBitmap.__renderable=a.__renderable;a.__cacheBitmap.__worldAlpha= +a.__worldAlpha;a.__cacheBitmap.__worldBlendMode=a.__worldBlendMode;a.__cacheBitmap.__worldShader=a.__worldShader;a.__cacheBitmap.set_mask(a.__mask);if(b){if(null==a.__cacheBitmapRenderer||p!=a.__cacheBitmapRenderer.__type)"opengl"==p?a.__cacheBitmapRenderer=new Ha(I.__cast(this,Ha).__context3D,a.__cacheBitmapData):(null==a.__cacheBitmapData.image&&(a.__cacheBitmapData=new Ib(q,m,!0,null!=a.opaqueBackground?-16777216|a.opaqueBackground:0),a.__cacheBitmap.__bitmapData=a.__cacheBitmapData),Ea.convertToCanvas(a.__cacheBitmapData.image), +a.__cacheBitmapRenderer=new qd(a.__cacheBitmapData.image.buffer.__srcContext)),a.__cacheBitmapRenderer.__worldTransform=new fa,a.__cacheBitmapRenderer.__worldColorTransform=new tb;null==a.__cacheBitmapColorTransform&&(a.__cacheBitmapColorTransform=new tb);a.__cacheBitmapRenderer.__stage=a.stage;a.__cacheBitmapRenderer.__allowSmoothing=this.__allowSmoothing;a.__cacheBitmapRenderer.__setBlendMode(10);a.__cacheBitmapRenderer.__worldAlpha=1/a.__worldAlpha;a.__cacheBitmapRenderer.__worldTransform.copyFrom(a.__renderTransform); +a.__cacheBitmapRenderer.__worldTransform.invert();a.__cacheBitmapRenderer.__worldTransform.concat(a.__cacheBitmapMatrix);a.__cacheBitmapRenderer.__worldTransform.tx-=v;a.__cacheBitmapRenderer.__worldTransform.ty-=l;a.__cacheBitmapRenderer.__worldTransform.scale(g,g);a.__cacheBitmapRenderer.__pixelRatio=g;a.__cacheBitmapRenderer.__worldColorTransform.__copyFrom(d);a.__cacheBitmapRenderer.__worldColorTransform.__invert();a.__isCacheBitmapRender=!0;if("opengl"==a.__cacheBitmapRenderer.__type){w=a.__cacheBitmapRenderer; +H=w.__context3D;r=H.__state.renderToTexture;y=H.__state.renderToTextureDepthStencil;var G=H.__state.renderToTextureAntiAlias,C=H.__state.renderToTextureSurfaceSelector,t=this.__blendMode;this.__suspendClipAndMask();w.__copyShader(this);a.__cacheBitmapData.__setUVRect(H,0,0,h,F);w.__setRenderTarget(a.__cacheBitmapData);null!=a.__cacheBitmapData.image&&(a.__cacheBitmapData.__textureVersion=a.__cacheBitmapData.image.version+1);a.__cacheBitmapData.__drawGL(a,w);if(c){var x=!1;n=0;for(g=a.__filters;n< +g.length;)v=g[n],++n,v.__preserveObject&&(x=!0);c=a.__cacheBitmapData;l=null;null==a.__cacheBitmapData2||q>a.__cacheBitmapData2.width||m>a.__cacheBitmapData2.height?a.__cacheBitmapData2=new Ib(q,m,!0,0):(a.__cacheBitmapData2.fillRect(a.__cacheBitmapData2.rect,0),null!=a.__cacheBitmapData2.image&&(a.__cacheBitmapData2.__textureVersion=a.__cacheBitmapData2.image.version+1));a.__cacheBitmapData2.__setUVRect(H,0,0,h,F);p=a.__cacheBitmapData2;x&&(null==a.__cacheBitmapData3||q>a.__cacheBitmapData3.width|| +m>a.__cacheBitmapData3.height?a.__cacheBitmapData3=new Ib(q,m,!0,0):(a.__cacheBitmapData3.fillRect(a.__cacheBitmapData3.rect,0),null!=a.__cacheBitmapData3.image&&(a.__cacheBitmapData3.__textureVersion=a.__cacheBitmapData3.image.version+1)),a.__cacheBitmapData3.__setUVRect(H,0,0,h,F),l=a.__cacheBitmapData3);w.__setBlendMode(10);w.__worldAlpha=1;w.__worldTransform.identity();w.__worldColorTransform.__identity();n=0;for(g=a.__filters;na.__cacheBitmapData2.width||m>a.__cacheBitmapData2.height?a.__cacheBitmapData2=new Ib(q,m,!0,0):a.__cacheBitmapData2.fillRect(a.__cacheBitmapData2.rect,0),p=a.__cacheBitmapData2):p=c;x&&(null==a.__cacheBitmapData3||null==a.__cacheBitmapData3.image||q>a.__cacheBitmapData3.width|| +m>a.__cacheBitmapData3.height?a.__cacheBitmapData3=new Ib(q,m,!0,0):a.__cacheBitmapData3.fillRect(a.__cacheBitmapData3.rect,0),l=a.__cacheBitmapData3);null==a.__tempPoint&&(a.__tempPoint=new Ma);m=a.__tempPoint;n=0;for(g=a.__filters;n=a.__worldAlpha||null==a.__currentState||(this.__pushMaskObject(a),this.__renderDrawable(a.__currentState),this.__popMaskObject(a),this.__renderEvent(a))}},__renderDrawableMask:function(a){if(null!=a)switch(a.__drawableType){case 2:this.cairo.rectangle(0, +0,a.get_width(),a.get_height());break;case 6:this.__renderDrawableMask(a.__currentState)}},__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);this.__blendMode!=a&&(this.__blendMode=a,this.__setBlendModeCairo(this.cairo,a))},__setBlendModeCairo:function(a,b){switch(b){case 0:a.setOperator(12);break;case 2:a.setOperator(17);break;case 3:a.setOperator(23);break;case 5:a.setOperator(21);break;case 7:a.setOperator(2);break;case 8:a.setOperator(18);break;case 9:a.setOperator(14); +break;case 11:a.setOperator(16);break;case 12:a.setOperator(15);break;default:a.setOperator(2)}},__class__:Jf});var qd=function(a){hc.call(this);this.context=a;this.__tempMatrix=new fa;this.__type="canvas"};qd.__name__="openfl.display.CanvasRenderer";qd.__super__=hc;qd.prototype=u(hc.prototype,{applySmoothing:function(a,b){a.imageSmoothingEnabled=b},setTransform:function(a,b){null==b?b=this.context:this.context==b&&null!=this.__worldTransform&&(this.__tempMatrix.copyFrom(a),this.__tempMatrix.concat(this.__worldTransform), +a=this.__tempMatrix);this.__roundPixels?b.setTransform(a.a,a.b,a.c,a.d,a.tx|0,a.ty|0):b.setTransform(a.a,a.b,a.c,a.d,a.tx,a.ty)},__clear:function(){if(null!=this.__stage){var a=this.__blendMode;this.__blendMode=null;this.__setBlendMode(10);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.__scale,this.__stage.stageHeight* +this.__stage.window.__scale)):this.__stage.__transparent&&this.__stage.__clearBeforeRender&&this.context.clearRect(0,0,this.__stage.stageWidth*this.__stage.window.__scale,this.__stage.stageHeight*this.__stage.window.__scale);this.__setBlendMode(a)}},__popMask:function(){this.context.restore()},__popMaskObject:function(a,b){null==b&&(b=!0);a.__isCacheBitmapRender||null==a.__mask||this.__popMask();b&&null!=a.__scrollRect&&this.__popMaskRect()},__popMaskRect:function(){this.context.restore()},__pushMask:function(a){this.context.save(); +this.setTransform(a.__renderTransform,this.context);this.context.beginPath();this.__renderDrawableMask(a);this.context.closePath();this.context.clip()},__pushMaskObject:function(a,b){null==b&&(b=!0);b&&null!=a.__scrollRect&&this.__pushMaskRect(a.__scrollRect,a.__renderTransform);a.__isCacheBitmapRender||null==a.__mask||this.__pushMask(a.__mask)},__pushMaskRect:function(a,b){this.context.save();this.setTransform(b,this.context);this.context.beginPath();this.context.rect(a.x,a.y,a.width,a.height);this.context.clip()}, +__render:function(a){this.__renderDrawable(a)},__renderDrawable:function(a){if(null!=a)switch(a.__drawableType){case 0:Kf.renderDrawable(a,this);break;case 2:bf.renderDrawable(a,this);break;case 3:Wd.renderDrawable(a,this);break;case 4:case 5:Lf.renderDrawable(a,this);break;case 6:Mf.renderDrawable(a,this);break;case 7:R.renderDrawable(a,this);break;case 8:Xd.renderDrawable(a,this);break;case 9:rd.renderDrawable(a,this)}},__renderDrawableMask:function(a){if(null!=a)switch(a.__drawableType){case 0:Kf.renderDrawableMask(a, +this);break;case 2:bf.renderDrawableMask(a,this);break;case 3:Wd.renderDrawableMask(a,this);break;case 4:case 5:Lf.renderDrawableMask(a,this);break;case 6:Mf.renderDrawableMask(a,this);break;case 7:R.renderDrawableMask(a,this);break;case 8:Xd.renderDrawableMask(a,this);break;case 9:rd.renderDrawableMask(a,this)}},__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);this.__blendMode!=a&&(this.__blendMode=a,this.__setBlendModeContext(this.context,a))},__setBlendModeContext:function(a, +b){switch(b){case 0:a.globalCompositeOperation="lighter";break;case 2:a.globalCompositeOperation="darken";break;case 3:a.globalCompositeOperation="difference";break;case 5:a.globalCompositeOperation="hard-light";break;case 8:a.globalCompositeOperation="lighten";break;case 9:a.globalCompositeOperation="multiply";break;case 11:a.globalCompositeOperation="overlay";break;case 12:a.globalCompositeOperation="screen";break;default:a.globalCompositeOperation="source-over"}},__class__:qd});var Ch={toString:function(a){switch(a){case 0:return"none"; +case 1:return"round";case 2:return"square";default:return null}}},Nf=function(a){W.call(this);this.__drawableType=10;this.__element=a};Nf.__name__="openfl.display.DOMElement";Nf.__super__=W;Nf.prototype=u(W.prototype,{__class__:Nf});var cf=function(a){hc.call(this);this.element=a;W.__supportDOM=!0;a=window.getComputedStyle(document.documentElement,"");a=(Array.prototype.slice.call(a).join("").match(/-(moz|webkit|ms)-/)||""===a.OLink&&["","o"])[1];"WebKit|Moz|MS|O".match(new RegExp("("+a+")","i")); +a[0].toUpperCase();a.substr(1);this.__vendorPrefix=a;this.__transformProperty="webkit"==a?"-webkit-transform":"transform";this.__transformOriginProperty="webkit"==a?"-webkit-transform-origin":"transform-origin";this.__clipRects=[];this.__z=this.__numClipRects=0;this.__type="dom";this.__canvasRenderer=new qd(null);this.__canvasRenderer.__isDOM=!0};cf.__name__="openfl.display.DOMRenderer";cf.__super__=hc;cf.prototype=u(hc.prototype,{__applyStyle:function(a,b,c,d){var f=a.__style;if(b&&a.__renderTransformChanged){b= +a.__renderTransform;var k=this.__roundPixels;null==k&&(k=!1);f.setProperty(this.__transformProperty,k?"matrix3d("+b.a+", "+b.b+", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+(b.tx|0)+", "+(b.ty|0)+", 0, 1)":"matrix3d("+b.a+", "+b.b+", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+b.tx+", "+b.ty+", 0, 1)",null)}a.__worldZ!=++this.__z&&(a.__worldZ=this.__z,f.setProperty("z-index",null==a.__worldZ?"null":""+a.__worldZ,null));c&&a.__worldAlphaChanged&&(1>a.__worldAlpha?f.setProperty("opacity",null==a.__worldAlpha? +"null":""+a.__worldAlpha,null):f.removeProperty("opacity"));d&&a.__worldClipChanged&&(null==a.__worldClip?f.removeProperty("clip"):(a=a.__worldClip,f.setProperty("clip","rect("+a.y+"px, "+a.get_right()+"px, "+a.get_bottom()+"px, "+a.x+"px)",null)))},__initializeElement:function(a,b){var c=a.__style=b.style;c.setProperty("position","absolute",null);c.setProperty("top","0",null);c.setProperty("left","0",null);c.setProperty(this.__transformOriginProperty,"0 0 0",null);this.element.appendChild(b);a.__worldAlphaChanged= +!0;a.__renderTransformChanged=!0;a.__worldVisibleChanged=!0;a.__worldClipChanged=!0;a.__worldClip=null;a.__worldZ=-1},__popMask:function(){this.__popMaskRect()},__popMaskObject:function(a,b){null==b&&(b=!0);null!=a.__mask&&this.__popMask();b&&null!=a.__scrollRect&&this.__popMaskRect()},__popMaskRect:function(){0c.height&&(c.height= +0);0>c.width&&(c.width=0);this.__currentClipRect=c;this.__numClipRects++},__render:function(a){this.element.style.background=this.__stage.__transparent?"none":this.__stage.__colorString;this.__z=1;this.__renderDrawable(a)},__renderDrawable:function(a){if(null!=a)switch(a.__drawableType){case 2:ub.renderDrawable(a,this);break;case 3:ic.renderDrawable(a,this);break;case 4:case 5:Of.renderDrawable(a,this);break;case 6:Pf.renderDrawable(a,this);break;case 7:Bd.renderDrawable(a,this);break;case 8:sd.renderDrawable(a, +this);break;case 9:Cd.renderDrawable(a,this);break;case 10:null!=a.stage&&a.__worldVisible&&a.__renderable?(a.__active||(this.__initializeElement(a,a.__element),a.__active=!0),this.__updateClip(a),this.__applyStyle(a,!0,!0,!0)):a.__active&&(this.element.removeChild(a.__element),a.__active=!1),ic.renderDrawable(a,this)}},__renderDrawableClear:function(a){if(null!=a)switch(a.__drawableType){case 2:ub.renderDrawableClear(a,this);break;case 3:ic.renderDrawableClear(a,this);break;case 4:case 5:Of.renderDrawableClear(a, +this);break;case 6:Pf.renderDrawableClear(a,this);break;case 7:Bd.renderDrawableClear(a,this);break;case 8:sd.renderDrawableClear(a,this);break;case 9:Cd.renderDrawableClear(a,this)}},__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);this.__blendMode!=a&&(this.__blendMode=a)},__updateClip:function(a){if(null==this.__currentClipRect)a.__worldClipChanged=null!=a.__worldClip,a.__worldClip=null;else{null==a.__worldClip&&(a.__worldClip=new ca);var b=ca.__pool.get(), +c=fa.__pool.get();c.copyFrom(a.__renderTransform);c.invert();this.__currentClipRect.__transform(b,c);b.equals(a.__worldClip)?a.__worldClipChanged=!1:(a.__worldClip.copyFrom(b),a.__worldClipChanged=!0);ca.__pool.release(b);fa.__pool.release(c)}},__class__:cf});var Nc=function(a){this.byteCode=a;this.precisionHint=1;this.__glSourceDirty=!0;this.__numPasses=1;this.__data=ph._new(a)};Nc.__name__="openfl.display.Shader";Nc.prototype={__clearUseArray:function(){for(var a=0,b=this.__paramBool;a 0.0) {\n\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * openfl_Alphav, color.a * openfl_Alphav);\n\n\t\t\t} else {\n\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tgl_FragColor = color * openfl_Alphav;\n\n\t\t}\n\n\t\t}"); +null==this.__glVertexSource&&(this.__glVertexSource="attribute float openfl_Alpha;\n\t\tattribute vec4 openfl_ColorMultiplier;\n\t\tattribute vec4 openfl_ColorOffset;\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_Alphav = openfl_Alpha;\n\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tif (openfl_HasColorTransform) {\n\n\t\t\topenfl_ColorMultiplierv = openfl_ColorMultiplier;\n\t\t\topenfl_ColorOffsetv = openfl_ColorOffset / 255.0;\n\n\t\t}\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}"); +Nc.call(this,a);this.__isGenerated=!0;this.__initGL()};Rf.__name__="openfl.display.DisplayObjectShader";Rf.__super__=Nc;Rf.prototype=u(Nc.prototype,{__class__:Rf});var Ig=function(a,b){B.call(this);this.name=a;this.frame=b};Ig.__name__="openfl.display.FrameLabel";Ig.__super__=B;Ig.prototype=u(B.prototype,{__class__:Ig});var sc=function(a){this.__dirty=!0;this.__owner=a;this.__commands=new jc;this.__positionY=this.__positionX=this.__strokePadding=0;this.__renderTransform=new fa;this.__usedShaderBuffers= +new ka;this.__worldTransform=new fa;this.__height=this.__width=0;this.__bitmapScale=1;this.__shaderBufferPool=new ba(function(){return new Sf});this.moveTo(0,0)};sc.__name__="openfl.display.Graphics";sc.prototype={beginBitmapFill:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!0);a.readable?(this.__commands.beginBitmapFill(a,null!=b?b.clone():null,c,d),this.__visible=!0):this.beginFill(0,1)},beginFill:function(a,b){null==b&&(b=1);null==a&&(a=0);this.__commands.beginFill(a&16777215,b);0c?-1:1,k=0>d?-1:1;this.__inflateBounds(a-this.__strokePadding*f,b-this.__strokePadding*k);this.__inflateBounds(a+c+this.__strokePadding*f,b+d+this.__strokePadding*k);this.__commands.drawRect(a, +b,c,d);this.set___dirty(!0)}},drawRoundRect:function(a,b,c,d,f,k){if(0!=c||0!=d){var q=0>c?-1:1,p=0>d?-1:1;this.__inflateBounds(a-this.__strokePadding*q,b-this.__strokePadding*p);this.__inflateBounds(a+c+this.__strokePadding*q,b+d+this.__strokePadding*p);this.__commands.drawRoundRect(a,b,c,d,f,k);this.set___dirty(!0)}},endFill:function(){this.__commands.endFill()},lineBitmapStyle:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!0);this.__commands.lineBitmapStyle(a,null!=b?b.clone():null,c,d)},lineGradientStyle:function(a, +b,c,d,f,k,q,p){null==p&&(p=0);null==q&&(q=1);null==k&&(k=0);if(null==c){c=[];for(var n=0,g=b.length;nthis.__strokePadding&&(this.__strokePadding=Math.ceil(a)):a/2>this.__strokePadding&& +(this.__strokePadding=Math.ceil(a/2)));this.__commands.lineStyle(a,b,c,d,f,k,q,p);null!=a&&(this.__visible=!0)},moveTo:function(a,b){this.__positionX=a;this.__positionY=b;this.__commands.moveTo(a,b)},__cleanup:function(){null!=this.__bounds&&null!=this.__canvas&&(this.set___dirty(!0),this.__transformDirty=!0);this.__context=this.__canvas=this.__bitmap=null},__getBounds:function(a,b){if(null!=this.__bounds){var c=ca.__pool.get();this.__bounds.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);ca.__pool.release(c)}}, +__hitTest:function(a,b,c,d){if(null==this.__bounds)return!1;var f=d.a*d.d-d.b*d.c,k=0==f?-d.tx:1/f*(d.c*(d.ty-b)+d.d*(a-d.tx));f=d.a*d.d-d.b*d.c;a=0==f?-d.ty:1/f*(d.a*(b-d.ty)+d.b*(d.tx-a));return k>this.__bounds.x&&a>this.__bounds.y&&this.__bounds.contains(k,a)?c?y.hitTest(this,k,a):!0:!1},__inflateBounds:function(a,b){null==this.__bounds?(this.__bounds=new ca(a,b,0,0),this.__transformDirty=!0):(athis.__bounds.x+this.__bounds.width&&(this.__bounds.width=a-this.__bounds.x),b>this.__bounds.y+this.__bounds.height&&(this.__bounds.height=b-this.__bounds.y))},__update:function(a,b){if(!(null==this.__bounds||0>=this.__bounds.width||0>=this.__bounds.height)){var c=this.__owner.__renderTransform;if(null!=c){var d=b,f=b;null==this.__owner.__worldScale9Grid&&(d=0==c.b?Math.abs(c.a):Math.sqrt(c.a* +c.a+c.b*c.b),f=0==c.c?Math.abs(c.d):Math.sqrt(c.c*c.c+c.d*c.d),null!=a&&(d=0==a.b?d*a.a:d*Math.sqrt(a.a*a.a+a.b*a.b),f=0==a.c?f*a.d:f*Math.sqrt(a.c*a.c+a.d*a.d)));a=this.__bounds.width*d;f*=this.__bounds.height;if(1>a||1>f)(1<=this.__width||1<=this.__height)&&this.set___dirty(!0),this.__height=this.__width=0;else{null!=sc.maxTextureWidth&&a>sc.maxTextureWidth&&(a=sc.maxTextureWidth);null!=sc.maxTextureWidth&&f>sc.maxTextureHeight&&(f=sc.maxTextureHeight);if(null!=this.__owner.__worldScale9Grid){this.__renderTransform.a= +b;this.__renderTransform.d=b;d=1/b;var k=1/b}else this.__renderTransform.a=a/this.__bounds.width,this.__renderTransform.d=f/this.__bounds.height,d=1/this.__renderTransform.a,k=1/this.__renderTransform.d;this.__worldTransform.a=d*c.a;this.__worldTransform.b=d*c.b;this.__worldTransform.c=k*c.c;this.__worldTransform.d=k*c.d;k=this.__bounds.x;var q=this.__bounds.y;d=k*c.a+q*c.c+c.tx;c=k*c.b+q*c.d+c.ty;1 0.0) {\n\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * openfl_Alphav, color.a * openfl_Alphav);\n\n\t\t\t} else {\n\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tgl_FragColor = color * openfl_Alphav;\n\n\t\t}\n\n\t\t}"); +null==this.__glVertexSource&&(this.__glVertexSource="attribute float openfl_Alpha;\n\t\tattribute vec4 openfl_ColorMultiplier;\n\t\tattribute vec4 openfl_ColorOffset;\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_Alphav = openfl_Alpha;\n\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tif (openfl_HasColorTransform) {\n\n\t\t\topenfl_ColorMultiplierv = openfl_ColorMultiplier;\n\t\t\topenfl_ColorOffsetv = openfl_ColorOffset / 255.0;\n\n\t\t}\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}"); +Nc.call(this,a);this.__isGenerated=!0;this.__initGL()};Tf.__name__="openfl.display.GraphicsShader";Tf.__super__=Nc;Tf.prototype=u(Nc.prototype,{__class__:Tf});var Jg=function(){};Jg.__name__="openfl.display.ITileContainer";Jg.__isInterface__=!0;var Dh={toString:function(a){switch(a){case 0:return"bevel";case 1:return"miter";case 2:return"round";default:return null}}},Kg=function(){ia.call(this);this.__drawableType=4;this.contentLoaderInfo=Rc.create(this);this.uncaughtErrorEvents=this.contentLoaderInfo.uncaughtErrorEvents; +this.__unloaded=!0};Kg.__name__="openfl.display.Loader";Kg.__super__=ia;Kg.prototype=u(ia.prototype,{addChild:function(a){throw new Eb("Error #2069: The Loader class does not implement this method.",2069);},addChildAt:function(a,b){throw new Eb("Error #2069: The Loader class does not implement this method.",2069);},removeChild:function(a){if(a==this.content)return ia.prototype.removeChild.call(this,this.content);throw new Eb("Error #2069: The Loader class does not implement this method.",2069);}, +setChildIndex:function(a,b){throw new Eb("Error #2069: The Loader class does not implement this method.",2069);},__class__:Kg});var Rc=function(){B.call(this);this.applicationDomain=ye.currentDomain;this.bytesTotal=this.bytesLoaded=0;this.childAllowsParent=!0;this.parameters={}};Rc.__name__="openfl.display.LoaderInfo";Rc.create=function(a){var b=new Rc;b.uncaughtErrorEvents=new Uf;null!=a?b.loader=a:b.url=Rc.__rootURL;return b};Rc.__super__=B;Rc.prototype=u(B.prototype,{__complete:function(){this.__completed|| +(this.bytesLoaded=this.x&&b>=this.y&&aa+c&&(q=a+c-this.get_right());this.get_bottom()>b+d&&(p=b+d-this.get_bottom());this.x+=f;this.y+=k;this.width+=q-f;this.height+=p-k}},__expand:function(a,b,c,d){if(0==this.width&&0==this.height)this.x=a,this.y=b,this.width=c,this.height=d;else{var f=this.get_right(),k=this.get_bottom();this.x>a&&(this.x=a,this.width=f-a);this.y> +b&&(this.y=b,this.height=k-b);fd&&(d=q);p>k&&(k=p);q=b.a*(this.x+this.width)+b.c* +(this.y+this.height);p=b.b*(this.x+this.width)+b.d*(this.y+this.height);qd&&(d=q);p>k&&(k=p);q=b.a*this.x+b.c*(this.y+this.height);p=b.b*this.x+b.d*(this.y+this.height);qd&&(d=q);p>k&&(k=p);a.setTo(c+b.tx,f+b.ty,d-c,k-f)},get_bottom:function(){return this.y+this.height},get_left:function(){return this.x},get_right:function(){return this.x+this.width},get_top:function(){return this.y},__class__:ca,__properties__:{get_top:"get_top",get_right:"get_right", +get_left:"get_left",get_bottom:"get_bottom"}};var Ha=function(a,b){hc.call(this);this.__context3D=a;this.__context=a.__context;this.__gl=this.gl=a.__context.webgl;this.__defaultRenderTarget=b;this.__flipped=null==this.__defaultRenderTarget;null==sc.maxTextureWidth&&(sc.maxTextureWidth=sc.maxTextureHeight=this.__gl.getParameter(this.__gl.MAX_TEXTURE_SIZE));this.__matrix=Ra._new();this.__values=[];this.__softwareRenderer=new qd(null);this.__type="opengl";this.__setBlendMode(10);this.__context3D.__setGLBlend(!0); +this.__clipRects=[];this.__maskObjects=[];this.__numClipRects=0;this.__projection=Ra._new();this.__projectionFlipped=Ra._new();this.__stencilReference=0;this.__tempRect=new ca;this.__defaultDisplayShader=new Rf;this.__defaultGraphicsShader=new Tf;this.__defaultShader=this.__defaultDisplayShader;this.__initShader(this.__defaultShader);this.__scrollRectMasks=new ba(function(){return new ze});this.__maskShader=new Zd};Ha.__name__="openfl.display.OpenGLRenderer";Ha.__super__=hc;Ha.prototype=u(hc.prototype, +{applyAlpha:function(a){Ha.__alphaValue[0]=a*this.__worldAlpha;null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addFloatOverride("openfl_Alpha",Ha.__alphaValue):null!=this.__currentShader&&null!=this.__currentShader.__alpha&&(this.__currentShader.__alpha.value=Ha.__alphaValue)},applyBitmapData:function(a,b,c){null==c&&(c=!1);null!=this.__currentShaderBuffer?null!=a&&(Ha.__textureSizeValue[0]=a.__textureWidth,Ha.__textureSizeValue[1]=a.__textureHeight,this.__currentShaderBuffer.addFloatOverride("openfl_TextureSize", +Ha.__textureSizeValue)):null!=this.__currentShader&&(null!=this.__currentShader.__bitmap&&(this.__currentShader.__bitmap.input=a,this.__currentShader.__bitmap.filter=b&&this.__allowSmoothing?4:5,this.__currentShader.__bitmap.mipFilter=2,this.__currentShader.__bitmap.wrap=c?2:0),null!=this.__currentShader.__texture&&(this.__currentShader.__texture.input=a,this.__currentShader.__texture.filter=b&&this.__allowSmoothing?4:5,this.__currentShader.__texture.mipFilter=2,this.__currentShader.__texture.wrap= +c?2:0),null!=this.__currentShader.__textureSize&&(null!=a?(Ha.__textureSizeValue[0]=a.__textureWidth,Ha.__textureSizeValue[1]=a.__textureHeight,this.__currentShader.__textureSize.value=Ha.__textureSizeValue):this.__currentShader.__textureSize.value=null))},applyColorTransform:function(a){var b=null!=a&&!a.__isDefault(!0);this.applyHasColorTransform(b);b?(a.__setArrays(Ha.__colorMultipliersValue,Ha.__colorOffsetsValue),null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addFloatOverride("openfl_ColorMultiplier", +Ha.__colorMultipliersValue),this.__currentShaderBuffer.addFloatOverride("openfl_ColorOffset",Ha.__colorOffsetsValue)):null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=Ha.__colorMultipliersValue),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.value=Ha.__colorOffsetsValue))):null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addFloatOverride("openfl_ColorMultiplier",Ha.__emptyColorValue), +this.__currentShaderBuffer.addFloatOverride("openfl_ColorOffset",Ha.__emptyColorValue)):null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=Ha.__emptyColorValue),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.value=Ha.__emptyColorValue))},applyHasColorTransform:function(a){Ha.__hasColorTransformValue[0]=a;null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addBoolOverride("openfl_HasColorTransform", +Ha.__hasColorTransformValue):null!=this.__currentShader&&null!=this.__currentShader.__hasColorTransform&&(this.__currentShader.__hasColorTransform.value=Ha.__hasColorTransformValue)},applyMatrix:function(a){null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addFloatOverride("openfl_Matrix",a):null!=this.__currentShader&&null!=this.__currentShader.__matrix&&(this.__currentShader.__matrix.value=a)},setShader:function(a){this.__currentShaderBuffer=null;this.__currentShader!=a&&(null==a?(this.__currentShader= +null,this.__context3D.setProgram(null)):(this.__currentShader=a,this.__initShader(a),this.__context3D.setProgram(a.program),this.__context3D.__flushGLProgram(),this.__currentShader.__enable(),this.__context3D.__state.shader=a))},setViewport:function(){this.__gl.viewport(this.__offsetX,this.__offsetY,this.__displayWidth,this.__displayHeight)},updateShader:function(){null!=this.__currentShader&&(null!=this.__currentShader.__position&&(this.__currentShader.__position.__useArray=!0),null!=this.__currentShader.__textureCoord&& +(this.__currentShader.__textureCoord.__useArray=!0),this.__context3D.setProgram(this.__currentShader.program),this.__context3D.__flushGLProgram(),this.__context3D.__flushGLTextures(),this.__currentShader.__update())},useAlphaArray:function(){null!=this.__currentShader&&null!=this.__currentShader.__alpha&&(this.__currentShader.__alpha.__useArray=!0)},useColorTransformArray:function(){null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.__useArray= +!0),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.__useArray=!0))},__clear:function(){null==this.__stage||this.__stage.__transparent?this.__context3D.clear(0,0,0,0,0,0,1):this.__context3D.clear(this.__stage.__colorSplit[0],this.__stage.__colorSplit[1],this.__stage.__colorSplit[2],1,0,0,1);this.__cleared=!0},__clearShader:function(){null!=this.__currentShader&&(null==this.__currentShaderBuffer?null!=this.__currentShader.__bitmap&&(this.__currentShader.__bitmap.input= +null):this.__currentShaderBuffer.clearOverride(),null!=this.__currentShader.__texture&&(this.__currentShader.__texture.input=null),null!=this.__currentShader.__textureSize&&(this.__currentShader.__textureSize.value=null),null!=this.__currentShader.__hasColorTransform&&(this.__currentShader.__hasColorTransform.value=null),null!=this.__currentShader.__position&&(this.__currentShader.__position.value=null),null!=this.__currentShader.__matrix&&(this.__currentShader.__matrix.value=null),this.__currentShader.__clearUseArray())}, +__copyShader:function(a){this.__currentShader=a.__currentShader;this.__currentShaderBuffer=a.__currentShaderBuffer;this.__currentDisplayShader=a.__currentDisplayShader;this.__currentGraphicsShader=a.__currentGraphicsShader},__getMatrix:function(a,b){var c=fa.__pool.get();c.copyFrom(a);c.concat(this.__worldTransform);if(0==b||1==b&&0==c.b&&0==c.c&&1.001>c.a&&.999c.d&&.999b.height&&(b.height=0);0>b.width&&(b.width=0);fa.__pool.release(c);this.__scissorRect(b);this.__numClipRects++},__render:function(a){this.__context3D.setColorMask(!0,!0,!0,!0);this.__context3D.setCulling(3); +this.__context3D.setDepthTest(!1,0);this.__context3D.setStencilActions();this.__context3D.setStencilReferenceValue(0,0,0);this.__context3D.setScissorRectangle(null);this.__blendMode=null;this.__setBlendMode(10);if(null==this.__defaultRenderTarget){if(this.__context3D.__backBufferWantsBestResolution?Ha.__scissorRectangle.setTo(this.__offsetX/this.__pixelRatio,this.__offsetY/this.__pixelRatio,this.__displayWidth/this.__pixelRatio,this.__displayHeight/this.__pixelRatio):Ha.__scissorRectangle.setTo(this.__offsetX, +this.__offsetY,this.__displayWidth,this.__displayHeight),this.__context3D.setScissorRectangle(Ha.__scissorRectangle),this.__upscaled=1!=this.__worldTransform.a||1!=this.__worldTransform.d,this.__renderDrawable(a),0d&&(d=0);0>f&&(f=0);Ha.__scissorRectangle.setTo(b,c,d,f);this.__context3D.setScissorRectangle(Ha.__scissorRectangle)}else this.__context3D.setScissorRectangle(null)},__setBlendMode:function(a){null!= +this.__overrideBlendMode&&(a=this.__overrideBlendMode);if(this.__blendMode!=a)switch(this.__blendMode=a,a){case 0:this.__context3D.setBlendFactors(2,2);break;case 9:this.__context3D.setBlendFactors(1,5);break;case 12:this.__context3D.setBlendFactors(2,6);break;case 14:this.__context3D.setBlendFactors(2,2);this.__context3D.__setGLBlendEquation(this.__gl.FUNC_REVERSE_SUBTRACT);break;default:this.__context3D.setBlendFactors(2,5)}},__setRenderTarget:function(a){this.__defaultRenderTarget=a;this.__flipped= +null==a;null!=a&&this.__resize(a.width,a.height)},__setShaderBuffer:function(a){this.setShader(a.shader);this.__currentShaderBuffer=a},__suspendClipAndMask:function(){0.299*(a>>16&255)+.587*(a>>8&255)+.114*(a&255)&&(b=16777215);a=this.getHeight()/2-3.5;var c=this.getWidth()-60;this.outline=new ze;this.outline.get_graphics().beginFill(b,.07);this.outline.get_graphics().drawRect(0,0,c,7);this.outline.set_x(30);this.outline.set_y(a);this.outline.set_alpha(0);this.addChild(this.outline);this.progress=new ze;this.progress.get_graphics().beginFill(b,.35);this.progress.get_graphics().drawRect(0,0,c-4,3);this.progress.set_x(32); +this.progress.set_y(a+2);this.progress.set_scaleX(0);this.progress.set_alpha(0);this.addChild(this.progress);this.startAnimation=Ca.getTimer()+100;this.endAnimation=this.startAnimation+1E3;this.addEventListener("addedToStage",h(this,this.this_onAddedToStage))};Je.__name__="openfl.display.DefaultPreloader";Je.__super__=Ta;Je.prototype=u(Ta.prototype,{getBackgroundColor:function(){var a=Ca.get_current().stage.window.context.attributes;return Object.prototype.hasOwnProperty.call(a,"background")&&null!= +a.background?a.background:0},getHeight:function(){var a=Ca.get_current().stage.window.__height;return 0a&&(a=0);1b||a.setTextureAt(b,null)},__updateGL:function(a,b,c,d,f,k){c=null!=c?c:this.input;d=null!=d?d:this.filter;f=null!=f?f:this.mipFilter;k=null!=k?k:this.wrap;null!=c?(a.setTextureAt(b,c.getTexture(a)),a.setSamplerStateAt(b,k,d,f)):a.setTextureAt(b,null)},__class__:Qf};var xe=function(){this.index=0};xe.__name__="openfl.display.ShaderParameter";xe.prototype={__disableGL:function(a){if(!(0>this.index||(a=a.gl,this.__isUniform)))for(var b=0,c=this.__arrayLength;b< +c;){var d=b++;a.disableVertexAttribArray(this.index+d)}},__updateGL:function(a,b){if(!(0>this.index)){a=a.gl;b=null!=b?b:this.value;var c=this.__isBool?b:null,d=this.__isFloat?b:null,f=this.__isInt?b:null;if(this.__isUniform)if(null!=b&&b.length>=this.__length)switch(this.type){case 0:a.uniform1i(this.index,c[0]?1:0);break;case 1:a.uniform2i(this.index,c[0]?1:0,c[1]?1:0);break;case 2:a.uniform3i(this.index,c[0]?1:0,c[1]?1:0,c[2]?1:0);break;case 3:a.uniform4i(this.index,c[0]?1:0,c[1]?1:0,c[2]?1:0, +c[3]?1:0);break;case 4:a.uniform1f(this.index,d[0]);break;case 5:a.uniform2f(this.index,d[0],d[1]);break;case 6:a.uniform3f(this.index,d[0],d[1],d[2]);break;case 7:a.uniform4f(this.index,d[0],d[1],d[2],d[3]);break;case 8:a.uniform1i(this.index,f[0]);break;case 9:a.uniform2i(this.index,f[0],f[1]);break;case 10:a.uniform3i(this.index,f[0],f[1],f[2]);break;case 11:a.uniform4i(this.index,f[0],f[1],f[2],f[3]);break;case 12:this.__uniformMatrix[0]=d[0];this.__uniformMatrix[1]=d[1];this.__uniformMatrix[2]= +d[2];this.__uniformMatrix[3]=d[3];Nb.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=d[0];this.__uniformMatrix[1]=d[1];this.__uniformMatrix[2]=d[2];this.__uniformMatrix[3]=d[3];this.__uniformMatrix[4]=d[4];this.__uniformMatrix[5]=d[5];this.__uniformMatrix[6]=d[6];this.__uniformMatrix[7]=d[7];this.__uniformMatrix[8]=d[8];Nb.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=d[0],this.__uniformMatrix[1]=d[1],this.__uniformMatrix[2]= +d[2],this.__uniformMatrix[3]=d[3],this.__uniformMatrix[4]=d[4],this.__uniformMatrix[5]=d[5],this.__uniformMatrix[6]=d[6],this.__uniformMatrix[7]=d[7],this.__uniformMatrix[8]=d[8],this.__uniformMatrix[9]=d[9],this.__uniformMatrix[10]=d[10],this.__uniformMatrix[11]=d[11],this.__uniformMatrix[12]=d[12],this.__uniformMatrix[13]=d[13],this.__uniformMatrix[14]=d[14],this.__uniformMatrix[15]=d[15],Nb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}else switch(this.type){case 4:a.uniform1f(this.index, +0);break;case 5:a.uniform2f(this.index,0,0);break;case 6:a.uniform3f(this.index,0,0,0);break;case 7:a.uniform4f(this.index,0,0,0,0);break;case 0:case 8:a.uniform1i(this.index,0);break;case 1:case 9:a.uniform2i(this.index,0,0);break;case 2:case 10:a.uniform3i(this.index,0,0,0);break;case 3:case 11:a.uniform4i(this.index,0,0,0,0);break;case 12:this.__uniformMatrix[0]=0;this.__uniformMatrix[1]=0;this.__uniformMatrix[2]=0;this.__uniformMatrix[3]=0;Nb.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix); +break;case 16:this.__uniformMatrix[0]=0;this.__uniformMatrix[1]=0;this.__uniformMatrix[2]=0;this.__uniformMatrix[3]=0;this.__uniformMatrix[4]=0;this.__uniformMatrix[5]=0;this.__uniformMatrix[6]=0;this.__uniformMatrix[7]=0;this.__uniformMatrix[8]=0;Nb.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=0,this.__uniformMatrix[1]=0,this.__uniformMatrix[2]=0,this.__uniformMatrix[3]=0,this.__uniformMatrix[4]=0,this.__uniformMatrix[5]=0,this.__uniformMatrix[6]=0, +this.__uniformMatrix[7]=0,this.__uniformMatrix[8]=0,this.__uniformMatrix[9]=0,this.__uniformMatrix[10]=0,this.__uniformMatrix[11]=0,this.__uniformMatrix[12]=0,this.__uniformMatrix[13]=0,this.__uniformMatrix[14]=0,this.__uniformMatrix[15]=0,Nb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}else if(this.__useArray||null!=b&&b.length!=this.__length)for(k=0,q=this.__arrayLength;kthis.index))if(a=a.gl,this.__isUniform){if(d>=this.__length)switch(this.type){case 4:a.uniform1f(this.index,b[c]);break;case 5:a.uniform2f(this.index, +b[c],b[c+1]);break;case 6:a.uniform3f(this.index,b[c],b[c+1],b[c+2]);break;case 7:a.uniform4f(this.index,b[c],b[c+1],b[c+2],b[c+3]);break;case 0:case 8:a.uniform1i(this.index,b[c]|0);break;case 1:case 9:a.uniform2i(this.index,b[c]|0,b[c+1]|0);break;case 2:case 10:a.uniform3i(this.index,b[c]|0,b[c+1]|0,b[c+2]|0);break;case 3:case 11:a.uniform4i(this.index,b[c]|0,b[c+1]|0,b[c+2]|0,b[c+3]|0);break;case 12:this.__uniformMatrix[0]=b[c];this.__uniformMatrix[1]=b[c+1];this.__uniformMatrix[2]=b[c+2];this.__uniformMatrix[3]= +b[c+3];Nb.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=b[c];this.__uniformMatrix[1]=b[c+1];this.__uniformMatrix[2]=b[c+2];this.__uniformMatrix[3]=b[c+3];this.__uniformMatrix[4]=b[c+4];this.__uniformMatrix[5]=b[c+5];this.__uniformMatrix[6]=b[c+6];this.__uniformMatrix[7]=b[c+7];this.__uniformMatrix[8]=b[c+8];Nb.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=b[c],this.__uniformMatrix[1]=b[c+1],this.__uniformMatrix[2]= +b[c+2],this.__uniformMatrix[3]=b[c+3],this.__uniformMatrix[4]=b[c+4],this.__uniformMatrix[5]=b[c+5],this.__uniformMatrix[6]=b[c+6],this.__uniformMatrix[7]=b[c+7],this.__uniformMatrix[8]=b[c+8],this.__uniformMatrix[9]=b[c+9],this.__uniformMatrix[10]=b[c+10],this.__uniformMatrix[11]=b[c+11],this.__uniformMatrix[12]=b[c+12],this.__uniformMatrix[13]=b[c+13],this.__uniformMatrix[14]=b[c+14],this.__uniformMatrix[15]=b[c+15],Nb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}}else if(this.__internal|| +0!=d&&d!=this.__length){b=a.FLOAT;this.__isBool?b=a.INT:this.__isInt&&(b=a.INT);k=0;for(q=this.__arrayLength;kthis.__dragBounds.get_right()&&(b=this.__dragBounds.get_right()),athis.__dragBounds.get_bottom()&&(a=this.__dragBounds.get_bottom()));this.__dragObject.set_x(b);this.__dragObject.set_y(a)},__getInteractive:function(a){null!=a&&a.push(this);return!0},__globalToLocal:function(a, +b){a!=b&&b.copyFrom(a);return b},__handleError:function(a){var b=new he("uncaughtError",!0,!0,a);Ca.get_current().__loaderInfo.uncaughtErrorEvents.dispatchEvent(b);if(!b.__preventDefault){b=id.toString(id.exceptionStack());console.log(b);b=L.string(a);console.log(b);try{if(null!=a&&Object.prototype.hasOwnProperty.call(a,"stack")&&null!=a.stack&&""!=a.stack)console.log(a.stack),a.stack=a.stack;else{var c=id.toString(id.callStack());console.log(c)}}catch(d){ya.lastError=d}throw a;}},__onKey:function(a, +b,c){this.__dispatchPendingMouseEvent();gb.__altKey=Ga.get_altKey(c);gb.__commandKey=Ga.get_metaKey(c);gb.__controlKey=Ga.get_ctrlKey(c)&&!Ga.get_metaKey(c);gb.__ctrlKey=Ga.get_ctrlKey(c);gb.__shiftKey=Ga.get_shiftKey(c);var d=[];null==this.__focus?this.__getInteractive(d):this.__focus.__getInteractive(d);if(0p?0:p+b}else k=this.__currentTabOrderIndex}else 1==d.length&&(a=d[0],this.get_focus()==a&&(a= +null));p=0<=k&&kk&&(k+=d.length),k%=d.length,a=d[k],a==this.get_focus()&&(k+=b,0>k&&(k+=d.length),k%=d.length,a=d[k]));b=null;null!=this.get_focus()&&(b=new be("keyFocusChange",!0,!0,a,Ga.get_shiftKey(c),0),d=[],this.get_focus().__getInteractive(d),d.reverse(),this.__dispatchStack(b,d),b.isDefaultPrevented()&&this.window.onKeyDown.cancel());null!=b&&b.isDefaultPrevented()||(this.__currentTabOrderIndex=k,null!=a&&this.set_focus(a), +p&&this.window.onKeyDown.cancel())}else if("keyDown"==a&&null!=this.get_focus()&&!(this.get_focus()instanceof gc)&&(this.__macKeyboard?Ga.get_ctrlKey(c)||Ga.get_metaKey(c):Ga.get_ctrlKey(c))&&!Ga.get_altKey(c)&&!Ga.get_shiftKey(c))switch(b){case 65:c=new ea("selectAll",!0,!0);this.get_focus().dispatchEvent(c);break;case 67:c=new ea("copy",!0,!0);this.get_focus().dispatchEvent(c);break;case 86:c=new ea("paste",!0,!0);this.get_focus().dispatchEvent(c);break;case 88:c=new ea("cut",!0,!0),this.get_focus().dispatchEvent(c)}f.__updateAfterEventFlag&& +this.__renderAfterEvent()}},__onLimeCreateWindow:function(a){if(this.window==a){var b=this;a.onActivate.add(function(){b.__onLimeWindowActivate(a)});var c=this;a.onClose.add(function(){c.__onLimeWindowClose(a)},!1,-9E3);var d=this;a.onDeactivate.add(function(){d.__onLimeWindowDeactivate(a)});var f=this;var k=function(b){f.__onLimeWindowDropFile(a,b)};a.onDropFile.add(k);var q=this;a.onEnter.add(function(){q.__onLimeWindowEnter(a)});var p=this;a.onExpose.add(function(){p.__onLimeWindowExpose(a)}); +var n=this;a.onFocusIn.add(function(){n.__onLimeWindowFocusIn(a)});var g=this;a.onFocusOut.add(function(){g.__onLimeWindowFocusOut(a)});var v=this;a.onFullscreen.add(function(){v.__onLimeWindowFullscreen(a)});var m=this;k=function(b,c){m.__onLimeKeyDown(a,b,c)};a.onKeyDown.add(k);var F=this;k=function(b,c){F.__onLimeKeyUp(a,b,c)};a.onKeyUp.add(k);var l=this;a.onLeave.add(function(){l.__onLimeWindowLeave(a)});var w=this;a.onMinimize.add(function(){w.__onLimeWindowMinimize(a)});var H=this;k=function(b, +c,d){H.__onLimeMouseDown(a,b,c,d)};a.onMouseDown.add(k);var r=this;k=function(b,c){r.__onLimeMouseMove(a,b,c)};a.onMouseMove.add(k);var y=this;k=function(b,c){y.__onLimeMouseMoveRelative(a,b,c)};a.onMouseMoveRelative.add(k);var G=this;k=function(b,c,d){G.__onLimeMouseUp(a,b,c,d)};a.onMouseUp.add(k);var C=this;k=function(b,c,d){C.__onLimeMouseWheel(a,b,c,d)};a.onMouseWheel.add(k);var t=this;k=function(b,c){t.__onLimeWindowMove(a,b,c)};a.onMove.add(k);a.onRender.add(h(this,this.__onLimeRender));a.onRenderContextLost.add(h(this, +this.__onLimeRenderContextLost));a.onRenderContextRestored.add(h(this,this.__onLimeRenderContextRestored));var x=this;k=function(b,c){x.__onLimeWindowResize(a,b,c)};a.onResize.add(k);var L=this;a.onRestore.add(function(){L.__onLimeWindowRestore(a)});var u=this;k=function(b,c,d){u.__onLimeTextEdit(a,b,c,d)};a.onTextEdit.add(k);var ra=this;k=function(b){ra.__onLimeTextInput(a,b)};a.onTextInput.add(k);this.__onLimeWindowCreate(a)}},__onLimeGamepadAxisMove:function(a,b,c){if(this.__uncaughtErrorEvents.__enabled)try{Ia.__onGamepadAxisMove(a, +b,c)}catch(d){ya.lastError=d,a=Ja.caught(d).unwrap(),this.__handleError(a)}else Ia.__onGamepadAxisMove(a,b,c)},__onLimeGamepadButtonDown:function(a,b){if(this.__uncaughtErrorEvents.__enabled)try{Ia.__onGamepadButtonDown(a,b)}catch(c){ya.lastError=c,a=Ja.caught(c).unwrap(),this.__handleError(a)}else Ia.__onGamepadButtonDown(a,b)},__onLimeGamepadButtonUp:function(a,b){if(this.__uncaughtErrorEvents.__enabled)try{Ia.__onGamepadButtonUp(a,b)}catch(c){ya.lastError=c,a=Ja.caught(c).unwrap(),this.__handleError(a)}else Ia.__onGamepadButtonUp(a, +b)},__onLimeGamepadConnect:function(a){if(this.__uncaughtErrorEvents.__enabled)try{Ia.__onGamepadConnect(a)}catch(q){ya.lastError=q;var b=Ja.caught(q).unwrap();this.__handleError(b)}else Ia.__onGamepadConnect(a);var c=this;b=function(b,d){c.__onLimeGamepadAxisMove(a,b,d)};a.onAxisMove.add(b);var d=this;b=function(b){d.__onLimeGamepadButtonDown(a,b)};a.onButtonDown.add(b);var f=this;b=function(b){f.__onLimeGamepadButtonUp(a,b)};a.onButtonUp.add(b);var k=this;a.onDisconnect.add(function(){k.__onLimeGamepadDisconnect(a)})}, +__onLimeGamepadDisconnect:function(a){if(this.__uncaughtErrorEvents.__enabled)try{Ia.__onGamepadDisconnect(a)}catch(b){ya.lastError=b,a=Ja.caught(b).unwrap(),this.__handleError(a)}else Ia.__onGamepadDisconnect(a)},__onLimeKeyDown:function(a,b,c){null!=this.window&&this.window==a&&this.__onKey("keyDown",b,c)},__onLimeKeyUp:function(a,b,c){null!=this.window&&this.window==a&&this.__onKey("keyUp",b,c)},__onLimeModuleExit:function(a){null!=this.window&&(a=new ea("deactivate"),this.__broadcastEvent(a))}, +__onLimeMouseDown:function(a,b,c,d){if(null!=this.window&&this.window==a){this.__dispatchPendingMouseEvent();switch(d){case 1:var f="middleMouseDown";break;case 2:f="rightMouseDown";break;default:f="mouseDown"}this.__onMouse(f,b*a.__scale|0,c*a.__scale|0,d);this.showDefaultContextMenu||2!=d||a.onMouseDown.cancel()}},__onLimeMouseMove:function(a,b,c){null!=this.window&&this.window==a&&(this.__pendingMouseEvent=!0,this.__pendingMouseX=b*a.__scale|0,this.__pendingMouseY=c*a.__scale|0)},__onLimeMouseMoveRelative:function(a, +b,c){},__onLimeMouseUp:function(a,b,c,d){if(null!=this.window&&this.window==a){this.__dispatchPendingMouseEvent();switch(d){case 1:var f="middleMouseUp";break;case 2:f="rightMouseUp";break;default:f="mouseUp"}this.__onMouse(f,b*a.__scale|0,c*a.__scale|0,d);this.showDefaultContextMenu||2!=d||a.onMouseUp.cancel()}},__onLimeMouseWheel:function(a,b,c,d){null!=this.window&&this.window==a&&(this.__dispatchPendingMouseEvent(),d==md.PIXELS?this.__onMouseWheel(b*a.__scale|0,c*a.__scale|0,d):this.__onMouseWheel(b| +0,c|0,d))},__renderAfterEvent:function(){this.__render(this.window.context)},__render:function(a){a=!1;var b=null!=this.__renderer&&(this.__renderDirty||this.__forceRender);if(this.__invalidated&&b){this.__invalidated=!1;var c=new ea("render");this.__broadcastEvent(c)}this.__update(!1,!0);if(null!=this.__renderer){if(null!=this.context3D){for(c=this.stage3Ds.iterator();c.hasNext();){var d=c.next();this.context3D.__renderStage3D(d)}this.context3D.__present&&(b=!0)}b?(null==this.context3D&&this.__renderer.__clear(), +this.__renderer.__render(this)):null==this.context3D&&(a=!0);null!=this.context3D&&(this.context3D.__present?(this.__renderer.__cleared||this.__renderer.__clear(),this.context3D.__present=!1,this.context3D.__cleared=!1):a=!0);this.__renderer.__cleared=!1}return a},__onLimeRender:function(a){this.__rendering||(this.__rendering=!0,this.__broadcastEvent(new ea("enterFrame")),this.__broadcastEvent(new ea("frameConstructed")),this.__broadcastEvent(new ea("exitFrame")),this.__renderable=!0,this.__enterFrame(this.__deltaTime), +this.__deltaTime=0,this.__render(a)&&this.window.onRender.cancel(),this.__rendering=!1)},__onLimeRenderContextLost:function(){this.context3D=this.__renderer=null;for(var a=this.stage3Ds.iterator();a.hasNext();)a.next().__lostContext()},__onLimeRenderContextRestored:function(a){this.__createRenderer();for(a=this.stage3Ds.iterator();a.hasNext();)a.next().__restoreContext()},__onLimeTextEdit:function(a,b,c,d){},__onLimeTextInput:function(a,b){if(null!=this.window&&this.window==a){var c=[];null==this.__focus? +this.__getInteractive(c):this.__focus.__getInteractive(c);b=new $c("textInput",!0,!0,b);0a-this.__lastClickTime&&k==this.__lastClickTarget?(p=gb.__create("doubleClick",d,0,this.__mouseX,this.__mouseY,k.__globalToLocal(f,c),k),this.__dispatchStack(p, +b),p.__updateAfterEventFlag&&this.__renderAfterEvent(),this.__lastClickTime=0,this.__lastClickTarget=null):(this.__lastClickTarget=k,this.__lastClickTime=a)):(this.__lastClickTarget=null,this.__lastClickTime=0)));if("auto"==Lg.__cursor&&!Lg.__hidden){p=null;if(null!=this.__mouseDownLeft)p=this.__mouseDownLeft.__getCursor();else for(a=0;a>>16)/255,this.__colorSplit[1]=((a&65280)>>>8)/255,this.__colorSplit[2]=(a&255)/255,this.__colorString="#"+aa.hex(a&16777215,6),this.__renderDirty=!0,this.__color=-16777216|a&16777215);return a},get_focus:function(){return this.__focus},set_focus:function(a){if(a!=this.__focus||null==a&&null!=this.__cacheFocus){var b=this.__focus;this.__cacheFocus=this.__focus= +a;if(null!=b){var c=new be("focusOut",!0,!1,a,!1,0),d=[];b.__getInteractive(d);d.reverse();this.__dispatchStack(c,d)}null!=a&&(c=new be("focusIn",!0,!1,b,!1,0),d=[],a.__getInteractive(d),d.reverse(),this.__dispatchStack(c,d))}return a},get_frameRate:function(){return null!=this.window?this.window.__backend.getFrameRate():0},get_fullScreenSourceRect:function(){return null==this.__fullScreenSourceRect?null:this.__fullScreenSourceRect.clone()},set_height:function(a){return this.get_height()},get_mouseX:function(){return this.__mouseX}, +get_mouseY:function(){return this.__mouseY},get_quality:function(){return this.__quality},set_rotation:function(a){return 0},get_scaleMode:function(){return this.__scaleMode},set_scaleMode:function(a){a!=this.__scaleMode&&(this.__scaleMode=a,this.__resize());return a},set_scaleX:function(a){return 0},set_scaleY:function(a){return 0},get_tabEnabled:function(){return!1},set_tabEnabled:function(a){throw new Bb("Error: The Stage class does not implement this property or method.");},get_tabIndex:function(){return-1}, +set_tabIndex:function(a){throw new Bb("Error: The Stage class does not implement this property or method.");},set_transform:function(a){return this.get_transform()},set_width:function(a){return this.get_width()},set_x:function(a){return 0},set_y:function(a){return 0},__class__:Wc,__properties__:u(ia.prototype.__properties__,{set_color:"set_color",set_scaleMode:"set_scaleMode",get_scaleMode:"get_scaleMode",get_quality:"get_quality",get_fullScreenSourceRect:"get_fullScreenSourceRect",get_frameRate:"get_frameRate", +set_focus:"set_focus",get_focus:"get_focus"})});var ae=function(a){B.call(this);this.__stage=a;this.__height=0;this.__projectionTransform=new Zf;this.__renderTransform=new Zf;this.__y=this.__x=this.__width=0;this.visible=!0;0=H))){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(c>>>8&255)+","+(c&255)+")";r.fillRect(0,0,a.get_width(),a.get_height());b.__popMaskObject(a)}if(null!=a.__graphics&&a.__renderable&&(H=b.__getAlpha(a.__worldAlpha),!(0>=H))){var d=a.__graphics;if(null!=d){y.render(d,b);var f=d.__width,k=d.__height;c=d.__canvas;if(null!=c&&d.__visible&&1<=f&&1<=k){var q=d.__worldTransform;r=b.context;G=a.__scrollRect;var p=a.__worldScale9Grid; +if(null==G||0=d||(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(c>>>8&255)+","+(c&255)+")",f.fillRect(0,0,a.get_width(),a.get_height()),b.__popMaskObject(a)),null==a.__graphics|| +!a.__renderable||(d=b.__getAlpha(a.__worldAlpha),0>=d))))){var q=a.__graphics;if(null!=q){y.render(q,b);var p=q.__width,n=q.__height;c=q.__canvas;if(null!=c&&q.__visible&&1<=p&&1<=n){var g=q.__worldTransform;f=b.context;k=a.__scrollRect;var v=a.__worldScale9Grid;if(null==k||0=a.__worldAlpha||null!=a.get_mask()&&(0>=a.get_mask().get_width()||0>= +a.get_mask().get_height()))&&(Wd.renderDrawable(a,b),null==a.__cacheBitmap||a.__isCacheBitmapRender)){b.__pushMaskObject(a);if(null!=b.__stage){c=0;for(d=a.__children;ck&&(k=0);1D;){g=0;for(v=b.length;gk&&(k=0),1k&&(k=0),1D;){g=0;for(v=b.length;gk&&(k=0),1k&&(k=0);1p&&(p=-1),q=y.context.createRadialGradient(819.2*p,0,0,0,0,819.2),y.pendingMatrix=f.clone(),y.inversePendingMatrix=f.clone(), +y.inversePendingMatrix.invert(),g=0,v=b.length;gk&&(k=0),1>>16,d=(a&65280)>>>8;a&=255;return"rgba("+(null==c?"null":L.string(Pa.toFloat(c)))+", "+(null==d?"null":L.string(Pa.toFloat(d)))+", "+(null==a?"null":L.string(Pa.toFloat(a)))+", "+b+")"};y.getDimensions=function(a){var b=Math.cos(Math.atan2(a.c,a.a)),c=a.a/b*1638.4;a=a.d/b*1638.4;0==c&&0==a&&(c= +a=819.2);return{width:c,height:a}};y.createTempPatternCanvas=function(a,b,c,d){var f=window.document.createElement("canvas"),k=f.getContext("2d");f.width=c;f.height=d;a=a.image.get_src();k.fillStyle=k.createPattern(a,b?"repeat":"no-repeat");k.beginPath();k.moveTo(0,0);k.lineTo(0,d);k.lineTo(c,d);k.lineTo(c,0);k.lineTo(0,0);k.closePath();y.hitTesting||k.fill(y.windingRule);return f};y.drawRoundRect=function(a,b,c,d,f,k){null==k&&(k=f);f*=.5;k*=.5;f>c/2&&(f=c/2);k>d/2&&(k=d/2);c=a+c;d=b+d;var q=-f+ +.7071067811865476*f,p=-f+.41421356237309503*f,n=-k+.7071067811865476*k,g=-k+.41421356237309503*k;y.context.moveTo(c,d-k);y.context.quadraticCurveTo(c,d+g,c+q,d+n);y.context.quadraticCurveTo(c+p,d,c-f,d);y.context.lineTo(a+f,d);y.context.quadraticCurveTo(a-p,d,a-q,d+n);y.context.quadraticCurveTo(a,d+g,a,d-k);y.context.lineTo(a,b+k);y.context.quadraticCurveTo(a,b-g,a-q,b-n);y.context.quadraticCurveTo(a-p,b,a+f,b);y.context.lineTo(c-f,b);y.context.quadraticCurveTo(c+p,b,c+q,b-n);y.context.quadraticCurveTo(c, +b-g,c,b+k);y.context.lineTo(c,d-k)};y.endFill=function(){y.context.beginPath();y.playCommands(y.fillCommands,!1);y.fillCommands.clear()};y.endStroke=function(){y.context.beginPath();y.playCommands(y.strokeCommands,!0);y.context.closePath();y.strokeCommands.clear()};y.hitTest=function(a,b,c){y.bounds=a.__bounds;y.graphics=a;if(0==a.__commands.get_length()||null==y.bounds||0>=y.bounds.width||0>=y.bounds.height)return y.graphics=null,!1;y.hitTesting=!0;var d=a.__renderTransform,f=b*d.b+c*d.d+d.ty;b= +b*d.a+c*d.c+d.tx-(y.bounds.x*d.a+y.bounds.y*d.c+d.tx);c=f-(y.bounds.x*d.b+y.bounds.y*d.d+d.ty);f=a.__canvas;var k=a.__context;a.__canvas=y.hitTestCanvas;a.__context=y.hitTestContext;y.context=a.__context;y.context.setTransform(d.a,d.b,d.c,d.d,d.tx,d.ty);y.fillCommands.clear();y.strokeCommands.clear();y.hasFill=!1;y.hasStroke=!1;y.bitmapFill=null;y.bitmapRepeat=!1;y.windingRule="evenodd";d=new ad(a.__commands);for(var q=0,p=a.__commands.types;qx.buffer.f[x.fPos])y.hasFill=!1;else{if(1==x.buffer.f[x.fPos]){var L=aa.hex(x.buffer.i[x.iPos]&16777215,6);y.context.fillStyle="#"+L}else{var u=(x.buffer.i[x.iPos]&16711680)>>>16;var ra=(x.buffer.i[x.iPos]&65280)>>>8;var B=x.buffer.i[x.iPos]&255;y.context.fillStyle="rgba("+u+", "+ra+", "+B+", "+x.buffer.f[x.fPos]+")"}y.bitmapFill=null;y.setSmoothing(!0); +y.hasFill=!0}break;case 2:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+= +1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=Y.BEGIN_GRADIENT_FILL;var oa=m;y.context.fillStyle=y.createGradientPattern(oa.buffer.o[oa.oPos],oa.buffer.ii[oa.iiPos],oa.buffer.ff[oa.ffPos],oa.buffer.ii[oa.iiPos+1],oa.buffer.o[oa.oPos+1],oa.buffer.o[oa.oPos+2],oa.buffer.o[oa.oPos+3],oa.buffer.f[oa.fPos]);y.bitmapFill=null;y.setSmoothing(!0);y.hasFill=!0;break;case 3:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break; +case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+= +1;break;case 20:m.oPos+=1}m.prev=Y.BEGIN_SHADER_FILL;var K=m,ja=K.buffer.o[K.oPos];0=6*Q?O=ia=!0:S.get_length()>= +4*Q?ia=!0:S.get_length()>=2*Q&&(O=!0));var zb=ca.__pool.get(),Db=fa.__pool.get(),lb=y.graphics.__renderTransform;y.context.save();for(var X=0,Z=Q;Xea||(zb.setTo(J.get(ea),J.get(ea+1),J.get(ea+2),J.get(ea+3)),0>=zb.width||0>=zb.height))){if(ia&&O){var ka=6*mc;Db.setTo(S.get(ka),S.get(ka+1),S.get(ka+2),S.get(ka+3),S.get(ka+4),S.get(ka+5))}else ia?(ka=4*mc,Db.setTo(S.get(ka),S.get(ka+1),S.get(ka+2),S.get(ka+3),zb.x,zb.y)):O?(ka=2*mc,Db.tx=S.get(ka), +Db.ty=S.get(ka+1)):(Db.tx=zb.x,Db.ty=zb.y);Db.tx+=f-c;Db.ty+=k-d;Db.concat(lb);y.context.setTransform(Db.a,Db.b,Db.c,Db.d,Db.tx,Db.ty);null!=y.bitmapFill?y.context.drawImage(y.bitmapFill.image.get_src(),zb.x,zb.y,zb.width,zb.height,0,0,zb.width,zb.height):y.context.fillRect(0,0,zb.width,zb.height)}}ca.__pool.release(zb);fa.__pool.release(Db);y.context.restore();break;case 9:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+= +1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=Y.DRAW_RECT;var V=m;var ob= +!1;if(null!=y.bitmapFill&&!y.hitTesting){var yc=l=F=h=0;var Nd=!0;if(null!=y.pendingMatrix)if(0!=y.pendingMatrix.b||0!=y.pendingMatrix.c)Nd=!1;else{null==r&&(r=Ma.__pool.get());null==w&&(w=Ma.__pool.get());r.setTo(V.buffer.f[V.fPos],V.buffer.f[V.fPos+1]);var da=y.inversePendingMatrix,la=r.x,Ua=r.y;r.x=la*da.a+Ua*da.c+da.tx;r.y=la*da.b+Ua*da.d+da.ty;w.setTo(V.buffer.f[V.fPos]+V.buffer.f[V.fPos+2],V.buffer.f[V.fPos+1]+V.buffer.f[V.fPos+3]);var ma=y.inversePendingMatrix,Ta=w.x,Pa=w.y;w.x=Ta*ma.a+Pa* +ma.c+ma.tx;w.y=Ta*ma.b+Pa*ma.d+ma.ty;h=r.y;yc=r.x;l=w.y;F=w.x}else h=V.buffer.f[V.fPos+1],yc=V.buffer.f[V.fPos],l=V.buffer.f[V.fPos+1]+V.buffer.f[V.fPos+3],F=V.buffer.f[V.fPos]+V.buffer.f[V.fPos+2];Nd&&0<=h&&0<=yc&&F<=y.bitmapFill.width&&l<=y.bitmapFill.height&&(ob=!0,y.hitTesting||y.context.drawImage(y.bitmapFill.image.get_src(),yc,h,F-yc,l-h,V.buffer.f[V.fPos]-c,V.buffer.f[V.fPos+1]-d,V.buffer.f[V.fPos+2],V.buffer.f[V.fPos+3]))}ob||(v=!0,y.context.rect(V.buffer.f[V.fPos]-c,V.buffer.f[V.fPos+1]- +d,V.buffer.f[V.fPos+2],V.buffer.f[V.fPos+3]));break;case 10:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+= +1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=Y.DRAW_ROUND_RECT;var ba=m;v=!0;y.drawRoundRect(ba.buffer.f[ba.fPos]-c,ba.buffer.f[ba.fPos+1]-d,ba.buffer.f[ba.fPos+2],ba.buffer.f[ba.fPos+3],ba.buffer.f[ba.fPos+4],ba.buffer.o[ba.oPos]);break;case 12:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break; +case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=Y.DRAW_TRIANGLES;var ta=m,ib=ta.buffer.o[ta.oPos], +ua=ta.buffer.o[ta.oPos+1],qa=ta.buffer.o[ta.oPos+2],mb=null,rb=null==y.bitmapFill;if(rb&&null!=qa)break a;if(!rb){if(null==qa){qa=xa.toFloatVector(null);for(var Aa=0,Va=ib.get_length()/2|0;Aa(pb-Ga)*(Ia-$a)-(za-$a)*(Fa-Ga)){ya+=3;continue}break;case 2:if(!(0> +(pb-Ga)*(Ia-$a)-(za-$a)*(Fa-Ga))){ya+=3;continue}}rb?(y.context.beginPath(),y.context.moveTo(Ga,$a),y.context.lineTo(pb,za),y.context.lineTo(Fa,Ia),y.context.closePath(),y.hitTesting||y.context.fill(y.windingRule),ya+=3):(ab=qa.get(Ha)*mb.width,ec=qa.get(pa)*mb.width,Ka=qa.get(Qa)*mb.width,Oa=qa.get(Ja)*mb.height,Fb=qa.get(nb)*mb.height,cb=qa.get(Ra)*mb.height,Na=ab*(cb-Fb)-ec*cb+Ka*Fb+(ec-Ka)*Oa,0==Na?(ya+=3,y.context.restore()):(y.context.save(),y.context.beginPath(),y.context.moveTo(Ga,$a),y.context.lineTo(pb, +za),y.context.lineTo(Fa,Ia),y.context.closePath(),y.context.clip(),Ya=-(Oa*(Fa-pb)-Fb*Fa+cb*pb+(Fb-cb)*Ga)/Na,Ic=(Fb*Ia+Oa*(za-Ia)-cb*za+(cb-Fb)*$a)/Na,bb=(ab*(Fa-pb)-ec*Fa+Ka*pb+(ec-Ka)*Ga)/Na,Od=-(ec*Ia+ab*(za-Ia)-Ka*za+(Ka-ec)*$a)/Na,db=(ab*(cb*pb-Fb*Fa)+Oa*(ec*Fa-Ka*pb)+(Ka*Fb-ec*cb)*Ga)/Na,eb=(ab*(cb*za-Fb*Ia)+Oa*(ec*Ia-Ka*za)+(Ka*Fb-ec*cb)*$a)/Na,y.context.transform(Ya,Ic,bb,Od,db,eb),y.context.drawImage(mb,0,0,mb.width,mb.height),y.context.restore(),ya+=3))}break;case 14:switch(m.prev._hx_index){case 0:m.oPos+= +2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+= +2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=Y.LINE_BITMAP_STYLE;var Za=m;b&&y.hasStroke&&y.closePath(!0);y.context.moveTo(f-c,k-d);y.context.strokeStyle=y.createBitmapFill(Za.buffer.o[Za.oPos],Za.buffer.b[Za.bPos],Za.buffer.b[Za.bPos+1]);y.hasStroke=!0;break;case 15:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+= +3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=Y.LINE_GRADIENT_STYLE;var Wa=m;b&&y.hasStroke&&y.closePath(!0);y.context.moveTo(f-c,k-d);y.context.strokeStyle=y.createGradientPattern(Wa.buffer.o[Wa.oPos], +Wa.buffer.ii[Wa.iiPos],Wa.buffer.ff[Wa.ffPos],Wa.buffer.ii[Wa.iiPos+1],Wa.buffer.o[Wa.oPos+1],Wa.buffer.o[Wa.oPos+2],Wa.buffer.o[Wa.oPos+3],Wa.buffer.f[Wa.fPos]);y.setSmoothing(!0);y.hasStroke=!0;break;case 16:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+= +4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=Y.LINE_STYLE;var wa=m;b&&y.hasStroke&&y.closePath(!0);y.context.moveTo(f-c,k-d);if(null==wa.buffer.o[wa.oPos])y.hasStroke=!1;else{y.context.lineWidth=0>>16,ra=(wa.buffer.i[wa.iPos]&65280)>>>8,B=wa.buffer.i[wa.iPos]&255,y.context.strokeStyle="rgba("+u+", "+ra+", "+B+", "+wa.buffer.f[wa.fPos]+")";y.setSmoothing(!0);y.hasStroke=!0}break;case 17:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+= +4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=Y.LINE_TO;var hb=m;v=!0;y.context.lineTo(hb.buffer.f[hb.fPos]-c,hb.buffer.f[hb.fPos+1]-d);f=hb.buffer.f[hb.fPos];k=hb.buffer.f[hb.fPos+1];f==p&&k==n&&(q=!0);break;case 18:switch(m.prev._hx_index){case 0:m.oPos+= +2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+= +2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=Y.MOVE_TO;var Sa=m;y.context.moveTo(Sa.buffer.f[Sa.fPos]-c,Sa.buffer.f[Sa.fPos+1]-d);f=Sa.buffer.f[Sa.fPos];k=Sa.buffer.f[Sa.fPos+1];g&&Sa.buffer.f[Sa.fPos]!=p&&Sa.buffer.f[Sa.fPos+1]!=n&&(q=!0);p=Sa.buffer.f[Sa.fPos];n=Sa.buffer.f[Sa.fPos+1];g=!0;break;case 21:y.windingRule="evenodd";break;case 22:y.windingRule="nonzero";break;default:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+= +4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=C}}null!= +r&&Ma.__pool.release(r);null!=w&&Ma.__pool.release(w);m.destroy();if(v){if(b&&y.hasStroke){if(y.hasFill){if(f!=p||k!=n)y.context.lineTo(p-c,n-d),q=!0;q&&y.closePath(!0)}else q&&f==p&&k==n&&y.closePath(!0);y.hitTesting||y.context.stroke()}b||!y.hasFill&&null==y.bitmapFill||(y.context.translate(-y.bounds.x,-y.bounds.y),null!=y.pendingMatrix?(y.context.transform(y.pendingMatrix.a,y.pendingMatrix.b,y.pendingMatrix.c,y.pendingMatrix.d,y.pendingMatrix.tx,y.pendingMatrix.ty),y.hitTesting||y.context.fill(y.windingRule), +y.context.transform(y.inversePendingMatrix.a,y.inversePendingMatrix.b,y.inversePendingMatrix.c,y.inversePendingMatrix.d,y.inversePendingMatrix.tx,y.inversePendingMatrix.ty)):y.hitTesting||y.context.fill(y.windingRule),y.context.translate(y.bounds.x,y.bounds.y),y.context.closePath())}};y.render=function(a,b){a.__update(b.__worldTransform,b.__pixelRatio);if(a.__softwareDirty){y.hitTesting=!1;y.graphics=a;y.allowSmoothing=b.__allowSmoothing;y.worldAlpha=b.__getAlpha(a.__owner.__worldAlpha);y.bounds= +a.__bounds;var c=a.__width,d=a.__height;if(!a.__visible||0==a.__commands.get_length()||null==y.bounds||1>c||1>d)a.__canvas=null,a.__context=null,a.__bitmap=null;else{null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"));y.context=a.__context;var f=a.__renderTransform,k=a.__canvas,q=b.__pixelRatio,p=c*q|0,n=d*q|0;b.__setBlendModeContext(y.context,10);b.__isDOM?(k.width==p&&k.height==n?y.context.clearRect(0,0,p,n):(k.width=p,k.height=n,k.style.width= +c+"px",k.style.height=d+"px"),c=a.__renderTransform,y.context.setTransform(c.a*q,c.b*q,c.c*q,c.d*q,c.tx*q,c.ty*q)):(k.width==p&&k.height==n?(y.context.closePath(),y.context.setTransform(1,0,0,1,0,0),y.context.clearRect(0,0,p,n)):(k.width=c,k.height=d),y.context.setTransform(f.a,f.b,f.c,f.d,f.tx,f.ty));y.fillCommands.clear();y.strokeCommands.clear();y.hasFill=!1;y.hasStroke=!1;y.bitmapFill=null;q=y.bitmapRepeat=!1;d=c=0;y.windingRule="evenodd";f=new ad(a.__commands);k=0;for(p=a.__commands.types;k< +p.length;)switch(n=p[k],++k,n._hx_index){case 0:case 1:case 2:case 3:y.endFill();y.endStroke();if(n==Y.BEGIN_BITMAP_FILL){switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+= +2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.BEGIN_BITMAP_FILL;n=f;y.fillCommands.beginBitmapFill(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.b[n.bPos],n.buffer.b[n.bPos+1]);y.strokeCommands.beginBitmapFill(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.b[n.bPos],n.buffer.b[n.bPos+1])}else if(n==Y.BEGIN_GRADIENT_FILL){switch(f.prev._hx_index){case 0:f.oPos+= +2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+= +2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.BEGIN_GRADIENT_FILL;n=f;y.fillCommands.beginGradientFill(n.buffer.o[n.oPos],n.buffer.ii[n.iiPos],n.buffer.ff[n.ffPos],n.buffer.ii[n.iiPos+1],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos]);y.strokeCommands.beginGradientFill(n.buffer.o[n.oPos],n.buffer.ii[n.iiPos],n.buffer.ff[n.ffPos],n.buffer.ii[n.iiPos+1],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos])}else if(n==Y.BEGIN_SHADER_FILL){switch(f.prev._hx_index){case 0:f.oPos+= +2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+= +2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.BEGIN_SHADER_FILL;n=f;y.fillCommands.beginShaderFill(n.buffer.o[n.oPos]);y.strokeCommands.beginShaderFill(n.buffer.o[n.oPos])}else{switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+= +5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.BEGIN_FILL;n=f;y.fillCommands.beginFill(n.buffer.i[n.iPos],n.buffer.f[n.fPos]);y.strokeCommands.beginFill(n.buffer.i[n.iPos],n.buffer.f[n.fPos])}break;case 4:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break; +case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+= +1;break;case 20:f.oPos+=1}f.prev=Y.CUBIC_CURVE_TO;n=f;y.fillCommands.cubicCurveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+4],n.buffer.f[n.fPos+5]);q?y.strokeCommands.cubicCurveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+4],n.buffer.f[n.fPos+5]):(c=n.buffer.f[n.fPos+4],d=n.buffer.f[n.fPos+5]);break;case 5:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+= +1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+= +1}f.prev=Y.CURVE_TO;n=f;y.fillCommands.curveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);q?y.strokeCommands.curveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]):(c=n.buffer.f[n.fPos+2],d=n.buffer.f[n.fPos+3]);break;case 6:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+= +4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.DRAW_CIRCLE;n=f;y.fillCommands.drawCircle(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+ +2]);q&&y.strokeCommands.drawCircle(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2]);break;case 7:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+= +2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.DRAW_ELLIPSE;n=f;y.fillCommands.drawEllipse(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);q&&y.strokeCommands.drawEllipse(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);break;case 8:switch(f.prev._hx_index){case 0:f.oPos+= +2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+= +2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.DRAW_QUADS;n=f;y.fillCommands.drawQuads(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2]);break;case 9:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+= +1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.DRAW_RECT;n=f;y.fillCommands.drawRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);q&&y.strokeCommands.drawRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+ +3]);break;case 10:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1; +f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.DRAW_ROUND_RECT;n=f;y.fillCommands.drawRoundRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+4],n.buffer.o[n.oPos]);q&&y.strokeCommands.drawRoundRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+4],n.buffer.o[n.oPos]);break;case 12:switch(f.prev._hx_index){case 0:f.oPos+= +2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+= +2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.DRAW_TRIANGLES;n=f;y.fillCommands.drawTriangles(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3]);break;case 13:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+= +4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.END_FILL;y.endFill();y.endStroke();q=y.hasFill=!1;y.bitmapFill=null;d=c=0;break;case 14:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+= +4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.LINE_BITMAP_STYLE; +n=f;q||0==c&&0==d||(y.strokeCommands.moveTo(c,d),d=c=0);q=!0;y.strokeCommands.lineBitmapStyle(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.b[n.bPos],n.buffer.b[n.bPos+1]);break;case 15:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+= +5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.LINE_GRADIENT_STYLE;n=f;q||0==c&&0==d||(y.strokeCommands.moveTo(c,d),d=c=0);q=!0;y.strokeCommands.lineGradientStyle(n.buffer.o[n.oPos],n.buffer.ii[n.iiPos],n.buffer.ff[n.ffPos],n.buffer.ii[n.iiPos+1],n.buffer.o[n.oPos+ +1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos]);break;case 16:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+= +2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.LINE_STYLE;n=f;q||null==n.buffer.o[n.oPos]||0==c&&0==d||(y.strokeCommands.moveTo(c,d),d=c=0);q=null!=n.buffer.o[n.oPos];y.strokeCommands.lineStyle(n.buffer.o[n.oPos],n.buffer.i[n.iPos],n.buffer.f[n.fPos],n.buffer.b[n.bPos],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos+1]);break;case 17:switch(f.prev._hx_index){case 0:f.oPos+= +2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+= +2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.LINE_TO;n=f;y.fillCommands.lineTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1]);q?y.strokeCommands.lineTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1]):(c=n.buffer.f[n.fPos],d=n.buffer.f[n.fPos+1]);break;case 18:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+= +4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.MOVE_TO;n=f;y.fillCommands.moveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1]);q?y.strokeCommands.moveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1]):(c=n.buffer.f[n.fPos], +d=n.buffer.f[n.fPos+1]);break;case 19:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+= +4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.OVERRIDE_BLEND_MODE;n=f;b.__setBlendModeContext(y.context,n.buffer.o[n.oPos]);break;case 21:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+= +3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=Y.WINDING_EVEN_ODD;y.fillCommands.windingEvenOdd();y.windingRule="evenodd";break;case 22:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+= +1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+= +1}f.prev=Y.WINDING_NON_ZERO;y.fillCommands.windingNonZero();y.windingRule="nonzero";break;default:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+= +4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=n}0=a.__worldAlpha||null==a.__currentState||(b.__pushMaskObject(a),b.__renderDrawable(a.__currentState),b.__popMaskObject(a),b.__renderEvent(a))};Mf.renderDrawableMask=function(a,b){b.__renderDrawableMask(a.__currentState)};var R=function(){};R.__name__="openfl.display._internal.CanvasTextField";R.renderDrawable=function(a,b){b.__isDOM&&!a.__renderedOnCanvasWhileOnDOM&&(a.__renderedOnCanvasWhileOnDOM=!0, +1==a.get_type()&&a.replaceText(0,a.__text.length,a.__text),a.__isHTML&&a.__updateText(ua.parse(a.__text,a.get_multiline(),a.__styleSheet,a.__textFormat,a.__textEngine.textFormatRanges)),a.__dirty=!0,a.__layoutDirty=!0,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));if(null==a.get_mask()||0=c.width||0>=c.height)&&2!=c.autoSize)a.__graphics.__canvas= +null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));R.context=k.__context;k.__canvas.width=p;k.__canvas.height=g;b.__isDOM&&(k.__canvas.style.width=Math.round(p/n)+"px",k.__canvas.style.height=Math.round(g/n)+"px");var v=fa.__pool.get();v.scale(n,n);v.concat(k.__renderTransform); +R.context.setTransform(v.a,v.b,v.c,v.d,v.tx,v.ty);fa.__pool.release(v);null==R.clearRect&&(R.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);R.clearRect&&R.context.clearRect(0,0,k.__canvas.width,k.__canvas.height);if(null!=c.text&&""!=c.text||c.__hasFocus){p=c.text;k.__context.imageSmoothingEnabled=!b.__allowSmoothing||0==c.antiAliasType&&400==c.sharpness?!1:!0;if(c.border||c.background){R.context.rect(.5,.5,f.width-1,f.height-1);if(c.background){var m=aa.hex(c.backgroundColor& +16777215,6);R.context.fillStyle="#"+m;R.context.fill()}c.border&&(R.context.lineWidth=1,m=aa.hex(c.borderColor&16777215,6),R.context.strokeStyle="#"+m,R.context.stroke())}R.context.textBaseline="alphabetic";R.context.textAlign="start";g=-a.get_scrollH();var h=d=0;for(m=a.get_scrollV()-1;hc.get_bottomScrollV()-1)break;v="#"+aa.hex(r.format.color& +16777215,6);R.context.font=jb.getFont(r.format);R.context.fillStyle=v;R.context.fillText(p.substring(r.startIndex,r.endIndex),r.offsetX+g-f.x,r.offsetY+r.ascent+d-f.y);if(-1=a.__caretIndex){h=l=0;for(m=a.__caretIndex-r.startIndex;h=a.__caretIndex||r.startIndex<=a.__selectionIndex&&r.endIndex>=a.__selectionIndex||r.startIndex>a.__caretIndex&&r.endIndexa.__selectionIndex&&r.endIndexl&&(l=r.startIndex),r.endIndex=r.endIndex?(m=a.getCharBoundaries(r.endIndex-1),null!=m&&(m.x+=m.width+2)):m=a.getCharBoundaries(h),null!=F&&null!=m&&(R.context.fillStyle="#000000",R.context.fillRect(F.x+g-f.x,F.y+d,m.x-F.x,r.height),R.context.fillStyle="#FFFFFF",R.context.fillText(p.substring(l, +h),g+F.x-f.x,r.offsetY+r.ascent+d));r.format.underline&&(R.context.beginPath(),R.context.strokeStyle=v,R.context.lineWidth=1,v=r.offsetX+g-f.x,l=Math.ceil(r.offsetY+d+r.ascent-f.y)+Math.floor(.185*r.ascent)+.5,R.context.moveTo(v,l),R.context.lineTo(v+r.width,l),R.context.stroke(),R.context.closePath())}}}else{if(c.border||c.background)c.border?R.context.rect(.5,.5,f.width-1,f.height-1):R.context.rect(0,0,f.width,f.height),c.background&&(m=aa.hex(c.backgroundColor&16777215,6),R.context.fillStyle="#"+ +m,R.context.fill()),c.border&&(R.context.lineWidth=1,R.context.lineCap="square",m=aa.hex(c.borderColor&16777215,6),R.context.strokeStyle="#"+m,R.context.stroke());if(-1=f)&&(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(v>>>8&255)+","+(v&255)+")",c.fillRect(0,0,a.get_width(),a.get_height()),b.__popMaskObject(a)),null!=a.__graphics&&a.__renderable&&(f=b.__getAlpha(a.__worldAlpha),!(0>=f)&&(k=a.__graphics,null!=k&&(y.render(k,b),p=k.__width,g=k.__height,q=k.__canvas,null!=q&&k.__visible&&1<=p&&1<=g&&(r=k.__worldTransform,c=b.context, +n=a.__scrollRect,w=a.__worldScale9Grid,null==n||0=G))if(k||(G=1),p&&(w=null!=y.__blendMode?y.__blendMode:n),0=y.width||0>=y.height)continue}else{y=C.__data[l];if(null==y)continue;m.setTo(y.x,y.y,y.width,y.height);y=m}C=C.__bitmapData;null!=C&&null!=C.image&&(C!=g&&(null==C.image.buffer.__srcImage&&Ea.convertToCanvas(C.image),v=C.image.get_src(), +g=C),h.globalAlpha=G,p&&b.__setBlendMode(w),b.setTransform(F,h),h.drawImage(v,y.x,y.y,y.width,y.height,0,0,y.width,y.height))}}fa.__pool.release(F)};rd.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||(w=b.__getAlpha(a.__worldAlpha),0>=w))){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(c>>>8&255)+","+(c&255)+")";H.fillRect(0,0,a.get_width(),a.get_height());b.__popMaskObject(a)}if(null!=a.__graphics&&a.__renderable&&(w=b.__getAlpha(a.__worldAlpha),!(0>=w))){var d=a.__graphics;if(null!=d){y.render(d,b);var f=d.__width,k=d.__height;c=d.__canvas;if(null!=c&&d.__visible&&1<=f&&1<=k){var q=d.__worldTransform;H=b.context;G=a.__scrollRect;var p=a.__worldScale9Grid;if(null==G|| +0=w||(H=b.context,b.__setBlendMode(a.__worldBlendMode),b.__pushMaskObject(a),c=ca.__pool.get(),c.setTo(0,0,a.__width, +a.__height),b.__pushMaskRect(c,a.__renderTransform),b.__allowSmoothing&&a.smoothing||(H.imageSmoothingEnabled=!1),rd.renderTileContainer(a.__group,b,a.__renderTransform,a.__tileset,b.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,w,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,c),b.__allowSmoothing&&a.smoothing||(H.imageSmoothingEnabled=!0),b.__popMaskRect(),b.__popMaskObject(a),ca.__pool.release(c)))}else if(c=a.__cacheBitmap,c.__renderable){var w=b.__getAlpha(c.__worldAlpha);if(0=c)){var d=b.context;if(null!=a.__stream.__video){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);d.globalAlpha=c;c=a.__scrollRect;var f=a.smoothing; +b.setTransform(a.__worldTransform,d);f||(d.imageSmoothingEnabled=!1);null==c?d.drawImage(a.__stream.__video,0,0,a.get_width(),a.get_height()):d.drawImage(a.__stream.__video,c.x,c.y,c.width,c.height,c.x,c.y,c.width,c.height);f||(d.imageSmoothingEnabled=!0);b.__popMaskObject(a)}}}};Xd.renderDrawable=function(a,b){Xd.render(a,b);b.__renderEvent(a)};Xd.renderDrawableMask=function(a,b){};var Bc=function(){};Bc.__name__="openfl.display._internal.Context3DBitmap";Bc.render=function(a,b){if(a.__renderable&& +!(0>=a.__worldAlpha)&&null!=a.__bitmapData&&a.__bitmapData.__isValid){var c=b.__context3D;b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var d=b.__initDisplayShader(a.__worldShader);b.setShader(d);b.applyBitmapData(a.__bitmapData,b.__allowSmoothing&&(a.smoothing||b.__upscaled));b.applyMatrix(b.__getMatrix(a.__renderTransform,a.pixelSnapping));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();var f=a.__bitmapData.getVertexBuffer(c);null!=d.__position&& +c.setVertexBufferAt(d.__position.index,f,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,f,3,2);d=a.__bitmapData.getIndexBuffer(c);c.drawTriangles(d);b.__clearShader();b.__popMaskObject(a)}};Bc.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);null!=a.__bitmapData&&null!=a.__bitmapData.image&&(a.__imageVersion=a.__bitmapData.image.version);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!= +a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255,(f&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);ca.__pool.release(d)}null!=a.__graphics&&bd.render(a,b)}Bc.render(a,b)}else Bc.render(a.__cacheBitmap,b);b.__renderEvent(a)}; +Bc.renderDrawableMask=function(a,b){Bc.renderMask(a,b)};Bc.renderMask=function(a,b){if(null!=a.__bitmapData&&a.__bitmapData.__isValid){var c=b.__context3D,d=b.__maskShader;b.setShader(d);b.applyBitmapData(Zd.opaqueBitmapData,!0);b.applyMatrix(b.__getMatrix(a.__renderTransform,a.pixelSnapping));b.updateShader();var f=a.__bitmapData.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,f,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,f,3,2);a=a.__bitmapData.getIndexBuffer(c); +c.drawTriangles(a);b.__clearShader()}};var Vf=function(){};Vf.__name__="openfl.display._internal.Context3DBitmapData";Vf.renderDrawable=function(a,b){var c=b.__context3D;b.__setBlendMode(10);var d=b.__defaultDisplayShader;b.setShader(d);b.applyBitmapData(a,b.__upscaled);b.applyMatrix(b.__getMatrix(a.__worldTransform,1));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();var f=a.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index, +f,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,f,3,2);a=a.getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()};Vf.renderDrawableMask=function(a,b){var c=b.__context3D,d=b.__maskShader;b.setShader(d);b.applyBitmapData(a,b.__upscaled);b.applyMatrix(b.__getMatrix(a.__worldTransform,1));b.updateShader();var f=a.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,f,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,f,3,2);a=a.getIndexBuffer(c); +c.drawTriangles(a);b.__clearShader()};var gf=function(a,b,c,d){this.context3D=a;this.elementType=b;this.dataPerVertex=d;this.vertexCount=this.indexCount=0;this.resize(c)};gf.__name__="openfl.display._internal.Context3DBuffer";gf.prototype={flushVertexBufferData:function(){this.vertexBufferData.length>this.vertexCount&&(this.vertexCount=this.vertexBufferData.length,this.vertexBuffer=this.context3D.createVertexBuffer(this.vertexCount,this.dataPerVertex,0));this.vertexBuffer.uploadFromTypedArray(we.toArrayBufferView(this.vertexBufferData))}, +resize:function(a,b){null==b&&(b=-1);this.elementCount=a;-1==b&&(b=this.dataPerVertex);b!=this.dataPerVertex&&(this.vertexBuffer=null,this.vertexCount=0,this.dataPerVertex=b);var c=0;switch(this.elementType._hx_index){case 0:c=4*a;break;case 1:c=3*a;break;case 2:c=3*a}b*=c;if(null==this.vertexBufferData){var d=c=null,f=null,k=null,p=null;this.vertexBufferData=b=null!=b?new Float32Array(b):null!=c?new Float32Array(c):null!=d?new Float32Array(d.__array):null!=f?new Float32Array(f):null!=k?null==p?new Float32Array(k, +0):new Float32Array(k,0,p):null}else b>this.vertexBufferData.length&&(a=this.vertexBufferData,p=k=f=d=c=null,this.vertexBufferData=b=null!=b?new Float32Array(b):null!=c?new Float32Array(c):null!=d?new Float32Array(d.__array):null!=f?new Float32Array(f):null!=k?null==p?new Float32Array(k,0):new Float32Array(k,0,p):null,this.vertexBufferData.set(a))},__class__:gf};var hf=w["openfl.display._internal.Context3DElementType"]={__ename__:!0,__constructs__:null,QUADS:{_hx_name:"QUADS",_hx_index:0,__enum__:"openfl.display._internal.Context3DElementType", +toString:g},TRIANGLES:{_hx_name:"TRIANGLES",_hx_index:1,__enum__:"openfl.display._internal.Context3DElementType",toString:g},TRIANGLE_INDICES:{_hx_name:"TRIANGLE_INDICES",_hx_index:2,__enum__:"openfl.display._internal.Context3DElementType",toString:g}};hf.__constructs__=[hf.QUADS,hf.TRIANGLES,hf.TRIANGLE_INDICES];var $d=function(){};$d.__name__="openfl.display._internal.Context3DDisplayObject";$d.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null!=a.__cacheBitmap&&!a.__isCacheBitmapRender)Bc.render(a.__cacheBitmap, +b);else if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255,(f&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);ca.__pool.release(d)}null!= +a.__graphics&&bd.render(a,b)}b.__renderEvent(a)};$d.renderDrawableMask=function(a,b){null!=a.__graphics&&bd.renderMask(a,b)};var Wf=function(){};Wf.__name__="openfl.display._internal.Context3DDisplayObjectContainer";Wf.renderDrawable=function(a,b){for(var c=a.__removedChildren.iterator();c.hasNext();){var d=c.next();null==d.stage&&d.__cleanup()}a.__removedChildren.set_length(0);if(a.__renderable&&!(0>=a.__worldAlpha)&&($d.renderDrawable(a,b),null==a.__cacheBitmap||a.__isCacheBitmapRender)){if(0=6*G?H=l=!0:r.get_length()>=4*G?l= +!0:r.get_length()>=2*G&&(H=!0));null==a.__quadBuffer?a.__quadBuffer=new gf(b,hf.QUADS,G,4):a.__quadBuffer.resize(c+G,4);for(var y,C,t,x,L,u,ra,B,oa,ja,K,N,ha,A,I=a.__quadBuffer.vertexBufferData,na=n.width,aa=n.height,z=0,va=G;zC||(p.setTo(m.get(C),m.get(C+1),m.get(C+2),m.get(C+3)),C=p.width,t=p.height,0>=C||0>=t||(l&&H?(x*=6,g.setTo(r.get(x),r.get(x+1),r.get(x+2),r.get(x+3),r.get(x+4),r.get(x+5))):l?(x*=4,g.setTo(r.get(x),r.get(x+1),r.get(x+2),r.get(x+3), +p.x,p.y)):H?(x*=2,g.tx=r.get(x),g.ty=r.get(x+1)):(g.tx=p.x,g.ty=p.y),x=p.x/na,L=p.y/aa,u=p.get_right()/na,ra=p.get_bottom()/aa,B=0*g.a+0*g.c+g.tx,oa=0*g.b+0*g.d+g.ty,ja=C*g.a+0*g.c+g.tx,K=C*g.b+0*g.d+g.ty,N=0*g.a+t*g.c+g.tx,ha=0*g.b+t*g.d+g.ty,A=C*g.a+t*g.c+g.tx,C=C*g.b+t*g.d+g.ty,I[y]=B,I[y+1]=oa,I[y+2]=x,I[y+3]=L,I[y+4]=ja,I[y+4+1]=K,I[y+4+2]=u,I[y+4+3]=L,I[y+8]=N,I[y+8+1]=ha,I[y+8+2]=x,I[y+8+3]=ra,I[y+12]=A,I[y+12+1]=C,I[y+12+2]=u,I[y+12+3]=ra));c+=G}break;case 12:switch(k.prev._hx_index){case 0:k.oPos+= +2;k.bPos+=2;break;case 1:k.iPos+=1;k.fPos+=1;break;case 2:k.oPos+=4;k.iiPos+=2;k.ffPos+=1;k.fPos+=1;break;case 3:k.oPos+=1;break;case 4:k.fPos+=6;break;case 5:k.fPos+=4;break;case 6:k.fPos+=3;break;case 7:k.fPos+=4;break;case 8:k.oPos+=3;break;case 9:k.fPos+=4;break;case 10:k.fPos+=5;k.oPos+=1;break;case 12:k.oPos+=4;break;case 14:k.oPos+=2;k.bPos+=2;break;case 15:k.oPos+=4;k.iiPos+=2;k.ffPos+=1;k.fPos+=1;break;case 16:k.oPos+=4;k.iPos+=1;k.fPos+=2;k.bPos+=1;break;case 17:k.fPos+=2;break;case 18:k.fPos+= +2;break;case 19:k.oPos+=1;break;case 20:k.oPos+=1}k.prev=Y.DRAW_TRIANGLES;r=k;m=r.buffer.o[r.oPos];F=r.buffer.o[r.oPos+1];r=r.buffer.o[r.oPos+2];w=null!=F;G=Math.floor(m.get_length()/2);l=w?F.get_length():G;y=(G=(H=null!=r)&&r.get_length()>=3*G)?4:2;I=G?3:2;na=y+2;aa=G?f:d;sb.resizeVertexBuffer(a,G,aa+l*na);z=G?a.__vertexBufferDataUVT:a.__vertexBufferData;t=0;for(x=l;ta.__vertexBufferCount)c=b.createVertexBuffer(d,4,0),a.__vertexBuffer=c,a.__vertexBufferCount=d;c.uploadFromTypedArray(we.toArrayBufferView(a.__vertexBufferData))}if(0a.__vertexBufferCountUVT)c=b.createVertexBuffer(f,6,0),a.__vertexBufferUVT=c,a.__vertexBufferCountUVT=f;c.uploadFromTypedArray(we.toArrayBufferView(a.__vertexBufferDataUVT))}ca.__pool.release(p);fa.__pool.release(g)};sb.isCompatible=function(a){if(null!=a.__owner.__worldScale9Grid)return!1;var b=new ad(a.__commands),c=!1,d=!1,f=!1,k=0;for(a=a.__commands.types;k=d)break;null==g||sb.maskRender||b.__updateShaderBuffer(F);null!=C.__position&&k.setVertexBufferAt(C.__position.index,a.__quadBuffer.vertexBuffer, +16*r,2);null!=C.__textureCoord&&k.setVertexBufferAt(C.__textureCoord.index,a.__quadBuffer.vertexBuffer,16*r+2,2);k.drawTriangles(k.__quadIndexBuffer,0,2*d);F+=4*d;r+=d}b.__clearShader()}break;case 9:if(null!=m){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+= +4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=Y.DRAW_RECT;var x=c;C=x.buffer.f[x.fPos];t=x.buffer.f[x.fPos+1];d=x.buffer.f[x.fPos+2];f=x.buffer.f[x.fPos+3];x=m;sb.tempColorTransform.redOffset=x>>>16&255;sb.tempColorTransform.greenOffset=x>>> +8&255;sb.tempColorTransform.blueOffset=x&255;sb.tempColorTransform.__combine(a.__owner.__worldColorTransform);p.identity();p.scale(d,f);p.tx=C;p.ty=t;p.concat(a.__owner.__renderTransform);d=sb.maskRender?b.__maskShader:b.__initGraphicsShader(null);b.setShader(d);b.applyMatrix(b.__getMatrix(p,1));b.applyBitmapData(sb.blankBitmapData,!0,v);b.applyAlpha((x>>>24&255)/255*a.__owner.__worldAlpha);b.applyColorTransform(sb.tempColorTransform);b.updateShader();C=sb.blankBitmapData.getVertexBuffer(k);null!= +d.__position&&k.setVertexBufferAt(d.__position.index,C,0,3);null!=d.__textureCoord&&k.setVertexBufferAt(d.__textureCoord.index,C,3,2);d=sb.blankBitmapData.getIndexBuffer(k);k.drawTriangles(d);F+=4;b.__clearShader()}break;case 12:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+= +3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=Y.DRAW_TRIANGLES;f=c;C=f.buffer.o[f.oPos+1];t=f.buffer.o[f.oPos+2];d=f.buffer.o[f.oPos+3];x=null!=C;f=Math.floor(f.buffer.o[f.oPos].get_length()/2);C=x?C.get_length():f;x= +(t=null!=t&&t.get_length()>=3*f)?4:2;f=x+2;var L=t?a.__vertexBufferUVT:a.__vertexBuffer,u=t?l:w,ra=b.__getMatrix(a.__owner.__renderTransform,1);if(null==g||sb.maskRender){var B=sb.maskRender?b.__maskShader:b.__initGraphicsShader(null);b.setShader(B);b.applyMatrix(ra);b.applyBitmapData(n,h,v);b.applyAlpha(a.__owner.__worldAlpha);b.applyColorTransform(a.__owner.__worldColorTransform);b.updateShader()}else B=b.__initShaderBuffer(g),b.__setShaderBuffer(g),b.applyMatrix(ra),b.applyBitmapData(n,!1,v),b.applyAlpha(1), +b.applyColorTransform(null),b.__updateShaderBuffer(F);null!=B.__position&&k.setVertexBufferAt(B.__position.index,L,u,t?4:2);null!=B.__textureCoord&&k.setVertexBufferAt(B.__textureCoord.index,L,u+x,2);switch(d){case 0:k.setCulling(0);break;case 1:k.setCulling(3);break;case 2:k.setCulling(1)}k.__drawTriangles(0,C);F+=C;t?l+=f*C:w+=f*C;switch(d){case 1:case 2:k.setCulling(0)}b.__clearShader();break;case 13:g=m=n=null;switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+= +1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+= +1}c.prev=d;k.setCulling(3);break;case 18:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+= +4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=Y.MOVE_TO;break;case 19:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+= +4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=Y.OVERRIDE_BLEND_MODE;d=c;b.__setBlendMode(d.buffer.o[d.oPos]);break;default:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+= +6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=d}fa.__pool.release(p)}a.__hardwareDirty=!1;a.set___dirty(!1)}};sb.renderMask=function(a, +b){sb.maskRender=!0;sb.render(a,b);sb.maskRender=!1};sb.resizeVertexBuffer=function(a,b,c){var d=b?a.__vertexBufferDataUVT:a.__vertexBufferData,f=null;if(null==d){var k=f=null,p=null,g=null,n=null;f=c=null!=c?new Float32Array(c):null!=f?new Float32Array(f):null!=k?new Float32Array(k.__array):null!=p?new Float32Array(p):null!=g?null==n?new Float32Array(g,0):new Float32Array(g,0,n):null}else c>d.length&&(n=g=p=k=f=null,f=c=null!=c?new Float32Array(c):null!=f?new Float32Array(f):null!=k?new Float32Array(k.__array): +null!=p?new Float32Array(p):null!=g?null==n?new Float32Array(g,0):new Float32Array(g,0,n):null,f.set(d));null!=f&&(b?a.__vertexBufferDataUVT=f:a.__vertexBufferData=f)};var Zd=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\n\t\tuniform sampler2D openfl_Texture;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\n\t\t\tif (color.a == 0.0) {\n\n\t\t\t\tdiscard;\n\n\t\t\t} else {\n\n\t\t\t\tgl_FragColor = color;\n\n\t\t\t}\n\n\t\t}"); +null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}");Nc.call(this);this.__isGenerated=!0;this.__initGL()};Zd.__name__="openfl.display._internal.Context3DMaskShader";Zd.__super__=Nc;Zd.prototype=u(Nc.prototype, +{__class__:Zd});var bd=function(){};bd.__name__="openfl.display._internal.Context3DShape";bd.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)){var c=a.__graphics;if(null!=c){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);sb.render(c,b);if(null!=c.__bitmap&&c.__visible){var d=b.__context3D,f=b.__initDisplayShader(a.__worldShader);b.setShader(f);b.applyBitmapData(c.__bitmap,!0);var k=fa.__pool.get();k.scale(1/c.__bitmapScale,1/c.__bitmapScale);k.concat(c.__worldTransform);b.applyMatrix(b.__getMatrix(k, +1));fa.__pool.release(k);b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();k=c.__bitmap.getVertexBuffer(d);null!=f.__position&&d.setVertexBufferAt(f.__position.index,k,0,3);null!=f.__textureCoord&&d.setVertexBufferAt(f.__textureCoord.index,k,3,2);c=c.__bitmap.getIndexBuffer(d);d.drawTriangles(c);b.__clearShader()}b.__popMaskObject(a)}}};bd.renderMask=function(a,b){var c=a.__graphics;if(null!=c&&(sb.renderMask(c,b),null!=c.__bitmap)){a=b.__context3D;var d= +b.__maskShader;b.setShader(d);b.applyBitmapData(c.__bitmap,!0);b.applyMatrix(b.__getMatrix(c.__worldTransform,1));b.updateShader();var f=c.__bitmap.getVertexBuffer(a);null!=d.__position&&a.setVertexBufferAt(d.__position.index,f,0,3);null!=d.__textureCoord&&a.setVertexBufferAt(d.__textureCoord.index,f,3,2);c=c.__bitmap.getIndexBuffer(a);a.drawTriangles(c);b.__clearShader()}};var Xf=function(){};Xf.__name__="openfl.display._internal.Context3DSimpleButton";Xf.renderDrawable=function(a,b){!a.__renderable|| +0>=a.__worldAlpha||null==a.__currentState||(b.__pushMaskObject(a),b.__renderDrawable(a.__currentState),b.__popMaskObject(a),b.__renderEvent(a))};Xf.renderDrawableMask=function(a,b){null!=a.__currentState&&b.__renderDrawableMask(a.__currentState)};var td=function(){};td.__name__="openfl.display._internal.Context3DTextField";td.render=function(a,b){b.__softwareRenderer.__pixelRatio=b.__pixelRatio;var c=b.__softwareRenderer;b=a.__textEngine;var d=!(b.background||b.border),f=d?b.textBounds:b.bounds,k= +a.__graphics,p=0;if(a.__dirty){a.__updateLayout();null==k.__bounds&&(k.__bounds=new ca);if(0==a.get_text().length){p=b.bounds.width-4;var g=a.get_defaultTextFormat().align;p=3==g?0:4==g?p:p/2;switch(g){case 0:p+=a.get_defaultTextFormat().leftMargin/2;p-=a.get_defaultTextFormat().rightMargin/2;p+=a.get_defaultTextFormat().indent/2;p+=a.get_defaultTextFormat().blockIndent/2;break;case 2:p+=a.get_defaultTextFormat().leftMargin;p+=a.get_defaultTextFormat().indent;p+=a.get_defaultTextFormat().blockIndent; +break;case 3:p+=a.get_defaultTextFormat().leftMargin;p+=a.get_defaultTextFormat().indent;p+=a.get_defaultTextFormat().blockIndent;break;case 4:p-=a.get_defaultTextFormat().rightMargin}d&&(f.y=b.bounds.y,f.x=p)}k.__bounds.copyFrom(f)}g=c.__pixelRatio;k.__update(c.__worldTransform,g);if(a.__dirty||k.__softwareDirty){var n=Math.round(k.__width*g),v=Math.round(k.__height*g);if(!(null!=b.text&&""!=b.text||b.background||b.border||b.__hasFocus||1==b.type&&b.selectable)||(0>=b.width||0>=b.height)&&2!=b.autoSize)a.__graphics.__canvas= +null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));R.context=k.__context;k.__canvas.width=n;k.__canvas.height=v;c.__isDOM&&(k.__canvas.style.width=Math.round(n/g)+"px",k.__canvas.style.height=Math.round(v/g)+"px");n=fa.__pool.get();n.scale(g,g);n.concat(k.__renderTransform); +R.context.setTransform(n.a,n.b,n.c,n.d,n.tx,n.ty);fa.__pool.release(n);null==R.clearRect&&(R.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);R.clearRect&&R.context.clearRect(0,0,k.__canvas.width,k.__canvas.height);if(null!=b.text&&""!=b.text||b.__hasFocus){d=b.text;k.__context.imageSmoothingEnabled=!c.__allowSmoothing||0==b.antiAliasType&&400==b.sharpness?!1:!0;if(b.border||b.background){R.context.rect(.5,.5,f.width-1,f.height-1);if(b.background){var h=aa.hex(b.backgroundColor& +16777215,6);R.context.fillStyle="#"+h;R.context.fill()}b.border&&(R.context.lineWidth=1,h=aa.hex(b.borderColor&16777215,6),R.context.strokeStyle="#"+h,R.context.stroke())}R.context.textBaseline="alphabetic";R.context.textAlign="start";c=-a.get_scrollH();var m=p=0;for(h=a.get_scrollV()-1;mb.get_bottomScrollV()-1)break;var w="#"+aa.hex(v.format.color& +16777215,6);R.context.font=jb.getFont(v.format);R.context.fillStyle=w;R.context.fillText(d.substring(v.startIndex,v.endIndex),v.offsetX+c-f.x,v.offsetY+v.ascent+p-f.y);if(-1=a.__caretIndex){m=F=0;for(h=a.__caretIndex-v.startIndex;m=a.__caretIndex||v.startIndex<=a.__selectionIndex&&v.endIndex>=a.__selectionIndex||v.startIndex>a.__caretIndex&&v.endIndexa.__selectionIndex&&v.endIndexF&&(F=v.startIndex),v.endIndex=v.endIndex?(h=a.getCharBoundaries(v.endIndex-1),null!=h&&(h.x+=h.width+2)):h=a.getCharBoundaries(m),null!=r&&null!=h&&(R.context.fillStyle="#000000",R.context.fillRect(r.x+c-f.x,r.y+p,h.x-r.x,v.height),R.context.fillStyle="#FFFFFF",R.context.fillText(d.substring(F, +m),c+r.x-f.x,v.offsetY+v.ascent+p));v.format.underline&&(R.context.beginPath(),R.context.strokeStyle=w,R.context.lineWidth=1,w=v.offsetX+c-f.x,F=Math.ceil(v.offsetY+p+v.ascent-f.y)+Math.floor(.185*v.ascent)+.5,R.context.moveTo(w,F),R.context.lineTo(w+v.width,F),R.context.stroke(),R.context.closePath())}}else{if(b.border||b.background)b.border?R.context.rect(.5,.5,f.width-1,f.height-1):R.context.rect(0,0,f.width,f.height),b.background&&(h=aa.hex(b.backgroundColor&16777215,6),R.context.fillStyle="#"+ +h,R.context.fill()),b.border&&(R.context.lineWidth=1,R.context.lineCap="square",h=aa.hex(b.borderColor&16777215,6),R.context.strokeStyle="#"+h,R.context.stroke());if(-1=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255,(f&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);ca.__pool.release(d)}null!=a.__graphics&&bd.render(a,b)}}else Bc.render(a.__cacheBitmap,b);b.__renderEvent(a)};td.renderDrawableMask=function(a,b){td.renderMask(a,b);$d.renderDrawableMask(a,b)};td.renderMask=function(a,b){var c=b.__softwareRenderer; +b=a.__textEngine;var d=!(b.background||b.border),f=d?b.textBounds:b.bounds,k=a.__graphics,p=0;if(a.__dirty){a.__updateLayout();null==k.__bounds&&(k.__bounds=new ca);if(0==a.get_text().length){p=b.bounds.width-4;var g=a.get_defaultTextFormat().align;p=3==g?0:4==g?p:p/2;switch(g){case 0:p+=a.get_defaultTextFormat().leftMargin/2;p-=a.get_defaultTextFormat().rightMargin/2;p+=a.get_defaultTextFormat().indent/2;p+=a.get_defaultTextFormat().blockIndent/2;break;case 2:p+=a.get_defaultTextFormat().leftMargin; +p+=a.get_defaultTextFormat().indent;p+=a.get_defaultTextFormat().blockIndent;break;case 3:p+=a.get_defaultTextFormat().leftMargin;p+=a.get_defaultTextFormat().indent;p+=a.get_defaultTextFormat().blockIndent;break;case 4:p-=a.get_defaultTextFormat().rightMargin}d&&(f.y=b.bounds.y,f.x=p)}k.__bounds.copyFrom(f)}g=c.__pixelRatio;k.__update(c.__worldTransform,g);if(a.__dirty||k.__softwareDirty){var n=Math.round(k.__width*g),v=Math.round(k.__height*g);if(!(null!=b.text&&""!=b.text||b.background||b.border|| +b.__hasFocus||1==b.type&&b.selectable)||(0>=b.width||0>=b.height)&&2!=b.autoSize)a.__graphics.__canvas=null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));R.context=k.__context;k.__canvas.width=n;k.__canvas.height=v;c.__isDOM&&(k.__canvas.style.width=Math.round(n/ +g)+"px",k.__canvas.style.height=Math.round(v/g)+"px");n=fa.__pool.get();n.scale(g,g);n.concat(k.__renderTransform);R.context.setTransform(n.a,n.b,n.c,n.d,n.tx,n.ty);fa.__pool.release(n);null==R.clearRect&&(R.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);R.clearRect&&R.context.clearRect(0,0,k.__canvas.width,k.__canvas.height);if(null!=b.text&&""!=b.text||b.__hasFocus){d=b.text;k.__context.imageSmoothingEnabled=!c.__allowSmoothing||0==b.antiAliasType&&400==b.sharpness? +!1:!0;if(b.border||b.background){R.context.rect(.5,.5,f.width-1,f.height-1);if(b.background){var h=aa.hex(b.backgroundColor&16777215,6);R.context.fillStyle="#"+h;R.context.fill()}b.border&&(R.context.lineWidth=1,h=aa.hex(b.borderColor&16777215,6),R.context.strokeStyle="#"+h,R.context.stroke())}R.context.textBaseline="alphabetic";R.context.textAlign="start";c=-a.get_scrollH();var m=p=0;for(h=a.get_scrollV()-1;mb.get_bottomScrollV()-1)break;var w="#"+aa.hex(v.format.color&16777215,6);R.context.font=jb.getFont(v.format);R.context.fillStyle=w;R.context.fillText(d.substring(v.startIndex,v.endIndex),v.offsetX+c-f.x,v.offsetY+v.ascent+p-f.y);if(-1=a.__caretIndex){m=F=0;for(h=a.__caretIndex-v.startIndex;m=a.__caretIndex||v.startIndex<= +a.__selectionIndex&&v.endIndex>=a.__selectionIndex||v.startIndex>a.__caretIndex&&v.endIndexa.__selectionIndex&&v.endIndexF&&(F=v.startIndex),v.endIndex=v.endIndex?(h=a.getCharBoundaries(v.endIndex-1),null!=h&&(h.x+=h.width+2)):h=a.getCharBoundaries(m),null!=r&&null!=h&&(R.context.fillStyle="#000000", +R.context.fillRect(r.x+c-f.x,r.y+p,h.x-r.x,v.height),R.context.fillStyle="#FFFFFF",R.context.fillText(d.substring(F,m),c+r.x-f.x,v.offsetY+v.ascent+p));v.format.underline&&(R.context.beginPath(),R.context.strokeStyle=w,R.context.lineWidth=1,w=v.offsetX+c-f.x,F=Math.ceil(v.offsetY+p+v.ascent-f.y)+Math.floor(.185*v.ascent)+.5,R.context.moveTo(w,F),R.context.lineTo(w+v.width,F),R.context.stroke(),R.context.closePath())}}else{if(b.border||b.background)b.border?R.context.rect(.5,.5,f.width-1,f.height- +1):R.context.rect(0,0,f.width,f.height),b.background&&(h=aa.hex(b.backgroundColor&16777215,6),R.context.fillStyle="#"+h,R.context.fill()),b.border&&(R.context.lineWidth=1,R.context.lineCap="square",h=aa.hex(b.borderColor&16777215,6),R.context.strokeStyle="#"+h,R.context.stroke());if(-1=a.__worldAlpha)a.__group.__dirty= +!1;else{P.numTiles=0;P.vertexBufferData=null!=a.__buffer?a.__buffer.vertexBufferData:null;P.vertexDataPosition=0;var c=ca.__pool.get(),d=fa.__pool.get(),f=fa.__pool.get();P.dataPerVertex=4;a.tileAlphaEnabled&&P.dataPerVertex++;a.tileColorTransformEnabled&&(P.dataPerVertex+=8);P.buildBufferTileContainer(a,a.__group,b,f,a.__tileset,a.tileAlphaEnabled,a.__worldAlpha,a.tileColorTransformEnabled,a.__worldColorTransform,null,c,d);a.__buffer.flushVertexBufferData();ca.__pool.release(c);fa.__pool.release(d); +fa.__pool.release(f)}};P.buildBufferTileContainer=function(a,b,c,d,f,k,p,g,n,v,h,m,r){null==r&&(r=!0);var q=fa.__pool.get(),F=c.__roundPixels,w=b.__tiles,l=null;l=function(a){a=a.__tiles;for(var b=0,c=0;c=N))if(g&&(null!=ja.get_colorTransform()?null==n?r=ja.get_colorTransform():(null==P.cacheColorTransform&&(P.cacheColorTransform=new tb),r=P.cacheColorTransform,r.redMultiplier=n.redMultiplier*ja.get_colorTransform().redMultiplier,r.greenMultiplier=n.greenMultiplier*ja.get_colorTransform().greenMultiplier,r.blueMultiplier=n.blueMultiplier*ja.get_colorTransform().blueMultiplier, +r.alphaMultiplier=n.alphaMultiplier*ja.get_colorTransform().alphaMultiplier,r.redOffset=n.redOffset+ja.get_colorTransform().redOffset,r.greenOffset=n.greenOffset+ja.get_colorTransform().greenOffset,r.blueOffset=n.blueOffset+ja.get_colorTransform().blueOffset,r.alphaOffset=n.alphaOffset+ja.get_colorTransform().alphaOffset):r=n),k||(N=1),0=D.width||0>=D.height)continue;ja=D.x/H.width;K=D.y/H.height;I=D.get_right()/H.width;y=D.get_bottom()/H.height}else{H=K.__data[I];if(null==H)continue;h.setTo(H.x,H.y,H.width,H.height);D=h;ja=H.__uvX;K=H.__uvY;I=H.__uvWidth;y=H.__uvHeight}H=D.width;G=D.height;D=0*q.a+0*q.c+q.tx;C=0*q.b+0*q.d+q.ty;t=H*q.a+0*q.c+q.tx;x=H*q.b+0*q.d+q.ty;L=0*q.a+G*q.c+q.tx;u=0*q.b+G*q.d+q.ty;ra=H*q.a+G*q.c+q.tx;G=H*q.b+G*q.d+q.ty;H=P.vertexDataPosition;P.vertexBufferData[H]=D;P.vertexBufferData[H+1]=C;P.vertexBufferData[H+ +2]=ja;P.vertexBufferData[H+3]=K;P.vertexBufferData[H+P.dataPerVertex]=t;P.vertexBufferData[H+P.dataPerVertex+1]=x;P.vertexBufferData[H+P.dataPerVertex+2]=I;P.vertexBufferData[H+P.dataPerVertex+3]=K;P.vertexBufferData[H+2*P.dataPerVertex]=L;P.vertexBufferData[H+2*P.dataPerVertex+1]=u;P.vertexBufferData[H+2*P.dataPerVertex+2]=ja;P.vertexBufferData[H+2*P.dataPerVertex+3]=y;P.vertexBufferData[H+3*P.dataPerVertex]=ra;P.vertexBufferData[H+3*P.dataPerVertex+1]=G;P.vertexBufferData[H+3*P.dataPerVertex+2]= +I;P.vertexBufferData[H+3*P.dataPerVertex+3]=y;k&&(P.vertexBufferData[H+0*P.dataPerVertex+4]=N,P.vertexBufferData[H+P.dataPerVertex+4]=N,P.vertexBufferData[H+2*P.dataPerVertex+4]=N,P.vertexBufferData[H+3*P.dataPerVertex+4]=N);if(g)if(null!=r)for(N=0;4>N;)ja=N++,P.vertexBufferData[H+P.dataPerVertex*ja+B]=r.redMultiplier,P.vertexBufferData[H+P.dataPerVertex*ja+B+1]=r.greenMultiplier,P.vertexBufferData[H+P.dataPerVertex*ja+B+2]=r.blueMultiplier,P.vertexBufferData[H+P.dataPerVertex*ja+B+3]=r.alphaMultiplier, +P.vertexBufferData[H+P.dataPerVertex*ja+B+4]=r.redOffset,P.vertexBufferData[H+P.dataPerVertex*ja+B+5]=r.greenOffset,P.vertexBufferData[H+P.dataPerVertex*ja+B+6]=r.blueOffset,P.vertexBufferData[H+P.dataPerVertex*ja+B+7]=r.alphaOffset;else for(N=0;4>N;)ja=N++,P.vertexBufferData[H+P.dataPerVertex*ja+B]=1,P.vertexBufferData[H+P.dataPerVertex*ja+B+1]=1,P.vertexBufferData[H+P.dataPerVertex*ja+B+2]=1,P.vertexBufferData[H+P.dataPerVertex*ja+B+3]=1,P.vertexBufferData[H+P.dataPerVertex*ja+B+4]=0,P.vertexBufferData[H+ +P.dataPerVertex*ja+B+5]=0,P.vertexBufferData[H+P.dataPerVertex*ja+B+6]=0,P.vertexBufferData[H+P.dataPerVertex*ja+B+7]=0;P.vertexDataPosition+=4*P.dataPerVertex}}b.__dirty=!1;fa.__pool.release(q)};P.flush=function(a,b,c){null==P.currentShader&&(P.currentShader=b.__defaultDisplayShader);if(P.bufferPosition>P.lastFlushedPosition&&null!=P.currentBitmapData&&null!=P.currentShader){var d=b.__initDisplayShader(P.currentShader);b.setShader(d);b.applyBitmapData(P.currentBitmapData,a.smoothing);b.applyMatrix(b.__getMatrix(a.__renderTransform, +1));a.tileAlphaEnabled?b.useAlphaArray():b.applyAlpha(a.__worldAlpha);a.tileBlendModeEnabled&&b.__setBlendMode(c);a.tileColorTransformEnabled?(b.applyHasColorTransform(!0),b.useColorTransformArray()):b.applyColorTransform(a.__worldColorTransform);b.updateShader();c=a.__buffer.vertexBuffer;for(var f=P.lastFlushedPosition*P.dataPerVertex*4,k;P.lastFlushedPosition=k)break;null!=d.__position&& +P.context.setVertexBufferAt(d.__position.index,c,f,2);null!=d.__textureCoord&&P.context.setVertexBufferAt(d.__textureCoord.index,c,f+2,2);a.tileAlphaEnabled&&null!=d.__alpha&&P.context.setVertexBufferAt(d.__alpha.index,c,f+4,1);if(a.tileColorTransformEnabled){var p=a.tileAlphaEnabled?5:4;null!=d.__colorMultiplier&&P.context.setVertexBufferAt(d.__colorMultiplier.index,c,f+p,4);null!=d.__colorOffset&&P.context.setVertexBufferAt(d.__colorOffset.index,c,f+p+4,4)}P.context.drawTriangles(P.context.__quadIndexBuffer, +0,2*k);P.lastFlushedPosition+=k}b.__clearShader()}P.lastUsedBitmapData=P.currentBitmapData;P.lastUsedShader=P.currentShader};P.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&&(P.context=b.__context3D,P.buildBuffer(a,b),0!=P.numTiles)){P.bufferPosition=0;P.lastFlushedPosition=0;P.lastUsedBitmapData=null;P.lastUsedShader=null;P.currentBitmapData=null;P.currentShader=null;P.currentBlendMode=a.__worldBlendMode;a.tileBlendModeEnabled||b.__setBlendMode(P.currentBlendMode);b.__pushMaskObject(a); +var c=ca.__pool.get();c.setTo(0,0,a.__width,a.__height);b.__pushMaskRect(c,a.__renderTransform);P.renderTileContainer(a,b,a.__group,a.__worldShader,a.__tileset,a.__worldAlpha,a.tileBlendModeEnabled,P.currentBlendMode,null);P.flush(a,b,P.currentBlendMode);b.__popMaskRect();b.__popMaskObject(a);ca.__pool.release(c)}};P.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!= +a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255,(f&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);ca.__pool.release(d)}null!=a.__graphics&&bd.render(a,b)}P.render(a,b)}else Bc.render(a.__cacheBitmap,b);b.__renderEvent(a)}; +P.renderDrawableMask=function(a,b){if(null!=a.opaqueBackground||null!=a.__graphics)null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0=m))if(h=null!=q.get_shader()?q.get_shader():d,p&&(r=null!=q.__blendMode?q.__blendMode: +g),0=q.width||0>=q.height)continue}else if(q=v.__data[F],null==q)continue;(h!=P.currentShader||m!=P.currentBitmapData&&null!=P.currentBitmapData||P.currentBlendMode!=r)&&P.flush(a,b,P.currentBlendMode);P.currentBitmapData=m;P.currentShader=h;P.currentBlendMode=r;P.bufferPosition++}};P.renderMask=function(a,b){};P.resizeBuffer=function(a,b){P.numTiles=b; +null==a.__buffer?a.__buffer=new gf(P.context,hf.QUADS,P.numTiles,P.dataPerVertex):a.__buffer.resize(P.numTiles,P.dataPerVertex);P.vertexBufferData=a.__buffer.vertexBufferData};var Cc=function(){};Cc.__name__="openfl.display._internal.Context3DVideo";Cc.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&&null!=a.__stream&&null!=a.__stream.__video){var c=b.__context3D,d=c.gl;if(null!=a.__getTexture(c)){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var f=b.__initDisplayShader(a.__worldShader); +b.setShader(f);b.applyBitmapData(null,!0,!1);b.applyMatrix(b.__getMatrix(a.__renderTransform,1));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);null!=f.__textureSize&&(Cc.__textureSizeValue[0]=null!=a.__stream?a.__stream.__video.videoWidth:0,Cc.__textureSizeValue[1]=null!=a.__stream?a.__stream.__video.videoHeight:0,f.__textureSize.value=Cc.__textureSizeValue);b.updateShader();c.setTextureAt(0,a.__getTexture(c));c.__flushGLTextures();d.uniform1i(f.__texture.index,0);a.smoothing? +(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.LINEAR),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.LINEAR)):(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.NEAREST),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.NEAREST));d=a.__getVertexBuffer(c);null!=f.__position&&c.setVertexBufferAt(f.__position.index,d,0,3);null!=f.__textureCoord&&c.setVertexBufferAt(f.__textureCoord.index,d,3,2);f=a.__getIndexBuffer(c);c.drawTriangles(f);b.__clearShader();b.__popMaskObject(a)}}};Cc.renderDrawable= +function(a,b){Cc.render(a,b);b.__renderEvent(a)};Cc.renderDrawableMask=function(a,b){Cc.renderMask(a,b)};Cc.renderMask=function(a,b){if(null!=a.__stream&&null!=a.__stream.__video){var c=b.__context3D,d=b.__maskShader;b.setShader(d);b.applyBitmapData(Zd.opaqueBitmapData,!0);b.applyMatrix(b.__getMatrix(a.__renderTransform,1));b.updateShader();var f=a.__getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,f,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index, +f,3,2);a=a.__getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()}};var ub=function(){};ub.__name__="openfl.display._internal.DOMBitmap";ub.clear=function(a,b){ic.clear(a,b);null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null,a.__style=null);null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};ub.renderCanvas=function(a,b){null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null);null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"), +a.__context=a.__canvas.getContext("2d"),a.__imageVersion=-1,b.__allowSmoothing&&a.smoothing||(a.__context.imageSmoothingEnabled=!1),b.__initializeElement(a,a.__canvas));a.__imageVersion!=a.__bitmapData.image.version&&(Ea.convertToCanvas(a.__bitmapData.image),a.__canvas.width=a.__bitmapData.width+1,a.__canvas.width=a.__bitmapData.width,a.__canvas.height=a.__bitmapData.height,a.__context.drawImage(a.__bitmapData.image.buffer.__srcCanvas,0,0),a.__imageVersion=a.__bitmapData.image.version);b.__updateClip(a); +b.__applyStyle(a,!0,!0,!0)};ub.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0c.get_bottomScrollV()-1)break;p+='
';if(null!=v.format.url&&""!=v.format.url){var h="text-decoration: underline; ";null!=v.format.color&&(h+="color: #"+aa.hex(v.format.color&16777215,6)+"; ");p+=""}p=a.__isHTML?p+aa.replace(c.text.substring(v.startIndex,v.endIndex)," "," "):p+aa.replace(aa.htmlEscape(c.text.substring(v.startIndex,v.endIndex))," "," ");null!=v.format.url&&""!=v.format.url&&(p+="");p+="
"}}c.border?(d.setProperty("border","solid 1px #"+aa.hex(c.borderColor&16777215,6),null),a.__renderTransform.translate(-1,-1),a.__renderTransformChanged=!0,a.__transformDirty=!0):""!=d.border&&(d.removeProperty("border"),a.__renderTransformChanged=!0);d.setProperty("width", +f+"px",null);d.setProperty("height",k+"px",null);a.__div.innerHTML=p;a.__dirty=!1}else null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null);null!=a.__div&&(c=b.__roundPixels,b.__roundPixels=!0,b.__updateClip(a),b.__applyStyle(a,!0,!0,!0),b.__roundPixels=c)}else Bd.clear(a,b)}else b.__renderDrawableClear(a),a.__cacheBitmap.stage=a.stage,c=a.__cacheBitmap,null!=c.stage&&c.__worldVisible&&c.__renderable&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable?(b.__pushMaskObject(c), +null!=c.__bitmapData.image.buffer.__srcImage?(d=c.__bitmapData.image.buffer.__srcImage.src,aa.startsWith(d,"data:")||aa.startsWith(d,"blob:")?ub.renderCanvas(c,b):ub.renderImage(c,b)):ub.renderCanvas(c,b),b.__popMaskObject(c)):ub.clear(c,b);b.__renderEvent(a)};Bd.renderDrawableClear=function(a,b){Bd.clear(a,b)};var Cd=function(){};Cd.__name__="openfl.display._internal.DOMTilemap";Cd.clear=function(a,b){ic.clear(a,b);null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)}; +Cd.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender)if(null!=a.stage&&a.__worldVisible&&a.__renderable&&0=f)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(p>>>8&255)+","+(p&255)+")";k.fillRect(0,0,a.get_width(),a.get_height());d.__popMaskObject(a)}if(null!=a.__graphics&&a.__renderable&& +(f=d.__getAlpha(a.__worldAlpha),!(0>=f))){var g=a.__graphics;if(null!=g){y.render(g,d);var n=g.__width,v=g.__height;p=g.__canvas;if(null!=p&&g.__visible&&1<=n&&1<=v){var h=g.__worldTransform;k=d.context;var m=a.__scrollRect,r=a.__worldScale9Grid;if(null==m||0=f||(k=d.context,d.__setBlendMode(a.__worldBlendMode),d.__pushMaskObject(a),p=ca.__pool.get(),p.setTo(0,0,a.__width,a.__height),d.__pushMaskRect(p,a.__renderTransform),d.__allowSmoothing&&a.smoothing||(k.imageSmoothingEnabled=!1),rd.renderTileContainer(a.__group,d,a.__renderTransform,a.__tileset,d.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,f, +a.tileBlendModeEnabled,a.__worldBlendMode,null,null,p),d.__allowSmoothing&&a.smoothing||(k.imageSmoothingEnabled=!0),d.__popMaskRect(),d.__popMaskObject(a),ca.__pool.release(p)));a.__renderTransform=c;b.__canvasRenderer.context=null;b.__updateClip(a);b.__applyStyle(a,!0,!1,!0)}else Cd.clear(a,b);else b.__renderDrawableClear(a),a.__cacheBitmap.stage=a.stage,c=a.__cacheBitmap,null!=c.stage&&c.__worldVisible&&c.__renderable&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable?(b.__pushMaskObject(c), +null!=c.__bitmapData.image.buffer.__srcImage?(d=c.__bitmapData.image.buffer.__srcImage.src,aa.startsWith(d,"data:")||aa.startsWith(d,"blob:")?ub.renderCanvas(c,b):ub.renderImage(c,b)):ub.renderCanvas(c,b),b.__popMaskObject(c)):ub.clear(c,b);b.__renderEvent(a)};Cd.renderDrawableClear=function(a,b){Cd.clear(a,b)};var sd=function(){};sd.__name__="openfl.display._internal.DOMVideo";sd.clear=function(a,b){ic.clear(a,b);a.__active&&(b.element.removeChild(a.__stream.__video),a.__active=!1)};sd.render=function(a, +b){null!=a.stage&&null!=a.__stream&&a.__worldVisible&&a.__renderable?(a.__active||(b.__initializeElement(a,a.__stream.__video),a.__active=!0,a.__dirty=!0),a.__dirty&&(a.__stream.__video.width=a.__width|0,a.__stream.__video.height=a.__height|0,a.__dirty=!1),b.__updateClip(a),b.__applyStyle(a,!0,!0,!0)):sd.clear(a,b)};sd.renderDrawable=function(a,b){sd.render(a,b);b.__renderEvent(a)};sd.renderDrawableClear=function(a,b){ic.renderDrawableClear(a,b)};var ad=function(a){this.buffer=a;this.bPos=this.iPos= +this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos=0;this.prev=Y.UNKNOWN};ad.__name__="openfl.display._internal.DrawCommandReader";ad.prototype={destroy:function(){this.buffer=null;this.reset()},reset:function(){this.bPos=this.iPos=this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos=0},__class__:ad};var Y=w["openfl.display._internal.DrawCommandType"]={__ename__:!0,__constructs__:null,BEGIN_BITMAP_FILL:{_hx_name:"BEGIN_BITMAP_FILL",_hx_index:0,__enum__:"openfl.display._internal.DrawCommandType", +toString:g},BEGIN_FILL:{_hx_name:"BEGIN_FILL",_hx_index:1,__enum__:"openfl.display._internal.DrawCommandType",toString:g},BEGIN_GRADIENT_FILL:{_hx_name:"BEGIN_GRADIENT_FILL",_hx_index:2,__enum__:"openfl.display._internal.DrawCommandType",toString:g},BEGIN_SHADER_FILL:{_hx_name:"BEGIN_SHADER_FILL",_hx_index:3,__enum__:"openfl.display._internal.DrawCommandType",toString:g},CUBIC_CURVE_TO:{_hx_name:"CUBIC_CURVE_TO",_hx_index:4,__enum__:"openfl.display._internal.DrawCommandType",toString:g},CURVE_TO:{_hx_name:"CURVE_TO", +_hx_index:5,__enum__:"openfl.display._internal.DrawCommandType",toString:g},DRAW_CIRCLE:{_hx_name:"DRAW_CIRCLE",_hx_index:6,__enum__:"openfl.display._internal.DrawCommandType",toString:g},DRAW_ELLIPSE:{_hx_name:"DRAW_ELLIPSE",_hx_index:7,__enum__:"openfl.display._internal.DrawCommandType",toString:g},DRAW_QUADS:{_hx_name:"DRAW_QUADS",_hx_index:8,__enum__:"openfl.display._internal.DrawCommandType",toString:g},DRAW_RECT:{_hx_name:"DRAW_RECT",_hx_index:9,__enum__:"openfl.display._internal.DrawCommandType", +toString:g},DRAW_ROUND_RECT:{_hx_name:"DRAW_ROUND_RECT",_hx_index:10,__enum__:"openfl.display._internal.DrawCommandType",toString:g},DRAW_TILES:{_hx_name:"DRAW_TILES",_hx_index:11,__enum__:"openfl.display._internal.DrawCommandType",toString:g},DRAW_TRIANGLES:{_hx_name:"DRAW_TRIANGLES",_hx_index:12,__enum__:"openfl.display._internal.DrawCommandType",toString:g},END_FILL:{_hx_name:"END_FILL",_hx_index:13,__enum__:"openfl.display._internal.DrawCommandType",toString:g},LINE_BITMAP_STYLE:{_hx_name:"LINE_BITMAP_STYLE", +_hx_index:14,__enum__:"openfl.display._internal.DrawCommandType",toString:g},LINE_GRADIENT_STYLE:{_hx_name:"LINE_GRADIENT_STYLE",_hx_index:15,__enum__:"openfl.display._internal.DrawCommandType",toString:g},LINE_STYLE:{_hx_name:"LINE_STYLE",_hx_index:16,__enum__:"openfl.display._internal.DrawCommandType",toString:g},LINE_TO:{_hx_name:"LINE_TO",_hx_index:17,__enum__:"openfl.display._internal.DrawCommandType",toString:g},MOVE_TO:{_hx_name:"MOVE_TO",_hx_index:18,__enum__:"openfl.display._internal.DrawCommandType", +toString:g},OVERRIDE_BLEND_MODE:{_hx_name:"OVERRIDE_BLEND_MODE",_hx_index:19,__enum__:"openfl.display._internal.DrawCommandType",toString:g},OVERRIDE_MATRIX:{_hx_name:"OVERRIDE_MATRIX",_hx_index:20,__enum__:"openfl.display._internal.DrawCommandType",toString:g},WINDING_EVEN_ODD:{_hx_name:"WINDING_EVEN_ODD",_hx_index:21,__enum__:"openfl.display._internal.DrawCommandType",toString:g},WINDING_NON_ZERO:{_hx_name:"WINDING_NON_ZERO",_hx_index:22,__enum__:"openfl.display._internal.DrawCommandType",toString:g}, +UNKNOWN:{_hx_name:"UNKNOWN",_hx_index:23,__enum__:"openfl.display._internal.DrawCommandType",toString:g}};Y.__constructs__=[Y.BEGIN_BITMAP_FILL,Y.BEGIN_FILL,Y.BEGIN_GRADIENT_FILL,Y.BEGIN_SHADER_FILL,Y.CUBIC_CURVE_TO,Y.CURVE_TO,Y.DRAW_CIRCLE,Y.DRAW_ELLIPSE,Y.DRAW_QUADS,Y.DRAW_RECT,Y.DRAW_ROUND_RECT,Y.DRAW_TILES,Y.DRAW_TRIANGLES,Y.END_FILL,Y.LINE_BITMAP_STYLE,Y.LINE_GRADIENT_STYLE,Y.LINE_STYLE,Y.LINE_TO,Y.MOVE_TO,Y.OVERRIDE_BLEND_MODE,Y.OVERRIDE_MATRIX,Y.WINDING_EVEN_ODD,Y.WINDING_NON_ZERO,Y.UNKNOWN]; +var Ma=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};Ma.__name__="openfl.geom.Point";Ma.prototype={clone:function(){return new Ma(this.x,this.y)},copyFrom:function(a){this.x=a.x;this.y=a.y},setTo:function(a,b){this.x=a;this.y=b},__toLimeVector2:function(){null==Ma.__limeVector2&&(Ma.__limeVector2=new se);var a=Ma.__limeVector2;a.x=this.x;a.y=this.y;return Ma.__limeVector2},__class__:Ma};var de=function(a,b,c,d,f,k,p){null==p&&(p=!1);null==k&&(k=!1);null==f&&(f=!1);null==d&&(d=0); +null==c&&(c=2);null==b&&(b=5);null==a&&(a=0);this.wrap=a;this.filter=b;this.mipfilter=c;this.lodBias=d;this.ignoreSampler=f;this.centroid=k;this.textureAlpha=p};de.__name__="openfl.display._internal.SamplerState";de.prototype={clone:function(){var a=new de(this.wrap,this.filter,this.mipfilter,this.lodBias,this.ignoreSampler,this.centroid,this.textureAlpha);a.mipmapGenerated=this.mipmapGenerated;return a},copyFrom:function(a){null==a||a.ignoreSampler||(this.wrap=a.wrap,this.filter=a.filter,this.mipfilter= +a.mipfilter,this.lodBias=a.lodBias,this.centroid=a.centroid,this.textureAlpha=a.textureAlpha)},equals:function(a){return null==a?!1:this.wrap==a.wrap&&this.filter==a.filter&&this.mipfilter==a.mipfilter&&this.lodBias==a.lodBias?this.textureAlpha==a.textureAlpha:!1},__class__:de};var Sf=function(){this.inputRefs=[];this.inputFilter=[];this.inputMipFilter=[];this.inputs=[];this.inputWrap=[];this.overrideIntNames=[];this.overrideIntValues=[];this.overrideFloatNames=[];this.overrideFloatValues=[];this.overrideBoolNames= +[];this.overrideBoolValues=[];this.paramLengths=[];this.paramPositions=[];this.paramRefs_Bool=[];this.paramRefs_Float=[];this.paramRefs_Int=[];this.paramTypes=[]};Sf.__name__="openfl.display._internal.ShaderBuffer";Sf.prototype={addBoolOverride:function(a,b){this.overrideBoolNames[this.overrideBoolCount]=a;this.overrideBoolValues[this.overrideBoolCount]=b;this.overrideBoolCount++},addFloatOverride:function(a,b){this.overrideFloatNames[this.overrideFloatCount]=a;this.overrideFloatValues[this.overrideFloatCount]= +b;this.overrideFloatCount++},clearOverride:function(){this.overrideBoolCount=this.overrideFloatCount=this.overrideIntCount=0},__class__:Sf};var Ka=function(a,b,c){this.driverInfo="OpenGL (Direct blitting)";this.backBufferHeight=this.backBufferWidth=0;B.call(this);this.__stage=a;this.__contextState=b;this.__stage3D=c;this.__context=a.window.context;this.gl=this.__context.webgl;null==this.__contextState&&(this.__contextState=new jf);this.__state=new jf;var d;this.__vertexConstants=new Float32Array(512); +this.__fragmentConstants=new Float32Array(512);var f=null;a=[1,1,1,1];var k=d=c=b=null;this.__positionScale=a=null!=f?new Float32Array(f):null!=a?new Float32Array(a):null!=b?new Float32Array(b.__array):null!=c?new Float32Array(c):null!=d?null==k?new Float32Array(d,0):new Float32Array(d,0,k):null;this.__programs=new Sa;-1==Ka.__glMaxViewportDims&&(Ka.__glMaxViewportDims=this.gl.getParameter(this.gl.MAX_VIEWPORT_DIMS));this.maxBackBufferHeight=this.maxBackBufferWidth=Ka.__glMaxViewportDims;-1==Ka.__glMaxTextureMaxAnisotropy&& +(a=this.gl.getExtension("EXT_texture_filter_anisotropic"),null!=a&&Object.prototype.hasOwnProperty.call(a,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")||(a=this.gl.getExtension("MOZ_EXT_texture_filter_anisotropic")),null!=a&&Object.prototype.hasOwnProperty.call(a,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")||(a=this.gl.getExtension("WEBKIT_EXT_texture_filter_anisotropic")),null!=a?(Ka.__glTextureMaxAnisotropy=a.TEXTURE_MAX_ANISOTROPY_EXT,Ka.__glMaxTextureMaxAnisotropy=this.gl.getParameter(a.MAX_TEXTURE_MAX_ANISOTROPY_EXT)): +(Ka.__glTextureMaxAnisotropy=0,Ka.__glMaxTextureMaxAnisotropy=0));-1==Ka.__glDepthStencil&&(Ka.__glDepthStencil=this.gl.DEPTH_STENCIL);-1==Ka.__glMemoryTotalAvailable&&(a=this.gl.getExtension("NVX_gpu_memory_info"),null!=a&&(Ka.__glMemoryTotalAvailable=a.GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX,Ka.__glMemoryCurrentAvailable=a.GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX));null==Ka.__driverInfo&&(a=this.gl.getParameter(this.gl.VENDOR),b=this.gl.getParameter(this.gl.VERSION),c=this.gl.getParameter(this.gl.RENDERER), +d=this.gl.getParameter(this.gl.SHADING_LANGUAGE_VERSION),Ka.__driverInfo="OpenGL Vendor="+a+" Version="+b+" Renderer="+c+" GLSL="+d);this.driverInfo=Ka.__driverInfo;this.__quadIndexBufferElements=16383;f=this.__quadIndexBufferCount=6*this.__quadIndexBufferElements;k=d=c=b=a=null;a=null!=f?new Uint16Array(f):null!=a?new Uint16Array(a):null!=b?new Uint16Array(b.__array):null!=c?new Uint16Array(c):null!=d?null==k?new Uint16Array(d,0):new Uint16Array(d,0,k):null;d=c=b=0;for(k=this.__quadIndexBufferElements;d< +k;)d++,a[b]=c,a[b+1]=c+1,a[b+2]=c+2,a[b+3]=c+2,a[b+4]=c+1,a[b+5]=c+3,b+=6,c+=4;this.__quadIndexBuffer=this.createIndexBuffer(this.__quadIndexBufferCount);this.__quadIndexBuffer.uploadFromTypedArray(a)};Ka.__name__="openfl.display3D.Context3D";Ka.__super__=B;Ka.prototype=u(B.prototype,{clear:function(a,b,c,d,f,k,p){null==p&&(p=7);null==k&&(k=0);null==f&&(f=1);null==d&&(d=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.__flushGLFramebuffer();this.__flushGLViewport();var q=0;if(0!=(p&1)){null== +this.__state.renderToTexture&&(this.__stage.context3D!=this||this.__stage.__renderer.__cleared||(this.__stage.__renderer.__cleared=!0),this.__cleared=!0);q|=this.gl.COLOR_BUFFER_BIT;if(1!=this.__contextState.colorMaskRed||1!=this.__contextState.colorMaskGreen||1!=this.__contextState.colorMaskBlue||1!=this.__contextState.colorMaskAlpha)this.gl.colorMask(!0,!0,!0,!0),this.__contextState.colorMaskRed=!0,this.__contextState.colorMaskGreen=!0,this.__contextState.colorMaskBlue=!0,this.__contextState.colorMaskAlpha= +!0;this.gl.clearColor(a,b,c,d)}0!=(p&2)&&(q|=this.gl.DEPTH_BUFFER_BIT,1!=this.__contextState.depthMask&&(this.gl.depthMask(!0),this.__contextState.depthMask=!0),this.gl.clearDepth(f));0!=(p&4)&&(q|=this.gl.STENCIL_BUFFER_BIT,255!=this.__contextState.stencilWriteMask&&(this.gl.stencilMask(255),this.__contextState.stencilWriteMask=255),this.gl.clearStencil(k),this.__contextState.stencilWriteMask=255);0!=q&&(this.__setGLScissorTest(!1),this.gl.clear(q))},configureBackBuffer:function(a,b,c,d,f,k){null== +k&&(k=!1);null==f&&(f=!1);null==d&&(d=!0);f&&(a=a*this.__stage.window.__scale|0,b=b*this.__stage.window.__scale|0);if(null==this.__stage3D)this.backBufferWidth=a,this.backBufferHeight=b,this.__backBufferAntiAlias=c,this.__state.backBufferEnableDepthAndStencil=d,this.__backBufferWantsBestResolution=f,this.__backBufferWantsBestResolutionOnBrowserZoom=k;else{if(null==this.__backBufferTexture||this.backBufferWidth!=a||this.backBufferHeight!=b){null!=this.__backBufferTexture&&this.__backBufferTexture.dispose(); +null!=this.__frontBufferTexture&&this.__frontBufferTexture.dispose();this.__backBufferTexture=this.createRectangleTexture(a,b,1,!0);this.__frontBufferTexture=this.createRectangleTexture(a,b,1,!0);null==this.__stage3D.__vertexBuffer&&(this.__stage3D.__vertexBuffer=this.createVertexBuffer(4,5));var p=f?a:a*this.__stage.window.__scale|0,g=f?b:b*this.__stage.window.__scale|0;p=xa.toFloatVector(null,null,null,[p,g,0,1,1,0,g,0,0,1,p,0,0,1,0,0,0,0,0,0]);this.__stage3D.__vertexBuffer.uploadFromVector(p,0, +20);null==this.__stage3D.__indexBuffer&&(this.__stage3D.__indexBuffer=this.createIndexBuffer(6),p=xa.toIntVector(null,null,null,[0,1,2,2,1,3]),this.__stage3D.__indexBuffer.uploadFromVector(p,0,6))}this.backBufferWidth=a;this.backBufferHeight=b;this.__backBufferAntiAlias=c;this.__state.backBufferEnableDepthAndStencil=d;this.__backBufferWantsBestResolution=f;this.__backBufferWantsBestResolutionOnBrowserZoom=k;this.__state.__primaryGLFramebuffer=this.__backBufferTexture.__getGLFramebuffer(d,c,0);this.__frontBufferTexture.__getGLFramebuffer(d, +c,0)}},createIndexBuffer:function(a,b){null==b&&(b=1);return new Mg(this,a,b)},createProgram:function(a){null==a&&(a=0);return new Ng(this,a)},createRectangleTexture:function(a,b,c,d){return new kf(this,a,b,Fh.toString(c),d)},createVertexBuffer:function(a,b,c){null==c&&(c=1);return new Og(this,a,b,qh.toString(c))},drawTriangles:function(a,b,c){null==c&&(c=-1);null==b&&(b=0);null==this.__state.renderToTexture&&(this.__stage.context3D!=this||this.__stage.__renderer.__cleared?this.__cleared||this.clear(0, +0,0,0,1,0,1):this.__stage.__renderer.__clear());this.__flushGL();null!=this.__state.program&&this.__state.program.__flush();c=-1==c?a.__numIndices:3*c;this.__bindGLElementArrayBuffer(a.__id);this.gl.drawElements(this.gl.TRIANGLES,c,this.gl.UNSIGNED_SHORT,2*b)},present:function(){this.setRenderToBackBuffer();if(null!=this.__stage3D&&null!=this.__backBufferTexture){this.__cleared||this.clear(0,0,0,0,1,0,1);var a=this.__backBufferTexture;this.__backBufferTexture=this.__frontBufferTexture;this.__frontBufferTexture= +a;this.__state.__primaryGLFramebuffer=this.__backBufferTexture.__getGLFramebuffer(this.__state.backBufferEnableDepthAndStencil,this.__backBufferAntiAlias,0);this.__cleared=!1}this.__present=!0},setBlendFactors:function(a,b){this.setBlendFactorsSeparate(a,b,a,b)},setBlendFactorsSeparate:function(a,b,c,d){this.__state.blendSourceRGBFactor=a;this.__state.blendDestinationRGBFactor=b;this.__state.blendSourceAlphaFactor=c;this.__state.blendDestinationAlphaFactor=d;this.__setGLBlendEquation(this.gl.FUNC_ADD)}, +setColorMask:function(a,b,c,d){this.__state.colorMaskRed=a;this.__state.colorMaskGreen=b;this.__state.colorMaskBlue=c;this.__state.colorMaskAlpha=d},setCulling:function(a){this.__state.culling=a},setDepthTest:function(a,b){this.__state.depthMask=a;this.__state.depthCompareMode=b},setProgram:function(a){this.__state.program=a;this.__state.shader=null;if(null!=a)for(var b=0,c=a.__samplerStates.length;ba))if(null==b)this.gl.disableVertexAttribArray(a), +this.__bindGLArrayBuffer(null);else switch(this.__bindGLArrayBuffer(b.__id),this.gl.enableVertexAttribArray(a),c*=4,d){case 0:this.gl.vertexAttribPointer(a,4,this.gl.UNSIGNED_BYTE,!0,b.__stride,c);break;case 1:this.gl.vertexAttribPointer(a,1,this.gl.FLOAT,!1,b.__stride,c);break;case 2:this.gl.vertexAttribPointer(a,2,this.gl.FLOAT,!1,b.__stride,c);break;case 3:this.gl.vertexAttribPointer(a,3,this.gl.FLOAT,!1,b.__stride,c);break;case 4:this.gl.vertexAttribPointer(a,4,this.gl.FLOAT,!1,b.__stride,c); +break;default:throw new Bb;}},__bindGLArrayBuffer:function(a){this.__contextState.__currentGLArrayBuffer!=a&&(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,a),this.__contextState.__currentGLArrayBuffer=a)},__bindGLElementArrayBuffer:function(a){this.__contextState.__currentGLElementArrayBuffer!=a&&(this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,a),this.__contextState.__currentGLElementArrayBuffer=a)},__bindGLFramebuffer:function(a){this.__contextState.__currentGLFramebuffer!=a&&(this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, +a),this.__contextState.__currentGLFramebuffer=a)},__bindGLTexture2D:function(a){this.gl.bindTexture(this.gl.TEXTURE_2D,a);this.__contextState.__currentGLTexture2D=a},__bindGLTextureCubeMap:function(a){this.gl.bindTexture(this.gl.TEXTURE_CUBE_MAP,a);this.__contextState.__currentGLTextureCubeMap=a},__dispose:function(){this.driverInfo+=" (Disposed)";null!=this.__stage3D&&(this.__stage3D.__indexBuffer=null,this.__stage3D.__vertexBuffer=null,this.__stage3D=this.__stage3D.context3D=null);this.__positionScale= +this.__frontBufferTexture=this.__fragmentConstants=this.__renderStage3DProgram=this.__context=this.__backBufferTexture=null;this.__present=!1;this.__vertexConstants=this.__stage=this.__quadIndexBuffer=null},__drawTriangles:function(a,b){null==a&&(a=0);null==this.__state.renderToTexture&&(this.__stage.context3D!=this||this.__stage.__renderer.__cleared?this.__cleared||this.clear(0,0,0,0,1,0,1):this.__stage.__renderer.__clear());this.__flushGL();null!=this.__state.program&&this.__state.program.__flush(); +this.gl.drawArrays(this.gl.TRIANGLES,a,b)},__flushGL:function(){this.__flushGLProgram();this.__flushGLFramebuffer();this.__flushGLViewport();this.__flushGLBlend();if(this.__contextState.colorMaskRed!=this.__state.colorMaskRed||this.__contextState.colorMaskGreen!=this.__state.colorMaskGreen||this.__contextState.colorMaskBlue!=this.__state.colorMaskBlue||this.__contextState.colorMaskAlpha!=this.__state.colorMaskAlpha)this.gl.colorMask(this.__state.colorMaskRed,this.__state.colorMaskGreen,this.__state.colorMaskBlue, +this.__state.colorMaskAlpha),this.__contextState.colorMaskRed=this.__state.colorMaskRed,this.__contextState.colorMaskGreen=this.__state.colorMaskGreen,this.__contextState.colorMaskBlue=this.__state.colorMaskBlue,this.__contextState.colorMaskAlpha=this.__state.colorMaskAlpha;this.__flushGLCulling();this.__flushGLDepth();this.__flushGLScissor();this.__flushGLStencil();this.__flushGLTextures()},__flushGLBlend:function(){if(this.__contextState.blendDestinationRGBFactor!=this.__state.blendDestinationRGBFactor|| +this.__contextState.blendSourceRGBFactor!=this.__state.blendSourceRGBFactor||this.__contextState.blendDestinationAlphaFactor!=this.__state.blendDestinationAlphaFactor||this.__contextState.blendSourceAlphaFactor!=this.__state.blendSourceAlphaFactor)this.__setGLBlend(!0),this.__state.blendDestinationRGBFactor==this.__state.blendDestinationAlphaFactor&&this.__state.blendSourceRGBFactor==this.__state.blendSourceAlphaFactor?this.gl.blendFunc(this.__getGLBlend(this.__state.blendSourceRGBFactor),this.__getGLBlend(this.__state.blendDestinationRGBFactor)): +this.gl.blendFuncSeparate(this.__getGLBlend(this.__state.blendSourceRGBFactor),this.__getGLBlend(this.__state.blendDestinationRGBFactor),this.__getGLBlend(this.__state.blendSourceAlphaFactor),this.__getGLBlend(this.__state.blendDestinationAlphaFactor)),this.__contextState.blendDestinationRGBFactor=this.__state.blendDestinationRGBFactor,this.__contextState.blendSourceRGBFactor=this.__state.blendSourceRGBFactor,this.__contextState.blendDestinationAlphaFactor=this.__state.blendDestinationAlphaFactor, +this.__contextState.blendSourceAlphaFactor=this.__state.blendSourceAlphaFactor},__flushGLCulling:function(){if(this.__contextState.culling!=this.__state.culling){if(3==this.__state.culling)this.__setGLCullFace(!1);else switch(this.__setGLCullFace(!0),this.__state.culling){case 0:this.gl.cullFace(this.gl.BACK);break;case 1:this.gl.cullFace(this.gl.FRONT);break;case 2:this.gl.cullFace(this.gl.FRONT_AND_BACK);break;case 3:break;default:throw new Bb;}this.__contextState.culling=this.__state.culling}}, +__flushGLDepth:function(){var a=this.__state.depthMask&&(null!=this.__state.renderToTexture?this.__state.renderToTextureDepthStencil:this.__state.backBufferEnableDepthAndStencil);this.__contextState.depthMask!=a&&(this.gl.depthMask(a),this.__contextState.depthMask=a);if(this.__contextState.depthCompareMode!=this.__state.depthCompareMode){switch(this.__state.depthCompareMode){case 0:this.gl.depthFunc(this.gl.ALWAYS);break;case 1:this.gl.depthFunc(this.gl.EQUAL);break;case 2:this.gl.depthFunc(this.gl.GREATER); +break;case 3:this.gl.depthFunc(this.gl.GEQUAL);break;case 4:this.gl.depthFunc(this.gl.LESS);break;case 5:this.gl.depthFunc(this.gl.LEQUAL);break;case 6:this.gl.depthFunc(this.gl.NEVER);break;case 7:this.gl.depthFunc(this.gl.NOTEQUAL);break;default:throw new Bb;}this.__contextState.depthCompareMode=this.__state.depthCompareMode}},__flushGLFramebuffer:function(){if(null!=this.__state.renderToTexture){if(this.__contextState.renderToTexture!=this.__state.renderToTexture||this.__contextState.renderToTextureSurfaceSelector!= +this.__state.renderToTextureSurfaceSelector){var a=this.__state.renderToTexture.__getGLFramebuffer(this.__state.renderToTextureDepthStencil,this.__state.renderToTextureAntiAlias,this.__state.renderToTextureSurfaceSelector);this.__bindGLFramebuffer(a);this.__contextState.renderToTexture=this.__state.renderToTexture;this.__contextState.renderToTextureAntiAlias=this.__state.renderToTextureAntiAlias;this.__contextState.renderToTextureDepthStencil=this.__state.renderToTextureDepthStencil;this.__contextState.renderToTextureSurfaceSelector= +this.__state.renderToTextureSurfaceSelector}this.__setGLDepthTest(this.__state.renderToTextureDepthStencil);this.__setGLStencilTest(this.__state.renderToTextureDepthStencil);this.__setGLFrontFace(!0)}else{if(null==this.__stage&&0==this.backBufferWidth&&0==this.backBufferHeight)throw new Eb("Context3D backbuffer has not been configured");if(null!=this.__contextState.renderToTexture||this.__contextState.__currentGLFramebuffer!=this.__state.__primaryGLFramebuffer||this.__contextState.backBufferEnableDepthAndStencil!= +this.__state.backBufferEnableDepthAndStencil)this.__bindGLFramebuffer(this.__state.__primaryGLFramebuffer),this.__contextState.renderToTexture=null,this.__contextState.backBufferEnableDepthAndStencil=this.__state.backBufferEnableDepthAndStencil;this.__setGLDepthTest(this.__state.backBufferEnableDepthAndStencil);this.__setGLStencilTest(this.__state.backBufferEnableDepthAndStencil);this.__setGLFrontFace(this.__stage.context3D!=this)}},__flushGLProgram:function(){var a=this.__state.shader,b=this.__state.program; +this.__contextState.shader!=a&&(null!=this.__contextState.shader&&this.__contextState.shader.__disable(),null!=a&&a.__enable(),this.__contextState.shader=a);this.__contextState.program!=b&&(null!=this.__contextState.program&&this.__contextState.program.__disable(),null!=b&&b.__enable(),this.__contextState.program=b);null!=b&&0==b.__format&&(this.__positionScale[1]=this.__stage.context3D==this&&null==this.__state.renderToTexture?1:-1,b.__setPositionScale(this.__positionScale))},__flushGLScissor:function(){if(this.__state.scissorEnabled){this.__setGLScissorTest(!0); +this.__contextState.scissorEnabled=!0;var a=this.__state.scissorRectangle.x|0,b=this.__state.scissorRectangle.y|0,c=this.__state.scissorRectangle.width|0,d=this.__state.scissorRectangle.height|0;this.__backBufferWantsBestResolution&&(a=this.__state.scissorRectangle.x*this.__stage.window.__scale|0,b=this.__state.scissorRectangle.y*this.__stage.window.__scale|0,c=this.__state.scissorRectangle.width*this.__stage.window.__scale|0,d=this.__state.scissorRectangle.height*this.__stage.window.__scale|0);null== +this.__state.renderToTexture&&null==this.__stage3D&&(b=(this.__stage.window.__height*this.__stage.window.__scale|0)-d-b);if(this.__contextState.scissorRectangle.x!=a||this.__contextState.scissorRectangle.y!=b||this.__contextState.scissorRectangle.width!=c||this.__contextState.scissorRectangle.height!=d)this.gl.scissor(a,b,c,d),this.__contextState.scissorRectangle.setTo(a,b,c,d)}else this.__contextState.scissorEnabled!=this.__state.scissorEnabled&&(this.__setGLScissorTest(!1),this.__contextState.scissorEnabled= +!1)},__flushGLStencil:function(){if(this.__contextState.stencilTriangleFace!=this.__state.stencilTriangleFace||this.__contextState.stencilPass!=this.__state.stencilPass||this.__contextState.stencilDepthFail!=this.__state.stencilDepthFail||this.__contextState.stencilFail!=this.__state.stencilFail)this.gl.stencilOpSeparate(this.__getGLTriangleFace(this.__state.stencilTriangleFace),this.__getGLStencilAction(this.__state.stencilFail),this.__getGLStencilAction(this.__state.stencilDepthFail),this.__getGLStencilAction(this.__state.stencilPass)), +this.__contextState.stencilTriangleFace=this.__state.stencilTriangleFace,this.__contextState.stencilPass=this.__state.stencilPass,this.__contextState.stencilDepthFail=this.__state.stencilDepthFail,this.__contextState.stencilFail=this.__state.stencilFail;this.__contextState.stencilWriteMask!=this.__state.stencilWriteMask&&(this.gl.stencilMask(this.__state.stencilWriteMask),this.__contextState.stencilWriteMask=this.__state.stencilWriteMask);if(this.__contextState.stencilCompareMode!=this.__state.stencilCompareMode|| +this.__contextState.stencilReferenceValue!=this.__state.stencilReferenceValue||this.__contextState.stencilReadMask!=this.__state.stencilReadMask)this.gl.stencilFunc(this.__getGLCompareMode(this.__state.stencilCompareMode),this.__state.stencilReferenceValue,this.__state.stencilReadMask),this.__contextState.stencilCompareMode=this.__state.stencilCompareMode,this.__contextState.stencilReferenceValue=this.__state.stencilReferenceValue,this.__contextState.stencilReadMask=this.__state.stencilReadMask}, +__flushGLTextures:function(){for(var a=0,b,c,d=0,f=this.__state.textures.length;d\nmov oc, ft1");this.__renderStage3DProgram=this.createProgram(); +this.__renderStage3DProgram.upload(c.agalcode,d.agalcode)}this.setProgram(this.__renderStage3DProgram);this.setBlendFactors(2,9);this.setColorMask(!0,!0,!0,!0);this.setCulling(3);this.setDepthTest(!1,0);this.setStencilActions();this.setStencilReferenceValue(0,0,0);this.setScissorRectangle(null);this.setTextureAt(0,b.__frontBufferTexture);this.setVertexBufferAt(0,a.__vertexBuffer,0,3);this.setVertexBufferAt(1,a.__vertexBuffer,3,2);this.setProgramConstantsFromMatrix(1,0,a.__renderTransform,!0);this.drawTriangles(a.__indexBuffer); +this.__present=!0}},__setGLBlend:function(a){this.__contextState.__enableGLBlend!=a&&(a?this.gl.enable(this.gl.BLEND):this.gl.disable(this.gl.BLEND),this.__contextState.__enableGLBlend=a)},__setGLBlendEquation:function(a){this.__contextState.__glBlendEquation!=a&&(this.gl.blendEquation(a),this.__contextState.__glBlendEquation=a)},__setGLCullFace:function(a){this.__contextState.__enableGLCullFace!=a&&(a?this.gl.enable(this.gl.CULL_FACE):this.gl.disable(this.gl.CULL_FACE),this.__contextState.__enableGLCullFace= +a)},__setGLDepthTest:function(a){this.__contextState.__enableGLDepthTest!=a&&(a?this.gl.enable(this.gl.DEPTH_TEST):this.gl.disable(this.gl.DEPTH_TEST),this.__contextState.__enableGLDepthTest=a)},__setGLFrontFace:function(a){this.__contextState.__frontFaceGLCCW!=a&&(this.gl.frontFace(a?this.gl.CCW:this.gl.CW),this.__contextState.__frontFaceGLCCW=a)},__setGLScissorTest:function(a){this.__contextState.__enableGLScissorTest!=a&&(a?this.gl.enable(this.gl.SCISSOR_TEST):this.gl.disable(this.gl.SCISSOR_TEST), +this.__contextState.__enableGLScissorTest=a)},__setGLStencilTest:function(a){this.__contextState.__enableGLStencilTest!=a&&(a?this.gl.enable(this.gl.STENCIL_TEST):this.gl.disable(this.gl.STENCIL_TEST),this.__contextState.__enableGLStencilTest=a)},__class__:Ka});var qh={fromString:function(a){switch(a){case "dynamicDraw":return 0;case "staticDraw":return 1;default:return null}},toString:function(a){switch(a){case 0:return"dynamicDraw";case 1:return"staticDraw";default:return null}}},rh={toString:function(a){switch(a){case 0:return"fragment"; +case 1:return"vertex";default:return null}}},Fh={toString:function(a){switch(a){case 0:return"bgrPacked565";case 1:return"bgra";case 2:return"bgraPacked4444";case 3:return"compressed";case 4:return"compressedAlpha";case 5:return"rgbaHalfFloat";default:return null}}},Mg=function(a,b,c){this.__context=a;this.__numIndices=b;a=this.__context.gl;this.__id=a.createBuffer();this.__usage=0==c?a.DYNAMIC_DRAW:a.STATIC_DRAW};Mg.__name__="openfl.display3D.IndexBuffer3D";Mg.prototype={uploadFromTypedArray:function(a, +b){null!=a&&(b=this.__context.gl,this.__context.__bindGLElementArrayBuffer(this.__id),Nb.bufferData(b,b.ELEMENT_ARRAY_BUFFER,a,this.__usage))},uploadFromVector:function(a,b,c){if(null!=a){var d=b+c,f=this.__tempUInt16Array;if(null==this.__tempUInt16Array||this.__tempUInt16Array.lengthb;){var f=b++;d="va"+f;-1!=a.indexOf(" "+d)&&c.bindAttribLocation(this.__glProgram,f,d)}else for(b=0,a=this.__glslAttribNames;bb&&(b=d.regIndex+d.regCount)}this.__registerLookup=xa.toObjectVector(null,b);a=0;for(c=this.__uniforms;athis.__registerLookup.get_length()&&(b=this.__registerLookup.get_length());a>>24&15;c.mask=a>>>16&15;c.n=a&65535;return c};Be.prototype={getWriteMask:function(){var a=".";0!=(this.mask&1)&&(a+="x"); +0!=(this.mask&2)&&(a+="y");0!=(this.mask&4)&&(a+="z");0!=(this.mask&8)&&(a+="w");return a},toGLSL:function(a){null==a&&(a=!0);var b=3==this.type?this.programType==Sc.VERTEX?"gl_Position":"gl_FragColor":dc.prefixFromType(this.type,this.programType)+this.n;a&&15!=this.mask&&(b+=this.getWriteMask());return b},__class__:Be};var Sc=w["openfl.display3D._internal._AGALConverter.ProgramType"]={__ename__:!0,__constructs__:null,VERTEX:{_hx_name:"VERTEX",_hx_index:0,__enum__:"openfl.display3D._internal._AGALConverter.ProgramType", +toString:g},FRAGMENT:{_hx_name:"FRAGMENT",_hx_index:1,__enum__:"openfl.display3D._internal._AGALConverter.ProgramType",toString:g}};Sc.__constructs__=[Sc.VERTEX,Sc.FRAGMENT];var cg=function(){this.mEntries=[]};cg.__name__="openfl.display3D._internal.RegisterMap";cg.prototype={add:function(a,b,c,d){for(var f=0,k=this.mEntries;fb?new Fa(a.high>>b,a.high<<32-b|a.low>>> +b):new Fa(a.high>>31,a.high>>b-32);b=b.low&15;c.f=b;b=56;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&15;c.m=b;b=52;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&15;c.w=b;b=48;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&15;c.s=b;b=44;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32- +b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&15;c.d=b;b=40;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&15;c.t=b;b=32;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&15;c.type=b;b=16;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&255;c.b=b;b=a.low&65535;c.n=b;return c};Ce.prototype={toGLSL:function(){return dc.prefixFromType(this.type, +this.programType)+this.n},toSamplerState:function(){switch(this.f){case 0:var a=5;break;case 1:a=4;break;default:throw new Bb;}switch(this.m){case 0:var b=2;break;case 1:b=1;break;case 2:b=0;break;default:throw new Bb;}switch(this.w){case 0:var c=0;break;case 1:c=2;break;default:throw new Bb;}return new de(c,a,b,(this.b<<24>>24)/8,4==(this.s&4),1==(this.s&1),2==this.t)},__class__:Ce};var ee=function(){};ee.__name__="openfl.display3D._internal._AGALConverter.SourceRegister";ee.parse=function(a,b,c){var d= +new ee;d.programType=b;b=63;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&1;d.d=b;b=48;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&3;d.q=b;b=40;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&15;d.itype=b;b=32;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>> +31,a.high>>b-32);b=b.low&15;d.type=b;b=24;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&255;d.s=b;b=16;b=0==b?new Fa(a.high,a.low):32>b?new Fa(a.high>>b,a.high<<32-b|a.low>>>b):new Fa(a.high>>31,a.high>>b-32);b=b.low&255;d.o=b;b=a.low&65535;d.n=b;d.sourceMask=c;return d};ee.prototype={toGLSL:function(a,b){null==b&&(b=0);null==a&&(a=!0);if(3==this.type)return this.programType==Sc.VERTEX?"gl_Position":"gl_FragColor";var c=228==this.s&& +15==this.sourceMask,d="";if(5!=this.type&&!c){if(0!=(this.sourceMask&1))switch(this.s&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z";break;case 3:d+="w"}if(0!=(this.sourceMask&2))switch(this.s>>2&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z";break;case 3:d+="w"}if(0!=(this.sourceMask&4))switch(this.s>>4&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z";break;case 3:d+="w"}if(0!=(this.sourceMask&8))switch(this.s>>6&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z"; +break;case 3:d+="w"}}c=dc.prefixFromType(this.type,this.programType);if(0==this.d)c+=this.n+b;else{c+=this.o;var f="";switch(this.q){case 0:f="x";break;case 1:f="y";break;case 2:f="z";break;case 3:f="w"}f=dc.prefixFromType(this.itype,this.programType)+this.n+"."+f;c+="[ int("+f+") +"+b+"]"}a&&""!=d&&(c+="."+d);return c},__class__:ee};var jf=function(){this.backBufferEnableDepthAndStencil=!1;this.blendDestinationAlphaFactor=9;this.blendSourceAlphaFactor=2;this.blendDestinationRGBFactor=9;this.blendSourceRGBFactor= +2;this.colorMaskAlpha=this.colorMaskBlue=this.colorMaskGreen=this.colorMaskRed=!0;this.culling=3;this.depthCompareMode=4;this.depthMask=!0;this.samplerStates=[];this.scissorRectangle=new ca;this.stencilCompareMode=0;this.stencilPass=this.stencilFail=this.stencilDepthFail=5;this.stencilReadMask=255;this.stencilReferenceValue=0;this.stencilTriangleFace=2;this.stencilWriteMask=255;this.textures=[];this.__frontFaceGLCCW=!0;this.__glBlendEquation=32774};jf.__name__="openfl.display3D._internal.Context3DState"; +jf.prototype={__class__:jf};var Za=function(a){B.call(this);this.__context=a;var b=this.__context.gl;this.__textureID=b.createTexture();this.__textureContext=this.__context.__context;if(null==Za.__supportsBGRA){Za.__textureInternalFormat=b.RGBA;Za.__supportsBGRA=!1;Za.__textureFormat=b.RGBA;Za.__compressedFormats=new Xb;Za.__compressedFormatsAlpha=new Xb;a=b.getExtension("WEBGL_compressed_texture_s3tc");var c=b.getExtension("WEBGL_compressed_texture_etc1");b=b.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"); +if(null!=a){var d=a.COMPRESSED_RGBA_S3TC_DXT1_EXT;Za.__compressedFormats.h[0]=d;d=a.COMPRESSED_RGBA_S3TC_DXT5_EXT;Za.__compressedFormatsAlpha.h[0]=d}null!=c&&(d=c.COMPRESSED_RGB_ETC1_WEBGL,Za.__compressedFormats.h[2]=d,d=c.COMPRESSED_RGB_ETC1_WEBGL,Za.__compressedFormatsAlpha.h[2]=d);null!=b&&(d=b.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,Za.__compressedFormats.h[1]=d,d=b.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG,Za.__compressedFormatsAlpha.h[1]=d)}this.__internalFormat=Za.__textureInternalFormat;this.__format=Za.__textureFormat}; +Za.__name__="openfl.display3D.textures.TextureBase";Za.__super__=B;Za.prototype=u(B.prototype,{dispose:function(){var a=this.__context.gl;null!=this.__alphaTexture&&(this.__alphaTexture.dispose(),this.__alphaTexture=null);null!=this.__textureID&&(a.deleteTexture(this.__textureID),this.__textureID=null);null!=this.__glFramebuffer&&(a.deleteFramebuffer(this.__glFramebuffer),this.__glFramebuffer=null);null!=this.__glDepthRenderbuffer&&(a.deleteRenderbuffer(this.__glDepthRenderbuffer),this.__glDepthRenderbuffer= +null);null!=this.__glStencilRenderbuffer&&(a.deleteRenderbuffer(this.__glStencilRenderbuffer),this.__glStencilRenderbuffer=null)},__getGLFramebuffer:function(a,b,c){b=this.__context.gl;null==this.__glFramebuffer&&(this.__glFramebuffer=b.createFramebuffer(),this.__context.__bindGLFramebuffer(this.__glFramebuffer),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.__textureID,0),this.__context.__enableErrorChecking&&(c=b.checkFramebufferStatus(b.FRAMEBUFFER),c!=b.FRAMEBUFFER_COMPLETE&& +Da.warn("Error: Context3D.setRenderToTexture status:"+c+" width:"+this.__width+" height:"+this.__height,{fileName:"openfl/display3D/textures/TextureBase.hx",lineNumber:201,className:"openfl.display3D.textures.TextureBase",methodName:"__getGLFramebuffer"})));a&&null==this.__glDepthRenderbuffer&&(this.__context.__bindGLFramebuffer(this.__glFramebuffer),0!=Ka.__glDepthStencil?(this.__glStencilRenderbuffer=this.__glDepthRenderbuffer=b.createRenderbuffer(),b.bindRenderbuffer(b.RENDERBUFFER,this.__glDepthRenderbuffer), +b.renderbufferStorage(b.RENDERBUFFER,Ka.__glDepthStencil,this.__width,this.__height),b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_STENCIL_ATTACHMENT,b.RENDERBUFFER,this.__glDepthRenderbuffer)):(this.__glDepthRenderbuffer=b.createRenderbuffer(),this.__glStencilRenderbuffer=b.createRenderbuffer(),b.bindRenderbuffer(b.RENDERBUFFER,this.__glDepthRenderbuffer),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.__width,this.__height),b.bindRenderbuffer(b.RENDERBUFFER,this.__glStencilRenderbuffer), +b.renderbufferStorage(b.RENDERBUFFER,b.STENCIL_INDEX8,this.__width,this.__height),b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.__glDepthRenderbuffer),b.framebufferRenderbuffer(b.FRAMEBUFFER,b.STENCIL_ATTACHMENT,b.RENDERBUFFER,this.__glStencilRenderbuffer)),this.__context.__enableErrorChecking&&(c=b.checkFramebufferStatus(b.FRAMEBUFFER),c!=b.FRAMEBUFFER_COMPLETE&&Da.warn("Error: Context3D.setRenderToTexture status:"+c+" width:"+this.__width+" height:"+this.__height, +{fileName:"openfl/display3D/textures/TextureBase.hx",lineNumber:239,className:"openfl.display3D.textures.TextureBase",methodName:"__getGLFramebuffer"})),b.bindRenderbuffer(b.RENDERBUFFER,null));return this.__glFramebuffer},__getTexture:function(){return this.__textureID},__setSamplerState:function(a){if(!a.equals(this.__samplerState)){var b=this.__context.gl;this.__textureTarget==this.__context.gl.TEXTURE_CUBE_MAP?this.__context.__bindGLTextureCubeMap(this.__textureID):this.__context.__bindGLTexture2D(this.__textureID); +var c;switch(a.wrap){case 0:var d=c=b.CLAMP_TO_EDGE;break;case 1:c=b.CLAMP_TO_EDGE;d=b.REPEAT;break;case 2:d=c=b.REPEAT;break;case 3:c=b.REPEAT;d=b.CLAMP_TO_EDGE;break;default:throw new Eb("wrap bad enum");}var f=5==a.filter?b.NEAREST:b.LINEAR;switch(a.mipfilter){case 0:var k=5==a.filter?b.NEAREST_MIPMAP_LINEAR:b.LINEAR_MIPMAP_LINEAR;break;case 1:k=5==a.filter?b.NEAREST_MIPMAP_NEAREST:b.LINEAR_MIPMAP_NEAREST;break;case 2:k=5==a.filter?b.NEAREST:b.LINEAR;break;default:throw new Eb("mipfiter bad enum"); +}b.texParameteri(this.__textureTarget,b.TEXTURE_MIN_FILTER,k);b.texParameteri(this.__textureTarget,b.TEXTURE_MAG_FILTER,f);b.texParameteri(this.__textureTarget,b.TEXTURE_WRAP_S,c);b.texParameteri(this.__textureTarget,b.TEXTURE_WRAP_T,d);null==this.__samplerState&&(this.__samplerState=a.clone());this.__samplerState.copyFrom(a);return!0}return!1},__uploadFromImage:function(a){var b=this.__context.gl,c;if(this.__textureTarget==b.TEXTURE_2D){if(1==a.buffer.bitsPerPixel)var d=c=b.ALPHA;else c=Za.__textureInternalFormat, +d=Za.__textureFormat;this.__context.__bindGLTexture2D(this.__textureID);a.type==$b.DATA||a.get_premultiplied()?!a.get_premultiplied()&&a.get_transparent()&&b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1):b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1);a.type==$b.DATA?Nb.texImage2D(b,b.TEXTURE_2D,0,c,a.buffer.width,a.buffer.height,0,d,b.UNSIGNED_BYTE,a.get_data()):Nb.texImage2D(b,b.TEXTURE_2D,0,c,d,b.UNSIGNED_BYTE,a.get_src());this.__context.__bindGLTexture2D(null)}},__class__:Za});var ag=function(a, +b,c,d,f){Za.call(this,a);this.__width=this.__height=this.__size=b;this.__optimizeForRenderToTexture=d;this.__streamingLevels=f;this.__textureTarget=this.__context.gl.TEXTURE_CUBE_MAP;this.__uploadedSides=0};ag.__name__="openfl.display3D.textures.CubeTexture";ag.__super__=Za;ag.prototype=u(Za.prototype,{__getGLFramebuffer:function(a,b,c){var d=this.__context.gl;null==this.__glFramebuffer&&(this.__glFramebuffer=d.createFramebuffer(),this.__framebufferSurface=-1);if(this.__framebufferSurface!=c&&(this.__framebufferSurface= +c,this.__context.__bindGLFramebuffer(this.__glFramebuffer),d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_CUBE_MAP_POSITIVE_X+c,this.__textureID,0),this.__context.__enableErrorChecking)){var f=d.checkFramebufferStatus(d.FRAMEBUFFER);f!=d.FRAMEBUFFER_COMPLETE&&Da.error("Error: Context3D.setRenderToTexture status:"+f+" width:"+this.__width+" height:"+this.__height,{fileName:"openfl/display3D/textures/CubeTexture.hx",lineNumber:279,className:"openfl.display3D.textures.CubeTexture", +methodName:"__getGLFramebuffer"})}return Za.prototype.__getGLFramebuffer.call(this,a,b,c)},__setSamplerState:function(a){if(Za.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;2==a.mipfilter||this.__samplerState.mipmapGenerated||(b.generateMipmap(b.TEXTURE_CUBE_MAP),this.__samplerState.mipmapGenerated=!0);if(0!=Ka.__glMaxTextureMaxAnisotropy){switch(a.filter){case 0:a=16;break;case 1:a=2;break;case 2:a=4;break;case 3:a=8;break;default:a=1}a>Ka.__glMaxTextureMaxAnisotropy&&(a=Ka.__glMaxTextureMaxAnisotropy); +b.texParameterf(b.TEXTURE_CUBE_MAP,Ka.__glTextureMaxAnisotropy,a)}return!0}return!1},__class__:ag});var kf=function(a,b,c,d,f){Za.call(this,a);this.__width=b;this.__height=c;this.__optimizeForRenderToTexture=f;this.__textureTarget=this.__context.gl.TEXTURE_2D;this.uploadFromTypedArray(null);f&&this.__getGLFramebuffer(!0,0,0)};kf.__name__="openfl.display3D.textures.RectangleTexture";kf.__super__=Za;kf.prototype=u(Za.prototype,{uploadFromTypedArray:function(a){var b=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID); +Nb.texImage2D(b,this.__textureTarget,0,this.__internalFormat,this.__width,this.__height,0,this.__format,b.UNSIGNED_BYTE,a);this.__context.__bindGLTexture2D(null)},__setSamplerState:function(a){if(Za.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;if(0!=Ka.__glMaxTextureMaxAnisotropy){switch(a.filter){case 0:a=16;break;case 1:a=2;break;case 2:a=4;break;case 3:a=8;break;default:a=1}a>Ka.__glMaxTextureMaxAnisotropy&&(a=Ka.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_2D,Ka.__glTextureMaxAnisotropy, +a)}return!0}return!1},__class__:kf});var $f=function(a,b,c,d,f,k){Za.call(this,a);this.__width=b;this.__height=c;this.__optimizeForRenderToTexture=f;this.__streamingLevels=k;a=this.__context.gl;this.__textureTarget=a.TEXTURE_2D;this.__context.__bindGLTexture2D(this.__textureID);Nb.texImage2D(a,this.__textureTarget,0,this.__internalFormat,this.__width,this.__height,0,this.__format,a.UNSIGNED_BYTE,null);this.__context.__bindGLTexture2D(null);f&&this.__getGLFramebuffer(!0,0,0)};$f.__name__="openfl.display3D.textures.Texture"; +$f.__super__=Za;$f.prototype=u(Za.prototype,{__setSamplerState:function(a){if(Za.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;2==a.mipfilter||this.__samplerState.mipmapGenerated||(b.generateMipmap(b.TEXTURE_2D),this.__samplerState.mipmapGenerated=!0);if(0!=Ka.__glMaxTextureMaxAnisotropy){switch(a.filter){case 0:a=16;break;case 1:a=2;break;case 2:a=4;break;case 3:a=8;break;default:a=1}a>Ka.__glMaxTextureMaxAnisotropy&&(a=Ka.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_2D, +Ka.__glTextureMaxAnisotropy,a)}return!0}return!1},__class__:$f});var Qg=function(a){Za.call(this,a);this.__textureTarget=this.__context.gl.TEXTURE_2D};Qg.__name__="openfl.display3D.textures.VideoTexture";Qg.__super__=Za;Qg.prototype=u(Za.prototype,{dispose:function(){null!=this.__netStream&&null!=this.__netStream.__video&&this.__netStream.__video.removeEventListener("timeupdate",h(this,this.__onTimeUpdate));Za.prototype.dispose.call(this)},__onTimeUpdate:function(a){null!=this.__netStream&&this.__netStream.__video.currentTime!= +this.__cacheTime&&2<=this.__netStream.__video.readyState&&this.__textureReady()},__getTexture:function(){if(this.__netStream.__video.currentTime!=this.__cacheTime&&2<=this.__netStream.__video.readyState){var a=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);Nb.texImage2D(a,a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.__netStream.__video);this.__cacheTime=this.__netStream.__video.currentTime}return this.__textureID},__textureReady:function(){this.videoWidth=this.__netStream.__video.videoWidth; +this.videoHeight=this.__netStream.__video.videoHeight;var a=new ea("textureReady");this.dispatchEvent(a)},__class__:Qg});var Eb=function(a,b){null==b&&(b=0);null==a&&(a="");Ja.call(this,a);this.errorID=b;this.name="Error";this.__skipStack++};Eb.__name__="openfl.errors.Error";Eb.__super__=Ja;Eb.prototype=u(Ja.prototype,{toString:function(){return null!=this.get_message()?this.get_message():"Error"},__class__:Eb});var Kb=function(a){null==a&&(a="");Eb.call(this,a);this.name="ArgumentError";this.__skipStack++}; +Kb.__name__="openfl.errors.ArgumentError";Kb.__super__=Eb;Kb.prototype=u(Eb.prototype,{__class__:Kb});var De=function(a){null==a&&(a="");Eb.call(this,a);this.name="IOError";this.__skipStack++};De.__name__="openfl.errors.IOError";De.__super__=Eb;De.prototype=u(Eb.prototype,{__class__:De});var mf=function(a,b){De.call(this,"End of file was encountered");this.name="EOFError";this.errorID=2030;this.__skipStack++};mf.__name__="openfl.errors.EOFError";mf.__super__=De;mf.prototype=u(De.prototype,{__class__:mf}); +var Bb=function(a){null==a&&(a="");Eb.call(this,a,0);this.name="IllegalOperationError";this.__skipStack++};Bb.__name__="openfl.errors.IllegalOperationError";Bb.__super__=Eb;Bb.prototype=u(Eb.prototype,{__class__:Bb});var uf=function(a){null==a&&(a="");Eb.call(this,a,0);this.name="RangeError";this.__skipStack++};uf.__name__="openfl.errors.RangeError";uf.__super__=Eb;uf.prototype=u(Eb.prototype,{__class__:uf});var Id=function(a){null==a&&(a="");Eb.call(this,a,0);this.name="TypeError";this.__skipStack++}; +Id.__name__="openfl.errors.TypeError";Id.__super__=Eb;Id.prototype=u(Eb.prototype,{__class__:Id});var Ee=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!1);null==b&&(b=!1);ea.call(this,a,b,c);this.activating=d};Ee.__name__="openfl.events.ActivityEvent";Ee.__super__=ea;Ee.prototype=u(ea.prototype,{__class__:Ee});var $c=function(a,b,c,d){null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);ea.call(this,a,b,c);this.text=d};$c.__name__="openfl.events.TextEvent";$c.__super__=ea;$c.prototype=u(ea.prototype,{__class__:$c}); +var Dc=function(a,b,c,d,f){null==f&&(f=0);null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);$c.call(this,a,b,c,d);this.errorID=f};Dc.__name__="openfl.events.ErrorEvent";Dc.__super__=$c;Dc.prototype=u($c.prototype,{__class__:Dc});var Ke=function(a){this.active=!1;this.reset(a)};Ke.__name__="openfl.events._EventDispatcher.DispatchIterator";Ke.prototype={copy:function(){this.isCopy||(this.list=this.list.slice(),this.isCopy=!0)},hasNext:function(){return this.index=a)return this.tempBuffer=new Float32Array(2*a),a;throw new Eb("To be consistent with flash the listener function registered to SampleDataEvent has to provide 2048, 4096 or 8192 samples if targeting HTML5.");}return 0}, +getSamples:function(a){this.data.position=0;this.tempBuffer=uh.fromBytes(Ad.toBytes(this.data));this.leftChannel=a.outputBuffer.getChannelData(0);this.rightChannel=a.outputBuffer.getChannelData(1);for(var b=a=0,c=Pa.toFloat(Ad.get_length(this.data))/Pa.toFloat(2)|0;bb&&(b=-1);1a||a>this.__text.length-1)return null;var b=new ca;return this.__getCharBoundaries(a,b)?b:null},getLineIndexOfChar:function(a){if(0>a||a>this.__text.length)return-1;this.__updateLayout();for(var b=this.__textEngine.layoutGroups.iterator();b.hasNext();){var c=b.next();if(c.startIndex<=a&&c.endIndex>=a)return c.lineIndex}return-1},getLineLength:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return 0;for(var b=-1,c=-1,d=this.__textEngine.layoutGroups.iterator();d.hasNext();){var f= +d.next();if(f.lineIndex==a)-1==b&&(b=f.startIndex);else if(f.lineIndex==a+1){c=f.startIndex;break}}-1==c&&(c=this.__text.length);return c-b},getLineOffset:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return-1;for(var b=this.__textEngine.layoutGroups.iterator();b.hasNext();){var c=b.next();if(c.lineIndex==a)return c.startIndex}return 0},replaceSelectedText:function(a){this.__replaceSelectedText(a,!1)},replaceText:function(a,b,c){this.__replaceText(a,b,c,!1)},setSelection:function(a, +b){this.__selectionIndex=a;this.__caretIndex=b;this.__updateScrollV();this.__updateScrollH();null!=this.stage&&this.stage.get_focus()==this&&(this.__stopCursorTimer(),this.__startCursorTimer())},__setStageReference:function(a){this.__stopTextInput();S.prototype.__setStageReference.call(this,a)},__allowMouseFocus:function(){return this.mouseEnabled},__caretBeginningOfLine:function(){this.__caretIndex=this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex))},__caretBeginningOfNextLine:function(){var a= +this.getLineIndexOfChar(this.__caretIndex);this.__caretIndex=aa||a>this.__text.length-1)return!1;this.__updateLayout();for(var c=this.__textEngine.layoutGroups.iterator();c.hasNext();){var d= +c.next();if(a>=d.startIndex&&aa||a>this.__text.length||0>b||b>this.__textEngine.numLines-1)return-1;for(var c=null,d=null,f=this.__textEngine.layoutGroups.iterator();f.hasNext();){var k=f.next();if(a>=k.startIndex&&a<=k.endIndex){c=k.offsetX;for(var p= +0,g=a-k.startIndex;pthis.__textEngine.textHeight&&(b=this.__textEngine.textHeight);var p=!0;d=0;for(f=this.__textEngine.layoutGroups.get_length();d=g.offsetY&&b<=g.offsetY+g.height||!c&& +null==k)if(a>=g.offsetX&&a<=g.offsetX+g.width||!c&&(null==k||k.lineIndex!=g.lineIndex))return g}return null},__getPosition:function(a,b){b=this.__getGroup(a,b);if(null==b)return this.__text.length;for(var c=0,d=0,f=b.positions.length;d/\\|-=+*&^%$#@~`'\"";b=this.__text.charAt(a);if(this.__specialSelectionInitialIndex<=a)for(;-1==c.indexOf(b)&&a/\\|-=+*&^%$#@~`'\"";var c=this.__text.charAt(a);if(a<=this.__caretIndex){for(;-1==b.indexOf(c)&&0this.__selectionIndex?this.__caretIndex:this.__selectionIndex;if(!(c==d&&0this.__text.length&&(c=this.__text.length);d>this.__text.length&&(d=this.__text.length);if(dc&&(c=0);this.__replaceText(c,d,a,b)}}},__replaceText:function(a,b,c,d){if(!(ba||b>this.__text.length||null==c)){d&&(c=this.__textEngine.restrictText(c),0=d?c="":d=a&&(k.start>=a?(k.start+=d,k.end+=d):k.start=b&&(k.end+=d));else if(k.end>a)if(k.start>b)k.start+=d,k.end+=d;else if(k.start<=a&&k.end>b)k.end+=d;else if(k.start>=a&&k.end<=b){k=this.__textEngine.textFormatRanges;k.__tempIndex=f--;for(var p=0,g=[];pb&&k.start>a&&k.start<=b?(k.start=a,k.end+= +d):k.starta&&k.end<=b&&(k.end=a);++f}0==this.__textEngine.textFormatRanges.get_length()?this.__textEngine.textFormatRanges.push(new Uc(this.get_defaultTextFormat().clone(),0,c.length)):a==b&&0this.__caretIndex&&(this.__selectionIndex=this.__caretIndex=this.__text.length);(W.__supportDOM?this.__renderedOnCanvasWhileOnDOM:1)&&this.__enableInput()},__stopCursorTimer:function(){null!=this.__cursorTimer&&(this.__cursorTimer.stop(),this.__cursorTimer= +null);this.__showCursor&&(this.__showCursor=!1,this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()))},__stopTextInput:function(){(W.__supportDOM?this.__renderedOnCanvasWhileOnDOM:1)&&this.__disableInput()},__updateLayout:function(){if(this.__layoutDirty){var a=this.__textEngine.width;this.__textEngine.update();if(2!=this.__textEngine.autoSize){if(this.__textEngine.width!=a)switch(this.__textEngine.autoSize){case 0:this.set_x(this.get_x()+(a-this.__textEngine.width)/ +2);break;case 3:this.set_x(this.get_x()+(a-this.__textEngine.width))}this.__textEngine.getBounds()}this.__layoutDirty=!1;this.setSelection(this.__selectionIndex,this.__caretIndex)}},__updateMouseDrag:function(){if(null!=this.stage){var a=this.getBounds(this);this.get_mouseX()>a.width-1?this.set_scrollH(this.get_scrollH()+(Math.max(Math.min(.1*(this.get_mouseX()-a.width),10),1)|0)):1>this.get_mouseX()&&this.set_scrollH(this.get_scrollH()-(Math.max(Math.min(-.1*this.get_mouseX(),10),1)|0));this.__mouseScrollVCounter++; +this.__mouseScrollVCounter>this.stage.get_frameRate()/10&&(this.get_mouseY()>a.height-2?this.set_scrollV(Math.min(this.get_scrollV()+Math.max(Math.min(.03*(this.get_mouseY()-a.height),5),1),this.get_maxScrollV())|0):2>this.get_mouseY()&&this.set_scrollV(this.get_scrollV()-(Math.max(Math.min(-.03*this.get_mouseY(),5),1)|0)),this.__mouseScrollVCounter=0);this.stage_onMouseMove(null)}},__updateScrollH:function(){this.__updateLayout();var a=this.getBounds(this);if(this.get_textWidth()<=a.width-4)this.set_scrollH(0); +else{var b=this.get_scrollH();if(0==this.__caretIndex||this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex))==this.__caretIndex)b=0;else{var c=ca.__pool.get(),d=!1;this.__caretIndexb+a.width-4;)b+=24;ca.__pool.release(c)}0c&&this.set_scrollH(Math.ceil(c-a.width+4)));0>b?this.set_scrollH(0):b>this.get_maxScrollH()?this.set_scrollH(this.get_maxScrollH()):this.set_scrollH(b)}},__updateScrollV:function(){this.__updateLayout();if(this.get_textHeight()<=this.get_height()-4)this.set_scrollV(1);else{var a=this.getLineIndexOfChar(this.__caretIndex);-1==a&&0this.get_bottomScrollV()){var b= +0;for(a>=this.__textEngine.lineHeights.get_length()&&(a=this.__textEngine.lineHeights.get_length()-1);0<=a;){b+=this.__textEngine.lineHeights.get(a);if(b>this.get_height()-4){a+=0>b-this.get_height()?1:2;break}--a}this.set_scrollV(a)}else this.set_scrollV(this.get_scrollV())}},__updateText:function(a){W.__supportDOM&&this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=this.__text!=a);this.__textEngine.set_text(a);this.__text=this.__textEngine.text;null!=this.stage&&this.stage.get_focus()== +this?(this.__text.lengththis.__textEngine.maxScrollH&&(a=this.__textEngine.maxScrollH);0>a&&(a=0);a!=this.__textEngine.scrollH&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.scrollH=a,this.dispatchEvent(new ea("scroll")));return this.__textEngine.scrollH}, +get_scrollV:function(){return this.__textEngine.get_scrollV()},set_scrollV:function(a){this.__updateLayout();a>this.__textEngine.get_maxScrollV()&&(a=this.__textEngine.get_maxScrollV());1>a&&(a=1);if(a!=this.__textEngine.get_scrollV()||0==this.__textEngine.get_scrollV())this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.set_scrollV(a),this.dispatchEvent(new ea("scroll"));return this.__textEngine.get_scrollV()},get_selectable:function(){return this.__textEngine.selectable}, +set_selectable:function(a){a!=this.__textEngine.selectable&&1==this.get_type()&&(null!=this.stage&&this.stage.get_focus()==this?this.__startTextInput():a||this.__stopTextInput());return this.__textEngine.selectable=a},get_selectionBeginIndex:function(){return Math.min(this.__caretIndex,this.__selectionIndex)|0},get_selectionEndIndex:function(){return Math.max(this.__caretIndex,this.__selectionIndex)|0},get_styleSheet:function(){return this.__styleSheet},set_styleSheet:function(a){null!=this.__styleSheet&& +null==a||null==a||(this.__isHTML&&a!=this.__styleSheet&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.set_htmlText(this.__htmlText)),this.set_type(0));return this.__styleSheet=a},get_tabEnabled:function(){return null==this.__tabEnabled?1==this.__textEngine.type:this.__tabEnabled},get_text:function(){return this.__text},set_text:function(a){if(null==a)throw a=new Id("Error #2007: Parameter text must be non-null."),a.errorID=2007, +a;if(null!=this.__styleSheet)return this.set_htmlText(a);if(this.__isHTML||this.__text!=a)this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());else return a;if(1"),F=r+1,H=h.indexOf(" ");H=h.substring(m?1:0,-1=this.width&&(a=2);b>=this.height&&(b=2);this.textBounds.setTo(Math.max(a-2,0),Math.max(b-2,0),Math.min(this.textWidth+4,this.bounds.width),Math.min(1.185*this.textHeight+4,this.bounds.height))},getLineBreaks:function(){this.lineBreaks.set_length(0); +for(var a=-1,b;athis.numLines-1;)this.lineAscents.push(a),this.lineDescents.push(b),this.lineLeadings.push(null!=c?c:0),this.lineHeights.push(d),this.lineWidths.push(f),b=a=0,c=null,f=d=0,this.numLines++;a=Math.max(a,v.ascent);b=Math.max(b,v.descent);c=null==c?v.leading:Math.max(c,v.leading)|0;d=Math.max(d,v.height);f=v.offsetX-2+v.width;f>this.textWidth&&(this.textWidth=f);n=Math.ceil(v.offsetY-2+v.ascent+ +v.descent);n>this.textHeight&&(this.textHeight=n)}}0==this.textHeight&&null!=this.textField&&1==this.type&&(a=this.textField.__textFormat,b=jb.getFontInstance(a),null!=a.__ascent?(k=a.size*a.__ascent,p=a.size*a.__descent):null!=b&&0!=b.unitsPerEM?(k=b.ascender/b.unitsPerEM*a.size,p=Math.abs(b.descender/b.unitsPerEM*a.size)):(k=a.size,p=.185*a.size),c=a.leading,a=k,b=p,this.textHeight=n=Math.ceil(k+p));this.lineAscents.push(a);this.lineDescents.push(b);this.lineLeadings.push(null!=c?c:0);this.lineHeights.push(d); +this.lineWidths.push(f);1==this.numLines&&0this.width-4?this.textWidth-this.width+4|0:0;this.scrollH>this.maxScrollH&&(this.scrollH=this.maxScrollH)},getLayoutGroups:function(){var a=this;this.layoutGroups.set_length(0);if(null!=this.text&&""!=this.text){var b=-1,c=null,d=null, +f=gc.__defaultTextFormat.clone(),k=0,p=0,g=0,n=0,v=3,h=0,m=0,r=0,H=0,w=!0,l=null,G=null,y=0,C=0,x=0,L=-2,u=-1,ja=this.text.indexOf(" "),B=0,ra=Bx&&(x=C);p>g&&(g=p)},W=function(){w=!0;v=null!=f.align?f.align:3;h=null!=f.blockIndent?f.blockIndent:0;m=null!=f.indent?f.indent:0;r=null!=f.leftMargin?f.leftMargin:0;H=null!=f.rightMargin?f.rightMargin:0},E=function(){if(b=f)G=[],y=0;else if(f<=c.end)G=ha(a.text,d,f),y=A(G);else{var k=d;d=c.end;var p=0;G=[];for(y=0;;)if(k!=d&&(k=ha(a.text,k,d),G=G.concat(k)),d!=f){if(!E()){Da.warn("You found a bug in OpenFL's text code! Please save a copy of your project and create an issue on GitHub so we can fix this.",{fileName:"openfl/text/_internal/TextEngine.hx",lineNumber:1118, +className:"openfl.text._internal.TextEngine",methodName:"getLayoutGroups"});break}k=d;d=fI||(c.ascent=g,c.height=x)}N+=x;x=g=0;I+=1;oa=0;w=!1},S=function(b){if(4<=a.width&&a.wordWrap){var c=G;var d=A(c);for(var f=c.length-1;0<=f;){var k=sa.cca(a.text,K+f);if(32!=k&&9!=k)break;d-=c[f];--f}for(;0z();){for(k=f=d=0;oa+kz();)--f,0z()&&(M=!0,0L)++Xa;else break;--M}K==L+1&&U();oa=0;if(0ra-l.startIndex-l.positions.length&&l.positions.push(0),K=ra+1);L=ja;ja=J;if(-1ra||-1==ja)||K>this.text.length)break}else Kthis.height-4){a=f+(0<=b-this.height?0:1);break}}return athis.height-4){a+=0>b-this.height?1:2;break}--a}return 1>a?1:a},get_scrollV:function(){if(1==this.numLines||null==this.lineHeights)return 1;var a=this.get_maxScrollV();return this.scrollV>a?a:this.scrollV},set_scrollV:function(a){1>a?a=1:a>this.get_maxScrollV()&&(a=this.get_maxScrollV());return this.scrollV=a},set_text:function(a){return this.text= +a},__class__:jb,__properties__:{set_text:"set_text",set_scrollV:"set_scrollV",get_scrollV:"get_scrollV",get_maxScrollV:"get_maxScrollV",get_bottomScrollV:"get_bottomScrollV"}};var Uc=function(a,b,c){this.format=a;this.start=b;this.end=c};Uc.__name__="openfl.text._internal.TextFormatRange";Uc.prototype={__class__:Uc};var gg=function(a,b,c){this.format=a;this.startIndex=b;this.endIndex=c};gg.__name__="openfl.text._internal.TextLayoutGroup";gg.prototype={__class__:gg};var Ia=function(){B.call(this); +Ia.__instances.push(this)};Ia.__name__="openfl.ui.GameInput";Ia.__getDevice=function(a){if(null==a)return null;if(null==Ia.__devices.h.__keys__[a.__id__]){var b=Gb.__getDeviceData(),c=b[a.id].id;b=Gb.__getDeviceData();b=new $g(c,b[a.id].id);Ia.__deviceList.push(b);Ia.__devices.set(a,b);Ia.numDevices=Ia.__deviceList.length}return Ia.__devices.h[a.__id__]};Ia.__onGamepadAxisMove=function(a,b,c){a=Ia.__getDevice(a);if(null!=a&&a.enabled){if(!a.__axis.h.hasOwnProperty(b)){if(null==b)var d="null";else switch(b){case 0:d= +"LEFT_X";break;case 1:d="LEFT_Y";break;case 2:d="RIGHT_X";break;case 3:d="RIGHT_Y";break;case 4:d="TRIGGER_LEFT";break;case 5:d="TRIGGER_RIGHT";break;default:d="UNKNOWN ("+b+")"}d=new Fc(a,"AXIS_"+d,-1,1);a.__axis.h[b]=d;a.__controls.push(d)}d=a.__axis.h[b];d.value=c;d.dispatchEvent(new ea("change"))}};Ia.__onGamepadButtonDown=function(a,b){a=Ia.__getDevice(a);if(null!=a&&a.enabled){if(!a.__button.h.hasOwnProperty(b)){if(null==b)var c="null";else switch(b){case 0:c="A";break;case 1:c="B";break;case 2:c= +"X";break;case 3:c="Y";break;case 4:c="BACK";break;case 5:c="GUIDE";break;case 6:c="START";break;case 7:c="LEFT_STICK";break;case 8:c="RIGHT_STICK";break;case 9:c="LEFT_SHOULDER";break;case 10:c="RIGHT_SHOULDER";break;case 11:c="DPAD_UP";break;case 12:c="DPAD_DOWN";break;case 13:c="DPAD_LEFT";break;case 14:c="DPAD_RIGHT";break;default:c="UNKNOWN ("+b+")"}c=new Fc(a,"BUTTON_"+c,0,1);a.__button.h[b]=c;a.__controls.push(c)}c=a.__button.h[b];c.value=1;c.dispatchEvent(new ea("change"))}};Ia.__onGamepadButtonUp= +function(a,b){a=Ia.__getDevice(a);if(null!=a&&a.enabled){if(!a.__button.h.hasOwnProperty(b)){if(null==b)var c="null";else switch(b){case 0:c="A";break;case 1:c="B";break;case 2:c="X";break;case 3:c="Y";break;case 4:c="BACK";break;case 5:c="GUIDE";break;case 6:c="START";break;case 7:c="LEFT_STICK";break;case 8:c="RIGHT_STICK";break;case 9:c="LEFT_SHOULDER";break;case 10:c="RIGHT_SHOULDER";break;case 11:c="DPAD_UP";break;case 12:c="DPAD_DOWN";break;case 13:c="DPAD_LEFT";break;case 14:c="DPAD_RIGHT"; +break;default:c="UNKNOWN ("+b+")"}c=new Fc(a,"BUTTON_"+c,0,1);a.__button.h[b]=c;a.__controls.push(c)}c=a.__button.h[b];c.value=0;c.dispatchEvent(new ea("change"))}};Ia.__onGamepadConnect=function(a){a=Ia.__getDevice(a);if(null!=a)for(var b=0,c=Ia.__instances;bb;){var c=b++;a=new Fc(this,"BUTTON_"+c,0,1);this.__button.h[c]=a;this.__controls.push(a)}};$g.__name__="openfl.ui.GameInputDevice";$g.prototype={__class__:$g};var mh=function(){};mh.__name__="openfl.ui.Keyboard";mh.__getCharCode=function(a,b){null==b&&(b=!1);if(b){switch(a){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(65<=a&&90>=a)return a-65+65}else{switch(a){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(48<=a&&57>=a)return a-48+48;if(65<=a&&90>=a)return a-65+97}if(96<=a&&105>=a)return a-96+48;switch(a){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};var Lg=function(){};Lg.__name__= +"openfl.ui.Mouse";var Eh={toLimeCursor:function(a){switch(a){case "arrow":return xb.ARROW;case "auto":return xb.DEFAULT;case "button":return xb.POINTER;case "crosshair":return xb.CROSSHAIR;case "custom":return xb.CUSTOM;case "hand":return xb.MOVE;case "ibeam":return xb.TEXT;case "resize_nesw":return xb.RESIZE_NESW;case "resize_ns":return xb.RESIZE_NS;case "resize_nwse":return xb.RESIZE_NWSE;case "resize_we":return xb.RESIZE_WE;case "wait":return xb.WAIT;case "waitarrow":return xb.WAIT_ARROW;default:return xb.DEFAULT}}}, +V=function(a){null==a&&(a=!1);this.debugEnabled=a;V.initialized||V.init()};V.__name__="openfl.utils.AGALMiniAssembler";V.init=function(){V.initialized=!0;var a=V.OPMAP,b=new Oa("mov",2,0,0);a.h.mov=b;a=V.OPMAP;b=new Oa("add",3,1,0);a.h.add=b;a=V.OPMAP;b=new Oa("sub",3,2,0);a.h.sub=b;a=V.OPMAP;b=new Oa("mul",3,3,0);a.h.mul=b;a=V.OPMAP;b=new Oa("div",3,4,0);a.h.div=b;a=V.OPMAP;b=new Oa("rcp",2,5,0);a.h.rcp=b;a=V.OPMAP;b=new Oa("min",3,6,0);a.h.min=b;a=V.OPMAP;b=new Oa("max",3,7,0);a.h.max=b;a=V.OPMAP; +b=new Oa("frc",2,8,0);a.h.frc=b;a=V.OPMAP;b=new Oa("sqt",2,9,0);a.h.sqt=b;a=V.OPMAP;b=new Oa("rsq",2,10,0);a.h.rsq=b;a=V.OPMAP;b=new Oa("pow",3,11,0);a.h.pow=b;a=V.OPMAP;b=new Oa("log",2,12,0);a.h.log=b;a=V.OPMAP;b=new Oa("exp",2,13,0);a.h.exp=b;a=V.OPMAP;b=new Oa("nrm",2,14,0);a.h.nrm=b;a=V.OPMAP;b=new Oa("sin",2,15,0);a.h.sin=b;a=V.OPMAP;b=new Oa("cos",2,16,0);a.h.cos=b;a=V.OPMAP;b=new Oa("crs",3,17,0);a.h.crs=b;a=V.OPMAP;b=new Oa("dp3",3,18,0);a.h.dp3=b;a=V.OPMAP;b=new Oa("dp4",3,19,0);a.h.dp4= +b;a=V.OPMAP;b=new Oa("abs",2,20,0);a.h.abs=b;a=V.OPMAP;b=new Oa("neg",2,21,0);a.h.neg=b;a=V.OPMAP;b=new Oa("sat",2,22,0);a.h.sat=b;a=V.OPMAP;b=new Oa("m33",3,23,16);a.h.m33=b;a=V.OPMAP;b=new Oa("m44",3,24,16);a.h.m44=b;a=V.OPMAP;b=new Oa("m34",3,25,16);a.h.m34=b;a=V.OPMAP;b=new Oa("ddx",2,26,288);a.h.ddx=b;a=V.OPMAP;b=new Oa("ddy",2,27,288);a.h.ddy=b;a=V.OPMAP;b=new Oa("ife",2,28,897);a.h.ife=b;a=V.OPMAP;b=new Oa("ine",2,29,897);a.h.ine=b;a=V.OPMAP;b=new Oa("ifg",2,30,897);a.h.ifg=b;a=V.OPMAP;b=new Oa("ifl", +2,31,897);a.h.ifl=b;a=V.OPMAP;b=new Oa("els",0,32,1921);a.h.els=b;a=V.OPMAP;b=new Oa("eif",0,33,1409);a.h.eif=b;a=V.OPMAP;b=new Oa("kil",1,39,160);a.h.kil=b;a=V.OPMAP;b=new Oa("tex",3,40,40);a.h.tex=b;a=V.OPMAP;b=new Oa("sge",3,41,0);a.h.sge=b;a=V.OPMAP;b=new Oa("slt",3,42,0);a.h.slt=b;a=V.OPMAP;b=new Oa("sgn",2,43,0);a.h.sgn=b;a=V.OPMAP;b=new Oa("seq",3,44,0);a.h.seq=b;a=V.OPMAP;b=new Oa("sne",3,45,0);a.h.sne=b;a=V.SAMPLEMAP;b=new vb("rgba",8,0);a.h.rgba=b;a=V.SAMPLEMAP;b=new vb("compressed",8,1); +a.h.compressed=b;a=V.SAMPLEMAP;b=new vb("compressedalpha",8,2);a.h.compressedalpha=b;a=V.SAMPLEMAP;b=new vb("dxt1",8,1);a.h.dxt1=b;a=V.SAMPLEMAP;b=new vb("dxt5",8,2);a.h.dxt5=b;a=V.SAMPLEMAP;b=new vb("video",8,3);a.h.video=b;a=V.SAMPLEMAP;b=new vb("2d",12,0);a.h["2d"]=b;a=V.SAMPLEMAP;b=new vb("3d",12,2);a.h["3d"]=b;a=V.SAMPLEMAP;b=new vb("cube",12,1);a.h.cube=b;a=V.SAMPLEMAP;b=new vb("mipnearest",24,1);a.h.mipnearest=b;a=V.SAMPLEMAP;b=new vb("miplinear",24,2);a.h.miplinear=b;a=V.SAMPLEMAP;b=new vb("mipnone", +24,0);a.h.mipnone=b;a=V.SAMPLEMAP;b=new vb("nomip",24,0);a.h.nomip=b;a=V.SAMPLEMAP;b=new vb("nearest",28,0);a.h.nearest=b;a=V.SAMPLEMAP;b=new vb("linear",28,1);a.h.linear=b;a=V.SAMPLEMAP;b=new vb("anisotropic2x",28,2);a.h.anisotropic2x=b;a=V.SAMPLEMAP;b=new vb("anisotropic4x",28,3);a.h.anisotropic4x=b;a=V.SAMPLEMAP;b=new vb("anisotropic8x",28,4);a.h.anisotropic8x=b;a=V.SAMPLEMAP;b=new vb("anisotropic16x",28,5);a.h.anisotropic16x=b;a=V.SAMPLEMAP;b=new vb("centroid",16,1);a.h.centroid=b;a=V.SAMPLEMAP; +b=new vb("single",16,2);a.h.single=b;a=V.SAMPLEMAP;b=new vb("ignoresampler",16,4);a.h.ignoresampler=b;a=V.SAMPLEMAP;b=new vb("repeat",20,1);a.h.repeat=b;a=V.SAMPLEMAP;b=new vb("wrap",20,1);a.h.wrap=b;a=V.SAMPLEMAP;b=new vb("clamp",20,0);a.h.clamp=b;a=V.SAMPLEMAP;b=new vb("clamp_u_repeat_v",20,2);a.h.clamp_u_repeat_v=b;a=V.SAMPLEMAP;b=new vb("repeat_u_clamp_v",20,3);a.h.repeat_u_clamp_v=b};V.prototype={assemble:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=1);var f=Ca.getTimer();this.agalcode=new fc(0); +this.error="";var k=!1;"fragment"==a?k=!0:"vertex"!=a&&(this.error='ERROR: mode needs to be "fragment" or "vertex" but is "'+a+'".');this.agalcode.__endian=1;this.agalcode.writeByte(160);this.agalcode.writeUnsignedInt(c);this.agalcode.writeByte(161);this.agalcode.writeByte(k?1:0);this.initregmap(c,d);a=aa.replace(b,"\r","\n").split("\n");b=0;d=a.length;for(var p=new F("<.*>","g"),g=new F("([\\w\\.\\-\\+]+)","gi"),n=new F("^\\w{3}","ig"),v=new F("vc\\[([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw](\\+\\d{1,3})?)?\\](\\.[xyzw]{1,4})?|([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw]{1,4})?", +"gi"),h=new F("\\[.*\\]","ig"),m=new F("^\\b[A-Za-z]{1,3}","ig"),r=new F("\\d+",""),l=new F("(\\.[xyzw]{1,4})",""),H=new F("[A-Za-z]{1,3}","ig"),w=new F("(\\.[xyzw]{1,1})",""),G=new F("\\+\\d{1,3}","ig"),y=0;yc){this.error="error: opcode requires version 2.";break}if(0!=(u.flags&64)&&k){this.error="error: opcode is only allowed in vertex programs.";break}if(0!=(u.flags&32)&&!k){this.error="error: opcode is only allowed in fragment programs.";break}this.verbose&&Da.info("emit opcode="+L.string(u),{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:308,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});this.agalcode.writeUnsignedInt(u.emitCode); +++b;if(4096=Xa;)A|=M<<(Xa-1<<1),++Xa}else A=z?15:228;if(oa){na=this.match(N[0],H);E=V.REGMAP.h[na[0]];if(null==E){this.error= +"error: bad index register";ja=!0;break}E=E.emitCode;M=this.match(N[0],w);if(0==M.length){this.error="error: bad index register select";ja=!0;break}W=sa.cca(M[0],1)-120;Pa.gt(W,2)&&(W=3);N=this.match(N[0],G);0T||255k.length&&(k="0"+k),c+=k;Da.info(c,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:662,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})}this.verbose&&Da.info("AGALMiniAssembler.assemble time: "+(Ca.getTimer()-f)/1E3+"s",{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:667,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});return this.agalcode},initregmap:function(a,b){var c= +V.REGMAP,d=new wc("va","vertex attribute",0,b?1024:1==a||2==a?7:15,66);c.h.va=d;c=V.REGMAP;d=new wc("vc","vertex constant",1,b?1024:1==a?127:249,66);c.h.vc=d;c=V.REGMAP;d=new wc("vt","vertex temporary",2,b?1024:1==a?7:25,67);c.h.vt=d;c=V.REGMAP;d=new wc("vo","vertex output",3,b?1024:0,65);c.h.vo=d;c=V.REGMAP;d=new wc("vi","varying",4,b?1024:1==a?7:9,99);c.h.vi=d;c=V.REGMAP;d=new wc("fc","fragment constant",1,b?1024:1==a?27:2==a?63:199,34);c.h.fc=d;c=V.REGMAP;d=new wc("ft","fragment temporary",2,b? +1024:1==a?7:25,35);c.h.ft=d;c=V.REGMAP;d=new wc("fs","texture sampler",5,b?1024:7,34);c.h.fs=d;c=V.REGMAP;d=new wc("fo","fragment output",3,b?1024:1==a?0:3,33);c.h.fo=d;c=V.REGMAP;d=new wc("fd","fragment depth output",6,b?1024:1==a?-1:0,33);c.h.fd=d;c=V.REGMAP;d=new wc("iid","instance id",7,b?1024:0,66);c.h.iid=d;d=V.REGMAP.h.vo;V.REGMAP.h.op=d;d=V.REGMAP.h.vi;V.REGMAP.h.i=d;d=V.REGMAP.h.vi;V.REGMAP.h.v=d;d=V.REGMAP.h.fo;V.REGMAP.h.oc=d;d=V.REGMAP.h.fd;V.REGMAP.h.od=d;d=V.REGMAP.h.vi;V.REGMAP.h.fi= +d},match:function(a,b){for(var c=[],d=0;b.matchSub(a,d);)d=b.matched(0),c.push(d),d=b.matchedPos().pos+d.length;return c},__class__:V};var Oa=function(a,b,c,d){this.name=a;this.numRegister=b;this.emitCode=c;this.flags=d};Oa.__name__="openfl.utils._AGALMiniAssembler.OpCode";Oa.prototype={toString:function(){return'[OpCode name="'+this.name+'", numRegister='+this.numRegister+", emitCode="+this.emitCode+", flags="+this.flags+"]"},__class__:Oa};var wc=function(a,b,c,d,f){this.name=a;this.longName=b;this.emitCode= +c;this.range=d;this.flags=f};wc.__name__="openfl.utils._AGALMiniAssembler.Register";wc.prototype={toString:function(){return'[Register name="'+this.name+'", longName="'+this.longName+'", emitCode='+(null==this.emitCode?"null":L.string(Pa.toFloat(this.emitCode)))+", range="+(null==this.range?"null":L.string(Pa.toFloat(this.range)))+", flags="+(null==this.flags?"null":L.string(Pa.toFloat(this.flags)))+"]"},__class__:wc};var vb=function(a,b,c){this.name=a;this.flag=b;this.mask=c};vb.__name__="openfl.utils._AGALMiniAssembler.Sampler"; +vb.prototype={__class__:vb};var ah=function(){vc.call(this)};ah.__name__="openfl.utils.AssetLibrary";ah.__super__=vc;ah.prototype=u(vc.prototype,{bind:function(a,b){return!1},exists:function(a,b){return null!=this.__proxy?this.__proxy.exists(a,b):vc.prototype.exists.call(this,a,b)},getAsset:function(a,b){return null!=this.__proxy?this.__proxy.getAsset(a,b):vc.prototype.getAsset.call(this,a,b)},getAudioBuffer:function(a){return null!=this.__proxy?this.__proxy.getAudioBuffer(a):vc.prototype.getAudioBuffer.call(this, +a)},getBytes:function(a){return null!=this.__proxy?this.__proxy.getBytes(a):vc.prototype.getBytes.call(this,a)},getFont:function(a){return null!=this.__proxy?this.__proxy.getFont(a):vc.prototype.getFont.call(this,a)},getImage:function(a){return null!=this.__proxy?this.__proxy.getImage(a):vc.prototype.getImage.call(this,a)},getPath:function(a){return null!=this.__proxy?this.__proxy.getPath(a):vc.prototype.getPath.call(this,a)},getText:function(a){return null!=this.__proxy?this.__proxy.getText(a):vc.prototype.getText.call(this, +a)},isLocal:function(a,b){return null!=this.__proxy?this.__proxy.isLocal(a,b):vc.prototype.isLocal.call(this,a,b)},__class__:ah});var Ad={__properties__:{set_length:"set_length",get_length:"get_length"},fromBytes:function(a){return null==a?null:a instanceof fc?a:fc.fromBytes(a)},toBytes:function(a){return a},get_length:function(a){return null==a?0:a.length},set_length:function(a,b){0<=b&&(a.__resize(b),bthis.length)throw new mf;this.position+=a;return this.getString(this.position-a,a)},writeByte:function(a){this.__resize(this.position+ +1);this.b[this.position++]=a&255},writeInt:function(a){this.__resize(this.position+4);1==this.__endian?(this.b[this.position++]=a&255,this.b[this.position++]=a>>8&255,this.b[this.position++]=a>>16&255,this.b[this.position++]=a>>24&255):(this.b[this.position++]=a>>24&255,this.b[this.position++]=a>>16&255,this.b[this.position++]=a>>8&255,this.b[this.position++]=a&255)},writeShort:function(a){this.__resize(this.position+2);1==this.__endian?(this.b[this.position++]=a&255,this.b[this.position++]=a>>8& +255):(this.b[this.position++]=a>>8&255,this.b[this.position++]=a&255)},writeUnsignedInt:function(a){this.writeInt(a)},__fromBytes:function(a){this.b=a.b;this.__allocated=a.length;this.data=a.data;this.length=a.length},__resize:function(a){if(a>this.__allocated){var b=new Wb(new ArrayBuffer(3*(a+1)>>1));if(0a?String.fromCharCode(a):String.fromCharCode((a>>10)+55232)+String.fromCharCode((a&1023)+56320)});Object.defineProperty(String.prototype,"__class__",{value:String,enumerable:!1,writable:!0});String.__name__="String";Array.__name__="Array"; +Date.prototype.__class__=Date;Date.__name__="Date";var jh={},wh={},xh=Number,vh=Boolean,yh={},zh={};I.__toStr={}.toString;"undefined"==typeof window&&(t.onmessage=function(a){a=a.data;try{t.onmessage=(C=Na.__current,h(C,C.dispatchMessage)),Mc.toFunction(a)()}catch(b){ya.lastError=b,Na.__current.destroy()}});X.__alpha16=new Uint32Array(256);for(var ge=0;256>ge;){var He=ge++;X.__alpha16[He]=Math.ceil(257.00392156862745*He)}X.__clamp=new Uint8Array(511);for(ge=0;255>ge;)He=ge++,X.__clamp[He]=He;for(ge= +255;511>ge;)He=ge++,X.__clamp[He]=255;Da.level=3;"undefined"==typeof console&&(console={});null==console.log&&(console.log=function(){});y.hitTestCanvas=Te.get_supported()?window.document.createElement("canvas"):null;y.hitTestContext=Te.get_supported()?y.hitTestCanvas.getContext("2d"):null;W.__meta__={fields:{__cairo:{SuppressWarnings:["checkstyle:Dynamic"]},addEventListener:{SuppressWarnings:["checkstyle:Dynamic"]},removeEventListener:{SuppressWarnings:["checkstyle:Dynamic"]}}};W.__broadcastEvents= +new Sa;W.__instanceCount=0;W.__tempStack=new ba(function(){return xa.toObjectVector(null)},function(a){a.set_length(0)});la.__meta__={fields:{layoutData:{style:null},focusRectSkin:{style:null}}};ma.__meta__={obj:{defaultXmlProperty:["xmlContent"]}};ma.VARIANT_TOOL_BAR="toolBar";Q.CUSTOM_DRAG_FORMAT="myDraggableSprite";pa.DEFAULT_COLOR=3551790;pa.HOVER_COLOR=2499102;Hb.__meta__={obj:{defaultXmlProperty:["text"]}};Hb.VARIANT_PRIMARY="primary";Hb.VARIANT_DANGER="danger";bb.__meta__={obj:{defaultXmlProperty:["text"]}}; +bb.VARIANT_HEADING="heading";bb.VARIANT_DETAIL="detail";bb.VARIANT_DANGER="danger";oc.WRAP_OBJECT_HIGH_TAB_INDEX=2147483647;H.CHILD_VARIANT_TOOL_TIP="toolTip";oa.stageToManager=new N;oa._focusManagerFactory=oa.defaultFocusManagerFactory;rb.stageToManager=new N;pb._toolTipManagerFactory=pb.defaultToolTipManagerFactory;pb.stageToManager=new N;Ic.STAGE_TO_VALIDATION_QUEUE=new N;M._dropTargetLocalX=0;M._dropTargetLocalY=0;M.dragAvatarOffsetX=1;M.dragAvatarOffsetY=1;M.dropAccepted=!1;M._oldDragAvatarMouseEnabled= +!1;M._oldDragAvatarMouseChildren=!1;qc._pool=new ba(function(){return new qc(null,null,!1)},function(a){a.target=null;a.currentTarget=null;a.__preventDefault=!1;a.__isCanceled=!1;a.__isCanceledNow=!1});Wa._pool=new ba(function(){return new Wa(null,!1,!1)},function(a){a.target=null;a.currentTarget=null;a.__preventDefault=!1;a.__isCanceled=!1;a.__isCanceledNow=!1});Fb._pool=new ba(function(){return new Fb(null,null)},function(a){a.target=null;a.currentTarget=null;a.__preventDefault=!1;a.__isCanceled= +!1;a.__isCanceledNow=!1;a.affectsTarget=null});Zb._pool=new ba(function(){return new Zb(null)},function(a){a.target=null;a.currentTarget=null;a.__preventDefault=!1;a.__isCanceled=!1;a.__isCanceledNow=!1;a.relatedObject=null});oe.MEDIA_QUERY_DESKTOP="screen and (hover: hover) and (pointer: fine)";Ba.activeRequests=0;Ba.requestLimit=17;Ba.requestQueue=new ka;Na.__current=new Na(t.location.href);Na.__isWorker="undefined"==typeof window;Na.__messages=new ka;Na.__resolveMethods=new ka;Na.__workerCount= +0;Aa.dummyCharacter="\u007f";Aa.windowID=0;nd.DICTIONARY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");nd.EXTENDED_DICTIONARY=function(a){a=[];for(var b=0,c=nd.DICTIONARY;b","gi");ua.__regexBlockIndent= +new F("blockindent\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");ua.__regexClass=new F("class\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");ua.__regexColor=new F("color\\s?=\\s?(\"#([^\"]+)\"|'#([^']+)')","i");ua.__regexEntityApos=new F("'","g");ua.__regexEntityNbsp=new F(" ","g");ua.__regexCharEntity=new F("&#(?:([0-9]+)|(x[0-9a-fA-F]+));","g");ua.__regexFace=new F("face\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");ua.__regexHTMLTag=new F("<.*?>","g");ua.__regexHref=new F("href\\s?=\\s?(\"([^\"]+)\"|'([^']+)')", +"i");ua.__regexIndent=new F(" indent\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");ua.__regexLeading=new F("leading\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");ua.__regexLeftMargin=new F("leftmargin\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");ua.__regexRightMargin=new F("rightmargin\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");ua.__regexSize=new F("size\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");ua.__regexTabStops=new F("tabstops\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");Ge.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; +jb.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};gg.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Ia.__meta__={fields:{addEventListener:{SuppressWarnings:["checkstyle:Dynamic"]}}};Ia.numDevices=0;Ia.__deviceList=[];Ia.__instances=[];Ia.__devices=new N;Lg.__cursor="auto";V.__meta__={obj:{SuppressWarnings:[["checkstyle:ConstantName","checkstyle:FieldDocComment"]]}};V.OPMAP=new Sa;V.REGMAP=new Sa;V.SAMPLEMAP=new Sa;V.initialized=!1;Oa.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; +wc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};vb.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};fc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};fc.defaultObjectEncoding=10;lc.__meta__={statics:{__get:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};bc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ce.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{touch:{SuppressWarnings:["checkstyle:Dynamic"]}}}; +ce.__pool=new ba(function(){return new ce},function(a){a.reset()});z.main()})("undefined"!=typeof l?l:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:this)};"undefined"!==typeof self&&self.constructor.name.includes("Worker")?E({},l):(t.lime=t.lime||{},t.lime.$scripts=t.lime.$scripts||{},t.lime.$scripts.DragAndDrop=E,t.lime.embed=function(z){var A={},E=t.lime.$scripts[z];if(!E)throw Error('Cannot find project name "'+ +z+'"');E(A,l);for(var B in A)t[B]=t[B]||A[B];(E=A.lime||window.lime)&&E.embed&&this!==E.embed&&E.embed.apply(E,arguments);return A});"function"===typeof define&&define.amd&&(define([],function(){return t.lime}),define.__amd=define.amd,define.amd=null)}; +$lime_init("undefined"!==typeof exports?exports:"function"===typeof define&&define.amd?{}:"undefined"!==typeof window?window:"undefined"!==typeof self?self:this,"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this); +"undefined"!==typeof self&&self.constructor.name.includes("Worker")||(!function(){var t=function(){this.init()};t.prototype={init:function(){var g=this||l;return g._counter=1E3,g._html5AudioPool=[],g.html5PoolSize=10,g._codecs={},g._howls=[],g._muted=!1,g._volume=1,g._canPlayEvent="canplaythrough",g._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,g.masterGain=null,g.noAudio=!1,g.usingWebAudio=!0,g.autoSuspend=!0,g.ctx=null,g.autoUnlock=!0,g._setup(),g},volume:function(g){var w= +this||l;if(g=parseFloat(g),w.ctx||h(),void 0!==g&&0<=g&&1>=g){if(w._volume=g,w._muted)return w;w.usingWebAudio&&w.masterGain.gain.setValueAtTime(g,l.ctx.currentTime);for(var C=0;CparseInt(u[0].split("/")[1],10);var B=-1!==t.indexOf("Safari")&&-1===t.indexOf("Chrome");t=t.match(/Version\/(.*?) /);t=B&&t&&15>parseInt(t[1],10);return g._codecs={mp3:!(u||!C&&!h.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!C,opus:!!h.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!h.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, +""),oga:!!h.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(h.canPlayType('audio/wav; codecs="1"')||h.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!h.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!h.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(h.canPlayType("audio/x-m4a;")||h.canPlayType("audio/m4a;")||h.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(h.canPlayType("audio/x-m4b;")||h.canPlayType("audio/m4b;")||h.canPlayType("audio/aac;")).replace(/^no$/, +""),mp4:!!(h.canPlayType("audio/x-mp4;")||h.canPlayType("audio/mp4;")||h.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(t||!h.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(t||!h.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!h.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(h.canPlayType("audio/x-flac;")||h.canPlayType("audio/flac;")).replace(/^no$/,"")},g},_unlockAudio:function(){var g=this||l;if(!g._audioUnlocked&&g.ctx){g._audioUnlocked= +!1;g.autoUnlock=!1;g._mobileUnloaded||44100===g.ctx.sampleRate||(g._mobileUnloaded=!0,g.unload());g._scratchBuffer=g.ctx.createBuffer(1,1,22050);var h=function(l){for(;g._html5AudioPool.length=ba)return void w._ended(A);var N=A._node;if(w._webAudio)t=function(){w._playLock=!1;ab();w._refreshBuffer(A);N.gain.setValueAtTime(A._muted||w._muted?0:A._volume,l.ctx.currentTime);A._playStart=l.ctx.currentTime;void 0===N.bufferSource.start?A._loop?N.bufferSource.noteGrainOn(0,E,86400):N.bufferSource.noteGrainOn(0,E,J):A._loop?N.bufferSource.start(0,E,86400):N.bufferSource.start(0,E,J);U!==1/0&&(w._endTimers[A._id]=setTimeout(w._ended.bind(w, +A),U));h||setTimeout(function(){w._emit("play",A._id);w._loadQueue()},0)},"running"===l.state&&"interrupted"!==l.ctx.state?t():(w._playLock=!0,w.once("resume",t),w._clearTimer(A._id));else{var ka=function(){N.currentTime=E;N.muted=A._muted||w._muted||l._muted||N.muted;N.volume=A._volume*l.volume();N.playbackRate=A._rate;try{var C=N.play();if(C&&"undefined"!=typeof Promise&&(C instanceof Promise||"function"==typeof C.then)?(w._playLock=!0,ab(),C.then(function(){w._playLock=!1;N._unlocked=!0;h?w._loadQueue(): +w._emit("play",A._id)}).catch(function(){w._playLock=!1;w._emit("playerror",A._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");A._ended=!0;A._paused=!0})):h||(w._playLock=!1,ab(),w._emit("play",A._id)),N.playbackRate=A._rate,N.paused)return void w._emit("playerror",A._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."); +"__default"!==g||A._loop?w._endTimers[A._id]=setTimeout(w._ended.bind(w,A),U):(w._endTimers[A._id]=function(){w._ended(A);N.removeEventListener("ended",w._endTimers[A._id],!1)},N.addEventListener("ended",w._endTimers[A._id],!1))}catch(ia){w._emit("playerror",A._id,ia)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===N.src&&(N.src=w._src,N.load());t=window&&window.ejecta||!N.readyState&&l._navigator.isCocoonJS;if(3<=N.readyState||t)ka();else{w._playLock= +!0;w._state="loading";var W=function(){w._state="loaded";ka();N.removeEventListener(l._canPlayEvent,W,!1)};N.addEventListener(l._canPlayEvent,W,!1);w._clearTimer(A._id)}}return A._id},pause:function(g,h){var l=this;if("loaded"!==l._state||l._playLock)return l._queue.push({event:"pause",action:function(){l.pause(g)}}),l;for(var w=l._getSoundIds(g),t=0;t=g))return B=h?t._soundById(h):t._sounds[0],B?B._volume:0;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"volume",action:function(){t.volume.apply(t,u)}}),t;void 0===h&&(t._volume=g);h=t._getSoundIds(h);for(var A=0;AA?Math.max(l,C):Math.min(l,C);w._webAudio?g._volume=C:w.volume(C,g._id,!0);B&&(w._volume=C);(lh&&C>=l)&&(clearInterval(g._interval), +g._interval=null,g._fadeTo=null,w.volume(l,g._id),w._emit("fade",g._id))},u)},_stopFade:function(g){var h=this._soundById(g);return h&&h._interval&&(this._webAudio&&h._node.gain.cancelScheduledValues(l.ctx.currentTime),clearInterval(h._interval),h._interval=null,this.volume(h._fadeTo,g),h._fadeTo=null,this._emit("fade",g)),this},loop:function(){var g,h,l,t=arguments;if(0===t.length)return this._loop;if(1===t.length){if("boolean"!=typeof t[0])return!!(l=this._soundById(parseInt(t[0],10)))&&l._loop; +this._loop=g=t[0]}else 2===t.length&&(g=t[0],h=parseInt(t[1],10));h=this._getSoundIds(h);for(t=0;th&&(g=/safari/.test(l._navigator&&l._navigator.userAgent.toLowerCase()),l._navigator&&!g&&(l.usingWebAudio=!1));l.usingWebAudio&&(l.masterGain=void 0===l.ctx.createGain? +l.ctx.createGainNode():l.ctx.createGain(),l.masterGain.gain.setValueAtTime(l._muted?0:l._volume,l.ctx.currentTime),l.masterGain.connect(l.ctx.destination));l._setup()}};"function"==typeof define&&define.amd&&define([],function(){return{Howler:l,Howl:E}});"undefined"!=typeof exports&&(exports.Howler=l,exports.Howl=E);"undefined"!=typeof global?(global.HowlerGlobal=t,global.Howler=l,global.Howl=E,global.Sound=z):"undefined"!=typeof window&&(window.HowlerGlobal=t,window.Howler=l,window.Howl=E,window.Sound= +z)}(),!function(){HowlerGlobal.prototype._pos=[0,0,0];HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0];HowlerGlobal.prototype.stereo=function(l){if(!this.ctx||!this.ctx.listener)return this;for(var t=this._howls.length-1;0<=t;t--)this._howls[t].stereo(l);return this};HowlerGlobal.prototype.pos=function(l,t,z){return this.ctx&&this.ctx.listener?(t="number"!=typeof t?this._pos[1]:t,z="number"!=typeof z?this._pos[2]:z,"number"!=typeof l?this._pos:(this._pos=[l,t,z],void 0!==this.ctx.listener.positionX? +(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this)):this};HowlerGlobal.prototype.orientation=function(l,t,z,A,J,B){if(!this.ctx||!this.ctx.listener)return this;var u=this._orientation;return t="number"!=typeof t?u[1]:t,z="number"!= +typeof z?u[2]:z,A="number"!=typeof A?u[3]:A,J="number"!=typeof J?u[4]:J,B="number"!=typeof B?u[5]:B,"number"!=typeof l?u:(this._orientation=[l,t,z,A,J,B],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(l,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(z,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(A,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(J, +Howler.ctx.currentTime,.1),this.ctx.listener.upZ.setTargetAtTime(B,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(l,t,z,A,J,B),this)};Howl.prototype.init=function(l){return function(t){return this._orientation=t.orientation||[1,0,0],this._stereo=t.stereo||null,this._pos=t.pos||null,this._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!== +t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1E4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},this._onstereo=t.onstereo?[{fn:t.onstereo}]:[],this._onpos=t.onpos?[{fn:t.onpos}]:[],this._onorientation=t.onorientation?[{fn:t.onorientation}]:[],l.call(this,t)}}(Howl.prototype.init);Howl.prototype.stereo=function(l,E){var z=this;if(!z._webAudio)return z; +if("loaded"!==z._state)return z._queue.push({event:"stereo",action:function(){z.stereo(l,E)}}),z;var A=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===E){if("number"!=typeof l)return z._stereo;z._stereo=l;z._pos=[l,0,0]}for(var J=z._getSoundIds(E),B=0;Bl.windowBits&&(l.windowBits+=16);this.err=0;this.msg= +"";this.ended=!1;this.chunks=[];this.strm=new g;this.strm.avail_out=0;var z=B.deflateInit2(this.strm,l.level,l.method,l.windowBits,l.memLevel,l.strategy);if(z!==C)throw Error(h[z]);if(l.header&&B.deflateSetHeader(this.strm,l.header),l.dictionary){var E;if(E="string"==typeof l.dictionary?U.string2buf(l.dictionary):"[object ArrayBuffer]"===w.call(l.dictionary)?new Uint8Array(l.dictionary):l.dictionary,z=B.deflateSetDictionary(this.strm,E),z!==C)throw Error(h[z]);this._dict_set=!0}}function J(g,h){h= +new A(h);if(h.push(g,!0),h.err)throw h.msg;return h.result}var B=l("./zlib/deflate"),u=l("./utils/common"),U=l("./utils/strings"),h=l("./zlib/messages"),g=l("./zlib/zstream"),w=Object.prototype.toString,C=0,K=-1,na=0,ha=8;A.prototype.push=function(g,h){var l,A=this.strm,z=this.options.chunkSize;if(this.ended)return!1;h=h===~~h?h:!0===h?4:0;"string"==typeof g?A.input=U.string2buf(g):"[object ArrayBuffer]"===w.call(g)?A.input=new Uint8Array(g):A.input=g;A.next_in=0;A.avail_in=A.input.length;do{if(0=== +A.avail_out&&(A.output=new u.Buf8(z),A.next_out=0,A.avail_out=z),l=B.deflate(A,h),1!==l&&l!==C)return this.onEnd(l),this.ended=!0,!1;0!==A.avail_out&&(0!==A.avail_in||4!==h&&2!==h)||("string"===this.options.to?this.onData(U.buf2binstring(u.shrinkBuf(A.output,A.next_out))):this.onData(u.shrinkBuf(A.output,A.next_out)))}while((0z.windowBits&&(z.windowBits=-z.windowBits,0===z.windowBits&&(z.windowBits=-15));!(0<=z.windowBits&&16>z.windowBits)||l&&l.windowBits||(z.windowBits+=32);15z.windowBits&&0===(15&z.windowBits)&&(z.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new w;this.strm.avail_out=0;l=B.inflateInit2(this.strm,z.windowBits);if(l!==h.Z_OK)throw Error(g[l]); +this.header=new C;B.inflateGetHeader(this.strm,this.header)}function J(g,h){h=new A(h);if(h.push(g,!0),h.err)throw h.msg;return h.result}var B=l("./zlib/inflate"),u=l("./utils/common"),U=l("./utils/strings"),h=l("./zlib/constants"),g=l("./zlib/messages"),w=l("./zlib/zstream"),C=l("./zlib/gzheader"),K=Object.prototype.toString;A.prototype.push=function(g,l){var w,A,C,z,E,J=this.strm,ha=this.options.chunkSize,na=this.options.dictionary,N=!1;if(this.ended)return!1;l=l===~~l?l:!0===l?h.Z_FINISH:h.Z_NO_FLUSH; +"string"==typeof g?J.input=U.binstring2buf(g):"[object ArrayBuffer]"===K.call(g)?J.input=new Uint8Array(g):J.input=g;J.next_in=0;J.avail_in=J.input.length;do{if(0===J.avail_out&&(J.output=new u.Buf8(ha),J.next_out=0,J.avail_out=ha),w=B.inflate(J,h.Z_NO_FLUSH),w===h.Z_NEED_DICT&&na&&(E="string"==typeof na?U.string2buf(na):"[object ArrayBuffer]"===K.call(na)?new Uint8Array(na):na,w=B.inflateSetDictionary(this.strm,E)),w===h.Z_BUF_ERROR&&!0===N&&(w=h.Z_OK,N=!1),w!==h.Z_STREAM_END&&w!==h.Z_OK)return this.onEnd(w), +this.ended=!0,!1;J.next_out&&(0!==J.avail_out&&w!==h.Z_STREAM_END&&(0!==J.avail_in||l!==h.Z_FINISH&&l!==h.Z_SYNC_FLUSH)||("string"===this.options.to?(A=U.utf8border(J.output,J.next_out),C=J.next_out-A,z=U.buf2string(J.output,A),J.next_out=C,J.avail_out=ha-C,C&&u.arraySet(J.output,J.output,A,C,0),this.onData(z)):this.onData(u.shrinkBuf(J.output,J.next_out))));0===J.avail_in&&0===J.avail_out&&(N=!0)}while((0g&&(h.subarray&&u||!h.subarray&&B))return String.fromCharCode.apply(null,J.shrinkBuf(h,g));for(var l="",A=0;Al;l++)U[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;U[254]=U[254]=1;z.string2buf=function(h){var g,l,u,B=h.length,A=0;for(l=0;lz?1:2048>z?2:65536>z?3:4}var E=new J.Buf8(A);for(l=u=0;uz?E[u++]= +z:2048>z?(E[u++]=192|z>>>6,E[u++]=128|63&z):65536>z?(E[u++]=224|z>>>12,E[u++]=128|z>>>6&63,E[u++]=128|63&z):(E[u++]=240|z>>>18,E[u++]=128|z>>>12&63,E[u++]=128|z>>>6&63,E[u++]=128|63&z);return E};z.buf2binstring=function(h){return A(h,h.length)};z.binstring2buf=function(h){for(var g=new J.Buf8(h.length),l=0,u=g.length;lu)J[l++]=u;else if(B=U[u],4u?J[l++]=u:(u-=65536,J[l++]=55296|u>>10&1023,J[l++]=56320|1023&u)}return A(J,l)};z.utf8border=function(h,g){var l;g=g||h.length;g>h.length&&(g=h.length);for(l=g-1;0<=l&&128===(192&h[l]);)l--;return 0>l?g:0===l?g:l+U[h[l]]>g?l:g}},{"./common":3}],5:[function(l,E,z){E.exports=function(l,z,B,u){var A=65535&l|0;l=l>>>16&65535|0;for(var h;0!==B;){h=2E3u;u++){l=u; +for(var A=0;8>A;A++)l=1&l?3988292384^l>>>1:l>>>1;B[u]=l}return B}();E.exports=function(l,B,u,z){u=z+u;for(l^=-1;z>>8^A[255&(l^B[z])];return l^-1}},{}],8:[function(l,E,z){function A(g,h){return g.msg=ab[h],h}function J(g){for(var h=g.length;0<=--h;)g[h]=0}function B(g){var h=g.state,l=h.pending;l>g.avail_out&&(l=g.avail_out);0!==l&&(Ua.arraySet(g.output,h.pending_buf,h.pending_out,l,g.next_out),g.next_out+=l,h.pending_out+=l,g.total_out+=l,g.avail_out-=l,h.pending-=l,0===h.pending&&(h.pending_out= +0))}function u(g,h){$a._tr_flush_block(g,0<=g.block_start?g.block_start:-1,g.strstart-g.block_start,h);g.block_start=g.strstart;B(g.strm)}function U(g,h){g.pending_buf[g.pending++]=h}function h(g,h){g.pending_buf[g.pending++]=h>>>8&255;g.pending_buf[g.pending++]=255&h}function g(g,h){var l,r,F=g.max_chain_length,w=g.strstart,u=g.prev_length,x=g.nice_match,B=g.strstart>g.w_size-qa?g.strstart-(g.w_size-qa):0,A=g.window,C=g.w_mask,z=g.prev,N=g.strstart+ma,W=A[w+u-1],E=A[w+u];g.prev_length>=g.good_match&& +(F>>=2);x>g.lookahead&&(x=g.lookahead);do if(l=h,A[l+u]===E&&A[l+u-1]===W&&A[l]===A[w]&&A[++l]===A[w+1]){w+=2;for(l++;A[++w]===A[++l]&&A[++w]===A[++l]&&A[++w]===A[++l]&&A[++w]===A[++l]&&A[++w]===A[++l]&&A[++w]===A[++l]&&A[++w]===A[++l]&&A[++w]===A[++l]&&wu){if(g.match_start=h,u=r,r>=x)break;W=A[w+u-1];E=A[w+u]}}while((h=z[h&C])>B&&0!==--F);return u<=g.lookahead?u:g.lookahead}function w(g){var h,l,r=g.w_size;do{if(l=g.window_size-g.lookahead-g.strstart,g.strstart>=r+(r- +qa)){Ua.arraySet(g.window,g.window,r,r,0);g.match_start-=r;g.strstart-=r;g.block_start-=r;var F=h=g.hash_size;do{var w=g.head[--F];g.head[F]=w>=r?w-r:0}while(--h);F=h=r;do w=g.prev[--F],g.prev[F]=w>=r?w-r:0;while(--h);l+=r}if(0===g.strm.avail_in)break;F=g.strm;w=g.window;var u=g.strstart+g.lookahead,x=F.avail_in;if(h=(x>l&&(x=l),0===x?0:(F.avail_in-=x,Ua.arraySet(w,F.input,F.next_in,x,u),1===F.state.wrap?F.adler=xa(F.adler,w,x,u):2===F.state.wrap&&(F.adler=ba(F.adler,w,x,u)),F.next_in+=x,F.total_in+= +x,x)),g.lookahead+=h,g.lookahead+g.insert>=la)for(l=g.strstart-g.insert,g.ins_h=g.window[l],g.ins_h=(g.ins_h<=la&& +(h.ins_h=(h.ins_h<=la)if(r=$a._tr_tally(h,h.strstart-h.match_start,h.match_length-la),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=la){h.match_length--;do h.strstart++,h.ins_h=(h.ins_h<=la&&(h.ins_h=(h.ins_h<=h.match_length&&(h.strategy===Ta||h.match_length===la&&4096=la&&h.match_length<=h.prev_length){F=h.strstart+h.lookahead-la;r=$a._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-la);h.lookahead-=h.prev_length-1;h.prev_length-=2;do++h.strstart<=F&&(h.ins_h=(h.ins_h<h.wrap&&(h.wrap=-h.wrap),h.status=h.wrap?da:Q,g.adler=2===h.wrap?0:1,h.last_flush=N,$a._tr_init(h),W):A(g,S)}function lb(g){var h=va(g);h===W&&(g=g.state,g.window_size=2*g.w_size,J(g.head),g.max_lazy_match=pa[g.level].max_lazy,g.good_match=pa[g.level].good_length,g.nice_match=pa[g.level].nice_length,g.max_chain_length=pa[g.level].max_chain, +g.strstart=0,g.block_start=0,g.lookahead=0,g.insert=0,g.match_length=g.prev_length=la-1,g.match_available=0,g.ins_h=0);return h}function mb(g,h,l,r,w,u){if(!g)return S;var G=1;if(h===ia&&(h=6),0>r?(G=0,r=-r):15w||w>Va||l!==Lb||8>r||15h||9u||u>La)return A(g,S);8===r&&(r=9);var x=new ha;return g.state=x,x.strm=g,x.wrap=G,x.gzhead=null,x.w_bits=r,x.w_size=1<g.pending_buf_size-5&&(l=g.pending_buf_size-5);;){if(1>=g.lookahead){if(w(g),0===g.lookahead&&h===N)return O;if(0===g.lookahead)break}g.strstart+=g.lookahead;g.lookahead=0;var r=g.block_start+l;if((0===g.strstart||g.strstart>=r)&&(g.lookahead=g.strstart-r,g.strstart=r,u(g,!1),0===g.strm.avail_out)||g.strstart-g.block_start>=g.w_size-qa&&(u(g,!1),0===g.strm.avail_out))return O}return g.insert=0,h===ka?(u(g,!0),0===g.strm.avail_out? +za:wb):(g.strstart>g.block_start&&u(g,!1),O)}),new na(4,4,8,4,C),new na(4,5,16,8,C),new na(4,6,32,32,C),new na(4,4,16,16,K),new na(8,16,32,32,K),new na(8,16,128,128,K),new na(8,32,128,256,K),new na(32,128,258,1024,K),new na(32,258,258,4096,K)];z.deflateInit=function(g,h){return mb(g,h,Lb,15,8,0)};z.deflateInit2=mb;z.deflateReset=lb;z.deflateResetKeep=va;z.deflateSetHeader=function(g,h){return g&&g.state?2!==g.state.wrap?S:(g.state.gzhead=h,W):S};z.deflate=function(g,l){var G,r;if(!g||!g.state||5< +l||0>l)return g?A(g,S):S;if(r=g.state,!g.output||!g.input&&0!==g.avail_in||666===r.status&&l!==ka)return A(g,0===g.avail_out?-5:S);if(r.strm=g,G=r.last_flush,r.last_flush=l,r.status===da)if(2===r.wrap)g.adler=0,U(r,31),U(r,139),U(r,8),r.gzhead?(U(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),U(r,255&r.gzhead.time),U(r,r.gzhead.time>>8&255),U(r,r.gzhead.time>>16&255),U(r,r.gzhead.time>>24&255),U(r,9===r.level?2:2<=r.strategy||2>r.level? +4:0),U(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(U(r,255&r.gzhead.extra.length),U(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(g.adler=ba(g.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(U(r,0),U(r,0),U(r,0),U(r,0),U(r,0),U(r,9===r.level?2:2<=r.strategy||2>r.level?4:0),U(r,3),r.status=Q);else{var x=Lb+(r.w_bits-8<<4)<<8;x|=(2<=r.strategy||2>r.level?0:6>r.level?1:6===r.level?2:3)<<6;0!==r.strstart&&(x|=32);r.status=Q;h(r,x+(31-x%31));0!==r.strstart&&(h(r,g.adler>>> +16),h(r,65535&g.adler));g.adler=1}if(69===r.status)if(r.gzhead.extra){for(x=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>x&&(g.adler=ba(g.adler,r.pending_buf,r.pending-x,x)),B(g),x=r.pending,r.pending!==r.pending_buf_size));)U(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>x&&(g.adler=ba(g.adler,r.pending_buf,r.pending-x,x));r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73=== +r.status)if(r.gzhead.name){x=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>x&&(g.adler=ba(g.adler,r.pending_buf,r.pending-x,x)),B(g),x=r.pending,r.pending===r.pending_buf_size)){var F=1;break}F=r.gzindexx&&(g.adler=ba(g.adler,r.pending_buf,r.pending-x,x));0===F&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){x=r.pending;do{if(r.pending=== +r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>x&&(g.adler=ba(g.adler,r.pending_buf,r.pending-x,x)),B(g),x=r.pending,r.pending===r.pending_buf_size)){F=1;break}F=r.gzindexx&&(g.adler=ba(g.adler,r.pending_buf,r.pending-x,x));0===F&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&B(g),r.pending+2<=r.pending_buf_size&&(U(r,255&g.adler), +U(r,g.adler>>8&255),g.adler=0,r.status=Q)):r.status=Q),0!==r.pending){if(B(g),0===g.avail_out)return r.last_flush=-1,W}else if(0===g.avail_in&&(l<<1)-(4=la&&0r.lookahead&&(r.match_length=r.lookahead)}if(r.match_length>=la?(z=$a._tr_tally(r,1,r.match_length-la),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(z=$a._tr_tally(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),z&&(u(r,!1),0===r.strm.avail_out)){z=O;break a}}z=(r.insert=0,l===ka?(u(r,!0),0===r.strm.avail_out?za:wb):r.last_lit&&(u(r,!1),0===r.strm.avail_out)?O:Vb)}else z=pa[r.level].func(r,l);if(z!== +za&&z!==wb||(r.status=666),z===O||z===za)return 0===g.avail_out&&(r.last_flush=-1),W;if(z===Vb&&(1===l?$a._tr_align(r):5!==l&&($a._tr_stored_block(r,0,0,!1),3===l&&(J(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),B(g),0===g.avail_out))return r.last_flush=-1,W}return l!==ka?W:0>=r.wrap?1:(2===r.wrap?(U(r,255&g.adler),U(r,g.adler>>8&255),U(r,g.adler>>16&255),U(r,g.adler>>24&255),U(r,255&g.total_in),U(r,g.total_in>>8&255),U(r,g.total_in>>16&255),U(r,g.total_in>>24&255)):(h(r,g.adler>>> +16),h(r,65535&g.adler)),B(g),0=l.w_size&&(0===r&&(J(l.head),l.strstart=0,l.block_start=0,l.insert= +0),u=new Ua.Buf8(l.w_size),Ua.arraySet(u,h,x-l.w_size,l.w_size,0),h=u,x=l.w_size);u=g.avail_in;var B=g.next_in;var A=g.input;g.avail_in=x;g.next_in=0;g.input=h;for(w(l);l.lookahead>=la;){h=l.strstart;x=l.lookahead-(la-1);do l.ins_h=(l.ins_h<ba&&(xa+=w[g++]<>>24,xa>>>=B,ba-=B,B=S>>>16&255,0===B)J[E++]=65535&S;else{if(!(16&B)){if(0===(64&B)){S=ab[(65535&S)+(xa&(1<>>=B,ba-=B);15>ba&&(xa+=w[g++]<>>24,xa>>>=B,ba-=B,B=S>>>16&255,!(16&B)){if(0===(64&B)){S=N[(65535&S)+(xa&(1<va){l.msg="invalid distance too far back";h.mode=30; +break a}if(xa>>>=B,ba-=B,B=E-z,u>B){if(B=u-B,B>mb&&h.sane){l.msg="invalid distance too far back";h.mode=30;break a}if(S=0,A=$a,0===Ua){if(S+=lb-B,B>3;g-=ia;ba-=ia<<3;l.next_in=g;l.next_out=E;l.avail_in=g>>24&255)+(g>>>8&65280)+((65280&g)<<8)+((255&g)<<24)}function J(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags= +0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new K.Buf16(320);this.work=new K.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function B(g){var h;return g&&g.state?(h=g.state,g.total_in=g.total_out=h.total=0,g.msg="",h.wrap&&(g.adler=1&h.wrap),h.mode=$a,h.last= +0,h.havedict=0,h.dmax=32768,h.head=null,h.hold=0,h.bits=0,h.lencode=h.lendyn=new K.Buf32(xa),h.distcode=h.distdyn=new K.Buf32(ba),h.sane=1,h.back=-1,mb):Ua}function u(g){var h;return g&&g.state?(h=g.state,h.wsize=0,h.whave=0,h.wnext=0,B(g)):Ua}function U(g,h){var l,w;return g&&g.state?(w=g.state,0>h?(l=0,h=-h):(l=(h>>4)+1,48>h&&(h&=15)),h&&(8>h||15=g.wsize?(K.arraySet(g.window,h,l-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):(u=g.wsize-g.wnext,u>w&&(u=w),K.arraySet(g.window,h,l-w,u,g.wnext),w-=u,w?(K.arraySet(g.window,h,l-w,w,0),g.wnext=w,g.whave=g.wsize):(g.wnext+=u,g.wnext===g.wsize&&(g.wnext=0),g.whaveO;){if(0===da)break a;da--;Q+=qa[ma++]<>>8&255;x.check=ha(x.check,ba,2,0);O=Q=0;x.mode=2;break}if(x.flags=0,x.head&&(x.head.done=!1),!(1&x.wrap)||(((255&Q)<<8)+(Q>>8))%31){h.msg="incorrect header check";x.mode=30;break}if(8!==(15&Q)){h.msg="unknown compression method";x.mode=30;break}if(Q>>>=4, +O-=4,N=(15&Q)+8,0===x.wbits)x.wbits=N;else if(N>x.wbits){h.msg="invalid window size";x.mode=30;break}x.dmax=1<O;){if(0===da)break a;da--;Q+=qa[ma++]<>8&1);512&x.flags&&(ba[0]=255&Q,ba[1]=Q>>>8&255,x.check=ha(x.check,ba,2,0));O=Q=0;x.mode=3;case 3:for(;32> +O;){if(0===da)break a;da--;Q+=qa[ma++]<>>8&255,ba[2]=Q>>>16&255,ba[3]=Q>>>24&255,x.check=ha(x.check,ba,4,0));O=Q=0;x.mode=4;case 4:for(;16>O;){if(0===da)break a;da--;Q+=qa[ma++]<>8);512&x.flags&&(ba[0]=255&Q,ba[1]=Q>>>8&255,x.check=ha(x.check,ba,2,0));O=Q=0;x.mode=5;case 5:if(1024&x.flags){for(;16>O;){if(0===da)break a;da--;Q+=qa[ma++]<>>8&255,x.check=ha(x.check,ba,2,0));O=Q=0}else x.head&&(x.head.extra=null);x.mode=6;case 6:if(1024&x.flags&&(u=x.length,u>da&&(u=da),u&&(x.head&&(N=x.head.extra_len-x.length,x.head.extra||(x.head.extra=Array(x.head.extra_len)),K.arraySet(x.head.extra,qa,ma,u,N)),512&x.flags&&(x.check=ha(x.check,qa,u,ma)),da-=u,ma+=u,x.length-=u),x.length))break a;x.length=0;x.mode=7;case 7:if(2048&x.flags){if(0===da)break a;u=0;do N=qa[ma+u++],x.head&&N&&65536>x.length&&(x.head.name+= +String.fromCharCode(N));while(N&&ux.length&&(x.head.comment+=String.fromCharCode(N));while(N&&uO;){if(0===da)break a;da--;Q+=qa[ma++]<>9&1,x.head.done=!0);h.adler=x.check=0;x.mode=12;break;case 10:for(;32>O;){if(0===da)break a;da--;Q+=qa[ma++]<>>=7&O;O-=7&O;x.mode=27;break}for(;3>O;){if(0===da)break a;da--; +Q+=qa[ma++]<>>=1,--O,3&Q){case 0:x.mode=14;break;case 1:var pa=x;if(ab){w=new K.Buf32(512);C=new K.Buf32(32);for(z=0;144>z;)pa.lens[z++]=8;for(;256>z;)pa.lens[z++]=9;for(;280>z;)pa.lens[z++]=7;for(;288>z;)pa.lens[z++]=8;lb(1,pa.lens,0,288,w,0,pa.work,{bits:9});for(z=0;32>z;)pa.lens[z++]=5;lb(2,pa.lens,0,32,C,0,pa.work,{bits:5});ab=!1}pa.lencode=w;pa.lenbits=9;pa.distcode=C;pa.distbits=5;if(x.mode=20,6===l){Q>>>=2;O-=2;break a}break;case 2:x.mode=17;break;case 3:h.msg="invalid block type", +x.mode=30}Q>>>=2;O-=2;break;case 14:Q>>>=7&O;for(O-=7&O;32>O;){if(0===da)break a;da--;Q+=qa[ma++]<>>16^65535)){h.msg="invalid stored block lengths";x.mode=30;break}if(x.length=65535&Q,Q=0,O=0,x.mode=15,6===l)break a;case 15:x.mode=16;case 16:if(u=x.length){if(u>da&&(u=da),u>la&&(u=la),0===u)break a;K.arraySet(db,qa,ma,u,xa);da-=u;ma+=u;la-=u;xa+=u;x.length-=u;break}x.mode=12;break;case 17:for(;14>O;){if(0===da)break a;da--;Q+=qa[ma++]<>>=5, +O-=5,x.ndist=(31&Q)+1,Q>>>=5,O-=5,x.ncode=(15&Q)+4,Q>>>=4,O-=4,286O;){if(0===da)break a;da--;Q+=qa[ma++]<>>=3;O-=3}for(;19>x.have;)x.lens[wa[x.have++]]=0;if(x.lencode=x.lendyn,x.lenbits=7,U={bits:x.lenbits},wb=lb(0,x.lens,0,19,x.lencode,0,x.work,U),x.lenbits=U.bits,wb){h.msg="invalid code lengths set";x.mode=30;break}x.have=0;x.mode= +19;case 19:for(;x.have>>24,pa=65535&ka,!(E<=O);){if(0===da)break a;da--;Q+=qa[ma++]<pa)Q>>>=E,O-=E,x.lens[x.have++]=pa;else{if(16===pa){for(z=E+2;O>>=E,O-=E,0===x.have){h.msg="invalid bit length repeat";x.mode=30;break}N=x.lens[x.have-1];u=3+(3&Q);Q>>>=2;O-=2}else if(17===pa){for(z=E+3;O>>=E;O-=E;N=0;u=3+(7&Q);Q>>>=3;O-=3}else{for(z= +E+7;O>>=E;O-=E;N=0;u=11+(127&Q);Q>>>=7;O-=7}if(x.have+u>x.nlen+x.ndist){h.msg="invalid bit length repeat";x.mode=30;break}for(;u--;)x.lens[x.have++]=N}}if(30===x.mode)break;if(0===x.lens[256]){h.msg="invalid code -- missing end-of-block";x.mode=30;break}if(x.lenbits=9,U={bits:x.lenbits},wb=lb(1,x.lens,0,x.nlen,x.lencode,0,x.work,U),x.lenbits=U.bits,wb){h.msg="invalid literal/lengths set";x.mode=30;break}if(x.distbits=6,x.distcode=x.distdyn,U={bits:x.distbits}, +wb=lb(2,x.lens,x.nlen,x.ndist,x.distcode,0,x.work,U),x.distbits=U.bits,wb){h.msg="invalid distances set";x.mode=30;break}if(x.mode=20,6===l)break a;case 20:x.mode=21;case 21:if(6<=da&&258<=la){h.next_out=xa;h.avail_out=la;h.next_in=ma;h.avail_in=da;x.hold=Q;x.bits=O;va(h,za);xa=h.next_out;db=h.output;la=h.avail_out;ma=h.next_in;qa=h.input;da=h.avail_in;Q=x.hold;O=x.bits;12===x.mode&&(x.back=-1);break}for(x.back=0;ka=x.lencode[Q&(1<>>24,z=ka>>>16&255,pa=65535&ka,!(E<=O);){if(0=== +da)break a;da--;Q+=qa[ma++]<>F)],E=ka>>>24,z=ka>>>16&255,pa=65535&ka,!(F+E<=O);){if(0===da)break a;da--;Q+=qa[ma++]<>>=F;O-=F;x.back+=F}if(Q>>>=E,O-=E,x.back+=E,x.length=pa,0===z){x.mode=26;break}if(32&z){x.back=-1;x.mode=12;break}if(64&z){h.msg="invalid literal/length code";x.mode=30;break}x.extra=15&z;x.mode=22;case 22:if(x.extra){for(z=x.extra;O>>=x.extra;O-=x.extra;x.back+=x.extra}x.was=x.length;x.mode=23;case 23:for(;ka=x.distcode[Q&(1<>>24,z=ka>>>16&255,pa=65535&ka,!(E<=O);){if(0===da)break a;da--;Q+=qa[ma++]<>F)],E=ka>>>24,z=ka>>>16&255,pa=65535&ka,!(F+E<=O);){if(0===da)break a;da--;Q+=qa[ma++]<>>=F;O-=F;x.back+=F}if(Q>>>=E,O-=E,x.back+=E,64&z){h.msg="invalid distance code";x.mode=30;break}x.offset=pa;x.extra= +15&z;x.mode=24;case 24:if(x.extra){for(z=x.extra;O>>=x.extra;O-=x.extra;x.back+=x.extra}if(x.offset>x.dmax){h.msg="invalid distance too far back";x.mode=30;break}x.mode=25;case 25:if(0===la)break a;if(u=za-la,x.offset>u){if(u=x.offset-u,u>x.whave&&x.sane){h.msg="invalid distance too far back";x.mode=30;break}u>x.wnext?(u-=x.wnext,B=x.wsize-u):B=x.wnext-u;u>x.length&&(u=x.length);z=x.window}else z=db,B=xa-x.offset,u=x.length; +u>la&&(u=la);la-=u;x.length-=u;do db[xa++]=z[B++];while(--u);0===x.length&&(x.mode=21);break;case 26:if(0===la)break a;db[xa++]=x.length;la--;x.mode=21;break;case 27:if(x.wrap){for(;32>O;){if(0===da)break a;da--;Q|=qa[ma++]<O;){if(0===da)break a; +da--;Q+=qa[ma++]<x.mode&&(27>x.mode||4!==l))&&g(h,h.output,h.next_out,za-h.avail_out)?(x.mode=31,-4):(Vb-=h.avail_in,za-=h.avail_out,h.total_in+=Vb,h.total_out+=za,x.total+=za,x.wrap&&za&&(h.adler=x.check=x.flags? +ha(x.check,db,za,h.next_out-za):na(x.check,db,za,h.next_out-za)),h.data_type=x.bits+(x.last?64:0)+(12===x.mode?128:0)+(20===x.mode||15===x.mode?256:0),(0===Vb&&0===za||4===l)&&wb===mb&&(wb=-5),wb)};z.inflateEnd=function(g){if(!g||!g.state)return Ua;var h=g.state;return h.window&&(h.window=null),g.state=null,mb};z.inflateGetHeader=function(g,h){var l;return g&&g.state?(l=g.state,0===(2&l.wrap)?Ua:(l.head=h,h.done=!1,mb)):Ua};z.inflateSetDictionary=function(h,l){var w,u,B=l.length;return h&&h.state? +(w=h.state,0!==w.wrap&&11!==w.mode?Ua:11===w.mode&&(u=1,u=na(u,l,B,0),u!==w.check)?-3:g(h,l,B,B)?(w.mode=31,-4):(w.havedict=1,mb)):Ua};z.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(l,E,z){var A=l("../utils/common"),J=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],B=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72, +78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],U=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];E.exports=function(h,g,l,z,E,na,ha,va){var w,C,K,$a,xa,ba,ab=va.bits,N,ka,W,S,ia,Ta=0,La,nb=null,Lb=0,Va=new A.Buf16(16);var fb=new A.Buf16(16);var wa=null,x=0;for(N=0;15>=N;N++)Va[N]=0;for(ka=0;kaW&&(cb=W),0=== +W)return E[na++]=20971520,E[na++]=20971520,va.bits=1,0;for(ab=1;ab=N;N++)if(w<<=1,w-=Va[N],0>w)return-1;if(0N;N++)fb[N+1]=fb[N]+Va[N];for(ka=0;ka$a?(xa=wa[x+ha[ka]],ba=nb[Lb+ha[ka]]):(xa=96,ba=0);w=1<>ia)+C]=la<<24|xa<<16|ba|0;while(0!==C);for(w=1<>=1;if(0!==w?(La&=w-1,La+=w):La=0,ka++,0===--Va[N]){if(N===W)break;N=g[l+ha[ka]]}if(N>cb&&(La&z)!==K){0===ia&&(ia=cb);fb+=ab;S=N-ia;for(w=1<=w));)S++,w<<=1;if(Ta+=1<>>8&255}function U(g,h,l){g.bi_valid>Lb-l?(g.bi_buf|=h<>Lb-g.bi_valid,g.bi_valid+=l-Lb):(g.bi_buf|=h<>>=1,l<<=1;while(0<--h);return l>>>1}function w(h,l,w){var r,u=Array(nb+1),x=0;for(r=1;r<=nb;r++)u[r]=x=x+w[r-1]<<1;for(w=0;w<=l;w++)r=h[2*w+1],0!==r&&(h[2*w]=g(u[r]++,r))}function C(g){var h;for(h=0;hG?Q[G]:Q[256+(G>>>7)],h(g,r,w),u=db[r],0!==u&&(G-=za[r],U(g,G,u)))}while(xg.heap_len;){var G=g.heap[++g.heap_len]=2>A?++A:0;r[2*G]=1;g.depth[G]=0;g.opt_len--;x&&(g.static_len-=u[2*G+1])}h.max_code=A;for(l=g.heap_len>>1;1<=l;l--)ha(g,r,l);G=B;do l=g.heap[1],g.heap[1]=g.heap[g.heap_len--],ha(g,r,1),u=g.heap[1],g.heap[--g.heap_max]=l,g.heap[--g.heap_max]=u,r[2*G]=r[2*l]+r[2*u],g.depth[G]=(g.depth[l]>=g.depth[u]?g.depth[l]:g.depth[u])+1,r[2*l+1]=r[2*u+1]=G,g.heap[1]=G++,ha(g,r,1);while(2<=g.heap_len); +g.heap[--g.heap_max]=g.heap[1];var z,C;l=h.dyn_tree;G=h.max_code;B=h.stat_desc.static_tree;var F=h.stat_desc.has_stree,E=h.stat_desc.extra_bits,J=h.stat_desc.extra_base,K=h.stat_desc.max_length,N=0;for(x=0;x<=nb;x++)g.bl_count[x]=0;l[2*g.heap[g.heap_max]+1]=0;for(h=g.heap_max+1;hK&&(x=K,N++),l[2*u+1]=x,u>G||(g.bl_count[x]++,z=0,u>=J&&(z=E[u-J]),C=l[2*u],g.opt_len+=C*(x+z),F&&(g.static_len+=C*(B[2*u+1]+z)));if(0!==N){do{for(x=K-1;0===g.bl_count[x];)x--;g.bl_count[x]--; +g.bl_count[x+1]+=2;g.bl_count[K]--;N-=2}while(0G||(l[2*z+1]!==x&&(g.opt_len+=(x-l[2*z+1])*l[2*z],l[2*z+1]=x),u--)}w(r,A,g.bl_count)}function mb(g,h,l){var r,w=-1,u=h[1],B=0,A=7,z=4;0===u&&(A=138,z=3);h[2*(l+1)+1]=65535;for(r=0;r<=l;r++){var G=u;u=h[2*(r+1)+1];++B=B?g.bl_tree[2*wa]++:g.bl_tree[2*x]++,B=0,w=G,0===u?(A=138,z=3):G===u?(A=6,z=3):(A=7,z= +4))}}function Ua(g,l,w){var r,u,B=-1,A=l[1],z=0,G=7,C=4;0===A&&(G=138,C=3);for(r=0;r<=w;r++)if(u=A,A=l[2*(r+1)+1],!(++z=z?(h(g,wa,g.bl_tree),U(g,z-3,3)):(h(g,x,g.bl_tree),U(g,z-11,7));z=0;B=u;0===A?(G=138,C=3):u===A?(G=6,C=3):(G=7,C=4)}}function $a(g){var h,l=4093624447;for(h=0;31>=h;h++,l>>>=1)if(1&l&&0!==g.dyn_ltree[2*h])return ab;if(0!==g.dyn_ltree[18]||0!==g.dyn_ltree[20]|| +0!==g.dyn_ltree[26])return N;for(h=32;hx;x++)for(Vb[x]=u,l=0;l<1<x;x++)for(za[x]=u,l=0;l<1<>=7;x= +l;)qa[2*l+1]=8,l++,z[8]++;for(;255>=l;)qa[2*l+1]=9,l++,z[9]++;for(;279>=l;)qa[2*l+1]=7,l++,z[7]++;for(;287>=l;)qa[2*l+1]=8,l++,z[8]++;w(qa,S+1,z);for(l=0;l>>3;var x=g.static_len+3+7>>>3;x<=w&&(w=x)}else w=x=l+5;if(l+4<=w&&-1!==h)xa(g,h,l,u);else if(4===g.strategy||x===w)U(g,2+(u?1:0),3),va(g,qa,da);else{U(g,4+(u?1:0),3);h=g.l_desc.max_code+1;l=g.d_desc.max_code+1;r+=1;U(g,h-257,5);U(g,l-1,5);U(g,r-4,4);for(w=0;w>>8&255,g.pending_buf[g.d_buf+2*g.last_lit+1]=255&h,g.pending_buf[g.l_buf+g.last_lit]=255&l,g.last_lit++,0===h?g.dyn_ltree[2*l]++:(g.matches++,h--,g.dyn_ltree[2*(O[l]+W+1)]++,g.dyn_dtree[2*(256>h?Q[h]:Q[256+(h>>>7)])]++),g.last_lit===g.lit_bufsize-1};z._tr_align=function(g){U(g,2,3);h(g,Va,qa);16===g.bi_valid?(u(g,g.bi_buf),g.bi_buf= +0,g.bi_valid=0):8<=g.bi_valid&&(g.pending_buf[g.pending++]=255&g.bi_buf,g.bi_buf>>=8,g.bi_valid-=8)}},{"../utils/common":3}],15:[function(l,E,z){E.exports=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}},{}],"/":[function(l,E,z){z=l("./lib/utils/common").assign;var A=l("./lib/deflate"),J=l("./lib/inflate");l=l("./lib/zlib/constants");var B={};z(B,A,J,l);E.exports= +B},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")}); +if("undefined"===typeof self||!self.constructor.name.includes("Worker")){var e=function(){function t(g){var h=[];return h[g-1]=void 0,h}function l(g,h){return A(g[0]+h[0],g[1]+h[1])}function E(g,h){var p=B(g)&B(h),v,l;return v=(~~Math.max(Math.min(g[1]/Cb,2147483647),-2147483648)&~~Math.max(Math.min(h[1]/Cb,2147483647),-2147483648))*Cb,l=p,0>p&&(l+=Cb),[l,v]}function z(g,h){var p,v;return g[0]==h[0]&&g[1]==h[1]?0:(p=0>g[1],v=0>h[1],p&&!v?-1:!p&&v?1:0>A(g[0]-h[0],g[1]-h[1])[1]?-1:1)}function A(g,h){h%= +1.8446744073709552E19;g%=1.8446744073709552E19;var p=h%Cb;var v=Math.floor(g/Cb)*Cb;h=h-p+v;for(g=g-v+p;0>g;)g+=Cb,h-=Cb;for(;4294967295h;)h+=1.8446744073709552E19;return[g,h]}function J(g){return 0<=g?[g,0]:[g+Cb,-Cb]}function B(g){return 2147483648<=g[0]?~~Math.max(Math.min(g[0]-Cb,2147483647),-2147483648):~~Math.max(Math.min(g[0],2147483647),-2147483648)}function u(g){return 30>= +g?1<g[1])throw Error("Neg");return r=u(h),v=g[1]*r%1.8446744073709552E19,l=g[0]*r,p=l-l%Cb,v+=p,l-=p,0x7fffffffffffffff<=v&&(v-=1.8446744073709552E19),[l,v]}function h(g,h){var p;return h&=63,p=u(h),A(Math.floor(g[0]/p),g[1]/p)}function g(g,h){return g.Mc=h,g.Lc=0,g.Yb=h.length,g}function w(g){return g.Lc>=g.Yb?-1:255&g.Mc[g.Lc++]}function C(g){return g.Mc=t(32),g.Yb=0,g}function K(g){var h=g.Mc;return h.length= +g.Yb,h}function na(g,h,l,r,t){for(var p=0;t>p;++p)l[r+p]=g[h+p]}function ha(p,l,r){p.Nb=C({});var v=g({},l),u=p.Nb,H=J(l.length);if(0>z(H,Oc))throw Error("invalid length "+H);p.Tb=H;l={};var w;l.v=t(4);l.a=[];l.d={};l.C=t(192);l.bb=t(12);l.hb=t(12);l.Ub=t(12);l.vc=t(12);l._=t(192);l.K=[];l.Sb=t(114);l.S=zb({},4);l.$=wb({});l.i=wb({});l.A={};l.m=[];l.P=[];l.lb=[];l.nc=t(16);l.x=t(4);l.Q=t(4);l.Xb=[bb];l.uc=[bb];l.Kc=[0];l.fc=t(5);l.yc=t(128);l.vb=0;l.X=1;l.D=0;l.Hb=-1;for(w=l.mb=0;4096>w;++w)l.a[w]= +{};for(w=0;4>w;++w)l.K[w]=zb({},6);w=1<1<>24;for(r=0;4>r;++r)l.fc[1+r]=l.ab>>8*r<<24>>24;na(l.fc,0,u.Mc,u.Yb,5);u.Yb+=5;for(r=0;64>r;r+=8)w=255&B(h(H,r)),u.Mc[u.Yb++]=w<<24>>24;l.W=0;l.oc=v;l.pc=0;l.b||(v={},H=4,l.X||(H=2),v.qb=2H;++H){w=v.V;A=H;var F={};F=(F.tb=t(768),F);w[A]=F}if(l.ab!=l.wb||l.Hb!=l.n)v=l.b,H=l.ab,r=l.n,1073741567>H&&(v.Fc=16+(r>>1),A=H+4096,w=r+274,v.Bc=A,v._b=w,A=A+w+(~~((H+4096+r+274)/2)+256),(null==v.c||v.Kb!=A)&&(v.c=null,v.Kb=A,v.c=t(v.Kb)),v.H=v.Kb-w,v.ob=r,r=H+1,v.p!=r&&(v.L=t(2*(v.p=r))),r=65536,v.qb&&(r=H-1,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r>>=1,r|=65535,16777216>=1),v.Ec=r,++r,r+=v.R),r!=v.rc&&(v.ub=t(v.rc=r))), +l.wb=l.ab,l.Hb=l.n;l.d.Ab=u;l.l=0;for(u=l.J=0;4>u;++u)l.v[u]=0;u=l.d;u.mc=bb;u.xc=bb;u.E=-1;u.Jb=1;u.Oc=0;Pa(l.C);Pa(l._);Pa(l.bb);Pa(l.hb);Pa(l.Ub);Pa(l.vc);Pa(l.Sb);u=l.A;H=1<v;++v)Pa(u.V[v].tb);for(u=0;4>u;++u)Pa(l.K[u].G);O(l.$,1<u;++u){if(x=w(p),-1==x)throw Error("truncated input");z[u]=x<<24>>24}l={B:{},e:{}};l.Gb=t(192);l.Zb=t(12);l.Cb=t(12);l.Db=t(12);l.Eb=t(12);l.pb=t(192);l.kb=t(4);l.kc=t(114);l.Fb=r({},4);l.Rb=Lb({});l.sb=Lb({});l.gb={};for(u=0;4>u;++u)l.kb[u]=r({},6);var F;if(5>z.length)u=0;else{u=255&z[0];var G=u%9;u=~~(u/9);var E=u%5;var T=~~(u/5);for(F=u=0;4>F;++F)u+=(255&z[1+F])<<8*F;if(!(z=99999999G;++G){F=z.V;var L=G;var K={};K=(K.Ib=t(768),K);F[L]=K}T=1<u?u=0:(l.Ob!=u&&(l.Ob=u,l.nb=Math.max(l.Ob,1),u=l.B,T=Math.max(l.nb,4096),null!=u.Lb&&u.M==T||(u.Lb=t(T)),u.M=T,u.o=0,u.h=0),u=1)}if(!u)throw Error("corrupted input");for(u=0;64>u;u+=8){if(x=w(p),-1==x)throw Error("truncated input");x=x.toString(16);1==x.length&&(x="0"+x);A=x+""+A}/^0+$|^f+$/i.test(A)?h.Tb=Oc:(B=parseInt(A,16),h.Tb=4294967295p;++p)Pa(v.V[p].Ib);for(v=0;4>v;++v)Pa(l.kb[v].G);Va(l.Rb);Va(l.sb);Pa(l.Fb.G);v=l.e;v.Bb=0;v.E=-1;for(p=0;5>p;++p)v.Bb=v.Bb<<8|w(v.Ab);l.U=0;l.ib=0;l.Jc=0;l.Ic=0;l.Qc=0;l.Nc=x;l.g=bb;l.jc=0;v={};l=(v.Z=l,v.cb=null,v.zc=1,v);h.yb=l;return h}function lb(g,h){return g.c[g.f+g.o+h]}function mb(g,h,l,r){g.T&&g.o+h+r>g.h&&(r=g.h-(g.o+h));++l;var p=g.f+g.o+ +h;for(h=0;r>h&&g.c[p+h]==g.c[p+h-l];++h);return h}function Ua(g){return g.h-g.o}function $a(g){var h,p,l;if(!g.T)for(;l=-g.f+g.Kb-g.h,l;){var r=g.cc,u=l;if(h=r.Lc>=r.Yb?-1:(u=Math.min(u,r.Yb-r.Lc),na(r.Mc,r.Lc,g.c,g.f+g.h,u),r.Lc+=u,u),-1==h)return g.zb=g.h,p=g.f+g.zb,p>g.H&&(g.zb=g.H-g.f),void(g.T=1);g.h+=h;g.h>=g.o+g._b&&(g.zb=g.h-g._b)}}function xa(g,h){g.f+=h;g.zb-=h;g.o-=h;g.h-=h}function ba(g){var h;++g.k>=g.p&&(g.k=0);++g.o;if(g.o>g.zb){var p=g.f+g.o;if(p>g.H){var l=g.f+g.o-g.Bc;0p;++p)g.c[p]=g.c[l+p];g.f-=l}$a(g)}1073741823==g.o&&(h=g.o-g.p,ab(g.L,2*g.p,h),ab(g.ub,g.rc,h),xa(g,h))}function ab(g,h,l){var p;for(p=0;h>p;++p){var v=g[p]||0;l>=v?v=0:v-=l;g[p]=v}}function N(g,h){var p,l,v,r,u,t,w,x,z,B;do{if(g.h>=g.o+g.ob)var A=g.ob;else if(A=g.h-g.o,g.xb>A){ba(g);continue}var F=g.o>g.p?g.o-g.p:0;var C=g.f+g.o;g.qb?(B=Pc[255&g.c[C]]^255&g.c[C+1],r=1023&B,g.ub[r]=g.o,B^=(255&g.c[C+2])<<8,u=65535&B,g.ub[1024+u]=g.o,t=(B^Pc[255&g.c[C+3]]<<5)&g.Ec):t=255&g.c[C]^ +(255&g.c[C+1])<<8;var G=g.ub[g.R+t];g.ub[g.R+t]=g.o;var E=(g.k<<1)+1;var J=g.k<<1;var L=x=g.w;for(p=g.Fc;;){if(F>=G||0==p--){g.L[E]=g.L[J]=0;break}if(v=g.o-G,l=(g.k>=v?g.k-v:g.k-v+g.p)<<1,z=g.f+G,w=x>L?L:x,g.c[z+w]==g.c[C+w]){for(;++w!=A&&g.c[z+w]==g.c[C+w];);if(w==A){g.L[J]=g.L[l];g.L[E]=g.L[l+1];break}}(255&g.c[C+w])>(255&g.c[z+w])?(g.L[J]=G,J=l+1,G=g.L[J],x=w):(g.L[E]=G,E=l,G=g.L[E],L=w)}ba(g)}while(0!=--h)}function ka(g){var h=g.o-g.h;if(h){var p=g.cc;na(g.Lb,g.h,p.Mc,p.Yb,h);p.Yb+=h;g.o>=g.M&& +(g.o=0);g.h=g.o}}function W(g,h){h=g.o-h-1;return 0>h&&(h+=g.M),g.Lb[h]}function S(g){return g-=2,4>g?g:3}function ia(g){return 4>g?0:10>g?g-3:g-6}function Ta(g){if(!g.zc)throw Error("bad state");if(g.cb){a:{var h=g.cb,p=g.cb.Xb,r=g.cb.uc,u=g.cb.Kc,t,C;p[0]=bb;r[0]=bb;u[0]=1;if(h.oc){h.b.cc=h.oc;var G=h.b;G.f=0;G.o=0;G.h=0;G.T=0;$a(G);G.k=0;xa(G,-1);h.W=1;h.oc=null}if(!h.pc){h.pc=1;var E=G=h.g;if(E[0]==bb[0]&&E[1]==bb[1]){if(!Ua(h.b)){cb(h,B(h.g));break a}qa(h);var K=B(h.g)&h.y;kb(h.d,h.C,(h.l<<4)+ +K,0);h.l=ia(h.l);E=lb(h.b,-h.s);sa(F(h.A,B(h.g),h.J),h.d,E);h.J=E;--h.s;h.g=l(h.g,wd)}if(Ua(h.b))for(;;){if(t=db(h,B(h.g)),C=h.mb,K=B(h.g)&h.y,E=(h.l<<4)+K,1==t&&-1==C){kb(h.d,h.C,E,0);E=lb(h.b,-h.s);var N=F(h.A,B(h.g),h.J);if(7>h.l)sa(N,h.d,E);else{var O=lb(h.b,-h.v[0]-1-h.s);var T=void 0;var U;var aa=h.d;var ba=O,la=E,ha=1,ma=1;for(U=7;0<=U;--U){var M=la>>U&1;O=ma;ha&&(T=ba>>U&1,O+=1+T<<8,ha=T==M);kb(aa,N.tb,O,M);ma=ma<<1|M}}h.J=E;h.l=ia(h.l)}else{if(kb(h.d,h.C,E,1),4>C){if(kb(h.d,h.bb,h.l,1),C? +(kb(h.d,h.hb,h.l,1),1==C?kb(h.d,h.Ub,h.l,0):(kb(h.d,h.Ub,h.l,1),kb(h.d,h.vc,h.l,C-2))):(kb(h.d,h.hb,h.l,0),1==t?kb(h.d,h._,E,0):kb(h.d,h._,E,1)),1==t?h.l=7>h.l?9:11:(za(h.i,h.d,t-2,K),h.l=7>h.l?8:11),E=h.v[C],0!=C){for(T=C;1<=T;--T)h.v[T]=h.v[T-1];h.v[0]=E}}else{kb(h.d,h.bb,h.l,0);h.l=7>h.l?7:10;za(h.$,h.d,t-2,K);C-=4;T=Q(C);E=S(t);mc(h.K[E],h.d,T);if(4<=T)if(aa=(T>>1)-1,N=(2|1&T)<T)for(E=h.Sb,T=N-T-1,N=h.d,M=O,ba=1,O=0;aa>O;++O)U=1&M,kb(N,E,T+ba,U),ba=ba<<1|U,M>>=1;else ke(h.d,O>>4, +aa-4),ib(h.S,h.d,15&O),++h.Qb;E=C;for(T=3;1<=T;--T)h.v[T]=h.v[T-1];h.v[0]=E;++h.Mb}h.J=lb(h.b,t-1-h.s)}if(h.s-=t,h.g=l(h.g,J(t)),!h.s){128<=h.Mb&&x(h);16<=h.Qb&&wa(h);p[0]=h.g;E=h.d;E=l(l(J(E.Jb),E.mc),[4,0]);if(r[0]=E,!Ua(h.b)){cb(h,B(h.g));break a}E=h.g;E=A(E[0]-G[0],E[1]-G[1]);if(0<=z(E,[4096,0])){h.pc=0;u[0]=0;break a}}}else cb(h,B(h.g))}}g.Pb=g.cb.Xb[0];g.cb.Kc[0]&&(t=g.cb,da(t),t.d.Ab=null,g.zc=0)}else{a:{t=g.Z;if(T=B(t.g)&t.Dc,ob(t.e,t.Gb,(t.U<<4)+T)){if(ob(t.e,t.Zb,t.U))h=0,ob(t.e,t.Cb,t.U)? +(ob(t.e,t.Db,t.U)?(ob(t.e,t.Eb,t.U)?(E=t.Qc,t.Qc=t.Ic):E=t.Ic,t.Ic=t.Jc):E=t.Jc,t.Jc=t.ib,t.ib=E):ob(t.e,t.pb,(t.U<<4)+T)||(t.U=7>t.U?9:11,h=1),h||(h=nb(t.sb,t.e,T)+2,t.U=7>t.U?8:11);else if(t.Qc=t.Ic,t.Ic=t.Jc,t.Jc=t.ib,h=2+nb(t.Rb,t.e,T),t.U=7>t.U?7:10,G=L(t.kb[S(h)],t.e),4<=G)if(p=(G>>1)-1,t.ib=(2|1&G)<G){C=t.ib;K=t.kc;r=t.ib-G-1;u=t.e;T=1;for(E=N=0;p>E;++E)G=ob(u,K,r+T),T<<=1,T+=G,N|=G<>>=1,u=K.Bb-K.E>>>31,K.Bb-=K.E&u-1,r=r<<1|1-u, +-16777216&K.E||(K.Bb=K.Bb<<8|w(K.Ab),K.E<<=8);t.ib=C+(r<<4);C=t.ib;K=t.Fb;p=t.e;G=1;for(u=E=0;K.F>u;++u)r=ob(p,K.G,G),G<<=1,G+=r,E|=r<t.ib){t=-1==t.ib?1:-1;break a}}else t.ib=G;if(0<=z(J(t.ib),t.g)||t.ib>=t.nb){t=-1;break a}C=t.B;K=h;p=C.o-t.ib-1;for(0>p&&(p+=C.M);0!=K;--K)p>=C.M&&(p=0),C.Lb[C.o++]=C.Lb[p++],C.o>=C.M&&ka(C);t.g=l(t.g,J(h));t.jc=W(t.B,0)}else{C=t.gb;K=B(t.g);C=C.V[((K&C.qc)<>>8-C.u)];if(7>t.U){K=t.e;h=1;do h=h<<1|ob(K,C.Ib,h);while(256>h);C=h<<24>> +24}else{K=t.e;h=W(t.B,t.ib);p=1;do if(u=h>>7&1,h<<=1,r=ob(K,C.Ib,(1+u<<8)+p),p=p<<1|r,u!=r){for(;256>p;)p=p<<1|ob(K,C.Ib,p);break}while(256>p);C=p<<24>>24}t.jc=C;C=t.B;K=t.jc;C.Lb[C.o++]=K;C.o>=C.M&&ka(C);t.U=ia(t.U);t.g=l(t.g,wd)}t=0}if(-1==t)throw Error("corrupted input");g.Pb=Oc;g.Pc=g.Z.g;if(t||0<=z(g.Z.Nc,bb)&&0<=z(g.Z.g,g.Z.Nc))ka(g.Z.B),t=g.Z.B,ka(t),t.cc=null,g.Z.e.Ab=null,g.zc=0}return g.zc}function La(g,h){for(;h>g.O;++g.O)g.ec[g.O]=r({},3),g.hc[g.O]=r({},3)}function nb(g,h,l){return ob(h, +g.wc,0)?8+(ob(h,g.wc,1)?8+L(g.tc,h):L(g.hc[l],h)):L(g.ec[l],h)}function Lb(g){return g.wc=t(2),g.ec=t(16),g.hc=t(16),g.tc=r({},8),g.O=0,g}function Va(g){Pa(g.wc);for(var h=0;g.O>h;++h)Pa(g.ec[h].G),Pa(g.hc[h].G);Pa(g.tc.G)}function fb(g,h){g.jb=h;var p=g.a[h].r;var l=g.a[h].j;do{if(g.a[h].t){var v=g.a[p];v.j=-1;v.t=0;g.a[p].r=p-1;g.a[h].Ac&&(g.a[p-1].t=0,g.a[p-1].r=g.a[h].r2,g.a[p-1].j=g.a[h].j2)}var r=p;v=l;l=g.a[r].j;p=g.a[r].r;g.a[r].j=v;g.a[r].r=h;h=r}while(0h;++h){var p=g.nc,l=h,r,t=g.S,u=h,w=1,x=0;for(r=t.F;0!=r;--r){var z=1&u;u>>>=1;x+=hb(t.G[w],z);w=w<<1|z}p[l]=x}g.Qb=0}function x(g){var h;for(h=4;128>h;++h){var p=Q(h);var l=(p>>1)-1;var r=(2|1&p)<>>=1,B+=eb[(2047&(g.Sb[r-p-1+z]-w^-w))>>>2],z=z<<1|w;t[u]=B}for(r=0;4>r;++r){h=g.K[r];t=r<<6;for(p=0;g.$b>p;++p)g.P[t+p]=aa(h,p);for(p=14;g.$b>p;++p)g.P[t+p]+=(p>>1)-1-4<<6;p=128*r;for(h=0;4>h;++h)g.lb[p+h]=g.P[t+h]; +for(;128>h;++h)g.lb[p+h]=g.P[t+Q(h)]+g.yc[h]}g.Mb=0}function cb(g,h){da(g);h&=g.y;g.Gc&&(kb(g.d,g.C,(g.l<<4)+h,1),kb(g.d,g.bb,g.l,0),g.l=7>g.l?7:10,za(g.$,g.d,0,h),h=S(2),mc(g.K[h],g.d,63),ke(g.d,67108863,26),ib(g.S,g.d,15));for(h=0;5>h;++h)nc(g.d)}function db(g,h){var l,p,v,r,t,u,w,x,z,B,A,C,E,J,K,L,O,M,Q,U,W,S,aa,ba,da,ha,ka,va;if(g.jb!=g.q)return B=g.a[g.q].r-g.q,g.mb=g.a[g.q].j,g.q=g.a[g.q].r,B;if(g.q=g.jb=0,g.N?(z=g.vb,g.N=0):z=qa(g),B=g.D,O=Ua(g.b)+1,2>O)return g.mb=-1,1;273u;++u)g.x[u]=g.v[u],g.Q[u]=mb(g.b,-1,g.x[u],273),g.Q[u]>g.Q[w]&&(w=u);if(g.Q[w]>=g.n)return g.mb=w,B=g.Q[w],h=B-1,0=g.n)return g.mb=g.m[B-1]+4,h=z-1,0z&&t!=J&&2>g.Q[w])return g.mb=-1,1;g.a[0].Hc=g.l;var na=h&g.y;g.a[1].z=eb[g.C[(g.l<<4)+na]>>>2]+G(F(g.A,h,g.J),7<=g.l,J,t);var sa=g.a[1];sa.j=-1;sa.t=0;sa=eb[2048-g.C[(g.l<<4)+na]>>>2];var wa=sa+eb[2048-g.bb[g.l]>>>2];if(J==t){var xa=g.l;xa=wa+(eb[g.hb[xa]>>> +2]+eb[g._[(xa<<4)+na]>>>2]);g.a[1].z>xa&&(g.a[1].z=xa,u=g.a[1],u.j=0,u.t=0)}if(x=z>=g.Q[w]?z:g.Q[w],2>x)return g.mb=g.a[1].j,1;g.a[1].r=0;g.a[0].bc=g.x[0];g.a[0].ac=g.x[1];g.a[0].dc=g.x[2];g.a[0].lc=g.x[3];w=x;do g.a[w--].z=268435455;while(2<=w);for(u=0;4>u;++u)if(E=g.Q[u],!(2>E)){var za=wa+ma(g,u,g.l,na);do{var pa=za+g.i.Cc[272*na+(E-2)];var ta=g.a[E];ta.z>pa&&(ta.z=pa,ta.r=0,ta.j=u,ta.t=0)}while(2<=--E)}if(E=sa+eb[g.bb[g.l]>>>2],w=2<=g.Q[0]?g.Q[0]+1:2,z>=w){for(z=0;w>g.m[z];)z+=2;for(;l=g.m[z+1], +pa=E+la(g,l,w,na),ta=g.a[w],ta.z>pa&&(ta.z=pa,ta.r=0,ta.j=l+4,ta.t=0),w!=g.m[z]||(z+=2,z!=B);++w);}for(l=0;;){if(++l,l==x)return fb(g,l);if(K=qa(g),B=g.D,K>=g.n)return g.vb=K,g.N=1,fb(g,l);if(++h,W=g.a[l].r,g.a[l].t?(--W,g.a[l].Ac?(S=g.a[g.a[l].r2].Hc,S=4>g.a[l].j2?7>S?8:11:7>S?7:10):S=g.a[W].Hc,S=ia(S)):S=g.a[W].Hc,W==l-1?S=g.a[l].j?ia(S):7>S?9:11:(g.a[l].t&&g.a[l].Ac?(W=g.a[l].r2,U=g.a[l].j2,S=7>S?8:11):(U=g.a[l].j,S=4>U?7>S?8:11:7>S?7:10),Q=g.a[W],4>U?U?1==U?(g.x[0]=Q.ac,g.x[1]=Q.bc,g.x[2]=Q.dc, +g.x[3]=Q.lc):2==U?(g.x[0]=Q.dc,g.x[1]=Q.bc,g.x[2]=Q.ac,g.x[3]=Q.lc):(g.x[0]=Q.lc,g.x[1]=Q.bc,g.x[2]=Q.ac,g.x[3]=Q.dc):(g.x[0]=Q.bc,g.x[1]=Q.ac,g.x[2]=Q.dc,g.x[3]=Q.lc):(g.x[0]=U-4,g.x[1]=Q.bc,g.x[2]=Q.ac,g.x[3]=Q.dc)),g.a[l].Hc=S,g.a[l].bc=g.x[0],g.a[l].ac=g.x[1],g.a[l].dc=g.x[2],g.a[l].lc=g.x[3],r=g.a[l].z,t=lb(g.b,-1),J=lb(g.b,-g.x[0]-1-1),na=h&g.y,p=r+eb[g.C[(S<<4)+na]>>>2]+G(F(g.A,h,lb(g.b,-2)),7<=S,J,t),L=g.a[l+1],z=0,L.z>p&&(L.z=p,L.r=l,L.j=-1,L.t=0,z=1),sa=r+eb[2048-g.C[(S<<4)+na]>>>2],wa= +sa+eb[2048-g.bb[S]>>>2],J!=t||l>L.r&&!L.j||(xa=wa+(eb[g.hb[S]>>>2]+eb[g._[(S<<4)+na]>>>2]),L.z>=xa&&(L.z=xa,L.r=l,L.j=0,L.t=0,z=1)),M=Ua(g.b)+1,M=M>4095-l?4095-l:M,O=M,!(2>O)){if(O>g.n&&(O=g.n),!z&&J!=t&&(aa=Math.min(M-1,g.n),C=mb(g.b,0,g.x[0],aa),2<=C)){u=ia(S);ta=h+1&g.y;pa=p+eb[2048-g.C[(u<<4)+ta]>>>2]+eb[2048-g.bb[u]>>>2];for(za=l+1+C;za>x;)g.a[++x].z=268435455;pa+=(ba=g.i.Cc[272*ta+(C-2)],ba+ma(g,0,u,ta));ta=g.a[za];ta.z>pa&&(ta.z=pa,ta.r=l+1,ta.j=0,ta.t=1,ta.Ac=0)}w=2;for(z=0;4>z;++z)if(A=mb(g.b, +-1,g.x[z],O),!(2>A)){E=A;do{for(;l+A>x;)g.a[++x].z=268435455;pa=wa+(da=g.i.Cc[272*na+(A-2)],da+ma(g,z,S,na));ta=g.a[l+A];ta.z>pa&&(ta.z=pa,ta.r=l,ta.j=z,ta.t=0)}while(2<=--A);if(A=E,z||(w=A+1),M>A&&(aa=Math.min(M-1-A,g.n),C=mb(g.b,A,g.x[z],aa),2<=C)){u=7>S?8:11;ta=h+A&g.y;pa=wa+(ha=g.i.Cc[272*na+(A-2)],ha+ma(g,z,S,na))+eb[g.C[(u<<4)+ta]>>>2]+G(F(g.A,h+A,lb(g.b,A-1-1)),1,lb(g.b,A-1-(g.x[z]+1)),lb(g.b,A-1));u=ia(u);ta=h+A+1&g.y;pa+=eb[2048-g.C[(u<<4)+ta]>>>2];pa+=eb[2048-g.bb[u]>>>2];for(za=A+1+C;l+ +za>x;)g.a[++x].z=268435455;pa+=(ka=g.i.Cc[272*ta+(C-2)],ka+ma(g,0,u,ta));ta=g.a[l+za];ta.z>pa&&(ta.z=pa,ta.r=l+A+1,ta.j=0,ta.t=1,ta.Ac=1,ta.r2=l,ta.j2=z)}}if(K>O){K=O;for(B=0;K>g.m[B];B+=2);g.m[B]=K;B+=2}if(K>=w){for(E=sa+eb[g.bb[S]>>>2];l+K>x;)g.a[++x].z=268435455;for(z=0;w>g.m[z];)z+=2;for(A=w;;++A)if(v=g.m[z+1],pa=E+la(g,v,A,na),ta=g.a[l+A],ta.z>pa&&(ta.z=pa,ta.r=l,ta.j=v+4,ta.t=0),A==g.m[z]){if(M>A&&(aa=Math.min(M-1-A,g.n),C=mb(g.b,A,v,aa),2<=C)){u=7>S?7:10;ta=h+A&g.y;pa=pa+eb[g.C[(u<<4)+ta]>>> +2]+G(F(g.A,h+A,lb(g.b,A-1-1)),1,lb(g.b,A-(v+1)-1),lb(g.b,A-1));u=ia(u);ta=h+A+1&g.y;pa+=eb[2048-g.C[(u<<4)+ta]>>>2];pa+=eb[2048-g.bb[u]>>>2];for(za=A+1+C;l+za>x;)g.a[++x].z=268435455;pa+=(va=g.i.Cc[272*ta+(C-2)],va+ma(g,0,u,ta));ta=g.a[l+za];ta.z>pa&&(ta.z=pa,ta.r=l+A+1,ta.j=0,ta.t=1,ta.Ac=1,ta.r2=l,ta.j2=v+4)}if(z+=2,z==B)break}}}}}function la(g,h,l,r){var p,v=S(l);return p=128>h?g.lb[128*v+h]:g.P[(v<<6)+(131072>h?oc[h>>6]+12:134217728>h?oc[h>>16]+32:oc[h>>26]+52)]+g.nc[15&h],p+g.$.Cc[272*r+(l-2)]} +function ma(g,h,l,r){var p;return h?(p=eb[2048-g.hb[l]>>>2],1==h?p+=eb[g.Ub[l]>>>2]:(p+=eb[2048-g.Ub[l]>>>2],p+=hb(g.vc[l],h-2))):(p=eb[g.hb[l]>>>2],p+=eb[2048-g._[(l<<4)+r]>>>2]),p}function qa(g){var h=0;a:{var l=g.b;var p=g.m,r,t,u,w,x,z,A,B;if(l.h>=l.o+l.ob)var C=l.ob;else if(C=l.h-l.o,l.xb>C){l=(ba(l),0);break a}var E=0;var F=l.o>l.p?l.o-l.p:0;var G=l.f+l.o;var J=1;var K=x=0;l.qb?(t=Pc[255&l.c[G]]^255&l.c[G+1],x=1023&t,t^=(255&l.c[G+2])<<8,K=65535&t,z=(t^Pc[255&l.c[G+3]]<<5)&l.Ec):z=255&l.c[G]^ +(255&l.c[G+1])<<8;t=l.ub[l.R+z]||0;l.qb&&(r=l.ub[x]||0,u=l.ub[1024+K]||0,l.ub[x]=l.o,l.ub[1024+K]=l.o,r>F&&l.c[l.f+r]==l.c[G]&&(p[E++]=J=2,p[E++]=l.o-r-1),u>F&&l.c[l.f+u]==l.c[G]&&(u==r&&(E-=2),p[E++]=J=3,p[E++]=l.o-u-1,r=u),0!=E&&r==t&&(E-=2,J=1));l.ub[l.R+z]=l.o;z=(l.k<<1)+1;var L=l.k<<1;x=K=l.w;0!=l.w&&t>F&&l.c[l.f+t+l.w]!=l.c[G+l.w]&&(p[E++]=J=l.w,p[E++]=l.o-t-1);for(r=l.Fc;;){if(F>=t||0==r--){l.L[z]=l.L[L]=0;break}if(w=l.o-t,u=(l.k>=w?l.k-w:l.k-w+l.p)<<1,B=l.f+t,A=K>x?x:K,l.c[B+A]==l.c[G+A]){for(;++A!= +C&&l.c[B+A]==l.c[G+A];);if(A>J&&(p[E++]=J=A,p[E++]=w-1,A==C)){l.L[L]=l.L[u];l.L[z]=l.L[u+1];break}}(255&l.c[G+A])>(255&l.c[B+A])?(l.L[L]=t,L=u+1,t=l.L[L],K=A):(l.L[z]=t,z=u,t=l.L[z],x=A)}l=(ba(l),E)}return g.D=l,0g?oc[g]:2097152>g?oc[g>>10]+20:oc[g>>20]+40}function O(g,h){Pa(g.db);for(var l=0;h>l;++l)Pa(g.Vb[l].G),Pa(g.Wb[l].G);Pa(g.ic.G)}function Vb(g,h,l, +r,t){var p;var v=eb[g.db[0]>>>2];var u=eb[2048-g.db[0]>>>2];var w=u+eb[g.db[1]>>>2];u+=eb[2048-g.db[1]>>>2];for(p=0;8>p;++p){if(p>=l)return;r[t+p]=v+aa(g.Vb[h],p)}for(;16>p;++p){if(p>=l)return;r[t+p]=w+aa(g.Wb[h],p-8)}for(;l>p;++p)r[t+p]=u+aa(g.ic,p-8-8)}function za(g,h,l,r){8>l?(kb(h,g.db,0,0),mc(g.Vb[r],h,l)):(l-=8,kb(h,g.db,0,1),8>l?(kb(h,g.db,1,0),mc(g.Wb[r],h,l)):(kb(h,g.db,1,1),mc(g.ic,h,l-8)));0==--g.sc[r]&&(Vb(g,r,g.rb,g.Cc,272*r),g.sc[r]=g.rb)}function wb(g){g.db=t(2);g.Vb=t(16);g.Wb=t(16); +g.ic=zb({},8);for(var h=0;16>h;++h)g.Vb[h]=zb({},3),g.Wb[h]=zb({},3);return g.Cc=[],g.sc=[],g}function pa(g,h){for(var l=0;h>l;++l)Vb(g,l,g.rb,g.Cc,272*l),g.sc[l]=g.rb}function F(g,h,l){return g.V[((h&g.qc)<>>8-g.u)]}function sa(g,h,l){var p,r=1;for(p=7;0<=p;--p){var v=l>>p&1;kb(h,g.tb,r,v);r=r<<1|v}}function G(g,h,l,r){var p,v,t=1,u=7,w=0;if(h)for(;0<=u;--u)if(v=l>>u&1,p=r>>u&1,w+=hb(g.tb[(1+v<<8)+t],p),t=t<<1|p,v!=p){--u;break}for(;0<=u;--u)p=r>>u&1,w+=hb(g.tb[t],p),t=t<<1|p;return w} +function r(g,h){return g.F=h,g.G=t(1<>>p&1;kb(h,g.G,r,v);r=r<<1|v}}function aa(g,h){var l,p=1,r=0;for(l=g.F;0!=l;){--l;var v=h>>>l&1;r+=hb(g.G[p],v);p=(p<<1)+v}return r}function ib(g,h,l){var p,r=1;for(p=0;g.F>p;++p){var v=1&l;kb(h,g.G,r,v);r=r<<1|v;l>>=1}}function ob(g,h,l){var p,r=h[l];return p=(g.E>>>11)* +r,(-2147483648^p)>(-2147483648^g.Bb)?(g.E=p,h[l]=r+(2048-r>>>5)<<16>>16,-16777216&g.E||(g.Bb=g.Bb<<8|w(g.Ab),g.E<<=8),0):(g.E-=p,g.Bb-=p,h[l]=r-(r>>>5)<<16>>16,-16777216&g.E||(g.Bb=g.Bb<<8|w(g.Ab),g.E<<=8),1)}function Pa(g){for(var h=g.length-1;0<=h;--h)g[h]=1024}function kb(g,h,r,t){var p=h[r];var v=(g.E>>>11)*p;t?(g.xc=l(g.xc,E(J(v),[4294967295,0])),g.E-=v,h[r]=p-(p>>>5)<<16>>16):(g.E=v,h[r]=p+(2048-p>>>5)<<16>>16);-16777216&g.E||(g.E<<=8,nc(g))}function ke(g,h,r){for(--r;0<=r;--r)g.E>>>=1,1==(h>>> +r&1)&&(g.xc=l(g.xc,J(g.E))),-16777216&g.E||(g.E<<=8,nc(g))}function nc(g){var p=g.xc;var r=32,t;p=(r&=63,t=h(p,r),0>p[1]&&(t=l(t,U([2,0],63-r))),t);r=B(p);if(0!=r||0>z(g.xc,[4278190080,0])){g.mc=l(g.mc,J(g.Jb));p=g.Oc;do t=g.Ab,p+=r,t.Mc[t.Yb++]=p<<24>>24,p=255;while(0!=--g.Jb);g.Oc=B(g.xc)>>>24}++g.Jb;g.xc=U(E(g.xc,[16777215,0]),8)}function hb(g,h){return eb[(2047&(g-h^-h))>>>2]}function Ld(g){for(var h,l,p,r=0,t=0,u=g.length,w=[],x=[];u>r;++r,++t){if(h=255&g[r],128&h)if(192==(224&h)){if(r+1>=u|| +(l=255&g[++r],128!=(192&l)))return g;x[t]=(31&h)<<6|63&l}else{if(224!=(240&h)||r+2>=u||(l=255&g[++r],128!=(192&l))||(p=255&g[++r],128!=(192&p)))return g;x[t]=(15&h)<<12|(63&l)<<6|63&p}else{if(!h)return g;x[t]=h}16383==t&&(w.push(String.fromCharCode.apply(String,x)),t=-1)}return 0l;++l)p[h++]=g.charCodeAt(l);for(l=0;t>l;++l)g=p[l],1<=g&&127>= +g?++r:r+=!g||128<=g&&2047>=g?2:3;h=[];for(l=r=0;t>l;++l)g=p[l],1<=g&&127>=g?h[r++]=g<<24>>24:!g||128<=g&&2047>=g?(h[r++]=(192|g>>6&31)<<24>>24,h[r++]=(128|63&g)<<24>>24):(h[r++]=(224|g>>12&15)<<24>>24,h[r++]=(128|g>>6&63)<<24>>24,h[r++]=(128|63&g)<<24>>24);return h}function Hb(g){return g[1]+g[0]}var Mb="function"==typeof setImmediate?setImmediate:setTimeout,Cb=4294967296,Oc=[4294967295,-Cb],Vc=[0,-9223372036854775808],bb=[0,0],wd=[1,0],Pc=function(){var g,h,l=[];for(g=0;256>g;++g){var r=g;for(h= +0;8>h;++h)0!=(1&r)?r=r>>>1^-306674912:r>>>=1;l[g]=r}return l}(),oc=function(){var g,h,l=2,r=[0,1];for(h=2;22>h;++h){var t=1<<(h>>1)-1;for(g=0;t>g;++g,++l)r[l]=h<<24>>24}return r}(),eb=function(){var g,h,l=[];for(h=8;0<=h;--h){var r=1<<9-h-1;for(g=1<<9-h;g>r;++r)l[r]=(h<<6)+(g-r<<6>>>9-h-1)}return l}(),Md=function(){var g=[{s:16,f:64,m:0},{s:20,f:64,m:0},{s:19,f:64,m:1},{s:20,f:64,m:1},{s:21,f:128,m:1},{s:22,f:128,m:1},{s:23,f:128,m:1},{s:24,f:255,m:1},{s:25,f:255,m:1}];return function(h){return g[h- +1]||g[6]}}();return"undefined"==typeof onmessage||"undefined"!=typeof window&&void 0!==window.document||!function(){onmessage=function(g){g&&g.gc&&(2==g.gc.action?e.decompress(g.gc.gc,g.gc.cbn):1==g.gc.action&&e.compress(g.gc.gc,g.gc.Rc,g.gc.cbn))}}(),{compress:function(g,h,l,r){function p(){try{for(var g,h=(new Date).getTime();Ta(v.c.yb);)if(t=Hb(v.c.yb.Pb)/Hb(v.c.Tb),200<(new Date).getTime()-h)return r(t),Mb(p,0),0;r(1);g=K(v.c.Nb);Mb(l.bind(null,g),0)}catch(Jc){l(null,Jc)}}var t,u,v={},w=void 0=== +l&&void 0===r;if("function"!=typeof l&&(u=l,l=r=0),r=r||function(g){void 0!==u&&postMessage({action:3,cbn:u,result:g})},l=l||function(g,h){return void 0!==u?postMessage({action:1,cbn:u,result:g,error:h}):void 0},w){for(v.c=ha({},fd(g),Md(h));Ta(v.c.yb););return K(v.c.Nb)}try{v.c=ha({},fd(g),Md(h)),r(0)}catch(Nd){return l(null,Nd)}Mb(p,0)},decompress:function(g,h,l){function p(){try{for(var g,t=0,v=(new Date).getTime();Ta(u.d.yb);)if(0==++t%1E3&&200<(new Date).getTime()-v)return x&&(r=Hb(u.d.yb.Z.g)/ +w,l(r)),Mb(p,0),0;l(1);g=Ld(K(u.d.Nb));Mb(h.bind(null,g),0)}catch(rb){h(null,rb)}}var r,t,u={},v=void 0===h&&void 0===l;if("function"!=typeof h&&(t=h,h=l=0),l=l||function(g){void 0!==t&&postMessage({action:3,cbn:t,result:x?g:-1})},h=h||function(g,h){return void 0!==t?postMessage({action:2,cbn:t,result:g,error:h}):void 0},v){for(u.d=va({},g);Ta(u.d.yb););return Ld(K(u.d.Nb))}try{u.d=va({},g);var w=Hb(u.d.Tb);var x=-13ZAheKi?L@gG!hb#>|`lIWE}zY9W3xtmVA z(E$Lvse!iUZU6LjQh*QpSP0$L=4M}m`AwlPnsYJVMCfsha^ro`25ueDmQR)Zgpgu1nxdnr~Qa8$0mOe?NMd~!# zp;zV9zVE(wndZ$A_pT&c*|Ym)c}Ty;pSm?*cA)IdooJKQM07Ay_8oUIv9f@nCmyr-Y1%VmYBcNdc_<+9Esml`M^ zB&UF^Rvvnz_9GwA3l!N0&e$uDvH0I;ouRoa*gymodcN?HNz)i;eL#)xB1E4>$Q; zHRXLT>!~V-qi?CUD^YlsDNa~AurG}_iXkDJ9d2&Y14s$0-fT5yH zk@TNET@*dLxv^S4Qe7=9K)K$iaL~4Sr>ze=B?-cC7qmk%A;Vj(!mN}IC=%sIAQeSM z>exQG)cjhb!m@_Nf&l@Z;{~sV0ta5Ku5G}Ib4t8kwfi;i#Ii`+Yj%DrnI;{7T8@Wf zAXR0&8!3iUu7iEt#BHj%tHUy&HO1Xu@50!0|NMCL@?$f-#kWhfO6u@AE?r9~YQ0}{ z5#dZOPs z!E11=(dvV!Ciitf`6ToT4$2Z-_aW%csp)`E-jK~;j``$^8Y|aG6aK9VJVsUz1SUVf z5y@qAB45Mpu1&QJGLR-<7hAOpwmF;%d$nrsU;gs3AE?epO8F&(yr=)coqy%f!CX=J z>fg9r-ewlbxFpe&%rem_Px;(3RY+b?+D6i}7ABE?K${d$8}2ueB&$bNre%6YVc`+-^{l-ADvfo6F-|UM`mh zXpQasOTwXmRUWTTp_~z$Tx<>TgFDJ+fh9Ze?}{-z)aW%s+bvSSqLkvcA>;IMzxNg$ z*8D0Hwcr8gqI6*M#_iwjxFV`NJOlP+-Quvm-BHNqObchgf(c*OqZHwgi4;IGQ`Xlp zE)`(c0hM!Wt-cLPNZYa_y~kJb9D7&j+2NMkk2LERBhwz}$%0XH9gNBf3|+i}$q~(v zMe)9`#2aTc(#RfIb+#~9n7aK0dm_SfCw?)o89)BoY#?+v9&Kqnn$Zmg6M&LcamL`~ zXL43G_V^Tf8;4!OPVY-0 z5FYGGV$j<#q(UB7t%I`n`K49kpCwe5K;5>bPymS~y)0ieTrcwFG0}9f-987IC{ObN zD3MJO+6%ic=b8_D&-!X?hOSuL%G!vg04Vvutv^$K&W+>iJ^FbZo96FB_VV`Lk&G^b zFgQ@}c<$AXMfcS+1koARMc!cP4Q5&g6F=Re3_eVO)MX_GY>>N6=)DAQ;@v(DCeBR$4w zXQ}Gzm?=;f{UjlEPnkbQ2gpz3e2{i?E(kO(DlX(ZY75VQ4cE?j;A!l4pfoFbWDRs{ zte(t*o*81;ROVTqo!7TLv7KGwI=Tz2DBEMr)kys>bMaQ@O#1zV(Xls8>{xRoZz^}z zZ>e;+X=-ZL_MR`jJp=X|-1G@2$7t}a9D0d&GoghZ{dB>~BJwFGOl#U71#`6NDL^YC zf23gV7+?ojj50bEgp808xozoIPdXpXaA4(L2F{}H6q_x^!%QuoPVL<57^b4^VJq~^ z;rXu}rRmSzPHtqjZo&`Dtr}#eqZX^qw4H^M?O`6 z+^{+`mxE$G?1#*4$i&J9b7`$5Ac0cYYggmE7f`xlgmLtQbmGF;qvt!hm8}#oA>ZJ3ntu$XRDld z9j&icI;6x$tdi_K?Mq=qv`!$hE2Bcfq@aJ8ON6DDC*pjC*)QRtit4#cn>w2A8%=$& z?l`WB^y{tbU{0*s2jd=Z4oCk=JtNPb=11XB;y0wX@b84i{kP#q@LIr|(*Oif^Og=i z;J6L&mA&G&NAcEs%PComR~Cjd2q{YY2VIMv$Gw#Dr0Wi6Ao3^{X3wEu-8`WIn(I&` z^+=yIyp}bxdlZIYRFS4sRBH1SvaVzYM$QL66Yc<`V^imqidfw%ih1~Je4o<7h5iLT zFzi)Ai43|4SnzLmgi){Z#20pm%^a(eqAK9;UAkh?f2T82j$H zUo=ynB=uSt97gRJm~}$prTSVJzc+(BGBQAX?0}x03WEjSXyI~G2kdL>ifroHg_mpz zKUs9<%DKU};hUHMPC#!F^adi%ywv>KbS6c^I2=|yo~)-)_j%(ARdg)mRb_J#GIp4f zu;GbvnZf}lRykNY^u@i5Y&Szcp0GAhJv}XLjGXZf|a!koAjCX@|y zf8X;w<0~pw(9gN?U7tdK;c)3Qs=0JJSI9gSU5E227;ON;V=F2G6umrYJJs>5P30j< z)F#r2eyqaB8WyK4mv>~ayPp~&AoFyFe}9q0&!}ELey*)?>-#e*>}wET`a|5-xu37% zXdm#Y(Pbyu&_<)Z0*zE8fvcXK|LTZhjyG^|!JfAMSFX{ed!VAzi2vHFfA<)LQZz)Y zlCr?racf>MBS=}%y^Ov|WmhM@bM8i(&^ z>hEu^rz^-XU>sG25`XkdYdmQkO(4ZhQ5H&GebpiqjqbDbDHMt#F3)V#eq7*oh@@fv za--dW37pLUk;J9F*x;vhZl+r%Q(Xw+^SB|}_pagu(!7(raU}}Zr5(7&M{;Fk?u2dG ze8|2a&|CVg)3~nbrF5GFJVmz%%d4XPi2lca9O5P-&Kfs!kV5GPM#{JS~s4ySBZ_{m0K`^I=K7+=C zAMGg~E#T}xj28dv8m-9YkwLXmo2T^^3PlqKNJRphV<(DVhAQhv3lP|;P#m&4)f8k-deUd za`NfIHjXZA0Sil+J{0UMYKnl=oKD7+enr4$PO~yEcdkub zYoX93n`Q^LR+jug)|ta33LaOlBlC|~4;IerH~zJ@i-ap1(O3vmrYLs)W@f^-_;9(C z%)QM!ARt0fI(0=b(pGk&2XUb_&LX#L{ybqA!nn7jfSYXOH`!i02LaI5_$C4^x@Q=X zOY@gWS!Z5G3KBhP498U!bL)=#V-Va01f{g(aaa~&xhU}G7B~Q zGzfJ(V8eM!XxramDqq)Ay45?5+Wq-DVk+~Hm_h{r3mVWb9)vTvbyD)y_pDZ><=I8a zS&9l3u@;CJZ2b1`@Z%zV#JlY+4K2~wLxJkZ<#zV$7i-d@#(FDu+M%I>=p&@#vIht- zX*^;L35c9#!8fCM2UAiWal^MMqJ%iTGdcHY7zNW59!0X6!39{Nvi|fA|G-;iQ=HC?x;pI$3-j3;?V8bdJ2q|FK9m0bW(| zER*lZMBj!xRGU)!snT|Z>Gvl|a8;*#wxe}h1asqiWMU$f833U90?!Z5UVeShmfzVY z^5;h*g8B1u-{O@pNdQ3nJppYqT@Mc8HuT?YL+i2rO@i8h0PJAZ{jGK-GU>L`JWF>z z>(ROzrKhH!qzilJzbemJwAopSSYWQm7~siT3f(I<6~2?QINa zJnu|gC8L5#iVl1;|8Y1UN~SXXU$f2%WQG@T$QK(HZCOXOBMHW&_ckx7M7QL>OH4$J zAA0oEYw1ubE$2u+lV)Y9lg2wpU}GHTLOjLh?X(q6ZrkNEi|Ouvvlsa@J1dpzqMUw3 zQy&B$&gdRsJiTe5R-Zsv74Q_xK?;Mg6({(n&*y$+QXuISr?{acg8h13rqjleI_1xX za~|bU)C*hIc=e_w3jpHbdC-{Y$~>lLx(b=p(R&D(w;KxtjFrx2GFf_zbD8` zO04!j#y9;zyQ;+tugPofCU2-tJMqngRoI7ePe>>Vg&d?12X9eC#lxg)QJy`C5#;*h z=?U{jgJa?@Z8_-!l3m7ADa>ex%Bdif5uWV(H{wgTP{V>NuIAd$mBZt^62+PR60q*o z_^=}VOz>iSPrK0Yu7nfMHAXH6(h5!5W8slgRT1l~-)`2q8t4tJ&?$W?Ajr2Bs{N)A zd9iFFn&s0uZwXSQd zML_x1Ki#XR!nS(M-}`6JB!teVFpuRP@8y{Zn)GS|0d=EV6d8(-vt#2^1uk6-w|#0R=a^Abu540T>9 ztvr6*-dCRxw+9JkDl$CFQ4>|%?Wbc7n8%bu&ZiJ|>BSY8_`sJ85?~xk+gnTyWy~#G z?kZ6lkN#9%%=6E2xJm$FzB+lnv$-yvv=OQD`yvIX5QLf*r3U_yQ2p!DUn4@bVX21+#!)}k)$u7xO%|urLM7m(dB{oQrZY^twMGNMK^fwAkY*VzZ$zun zjqx@^67BceCtkS&d(=PY z>K?dAtl%4d9v8sQQAN`6*^o*V<{xQzIJqu#bW!M4%Bs$mtc&LH&z+E+EX1ORuN?^i zB_;}8;Y>=d7d{^CJhmH%y{sPW1uoetB<}NQR5Gkw z#~=T5_(boi>-yCoGwW9-JDLAEh4*`1z63jFLPhS>n$M6fLx!R^n`)AauIpuLF;w4TLlNB(~G1e|cp~L?N*vME# literal 0 HcmV?d00001 diff --git a/static/samples/haxe-openfl/drag-and-drop/index.html b/static/samples/haxe-openfl/drag-and-drop/index.html new file mode 100644 index 00000000..89fb4a2d --- /dev/null +++ b/static/samples/haxe-openfl/drag-and-drop/index.html @@ -0,0 +1,44 @@ + + + + + + + Drag and Drop — Feathers UI Samples + + + + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/static/samples/haxe-openfl/img/custom-drag-and-drop.png b/static/samples/haxe-openfl/img/custom-drag-and-drop.png new file mode 100644 index 0000000000000000000000000000000000000000..4c8750840fda1d4b32c83436eac15f590d330f24 GIT binary patch literal 13582 zcmd^l2{_f=+V`eBgisz+RE8+jwhh}nWDBK8D4EBN9rk9MXGtVNA!SU3WGXTfp@$5q zlzGfl#?15H-@SXzInO!YIp_V(d%fqo-tT(9uB)#0f35%euXV5c{@uU(w^oF%j^=*) zL-Ys)V*k0bXY>#V>JJD6RXrUwJUQ2Z`wfAhQN|fub-${8LEeVojI^>PSYwgi&Mwf7 zKq#tsyI9#cV%>SIvGzE;68}O~Ek7^LR*Bybt&P%lQNudm&iWFu`o1~_HolHFa<=>` z%Jhof@-Toi*4>KN+t~^4Chx7p|8rb<_&?>b7(egNF7A#>{8zPgdDRF+EH4^~MxywY z>3J22ws!J*XEgrwGW=5FcW`%ikrxy5^72A@Ng@eEdogi2IXN+ugqVcHDd=&^%?Iyp z<$Vh8CO{eD_c6|3-E4?B7k3;1&r2E8%9`NeuEfs|?Yw^)9P5qyV|2XRpOz1X5Tmq+ zi6c>Bf8E{1f#6PXb0E0(q10NTxm>$-R;6b#(s(WJb?gBq8L9vUx8o`M`)CbqV zD)CFB(URytnsjmASf{IJaL!n~8yH@RUq%A;zqK0uRjU;G_tw9d?)R~^3AQk_pWQOqcR&e_TydjX5LcXv?Y|MSRyv>4)SDGh&~ z(9Z_S3Y|PCE^--<1Di z=lWRJ-+%r7(+T&}!6`0I>2GC2S)CHU3z1;!VS}~(xr(0wKxuU&*tvUI5wWWFu)|Tloha=^l9uri5LD2Y=NXajLr7D^t4hJ{jACiV~K^3&!1 z>0Ewq{g3A&!7Bj>@w-dF^nZWlFO&HvX8zM;6vZg<|7SZXiv67>fA8>DfB}p6{TToe zAez`;APs)}1r)J(Ktduw-pi~9&H$?hIB?KE920@yOt7)Etd5IIF=?x>tBXxG)cbXO z{wd1=uFN`8{PjrHd)L!dZ@iHguPCn*=dGiC7D}b@B!tk-$*H=6HH$UUKce$-yLN1$ zcbMtYf;{_tT*53$hhk(M|q{sB2S1|Sz3OkDoSWQPk(wA!E5rA?%N4o1)4^k z@E4+|XOGcU(dG#qYvyV;N7ynPvp+`tMFNi~^0*h<*m<|7LN4>2u1v6L#~y4X;w9q^ z0X3A`2^LXQsQ6wKr}$M==>4Zx;)8#co#HTH$7b2bpO9t$b^NJ__oU#=_Y<64oLmy9 z;Cd$Owkd8)eXh5%EY@;+l2&`M$}vbl*masac%a|wnLkyAL;4o_aYF%TE18gnA6UJ z03}yW(D5J;r{$<=5eVJrIw}Mr{=fJb`K*Wm@#qt0*yy5nD2uA9|F5Q(H#ax4by6i5 zpI}?>Cz##8?NT-P)ytzdMZpWHq*P#DfzCr$fpKutvr--v!h819B;mR>4`>W zX68OV-?iBahmVg%&FUPxKV_aD4%~L;Yy9mFcj3*a>LZAj>H3=t$i&v5nubvqSsn}j z#kYAz#n8OI(s|Kh^>M;{)6t;#Uh8ikGUocr5=Cpw3p=O{A|oR1;>Nt*%&aP}54eR{ zt<3f=7Y6O-R(!Ho72bT^+R;(i)7cbrRID>Br!losx;+UkDkzv~)euIgUeusTGuPGS zRVliC`*wl*N0E>^s`&nqH#aI2D27@VZs1UhDnZ~nAPcUj~`Ht1* z3n_ALw$5|*=>c7t=My!L2E4kb74Dd{Q#x2+Rt3WtdK!_|Q3Cd`@y}TU+(#8H=p8wzl!{aXpKHInV6O%*_RLBk!7_sHmub?X}G8Z0@iF8+UOy z98>sM%ay^Y$w?UPxR8*1>iasHSeB_=A0QF5>80jwg! z=;&x-MaI{!U!Q2k1d?~x;lorzykS;Pv$E!Uion&ckx|a}94<0Q|9YMF_+M}$jHh~A<)p*b3mtE`1 z!v&1@7TX`c@Zg1GH?p`*KqJbbGpqf9xJ@Wa?v?y|G~CMm8_X&@AHe4lL=BD8(;hw) zHi_1V=GiQ(-EB7|Z%(C)nOFBD9jR|NGRc5o=z+DMR$#n0p5y}Bu)k`g+ zOHYp~c(y4XCU15GT`4fd9my?q?jH(RA8ZKQFUj4fwemGm47?;eD=R4+si^4x<@x37 zg)DrHlkLgb7am&ITn8ImTN-~?Hb9K55E2&t-fN%EhPjX`j}{XnOtd5v%?U|J6kSYL z7OVb&ac}^Vx&rXvMkKZ!4qE+U7*HUddpymXUr*=|;wS{3Zi&Omkk0FG>L?>E#Q<)CS zLkR4^dPwWFWM{LZ8z+BdXJ4D??wBCH^S3GMpXn|P>NfKd6ckJ-*QcT%ahJCU+V$w= z7rq%D&de=63sG2Fnqp^fU%NS(Y*L0VF(10|%l<=h#HS_dV-txMLltiJ;Y^3KE~Xzj ze7FYN%5KD2HAu=<*~M+Ge7CZ)!rc1anOz7lxO4T^ty?S@|MfvH;==nBxnj#VA#9>o zuD148xJ~h?g}E;b4Vo@5HXW@cleU+xq8&awnl%yIcD+C3zuexQEF(i0@}D257;B0d zuJ$Qr;YT71+@{`lB|bh!Q*P~U7PR#}8}@)d^eo`rbpbK4i-FhLl4TZD$eS@8`jqK$ za7-0TpwVb~`K|GHab0QFn$bL561KNCsm6&FuK`}fYIlkN>6aK+$qvOa{Yg2u$uk-nEeVsfzIJwYSFYR-+K}|>txSd_c1X$h zRfhmLg!0D7jln9fppDV+%g+t&iUKqciNruyBt-K=FCk$W8Lzen;zhK<-#=u)*AB~j z{}>slaNAWW)TZRo&M+2!H2QLBA?<6-<0nsc3uB)?eHwl=aHFK#e7i}7WOamplb?b8 zB#J=B(1kY~;O0)gcke5)Vr{N}s(8%2aDBDgqSoO0ge!{N*3#0_*7izyWYBAPb(5HK z@1BJFw+}r%Jqioeou(BYGhGx!=~}1)Afe=82$^c1Wk{7iIn<_FM(;zK#$FzAPHas` zO6n_j9nKC4KeZg*`n>S5NUKLOv~+dHeRQS{UPE zp+|qQJx~C@$+m}`WdsX1lO^7bYOL0vZ*NSo>34Ve;-aF!-PP{90-9UZP5BObR0YSD z&rjv(XZw=`7X%?c2TkW>%X>^83*DHnS{Sc+>a#rAnkY65z}1o<+H{Be_<|aFJ&0^S zBsPd&|Mv08M7T~Feo#m|=@l@9-rUfnFDFsQ|;r%*9dWvzg`P8r}@=^BS(~RpPmAOBTdV717FGUL{qZnix;TV z;$Y!pDiM{QbCtI5?kV}L`I9!Mia04CeoM2kdm9j{MX6>g%@00nV{JX|Tr%tNnFQP? zxA3(HgNonU>|q5@r-5?UmUv;}MOIeU+TAr1GWFE>cxZU|a1ePHCVC%DRczOOFTEDR zE?p&v1c_VPZSsN~yKjG~vslfFUa-W4G(|aS=__di;4n?U{TBG+4Q&_gh6NwD3_jlQ zthe_@KcTk9xxW-xRr9qYe2uSgoq6kw=d$iVfSs~WFf58Mp$0RS?P8-ROB?;n;G z%F@!(r`^6l@)%#Y;X4DA1Xcl&r9HD}yhO&S=LH}}VCb7jMnjbWla zudR)~82WD1g-5~jBtO6PZ&6&(eAg%p5+kf$+tfe3W&SZB`OB9tTkoHWV@}&<)EYy_LEmF zOWAjUFBcuG0%TcSTwIE@jATDW+L=-z&k=&oYiVt5%@lT|$mzqZ4z}_(IGjCut99bJ zes(n3h=m+*^H&azR)w-bd`wIXq3=}=3qNGs%ehzfACihKL9-s$S;;Zvz?`&rZR#02 z3sW&RPVxx?!{t{i!|IRl@azovE$rjdNmCTI=pA-08?^Jh;_&&|r3f1HBHMEi;p0TW z*ZGR6v{$cQL23;Np*FIy4U4(Sz_B*{smj7dEdUfg+4z<-T;%90n|7bCj<@$ z{1UQn7cp?TT?TUt*kVVr%*EHL^A!IB+#Yp-;24GV172oE-(#p=B_6h)Y1KG$=A>Dr z!K8Q4XBULwJ)e%Xg>5;@I)q~%3+9z`zvqWXs=(6j;Tmj94?JMYNcUfgFonnnTfMux zy-t8qY=UF^CWkrdJTmkd?8pw2y{FmEbZ+4|M>!y^F}G1D3lNi7hFrr!rWgB`lV4pl ztA{Y2>PRQUw3<~^c7CW;pnO*x9M?ktLyN$Y6GJZ}r@QhMfDfqN_+|BbXH(^n;%7n6 zJpd9}C4`oxiPi~>yZft>%gQHDw(&6h0M2!}JXYDT8SH`0d~ZQo;z+;nqizo~Bwczw zNZ1w~gjiJ--?0bb1NbE>eI35c1 zAh)zrY$l}D&yY+i7#zC`P8l*ge6fEsJr<*Kp8@>pm8X&Sw~TPxYdE1P_$SLnpl_5FFD^9^TZ zW4LAJ^>Avs4OFH^cAC48gEn?%fVeLjQ4(42u}h|={!quQtgHaN2Hy78KR0=tqvYAM zXEOy=@24!FevM7{O>9spk#g*EB9nF}=XW5Wh#4Ap4ndHv`nY&|djqW}`{wGT%IBL^ zU7-_q{n`k?xejR$a0C3y86syDFR~Cc*H^M!c--O3^Ms3N?E{#NGS~Rj4mRs(abZ{K4qyT;vJ_q=g&*iKcA9BuYv_4; zj&;VDtZPC=GE;7kmLNqC`007SQ3`t9=a zG_G&u-+zqTN6dwiT3% zci~22Q3sh*SstHkxYg2HYpI-g$EWe@80C-HsywhyEHe+-13;q$KPX>!HEm$PbQ6{C ztMyJ1-E}0dp4cHx(-T??)%yEXg|fzveb`I)^9@I2`{&jWsaZ7F_mmfP6@{j{}u5$eX!eXLNHTabzp>r}Rm2@3A676z4Q z+yR$lKV>}NJComaB>DH1doHT%e%_IUI>&YFH}KSR zT3Yld%+qQUL)VmjJaueio>lD{7U}bcNJKZc_E(EL%N^j^-EAk5WeBCeFwF$Zle=?% zl%){GYl90+%8);%2$qzzI#5w;#n}{nxF2}e{Zl66SKA@~lXkb0^J|qYXa$!=4Rdx( z-VA$>?SCje4^;{P)KZrTA)#g(s5z2Nc1K-ZJu@o{F!X9}=NIwi381z+$LS?CEw6YF z&E(eQJ&TEsUgP4tY-Koi@nkOb>T&l+xutx z%Q}L1-x*p22yzrm9NjA}mVB^^3%K$$5NTCaRjNtqMXxXKF)l7Ist*B24frhpgunto zFJ$8R=tFVL=g(5AEW7qN+tT~yIi?Qg{he9b%imYruqyNhJoXwn2*Y42PLKv998a42 z&6Vh-TT9>EXe$VqACN0H`|X$?wLA|~uM@%emBXco1gh(i#sy91%Z3B1Os^K%Ms(Cl zLv{p82K$d#w%toZlW$ZkghamQxnnJ%`Kg76SMy@IDKhzYGpuB8P$2SBbWqG+QnX3{R-kVPVa-}>b3;GB$ zW)0NGs|BTG`rICDXSu75(F_S{@2$_QFlH3D3=)aN1C~$twu^eRYYparaz@Vwe&-)% zL&?}z9t?VPn_=kWhJOR<8ZeXwd42L(E&xn$L0DJ|sPA(aI$_^o2IiQUzmO57EJYOSdl_v?Ap!`wjH+;EWp-ir{D}~<;$dKrj zyyoU+S(lNz+1}y_vG<8L<*Kp3=&~=SBNsX@m*F}!qz@jJcmI}|Xnv2zt!mJ*D^I*O z?Uw?{#IgBd)N5mi=hR$anfK!%LyqdgV$nElfvNbE-A6GyxIAznE3VXw@C8I_<(G4|3&qR zA3#eBEhvKFhnZD;-z#A#j|viRNVFYl`S?VWFi?IeT1yE)2G)ig?gQY=?GfA4TJRc( znu6zS?4<@Cp4Z@VD=Y4NXFwM4_upw?R&i3!t4MY}dmAHv#0&W~G-2#82* zS-%;w8?tky*8&JTaVgs_C zxq(4^!zk)JiBgA8uY>Nzd_+-JNJ!&qeN!gDi1xgJwe{mw?x%8tRTS|nq4tm@exMvO z`@@K1A|fI(GBTo~j-Z5D1gw4mQE|^odV-3kHOcnf=Nx^Iq6n$&z92y>qo)&bE8ji> z5ov8{=>v%=5orb`NaXF?ZS}RF3J5ZpR)$DvSB*t0yapjVFE0;LewkzU`|QaagFU}6 zZcs3Pe$Wq`8ydD}>(!W*ezhzrKWIiWIBE6OOe3d=DF(LuwN#M zM{Ws34mOU4@YTTsTwF#&>q$94^@=WO=#(bM$Gd}W3*~Y@9M40oGTmF8y*f7xk^%4n zdcJue8KA@@<-D>sFr5SXjP=NQz2aF_0~{8}u|ZS@jy^FRY)5)=?9u27Gy;I+TFwf|E}+$ZNV<%;dr1HA`Wcx zX+R*R$>z0AL~WxdNQM-?v2!06Nb;N?@PP`&F8?xODb|?TJ6QB75KAD;s33+@$B#Gd zpsO~Qr%V=3Ou7Z=Ol0c3>}Aov7TE^D6!89SW+~RpW-tfN1(ML>lSmLDRLDEaOX1-y z^}a4Gf$YeVZIXhAFldg()!r{VI{1OgkfHuAHD89>o{|+dlP0S`R6hbqte8n5QE(p$ z)l``cGNT1-Qk%;D1`vfcE?kJ>ns3*!iR1ts*!yK(oJ)mi5!0uj_12Qrr6cw;JC=f9 zyRENld2aj|9Ur#^H68X6#GGdC;Ql!s9UbK$lKvjstE&syjvHT| z0Y$E$j-Z~dZY*f@_wIdy$wFX;g@=m)st=`0;|IQVMo0(<2tbW&S3Kz6sZAwf4CeLN z_+gdZDLh3b8FTvDwQ2A|s0lhDdl$_{_RlH1em!GtZ4DE@MTqCAwee6$;joY4mbiylXb;(uL8nDk}-e(LD#j{KEqT& zFvwk5TwEN^B}7D~^_l>udFA9bAz|OVc~fTC-wpJQfJ&1qZ2;E{^z@)?*)yFL77>w$ zECG)kKR^5U(nhm*%q1`|5HO-?4EOQz+k_;a33~Iny-XusyvoYTe0-{%ub{JuqXc7v z_sDfxJw3f78NzG)V5Qc{(aS8nE{O8AkKubZ4mY>8#j9i!$L`25aZ9(Es`xC~%I$ec zW{#n%L*J~U+F_z7EJfMVke|Hf`aD`smDyskAWB$xZWH=T^EbIKAzYmKT@bZQnMpry)K_UvC2T4`w_Nv#B9|;P75vig> z6nFqk|6e%Y{#U2sPZlN^Qn0kfwANbHV$vAYDN=>ds!nz? z@H~J(Tn9P8J&ojUW8_qD6B$j$d zPE40GXV{0(SVt;E;`KTzI=;@ZEUvH*?ls2V`?Wji8J4Qe3$ve{Wvyr75THXm!qD+- zJgMp-s7W%8u5o@T$aNk5<`sg;^{<_*VKB0PpLW)hgRNI81D9mQY0HFo#z{@f8_E)9 z#hGMBXXW6#TG>r&xUaSVFQDC794I%6W*l|p4r!x8uxXAULY*!w`l@I2b5Ae&Dr&4w zqZJetmqH{3R2DGr3%TU7FLL3_w7aELClSH70a`K5hnO;a?%C{POaiQ5QIf&ztpkHM?4pv>M97k&>M=1(V=& zLEIAxwW8BzG8R60atBUri;Ih!q7L_?id0v)#{zSwn&sV;Z}>7HPRLNxT7F_|m_ai( zIMVSA;LBPkTAG_#Fgu1yn(V7Q2wnVMrn-8T`g=#WzwRNQH95%ihn@NMK?2f(6bBq}gvH}a{S56iGKRUO-uhLtI0aON_SUKwq|OcB5`pK_1&>1pZVcmv zPc}0!l;V;Ous?P*k7-X3tq!y5+-s&ub(&6f1flg5XAE>`5KjPIutvVb(cEwl6_td( z_A5sf9G#ne6HyG9%==ME$kT71S)7!WWLR1R{Mw zEtZ1^DJ;P}Xm?dI`(oi`$(;{t9zGmM_l1G^3-_0SlB>Uc+wZkN;N;r;u#)3Bs5*Ph-e}gO7Ww3ql5#X?%P< z9A!Q^sb*yG;bV>~C}hJu0DO$$UfS@RH!E_(XnZ0)ta_xhIcnS2)ip06P(TDCBll(K zr1nYLwKdD9mJ-(sl zNoU~tHrt{e?CX&4kPQ``lCLVj8NVoV8J_e`uJP^eH%Y6=Aiaw_Zgx|BcvfDw%(F4S zL-Al18_BkK-$QA5`w(sqA`d{|gVe)=p;?Y$O>U%Fu_J0JWb{~lg&Uu0y zlA-3=FG*m=gT7}S9G>-$DW#|CzddqDFY~$5v)ctT7`kQJ{#XTDx_O0UV%6+BxMwykg)^yoUO+?R z$7sb_|Km`-Mjs-WjDfLY6L`WhaP^Mf$P_o<8gsKwDYG~gsReOHD>^SLE7y$kGKv|h zs(0`1cQ;%2R)kWB#r&e{-Tt4TmLgT1X};U^YtH6IN{>}nl37D$FGCqSP@vc}N(gKtmebRV_{ktf`Y6jP@0q}K0{(GH zNLe`~*>$2DQ104$zgM;k!OdHHJMaAhJtv-7GwjcOT&0*ca6z+RIjVb%4TGvWfr!6V zcU?uE3vFwEF}dJ-*ny`rOGoSBZBC4X^xzCkqJ2zwYjJxnEGwvX)h**YhOYg`^gKq} zTdhW2m3Zs6&Q}D&VlUHaI`Ah+Mm4$&$E4YiMUy+>jLcz+{V4W^8DV!H#=GeOZ&)y# zm`?Spu`oTqXYHQi)y;-^DN0nqjt8&r*|=jDZHs2K%HIU=2>tNt18@7x>U4&5j8)GK z4+>CAnK8V?RkH9&XE-k1jf$Y5e6ubQjciV0*6s}Dld}4j#Qv0F6dkH9`D&Ot92v!H zmRQ@B^)P`SfnWeor7tcK{ANx2$ufB!9V+C6p;MzX>$E*}D+`C=JjR6h0a;IL-DLT; zDarX0lhxX0tjZ@LTN`@tK`q$p7A=kaYCHE&H3r!;Y&j!NBLK#C7$*AIm^9})0SjYC_Sf(+Sg9^by_uo|&{A=|4Kfw_H zdktOjD7U(%zw2^MiwWG}O^819KfKKR|D%}xyH&1}5jAac*~Jn97XhXa=hSu16ksev F{uk@ywW9z4 literal 0 HcmV?d00001 diff --git a/static/samples/haxe-openfl/img/list-view-drag-and-drop.png b/static/samples/haxe-openfl/img/list-view-drag-and-drop.png new file mode 100644 index 0000000000000000000000000000000000000000..5c269ca156e3ce234d5b76111128b27f6c1666da GIT binary patch literal 17240 zcmdtKcU08rwkBMPp_L>CKr&@6a?a375tJwtL2@cW0Y#1yL?sJ|iYSOEnIcI>f*^<} z2&jZ2XCx=dd3M=-PWSolJ$LS!`R0!qmc16#FVq|Me)itae%=mMS5=@q&Tt%oKu}&+ zL~9@r2frc^2Wo#i2%lW9v-yZX9G14h=(_5vD2tmr*mIj&IGAC%J?$OgIszdn zZi{tgGs9Zh;H8iY71c;K8w)9QpjKL6^GwRAM+sDe%<0~D}~fmQD>8NaK^F;aSL(tBBhVBNjh6t ziff?d|9lw!l0sU$x;l#U@OXH5aC-=FJ2+eM@QI0u@$mBV@bh!Q9b7J6cvn+TF1*V* z(kuRW2O8^Q?rh`eYU6-sBfZnq%)!l73WuK}X+wm@cP9GM6hjfL9kDHh0 z@3%WzJGeTySUWiWb4360%s(&xhX-A4EdR~-kgoiP+hO_s^KbApb^On6R#Ew{Z@0Jq zmua}T%DKZr{JE(AGKGJ9feXgV5zC{2b#ZWWHpj}jWAU!%eys#)UBqP_>>Qjm!8EW^ zNMRu%0inMxsoQvB?R3#L_E@|NEW8v_grE2SbM@BWt_lkMarK`|_s6?c94z3~0>2*o z>(X^uS#@UzOB*}5c2!eLlTBNlUsUVYO{8TMziw}8g;mDltz508kpFn|UsrT&EJzpr zF`!=;NHer^BbkU6-Uil$|F5^{{&h_XDJIOr_t&Lc|LG;zHE|U%ZwpgbQ?#io43eLh zUyzGel#7=S!zUyzBr47)%*87r&ilulf8Fn3VPom_Kf9Y`(rl7&zlw^uqK%8IgR|GK zkN&W8O{~)&fBo^Noy{);Cz&|uep7SO?4*#6&JGrC=2(kgv-srzq^m9tmaZPA&e*F~ zu*0ybmX#?5Ciid0^2gQxdMx~G{D2UDm;?;}k4OGFn18d(e-1{HhvfhNSSLxI|FDvO-0(NR zfJyxE82}L=8qYr=4gUBiC}Qz|gw6nYgA8x<0ah_KV4!~)CIUepV{T$n`S|e*{V%mO zH4o!;G)|Arr<|ZUn_9E?Bq03iqkzP#_uh;1y)CQZW2-ruasPmP@?8faJ^j@ctl`63 znk=f{wyQ@Mx(BIlE{N04hu34G4wh+Xgg*{gVPz9mO1e<=! zZ z$DoxA8;;1QxOYyLSN8G=4&M8Ghj{7vbb0STP0@aG=d|bq9flU0X7%KCe)i<>$RqOJ(+Dg3(0tY`y3SGqKxe={bq~yu7{aA4XUOcqq@Dn?;=V@R&kN6Zg6IQe}7F`M30>Os3j=qZVd@>42ah5UyvzY)aA#!A z0R%!>VF*4?J4cGKZ8V|?#GR?%m=K5>*F#hYgo*fn<8~a~nx1ZKKHA>ienIJ}@(WQuDJdyoVfWq=d*W>vjQUXnkD)Th;k&sr#ICZU zA`F_o7oI*kUryF==KvYLYPGW_Zg+cqVX)d5UG6^Dlc||rBO4kTsx`}sKxB~RN;p1X z6v@?S?scfnIoR-!UG}2#Gj*w5$R^wr=dv}#+-JL%MjNV2pSMmlwX{e(jeJNAK2A=a zpqkz=x;YT;Df!Z&dbe}j`Ec7!7!7mo?fc27pFe*Z-JUCEmT=Fg-kWp3J^0Qy(SOgY zqCc0xXM3(RSw7-qw2rZFaaq~MbE}t575)7c9>!JP#W;06y{+#`JoeoM7i46N4PW10 zpEv*b;4H66O=@ZHTbBuryvihbWAu4x>33GGFAFW3ab0grDJ3}(h{de8HPP|$61euu zXHK6sBogzCjn&l`JM|p`@81tml#>f=MCzB~Rg{#nTm!SSv#)5Ti6*qvaHOP@e$*1g z-F|#|9uVQbzdcyJ^pP<@NHx7}$`ubIA8(9VT3YJZ@q}e<#JS!-CnHnsyS=8Frfl;q zNlsq=V{IV0mf6P7CZ2`zncSMEDEki$4VNxm@|gNAhn8e%EwX9D^ptJSS6otlc7lc` z-+zCvKAf(ie;(WPRLJ_P$;gM$=@m*w;f$hTM^P9=TdGoQUtgb^%&zP1*6Q20Z_g=2 z?!eo3>rh}(c0vrIu#M&3tGMubBof9An-MQy6&W(yQ=FwSbRv3tp?d%GrNp9c?zKf8 z|4k)r?Wcr936ETY@{Joeu3tYZ?NgRJlck-b5s;jnJ-a!PNJmrA{|?_@{_Gh&jSWl~ z{xMTEB<}B6mGVMN?vtz<|L+*)Z<%PM+({=$XKTG$a(@q?%+YGp>` z&lZV=kdV4z&)NKjgZdZGpQm6DR79)35Y2ZOl&0C-S#IqJkDqEw&ng-g!8V@O+L%m^ zB1}DpDXnLHqlsLb>pi+>*Ikf`GAMtn3qv4l3u+j>$)jmzZXU%fp`Gc}mZqXLyf|EE zSnj&{Bi^CC_0y+M4<0as>q6$98$vG=CZ(lLe&k>G6*VnRnuG&sc`5_ypJ`1!;x}-k6aNz>+D;6wQ3dil(o@cz@!)O~vyHWV+ zRgLkxMvK<3U)5=@aB}VpJRKe$CJvm1JLQD7Zd|a=(JR&ne1GpKk5T2ubi}R$PI`0f z)YIyN2*-0}Vh0smU5onhM7Q0c_xEC1`m1iQ2T?Mj$KD@hg*js5h3zrBuVsT#hpFm# zNuEMZ$9?|%d4qBV@Mzxab9VMD_s7O8Xq?0oB;03z%U<8~S^m+i^y?=)EbL@-u3-g1 z7H6vT3hX9ZHy_Ex#l^#uC+|&(K%ntSHA`cU)d;oOw+g{|P3eO|#wI4z;smeHweoqd zSPQA7D8+K)UeE6BZd*0Sjk{OKeHdNZnRD>JJ)N1}F4ul!8i9Ca*~gTJL7(U2bDD0? zYweqkZPfbm|?*E8OT6%!>B6=({{bkQvm-MD_y=p(O)|uqwWHOn766yqSLjeV8aFLlUc9yVe6n~AO?2}Qq8GO7 z0^4ORTTHoCXbDR+P0UN&I{Qq?$ZI^tcxQx;xMc?e6Sq!HO)c&Zo=KkZ2Im{D3vOy` zj1#nZ^ytw^W@g{ikKi#!shB=}{u~+-Vhu*)?EDj(OabfK(M$)(T%$6P_FNFkC%n;r z8=U_GmM1jNxf9(1K!0bp;y|GYbJ76$;w^s#4W`6&2oY)K-!K3F9Vq@j7JbL`)#;9` zjEu?K@mz-GMIH+S@B0C{+s|G-5}A~QG$dA+-hv-TA`Hgu`on-ahffdLb;NoKuuUi< z7=HT!JsTUF6X|aAeYc2i!FBlnxVVK=5E#q};nk(rAxE8>*XK)*qQ!tCK)C7Nc(!@@puy~?0MDt!1h|N!?vxfp~qVT?%0{{bW(>8ALfqbSUgU^`uXjx zOtr~u&kAU6QzHDzGc70__YW`b~LqwS(H{-Fxi=0|WQBtM|77S;Iet^Stw% zNbo4JC32UATVY8*p^7*h&c{cx4RZidc0lWjV_E-viG8op)Z{?b?Yg=;*mfhIB{`b> z-Z|UO?CXk(C!)K$x~Q1N1sw)<@*7xAMGx++m1gPWQI#`(`}U1PCznFJ0MdiP=NmWb zCzeA$fe*Leeh72T1Vps>^suW-m!`YWN=;5q?yHFR)>Qg+Mg*eo6JhHH_UG7V9r4q& zv=@=8>6*KhvysdR5+2%4V`HBm=jfMG>V!*T0Zupc@O4Pe+2 zd{T}dK77cy2J4xsu>A8UX1HLKHDKpGY)YT2GBwj4-G$ixL%YkZGCF~2D)C_<9XKr+ za&mIA_?Xz(!eDU(LWHM{Oo5ndsAUQbqG?wg{(K=I(YG`k&gF+f^O6>JkGN1DVq8i!3a)~ z<5%8~j}e}A-~OJev|Gp6sHr9;JD%o$8&AmyUKB1 z&d$#7U|6%WvtSvJdKKHWL0lXw;Bqr;{qjZ9X#{OxU{K*c*JVQn!`6#90?FcH9Y*#S zcF0)#zX(s&d#icXkj-3FiL>i37b@#LK$`i(faHt}MdIp$y|%XYMdU2S@+wnuC8Ymz!32o{}#XSY1fmzyu1KX2y>86-@qktBhY|2xNaxe*N&7e>CWEp6Se)o(wy~u@eIyZkK@kvJw-Mvli!R1J1AXQ5D1JRSEa^TG3OMNUDq4-H}6tX zEC3{tCs|nsQYxtTwP({kgddaQnO0?e13ERSzyza2LCo^b}L*VkXEY)(i!{QJoA*tc%an5 zSZn@UvI0B^$-o69tIy(9fMzWgsA}5p5V*sujwiNybZ?cFl|dE-c{;0@^Vr7HXlb8w zIKj9SpMauZl{P@bbQum#b!5fL*k8VPl-h4|Jl4gd*jLF5dtmST%Dz=UtFJcGMuQb39}lKtE?-$Gwk29x zSajKyq$m27AMqw9#jMVQ!OfP8(moqdmQ_K;P-xW}rU-i^;W|0w@T%muHn-j6C~5DN zZwkptNjt$%aJ8R)2r#LmxPcj*T8bBX|@P zkE;V_n{d8;yCs$~aHT#EWqZ>um0b z8fvBhviB7m4E4Mee3Ii>%IWSS9u7=q9q!CmE_1K`sE}gGGc69Xrfp_(ftwivMv-Z3 zhlWSGf{0cj!^>X2MqK=Tv}VQVpkDM?cEuMCGkWQ|bQ{`mQ+f+3#KwE1Bj%o4(}Yj_ zrau(wZr>B`UF^tYMpM*HEPFL7DWL@8i8C(k}dL}S6h&`@@mJn*G zOFseS*X4r>LK$C`U~t5)E=_G>Cp%+MD=$UeVrIXd)XOj=v3uED4*krMzJwe*a6B=@ zls?WniLd1VLPq&eByKTz-Z$C2_fY2;tBmV(7duU;O0u+_(1w$S@XteOI*ZZ?x>O`30E^qURUax-5;WmoI z)~|xiR(v16a+22P0J~$~6NogvM%oy7~2tkf^83j?)B&l!-PyTdTCfoBL-Ag)$cO48gMWukeF3@R@B zGP-0F)M{%@tHK!+yUB!Dlr;s+hf;<0VOma4%xSuikmawc{zHqNjfK=Zc_{yQ$VrD5 zF;B2_gY3whp21vP%L~b$Q>-j9#-0}!<5<+X=bIO>zN?#y3b6{J3>{zY88j}QJ$Zr! z3V8@m;O^_JqfED#!;~Zgy#rfiTHf!$x7L{`_0HwYN$=c&jSI!oE;M@l@GWee$a$kH ziymvw&)cO`Wf>UdnXp{Y4D7t_5f);)u{TlepY>fn_{mk~d8X+Qyx&&u7k~TfO-z!x zWQOY~;l3mJHtXs&TV9AduNWtKY<;fQ>+{xcmj2qo3udft_wu-!{rYf_Nxm*&*?G_H zvi!Kvl^pSv9imkh`uxPCj*5OUUG$6O+vpT8pQAz%qhrx|C(Bo8X^NlgDqqvE*1c~^ ze{_E-zq~f;sPt)175$K^Uc==5iK;;4BNq#`zNm7YiF*cGL#L@^A2j8@du#EcF66g1 zin?j;Wd><*GcP9Xk79^d_`*$}N)4LKwHhZZUyek#ohggjt(I?6{aXVQt4|Uo%XQG@ zDUqm+p^kz_BYh5Q=Ut}^wWp6QqiCdKMm~zX<3ng2ZMR)C+ zCF|YbD@QjMKYdK}kI^@nzQU?arAyPeUqgm-eiW7>1KnRbcVfcvl@guSPcQgSH<)#}b2C!7nNBlnch z$oP^BA{znQYq5!EX!u-LA(!G;cQL}OCnUu0wPFGzE~;$hZk+p4wfQrtO8J*;^tczJ zGkMj1BcYf41lBWE^Gl@r&CD6~7&`?h90G}&ru0UukJ3tRA4g>P&DJ?ZU-xg_m@u9KYDck zwcp3{uA0qyCEH8ySKJiV@tUjorS9vA1KDnuN@v==)}K49`S{J)du;QJFKhekjw=ve zd=)CTR1o!{qsuh#p>tL#rDB?JOlUb39iraMYga#RR5v5wBRx7If&9*kXlLH>_ns@e zV6y*Hp3i=kCYr!R_a0)2=t$DFq&gwK%6H+9#k$y!Af~D0MR5vk`aPNT`N)$Vwj%z% z;R|U_A&N7qGRGt@6gY*mkg@g^FICG~EK4lQr5N1{O05r^w!Sy{+Undo%KdHd!#}XF=2d<3{mDqihKhHc3P?w z+~=i!PV3Bz42$eu-1+fcIQiwyLe>gFCAM9g+52TvvpBeWX;S4)gLwJ;(#|Z_TXRv4 zTn}zwMmF$B1y4^;U0vPLiz;$sv)zTbQ@-K#-!q&ZTQ)-4uKucs(-@ zBHWGykaZ}x3C1^DmiC&PnZ*g)vUHS%nkr&2u5xmlkg+wc6liXyqYI0|Le{(@l9p3b zy#xEr3w!Lw%}N8i&Rwg=efw~N-5yA>YeT;akyBDujX%}bE3#e!N?%R{U%tK=x;(+N za$_zwG0}r_Ti460JGQsyuI z>04)5$LT$HtXQjRw+D9YplDr*Xbfh_u%1HhB4H`J06g>`n1K+;-=53OR9a)4M+`k zHS}Na_aJ89TK=ZMdg1)}jK;9A{QUWIrKgc8V;VUZGY|Ni~1 zId__4vWcrdc~bAkQdPw;McaBHoN91D_A$Nx>b2JD#0CnUrKT$ zJ$2rNv2$0ed2G?UiZ5bXPRKsvdgSmby-}iCW#@vh&0$3Q1t45K27Ps)&e|?_n=vyp z!(i>~?0`H4q!To)y$>xXXzD;mY-eXehAuiKB?X8G9i8;%8kx*{iwjXBVXtp-8s+7s zq|{C>TM*9tgstg*|Vob`) zYwesCIDk;5Q6Bo#(xSaAJYThLu03dJPqSFR<&pS>n``+u zF$i--CTrT_ElkJ5H1P`6hg5IGaD?jc^qQbQ*`AQ?VIW__zno# zfQffo(^*%pT*=JLtlph-xHrj&dzof~Q^~f>*M%tyeK3Q7@LD@dOOrz_TRW>6J`Qh* zrG3d$7$n!lDCjDPv-A)|RjM0dvbQN@1tUH|jL_vh#{^8DRv?L5lG)#Eef;<_hfqjZ zSWlUgxrxg4>!EE^r=x3YuhC2mR__Dnw?5lF>iqVl?^^fZ{@yyF8|Yk}Y+ZJwdxbBw z;;yc6iApEtnJ+Im1Swe~ady`Pd|n5c(w{`4?$RgS;tVp~@S#m4YCFGvM;v|YxYrkW zt+mHofwC_BWEfXFzPS5j96GS;+U#d-H6{uvZPef`iWQ6MQ#o;+DlP~d7E;WCJ5XLzy`>IN_MB3ae9a)a{6zp5kK;)W z@2_xk&$qwuH$J*hVJOcNsgWU<6L&F)-6-$Jvdu)Rz9dW2TbGd~#hcOd`_6V27S@U( z-^%hY2)66xy|m1y*X9_sBfBGh`P22}rdS>zb5i0y=R@BB*cNW1N?o)!a8tl3U%hvv z*kN#QTF1J(V4URH&GDCzE)y-gOHuwi(0wD^d)@cw3%da<-l%WDDM+%*UU6NaP(=ylMMfo&78{6bH2>y1eO>N4OBsV6Fz zVoS^gdiD%WaNQDs9B}7{i5z|EJI|9VEBhvvW1c+mtQsgN;P)T;jhq}<9H7N$!!HO5 zVz%-Au7F;re1_C1>Nd7!@;v7IHam2T0Zg+rHgqf8?PIwO#~K4hp_c&cy5{Y>R~+7L zT0&1itNcD=n2ZZ_>+^`V^w6YSVlD2ri%Uzx>nbuL)PuEF^-*zYzwG`(DAeF*&z@xz zw)0%5TE_%Ele)dunWLZQ>8#%NSlBGA{D?A!VFC`|KpcX$kT4zC^zECSOu z;te<_B~=B~8!WI#pOb<~RhkX6xa;KC*L7X_=D>Aj%xs08x^(>b@!UPX^AZxh#x0*e z^HJQZ_MB#!lh6^@tJ^(*Xn$jJaZ(D%mbP>#Hv^7B@yOlF#?6ffT9V)c+nr^AgMKSm z!}@+7a8ckQ_a;vw5M|MaPl-a`N9$_ydL?IUQ|j>uMv-?KjD|!Y2XY!8UsTZuoJjPS z=HTE6F&h4uZg|yxog86OZgNloNLP&M=Fjmx6Pi!In&^fxc?Ag{n|P{yMm`*)nIh&5 zf>jThYL!y9yKrFD8&@Je2 zh7OZX&vCnnmIM+zi~fKw%`*IA)$-yjD=QBYR@ABC_sR^#y>sDoJS;-E zC%H45o10P6Ta(y$N?1i;;9{jP1_ran&-r2VNi7UTUEMBd1&KnJl;&26-K|7v-}VtY zAoL5#opl<3!3Ut3yRjYcv7tc*91^m}t#$i%z0w+0Z;UHFo&5aXg@E}UHA(@c!Jb;i zMyVK3j3N~T{Epk!$`teg%o`#TB)tk?VtjmjpeoqA4*VBFW0j;KS*+Sn2O{o&M^<9> zi*JDMRBz}G3k$zDiWFd$Ypl~ELD;p-JfE=89M(Th5?`u~6-irJsaY@Jto6x~v zUPyX)V< z9f6@whE9%Sgc@ z>DfWhLXNC@b1-{DnxvCwl=D#rodUoLEjp5A)SJ=Jq_>HYfDRf9powuybt%R7i<3BQ zuf_LAFR8uEM!7gUlfoBZNe0Df$Sxt}1362P!{C7b2&f7!s=m04^xvps1rs2N3m!b6 zaJ$UTZVK8GvLh6~jkJQX86=w+Wu88Ly3cQW4rx}}JLol$0Q|nKSQcn>Xg6g z$NTTD5?Kx`mi&5piq9*b9nj21r+KAm&`Y}-FMsbjF7qg z9B*2m@1I%n%ysT034OlH1K|xQyaj3&Qf!3e>2x$ShGn)UlL_6QqR(l8A5jLR$3A(I zQAESan)hAa$Y|in6-`VJsk;Czxra}m3WL_9BmeW`ORS=fuQXUOJ*@9AJ5+U4 zcsOY7PiN&FS(*SZ%)R;Wv3!E+1iYAIu7({c1);Drr}x#>dj|)tLq3TN`UqHmWuuwu z${&TEdtGfU#`pU5&w#@nl$Q2`mjWnyh%yDNLhDd3->e=~EejP3@BH_c6Zf`?iUhTEAw;t!GP&E`t4 zWm2CLdeVNY9Xc?opHW`3kWoOdVed2TpwDsyp;Rwt?^yf|P{p9YISIAU@`0p-3kg2x zHx{jc{xIk6&|9K{_67@pyp3i_O(G&9BFFVA4fL)4-t+lM+}~)B$!#xio9QH|S1DNn z6uct%Dao}JK~9~La-N2d0@^s{U>Oi`U&iV2K_?gznj60lkpw0&+~d?7WJjqmSvR4} zlXoyUu8JKA&Yg#{u(HakC3T3Pbg3d@FuKQ1pFHVoPYpP5mri*|QB92pV&>OZ@0mUN zXms;z^dLe32=Ic$CV=edbh#fSk9Y6h&B(Y6p|YoIZjHmR#Hh-fpbo+qSk^q_YUy9? zB@qzsK|+BXaTJA^klb_n%$ZHK%0{6aZQG&Nno==vj*pNqzPvq85`KM(xuo~8zMhgv zbP>SsWHh+?+T^!$puU-Ml~+(O9$)4N_-}Qi?s>vQ)Xnc6V*>3T%FzcJbdaW3+cEAx z4Dt?Nf@VBK>T+n~HH{}0y?z1M5+O2hA{vssov}+YH)G&~2a%EPZw(kl@GDjf`(d|e zmK?r0bvG+RgFikx+O)9yB{byOSfCe#$urT;be(R$PUL)z$ z;Met%xN%63BMgrt#|u-+xI*{*`Pjm*DDoZla9wo5)_Aq#O3AX-T3?3{E(ZG8m(%O zrM^$O{un(LNN3~;au+bHr-_LR4wbG`8fR2?Ag$^xww*BMfPUWB8$?z>KT`7#z!dg; zWnpk|*zrkh>~^UbDb9c<^X{Kt+P9Gf?Kyx&5?*4X{>np+XYWjbzy**p<24P#lrOwDbQE^-<{r+NI0rUvP6Xdcd62btKfmO zwfyi|QSa4hEevL*s`;9%>@Qe@)SMpDgb>N?*+P;yWuVt>^6OQ!d?eE*2u}?Ctw4Um zMb7UC&OcSYSJk{@4~!A!EpQ}d5@8{&6BSQ|N#(4sv@xWhknf&asREo6B7EmKQ_=4S znS*iaRbAa@s9%i68c0>3%4wC^H$a1(Sx!g5YLm2})&rHBS$XfgxwsxbdbGAMXdH8! zB)1?&6xZFp0Oh#J7?iFxl=tb?#yLS z=GYL)j4$oQm+k`~KrQVL5uK#!rSSquFF+ev-f}C%AgB*Vp$u0OI!BW60WI@f+>IbE zZu#XI)KBs;BxVQ-HMfOzMj=T=~FIvTP8$tfuxrd-1mO-)}{|AeN&OHlOrzq&?T z<9_*M!?a8lLCBYiptc;v~3ve$`tmPRwok38a#&Zf_01_Jn4l zVHJe3ihV^vKm@bZ>QN_S1PQ?Q_Tc_ITn8#fm^+n$nx5CBJ>w?St55-LgDMU^R=qb< z?YG%v48g*2X`~)sx;-4sN*gUPUp5NA;7NL8Y0&tTRf2dky{#K0VOfG*?|g47D}TXK z`)&*e=&7QhnZ61+At)^ZLS{kd1{MQB zeOc|04b<8R9s^$eQLre=Ci5vbi)AOVq<0b)ftx%`(sNWoq8KX$!%~YE=6aI`j!bZb z#17?l8noz{gl$LVMCn}=C4&&oHB}b$C?p|?|CD|d=*K}UtE6VrTawfBr7rJR_>9^8 z0CJ3OLOFGC9IsOqREF)dEgKsfO-5@4R>juek~AXfos&6dKxw0MQ^Mbrj*c$t8l=>z z3ayDU{@sNrN(Xp8UT*GCBnWykNP1vyDQ^%8#LYpf&#Npczni(>l&n zp1Zw1TmA^dqQ=6GMfm z?&iZh47hgQ>Ji%TL)pe1g3bPuU<^jZI4y9BT_JeH5OOa6OnZ>h4W-(ZG%kJezm?T7 zowqa2H<~)S=hi@{hnuKP zawe#RZw|&qMMWh-JyGoki6tmNkv|I)ce6{jU^WDuoGOjajg1VD5Tgd28kj*tPLj*L zl)Bv>*9A@GJcGB74qqgdYQf;M{!f;22jp6?mZ+?Fl%pUA=hboGCn=qFX4|Dk03`ymP|@-5j# z$i#`Cv@saWpGPjZ`1uP;w&BxhQFjI~od3g`TA(i)fc6&m2Q`$C4sNZ6jM{a+?=4hn zdvV75TSQ25!G;}prC=x`Ily&zdA;3BkPD{;n`si}xN_y2TNNlCj9oxjctZ%{L+~p? z9>&$s7(_ur!jL}(^y8xcXJ^&c@PS95_B0HRx|xWc+pljD0w+Ve1-{H40HI zkQPGCu}wxT`36!Mf+S3oS3l-paGFi^cK-s#3)~G1O2+|S@08vKRQpsOd@Z0Z0QFgZ z3q^15a{p)NWn}z;0OF}y(HNS7+aWnK1aAR`gz(J`POy-IT3+>@_b(J$H7FVVRbEPpv9n)AL*_^#9)`I2LAnVgPkLG!WYeSj zyVd)kz&)W=?Xh5_wb5j}mn5$~U%kHvK_?YTiVGK@?8k#W;835TlSA0!gwR6KaYFRk zwQICodMS;hh1oGbNo)Zg;<-SB*`|jTzIxYP3#4c-P#Fg(fSl|yk2?G^{^3JjQVl5v zr)VJF-1UY5n&eJ*_f(P&x->+dp)n*TLgGIoRRs$Mz8)Y1a>1K{Kw#1=c}h-WZvgm$ zb@K0NLRF+S3aN$898?TBH5Ozq1JEB8vL2K;3dL$svW>$yP7)1kR0Cr}7Ul#4R zR+tFkl2pz^Jl1{Z<0WMD7C0UPujk@W(>#e=z*}^j6-ASjwZ?v%skt-2#|7!V(c?-= zPM&kG$en>Kv2tZ{zQ01mu8R!`nnn|NS=LM%;C?x#m*Y$-AsB_!r9oRM;0DvFhdbLKG0gBu*e?YlTN{S%XX6+WJNpGg0zCb1fFoX-v-`Ux@ z{`g|%u9$ojiy;(axN1n-GRkp&sYoPkI2O+E>?KqXl+4UV+A}p{x%7XySFn0dvRCx8 zu&~VUf6@2x*#WVyR+R??<&F!_XsGt%I%;yt4_>%<5qf-^H!f-G{q*i;$m-C`WJ3yA zwHOpwg!brQ;7CKypGO*uZ7u;3=Qv8@yKO6|i69(;SPYv74lQK!9qj7@5M?D2;Ay!( zevre#v7t20-N*8e zDIq6)(f8}Cl*OifJ@yF`VA+(3{@ybX1Mdc(h-TwC$ZgH@V- zIYY$+G*#JZr#_i2B(2r{`+hW2J;k;_Dj%eVMc2;v2TP$Uo3G&medrA#D0E7WGeN)P zIj`xp)fISiJG+pGP0^b-U#DEXC12Xw%r0+2=LKrp?kaFNp`mgG(OexHn<*upsv>al zogE*Nil3xyg=!HF%^i$SO-q|D-^+q==T^+e$@uS)f}?UYNJt}qKLU!tavgHOXAONd z(XfR;F~MQ6ykEdZ!Zs+Vzz$Z36F+{0eFD`oiG-`Uo(b$TknDLG8K7Xhq&$a$wT}wT z!~Fe-*dT~ifhlqX-=PYYMZ>deaI6X=j)fw-JeQO>LSCt?q!cgeltkDcW!=|RS2r=z zf&I%=W*R0T*Q1!23nW$NK7?T{EGT(z+-L-{#m&&T7#Aa>u@S*4vj=DHpx=i44rBt1 zGh4q@6}>j!e;XQ7&x!hgNGzumMB5QTf1c%OF@!G+!;61IDHJn+S0;)H4xGV(qrENQOF;Z_w8Rb$kD#8!#5`};f-e&; zJgA_m8cCvs;D(hO&2Z*~%wHIekZ6#_H?Oz}0@m7D?z*vvHnibOjWcgqTU!sc0uS|g z3yc^SeJddOAMisuM&L@K>os{f9MK92y>sq{L=cpEPJM&Tb?AC?70u$a_#Rd@uARhT z-Q#tN0U_PLg_q|<@EEv@&rx!7>@k5CxFJ9x`XF{BY$d7xvF!rXT{#?l`r!ut(Z{B2 zK=$a_Gf}tcb}*~A{qw;r-k3Ik5?`K5A+j5&v!?9#2njA~RAIJmfkwpoB)wy+?rDD;y7)u5LO zXG<&xA^GnUg(IX83Rp!?U5WrRzx;pw@qz!wsoDQBo&0y8wa;4eDctg?nl1n>{4X=) LRMENDOz!><={MoJ literal 0 HcmV?d00001 diff --git a/static/samples/haxe-openfl/list-view-drag-and-drop/ListViewDragAndDrop.js b/static/samples/haxe-openfl/list-view-drag-and-drop/ListViewDragAndDrop.js new file mode 100644 index 00000000..75246110 --- /dev/null +++ b/static/samples/haxe-openfl/list-view-drag-and-drop/ListViewDragAndDrop.js @@ -0,0 +1,2836 @@ +/* + howler.js v2.2.4 | (c) 2013-2020, James Simpson of GoldFire Studios | MIT License | howlerjs.com Spatial Plugin @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(x){var l=0;return function(){return lx&&(x=Math.max(0,y+x));if(null==H||H>y)H=y;H=Number(H);0>H&&(H=Math.max(0,y+H));for(x=Number(x||0);x=y}},"es6","es3"); +$jscomp.polyfill("String.fromCodePoint",function(x){return x?x:function(l){for(var x="",H=0;Hy||1114111=y?x+=String.fromCharCode(y):(y-=65536,x+=String.fromCharCode(y>>>10&1023|55296),x+=String.fromCharCode(y&1023|56320))}return x}},"es6","es3"); +$jscomp.polyfill("String.prototype.repeat",function(x){return x?x:function(l){var x=$jscomp.checkStringArgs(this,null,"repeat");if(0>l||1342177279>>=1)x+=x;return H}},"es6","es3"); +$jscomp.polyfill("String.prototype.startsWith",function(x){return x?x:function(l,x){var H=$jscomp.checkStringArgs(this,l,"startsWith");l+="";var y=H.length,F=l.length;x=Math.max(0,Math.min(x|0,H.length));for(var V=0;V=F}},"es6","es3");$jscomp.owns=function(x,l){return Object.prototype.hasOwnProperty.call(x,l)};$jscomp.polyfill("Object.values",function(x){return x?x:function(l){var x=[],H;for(H in l)$jscomp.owns(l,H)&&x.push(l[H]);return x}},"es8","es3"); +$jscomp.polyfill("Object.setPrototypeOf",function(x){return x||$jscomp.setPrototypeOf},"es6","es5");$jscomp.polyfill("Object.is",function(x){return x?x:function(l,x){return l===x?0!==l||1/l===1/x:l!==l&&x!==x}},"es6","es3");$jscomp.polyfill("Array.prototype.includes",function(x){return x?x:function(l,x){var H=this;H instanceof String&&(H=String(H));var y=H.length;x=x||0;for(0>x&&(x=Math.max(x+y,0));x=a)return a+32;switch(a){case 12:return 1073741980;case 16:return 1073742049;case 17:return 1073742048;case 18:return 1073742050;case 19:return 1073741896;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 41:return 1073741943;case 43:return 1073741940;case 44:return 1073741894;case 45:return 1073741897;case 46:return 127;case 91:return 1073742051;case 92:return 1073742055;case 93:return 1073742055;case 95:return 1073742106;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 108:return 1073741923;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 127:return 1073741931;case 128:return 1073741932;case 129:return 1073741933;case 130:return 1073741934;case 131:return 1073741935;case 132:return 1073741936;case 133:return 1073741937;case 134:return 1073741938;case 135:return 1073741939;case 144:return 1073741907;case 145:return 1073741895;case 160:return 94;case 161:return 33;case 163:return 35; +case 164:return 36;case 166:return 1073742094;case 167:return 1073742095;case 168:return 1073742097;case 169:return 41;case 170:return 42;case 171:return 96;case 172:return 1073741898;case 173:return 45;case 174:return 1073741953;case 175:return 1073741952;case 176:return 1073742082;case 177:return 1073742083;case 178:return 1073742084;case 179:return 1073742085;case 180:return 1073742089;case 181:return 1073742086;case 182:return 1073741953;case 183:return 1073741952;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 193:return 63;case 194:return 1073741923;case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39;case 223:return 96;case 224:return 1073742051;case 226:return 92}return a},exec:function(){window.addEventListener("keydown",h(this,this.handleKeyEvent),!1);window.addEventListener("keyup",h(this,this.handleKeyEvent),!1);window.addEventListener("focus",h(this,this.handleWindowEvent), +!1);window.addEventListener("blur",h(this,this.handleWindowEvent),!1);window.addEventListener("resize",h(this,this.handleWindowEvent),!1);window.addEventListener("beforeunload",h(this,this.handleWindowEvent),!1);Object.prototype.hasOwnProperty.call(window,"Accelerometer")&&window.addEventListener("devicemotion",h(this,this.handleSensorEvent),!1);CanvasRenderingContext2D.prototype.isPointInStroke||(CanvasRenderingContext2D.prototype.isPointInStroke=function(a,b,c){return!1});CanvasRenderingContext2D.prototype.isPointInPath|| +(CanvasRenderingContext2D.prototype.isPointInPath=function(a,b,c){return!1});0=="performance"in window&&(window.performance={});if(0=="now"in window.performance){var a=Date.now();performance.timing&&performance.timing.navigationStart&&(a=performance.timing.navigationStart);window.performance.now=function(){return Date.now()-a}}for(var b=0,c=["ms","moz","webkit","o"],d=0;d=this.nextUpdate){this.deltaTime=this.currentUpdate-this.lastUpdate;a=0;for(b=this.parent.__windows;athis.framePeriod?this.currentUpdate:this.currentUpdate- +this.currentUpdate%this.framePeriod+this.framePeriod;this.lastUpdate=this.currentUpdate}window.requestAnimationFrame(h(this,this.handleApplicationEvent))},handleKeyEvent:function(a){if(null!=this.parent.__window){var b=this.convertKeyCode(null!=a.keyCode?a.keyCode:a.which),c=(a.shiftKey?3:0)|(a.ctrlKey?192:0)|(a.altKey?768:0)|(a.metaKey?3072:0);"keydown"==a.type?(this.parent.__window.onKeyDown.dispatch(b,c),this.parent.__window.onKeyDown.canceled&&a.cancelable&&a.preventDefault()):(this.parent.__window.onKeyUp.dispatch(b, +c),this.parent.__window.onKeyUp.canceled&&a.cancelable&&a.preventDefault())}},handleSensorEvent:function(a){this.accelerometer.onUpdate.dispatch(a.accelerationIncludingGravity.x,a.accelerationIncludingGravity.y,a.accelerationIncludingGravity.z)},handleWindowEvent:function(a){if(null!=this.parent.__window)switch(a.type){case "blur":this.hidden||(this.parent.__window.onFocusOut.dispatch(),this.parent.__window.onDeactivate.dispatch(),this.hidden=!0);break;case "focus":this.hidden&&(this.parent.__window.onFocusIn.dispatch(), +this.parent.__window.onActivate.dispatch(),this.hidden=!1);break;case "resize":this.parent.__window.__backend.handleResizeEvent(a);break;case "visibilitychange":window.document.hidden?this.hidden||(this.parent.__window.onFocusOut.dispatch(),this.parent.__window.onDeactivate.dispatch(),this.hidden=!0):this.hidden&&(this.parent.__window.onFocusIn.dispatch(),this.parent.__window.onActivate.dispatch(),this.hidden=!1)}},updateGameDevices:function(){var a=Zb.__getDeviceData();if(null!=a)for(var b,c,d,f, +k,u=0,K=a.length;u=Object.keys(this.__eventMap.h).length&&(this.__iterators=this.__eventMap=null)}}},toString:function(){return"[object "+v.getClass(this).__name__.split(".").pop()+"]"},__dispatchEvent:function(a){if(null==this.__eventMap||null==a)return!0;var b=a.type,c=this.__eventMap.h[b];if(null==c)return!0;null== +a.target&&(a.target=null!=this.__targetDispatcher?this.__targetDispatcher:this);a.currentTarget=this;var d=1==a.eventPhase;b=this.__iterators.h[b];var f=b[0];f.active&&(f=new Uf(c),b.push(f));f.start();for(var k=f;k.hasNext();){var u=k.next();if(null!=u&&u.useCapture==d){if(u.useWeakReference&&null!=u.weakRefCallback){var K=u.weakRefCallback.deref();if(null==K)K=f.index-1,c.splice(K,1),f.remove(u,K);else if(null!=va.get_current()&&null!=va.get_current().stage&&va.get_current().stage.__uncaughtErrorEvents.__enabled)try{K(a)}catch(n){Ia.lastError= +n,u=fa.caught(n).unwrap(),a instanceof jf||va.get_current().stage.__handleError(u)}else K(a)}else if(null!=va.get_current()&&null!=va.get_current().stage&&va.get_current().stage.__uncaughtErrorEvents.__enabled)try{u.callback(a)}catch(n){Ia.lastError=n,u=fa.caught(n).unwrap(),a instanceof jf||va.get_current().stage.__handleError(u)}else u.callback(a);if(a.__isCanceledNow)break}}f.stop();f!=b[0]?aa.remove(b,f):f.reset(c);return!a.isDefaultPrevented()},__addListenerByPriority:function(a,b){for(var c= +a.length,d=c,f=0;f=a||0==this.inactiveObjects)&&(null!=this.__inactiveObject0&&(this.__pool.remove(this.__inactiveObject0),this.__inactiveObject0=null,this.inactiveObjects--,--a),0!=a&&0!=this.inactiveObjects&&(null!=this.__inactiveObject1&&(this.__pool.remove(this.__inactiveObject1), +this.__inactiveObject1=null,this.inactiveObjects--,--a),0!=a&&0!=this.inactiveObjects)))for(var b=this.__inactiveObjectList.h;null!=b;){var c=b.item;b=b.next;this.__pool.remove(c);this.__inactiveObjectList.remove(c);this.inactiveObjects--;--a;if(0==a||0==this.inactiveObjects)break}},set_size:function(a){if(null==a)this.__size=null;else{var b=this.inactiveObjects+this.activeObjects;this.__size=a;if(b>a)this.__removeInactive(b-a);else if(a>b)for(var c=0,d=a-b;ca&&(a=0);a==this.__alpha||this.get_cacheAsBitmap()||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__alpha=a},get_cacheAsBitmap:function(){return null==this.__filters?this.__cacheAsBitmap:!0},get_filters:function(){return null==this.__filters?[]:this.__filters.slice()},set_filters:function(a){if(null!=a&&0a&&(a+=360);this.__rotation= +a;var b=Math.PI/180*this.__rotation;this.__rotationSine=Math.sin(b);this.__rotationCosine=Math.cos(b);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 a},get_scaleX:function(){return this.__scaleX},set_scaleX:function(a){if(a!=this.__scaleX)if(this.__scaleX=a,0==this.__transform.b)a!=this.__transform.a&& +this.__setTransformDirty(),this.__transform.a=a;else{var b=this.__rotationCosine*a,c=this.__rotationSine*a;this.__transform.a==b&&this.__transform.b==c||this.__setTransformDirty();this.__transform.a=b;this.__transform.b=c}return a},get_scaleY:function(){return this.__scaleY},set_scaleY:function(a){if(a!=this.__scaleY)if(this.__scaleY=a,0==this.__transform.c)a!=this.__transform.d&&this.__setTransformDirty(),this.__transform.d=a;else{var b=-this.__rotationSine*a,c=this.__rotationCosine*a;this.__transform.d== +c&&this.__transform.c==b||this.__setTransformDirty();this.__transform.c=b;this.__transform.d=c}return a},get_scrollRect:function(){return null==this.__scrollRect?null:this.__scrollRect.clone()},set_scrollRect:function(a){if(null==a&&null==this.__scrollRect||null!=a&&null!=this.__scrollRect&&this.__scrollRect.equals(a))return a;null!=a?(null==this.__scrollRect&&(this.__scrollRect=new da),this.__scrollRect.copyFrom(a)):this.__scrollRect=null;this.__setTransformDirty();L.__supportDOM&&!this.__renderDirty&& +(this.__renderDirty=!0,this.__setParentRenderDirty());return a},get_transform:function(){null==this.__objectTransform&&(this.__objectTransform=new Mg(this));return this.__objectTransform},set_transform:function(a){if(null==a)throw new Zc("Parameter transform must be non-null.");null==this.__objectTransform&&(this.__objectTransform=new Mg(this));this.__setTransformDirty();this.__objectTransform.set_matrix(a.get_matrix());if(!this.__objectTransform.__colorTransform.__equals(a.__colorTransform,!0)|| +!this.get_cacheAsBitmap()&&this.__objectTransform.__colorTransform.alphaMultiplier!=a.__colorTransform.alphaMultiplier)this.__objectTransform.__colorTransform.__copyFrom(a.get_colorTransform()),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__objectTransform},get_visible:function(){return this.__visible},set_visible:function(a){a==this.__visible||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__visible=a},get_width:function(){var a= +da.__pool.get();this.__getLocalBounds(a);var b=a.width;da.__pool.release(a);return b},set_width:function(a){var b=da.__pool.get(),c=pa.__pool.get();c.identity();this.__getBounds(b,c);a!=b.width?this.set_scaleX(a/b.width):this.set_scaleX(1);da.__pool.release(b);pa.__pool.release(c);return a},get_x:function(){return this.__transform.tx},set_x:function(a){a!=this.__transform.tx&&this.__setTransformDirty();return this.__transform.tx=a},get_y:function(){return this.__transform.ty},set_y:function(a){a!= +this.__transform.ty&&this.__setTransformDirty();return this.__transform.ty=a},__class__:L,__properties__:{set_y:"set_y",get_y:"get_y",set_x:"set_x",get_x:"get_x",set_width:"set_width",get_width:"get_width",set_visible:"set_visible",get_visible:"get_visible",set_transform:"set_transform",get_transform:"get_transform",set_scrollRect:"set_scrollRect",get_scrollRect:"get_scrollRect",set_scaleY:"set_scaleY",get_scaleY:"get_scaleY",set_scaleX:"set_scaleX",get_scaleX:"get_scaleX",set_rotation:"set_rotation", +get_rotation:"get_rotation",set_name:"set_name",get_name:"get_name",get_mouseY:"get_mouseY",get_mouseX:"get_mouseX",set_mask:"set_mask",get_mask:"get_mask",get_loaderInfo:"get_loaderInfo",set_height:"set_height",get_height:"get_height",set_filters:"set_filters",get_filters:"get_filters",get_cacheAsBitmap:"get_cacheAsBitmap",set_alpha:"set_alpha",get_alpha:"get_alpha"}});var ha=function(){L.call(this);this.doubleClickEnabled=!1;this.mouseEnabled=!0;this.needsSoftKeyboard=!1;this.__tabEnabled=null; +this.__tabIndex=-1};g["openfl.display.InteractiveObject"]=ha;ha.__name__="openfl.display.InteractiveObject";ha.__super__=L;ha.prototype=t(L.prototype,{__allowMouseFocus:function(){return this.mouseEnabled?this.get_tabEnabled():!1},__getInteractive:function(a){null!=a&&(a.push(this),null!=this.parent&&this.parent.__getInteractive(a));return!0},__hitTest:function(a,b,c,d,f,k){return!k.get_visible()||this.__isMask||f&&!this.mouseEnabled?!1:L.prototype.__hitTest.call(this,a,b,c,d,f,k)},__tabTest:function(a){this.get_tabEnabled()&& +a.push(this)},get_tabEnabled:function(){return 1==this.__tabEnabled?!0:!1},set_tabEnabled:function(a){this.__tabEnabled!=a&&(this.__tabEnabled=a,this.dispatchEvent(new ca("tabEnabledChange",!0,!1)));return this.__tabEnabled},get_tabIndex:function(){return this.__tabIndex},set_tabIndex:function(a){if(this.__tabIndex!=a){if(-1>a)throw new Ne("Parameter tabIndex must be a non-negative number; got "+a);this.__tabIndex=a;this.dispatchEvent(new ca("tabIndexChange",!0,!1))}return this.__tabIndex},__class__:ha, +__properties__:t(L.prototype.__properties__,{set_tabIndex:"set_tabIndex",get_tabIndex:"get_tabIndex",set_tabEnabled:"set_tabEnabled",get_tabEnabled:"get_tabEnabled"})});var ya=function(){ha.call(this);this.__tabChildren=this.mouseChildren=!0;this.__children=[];this.__removedChildren=oa.toObjectVector(null)};g["openfl.display.DisplayObjectContainer"]=ya;ya.__name__="openfl.display.DisplayObjectContainer";ya.__super__=ha;ya.prototype=t(ha.prototype,{addChild:function(a){return this.addChildAt(a,this.get_numChildren())}, +addChildAt:function(a,b){if(null==a)throw a=new Zc("Error #2007: Parameter child must be non-null."),a.errorID=2007,a;if(a==this)throw a=new ab("Error #2024: An object cannot be added as a child of itself."),a.errorID=2024,a;if(a.stage==a)throw a=new ab("Error #3783: A Stage object cannot be added as the child of another object."),a.errorID=3783,a;if(b>this.__children.length||0>b)throw fa.thrown("Invalid index position "+b);if(a.parent==this)this.__children[b]!=a&&(aa.remove(this.__children,a),this.__children.splice(b, +0,a),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));else{null!=a.parent&&a.parent.removeChild(a);this.__children.splice(b,0,a);a.parent=this;(b=null!=this.stage&&null==a.stage)&&a.__setStageReference(this.stage);a.__setTransformDirty();a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty());this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());var c=new ca("added");c.bubbles=!0;c.target=a;a.__dispatchWithCapture(c);b&&(c=new ca("addedToStage", +!1,!1),a.__dispatchWithCapture(c),a.__dispatchChildren(c))}return a},contains:function(a){for(;a!=this&&null!=a;)a=a.parent;return a==this},getChildAt:function(a){return 0<=a&&af)););if(n)return d.splice(f,0,k),!0}}else{for(n=!1;0<=--u&&(!this.__children[u].__hitTest(a,b,c,d,!1,this.__children[u])||(n=!0,null!=d)););return n}return!1},__hitTestMask:function(a,b){for(var c=this.__children.length;0<=--c;)if(this.__children[c].__hitTestMask(a,b))return!0;return!1},__setStageReference:function(a){ha.prototype.__setStageReference.call(this, +a);if(null!=this.__children)for(var b=0,c=this.__children;ba||c==b)&&this.setInvalid(E.SIZE)}return this._explicitMaxWidth},get_explicitMaxHeight:function(){return this._explicitMaxHeight},set_explicitMaxHeight:function(a){if(this._explicitMaxHeight==a)return this._explicitMaxHeight;var b=this._explicitMaxHeight;this._explicitMaxHeight=a;if(null==a)this.actualMaxHeight=1/0,this.scaledActualMaxHeight= +1/0,this.setInvalid(E.SIZE);else{var c=this.actualHeight;this.saveMeasurements(this.actualWidth,this.actualHeight,this.actualMinWidth,this.actualMinHeight,this.actualMaxWidth,a);null==this._explicitHeight&&(c>a||c==b)&&this.setInvalid(E.SIZE)}return this._explicitMaxHeight},get_maxWidth:function(){return this.scaledActualMaxWidth},set_maxWidth:function(a){1!=this.get_scaleX()&&(a/=this.get_scaleX());this.set_explicitMaxWidth(a);return this.scaledActualMaxWidth},get_maxHeight:function(){return this.scaledActualMaxHeight}, +set_maxHeight:function(a){1!=this.get_scaleY()&&(a/=this.get_scaleY());this.set_explicitMaxHeight(a);return this.scaledActualMaxHeight},resetWidth:function(){this.set_explicitWidth(null)},resetHeight:function(){this.set_explicitHeight(null)},resetMinWidth:function(){this.set_explicitMinWidth(null)},resetMinHeight:function(){this.set_explicitMinHeight(null)},resetMaxWidth:function(){this.set_explicitMaxWidth(null)},resetMaxHeight:function(){this.set_explicitMaxHeight(null)},getBounds:function(a){null== +this.__getBoundsHelperMatrix1?this.__getBoundsHelperMatrix1=new pa:this.__getBoundsHelperMatrix1.identity();if(null!=a&&a!=this){null==this.__getBoundsHelperMatrix2&&(this.__getBoundsHelperMatrix2=new pa);var b=this.__getWorldTransform();this.__getBoundsHelperMatrix1.copyFrom(b);a=a.__getWorldTransform();this.__getBoundsHelperMatrix2.copyFrom(a);this.__getBoundsHelperMatrix2.invert();this.__getBoundsHelperMatrix1.concat(this.__getBoundsHelperMatrix2);this.__getBoundsHelperMatrix2.identity()}a=this.__getBoundsHelperMatrix1.tx; +b=this.__getBoundsHelperMatrix1.ty;var c=this.actualWidth*this.__getBoundsHelperMatrix1.a+this.actualHeight*this.__getBoundsHelperMatrix1.c+this.__getBoundsHelperMatrix1.tx-a,d=this.actualWidth*this.__getBoundsHelperMatrix1.b+this.actualHeight*this.__getBoundsHelperMatrix1.d+this.__getBoundsHelperMatrix1.ty-b;this.__getBoundsHelperMatrix1.identity();return new da(a,b,c,d)},saveMeasurements:function(a,b,c,d,f,k){null==d&&(d=0);null==c&&(c=0);null==f&&(f=1/0);null==k&&(k=1/0);null!=this._explicitMinWidth&& +(c=this._explicitMinWidth);null!=this._explicitMinHeight&&(d=this._explicitMinHeight);null!=this._explicitMaxWidth?f=this._explicitMaxWidth:null==f&&(f=1/0);null!=this._explicitMaxHeight?k=this._explicitMaxHeight:null==k&&(k=1/0);null==this._explicitMaxWidth&&ff&&(c=f);null==this._explicitMaxHeight&&kk&&(d=k);null!=this._explicitWidth?a=this._explicitWidth:af&&(a=f);null!=this._explicitHeight?b=this._explicitHeight: +bk&&(b=k);var u=this.get_scaleX();0>u&&(u=-u);var K=this.get_scaleY();0>K&&(K=-K);var n=!1;this.actualWidth!=a&&(this.actualWidth=a,n=!0);this.actualHeight!=b&&(this.actualHeight=b,n=!0);this.actualMinWidth!=c&&(this.actualMinWidth=c,n=!0);this.actualMinHeight!=d&&(this.actualMinHeight=d,n=!0);this.actualMaxWidth!=f&&(this.actualMaxWidth=f,n=!0);this.actualMaxHeight!=k&&(this.actualMaxHeight=k,n=!0);a=this.scaledActualWidth;b=this.scaledActualHeight;this.scaledActualWidth=this.actualWidth* +u;this.scaledActualHeight=this.actualHeight*K;this.scaledActualMinWidth=this.actualMinWidth*u;this.scaledActualMinHeight=this.actualMinHeight*K;this.scaledActualMaxWidth=this.actualMaxWidth*u;this.scaledActualMaxHeight=this.actualMaxHeight*K;if(a!=this.scaledActualWidth||b!=this.scaledActualHeight)n=!0,Ca.dispatch(this,"resize");return n},__class__:Hb,__properties__:t(Yb.prototype.__properties__,{set_maxHeight:"set_maxHeight",get_maxHeight:"get_maxHeight",set_maxWidth:"set_maxWidth",get_maxWidth:"get_maxWidth", +set_explicitMaxHeight:"set_explicitMaxHeight",get_explicitMaxHeight:"get_explicitMaxHeight",set_explicitMaxWidth:"set_explicitMaxWidth",get_explicitMaxWidth:"get_explicitMaxWidth",set_minHeight:"set_minHeight",get_minHeight:"get_minHeight",set_minWidth:"set_minWidth",get_minWidth:"get_minWidth",set_explicitMinHeight:"set_explicitMinHeight",get_explicitMinHeight:"get_explicitMinHeight",set_explicitMinWidth:"set_explicitMinWidth",get_explicitMinWidth:"get_explicitMinWidth",set_explicitHeight:"set_explicitHeight", +get_explicitHeight:"get_explicitHeight",set_explicitWidth:"set_explicitWidth",get_explicitWidth:"get_explicitWidth"})});var A=function(){};g["feathers.layout.ILayoutObject"]=A;A.__name__="feathers.layout.ILayoutObject";A.__isInterface__=!0;A.__interfaces__=[J];A.prototype={__class__:A,__properties__:{get_layoutData:"get_layoutData",get_includeInLayout:"get_includeInLayout"}};var Ta=function(){};g["feathers.style.IStyleObject"]=Ta;Ta.__name__="feathers.style.IStyleObject";Ta.__isInterface__=!0;Ta.prototype= +{__class__:Ta,__properties__:{get_themeEnabled:"get_themeEnabled"}};var mc=function(){};g["feathers.style.IVariantStyleObject"]=mc;mc.__name__="feathers.style.IVariantStyleObject";mc.__isInterface__=!0;mc.__interfaces__=[Ta];mc.prototype={__class__:mc,__properties__:{set_variant:"set_variant",get_variant:"get_variant",get_styleContext:"get_styleContext"}};var ia=function(){};g["feathers.core.IUIControl"]=ia;ia.__name__="feathers.core.IUIControl";ia.__isInterface__=!0;ia.__interfaces__=[jb];ia.prototype= +{__class__:ia,__properties__:{get_toolTip:"get_toolTip",set_enabled:"set_enabled",get_enabled:"get_enabled"}};var Y=function(){this._restrictedStyles=[];this._styleProviderStyles=[];this._applyingStyles=this._clearingStyles=!1;this._focusPaddingTop=this._focusPaddingRight=this._focusPaddingBottom=this._focusPaddingLeft=0;this._focusRectSkin=null;this._alwaysShowFocus=!1;this._currentFocusRectSkin=null;this._focusEnabled=!0;this._disabledAlpha=this._focusManager=null;this._explicitAlpha=1;this._includeInLayout= +!0;this._currentStyleProvider=this._customStyleProvider=null;this._themeEnabled=!0;this._toolTip=null;this._enabled=!0;this._waitingToApplyStyles=this._initializing=this._initialized=this._created=!1;Hb.call(this);this.set_tabEnabled(v.__implements(this,Kb));this.addEventListener("addedToStage",h(this,this.feathersControl_addedToStageHandler));this.addEventListener("removedFromStage",h(this,this.feathersControl_removedFromStageHandler));this.addEventListener("focusIn",h(this,this.feathersControl_focusInHandler)); +this.addEventListener("focusOut",h(this,this.feathersControl_focusOutHandler))};g["feathers.core.FeathersControl"]=Y;Y.__name__="feathers.core.FeathersControl";Y.__interfaces__=[A,mc,ia];Y.__super__=Hb;Y.prototype=t(Hb.prototype,{get_enabled:function(){return this._enabled},set_enabled:function(a){if(this._enabled==a)return this._enabled;(this._enabled=a)||null==this._disabledAlpha?Hb.prototype.set_alpha.call(this,this._explicitAlpha):this._enabled||null==this._disabledAlpha||Hb.prototype.set_alpha.call(this, +this._disabledAlpha);this.setInvalid(E.STATE);this._enabled?Ca.dispatch(this,"enable"):Ca.dispatch(this,"disable");return this._enabled},get_toolTip:function(){return this._toolTip},get_themeEnabled:function(){return this._themeEnabled},get_styleContext:function(){return null},get_includeInLayout:function(){return this._includeInLayout},get_layoutData:function(){return this._layoutData},set_layoutData:function(a){if(!this.setStyle("layoutData"))return this._layoutData;this._previousClearStyle=h(this, +this.clearStyle_layoutData);return this.setLayoutDataInternal(a)},set_alpha:function(a){this._explicitAlpha=a;(this._enabled||null==this._disabledAlpha)&&Hb.prototype.set_alpha.call(this,a);return this._explicitAlpha},get_focusManager:function(){return this._focusManager},set_focusManager:function(a){if(this._focusManager==a)return this._focusManager;null!=this._focusManager&&this.showFocus(!1);return this._focusManager=a},get_focusOwner:function(){return this._focusOwner},set_focusOwner:function(a){return this._focusOwner== +a?this._focusOwner:this._focusOwner=a},get_rawTabEnabled:function(){return Hb.prototype.get_tabEnabled.call(this)},get_focusEnabled:function(){return this._enabled?this._focusEnabled:!1},get_tabEnabled:function(){return this._enabled?Hb.prototype.get_tabEnabled.call(this):!1},get_alwaysShowFocus:function(){return this._alwaysShowFocus},get_focusRectSkin:function(){return this._focusRectSkin},set_focusRectSkin:function(a){if(!this.setStyle("focusRectSkin"))return this._focusRectSkin;this.showFocus(!1); +this._previousClearStyle=h(this,this.clearStyle_focusRectSkin);return this._focusRectSkin=a},showFocus:function(a){this._currentFocusRectSkin=this.getCurrentFocusRectSkin();null!=this._focusManager&&null!=this._currentFocusRectSkin&&(a?(this._focusManager.get_focusPane().addChild(this._currentFocusRectSkin),this.addEventListener("enterFrame",h(this,this.feathersControl_focusRect_enterFrameHandler)),this.positionFocusRect()):null!=this._currentFocusRectSkin.parent&&(this.removeEventListener("enterFrame", +h(this,this.feathersControl_focusRect_enterFrameHandler)),this._currentFocusRectSkin.parent.removeChild(this._currentFocusRectSkin)))},getCurrentFocusRectSkin:function(){return this._focusRectSkin},clearStyle_layoutData:function(){return this.setLayoutDataInternal(null)},clearStyle_focusRectSkin:function(){this.showFocus(!1);return this._focusRectSkin=null},positionFocusRect:function(){if(null!=this._focusManager&&null!=this._currentFocusRectSkin&&null!=this._currentFocusRectSkin.parent){var a=new Ba(-this._focusPaddingLeft, +-this._focusPaddingTop);a=this.localToGlobal(a);a=this._focusManager.get_focusPane().globalToLocal(a);this._currentFocusRectSkin.set_x(a.x);this._currentFocusRectSkin.set_y(a.y);a.setTo(this.actualWidth+this._focusPaddingRight,this.actualHeight+this._focusPaddingBottom);a=this.localToGlobal(a);a=this._focusManager.get_focusPane().globalToLocal(a);this._currentFocusRectSkin.set_width(a.x-this._currentFocusRectSkin.get_x());this._currentFocusRectSkin.set_height(a.y-this._currentFocusRectSkin.get_y())}}, +setLayoutDataInternal:function(a){if(this._layoutData==a)return this._layoutData;null!=this._layoutData&&this._layoutData.removeEventListener("change",h(this,this.feathersControl_layoutData_changeHandler));this._layoutData=a;null!=this._layoutData&&this._layoutData.addEventListener("change",h(this,this.feathersControl_layoutData_changeHandler),!1,0,!0);Ca.dispatch(this,"layoutDataChange");return this._layoutData},get_variant:function(){return this._variant},set_variant:function(a){if(this._variant== +a)return this._variant;this._variant=a;this._initialized&&null!=this.stage?this.applyStyles():this._waitingToApplyStyles=!0;this.setInvalid(E.STYLES);return this._variant},validateNow:function(){if(!this._initialized){if(this._initializing)throw new bb("A component cannot validate until after it has finished initializing.");this.initializeNow()}this._waitingToApplyStyles&&this.applyStyles();Hb.prototype.validateNow.call(this);this._created||(this._created=!0,Ca.dispatch(this,"creationComplete"))}, +initializeNow:function(){this._initialized||this._initializing||(this._initializing=this._waitingToApplyStyles=!0,this.initialize(),this.setInvalid(),this._initializing=!1,this._initialized=!0,Ca.dispatch(this,"initialize"))},dispose:function(){this.clearStyles();for(var a=0,b=this.get_numChildren();aa&&(a=this._backgroundSkinMeasurements.width):null!=this._backgroundSkinMeasurements.minWidth&&this._backgroundSkinMeasurements.minWidth>a&&(a=this._backgroundSkinMeasurements.minWidth),null!=this._backgroundSkinMeasurements.height?this._backgroundSkinMeasurements.height>c&&(c=this._backgroundSkinMeasurements.height):null!=this._backgroundSkinMeasurements.minHeight&&this._backgroundSkinMeasurements.minHeight>c&&(c=this._backgroundSkinMeasurements.minHeight)); +this._layoutMeasurements.minWidth=a;this._layoutMeasurements.minHeight=c;this._layoutMeasurements.maxWidth=d;this._layoutMeasurements.maxHeight=f},handleLayout:function(){null!=this._currentLayout?this.handleCustomLayout():this.handleManualLayout();this.handleLayoutResult()},handleCustomLayout:function(){var a=this._ignoreChildChanges;this._ignoreChildChanges=!0;this._layoutResult.reset();this._currentLayout.layout(this.items,this._layoutMeasurements,this._layoutResult);this._ignoreChildChanges=a}, +handleManualLayout:function(){var a=this._layoutMeasurements.width;null==a&&(a=0);var b=this._layoutMeasurements.height;null==b&&(b=0);var c=this._ignoreChildChanges;this._ignoreChildChanges=!0;for(var d=0,f=this.items;dthis._layoutMeasurements.maxWidth&&(a=this._layoutMeasurements.maxWidth),this._layoutResult.viewPortWidth=a);null!=this._layoutMeasurements.height?this._layoutResult.viewPortHeight= +this._layoutMeasurements.height:(null!=this._layoutMeasurements.minHeight&&bthis._layoutMeasurements.maxHeight&&(b=this._layoutMeasurements.maxHeight),this._layoutResult.viewPortHeight=b)},handleLayoutResult:function(){var a=this._layoutResult.viewPortWidth,b=this._layoutResult.viewPortHeight;this.saveMeasurements(a,b,a,b)},refreshMaskLayout:function(){null!=this._currentMaskSkin&& +(this._currentMaskSkin.set_x(0),this._currentMaskSkin.set_y(0),this._currentMaskSkin.set_width(this.actualWidth),this._currentMaskSkin.set_height(this.actualHeight),v.__implements(this._currentMaskSkin,ea)&&this._currentMaskSkin.validateNow())},refreshBackgroundLayout:function(){null!=this._currentBackgroundSkin&&(this._currentBackgroundSkin.set_x(0),this._currentBackgroundSkin.set_y(0),this._currentBackgroundSkin.get_width()!=this.actualWidth&&this._currentBackgroundSkin.set_width(this.actualWidth), +this._currentBackgroundSkin.get_height()!=this.actualHeight&&this._currentBackgroundSkin.set_height(this.actualHeight),v.__implements(this._currentBackgroundSkin,ea)&&this._currentBackgroundSkin.validateNow())},validateChildren:function(){v.__implements(this._currentBackgroundSkin,ea)&&this._currentBackgroundSkin.validateNow();for(var a=0,b=this.items;ac?a:aa.substr(a,0,b+c)),c=null!=this.r.m)this.r.s=a}else if(c=this.match(0>c?aa.substr(a,b,null):aa.substr(a,b,c)))this.r.s=a,this.r.m.index+=b;return c},split:function(a){return a.replace(this.r,"#__delim__#").split("#__delim__#")},map:function(a,b){var c=0,d="";do{if(c>=a.length)break;else if(!this.matchSub(a,c)){d+=p.string(aa.substr(a,c,null));break}var f=this.matchedPos(); +d+=p.string(aa.substr(a,c,f.pos-c));d+=p.string(b(this));0==f.len?(d+=p.string(aa.substr(a,f.pos,1)),c=f.pos+1):c=f.pos+f.len}while(this.r.global);!this.r.global&&0c)if(0==b)c=a.length+c;else return"";return a.substr(b,c)};aa.remove=function(a,b){b=a.indexOf(b);if(-1==b)return!1;a.splice(b,1);return!0};aa.now=function(){return Date.now()};var Za=function(){};g.Lambda= +Za;Za.__name__="Lambda";Za.array=function(a){var b=[];for(a=y(a);a.hasNext();){var c=a.next();b.push(c)}return b};var I=function(a,b){this.text=a;this.sortCompareFunction=b};g.SortItem=I;I.__name__="SortItem";I.prototype={toString:function(){return this.text},__class__:I};var gb=function(){};g.ManifestResources=gb;gb.__name__="ManifestResources";gb.init=function(a){gb.preloadLibraries=[];gb.preloadLibraryNames=[];gb.rootPath=null;null!=a&&Object.prototype.hasOwnProperty.call(a,"rootPath")&&(gb.rootPath= +C.field(a,"rootPath"),W.endsWith(gb.rootPath,"/")||(gb.rootPath+="/"));null==gb.rootPath&&(gb.rootPath="./");a=Lc.parse('{"name":null,"assets":"aoy4:pathy34:assets%2Fimg%2Ffeathersui-logo.pngy4:sizei3872y4:typey5:IMAGEy2:idy15:feathersui-logogh","rootPath":null,"version":2,"libraryArgs":[],"libraryType":null}',gb.rootPath);a=Ab.fromManifest(a);la.registerLibrary("default",a);a=la.getLibrary("default");null!=a?gb.preloadLibraries.push(a):gb.preloadLibraryNames.push("default")};Math.__name__="Math"; +var C=function(){};g.Reflect=C;C.__name__="Reflect";C.field=function(a,b){try{return a[b]}catch(c){return Ia.lastError=c,null}};C.getProperty=function(a,b){var c;if(null==a)return null;var d=a.__properties__?c=a.__properties__["get_"+b]:!1;return d?a[c]():a[b]};C.setProperty=function(a,b,c){var d;var f=a.__properties__?d=a.__properties__["set_"+b]:!1;if(f)a[d](c);else a[b]=c};C.fields=function(a){var b=[];if(null!=a){var c=Object.prototype.hasOwnProperty,d;for(d in a)"__id__"!=d&&"hx__closures__"!= +d&&c.call(a,d)&&b.push(d)}return b};C.isFunction=function(a){return"function"==typeof a?!(a.__name__||a.__ename__):!1};C.compare=function(a,b){return a==b?0:a>b?1:-1};C.isEnumValue=function(a){return null!=a?null!=a.__enum__:!1};C.deleteField=function(a,b){if(!Object.prototype.hasOwnProperty.call(a,b))return!1;delete a[b];return!0};var p=function(){};g.Std=p;p.__name__="Std";p.string=function(a){return v.__string_rec(a,"")};p.parseInt=function(a){a=parseInt(a);return isNaN(a)?null:a};var nc=function(){}; +g["_String.String_Impl_"]=nc;nc.__name__="_String.String_Impl_";nc.fromCharCode=function(a){return String.fromCodePoint(a)};var Rb=function(){this.b=""};g.StringBuf=Rb;Rb.__name__="StringBuf";Rb.prototype={__class__:Rb};var W=function(){};g.StringTools=W;W.__name__="StringTools";W.htmlEscape=function(a,b){for(var c="",d=0,f=a;d=u&&(u=u-55232<<10|a.charCodeAt(k+1)&1023);a=u;65536<=a&&++d;switch(a){case 34:c=b?c+""":c+String.fromCodePoint(a); +break;case 38:c+="&";break;case 39:c=b?c+"'":c+String.fromCodePoint(a);break;case 60:c+="<";break;case 62:c+=">";break;default:c+=String.fromCodePoint(a)}}return c};W.htmlUnescape=function(a){return a.split(">").join(">").split("<").join("<").split(""").join('"').split("'").join("'").split("&").join("&")};W.startsWith=function(a,b){return a.length>=b.length?0==a.lastIndexOf(b,0):!1};W.endsWith=function(a,b){var c=b.length,d=a.length;return d>=c?a.indexOf(b,d-c)== +d-c:!1};W.isSpace=function(a,b){a=aa.cca(a,b);return 8a?!0:32==a};W.ltrim=function(a){for(var b=a.length,c=0;c>>=4;while(0a;return c!=0>b?c:a>b},toFloat:function(a){return 0>a?4294967296+a:a+0}},kb=function(){na.call(this);var a=new Qe;a.set_verticalAlign(wb.MIDDLE);this.set_layout(a);this.set_buttonMode(!0);this.useHandCursor=!0;this.mouseChildren=!1;a=new ra;a.set_text("Powered by ");this.addChild(a); +this.icon=new Bb;this.icon.set_source("feathersui-logo");this.icon.set_height(16);this.addChild(this.icon);this.addEventListener("rollOver",h(this,this.poweredBy_rollOverHandler));this.addEventListener("rollOut",h(this,this.poweredBy_rollOutHandler));this.addEventListener("click",h(this,this.poweredBy_clickHandler))};g["com.feathersui.controls.PoweredByFeathersUI"]=kb;kb.__name__="com.feathersui.controls.PoweredByFeathersUI";kb.__super__=na;kb.prototype=t(na.prototype,{poweredBy_rollOverHandler:function(a){this.callout= +Ec.show("Learn more at feathersui.com",this.icon,null,!1)},poweredBy_rollOutHandler:function(a){null!=this.callout&&this.callout.close()},poweredBy_clickHandler:function(a){va.navigateToURL(new Wf("https://feathersui.com/"),"_blank")},__class__:kb});var Bb=function(a,b){this._scaleMode=3;this._scaleModeMask=null;this._sourceScale=1;this._contentMeasurements=new Wb;Y.call(this);this.set_source(a);null!=b&&this.addEventListener("complete",b)};g["feathers.controls.AssetLoader"]=Bb;Bb.__name__="feathers.controls.AssetLoader"; +Bb.__super__=Y;Bb.prototype=t(Y.prototype,{set_source:function(a){var b=this;if(this._source==a)return this._source;null!=this.loader&&this.loader.unloadAndStop();null!=this.content&&(this.removeChild(this.content),this.content=null);this._source=a;if(null==this._source)this._pendingFuture=null,this.cleanupLoader();else if(cb.exists(this._source,"IMAGE"))if(this.cleanupLoader(),cb.isLocal(this._source,"IMAGE"))this._pendingFuture=null,a=cb.getBitmapData(this._source),a=this.createBitmap(a),this._contentMeasurements.save(a), +this.addChild(a),this.content=a;else{var c=cb.loadBitmapData(this._source);c.onProgress(function(a,c){b.dispatchEvent(new Od("progress",!1,!1,a,c))}).onComplete(function(a){c==b._pendingFuture&&(a=b.createBitmap(a),b._contentMeasurements.save(a),b.addChild(a),b.content=a,b.setInvalid(E.DATA),b.dispatchEvent(new ca("complete")))}).onError(function(a){b.dispatchEvent(new we("ioError"))});this._pendingFuture=c}else if(cb.exists(this._source,"MOVIE_CLIP"))if(this.cleanupLoader(),cb.isLocal(this._source, +"MOVIE_CLIP"))this._pendingFuture=null,a=cb.getMovieClip(this._source),this._contentMeasurements.save(a),this.addChild(a),this.content=a;else{var d=cb.loadMovieClip(this._source);d.onProgress(function(a,c){b.dispatchEvent(new Od("progress",!1,!1,a,c))}).onComplete(function(a){d==b._pendingFuture&&(b._contentMeasurements.save(a),b.addChild(a),b.content=a,b.setInvalid(E.DATA),b.dispatchEvent(new ca("complete")))}).onError(function(a){b.dispatchEvent(new we("ioError"))});this._pendingFuture=d}else{this._pendingFuture= +null;null==this.loader&&(this.loader=new Xf,this.loader.contentLoaderInfo.addEventListener("complete",h(this,this.loader_contentLoaderInfo_completeHandler)),this.loader.contentLoaderInfo.addEventListener("progress",h(this,this.loader_contentLoaderInfo_progressHandler)),this.loader.contentLoaderInfo.addEventListener("ioError",h(this,this.loader_contentLoaderInfo_ioErrorHandler)),this.loader.contentLoaderInfo.addEventListener("securityError",h(this,this.loader_contentLoaderInfo_securityErrorHandler))); +try{this.loader.load(new Wf(this._source))}catch(f){Ia.lastError=f,a=fa.caught(f).unwrap(),a instanceof Og&&this.dispatchEvent(new Yf("securityError",!1,!1,a.get_message(),a.errorID))}}this.setInvalid(E.DATA);return this._source},dispose:function(){this.set_source(null);Y.prototype.dispose.call(this)},update:function(){this.isInvalid(E.DATA);this.isInvalid(E.LAYOUT);this.measure();this.layoutChildren()},measure:function(){var a=null==this.get_explicitWidth(),b=null==this.get_explicitHeight(),c=null== +this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;var u=this._contentMeasurements.width,K=this._contentMeasurements.height;null!=u&&1!=this._sourceScale&&(u*=this._sourceScale);null!=K&&1!=this._sourceScale&&(K*=this._sourceScale);var n=1,g=1;null!=this.content&&2!=this._scaleMode&&(a?null!=this.get_explicitMaxWidth()&&this.get_explicitMaxWidth()u&&(n=this.get_explicitMinWidth()/u):n=this.get_explicitWidth()/u,b?null!=this.get_explicitMaxHeight()&&this.get_explicitMaxHeight()K&&(g=this.get_explicitMinHeight()/K):g=this.get_explicitHeight()/K);var h=this.get_explicitWidth();a&&(h=null!=this.content?u*g:0);a=this.get_explicitHeight();b&&(a=null!=this.content?K*n:0);b=this.get_explicitMinWidth(); +c&&(b=null!=this.content?u*g:0);c=this.get_explicitMinHeight();d&&(c=null!=this.content?K*n:0);d=this.get_explicitMaxWidth();f&&(d=null!=this.content?u*g:1/0);f=this.get_explicitMaxHeight();k&&(f=null!=this.content?K*n:1/0);return this.saveMeasurements(h,a,b,c,d,f)},layoutChildren:function(){if(null!=this.content){var a=!1;switch(this._scaleMode){case 0:this.content.set_x(0);this.content.set_y(0);this.content.set_width(this.actualWidth);this.content.set_height(this.actualHeight);break;case 1:var b= +new da(0,0,this._contentMeasurements.width,this._contentMeasurements.height),c=new da(0,0,this.actualWidth,this.actualHeight);a=xe.fillRectangle(b,c,c);this.content.set_x(a.x);this.content.set_y(a.y);this.content.set_width(a.width);this.content.set_height(a.height);a=this.content.get_width()>this.actualWidth||this.content.get_height()>this.actualHeight;break;case 2:this.content.set_x(0);this.content.set_y(0);this._contentMeasurements.restore(this.content);v.__implements(this.content,ea)&&this.content.validateNow(); +a=this.content.get_width()>this.actualWidth||this.content.get_height()>this.actualHeight;break;default:b=new da(0,0,this._contentMeasurements.width,this._contentMeasurements.height),c=new da(0,0,this.actualWidth,this.actualHeight),xe.fitRectangle(b,c,c),this.content.set_x(c.x),this.content.set_y(c.y),this.content.set_width(c.width),this.content.set_height(c.height)}a?(null==this._scaleModeMask&&(this._scaleModeMask=new lb(qb.SolidColor(16711935)),this.addChild(this._scaleModeMask)),this._scaleModeMask.set_width(this.actualWidth), +this._scaleModeMask.set_height(this.actualHeight),this.content.set_mask(this._scaleModeMask)):(null!=this._scaleModeMask&&(this.removeChild(this._scaleModeMask),this._scaleModeMask=null),this.content.set_mask(null))}},createBitmap:function(a){return new Re(a)},cleanupLoader:function(){null!=this.loader&&(this.loader.contentLoaderInfo.removeEventListener("complete",h(this,this.loader_contentLoaderInfo_completeHandler)),this.loader.contentLoaderInfo.removeEventListener("progress",h(this,this.loader_contentLoaderInfo_progressHandler)), +this.loader.contentLoaderInfo.removeEventListener("ioError",h(this,this.loader_contentLoaderInfo_ioErrorHandler)),this.loader.contentLoaderInfo.removeEventListener("securityError",h(this,this.loader_contentLoaderInfo_securityErrorHandler)),this.loader=null)},loader_contentLoaderInfo_progressHandler:function(a){this.dispatchEvent(a)},loader_contentLoaderInfo_ioErrorHandler:function(a){this.dispatchEvent(a)},loader_contentLoaderInfo_securityErrorHandler:function(a){this.dispatchEvent(a)},loader_contentLoaderInfo_completeHandler:function(a){this.addChild(this.loader); +this.content=this.loader;this._contentMeasurements.save(this.content);this.setInvalid(E.LAYOUT);this.dispatchEvent(a)},get_styleContext:function(){return Bb},__class__:Bb,__properties__:t(Y.prototype.__properties__,{set_source:"set_source"})});var jd=function(){};g["feathers.core.IStateContext"]=jd;jd.__name__="feathers.core.IStateContext";jd.__isInterface__=!0;jd.__interfaces__=[J];jd.prototype={__class__:jd,__properties__:{get_currentState:"get_currentState"}};var de=function(){};g["feathers.controls.ITriggerView"]= +de;de.__name__="feathers.controls.ITriggerView";de.__isInterface__=!0;de.__interfaces__=[ia];var yc=function(a){this.__backgroundSkin=null;this.__keepDownStateOnRollOut=!1;this._stateToSkin=new Kc;this._pointerToState=this._keyToState=this._pointerTrigger=this._backgroundSkinMeasurements=this._currentBackgroundSkin=null;this._currentState=ac.UP;Y.call(this);this.mouseChildren=!1;this.set_buttonMode(!0);this.useHandCursor=!1;this.addEventListener("click",h(this,this.basicButton_clickHandler));this.addEventListener("touchTap", +h(this,this.basicButton_touchTapHandler));null!=a&&this.addEventListener("trigger",a)};g["feathers.controls.BasicButton"]=yc;yc.__name__="feathers.controls.BasicButton";yc.__interfaces__=[jd,de];yc.__super__=Y;yc.prototype=t(Y.prototype,{get_currentState:function(){return this._currentState},set_enabled:function(a){Y.prototype.set_enabled.call(this,a);this._enabled?this._currentState==ac.DISABLED&&this.changeState(ac.UP):this.changeState(ac.DISABLED);return this._enabled},initialize:function(){Y.prototype.initialize.call(this); +null==this._pointerToState&&(this._pointerToState=new Pg(this,h(this,this.changeState),ac.UP,ac.DOWN,ac.HOVER));null==this._keyToState&&(this._keyToState=new Qg(this,h(this,this.changeState),ac.UP,ac.DOWN));null==this._pointerTrigger&&(this._pointerTrigger=new Rg(this))},update:function(){this.commitChanges();this.measure();this.layoutContent()},commitChanges:function(){var a=this.isInvalid(E.STYLES),b=this.isInvalid(E.STATE);(a||b)&&this.refreshBackgroundSkin();a&&this.refreshInteractivity()},layoutContent:function(){this.layoutBackgroundSkin()}, +refreshInteractivity:function(){this._pointerToState.set_keepDownStateOnRollOut(this.get_keepDownStateOnRollOut())},refreshBackgroundSkin:function(){var a=this._currentBackgroundSkin;this._currentBackgroundSkin=this.getCurrentBackgroundSkin();this._currentBackgroundSkin!=a&&(this.removeCurrentBackgroundSkin(a),this.addCurrentBackgroundSkin(this._currentBackgroundSkin))},getCurrentBackgroundSkin:function(){var a=this._stateToSkin.get(this._currentState);return null!=a?a:this.get_backgroundSkin()}, +addCurrentBackgroundSkin:function(a){null==a?this._backgroundSkinMeasurements=null:(v.__implements(a,ia)&&a.initializeNow(),null==this._backgroundSkinMeasurements?this._backgroundSkinMeasurements=new Wb(a):this._backgroundSkinMeasurements.save(a),v.__implements(a,hb)&&a.set_uiContext(this),v.__implements(a,ad)&&a.set_stateContext(this),this.addChildAt(a,0))},removeCurrentBackgroundSkin:function(a){null!=a&&(v.__implements(a,hb)&&a.set_uiContext(null),v.__implements(a,ad)&&a.set_stateContext(null), +this._backgroundSkinMeasurements.restore(a),a.parent==this&&this.removeChild(a))},measure:function(){var a=null==this.get_explicitWidth(),b=null==this.get_explicitHeight(),c=null==this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;null!=this._currentBackgroundSkin&&Tc.resetFluidlyWithParent(this._backgroundSkinMeasurements,this._currentBackgroundSkin,this);var u=null;v.__implements(this._currentBackgroundSkin, +Da)&&(u=this._currentBackgroundSkin);v.__implements(this._currentBackgroundSkin,ea)&&this._currentBackgroundSkin.validateNow();var K=this.get_explicitWidth();a&&(K=null!=this._currentBackgroundSkin?this._currentBackgroundSkin.get_width():0);a=this.get_explicitHeight();b&&(a=null!=this._currentBackgroundSkin?this._currentBackgroundSkin.get_height():0);b=this.get_explicitMinWidth();c&&(b=null!=u?u.get_minWidth():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minWidth? +this._backgroundSkinMeasurements.minWidth:0);c=this.get_explicitMinHeight();d&&(c=null!=u?u.get_minHeight():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minHeight?this._backgroundSkinMeasurements.minHeight:0);d=this.get_explicitMaxWidth();f&&(d=null!=u?u.get_maxWidth():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxWidth?this._backgroundSkinMeasurements.maxWidth:1/0);f=this.get_explicitMaxHeight();k&&(f=null!=u?u.get_maxHeight(): +null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxHeight?this._backgroundSkinMeasurements.maxHeight:1/0);return this.saveMeasurements(K,a,b,c,d,f)},layoutBackgroundSkin:function(){null!=this._currentBackgroundSkin&&(this._currentBackgroundSkin.set_x(0),this._currentBackgroundSkin.set_y(0),this._currentBackgroundSkin.get_width()!=this.actualWidth&&this._currentBackgroundSkin.set_width(this.actualWidth),this._currentBackgroundSkin.get_height()!=this.actualHeight&&this._currentBackgroundSkin.set_height(this.actualHeight), +v.__implements(this._currentBackgroundSkin,ea)&&this._currentBackgroundSkin.validateNow())},changeState:function(a){this._enabled||(a=ac.DISABLED);this._currentState!=a&&(this._currentState=a,this.setInvalid(E.STATE),Ca.dispatch(this,"stateChange"))},basicButton_clickHandler:function(a){this._enabled||a.stopImmediatePropagation()},basicButton_touchTapHandler:function(a){this._enabled||a.stopImmediatePropagation()},get_keepDownStateOnRollOut:function(){return this.__keepDownStateOnRollOut},set_keepDownStateOnRollOut:function(a){if(!this.setStyle("keepDownStateOnRollOut")|| +this.__keepDownStateOnRollOut==a)return this.__keepDownStateOnRollOut;this._previousClearStyle=h(this,this.clearStyle_keepDownStateOnRollOut);this.__keepDownStateOnRollOut=a;this.setInvalid(E.STYLES);return this.__keepDownStateOnRollOut},clearStyle_keepDownStateOnRollOut:function(){this.set_keepDownStateOnRollOut(!1);return this.get_keepDownStateOnRollOut()},get_backgroundSkin:function(){return this.__backgroundSkin},set_backgroundSkin:function(a){if(!this.setStyle("backgroundSkin")||this.__backgroundSkin== +a)return this.__backgroundSkin;this._previousClearStyle=h(this,this.clearStyle_backgroundSkin);this.__backgroundSkin=a;this.setInvalid(E.STYLES);return this.__backgroundSkin},clearStyle_backgroundSkin:function(){this.set_backgroundSkin(null);return this.get_backgroundSkin()},__class__:yc,__properties__:t(Y.prototype.__properties__,{set_backgroundSkin:"set_backgroundSkin",get_backgroundSkin:"get_backgroundSkin",set_keepDownStateOnRollOut:"set_keepDownStateOnRollOut",get_keepDownStateOnRollOut:"get_keepDownStateOnRollOut", +get_currentState:"get_currentState"})});var Mc=function(){};g["feathers.controls.IToggle"]=Mc;Mc.__name__="feathers.controls.IToggle";Mc.__isInterface__=!0;Mc.__interfaces__=[ia];Mc.prototype={__class__:Mc,__properties__:{set_selected:"set_selected",get_selected:"get_selected"}};var bd=function(a){this.__backgroundSkin=this.__selectedBackgroundSkin=null;this.__keepDownStateOnRollOut=!1;this._stateToSkin=new Kc;this._pointerToState=this._keyToState=this._pointerTrigger=this._backgroundSkinMeasurements= +this._currentBackgroundSkin=null;this._toggleable=!0;this._selected=!1;this._currentState=uc.UP(!1);Y.call(this);this.mouseChildren=!1;this.set_buttonMode(!0);this.useHandCursor=!1;this.addEventListener("click",h(this,this.basicToggleButton_clickHandler));this.addEventListener("touchTap",h(this,this.basicToggleButton_touchTapHandler));this.addEventListener("trigger",h(this,this.basicToggleButton_triggerHandler));null!=a&&this.addEventListener("change",a)};g["feathers.controls.BasicToggleButton"]= +bd;bd.__name__="feathers.controls.BasicToggleButton";bd.__interfaces__=[jd,Mc,de];bd.__super__=Y;bd.prototype=t(Y.prototype,{get_currentState:function(){return this._currentState},set_enabled:function(a){Y.prototype.set_enabled.call(this,a);this._enabled?(a=this._currentState,3==a._hx_index&&this.changeState(uc.UP(a.selected))):this.changeState(uc.DISABLED(this._selected));return this._enabled},get_selected:function(){return this._selected},set_selected:function(a){if(this._selected==a)return this._selected; +this._selected=a;this.setInvalid(E.SELECTION);this.setInvalid(E.STATE);Ca.dispatch(this,"change");this.changeState(this.get_currentState());return this._selected},set_toggleable:function(a){return this._toggleable==a?this._toggleable:this._toggleable=a},initialize:function(){Y.prototype.initialize.call(this);null==this._pointerToState&&(this._pointerToState=new Pg(this,h(this,this.changeState),uc.UP(!1),uc.DOWN(!1),uc.HOVER(!1)));null==this._keyToState&&(this._keyToState=new Qg(this,h(this,this.changeState), +uc.UP(!1),uc.DOWN(!1)));null==this._pointerTrigger&&(this._pointerTrigger=new Rg(this))},update:function(){this.commitChanges();this.measure();this.layoutContent()},commitChanges:function(){var a=this.isInvalid(E.SELECTION),b=this.isInvalid(E.STYLES),c=this.isInvalid(E.STATE);(a||c||b)&&this.refreshBackgroundSkin();b&&this.refreshInteractivity()},refreshInteractivity:function(){this._pointerToState.set_keepDownStateOnRollOut(this.get_keepDownStateOnRollOut())},refreshBackgroundSkin:function(){var a= +this._currentBackgroundSkin;this._currentBackgroundSkin=this.getCurrentBackgroundSkin();this._currentBackgroundSkin!=a&&(this.removeCurrentBackgroundSkin(a),this.addCurrentBackgroundSkin(this._currentBackgroundSkin))},getCurrentBackgroundSkin:function(){var a=this._stateToSkin.get(this._currentState);return null!=a?a:this._selected&&null!=this.get_selectedBackgroundSkin()?this.get_selectedBackgroundSkin():this.get_backgroundSkin()},addCurrentBackgroundSkin:function(a){null==a?this._backgroundSkinMeasurements= +null:(v.__implements(a,ia)&&a.initializeNow(),null==this._backgroundSkinMeasurements?this._backgroundSkinMeasurements=new Wb(a):this._backgroundSkinMeasurements.save(a),v.__implements(a,hb)&&a.set_uiContext(this),v.__implements(a,ad)&&a.set_stateContext(this),this.addChildAt(a,0))},removeCurrentBackgroundSkin:function(a){null!=a&&(v.__implements(a,hb)&&a.set_uiContext(null),v.__implements(a,ad)&&a.set_stateContext(null),this._backgroundSkinMeasurements.restore(a),a.parent==this&&this.removeChild(a))}, +measure:function(){var a=null==this.get_explicitWidth(),b=null==this.get_explicitHeight(),c=null==this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;null!=this._currentBackgroundSkin&&Tc.resetFluidlyWithParent(this._backgroundSkinMeasurements,this._currentBackgroundSkin,this);var u=null;v.__implements(this._currentBackgroundSkin,Da)&&(u=this._currentBackgroundSkin);v.__implements(this._currentBackgroundSkin, +ea)&&this._currentBackgroundSkin.validateNow();var K=this.get_explicitWidth();a&&(K=null!=this._currentBackgroundSkin?this._currentBackgroundSkin.get_width():0);a=this.get_explicitHeight();b&&(a=null!=this._currentBackgroundSkin?this._currentBackgroundSkin.get_height():0);b=this.get_explicitMinWidth();c&&(b=null!=u?u.get_minWidth():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minWidth?this._backgroundSkinMeasurements.minWidth:0);c=this.get_explicitMinHeight();d&& +(c=null!=u?u.get_minHeight():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minHeight?this._backgroundSkinMeasurements.minHeight:0);d=this.get_explicitMaxWidth();f&&(d=null!=u?u.get_maxWidth():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxWidth?this._backgroundSkinMeasurements.maxWidth:1/0);f=this.get_explicitMaxHeight();k&&(f=null!=u?u.get_maxHeight():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxHeight? +this._backgroundSkinMeasurements.maxHeight:1/0);return this.saveMeasurements(K,a,b,c,d,f)},layoutContent:function(){this.layoutBackgroundSkin()},layoutBackgroundSkin:function(){null!=this._currentBackgroundSkin&&(this._currentBackgroundSkin.set_x(0),this._currentBackgroundSkin.set_y(0),this._currentBackgroundSkin.get_width()!=this.actualWidth&&this._currentBackgroundSkin.set_width(this.actualWidth),this._currentBackgroundSkin.get_height()!=this.actualHeight&&this._currentBackgroundSkin.set_height(this.actualHeight), +v.__implements(this._currentBackgroundSkin,ea)&&this._currentBackgroundSkin.validateNow())},changeState:function(a){this._enabled||(a=uc.DISABLED(this._selected));switch(a._hx_index){case 0:var b=a.selected;this._selected!=b&&(a=uc.UP(this._selected));break;case 1:b=a.selected;this._selected!=b&&(a=uc.HOVER(this._selected));break;case 2:b=a.selected;this._selected!=b&&(a=uc.DOWN(this._selected));break;case 3:b=a.selected,this._selected!=b&&(a=uc.DISABLED(this._selected))}this._currentState!=a&&(this._currentState= +a,this.setInvalid(E.STATE),Ca.dispatch(this,"stateChange"))},basicToggleButton_clickHandler:function(a){this._enabled||a.stopImmediatePropagation()},basicToggleButton_touchTapHandler:function(a){this._enabled||a.stopImmediatePropagation()},basicToggleButton_triggerHandler:function(a){this._enabled&&this._toggleable&&this.set_selected(!this._selected)},get_keepDownStateOnRollOut:function(){return this.__keepDownStateOnRollOut},get_backgroundSkin:function(){return this.__backgroundSkin},set_backgroundSkin:function(a){if(!this.setStyle("backgroundSkin")|| +this.__backgroundSkin==a)return this.__backgroundSkin;this._previousClearStyle=h(this,this.clearStyle_backgroundSkin);this.__backgroundSkin=a;this.setInvalid(E.STYLES);return this.__backgroundSkin},clearStyle_backgroundSkin:function(){this.set_backgroundSkin(null);return this.get_backgroundSkin()},get_selectedBackgroundSkin:function(){return this.__selectedBackgroundSkin},__class__:bd,__properties__:t(Y.prototype.__properties__,{get_selectedBackgroundSkin:"get_selectedBackgroundSkin",set_backgroundSkin:"set_backgroundSkin", +get_backgroundSkin:"get_backgroundSkin",get_keepDownStateOnRollOut:"get_keepDownStateOnRollOut",set_toggleable:"set_toggleable",set_selected:"set_selected",get_selected:"get_selected",get_currentState:"get_currentState"})});var Kb=function(){};g["feathers.core.IFocusObject"]=Kb;Kb.__name__="feathers.core.IFocusObject";Kb.__isInterface__=!0;Kb.__interfaces__=[jb,qa];Kb.prototype={__class__:Kb,__properties__:{get_focusOwner:"get_focusOwner",get_focusEnabled:"get_focusEnabled"}};var kd=function(){}; +g["feathers.core.IHTMLTextControl"]=kd;kd.__name__="feathers.core.IHTMLTextControl";kd.__isInterface__=!0;kd.__interfaces__=[ia];var Sb=function(){};g["feathers.core.ITextControl"]=Sb;Sb.__name__="feathers.core.ITextControl";Sb.__isInterface__=!0;Sb.__interfaces__=[ia];Sb.prototype={__class__:Sb,__properties__:{set_text:"set_text"}};var mb=function(a,b){this.__showText=!0;this.__gap=this.__minGap=this.__iconOffsetX=this.__iconOffsetY=this.__textOffsetX=this.__textOffsetY=0;this.__iconPosition=R.LEFT; +this.__verticalAlign=wb.MIDDLE;this.__horizontalAlign=Eb.CENTER;this.__paddingTop=this.__paddingRight=this.__paddingBottom=this.__paddingLeft=0;this.__icon=null;this.__embedFonts=this.__wordWrap=!1;this.__textFormat=this.__styleSheet=this.__disabledTextFormat=null;this._stateToTextFormat=new Kc;this._ignoreIconResizes=this._wrappedOnMeasure=!1;this._iconMeasurements=this._currentIcon=null;this._stateToIcon=new Kc;this._htmlText=null;this._updatedTextStyles=!1;this._previousText=this._previousHTMLText= +this._previousTextFormat=this._previousSimpleTextFormat=null;this.initializeButtonTheme();yc.call(this,b);this.set_text(a);this.set_tabEnabled(!0);this.set_tabChildren(!1);this.focusRect=!1;this.addEventListener("keyDown",h(this,this.button_keyDownHandler));this.addEventListener("focusIn",h(this,this.button_focusInHandler));this.addEventListener("focusOut",h(this,this.button_focusOutHandler))};g["feathers.controls.Button"]=mb;mb.__name__="feathers.controls.Button";mb.__interfaces__=[Kb,kd,Sb];mb.__super__= +yc;mb.prototype=t(yc.prototype,{set_text:function(a){if(this._text==a)return this._text;this._text=a;this.setInvalid(E.DATA);return this._text},initializeButtonTheme:function(){Zi.initialize()},initialize:function(){yc.prototype.initialize.call(this);null==this.textField&&(this.textField=new oc,this.textField.set_selectable(!1),this.textField.set_multiline(!0),this.addChild(this.textField))},commitChanges:function(){yc.prototype.commitChanges.call(this);var a=this.isInvalid(E.DATA),b=this.isInvalid(E.SIZE), +c=this.isInvalid(E.STATE),d=this.isInvalid(E.STYLES);this._updatedTextStyles=!1;(d||c)&&this.refreshIcon();(d||c)&&this.refreshTextStyles();(a||d||c||b)&&this.refreshText(b)},measure:function(){var a=null==this.get_explicitWidth(),b=null==this.get_explicitHeight(),c=null==this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;var u=this.get_showText()&&null!=this._text,K=this.get_showText()&& +null!=this._htmlText&&0a&&(a=0);return a},measureContentWidth:function(){var a=this.get_gap();a==1/0&&(a=this.get_minGap());var b=this.get_showText()&&null!=this._text,c=this.get_showText()&&null!=this._htmlText&&0a&&(this.textField.set_wordWrap(!0),this.textField.set_width(a),this._textMeasuredWidth=this.textField.get_width(),this._wrappedOnMeasure=!0)),this._textMeasuredHeight=this.textField.get_height(),this.textField.set_autoSize(2),this.textField.get_wordWrap()!=this.get_wordWrap()&&this.textField.set_wordWrap(this.get_wordWrap()),b||c||this.textField.set_text(""),this._previousText= +this._text,this._previousHTMLText=this._htmlText},getCurrentTextFormat:function(){if(null!=this.get_styleSheet())return null;var a=this._stateToTextFormat.get(this._currentState);return null!=a?a:this._enabled||null==this.get_disabledTextFormat()?this.get_textFormat():this.get_disabledTextFormat()},layoutContent:function(){yc.prototype.layoutContent.call(this);this.layoutChildren()},layoutChildren:function(){this.refreshTextFieldDimensions(!1);var a=this.get_showText()&&null!=this._text,b=this.get_showText()&& +null!=this._htmlText&&0this._textMeasuredWidth&&(b=this._textMeasuredWidth);c>this._textMeasuredHeight&&(c=this._textMeasuredHeight);0>b&&(b=0);0>c&&(c=0);this.textField.set_width(b);(a=this.get_wordWrap())&&!this._wrappedOnMeasure&&b>=this._textMeasuredWidth&&(a=!1);this.textField.get_wordWrap()!=a&&this.textField.set_wordWrap(a);this.textField.set_height(c)}},positionSingleChild:function(a){this.get_horizontalAlign()==Eb.LEFT?a.set_x(this.get_paddingLeft()): +this.get_horizontalAlign()==Eb.RIGHT?a.set_x(this.actualWidth-this.get_paddingRight()-a.get_width()):a.set_x(this.get_paddingLeft()+(this.actualWidth-this.get_paddingLeft()-this.get_paddingRight()-a.get_width())/2);this.get_verticalAlign()==wb.TOP?a.set_y(this.get_paddingTop()):this.get_verticalAlign()==wb.BOTTOM?a.set_y(this.actualHeight-this.get_paddingBottom()-a.get_height()):a.set_y(this.get_paddingTop()+(this.actualHeight-this.get_paddingTop()-this.get_paddingBottom()-a.get_height())/2)},positionTextAndIcon:function(){if(this.get_iconPosition()== +R.TOP)if(this.get_gap()==1/0)this._currentIcon.set_y(this.get_paddingTop()),this.textField.set_y(this.actualHeight-this.get_paddingBottom()-this.textField.get_height());else{if(this.get_verticalAlign()==wb.TOP){var a=this.textField;a.set_y(a.get_y()+(this._currentIcon.get_height()+this.get_gap()))}else this.get_verticalAlign()==wb.MIDDLE&&(a=this.textField,a.set_y(a.get_y()+(this._currentIcon.get_height()+this.get_gap())/2));this._currentIcon.set_y(this.textField.get_y()-this._currentIcon.get_height()- +this.get_gap())}else this.get_iconPosition()==R.RIGHT?this.get_gap()==1/0?(this.textField.set_x(this.get_paddingLeft()),this._currentIcon.set_x(this.actualWidth-this.get_paddingRight()-this._currentIcon.get_width())):(this.get_horizontalAlign()==Eb.RIGHT?(a=this.textField,a.set_x(a.get_x()-(this._currentIcon.get_width()+this.get_gap()))):this.get_horizontalAlign()==Eb.CENTER&&(a=this.textField,a.set_x(a.get_x()-(this._currentIcon.get_width()+this.get_gap())/2)),this._currentIcon.set_x(this.textField.get_x()+ +this.textField.get_width()+this.get_gap())):this.get_iconPosition()==R.BOTTOM?this.get_gap()==1/0?(this.textField.set_y(this.get_paddingTop()),this._currentIcon.set_y(this.actualHeight-this.get_paddingBottom()-this._currentIcon.get_height())):(this.get_verticalAlign()==wb.BOTTOM?(a=this.textField,a.set_y(a.get_y()-(this._currentIcon.get_height()+this.get_gap()))):this.get_verticalAlign()==wb.MIDDLE&&(a=this.textField,a.set_y(a.get_y()-(this._currentIcon.get_height()+this.get_gap())/2)),this._currentIcon.set_y(this.textField.get_y()+ +this.textField.get_height()+this.get_gap())):this.get_iconPosition()==R.LEFT&&(this.get_gap()==1/0?(this._currentIcon.set_x(this.get_paddingLeft()),this.textField.set_x(this.actualWidth-this.get_paddingRight()-this.textField.get_width())):(this.get_horizontalAlign()==Eb.LEFT?(a=this.textField,a.set_x(a.get_x()+(this.get_gap()+this._currentIcon.get_width()))):this.get_horizontalAlign()==Eb.CENTER&&(a=this.textField,a.set_x(a.get_x()+(this.get_gap()+this._currentIcon.get_width())/2)),this._currentIcon.set_x(this.textField.get_x()- +this.get_gap()-this._currentIcon.get_width())));this.get_iconPosition()==R.LEFT||this.get_iconPosition()==R.RIGHT?this.get_verticalAlign()==wb.TOP?this._currentIcon.set_y(this.get_paddingTop()):this.get_verticalAlign()==wb.BOTTOM?this._currentIcon.set_y(this.actualHeight-this.get_paddingBottom()-this._currentIcon.get_height()):this._currentIcon.set_y(this.get_paddingTop()+(this.actualHeight-this.get_paddingTop()-this.get_paddingBottom()-this._currentIcon.get_height())/2):this.get_horizontalAlign()== +Eb.LEFT?this._currentIcon.set_x(this.get_paddingLeft()):this.get_horizontalAlign()==Eb.RIGHT?this._currentIcon.set_x(this.actualWidth-this.get_paddingRight()-this._currentIcon.get_width()):this._currentIcon.set_x(this.get_paddingLeft()+(this.actualWidth-this.get_paddingLeft()-this.get_paddingRight()-this._currentIcon.get_width())/2)},refreshIcon:function(){var a=this._currentIcon;this._currentIcon=this.getCurrentIcon();this._currentIcon!=a&&(this.removeCurrentIcon(a),this.addCurrentIcon(this._currentIcon))}, +addCurrentIcon:function(a){if(null==a)this._iconMeasurements=null;else{v.__implements(a,ia)&&a.initializeNow();null==this._iconMeasurements?this._iconMeasurements=new Wb(a):this._iconMeasurements.save(a);v.__implements(a,hb)&&a.set_uiContext(this);v.__implements(a,ad)&&a.set_stateContext(this);a.addEventListener("resize",h(this,this.button_icon_resizeHandler),!1,0,!0);var b=this.getChildIndex(this.textField);this.addChildAt(a,b)}},getCurrentIcon:function(){var a=this._stateToIcon.get(this._currentState); +return null!=a?a:this.get_icon()},removeCurrentIcon:function(a){null!=a&&(a.removeEventListener("resize",h(this,this.button_icon_resizeHandler)),v.__implements(a,hb)&&a.set_uiContext(null),v.__implements(a,ad)&&a.set_stateContext(null),this._iconMeasurements.restore(a),a.parent==this&&this.removeChild(a))},button_keyDownHandler:function(a){!this._enabled||this.get_buttonMode()&&1==this.focusRect||null!=this._focusManager&&this._focusManager.get_focus()!=this||32!=a.keyCode&&13!=a.keyCode||(a.preventDefault(), +this.dispatchEvent(new ob("click")))},button_focusInHandler:function(a){this._keyToState.set_enabled(this._enabled)},button_focusOutHandler:function(a){this._keyToState.set_enabled(!1)},button_textFormat_changeHandler:function(a){this.setInvalid(E.STYLES)},button_icon_resizeHandler:function(a){this._ignoreIconResizes||this.setInvalid(E.STYLES)},get_styleContext:function(){return mb},get_textFormat:function(){return this.__textFormat},set_textFormat:function(a){if(!this.setStyle("textFormat")||this.__textFormat== +a)return this.__textFormat;this._previousClearStyle=h(this,this.clearStyle_textFormat);this.__textFormat=a;this.setInvalid(E.STYLES);return this.__textFormat},clearStyle_textFormat:function(){this.set_textFormat(null);return this.get_textFormat()},get_styleSheet:function(){return this.__styleSheet},get_disabledTextFormat:function(){return this.__disabledTextFormat},set_disabledTextFormat:function(a){if(!this.setStyle("disabledTextFormat")||this.__disabledTextFormat==a)return this.__disabledTextFormat; +this._previousClearStyle=h(this,this.clearStyle_disabledTextFormat);this.__disabledTextFormat=a;this.setInvalid(E.STYLES);return this.__disabledTextFormat},clearStyle_disabledTextFormat:function(){this.set_disabledTextFormat(null);return this.get_disabledTextFormat()},get_embedFonts:function(){return this.__embedFonts},get_wordWrap:function(){return this.__wordWrap},get_icon:function(){return this.__icon},set_icon:function(a){if(!this.setStyle("icon")||this.__icon==a)return this.__icon;this._previousClearStyle= +h(this,this.clearStyle_icon);this.__icon=a;this.setInvalid(E.STYLES);return this.__icon},clearStyle_icon:function(){this.set_icon(null);return this.get_icon()},get_paddingTop:function(){return this.__paddingTop},set_paddingTop:function(a){if(!this.setStyle("paddingTop")||this.__paddingTop==a)return this.__paddingTop;this._previousClearStyle=h(this,this.clearStyle_paddingTop);this.__paddingTop=a;this.setInvalid(E.STYLES);return this.__paddingTop},clearStyle_paddingTop:function(){this.set_paddingTop(0); +return this.get_paddingTop()},get_paddingRight:function(){return this.__paddingRight},set_paddingRight:function(a){if(!this.setStyle("paddingRight")||this.__paddingRight==a)return this.__paddingRight;this._previousClearStyle=h(this,this.clearStyle_paddingRight);this.__paddingRight=a;this.setInvalid(E.STYLES);return this.__paddingRight},clearStyle_paddingRight:function(){this.set_paddingRight(0);return this.get_paddingRight()},get_paddingBottom:function(){return this.__paddingBottom},set_paddingBottom:function(a){if(!this.setStyle("paddingBottom")|| +this.__paddingBottom==a)return this.__paddingBottom;this._previousClearStyle=h(this,this.clearStyle_paddingBottom);this.__paddingBottom=a;this.setInvalid(E.STYLES);return this.__paddingBottom},clearStyle_paddingBottom:function(){this.set_paddingBottom(0);return this.get_paddingBottom()},get_paddingLeft:function(){return this.__paddingLeft},set_paddingLeft:function(a){if(!this.setStyle("paddingLeft")||this.__paddingLeft==a)return this.__paddingLeft;this._previousClearStyle=h(this,this.clearStyle_paddingLeft); +this.__paddingLeft=a;this.setInvalid(E.STYLES);return this.__paddingLeft},clearStyle_paddingLeft:function(){this.set_paddingLeft(0);return this.get_paddingLeft()},get_horizontalAlign:function(){return this.__horizontalAlign},set_horizontalAlign:function(a){if(!this.setStyle("horizontalAlign")||this.__horizontalAlign==a)return this.__horizontalAlign;this._previousClearStyle=h(this,this.clearStyle_horizontalAlign);this.__horizontalAlign=a;this.setInvalid(E.STYLES);return this.__horizontalAlign},clearStyle_horizontalAlign:function(){this.set_horizontalAlign(Eb.CENTER); +return this.get_horizontalAlign()},get_verticalAlign:function(){return this.__verticalAlign},get_iconPosition:function(){return this.__iconPosition},set_iconPosition:function(a){if(!this.setStyle("iconPosition")||this.__iconPosition==a)return this.__iconPosition;this._previousClearStyle=h(this,this.clearStyle_iconPosition);this.__iconPosition=a;this.setInvalid(E.STYLES);return this.__iconPosition},clearStyle_iconPosition:function(){this.set_iconPosition(R.LEFT);return this.get_iconPosition()},get_gap:function(){return this.__gap}, +set_gap:function(a){if(!this.setStyle("gap")||this.__gap==a)return this.__gap;this._previousClearStyle=h(this,this.clearStyle_gap);this.__gap=a;this.setInvalid(E.STYLES);return this.__gap},clearStyle_gap:function(){this.set_gap(0);return this.get_gap()},get_minGap:function(){return this.__minGap},set_minGap:function(a){if(!this.setStyle("minGap")||this.__minGap==a)return this.__minGap;this._previousClearStyle=h(this,this.clearStyle_minGap);this.__minGap=a;this.setInvalid(E.STYLES);return this.__minGap}, +clearStyle_minGap:function(){this.set_minGap(0);return this.get_minGap()},get_iconOffsetX:function(){return this.__iconOffsetX},get_iconOffsetY:function(){return this.__iconOffsetY},get_textOffsetX:function(){return this.__textOffsetX},get_textOffsetY:function(){return this.__textOffsetY},get_showText:function(){return this.__showText},set_showText:function(a){if(!this.setStyle("showText")||this.__showText==a)return this.__showText;this._previousClearStyle=h(this,this.clearStyle_showText);this.__showText= +a;this.setInvalid(E.STYLES);return this.__showText},clearStyle_showText:function(){this.set_showText(!0);return this.get_showText()},__class__:mb,__properties__:t(yc.prototype.__properties__,{set_showText:"set_showText",get_showText:"get_showText",get_textOffsetY:"get_textOffsetY",get_textOffsetX:"get_textOffsetX",get_iconOffsetY:"get_iconOffsetY",get_iconOffsetX:"get_iconOffsetX",set_minGap:"set_minGap",get_minGap:"get_minGap",set_gap:"set_gap",get_gap:"get_gap",set_iconPosition:"set_iconPosition", +get_iconPosition:"get_iconPosition",get_verticalAlign:"get_verticalAlign",set_horizontalAlign:"set_horizontalAlign",get_horizontalAlign:"get_horizontalAlign",set_paddingLeft:"set_paddingLeft",get_paddingLeft:"get_paddingLeft",set_paddingBottom:"set_paddingBottom",get_paddingBottom:"get_paddingBottom",set_paddingRight:"set_paddingRight",get_paddingRight:"get_paddingRight",set_paddingTop:"set_paddingTop",get_paddingTop:"get_paddingTop",set_icon:"set_icon",get_icon:"get_icon",get_wordWrap:"get_wordWrap", +get_embedFonts:"get_embedFonts",set_disabledTextFormat:"set_disabledTextFormat",get_disabledTextFormat:"get_disabledTextFormat",get_styleSheet:"get_styleSheet",set_textFormat:"set_textFormat",get_textFormat:"get_textFormat",set_text:"set_text"})});var ac=D["feathers.controls.ButtonState"]={__ename__:!0,__constructs__:null,UP:{_hx_name:"UP",_hx_index:0,__enum__:"feathers.controls.ButtonState",toString:r},HOVER:{_hx_name:"HOVER",_hx_index:1,__enum__:"feathers.controls.ButtonState",toString:r},DOWN:{_hx_name:"DOWN", +_hx_index:2,__enum__:"feathers.controls.ButtonState",toString:r},DISABLED:{_hx_name:"DISABLED",_hx_index:3,__enum__:"feathers.controls.ButtonState",toString:r}};ac.__constructs__=[ac.UP,ac.HOVER,ac.DOWN,ac.DISABLED];var E=D["feathers.core.InvalidationFlag"]={__ename__:!0,__constructs__:null,STATE:{_hx_name:"STATE",_hx_index:0,__enum__:"feathers.core.InvalidationFlag",toString:r},SIZE:{_hx_name:"SIZE",_hx_index:1,__enum__:"feathers.core.InvalidationFlag",toString:r},STYLES:{_hx_name:"STYLES",_hx_index:2, +__enum__:"feathers.core.InvalidationFlag",toString:r},SKIN:{_hx_name:"SKIN",_hx_index:3,__enum__:"feathers.core.InvalidationFlag",toString:r},LAYOUT:{_hx_name:"LAYOUT",_hx_index:4,__enum__:"feathers.core.InvalidationFlag",toString:r},DATA:{_hx_name:"DATA",_hx_index:5,__enum__:"feathers.core.InvalidationFlag",toString:r},SCROLL:{_hx_name:"SCROLL",_hx_index:6,__enum__:"feathers.core.InvalidationFlag",toString:r},SELECTION:{_hx_name:"SELECTION",_hx_index:7,__enum__:"feathers.core.InvalidationFlag",toString:r}, +FOCUS:{_hx_name:"FOCUS",_hx_index:8,__enum__:"feathers.core.InvalidationFlag",toString:r},SORT:{_hx_name:"SORT",_hx_index:9,__enum__:"feathers.core.InvalidationFlag",toString:r},CUSTOM:(z=function(a){return{_hx_index:10,value:a,__enum__:"feathers.core.InvalidationFlag",toString:r}},z._hx_name="CUSTOM",z.__params__=["value"],z)};E.__constructs__=[E.STATE,E.SIZE,E.STYLES,E.SKIN,E.LAYOUT,E.DATA,E.SCROLL,E.SELECTION,E.FOCUS,E.SORT,E.CUSTOM];var ub=function(a){this.__topArrowGap=this.__rightArrowGap=this.__bottomArrowGap= +this.__leftArrowGap=0;this.__backgroundSkin=this.__topArrowSkin=this.__rightArrowSkin=this.__bottomArrowSkin=this.__leftArrowSkin=null;this.__arrowPosition=R.TOP;this.__verticalAlign=wb.MIDDLE;this.__horizontalAlign=Eb.CENTER;this.__gap=this.__marginTop=this.__marginRight=this.__marginBottom=this.__marginLeft=this.__paddingTop=this.__paddingRight=this.__paddingBottom=this.__paddingLeft=0;this.closeOnPointerOutside=!0;this._ignoreContentResize=!1;this._arrowOffset=0;this.initializeCalloutTheme();Y.call(this); +this.set_content(a);this.addEventListener("addedToStage",h(this,this.callout_addedToStageHandler));this.addEventListener("removedFromStage",h(this,this.callout_removedFromStageHandler))};g["feathers.controls.Callout"]=ub;ub.__name__="feathers.controls.Callout";ub.showCallout=function(a,b,c,d,f){null==d&&(d=!0);a.supportedPositions=c;a.set_origin(b);c=f;null==c&&(c=function(){var a=new Ga;a.get_graphics().beginFill(16711935,0);a.get_graphics().drawRect(0,0,1,1);a.get_graphics().endFill();return a}); +pb.addPopUp(a,b,d,!1,c);return a};ub.positionBelowOrigin=function(a,b){a.measureWithArrowPosition(R.TOP);var c=pb.forStage(a.stage).get_root(),d=new Ba;d=c.globalToLocal(d);var f=new Ba(a.stage.stageWidth,a.stage.stageHeight);f=c.globalToLocal(f);c=b.x;switch(a.get_horizontalAlign()._hx_index){case 1:c+=(b.width-a.get_width())/2;break;case 2:c+=b.width-a.get_width()}d=d.x+a.get_marginLeft();f=f.x-a.get_width()-a.get_marginRight();var k=c;kf&&(k=f);a.set_x(k);a.set_y(b.y+b.height+a.get_gap()); +a._arrowOffset=c-k;a.set_arrowPosition(R.TOP)};ub.positionAboveOrigin=function(a,b){a.measureWithArrowPosition(R.BOTTOM);var c=pb.forStage(a.stage).get_root(),d=new Ba;d=c.globalToLocal(d);var f=new Ba(a.stage.stageWidth,a.stage.stageHeight);f=c.globalToLocal(f);c=b.x;switch(a.get_horizontalAlign()._hx_index){case 1:c+=(b.width-a.get_width())/2;break;case 2:c+=b.width-a.get_width()}d=d.x+a.get_marginLeft();f=f.x-a.get_width()-a.get_marginRight();var k=c;kf&&(k=f);a.set_x(k);a.set_y(b.y-a.get_height()- +a.get_gap());a._arrowOffset=c-k;a.set_arrowPosition(R.BOTTOM)};ub.positionLeftOfOrigin=function(a,b){a.measureWithArrowPosition(R.RIGHT);var c=pb.forStage(a.stage).get_root(),d=new Ba;d=c.globalToLocal(d);var f=new Ba(a.stage.stageWidth,a.stage.stageHeight);f=c.globalToLocal(f);c=b.y;switch(a.get_verticalAlign()._hx_index){case 1:c+=(b.height-a.get_height())/2;break;case 2:c+=b.height-a.get_height()}d=d.y+a.get_marginTop();f=f.y-a.get_height()-a.get_marginBottom();var k=c;kf&&(k=f);a.set_x(b.x- +a.get_width()-a.get_gap());a.set_y(k);a._arrowOffset=c-k;a.set_arrowPosition(R.RIGHT)};ub.positionRightOfOrigin=function(a,b){a.measureWithArrowPosition(R.RIGHT);var c=pb.forStage(a.stage).get_root(),d=new Ba;d=c.globalToLocal(d);var f=new Ba(a.stage.stageWidth,a.stage.stageHeight);f=c.globalToLocal(f);c=b.y;switch(a.get_verticalAlign()._hx_index){case 1:c+=(b.height-a.get_height())/2;break;case 2:c+=b.height-a.get_height()}d=d.y+a.get_marginTop();f=f.y-a.get_height()-a.get_marginBottom();var k=c; +kf&&(k=f);a.set_x(b.x+b.width+a.get_gap());a.set_y(k);a._arrowOffset=c-k;a.set_arrowPosition(R.LEFT)};ub.__super__=Y;ub.prototype=t(Y.prototype,{get_content:function(){return this._content},set_content:function(a){if(this._content==a)return this._content;null!=this._content&&(this._content.removeEventListener("resize",h(this,this.callout_content_resizeHandler)),this._contentMeasurements.restore(this._content),this._content.parent==this&&this.removeChild(this._content));this._content=a;null!= +this._content&&(this.addChild(this._content),v.__implements(this._content,ia)&&this._content.initializeNow(),null==this._contentMeasurements?this._contentMeasurements=new Wb(this._content):this._contentMeasurements.save(this._content),this._content.addEventListener("resize",h(this,this.callout_content_resizeHandler),!1,0,!0));this.setInvalid(E.DATA);this.setInvalid(E.SIZE);return this._content},get_origin:function(){return this._origin},set_origin:function(a){if(this._origin==a)return this._origin; +if(null!=a&&null==a.stage)throw new ab("origin must be added to the stage.");null!=this._origin&&(this._origin.removeEventListener("removedFromStage",h(this,this.callout_origin_removedFromStageHandler)),this.removeEventListener("enterFrame",h(this,this.callout_enterFrameHandler)));this._origin=a;null!=this._origin&&(this._origin.addEventListener("removedFromStage",h(this,this.callout_origin_removedFromStageHandler)),null!=this.stage&&this.addEventListener("enterFrame",h(this,this.callout_enterFrameHandler))); +this._lastPopUpOriginBounds=null;this.setInvalid(ub.INVALIDATION_FLAG_ORIGIN);return this._origin},close:function(){null!=this.parent&&this.parent.removeChild(this)},dispose:function(){null!=this._content&&this.set_content(null);null!=this._origin&&this.set_origin(null);Y.prototype.dispose.call(this)},initializeCalloutTheme:function(){$i.initialize()},update:function(){var a=this.isInvalid(E.DATA),b=this.isInvalid(ub.INVALIDATION_FLAG_ORIGIN),c=this.isInvalid(E.SIZE),d=this.isInvalid(E.STATE),f=this.isInvalid(E.STYLES); +c&&(this._lastPopUpOriginBounds=null,b=!0);(f||d)&&this.refreshBackgroundSkin();(f||d)&&this.refreshArrowSkin();b&&this.positionRelativeToOrigin();(d||a)&&this.refreshEnabled();this.measure();this.layoutChildren()},measure:function(){return this.measureWithArrowPosition(this.get_arrowPosition())},measureWithArrowPosition:function(a){var b=null==this.get_explicitWidth(),c=null==this.get_explicitHeight(),d=null==this.get_explicitMinWidth(),f=null==this.get_explicitMinHeight(),k=null==this.get_explicitMaxWidth(), +u=null==this.get_explicitMaxHeight();if(!(b||c||d||f||k||u))return!1;var K=u=0;null!=this.stage&&(k=new Ba,k=this.globalToLocal(k),K=new Ba(this.stage.stageWidth,this.stage.stageHeight),K=this.globalToLocal(K),u=K.x-k.x,K=K.y-k.y);k=this.get_explicitMaxWidth();if(null!=this.stage){if(u=u-this.get_marginLeft()-this.get_marginRight(),null==k||kk&&(c=k));d=this.get_explicitMinHeight(); +f&&(f=0,null!=a?f=a.get_minWidth():null!=this._contentMeasurements&&null!=this._contentMeasurements.minHeight&&(f=this._contentMeasurements.minHeight),fu&&(d=u));return this.saveMeasurements(q,b,c,d,k,u)},getCurrentBackgroundSkin:function(){return this.get_backgroundSkin()}, +refreshBackgroundSkin:function(){var a=this._currentBackgroundSkin;this._currentBackgroundSkin=this.getCurrentBackgroundSkin();this._currentBackgroundSkin!=a&&(this.removeCurrentBackgroundSkin(a),this.addCurrentBackgroundSkin(this._currentBackgroundSkin))},addCurrentBackgroundSkin:function(a){null==a?this._backgroundSkinMeasurements=null:(v.__implements(a,ia)&&a.initializeNow(),null==this._backgroundSkinMeasurements?this._backgroundSkinMeasurements=new Wb(a):this._backgroundSkinMeasurements.save(a), +v.__implements(a,hb)&&a.set_uiContext(this),this.addChildAt(a,0))},removeCurrentBackgroundSkin:function(a){null!=a&&(v.__implements(a,hb)&&a.set_uiContext(this),this._backgroundSkinMeasurements.restore(a),a.parent==this&&this.removeChild(a))},refreshArrowSkin:function(){var a=this._currentArrowSkin;this._currentArrowSkin=this.getCurrentArrowSkin();a!=this._currentArrowSkin&&(this.removeCurrentArrowSkin(a),v.__implements(this._currentArrowSkin,hb)&&this._currentArrowSkin.set_uiContext(this),this.addChild(this._currentArrowSkin))}, +getCurrentArrowSkin:function(){switch(this.get_arrowPosition()._hx_index){case 1:return this.get_rightArrowSkin();case 2:return this.get_bottomArrowSkin();case 3:return this.get_leftArrowSkin();default:return this.get_topArrowSkin()}},removeCurrentArrowSkin:function(a){null!=a&&(v.__implements(a,hb)&&a.set_uiContext(null),a.parent==this&&this.removeChild(a))},refreshEnabled:function(){v.__implements(this._content,ia)&&this._content.set_enabled(this._enabled)},layoutChildren:function(){v.__implements(this._currentArrowSkin, +ea)&&this._currentArrowSkin.validateNow();var a=0,b=0,c=0,d=0;if(null!=this._currentArrowSkin)switch(this.get_arrowPosition()._hx_index){case 1:c=this._currentArrowSkin.get_width()+this.get_rightArrowGap();break;case 2:d=this._currentArrowSkin.get_height()+this.get_bottomArrowGap();break;case 3:a=this._currentArrowSkin.get_width()+this.get_leftArrowGap();break;default:b=this._currentArrowSkin.get_height()+this.get_topArrowGap()}c=this.actualWidth-a-c;d=this.actualHeight-b-d;null!=this._currentBackgroundSkin&& +(this._currentBackgroundSkin.set_x(a),this._currentBackgroundSkin.set_y(b),this._currentBackgroundSkin.set_width(c),this._currentBackgroundSkin.set_height(d));if(null!=this._currentArrowSkin){var f=c-this.get_paddingLeft()-this.get_paddingRight(),k=d-this.get_paddingTop()-this.get_paddingBottom();switch(this.get_arrowPosition()._hx_index){case 1:this.get_rightArrowSkin().set_x(a+c+this.get_rightArrowGap());f=this._arrowOffset+b+this.get_paddingTop();this.get_verticalAlign()==wb.MIDDLE?f+=Math.round((k- +this.get_rightArrowSkin().get_height())/2):this.get_verticalAlign()==wb.BOTTOM&&(f+=k-this.get_rightArrowSkin().get_height());var u=b+this.get_paddingTop();u>f?f=u:(k=b+this.get_paddingTop()+k-this.get_rightArrowSkin().get_height(),kk?k=u:(f=a+this.get_paddingLeft()+f-this.get_bottomArrowSkin().get_width(),ff?f=u:(k=b+this.get_paddingTop()+k-this.get_leftArrowSkin().get_height(),kk?k=u:(f=a+this.get_paddingLeft()+f-this.get_topArrowSkin().get_width(), +f=this.get_marginTop()){ub.positionAboveOrigin(this,this._lastPopUpOriginBounds);return}0>a&&(a=0);break;case 1:this.measureWithArrowPosition(R.LEFT);d=b.x-this.actualWidth-(this._lastPopUpOriginBounds.x+this._lastPopUpOriginBounds.width);if(d>=this.get_marginRight()){ub.positionRightOfOrigin(this,this._lastPopUpOriginBounds);return}0>d&&(d=0);break;case 3:this.measureWithArrowPosition(R.RIGHT); +f=this._lastPopUpOriginBounds.x-this.actualWidth;if(f>=this.get_marginLeft()){ub.positionLeftOfOrigin(this,this._lastPopUpOriginBounds);return}0>f&&(f=0);break;default:this.measureWithArrowPosition(R.TOP);c=b.y-this.actualHeight-(this._lastPopUpOriginBounds.y+this._lastPopUpOriginBounds.height);if(c>=this.get_marginBottom()){ub.positionBelowOrigin(this,this._lastPopUpOriginBounds);return}0>c&&(c=0)}}-Infinity!=c&&c>=a&&c>=d&&c>=f?ub.positionBelowOrigin(this,this._lastPopUpOriginBounds):-Infinity!= +a&&a>=d&&a>=f?ub.positionAboveOrigin(this,this._lastPopUpOriginBounds):-Infinity!=d&&d>=f?ub.positionRightOfOrigin(this,this._lastPopUpOriginBounds):-Infinity!=f?ub.positionLeftOfOrigin(this,this._lastPopUpOriginBounds):ub.positionBelowOrigin(this,this._lastPopUpOriginBounds)},callout_addedToStageHandler:function(a){this.stage.addEventListener("mouseDown",h(this,this.callout_stage_mouseDownHandler),!1,0,!0);this.stage.addEventListener("touchBegin",h(this,this.callout_stage_touchBeginHandler),!1,0, +!0);null!=this._origin&&this.addEventListener("enterFrame",h(this,this.callout_enterFrameHandler))},callout_removedFromStageHandler:function(a){this.stage.removeEventListener("mouseDown",h(this,this.callout_stage_mouseDownHandler));this.stage.removeEventListener("touchBegin",h(this,this.callout_stage_touchBeginHandler));this.removeEventListener("enterFrame",h(this,this.callout_enterFrameHandler));Ca.dispatch(this,"close")},callout_enterFrameHandler:function(a){this.checkForOriginMoved()&&this.setInvalid(ub.INVALIDATION_FLAG_ORIGIN)}, +callout_origin_removedFromStageHandler:function(a){this.close()},callout_content_resizeHandler:function(a){this._ignoreContentResize||(this._contentMeasurements.save(this.get_content()),this.setInvalid(E.SIZE))},callout_stage_mouseDownHandler:function(a){this.closeOnPointerOutside&&(this.hitTestPoint(a.stageX,a.stageY)||this.close())},callout_stage_touchBeginHandler:function(a){a.isPrimaryTouchPoint||this.closeOnPointerOutside&&(this.hitTestPoint(a.stageX,a.stageY)||this.close())},get_gap:function(){return this.__gap}, +get_marginTop:function(){return this.__marginTop},set_marginTop:function(a){if(!this.setStyle("marginTop")||this.__marginTop==a)return this.__marginTop;this._previousClearStyle=h(this,this.clearStyle_marginTop);this.__marginTop=a;this.setInvalid(E.STYLES);return this.__marginTop},clearStyle_marginTop:function(){this.set_marginTop(0);return this.get_marginTop()},get_marginRight:function(){return this.__marginRight},set_marginRight:function(a){if(!this.setStyle("marginRight")||this.__marginRight==a)return this.__marginRight; +this._previousClearStyle=h(this,this.clearStyle_marginRight);this.__marginRight=a;this.setInvalid(E.STYLES);return this.__marginRight},clearStyle_marginRight:function(){this.set_marginRight(0);return this.get_marginRight()},get_marginBottom:function(){return this.__marginBottom},set_marginBottom:function(a){if(!this.setStyle("marginBottom")||this.__marginBottom==a)return this.__marginBottom;this._previousClearStyle=h(this,this.clearStyle_marginBottom);this.__marginBottom=a;this.setInvalid(E.STYLES); +return this.__marginBottom},clearStyle_marginBottom:function(){this.set_marginBottom(0);return this.get_marginBottom()},get_marginLeft:function(){return this.__marginLeft},set_marginLeft:function(a){if(!this.setStyle("marginLeft")||this.__marginLeft==a)return this.__marginLeft;this._previousClearStyle=h(this,this.clearStyle_marginLeft);this.__marginLeft=a;this.setInvalid(E.STYLES);return this.__marginLeft},clearStyle_marginLeft:function(){this.set_marginLeft(0);return this.get_marginLeft()},get_paddingTop:function(){return this.__paddingTop}, +set_paddingTop:function(a){if(!this.setStyle("paddingTop")||this.__paddingTop==a)return this.__paddingTop;this._previousClearStyle=h(this,this.clearStyle_paddingTop);this.__paddingTop=a;this.setInvalid(E.STYLES);return this.__paddingTop},clearStyle_paddingTop:function(){this.set_paddingTop(0);return this.get_paddingTop()},get_paddingRight:function(){return this.__paddingRight},set_paddingRight:function(a){if(!this.setStyle("paddingRight")||this.__paddingRight==a)return this.__paddingRight;this._previousClearStyle= +h(this,this.clearStyle_paddingRight);this.__paddingRight=a;this.setInvalid(E.STYLES);return this.__paddingRight},clearStyle_paddingRight:function(){this.set_paddingRight(0);return this.get_paddingRight()},get_paddingBottom:function(){return this.__paddingBottom},set_paddingBottom:function(a){if(!this.setStyle("paddingBottom")||this.__paddingBottom==a)return this.__paddingBottom;this._previousClearStyle=h(this,this.clearStyle_paddingBottom);this.__paddingBottom=a;this.setInvalid(E.STYLES);return this.__paddingBottom}, +clearStyle_paddingBottom:function(){this.set_paddingBottom(0);return this.get_paddingBottom()},get_paddingLeft:function(){return this.__paddingLeft},set_paddingLeft:function(a){if(!this.setStyle("paddingLeft")||this.__paddingLeft==a)return this.__paddingLeft;this._previousClearStyle=h(this,this.clearStyle_paddingLeft);this.__paddingLeft=a;this.setInvalid(E.STYLES);return this.__paddingLeft},clearStyle_paddingLeft:function(){this.set_paddingLeft(0);return this.get_paddingLeft()},get_horizontalAlign:function(){return this.__horizontalAlign}, +get_verticalAlign:function(){return this.__verticalAlign},get_arrowPosition:function(){return this.__arrowPosition},set_arrowPosition:function(a){if(!this.setStyle("arrowPosition")||this.__arrowPosition==a)return this.__arrowPosition;this._previousClearStyle=h(this,this.clearStyle_arrowPosition);this.__arrowPosition=a;this.setInvalid(E.STYLES);return this.__arrowPosition},clearStyle_arrowPosition:function(){this.set_arrowPosition(R.TOP);return this.get_arrowPosition()},get_backgroundSkin:function(){return this.__backgroundSkin}, +set_backgroundSkin:function(a){if(!this.setStyle("backgroundSkin")||this.__backgroundSkin==a)return this.__backgroundSkin;this._previousClearStyle=h(this,this.clearStyle_backgroundSkin);this.__backgroundSkin=a;this.setInvalid(E.STYLES);return this.__backgroundSkin},clearStyle_backgroundSkin:function(){this.set_backgroundSkin(null);return this.get_backgroundSkin()},get_topArrowSkin:function(){return this.__topArrowSkin},set_topArrowSkin:function(a){if(!this.setStyle("topArrowSkin")||this.__topArrowSkin== +a)return this.__topArrowSkin;this._previousClearStyle=h(this,this.clearStyle_topArrowSkin);this.__topArrowSkin=a;this.setInvalid(E.STYLES);return this.__topArrowSkin},clearStyle_topArrowSkin:function(){this.set_topArrowSkin(null);return this.get_topArrowSkin()},get_rightArrowSkin:function(){return this.__rightArrowSkin},set_rightArrowSkin:function(a){if(!this.setStyle("rightArrowSkin")||this.__rightArrowSkin==a)return this.__rightArrowSkin;this._previousClearStyle=h(this,this.clearStyle_rightArrowSkin); +this.__rightArrowSkin=a;this.setInvalid(E.STYLES);return this.__rightArrowSkin},clearStyle_rightArrowSkin:function(){this.set_rightArrowSkin(null);return this.get_rightArrowSkin()},get_bottomArrowSkin:function(){return this.__bottomArrowSkin},set_bottomArrowSkin:function(a){if(!this.setStyle("bottomArrowSkin")||this.__bottomArrowSkin==a)return this.__bottomArrowSkin;this._previousClearStyle=h(this,this.clearStyle_bottomArrowSkin);this.__bottomArrowSkin=a;this.setInvalid(E.STYLES);return this.__bottomArrowSkin}, +clearStyle_bottomArrowSkin:function(){this.set_bottomArrowSkin(null);return this.get_bottomArrowSkin()},get_leftArrowSkin:function(){return this.__leftArrowSkin},set_leftArrowSkin:function(a){if(!this.setStyle("leftArrowSkin")||this.__leftArrowSkin==a)return this.__leftArrowSkin;this._previousClearStyle=h(this,this.clearStyle_leftArrowSkin);this.__leftArrowSkin=a;this.setInvalid(E.STYLES);return this.__leftArrowSkin},clearStyle_leftArrowSkin:function(){this.set_leftArrowSkin(null);return this.get_leftArrowSkin()}, +get_topArrowGap:function(){return this.__topArrowGap},set_topArrowGap:function(a){if(!this.setStyle("topArrowGap")||this.__topArrowGap==a)return this.__topArrowGap;this._previousClearStyle=h(this,this.clearStyle_topArrowGap);this.__topArrowGap=a;this.setInvalid(E.STYLES);return this.__topArrowGap},clearStyle_topArrowGap:function(){this.set_topArrowGap(0);return this.get_topArrowGap()},get_rightArrowGap:function(){return this.__rightArrowGap},set_rightArrowGap:function(a){if(!this.setStyle("rightArrowGap")|| +this.__rightArrowGap==a)return this.__rightArrowGap;this._previousClearStyle=h(this,this.clearStyle_rightArrowGap);this.__rightArrowGap=a;this.setInvalid(E.STYLES);return this.__rightArrowGap},clearStyle_rightArrowGap:function(){this.set_rightArrowGap(0);return this.get_rightArrowGap()},get_bottomArrowGap:function(){return this.__bottomArrowGap},set_bottomArrowGap:function(a){if(!this.setStyle("bottomArrowGap")||this.__bottomArrowGap==a)return this.__bottomArrowGap;this._previousClearStyle=h(this, +this.clearStyle_bottomArrowGap);this.__bottomArrowGap=a;this.setInvalid(E.STYLES);return this.__bottomArrowGap},clearStyle_bottomArrowGap:function(){this.set_bottomArrowGap(0);return this.get_bottomArrowGap()},get_leftArrowGap:function(){return this.__leftArrowGap},set_leftArrowGap:function(a){if(!this.setStyle("leftArrowGap")||this.__leftArrowGap==a)return this.__leftArrowGap;this._previousClearStyle=h(this,this.clearStyle_leftArrowGap);this.__leftArrowGap=a;this.setInvalid(E.STYLES);return this.__leftArrowGap}, +clearStyle_leftArrowGap:function(){this.set_leftArrowGap(0);return this.get_leftArrowGap()},get_styleContext:function(){return ub},__class__:ub,__properties__:t(Y.prototype.__properties__,{set_leftArrowGap:"set_leftArrowGap",get_leftArrowGap:"get_leftArrowGap",set_bottomArrowGap:"set_bottomArrowGap",get_bottomArrowGap:"get_bottomArrowGap",set_rightArrowGap:"set_rightArrowGap",get_rightArrowGap:"get_rightArrowGap",set_topArrowGap:"set_topArrowGap",get_topArrowGap:"get_topArrowGap",set_leftArrowSkin:"set_leftArrowSkin", +get_leftArrowSkin:"get_leftArrowSkin",set_bottomArrowSkin:"set_bottomArrowSkin",get_bottomArrowSkin:"get_bottomArrowSkin",set_rightArrowSkin:"set_rightArrowSkin",get_rightArrowSkin:"get_rightArrowSkin",set_topArrowSkin:"set_topArrowSkin",get_topArrowSkin:"get_topArrowSkin",set_backgroundSkin:"set_backgroundSkin",get_backgroundSkin:"get_backgroundSkin",set_arrowPosition:"set_arrowPosition",get_arrowPosition:"get_arrowPosition",get_verticalAlign:"get_verticalAlign",get_horizontalAlign:"get_horizontalAlign", +set_paddingLeft:"set_paddingLeft",get_paddingLeft:"get_paddingLeft",set_paddingBottom:"set_paddingBottom",get_paddingBottom:"get_paddingBottom",set_paddingRight:"set_paddingRight",get_paddingRight:"get_paddingRight",set_paddingTop:"set_paddingTop",get_paddingTop:"get_paddingTop",set_marginLeft:"set_marginLeft",get_marginLeft:"get_marginLeft",set_marginBottom:"set_marginBottom",get_marginBottom:"get_marginBottom",set_marginRight:"set_marginRight",get_marginRight:"get_marginRight",set_marginTop:"set_marginTop", +get_marginTop:"get_marginTop",get_gap:"get_gap",set_origin:"set_origin",get_origin:"get_origin",set_content:"set_content",get_content:"get_content"})});var Pd=function(){};g["feathers.controls.IRange"]=Pd;Pd.__name__="feathers.controls.IRange";Pd.__isInterface__=!0;Pd.__interfaces__=[ia];Pd.prototype={__class__:Pd,__properties__:{set_value:"set_value",get_value:"get_value",set_maximum:"set_maximum",set_minimum:"set_minimum"}};var xd=function(){};g["feathers.controls.IScrollBar"]=xd;xd.__name__="feathers.controls.IScrollBar"; +xd.__isInterface__=!0;xd.__interfaces__=[Pd];xd.prototype={__class__:xd,__properties__:{set_page:"set_page",set_step:"set_step"}};var Va=function(){};g["feathers.utils.DisplayObjectFactory"]=Va;Va.__name__="feathers.utils.DisplayObjectFactory";Va.withClass=function(a,b){null==b&&(b=function(a){v.__implements(a,ia)&&a.dispose()});var c=new Va;c.create=function(){return zb.createInstance(a,[])};c.destroy=b;return c};Va.prototype={create:function(){return null},destroy:function(a){},__class__:Va};var v= +function(){};g["js.Boot"]=v;v.__name__="js.Boot";v.getClass=function(a){if(null==a)return null;if(a instanceof Array)return Array;var b=a.__class__;if(null!=b)return b;a=v.__nativeClassName(a);return null!=a?v.__resolveNativeClass(a):null};v.__string_rec=function(a,b){if(null==a)return"null";if(5<=b.length)return"<...>";var c=typeof a;"function"==c&&(a.__name__||a.__ename__)&&(c="object");switch(c){case "function":return"";case "object":if(a.__enum__){var d=D[a.__enum__].__constructs__[a._hx_index]; +c=d._hx_name;if(d.__params__){b+="\t";var f=[],k=0;for(d=d.__params__;kb?b=0:1this._maximum&&(a=this._maximum);return a},locationToValue:function(a,b){a=v.getClass(this);throw new Zc("Missing override for 'locationToValue' in type "+a.__name__);},saveThumbStart:function(a,b){a=v.getClass(this);throw new Zc("Missing override for 'saveThumbStart' in type "+ +a.__name__);},getAdjustedPage:function(){var a=this._maximum-this._minimum,b=this._page;0==b?b=this._step:b>a&&(b=a);return b},decrement:function(){var a=this._value-this._step;a=this.restrictValue(a);this.set_value(a)},increment:function(){var a=this._value+this._step;a=this.restrictValue(a);this.set_value(a)},thumbSkin_mouseDownHandler:function(a){this._enabled&&null!=this.stage&&Fc.forStage(this.stage).claimMouse(this)&&(this.stage.addEventListener("mouseMove",h(this,this.thumbSkin_stage_mouseMoveHandler), +!1,0,!0),this.stage.addEventListener("mouseUp",h(this,this.thumbSkin_stage_mouseUpHandler),!1,0,!0),this._thumbStartX=this._currentThumbSkin.get_x(),this._thumbStartY=this._currentThumbSkin.get_y(),this._pointerStartX=this.get_mouseX(),this._pointerStartY=this.get_mouseY(),this._dragging=!0,Ob.dispatch(this,"scrollStart"))},thumbSkin_stage_mouseMoveHandler:function(a){a=this.locationToValue(this.get_mouseX(),this.get_mouseY());a=this.restrictValue(a);this.set_value(a)},thumbSkin_stage_mouseUpHandler:function(a){a= +v.__cast(a.currentTarget,Nc);a.removeEventListener("mouseMove",h(this,this.thumbSkin_stage_mouseMoveHandler));a.removeEventListener("mouseUp",h(this,this.thumbSkin_stage_mouseUpHandler));this._dragging=!1;Ob.dispatch(this,"scrollComplete");this.liveDragging||Ca.dispatch(this,"change")},trackSkin_mouseDownHandler:function(a){this._enabled&&null!=this.stage&&Fc.forStage(this.stage).claimMouse(this)&&(this.stage.addEventListener("mouseMove",h(this,this.trackSkin_stage_mouseMoveHandler),!1,0,!0),this.stage.addEventListener("mouseUp", +h(this,this.trackSkin_stage_mouseUpHandler),!1,0,!0),this.saveThumbStart(this.get_mouseX(),this.get_mouseY()),this._pointerStartX=this.get_mouseX(),this._pointerStartY=this.get_mouseY(),this._dragging=!0,Ob.dispatch(this,"scrollStart"),a=this.locationToValue(this.get_mouseX(),this.get_mouseY()),a=this.restrictValue(a),this.set_value(a))},trackSkin_stage_mouseMoveHandler:function(a){a=this.locationToValue(this.get_mouseX(),this.get_mouseY());a=this.restrictValue(a);this.set_value(a)},trackSkin_stage_mouseUpHandler:function(a){a= +v.__cast(a.currentTarget,Nc);a.removeEventListener("mouseMove",h(this,this.trackSkin_stage_mouseMoveHandler));a.removeEventListener("mouseUp",h(this,this.trackSkin_stage_mouseUpHandler));this._dragging=!1;Ob.dispatch(this,"scrollComplete");this.liveDragging||Ca.dispatch(this,"change")},baseScrollBar_decrementButton_mouseDownHandler:function(a){this._enabled&&this.decrementButton.get_enabled()&&null!=this.stage&&Fc.forStage(this.stage).claimMouse(this)&&this.decrement()},baseScrollBar_decrementButton_touchBeginHandler:function(a){a.isPrimaryTouchPoint|| +this._enabled&&this.decrementButton.get_enabled()&&null!=this.stage&&Fc.forStage(this.stage).claimMouse(this)&&this.decrement()},baseScrollBar_incrementButton_mouseDownHandler:function(a){this._enabled&&this.incrementButton.get_enabled()&&null!=this.stage&&Fc.forStage(this.stage).claimMouse(this)&&this.increment()},baseScrollBar_incrementButton_touchBeginHandler:function(a){a.isPrimaryTouchPoint||this._enabled&&this.incrementButton.get_enabled()&&null!=this.stage&&Fc.forStage(this.stage).claimMouse(this)&& +this.increment()},get_customDecrementButtonVariant:function(){return this.__customDecrementButtonVariant},get_customIncrementButtonVariant:function(){return this.__customIncrementButtonVariant},get_thumbSkin:function(){return this.__thumbSkin},set_thumbSkin:function(a){if(!this.setStyle("thumbSkin")||this.__thumbSkin==a)return this.__thumbSkin;this._previousClearStyle=h(this,this.clearStyle_thumbSkin);this.__thumbSkin=a;this.setInvalid(E.STYLES);return this.__thumbSkin},clearStyle_thumbSkin:function(){this.set_thumbSkin(null); +return this.get_thumbSkin()},get_trackSkin:function(){return this.__trackSkin},set_trackSkin:function(a){if(!this.setStyle("trackSkin")||this.__trackSkin==a)return this.__trackSkin;this._previousClearStyle=h(this,this.clearStyle_trackSkin);this.__trackSkin=a;this.setInvalid(E.STYLES);return this.__trackSkin},clearStyle_trackSkin:function(){this.set_trackSkin(null);return this.get_trackSkin()},get_secondaryTrackSkin:function(){return this.__secondaryTrackSkin},get_fixedThumbSize:function(){return this.__fixedThumbSize}, +get_paddingTop:function(){return this.__paddingTop},set_paddingTop:function(a){if(!this.setStyle("paddingTop")||this.__paddingTop==a)return this.__paddingTop;this._previousClearStyle=h(this,this.clearStyle_paddingTop);this.__paddingTop=a;this.setInvalid(E.STYLES);return this.__paddingTop},clearStyle_paddingTop:function(){this.set_paddingTop(0);return this.get_paddingTop()},get_paddingRight:function(){return this.__paddingRight},set_paddingRight:function(a){if(!this.setStyle("paddingRight")||this.__paddingRight== +a)return this.__paddingRight;this._previousClearStyle=h(this,this.clearStyle_paddingRight);this.__paddingRight=a;this.setInvalid(E.STYLES);return this.__paddingRight},clearStyle_paddingRight:function(){this.set_paddingRight(0);return this.get_paddingRight()},get_paddingBottom:function(){return this.__paddingBottom},set_paddingBottom:function(a){if(!this.setStyle("paddingBottom")||this.__paddingBottom==a)return this.__paddingBottom;this._previousClearStyle=h(this,this.clearStyle_paddingBottom);this.__paddingBottom= +a;this.setInvalid(E.STYLES);return this.__paddingBottom},clearStyle_paddingBottom:function(){this.set_paddingBottom(0);return this.get_paddingBottom()},get_paddingLeft:function(){return this.__paddingLeft},set_paddingLeft:function(a){if(!this.setStyle("paddingLeft")||this.__paddingLeft==a)return this.__paddingLeft;this._previousClearStyle=h(this,this.clearStyle_paddingLeft);this.__paddingLeft=a;this.setInvalid(E.STYLES);return this.__paddingLeft},clearStyle_paddingLeft:function(){this.set_paddingLeft(0); +return this.get_paddingLeft()},get_hideThumbWhenDisabled:function(){return this.__hideThumbWhenDisabled},__class__:q,__properties__:t(Y.prototype.__properties__,{get_hideThumbWhenDisabled:"get_hideThumbWhenDisabled",set_paddingLeft:"set_paddingLeft",get_paddingLeft:"get_paddingLeft",set_paddingBottom:"set_paddingBottom",get_paddingBottom:"get_paddingBottom",set_paddingRight:"set_paddingRight",get_paddingRight:"get_paddingRight",set_paddingTop:"set_paddingTop",get_paddingTop:"get_paddingTop",get_fixedThumbSize:"get_fixedThumbSize", +get_secondaryTrackSkin:"get_secondaryTrackSkin",set_trackSkin:"set_trackSkin",get_trackSkin:"get_trackSkin",set_thumbSkin:"set_thumbSkin",get_thumbSkin:"get_thumbSkin",get_customIncrementButtonVariant:"get_customIncrementButtonVariant",get_customDecrementButtonVariant:"get_customDecrementButtonVariant",set_page:"set_page",set_step:"set_step",set_maximum:"set_maximum",set_minimum:"set_minimum",set_value:"set_value",get_value:"get_value"})});var w=function(a,b,c,d){null==c&&(c=1);null==b&&(b=0);null== +a&&(a=0);this.initializeHScrollBarTheme();q.call(this,a,b,c,d)};g["feathers.controls.HScrollBar"]=w;w.__name__="feathers.controls.HScrollBar";w.__super__=q;w.prototype=t(q.prototype,{initializeHScrollBarTheme:function(){aj.initialize()},valueToLocation:function(a){v.__implements(this._currentThumbSkin,ea)&&this._currentThumbSkin.validateNow();this.showDecrementAndIncrementButtons&&(this.decrementButton.validateNow(),this.incrementButton.validateNow());a=this.normalizeValue(a);var b=this.actualWidth- +this.get_paddingLeft()-this.get_paddingRight()-this._currentThumbSkin.get_width();this.showDecrementAndIncrementButtons&&(b-=this.decrementButton.get_width()+this.incrementButton.get_width());a=this.get_paddingLeft()+b*a;this.showDecrementAndIncrementButtons&&(a+=this.decrementButton.get_width());return a},locationToValue:function(a,b){b=this.get_paddingLeft();var c=this.actualWidth-this.get_paddingLeft()-this.get_paddingRight()-this._currentThumbSkin.get_width();this.showDecrementAndIncrementButtons&& +(b+=this.decrementButton.get_width(),c-=this.decrementButton.get_width()+this.incrementButton.get_width());return this._minimum+Math.min(Math.max(0,this._thumbStartX+(a-this._pointerStartX)-b),c)/c*(this._maximum-this._minimum)},saveThumbStart:function(a,b){var c=this.actualWidth;null!=this._currentThumbSkin&&(c-=this._currentThumbSkin.get_width(),a-=this._currentThumbSkin.get_width()/2);this._thumbStartX=Math.min(c,a);this._thumbStartY=b},measure:function(){var a=null==this.get_explicitWidth(),b= +null==this.get_explicitHeight(),c=null==this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;null!=this.decrementButton&&(this.decrementButtonMeasurements.restore(this.decrementButton),this.decrementButton.validateNow());null!=this.incrementButton&&(this.incrementButtonMeasurements.restore(this.incrementButton),this.incrementButton.validateNow());null!=this._currentThumbSkin&&(this._thumbSkinMeasurements.restore(this._currentThumbSkin), +v.__implements(this._currentThumbSkin,ea)&&this._currentThumbSkin.validateNow());null!=this._currentTrackSkin&&(this._trackSkinMeasurements.restore(this._currentTrackSkin),v.__implements(this._currentTrackSkin,ea)&&this._currentTrackSkin.validateNow());null!=this._currentSecondaryTrackSkin&&(this._secondaryTrackSkinMeasurements.restore(this._currentSecondaryTrackSkin),v.__implements(this._currentSecondaryTrackSkin,ea)&&this._currentSecondaryTrackSkin.validateNow());c=this.get_explicitWidth();a&&(c= +0,null!=this._currentTrackSkin&&(c+=this._currentTrackSkin.get_width(),null!=this._currentSecondaryTrackSkin&&(c+=this._currentSecondaryTrackSkin.get_width())),a=this.get_paddingLeft()+this.get_paddingRight(),null!=this._currentThumbSkin&&(a+=this._currentThumbSkin.get_width()),cthis._maximum&&(b=this._value-this._maximum);var c=this.actualWidth-this.get_paddingLeft()-this.get_paddingRight(),d=this.actualHeight-this.get_paddingTop()-this.get_paddingBottom();if(this.get_fixedThumbSize())null!=this._thumbSkinMeasurements.width&&this._currentThumbSkin.set_width(this._thumbSkinMeasurements.width);else{var f=this.getAdjustedPage();f=c*f/(a+f);if(0f&&(k=f);f-=b/(a*f/c)*k}null!=this._thumbSkinMeasurements.minWidth? +ff&&(f=0);this._currentThumbSkin.set_width(f)}this._currentThumbSkin.set_x(this.valueToLocation(this._value));this._currentThumbSkin.set_y(this.get_paddingTop()+(d-this._currentThumbSkin.get_height())/2)}}},get_styleContext:function(){return w},__class__:w});var G=function(a){null==a&&(a="");this.__verticalAlign= +wb.MIDDLE;this.__paddingTop=this.__paddingRight=this.__paddingBottom=this.__paddingLeft=this.__minGap=0;this.__disabledTextFormat=this.__backgroundSkin=this.__disabledBackgroundSkin=null;this.__embedFonts=!1;this._rightView=this.__textFormat=this.__styleSheet=null;this._ignoreRightViewResize=!1;this._leftView=null;this._ignoreLeftViewResize=!1;this._htmlText=this._currentBackgroundSkin=this._backgroundSkinMeasurements=null;this._updatedTextStyles=!1;this._previousText=this._previousHTMLText=this._previousTextFormat= +this._previousSimpleTextFormat=null;this.initializeHeaderTheme();Y.call(this);this.set_text(a)};g["feathers.controls.Header"]=G;G.__name__="feathers.controls.Header";G.__interfaces__=[Sb];G.__super__=Y;G.prototype=t(Y.prototype,{set_text:function(a){if(null==a){if(0==this._text.length)return this._text;a=""}if(this._text==a)return this._text;this._text=a;this.setInvalid(E.DATA);return this._text},set_leftView:function(a){if(this._leftView==a)return this._leftView;null!=this._leftView&&(this._leftView.removeEventListener("resize", +h(this,this.header_leftView_resizeHandler)),this._leftView.parent==this&&this.removeChild(this._leftView));this._leftView=a;null!=this._leftView&&(this.addChild(this._leftView),this._leftView.addEventListener("resize",h(this,this.header_leftView_resizeHandler),!1,0,!0));this.setInvalid(E.LAYOUT);return this._leftView},set_rightView:function(a){if(this._rightView==a)return this._rightView;null!=this._rightView&&(this._rightView.removeEventListener("resize",h(this,this.header_rightView_resizeHandler)), +this._rightView.parent==this&&this.removeChild(this._rightView));this._rightView=a;null!=this._rightView&&(this.addChild(this._rightView),this._rightView.addEventListener("resize",h(this,this.header_rightView_resizeHandler),!1,0,!0));this.setInvalid(E.LAYOUT);return this._rightView},dispose:function(){this.set_leftView(null);this.set_rightView(null);Y.prototype.dispose.call(this)},initializeHeaderTheme:function(){bj.initialize()},initialize:function(){Y.prototype.initialize.call(this);null==this.textField&& +(this.textField=new oc,this.textField.set_multiline(!0),this.textField.set_selectable(!1),this.addChild(this.textField))},update:function(){var a=this.isInvalid(E.DATA),b=this.isInvalid(E.LAYOUT),c=this.isInvalid(E.SIZE),d=this.isInvalid(E.STATE),f=this.isInvalid(E.STYLES);this._updatedTextStyles=!1;(f||d)&&this.refreshBackgroundSkin();(f||d)&&this.refreshTextStyles();(a||f||d||c)&&this.refreshText(c);this.measure()&&(c=!0);(b||f||d||a||c)&&this.layoutContent()},measure:function(){var a=null==this.get_explicitWidth(), +b=null==this.get_explicitHeight(),c=null==this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;var u=this._ignoreLeftViewResize;this._ignoreLeftViewResize=!0;var K=this._ignoreRightViewResize;this._ignoreRightViewResize=!0;null!=this._currentBackgroundSkin&&Tc.resetFluidlyWithParent(this._backgroundSkinMeasurements,this._currentBackgroundSkin,this);var n=null;v.__implements(this._currentBackgroundSkin, +Da)&&(n=this._currentBackgroundSkin);v.__implements(this._currentBackgroundSkin,ea)&&this._currentBackgroundSkin.validateNow();v.__implements(this._leftView,ea)&&this._leftView.validateNow();v.__implements(this._rightView,ea)&&this._rightView.validateNow();var g=this.get_explicitWidth();a&&(g=this._textMeasuredWidth+this.get_paddingLeft()+this.get_paddingRight(),null!=this._leftView&&(g+=this._leftView.get_width()+this.get_minGap()),null!=this._rightView&&(g+=this._rightView.get_width()+this.get_minGap()), +null!=this._currentBackgroundSkin&&(g=Math.max(this._currentBackgroundSkin.get_width(),g)));a=this.get_explicitHeight();b&&(a=this._textMeasuredHeight,null!=this._leftView&&(a=Math.max(a,this._leftView.get_height())),null!=this._rightView&&(a=Math.max(a,this._rightView.get_height())),a+=this.get_paddingTop()+this.get_paddingBottom(),null!=this._currentBackgroundSkin&&(a=Math.max(this._currentBackgroundSkin.get_height(),a)));b=this.get_explicitMinWidth();c&&(b=this._textMeasuredWidth+this.get_paddingLeft()+ +this.get_paddingRight(),null!=this._leftView&&(b+=this._leftView.get_width()+this.get_minGap()),null!=this._rightView&&(b+=this._rightView.get_width()+this.get_minGap()),null!=n?b=Math.max(n.get_minWidth(),b):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minWidth&&(b=Math.max(this._backgroundSkinMeasurements.minWidth,b)));c=this.get_explicitMinHeight();d&&(c=this._textMeasuredHeight,null!=this._leftView&&(c=Math.max(c,this._leftView.get_height())),null!=this._rightView&& +(c=Math.max(c,this._rightView.get_height())),c+=this.get_paddingTop()+this.get_paddingBottom(),null!=n?c=Math.max(n.get_minHeight(),c):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minHeight&&(c=Math.max(this._backgroundSkinMeasurements.minHeight,c)));d=this.get_explicitMaxWidth();f&&(d=null!=n?n.get_maxWidth():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxWidth?this._backgroundSkinMeasurements.maxWidth:1/0);f=this.get_explicitMaxHeight(); +k&&(f=null!=n?n.get_maxHeight():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxHeight?this._backgroundSkinMeasurements.maxHeight:1/0);this._ignoreLeftViewResize=u;this._ignoreRightViewResize=K;return this.saveMeasurements(g,a,b,c,d,f)},refreshTextStyles:function(){this.textField.get_embedFonts()!=this.get_embedFonts()&&(this.textField.set_embedFonts(this.get_embedFonts()),this._updatedTextStyles=!0);this.textField.get_styleSheet()!=this.get_styleSheet()&&(this.textField.set_styleSheet(this.get_styleSheet()), +this._updatedTextStyles=!0);var a=this.getCurrentTextFormat(),b=null!=a?a.toSimpleTextFormat():null;b!=this._previousSimpleTextFormat&&(null!=this._previousTextFormat&&this._previousTextFormat.removeEventListener("change",h(this,this.header_textFormat_changeHandler)),null!=a&&(a.addEventListener("change",h(this,this.header_textFormat_changeHandler),!1,0,!0),this.textField.set_defaultTextFormat(b),this._updatedTextStyles=!0),this._previousTextFormat=a,this._previousSimpleTextFormat=b)},refreshText:function(a){var b= +null!=this._text&&0a&&(a=0),this.textField.set_width(a)),this._textMeasuredWidth=this.textField.get_width(),this._textMeasuredHeight=this.textField.get_height(),this.textField.set_autoSize(2),b||c||this.textField.set_text(""),this._previousText=this._text,this._previousHTMLText=this._htmlText},getCurrentTextFormat:function(){return null!=this.get_styleSheet()?null:this._enabled||null==this.get_disabledTextFormat()?this.get_textFormat():this.get_disabledTextFormat()},refreshBackgroundSkin:function(){var a= +this._currentBackgroundSkin;this._currentBackgroundSkin=this.getCurrentBackgroundSkin();this._currentBackgroundSkin!=a&&(this.removeCurrentBackgroundSkin(a),this.addCurrentBackgroundSkin(this._currentBackgroundSkin))},getCurrentBackgroundSkin:function(){return this._enabled||null==this.get_disabledBackgroundSkin()?this.get_backgroundSkin():this.get_disabledBackgroundSkin()},addCurrentBackgroundSkin:function(a){null==a?this._backgroundSkinMeasurements=null:(v.__implements(a,ia)&&a.initializeNow(), +null==this._backgroundSkinMeasurements?this._backgroundSkinMeasurements=new Wb(a):this._backgroundSkinMeasurements.save(a),v.__implements(a,hb)&&a.set_uiContext(this),this.addChildAt(a,0))},removeCurrentBackgroundSkin:function(a){null!=a&&(v.__implements(a,hb)&&a.set_uiContext(null),this._backgroundSkinMeasurements.restore(a),a.parent==this&&this.removeChild(a))},layoutContent:function(){this.layoutBackgroundSkin();var a=this.get_paddingLeft(),b=this.actualWidth-this.get_paddingRight(),c=this.actualWidth- +this.get_paddingLeft()-this.get_paddingRight(),d=this.actualHeight-this.get_paddingTop()-this.get_paddingBottom(),f=c;if(null!=this._leftView){v.__implements(this._leftView,ea)&&this._leftView.validateNow();this._leftView.set_x(this.get_paddingLeft());switch(this.get_verticalAlign()._hx_index){case 0:this._leftView.set_y(this.get_paddingTop());break;case 2:this._leftView.set_y(this.actualHeight-this.get_paddingBottom()-this._leftView.get_height());break;default:this._leftView.set_y(this.get_paddingTop()+ +(d-this._leftView.get_height())/2)}f-=this._leftView.get_width()+this.get_minGap();a=this._leftView.get_x()+this._leftView.get_width()+this.get_minGap()}if(null!=this._rightView){v.__implements(this._rightView,ea)&&this._rightView.validateNow();this._rightView.set_x(this.actualWidth-this.get_paddingRight()-this._rightView.get_width());switch(this.get_verticalAlign()._hx_index){case 0:this._rightView.set_y(this.get_paddingTop());break;case 2:this._rightView.set_y(this.actualHeight-this.get_paddingBottom()- +this._rightView.get_height());break;default:this._rightView.set_y(this.get_paddingTop()+(d-this._rightView.get_height())/2)}f-=this._rightView.get_width()+this.get_minGap();b=this._rightView.get_x()-this.get_minGap()}var k=this._textMeasuredWidth;k>f&&(k=f);0>k&&(k=0);this.textField.set_width(k);b-=k;f=this._textMeasuredHeight;f>d&&(f=d);0>f&&(f=0);this.textField.set_height(f);c=this.get_paddingLeft()+(c-k)/2;cb&&(c=b);this.textField.set_x(c);switch(this.get_verticalAlign()._hx_index){case 0:this.textField.set_y(this.get_paddingTop()); +break;case 2:this.textField.set_y(this.actualHeight-this.get_paddingBottom()-f);break;default:this.textField.set_y(this.get_paddingTop()+(d-f)/2)}},layoutBackgroundSkin:function(){null!=this._currentBackgroundSkin&&(this._currentBackgroundSkin.set_x(0),this._currentBackgroundSkin.set_y(0),this._currentBackgroundSkin.get_width()!=this.actualWidth&&this._currentBackgroundSkin.set_width(this.actualWidth),this._currentBackgroundSkin.get_height()!=this.actualHeight&&this._currentBackgroundSkin.set_height(this.actualHeight), +v.__implements(this._currentBackgroundSkin,ea)&&this._currentBackgroundSkin.validateNow())},header_textFormat_changeHandler:function(a){this.setInvalid(E.STYLES)},header_leftView_resizeHandler:function(a){this._ignoreLeftViewResize||this.setInvalid(E.LAYOUT)},header_rightView_resizeHandler:function(a){this._ignoreRightViewResize||this.setInvalid(E.LAYOUT)},get_textFormat:function(){return this.__textFormat},set_textFormat:function(a){if(!this.setStyle("textFormat")||this.__textFormat==a)return this.__textFormat; +this._previousClearStyle=h(this,this.clearStyle_textFormat);this.__textFormat=a;this.setInvalid(E.STYLES);return this.__textFormat},clearStyle_textFormat:function(){this.set_textFormat(null);return this.get_textFormat()},get_styleSheet:function(){return this.__styleSheet},get_embedFonts:function(){return this.__embedFonts},get_disabledTextFormat:function(){return this.__disabledTextFormat},set_disabledTextFormat:function(a){if(!this.setStyle("disabledTextFormat")||this.__disabledTextFormat==a)return this.__disabledTextFormat; +this._previousClearStyle=h(this,this.clearStyle_disabledTextFormat);this.__disabledTextFormat=a;this.setInvalid(E.STYLES);return this.__disabledTextFormat},clearStyle_disabledTextFormat:function(){this.set_disabledTextFormat(null);return this.get_disabledTextFormat()},get_backgroundSkin:function(){return this.__backgroundSkin},set_backgroundSkin:function(a){if(!this.setStyle("backgroundSkin")||this.__backgroundSkin==a)return this.__backgroundSkin;this._previousClearStyle=h(this,this.clearStyle_backgroundSkin); +this.__backgroundSkin=a;this.setInvalid(E.STYLES);return this.__backgroundSkin},clearStyle_backgroundSkin:function(){this.set_backgroundSkin(null);return this.get_backgroundSkin()},get_disabledBackgroundSkin:function(){return this.__disabledBackgroundSkin},get_paddingTop:function(){return this.__paddingTop},set_paddingTop:function(a){if(!this.setStyle("paddingTop")||this.__paddingTop==a)return this.__paddingTop;this._previousClearStyle=h(this,this.clearStyle_paddingTop);this.__paddingTop=a;this.setInvalid(E.STYLES); +return this.__paddingTop},clearStyle_paddingTop:function(){this.set_paddingTop(0);return this.get_paddingTop()},get_paddingRight:function(){return this.__paddingRight},set_paddingRight:function(a){if(!this.setStyle("paddingRight")||this.__paddingRight==a)return this.__paddingRight;this._previousClearStyle=h(this,this.clearStyle_paddingRight);this.__paddingRight=a;this.setInvalid(E.STYLES);return this.__paddingRight},clearStyle_paddingRight:function(){this.set_paddingRight(0);return this.get_paddingRight()}, +get_paddingBottom:function(){return this.__paddingBottom},set_paddingBottom:function(a){if(!this.setStyle("paddingBottom")||this.__paddingBottom==a)return this.__paddingBottom;this._previousClearStyle=h(this,this.clearStyle_paddingBottom);this.__paddingBottom=a;this.setInvalid(E.STYLES);return this.__paddingBottom},clearStyle_paddingBottom:function(){this.set_paddingBottom(0);return this.get_paddingBottom()},get_paddingLeft:function(){return this.__paddingLeft},set_paddingLeft:function(a){if(!this.setStyle("paddingLeft")|| +this.__paddingLeft==a)return this.__paddingLeft;this._previousClearStyle=h(this,this.clearStyle_paddingLeft);this.__paddingLeft=a;this.setInvalid(E.STYLES);return this.__paddingLeft},clearStyle_paddingLeft:function(){this.set_paddingLeft(0);return this.get_paddingLeft()},get_minGap:function(){return this.__minGap},set_minGap:function(a){if(!this.setStyle("minGap")||this.__minGap==a)return this.__minGap;this._previousClearStyle=h(this,this.clearStyle_minGap);this.__minGap=a;this.setInvalid(E.STYLES); +return this.__minGap},clearStyle_minGap:function(){this.set_minGap(0);return this.get_minGap()},get_verticalAlign:function(){return this.__verticalAlign},__class__:G,__properties__:t(Y.prototype.__properties__,{set_rightView:"set_rightView",set_leftView:"set_leftView",get_verticalAlign:"get_verticalAlign",set_minGap:"set_minGap",get_minGap:"get_minGap",set_paddingLeft:"set_paddingLeft",get_paddingLeft:"get_paddingLeft",set_paddingBottom:"set_paddingBottom",get_paddingBottom:"get_paddingBottom",set_paddingRight:"set_paddingRight", +get_paddingRight:"get_paddingRight",set_paddingTop:"set_paddingTop",get_paddingTop:"get_paddingTop",get_disabledBackgroundSkin:"get_disabledBackgroundSkin",set_backgroundSkin:"set_backgroundSkin",get_backgroundSkin:"get_backgroundSkin",set_disabledTextFormat:"set_disabledTextFormat",get_disabledTextFormat:"get_disabledTextFormat",get_embedFonts:"get_embedFonts",get_styleSheet:"get_styleSheet",set_textFormat:"set_textFormat",get_textFormat:"get_textFormat",set_text:"set_text"})});var ja=function(){}; +g["feathers.controls.IGroupedToggle"]=ja;ja.__name__="feathers.controls.IGroupedToggle";ja.__isInterface__=!0;ja.__interfaces__=[Mc];ja.prototype={__class__:ja,__properties__:{get_toggleGroup:"get_toggleGroup"}};var Oa=function(){};g["feathers.core.IStageFocusDelegate"]=Oa;Oa.__name__="feathers.core.IStageFocusDelegate";Oa.__isInterface__=!0;Oa.__interfaces__=[Kb];Oa.prototype={__class__:Oa,__properties__:{get_stageFocusTarget:"get_stageFocusTarget"}};var ra=function(a){null==a&&(a="");this.__backgroundSkin= +this.__disabledBackgroundSkin=null;this.__wordWrap=!1;this.__verticalAlign=wb.TOP;this.__paddingTop=this.__paddingRight=this.__paddingBottom=this.__paddingLeft=0;this.__disabledTextFormat=null;this.__embedFonts=!1;this._currentBackgroundSkin=this._backgroundSkinMeasurements=this.__textFormat=this.__styleSheet=null;this._selectable=!1;this._htmlText=null;this._updatedTextStyles=this._wrappedOnMeasure=!1;this._previousText=this._previousHTMLText=this._previousTextFormat=this._previousSimpleTextFormat= +null;this.initializeLabelTheme();Y.call(this);this.set_text(a);this.set_tabEnabled(!1);this.set_tabChildren(!1);this.addEventListener("focusIn",h(this,this.label_focusInHandler))};g["feathers.controls.Label"]=ra;ra.__name__="feathers.controls.Label";ra.__interfaces__=[Oa,Kb,kd,Sb];ra.__super__=Y;ra.prototype=t(Y.prototype,{set_text:function(a){if(null==a){if(0==this._text.length)return this._text;a=""}if(this._text==a)return this._text;this._text=a;this.setInvalid(E.DATA);return this._text},set_htmlText:function(a){if(this._htmlText== +a)return this._htmlText;this._htmlText=a;this.setInvalid(E.DATA);return this._htmlText},get_tabEnabled:function(){return this._selectable&&this._enabled?this.get_rawTabEnabled():!1},get_focusEnabled:function(){return this._selectable?Y.prototype.get_focusEnabled.call(this):!1},get_stageFocusTarget:function(){return this.textField},initializeLabelTheme:function(){cj.initialize()},initialize:function(){Y.prototype.initialize.call(this);null==this.textField&&(this.textField=new oc,this.textField.set_multiline(!0), +this.addChild(this.textField))},update:function(){var a=this.isInvalid(E.DATA),b=this.isInvalid(E.SELECTION),c=this.isInvalid(E.SIZE),d=this.isInvalid(E.STATE),f=this.isInvalid(E.STYLES);this._updatedTextStyles=!1;(f||d)&&this.refreshBackgroundSkin();(f||d)&&this.refreshTextStyles();(a||f||d||c)&&this.refreshText(c);(a||f||b)&&this.refreshSelection();this.measure()&&(c=!0);(f||d||a||c)&&this.layoutContent()},measure:function(){var a=null==this.get_explicitWidth(),b=null==this.get_explicitHeight(), +c=null==this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;null!=this._currentBackgroundSkin&&Tc.resetFluidlyWithParent(this._backgroundSkinMeasurements,this._currentBackgroundSkin,this);var u=null;v.__implements(this._currentBackgroundSkin,Da)&&(u=this._currentBackgroundSkin);v.__implements(this._currentBackgroundSkin,ea)&&this._currentBackgroundSkin.validateNow();var K=this.get_explicitWidth(); +a&&(K=this._textMeasuredWidth+this.get_paddingLeft()+this.get_paddingRight(),null!=this._currentBackgroundSkin&&(K=Math.max(this._currentBackgroundSkin.get_width(),K)));a=this.get_explicitHeight();b&&(a=this._textMeasuredHeight+this.get_paddingTop()+this.get_paddingBottom(),null!=this._currentBackgroundSkin&&(a=Math.max(this._currentBackgroundSkin.get_height(),a)));b=this.get_explicitMinWidth();c&&(b=this._textMeasuredWidth+this.get_paddingLeft()+this.get_paddingRight(),null!=u?b=Math.max(u.get_minWidth(), +b):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minWidth&&(b=Math.max(this._backgroundSkinMeasurements.minWidth,b)));c=this.get_explicitMinHeight();d&&(c=this._textMeasuredHeight+this.get_paddingTop()+this.get_paddingBottom(),null!=u?c=Math.max(u.get_minHeight(),c):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minHeight&&(c=Math.max(this._backgroundSkinMeasurements.minHeight,c)));d=this.get_explicitMaxWidth();f&&(d=null!=u?u.get_maxWidth(): +null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxWidth?this._backgroundSkinMeasurements.maxWidth:1/0);f=this.get_explicitMaxHeight();k&&(f=null!=u?u.get_maxHeight():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxHeight?this._backgroundSkinMeasurements.maxHeight:1/0);return this.saveMeasurements(K,a,b,c,d,f)},refreshTextStyles:function(){this.textField.get_wordWrap()!=this.get_wordWrap()&&(this.textField.set_wordWrap(this.get_wordWrap()), +this._updatedTextStyles=!0);this.textField.get_embedFonts()!=this.get_embedFonts()&&(this.textField.set_embedFonts(this.get_embedFonts()),this._updatedTextStyles=!0);this.textField.get_styleSheet()!=this.get_styleSheet()&&(this.textField.set_styleSheet(this.get_styleSheet()),this._updatedTextStyles=!0);var a=this.getCurrentTextFormat(),b=null!=a?a.toSimpleTextFormat():null;b!=this._previousSimpleTextFormat&&(null!=this._previousTextFormat&&this._previousTextFormat.removeEventListener("change",h(this, +this.label_textFormat_changeHandler)),-1!=this.textField.get_caretIndex()&&this.textField.get_selectionBeginIndex()!=this.textField.get_selectionEndIndex()&&this.textField.setSelection(0,0),null!=a&&(a.addEventListener("change",h(this,this.label_textFormat_changeHandler),!1,0,!0),this.textField.set_defaultTextFormat(b),this._updatedTextStyles=!0),this._previousTextFormat=a,this._previousSimpleTextFormat=b)},refreshText:function(a){var b=null!=this._text&&0a&&(this.textField.set_wordWrap(!0),this.textField.set_width(a),this._textMeasuredWidth=this.textField.get_width(),this._wrappedOnMeasure=!0)),this._textMeasuredHeight=this.textField.get_height(),this.textField.set_autoSize(2),this.textField.get_wordWrap()!=this.get_wordWrap()&&this.textField.set_wordWrap(this.get_wordWrap()),b||c||this.textField.set_text(""),this._previousText=this._text,this._previousHTMLText=this._htmlText},calculateExplicitWidthForTextMeasurement:function(){var a= +null;null!=this.get_explicitWidth()?a=this.get_explicitWidth():null!=this.get_explicitMaxWidth()?a=this.get_explicitMaxWidth():null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxWidth&&(a=this._backgroundSkinMeasurements.maxWidth);if(null==a)return a;a-=this.get_paddingLeft()+this.get_paddingRight();0>a&&(a=0);return a},refreshSelection:function(){var a=this._selectable&&this._enabled;this.textField.get_selectable()!=a&&this.textField.set_selectable(a)},getCurrentTextFormat:function(){return null!= +this.get_styleSheet()?null:this._enabled||null==this.get_disabledTextFormat()?this.get_textFormat():this.get_disabledTextFormat()},refreshBackgroundSkin:function(){var a=this._currentBackgroundSkin;this._currentBackgroundSkin=this.getCurrentBackgroundSkin();this._currentBackgroundSkin!=a&&(this.removeCurrentBackgroundSkin(a),this.addCurrentBackgroundSkin(this._currentBackgroundSkin))},getCurrentBackgroundSkin:function(){return this._enabled||null==this.get_disabledBackgroundSkin()?this.get_backgroundSkin(): +this.get_disabledBackgroundSkin()},addCurrentBackgroundSkin:function(a){null==a?this._backgroundSkinMeasurements=null:(v.__implements(a,ia)&&a.initializeNow(),null==this._backgroundSkinMeasurements?this._backgroundSkinMeasurements=new Wb(a):this._backgroundSkinMeasurements.save(a),v.__implements(a,hb)&&a.set_uiContext(this),this.addChildAt(a,0))},removeCurrentBackgroundSkin:function(a){null!=a&&(v.__implements(a,hb)&&a.set_uiContext(null),this._backgroundSkinMeasurements.restore(a),a.parent==this&& +this.removeChild(a))},layoutContent:function(){this.layoutBackgroundSkin();var a=this.actualWidth-this.get_paddingLeft()-this.get_paddingRight();0>a&&(a=0);this.textField.set_x(this.get_paddingLeft());this.textField.set_width(a);var b=this.get_wordWrap();b&&!this._wrappedOnMeasure&&a>=this._textMeasuredWidth&&(b=!1);this.textField.get_wordWrap()!=b&&this.textField.set_wordWrap(b);a=this._textMeasuredHeight;b=this.actualHeight-this.get_paddingTop()-this.get_paddingBottom();a>b&&(a=b);0>a&&(a=0);this.textField.set_height(a); +switch(this.get_verticalAlign()._hx_index){case 0:this.textField.set_y(this.get_paddingTop());break;case 2:this.textField.set_y(this.actualHeight-this.get_paddingBottom()-a);break;default:this.textField.set_y(this.get_paddingTop()+(b-a)/2)}},layoutBackgroundSkin:function(){null!=this._currentBackgroundSkin&&(this._currentBackgroundSkin.set_x(0),this._currentBackgroundSkin.set_y(0),this._currentBackgroundSkin.get_width()!=this.actualWidth&&this._currentBackgroundSkin.set_width(this.actualWidth),this._currentBackgroundSkin.get_height()!= +this.actualHeight&&this._currentBackgroundSkin.set_height(this.actualHeight),v.__implements(this._currentBackgroundSkin,ea)&&this._currentBackgroundSkin.validateNow())},label_focusInHandler:function(a){null!=this.stage&&this.stage.get_focus()!=this.textField&&(a.stopImmediatePropagation(),this.stage.set_focus(this.textField))},label_textFormat_changeHandler:function(a){this.setInvalid(E.STYLES)},get_textFormat:function(){return this.__textFormat},set_textFormat:function(a){if(!this.setStyle("textFormat")|| +this.__textFormat==a)return this.__textFormat;this._previousClearStyle=h(this,this.clearStyle_textFormat);this.__textFormat=a;this.setInvalid(E.STYLES);return this.__textFormat},clearStyle_textFormat:function(){this.set_textFormat(null);return this.get_textFormat()},get_styleSheet:function(){return this.__styleSheet},set_styleSheet:function(a){if(!this.setStyle("styleSheet")||this.__styleSheet==a)return this.__styleSheet;this._previousClearStyle=h(this,this.clearStyle_styleSheet);this.__styleSheet= +a;this.setInvalid(E.STYLES);return this.__styleSheet},clearStyle_styleSheet:function(){this.set_styleSheet(null);return this.get_styleSheet()},get_embedFonts:function(){return this.__embedFonts},set_embedFonts:function(a){if(!this.setStyle("embedFonts")||this.__embedFonts==a)return this.__embedFonts;this._previousClearStyle=h(this,this.clearStyle_embedFonts);this.__embedFonts=a;this.setInvalid(E.STYLES);return this.__embedFonts},clearStyle_embedFonts:function(){this.set_embedFonts(!1);return this.get_embedFonts()}, +get_disabledTextFormat:function(){return this.__disabledTextFormat},set_disabledTextFormat:function(a){if(!this.setStyle("disabledTextFormat")||this.__disabledTextFormat==a)return this.__disabledTextFormat;this._previousClearStyle=h(this,this.clearStyle_disabledTextFormat);this.__disabledTextFormat=a;this.setInvalid(E.STYLES);return this.__disabledTextFormat},clearStyle_disabledTextFormat:function(){this.set_disabledTextFormat(null);return this.get_disabledTextFormat()},get_paddingTop:function(){return this.__paddingTop}, +set_paddingTop:function(a){if(!this.setStyle("paddingTop")||this.__paddingTop==a)return this.__paddingTop;this._previousClearStyle=h(this,this.clearStyle_paddingTop);this.__paddingTop=a;this.setInvalid(E.STYLES);return this.__paddingTop},clearStyle_paddingTop:function(){this.set_paddingTop(0);return this.get_paddingTop()},get_paddingRight:function(){return this.__paddingRight},set_paddingRight:function(a){if(!this.setStyle("paddingRight")||this.__paddingRight==a)return this.__paddingRight;this._previousClearStyle= +h(this,this.clearStyle_paddingRight);this.__paddingRight=a;this.setInvalid(E.STYLES);return this.__paddingRight},clearStyle_paddingRight:function(){this.set_paddingRight(0);return this.get_paddingRight()},get_paddingBottom:function(){return this.__paddingBottom},set_paddingBottom:function(a){if(!this.setStyle("paddingBottom")||this.__paddingBottom==a)return this.__paddingBottom;this._previousClearStyle=h(this,this.clearStyle_paddingBottom);this.__paddingBottom=a;this.setInvalid(E.STYLES);return this.__paddingBottom}, +clearStyle_paddingBottom:function(){this.set_paddingBottom(0);return this.get_paddingBottom()},get_paddingLeft:function(){return this.__paddingLeft},set_paddingLeft:function(a){if(!this.setStyle("paddingLeft")||this.__paddingLeft==a)return this.__paddingLeft;this._previousClearStyle=h(this,this.clearStyle_paddingLeft);this.__paddingLeft=a;this.setInvalid(E.STYLES);return this.__paddingLeft},clearStyle_paddingLeft:function(){this.set_paddingLeft(0);return this.get_paddingLeft()},get_verticalAlign:function(){return this.__verticalAlign}, +get_wordWrap:function(){return this.__wordWrap},set_wordWrap:function(a){if(!this.setStyle("wordWrap")||this.__wordWrap==a)return this.__wordWrap;this._previousClearStyle=h(this,this.clearStyle_wordWrap);this.__wordWrap=a;this.setInvalid(E.STYLES);return this.__wordWrap},clearStyle_wordWrap:function(){this.set_wordWrap(!1);return this.get_wordWrap()},get_backgroundSkin:function(){return this.__backgroundSkin},set_backgroundSkin:function(a){if(!this.setStyle("backgroundSkin")||this.__backgroundSkin== +a)return this.__backgroundSkin;this._previousClearStyle=h(this,this.clearStyle_backgroundSkin);this.__backgroundSkin=a;this.setInvalid(E.STYLES);return this.__backgroundSkin},clearStyle_backgroundSkin:function(){this.set_backgroundSkin(null);return this.get_backgroundSkin()},get_disabledBackgroundSkin:function(){return this.__disabledBackgroundSkin},get_styleContext:function(){return ra},__class__:ra,__properties__:t(Y.prototype.__properties__,{get_disabledBackgroundSkin:"get_disabledBackgroundSkin", +set_backgroundSkin:"set_backgroundSkin",get_backgroundSkin:"get_backgroundSkin",set_wordWrap:"set_wordWrap",get_wordWrap:"get_wordWrap",get_verticalAlign:"get_verticalAlign",set_paddingLeft:"set_paddingLeft",get_paddingLeft:"get_paddingLeft",set_paddingBottom:"set_paddingBottom",get_paddingBottom:"get_paddingBottom",set_paddingRight:"set_paddingRight",get_paddingRight:"get_paddingRight",set_paddingTop:"set_paddingTop",get_paddingTop:"get_paddingTop",set_disabledTextFormat:"set_disabledTextFormat", +get_disabledTextFormat:"get_disabledTextFormat",get_stageFocusTarget:"get_stageFocusTarget",set_embedFonts:"set_embedFonts",get_embedFonts:"get_embedFonts",set_styleSheet:"set_styleSheet",get_styleSheet:"get_styleSheet",set_textFormat:"set_textFormat",get_textFormat:"get_textFormat",set_htmlText:"set_htmlText",set_text:"set_text"})});var pc=function(a,b,c,d){null==c&&(c=1);null==b&&(b=0);null==a&&(a=0);this.initializeVScrollBarTheme();q.call(this,a,b,c,d)};g["feathers.controls.VScrollBar"]=pc;pc.__name__= +"feathers.controls.VScrollBar";pc.__super__=q;pc.prototype=t(q.prototype,{initializeVScrollBarTheme:function(){dj.initialize()},valueToLocation:function(a){v.__implements(this._currentThumbSkin,ea)&&this._currentThumbSkin.validateNow();this.showDecrementAndIncrementButtons&&(this.decrementButton.validateNow(),this.incrementButton.validateNow());a=this.normalizeValue(a);var b=this.actualHeight-this.get_paddingTop()-this.get_paddingBottom()-this._currentThumbSkin.get_height();this.showDecrementAndIncrementButtons&& +(b-=this.decrementButton.get_height()+this.incrementButton.get_height());a=this.get_paddingTop()+b*a;this.showDecrementAndIncrementButtons&&(a+=this.decrementButton.get_height());return a},locationToValue:function(a,b){a=this.get_paddingTop();var c=this.actualHeight-this.get_paddingTop()-this.get_paddingBottom()-this._currentThumbSkin.get_height();this.showDecrementAndIncrementButtons&&(a+=this.decrementButton.get_height(),c-=this.decrementButton.get_height()+this.incrementButton.get_height());return this._minimum+ +Math.min(Math.max(0,this._thumbStartY+(b-this._pointerStartY)-a),c)/c*(this._maximum-this._minimum)},saveThumbStart:function(a,b){var c=this.actualHeight;null!=this._currentThumbSkin&&(c-=this._currentThumbSkin.get_height(),b-=this._currentThumbSkin.get_height()/2);this._thumbStartX=a;this._thumbStartY=Math.min(c,b)},measure:function(){var a=null==this.get_explicitWidth(),b=null==this.get_explicitHeight(),c=null==this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(), +k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;null!=this.decrementButton&&(this.decrementButtonMeasurements.restore(this.decrementButton),this.decrementButton.validateNow());null!=this.incrementButton&&(this.incrementButtonMeasurements.restore(this.incrementButton),this.incrementButton.validateNow());null!=this._currentThumbSkin&&(this._thumbSkinMeasurements.restore(this._currentThumbSkin),v.__implements(this._currentThumbSkin,ea)&&this._currentThumbSkin.validateNow());null!= +this._currentTrackSkin&&(this._trackSkinMeasurements.restore(this._currentTrackSkin),v.__implements(this._currentTrackSkin,ea)&&this._currentTrackSkin.validateNow());null!=this._currentSecondaryTrackSkin&&(this._secondaryTrackSkinMeasurements.restore(this._currentSecondaryTrackSkin),v.__implements(this._currentSecondaryTrackSkin,ea)&&this._currentSecondaryTrackSkin.validateNow());c=this.get_explicitWidth();a&&(c=this.get_paddingLeft()+this.get_paddingRight(),null!=this._currentThumbSkin&&(c+=this._currentThumbSkin.get_width()), +null!=this._currentTrackSkin&&(cthis._maximum&&(b=this._value-this._maximum);var c=this.actualWidth-this.get_paddingLeft()- +this.get_paddingRight(),d=this.actualHeight-this.get_paddingTop()-this.get_paddingBottom();if(this.get_fixedThumbSize())null!=this._thumbSkinMeasurements.height&&this._currentThumbSkin.set_height(this._thumbSkinMeasurements.height);else{var f=this.getAdjustedPage();f=d*f/(a+f);if(0f&&(k=f);f-=b/(a*f/d)*k}null!=this._thumbSkinMeasurements.minHeight?ff&&(f=0);this._currentThumbSkin.set_height(f)}this._currentThumbSkin.set_x(this.get_paddingLeft()+(c-this._currentThumbSkin.get_width())/2);this._currentThumbSkin.set_y(this.valueToLocation(this._value))}}},get_styleContext:function(){return pc},__class__:pc});var Xa=function(){this.__scrollPixelSnapping=!1;this.__hideScrollBarEase=ei.easeOut;this.__hideScrollBarDuration=.2;this.__showScrollBarMinimumDuration=.5;this.__scrollBarYPosition=R.RIGHT;this.__scrollBarXPosition= +R.BOTTOM;this.__showScrollBars=this.__autoHideScrollBars=!0;this.__fixedScrollBars=!1;this.__backgroundSkin=this.__disabledBackgroundSkin=this.__maskSkin=this.__viewPortMaskSkin=this.__scrollBarsCornerSkin=null;this.__paddingTop=this.__paddingRight=this.__paddingBottom=this.__paddingLeft=0;this._scrollMode=Bd.MASK;this._ignoreScrollerChanges=this._settingScrollerDimensions=this._ignoreViewPortResizing=!1;this._scrollRect2=new da;this._scrollRect1=new da;this._prevMinScrollX=this._prevMaxScrollX=this._prevMinScrollY= +this._prevMaxScrollY=0;this._hideScrollBarX=this._hideScrollBarY=null;this._scrollPolicyX=this._scrollPolicyY=Xb.AUTO;this._scrollStepX=this._scrollStepY=1;this._temporaryScrollX=this._temporaryRestrictedScrollX=this._temporaryScrollY=this._temporaryRestrictedScrollY=null;this._ignoreScrollBarXChange=this._ignoreScrollBarYChange=this.showScrollBarX=this.showScrollBarY=!1;this.chromeMeasuredMaxHeight=1/0;this.chromeMeasuredHeight=this.chromeMeasuredMinHeight=0;this.chromeMeasuredMaxWidth=1/0;this.topViewPortOffset= +this.rightViewPortOffset=this.bottomViewPortOffset=this.leftViewPortOffset=this.chromeMeasuredWidth=this.chromeMeasuredMinWidth=0;this._currentBackgroundSkin=this._backgroundSkinMeasurements=this._currentMaskSkin=this._currentViewPortMaskSkin=this._fallbackViewPortMaskSkin=null;this._scrollerDraggingX=this._scrollerDraggingY=this._scrollBarXHover=this._scrollBarYHover=!1;Y.call(this);this.set_tabEnabled(!0);this.set_tabChildren(!0);this.focusRect=null;this.addEventListener("keyDown",h(this,this.baseScrollContainer_keyDownHandler)); +this.addEventListener("addedToStage",h(this,this.baseScrollContainer_addedToStageHandler));this.addEventListener("removedFromStage",h(this,this.baseScrollContainer_removedFromStageHandler))};g["feathers.controls.supportClasses.BaseScrollContainer"]=Xa;Xa.__name__="feathers.controls.supportClasses.BaseScrollContainer";Xa.__interfaces__=[Kb];Xa.__super__=Y;Xa.prototype=t(Y.prototype,{get_viewPort:function(){return this._viewPort},set_viewPort:function(a){if(this._viewPort==a)return this._viewPort;null!= +this._viewPort&&this._viewPort.removeEventListener("resize",h(this,this.viewPort_resizeHandler));null!=this.scroller&&this.scroller.set_target(null);this._viewPort=a;null!=this._viewPort&&this._viewPort.addEventListener("resize",h(this,this.viewPort_resizeHandler));this.setInvalid(E.SCROLL);return this._viewPort},get_tabEnabled:function(){return this.get_maxScrollY()!=this.get_minScrollY()||this.get_maxScrollX()!=this.get_minScrollX()?this.get_rawTabEnabled():!1},get_scrollX:function(){return null== +this.scroller?null!=this._temporaryRestrictedScrollX?this._temporaryRestrictedScrollX:null!=this._temporaryScrollX?this._temporaryScrollX:0:this.scroller.get_scrollX()},set_scrollX:function(a){if(null==this.scroller)return this._temporaryScrollX=a,this._temporaryRestrictedScrollX=null,Ob.dispatch(this,"scroll",!1,!1,this._temporaryScrollX,this._temporaryScrollY),this._temporaryScrollX;this.scroller.set_scrollX(a);return this.scroller.get_scrollX()},get_scrollY:function(){return null==this.scroller? +null!=this._temporaryRestrictedScrollY?this._temporaryRestrictedScrollY:null!=this._temporaryScrollY?this._temporaryScrollY:0:this.scroller.get_scrollY()},set_scrollY:function(a){if(null==this.scroller)return this._temporaryScrollY=a,this._temporaryRestrictedScrollY=null,Ob.dispatch(this,"scroll",!1,!1,this._temporaryScrollX,this._temporaryScrollY),this._temporaryScrollY;this.scroller.set_scrollY(a);return this.scroller.get_scrollY()},get_minScrollX:function(){return null==this.scroller?0:this.scroller.get_minScrollX()}, +get_minScrollY:function(){return null==this.scroller?0:this.scroller.get_minScrollY()},get_maxScrollX:function(){return null==this.scroller?0:this.scroller.get_maxScrollX()},get_maxScrollY:function(){return null==this.scroller?0:this.scroller.get_maxScrollY()},get_scrollPolicyX:function(){return this._scrollPolicyX},get_scrollPolicyY:function(){return this._scrollPolicyY},get_measureViewPort:function(){return!0},dispose:function(){this.destroyScroller();this.destroyScrollBarX();this.destroyScrollBarY(); +Y.prototype.dispose.call(this)},update:function(){var a=this.isInvalid(E.STYLES);this.isInvalid(E.SIZE);var b=this.isInvalid(E.STATE),c=this.isInvalid(Xa.INVALIDATION_FLAG_SCROLLER_FACTORY),d=this.isInvalid(Xa.INVALIDATION_FLAG_SCROLL_BAR_FACTORY),f=this._ignoreScrollerChanges;this._ignoreScrollerChanges=!0;c&&this.createScroller();(a||b)&&this.refreshBackgroundSkin();a&&(this.refreshMaskSkin(),this.refreshViewPortMaskSkin(),this.refreshScrollBarsCornerSkin());d&&this.createScrollBars();this.refreshEnabled(); +this.refreshScrollerValues();this.refreshViewPort();this.applyTemporaryScrollPositions();this.refreshScrollRect();this.refreshScrollBarValues();this.layoutChildren();this._ignoreScrollerChanges=f},applyTemporaryScrollPositions:function(){null!=this._temporaryScrollX?this.scroller.set_scrollX(this._temporaryScrollX):null!=this._temporaryRestrictedScrollX&&this.scroller.set_restrictedScrollX(this._temporaryRestrictedScrollX);null!=this._temporaryScrollY?this.scroller.set_scrollY(this._temporaryScrollY): +null!=this._temporaryRestrictedScrollY&&this.scroller.set_restrictedScrollY(this._temporaryRestrictedScrollY);this._temporaryRestrictedScrollY=this._temporaryRestrictedScrollX=this._temporaryScrollY=this._temporaryScrollX=null},needsMeasurement:function(){return this.isInvalid(E.SCROLL)&&this.needsScrollMeasurement()||this.isInvalid(E.DATA)||this.isInvalid(E.SIZE)||this.isInvalid(E.STYLES)||this.isInvalid(Xa.INVALIDATION_FLAG_SCROLL_BAR_FACTORY)||this.isInvalid(E.STATE)?!0:this.isInvalid(E.LAYOUT)}, +needsScrollMeasurement:function(){return!1},createScroller:function(){this.destroyScroller();this.scroller=null!=this._scrollerFactory?this._scrollerFactory():new md;this.scroller.addEventListener("scroll",h(this,this.baseScrollContainer_scroller_scrollHandler));this.scroller.addEventListener("scrollStart",h(this,this.baseScrollContainer_scroller_scrollStartHandler));this.scroller.addEventListener("scrollComplete",h(this,this.baseScrollContainer_scroller_scrollCompleteHandler))},destroyScroller:function(){null!= +this.scroller&&(this._temporaryScrollX=this.scroller.get_scrollX(),this._temporaryScrollY=this.scroller.get_scrollY(),this._temporaryRestrictedScrollY=this._temporaryRestrictedScrollX=null,this.scroller.set_target(null),this.scroller.removeEventListener("scroll",h(this,this.baseScrollContainer_scroller_scrollHandler)),this.scroller.removeEventListener("scrollStart",h(this,this.baseScrollContainer_scroller_scrollStartHandler)),this.scroller.removeEventListener("scrollComplete",h(this,this.baseScrollContainer_scroller_scrollCompleteHandler)), +this.scroller=null,this.setInvalidationFlag(Xa.INVALIDATION_FLAG_SCROLLER_FACTORY))},createScrollBars:function(){this.createScrollBarX();this.createScrollBarY()},createScrollBarX:function(){this.destroyScrollBarX();var a=null!=this._scrollBarXFactory?this._scrollBarXFactory:Xa.defaultScrollBarXFactory;this._oldScrollBarXFactory=a;this.scrollBarX=a.create();this.get_autoHideScrollBars()&&this.scrollBarX.set_alpha(0);this.scrollBarX.addEventListener("change",h(this,this.scrollBarX_changeHandler));this.scrollBarX.addEventListener("rollOver", +h(this,this.scrollBarX_rollOverHandler));this.scrollBarX.addEventListener("rollOut",h(this,this.scrollBarX_rollOutHandler));this.scrollBarX.addEventListener("scrollStart",h(this,this.scrollBarX_scrollStartHandler));this.scrollBarX.addEventListener("scrollComplete",h(this,this.scrollBarX_scrollCompleteHandler));this.addChild(v.__cast(this.scrollBarX,L))},destroyScrollBarX:function(){null!=this.scrollBarX&&(this.scrollBarX.removeEventListener("change",h(this,this.scrollBarX_changeHandler)),this.scrollBarX.removeEventListener("rollOver", +h(this,this.scrollBarX_rollOverHandler)),this.scrollBarX.removeEventListener("rollOut",h(this,this.scrollBarX_rollOutHandler)),this.scrollBarX.removeEventListener("scrollStart",h(this,this.scrollBarX_scrollStartHandler)),this.scrollBarX.removeEventListener("scrollComplete",h(this,this.scrollBarX_scrollCompleteHandler)),this.removeChild(v.__cast(this.scrollBarX,L)),null!=this._oldScrollBarXFactory.destroy&&this._oldScrollBarXFactory.destroy(this.scrollBarX),this.scrollBarX=this._oldScrollBarXFactory= +null)},createScrollBarY:function(){this.destroyScrollBarY();var a=null!=this._scrollBarYFactory?this._scrollBarYFactory:Xa.defaultScrollBarYFactory;this._oldScrollBarYFactory=a;this.scrollBarY=a.create();this.get_autoHideScrollBars()&&this.scrollBarY.set_alpha(0);this.scrollBarY.addEventListener("change",h(this,this.scrollBarY_changeHandler));this.scrollBarY.addEventListener("rollOver",h(this,this.scrollBarY_rollOverHandler));this.scrollBarY.addEventListener("rollOut",h(this,this.scrollBarY_rollOutHandler)); +this.scrollBarY.addEventListener("scrollStart",h(this,this.scrollBarY_scrollStartHandler));this.scrollBarY.addEventListener("scrollComplete",h(this,this.scrollBarY_scrollCompleteHandler));this.addChild(v.__cast(this.scrollBarY,L))},destroyScrollBarY:function(){null!=this.scrollBarY&&(this.scrollBarY.removeEventListener("change",h(this,this.scrollBarY_changeHandler)),this.scrollBarY.removeEventListener("rollOver",h(this,this.scrollBarY_rollOverHandler)),this.scrollBarY.removeEventListener("rollOut", +h(this,this.scrollBarY_rollOutHandler)),this.scrollBarY.removeEventListener("scrollStart",h(this,this.scrollBarY_scrollStartHandler)),this.scrollBarY.removeEventListener("scrollComplete",h(this,this.scrollBarY_scrollCompleteHandler)),this.removeChild(v.__cast(this.scrollBarY,L)),null!=this._oldScrollBarYFactory.destroy&&this._oldScrollBarYFactory.destroy(this.scrollBarY),this.scrollBarY=this._oldScrollBarYFactory=null)},refreshEnabled:function(){this._viewPort.set_enabled(this._enabled);null!=this.scrollBarX&& +this.scrollBarX.set_enabled(this._enabled);null!=this.scrollBarY&&this.scrollBarY.set_enabled(this._enabled)},restrictScrollAfterRefreshViewPort:function(){if(!this.scroller.get_scrolling()){var a=this.scroller.get_scrollX(),b=this.scroller.get_scrollY();this._prevMinScrollX!=this.scroller.get_minScrollX()&&athis.scroller.get_maxScrollX()&&this.scroller.set_restrictedScrollX(a); +this._prevMinScrollY!=this.scroller.get_minScrollY()&&bthis.scroller.get_maxScrollY()&&this.scroller.set_restrictedScrollY(b);a==this.scroller.get_scrollX()&&b==this.scroller.get_scrollY()||Ob.dispatch(this,"scroll",!1,!1,this.scroller.get_scrollX(),this.scroller.get_scrollY())}},refreshViewPort:function(){v.__implements(this.scrollBarX,ea)&&this.scrollBarX.validateNow(); +v.__implements(this.scrollBarY,ea)&&this.scrollBarY.validateNow();this._viewPort.set_scrollX(this.get_scrollX());this._viewPort.set_scrollY(this.get_scrollY());this._prevMinScrollX=this.scroller.get_minScrollX();this._prevMaxScrollX=this.scroller.get_maxScrollX();this._prevMinScrollY=this.scroller.get_minScrollY();this._prevMaxScrollY=this.scroller.get_maxScrollY();if(this.needsMeasurement()){this.resetViewPortOffsets();this.calculateViewPortOffsets(!1,!1);this.refreshViewPortBoundsForMeasurement(); +if(this.get_scrollPolicyX()==Xb.AUTO){var a=this.showScrollBarX;this.calculateViewPortOffsetsForFixedScrollBarX(!1);this.get_fixedScrollBars()&&this.showScrollBarX!=a&&this.refreshViewPortBoundsForMeasurement()}this.get_scrollPolicyY()==Xb.AUTO&&(a=this.showScrollBarY,this.calculateViewPortOffsetsForFixedScrollBarY(!1),this.get_fixedScrollBars()&&this.showScrollBarY!=a&&this.refreshViewPortBoundsForMeasurement());this.get_fixedScrollBars()&&!this.showScrollBarX&&this.showScrollBarY&&this.get_scrollPolicyX()== +Xb.AUTO&&this.get_scrollPolicyY()==Xb.AUTO&&(a=this.showScrollBarX,this.calculateViewPortOffsetsForFixedScrollBarX(!1),this.showScrollBarX!=a&&this.refreshViewPortBoundsForMeasurement());a=this._settingScrollerDimensions;this._settingScrollerDimensions=!0;this.scroller.setDimensions(this._viewPort.get_visibleWidth(),this._viewPort.get_visibleHeight(),this._viewPort.get_width(),this._viewPort.get_height());this._settingScrollerDimensions=a;this.measure();this.resetViewPortOffsets();this.calculateViewPortOffsets(!1, +!0);this.refreshViewPortBoundsForLayout();this.get_scrollPolicyX()==Xb.AUTO&&(a=this.showScrollBarX,this.calculateViewPortOffsetsForFixedScrollBarX(!0),this.get_fixedScrollBars()&&this.showScrollBarX!=a&&this.refreshViewPortBoundsForLayout());this.get_scrollPolicyY()==Xb.AUTO&&(a=this.showScrollBarY,this.calculateViewPortOffsetsForFixedScrollBarY(!0),this.get_fixedScrollBars()&&this.showScrollBarY!=a&&this.refreshViewPortBoundsForLayout());this.get_fixedScrollBars()&&!this.showScrollBarX&&this.showScrollBarY&& +this.get_scrollPolicyX()==Xb.AUTO&&this.get_scrollPolicyY()==Xb.AUTO&&(a=this.showScrollBarX,this.calculateViewPortOffsetsForFixedScrollBarX(!0),this.showScrollBarX!=a&&this.refreshViewPortBoundsForLayout());a=this._settingScrollerDimensions}else this._viewPort.validateNow(),a=this._settingScrollerDimensions;this._settingScrollerDimensions=!0;this.scroller.setDimensions(this._viewPort.get_visibleWidth(),this._viewPort.get_visibleHeight(),this._viewPort.get_width(),this._viewPort.get_height());this._settingScrollerDimensions= +a;this.restrictScrollAfterRefreshViewPort()},resetViewPortOffsets:function(){this.showScrollBarX=this.get_showScrollBars()&&(this._scrollPolicyX==Xb.ON||this._scrollPolicyX==Xb.AUTO&&this.scroller.get_minScrollX()!=this.scroller.get_maxScrollX());this.showScrollBarY=this.get_showScrollBars()&&(this._scrollPolicyX==Xb.ON||this._scrollPolicyY==Xb.AUTO&&this.scroller.get_minScrollY()!=this.scroller.get_maxScrollY());this.topViewPortOffset=this.get_fixedScrollBars()&&this.showScrollBarX&&this.get_scrollBarXPosition()== +R.TOP?this.scrollBarX.get_height():0;this.bottomViewPortOffset=this.get_fixedScrollBars()&&this.showScrollBarX&&this.get_scrollBarXPosition()==R.BOTTOM?this.scrollBarX.get_height():0;this.leftViewPortOffset=this.get_fixedScrollBars()&&this.showScrollBarY&&this.get_scrollBarYPosition()==R.LEFT?this.scrollBarY.get_width():0;this.rightViewPortOffset=this.get_fixedScrollBars()&&this.showScrollBarY&&this.get_scrollBarYPosition()==R.RIGHT?this.scrollBarY.get_width():0;this.chromeMeasuredMinWidth=this.chromeMeasuredWidth= +0;this.chromeMeasuredMaxWidth=1/0;this.chromeMeasuredMinHeight=this.chromeMeasuredHeight=0;this.chromeMeasuredMaxHeight=1/0},calculateViewPortOffsets:function(a,b){},calculateViewPortOffsetsForFixedScrollBarX:function(a){if(null!=this.scrollBarX){var b=!1;this.get_showScrollBars()&&this.get_scrollPolicyX()!=Xb.OFF&&(b=this.get_scrollPolicyX()==Xb.ON,b||this.get_scrollPolicyX()!=Xb.AUTO||(b=a?this.actualWidth:this.get_explicitWidth(),null!=b&&(b-=this.get_paddingLeft()+this.get_paddingRight()+this.leftViewPortOffset+ +this.rightViewPortOffset,0>b&&(b=0)),null!=b||a||(b=this._viewPort.get_visibleWidth()),a=this._viewPort.get_width(),b=null!=b&&a>b&&!ld.fuzzyEquals(a,b),b||(b=this.get_explicitMaxWidth(),null!=b&&(b-=this.get_paddingLeft()+this.get_paddingRight()+this.leftViewPortOffset+this.rightViewPortOffset,0>b&&(b=0)),b=null!=b&&a>b&&!ld.fuzzyEquals(a,b))));this.showScrollBarX!=b&&(this.showScrollBarX=b,this.get_fixedScrollBars()&&(a=this.scrollBarX.get_height(),this.showScrollBarX||(a=-a),this.get_scrollBarXPosition()== +R.TOP?this.topViewPortOffset+=a:this.bottomViewPortOffset+=a))}},calculateViewPortOffsetsForFixedScrollBarY:function(a){if(null!=this.scrollBarY){var b=!1;this.get_showScrollBars()&&this.get_scrollPolicyY()!=Xb.OFF&&(b=this.get_scrollPolicyY()==Xb.ON,b||this.get_scrollPolicyY()!=Xb.AUTO||(b=a?this.actualHeight:this.get_explicitHeight(),null!=b&&(b-=this.get_paddingTop()+this.get_paddingBottom()+this.topViewPortOffset+this.bottomViewPortOffset,0>b&&(b=0)),null!=b||a||(b=this._viewPort.get_visibleHeight()), +a=this._viewPort.get_height(),b=null!=b&&a>b&&!ld.fuzzyEquals(a,b),b||(b=this.get_explicitMaxHeight(),null!=b&&(b-=this.get_paddingTop()+this.get_paddingBottom()+this.topViewPortOffset+this.bottomViewPortOffset,0>b&&(b=0)),b=null!=b&&a>b&&!ld.fuzzyEquals(a,b))));this.showScrollBarY!=b&&(this.showScrollBarY=b,this.get_fixedScrollBars()&&(a=this.scrollBarY.get_width(),this.showScrollBarY||(a=-a),this.get_scrollBarYPosition()==R.LEFT?this.leftViewPortOffset+=a:this.rightViewPortOffset+=a))}},refreshViewPortBoundsForMeasurement:function(){var a= +this._ignoreViewPortResizing;this._ignoreViewPortResizing=!0;var b=this.get_paddingLeft()+this.leftViewPortOffset,c=this.get_paddingTop()+this.topViewPortOffset;if(this._scrollMode==Bd.MASK||this._scrollMode==Bd.MASKLESS||null!=this._currentViewPortMaskSkin)b-=this.get_scrollX(),c-=this.get_scrollY();this._viewPort.set_x(b);this._viewPort.set_y(c);null!=this.get_explicitWidth()?(b=this.get_explicitWidth()-this.leftViewPortOffset-this.rightViewPortOffset-this.get_paddingLeft()-this.get_paddingRight(), +0>b&&(b=0),this._viewPort.set_visibleWidth(b)):this._viewPort.set_visibleWidth(null);null!=this.get_explicitHeight()?(b=this.get_explicitHeight()-this.topViewPortOffset-this.bottomViewPortOffset-this.get_paddingTop()-this.get_paddingBottom(),0>b&&(b=0),this._viewPort.set_visibleHeight(b)):this._viewPort.set_visibleHeight(null);null!=this.get_explicitMinWidth()?(b=this.get_explicitMinWidth()-this.leftViewPortOffset-this.rightViewPortOffset-this.get_paddingLeft()-this.get_paddingRight(),0>b&&(b=0), +this._viewPort.set_minVisibleWidth(b)):this._viewPort.set_minVisibleWidth(null);null!=this.get_explicitMinHeight()?(b=this.get_explicitMinHeight()-this.topViewPortOffset-this.bottomViewPortOffset-this.get_paddingTop()-this.get_paddingBottom(),0>b&&(b=0),this._viewPort.set_minVisibleHeight(b)):this._viewPort.set_minVisibleHeight(null);null!=this.get_explicitMaxWidth()?(b=this.get_explicitMaxWidth()-this.leftViewPortOffset-this.rightViewPortOffset-this.get_paddingLeft()-this.get_paddingRight(),0>b&& +(b=0),this._viewPort.set_maxVisibleWidth(b)):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxWidth?(b=this._backgroundSkinMeasurements.maxWidth-this.leftViewPortOffset-this.rightViewPortOffset-this.get_paddingLeft()-this.get_paddingRight(),0>b&&(b=0),this._viewPort.set_maxVisibleWidth(b)):this._viewPort.set_maxVisibleWidth(1/0);null!=this.get_explicitMaxHeight()?(b=this.get_explicitMaxHeight()-this.topViewPortOffset-this.bottomViewPortOffset-this.get_paddingTop()- +this.get_paddingBottom(),0>b&&(b=0),this._viewPort.set_maxVisibleHeight(b)):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxHeight?(b=this._backgroundSkinMeasurements.maxHeight-this.topViewPortOffset-this.bottomViewPortOffset-this.get_paddingTop()-this.get_paddingBottom(),0>b&&(b=0),this._viewPort.set_maxVisibleHeight(b)):this._viewPort.set_maxVisibleHeight(1/0);this._viewPort.validateNow();this._ignoreViewPortResizing=a},refreshViewPortBoundsForLayout:function(){var a= +this._ignoreViewPortResizing;this._ignoreViewPortResizing=!0;var b=this.actualWidth-this.leftViewPortOffset-this.rightViewPortOffset-this.get_paddingLeft()-this.get_paddingRight();0>b&&(b=0);var c=this.actualHeight-this.topViewPortOffset-this.bottomViewPortOffset-this.get_paddingTop()-this.get_paddingBottom();0>c&&(c=0);var d=this.actualMinWidth-this.leftViewPortOffset-this.rightViewPortOffset-this.get_paddingLeft()-this.get_paddingRight();0>d&&(d=0);var f=this.actualMinHeight-this.topViewPortOffset- +this.bottomViewPortOffset-this.get_paddingTop()-this.get_paddingBottom();0>f&&(f=0);var k=this.actualMaxWidth-this.leftViewPortOffset-this.rightViewPortOffset-this.get_paddingLeft()-this.get_paddingRight();0>k&&(k=0);var u=this.actualMaxHeight-this.topViewPortOffset-this.bottomViewPortOffset-this.get_paddingTop()-this.get_paddingBottom();0>u&&(u=0);var K=this.get_paddingLeft()+this.leftViewPortOffset,n=this.get_paddingTop()+this.topViewPortOffset;if(this._scrollMode==Bd.MASK||this._scrollMode==Bd.MASKLESS|| +null!=this._currentViewPortMaskSkin)K-=this.get_scrollX(),n-=this.get_scrollY();this._viewPort.set_x(K);this._viewPort.set_y(n);this._viewPort.set_visibleWidth(b);this._viewPort.set_visibleHeight(c);this._viewPort.set_minVisibleWidth(d);this._viewPort.set_minVisibleHeight(f);this._viewPort.set_maxVisibleWidth(k);this._viewPort.set_maxVisibleHeight(u);this._viewPort.validateNow();this._ignoreViewPortResizing=a},refreshScrollerValues:function(){null!=this.stage&&this.scroller.set_target(v.__cast(this._viewPort, +ha));this.scroller.enabledX=this._enabled&&this._scrollPolicyX!=Xb.OFF;this.scroller.enabledY=this._enabled&&this._scrollPolicyY!=Xb.OFF},refreshScrollBarValues:function(){if(null!=this.scrollBarX){var a=this._ignoreScrollBarXChange;this._ignoreScrollBarXChange=!0;this.scrollBarX.set_minimum(this.scroller.get_minScrollX());this.scrollBarX.set_maximum(this.scroller.get_maxScrollX());this.scrollBarX.set_value(this.scroller.get_scrollX());this.scrollBarX.set_page((this.scroller.get_maxScrollX()-this.scroller.get_minScrollX())* +this._viewPort.get_visibleWidth()/this._viewPort.get_width());this.scrollBarX.set_step(this._scrollStepX);v.__cast(this.scrollBarX,ya).set_visible(this.showScrollBarX);!this.get_fixedScrollBars()&&this.get_autoHideScrollBars()||this.scrollBarX.set_alpha(1);this._ignoreScrollBarXChange=a}null!=this.scrollBarY&&(a=this._ignoreScrollBarYChange,this._ignoreScrollBarYChange=!0,this.scrollBarY.set_minimum(this.scroller.get_minScrollY()),this.scrollBarY.set_maximum(this.scroller.get_maxScrollY()),this.scrollBarY.set_value(this.scroller.get_scrollY()), +this.scrollBarY.set_page((this.scroller.get_maxScrollY()-this.scroller.get_minScrollY())*this._viewPort.get_visibleHeight()/this._viewPort.get_height()),this.scrollBarY.set_step(this._scrollStepY),v.__cast(this.scrollBarY,ya).set_visible(this.showScrollBarY),!this.get_fixedScrollBars()&&this.get_autoHideScrollBars()||this.scrollBarY.set_alpha(1),this._ignoreScrollBarYChange=a)},measure:function(){var a=null==this.get_explicitWidth(),b=null==this.get_explicitHeight(),c=null==this.get_explicitMinWidth(), +d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;null!=this._currentBackgroundSkin&&Tc.resetFluidlyWithParent(this._backgroundSkinMeasurements,this._currentBackgroundSkin,this);var u=null;v.__implements(this._currentBackgroundSkin,Da)&&(u=this._currentBackgroundSkin);v.__implements(this._currentBackgroundSkin,ea)&&this._currentBackgroundSkin.validateNow();var K=this.get_explicitWidth();a&&(K=this.get_measureViewPort()? +this._viewPort.get_visibleWidth():0,K+=this.leftViewPortOffset+this.rightViewPortOffset,K=Math.max(K,this.chromeMeasuredWidth),K+=this.get_paddingLeft()+this.get_paddingRight(),null!=this._currentBackgroundSkin&&(K=Math.max(K,this._currentBackgroundSkin.get_width())));a=this.get_explicitHeight();b&&(a=this.get_measureViewPort()?this._viewPort.get_visibleHeight():0,a+=this.topViewPortOffset+this.bottomViewPortOffset,a=Math.max(a,this.chromeMeasuredHeight),a+=this.get_paddingTop()+this.get_paddingBottom(), +null!=this._currentBackgroundSkin&&(a=Math.max(a,this._currentBackgroundSkin.get_height())));b=this.get_explicitMinWidth();c&&(b=this.get_measureViewPort()?this._viewPort.get_minVisibleWidth():0,b+=this.leftViewPortOffset+this.rightViewPortOffset,b=Math.max(b,this.chromeMeasuredMinWidth),b+=this.get_paddingLeft()+this.get_paddingRight(),null!=u?b=Math.max(b,u.get_minWidth()):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minWidth&&(b=Math.max(b,this._backgroundSkinMeasurements.minWidth))); +c=this.get_explicitMinHeight();d&&(c=this.get_measureViewPort()?this._viewPort.get_minVisibleHeight():0,c+=this.topViewPortOffset+this.bottomViewPortOffset,c=Math.max(c,this.chromeMeasuredMinHeight),c+=this.get_paddingTop()+this.get_paddingBottom(),null!=u?c=Math.max(c,u.get_minHeight()):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.minHeight&&(c=Math.max(c,this._backgroundSkinMeasurements.minHeight)));d=this.get_explicitMaxWidth();f&&(d=this.get_measureViewPort()? +this._viewPort.get_maxVisibleWidth():1/0,d+=this.leftViewPortOffset+this.rightViewPortOffset,d=Math.min(d,this.chromeMeasuredMaxWidth),d+=this.get_paddingLeft()+this.get_paddingRight(),null!=u?d=Math.min(d,u.get_maxWidth()):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxWidth&&(d=Math.min(d,this._backgroundSkinMeasurements.maxWidth)));f=this.get_explicitMaxHeight();k&&(f=this.get_measureViewPort()?this._viewPort.get_maxVisibleHeight():1/0,f+=this.topViewPortOffset+ +this.bottomViewPortOffset,f=Math.min(f,this.chromeMeasuredMaxHeight),f+=this.get_paddingTop()+this.get_paddingBottom(),null!=u?f=Math.min(f,u.get_maxHeight()):null!=this._backgroundSkinMeasurements&&null!=this._backgroundSkinMeasurements.maxHeight&&(f=Math.min(f,this._backgroundSkinMeasurements.maxHeight)));return this.saveMeasurements(K,a,b,c,d,f)},refreshBackgroundSkin:function(){var a=this._currentBackgroundSkin;this._currentBackgroundSkin=this.getCurrentBackgroundSkin();this._currentBackgroundSkin!= +a&&(this.removeCurrentBackgroundSkin(a),this.addCurrentBackgroundSkin(this._currentBackgroundSkin))},getCurrentBackgroundSkin:function(){return this._enabled||null==this.get_disabledBackgroundSkin()?this.get_backgroundSkin():this.get_disabledBackgroundSkin()},addCurrentBackgroundSkin:function(a){null==a?this._backgroundSkinMeasurements=null:(v.__implements(a,ia)&&a.initializeNow(),null==this._backgroundSkinMeasurements?this._backgroundSkinMeasurements=new Wb(a):this._backgroundSkinMeasurements.save(a), +v.__implements(a,hb)&&a.set_uiContext(this),this.addChildAt(a,0))},removeCurrentBackgroundSkin:function(a){null!=a&&(v.__implements(a,hb)&&a.set_uiContext(null),this._backgroundSkinMeasurements.restore(a),a.parent==this&&this.removeChild(a))},refreshMaskSkin:function(){var a=this._currentMaskSkin;this._currentMaskSkin=this.getCurrentMaskSkin();this._currentMaskSkin!=a&&(this.removeCurrentMaskSkin(a),this.addCurrentMaskSkin(this._currentMaskSkin))},getCurrentMaskSkin:function(){return this.get_maskSkin()}, +addCurrentMaskSkin:function(a){null!=a&&(v.__implements(a,ia)&&a.initializeNow(),v.__implements(a,hb)&&a.set_uiContext(this),this.addChild(a),this.set_mask(a))},removeCurrentMaskSkin:function(a){null!=a&&(v.__implements(a,hb)&&a.set_uiContext(null),a.parent==this&&this.removeChild(a),this.set_mask(null))},refreshViewPortMaskSkin:function(){var a=this._currentViewPortMaskSkin;this._currentViewPortMaskSkin=this.getCurrentViewPortMaskSkin();this._currentViewPortMaskSkin!=a&&(this.removeCurrentViewPortMaskSkin(a), +this.addCurrentViewPortMaskSkin(this._currentViewPortMaskSkin))},getCurrentViewPortMaskSkin:function(){return null!=this.get_viewPortMaskSkin()?this.get_viewPortMaskSkin():this._scrollMode==Bd.MASK?(null==this._fallbackViewPortMaskSkin&&(this._fallbackViewPortMaskSkin=new lb(qb.SolidColor(16711935))),this._fallbackViewPortMaskSkin):null},addCurrentViewPortMaskSkin:function(a){null!=a&&(v.__implements(a,ia)&&a.initializeNow(),v.__implements(a,hb)&&a.set_uiContext(this),this.addChild(a),v.__cast(this._viewPort, +L).set_mask(a))},removeCurrentViewPortMaskSkin:function(a){null!=a&&(v.__implements(a,hb)&&a.set_uiContext(null),a.parent==this&&this.removeChild(a),v.__cast(this._viewPort,L).set_mask(null))},refreshScrollBarsCornerSkin:function(){var a=this._currentScrollBarsCornerSkin;this._currentScrollBarsCornerSkin=this.getCurrentScrollBarsCornerSkin();this._currentScrollBarsCornerSkin!=a&&(this.removeCurrentScrollBarsCornerSkin(a),this.addCurrentScrollBarsCornerSkin(this._currentScrollBarsCornerSkin))},getCurrentScrollBarsCornerSkin:function(){return this.get_scrollBarsCornerSkin()}, +addCurrentScrollBarsCornerSkin:function(a){null!=a&&(v.__implements(a,ia)&&a.initializeNow(),v.__implements(a,hb)&&a.set_uiContext(this),this.addChild(a))},removeCurrentScrollBarsCornerSkin:function(a){null!=a&&(v.__implements(a,hb)&&a.set_uiContext(null),a.parent==this&&this.removeChild(a))},layoutChildren:function(){this.layoutBackgroundSkin();this.layoutMaskSkin();this.layoutViewPortMaskSkin();this.layoutScrollBars()},layoutBackgroundSkin:function(){null!=this._currentBackgroundSkin&&(this._currentBackgroundSkin.set_x(0), +this._currentBackgroundSkin.set_y(0),this._currentBackgroundSkin.get_width()!=this.actualWidth&&this._currentBackgroundSkin.set_width(this.actualWidth),this._currentBackgroundSkin.get_height()!=this.actualHeight&&this._currentBackgroundSkin.set_height(this.actualHeight),v.__implements(this._currentBackgroundSkin,ea)&&this._currentBackgroundSkin.validateNow())},layoutMaskSkin:function(){null!=this._currentMaskSkin&&(this._currentMaskSkin.set_x(0),this._currentMaskSkin.set_y(0),this._currentMaskSkin.set_width(this.actualWidth), +this._currentMaskSkin.set_height(this.actualHeight),v.__implements(this._currentMaskSkin,ea)&&this._currentMaskSkin.validateNow())},layoutViewPortMaskSkin:function(){if(null!=this._currentViewPortMaskSkin){var a=this.get_paddingLeft()+this.leftViewPortOffset,b=this.get_paddingTop()+this.topViewPortOffset,c=this._viewPort.get_visibleWidth(),d=this._viewPort.get_visibleHeight();this.get_fixedScrollBars()&&this.scrollBarY.get_visible()&&(c+=this.scrollBarY.get_width(),this.get_scrollBarYPosition()== +R.LEFT&&(a-=this.scrollBarY.get_width()));this.get_fixedScrollBars()&&this.scrollBarX.get_visible()&&(d+=this.scrollBarX.get_height(),this.get_scrollBarXPosition()==R.TOP&&(a-=this.scrollBarX.get_height()));this._currentViewPortMaskSkin.set_x(a);this._currentViewPortMaskSkin.set_y(b);this._currentViewPortMaskSkin.set_width(c);this._currentViewPortMaskSkin.set_height(d);v.__implements(this._currentViewPortMaskSkin,ea)&&this._currentViewPortMaskSkin.validateNow()}},layoutScrollBars:function(){var a= +this.actualWidth-this.leftViewPortOffset-this.rightViewPortOffset-this.get_paddingLeft()-this.get_paddingRight();0>a&&(a=0);var b=this.actualHeight-this.topViewPortOffset-this.bottomViewPortOffset-this.get_paddingTop()-this.get_paddingBottom();0>b&&(b=0);null!=this.scrollBarX&&v.__implements(this.scrollBarX,ea)&&this.scrollBarX.validateNow();null!=this.scrollBarY&&v.__implements(this.scrollBarY,ea)&&this.scrollBarY.validateNow();if(null!=this.scrollBarX)if(0==this.get_scrollBarXPosition()._hx_index? +this.scrollBarX.set_y(this.get_paddingTop()):this.scrollBarX.set_y(this.get_paddingTop()+this.topViewPortOffset+b),this.scrollBarX.set_x(this.get_paddingLeft()+this.leftViewPortOffset),this.get_fixedScrollBars())this.scrollBarX.set_width(a);else{var c=this.scrollBarX;c.set_y(c.get_y()-this.scrollBarX.get_height());!this.showScrollBarY&&null==this._hideScrollBarY||null==this.scrollBarY?this.scrollBarX.set_width(a):(c=a-this.scrollBarY.get_width(),0>c&&(c=0),this.scrollBarX.set_width(c))}null!=this.scrollBarY&& +(3==this.get_scrollBarYPosition()._hx_index?this.scrollBarY.set_x(this.get_paddingLeft()):this.scrollBarY.set_x(this.get_paddingLeft()+this.leftViewPortOffset+a),this.scrollBarY.set_y(this.get_paddingTop()+this.topViewPortOffset),this.get_fixedScrollBars()?this.scrollBarY.set_height(b):(c=this.scrollBarY,c.set_x(c.get_x()-this.scrollBarY.get_width()),!this.showScrollBarX&&null==this._hideScrollBarX||null==this.scrollBarX?this.scrollBarY.set_height(b):(a=b-this.scrollBarX.get_height(),0>a&&(a=0),this.scrollBarY.set_height(a)))); +null!=this._currentScrollBarsCornerSkin&&(this.get_fixedScrollBars()&&null!=this.scrollBarX&&null!=this.scrollBarY&&this.scrollBarX.get_visible()&&this.scrollBarY.get_visible()?(this._currentScrollBarsCornerSkin.set_x(this.scrollBarY.get_x()),this._currentScrollBarsCornerSkin.set_width(this.scrollBarY.get_width()),this._currentScrollBarsCornerSkin.set_y(this.scrollBarX.get_y()),this._currentScrollBarsCornerSkin.set_height(this.scrollBarX.get_height()),this._currentScrollBarsCornerSkin.set_visible(!0)): +this._currentScrollBarsCornerSkin.set_visible(!1))},refreshScrollRect:function(){var a=this.scroller.get_scrollX(),b=this.scroller.get_scrollY();if(this.get_scrollPixelSnapping()){var c=lf.getConcatenatedScaleX(this),d=lf.getConcatenatedScaleY(this);a=Math.round(a/c)*c;b=Math.round(b/d)*d}if(this._scrollMode==Bd.MASK||this._scrollMode==Bd.MASKLESS||null!=this._currentViewPortMaskSkin)d=v.__cast(this._viewPort,L),d.set_scrollRect(null),this._viewPort.set_x(this.get_paddingLeft()+this.leftViewPortOffset- +a),this._viewPort.set_y(this.get_paddingTop()+this.topViewPortOffset-b);else if(this._scrollMode==Bd.SCROLL_RECT){c=this._scrollRect1;this._currentScrollRect==c&&(c=this._scrollRect2);this._currentScrollRect=c;d=this.actualWidth-this.leftViewPortOffset-this.rightViewPortOffset-this.get_paddingLeft()-this.get_paddingRight();0>d&&(d=0);var f=this.actualHeight-this.topViewPortOffset-this.bottomViewPortOffset-this.get_paddingTop()-this.get_paddingBottom();0>f&&(f=0);c.setTo(a,b,d,f);d=v.__cast(this._viewPort, +L);d.set_scrollRect(c)}else throw new ab("Unknown scrollMode: "+p.string(this._scrollMode));},revealScrollBarX:function(){null!=this.scrollBarX&&this.scroller.get_minScrollX()!=this.scroller.get_maxScrollX()&&(null!=this._hideScrollBarX&&Ma.stop(this._hideScrollBarX),this.scrollBarX.set_alpha(1),this._scrollBarXRevealTime=va.getTimer())},revealScrollBarY:function(){null!=this.scrollBarY&&this.scroller.get_minScrollY()!=this.scroller.get_maxScrollY()&&(null!=this._hideScrollBarY&&Ma.stop(this._hideScrollBarY), +this.scrollBarY.set_alpha(1),this._scrollBarYRevealTime=va.getTimer())},hideScrollBarX:function(){var a=this;if(null!=this.scrollBarX&&null==this._hideScrollBarX&&0!=this.scrollBarX.get_alpha())if(0==this.get_hideScrollBarDuration())this.scrollBarX.set_alpha(0);else{this._hideScrollBarX=Ma.update(function(b){return a.scrollBarX.set_alpha(b)},this.get_hideScrollBarDuration(),[this.scrollBarX.get_alpha()],[0],!0);this._hideScrollBarX.ease(this.get_hideScrollBarEase());this._hideScrollBarX.autoVisible(!1); +var b=(va.getTimer()-this._scrollBarXRevealTime)/1E3;b=b&&(b=1);var c=this._scrollStepY;0>=c&&(c=1);var d=this.get_scrollX(),f=this.get_scrollY();switch(a.keyCode){case 33:f=this.get_scrollY()-this._viewPort.get_visibleHeight();break;case 34:f=this.get_scrollY()+this._viewPort.get_visibleHeight(); +break;case 35:f=this.get_maxScrollY();break;case 36:f=this.get_minScrollY();break;case 37:d=this.get_scrollX()-b;break;case 38:f=this.get_scrollY()-c;break;case 39:d=this.get_scrollX()+b;break;case 40:f=this.get_scrollY()+c;break;default:return}fthis.get_maxScrollY()&&(f=this.get_maxScrollY());dthis.get_maxScrollX()&&(d=this.get_maxScrollX());b=!1;this.get_scrollY()!=f&&this._scrollPolicyY!=Xb.OFF&&(b= +!0,this.set_scrollY(f));this.get_scrollX()!=d&&this._scrollPolicyX!=Xb.OFF&&(b=!0,this.set_scrollX(d));b&&a.preventDefault()}},baseScrollContainer_addedToStageHandler:function(a){this.setInvalid(E.SCROLL)},baseScrollContainer_removedFromStageHandler:function(a){null!=this.scroller&&this.scroller.set_target(null)},baseScrollContainer_keyDownHandler:function(a){this._enabled&&!a.isDefaultPrevented()&&(null!=this.stage&&this.stage.get_focus()instanceof oc&&1==this.stage.get_focus().get_type()||this.scrollWithKeyboard(a))}, +baseScrollContainer_scroller_scrollStartHandler:function(a){a=this.scroller.get_touchPointID();if(this.scroller.get_touchPointIsSimulated()){var b=Fc.forStage(this.stage);a=b.claimMouse(this);if(!a){this.scroller.stop();return}}else if(null!=a&&(b=Fc.forStage(this.stage),a=b.claimTouch(a,this),!a)){this.scroller.stop();return}this._viewPort.addEventListener("mouseDown",h(this,this.baseScrollContainer_viewPort_mouseDownHandler));this._viewPort.addEventListener("touchBegin",h(this,this.baseScrollContainer_viewPort_touchBeginHandler)); +this._scrollerDraggingY=this._scrollerDraggingX=!1;this.checkForRevealScrollBars();Ob.dispatch(this,"scrollStart",!1,!1,this.scroller.get_scrollX(),this.scroller.get_scrollY())},baseScrollContainer_scroller_scrollHandler:function(a){this._ignoreScrollerChanges?this._settingScrollerDimensions&&this.needsScrollMeasurement()?this.setInvalid(E.SCROLL):(this._viewPort.set_scrollX(this.get_scrollX()),this._viewPort.set_scrollY(this.get_scrollY())):(this.checkForRevealScrollBars(),this.needsScrollMeasurement()? +this.setInvalid(E.SCROLL):(this._viewPort.set_scrollX(this.get_scrollX()),this._viewPort.set_scrollY(this.get_scrollY()),this.refreshScrollRect(),this.refreshScrollBarValues()),Ob.dispatch(this,"scroll",!1,!1,this.scroller.get_scrollX(),this.scroller.get_scrollY()))},baseScrollContainer_scroller_scrollCompleteHandler:function(a){this._viewPort.removeEventListener("mouseDown",h(this,this.baseScrollContainer_viewPort_mouseDownHandler));this._viewPort.removeEventListener("touchBegin",h(this,this.baseScrollContainer_viewPort_touchBeginHandler)); +this._scrollerDraggingY=this._scrollerDraggingX=!1;this._scrollBarXHover||this.get_fixedScrollBars()||!this.get_autoHideScrollBars()||this.hideScrollBarX();this._scrollBarYHover||this.get_fixedScrollBars()||!this.get_autoHideScrollBars()||this.hideScrollBarY();Ob.dispatch(this,"scrollComplete",!1,!1,this.scroller.get_scrollX(),this.scroller.get_scrollY())},reclaimMouse:function(){if(this.scroller.get_touchPointIsSimulated()){var a=Fc.forStage(this.stage);null==a.getMouseClaim()&&a.claimMouse(this)}}, +reclaimTouch:function(a){if(!this.scroller.get_touchPointIsSimulated()&&null!=this.scroller.get_touchPointID()&&this.scroller.get_touchPointID()==a){var b=Fc.forStage(this.stage);null==b.getTouchClaim(a)&&b.claimTouch(a,this)}},baseScrollContainer_viewPort_mouseDownHandler:function(a){this.reclaimMouse()},baseScrollContainer_viewPort_touchBeginHandler:function(a){this.reclaimTouch(a.touchPointID)},scrollBarX_changeHandler:function(a){this._ignoreScrollBarXChange||this.scroller.set_scrollX(this.scrollBarX.get_value())}, +scrollBarY_changeHandler:function(a){this._ignoreScrollBarYChange||this.scroller.set_scrollY(this.scrollBarY.get_value())},scrollBarX_rollOverHandler:function(a){this._scrollBarXHover=!0;this.revealScrollBarX()},scrollBarX_rollOutHandler:function(a){this._scrollBarXHover&&(this._scrollBarXHover=!1,this._scrollerDraggingX||this.get_fixedScrollBars()||!this.get_autoHideScrollBars()||this.hideScrollBarX())},scrollBarY_rollOverHandler:function(a){this._scrollBarYHover=!0;this.revealScrollBarY()},scrollBarY_rollOutHandler:function(a){this._scrollBarYHover&& +(this._scrollBarYHover=!1,this._scrollerDraggingY||this.get_fixedScrollBars()||!this.get_autoHideScrollBars()||this.hideScrollBarY())},scrollBarX_scrollStartHandler:function(a){this.scroller.stop();this._scrollerDraggingX=!0;Ob.dispatch(this,"scrollStart",!1,!1,this.scroller.get_scrollX(),this.scroller.get_scrollY())},scrollBarX_scrollCompleteHandler:function(a){this._scrollerDraggingX=!1;this._scrollBarXHover||this.get_fixedScrollBars()||!this.get_autoHideScrollBars()||this.hideScrollBarX();Ob.dispatch(this, +"scrollComplete",!1,!1,this.scroller.get_scrollX(),this.scroller.get_scrollY())},scrollBarY_scrollStartHandler:function(a){this.scroller.stop();this._scrollerDraggingY=!0;Ob.dispatch(this,"scrollStart",!1,!1,this.scroller.get_scrollX(),this.scroller.get_scrollY())},scrollBarY_scrollCompleteHandler:function(a){this._scrollerDraggingY=!1;this._scrollBarYHover||this.get_fixedScrollBars()||!this.get_autoHideScrollBars()||this.hideScrollBarY();Ob.dispatch(this,"scrollComplete",!1,!1,this.scroller.get_scrollX(), +this.scroller.get_scrollY())},hideScrollBarX_onComplete:function(){this._hideScrollBarX=null},hideScrollBarY_onComplete:function(){this._hideScrollBarY=null},viewPort_resizeHandler:function(a){this._ignoreViewPortResizing||this.setInvalid(E.SIZE)},get_paddingTop:function(){return this.__paddingTop},set_paddingTop:function(a){if(!this.setStyle("paddingTop")||this.__paddingTop==a)return this.__paddingTop;this._previousClearStyle=h(this,this.clearStyle_paddingTop);this.__paddingTop=a;this.setInvalid(E.STYLES); +return this.__paddingTop},clearStyle_paddingTop:function(){this.set_paddingTop(0);return this.get_paddingTop()},get_paddingRight:function(){return this.__paddingRight},set_paddingRight:function(a){if(!this.setStyle("paddingRight")||this.__paddingRight==a)return this.__paddingRight;this._previousClearStyle=h(this,this.clearStyle_paddingRight);this.__paddingRight=a;this.setInvalid(E.STYLES);return this.__paddingRight},clearStyle_paddingRight:function(){this.set_paddingRight(0);return this.get_paddingRight()}, +get_paddingBottom:function(){return this.__paddingBottom},set_paddingBottom:function(a){if(!this.setStyle("paddingBottom")||this.__paddingBottom==a)return this.__paddingBottom;this._previousClearStyle=h(this,this.clearStyle_paddingBottom);this.__paddingBottom=a;this.setInvalid(E.STYLES);return this.__paddingBottom},clearStyle_paddingBottom:function(){this.set_paddingBottom(0);return this.get_paddingBottom()},get_paddingLeft:function(){return this.__paddingLeft},set_paddingLeft:function(a){if(!this.setStyle("paddingLeft")|| +this.__paddingLeft==a)return this.__paddingLeft;this._previousClearStyle=h(this,this.clearStyle_paddingLeft);this.__paddingLeft=a;this.setInvalid(E.STYLES);return this.__paddingLeft},clearStyle_paddingLeft:function(){this.set_paddingLeft(0);return this.get_paddingLeft()},get_backgroundSkin:function(){return this.__backgroundSkin},set_backgroundSkin:function(a){if(!this.setStyle("backgroundSkin")||this.__backgroundSkin==a)return this.__backgroundSkin;this._previousClearStyle=h(this,this.clearStyle_backgroundSkin); +this.__backgroundSkin=a;this.setInvalid(E.STYLES);return this.__backgroundSkin},clearStyle_backgroundSkin:function(){this.set_backgroundSkin(null);return this.get_backgroundSkin()},get_disabledBackgroundSkin:function(){return this.__disabledBackgroundSkin},get_maskSkin:function(){return this.__maskSkin},get_viewPortMaskSkin:function(){return this.__viewPortMaskSkin},get_scrollBarsCornerSkin:function(){return this.__scrollBarsCornerSkin},set_scrollBarsCornerSkin:function(a){if(!this.setStyle("scrollBarsCornerSkin")|| +this.__scrollBarsCornerSkin==a)return this.__scrollBarsCornerSkin;this._previousClearStyle=h(this,this.clearStyle_scrollBarsCornerSkin);this.__scrollBarsCornerSkin=a;this.setInvalid(E.STYLES);return this.__scrollBarsCornerSkin},clearStyle_scrollBarsCornerSkin:function(){this.set_scrollBarsCornerSkin(null);return this.get_scrollBarsCornerSkin()},get_fixedScrollBars:function(){return this.__fixedScrollBars},set_fixedScrollBars:function(a){if(!this.setStyle("fixedScrollBars")||this.__fixedScrollBars== +a)return this.__fixedScrollBars;this._previousClearStyle=h(this,this.clearStyle_fixedScrollBars);this.__fixedScrollBars=a;this.setInvalid(E.STYLES);return this.__fixedScrollBars},clearStyle_fixedScrollBars:function(){this.set_fixedScrollBars(!1);return this.get_fixedScrollBars()},get_showScrollBars:function(){return this.__showScrollBars},get_autoHideScrollBars:function(){return this.__autoHideScrollBars},set_autoHideScrollBars:function(a){if(!this.setStyle("autoHideScrollBars")||this.__autoHideScrollBars== +a)return this.__autoHideScrollBars;this._previousClearStyle=h(this,this.clearStyle_autoHideScrollBars);this.__autoHideScrollBars=a;this.setInvalid(E.STYLES);return this.__autoHideScrollBars},clearStyle_autoHideScrollBars:function(){this.set_autoHideScrollBars(!0);return this.get_autoHideScrollBars()},get_scrollBarXPosition:function(){return this.__scrollBarXPosition},get_scrollBarYPosition:function(){return this.__scrollBarYPosition},get_showScrollBarMinimumDuration:function(){return this.__showScrollBarMinimumDuration}, +get_hideScrollBarDuration:function(){return this.__hideScrollBarDuration},get_hideScrollBarEase:function(){return this.__hideScrollBarEase},get_scrollPixelSnapping:function(){return this.__scrollPixelSnapping},__class__:Xa,__properties__:t(Y.prototype.__properties__,{get_measureViewPort:"get_measureViewPort",get_scrollPixelSnapping:"get_scrollPixelSnapping",get_hideScrollBarEase:"get_hideScrollBarEase",get_hideScrollBarDuration:"get_hideScrollBarDuration",get_showScrollBarMinimumDuration:"get_showScrollBarMinimumDuration", +get_scrollBarYPosition:"get_scrollBarYPosition",get_scrollBarXPosition:"get_scrollBarXPosition",get_scrollPolicyY:"get_scrollPolicyY",get_scrollPolicyX:"get_scrollPolicyX",get_maxScrollY:"get_maxScrollY",get_maxScrollX:"get_maxScrollX",get_minScrollY:"get_minScrollY",get_minScrollX:"get_minScrollX",set_scrollY:"set_scrollY",get_scrollY:"get_scrollY",set_scrollX:"set_scrollX",get_scrollX:"get_scrollX",set_autoHideScrollBars:"set_autoHideScrollBars",get_autoHideScrollBars:"get_autoHideScrollBars",get_showScrollBars:"get_showScrollBars", +set_fixedScrollBars:"set_fixedScrollBars",get_fixedScrollBars:"get_fixedScrollBars",set_scrollBarsCornerSkin:"set_scrollBarsCornerSkin",get_scrollBarsCornerSkin:"get_scrollBarsCornerSkin",get_viewPortMaskSkin:"get_viewPortMaskSkin",get_maskSkin:"get_maskSkin",get_disabledBackgroundSkin:"get_disabledBackgroundSkin",set_backgroundSkin:"set_backgroundSkin",get_backgroundSkin:"get_backgroundSkin",set_paddingLeft:"set_paddingLeft",get_paddingLeft:"get_paddingLeft",set_paddingBottom:"set_paddingBottom", +get_paddingBottom:"get_paddingBottom",set_paddingRight:"set_paddingRight",get_paddingRight:"get_paddingRight",set_paddingTop:"set_paddingTop",get_paddingTop:"get_paddingTop",set_viewPort:"set_viewPort",get_viewPort:"get_viewPort"})});var Qd=function(){};g["feathers.dragDrop.IDropTarget"]=Qd;Qd.__name__="feathers.dragDrop.IDropTarget";Qd.__isInterface__=!0;Qd.__interfaces__=[J];var cd=function(){};g["feathers.dragDrop.IDragSource"]=cd;cd.__name__="feathers.dragDrop.IDragSource";cd.__isInterface__= +!0;cd.__interfaces__=[J];var vc=function(){};g["feathers.core.IFocusContainer"]=vc;vc.__name__="feathers.core.IFocusContainer";vc.__isInterface__=!0;vc.__interfaces__=[Kb];vc.prototype={__class__:vc,__properties__:{get_childFocusEnabled:"get_childFocusEnabled"}};var Rd=function(){};g["feathers.core.IDataSelector"]=Rd;Rd.__name__="feathers.core.IDataSelector";Rd.__isInterface__=!0;var Gc=function(){};g["feathers.core.IIndexSelector"]=Gc;Gc.__name__="feathers.core.IIndexSelector";Gc.__isInterface__= +!0;var nd=function(a,b,c,d){null==b&&(b=-1);this.enabled=!0;this.selected=!1;this.index=-1;this.data=a;this.index=b;this.selected=!1;this.text=d};g["feathers.data.ListViewItemState"]=nd;nd.__name__="feathers.data.ListViewItemState";nd.prototype={__class__:nd};var Ya=function(a,b){this.__layout=this.__customItemRendererVariant=this.__dragDropIndicatorSkin=null;this.edgeAutoScrollDistance=8;this._dragDropLastUpdateTime=-1;this._droppedOnSelf=!1;this._dragIndex=-1;this._dragItem=null;this._dragDropLocalX= +this._dragDropLocalY=this._dragMinDistance=0;this._dragEnabled=this._dropEnabled=this._removeOnDragDropComplete=!1;this._dragFormat=Ya.DEFAULT_DRAG_FORMAT_ITEMS;this._ignoreSelectionChange=this._ignoreLayoutChanges=!1;this._pendingScrollDuration=null;this._pendingScrollIndex=-1;this._selectable=this._virtualLayout=this.pointerSelectionEnabled=!0;this._layoutItems=[];this._tempVisibleIndices=new Zf(0,0);this._visibleIndices=new Zf(0,0);this._virtualCache=[];this._unrenderedData=[];this.itemStatePool= +new Na(function(){return new nd});this.itemRendererToItemState=new Ea;this.stringDataToItemRenderer=new La;this.objectDataToItemRenderer=new Ea;this._additionalStorage=null;this._defaultStorage=new nf(null,Se.withClass(ee));this._recyclerMap=null;this._forceItemStateUpdate=!1;this._previousCustomItemRendererVariant=null;this._selectedItems=[];this._selectedIndices=[];this._selectionAnchorIndex=-1;this._allowMultipleSelection=!1;this._selectedItem=null;this._selectedIndex=-1;this._childFocusEnabled= +!0;this.initializeListViewTheme();Xa.call(this);this.set_dataProvider(a);this.set_tabEnabled(!0);this.focusRect=null;null==this.get_viewPort()&&(this.listViewPort=new $f,this.addChild(this.listViewPort),this.set_viewPort(this.listViewPort));this.addEventListener("keyDown",h(this,this.listView_keyDownHandler));null!=b&&this.addEventListener("change",b)};g["feathers.controls.ListView"]=Ya;Ya.__name__="feathers.controls.ListView";Ya.__interfaces__=[Qd,cd,vc,Rd,Gc];Ya.defaultUpdateItemRenderer=function(a, +b){v.__implements(a,Sb)&&a.set_text(b.text)};Ya.defaultResetItemRenderer=function(a,b){v.__implements(a,Sb)&&a.set_text(null)};Ya.__super__=Xa;Ya.prototype=t(Xa.prototype,{get_tabEnabled:function(){return(this._selectable||this.get_maxScrollY()!=this.get_minScrollY()||this.get_maxScrollX()!=this.get_minScrollX())&&this._enabled?this.get_rawTabEnabled():!1},get_childFocusEnabled:function(){return this._enabled?this._childFocusEnabled:!1},set_dataProvider:function(a){if(this._dataProvider==a)return this._dataProvider; +this._virtualCache.length=0;null!=this._dataProvider&&(this._dataProvider.removeEventListener("change",h(this,this.listView_dataProvider_changeHandler)),this._dataProvider.removeEventListener("addItem",h(this,this.listView_dataProvider_addItemHandler)),this._dataProvider.removeEventListener("removeItem",h(this,this.listView_dataProvider_removeItemHandler)),this._dataProvider.removeEventListener("replaceItem",h(this,this.listView_dataProvider_replaceItemHandler)),this._dataProvider.removeEventListener("removeAll", +h(this,this.listView_dataProvider_removeAllHandler)),this._dataProvider.removeEventListener("reset",h(this,this.listView_dataProvider_resetHandler)),this._dataProvider.removeEventListener("sortChange",h(this,this.listView_dataProvider_sortChangeHandler)),this._dataProvider.removeEventListener("filterChange",h(this,this.listView_dataProvider_filterChangeHandler)),this._dataProvider.removeEventListener("updateItem",h(this,this.listView_dataProvider_updateItemHandler)),this._dataProvider.removeEventListener("updateAll", +h(this,this.listView_dataProvider_updateAllHandler)));this._dataProvider=a;null!=this._dataProvider&&(this._virtualCache.length=this._dataProvider.get_length(),this._dataProvider.addEventListener("change",h(this,this.listView_dataProvider_changeHandler)),this._dataProvider.addEventListener("addItem",h(this,this.listView_dataProvider_addItemHandler)),this._dataProvider.addEventListener("removeItem",h(this,this.listView_dataProvider_removeItemHandler)),this._dataProvider.addEventListener("replaceItem", +h(this,this.listView_dataProvider_replaceItemHandler)),this._dataProvider.addEventListener("removeAll",h(this,this.listView_dataProvider_removeAllHandler)),this._dataProvider.addEventListener("reset",h(this,this.listView_dataProvider_resetHandler)),this._dataProvider.addEventListener("sortChange",h(this,this.listView_dataProvider_sortChangeHandler)),this._dataProvider.addEventListener("filterChange",h(this,this.listView_dataProvider_filterChangeHandler)),this._dataProvider.addEventListener("updateItem", +h(this,this.listView_dataProvider_updateItemHandler)),this._dataProvider.addEventListener("updateAll",h(this,this.listView_dataProvider_updateAllHandler)));this.set_scrollX(0);this.set_scrollY(0);this.set_selectedIndex(-1);this.setInvalid(E.DATA);Ca.dispatch(this,"dataChange");return this._dataProvider},get_selectedIndex:function(){return this._selectedIndex},set_selectedIndex:function(a){this._selectable&&null!=this._dataProvider||(a=-1);if(this._selectedIndex==a&&1>=this._selectedIndices.length)return this._selectedIndex; +if(-1==a)return this._selectedIndex=this._selectionAnchorIndex=-1,this._selectedItem=null,this._selectedIndices.length=0,this._selectedItems.length=0,this.setInvalid(E.SELECTION),Ca.dispatch(this,"change"),this._selectedIndex;this._selectedIndex=a;this._selectedItem=this._dataProvider.get(this._selectedIndex);this._selectedIndices.length=1;this._selectedIndices[0]=this._selectedIndex;this._selectedItems.length=1;this._selectedItems[0]=this._selectedItem;this._selectionAnchorIndex=this._selectedIndex; +this.setInvalid(E.SELECTION);Ca.dispatch(this,"change");return this._selectedIndex},get_selectedItem:function(){return this._selectedItem},set_selectedItem:function(a){if(null==a||!this._selectable||null==this._dataProvider)return this.set_selectedIndex(-1),this._selectedItem;var b=this._dataProvider.indexOf(a);if(-1==b)return this.set_selectedIndex(-1),this._selectedItem;if(this._selectedItem==a&&this._selectedIndex==b&&1==this._selectedIndices.length)return this._selectedItem;this._selectedIndex= +b;this._selectedItem=a;this._selectedIndices.length=1;this._selectedIndices[0]=this._selectedIndex;this._selectedItems.length=1;this._selectedItems[0]=this._selectedItem;this._selectionAnchorIndex=this._selectedIndex;this.setInvalid(E.SELECTION);Ca.dispatch(this,"change");return this._selectedItem},set_selectedIndices:function(a){if(null==a||0==a.length||!this._selectable||null==this._dataProvider)return this.set_selectedIndex(-1),this._selectedIndices;if(this._selectedIndices==a)return this._selectedIndices; +!this._allowMultipleSelection&&1b?-1:1;while(c!=b);b!=a&&f.unshift(b)}this.set_selectedIndices(f);this._selectionAnchorIndex=a}else-1==f?(c=this._selectedItems.slice(),c.unshift(a)):(c=this._selectedItems.slice(),c.splice(f,1)),this.set_selectedItems(c),this._selectionAnchorIndex=b;else this.set_selectedItem(a);-1!=b&&this.scrollToIndex(b)}else this.set_selectedItem(null)}, +handlePendingScroll:function(){if(-1!=this._pendingScrollIndex){var a=this._pendingScrollIndex,b=null!=this._pendingScrollDuration?this._pendingScrollDuration:0;this._pendingScrollIndex=-1;this._pendingScrollDuration=null;if(null!=this._dataProvider&&0!=this._dataProvider.get_length()){var c=this.get_scrollX(),d=this.get_scrollY();if(v.__implements(this.get_layout(),dd))d=this.get_layout().getNearestScrollPositionForIndex(a,this._dataProvider.get_length(),this.get_viewPort().get_visibleWidth(),this.get_viewPort().get_visibleHeight()), +c=d.x,d=d.y;else{a=this._dataProvider.get(a);a="string"==typeof a?this.stringDataToItemRenderer.h[a]:this.objectDataToItemRenderer.h[a.__id__];if(null==a)return;var f=a.get_x(),k=f+a.get_width()-this.get_viewPort().get_visibleWidth();cf&&(c=f);f=a.get_y();a=f+a.get_height()-this.get_viewPort().get_visibleHeight();df&&(d=f)}0==b?(this.scroller.stop(),this.scroller.set_scrollX(c),this.scroller.set_scrollY(d)):this.scroller.throwTo(c,d,b)}}},refreshDragDropIndexIndicator:function(){if(null!= +this.get_dragDropIndicatorSkin()&&v.__implements(this.get_layout(),ye)){v.__implements(this.get_dragDropIndicatorSkin(),ia)&&this.get_dragDropIndicatorSkin().initializeNow();null==this._dragDropIndicatorSkinMeasurements?this._dragDropIndicatorSkinMeasurements=new Wb(this.get_dragDropIndicatorSkin()):this._dragDropIndicatorSkinMeasurements.save(this.get_dragDropIndicatorSkin());var a=this.get_scrollX()+this._dragDropLocalX-this.leftViewPortOffset,b=this.get_scrollY()+this._dragDropLocalY-this.topViewPortOffset, +c=this.get_layout(),d=c.getDragDropIndex(this._layoutItems,a,b,this._viewPort.get_visibleWidth(),this._viewPort.get_visibleHeight());a=c.getDragDropRegion(this._layoutItems,d,a,b,this._viewPort.get_visibleWidth(),this._viewPort.get_visibleHeight());this.get_dragDropIndicatorSkin().set_x(a.x-this.get_scrollX()+this.leftViewPortOffset);this.get_dragDropIndicatorSkin().set_y(a.y-this.get_scrollY()+this.topViewPortOffset);0==a.width?this.get_dragDropIndicatorSkin().set_height(a.height):this.get_dragDropIndicatorSkin().set_width(a.width); +this.addChild(this.get_dragDropIndicatorSkin())}},listView_itemRenderer_touchTapHandler:function(a){if(this._enabled&&!a.isPrimaryTouchPoint){var b=v.__cast(a.currentTarget,L);b=this.itemRendererToItemState.h[b.__id__];yd.dispatch(this,"itemTrigger",b);this._selectable&&this.pointerSelectionEnabled&&this.handleSelectionChange(b.data,b.index,a.ctrlKey,a.shiftKey)}},listView_itemRenderer_clickHandler:function(a){if(this._enabled){var b=v.__cast(a.currentTarget,L);b=this.itemRendererToItemState.h[b.__id__]; +yd.dispatch(this,"itemTrigger",b);this._selectable&&this.pointerSelectionEnabled&&this.handleSelectionChange(b.data,b.index,a.ctrlKey,a.shiftKey)}},listView_itemRenderer_triggerHandler:function(a){if(this._enabled){var b=v.__cast(a.currentTarget,L);b=this.itemRendererToItemState.h[b.__id__];yd.dispatch(this,"itemTrigger",b);this._selectable&&this.handleSelectionChange(b.data,b.index,a.ctrlKey,a.shiftKey)}},listView_itemRenderer_resizeHandler:function(a){this._validating||this.setInvalid(E.LAYOUT)}, +listView_itemRenderer_changeHandler:function(a){if(!this._ignoreSelectionChange){var b=v.__cast(a.currentTarget,L);a=v.__cast(b,Mc);b=this.itemRendererToItemState.h[b.__id__];a.get_selected()!=b.selected&&this.setInvalid(E.SELECTION)}},listView_itemRenderer_mouseDownHandler:function(a){if(this._enabled&&this._dragEnabled&&null!=this.stage){a=v.__cast(a.currentTarget,L);var b=this.itemRendererToItemState.h[a.__id__];null!=b&&(this._dragItemRenderer=a,this._dragItem=b.data,this._dragIndex=b.index,this._dragDropLocalX= +this.get_mouseX(),this._dragDropLocalY=this.get_mouseY(),this._dragMinDistance=6,this.stage.addEventListener("mouseMove",h(this,this.listView_stage_pressAndMove_mouseMoveHandler),!1,0,!0),this.stage.addEventListener("mouseUp",h(this,this.listView_stage_pressAndMove_mouseUpHandler),!1,0,!0))}},listView_stage_pressAndMove_mouseMoveHandler:function(a){var b=this.get_mouseX()-this._dragDropLocalX,c=this.get_mouseY()-this._dragDropLocalY;if(b>this._dragMinDistance||c>this._dragMinDistance){a=v.__cast(a.currentTarget, +Nc);a.removeEventListener("mouseMove",h(this,this.listView_stage_pressAndMove_mouseMoveHandler));a.removeEventListener("mouseUp",h(this,this.listView_stage_pressAndMove_mouseUpHandler));a=[];b=this._allowMultipleSelection?this._selectedIndices.slice():[];-1==b.indexOf(this._dragIndex)&&b.push(this._dragIndex);b.sort(function(a,b){return ab?1:0});for(c=0;cthis.get_minScrollY()&&(b=this.get_scrollY()this._viewPort.get_visibleHeight()- +this.edgeAutoScrollDistance?b*(1-(this._viewPort.get_visibleHeight()-c)/this.edgeAutoScrollDistance):this.get_scrollY()>this.get_minScrollY()&&cthis.get_maxScrollY()?c=this.get_maxScrollY():cthis.get_minScrollX()&&(b=this.get_scrollX()this._viewPort.get_visibleWidth()-this.edgeAutoScrollDistance? +b*(1-(this._viewPort.get_visibleWidth()-a)/this.edgeAutoScrollDistance):this.get_scrollX()>this.get_minScrollX()&&athis.get_maxScrollX()?a=this.get_maxScrollX():a=a.index&& +(this._selectedIndices[f]=k+1,b=!0)}b&&(this._selectedIndex=this._selectedIndices[0],Ca.dispatch(this,"change"))}},listView_dataProvider_removeItemHandler:function(a){null!=this._virtualCache&&aa.remove(this._virtualCache,a.index);if(-1!=this.get_selectedIndex()){for(var b=!1,c=this._selectedIndices.length-1;0<=c;){var d=this._selectedIndices[c];d==a.index?(this._selectedIndices.splice(c,1),this._selectedItems.splice(c,1),b=!0):d>a.index&&(this._selectedIndices[c]=d-1,b=!0);--c}b&&(0b?b=0:b>=this._dataProvider.get_length()&&(b=this._dataProvider.get_length()-1);var c=this._selectedIndex!=b;if(!c&&-1!=b)if(null==this.itemToItemRenderer(this._dataProvider.get(b)))c=!0;else if(v.__implements(this.get_layout(),dd)){var d=this.get_layout().getNearestScrollPositionForIndex(b,this._dataProvider.get_length(), +this.get_viewPort().get_visibleWidth(),this.get_viewPort().get_visibleHeight());if(this.get_scrollX()!=d.x||this.get_scrollY()!=d.y)c=!0}c&&(a.preventDefault(),this.set_selectedIndex(b),-1!=this._selectedIndex&&this.scrollToIndex(this._selectedIndex),null!=this._focusManager?this._focusManager.set_focus(this):null!=this.stage&&this.stage.set_focus(this))}},baseScrollContainer_keyDownHandler:function(a){this._selectable?this._enabled&&!a.isDefaultPrevented()&&(null!=this.stage&&this.stage.get_focus()instanceof +oc&&1==this.stage.get_focus().get_type()||this.navigateWithKeyboard(a)):Xa.prototype.baseScrollContainer_keyDownHandler.call(this,a)},listView_keyDownHandler:function(a){if(this._enabled&&!a.isDefaultPrevented()&&(32==a.keyCode||13==a.keyCode)&&null!=this._selectedItem){var b="string"==typeof this._selectedItem?this.stringDataToItemRenderer.h[this._selectedItem]:this.objectDataToItemRenderer.h[this._selectedItem.__id__];a=null;null!=b&&(a=this.itemRendererToItemState.h[b.__id__]);b=!1;null==a&&(b= +!0,a=this.itemStatePool.get());this.populateCurrentItemState(this._selectedItem,this._selectedIndex,a,!0);yd.dispatch(this,"itemTrigger",a);b&&this.itemStatePool.release(a)}},get_styleContext:function(){return Ya},get_layout:function(){return this.__layout},set_layout:function(a){if(!this.setStyle("layout")||this.__layout==a)return this.__layout;this._previousClearStyle=h(this,this.clearStyle_layout);this.__layout=a;this.setInvalid(E.STYLES);return this.__layout},clearStyle_layout:function(){this.set_layout(null); +return this.get_layout()},get_customItemRendererVariant:function(){return this.__customItemRendererVariant},get_dragDropIndicatorSkin:function(){return this.__dragDropIndicatorSkin},set_dragDropIndicatorSkin:function(a){if(!this.setStyle("dragDropIndicatorSkin")||this.__dragDropIndicatorSkin==a)return this.__dragDropIndicatorSkin;this._previousClearStyle=h(this,this.clearStyle_dragDropIndicatorSkin);this.__dragDropIndicatorSkin=a;this.setInvalid(E.STYLES);return this.__dragDropIndicatorSkin},clearStyle_dragDropIndicatorSkin:function(){this.set_dragDropIndicatorSkin(null); +return this.get_dragDropIndicatorSkin()},__class__:Ya,__properties__:t(Xa.prototype.__properties__,{set_removeOnDragDropComplete:"set_removeOnDragDropComplete",set_dropEnabled:"set_dropEnabled",set_dragEnabled:"set_dragEnabled",set_dragDropIndicatorSkin:"set_dragDropIndicatorSkin",get_dragDropIndicatorSkin:"get_dragDropIndicatorSkin",set_itemRendererRecycler:"set_itemRendererRecycler",get_customItemRendererVariant:"get_customItemRendererVariant",set_layout:"set_layout",get_layout:"get_layout",set_selectedItems:"set_selectedItems", +set_selectedIndices:"set_selectedIndices",set_selectedItem:"set_selectedItem",get_selectedItem:"get_selectedItem",set_selectedIndex:"set_selectedIndex",get_selectedIndex:"get_selectedIndex",set_dataProvider:"set_dataProvider",get_childFocusEnabled:"get_childFocusEnabled"})});var nf=function(a,b){this.inactiveItemRenderers=[];this.activeItemRenderers=[];this.id=a;this.itemRendererRecycler=b};g["feathers.controls._ListView.ItemRendererStorage"]=nf;nf.__name__="feathers.controls._ListView.ItemRendererStorage"; +nf.prototype={__class__:nf};var bc=function(){this.__layout=null;this._manageChildVisibility=!1;this._autoSizeMode=ue.CONTENT;this._childFocusEnabled=!0;this.items=[];this._displayListBypassEnabled=!0;this._ignoreRemovedEvent=this._ignoreChildChanges=this._ignoreChangesButSetFlags=!1;this.initializeScrollContainerTheme();Xa.call(this);null==this.get_viewPort()&&(this.layoutViewPort=new cg,this.addRawChild(this.layoutViewPort),this.set_viewPort(this.layoutViewPort));this.addEventListener("addedToStage", +h(this,this.scrollContainer_addedToStageHandler))};g["feathers.controls.ScrollContainer"]=bc;bc.__name__="feathers.controls.ScrollContainer";bc.__interfaces__=[vc];bc.__super__=Xa;bc.prototype=t(Xa.prototype,{get_childFocusEnabled:function(){return this._enabled?this._childFocusEnabled:!1},get_numChildren:function(){return this._displayListBypassEnabled?this.layoutViewPort.get_numChildren():Xa.prototype.get_numChildren.call(this)},addChild:function(a){return this._displayListBypassEnabled?this.addChildAt(a, +this.layoutViewPort.get_numChildren()):Xa.prototype.addChild.call(this,a)},addChildAt:function(a,b){if(!this._displayListBypassEnabled)return Xa.prototype.addChildAt.call(this,a,b);var c=this.items.indexOf(a);if(c==b)return a;0<=c&&aa.remove(this.items,a);this.items.splice(b,0,a);b=this.layoutViewPort.addChildAt(a,b);a.addEventListener("resize",h(this,this.scrollContainer_child_resizeHandler));v.__implements(a,A)&&a.addEventListener("layoutDataChange",h(this,this.scrollContainer_child_layoutDataChangeHandler), +!1,0,!0);a.addEventListener("removed",h(this,this.scrollContainer_child_removedHandler));this._ignoreChangesButSetFlags?this.setInvalidationFlag(E.LAYOUT):this.setInvalid(E.LAYOUT);return b},removeChild:function(a){return this.removeChildInternal(a,!0)},removeChildInternal:function(a,b){if(!this._displayListBypassEnabled)return Xa.prototype.removeChild.call(this,a);if(null==a||a.parent!=this.layoutViewPort)return a;aa.remove(this.items,a);var c=a;b&&(b=this._ignoreRemovedEvent,this._ignoreRemovedEvent= +!0,c=this.layoutViewPort.removeChild(a),this._ignoreRemovedEvent=b);a.removeEventListener("resize",h(this,this.scrollContainer_child_resizeHandler));v.__implements(a,A)&&a.removeEventListener("layoutDataChange",h(this,this.scrollContainer_child_layoutDataChangeHandler));a.removeEventListener("removed",h(this,this.scrollContainer_child_removedHandler));this._ignoreChangesButSetFlags?this.setInvalidationFlag(E.LAYOUT):this.setInvalid(E.LAYOUT);return c},removeChildAt:function(a){return this._displayListBypassEnabled? +this.removeChild(this.layoutViewPort.getChildAt(a)):Xa.prototype.removeChildAt.call(this,a)},getChildAt:function(a){return this._displayListBypassEnabled?this.layoutViewPort.getChildAt(a):Xa.prototype.removeChildAt.call(this,a)},getChildIndex:function(a){return this._displayListBypassEnabled?this.items.indexOf(a):Xa.prototype.getChildIndex.call(this,a)},setChildIndex:function(a,b){this._displayListBypassEnabled?this.getChildIndex(a)!=b&&(aa.remove(this.items,a),this.items.splice(b,0,a),this._ignoreChangesButSetFlags? +this.setInvalidationFlag(E.LAYOUT):this.setInvalid(E.LAYOUT)):Xa.prototype.setChildIndex.call(this,a,b)},getChildByName:function(a){if(!this._displayListBypassEnabled)return Xa.prototype.getChildByName.call(this,a);for(var b=0,c=this.items;bb?b=0:b>=this._dataProvider.get_length()&&(b=this._dataProvider.get_length()-1);a.preventDefault();this.set_selectedIndex(b)}},popUpListView_button_keyDownHandler:function(a){this._enabled&&(this.get_open()||4==a.keyLocation||this.navigateWithKeyboard(a),32==a.keyCode|| +13==a.keyCode)&&(this.get_open()?(a.preventDefault(),this.closeListView()):(a.preventDefault(),this.openListView()))},popUpListView_button_mouseDownHandler:function(a){this._enabled&&(this.get_open()?this.closeListView():this.openListView())},popUpListView_button_touchBeginHandler:function(a){this._enabled&&(a.isPrimaryTouchPoint||(this.get_open()?this.closeListView():this.openListView()))},popUpListView_listView_itemTriggerHandler:function(a){this.dispatchEvent(a);null!=this.get_popUpAdapter()&& +this.get_popUpAdapter().get_persistent()||this.closeListView()},popUpListView_listView_changeHandler:function(a){this._ignoreListViewChange||(this._selectedIndex=this.listView.get_selectedIndex(),this._selectedItem=this.listView.get_selectedItem(),this.setInvalid(E.SELECTION),Ca.dispatch(this,"change"))},popUpListView_listView_removedFromStageHandler:function(a){this.button.removeEventListener("focusOut",h(this,this.popUpListView_button_focusOutHandler));this.listView.removeEventListener("removedFromStage", +h(this,this.popUpListView_listView_removedFromStageHandler));this.listView.removeEventListener("focusOut",h(this,this.popUpListView_listView_focusOutHandler));this.listView.removeEventListener("keyFocusChange",h(this,this.popUpListView_listView_keyFocusChangeHandler));this.listView.removeEventListener("mouseFocusChange",h(this,this.popUpListView_listView_mouseFocusChangeHandler));this.stage.removeEventListener("mouseDown",h(this,this.popUpListView_stage_mouseDownHandler));this.stage.removeEventListener("touchBegin", +h(this,this.popUpListView_stage_touchBeginHandler))},popUpListView_listView_mouseFocusChangeHandler:function(a){null!=this.listView.get_focusManager()||a.isDefaultPrevented()||Uc.__neq(a.target,this.listView)||null!=a.relatedObject&&!this.listView.contains(a.relatedObject)||a.preventDefault()},popUpListView_listView_keyFocusChangeHandler:function(a){null!=this.listView.get_focusManager()||a.isDefaultPrevented()||Uc.__neq(a.target,this.listView)||(a.preventDefault(),null!=this.stage&&this.stage.set_focus(this.button))}, +popUpListView_listView_focusOutHandler:function(a){(null==a.relatedObject||a.relatedObject!=this.listView&&!this.listView.contains(a.relatedObject))&&this.closeListView()},popUpListView_focusInHandler:function(a){null!=this.stage&&this.stage.get_focus()!=this.button&&(a.stopImmediatePropagation(),this.stage.set_focus(this.button))},popUpListView_button_focusOutHandler:function(a){(null==a.relatedObject||a.relatedObject!=this.listView&&!this.listView.contains(a.relatedObject))&&this.closeListView()}, +popUpListView_removedFromStageHandler:function(a){this.closeListView()},popUpListView_listView_keyUpHandler:function(a){if(this._enabled)switch(a.keyCode){case 27:if(a.isDefaultPrevented())break;if(!this.get_open())break;a.preventDefault();this.closeListView();break;case 1073742094:!a.isDefaultPrevented()&&this.get_open()&&(a.preventDefault(),this.closeListView())}},popUpListView_stage_mouseDownHandler:function(a){this.button.hitTestPoint(a.stageX,a.stageY)||this.listView.hitTestPoint(a.stageX,a.stageY)|| +this.closeListView()},popUpListView_stage_touchBeginHandler:function(a){a.isPrimaryTouchPoint||this.button.hitTestPoint(a.stageX,a.stageY)||this.listView.hitTestPoint(a.stageX,a.stageY)||this.closeListView()},popUpListView_popUpAdapter_openHandler:function(a){Ca.dispatch(this,"open")},popUpListView_popUpAdapter_closeHandler:function(a){Ca.dispatch(this,"close")},popUpListView_dataProvider_removeAllHandler:function(a){this.set_selectedIndex(-1)},get_popUpAdapter:function(){return this.__popUpAdapter}, +set_popUpAdapter:function(a){if(!this.setStyle("popUpAdapter")||this.__popUpAdapter==a)return this.__popUpAdapter;this._previousClearStyle=h(this,this.clearStyle_popUpAdapter);this.__popUpAdapter=a;this.setInvalid(E.STYLES);return this.__popUpAdapter},clearStyle_popUpAdapter:function(){this.set_popUpAdapter(null);return this.get_popUpAdapter()},get_customButtonVariant:function(){return this.__customButtonVariant},get_customListViewVariant:function(){return this.__customListViewVariant},get_styleContext:function(){return Pb}, +__class__:Pb,__properties__:t(Y.prototype.__properties__,{get_open:"get_open",get_customListViewVariant:"get_customListViewVariant",get_customButtonVariant:"get_customButtonVariant",set_popUpAdapter:"set_popUpAdapter",get_popUpAdapter:"get_popUpAdapter",set_selectedIndex:"set_selectedIndex",set_dataProvider:"set_dataProvider",get_stageFocusTarget:"get_stageFocusTarget"})});var Bd=D["feathers.controls.ScrollMode"]={__ename__:!0,__constructs__:null,SCROLL_RECT:{_hx_name:"SCROLL_RECT",_hx_index:0,__enum__:"feathers.controls.ScrollMode", +toString:r},MASK:{_hx_name:"MASK",_hx_index:1,__enum__:"feathers.controls.ScrollMode",toString:r},MASKLESS:{_hx_name:"MASKLESS",_hx_index:2,__enum__:"feathers.controls.ScrollMode",toString:r}};Bd.__constructs__=[Bd.SCROLL_RECT,Bd.MASK,Bd.MASKLESS];var Xb=D["feathers.controls.ScrollPolicy"]={__ename__:!0,__constructs__:null,ON:{_hx_name:"ON",_hx_index:0,__enum__:"feathers.controls.ScrollPolicy",toString:r},OFF:{_hx_name:"OFF",_hx_index:1,__enum__:"feathers.controls.ScrollPolicy",toString:r},AUTO:{_hx_name:"AUTO", +_hx_index:2,__enum__:"feathers.controls.ScrollPolicy",toString:r}};Xb.__constructs__=[Xb.ON,Xb.OFF,Xb.AUTO];var Ec=function(a){null==a&&(a="");this.__wordWrap=!1;this.__disabledTextFormat=null;this.__embedFonts=!1;this._htmlText=this.__textFormat=this.__styleSheet=null;this.initializeTextCalloutTheme();ub.call(this);this.set_text(a)};g["feathers.controls.TextCallout"]=Ec;Ec.__name__="feathers.controls.TextCallout";Ec.__interfaces__=[kd,Sb];Ec.show=function(a,b,c,d){null==d&&(d=!0);a=new Ec(a);return v.__cast(ub.showCallout(a, +b,c,d),Ec)};Ec.__super__=ub;Ec.prototype=t(ub.prototype,{set_text:function(a){if(this._text==a)return this._text;this._text=a;this.setInvalid(E.DATA);return this._text},initializeTextCalloutTheme:function(){ij.initialize()},initialize:function(){ub.prototype.initialize.call(this);null==this.label&&(this.label=new ra,this.addChild(this.label),this.set_content(this.label))},update:function(){var a=this.isInvalid(E.DATA),b=this.isInvalid(E.STATE),c=this.isInvalid(E.STYLES);(c||b)&&this.refreshTextStyles(); +(a||c||b)&&this.refreshText();ub.prototype.update.call(this)},refreshTextStyles:function(){this.label.set_wordWrap(this.get_wordWrap());this.label.set_textFormat(this.get_textFormat());this.label.set_disabledTextFormat(this.get_disabledTextFormat());this.label.set_embedFonts(this.get_embedFonts());this.label.set_styleSheet(this.get_styleSheet())},refreshText:function(){this.label.set_text(this._text);this.label.set_htmlText(this._htmlText)},get_styleContext:function(){return Ec},get_textFormat:function(){return this.__textFormat}, +set_textFormat:function(a){if(!this.setStyle("textFormat")||this.__textFormat==a)return this.__textFormat;this._previousClearStyle=h(this,this.clearStyle_textFormat);this.__textFormat=a;this.setInvalid(E.STYLES);return this.__textFormat},clearStyle_textFormat:function(){this.set_textFormat(null);return this.get_textFormat()},get_styleSheet:function(){return this.__styleSheet},get_embedFonts:function(){return this.__embedFonts},get_disabledTextFormat:function(){return this.__disabledTextFormat},set_disabledTextFormat:function(a){if(!this.setStyle("disabledTextFormat")|| +this.__disabledTextFormat==a)return this.__disabledTextFormat;this._previousClearStyle=h(this,this.clearStyle_disabledTextFormat);this.__disabledTextFormat=a;this.setInvalid(E.STYLES);return this.__disabledTextFormat},clearStyle_disabledTextFormat:function(){this.set_disabledTextFormat(null);return this.get_disabledTextFormat()},get_wordWrap:function(){return this.__wordWrap},__class__:Ec,__properties__:t(ub.prototype.__properties__,{get_wordWrap:"get_wordWrap",set_disabledTextFormat:"set_disabledTextFormat", +get_disabledTextFormat:"get_disabledTextFormat",get_embedFonts:"get_embedFonts",get_styleSheet:"get_styleSheet",set_textFormat:"set_textFormat",get_textFormat:"get_textFormat",set_text:"set_text"})});var Qb=function(a,b,c){null==b&&(b=!1);this.__showText=!0;this.__iconOffsetX=this.__iconOffsetY=this.__textOffsetX=this.__textOffsetY=0;this.__verticalAlign=wb.MIDDLE;this.__horizontalAlign=Eb.CENTER;this.__gap=this.__minGap=this.__paddingTop=this.__paddingRight=this.__paddingBottom=this.__paddingLeft= +0;this.__iconPosition=R.LEFT;this.__disabledTextFormat=this.__selectedTextFormat=null;this.__embedFonts=this.__wordWrap=!1;this.__icon=this.__disabledIcon=this.__selectedIcon=this.__textFormat=this.__styleSheet=null;this._stateToTextFormat=new Kc;this._ignoreIconResizes=!1;this._iconMeasurements=this._currentIcon=null;this._stateToIcon=new Kc;this._htmlText=null;this._updatedTextStyles=!1;this._previousText=this._previousHTMLText=this._previousTextFormat=this._previousSimpleTextFormat=null;this.initializeToggleButtonTheme(); +bd.call(this,c);this.set_text(a);this.set_selected(b);this.set_tabEnabled(!0);this.set_tabChildren(!1);this.addEventListener("keyDown",h(this,this.toggleButton_keyDownHandler));this.addEventListener("focusIn",h(this,this.toggleButton_focusInHandler));this.addEventListener("focusOut",h(this,this.toggleButton_focusOutHandler))};g["feathers.controls.ToggleButton"]=Qb;Qb.__name__="feathers.controls.ToggleButton";Qb.__interfaces__=[Kb,kd,Sb];Qb.__super__=bd;Qb.prototype=t(bd.prototype,{set_text:function(a){if(this._text== +a)return this._text;this._text=a;this.setInvalid(E.DATA);return this._text},initializeToggleButtonTheme:function(){jj.initialize()},initialize:function(){bd.prototype.initialize.call(this);null==this.textField&&(this.textField=new oc,this.textField.set_selectable(!1),this.textField.set_multiline(!0),this.addChild(this.textField))},commitChanges:function(){bd.prototype.commitChanges.call(this);var a=this.isInvalid(E.DATA),b=this.isInvalid(E.SIZE),c=this.isInvalid(E.STATE),d=this.isInvalid(E.STYLES); +this._updatedTextStyles=!1;(d||c)&&this.refreshIcon();(d||c)&&this.refreshTextStyles();(a||d||c||b)&&this.refreshText(b)},measure:function(){var a=null==this.get_explicitWidth(),b=null==this.get_explicitHeight(),c=null==this.get_explicitMinWidth(),d=null==this.get_explicitMinHeight(),f=null==this.get_explicitMaxWidth(),k=null==this.get_explicitMaxHeight();if(!(a||b||c||d||f||k))return!1;var u=this.get_showText()&&null!=this._text,K=this.get_showText()&&null!=this._htmlText&&0a&&(a=0);return a},measureContentWidth:function(){var a=this.get_gap();a==1/0&&(a=this.get_minGap());var b=this.get_showText()&&null!=this._text,c=this.get_showText()&&null!=this._htmlText&&0a&&(this.textField.set_wordWrap(!0),this.textField.set_width(a),this._textMeasuredWidth=this.textField.get_width(),this._wrappedOnMeasure=!0)),this._textMeasuredHeight=this.textField.get_height(),this.textField.set_autoSize(2),this.textField.get_wordWrap()!=this.get_wordWrap()&&this.textField.set_wordWrap(this.get_wordWrap()),b||c||this.textField.set_text(""),this._previousText=this._text,this._previousHTMLText= +this._htmlText},getCurrentTextFormat:function(){if(null!=this.get_styleSheet())return null;var a=this._stateToTextFormat.get(this._currentState);return null!=a?a:this._enabled||null==this.get_disabledTextFormat()?this._selected&&null!=this.get_selectedTextFormat()?this.get_selectedTextFormat():this.get_textFormat():this.get_disabledTextFormat()},layoutContent:function(){bd.prototype.layoutContent.call(this);this.layoutChildren()},layoutChildren:function(){this.refreshTextFieldDimensions(!1);var a= +this.get_showText()&&null!=this._text,b=this.get_showText()&&null!=this._htmlText&&0this._textMeasuredWidth&&(b=this._textMeasuredWidth);c>this._textMeasuredHeight&&(c=this._textMeasuredHeight);0>b&&(b=0);0>c&&(c=0);this.textField.set_width(b);(a=this.get_wordWrap())&&!this._wrappedOnMeasure&&b>=this._textMeasuredWidth&&(a=!1);this.textField.get_wordWrap()!=a&&this.textField.set_wordWrap(a);this.textField.set_height(c)}},positionSingleChild:function(a){this.get_horizontalAlign()== +Eb.LEFT?a.set_x(this.get_paddingLeft()):this.get_horizontalAlign()==Eb.RIGHT?a.set_x(this.actualWidth-this.get_paddingRight()-a.get_width()):a.set_x(this.get_paddingLeft()+(this.actualWidth-this.get_paddingLeft()-this.get_paddingRight()-a.get_width())/2);this.get_verticalAlign()==wb.TOP?a.set_y(this.get_paddingTop()):this.get_verticalAlign()==wb.BOTTOM?a.set_y(this.actualHeight-this.get_paddingBottom()-a.get_height()):a.set_y(this.get_paddingTop()+(this.actualHeight-this.get_paddingTop()-this.get_paddingBottom()- +a.get_height())/2)},positionTextAndIcon:function(){if(this.get_iconPosition()==R.TOP)if(this.get_gap()==1/0)this._currentIcon.set_y(this.get_paddingTop()),this.textField.set_y(this.actualHeight-this.get_paddingBottom()-this.textField.get_height());else{if(this.get_verticalAlign()==wb.TOP){var a=this.textField;a.set_y(a.get_y()+(this._currentIcon.get_height()+this.get_gap()))}else this.get_verticalAlign()==wb.MIDDLE&&(a=this.textField,a.set_y(a.get_y()+(this._currentIcon.get_height()+this.get_gap())/ +2));this._currentIcon.set_y(this.textField.get_y()-this._currentIcon.get_height()-this.get_gap())}else this.get_iconPosition()==R.RIGHT?this.get_gap()==1/0?(this.textField.set_x(this.get_paddingLeft()),this._currentIcon.set_x(this.actualWidth-this.get_paddingRight()-this._currentIcon.get_width())):(this.get_horizontalAlign()==Eb.RIGHT?(a=this.textField,a.set_x(a.get_x()-(this._currentIcon.get_width()+this.get_gap()))):this.get_horizontalAlign()==Eb.CENTER&&(a=this.textField,a.set_x(a.get_x()-(this._currentIcon.get_width()+ +this.get_gap())/2)),this._currentIcon.set_x(this.textField.get_x()+this.textField.get_width()+this.get_gap())):this.get_iconPosition()==R.BOTTOM?this.get_gap()==1/0?(this.textField.set_y(this.get_paddingTop()),this._currentIcon.set_y(this.actualHeight-this.get_paddingBottom()-this._currentIcon.get_height())):(this.get_verticalAlign()==wb.BOTTOM?(a=this.textField,a.set_y(a.get_y()-(this._currentIcon.get_height()+this.get_gap()))):this.get_verticalAlign()==wb.MIDDLE&&(a=this.textField,a.set_y(a.get_y()- +(this._currentIcon.get_height()+this.get_gap())/2)),this._currentIcon.set_y(this.textField.get_y()+this.textField.get_height()+this.get_gap())):this.get_iconPosition()==R.LEFT&&(this.get_gap()==1/0?(this._currentIcon.set_x(this.get_paddingLeft()),this.textField.set_x(this.actualWidth-this.get_paddingRight()-this.textField.get_width())):(this.get_horizontalAlign()==Eb.LEFT?(a=this.textField,a.set_x(a.get_x()+(this.get_gap()+this._currentIcon.get_width()))):this.get_horizontalAlign()==Eb.CENTER&&(a= +this.textField,a.set_x(a.get_x()+(this.get_gap()+this._currentIcon.get_width())/2)),this._currentIcon.set_x(this.textField.get_x()-this.get_gap()-this._currentIcon.get_width())));this.get_iconPosition()==R.LEFT||this.get_iconPosition()==R.RIGHT?this.get_verticalAlign()==wb.TOP?this._currentIcon.set_y(this.get_paddingTop()):this.get_verticalAlign()==wb.BOTTOM?this._currentIcon.set_y(this.actualHeight-this.get_paddingBottom()-this._currentIcon.get_height()):this._currentIcon.set_y(this.get_paddingTop()+ +(this.actualHeight-this.get_paddingTop()-this.get_paddingBottom()-this._currentIcon.get_height())/2):this.get_horizontalAlign()==Eb.LEFT?this._currentIcon.set_x(this.get_paddingLeft()):this.get_horizontalAlign()==Eb.RIGHT?this._currentIcon.set_x(this.actualWidth-this.get_paddingRight()-this._currentIcon.get_width()):this._currentIcon.set_x(this.get_paddingLeft()+(this.actualWidth-this.get_paddingLeft()-this.get_paddingRight()-this._currentIcon.get_width())/2)},refreshIcon:function(){var a=this._currentIcon; +this._currentIcon=this.getCurrentIcon();this._currentIcon!=a&&(this.removeCurrentIcon(a),this.addCurrentIcon(this._currentIcon))},getCurrentIcon:function(){var a=this._stateToIcon.get(this._currentState);return null!=a?a:this._enabled||null==this.get_disabledIcon()?this._selected&&null!=this.get_selectedIcon()?this.get_selectedIcon():this.get_icon():this.get_disabledIcon()},addCurrentIcon:function(a){if(null==a)this._iconMeasurements=null;else{v.__implements(a,ia)&&a.initializeNow();null==this._iconMeasurements? +this._iconMeasurements=new Wb(a):this._iconMeasurements.save(a);v.__implements(a,hb)&&a.set_uiContext(this);v.__implements(a,ad)&&a.set_stateContext(this);a.addEventListener("resize",h(this,this.toggleButton_icon_resizeHandler),!1,0,!0);var b=this.getChildIndex(this.textField);this.addChildAt(a,b)}},removeCurrentIcon:function(a){null!=a&&(a.removeEventListener("resize",h(this,this.toggleButton_icon_resizeHandler)),v.__implements(a,hb)&&a.set_uiContext(null),v.__implements(a,ad)&&a.set_stateContext(null), +this._iconMeasurements.restore(a),a.parent==this&&this.removeChild(a))},toggleButton_keyDownHandler:function(a){!this._enabled||this.get_buttonMode()&&1==this.focusRect||null!=this._focusManager&&this._focusManager.get_focus()!=this||32!=a.keyCode&&13!=a.keyCode||(a.preventDefault(),this.dispatchEvent(new ob("click")))},toggleButton_focusInHandler:function(a){this._keyToState.set_enabled(this._enabled)},toggleButton_focusOutHandler:function(a){this._keyToState.set_enabled(!1)},toggleButton_textFormat_changeHandler:function(a){this.setInvalid(E.STYLES)}, +toggleButton_icon_resizeHandler:function(a){this._ignoreIconResizes||this.setInvalid(E.STYLES)},get_styleContext:function(){return Qb},get_icon:function(){return this.__icon},get_disabledIcon:function(){return this.__disabledIcon},get_selectedIcon:function(){return this.__selectedIcon},get_textFormat:function(){return this.__textFormat},set_textFormat:function(a){if(!this.setStyle("textFormat")||this.__textFormat==a)return this.__textFormat;this._previousClearStyle=h(this,this.clearStyle_textFormat); +this.__textFormat=a;this.setInvalid(E.STYLES);return this.__textFormat},clearStyle_textFormat:function(){this.set_textFormat(null);return this.get_textFormat()},get_styleSheet:function(){return this.__styleSheet},get_embedFonts:function(){return this.__embedFonts},get_wordWrap:function(){return this.__wordWrap},get_disabledTextFormat:function(){return this.__disabledTextFormat},set_disabledTextFormat:function(a){if(!this.setStyle("disabledTextFormat")||this.__disabledTextFormat==a)return this.__disabledTextFormat; +this._previousClearStyle=h(this,this.clearStyle_disabledTextFormat);this.__disabledTextFormat=a;this.setInvalid(E.STYLES);return this.__disabledTextFormat},clearStyle_disabledTextFormat:function(){this.set_disabledTextFormat(null);return this.get_disabledTextFormat()},get_selectedTextFormat:function(){return this.__selectedTextFormat},get_iconPosition:function(){return this.__iconPosition},get_gap:function(){return this.__gap},set_gap:function(a){if(!this.setStyle("gap")||this.__gap==a)return this.__gap; +this._previousClearStyle=h(this,this.clearStyle_gap);this.__gap=a;this.setInvalid(E.STYLES);return this.__gap},clearStyle_gap:function(){this.set_gap(0);return this.get_gap()},get_minGap:function(){return this.__minGap},get_paddingTop:function(){return this.__paddingTop},set_paddingTop:function(a){if(!this.setStyle("paddingTop")||this.__paddingTop==a)return this.__paddingTop;this._previousClearStyle=h(this,this.clearStyle_paddingTop);this.__paddingTop=a;this.setInvalid(E.STYLES);return this.__paddingTop}, +clearStyle_paddingTop:function(){this.set_paddingTop(0);return this.get_paddingTop()},get_paddingRight:function(){return this.__paddingRight},set_paddingRight:function(a){if(!this.setStyle("paddingRight")||this.__paddingRight==a)return this.__paddingRight;this._previousClearStyle=h(this,this.clearStyle_paddingRight);this.__paddingRight=a;this.setInvalid(E.STYLES);return this.__paddingRight},clearStyle_paddingRight:function(){this.set_paddingRight(0);return this.get_paddingRight()},get_paddingBottom:function(){return this.__paddingBottom}, +set_paddingBottom:function(a){if(!this.setStyle("paddingBottom")||this.__paddingBottom==a)return this.__paddingBottom;this._previousClearStyle=h(this,this.clearStyle_paddingBottom);this.__paddingBottom=a;this.setInvalid(E.STYLES);return this.__paddingBottom},clearStyle_paddingBottom:function(){this.set_paddingBottom(0);return this.get_paddingBottom()},get_paddingLeft:function(){return this.__paddingLeft},set_paddingLeft:function(a){if(!this.setStyle("paddingLeft")||this.__paddingLeft==a)return this.__paddingLeft; +this._previousClearStyle=h(this,this.clearStyle_paddingLeft);this.__paddingLeft=a;this.setInvalid(E.STYLES);return this.__paddingLeft},clearStyle_paddingLeft:function(){this.set_paddingLeft(0);return this.get_paddingLeft()},get_horizontalAlign:function(){return this.__horizontalAlign},set_horizontalAlign:function(a){if(!this.setStyle("horizontalAlign")||this.__horizontalAlign==a)return this.__horizontalAlign;this._previousClearStyle=h(this,this.clearStyle_horizontalAlign);this.__horizontalAlign=a; +this.setInvalid(E.STYLES);return this.__horizontalAlign},clearStyle_horizontalAlign:function(){this.set_horizontalAlign(Eb.CENTER);return this.get_horizontalAlign()},get_verticalAlign:function(){return this.__verticalAlign},get_iconOffsetX:function(){return this.__iconOffsetX},get_iconOffsetY:function(){return this.__iconOffsetY},get_textOffsetX:function(){return this.__textOffsetX},get_textOffsetY:function(){return this.__textOffsetY},get_showText:function(){return this.__showText},__class__:Qb, +__properties__:t(bd.prototype.__properties__,{get_showText:"get_showText",get_textOffsetY:"get_textOffsetY",get_textOffsetX:"get_textOffsetX",get_iconOffsetY:"get_iconOffsetY",get_iconOffsetX:"get_iconOffsetX",get_verticalAlign:"get_verticalAlign",set_horizontalAlign:"set_horizontalAlign",get_horizontalAlign:"get_horizontalAlign",set_paddingLeft:"set_paddingLeft",get_paddingLeft:"get_paddingLeft",set_paddingBottom:"set_paddingBottom",get_paddingBottom:"get_paddingBottom",set_paddingRight:"set_paddingRight", +get_paddingRight:"get_paddingRight",set_paddingTop:"set_paddingTop",get_paddingTop:"get_paddingTop",get_minGap:"get_minGap",set_gap:"set_gap",get_gap:"get_gap",get_iconPosition:"get_iconPosition",get_selectedTextFormat:"get_selectedTextFormat",set_disabledTextFormat:"set_disabledTextFormat",get_disabledTextFormat:"get_disabledTextFormat",get_wordWrap:"get_wordWrap",get_embedFonts:"get_embedFonts",get_styleSheet:"get_styleSheet",set_textFormat:"set_textFormat",get_textFormat:"get_textFormat",get_selectedIcon:"get_selectedIcon", +get_disabledIcon:"get_disabledIcon",get_icon:"get_icon",set_text:"set_text"})});var uc=D["feathers.controls.ToggleButtonState"]={__ename__:!0,__constructs__:null,UP:(z=function(a){return{_hx_index:0,selected:a,__enum__:"feathers.controls.ToggleButtonState",toString:r}},z._hx_name="UP",z.__params__=["selected"],z),HOVER:(z=function(a){return{_hx_index:1,selected:a,__enum__:"feathers.controls.ToggleButtonState",toString:r}},z._hx_name="HOVER",z.__params__=["selected"],z),DOWN:(z=function(a){return{_hx_index:2, +selected:a,__enum__:"feathers.controls.ToggleButtonState",toString:r}},z._hx_name="DOWN",z.__params__=["selected"],z),DISABLED:(z=function(a){return{_hx_index:3,selected:a,__enum__:"feathers.controls.ToggleButtonState",toString:r}},z._hx_name="DISABLED",z.__params__=["selected"],z)};uc.__constructs__=[uc.UP,uc.HOVER,uc.DOWN,uc.DISABLED];var of=function(){};g["feathers.controls.dataRenderers.IDataRenderer"]=of;of.__name__="feathers.controls.dataRenderers.IDataRenderer";of.__isInterface__=!0;of.__interfaces__= +[ia];of.prototype={__class__:of,__properties__:{set_data:"set_data"}};var ag=function(){};g["feathers.controls.dataRenderers.IListViewItemRenderer"]=ag;ag.__name__="feathers.controls.dataRenderers.IListViewItemRenderer";ag.__isInterface__=!0;ag.__interfaces__=[ia];ag.prototype={__class__:ag,__properties__:{set_listViewOwner:"set_listViewOwner",set_index:"set_index"}};var kj=function(){};g["feathers.core.IPointerDelegate"]=kj;kj.__name__="feathers.core.IPointerDelegate";kj.__isInterface__=!0;var bg= +function(){};g["feathers.layout.ILayoutIndexObject"]=bg;bg.__name__="feathers.layout.ILayoutIndexObject";bg.__isInterface__=!0;bg.prototype={__class__:bg,__properties__:{set_layoutIndex:"set_layoutIndex"}};var ee=function(){this.__accessoryView=null;this.__showSecondaryText=this.__showHoverAndDownStates=!0;this.__secondaryTextFormat=this.__disabledSecondaryTextFormat=this.__selectedSecondaryTextFormat=this.__alternateBackgroundSkin=null;this._stateToSecondaryTextFormat=new Kc;this._ignoreAccessoryResizes= +!1;this._layoutIndex=-1;this._childFocusEnabled=!0;this._secondaryHtmlText=null;this._updatedSecondaryTextStyles=!1;this._previousSecondaryText=this._previousSecondaryHTMLText=this._previousSecondaryTextFormat=this._previousSecondarySimpleTextFormat=null;this.initializeItemRendererTheme();Qb.call(this);this.mouseChildren=!0;this.set_buttonMode(!1);this.set_toggleable(!1);this.set_tabEnabled(!1);this.set_tabChildren(!0)};g["feathers.controls.dataRenderers.ItemRenderer"]=ee;ee.__name__="feathers.controls.dataRenderers.ItemRenderer"; +ee.__interfaces__=[kj,of,bg,vc];ee.__super__=Qb;ee.prototype=t(Qb.prototype,{set_data:function(a){if(this._data==a)return this._data;this._data=a;this.setInvalid(E.DATA);Ca.dispatch(this,"dataChange");return this._data},get_childFocusEnabled:function(){return this._enabled?this._childFocusEnabled:!1},set_layoutIndex:function(a){if(this._layoutIndex==a)return this._layoutIndex;this._layoutIndex=a;this.setInvalid(E.DATA);this.setInvalid(E.STYLES);return this._layoutIndex},set_pointerTarget:function(a){if(this._pointerTarget== +a)return this._pointerTarget;this._pointerTarget=a;this.setInvalid(E.DATA);return this._pointerTarget},initializeItemRendererTheme:function(){lj.initialize()},dispose:function(){this.set_data(null);this.set_layoutIndex(-1);this.set_pointerTarget(null);Qb.prototype.dispose.call(this)},initialize:function(){Qb.prototype.initialize.call(this);this._pointerToState.set_customHitTest(h(this,this.customHitTest));this._pointerTrigger.set_customHitTest(h(this,this.customHitTest))},update:function(){var a= +this.isInvalid(E.DATA),b=this.isInvalid(E.SIZE),c=this.isInvalid(E.STATE),d=this.isInvalid(E.STYLES);this._updatedSecondaryTextStyles=!1;a&&(this._pointerToState.set_target(null!=this._pointerTarget?this._pointerTarget:this),this.refreshSecondaryTextField());(a||d||c)&&this.refreshSecondaryTextStyles();(d||c)&&this.refreshAccessoryView();(a||d||c||b)&&this.refreshSecondaryText(b);Qb.prototype.update.call(this)},refreshInteractivity:function(){Qb.prototype.refreshInteractivity.call(this);this._pointerToState.set_enabled(this.get_showHoverAndDownStates()); +this._keyToState.set_enabled(this.get_showHoverAndDownStates())},refreshSecondaryTextField:function(){null==this._secondaryText&&null==this._secondaryHtmlText?(null!=this.secondaryTextField&&(this.removeChild(this.secondaryTextField),this.secondaryTextField=null),this._previousSecondarySimpleTextFormat=this._previousSecondaryTextFormat=this._previousSecondaryHTMLText=this._previousSecondaryText=null):null==this.secondaryTextField&&(this.secondaryTextField=new oc,this.secondaryTextField.set_selectable(!1), +this.secondaryTextField.set_multiline(!0),this.addChild(this.secondaryTextField))},refreshSecondaryTextStyles:function(){if(null!=this.secondaryTextField){this.secondaryTextField.get_embedFonts()!=this.get_embedFonts()&&(this.secondaryTextField.set_embedFonts(this.get_embedFonts()),this._updatedSecondaryTextStyles=!0);var a=this.getCurrentSecondaryTextFormat(),b=null!=a?a.toSimpleTextFormat():null;b!=this._previousSecondarySimpleTextFormat&&(null!=this._previousSecondaryTextFormat&&this._previousSecondaryTextFormat.removeEventListener("change", +h(this,this.itemRenderer_secondaryTextFormat_changeHandler)),null!=a&&(a.addEventListener("change",h(this,this.itemRenderer_secondaryTextFormat_changeHandler),!1,0,!0),this.secondaryTextField.set_defaultTextFormat(b),this._updatedSecondaryTextStyles=!0),this._previousSecondaryTextFormat=a,this._previousSecondarySimpleTextFormat=b)}},refreshSecondaryText:function(a){if(null!=this.secondaryTextField){var b=this.get_showSecondaryText()&&null!=this._secondaryText&&0this._textMeasuredWidth&&(b=this._textMeasuredWidth);c>this._textMeasuredHeight&&(c=this._textMeasuredHeight);0>b&&(b=0);0>c&&(c=0);this.textField.set_width(b);(a=this.get_wordWrap())&& +!this._wrappedOnMeasure&&b>=this._textMeasuredWidth&&(a=!1);this.textField.get_wordWrap()!=a&&this.textField.set_wordWrap(a);this.textField.set_height(c)}},calculateExplicitWidthForTextMeasurement:function(){var a=Qb.prototype.calculateExplicitWidthForTextMeasurement.call(this);if(null==a)return a;var b=this.get_gap();b==1/0&&(b=this.get_minGap());if(this.hasAccessoryViewInLayout()){var c=this._ignoreAccessoryResizes;this._ignoreAccessoryResizes=!0;v.__implements(this._currentAccessoryView,ea)&&this._currentAccessoryView.validateNow(); +this._ignoreAccessoryResizes=c;a-=this._currentAccessoryView.get_width()+b}0>a&&(a=0);return a},measureContentWidth:function(){var a=this.get_gap();a==1/0&&(a=this.get_minGap());var b=this.get_showText()&&null!=this._text,c=this.get_showText()&&null!=this._htmlText&&0w&&(w=0),this.secondaryTextField.set_width(w),g+=this._secondaryTextMeasuredHeight+b,m=Math.max(m,w),q+=this.secondaryTextField.get_height());a&&this.get_iconPosition()==R.LEFT?((c||d)&&this.textField.set_x(Math.max(this.textField.get_x(), +this.get_paddingLeft()+u-m)),(f||k)&&this.secondaryTextField.set_x(Math.max(this.secondaryTextField.get_x(),this.get_paddingLeft()+u-m))):h&&this.get_iconPosition()==R.TOP&&((c||d)&&this.textField.set_y(Math.max(this.textField.get_y(),this.get_paddingTop()+K-q)),(f||k)&&this.secondaryTextField.set_y(this.get_paddingTop()+K-this.secondaryTextField.get_height()));if(c||d||f||k)n+=m+b;null!=this._currentIcon&&(this.get_iconPosition()==R.RIGHT&&(a?this._currentIcon.set_x(Math.max(n,this.get_paddingLeft()+ +u-this._currentIcon.get_width())):this._currentIcon.set_x(n)),this.get_iconPosition()==R.BOTTOM&&(h?this._currentIcon.set_y(Math.max(g,this.get_paddingTop()+K-this._currentIcon.get_height())):this._currentIcon.set_y(g)))},itemRenderer_secondaryTextFormat_changeHandler:function(a){this.setInvalid(E.STYLES)},itemRenderer_accessoryView_resizeHandler:function(a){this._ignoreAccessoryResizes||this.setInvalid(E.STYLES)},get_secondaryTextFormat:function(){return this.__secondaryTextFormat},set_secondaryTextFormat:function(a){if(!this.setStyle("secondaryTextFormat")|| +this.__secondaryTextFormat==a)return this.__secondaryTextFormat;this._previousClearStyle=h(this,this.clearStyle_secondaryTextFormat);this.__secondaryTextFormat=a;this.setInvalid(E.STYLES);return this.__secondaryTextFormat},clearStyle_secondaryTextFormat:function(){this.set_secondaryTextFormat(null);return this.get_secondaryTextFormat()},get_disabledSecondaryTextFormat:function(){return this.__disabledSecondaryTextFormat},set_disabledSecondaryTextFormat:function(a){if(!this.setStyle("disabledSecondaryTextFormat")|| +this.__disabledSecondaryTextFormat==a)return this.__disabledSecondaryTextFormat;this._previousClearStyle=h(this,this.clearStyle_disabledSecondaryTextFormat);this.__disabledSecondaryTextFormat=a;this.setInvalid(E.STYLES);return this.__disabledSecondaryTextFormat},clearStyle_disabledSecondaryTextFormat:function(){this.set_disabledSecondaryTextFormat(null);return this.get_disabledSecondaryTextFormat()},get_selectedSecondaryTextFormat:function(){return this.__selectedSecondaryTextFormat},get_alternateBackgroundSkin:function(){return this.__alternateBackgroundSkin}, +get_showSecondaryText:function(){return this.__showSecondaryText},get_showHoverAndDownStates:function(){return this.__showHoverAndDownStates},get_accessoryView:function(){return this.__accessoryView},get_styleContext:function(){return ee},__class__:ee,__properties__:t(Qb.prototype.__properties__,{get_accessoryView:"get_accessoryView",get_showHoverAndDownStates:"get_showHoverAndDownStates",get_showSecondaryText:"get_showSecondaryText",get_alternateBackgroundSkin:"get_alternateBackgroundSkin",get_selectedSecondaryTextFormat:"get_selectedSecondaryTextFormat", +set_disabledSecondaryTextFormat:"set_disabledSecondaryTextFormat",get_disabledSecondaryTextFormat:"get_disabledSecondaryTextFormat",set_secondaryTextFormat:"set_secondaryTextFormat",get_secondaryTextFormat:"get_secondaryTextFormat",set_pointerTarget:"set_pointerTarget",set_layoutIndex:"set_layoutIndex",get_childFocusEnabled:"get_childFocusEnabled",set_data:"set_data"})});var dg=function(){};g["feathers.controls.popups.IPopUpAdapter"]=dg;dg.__name__="feathers.controls.popups.IPopUpAdapter";dg.__isInterface__= +!0;dg.__interfaces__=[J];dg.prototype={__class__:dg,__properties__:{get_persistent:"get_persistent"}};var eg=function(){this._ignoreContentResizing=this._ignoreOriginResizing=!1;this._contentMeasurements=new Wb;this.closeOnPointerActiveOutside=!1;this._fitContentToOriginWidth=!0;this.modal=!1;this._gap=0;this.content=this.origin=null;S.call(this)};g["feathers.controls.popups.DropDownPopUpAdapter"]=eg;eg.__name__="feathers.controls.popups.DropDownPopUpAdapter";eg.__interfaces__=[dg];eg.__super__=S; +eg.prototype=t(S.prototype,{get_active:function(){return null!=this.content},get_persistent:function(){return!1},open:function(a,b){if(this.get_active())throw new bb("Pop-up adapter is already open. Close the previous content before opening new content.");if(null==b.stage)throw new bb("Pop-up adapter failed to open because the origin is not added to the stage.");this._stage=b.stage;this._stage.addEventListener("mouseDown",h(this,this.dropDownPopUpAdapter_stage_mouseDownHandler),!1,0,!0);this._stage.addEventListener("touchBegin", +h(this,this.dropDownPopUpAdapter_stage_touchBeginHandler),!1,0,!0);this._stage.addEventListener("resize",h(this,this.dropDownPopUpAdapter_stage_resizeHandler),!1,0,!0);this.content=a;this.content.addEventListener("enterFrame",h(this,this.dropDownPopUpAdapter_content_enterFrameHandler),!1,0,!0);this.content.addEventListener("resize",h(this,this.dropDownPopUpAdapter_content_resizeHandler),!1,0,!0);this.content.addEventListener("removedFromStage",h(this,this.dropDownPopUpAdapter_content_removedFromStageHandler), +!1,0,!0);this.origin=b;this.origin.addEventListener("resize",h(this,this.dropDownPopUpAdapter_origin_resizeHandler),!1,0,!0);this.origin.addEventListener("removedFromStage",h(this,this.dropDownPopUpAdapter_origin_removedFromStageHandler),!1,0,!0);pb.addPopUp(this.content,this.origin,this.modal,!1);this.get_active()&&(v.__implements(this.content,ea)&&(a=this._ignoreContentResizing,this._ignoreContentResizing=!0,this.content.validateNow(),this._ignoreContentResizing=a),this._contentMeasurements.save(this.content), +this.layout(),Ca.dispatch(this,"open"))},close:function(){if(this.get_active()){this._stage.removeEventListener("resize",h(this,this.dropDownPopUpAdapter_stage_resizeHandler));this._stage.removeEventListener("mouseDown",h(this,this.dropDownPopUpAdapter_stage_mouseDownHandler));this._stage.addEventListener("touchBegin",h(this,this.dropDownPopUpAdapter_stage_touchBeginHandler));this.content.removeEventListener("enterFrame",h(this,this.dropDownPopUpAdapter_content_enterFrameHandler));this.content.removeEventListener("resize", +h(this,this.dropDownPopUpAdapter_content_resizeHandler));this.content.removeEventListener("removedFromStage",h(this,this.dropDownPopUpAdapter_content_removedFromStageHandler));this.origin.removeEventListener("resize",h(this,this.dropDownPopUpAdapter_origin_resizeHandler));this.origin.removeEventListener("removedFromStage",h(this,this.dropDownPopUpAdapter_origin_removedFromStageHandler));var a=this.content;this._stage=this.content=this.origin=null;null!=a.parent&&a.parent.removeChild(a);this._contentMeasurements.restore(a); +Ca.dispatch(this,"close")}},layout:function(){if(v.__implements(this.origin,ea)){var a=this._ignoreOriginResizing;this._ignoreOriginResizing=!0;this.origin.validateNow();this._ignoreOriginResizing=a}var b=pb.forStage(this._stage).get_root();a=new Ba(this.origin.get_x(),this.origin.get_y());a=this.origin.parent.localToGlobal(a);a=b.globalToLocal(a);var c=new Ba(this.origin.get_x()+this.origin.get_width(),this.origin.get_y()+this.origin.get_height());c=this.origin.parent.localToGlobal(c);c=b.globalToLocal(c); +this._prevOriginX=a.x;this._prevOriginY=a.y;var d=Math.max(0,c.x-a.x),f=!1;if(this._fitContentToOriginWidth&&v.__implements(this.content,Da)){var k=this.content;k.get_minWidth()b.x&&(f=Math.max(d.x,b.x-this.content.get_width()));this.content.set_x(f);c=c.y+this._gap;c+this.content.get_height()>b.y&&(c=Math.max(d.y,a.y-this._gap-this.content.get_height()));this.content.set_y(c)},dropDownPopUpAdapter_origin_removedFromStageHandler:function(a){this.get_active()&&this.close()},dropDownPopUpAdapter_content_removedFromStageHandler:function(a){this.get_active()&&this.close()},dropDownPopUpAdapter_stage_resizeHandler:function(a){this.get_active()&& +(a=v.__cast(a.currentTarget,Nc),Nd.forStage(a).validateNow(),this.layout())},dropDownPopUpAdapter_content_resizeHandler:function(a){this.get_active()&&!this._ignoreContentResizing&&this.layout()},dropDownPopUpAdapter_origin_resizeHandler:function(a){this.get_active()&&!this._ignoreOriginResizing&&this.layout()},dropDownPopUpAdapter_content_enterFrameHandler:function(a){if(this.get_active()){a=pb.forStage(this._stage).get_root();var b=new Ba(this.origin.get_x(),this.origin.get_y());b=this.origin.parent.localToGlobal(b); +b=a.globalToLocal(b);b.x==this._prevOriginX&&b.y==this._prevOriginY||this.layout()}},dropDownPopUpAdapter_stage_mouseDownHandler:function(a){if(this.closeOnPointerActiveOutside){a=v.__cast(a.target,L);if(this.content instanceof ya){var b=this.content;if(b.contains(a))return}else if(this.content==a)return;if(this.origin instanceof ya){if(b=this.origin,b.contains(a))return}else if(this.origin==a)return;this.close()}},dropDownPopUpAdapter_stage_touchBeginHandler:function(a){if(this.closeOnPointerActiveOutside&& +!a.isPrimaryTouchPoint){a=v.__cast(a.target,L);if(this.content instanceof ya){var b=this.content;if(b.contains(a))return}else if(this.content==a)return;if(this.origin instanceof ya){if(b=this.origin,b.contains(a))return}else if(this.origin==a)return;this.close()}},__class__:eg,__properties__:{get_persistent:"get_persistent",get_active:"get_active"}});var fe=function(){};g["feathers.controls.supportClasses.IViewPort"]=fe;fe.__name__="feathers.controls.supportClasses.IViewPort";fe.__isInterface__=!0; +fe.__interfaces__=[Da,ea,ia];fe.prototype={__class__:fe,__properties__:{set_maxVisibleHeight:"set_maxVisibleHeight",get_maxVisibleHeight:"get_maxVisibleHeight",set_maxVisibleWidth:"set_maxVisibleWidth",get_maxVisibleWidth:"get_maxVisibleWidth",set_minVisibleHeight:"set_minVisibleHeight",get_minVisibleHeight:"get_minVisibleHeight",set_minVisibleWidth:"set_minVisibleWidth",get_minVisibleWidth:"get_minVisibleWidth",set_visibleHeight:"set_visibleHeight",get_visibleHeight:"get_visibleHeight",set_visibleWidth:"set_visibleWidth", +get_visibleWidth:"get_visibleWidth",set_scrollY:"set_scrollY",set_scrollX:"set_scrollX"}};var $f=function(){this._layoutActive=this._layoutChanged=!1;this._snapPositionsX=this._snapPositionsY=null;this._scrollX=this._scrollY=0;this._ignoreLayoutChanges=!1;this._layoutResult=new Oe;this._layoutMeasurements=new Wb;this._layoutItems=[];this._explicitVisibleHeight=this._layout=null;this._actualVisibleHeight=0;this._maxVisibleHeight=1/0;this._actualMinVisibleHeight=0;this._explicitVisibleWidth=null;this._actualVisibleWidth= +0;this._maxVisibleWidth=1/0;this._explicitMinVisibleWidth=null;this._actualMinVisibleWidth=0;Y.call(this);this._viewPortBackground=new Ga;this._viewPortBackground.get_graphics().beginFill(16711935,0);this._viewPortBackground.get_graphics().drawRect(0,0,1,1);this._viewPortBackground.get_graphics().endFill();this.addChildAt(this._viewPortBackground,0)};g["feathers.controls.supportClasses.AdvancedLayoutViewPort"]=$f;$f.__name__="feathers.controls.supportClasses.AdvancedLayoutViewPort";$f.__interfaces__= +[fe];$f.__super__=Y;$f.prototype=t(Y.prototype,{get_minVisibleWidth:function(){return null==this._explicitMinVisibleWidth?this._actualMinVisibleWidth:this._explicitMinVisibleWidth},set_minVisibleWidth:function(a){if(this._explicitMinVisibleWidth==a)return this._explicitMinVisibleWidth;var b=this._explicitMinVisibleWidth;this._explicitMinVisibleWidth=a;null==a?(this._actualMinVisibleWidth=0,this.setInvalid(E.SIZE)):(this._actualMinVisibleWidth=a,null==this._explicitVisibleWidth&&(this._actualVisibleWidth< +a||this._actualVisibleWidth==b)&&this.setInvalid(E.SIZE));return this._explicitMinVisibleWidth},get_maxVisibleWidth:function(){return this._maxVisibleWidth},set_maxVisibleWidth:function(a){if(this._maxVisibleWidth==a)return this._maxVisibleWidth;if(null==a)throw new ab("maxVisibleWidth cannot be null");var b=this._maxVisibleWidth;this._maxVisibleWidth=a;null==this._explicitVisibleWidth&&(this._actualVisibleWidth>a||this._actualVisibleWidth==b)&&this.setInvalid(E.SIZE);return this._maxVisibleWidth}, +get_visibleWidth:function(){return null==this._explicitVisibleWidth?this._actualVisibleWidth:this._explicitVisibleWidth},set_visibleWidth:function(a){if(this._explicitVisibleWidth==a)return this._explicitVisibleWidth;this._explicitVisibleWidth=a;this._actualVisibleWidth!=a&&this.setInvalid(E.SIZE);return this._explicitVisibleWidth},get_minVisibleHeight:function(){return null==this._explicitMinVisibleHeight?this._actualMinVisibleHeight:this._explicitMinVisibleHeight},set_minVisibleHeight:function(a){if(this._explicitMinVisibleHeight== +a)return this._explicitMinVisibleHeight;var b=this._explicitMinVisibleHeight;this._explicitMinVisibleHeight=a;null==a?(this._actualMinVisibleHeight=0,this.setInvalid(E.SIZE)):(this._actualMinVisibleHeight=a,null==this._explicitVisibleHeight&&(this._actualVisibleHeighta||this._actualVisibleHeight==b)&&this.setInvalid(E.SIZE);return this._maxVisibleHeight},get_visibleHeight:function(){return null==this._explicitVisibleHeight?this._actualVisibleHeight:this._explicitVisibleHeight},set_visibleHeight:function(a){if(this._explicitVisibleHeight==a)return this._explicitVisibleHeight;this._explicitVisibleHeight= +a;this._actualVisibleHeight!=a&&this.setInvalid(E.SIZE);return this._explicitVisibleWidth},get_layout:function(){return this._layout},set_layout:function(a){if(this._layout==a)return this._layout;null!=this._layout&&(this._layout.removeEventListener("change",h(this,this.advancedLayoutViewPort_layout_changeHandler)),this._layout.removeEventListener("scroll",h(this,this.advancedLayoutViewPort_layout_scrollHandler)));this._layout=a;null!=this._layout&&(this._layout.addEventListener("change",h(this,this.advancedLayoutViewPort_layout_changeHandler)), +this._layout.addEventListener("scroll",h(this,this.advancedLayoutViewPort_layout_scrollHandler)));this.setInvalid(E.LAYOUT);return this._layout},get_scrollX:function(){return this._scrollX},set_scrollX:function(a){if(this._scrollX==a)return this._scrollX;this._scrollX=a;this.setInvalid(E.SCROLL);return this._scrollX},get_scrollY:function(){return this._scrollY},set_scrollY:function(a){if(this._scrollY==a)return this._scrollY;this._scrollY=a;this.setInvalid(E.SCROLL);return this._scrollY},get_snapPositionsX:function(){return this._snapPositionsX}, +get_snapPositionsY:function(){return this._snapPositionsY},set_scroller:function(a){return this._scroller==a?this._scroller:this._scroller=a},refreshChildren:function(a){},update:function(){var a=this;this.refreshLayoutMeasurements();this.refreshLayoutProperties();this.runWithInvalidationFlagsOnly(function(){a._layoutActive=!0;var b=0;do if(a._layoutChanged=!1,a.refreshLayout(),a._invalidationFlags.clear(),a._allInvalid=!1,++b,10<=b){a._layoutActive=!1;b=v.getClass(a.parent).__name__;var c=null!= +a._layout?v.getClass(a._layout).__name__:"The layout";throw new bb(""+b+" is stuck in an infinite loop during layout. "+c+" may be dispatching Event.CHANGE too frequently.");}while(a._layoutChanged);a._layoutActive=!1})},refreshLayout:function(){this.refreshChildren(this._layoutItems);this._layoutResult.reset();null!=this._layout&&this._layout.layout(this._layoutItems,this._layoutMeasurements,this._layoutResult);this.handleLayoutResult()},refreshLayoutProperties:function(){var a=this._ignoreLayoutChanges; +this._ignoreLayoutChanges=!0;if(v.__implements(this._layout,dd)){var b=this._layout;b.set_scrollX(this._scrollX);b.set_scrollY(this._scrollY)}this._ignoreLayoutChanges=a},refreshLayoutMeasurements:function(){var a=null==this._explicitMinVisibleWidth,b=null==this._explicitMinVisibleHeight,c=null==this._maxVisibleWidth,d=null==this._maxVisibleHeight;this._layoutMeasurements.width=this._explicitVisibleWidth;this._layoutMeasurements.height=this._explicitVisibleHeight;var f=this._explicitMinVisibleWidth; +a&&(f=0);a=this._explicitMinVisibleHeight;b&&(a=0);b=this._maxVisibleWidth;c&&(b=1/0);c=this._maxVisibleHeight;d&&(c=1/0);this._layoutMeasurements.minWidth=f;this._layoutMeasurements.minHeight=a;this._layoutMeasurements.maxWidth=b;this._layoutMeasurements.maxHeight=c},handleLayoutResult:function(){this.saveMeasurements(this._layoutResult.contentWidth,this._layoutResult.contentHeight,this._layoutResult.contentMinWidth,this._layoutResult.contentMinHeight);var a=this._layoutResult.viewPortHeight;this._actualVisibleWidth= +this._layoutResult.viewPortWidth;this._actualVisibleHeight=a;this._actualMinVisibleWidth=this._layoutResult.contentMinWidth;this._actualMinVisibleHeight=this._layoutResult.contentMinHeight;this._viewPortBackground.set_x(Math.min(this.get_scrollX(),0));this._viewPortBackground.set_y(Math.min(this.get_scrollY(),0));this._viewPortBackground.set_width(Math.max(this.actualWidth,this._actualVisibleWidth));this._viewPortBackground.set_height(Math.max(this.actualHeight,this._actualVisibleHeight));v.__implements(this.get_layout(), +pf)?(a=this.get_layout(),this._snapPositionsX=a.getSnapPositionsX(this._layoutItems,this._actualVisibleWidth,this._actualVisibleHeight,this._snapPositionsX),this._snapPositionsY=a.getSnapPositionsY(this._layoutItems,this._actualVisibleWidth,this._actualVisibleHeight,this._snapPositionsY)):this._snapPositionsY=this._snapPositionsX=null},advancedLayoutViewPort_layout_changeHandler:function(a){this._ignoreLayoutChanges||(this._layoutActive?this._layoutChanged=!0:this.setInvalid(E.LAYOUT))},advancedLayoutViewPort_layout_scrollHandler:function(a){null!= +this._scroller&&this._scroller.get_scrolling()&&(this._scroller.applyLayoutShift(a.x,a.y),this._layoutActive?this._layoutChanged=!0:this.setInvalid(E.LAYOUT))},__class__:$f,__properties__:t(Y.prototype.__properties__,{set_scroller:"set_scroller",get_snapPositionsY:"get_snapPositionsY",get_snapPositionsX:"get_snapPositionsX",set_scrollY:"set_scrollY",get_scrollY:"get_scrollY",set_scrollX:"set_scrollX",get_scrollX:"get_scrollX",set_layout:"set_layout",get_layout:"get_layout",set_visibleHeight:"set_visibleHeight", +get_visibleHeight:"get_visibleHeight",set_maxVisibleHeight:"set_maxVisibleHeight",get_maxVisibleHeight:"get_maxVisibleHeight",set_minVisibleHeight:"set_minVisibleHeight",get_minVisibleHeight:"get_minVisibleHeight",set_visibleWidth:"set_visibleWidth",get_visibleWidth:"get_visibleWidth",set_maxVisibleWidth:"set_maxVisibleWidth",get_maxVisibleWidth:"get_maxVisibleWidth",set_minVisibleWidth:"set_minVisibleWidth",get_minVisibleWidth:"get_minVisibleWidth"})});var cg=function(){this._manageChildVisibility= +!1;this._snapPositionsX=this._snapPositionsY=null;this._scrollX=this._scrollY=0;this._explicitVisibleHeight=null;this._actualVisibleHeight=0;this._maxVisibleHeight=1/0;this._actualMinVisibleHeight=0;this._explicitVisibleWidth=null;this._actualVisibleWidth=0;this._maxVisibleWidth=1/0;this._explicitMinVisibleWidth=null;this._actualMinVisibleWidth=0;na.call(this);this._viewPortBackground=new Ga;this._viewPortBackground.get_graphics().beginFill(16711935,0);this._viewPortBackground.get_graphics().drawRect(0, +0,1,1);this._viewPortBackground.get_graphics().endFill();this._addChildAt(this._viewPortBackground,0)};g["feathers.controls.supportClasses.LayoutViewPort"]=cg;cg.__name__="feathers.controls.supportClasses.LayoutViewPort";cg.__interfaces__=[fe];cg.__super__=na;cg.prototype=t(na.prototype,{get_minVisibleWidth:function(){return null==this._explicitMinVisibleWidth?this._actualMinVisibleWidth:this._explicitMinVisibleWidth},set_minVisibleWidth:function(a){if(this._explicitMinVisibleWidth==a)return this._explicitMinVisibleWidth; +var b=this._explicitMinVisibleWidth;this._explicitMinVisibleWidth=a;null==a?(this._actualMinVisibleWidth=0,this.setInvalid(E.SIZE)):(this._actualMinVisibleWidth=a,null==this._explicitVisibleWidth&&(this._actualVisibleWidtha||this._actualVisibleWidth==b)&&this.setInvalid(E.SIZE);return this._maxVisibleWidth},get_visibleWidth:function(){return null==this._explicitVisibleWidth?this._actualVisibleWidth:this._explicitVisibleWidth},set_visibleWidth:function(a){if(this._explicitVisibleWidth==a)return this._explicitVisibleWidth;this._explicitVisibleWidth=a;this._actualVisibleWidth!=a&&this.setInvalid(E.SIZE);return this._explicitVisibleWidth}, +get_minVisibleHeight:function(){return null==this._explicitMinVisibleHeight?this._actualMinVisibleHeight:this._explicitMinVisibleHeight},set_minVisibleHeight:function(a){if(this._explicitMinVisibleHeight==a)return this._explicitMinVisibleHeight;var b=this._explicitMinVisibleHeight;this._explicitMinVisibleHeight=a;null==a?(this._actualMinVisibleHeight=0,this.setInvalid(E.SIZE)):(this._actualMinVisibleHeight=a,null==this._explicitVisibleHeight&&(this._actualVisibleHeighta||this._actualVisibleHeight==b)&&this.setInvalid(E.SIZE);return this._maxVisibleHeight},get_visibleHeight:function(){return null== +this._explicitVisibleHeight?this._actualVisibleHeight:this._explicitVisibleHeight},set_visibleHeight:function(a){if(this._explicitVisibleHeight==a)return this._explicitVisibleHeight;this._explicitVisibleHeight=a;this._actualVisibleHeight!=a&&this.setInvalid(E.SIZE);return this._explicitVisibleWidth},get_scrollX:function(){return this._scrollX},set_scrollX:function(a){if(this._scrollX==a)return this._scrollX;this._scrollX=a;(this._manageChildVisibility||v.__implements(this._currentLayout,dd))&&this.setInvalid(E.LAYOUT); +return this._scrollX},get_scrollY:function(){return this._scrollY},set_scrollY:function(a){if(this._scrollY==a)return this._scrollY;this._scrollY=a;(this._manageChildVisibility||v.__implements(this._currentLayout,dd))&&this.setInvalid(E.LAYOUT);return this._scrollY},get_snapPositionsX:function(){return this._snapPositionsX},get_snapPositionsY:function(){return this._snapPositionsY},refreshViewPortBounds:function(){var a=null==this._explicitVisibleWidth,b=null==this._explicitVisibleHeight,c=null== +this._explicitMinVisibleWidth,d=null==this._explicitMinVisibleHeight,f=null==this._maxVisibleWidth,k=null==this._maxVisibleHeight;null!=this._currentBackgroundSkin&&Tc.resetFluidlyWithParent(this._backgroundSkinMeasurements,this._currentBackgroundSkin,this);var u=this.get_autoSizeMode()==ue.CONTENT||null==this.stage,K=0,n=0;if(!u){n=this.globalToLocal(new Ba);var g=this.globalToLocal(new Ba(this.stage.stageWidth,this.stage.stageHeight));K=g.x-n.x;n=g.y-n.y}this._layoutMeasurements.width=a&&!u?K:this._explicitVisibleWidth; +this._layoutMeasurements.height=b&&!u?n:this._explicitVisibleHeight;a=this._explicitMinVisibleWidth;c&&(a=0);c=this._explicitMinVisibleHeight;d&&(c=0);d=this._maxVisibleWidth;f&&(d=1/0);f=this._maxVisibleHeight;k&&(f=1/0);null!=this._currentBackgroundSkin&&(this._currentBackgroundSkin.get_width()>a&&(a=this._currentBackgroundSkin.get_width()),this._currentBackgroundSkin.get_height()>c&&(c=this._currentBackgroundSkin.get_height()));this._layoutMeasurements.minWidth=a;this._layoutMeasurements.minHeight= +c;this._layoutMeasurements.maxWidth=d;this._layoutMeasurements.maxHeight=f},handleCustomLayout:function(){var a=this._ignoreLayoutChanges;this._ignoreLayoutChanges=!0;if(v.__implements(this._currentLayout,dd)){var b=this._currentLayout;b.set_scrollX(this._scrollX);b.set_scrollY(this._scrollY)}this._ignoreLayoutChanges=a;na.prototype.handleCustomLayout.call(this)},handleLayoutResult:function(){this.saveMeasurements(this._layoutResult.contentWidth,this._layoutResult.contentHeight,this._layoutResult.contentMinWidth, +this._layoutResult.contentMinHeight);var a=this._layoutResult.viewPortHeight;this._actualVisibleWidth=this._layoutResult.viewPortWidth;this._actualVisibleHeight=a;this._actualMinVisibleWidth=this._layoutResult.contentMinWidth;this._actualMinVisibleHeight=this._layoutResult.contentMinHeight;this._viewPortBackground.set_x(Math.min(this.get_scrollX(),0));this._viewPortBackground.set_y(Math.min(this.get_scrollY(),0));this._viewPortBackground.set_width(Math.max(this.actualWidth,this._actualVisibleWidth)); +this._viewPortBackground.set_height(Math.max(this.actualHeight,this._actualVisibleHeight));v.__implements(this.get_layout(),pf)?(a=this.get_layout(),this._snapPositionsX=a.getSnapPositionsX(this.items,this._actualVisibleWidth,this._actualVisibleHeight,this._snapPositionsX),this._snapPositionsY=a.getSnapPositionsY(this.items,this._actualVisibleWidth,this._actualVisibleHeight,this._snapPositionsY)):this._snapPositionsY=this._snapPositionsX=null},set_manageChildVisibility:function(a){if(this._manageChildVisibility== +a)return this._manageChildVisibility;if(this._manageChildVisibility=a)this.setInvalid(E.LAYOUT);else{a=0;for(var b=this.items;aa||f.get_x()+f.get_width()b||f.get_y()+f.get_height()c?c=0:c+this._toolTip.get_width()>b.x&&(c=b.x-this._toolTip.get_width());a=a.y-this._toolTip.get_height()+ +this._offsetY;0>a?a=0:a+this._toolTip.get_height()>b.y&&(a=b.y-this._toolTip.get_height());this._toolTip.set_x(c);this._toolTip.set_y(a);pb.addPopUp(v.__cast(this._toolTip,L),v.__cast(this._target,L),!1,!1)}},defaultToolTipManager_root_mouseMoveHandler:function(a){if(!a.buttonDown){for(var b=v.__cast(a.target,L);null!=b&&!v.__implements(b,ia);)b=b.parent;v.__implements(b,ia)?this._target==b?(this._toolTipStageX=a.stageX,this._toolTipStageY=a.stageY):(this.clearTarget(),this._target=b,null==this._target.get_toolTip()? +this._target=null:(this._target.addEventListener("mouseDown",h(this,this.defaultToolTipManager_target_mouseDownHandler),!1,0,!0),this._target.addEventListener("rightMouseDown",h(this,this.defaultToolTipManager_target_rightMouseDownHandler),!1,0,!0),this._target.addEventListener("middleMouseDown",h(this,this.defaultToolTipManager_target_middleMouseDownHandler),!1,0,!0),this._target.addEventListener("rollOut",h(this,this.defaultToolTipManager_target_rollOutHandler),!1,0,!0),this._target.addEventListener("removedFromStage", +h(this,this.defaultToolTipManager_target_removedFromStageHandler),!1,0,!0),this._toolTipStageX=a.stageX,this._toolTipStageY=a.stageY,this._delayTimeoutID=va.setTimeout(h(this,this.hoverDelayCallback),1E3*this._delay|0))):this.clearTarget()}},defaultToolTipManager_target_mouseDownHandler:function(a){this.hideToolTip()},defaultToolTipManager_target_rightMouseDownHandler:function(a){this.hideToolTip()},defaultToolTipManager_target_middleMouseDownHandler:function(a){this.hideToolTip()},defaultToolTipManager_target_rollOutHandler:function(a){this.clearTarget()}, +defaultToolTipManager_target_removedFromStageHandler:function(a){this.clearTarget()},__class__:ge};var di=D["feathers.core._FeathersControl.StyleDefinition"]={__ename__:!0,__constructs__:null,Name:(z=function(a){return{_hx_index:0,name:a,__enum__:"feathers.core._FeathersControl.StyleDefinition",toString:r}},z._hx_name="Name",z.__params__=["name"],z),NameAndState:(z=function(a,b){return{_hx_index:1,name:a,state:b,__enum__:"feathers.core._FeathersControl.StyleDefinition",toString:r}},z._hx_name="NameAndState", +z.__params__=["name","state"],z)};di.__constructs__=[di.Name,di.NameAndState];var dc=function(){};g["feathers.core.FocusManager"]=dc;dc.__name__="feathers.core.FocusManager";dc.__properties__={get_focusManagerFactory:"get_focusManagerFactory"};dc.defaultFocusManagerFactory=function(a){return new Aa(a)};dc.get_focusManagerFactory=function(){return dc._focusManagerFactory};dc.hasRoot=function(a){return null!=dc.stageToManager.h.__keys__[a.__id__]};dc.addRoot=function(a){if(null==a)throw new ab("FocusManager stage argument must not be null."); +if(null!=dc.stageToManager.h.__keys__[a.__id__])throw new ab("Focus manager root already exists");var b=dc.get_focusManagerFactory();null==b&&(b=dc.defaultFocusManagerFactory);b=b(a);b.addEventListener("clear",dc.focusManager_clearHandler,!1,0,!0);dc.stageToManager.set(a,b);return b};dc.removeRoot=function(a){a=dc.stageToManager.h[a.__id__];null!=a&&a.dispose()};dc.focusManager_clearHandler=function(a){a=v.__cast(a.currentTarget,qf);a.removeEventListener("clear",dc.focusManager_clearHandler);a=a.get_root(); +a=a instanceof Nc?a:null;null!=a&&dc.stageToManager.remove(a)};var fg=function(){};g["feathers.core.IFocusExclusions"]=fg;fg.__name__="feathers.core.IFocusExclusions";fg.__isInterface__=!0;fg.__interfaces__=[qa];fg.prototype={__class__:fg,__properties__:{get_focusExclusions:"get_focusExclusions"}};var gg=function(){};g["feathers.core.IScaleManager"]=gg;gg.__name__="feathers.core.IScaleManager";gg.__isInterface__=!0;gg.__interfaces__=[J];gg.prototype={__class__:gg,__properties__:{set_target:"set_target"}}; +var ad=function(){};g["feathers.core.IStateObserver"]=ad;ad.__name__="feathers.core.IStateObserver";ad.__isInterface__=!0;ad.prototype={__class__:ad,__properties__:{set_stateContext:"set_stateContext"}};var pb=function(){};g["feathers.core.PopUpManager"]=pb;pb.__name__="feathers.core.PopUpManager";pb.forStage=function(a){if(null==a)throw new ab("PopUpManager stage argument must not be null.");var b=pb.stageToManager.h[a.__id__];null==b&&(b=pb.popUpManagerFactory,null==b&&(b=pb.defaultPopUpManagerFactory), +b=b(a),pb.stageToManager.set(a,b));return b};pb.addPopUp=function(a,b,c,d,f){null==d&&(d=!0);null==c&&(c=!0);if(null==b)throw new ab("The pop-up's owner must not be null.");b=b.stage;if(null==b)throw new ab("The stage property of a pop-up's owner must not be null.");return pb.forStage(b).addPopUp(a,c,d,f)};pb.removePopUp=function(a){var b=a.stage;return null==b?a:pb.forStage(b).removePopUp(a)};pb.isPopUp=function(a){if(null==a)return!1;var b=a.stage;return null==b?!1:pb.forStage(b).isPopUp(a)};pb.defaultPopUpManagerFactory= +function(a){return new sf(a)};var hg=function(a){S.call(this);this._scaler=a};g["feathers.core.ScreenDensityScaleManager"]=hg;hg.__name__="feathers.core.ScreenDensityScaleManager";hg.__interfaces__=[gg];hg.__super__=S;hg.prototype=t(S.prototype,{set_target:function(a){if(this._target==a)return this._target;null!=this._target&&(this.removeTargetStageListeners(),this._target.removeEventListener("addedToStage",h(this,this.screenDensityScaleManager_target_addedToStageHandler)),this._target.removeEventListener("removedFromStage", +h(this,this.screenDensityScaleManager_target_removedFromStageHandler)));this._target=a;null!=this._target&&(this._target.addEventListener("addedToStage",h(this,this.screenDensityScaleManager_target_addedToStageHandler),!1,0,!0),this._target.addEventListener("removedFromStage",h(this,this.screenDensityScaleManager_target_removedFromStageHandler),!1,0,!0),this.addTargetStageListeners());Ca.dispatch(this,"change");return this._target},getScale:function(){var a=1;if(null==this._target)return a;var b= +v.__cast(x,Window).document.getElementById("viewport");if(null!=b&&"meta"==b.localName&&(b=b.getAttribute("content"),-1!=b.indexOf("user-scalable=no"))){var c=new ta("initial-scale=(\\d(?:\\.\\d+)?)","");c.match(b)&&(b=parseFloat(c.matched(1)),a*=1/b)}return a},getBounds:function(){var a=new da;if(null==this._target)return a;var b=this._target.stage;if(null==b)return a;var c=Math.floor(this._target.get_scaleX())!=this._target.get_scaleX(),d=Math.floor(b.stageWidth);c&&(d=ld.roundDownToNearest(d,2)); +a.width=d;b=Math.floor(b.stageHeight);c&&(b=ld.roundDownToNearest(b,2));a.height=b;return a},addTargetStageListeners:function(){null!=this._target&&null!=this._target.stage&&this._target.stage.addEventListener("resize",h(this,this.screenDensityScaleManager_stage_resizeHandler),!1,0,!0)},removeTargetStageListeners:function(){null!=this._target&&null!=this._target.stage&&this._target.stage.removeEventListener("resize",h(this,this.screenDensityScaleManager_stage_resizeHandler))},screenDensityScaleManager_target_addedToStageHandler:function(a){this.addTargetStageListeners()}, +screenDensityScaleManager_target_removedFromStageHandler:function(a){this.removeTargetStageListeners()},screenDensityScaleManager_stage_resizeHandler:function(a){Ca.dispatch(this,"change")},__class__:hg,__properties__:{set_target:"set_target"}});var Ug=function(){this._selectedIndex=-1;this._items=[];S.call(this)};g["feathers.core.ToggleGroup"]=Ug;Ug.__name__="feathers.core.ToggleGroup";Ug.__interfaces__=[Rd,Gc];Ug.__super__=S;Ug.prototype=t(S.prototype,{get_selectedItem:function(){return-1==this._selectedIndex? +null:this._items[this._selectedIndex]},__class__:Ug,__properties__:{get_selectedItem:"get_selectedItem"}});var tc=function(){};g["feathers.core.ToolTipManager"]=tc;tc.__name__="feathers.core.ToolTipManager";tc.__properties__={get_toolTipManagerFactory:"get_toolTipManagerFactory"};tc.defaultToolTipManagerFactory=function(a){return new ge(a)};tc.get_toolTipManagerFactory=function(){return tc._toolTipManagerFactory};tc.hasRoot=function(a){return null!=tc.stageToManager.h.__keys__[a.__id__]};tc.addRoot= +function(a){if(null==a)throw new ab("ToolTipManager stage argument must not be null.");if(null!=tc.stageToManager.h.__keys__[a.__id__])throw new ab("Tool tip manager root already exists");var b=tc.get_toolTipManagerFactory();null==b&&(b=tc.defaultToolTipManagerFactory);b=b(a);tc.stageToManager.set(a,b);return b};tc.removeRoot=function(a){var b=tc.stageToManager.h[a.__id__];null!=b&&(b.dispose(),tc.stageToManager.remove(a))};var Nd=function(a){this._validating=!1;this._queue=[];this._stage=a;this._stage.addEventListener("render", +h(this,this.validationQueue_stage_renderHandler),!1,-1E3,!0)};g["feathers.core.ValidationQueue"]=Nd;Nd.__name__="feathers.core.ValidationQueue";Nd.forStage=function(a){if(null==a)return null;null==Nd.STAGE_TO_VALIDATION_QUEUE.h.__keys__[a.__id__]&&Nd.STAGE_TO_VALIDATION_QUEUE.set(a,new Nd(a));return Nd.STAGE_TO_VALIDATION_QUEUE.h[a.__id__]};Nd.prototype={addControl:function(a){if(-1==this._queue.indexOf(a)){var b=this._queue.length;if(this._validating){var c=a.get_depth();for(--b;0<=b;){var d=this._queue[b].get_depth(); +if(c>=d)break;--b}++b;this._queue.splice(b,0,a)}else this._queue[b]=a,this._stage.invalidate()}},validateNow:function(){if(!this._validating){var a=this._queue.length;if(0!=a){this._validating=!0;for(1a?1:0});0a.get_depth()||a.validateNow();this._validating=!1}}},validationQueue_stage_renderHandler:function(a){this.validateNow()},__class__:Nd};var oj=function(){};g["openfl.utils.IExternalizable"]= +oj;oj.__name__="openfl.utils.IExternalizable";oj.__isInterface__=!0;var ig=function(){};g["feathers.data.IFlatCollection"]=ig;ig.__name__="feathers.data.IFlatCollection";ig.__isInterface__=!0;ig.__interfaces__=[J];ig.prototype={__class__:ig,__properties__:{get_length:"get_length"}};var Pe=function(a){this._filterFunction=this._sortCompareFunction=null;this._pendingRefresh=!1;this._filterAndSortData=this._array=null;S.call(this);null==a&&(a=[]);this.set_array(a)};g["feathers.data.ArrayCollection"]= +Pe;Pe.__name__="feathers.data.ArrayCollection";Pe.__interfaces__=[oj,ig];Pe.__super__=S;Pe.prototype=t(S.prototype,{set_array:function(a){if(this._array==a)return this._array;null==a&&(a=[]);this._array=a;od.dispatch(this,"reset",-1);Ca.dispatch(this,"change");return this._array},get_length:function(){this._pendingRefresh&&this.refreshFilterAndSort();return null!=this._filterAndSortData?this._filterAndSortData.length:this._array.length},get:function(a){this._pendingRefresh&&this.refreshFilterAndSort(); +if(0>a||a>=this.get_length())throw new Ne("Failed to get item at index "+a+". Expected a value between 0 and "+(this.get_length()-1)+".");return null!=this._filterAndSortData?this._filterAndSortData[a]:this._array[a]},addAt:function(a,b){this.addAtInternal(a,b,!0)},remove:function(a){this._pendingRefresh&&this.refreshFilterAndSort();var b=this.indexOf(a);-1!=b&&(null!=this._filterAndSortData&&aa.remove(this._filterAndSortData,a),aa.remove(this._array,a),od.dispatch(this,"removeItem",b,null,a),Ca.dispatch(this, +"change"))},removeAt:function(a){this._pendingRefresh&&this.refreshFilterAndSort();if(0>a||a>=this.get_length())throw new Ne("Failed to remove item at index "+a+". Expected a value between 0 and "+(this.get_length()-1)+".");if(null!=this._filterAndSortData){var b=this._filterAndSortData[a];aa.remove(this._filterAndSortData,b)}else b=this._array[a];aa.remove(this._array,b);od.dispatch(this,"removeItem",a,null,b);Ca.dispatch(this,"change");return b},indexOf:function(a){this._pendingRefresh&&this.refreshFilterAndSort(); +return null!=this._filterAndSortData?this._filterAndSortData.indexOf(a):this._array.indexOf(a)},refreshFilterAndSort:function(){this._pendingRefresh=!1;var a=this._filterAndSortData;this._filterAndSortData=null;if(null!=this._filterFunction){null!=a?a.length=0:a=[];for(var b=0,c=this._array.length;bthis._sortCompareFunction(a,this._filterAndSortData[d]))return d}return this._filterAndSortData.length},addAtInternal:function(a,b,c){this._pendingRefresh&& +this.refreshFilterAndSort();if(0>b||b>this.get_length())throw new Ne("Failed to add item at index "+b+". Expected a value between 0 and "+this.get_length()+".");if(null!=this._filterAndSortData){var d=this._array.length;bb.maxWidth&&(q=b.maxWidth));null!=b.height?w=b.height:(w=n,null!=b.minHeight&&wb.maxHeight&&(w=b.maxHeight));for(g.length=0;g.lengthk&&(k=0),f.get_height()!=k&&(f.set_height(k),null==b.width&&v.__implements(f,ea)&&(f.validateNow(),k=f.get_x()+f.get_width(),Ku&&(u=0),f.get_width()!=u&&(f.set_width(u),null==b.height&&v.__implements(f,ea)&&(f.validateNow(),u=f.get_y()+f.get_height(),na.length))throw new bb("AnchorLayout is stuck in an infinite loop.");}null==c&&(c=new Oe);c.contentX=0;c.contentY=0;c.contentWidth=q;c.contentHeight=w;c.viewPortWidth=q;c.viewPortHeight=w;return c},__class__:mf});var Vg=function(a,b){null==a&&(a=0);S.call(this);this._value=a;this._relativeTo=b};g["feathers.layout.Anchor"]=Vg;Vg.__name__="feathers.layout.Anchor";Vg.__super__=S;Vg.prototype= +t(S.prototype,{get_value:function(){return this._value},get_relativeTo:function(){return this._relativeTo},__class__:Vg,__properties__:{get_relativeTo:"get_relativeTo",get_value:"get_value"}});var pj={fromPixels:function(a){return new Vg(a)}},Wg=function(){};g["feathers.layout.ILayoutData"]=Wg;Wg.__name__="feathers.layout.ILayoutData";Wg.__isInterface__=!0;Wg.__interfaces__=[J];var id=function(a,b,c,d,f,k){this._top=this._right=this._bottom=this._left=this._horizontalCenter=this._verticalCenter=null; +S.call(this);this.set_top(a);this.set_right(b);this.set_bottom(c);this.set_left(d);this.set_horizontalCenter(f);this.set_verticalCenter(k)};g["feathers.layout.AnchorLayoutData"]=id;id.__name__="feathers.layout.AnchorLayoutData";id.__interfaces__=[Wg];id.center=function(a,b){null==b&&(b=0);null==a&&(a=0);return new id(null,null,null,null,a,b)};id.fill=function(a){null==a&&(a=0);return new id(pj.fromPixels(a),pj.fromPixels(a),pj.fromPixels(a),pj.fromPixels(a))};id.__super__=S;id.prototype=t(S.prototype, +{get_top:function(){return this._top},set_top:function(a){if(this._top==a)return this._top;if(null!=this._top){var b=this._top;b.removeEventListener("change",h(this,this.anchorLayoutData_anchor_changeHandler))}this._top=a;null!=this._top&&(b=this._top,b.addEventListener("change",h(this,this.anchorLayoutData_anchor_changeHandler),!1,0,!0));Ca.dispatch(this,"change");return this._top},get_right:function(){return this._right},set_right:function(a){if(this._right==a)return this._right;if(null!=this._right){var b= +this._right;b.removeEventListener("change",h(this,this.anchorLayoutData_anchor_changeHandler))}this._right=a;null!=this._right&&(b=this._right,b.addEventListener("change",h(this,this.anchorLayoutData_anchor_changeHandler),!1,0,!0));Ca.dispatch(this,"change");return this._right},get_bottom:function(){return this._bottom},set_bottom:function(a){if(this._bottom==a)return this._bottom;if(null!=this._bottom){var b=this._bottom;b.removeEventListener("change",h(this,this.anchorLayoutData_anchor_changeHandler))}this._bottom= +a;null!=this._bottom&&(b=this._bottom,b.addEventListener("change",h(this,this.anchorLayoutData_anchor_changeHandler),!1,0,!0));Ca.dispatch(this,"change");return this._bottom},get_left:function(){return this._left},set_left:function(a){if(this._left==a)return this._left;if(null!=this._left){var b=this._left;b.removeEventListener("change",h(this,this.anchorLayoutData_anchor_changeHandler))}this._left=a;null!=this._left&&(b=this._left,b.addEventListener("change",h(this,this.anchorLayoutData_anchor_changeHandler), +!1,0,!0));Ca.dispatch(this,"change");return this._left},get_horizontalCenter:function(){return this._horizontalCenter},set_horizontalCenter:function(a){if(this._horizontalCenter==a)return this._horizontalCenter;this._horizontalCenter=a;Ca.dispatch(this,"change");return this._horizontalCenter},get_verticalCenter:function(){return this._verticalCenter},set_verticalCenter:function(a){if(this._verticalCenter==a)return this._verticalCenter;this._verticalCenter=a;Ca.dispatch(this,"change");return this._verticalCenter}, +anchorLayoutData_anchor_changeHandler:function(a){Ca.dispatch(this,"change")},__class__:id,__properties__:{set_verticalCenter:"set_verticalCenter",get_verticalCenter:"get_verticalCenter",set_horizontalCenter:"set_horizontalCenter",get_horizontalCenter:"get_horizontalCenter",set_left:"set_left",get_left:"get_left",set_bottom:"set_bottom",get_bottom:"get_bottom",set_right:"set_right",get_right:"get_right",set_top:"set_top",get_top:"get_top"}});var ue=D["feathers.layout.AutoSizeMode"]={__ename__:!0, +__constructs__:null,STAGE:{_hx_name:"STAGE",_hx_index:0,__enum__:"feathers.layout.AutoSizeMode",toString:r},CONTENT:{_hx_name:"CONTENT",_hx_index:1,__enum__:"feathers.layout.AutoSizeMode",toString:r}};ue.__constructs__=[ue.STAGE,ue.CONTENT];var Eb=D["feathers.layout.HorizontalAlign"]={__ename__:!0,__constructs__:null,LEFT:{_hx_name:"LEFT",_hx_index:0,__enum__:"feathers.layout.HorizontalAlign",toString:r},CENTER:{_hx_name:"CENTER",_hx_index:1,__enum__:"feathers.layout.HorizontalAlign",toString:r}, +RIGHT:{_hx_name:"RIGHT",_hx_index:2,__enum__:"feathers.layout.HorizontalAlign",toString:r},JUSTIFY:{_hx_name:"JUSTIFY",_hx_index:3,__enum__:"feathers.layout.HorizontalAlign",toString:r}};Eb.__constructs__=[Eb.LEFT,Eb.CENTER,Eb.RIGHT,Eb.JUSTIFY];var ye=function(){};g["feathers.layout.IDragDropLayout"]=ye;ye.__name__="feathers.layout.IDragDropLayout";ye.__isInterface__=!0;ye.__interfaces__=[Sd];ye.prototype={__class__:ye};var Qe=function(){this._justifyResetEnabled=this._percentWidthResetEnabled=this._percentHeightResetEnabled= +!1;this._verticalAlign=wb.TOP;this._horizontalAlign=Eb.LEFT;this._paddingTop=this._paddingRight=this._paddingBottom=this._paddingLeft=this._gap=this._minGap=0;S.call(this)};g["feathers.layout.HorizontalLayout"]=Qe;Qe.__name__="feathers.layout.HorizontalLayout";Qe.__interfaces__=[ye,Sd];Qe.__super__=S;Qe.prototype=t(S.prototype,{set_paddingTop:function(a){if(this._paddingTop==a)return this._paddingTop;this._paddingTop=a;Ca.dispatch(this,"change");return this._paddingTop},set_paddingRight:function(a){if(this._paddingRight== +a)return this._paddingRight;this._paddingRight=a;Ca.dispatch(this,"change");return this._paddingRight},set_paddingBottom:function(a){if(this._paddingBottom==a)return this._paddingBottom;this._paddingBottom=a;Ca.dispatch(this,"change");return this._paddingBottom},set_paddingLeft:function(a){if(this._paddingLeft==a)return this._paddingLeft;this._paddingLeft=a;Ca.dispatch(this,"change");return this._paddingLeft},set_gap:function(a){if(this._gap==a)return this._gap;this._gap=a;Ca.dispatch(this,"change"); +return this._gap},set_horizontalAlign:function(a){if(this._horizontalAlign==a)return this._horizontalAlign;this._horizontalAlign=a;Ca.dispatch(this,"change");return this._horizontalAlign},set_verticalAlign:function(a){if(this._verticalAlign==a)return this._verticalAlign;this._verticalAlign=a;Ca.dispatch(this,"change");return this._verticalAlign},layout:function(a,b,c){var d=this._gap,f=this._gap==1/0;f&&(d=this._minGap);var k=this._verticalAlign==wb.JUSTIFY,u=b.width;null!=u&&(u-=this._paddingLeft+ +this._paddingRight);var g=b.height;null!=g&&(g-=this._paddingTop+this._paddingBottom);for(f=0;fq?q=0:100h&&(n.set_height(h),v.__implements(n,ea)&&n.validateNow()))}this.applyPercentWidth(a,b.width,b.minWidth,b.maxWidth,d);k=this._paddingLeft;for(f=u=0;fb.maxWidth&&(g=b.maxWidth);h=u;null!=b.height?h=b.height: +null!=b.minHeight&&hb.maxHeight&&(h=b.maxHeight);this.applyPercentHeight(a,h);for(f=0;fn&&(d+=(q-n)/(a.length-1)),d-=this._minGap;else{switch(this._horizontalAlign._hx_index){case 0:b=0;break;case 1:b=(q-n)/2;break;case 2:b=q-n;break;default:throw new ab("Unknown horizontal align: "+p.string(this._horizontalAlign));}0> +b&&(b=0)}if(0!=b||0!=d)for(f=0;ff?f=0:f>a.length&&(f=a.length);b=this._paddingLeft;for(d=0;dw&&(w=0);v.__implements(m,Da)&&(q=m,g+=q.get_minWidth());n+=w;null!=r.get_marginLeft()&&(u+=r.get_marginLeft());null!=r.get_marginRight()&&(u+=r.get_marginRight());u+=f;k.push(m);continue}}u+=q.get_width()+f}u=u-f+(this._paddingLeft+this._paddingRight);100>n&&(n=100);null!=b?a=b:(a=u+g,null!=c&&ad&&(a=d)); +a-=u;0>a&&(a=0);for(c=!0;c;)for(c=!1,d=a/n,h=0;hw&&(w=0),r=d*w,v.__implements(m,Da)&&(q=m,q=q.get_explicitMinWidth(),null!=q&&q>a&&(q=a),rf?f=0:100b&&(u=b),fk&&(f=k)}d.set_height(f)}}}},__class__:Qe,__properties__:{set_verticalAlign:"set_verticalAlign",set_horizontalAlign:"set_horizontalAlign",set_gap:"set_gap",set_paddingLeft:"set_paddingLeft",set_paddingBottom:"set_paddingBottom",set_paddingRight:"set_paddingRight", +set_paddingTop:"set_paddingTop"}});var hd=function(a,b){this._percentWidth=this._percentHeight=this._marginLeft=this._marginRight=null;S.call(this);this.set_percentWidth(a);this.set_percentHeight(b)};g["feathers.layout.HorizontalLayoutData"]=hd;hd.__name__="feathers.layout.HorizontalLayoutData";hd.__interfaces__=[Wg];hd.fill=function(){return new hd(100,100)};hd.__super__=S;hd.prototype=t(S.prototype,{get_percentWidth:function(){return this._percentWidth},set_percentWidth:function(a){if(this._percentWidth== +a)return this._percentWidth;this._percentWidth=a;Ca.dispatch(this,"change");return this._percentWidth},get_percentHeight:function(){return this._percentHeight},set_percentHeight:function(a){if(this._percentHeight==a)return this._percentHeight;this._percentHeight=a;Ca.dispatch(this,"change");return this._percentHeight},get_marginLeft:function(){return this._marginLeft},get_marginRight:function(){return this._marginRight},__class__:hd,__properties__:{get_marginRight:"get_marginRight",get_marginLeft:"get_marginLeft", +set_percentHeight:"set_percentHeight",get_percentHeight:"get_percentHeight",set_percentWidth:"set_percentWidth",get_percentWidth:"get_percentWidth"}});var Ue=function(){};g["feathers.layout.IKeyboardNavigationLayout"]=Ue;Ue.__name__="feathers.layout.IKeyboardNavigationLayout";Ue.__isInterface__=!0;Ue.__interfaces__=[Sd];Ue.prototype={__class__:Ue};var dd=function(){};g["feathers.layout.IScrollLayout"]=dd;dd.__name__="feathers.layout.IScrollLayout";dd.__isInterface__=!0;dd.__interfaces__=[Sd];dd.prototype= +{__class__:dd,__properties__:{get_elasticLeft:"get_elasticLeft",get_elasticBottom:"get_elasticBottom",get_elasticRight:"get_elasticRight",get_elasticTop:"get_elasticTop",set_scrollY:"set_scrollY",set_scrollX:"set_scrollX"}};var pf=function(){};g["feathers.layout.ISnapLayout"]=pf;pf.__name__="feathers.layout.ISnapLayout";pf.__isInterface__=!0;pf.__interfaces__=[Sd];pf.prototype={__class__:pf};var Te=function(){};g["feathers.layout.IVirtualLayout"]=Te;Te.__name__="feathers.layout.IVirtualLayout";Te.__isInterface__= +!0;Te.__interfaces__=[dd];Te.prototype={__class__:Te,__properties__:{set_virtualCache:"set_virtualCache"}};var Zf=function(a,b){this.start=a;this.end=b};g["feathers.layout.VirtualLayoutRange"]=Zf;Zf.__name__="feathers.layout.VirtualLayoutRange";Zf.prototype={__class__:Zf};var Oe=function(){this.reset()};g["feathers.layout.LayoutBoundsResult"]=Oe;Oe.__name__="feathers.layout.LayoutBoundsResult";Oe.prototype={reset:function(){this.contentMinHeight=this.contentMinWidth=this.contentHeight=this.contentWidth= +this.contentY=this.contentX=0;this.contentMaxWidth=1/0;this.contentMaxHeight=1/0;this.viewPortHeight=this.viewPortWidth=0},__class__:Oe};var Wb=function(a){this.width=this.height=this.minWidth=this.minHeight=this.maxWidth=this.maxHeight=null;this.save(a)};g["feathers.layout.Measurements"]=Wb;Wb.__name__="feathers.layout.Measurements";Wb.prototype={save:function(a){null==a?this.maxHeight=this.maxWidth=this.minHeight=this.minWidth=this.height=this.width=null:v.__implements(a,Da)?(this.width=a.get_explicitWidth(), +this.height=a.get_explicitHeight(),this.minWidth=a.get_explicitMinWidth(),this.minHeight=a.get_explicitMinHeight(),this.maxWidth=a.get_explicitMaxWidth(),this.maxHeight=a.get_explicitMaxHeight()):(this.width=a.get_width(),this.height=a.get_height(),this.minWidth=this.width,this.minHeight=this.height,this.maxWidth=this.width,this.maxHeight=this.height)},restore:function(a){v.__implements(a,Da)?(null==this.width?a.resetWidth():a.set_width(this.width),null==this.height?a.resetHeight():a.set_height(this.height), +null==this.minWidth?a.resetMinWidth():a.set_minWidth(this.minWidth),null==this.minHeight?a.resetMinHeight():a.set_minHeight(this.minHeight),null==this.maxWidth?a.resetMaxWidth():a.set_maxWidth(this.maxWidth),null==this.maxHeight?a.resetMaxHeight():a.set_maxHeight(this.maxHeight)):(null!=this.width&&a.set_width(this.width),null!=this.height&&a.set_height(this.height))},__class__:Wb};var R=D["feathers.layout.RelativePosition"]={__ename__:!0,__constructs__:null,TOP:{_hx_name:"TOP",_hx_index:0,__enum__:"feathers.layout.RelativePosition", +toString:r},RIGHT:{_hx_name:"RIGHT",_hx_index:1,__enum__:"feathers.layout.RelativePosition",toString:r},BOTTOM:{_hx_name:"BOTTOM",_hx_index:2,__enum__:"feathers.layout.RelativePosition",toString:r},LEFT:{_hx_name:"LEFT",_hx_index:3,__enum__:"feathers.layout.RelativePosition",toString:r},MANUAL:{_hx_name:"MANUAL",_hx_index:4,__enum__:"feathers.layout.RelativePosition",toString:r}};R.__constructs__=[R.TOP,R.RIGHT,R.BOTTOM,R.LEFT,R.MANUAL];var wb=D["feathers.layout.VerticalAlign"]={__ename__:!0,__constructs__:null, +TOP:{_hx_name:"TOP",_hx_index:0,__enum__:"feathers.layout.VerticalAlign",toString:r},MIDDLE:{_hx_name:"MIDDLE",_hx_index:1,__enum__:"feathers.layout.VerticalAlign",toString:r},BOTTOM:{_hx_name:"BOTTOM",_hx_index:2,__enum__:"feathers.layout.VerticalAlign",toString:r},JUSTIFY:{_hx_name:"JUSTIFY",_hx_index:3,__enum__:"feathers.layout.VerticalAlign",toString:r}};wb.__constructs__=[wb.TOP,wb.MIDDLE,wb.BOTTOM,wb.JUSTIFY];var We=function(){this._widthResetEnabled=!0;this._contentJustify=!1;this._verticalAlign= +wb.TOP;this._paddingTop=this._paddingRight=this._paddingBottom=this._paddingLeft=this._gap=this._minGap=0;this._requestedRowCount=this._requestedMinRowCount=this._requestedMaxRowCount=null;this._scrollX=this._scrollY=0;S.call(this)};g["feathers.layout.VerticalListLayout"]=We;We.__name__="feathers.layout.VerticalListLayout";We.__interfaces__=[ye,Ue,Te];We.__super__=S;We.prototype=t(S.prototype,{set_scrollX:function(a){return this._scrollX=a},get_scrollY:function(){return this._scrollY},set_scrollY:function(a){return this._scrollY= +a},set_virtualCache:function(a){return this._virtualCache=a},get_elasticTop:function(){return!0},get_elasticRight:function(){return!1},get_elasticBottom:function(){return!0},get_elasticLeft:function(){return!1},set_requestedRowCount:function(a){if(this._requestedRowCount==a)return this._requestedRowCount;this._requestedRowCount=a;Ca.dispatch(this,"change");return this._requestedRowCount},set_requestedMinRowCount:function(a){if(this._requestedMinRowCount==a)return this._requestedMinRowCount;this._requestedMinRowCount= +a;Ca.dispatch(this,"change");return this._requestedMinRowCount},set_requestedMaxRowCount:function(a){if(this._requestedMaxRowCount==a)return this._requestedMaxRowCount;this._requestedMaxRowCount=a;Ca.dispatch(this,"change");return this._requestedMaxRowCount},layout:function(a,b,c){var d=this._gap,f=this._gap==1/0;f&&(d=this._minGap);var k=this.calculateMaxItemWidth(a,b),u=this.calculateViewPortWidth(k,b),g=u-this._paddingLeft-this._paddingRight;if(!this._contentJustify||kthis._requestedMaxRowCount&&(h=this._paddingTop+this._paddingBottom+(this._requestedMaxRowCount*(g+d)-d)),null!=b.minHeight&&hb.maxHeight&&(h=b.maxHeight));m=n-this._paddingTop-this._paddingBottom;b=q=0;w=h-this._paddingTop-this._paddingBottom;if(f=this._gap==1/0)b=this._minGap,1m&&(b+=(w-m)/(a.length-1)),b-=this._minGap;else{switch(this._verticalAlign._hx_index){case 0:q=0;break;case 1:q=(w-m)/2;break;case 2:q=w-m;break;default:throw new ab("Unknown vertical align: "+ +p.string(this._verticalAlign));}0>q&&(q=0)}if(0!=q||0!=b)for(f=0;fk){var g=this._virtualCache[k];g=g instanceof Hc?g:null;if(null!=g){k=g.itemWidth;ca&&(c=a));return c},calculateViewPortWidth:function(a,b){return null!=b.width?b.width:a+this._paddingLeft+this._paddingRight},calculateVirtualRowHeight:function(a,b){for(var c=0,d=a.length;cn&&(n=0);for(var q=0,h=n+c,m=0,w=0;w=n&&(f=l);if(-1!=f&&(k=l,g>=h&&k-f+1>=q))break}m=0}}else if(null!=u)p=u;else{if(5>m){++m;continue}k=f=0;break}}g+=p+b;-1==f&&g>=n&&(f=r);if(-1!=f&&(k=r,g>=h&&k-f+1>=q))break}-1==f&&this._verticalAlign!=wb.TOP&&(k= +f=a-1);if((g=h&&k-f+1>=q)break;while(0f&&(f=0);null==u?k=f:0>k&&(k=f);if(null==d)return new Zf(f,k);d.start=f;d.end=k;return d},getNearestScrollPositionForIndex:function(a,b,c,d,f){var k=this._gap;this._gap==1/0&&(k=this._minGap);for(var u=null,g=c=0,n=this._paddingTop,q=0;qg&&(a=g);null==f&&(f=new Ba);f.x=this._scrollX;f.y=a;return f},getDragDropIndex:function(a,b,c,d,f){b=this._gap;this._gap==1/0&&(b=this._minGap);d=null;f=this._paddingTop;for(var k=0,u=a.length;kg?g=0:g>a.length&&(g=a.length);b=null;d=this._paddingTop;for(k=0;ku)break;n+=k;p=h}--h}n=38;break;case 34:h=0;n=a;for(q=d.length;nu)break;h+=k;p=w}}n=40;break;case 35:for(q=r;q>a;){if(null==f||-1==f.indexOf(q)){p=q;break}--q}break;case 36:q=0;for(h=a;qp?p=c?r:0:p>r&&(p=c?0:r);if(null!=f&&-1!=f.indexOf(p)){if(p==b)return a;C=!0}b=p}return p},__class__:We,__properties__:{set_requestedMaxRowCount:"set_requestedMaxRowCount", +set_requestedMinRowCount:"set_requestedMinRowCount",set_requestedRowCount:"set_requestedRowCount",get_elasticLeft:"get_elasticLeft",get_elasticBottom:"get_elasticBottom",get_elasticRight:"get_elasticRight",get_elasticTop:"get_elasticTop",set_virtualCache:"set_virtualCache",set_scrollY:"set_scrollY",get_scrollY:"get_scrollY",set_scrollX:"set_scrollX"}});var Hc=function(a,b){this.itemWidth=a;this.itemHeight=b};g["feathers.layout._VerticalListLayout.VirtualCacheItem"]=Hc;Hc.__name__="feathers.layout._VerticalListLayout.VirtualCacheItem"; +Hc.prototype={__class__:Hc};var hb=function(){};g["feathers.skins.IProgrammaticSkin"]=hb;hb.__name__="feathers.skins.IProgrammaticSkin";hb.__isInterface__=!0;hb.__interfaces__=[Da];hb.prototype={__class__:hb,__properties__:{set_uiContext:"set_uiContext"}};var ze=function(){Hb.call(this);this.mouseChildren=!1;this.set_tabEnabled(!1);this.set_tabChildren(!1)};g["feathers.skins.ProgrammaticSkin"]=ze;ze.__name__="feathers.skins.ProgrammaticSkin";ze.__interfaces__=[ad,hb];ze.__super__=Hb;ze.prototype= +t(Hb.prototype,{set_uiContext:function(a){if(this._uiContext==a)return this._uiContext;null!=this._uiContext&&(this._uiContext.removeEventListener("stateChange",h(this,this.uiContext_stateChangeHandler)),v.__implements(this._uiContext,Mc)&&this._uiContext.removeEventListener("change",h(this,this.uiContextToggle_changeHandler)),this.onRemoveUIContext());this._uiContext=a;null!=this._uiContext&&(this._uiContext.addEventListener("stateChange",h(this,this.uiContext_stateChangeHandler),!1,0,!0),v.__implements(this._uiContext, +Mc)&&this._uiContext.addEventListener("change",h(this,this.uiContextToggle_changeHandler)),this.onAddUIContext());this.setInvalid(E.DATA);return this._uiContext},set_stateContext:function(a){if(this._stateContext==a)return this._stateContext;null!=this._stateContext&&this._stateContext.removeEventListener("stateChange",h(this,this.stateContext_stateChangeHandler));this._stateContext=a;null!=this._stateContext&&this._stateContext.addEventListener("stateChange",h(this,this.stateContext_stateChangeHandler), +!1,0,!0);this.setInvalid(E.DATA);return this._stateContext},onAddUIContext:function(){},onRemoveUIContext:function(){},update:function(){},needsStateUpdate:function(){return!0},checkForStateChange:function(){this.needsStateUpdate()&&this.setInvalid(E.STATE)},uiContext_stateChangeHandler:function(a){this.checkForStateChange()},uiContextToggle_changeHandler:function(a){this.checkForStateChange()},stateContext_stateChangeHandler:function(a){this.checkForStateChange()},__class__:ze,__properties__:t(Hb.prototype.__properties__, +{set_stateContext:"set_stateContext",set_uiContext:"set_uiContext"})});var fd=function(a,b){this._previousBorder=this._previousFill=null;ze.call(this);this.set_fill(a);this.set_border(b)};g["feathers.skins.BaseGraphicsPathSkin"]=fd;fd.__name__="feathers.skins.BaseGraphicsPathSkin";fd.__super__=ze;fd.prototype=t(ze.prototype,{set_fill:function(a){if(this._fill==a)return this._fill;this._previousFill==this._fill&&(this._previousFill=null);this._fill=a;this.setInvalid(E.STYLES);return this._fill},set_disabledFill:function(a){if(this._disabledFill== +a)return this._disabledFill;this._previousFill==this._disabledFill&&(this._previousFill=null);this._disabledFill=a;this.setInvalid(E.STYLES);return this._disabledFill},set_selectedFill:function(a){if(this._selectedFill==a)return this._selectedFill;this._previousFill==this._selectedFill&&(this._previousFill=null);this._selectedFill=a;this.setInvalid(E.STYLES);return this._selectedFill},set_border:function(a){if(this._border==a)return this._border;this._previousBorder==this._border&&(this._previousBorder= +null);this._border=a;this.setInvalid(E.STYLES);return this._border},set_disabledBorder:function(a){if(this._disabledBorder==a)return this._disabledBorder;this._previousBorder==this._disabledBorder&&(this._previousBorder=null);this._disabledBorder=a;this.setInvalid(E.STYLES);return this._disabledBorder},set_selectedBorder:function(a){if(this._selectedBorder==a)return this._selectedBorder;this._previousBorder==this._selectedBorder&&(this._previousBorder=null);this._selectedBorder=a;this.setInvalid(E.STYLES); +return this._selectedBorder},setFillForState:function(a,b){null==this._stateToFill&&(this._stateToFill=new Kc);var c=this._stateToFill.get(a);c!=b&&(this._previousFill==c&&(this._previousFill=null),this._stateToFill.set(a,b),this.setInvalid(E.STYLES))},setBorderForState:function(a,b){null==this._stateToBorder&&(this._stateToBorder=new Kc);var c=this._stateToBorder.get(a);c!=b&&(this._previousBorder==c&&(this._previousBorder=null),this._stateToBorder.set(a,b),this.setInvalid(E.STYLES))},update:function(){this._previousBorder= +this.getCurrentBorder();this._previousFill=this.getCurrentFill();this.get_graphics().clear();this.draw()},draw:function(){this.applyLineStyle(this.getCurrentBorder());var a=this.getCurrentFill();this.applyFillStyle(a);this.drawPath();null!=a&&a!=qb.None&&this.get_graphics().endFill()},drawPath:function(){},applyLineStyle:function(a){if(null!=a)switch(a._hx_index){case 0:var b=a.thickness,c=a.color,d=a.alpha,f=a.pixelHinting,k=a.scaleMode,u=a.caps,g=a.joints;a=a.miterLimit;null==c&&(c=0);null==d&& +(d=1);null==f&&(f=!1);null==k&&(k=2);null==a&&(a=3);this.get_graphics().lineStyle(b,c,d,f,k,u,g,a);break;case 1:b=a.thickness;d=a.bitmapData;c=a.matrix;f=a.repeat;a=a.smooth;null==f&&(f=!0);null==a&&(a=!1);this.get_graphics().lineStyle(b);this.get_graphics().lineBitmapStyle(d,c,f,a);break;case 2:b=a.thickness;d=a.type;f=a.colors;k=a.alphas;u=a.ratios;g=a.spreadMethod;var n=a.interpolationMethod,q=a.focalPointRatio;a=a.matrix;null==a&&(a=h(this,this.getDefaultGradientMatrix));null==g&&(g=0);null== +n&&(n=1);null==q&&(q=0);c=a(this.getDefaultGradientMatrixWidth(),this.getDefaultGradientMatrixHeight(),this.getDefaultGradientMatrixRadians(),this.getDefaultGradientMatrixTx(),this.getDefaultGradientMatrixTy());this.get_graphics().lineStyle(b);this.get_graphics().lineGradientStyle(d,f,k,u,c,g,n,q);break;case 3:this.get_graphics().lineStyle(NaN,0,0)}},applyFillStyle:function(a){if(null!=a)switch(a._hx_index){case 0:var b=a.color;a=a.alpha;null==a&&(a=1);this.get_graphics().beginFill(b,a);break;case 1:var c= +a.bitmapData;b=a.matrix;var d=a.repeat;a=a.smoothing;null==d&&(d=!0);null==a&&(a=!1);this.get_graphics().beginBitmapFill(c,b,d,a);break;case 2:c=a.type;d=a.colors;var f=a.alphas,k=a.ratios,u=a.spreadMethod,g=a.interpolationMethod,n=a.focalPointRatio;a=a.matrix;null==a&&(a=h(this,this.getDefaultGradientMatrix));null==u&&(u=0);null==g&&(g=1);null==n&&(n=0);b=a(this.getDefaultGradientMatrixWidth(),this.getDefaultGradientMatrixHeight(),this.getDefaultGradientMatrixRadians(),this.getDefaultGradientMatrixTx(), +this.getDefaultGradientMatrixTy());this.get_graphics().beginGradientFill(c,d,f,k,b,u,g,n)}},getLineThickness:function(a){if(null==a)return 0;switch(a._hx_index){case 0:return a=a.thickness;case 2:return a=a.thickness;default:return 0}},getDefaultGradientMatrix:function(a,b,c,d,f){null==f&&(f=0);null==d&&(d=0);null==c&&(c=0);var k=new pa;k.createGradientBox(a,b,c,d,f);return k},getDefaultGradientMatrixWidth:function(){return this.actualWidth},getDefaultGradientMatrixHeight:function(){return this.actualHeight}, +getDefaultGradientMatrixRadians:function(){return 0},getDefaultGradientMatrixTx:function(){return 0},getDefaultGradientMatrixTy:function(){return 0},getCurrentBorder:function(){return null!=this._previousBorder?this._previousBorder:this.getCurrentBorderWithoutCache()},getCurrentBorderWithoutCache:function(){var a=this._stateContext;null==a&&v.__implements(this._uiContext,jd)&&(a=this._uiContext);return null!=this._stateToBorder&&null!=a&&(a=this._stateToBorder.get(a.get_currentState()),null!=a)?a: +null==this._uiContext?this._border:null==this._disabledBorder||this._uiContext.get_enabled()?null!=this._selectedBorder&&v.__implements(this._uiContext,Mc)&&this._uiContext.get_selected()?this._selectedBorder:this._border:this._disabledBorder},getCurrentFill:function(){return null!=this._previousFill?this._previousFill:this.getCurrentFillWithoutCache()},getCurrentFillWithoutCache:function(){var a=this._stateContext;null==a&&v.__implements(this._uiContext,jd)&&(a=this._uiContext);return null!=this._stateToFill&& +null!=a&&(a=this._stateToFill.get(a.get_currentState()),null!=a)?a:null==this._uiContext?this._fill:null==this._disabledFill||this._uiContext.get_enabled()?null!=this._selectedFill&&v.__implements(this._uiContext,Mc)&&this._uiContext.get_selected()?this._selectedFill:this._fill:this._disabledFill},needsStateUpdate:function(){var a=!1;this._previousBorder!=this.getCurrentBorderWithoutCache()&&(this._previousBorder=null,a=!0);this._previousFill!=this.getCurrentFillWithoutCache()&&(this._previousFill= +null,a=!0);return a},__class__:fd,__properties__:t(ze.prototype.__properties__,{set_selectedBorder:"set_selectedBorder",set_disabledBorder:"set_disabledBorder",set_border:"set_border",set_selectedFill:"set_selectedFill",set_disabledFill:"set_disabledFill",set_fill:"set_fill"})});var lb=function(a,b){this._cornerRadius=0;fd.call(this,a,b)};g["feathers.skins.RectangleSkin"]=lb;lb.__name__="feathers.skins.RectangleSkin";lb.__super__=fd;lb.prototype=t(fd.prototype,{set_cornerRadius:function(a){if(this._cornerRadius== +a)return this._cornerRadius;this._cornerRadius=a;this.setInvalid(E.STYLES);return this._cornerRadius},drawPath:function(){var a=this.getCurrentBorder(),b=this.getLineThickness(a);a=b/2;var c=Math.max(0,this.actualWidth-b);b=Math.max(0,this.actualHeight-b);if(0==this._cornerRadius)this.get_graphics().drawRect(a,a,c,b);else{var d=2*this._cornerRadius;d=Math.min(d,Math.min(this.actualWidth,this.actualHeight));this.get_graphics().drawRoundRect(a,a,c,b,d)}},__class__:lb,__properties__:t(fd.prototype.__properties__, +{set_cornerRadius:"set_cornerRadius"})});var wc=function(a,b){this._drawBaseBorder=!0;this._pointPosition=R.TOP;fd.call(this,a,b)};g["feathers.skins.TriangleSkin"]=wc;wc.__name__="feathers.skins.TriangleSkin";wc.__super__=fd;wc.prototype=t(fd.prototype,{set_pointPosition:function(a){if(this._pointPosition==a)return this._pointPosition;this._pointPosition=a;this.setInvalid(E.STYLES);return this._pointPosition},set_drawBaseBorder:function(a){if(this._drawBaseBorder==a)return this._drawBaseBorder;this._drawBaseBorder= +a;this.setInvalid(E.STYLES);return this._drawBaseBorder},drawPath:function(){var a=this.getCurrentBorder(),b=this.getLineThickness(a)/2,c=Math.max(0,this.actualWidth-b),d=Math.max(0,this.actualHeight-b);switch(this._pointPosition._hx_index){case 0:this.get_graphics().moveTo(this.actualWidth/2,b);this._drawBaseBorder?(this.get_graphics().lineTo(c,d),this.get_graphics().lineTo(b,d)):(this.get_graphics().lineTo(c,this.actualHeight),this.get_graphics().lineStyle(0,null,0,null,null,null,null,0),this.get_graphics().lineTo(b, +this.actualHeight),this.applyLineStyle(a));this.get_graphics().lineTo(this.actualWidth/2,b);break;case 1:this._drawBaseBorder?this.get_graphics().moveTo(b,b):this.get_graphics().moveTo(0,b);this.get_graphics().lineTo(c,this.actualHeight/2);this._drawBaseBorder?(this.get_graphics().lineTo(b,d),this.get_graphics().lineTo(b,b)):(this.get_graphics().lineTo(0,d),this.get_graphics().lineStyle(0,null,0,null,null,null,null,0),this.get_graphics().lineTo(0,b),this.applyLineStyle(a));break;case 2:this._drawBaseBorder? +(this.get_graphics().moveTo(b,b),this.get_graphics().lineTo(c,b)):(this.get_graphics().lineStyle(0,null,0,null,null,null,null,0),this.get_graphics().moveTo(b,0),this.get_graphics().lineTo(c,0),this.applyLineStyle(a));this.get_graphics().lineTo(this.actualWidth/2,d);this._drawBaseBorder?this.get_graphics().lineTo(b,b):this.get_graphics().lineTo(b,0);break;case 3:this._drawBaseBorder?(this.get_graphics().moveTo(c,b),this.get_graphics().lineTo(c,d)):(this.get_graphics().moveTo(this.actualWidth,b),this.get_graphics().lineStyle(0, +null,0,null,null,null,null,0),this.get_graphics().lineTo(this.actualWidth,d),this.applyLineStyle(a));this.get_graphics().lineTo(b,this.actualHeight/2);this._drawBaseBorder?this.get_graphics().lineTo(c,b):this.get_graphics().lineTo(this.actualWidth,b);break;default:throw new ab("Triangle pointPosition not supported: "+p.string(this._pointPosition));}},__class__:wc,__properties__:t(fd.prototype.__properties__,{set_drawBaseBorder:"set_drawBaseBorder",set_pointPosition:"set_pointPosition"})});var Xg= +function(a,b){fd.call(this,a,b)};g["feathers.skins.UnderlineSkin"]=Xg;Xg.__name__="feathers.skins.UnderlineSkin";Xg.__super__=fd;Xg.prototype=t(fd.prototype,{draw:function(){var a=this.getCurrentBorder(),b=this.getLineThickness(a)/2,c=this.getCurrentFill();null!=c&&(this.applyFillStyle(c),this.get_graphics().drawRect(0,0,this.actualWidth,Math.max(0,this.actualHeight-b)),this.get_graphics().endFill());c=Math.min(this.actualWidth,b);var d=Math.max(c,this.actualWidth-b);b=Math.max(Math.min(this.actualHeight, +b),this.actualHeight-b);this.applyLineStyle(a);this.get_graphics().moveTo(c,b);this.get_graphics().lineTo(d,b)},__class__:Xg});var jg=function(){};g["feathers.style.IStyleProvider"]=jg;jg.__name__="feathers.style.IStyleProvider";jg.__isInterface__=!0;jg.__interfaces__=[J];jg.prototype={__class__:jg};var Ae=function(){S.call(this)};g["feathers.style.ClassVariantStyleProvider"]=Ae;Ae.__name__="feathers.style.ClassVariantStyleProvider";Ae.__interfaces__=[jg];Ae.__super__=S;Ae.prototype=t(S.prototype, +{setStyleFunction:function(a,b,c){var d=this;null==this.styleTargets&&(this.styleTargets=new Kc);a=a.__name__;b=null==b?tf.Class(a):tf.ClassAndVariant(a,b);if(null==c){if(!this.styleTargets.exists(b))return;this.styleTargets.remove(b)}else{a=this.styleTargets.get(b);if(c==a||0==C.compare(c,a))return;this.styleTargets.set(b,c)}pd.dispatch(this,"stylesChange",function(a){var b=d.getStyleContext(a);a=d.getVariant(a);b=d.getStyleFunctionInternal(b,a,!1);return c!=b?0==C.compare(c,b):!0})},getStyleFunction:function(a, +b){return this.getStyleFunctionInternal(a,b,!0)},applyStyles:function(a){if(null!=this.styleTargets){var b=this.getStyleContext(a),c=this.getVariant(a);b=this.getStyleFunctionInternal(b,c,!1);null!=b&&b(a)}},getStyleContext:function(a){var b=null;v.__implements(a,mc)&&(b=a.get_styleContext());null==b&&(b=v.getClass(a));return b},getVariant:function(a){var b=null;v.__implements(a,mc)&&(b=a.get_variant());return b},getStyleFunctionInternal:function(a,b,c){if(null==this.styleTargets)return null;a=a.__name__; +b=null==b?tf.Class(a):tf.ClassAndVariant(a,b);b=this.styleTargets.get(b);return null!=b||c?b:this.styleTargets.get(tf.Class(a))},__class__:Ae});var tf=D["feathers.style._ClassVariantStyleProvider.StyleTarget"]={__ename__:!0,__constructs__:null,Class:(z=function(a){return{_hx_index:0,type:a,__enum__:"feathers.style._ClassVariantStyleProvider.StyleTarget",toString:r}},z._hx_name="Class",z.__params__=["type"],z),ClassAndVariant:(z=function(a,b){return{_hx_index:1,type:a,variant:b,__enum__:"feathers.style._ClassVariantStyleProvider.StyleTarget", +toString:r}},z._hx_name="ClassAndVariant",z.__params__=["type","variant"],z)};tf.__constructs__=[tf.Class,tf.ClassAndVariant];var kg=function(){};g["feathers.style.ITheme"]=kg;kg.__name__="feathers.style.ITheme";kg.__isInterface__=!0;kg.prototype={__class__:kg};var ii=function(){};g["feathers.style.IDarkModeTheme"]=ii;ii.__name__="feathers.style.IDarkModeTheme";ii.__isInterface__=!0;ii.__interfaces__=[kg];var Ib=function(){};g["feathers.style.Theme"]=Ib;Ib.__name__="feathers.style.Theme";Ib.__properties__= +{get_fallbackTheme:"get_fallbackTheme"};Ib.get_fallbackTheme=function(){null==Ib._fallbackTheme&&(Ib._fallbackTheme=new Yg);return Ib._fallbackTheme};Ib.getTheme=function(a){if(a instanceof L){for(var b=a;null!=b;){if(v.__implements(b,Ta)&&!b.get_themeEnabled())return null;b=b.parent}if(null!=Ib.roots){b=0;for(var c=Ib.roots;b>16&255)+(b>>16&255);255>8&255)+(b>>8&255);255>16&255)-(b>>16&255);0>c&&(c=0);var d=(a>>8&255)-(b>>8&255);0>d&&(d=0);a=(a&255)-(b&255);0>a&&(a=0);return(c<<16)+(d<<8)+a},mediaQueryList_changeHandler:function(a){this.refreshFontSizes();this.refreshPaddings(); +pd.dispatch(this.styleProvider,"stylesChange")},__class__:ec});var Yg=function(a,b){ec.call(this,a,b)};g["feathers.themes.steel.DefaultSteelTheme"]=Yg;Yg.__name__="feathers.themes.steel.DefaultSteelTheme";Yg.__super__=ec;Yg.prototype=t(ec.prototype,{__class__:Yg});var Ng=function(){};g["feathers.themes.steel.components.SteelApplicationStyles"]=Ng;Ng.__name__="feathers.themes.steel.components.SteelApplicationStyles";Ng.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec? +b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(U,null)&&b.setStyleFunction(U,null,function(b){null==b.get_scaleManager()&&b.set_scaleManager(new hg);Ng.refreshStageColor(b.stage,a)}))};Ng.refreshStageColor=function(a,b){null!=a&&a.set_color(b.rootFillColor)};var Zi=function(){};g["feathers.themes.steel.components.SteelButtonStyles"]=Zi;Zi.__name__="feathers.themes.steel.components.SteelButtonStyles";Zi.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec? +b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(mb,null)&&b.setStyleFunction(mb,null,function(b){if(null==b.get_backgroundSkin()){var c=new lb;c.set_fill(a.getButtonFill());c.set_disabledFill(a.getButtonDisabledFill());c.setFillForState(ac.DOWN,a.getReversedActiveThemeFill());c.set_border(a.getButtonBorder());c.set_disabledBorder(a.getButtonDisabledBorder());c.setBorderForState(ac.DOWN,a.getActiveFillBorder());c.set_cornerRadius(3);b.set_backgroundSkin(c)}null==b.get_focusRectSkin()&& +(c=new lb,c.set_fill(qb.None),c.set_border(a.getFocusBorder()),c.set_cornerRadius(3),b.set_focusRectSkin(c));null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat());b.set_paddingTop(a.smallPadding);b.set_paddingRight(a.largePadding);b.set_paddingBottom(a.smallPadding);b.set_paddingLeft(a.largePadding);b.set_gap(a.smallPadding)}),null==b.getStyleFunction(mb,mb.VARIANT_PRIMARY)&&b.setStyleFunction(mb,mb.VARIANT_PRIMARY, +function(b){if(null==b.get_backgroundSkin()){var c=new lb;c.set_fill(a.getActiveThemeFill());c.set_disabledFill(a.getButtonDisabledFill());c.setFillForState(ac.DOWN,a.getReversedActiveThemeFill());c.set_border(a.getActiveFillBorder());c.set_disabledBorder(a.getButtonDisabledBorder());c.set_cornerRadius(3);b.set_backgroundSkin(c)}null==b.get_focusRectSkin()&&(c=new lb,c.set_fill(qb.None),c.set_border(a.getFocusBorder()),c.set_cornerRadius(3),b.set_focusRectSkin(c));null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat()); +null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat());b.set_paddingTop(a.smallPadding);b.set_paddingRight(a.largePadding);b.set_paddingBottom(a.smallPadding);b.set_paddingLeft(a.largePadding);b.set_gap(a.smallPadding)}),null==b.getStyleFunction(mb,mb.VARIANT_DANGER)&&b.setStyleFunction(mb,mb.VARIANT_DANGER,function(b){if(null==b.get_backgroundSkin()){var c=new lb;c.set_fill(a.getDangerFill());c.set_disabledFill(a.getButtonDisabledFill());c.setFillForState(ac.DOWN,a.getReversedDangerFill()); +c.set_border(a.getDangerBorder());c.set_disabledBorder(a.getButtonDisabledBorder());c.set_cornerRadius(3);b.set_backgroundSkin(c)}null==b.get_focusRectSkin()&&(c=new lb,c.set_fill(qb.None),c.set_border(a.getFocusBorder()),c.set_cornerRadius(3),b.set_focusRectSkin(c));null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat());b.set_paddingTop(a.smallPadding);b.set_paddingRight(a.largePadding);b.set_paddingBottom(a.smallPadding); +b.set_paddingLeft(a.largePadding);b.set_gap(a.smallPadding)}))};var $i=function(){};g["feathers.themes.steel.components.SteelCalloutStyles"]=$i;$i.__name__="feathers.themes.steel.components.SteelCalloutStyles";$i.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(ub,null)&&b.setStyleFunction(ub,null,function(b){if(null==b.get_backgroundSkin()){var c=new lb;c.set_fill(a.getContainerFill());c.set_border(a.getContainerBorder()); +b.set_backgroundSkin(c)}null==b.get_topArrowSkin()&&(c=new wc,c.set_pointPosition(R.TOP),c.set_drawBaseBorder(!1),c.set_fill(a.getContainerFill()),c.set_border(a.getContainerBorder()),c.set_width(14),c.set_height(8),b.set_topArrowSkin(c));null==b.get_rightArrowSkin()&&(c=new wc,c.set_pointPosition(R.RIGHT),c.set_drawBaseBorder(!1),c.set_fill(a.getContainerFill()),c.set_border(a.getContainerBorder()),c.set_width(8),c.set_height(14),b.set_rightArrowSkin(c));null==b.get_bottomArrowSkin()&&(c=new wc, +c.set_pointPosition(R.BOTTOM),c.set_drawBaseBorder(!1),c.set_fill(a.getContainerFill()),c.set_border(a.getContainerBorder()),c.set_width(14),c.set_height(8),b.set_bottomArrowSkin(c));null==b.get_leftArrowSkin()&&(c=new wc,c.set_pointPosition(R.LEFT),c.set_drawBaseBorder(!1),c.set_fill(a.getContainerFill()),c.set_border(a.getContainerBorder()),c.set_width(8),c.set_height(14),b.set_leftArrowSkin(c));b.set_topArrowGap(-a.borderThickness);b.set_rightArrowGap(-a.borderThickness);b.set_bottomArrowGap(-a.borderThickness); +b.set_leftArrowGap(-a.borderThickness);b.set_paddingTop(a.borderThickness);b.set_paddingRight(a.borderThickness);b.set_paddingBottom(a.borderThickness);b.set_paddingLeft(a.borderThickness);b.set_marginTop(a.xlargePadding);b.set_marginRight(a.xlargePadding);b.set_marginBottom(a.xlargePadding);b.set_marginLeft(a.xlargePadding)}))};var aj=function(){};g["feathers.themes.steel.components.SteelHScrollBarStyles"]=aj;aj.__name__="feathers.themes.steel.components.SteelHScrollBarStyles";aj.initialize=function(a){if(null== +a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(w,null)&&b.setStyleFunction(w,null,function(b){var c=Oc.isDesktop();if(null==b.get_thumbSkin()){var f=new lb;f.set_fill(a.getScrollBarThumbFill());f.set_disabledFill(a.getScrollBarThumbDisabledFill());f.set_border(Tb.None);var k=c?6:4;f.set_width(k);f.set_height(k);f.set_minWidth(k);f.set_minHeight(k);f.set_cornerRadius(k/2);k=new yc;k.set_keepDownStateOnRollOut(!0);k.set_backgroundSkin(f); +b.set_thumbSkin(k)}c&&null==b.get_trackSkin()&&(c=new lb,c.set_fill(a.getControlFill()),c.set_disabledFill(a.getControlDisabledFill()),c.set_border(Tb.None),c.set_width(12),c.set_height(12),c.set_minWidth(12),c.set_minHeight(12),b.set_trackSkin(c));b.set_paddingTop(a.xsmallPadding);b.set_paddingRight(a.xsmallPadding);b.set_paddingBottom(a.xsmallPadding);b.set_paddingLeft(a.xsmallPadding)}),null==b.getStyleFunction(mb,w.CHILD_VARIANT_DECREMENT_BUTTON)&&b.setStyleFunction(mb,w.CHILD_VARIANT_DECREMENT_BUTTON, +function(b){if(null==b.get_backgroundSkin()){var c=new lb;c.set_fill(a.getControlFill());c.set_disabledFill(a.getControlDisabledFill());c.setFillForState(ac.DOWN,a.getReversedActiveThemeFill());c.set_border(Tb.None);c.set_width(12);c.set_height(12);b.set_backgroundSkin(c)}null==b.get_icon()&&(c=new wc,c.set_pointPosition(R.LEFT),c.set_fill(qb.SolidColor(a.scrollBarThumbFillColor)),c.set_disabledFill(qb.SolidColor(a.scrollBarThumbDisabledFillColor)),c.set_width(4),c.set_height(8),b.set_icon(c));b.set_showText(!1); +b.set_paddingTop(a.xsmallPadding);b.set_paddingRight(a.xsmallPadding);b.set_paddingBottom(a.xsmallPadding);b.set_paddingLeft(a.xsmallPadding);b.set_gap(a.xsmallPadding)}),null==b.getStyleFunction(mb,w.CHILD_VARIANT_INCREMENT_BUTTON)&&b.setStyleFunction(mb,w.CHILD_VARIANT_INCREMENT_BUTTON,function(b){if(null==b.get_backgroundSkin()){var c=new lb;c.set_fill(a.getControlFill());c.set_disabledFill(a.getControlDisabledFill());c.setFillForState(ac.DOWN,a.getReversedActiveThemeFill());c.set_border(Tb.None); +c.set_width(12);c.set_height(12);b.set_backgroundSkin(c)}null==b.get_icon()&&(c=new wc,c.set_pointPosition(R.RIGHT),c.set_fill(qb.SolidColor(a.scrollBarThumbFillColor)),c.set_disabledFill(qb.SolidColor(a.scrollBarThumbDisabledFillColor)),c.set_width(4),c.set_height(8),b.set_icon(c));b.set_showText(!1);b.set_paddingTop(a.xsmallPadding);b.set_paddingRight(a.xsmallPadding);b.set_paddingBottom(a.xsmallPadding);b.set_paddingLeft(a.xsmallPadding);b.set_gap(a.xsmallPadding)}))};var bj=function(){};g["feathers.themes.steel.components.SteelHeaderStyles"]= +bj;bj.__name__="feathers.themes.steel.components.SteelHeaderStyles";bj.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(G,null)&&b.setStyleFunction(G,null,function(b){var c=Oc.isDesktop();if(null==b.get_backgroundSkin()){var f=new lb;f.set_fill(a.getHeaderFill());f.set_border(Tb.None);c?(f.set_width(32),f.set_height(32),f.set_minHeight(32)):(f.set_width(44),f.set_height(44),f.set_minHeight(44));b.set_backgroundSkin(f)}null== +b.get_textFormat()&&b.set_textFormat(a.getHeaderTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledHeaderTextFormat());c?(b.set_paddingTop(a.mediumPadding),b.set_paddingRight(a.largePadding),b.set_paddingBottom(a.mediumPadding),b.set_paddingLeft(a.largePadding),b.set_minGap(a.mediumPadding)):(b.set_paddingTop(a.largePadding),b.set_paddingRight(a.largePadding),b.set_paddingBottom(a.largePadding),b.set_paddingLeft(a.largePadding),b.set_minGap(a.largePadding))}))}; +var lj=function(){};g["feathers.themes.steel.components.SteelItemRendererStyles"]=lj;lj.__name__="feathers.themes.steel.components.SteelItemRendererStyles";lj.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(ee,null)&&b.setStyleFunction(ee,null,function(b){var c=Oc.isDesktop();if(null==b.get_backgroundSkin()){var f=new Xg;f.set_fill(a.getContainerFill());f.set_border(a.getDividerBorder());f.set_selectedFill(a.getActiveThemeFill()); +f.setFillForState(uc.DOWN(!1),a.getActiveThemeFill());c?(f.set_width(26),f.set_height(26),f.set_minWidth(26),f.set_minHeight(26)):(f.set_width(44),f.set_height(44),f.set_minWidth(44),f.set_minHeight(44));b.set_backgroundSkin(f)}null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat());null==b.get_secondaryTextFormat()&&b.set_secondaryTextFormat(a.getSecondaryDetailTextFormat());null==b.get_disabledSecondaryTextFormat()&& +b.set_disabledSecondaryTextFormat(a.getDisabledDetailTextFormat());b.set_paddingTop(a.smallPadding);b.set_paddingRight(a.largePadding);b.set_paddingBottom(a.smallPadding);b.set_paddingLeft(a.largePadding);b.set_gap(a.smallPadding);b.set_horizontalAlign(Eb.LEFT)}))};var cj=function(){};g["feathers.themes.steel.components.SteelLabelStyles"]=cj;cj.__name__="feathers.themes.steel.components.SteelLabelStyles";cj.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!= +a&&(b=a.styleProvider,null==b.getStyleFunction(ra,null)&&b.setStyleFunction(ra,null,function(b){null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat())}),null==b.getStyleFunction(ra,ra.VARIANT_HEADING)&&b.setStyleFunction(ra,ra.VARIANT_HEADING,function(b){null==b.get_textFormat()&&b.set_textFormat(a.getHeaderTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledHeaderTextFormat())}), +null==b.getStyleFunction(ra,ra.VARIANT_DETAIL)&&b.setStyleFunction(ra,ra.VARIANT_DETAIL,function(b){null==b.get_textFormat()&&b.set_textFormat(a.getDetailTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledDetailTextFormat())}),null==b.getStyleFunction(ra,ra.VARIANT_DANGER)&&b.setStyleFunction(ra,ra.VARIANT_DANGER,function(b){null==b.get_textFormat()&&b.set_textFormat(a.getDangerTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat())}))}; +var Yi=function(){};g["feathers.themes.steel.components.SteelLayoutGroupStyles"]=Yi;Yi.__name__="feathers.themes.steel.components.SteelLayoutGroupStyles";Yi.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(na,na.VARIANT_TOOL_BAR)&&b.setStyleFunction(na,na.VARIANT_TOOL_BAR,function(b){var c=Oc.isDesktop();if(null==b.get_backgroundSkin()){var f=new lb;f.set_fill(a.getHeaderFill());f.set_border(Tb.None);c?(f.set_width(32), +f.set_height(32),f.set_minHeight(32)):(f.set_width(44),f.set_height(44),f.set_minHeight(44));b.set_backgroundSkin(f)}null==b.get_layout()&&(c=new Qe,c.set_horizontalAlign(Eb.LEFT),c.set_verticalAlign(wb.MIDDLE),c.set_paddingTop(a.smallPadding),c.set_paddingRight(a.largePadding),c.set_paddingBottom(a.smallPadding),c.set_paddingLeft(a.largePadding),c.set_gap(a.smallPadding),b.set_layout(c))}))};var ej=function(){};g["feathers.themes.steel.components.SteelListViewStyles"]=ej;ej.__name__="feathers.themes.steel.components.SteelListViewStyles"; +ej.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}if(null!=a){var c=function(b){var c=Oc.isDesktop();b.set_autoHideScrollBars(!c);b.set_fixedScrollBars(c);null==b.get_layout()&&(c=new We,c.set_requestedRowCount(5),b.set_layout(c));null==b.get_backgroundSkin()&&(c=new lb,c.set_fill(a.getContainerFill()),c.set_border(a.getContainerBorder()),c.set_width(10),c.set_height(10),b.set_backgroundSkin(c));null==b.get_focusRectSkin()&&(c=new lb,c.set_fill(qb.None),c.set_border(a.getFocusBorder()), +b.set_focusRectSkin(c));null==b.get_dragDropIndicatorSkin()&&(c=new lb,c.set_fill(a.getActiveThemeFill()),c.set_border(Tb.None),c.set_width(2),c.set_height(2),b.set_dragDropIndicatorSkin(c));b.set_paddingTop(a.borderThickness);b.set_paddingRight(a.borderThickness);b.set_paddingBottom(a.borderThickness);b.set_paddingLeft(a.borderThickness)},d=function(b){var c=Oc.isDesktop();b.set_autoHideScrollBars(!c);b.set_fixedScrollBars(c);null==b.get_layout()&&(c=new We,c.set_requestedRowCount(5),b.set_layout(c)); +null==b.get_backgroundSkin()&&(c=new lb,c.set_fill(a.getContainerFill()),c.set_border(Tb.None),c.set_width(10),c.set_height(10),b.set_backgroundSkin(c));null==b.get_focusRectSkin()&&(c=new lb,c.set_fill(qb.None),c.set_border(a.getFocusBorder()),b.set_focusRectSkin(c))};b=a.styleProvider;null==b.getStyleFunction(Ya,null)&&b.setStyleFunction(Ya,null,function(a){Oc.isDesktop()?c(a):d(a)});null==b.getStyleFunction(Ya,Ya.VARIANT_BORDER)&&b.setStyleFunction(Ya,Ya.VARIANT_BORDER,c);null==b.getStyleFunction(Ya, +Ya.VARIANT_BORDERLESS)&&b.setStyleFunction(Ya,Ya.VARIANT_BORDERLESS,d);null==b.getStyleFunction(Ya,Ya.VARIANT_POP_UP)&&b.setStyleFunction(Ya,Ya.VARIANT_POP_UP,function(a){if(null==a.get_layout()){var b=new We;b.set_requestedMinRowCount(1);b.set_requestedMaxRowCount(5);a.set_layout(b)}c(a)})}};var gj=function(){};g["feathers.themes.steel.components.SteelPanelStyles"]=gj;gj.__name__="feathers.themes.steel.components.SteelPanelStyles";gj.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme(); +a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(ve,null)&&b.setStyleFunction(ve,null,function(b){var c=Oc.isDesktop();b.set_autoHideScrollBars(!c);b.set_fixedScrollBars(c);null==b.get_backgroundSkin()&&(c=new lb,c.set_fill(a.getContainerFill()),c.set_border(Tb.None),b.set_backgroundSkin(c));null==b.get_scrollBarsCornerSkin()&&(c=new lb,c.set_fill(a.getContainerFill()),c.set_border(Tb.None),b.set_scrollBarsCornerSkin(c))}))};var hj=function(){};g["feathers.themes.steel.components.SteelPopUpListViewStyles"]= +hj;hj.__name__="feathers.themes.steel.components.SteelPopUpListViewStyles";hj.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(Pb,null)&&b.setStyleFunction(Pb,null,function(a){Oc.isDesktop()&&a.set_popUpAdapter(new eg)}),null==b.getStyleFunction(mb,Pb.CHILD_VARIANT_BUTTON)&&b.setStyleFunction(mb,Pb.CHILD_VARIANT_BUTTON,function(b){a.styleProvider.getStyleFunction(mb,null)(b);b.set_horizontalAlign(Eb.LEFT); +b.set_gap(1/0);b.set_minGap(a.mediumPadding);if(null==b.get_icon()){var c=new wc;c.set_pointPosition(R.BOTTOM);c.set_fill(qb.SolidColor(a.textColor));c.set_disabledFill(qb.SolidColor(a.disabledTextColor));c.set_width(8);c.set_height(4);b.set_icon(c)}b.set_iconPosition(R.RIGHT)}),null==b.getStyleFunction(Ya,Pb.CHILD_VARIANT_LIST_VIEW)&&b.setStyleFunction(Ya,Pb.CHILD_VARIANT_LIST_VIEW,function(b){a.styleProvider.getStyleFunction(Ya,Ya.VARIANT_POP_UP)(b)}))};var fj=function(){};g["feathers.themes.steel.components.SteelScrollContainerStyles"]= +fj;fj.__name__="feathers.themes.steel.components.SteelScrollContainerStyles";fj.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(bc,null)&&b.setStyleFunction(bc,null,function(b){var c=Oc.isDesktop();b.set_autoHideScrollBars(!c);b.set_fixedScrollBars(c);null==b.get_backgroundSkin()&&(c=new lb,c.set_fill(a.getContainerFill()),c.set_border(Tb.None),b.set_backgroundSkin(c));null==b.get_scrollBarsCornerSkin()&& +(c=new lb,c.set_fill(a.getContainerFill()),c.set_border(Tb.None),b.set_scrollBarsCornerSkin(c));null==b.get_focusRectSkin()&&(c=new lb,c.set_fill(qb.None),c.set_border(a.getFocusBorder()),b.set_focusRectSkin(c))}))};var ij=function(){};g["feathers.themes.steel.components.SteelTextCalloutStyles"]=ij;ij.__name__="feathers.themes.steel.components.SteelTextCalloutStyles";ij.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(Ec, +null)&&b.setStyleFunction(Ec,null,function(b){null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat());if(null==b.get_backgroundSkin()){var c=new lb;c.set_fill(a.getContainerFill());c.set_border(a.getContainerBorder());b.set_backgroundSkin(c)}null==b.get_topArrowSkin()&&(c=new wc,c.set_pointPosition(R.TOP),c.set_drawBaseBorder(!1),c.set_fill(a.getContainerFill()),c.set_border(a.getContainerBorder()),c.set_width(10), +c.set_height(6),b.set_topArrowSkin(c));null==b.get_rightArrowSkin()&&(c=new wc,c.set_pointPosition(R.RIGHT),c.set_drawBaseBorder(!1),c.set_fill(a.getContainerFill()),c.set_border(a.getContainerBorder()),c.set_width(6),c.set_height(10),b.set_rightArrowSkin(c));null==b.get_bottomArrowSkin()&&(c=new wc,c.set_pointPosition(R.BOTTOM),c.set_drawBaseBorder(!1),c.set_fill(a.getContainerFill()),c.set_border(a.getContainerBorder()),c.set_width(10),c.set_height(6),b.set_bottomArrowSkin(c));null==b.get_leftArrowSkin()&& +(c=new wc,c.set_pointPosition(R.LEFT),c.set_drawBaseBorder(!1),c.set_fill(a.getContainerFill()),c.set_border(a.getContainerBorder()),c.set_width(6),c.set_height(10),b.set_leftArrowSkin(c));b.set_topArrowGap(-a.borderThickness);b.set_rightArrowGap(-a.borderThickness);b.set_bottomArrowGap(-a.borderThickness);b.set_leftArrowGap(-a.borderThickness);b.set_paddingTop(a.borderThickness);b.set_paddingRight(a.borderThickness);b.set_paddingBottom(a.borderThickness);b.set_paddingLeft(a.borderThickness);b.set_marginTop(a.xlargePadding); +b.set_marginRight(a.xlargePadding);b.set_marginBottom(a.xlargePadding);b.set_marginLeft(a.xlargePadding)}),null==b.getStyleFunction(Ec,Ec.VARIANT_DANGER)&&b.setStyleFunction(Ec,Ec.VARIANT_DANGER,function(b){null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat());if(null==b.get_backgroundSkin()){var c=new lb;c.set_fill(a.getDangerFill());c.set_border(a.getDangerBorder());b.set_backgroundSkin(c)}null==b.get_topArrowSkin()&& +(c=new wc,c.set_pointPosition(R.TOP),c.set_drawBaseBorder(!1),c.set_fill(a.getDangerFill()),c.set_border(a.getDangerBorder()),c.set_width(10),c.set_height(6),b.set_topArrowSkin(c));null==b.get_rightArrowSkin()&&(c=new wc,c.set_pointPosition(R.RIGHT),c.set_drawBaseBorder(!1),c.set_fill(a.getDangerFill()),c.set_border(a.getDangerBorder()),c.set_width(6),c.set_height(10),b.set_rightArrowSkin(c));null==b.get_bottomArrowSkin()&&(c=new wc,c.set_pointPosition(R.BOTTOM),c.set_drawBaseBorder(!1),c.set_fill(a.getDangerFill()), +c.set_border(a.getDangerBorder()),c.set_width(10),c.set_height(6),b.set_bottomArrowSkin(c));null==b.get_leftArrowSkin()&&(c=new wc,c.set_pointPosition(R.LEFT),c.set_drawBaseBorder(!1),c.set_fill(a.getDangerFill()),c.set_border(a.getDangerBorder()),c.set_width(6),c.set_height(10),b.set_leftArrowSkin(c));b.set_topArrowGap(-a.borderThickness);b.set_rightArrowGap(-a.borderThickness);b.set_bottomArrowGap(-a.borderThickness);b.set_leftArrowGap(-a.borderThickness);b.set_paddingTop(a.borderThickness);b.set_paddingRight(a.borderThickness); +b.set_paddingBottom(a.borderThickness);b.set_paddingLeft(a.borderThickness);b.set_marginTop(a.xlargePadding);b.set_marginRight(a.xlargePadding);b.set_marginBottom(a.xlargePadding);b.set_marginLeft(a.xlargePadding)}))};var jj=function(){};g["feathers.themes.steel.components.SteelToggleButtonStyles"]=jj;jj.__name__="feathers.themes.steel.components.SteelToggleButtonStyles";jj.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(Qb, +null)&&b.setStyleFunction(Qb,null,function(b){if(null==b.get_backgroundSkin()){var c=new lb;c.set_fill(a.getButtonFill());c.set_disabledFill(a.getButtonDisabledFill());c.set_selectedFill(a.getThemeFill());c.setFillForState(uc.DOWN(!1),a.getReversedActiveThemeFill());c.set_border(a.getButtonBorder());c.set_selectedBorder(a.getSelectedBorder());c.set_disabledBorder(a.getButtonDisabledBorder());c.setBorderForState(uc.DOWN(!1),a.getActiveFillBorder());c.setBorderForState(uc.DOWN(!0),a.getActiveFillBorder()); +c.set_cornerRadius(3);b.set_backgroundSkin(c)}null==b.get_focusRectSkin()&&(c=new lb,c.set_fill(qb.None),c.set_border(a.getFocusBorder()),c.set_cornerRadius(3),b.set_focusRectSkin(c));null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledTextFormat());b.set_paddingTop(a.smallPadding);b.set_paddingRight(a.largePadding);b.set_paddingBottom(a.smallPadding);b.set_paddingLeft(a.largePadding);b.set_gap(a.smallPadding)}))};var nj= +function(){};g["feathers.themes.steel.components.SteelToolTipStyles"]=nj;nj.__name__="feathers.themes.steel.components.SteelToolTipStyles";nj.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(ra,ge.CHILD_VARIANT_TOOL_TIP)&&b.setStyleFunction(ra,ge.CHILD_VARIANT_TOOL_TIP,function(b){if(null==b.get_backgroundSkin()){var c=new lb;c.set_border(a.getBorder());c.set_fill(a.getContainerFill());c.set_cornerRadius(2); +c.set_maxWidth(276);b.set_backgroundSkin(c)}null==b.get_textFormat()&&b.set_textFormat(a.getTextFormat());null==b.get_disabledTextFormat()&&b.set_disabledTextFormat(a.getDisabledDetailTextFormat());b.set_wordWrap(!0);b.set_paddingTop(a.xsmallPadding);b.set_paddingRight(a.xsmallPadding);b.set_paddingBottom(a.xsmallPadding);b.set_paddingLeft(a.xsmallPadding)}))};var dj=function(){};g["feathers.themes.steel.components.SteelVScrollBarStyles"]=dj;dj.__name__="feathers.themes.steel.components.SteelVScrollBarStyles"; +dj.initialize=function(a){if(null==a){var b=Ib.get_fallbackTheme();a=b instanceof ec?b:null}null!=a&&(b=a.styleProvider,null==b.getStyleFunction(pc,null)&&b.setStyleFunction(pc,null,function(b){var c=Oc.isDesktop();if(null==b.get_thumbSkin()){var f=new lb;f.set_fill(a.getScrollBarThumbFill());f.set_disabledFill(a.getScrollBarThumbDisabledFill());f.set_border(Tb.None);var k=c?6:4;f.set_width(k);f.set_height(k);f.set_minWidth(k);f.set_minHeight(k);f.set_cornerRadius(k/2);k=new yc;k.set_keepDownStateOnRollOut(!0); +k.set_backgroundSkin(f);b.set_thumbSkin(k)}c&&null==b.get_trackSkin()&&(c=new lb,c.set_fill(a.getControlFill()),c.set_disabledFill(a.getControlDisabledFill()),c.set_border(Tb.None),c.set_width(12),c.set_height(12),c.set_minWidth(12),c.set_minHeight(12),b.set_trackSkin(c));b.set_paddingTop(a.xsmallPadding);b.set_paddingRight(a.xsmallPadding);b.set_paddingBottom(a.xsmallPadding);b.set_paddingLeft(a.xsmallPadding)}),null==b.getStyleFunction(mb,pc.CHILD_VARIANT_DECREMENT_BUTTON)&&b.setStyleFunction(mb, +pc.CHILD_VARIANT_DECREMENT_BUTTON,function(b){if(null==b.get_backgroundSkin()){var c=new lb;c.set_fill(a.getControlFill());c.set_disabledFill(a.getControlDisabledFill());c.setFillForState(ac.DOWN,a.getReversedActiveThemeFill());c.set_border(Tb.None);c.set_width(12);c.set_height(12);b.set_backgroundSkin(c)}null==b.get_icon()&&(c=new wc,c.set_pointPosition(R.TOP),c.set_fill(qb.SolidColor(a.scrollBarThumbFillColor)),c.set_disabledFill(qb.SolidColor(a.scrollBarThumbDisabledFillColor)),c.set_width(8), +c.set_height(4),b.set_icon(c));b.set_showText(!1);b.set_paddingTop(a.xsmallPadding);b.set_paddingRight(a.xsmallPadding);b.set_paddingBottom(a.xsmallPadding);b.set_paddingLeft(a.xsmallPadding);b.set_gap(a.xsmallPadding)}),null==b.getStyleFunction(mb,pc.CHILD_VARIANT_INCREMENT_BUTTON)&&b.setStyleFunction(mb,pc.CHILD_VARIANT_INCREMENT_BUTTON,function(b){if(null==b.get_backgroundSkin()){var c=new lb;c.set_fill(a.getControlFill());c.set_disabledFill(a.getControlDisabledFill());c.setFillForState(ac.DOWN, +a.getReversedActiveThemeFill());c.set_border(Tb.None);c.set_width(12);c.set_height(12);b.set_backgroundSkin(c)}null==b.get_icon()&&(c=new wc,c.set_pointPosition(R.BOTTOM),c.set_fill(qb.SolidColor(a.scrollBarThumbFillColor)),c.set_disabledFill(qb.SolidColor(a.scrollBarThumbDisabledFillColor)),c.set_width(8),c.set_height(4),b.set_icon(c));b.set_showText(!1);b.set_paddingTop(a.xsmallPadding);b.set_paddingRight(a.xsmallPadding);b.set_paddingBottom(a.xsmallPadding);b.set_paddingLeft(a.xsmallPadding);b.set_gap(a.xsmallPadding)}))}; +var ed=function(){};g["feathers.utils.DPadFocusUtil"]=ed;ed.__name__="feathers.utils.DPadFocusUtil";ed.isBetterFocusForRelativePosition=function(a,b,c,d){var f=a.getBounds(a.stage);a=ed.calculateMinPrimaryAxisDistanceForRelativePosition(c,f,d);if(Infinity==a)return!1;var k=ed.calculateMaxPrimaryAxisDistanceForRelativePosition(c,f,d),u=ed.calculateSecondaryAxisDistanceForRelativePosition(c,f,d),g=ed.itemsAreOnSameAxis(c,f,d),n=Infinity,q=Infinity,h=Infinity;f=!1;null!=b&&(f=b.getBounds(b.stage),n= +ed.calculateMinPrimaryAxisDistanceForRelativePosition(c,f,d),q=ed.calculateMaxPrimaryAxisDistanceForRelativePosition(c,f,d),h=ed.calculateSecondaryAxisDistanceForRelativePosition(c,f,d),f=ed.itemsAreOnSameAxis(c,f,d));if(g&&f)return 0b.get_bottom()||a.y>=b.get_bottom())if(a=a.get_bottom()-b.y,0b.get_right()||a.x>=b.get_right())if(a=a.get_right()- +b.x,0b.get_bottom()||a.y>=b.get_bottom())if(a=a.get_bottom()-b.get_bottom(),0b.get_right()||a.x>=b.get_right())if(a=a.get_right()-b.get_right(),0a)a=b.get_explicitMinWidth();null==a&&(a=0);b.set_minWidth(a);if(null==k||null!=b.get_explicitMinHeight()&&b.get_explicitMinHeight()>k)k=b.get_explicitMinHeight();null==k&&(k=0);b.set_minHeight(k);if(null==u||null!=b.get_explicitMaxWidth()&&b.get_explicitMaxWidth()b?a:b};var Jj=function(){};g["feathers.utils.ScreenDensityScaleCalculator"]=Jj;Jj.__name__="feathers.utils.ScreenDensityScaleCalculator";var md=function(a){this._touchPointIsSimulated=!1;this._previousTouchPointID=this._touchPointID=null;this.targetScrollX=this.targetScrollY=0;this.animateScrollXEndRatio=this.animateScrollYEndRatio=1;this.animateScrollX=this.animateScrollY=null;this.savedScrollMoves=[];this.startTouchX=this.startTouchY=this.startScrollX=this.startScrollY=0;this.restoreMouseChildren= +!1;this._fixedThrowDuration=2.996998998998728;this._logDecelerationRate=-.0020020026706730793;this.snapPositionsX=this.snapPositionsY=null;this.simulateTouch=!1;this.mouseWheelDuration=0;this._mouseWheelDeltaMode=1;this.mouseWheelYScrollsX=!1;this.mouseWheelDeltaX=this.mouseWheelDeltaY=10;this.bounceEase=null;this.ease=ei.easeOut;this.elasticSnapDuration=.5;this.throwElasticity=.05;this.elasticity=.33;this.forceElasticTop=this.forceElasticRight=this.forceElasticBottom=this.forceElasticLeft=!1;this.elasticEdges= +!0;this.minDragDistance=6;this._scrolling=this._draggingX=this._draggingY=!1;this._scrollX=this._scrollY=this._minScrollX=this._minScrollY=this._maxScrollX=this._maxScrollY=this._visibleWidth=this._visibleHeight=this._contentWidth=this._contentHeight=0;this.enabledX=this.enabledY=!0;S.call(this);this.set_target(a)};g["feathers.utils.Scroller"]=md;md.__name__="feathers.utils.Scroller";md.__super__=S;md.prototype=t(S.prototype,{get_scrollX:function(){return this._scrollX},set_scrollX:function(a){if(this._scrollX== +a)return this._scrollX;this._scrollX=a;Ob.dispatch(this,"scroll",!1,!1,this._scrollX,this._scrollY);return this._scrollX},get_scrollY:function(){return this._scrollY},set_scrollY:function(a){if(this._scrollY==a)return this._scrollY;this._scrollY=a;Ob.dispatch(this,"scroll",!1,!1,this._scrollX,this._scrollY);return this._scrollY},set_restrictedScrollX:function(a){athis._maxScrollX&&(a=this._maxScrollX);if(this._scrollX==a)return this._scrollX;this._scrollX=a; +Ob.dispatch(this,"scroll",!1,!1,this._scrollX,this._scrollY);return this._scrollX},set_restrictedScrollY:function(a){athis._maxScrollY&&(a=this._maxScrollY);if(this._scrollY==a)return this._scrollY;this._scrollY=a;Ob.dispatch(this,"scroll",!1,!1,this._scrollX,this._scrollY);return this._scrollY},get_minScrollX:function(){return this._minScrollX},get_minScrollY:function(){return this._minScrollY},get_maxScrollX:function(){return this._maxScrollX},get_maxScrollY:function(){return this._maxScrollY}, +get_scrolling:function(){return this._scrolling},get_draggingX:function(){return this._draggingX},get_draggingY:function(){return this._draggingY},set_target:function(a){if(this._target==a)return this._target;if(null!=this._target){this.cleanupAfterDrag();this._target.removeEventListener("removedFromStage",h(this,this.scroller_target_removedFromStageHandler));this._target.removeEventListener("mouseDown",h(this,this.scroller_target_mouseDownHandler));this._target.removeEventListener("mouseDown",h(this, +this.scroller_target_mouseDownCaptureHandler),!0);this._target.removeEventListener("mouseWheel",h(this,this.scroller_target_mouseWheelHandler));var b=v.__cast(x,Window);b.removeEventListener("wheel",h(this,this.scroller_window_wheelCaptureHandler),{capture:!0});this._target.removeEventListener("touchBegin",h(this,this.scroller_target_touchBeginHandler));this._target.removeEventListener("touchBegin",h(this,this.scroller_target_touchBeginCaptureHandler),!0);this._target.removeEventListener("click", +h(this,this.scroller_target_clickCaptureHandler),!0);this._target.removeEventListener("touchTap",h(this,this.scroller_target_touchTapCaptureHandler),!0)}this._target=a;null!=this._target&&(this._target.addEventListener("mouseDown",h(this,this.scroller_target_mouseDownHandler),!1,0,!0),this._target.addEventListener("mouseDown",h(this,this.scroller_target_mouseDownCaptureHandler),!0,0,!0),this._target.addEventListener("mouseWheel",h(this,this.scroller_target_mouseWheelHandler),!1,0,!0),b=v.__cast(x, +Window),b.addEventListener("wheel",h(this,this.scroller_window_wheelCaptureHandler),{capture:!0}),this._target.addEventListener("touchBegin",h(this,this.scroller_target_touchBeginHandler),!1,0,!0),this._target.addEventListener("touchBegin",h(this,this.scroller_target_touchBeginCaptureHandler),!0,0,!0),this._target.addEventListener("click",h(this,this.scroller_target_clickCaptureHandler),!0,0,!0),this._target.addEventListener("touchTap",h(this,this.scroller_target_touchTapCaptureHandler),!0,0,!0)); +return this._target},get_touchPointID:function(){return this._touchPointID},get_touchPointIsSimulated:function(){return this._touchPointIsSimulated},setDimensions:function(a,b,c,d){this._visibleWidth=null!=a?a:0;this._visibleHeight=null!=b?b:0;this._contentWidth=null!=c?c:0;this._contentHeight=null!=d?d:0;this.calculateMinAndMax()},stop:function(){null!=this.animateScrollX&&(Ma.stop(this.animateScrollX,null,!1,!1),this.animateScrollX=null);null!=this.animateScrollY&&(Ma.stop(this.animateScrollY,null, +!1,!1),this.animateScrollY=null);this.cleanupAfterDrag();this._draggingY=this._draggingX=!1;this.completeScroll()},applyLayoutShift:function(a,b){if(null!=a){var c=this.animateScrollX;this.animateScrollX=null;null!=c&&Ma.stop(c,null,!1,!1);this.startScrollX+=a;this.set_scrollX(this.get_scrollX()+a);for(var d=0;da&&(c=g,g>this._scrollX))break;if(0=this._scrollX))break}else c=this._scrollX+this.calculateDistanceFromVelocity(a);if(null!=b)if(Math.abs(b)<=md.MINIMUM_VELOCITY)this.finishScrollY();else if(null!=this.snapPositionsY)for(f=0,k=this.snapPositionsY.length;f< +k;){u=f++;a=this.snapPositionsY[u];if(0>b&&(d=a,a>this._scrollY))break;if(0=this._scrollY))break}else d=this._scrollY+this.calculateDistanceFromVelocity(b);this.throwTo(c,d,this._fixedThrowDuration)},calculateDistanceFromVelocity:function(a){return(a-md.MINIMUM_VELOCITY)/this._logDecelerationRate},refreshAnimateScrollXEndRatio:function(){var a=Math.abs(this.targetScrollX-this.startScrollX),b=0;this.targetScrollX>this._maxScrollX?b=(this.targetScrollX-this._maxScrollX)/ +a:this.targetScrollXthis.animateScrollXEndRatio)this.animateScrollX.onUpdate(h(this,this.animateScrollX_endRatio_onUpdate));else this.animateScrollX.onUpdate(null)},refreshAnimateScrollYEndRatio:function(){var a=Math.abs(this.targetScrollY-this.startScrollY),b=0;this.targetScrollY>this._maxScrollY?b=(this.targetScrollY- +this._maxScrollY)/a:this.targetScrollYthis.animateScrollYEndRatio)this.animateScrollY.onUpdate(h(this,this.animateScrollY_endRatio_onUpdate));else this.animateScrollY.onUpdate(null)},calculateMinAndMax:function(){var a=this._minScrollX,b=this._maxScrollX,c=this._minScrollY,d=this._maxScrollY;this._minScrollY=this._minScrollX= +0;this._maxScrollX=Math.max(this._contentWidth,this._visibleWidth)-this._visibleWidth;this._maxScrollY=Math.max(this._contentHeight,this._visibleHeight)-this._visibleHeight;a==this._minScrollX&&b==this._maxScrollX||this.refreshAnimateScrollXEndRatio();c==this._minScrollY&&d==this._maxScrollY||this.refreshAnimateScrollYEndRatio()},startScroll:function(){if(!this._scrolling){this._scrolling=!0;if(this._target instanceof ya){var a=this._target;this.restoreMouseChildren=a.mouseChildren;a.mouseChildren= +!1}Ob.dispatch(this,"scrollStart",!1,!1,this._scrollX,this._scrollY)}},completeScroll:function(){!this._scrolling||this._draggingX||this._draggingY||null!=this.animateScrollX||null!=this.animateScrollY||(this._scrolling=!1,this._target instanceof ya&&(this._target.mouseChildren=this.restoreMouseChildren),Ob.dispatch(this,"scrollComplete",!1,!1,this._scrollX,this._scrollY))},finishScrollX:function(){this._draggingX=!1;var a=null;if(null!=this.snapPositionsX){for(var b=Infinity,c=0,d=this.snapPositionsX;c< +d.length;){var f=d[c];++c;var k=Math.abs(f-this._scrollX);b>k&&(b=k,a=f)}a==this._scrollX&&(a=null)}this._scrollXthis._maxScrollX&&(a=this._maxScrollX);null==a?this.completeScroll():this.throwTo(a,null,1<=Math.abs(this._scrollX-a)?this.elasticSnapDuration:0,this.bounceEase)},finishScrollY:function(){this._draggingY=!1;var a=null;if(null!=this.snapPositionsY){for(var b=Infinity,c=0,d=this.snapPositionsY;ck&&(b=k,a=f)}a==this._scrollY&&(a=null)}this._scrollYthis._maxScrollY&&(a=this._maxScrollY);null==a?this.completeScroll():this.throwTo(null,a,1<=Math.abs(this._scrollY-a)?this.elasticSnapDuration:0,this.bounceEase)},animateScrollX_endRatio_onUpdate:function(){var a=va.getTimer()/1E3-this.animateScrollX.startTime,b=a/this.animateScrollX.duration,c=this.animateScrollX._ease;null!=c&&(b=c.calculate(b));b>=this.animateScrollXEndRatio&& +athis._maxScrollX&&this.set_scrollX(this._maxScrollX)),Ma.stop(this.animateScrollX,null,!1,!1),this.animateScrollX=null,this.finishScrollX())},animateScrollX_onComplete:function(){this.animateScrollX=null;this.finishScrollX()},animateScrollY_endRatio_onUpdate:function(){var a=va.getTimer()/1E3-this.animateScrollY.startTime,b=a/this.animateScrollY.duration,c=this.animateScrollY._ease; +null!=c&&(b=c.calculate(b));b>=this.animateScrollYEndRatio&&athis._maxScrollY&&this.set_scrollY(this._maxScrollY)),Ma.stop(this.animateScrollY,null,!1,!1),this.animateScrollY=null,this.finishScrollY())},animateScrollY_onComplete:function(){this.animateScrollY=null;this.finishScrollY()},cleanupAfterDrag:function(){null!=this._touchPointID&&(this._previousTouchPointID= +this._scrolling?this._touchPointID:null,this._touchPointID=null,this._touchPointIsSimulated=!1,this._target.removeEventListener("removedFromStage",h(this,this.scroller_target_removedFromStageHandler)),null!=this._target.stage&&(this._target.stage.removeEventListener("mouseMove",h(this,this.scroller_target_stage_mouseMoveHandler)),this._target.stage.removeEventListener("mouseUp",h(this,this.scroller_target_stage_mouseUpHandler)),this._target.stage.removeEventListener("touchMove",h(this,this.scroller_target_stage_touchMoveHandler)), +this._target.stage.removeEventListener("touchEnd",h(this,this.scroller_target_stage_touchEndHandler))))},scroller_target_removedFromStageHandler:function(a){this.cleanupAfterDrag()},touchBegin:function(a,b,c,d){if((!b||this.simulateTouch)&&null==this._touchPointID){null!=this.animateScrollX&&(Ma.stop(this.animateScrollX,null,!1,!1),this.animateScrollX=null);null!=this.animateScrollY&&(Ma.stop(this.animateScrollY,null,!1,!1),this.animateScrollY=null);this._target.addEventListener("removedFromStage", +h(this,this.scroller_target_removedFromStageHandler),!1,0,!0);this._target.stage.addEventListener("mouseMove",h(this,this.scroller_target_stage_mouseMoveHandler),!1,0,!0);this._target.stage.addEventListener("mouseUp",h(this,this.scroller_target_stage_mouseUpHandler),!1,0,!0);this._target.stage.addEventListener("touchMove",h(this,this.scroller_target_stage_touchMoveHandler),!1,0,!0);this._target.stage.addEventListener("touchEnd",h(this,this.scroller_target_stage_touchEndHandler),!1,0,!0);if(this._target instanceof +ya){var f=this._target;this._scrolling&&(f.mouseChildren=!1)}this._previousTouchPointID=null;this._touchPointID=a;this._touchPointIsSimulated=b;this.startTouchX=c;this.startTouchY=d;this.startScrollX=this._scrollX;this.startScrollY=this._scrollY;this.savedScrollMoves.length=0}},touchMove:function(a,b,c,d){if(null!=this._touchPointID&&this._touchPointID==a&&this._touchPointIsSimulated==b){b=c-this.startTouchX;a=d-this.startTouchY;for(var f=1,k=1,u=this._target;u!=u.stage;)f/=u.get_scaleX(),k/=u.get_scaleY(), +u=u.parent;b*=f;a*=k;k=this.canDragX();f=this.canDragY();if(!this._draggingX&&k&&Math.abs(b)>this.minDragDistance&&(this.startTouchX=c,b=0,this._draggingX=!0,!this._draggingY&&(this.startScroll(),null==this._touchPointID))||!this._draggingY&&f&&Math.abs(a)>this.minDragDistance&&(this.startTouchY=d,a=0,this._draggingY=!0,!this._draggingX&&(this.startScroll(),null==this._touchPointID)))return;if(this._draggingX||this._draggingY)c=this.startScrollX,k&&(c-=b,this.elasticEdges?(d=this._minScrollX,d>this.startScrollX&& +(d=this.startScrollX),b=this._maxScrollX,bthis._minScrollX||this.forceElasticLeft?c-(c-d)*(1-this.elasticity):this._minScrollX:c>this._maxScrollX&&(c=this._maxScrollX>this._minScrollX||this.forceElasticRight?c-(c-b)*(1-this.elasticity):this._maxScrollX)):cthis._maxScrollX&&(c=this._maxScrollX)),d=this.startScrollY,f&&(d-=a,this.elasticEdges?(a=this._minScrollY,a>this.startScrollY&& +(a=this.startScrollY),b=this._maxScrollY,bthis._minScrollY||this.forceElasticTop?d-(d-a)*(1-this.elasticity):this._minScrollY:d>this._maxScrollY&&(d=this._maxScrollY>this._minScrollY||this.forceElasticBottom?d-(d-b)*(1-this.elasticity):this._maxScrollY)):dthis._maxScrollY&&(d=this._maxScrollY)),this.set_scrollX(c),this.set_scrollY(d),60this._maxScrollX)a=!0,this.finishScrollX();if(this._scrollYthis._maxScrollY)b=!0,this.finishScrollY();if(!a||!b)if(this._draggingX||this._draggingY){for(var c= +va.getTimer()-100,d=this.savedScrollMoves.length-1,f=d,k=d;0c;)f=k,k-=3;f==d?(!a&&this._draggingX&&this.finishScrollX(),!b&&this._draggingY&&this.finishScrollY()):(c=this.savedScrollMoves[d]-this.savedScrollMoves[f],k=d=null,0this._minScrollX||this.forceElasticLeft?!0:this.forceElasticRight:!1},canDragY:function(){return this.enabledY?this._maxScrollY>this._minScrollY||this.forceElasticTop?!0:this.forceElasticBottom:!1},scroller_target_touchBeginCaptureHandler:function(a){this._scrolling&&(a.stopImmediatePropagation(),this.scroller_target_touchBeginHandler(a))},scroller_target_touchBeginHandler:function(a){this.simulateTouch&& +a.isPrimaryTouchPoint||this.touchBegin(a.touchPointID,!1,a.stageX,a.stageY)},scroller_target_mouseDownCaptureHandler:function(a){this._scrolling&&(a.stopImmediatePropagation(),this.scroller_target_mouseDownHandler(a))},scroller_target_mouseDownHandler:function(a){a=this._target.stage;null!=a&&this.touchBegin(md.POINTER_ID_MOUSE,!0,a.get_mouseX(),a.get_mouseY())},scroller_target_stage_touchMoveHandler:function(a){this.touchMove(a.touchPointID,!1,a.stageX,a.stageY)},scroller_target_stage_mouseMoveHandler:function(a){a= +v.__cast(a.currentTarget,Nc);this.touchMove(md.POINTER_ID_MOUSE,!0,a.get_mouseX(),a.get_mouseY())},scroller_target_stage_touchEndHandler:function(a){this.touchEnd(a.touchPointID,!1)},scroller_target_clickCaptureHandler:function(a){null!=this._previousTouchPointID&&(this._previousTouchPointID=null,a.stopImmediatePropagation())},scroller_target_touchTapCaptureHandler:function(a){null!=this._previousTouchPointID&&this._previousTouchPointID==a.touchPointID&&(a.isPrimaryTouchPoint?this._previousTouchPointID= +md.POINTER_ID_MOUSE:(this._previousTouchPointID=null,a.stopImmediatePropagation()))},scroller_target_stage_mouseUpHandler:function(a){this.touchEnd(md.POINTER_ID_MOUSE,!0)},scroller_window_wheelCaptureHandler:function(a){this._mouseWheelDeltaMode=a.deltaMode},scroller_target_mouseWheelHandler:function(a){this._scrolling&&(a.stopImmediatePropagation(),this.stop());var b=a.delta;switch(this._mouseWheelDeltaMode){case 0:b=0>b?Math.min(-1,b/40)|0:Math.max(1,b/40)|0;break;case 2:b*=16}var c=null,d=null; +this.mouseWheelYScrollsX?(c=this._scrollX,null!=this.animateScrollX&&(c=this.targetScrollX),c-=b*this.mouseWheelDeltaX,cthis._maxScrollX&&(c=this._maxScrollX)):(d=this._scrollY,null!=this.animateScrollY&&(d=this.targetScrollY),d-=b*this.mouseWheelDeltaY,dthis._maxScrollY&&(d=this._maxScrollY));if(null!=c&&c!=this._scrollX||null!=d&&d!=this._scrollY)a.preventDefault(),this._scrolling||(a.stopImmediatePropagation(),this.stop()), +null!=c&&(this._draggingX=!0),null!=d&&(this._draggingY=!0),0c&&(c=d),++d,d>=a.length)break}else c=-1}if(0<=c)break}return 0<=c?a.slice(0,c):a},equalItems:function(a,b){if(null==a)return null==b?!0:!1;switch(a._hx_index){case 0:return null==b?!1:0==b._hx_index?!0:!1;case 1:return null==b?!1:1==b._hx_index?a.m==b.m:!1;case 2:if(null==b)return!1;if(2==b._hx_index){var c=b.s,d=b.line,f=b.column,k=a.column,u=a.line,g=a.s;return a.file==b.file&&u==d&&k==f?Be.equalItems(g,c):!1}return!1;case 3:return null== +b?!1:3==b._hx_index?(c=b.method,d=a.method,a.classname==b.classname?d==c:!1):!1;case 4:return null==b?!1:4==b._hx_index?a.v==b.v:!1}},itemToString:function(a,b){switch(b._hx_index){case 0:a.b+="a C function";break;case 1:b=b.m;a.b+="module ";a.b+=null==b?"null":""+b;break;case 2:var c=b.s,d=b.file,f=b.line;b=b.column;null!=c&&(Be.itemToString(a,c),a.b+=" (");a.b+=null==d?"null":""+d;a.b+=" line ";a.b+=null==f?"null":""+f;null!=b&&(a.b+=" column ",a.b+=null==b?"null":""+b);null!=c&&(a.b+=")");break; +case 3:c=b.classname;b=b.method;a.b+=p.string(null==c?"":c);a.b+=".";a.b+=null==b?"null":""+b;break;case 4:b=b.v,a.b+="local function #",a.b+=null==b?"null":""+b}}},fa=function(a,b,c){Error.call(this,a);this.message=a;this.__previousException=b;this.__nativeException=null!=c?c:this;this.__skipStack=0;a=Error.prepareStackTrace;Error.prepareStackTrace=function(a){return a.stack};if(c instanceof Error)this.stack=c.stack;else{c=null;if(Error.captureStackTrace)Error.captureStackTrace(this,fa), +c=this;else if(c=Error(),"undefined"==typeof c.stack){try{throw c;}catch(d){}this.__skipStack++}this.stack=c.stack}Error.prepareStackTrace=a};g["haxe.Exception"]=fa;fa.__name__="haxe.Exception";fa.caught=function(a){return a instanceof fa?a:a instanceof Error?new fa(a.message,null,a):new lg(a,null,a)};fa.thrown=function(a){if(a instanceof fa)return a.get_native();if(a instanceof Error)return a;a=new lg(a);a.__skipStack++;return a};fa.__super__=Error;fa.prototype=t(Error.prototype,{unwrap:function(){return this.__nativeException}, +toString:function(){return this.get_message()},__shiftStack:function(){this.__skipStack++},get_message:function(){return this.message},get_native:function(){return this.__nativeException},get_stack:function(){var a=this.__exceptionStack;null==a&&(a=Ia.toHaxe(Ia.normalize(this.stack),this.__skipStack),this.setProperty("__exceptionStack",a));return a},setProperty:function(a,b){try{Object.defineProperty(this,a,{value:b})}catch(c){this[a]=b}},__class__:fa,__properties__:{get_native:"get_native",get_stack:"get_stack", +get_message:"get_message"}});var Pa=function(a,b){this.high=a;this.low=b};g["haxe._Int64.___Int64"]=Pa;Pa.__name__="haxe._Int64.___Int64";Pa.prototype={__class__:Pa};var Ia=function(){};g["haxe.NativeStackTrace"]=Ia;Ia.__name__="haxe.NativeStackTrace";Ia.saveStack=function(a){Ia.lastError=a};Ia.callStack=function(){var a=Error(""),b=Ia.tryHaxeStack(a);if("undefined"==typeof b){try{throw a;}catch(c){}b=a.stack}return Ia.normalize(b,2)};Ia.exceptionStack=function(){return Ia.normalize(Ia.tryHaxeStack(Ia.lastError))}; +Ia.toHaxe=function(a,b){null==b&&(b=0);if(null==a)return[];if("string"==typeof a){a=a.split("\n");"Error"==a[0]&&a.shift();for(var c=[],d=0,f=a.length;dk)){var u=a[k];k=u.match(/^ at ([$A-Za-z0-9_. ]+) \(([^)]+):([0-9]+):([0-9]+)\)$/);if(null!=k){u=k[1].split(".");"$hxClasses"==u[0]&&u.shift();var g=u.pop(),n=k[2],q=p.parseInt(k[3]);k=p.parseInt(k[4]);c.push(Dd.FilePos("Anonymous function"==g?Dd.LocalFunction():"Global code"==g?null:Dd.Method(u.join("."),g),n,q,k))}else c.push(Dd.Module(W.trim(u)))}}return c}return 0< +b&&Array.isArray(a)?a.slice(b):a};Ia.tryHaxeStack=function(a){if(null==a)return[];var b=Error.prepareStackTrace;Error.prepareStackTrace=Ia.prepareHxStackTrace;a=a.stack;Error.prepareStackTrace=b;return a};Ia.prepareHxStackTrace=function(a,b){a=[];for(var c=0;cc?"":Ia.skipLines(a,--b,c+1)):a.substring(c)};var Xe=function(a){var b= +this;this.id=setInterval(function(){b.run()},a)};g["haxe.Timer"]=Xe;Xe.__name__="haxe.Timer";Xe.delay=function(a,b){var c=new Xe(b);c.run=function(){c.stop();a()};return c};Xe.prototype={stop:function(){null!=this.id&&(clearInterval(this.id),this.id=null)},run:function(){},__class__:Xe};var Zg=function(){};g["haxe._Unserializer.DefaultResolver"]=Zg;Zg.__name__="haxe._Unserializer.DefaultResolver";Zg.prototype={resolveClass:function(a){return g[a]},resolveEnum:function(a){return D[a]},__class__:Zg}; +var Wc=function(a){this.buf=a;this.length=this.buf.length;this.pos=0;this.scache=[];this.cache=[];a=Wc.DEFAULT_RESOLVER;null==a&&(a=new Zg,Wc.DEFAULT_RESOLVER=a);this.resolver=a};g["haxe.Unserializer"]=Wc;Wc.__name__="haxe.Unserializer";Wc.initCodes=function(){for(var a=[],b=0,c=Wc.BASE64.length;bd||57b||101==b||69==b)this.pos++;else break}return parseFloat(aa.substr(this.buf,a,this.pos-a))},unserializeObject:function(a){for(;;){if(this.pos>=this.length)throw fa.thrown("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var b=this.unserialize();if("string"!=typeof b)throw fa.thrown("Invalid object key"); +var c=this.unserialize();a[b]=c}this.pos++},unserializeEnum:function(a,b){if(58!=this.buf.charCodeAt(this.pos++))throw fa.thrown("Invalid enum format");var c=this.readDigits();if(0==c)return zb.createEnum(a,b);for(var d=[];0a||a>=this.scache.length)throw fa.thrown("Invalid string reference");return this.scache[a];case 97:b=[];for(this.cache.push(b);;){c=this.buf.charCodeAt(this.pos);if(104==c){this.pos++;break}117==c?(this.pos++,a=this.readDigits(),b[b.length+a-1]=null):b.push(this.unserialize())}return b;case 98:a=new La;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),c=this.unserialize(),a.h[b]=c;this.pos++;return a;case 99:a=this.unserialize();b=this.resolver.resolveClass(a); +if(null==b)throw fa.thrown("Class not found "+a);b=Object.create(b.prototype);this.cache.push(b);this.unserializeObject(b);return b;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:a=this.unserialize();c=this.resolver.resolveEnum(a);if(null==c)throw fa.thrown("Enum not found "+a);this.pos++;for(var d=this.readDigits(),f=c.__constructs__,k=Array(f.length),u=0,g=f.length;ua||a>=this.cache.length)throw fa.thrown("Invalid reference");return this.cache[a];case 115:a=this.readDigits();c=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>2)+(2<=f?f-1:0)));for(g=0;b>4)&255;n=d[c.charCodeAt(b++)];u.b[g++]=(q<<4|n>>2)&255;q=d[c.charCodeAt(b++)];u.b[g++]=(n<<6|q)&255}2<=f&&(n=d[c.charCodeAt(b++)],q=d[c.charCodeAt(b++)],u.b[g++]=(n<<2|q>>4)&255,3==f&&(n=d[c.charCodeAt(b++)],u.b[g++]=(q<<4|n>>2)&255));this.pos+=a;this.cache.push(u);return u;case 116:return!0;case 118:return 48<=this.buf.charCodeAt(this.pos)&&57>=this.buf.charCodeAt(this.pos)&&48<=this.buf.charCodeAt(this.pos+1)&&57>=this.buf.charCodeAt(this.pos+1)&&48<=this.buf.charCodeAt(this.pos+ +2)&&57>=this.buf.charCodeAt(this.pos+2)&&48<=this.buf.charCodeAt(this.pos+3)&&57>=this.buf.charCodeAt(this.pos+3)&&45==this.buf.charCodeAt(this.pos+4)?(b=aa.strDate(aa.substr(this.buf,this.pos,19)),this.pos+=19):b=new Date(this.readFloat()),this.cache.push(b),b;case 119:a=this.unserialize();c=this.resolver.resolveEnum(a);if(null==c)throw fa.thrown("Enum not found "+a);b=this.unserializeEnum(c,this.unserialize());this.cache.push(b);return b;case 120:throw fa.thrown(this.unserialize());case 121:a=this.readDigits(); +if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos=d&&(d=d-55232<<10|a.charCodeAt(c++)&1023);127>=d?b.push(d):(2047>=d?b.push(192|d>>6):(65535>=d?b.push(224|d>>12):(b.push(240|d>>18),b.push(128|d>>12&63)),b.push(128|d>>6&63)),b.push(128|d&63))}return new yb((new Uint8Array(b)).buffer)}; +yb.ofData=function(a){var b=a.hxBytes;return null!=b?b:new yb(a)};yb.prototype={blit:function(a,b,c,d){if(0>a||0>c||0>d||a+d>this.length||c+d>b.length)throw fa.thrown(Ed.OutsideBounds);0==c&&d==b.b.byteLength?this.b.set(b.b,a):this.b.set(b.b.subarray(c,c+d),a)},getString:function(a,b,c){if(0>a||0>b||a+b>this.length)throw fa.thrown(Ed.OutsideBounds);c="";var d=this.b,f=nc.fromCharCode,k=a;for(a+=b;kb){if(0==b)break;c+=f(b)}else if(224>b)c+=f((b&63)<<6|d[k++]&127);else if(240>b){var u= +d[k++];c+=f((b&31)<<12|(u&127)<<6|d[k++]&127)}else{u=d[k++];var g=d[k++];b=(b&15)<<18|(u&127)<<12|(g&127)<<6|d[k++]&127;c+=f((b>>10)+55232);c+=f(b&1023|56320)}return c},toString:function(){return this.getString(0,this.length)},__class__:yb};var rc=function(){};g["haxe.ds.ArraySort"]=rc;rc.__name__="haxe.ds.ArraySort";rc.sort=function(a,b){rc.rec(a,b,0,a.length)};rc.rec=function(a,b,c,d){var f=c+d>>1;if(12>d-c){if(!(d<=c))for(f=c+1;fc;){if(0>b(a[k],a[k-1]))rc.swap(a,k-1,k);else break; +--k}}else rc.rec(a,b,c,f),rc.rec(a,b,f,d),rc.doMerge(a,b,c,f,d,f-c,d-f)};rc.doMerge=function(a,b,c,d,f,k,u){if(0!=k&&0!=u)if(2==k+u)0>b(a[d],a[c])&&rc.swap(a,d,c);else{if(k>u){var g=k>>1;var n=c+g;var q=rc.lower(a,b,d,f,n);var h=q-d}else h=u>>1,q=d+h,n=rc.upper(a,b,c,d,q),g=n-c;rc.rotate(a,b,n,d,q);d=n+h;rc.doMerge(a,b,c,n,d,g,h);rc.doMerge(a,b,d,q,f,k-g,u-h)}};rc.rotate=function(a,b,c,d,f){if(c!=d&&d!=f)for(b=rc.gcd(f-c,d-c);0!=b--;){for(var k=a[c+b],u=d-c,g=c+b,n=c+b+u;n!=c+b;)a[g]=a[n],g=n,n=f- +n>u?n+u:c+(u-(f-n));a[g]=k}};rc.gcd=function(a,b){for(;0!=b;){var c=a%b;a=b;b=c}return a};rc.upper=function(a,b,c,d,f){d-=c;for(var k,u;0>1,u=c+k,0>b(a[f],a[u])?d=k:(c=u+1,d=d-k-1);return c};rc.lower=function(a,b,c,d,f){d-=c;for(var k,u;0>1,u=c+k,0>b(a[u],a[f])?(c=u+1,d=d-k-1):d=k;return c};rc.swap=function(a,b,c){var d=a[b];a[b]=a[c];a[c]=d};var he=function(){};g["haxe.ds.BalancedTree"]=he;he.__name__="haxe.ds.BalancedTree";he.__interfaces__=[O];he.iteratorLoop=function(a,b){null!= +a&&(he.iteratorLoop(a.left,b),b.push(a.value),he.iteratorLoop(a.right,b))};he.prototype={set:function(a,b){this.root=this.setLoop(a,b,this.root)},get:function(a){for(var b=this.root;null!=b;){var c=this.compare(a,b.key);if(0==c)return b.value;b=0>c?b.left:b.right}return null},remove:function(a){try{return this.root=this.removeLoop(a,this.root),!0}catch(b){Ia.lastError=b;if("string"==typeof fa.caught(b).unwrap())return!1;throw b;}},exists:function(a){for(var b=this.root;null!=b;){var c=this.compare(a, +b.key);if(0==c)return!0;b=0>c?b.left:b.right}return!1},iterator:function(){var a=[];he.iteratorLoop(this.root,a);return new se(a)},keys:function(){var a=[];this.keysLoop(this.root,a);return new se(a)},setLoop:function(a,b,c){if(null==c)return new Xc(null,a,b,null);var d=this.compare(a,c.key);if(0==d)return new Xc(c.left,a,b,c.right,null==c?0:c._height);if(0>d)return a=this.setLoop(a,b,c.left),this.balance(a,c.key,c.value,c.right);a=this.setLoop(a,b,c.right);return this.balance(c.left,c.key,c.value, +a)},removeLoop:function(a,b){if(null==b)throw fa.thrown("Not_found");var c=this.compare(a,b.key);return 0==c?this.merge(b.left,b.right):0>c?this.balance(this.removeLoop(a,b.left),b.key,b.value,b.right):this.balance(b.left,b.key,b.value,this.removeLoop(a,b.right))},keysLoop:function(a,b){null!=a&&(this.keysLoop(a.left,b),b.push(a.key),this.keysLoop(a.right,b))},merge:function(a,b){if(null==a)return b;if(null==b)return a;var c=this.minBinding(b);return this.balance(a,c.key,c.value,this.removeMinBinding(b))}, +minBinding:function(a){if(null==a)throw fa.thrown("Not_found");return null==a.left?a:this.minBinding(a.left)},removeMinBinding:function(a){return null==a.left?a.right:this.balance(this.removeMinBinding(a.left),a.key,a.value,a.right)},balance:function(a,b,c,d){var f=null==a?0:a._height,k=null==d?0:d._height;return f>k+2?(f=a.left,k=a.right,(null==f?0:f._height)>=(null==k?0:k._height)?new Xc(a.left,a.key,a.value,new Xc(a.right,b,c,d)):new Xc(new Xc(a.left,a.key,a.value,a.right.left),a.right.key,a.right.value, +new Xc(a.right.right,b,c,d))):k>f+2?(f=d.right,k=d.left,(null==f?0:f._height)>(null==k?0:k._height)?new Xc(new Xc(a,b,c,d.left),d.key,d.value,d.right):new Xc(new Xc(a,b,c,d.left.left),d.left.key,d.left.value,new Xc(d.left.right,d.key,d.value,d.right))):new Xc(a,b,c,d,(f>k?f:k)+1)},compare:function(a,b){return C.compare(a,b)},clear:function(){this.root=null},__class__:he};var Xc=function(a,b,c,d,f){null==f&&(f=-1);this.left=a;this.key=b;this.value=c;this.right=d;-1==f?(a=this.left,b=this.right,a=(null== +a?0:a._height)>(null==b?0:b._height)?this.left:this.right,this._height=(null==a?0:a._height)+1):this._height=f};g["haxe.ds.TreeNode"]=Xc;Xc.__name__="haxe.ds.TreeNode";Xc.prototype={__class__:Xc};var Kc=function(){};g["haxe.ds.EnumValueMap"]=Kc;Kc.__name__="haxe.ds.EnumValueMap";Kc.__interfaces__=[O];Kc.__super__=he;Kc.prototype=t(he.prototype,{compare:function(a,b){var c=a._hx_index-b._hx_index;if(0!=c)return c;a=zb.enumParameters(a);b=zb.enumParameters(b);return 0==a.length&&0==b.length?0:this.compareArgs(a, +b)},compareArgs:function(a,b){var c=a.length-b.length;if(0!=c)return c;c=0;for(var d=a.length;cthis.size&&this.grow(a.length);if(0!=this.size){var b=new Uint8Array(a.b.buffer,a.b.byteOffset,a.length);this.u8.set(b,this.pos);this.pos+=a.length}}, +addBytes:function(a,b,c){if(0>b||0>c||b+c>a.length)throw fa.thrown(Ed.OutsideBounds);this.pos+c>this.size&&this.grow(c);0!=this.size&&(a=new Uint8Array(a.b.buffer,a.b.byteOffset+b,c),this.u8.set(a,this.pos),this.pos+=c)},grow:function(a){var b=this.pos+a;for(a=0==this.size?16:this.size;a>1;b=new ArrayBuffer(a);var c=new Uint8Array(b);0b||0>c||b+c>a.length)throw fa.thrown(Ed.OutsideBounds);try{for(;0b||0>c||b+c>a.length)throw fa.thrown(Ed.OutsideBounds);this.b=a.b;this.pos=b;this.totlen=this.len=c};g["haxe.io.BytesInput"]=ch;ch.__name__="haxe.io.BytesInput";ch.__super__=bh;ch.prototype= +t(bh.prototype,{readByte:function(){if(0==this.len)throw fa.thrown(new mg);this.len--;return this.b[this.pos++]},readBytes:function(a,b,c){if(0>b||0>c||b+c>a.length)throw fa.thrown(Ed.OutsideBounds);if(0==this.len&&0>2);return new Float32Array(a.b.bufferValue,b,c)}},Ce=function(a){switch(a){case ".":case "..":this.dir=a;this.file="";return}var b=a.lastIndexOf("/"),c=a.lastIndexOf("\\");bb)throw fa.thrown("Invalid huffman"); +var f=c<<5|d;if(a.h.hasOwnProperty(f))return Fd.Found(a.h[f]);c<<=1;++d;return Fd.NeedBit(this.treeMake(a,b,c,d),this.treeMake(a,b,c|1,d))},make:function(a,b,c,d){if(1==c)return Fd.NeedBit(Fd.Found(0),Fd.Found(0));var f=[],k=[];if(32=d)throw fa.thrown("Invalid huffman");f[n]++}var q=0;u=1;for(g=d-1;ub;){var c=b++;a.push(143>=c?8:255>=c?9:279>=c?7:8)}Bc.FIXED_HUFFMAN=this.htools.make(a,0,288,10);return Bc.FIXED_HUFFMAN},readBytes:function(a,b,c){this.needed=c;this.outpos=b;this.output=a;if(0>=a;return b},getBit:function(){0==this.nbits&& +(this.nbits=8,this.bits=this.input.readByte());var a=1==(this.bits&1);this.nbits--;this.bits>>=1;return a},getRevBits:function(a){return 0==a?0:this.getBit()?1<b)throw fa.thrown("Invalid data");for(;cb)throw fa.thrown("Invalid data");break;case 18:c+=11+this.getBits(7);if(c>b)throw fa.thrown("Invalid data");break;default:throw fa.thrown("Invalid data");}}},inflateLoop:function(){switch(this.state._hx_index){case 0:var a=this.input.readByte();if(8!=(a&15))throw fa.thrown("Invalid data");var b=this.input.readByte(),c=0!=(b&32);if(0!=((a<<8)+b)%31)throw fa.thrown("Invalid data"); +if(c)throw fa.thrown("Unsupported dictionary");this.state=fc.Block;return!0;case 1:switch(this.isFinal=this.getBit(),this.getBits(2)){case 0:this.len=this.input.readUInt16();if(this.input.readUInt16()!=65535-this.len)throw fa.thrown("Invalid data");this.state=fc.Flat;a=this.inflateLoop();this.resetBits();return a;case 1:return this.huffman=this.buildFixedHuffman(),this.huffdist=null,this.state=fc.CData,!0;case 2:a=this.getBits(5)+257;b=this.getBits(5)+1;var d=this.getBits(4)+4;c=0;for(var f=d;cb)return this.addByte(b),0this.window.available())throw fa.thrown("Invalid data");this.state=1==this.dist?fc.DistOne:fc.Dist}return!0;case 3:return a=this.len>11&31,c=a>>5&63;a&=31;var d=this.i.readUInt16();return new Date((d>>9)+1980,(d>>5&15)-1,d&31,b,c,a<<1)},readExtraFields:function(a){for(var b= +new ua;0a)throw fa.thrown("Invalid extra fields data");var c=this.i.readUInt16(),d=this.i.readUInt16();if(ak)break}c.data=d.getBytes()}else c.data=this.i.read(c.dataSize);c.crc32=this.i.readInt32();134695760==c.crc32&&(c.crc32=this.i.readInt32());c.dataSize=this.i.readInt32();c.fileSize= +this.i.readInt32();c.dataSize=c.fileSize;c.compressed=!1}else c.data=this.i.read(c.dataSize);a.add(c)}return a},__class__:ng};var og=function(){};g["js.Browser"]=og;og.__name__="js.Browser";og.__properties__={get_supported:"get_supported"};og.get_supported=function(){return"undefined"!=typeof window&&"undefined"!=typeof window.location?"string"==typeof window.location.protocol:!1};var qj=function(){};g["js.html._CanvasElement.CanvasUtil"]=qj;qj.__name__="js.html._CanvasElement.CanvasUtil";qj.getContextWebGL= +function(a,b){var c=a.getContext("webgl",b);if(null!=c)return c;c=a.getContext("experimental-webgl",b);return null!=c?c:null};var $h=function(){this.connected=!0;this.buttons=[];this.axes=[]};g["lime._internal.backend.html5.GameDeviceData"]=$h;$h.__name__="lime._internal.backend.html5.GameDeviceData";$h.prototype={__class__:$h};var ni=function(a){this.parent=a;this.id=-1;this.gain=1;this.position=new mi};g["lime._internal.backend.html5.HTML5AudioSource"]=ni;ni.__name__="lime._internal.backend.html5.HTML5AudioSource"; +ni.prototype={dispose:function(){},init:function(){},play:function(){if(!this.playing&&null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl){this.playing=!0;var a=this.getCurrentTime();this.completed=!1;var b=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=b;this.setPosition(this.parent.get_position());this.parent.buffer.__srcHowl.on("end",h(this,this.howl_onEnd), +this.id);this.setCurrentTime(a)}},stop:function(){this.playing=!1;null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&(this.parent.buffer.__srcHowl.stop(this.id),this.parent.buffer.__srcHowl.off("end",h(this,this.howl_onEnd),this.id))},howl_onEnd:function(){this.playing=!1;0a?0:a}return 0},setCurrentTime:function(a){if(null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl){var b=(a+this.parent.offset)/1E3;0>b&&(b=0);this.parent.buffer.__srcHowl.seek(b,this.id)}return a}, +getGain:function(){return this.gain},setGain:function(a){null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&-1!=this.id&&this.parent.buffer.__srcHowl.volume(a,this.id);return this.gain=a},getLength:function(){return 0!=this.length?this.length:null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl?1E3*this.parent.buffer.__srcHowl.duration()|0:0},setLength:function(a){return this.length=a},setLoops:function(a){return this.loops=a},getPosition:function(){return this.position},setPosition:function(a){this.position.x= +a.x;this.position.y=a.y;this.position.z=a.z;this.position.w=a.w;null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&null!=this.parent.buffer.__srcHowl.pos&&this.parent.buffer.__srcHowl.pos(this.position.x,this.position.y,this.position.z,this.id);return this.position},__class__:ni};var xa=function(){this.validStatus0=(new ta("Tizen","gi")).match(window.navigator.userAgent)};g["lime._internal.backend.html5.HTML5HTTPRequest"]=xa;xa.__name__="lime._internal.backend.html5.HTML5HTTPRequest";xa.loadImage= +function(a){var b=new Ic;xa.activeRequestsc.request.status|| +c.validStatus0&&0==c.request.status)?(c.processResponse(),b.complete(a)):(c.processResponse(),b.error(new zf(c.request.status,a))),c.request=null,xa.activeRequests--,xa.processQueue())})},__loadText:function(a,b){var c=this;this.binary=!1;this.load(a,function(a){b.progress(a.loaded,a.total)},function(a){4==c.request.readyState&&(null!=c.request.status&&(200<=c.request.status&&400>c.request.status||c.validStatus0&&0==c.request.status)?(c.processResponse(),b.complete(c.request.responseText)):(c.processResponse(), +b.error(new zf(c.request.status,c.request.responseText))),c.request=null,xa.activeRequests--,xa.processQueue())})},__class__:xa};var Af=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_Dynamic_Void"]=Af;Af.__name__="lime.app._Event_Dynamic_Void";Af.prototype={add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,f=this.__priorities.length;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k, +0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;da.sourceCode.indexOf("[native code]"))return a.func=null,!0;a.sourceCode=null;throw fa.thrown("Only static class functions can be made portable. Set -Dlime-warn-portability to see which line caused this."); +}return null==a.func}},za=function(a,b){this.__href=a;null!=b&&(this.__worker=b,this.__worker.onmessage=h(this,this.dispatchMessage),this.onMessage=new Af);eh.disablePreserveClasses(this)};g["lime._internal.backend.html5.HTML5Thread"]=za;za.__name__="lime._internal.backend.html5.HTML5Thread";za.create=function(a){var b=new URL(za.__current.__href);b.pathname=aa.substr(b.pathname,0,b.pathname.lastIndexOf("/")+1)+F.current.meta.h.file+".js";0this.parent.application.__backend.framePeriod?60:1E3==this.parent.application.__backend.framePeriod?0:1E3/this.parent.application.__backend.framePeriod},handleContextEvent:function(a){switch(a.type){case "webglcontextlost":a.cancelable&& +a.preventDefault();this.parent.context=null;this.parent.onRenderContextLost.dispatch();break;case "webglcontextrestored":this.createContext(),this.parent.onRenderContextRestored.dispatch(this.parent.context)}},handleContextMenuEvent:function(a){(this.parent.onMouseUp.canceled||this.parent.onMouseDown.canceled)&&a.cancelable&&a.preventDefault()},handleCutOrCopyEvent:function(a){var b=ic.get_text();null==b&&(b="");a.clipboardData.setData("text/plain",b);a.cancelable&&a.preventDefault()},handleDragEvent:function(a){switch(a.type){case "dragover":return a.preventDefault(), +!1;case "dragstart":if("img"==v.__cast(a.target,HTMLElement).nodeName.toLowerCase()&&a.cancelable)return a.preventDefault(),!1;break;case "drop":if(null!=a.dataTransfer&&0>12&4095],b[n+1]=d[q&4095],g+=3,n+=2;switch(f-3*k){case 1:q=a.b[g]<<16;b[n]=d[q>>12&4095];b[n+1]="==";break;case 2:q=a.b[g]<<16|a.b[g+1]<<8,b[n]=d[q>>12&4095],b[n+1]=c[q>>6&63]+"="}return b.join("")};var rj=function(){};g["lime._internal.format.Deflate"]=rj;rj.__name__="lime._internal.format.Deflate";rj.decompress=function(a){a=pako.inflateRaw(a.b.bufferValue);return yb.ofData(a)};var sj=function(){}; +g["lime._internal.format.GZip"]=sj;sj.__name__="lime._internal.format.GZip";sj.decompress=function(a){a=pako.ungzip(a.b.bufferValue);return yb.ofData(a)};var tj=function(){};g["lime._internal.format.LZMA"]=tj;tj.__name__="lime._internal.format.LZMA";tj.decompress=function(a){var b=LZMA.decompress;a=a.b.bufferValue;a=null!=a?new Uint8Array(a,0):null;b=b(a);return"string"==typeof b?yb.ofString(b):yb.ofData(b)};var uj=function(){};g["lime._internal.format.Zlib"]=uj;uj.__name__="lime._internal.format.Zlib"; +uj.decompress=function(a){a=pako.inflate(a.b.bufferValue);return yb.ofData(a)};var Ka=function(){};g["lime._internal.graphics.ImageCanvasUtil"]=Ka;Ka.__name__="lime._internal.graphics.ImageCanvasUtil";Ka.colorTransform=function(a,b,c){Ka.convertToData(a);qd.colorTransform(a,b,c)};Ka.convertToCanvas=function(a,b){null==b&&(b=!1);var c=a.buffer;null!=c.__srcImage?(null==c.__srcCanvas&&(Ka.createCanvas(a,c.__srcImage.width,c.__srcImage.height),c.__srcContext.drawImage(c.__srcImage,0,0)),c.__srcImage= +null):null==c.__srcCanvas&&null!=c.data?(a.set_transparent(!0),Ka.createCanvas(a,c.width,c.height),Ka.createImageData(a),c.__srcContext.putImageData(c.__srcImageData,0,0)):a.type==Cc.DATA&&null!=c.__srcImageData&&a.dirty&&(c.__srcContext.putImageData(c.__srcImageData,0,0),a.dirty=!1);b?(c.data=null,c.__srcImageData=null):null==c.data&&null!=c.__srcImageData&&(c.data=c.__srcImageData.data);a.type=Cc.CANVAS};Ka.convertToData=function(a,b){null==b&&(b=!1);var c=a.buffer;null!=c.__srcImage&&Ka.convertToCanvas(a); +if(null!=c.__srcCanvas&&null==c.data)Ka.createImageData(a),a.type==Cc.CANVAS&&(a.dirty=!1);else if(a.type==Cc.CANVAS&&null!=c.__srcCanvas&&a.dirty){if(null==c.__srcImageData)Ka.createImageData(a);else{c.__srcImageData=c.__srcContext.getImageData(0,0,c.width,c.height);var d=c.__srcImageData.data.buffer;d=null!=d?new Uint8Array(d):null;c.data=d}a.dirty=!1}b&&(a.buffer.__srcCanvas=null,a.buffer.__srcContext=null);a.type=Cc.DATA};Ka.copyChannel=function(a,b,c,d,f,k){Ka.convertToData(b);Ka.convertToData(a); +qd.copyChannel(a,b,c,d,f,k)};Ka.copyPixels=function(a,b,c,d,f,k,u){null==u&&(u=!1);null==d||d.x>=a.width||d.y>=a.height||null==c||1>c.width||1>c.height||(null!=f&&f.get_transparent()&&(null==k&&(k=new Bf),b=b.clone(),b.copyChannel(f,new rd(c.x+k.x,c.y+k.y,c.width,c.height),new Bf(c.x,c.y),Cf.ALPHA,Cf.ALPHA)),Ka.convertToCanvas(a,!0),u||a.get_transparent()&&b.get_transparent()&&a.buffer.__srcContext.clearRect(d.x+a.offsetX,d.y+a.offsetY,c.width+a.offsetX,c.height+a.offsetY),Ka.convertToCanvas(b),null!= +b.buffer.get_src()&&(a.buffer.__srcContext.globalCompositeOperation="source-over",a.buffer.__srcContext.drawImage(b.buffer.get_src(),c.x+b.offsetX|0,c.y+b.offsetY|0,c.width|0,c.height|0,d.x+a.offsetX|0,d.y+a.offsetY|0,c.width|0,c.height|0)),a.dirty=!0,a.version++)};Ka.createCanvas=function(a,b,c){var d=a.buffer;null==d.__srcCanvas&&(d.__srcCanvas=window.document.createElement("canvas"),d.__srcCanvas.width=b,d.__srcCanvas.height=c,a.get_transparent()?d.__srcContext=d.__srcCanvas.getContext("2d"):(a.get_transparent()|| +d.__srcCanvas.setAttribute("moz-opaque","true"),d.__srcContext=d.__srcCanvas.getContext("2d",{alpha:!1})))};Ka.createImageData=function(a){a=a.buffer;if(null==a.__srcImageData){null==a.data?a.__srcImageData=a.__srcContext.getImageData(0,0,a.width,a.height):(a.__srcImageData=a.__srcContext.createImageData(a.width,a.height),a.__srcImageData.data.set(a.data));var b=a.__srcImageData.data.buffer;b=null!=b?new Uint8Array(b):null;a.data=b}};Ka.fillRect=function(a,b,c,d){Ka.convertToCanvas(a);if(1==d){d= +c>>16&255;var f=c>>8&255;var k=c&255;c=a.get_transparent()?c>>24&255:255}else d=c>>24&255,f=c>>16&255,k=c>>8&255,c=a.get_transparent()?c&255:255;0==b.x&&0==b.y&&b.width==a.width&&b.height==a.height&&a.get_transparent()&&0==c?a.buffer.__srcCanvas.width=a.buffer.width:(255>c&&a.buffer.__srcContext.clearRect(b.x+a.offsetX,b.y+a.offsetY,b.width+a.offsetX,b.height+a.offsetY),0>> +24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((m>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((m>>>8&255)*X.unmult)]&255)<<8|m&255);m=(g[m>>>24&255]&255)<<24|(n[m>>>16&255]&255)<<16|(c[m>>>8&255]&255)<<8|u[m&255]&255;l=f;I=k;null==I&&(I=!1);null==l&&(l=0);I&&(0==(m&255)?0!=m&&(m=0):255!=(m&255)&&(X.a16=X.__alpha16[m&255],m=((m>>>24&255)*X.a16>>16&255)<<24|((m>>>16&255)*X.a16>>16&255)<<16|((m>>>8&255)*X.a16>>16&255)<<8|m&255));switch(l){case 0:d[h]=m>>>24&255;d[h+1]=m>>>16&255;d[h+2]=m>>> +8&255;d[h+3]=m&255;break;case 1:d[h]=m&255;d[h+1]=m>>>24&255;d[h+2]=m>>>16&255;d[h+3]=m>>>8&255;break;case 2:d[h]=m>>>8&255,d[h+1]=m>>>16&255,d[h+2]=m>>>24&255,d[h+3]=m&255}}}a.dirty=!0;a.version++}};qd.copyChannel=function(a,b,c,d,f,k){switch(k._hx_index){case 0:var u=0;break;case 1:u=1;break;case 2:u=2;break;case 3:u=3}switch(f._hx_index){case 0:var g=0;break;case 1:g=1;break;case 2:g=2;break;case 3:g=3}f=b.buffer.data;k=a.buffer.data;if(null!=f&&null!=k){c=new ke(b,c);d=new ke(a,new rd(d.x,d.y, +c.width,c.height));var n=b.buffer.format,q=a.buffer.format;b=b.buffer.premultiplied;for(var h=a.buffer.premultiplied,m,w,r=0,p=0,C=0,l=0,I=d.height;l>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((r>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((r>>>8&255)*X.unmult)]&255)<<8|r&255);B=q;D=h;null==D&&(D=!1);null==B&&(B=0);switch(B){case 0:p=(k[w]&255)<<24|(k[w+1]&255)<<16|(k[w+2]&255)<<8|k[w+3]&255;break;case 1:p=(k[w+1]&255)<<24|(k[w+2]&255)<<16|(k[w+3]&255)<<8|k[w]&255;break;case 2:p=(k[w+2]&255)<<24|(k[w+1]&255)<<16|(k[w]&255)<<8|k[w+3]&255}D&& +0!=(p&255)&&255!=(p&255)&&(X.unmult=255/(p&255),p=(X.__clamp[Math.round((p>>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((p>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((p>>>8&255)*X.unmult)]&255)<<8|p&255);switch(g){case 0:C=r>>>24&255;break;case 1:C=r>>>16&255;break;case 2:C=r>>>8&255;break;case 3:C=r&255}switch(u){case 0:p=(C&255)<<24|(p>>>16&255)<<16|(p>>>8&255)<<8|p&255;break;case 1:p=(p>>>24&255)<<24|(C&255)<<16|(p>>>8&255)<<8|p&255;break;case 2:p=(p>>>24&255)<<24|(p>>>16&255)<< +16|(C&255)<<8|p&255;break;case 3:p=(p>>>24&255)<<24|(p>>>16&255)<<16|(p>>>8&255)<<8|C&255}B=q;D=h;null==D&&(D=!1);null==B&&(B=0);D&&(0==(p&255)?0!=p&&(p=0):255!=(p&255)&&(X.a16=X.__alpha16[p&255],p=((p>>>24&255)*X.a16>>16&255)<<24|((p>>>16&255)*X.a16>>16&255)<<16|((p>>>8&255)*X.a16>>16&255)<<8|p&255));switch(B){case 0:k[w]=p>>>24&255;k[w+1]=p>>>16&255;k[w+2]=p>>>8&255;k[w+3]=p&255;break;case 1:k[w]=p&255;k[w+1]=p>>>24&255;k[w+2]=p>>>16&255;k[w+3]=p>>>8&255;break;case 2:k[w]=p>>>8&255,k[w+1]=p>>>16& +255,k[w+2]=p>>>24&255,k[w+3]=p&255}m+=4;w+=4}}a.dirty=!0;a.version++}};qd.copyPixels=function(a,b,c,d,f,k,u){null==u&&(u=!1);if(a.width==b.width&&a.height==b.height&&c.width==b.width&&c.height==b.height&&0==c.x&&0==c.y&&0==d.x&&0==d.y&&null==f&&null==k&&0==u&&a.get_format()==b.get_format())a.buffer.data.set(b.buffer.data);else{var g=b.buffer.data,n=a.buffer.data;if(null==g||null==n)return;c=new ke(b,c);var q=new rd(d.x,d.y,c.width,c.height);q=new ke(a,q);var h=b.buffer.format,m=a.buffer.format,w= +0,p=0,r=b.buffer.premultiplied,C=a.buffer.premultiplied,l=b.buffer.bitsPerPixel/8|0,I=a.buffer.bitsPerPixel/8|0,v=null!=f&&f.get_transparent(),B=u||v&&!a.get_transparent()||!u&&!a.get_transparent()&&b.get_transparent();if(v)if(I=f.buffer.data,b=f.buffer.format,u=0,f=new ke(f,new rd(c.x+(null==k?0:k.x),c.y+(null==k?0:k.y),c.width,c.height)),q.clip(d.x|0,d.y|0,f.width,f.height),B)for(B=0,l=q.height;B>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((w>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((w>>>8&255)*X.unmult)]&255)<<8|w&255); +G=m;D=C;null==D&&(D=!1);null==G&&(G=0);switch(G){case 0:p=(n[k]&255)<<24|(n[k+1]&255)<<16|(n[k+2]&255)<<8|n[k+3]&255;break;case 1:p=(n[k+1]&255)<<24|(n[k+2]&255)<<16|(n[k+3]&255)<<8|n[k]&255;break;case 2:p=(n[k+2]&255)<<24|(n[k+1]&255)<<16|(n[k]&255)<<8|n[k+3]&255}D&&0!=(p&255)&&255!=(p&255)&&(X.unmult=255/(p&255),p=(X.__clamp[Math.round((p>>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((p>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((p>>>8&255)*X.unmult)]&255)<<8|p&255);G=b;D=!1;null== +D&&(D=!1);null==G&&(G=0);switch(G){case 0:u=(I[v]&255)<<24|(I[v+1]&255)<<16|(I[v+2]&255)<<8|I[v+3]&255;break;case 1:u=(I[v+1]&255)<<24|(I[v+2]&255)<<16|(I[v+3]&255)<<8|I[v]&255;break;case 2:u=(I[v+2]&255)<<24|(I[v+1]&255)<<16|(I[v]&255)<<8|I[v+3]&255}D&&0!=(u&255)&&255!=(u&255)&&(X.unmult=255/(u&255),u=(X.__clamp[Math.round((u>>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((u>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((u>>>8&255)*X.unmult)]&255)<<8|u&255);D=(u&255)/255*((w&255)/255); +if(0>>24&255)*D+(p>>>24&255)*x*z)/G)];p=(E&255)<<24|(p>>>16&255)<<16|(p>>>8&255)<<8|p&255;E=X.__clamp[Math.round(((w>>>16&255)*D+(p>>>16&255)*x*z)/G)];p=(p>>>24&255)<<24|(E&255)<<16|(p>>>8&255)<<8|p&255;D=X.__clamp[Math.round(((w>>>8&255)*D+(p>>>8&255)*x*z)/G)];p=(p>>>24&255)<<24|(p>>>16&255)<<16|(D&255)<<8|p&255;G=X.__clamp[Math.round(255*G)];p=(p>>>24&255)<<24|(p>>>16&255)<<16|(p>>>8&255)<<8|G&255;G=m;D=C;null==D&&(D=!1);null==G&& +(G=0);D&&(0==(p&255)?0!=p&&(p=0):255!=(p&255)&&(X.a16=X.__alpha16[p&255],p=((p>>>24&255)*X.a16>>16&255)<<24|((p>>>16&255)*X.a16>>16&255)<<16|((p>>>8&255)*X.a16>>16&255)<<8|p&255));switch(G){case 0:n[k]=p>>>24&255;n[k+1]=p>>>16&255;n[k+2]=p>>>8&255;n[k+3]=p&255;break;case 1:n[k]=p&255;n[k+1]=p>>>24&255;n[k+2]=p>>>16&255;n[k+3]=p>>>8&255;break;case 2:n[k]=p>>>8&255,n[k+1]=p>>>16&255,n[k+2]=p>>>24&255,n[k+3]=p&255}}d+=4;k+=4;v+=4}else for(B=0,l=q.height;B>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((w>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((w>>> +8&255)*X.unmult)]&255)<<8|w&255);G=b;D=!1;null==D&&(D=!1);null==G&&(G=0);switch(G){case 0:u=(I[v]&255)<<24|(I[v+1]&255)<<16|(I[v+2]&255)<<8|I[v+3]&255;break;case 1:u=(I[v+1]&255)<<24|(I[v+2]&255)<<16|(I[v+3]&255)<<8|I[v]&255;break;case 2:u=(I[v+2]&255)<<24|(I[v+1]&255)<<16|(I[v]&255)<<8|I[v+3]&255}D&&0!=(u&255)&&255!=(u&255)&&(X.unmult=255/(u&255),u=(X.__clamp[Math.round((u>>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((u>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((u>>>8&255)*X.unmult)]& +255)<<8|u&255);E=Math.round((u&255)/255*(w&255));w=(w>>>24&255)<<24|(w>>>16&255)<<16|(w>>>8&255)<<8|E&255;G=m;D=C;null==D&&(D=!1);null==G&&(G=0);D&&(0==(w&255)?0!=w&&(w=0):255!=(w&255)&&(X.a16=X.__alpha16[w&255],w=((w>>>24&255)*X.a16>>16&255)<<24|((w>>>16&255)*X.a16>>16&255)<<16|((w>>>8&255)*X.a16>>16&255)<<8|w&255));switch(G){case 0:n[k]=w>>>24&255;n[k+1]=w>>>16&255;n[k+2]=w>>>8&255;n[k+3]=w&255;break;case 1:n[k]=w&255;n[k+1]=w>>>24&255;n[k+2]=w>>>16&255;n[k+3]=w>>>8&255;break;case 2:n[k]=w>>>8& +255,n[k+1]=w>>>16&255,n[k+2]=w>>>24&255,n[k+3]=w&255}d+=4;k+=4;v+=4}else if(B)for(B=0,l=q.height;B>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((w>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((w>>>8&255)*X.unmult)]&255)<<8|w&255);G=m;D=C;null==D&&(D=!1);null==G&&(G=0);switch(G){case 0:p=(n[k]&255)<<24|(n[k+1]&255)<<16|(n[k+2]&255)<<8|n[k+3]&255;break;case 1:p=(n[k+1]&255)<<24|(n[k+2]&255)<<16|(n[k+3]&255)<<8|n[k]&255;break;case 2:p=(n[k+2]&255)<<24|(n[k+1]&255)<<16|(n[k]&255)<<8|n[k+3]&255}D&&0!=(p&255)&&255!=(p&255)&&(X.unmult=255/(p&255),p=(X.__clamp[Math.round((p>>> +24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((p>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((p>>>8&255)*X.unmult)]&255)<<8|p&255);D=(w&255)/255;x=(p&255)/255;z=1-D;G=D+x*z;if(0==G)p=0;else{var E=X.__clamp[Math.round(((w>>>24&255)*D+(p>>>24&255)*x*z)/G)];p=(E&255)<<24|(p>>>16&255)<<16|(p>>>8&255)<<8|p&255;E=X.__clamp[Math.round(((w>>>16&255)*D+(p>>>16&255)*x*z)/G)];p=(p>>>24&255)<<24|(E&255)<<16|(p>>>8&255)<<8|p&255;D=X.__clamp[Math.round(((w>>>8&255)*D+(p>>>8&255)*x*z)/G)];p=(p>>>24& +255)<<24|(p>>>16&255)<<16|(D&255)<<8|p&255;G=X.__clamp[Math.round(255*G)];p=(p>>>24&255)<<24|(p>>>16&255)<<16|(p>>>8&255)<<8|G&255}G=m;D=C;null==D&&(D=!1);null==G&&(G=0);D&&(0==(p&255)?0!=p&&(p=0):255!=(p&255)&&(X.a16=X.__alpha16[p&255],p=((p>>>24&255)*X.a16>>16&255)<<24|((p>>>16&255)*X.a16>>16&255)<<16|((p>>>8&255)*X.a16>>16&255)<<8|p&255));switch(G){case 0:n[k]=p>>>24&255;n[k+1]=p>>>16&255;n[k+2]=p>>>8&255;n[k+3]=p&255;break;case 1:n[k]=p&255;n[k+1]=p>>>24&255;n[k+2]=p>>>16&255;n[k+3]=p>>>8&255; +break;case 2:n[k]=p>>>8&255,n[k+1]=p>>>16&255,n[k+2]=p>>>24&255,n[k+3]=p&255}d+=4;k+=4}}else if(h==m&&r==C&&l==I)for(B=0,l=q.height;B>>24&255)*X.unmult)]&255)<<24|(X.__clamp[Math.round((w>>>16&255)*X.unmult)]&255)<<16|(X.__clamp[Math.round((w>>>8&255)*X.unmult)]&255)<<8|w&255);G=m;D=C;null==D&&(D=!1);null==G&&(G=0);D&&(0==(w&255)?0!=w&&(w=0):255!=(w&255)&&(X.a16=X.__alpha16[w&255],w=((w>>>24&255)*X.a16>>16&255)<<24|((w>>>16&255)*X.a16>>16&255)<< +16|((w>>>8&255)*X.a16>>16&255)<<8|w&255));switch(G){case 0:n[k]=w>>>24&255;n[k+1]=w>>>16&255;n[k+2]=w>>>8&255;n[k+3]=w&255;break;case 1:n[k]=w&255;n[k+1]=w>>>24&255;n[k+2]=w>>>16&255;n[k+3]=w>>>8&255;break;case 2:n[k]=w>>>8&255,n[k+1]=w>>>16&255,n[k+2]=w>>>24&255,n[k+3]=w&255}d+=4;k+=4}}a.dirty=!0;a.version++};qd.fillRect=function(a,b,c,d){switch(d){case 1:c=(c>>>16&255)<<24|(c>>>8&255)<<16|(c&255)<<8|c>>>24&255;break;case 2:c=(c>>>8&255)<<24|(c>>>16&255)<<16|(c>>>24&255)<<8|c&255}a.get_transparent()|| +(c=(c>>>24&255)<<24|(c>>>16&255)<<16|(c>>>8&255)<<8|255);var f=a.buffer.data;if(null!=f){d=a.buffer.format;var k=a.buffer.premultiplied;k&&(0==(c&255)?0!=c&&(c=0):255!=(c&255)&&(X.a16=X.__alpha16[c&255],c=((c>>>24&255)*X.a16>>16&255)<<24|((c>>>16&255)*X.a16>>16&255)<<16|((c>>>8&255)*X.a16>>16&255)<<8|c&255));b=new ke(a,b);for(var u,g=0,n=b.height;g>>24&255)*X.a16>>16&255)<<24|((c>>>16&255)*X.a16>>16&255)<<16|((c>>>8&255)*X.a16>>16&255)<<8|c&255));switch(w){case 0:f[m]=c>>>24&255;f[m+1]=c>>>16&255;f[m+2]=c>>>8&255;f[m+3]=c&255;break;case 1:f[m]=c&255;f[m+1]=c>>>24&255;f[m+2]=c>>>16&255;f[m+3]=c>>>8&255;break;case 2:f[m]=c>>>8&255,f[m+1]=c>>>16&255,f[m+2]=c>>>24&255,f[m+3]=c&255}}}a.dirty=!0;a.version++}};qd.setFormat=function(a,b){var c=a.buffer.data;if(null!=c){var d=c.length/4|0;switch(a.get_format()){case 0:var f= +0;var k=1;var u=2;var g=3;break;case 1:f=1;k=2;u=3;g=0;break;case 2:f=2,k=1,u=0,g=3}switch(b){case 0:var n=0;var q=1;var h=2;var m=3;break;case 1:n=1;q=2;h=3;m=0;break;case 2:n=2,q=1,h=0,m=3}for(var w=0;wb.x&&(b.x=0),0>b.y&&(b.y=0),b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height> +a.height&&(b.height=a.height-b.y),0>b.width&&(b.width=0),0>b.height&&(b.height=0),this.rect=b);this.stride=a.buffer.get_stride();this.__update()};g["lime._internal.graphics._ImageDataUtil.ImageDataView"]=ke;ke.__name__="lime._internal.graphics._ImageDataUtil.ImageDataView";ke.prototype={clip:function(a,b,c,d){null==this.tempRect&&(this.tempRect=new rd);this.tempRect.setTo(a,b,c,d);this.rect.intersection(this.tempRect,this.rect);this.__update()},__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__:ke};var rb=function(a,b){null==b&&(b=!1);if(null!=a){var c=new Ic;c.future=this;b&&Gd.makePortable(a);eb.run({func:rb.dispatchWorkFunction,classPath:"lime.app.Future",functionName:"dispatchWorkFunction"},a,c,b&&!0,!0)}};g["lime.app.Future"]=rb;rb.__name__="lime.app.Future";rb.withError=function(a){var b= +new rb;b.isError=!0;b.error=a;return b};rb.withValue=function(a){var b=new rb;b.isComplete=!0;b.value=a;return b};rb.dispatchWorkFunction=function(a){return Gd.toFunction(a)()};rb.prototype={onComplete:function(a){null!=a&&(this.isComplete?a(this.value):this.isError||(null==this.__completeListeners&&(this.__completeListeners=[]),this.__completeListeners.push(a)));return this},onError:function(a){null!=a&&(this.isError?a(this.error):this.isComplete||(null==this.__errorListeners&&(this.__errorListeners= +[]),this.__errorListeners.push(a)));return this},onProgress:function(a){null!=a&&(null==this.__progressListeners&&(this.__progressListeners=[]),this.__progressListeners.push(a));return this},then:function(a){if(this.isComplete)return a(this.value);if(this.isError){var b=new rb;b.isError=!0;b.error=this.error;return b}var c=new Ic;this.onError(h(c,c.error));this.onProgress(h(c,c.progress));this.onComplete(function(b){b=a(b);b.onError(h(c,c.error));b.onComplete(h(c,c.complete))});return c.future},__class__:rb}; +var eb=function(){};g["lime.app.FutureWork"]=eb;eb.__name__="lime.app.FutureWork";eb.getPool=function(a){if(1==a)return null==eb.multiThreadPool&&(eb.multiThreadPool=new Gb(eb.minThreads,eb.maxThreads,!0),eb.multiThreadPool.onComplete.add(eb.multiThreadPool_onComplete),eb.multiThreadPool.onError.add(eb.multiThreadPool_onError)),eb.multiThreadPool;null==eb.singleThreadPool&&(eb.singleThreadPool=new Gb(eb.minThreads,eb.maxThreads,!1),eb.singleThreadPool.onComplete.add(eb.singleThreadPool_onComplete), +eb.singleThreadPool.onError.add(eb.singleThreadPool_onError));return eb.singleThreadPool};eb.run=function(a,b,c,d,f){null==f&&(f=!1);null==d&&(d=!0);b={work:a,state:b,promise:c,legacyCode:f};1==d&&(Gd.makePortable(a),b.promise=null);a=eb.getPool(d).run({func:eb.threadPool_doWork,classPath:"lime.app.FutureWork",functionName:"threadPool_doWork"},b);1==d&&(c={complete:h(c,c.complete),error:h(c,c.error)},eb.promises.h[a]=c)};eb.threadPool_doWork=function(a,b){try{var c=Gd.toFunction(a.work)(a.state); +if(null!=c||a.legacyCode)Gd.makePortable(a.work),b.sendComplete(c)}catch(d){Ia.lastError=d,c=fa.caught(d).unwrap(),Gd.makePortable(a.work),b.sendError(c)}};eb.singleThreadPool_onComplete=function(a){eb.singleThreadPool.__activeJob.value.state.promise.complete(a)};eb.singleThreadPool_onError=function(a){eb.singleThreadPool.__activeJob.value.state.promise.error(a)};eb.multiThreadPool_onComplete=function(a){var b=eb.promises.h[eb.multiThreadPool.__activeJob.value.id];eb.promises.remove(eb.multiThreadPool.__activeJob.value.id); +b.complete(a)};eb.multiThreadPool_onError=function(a){var b=eb.promises.h[eb.multiThreadPool.__activeJob.value.id];eb.promises.remove(eb.multiThreadPool.__activeJob.value.id);b.error(a)};var Ic=function(){this.future=new rb};g["lime.app.Promise"]=Ic;Ic.__name__="lime.app.Promise";Ic.prototype={complete:function(a){if(!this.future.isError&&(this.future.isComplete=!0,this.future.value=a,null!=this.future.__completeListeners)){for(var b=0,c=this.future.__completeListeners;bthis.__priorities[k]){this.__listeners.splice(k, +0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,f=this.__repeat,k=0;kthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)}, +remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,f=0;fthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b, +1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,f=this.__repeat,k=0;kthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a, +b,c){this.canceled=!1;for(var d=this.__listeners,f=this.__repeat,k=0;kthis.__priorities[k]){this.__listeners.splice(k, +0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,f=0;fthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<= +--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,f=0;fthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},has:function(a){for(var b=0,c=this.__listeners;bthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},__class__:ui};var vi=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_String_Int_Int_Void"]=vi;vi.__name__="lime.app._Event_String_Int_Int_Void";vi.prototype={add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,f=this.__priorities.length;d< +f;){var k=d++;if(c>this.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},__class__:vi};var gh=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_String_Void"]=gh;gh.__name__="lime.app._Event_String_Void";gh.prototype={add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,f=this.__priorities.length;d< +f;){var k=d++;if(c>this.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;bthis.__priorities[k]){this.__listeners.splice(k, +0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(){this.canceled=!1;for(var a=this.__listeners,b=this.__repeat,c=0;cthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)}, +cancel:function(){this.canceled=!0},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]== +a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,f=0;fthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b= +this.__listeners,c=this.__repeat,d=0;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k, +0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<= +--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1), +this.__repeat.splice(b,1))},dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,f=0;fthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;dthis.__priorities[k]){this.__listeners.splice(k,0,a);this.__priorities.splice(k,0,c);this.__repeat.splice(k,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c); +this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)this.__listeners[b]==a&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;da.length)return!1;a=a.getString(0,6);return"GIF87a"!=a?"GIF89a"==a:!0};Fb.__isJPG=function(a){return null==a||4>a.length?!1:255==a.b[0]&&216==a.b[1]&&255==a.b[a.length-2]?217==a.b[a.length-1]:!1};Fb.__isPNG=function(a){return null==a||8>a.length?!1:137==a.b[0]&&80==a.b[1]&&78==a.b[2]&&71==a.b[3]&&13==a.b[4]&&10==a.b[5]&&26==a.b[6]?10==a.b[7]:!1};Fb.__isWebP=function(a){return null==a||16>a.length?!1: +"RIFF"==a.getString(0,4)?"WEBP"==a.getString(8,4):!1};Fb.prototype={clone:function(){if(null!=this.buffer){this.type==Cc.CANVAS?Ka.convertToCanvas(this):Ka.convertToData(this);var a=new Fb(this.buffer.clone(),this.offsetX,this.offsetY,this.width,this.height,null,this.type);a.version=this.version;return a}return new Fb(null,this.offsetX,this.offsetY,this.width,this.height,null,this.type)},colorTransform:function(a,b){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(this.type._hx_index){case 0:Ka.colorTransform(this, +a,b);break;case 1:Ka.convertToData(this);qd.colorTransform(this,a,b);break;case 2:a.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.colorTransform(a.__toFlashRectangle(),xc.__toFlashColorTransform(b))}},copyChannel:function(a,b,c,d,f){b=this.__clipRect(b);if(null!=this.buffer&&null!=b&&!(f==Cf.ALPHA&&!this.get_transparent()||0>=b.width||0>=b.height))switch(b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),this.type._hx_index){case 0:Ka.copyChannel(this, +a,b,c,d,f);break;case 1:Ka.convertToData(this);Ka.convertToData(a);qd.copyChannel(this,a,b,c,d,f);break;case 2:switch(d._hx_index){case 0:var k=1;break;case 1:k=2;break;case 2:k=4;break;case 3:k=8}switch(f._hx_index){case 0:var u=1;break;case 1:u=2;break;case 2:u=4;break;case 3:u=8}b.offset(a.offsetX,a.offsetY);c.offset(this.offsetX,this.offsetY);this.buffer.__srcBitmapData.copyChannel(a.buffer.get_src(),b.__toFlashRectangle(),c.__toFlashPoint(),k,u)}},copyPixels:function(a,b,c,d,f,k){null==k&&(k= +!1);if(null!=this.buffer&&null!=a&&!(0>=b.width||0>=b.height||0>=this.width||0>=this.height))switch(b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),0>b.x&&(b.width+=b.x,b.x=0),0>b.y&&(b.height+=b.y,b.y=0),c.x+b.width>this.width&&(b.width=this.width-c.x),c.y+b.height>this.height&&(b.height=this.height-c.y),0>c.x&&(b.width+=c.x,b.x-=c.x,c.x=0),0>c.y&&(b.height+=c.y,b.y-=c.y,c.y=0),a==this&&c.x>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255;else switch(c){case 1:break;case 2:b=(b&255)<< +24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255;break;default:b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255}this.buffer.__srcBitmapData.fillRect(a.__toFlashRectangle(),b)}},__clipRect:function(a){return null==a||0>a.x&&(a.width-=-a.x,a.x=0,0>=a.x+a.width)||0>a.y&&(a.height-=-a.y,a.y=0,0>=a.y+a.height)||a.x+a.width>=this.width&&(a.width-=a.x+a.width-this.width,0>=a.width)||a.y+a.height>=this.height&&(a.height-=a.y+a.height-this.height,0>=a.height)?null:a},__fromBase64:function(a,b,c){var d= +this,f=new window.Image;f.addEventListener("load",function(a){d.buffer=new ie(null,f.width,f.height);d.buffer.__srcImage=f;d.offsetX=0;d.offsetY=0;d.width=d.buffer.width;d.height=d.buffer.height;null!=c&&c(d)},!1);f.src="data:"+b+";base64,"+a},__fromBytes:function(a,b){if(Fb.__isPNG(a))var c="image/png";else if(Fb.__isJPG(a))c="image/jpeg";else if(Fb.__isGIF(a))c="image/gif";else return!1;this.__fromBase64(Td.encode(a),c,b);return!0},__fromFile:function(a,b,c){var d=this,f=new window.Image;xa.__isSameOrigin(a)|| +(f.crossOrigin="Anonymous");f.onload=function(a){d.buffer=new ie(null,f.width,f.height);d.buffer.__srcImage=f;d.width=f.width;d.height=f.height;null!=b&&b(d)};f.onerror=function(a){null!=c&&c()};f.src=a;return!0},__fromImageBuffer:function(a){this.buffer=a;null!=a&&(-1==this.width&&(this.width=a.width),-1==this.height&&(this.height=a.height))},get_data:function(){null==this.buffer.data&&0b;){var c=b++;var d=Math.floor(c*a[18]+255*a[19]);255d&&(d=0);xc.__alphaTable[c]=d}return xc.__alphaTable},getBlueTable:function(a){null==xc.__blueTable&&(xc.__blueTable=new Uint8Array(256));for(var b, +c=0;256>c;){var d=c++;b=Math.floor(d*a[12]+255*a[14]);255b&&(b=0);xc.__blueTable[d]=b}return xc.__blueTable},getGreenTable:function(a){null==xc.__greenTable&&(xc.__greenTable=new Uint8Array(256));for(var b,c=0;256>c;){var d=c++;b=Math.floor(d*a[6]+255*a[9]);255b&&(b=0);xc.__greenTable[d]=b}return xc.__greenTable},getRedTable:function(a){null==xc.__redTable&&(xc.__redTable=new Uint8Array(256));for(var b,c=0;256>c;){var d=c++;b=Math.floor(d*a[0]+255*a[4]);255b&&(b=0);xc.__redTable[d]=b}return xc.__redTable},__toFlashColorTransform:function(a){return null}},Qa={_new:function(a){if(null==a||16!=a.length)a=Qa.__identity,a=null!=a?new Float32Array(a):null;return a},append:function(a,b){var c=a[0],d=a[4],f=a[8],k=a[12],u=a[1],g=a[5],n=a[9],q=a[13],h=a[2],m=a[6],w=a[10],p=a[14],r=a[3],C=a[7],l=a[11],I=a[15],v=Qa.get(b,0),G=Qa.get(b,4),D=Qa.get(b,8),B=Qa.get(b,12),x=Qa.get(b,1),z=Qa.get(b,5),t=Qa.get(b,9),A=Qa.get(b,13),E=Qa.get(b,2),ra=Qa.get(b,6),ja=Qa.get(b, +10),Oa=Qa.get(b,14),sa=Qa.get(b,3),O=Qa.get(b,7),W=Qa.get(b,11);b=Qa.get(b,15);a[0]=c*v+u*G+h*D+r*B;a[1]=c*x+u*z+h*t+r*A;a[2]=c*E+u*ra+h*ja+r*Oa;a[3]=c*sa+u*O+h*W+r*b;a[4]=d*v+g*G+m*D+C*B;a[5]=d*x+g*z+m*t+C*A;a[6]=d*E+g*ra+m*ja+C*Oa;a[7]=d*sa+g*O+m*W+C*b;a[8]=f*v+n*G+w*D+l*B;a[9]=f*x+n*z+w*t+l*A;a[10]=f*E+n*ra+w*ja+l*Oa;a[11]=f*sa+n*O+w*W+l*b;a[12]=k*v+q*G+p*D+I*B;a[13]=k*x+q*z+p*t+I*A;a[14]=k*E+q*ra+p*ja+I*Oa;a[15]=k*sa+q*O+p*W+I*b},createOrtho:function(a,b,c,d,f,k,u){var g=1/(c-b),n=1/(f-d),q=1/ +(u-k);a[0]=2*g;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=2*n;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=-2*q;a[11]=0;a[12]=-(b+c)*g;a[13]=-(d+f)*n;a[14]=-(k+u)*q;a[15]=1},identity:function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1},get:function(a,b){return a[b]},set:function(a,b,c){return a[b]=c}},X={},rd=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.width=c;this.height=d};g["lime.math.Rectangle"]= +rd;rd.__name__="lime.math.Rectangle";rd.prototype={intersection:function(a,b){null==b&&(b=new rd);var c=this.xa.get_right()?a.get_right():this.get_right();if(d<=c)return b.setEmpty(),b;var f=this.ya.get_bottom()?a.get_bottom():this.get_bottom();if(a<=f)return b.setEmpty(),b;b.x=c;b.y=f;b.width=d-c;b.height=a-f;return b},offset:function(a,b){this.x+=a;this.y+=b},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(a, +b,c,d){this.x=a;this.y=b;this.width=c;this.height=d},__toFlashRectangle:function(){return null},get_bottom:function(){return this.y+this.height},get_right:function(){return this.x+this.width},__class__:rd,__properties__:{get_right:"get_right",get_bottom:"get_bottom"}};var Bf=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};g["lime.math.Vector2"]=Bf;Bf.__name__="lime.math.Vector2";Bf.prototype={offset:function(a,b){this.x+=a;this.y+=b},__toFlashPoint:function(){return null},__class__:Bf}; +var mi=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.w=d;this.x=a;this.y=b;this.z=c};g["lime.math.Vector4"]=mi;mi.__name__="lime.math.Vector4";mi.prototype={__class__:mi};var kc=function(){};g["lime.media.AudioBuffer"]=kc;kc.__name__="lime.media.AudioBuffer";kc.fromBytes=function(a){if(null==a)return null;var b=new kc;b.set_src(new Howl({src:["data:"+kc.__getCodec(a)+";base64,"+Td.encode(a)],html5:!0,preload:!1}));return b};kc.fromFile=function(a){if(null==a)return null; +var b=new kc;b.__srcHowl=new Howl({src:[a],preload:!1});return b};kc.fromFiles=function(a){var b=new kc;b.__srcHowl=new Howl({src:a,preload:!1});return b};kc.loadFromFile=function(a){var b=new Ic,c=kc.fromFile(a);null!=c?null!=c&&(c.__srcHowl.on("load",function(){b.complete(c)}),c.__srcHowl.on("loaderror",function(a,c){b.error(c)}),c.__srcHowl.load()):b.error(null);return b.future};kc.loadFromFiles=function(a){var b=new Ic,c=kc.fromFiles(a);null!=c?(c.__srcHowl.on("load",function(){b.complete(c)}), +c.__srcHowl.on("loaderror",function(){b.error(null)}),c.__srcHowl.load()):b.error(null);return b.future};kc.__getCodec=function(a){switch(a.getString(0,4)){case "OggS":return"audio/ogg";case "RIFF":if("WAVE"==a.getString(8,4))return"audio/wav";var b=a.b[1],c=a.b[2];switch(a.b[0]){case 73:if(68==b&&51==c)return"audio/mp3";break;case 255:switch(b){case 243:case 250:case 251:return"audio/mp3"}}break;case "fLaC":return"audio/flac";default:switch(b=a.b[1],c=a.b[2],a.b[0]){case 73:if(68==b&&51==c)return"audio/mp3"; +break;case 255:switch(b){case 243:case 250:case 251:return"audio/mp3"}}}Fa.error("Unsupported sound format",{fileName:"lime/media/AudioBuffer.hx",lineNumber:362,className:"lime.media.AudioBuffer",methodName:"__getCodec"});return null};kc.prototype={set_src:function(a){return this.__srcHowl=a},__class__:kc,__properties__:{set_src:"set_src"}};var Bi=function(a){if("custom"!=a){if(null==a||"web"==a)try{window.AudioContext=window.AudioContext||window.webkitAudioContext,this.web=new window.AudioContext, +this.type="web"}catch(b){Ia.lastError=b}null==this.web&&"web"!=a&&(this.html5=new Ai,this.type="html5")}else this.type="custom"};g["lime.media.AudioContext"]=Bi;Bi.__name__="lime.media.AudioContext";Bi.prototype={__class__:Bi};var ae=function(){};g["lime.media.AudioManager"]=ae;ae.__name__="lime.media.AudioManager";ae.init=function(a){if(null==ae.context){if(null==a&&(ae.context=new Bi,a=ae.context,"openal"==a.type)){var b=a.openal,c=b.openDevice();c=b.createContext(c);b.makeContextCurrent(c);b.processContext(c)}ae.context= +a}};var xj=function(a,b,c,d){null==d&&(d=0);null==b&&(b=0);this.onComplete=new jc;this.buffer=a;this.offset=b;this.__backend=new ni(this);null!=c&&0!=c&&this.set_length(c);this.set_loops(d);null!=a&&this.init()};g["lime.media.AudioSource"]=xj;xj.__name__="lime.media.AudioSource";xj.prototype={dispose:function(){this.__backend.dispose()},init:function(){this.__backend.init()},play:function(){this.__backend.play()},stop:function(){this.__backend.stop()},get_currentTime:function(){return this.__backend.getCurrentTime()}, +set_currentTime:function(a){return this.__backend.setCurrentTime(a)},get_gain:function(){return this.__backend.getGain()},set_gain:function(a){return this.__backend.setGain(a)},set_length:function(a){return this.__backend.setLength(a)},set_loops:function(a){return this.__backend.setLoops(a)},get_position:function(){return this.__backend.getPosition()},set_position:function(a){return this.__backend.setPosition(a)},__class__:xj,__properties__:{set_loops:"set_loops",set_length:"set_length",set_position:"set_position", +get_position:"get_position",set_gain:"set_gain",get_gain:"get_gain",set_currentTime:"set_currentTime",get_currentTime:"get_currentTime"}};var Ai=function(){};g["lime.media.HTML5AudioContext"]=Ai;Ai.__name__="lime.media.HTML5AudioContext";Ai.prototype={__class__:Ai};var yj=function(){};g["lime.media.OpenALAudioContext"]=yj;yj.__name__="lime.media.OpenALAudioContext";yj.prototype={createContext:function(a,b){return Ee.createContext(a,b)},makeContextCurrent:function(a){return Ee.makeContextCurrent(a)}, +openDevice:function(a){return Ee.openDevice(a)},processContext:function(a){Ee.processContext(a)},__class__:yj};var Ee=function(){};g["lime.media.openal.ALC"]=Ee;Ee.__name__="lime.media.openal.ALC";Ee.createContext=function(a,b){return null};Ee.makeContextCurrent=function(a){return!1};Ee.openDevice=function(a){return null};Ee.processContext=function(a){};var kh=function(){};g["lime.net._IHTTPRequest"]=kh;kh.__name__="lime.net._IHTTPRequest";kh.__isInterface__=!0;kh.prototype={__class__:kh};var Hd= +function(a){this.uri=a;this.contentType="application/x-www-form-urlencoded";this.followRedirects=!0;this.enableResponseHeaders=!1;this.formData=new La;this.headers=[];this.method="GET";this.timeout=3E4;this.withCredentials=!1;this.manageCookies=!0;this.__backend=new xa;this.__backend.init(this)};g["lime.net._HTTPRequest.AbstractHTTPRequest"]=Hd;Hd.__name__="lime.net._HTTPRequest.AbstractHTTPRequest";Hd.__interfaces__=[kh];Hd.prototype={__class__:Hd};var Fe=function(a){Hd.call(this,a)};g["lime.net._HTTPRequest_Bytes"]= +Fe;Fe.__name__="lime.net._HTTPRequest_Bytes";Fe.__super__=Hd;Fe.prototype=t(Hd.prototype,{fromBytes:function(a){return a},load:function(a){var b=this;null!=a&&(this.uri=a);var c=new Ic;a=this.__backend.loadData(this.uri);a.onProgress(h(c,c.progress));a.onError(function(a){b.responseData=a.responseData;c.error(a.error)});a.onComplete(function(a){b.responseData=b.fromBytes(a);c.complete(b.responseData)});return c.future},__class__:Fe});var Ef=function(a){Hd.call(this,a)};g["lime.net._HTTPRequest_String"]= +Ef;Ef.__name__="lime.net._HTTPRequest_String";Ef.__super__=Hd;Ef.prototype=t(Hd.prototype,{load:function(a){var b=this;null!=a&&(this.uri=a);var c=new Ic;a=this.__backend.loadText(this.uri);a.onProgress(h(c,c.progress));a.onError(function(a){b.responseData=a.responseData;c.error(a.error)});a.onComplete(function(a){b.responseData=a;c.complete(b.responseData)});return c.future},__class__:Ef});var zf=function(a,b){this.error=a;this.responseData=b};g["lime.net._HTTPRequestErrorResponse"]=zf;zf.__name__= +"lime.net._HTTPRequestErrorResponse";zf.prototype={__class__:zf};var dh=function(a,b){null==b&&(b="");this.name=a;this.value=b};g["lime.net.HTTPRequestHeader"]=dh;dh.__name__="lime.net.HTTPRequestHeader";dh.prototype={__class__:dh};var lh=function(a){Hd.call(this,a)};g["lime.net._HTTPRequest_lime_utils_Bytes"]=lh;lh.__name__="lime.net._HTTPRequest_lime_utils_Bytes";lh.__super__=Fe;lh.prototype=t(Fe.prototype,{fromBytes:function(a){return Ye.fromBytes(a)},__class__:lh});var mh=function(a){Hd.call(this, +a)};g["lime.net._HTTPRequest_openfl_utils_ByteArray"]=mh;mh.__name__="lime.net._HTTPRequest_openfl_utils_ByteArray";mh.__super__=Fe;mh.prototype=t(Fe.prototype,{fromBytes:function(a){return le.fromBytes(a)},__class__:mh});var ic=function(){};g["lime.system.Clipboard"]=ic;ic.__name__="lime.system.Clipboard";ic.__properties__={set_text:"set_text",get_text:"get_text"};ic.__update=function(){var a=ic._text;ic._text=a;ic.__updated=!0;ic._text!=a&&ic.onUpdate.dispatch()};ic.get_text=function(){ic.__update(); +return ic._text};ic.set_text=function(a){var b=ic._text;ic._text=a;var c=F.current.__window;null!=c&&c.__backend.setClipboard(a);ic._text!=b&&ic.onUpdate.dispatch();return a};var nh=D["lime.system.Endian"]={__ename__:!0,__constructs__:null,LITTLE_ENDIAN:{_hx_name:"LITTLE_ENDIAN",_hx_index:0,__enum__:"lime.system.Endian",toString:r},BIG_ENDIAN:{_hx_name:"BIG_ENDIAN",_hx_index:1,__enum__:"lime.system.Endian",toString:r}};nh.__constructs__=[nh.LITTLE_ENDIAN,nh.BIG_ENDIAN];var be=function(a,b){this.onUpdate= +new pi;this.type=a;this.id=b};g["lime.system.Sensor"]=be;be.__name__="lime.system.Sensor";be.registerSensor=function(a,b){a=new be(a,b);be.sensors.push(a);return be.sensorByID.h[b]=a};be.prototype={__class__:be};var Fj=D["lime.system.SensorType"]={__ename__:!0,__constructs__:null,ACCELEROMETER:{_hx_name:"ACCELEROMETER",_hx_index:0,__enum__:"lime.system.SensorType",toString:r}};Fj.__constructs__=[Fj.ACCELEROMETER];var lc=function(){};g["lime.system.System"]=lc;lc.__name__="lime.system.System";lc.__properties__= +{get_endianness:"get_endianness"};lc.embed=l.lime.embed=function(a,b,c,d,f){if(null!=lc.__applicationEntryPoint&&Object.prototype.hasOwnProperty.call(lc.__applicationEntryPoint.h,a)){var k="string"==typeof b?window.document.getElementById(b):null==b?window.document.createElement("div"):b;null==k?window.console.log("[lime.embed] ERROR: Cannot find target element: "+p.string(b)):(null==c&&(c=0),null==d&&(d=0),null==f&&(f={}),Object.prototype.hasOwnProperty.call(f,"background")&&"string"==typeof f.background&& +(b=W.replace(p.string(f.background),"#",""),-1=b.__jobs.length&&(b.__index=0);this.__activeJob.value=b.__jobs[b.__index];b=this.__activeJob.value.state;this.__jobComplete.value=!1;this.workIterations.value= +0;c=this.workPriority*Gb.workLoad/(Gb.__totalWorkPriority*F.current.__window.__backend.getFrameRate());var d=(new Date).getTime()/1E3;a=0;try{do this.workIterations.value++,Gd.toFunction(this.__activeJob.value.doWork)(b,this),a=(new Date).getTime()/1E3-d;while(!this.__jobComplete.value&&a +this.maxThreads||0==this.__jobQueue.__jobs.length&&this.__activeJobs.__jobs.length+this.__idleThreads.length>this.minThreads?c.sendMessage(new Ud("EXIT",null,null)):this.__idleThreads.push(c));this.completed="COMPLETE"==b.event&&0==this.__activeJobs.__jobs.length&&0==this.__jobQueue.__jobs.length;break;case "PROGRESS":this.onProgress.dispatch(b.message);break;case "WORK":this.onRun.dispatch(b.message)}this.__activeJob.value=null}}this.completed&&F.current.onUpdate.remove(h(this,this.__update))}}, +createThread:function(a){return Ze.prototype.createThread.call(this,a)},__class__:Gb});var oh=function(a){this.__jobs=[];this.__index=0;this.pool=a;this.__addingWorkPriority=!1};g["lime.system.JobList"]=oh;oh.__name__="lime.system.JobList";oh.prototype={hasNext:function(){return 0=this.__jobs.length&&(this.__index=0);return this.__jobs[this.__index]},remove:function(a){if(aa.remove(this.__jobs,a))return a=0d.indexOf(" chrome/");d=(new ta("(iPhone|iPod|iPad).*AppleWebKit(?!.*Version)","i")).match(d);if(!f&&!d&&window.document.fonts&&(z=window.document.fonts, +h(z,z.load)))window.document.fonts.load("1em '"+a+"'").then(function(a){c.complete(b)},function(d){Fa.warn('Could not load web font "'+a+'"',{fileName:"lime/text/Font.hx",lineNumber:513,className:"lime.text.Font",methodName:"__loadFromName"});c.complete(b)});else{var k=Pc.__measureFontNode("'"+a+"', sans-serif"),u=Pc.__measureFontNode("'"+a+"', serif"),g=k.offsetWidth,n=u.offsetWidth,q=-1,w=0,m,p;q=window.setInterval(function(){w+=1;m=k.offsetWidth!=g||u.offsetWidth!=n;p=3E3<=50*w;if(m||p)window.clearInterval(q), +k.parentNode.removeChild(k),u.parentNode.removeChild(u),u=k=null,p&&Fa.warn('Could not load web font "'+a+'"',{fileName:"lime/text/Font.hx",lineNumber:548,className:"lime.text.Font",methodName:"__loadFromName"}),c.complete(b)},50)}return c.future},__class__:Pc};var cc=function(a){this.onDisconnect=new jc;this.onButtonUp=new ih;this.onButtonDown=new ih;this.onAxisMove=new xi;this.id=a;this.connected=!0};g["lime.ui.Gamepad"]=cc;cc.__name__="lime.ui.Gamepad";cc.__connect=function(a){if(!cc.devices.h.hasOwnProperty(a)){var b= +new cc(a);cc.devices.h[a]=b;cc.onConnect.dispatch(b)}};cc.__disconnect=function(a){var b=cc.devices.h[a];null!=b&&(b.connected=!1);cc.devices.remove(a);null!=b&&b.onDisconnect.dispatch()};cc.prototype={__class__:cc};var Zb=function(a){this.onHatMove=new ui;this.onDisconnect=new jc;this.onButtonUp=new Ke;this.onButtonDown=new Ke;this.onAxisMove=new ti;this.id=a;this.connected=!0};g["lime.ui.Joystick"]=Zb;Zb.__name__="lime.ui.Joystick";Zb.__connect=function(a){if(!Zb.devices.h.hasOwnProperty(a)){var b= +new Zb(a);Zb.devices.h[a]=b;Zb.onConnect.dispatch(b)}};Zb.__disconnect=function(a){var b=Zb.devices.h[a];null!=b&&(b.connected=!1);Zb.devices.remove(a);null!=b&&b.onDisconnect.dispatch()};Zb.__getDeviceData=function(){var a=null;try{a=navigator.getGamepads?navigator.getGamepads():navigator.webkitGetGamepads?navigator.webkitGetGamepads():null}catch(b){Ia.lastError=b}return a};Zb.prototype={__class__:Zb};var Ra={__properties__:{get_shiftKey:"get_shiftKey",get_metaKey:"get_metaKey",get_ctrlKey:"get_ctrlKey", +get_altKey:"get_altKey"},get_altKey:function(a){return 0>=(a&256)?0<(a&512):!0},get_ctrlKey:function(a){return 0>=(a&64)?0<(a&128):!0},get_metaKey:function(a){return 0>=(a&1024)?0<(a&2048):!0},get_shiftKey:function(a){return 0>=(a&1)?0<(a&2):!0}},Ub=D["lime.ui.MouseCursor"]={__ename__:!0,__constructs__:null,ARROW:{_hx_name:"ARROW",_hx_index:0,__enum__:"lime.ui.MouseCursor",toString:r},CROSSHAIR:{_hx_name:"CROSSHAIR",_hx_index:1,__enum__:"lime.ui.MouseCursor",toString:r},DEFAULT:{_hx_name:"DEFAULT", +_hx_index:2,__enum__:"lime.ui.MouseCursor",toString:r},MOVE:{_hx_name:"MOVE",_hx_index:3,__enum__:"lime.ui.MouseCursor",toString:r},POINTER:{_hx_name:"POINTER",_hx_index:4,__enum__:"lime.ui.MouseCursor",toString:r},RESIZE_NESW:{_hx_name:"RESIZE_NESW",_hx_index:5,__enum__:"lime.ui.MouseCursor",toString:r},RESIZE_NS:{_hx_name:"RESIZE_NS",_hx_index:6,__enum__:"lime.ui.MouseCursor",toString:r},RESIZE_NWSE:{_hx_name:"RESIZE_NWSE",_hx_index:7,__enum__:"lime.ui.MouseCursor",toString:r},RESIZE_WE:{_hx_name:"RESIZE_WE", +_hx_index:8,__enum__:"lime.ui.MouseCursor",toString:r},TEXT:{_hx_name:"TEXT",_hx_index:9,__enum__:"lime.ui.MouseCursor",toString:r},WAIT:{_hx_name:"WAIT",_hx_index:10,__enum__:"lime.ui.MouseCursor",toString:r},WAIT_ARROW:{_hx_name:"WAIT_ARROW",_hx_index:11,__enum__:"lime.ui.MouseCursor",toString:r},CUSTOM:{_hx_name:"CUSTOM",_hx_index:12,__enum__:"lime.ui.MouseCursor",toString:r}};Ub.__constructs__=[Ub.ARROW,Ub.CROSSHAIR,Ub.DEFAULT,Ub.MOVE,Ub.POINTER,Ub.RESIZE_NESW,Ub.RESIZE_NS,Ub.RESIZE_NWSE,Ub.RESIZE_WE, +Ub.TEXT,Ub.WAIT,Ub.WAIT_ARROW,Ub.CUSTOM];var De=D["lime.ui.MouseWheelMode"]={__ename__:!0,__constructs__:null,PIXELS:{_hx_name:"PIXELS",_hx_index:0,__enum__:"lime.ui.MouseWheelMode",toString:r},LINES:{_hx_name:"LINES",_hx_index:1,__enum__:"lime.ui.MouseWheelMode",toString:r},PAGES:{_hx_name:"PAGES",_hx_index:2,__enum__:"lime.ui.MouseWheelMode",toString:r},UNKNOWN:{_hx_name:"UNKNOWN",_hx_index:3,__enum__:"lime.ui.MouseWheelMode",toString:r}};De.__constructs__=[De.PIXELS,De.LINES,De.PAGES,De.UNKNOWN]; +var Vb=function(a,b,c,d,f,k,u){this.x=a;this.y=b;this.id=c;this.dx=d;this.dy=f;this.pressure=k;this.device=u};g["lime.ui.Touch"]=Vb;Vb.__name__="lime.ui.Touch";Vb.prototype={__class__:Vb};var Ff=function(a,b){this.clickCount=0;this.onTextInput=new gh;this.onTextEdit=new vi;this.onRestore=new jc;this.onResize=new fh;this.onRenderContextRestored=new hh;this.onRenderContextLost=new jc;this.onRender=new hh;this.onMove=new pg;this.onMouseWheel=new si;this.onMouseUp=new qi;this.onMouseMoveRelative=new pg; +this.onMouseMove=new pg;this.onMouseDown=new ri;this.onMinimize=new jc;this.onLeave=new jc;this.onKeyUp=new jh;this.onKeyDown=new jh;this.onFullscreen=new jc;this.onFocusOut=new jc;this.onFocusIn=new jc;this.onExpose=new jc;this.onEnter=new jc;this.onDropFile=new gh;this.onDeactivate=new jc;this.onClose=new jc;this.onActivate=new jc;this.application=a;this.__attributes=null!=b?b:{};Object.prototype.hasOwnProperty.call(this.__attributes,"parameters")&&(this.parameters=this.__attributes.parameters); +this.__height=this.__width=0;this.__fullscreen=!1;this.__scale=1;this.__y=this.__x=0;this.__title=Object.prototype.hasOwnProperty.call(this.__attributes,"title")?this.__attributes.title:"";this.id=-1;this.__backend=new Ha(this)};g["lime.ui.Window"]=Ff;Ff.__name__="lime.ui.Window";Ff.prototype={close:function(){this.__backend.close()},set_cursor:function(a){return this.__backend.setCursor(a)},setTextInputRect:function(a){return this.__backend.setTextInputRect(a)},__class__:Ff,__properties__:{set_cursor:"set_cursor"}}; +var Id=function(){this.data=new La;this.paths=[]};g["lime.utils.AssetBundle"]=Id;Id.__name__="lime.utils.AssetBundle";Id.fromBytes=function(a){a=new ch(a);return Id.__extractBundle(a)};Id.loadFromBytes=function(a){return rb.withValue(Id.fromBytes(a))};Id.loadFromFile=function(a){return Ye.loadFromFile(a).then(Id.loadFromBytes)};Id.__extractBundle=function(a){var b=ng.readZip(a);a=new Id;for(b=b.h;null!=b;){var c=b.item;b=b.next;if(c.compressed){var d=a.data,f=c.fileName,k=Ye.decompress(c.data,ph.DEFLATE); +d.h[f]=k}else a.data.h[c.fileName]=c.data;a.paths.push(c.fileName)}return a};Id.prototype={__class__:Id};var Ci=function(){this.enabled=!0;this.audio=new La;this.font=new La;this.image=new La;this.version=887532};g["lime.utils.AssetCache"]=Ci;Ci.__name__="lime.utils.AssetCache";Ci.prototype={exists:function(a,b){return("IMAGE"==b||null==b)&&Object.prototype.hasOwnProperty.call(this.image.h,a)||("FONT"==b||null==b)&&Object.prototype.hasOwnProperty.call(this.font.h,a)||("SOUND"==b||"MUSIC"==b||null== +b)&&Object.prototype.hasOwnProperty.call(this.audio.h,a)?!0:!1},set:function(a,b,c){switch(b){case "FONT":this.font.h[a]=c;break;case "IMAGE":if(!(c instanceof Fb))throw fa.thrown("Cannot cache non-Image asset: "+p.string(c)+" as Image");this.image.h[a]=c;break;case "MUSIC":case "SOUND":if(!(c instanceof kc))throw fa.thrown("Cannot cache non-AudioBuffer asset: "+p.string(c)+" as AudioBuffer");this.audio.h[a]=c;break;default:throw fa.thrown(b+" assets are not cachable");}},clear:function(a){if(null== +a)this.audio=new La,this.font=new La,this.image=new La;else{var b=this.audio.h;b=Object.keys(b);for(var c=b.length,d=0;dd&&(b=d);Object.prototype.hasOwnProperty.call(this.bytesLoadedCache.h,a)?(d=this.bytesLoadedCache.h[a],b!=d&&(this.bytesLoaded+=b-d)):this.bytesLoaded+=b;this.bytesLoadedCache.h[a]=b;this.promise.progress(this.bytesLoaded, +this.bytesTotal)}},__class__:Ab};var Lc=function(){this.assets=[];this.libraryArgs=[];this.version=2};g["lime.utils.AssetManifest"]=Lc;Lc.__name__="lime.utils.AssetManifest";Lc.fromBytes=function(a,b){return null!=a?Lc.parse(a.getString(0,a.length),b):null};Lc.loadFromFile=function(a,b){a=Lc.__resolvePath(a);b=Lc.__resolveRootPath(b,a);return null==a?null:Ye.loadFromFile(a).then(function(a){return rb.withValue(Lc.fromBytes(a,b))})};Lc.parse=function(a,b){if(null==a||""==a)return null;a=JSON.parse(a); +var c=new Lc;Object.prototype.hasOwnProperty.call(a,"name")&&(c.name=a.name);Object.prototype.hasOwnProperty.call(a,"libraryType")&&(c.libraryType=a.libraryType);Object.prototype.hasOwnProperty.call(a,"libraryArgs")&&(c.libraryArgs=a.libraryArgs);if(Object.prototype.hasOwnProperty.call(a,"assets")){var d=a.assets;Object.prototype.hasOwnProperty.call(a,"version")&&2>=a.version?c.assets=Wc.run(d):c.assets=d}Object.prototype.hasOwnProperty.call(a,"rootPath")&&(c.rootPath=a.rootPath);null!=b&&""!=b&& +(c.rootPath=null==c.rootPath||""==c.rootPath?b:b+"/"+c.rootPath);return c};Lc.__resolvePath=function(a){if(null==a)return null;var b=a.indexOf("?");var c=-1d&&(c=d),Object.prototype.hasOwnProperty.call(a.bytesLoadedCache2.h,b[0])?a.bytesLoaded+=c-a.bytesLoadedCache2.h[b[0]]:a.bytesLoaded+=c,a.bytesLoadedCache2.h[b[0]]=c,a.simulateProgress||a.onProgress.dispatch(a.bytesLoaded,a.bytesTotal))}}(d)).onComplete(function(b){return function(c){c=200;Object.prototype.hasOwnProperty.call(a.bytesTotalCache.h,b[0])&&(c=a.bytesTotalCache.h[b[0]]);Object.prototype.hasOwnProperty.call(a.bytesLoadedCache2.h,b[0])?a.bytesLoaded+=c-a.bytesLoadedCache2.h[b[0]]: +a.bytesLoaded+=c;a.loadedAssetLibrary(b[0])}}(d)).onError(function(){return function(a){Fa.error(a,{fileName:"lime/utils/Preloader.hx",lineNumber:293,className:"lime.utils.Preloader",methodName:"updateProgress"})}}())}}this.simulateProgress||this.loadedLibraries!=this.libraries.length+this.libraryNames.length||(this.preloadComplete||(this.preloadComplete=!0,Fa.verbose("Preload complete",{fileName:"lime/utils/Preloader.hx",lineNumber:306,className:"lime.utils.Preloader",methodName:"updateProgress"})), +this.start())},__class__:bi};var tg=function(){};g["motion.actuators.IGenericActuator"]=tg;tg.__name__="motion.actuators.IGenericActuator";tg.__isInterface__=!0;tg.prototype={__class__:tg};var Vd=function(a,b,c){this._autoVisible=!0;this._delay=0;this._reflect=!1;this._repeat=0;this.special=this._snapping=this._smartRotation=this._reverse=!1;this.target=a;this.properties=c;this.duration=b;this._ease=Ma.defaultEase};g["motion.actuators.GenericActuator"]=Vd;Vd.__name__="motion.actuators.GenericActuator"; +Vd.__interfaces__=[tg];Vd.prototype={apply:function(){for(var a=0,b=C.fields(this.properties);a=b.timeOffset&& +b.update(a),++c):(Cb.actuators.splice(c,1),--Cb.actuatorsLength)};Cb.__super__=Vd;Cb.prototype=t(Vd.prototype,{reverse:function(a){a=Vd.prototype.reverse.call(this,a);var b=va.getTimer()/1E3;this.update(b);return a},apply:function(){Vd.prototype.apply.call(this);if(this.toggleVisible&&Object.prototype.hasOwnProperty.call(this.properties,"alpha")){var a=this.target;var b=Object.prototype.hasOwnProperty.call(a,"visible")?C.field(a,"visible"):C.getProperty(a,"visible");null!=b&&(a=this.target,b=0f&&(f+=360),f=d.start+f*c;this._snapping?this.setProperty(d,Math.round(f)):this.setProperty(d,f)}}else{c=this._ease.calculate(b);for(var k=0,u=this.detailsLength;kb){if(.5>b){var c=1;b*=2}else c=1-2*(b-.5),b=1;this.endColorTransform.redMultiplier=c;this.endColorTransform.greenMultiplier=c;this.endColorTransform.blueMultiplier=c;this.endColorTransform.redOffset=b*(a>>16&255);this.endColorTransform.greenOffset=b*(a>>8&255);this.endColorTransform.blueOffset=b*(a&255)}else this.endColorTransform.redMultiplier=0,this.endColorTransform.greenMultiplier=0,this.endColorTransform.blueMultiplier= +0,this.endColorTransform.redOffset=a>>16&255,this.endColorTransform.greenOffset=a>>8&255,this.endColorTransform.blueOffset=a&255;a="redMultiplier greenMultiplier blueMultiplier redOffset greenOffset blueOffset".split(" ");if(Object.prototype.hasOwnProperty.call(this.properties,"colorAlpha"))this.endColorTransform.alphaMultiplier=this.properties.colorAlpha,a.push("alphaMultiplier");else{var d=this.target;var f=Object.prototype.hasOwnProperty.call(d,"alpha")?C.field(d,"alpha"):C.getProperty(d,"alpha"); +this.endColorTransform.alphaMultiplier=f}d=this.target;c=f=Object.prototype.hasOwnProperty.call(d,"transform")?C.field(d,"transform"):C.getProperty(d,"transform");c=f=Object.prototype.hasOwnProperty.call(c,"colorTransform")?C.field(c,"colorTransform"):C.getProperty(c,"colorTransform");this.tweenColorTransform=new Db;for(b=0;ba&&(a=0);if(a>b)for(;ba;)this.__array.pop()}return this.__array.length},__class__:th,__properties__:{set_length:"set_length"}};var ce=function(a,b,c,d){null==d&&(d=!1);null==b&&(b=!1);null==a&&(a=0);if(d){if(this.__array= +[],null!=c){d=0;for(var f=c.length;da&&(a=0);if(a>b)for(;ba;)this.__array.pop()}return this.__array.length},__class__:ce,__properties__:{set_length:"set_length", +get_length:"get_length"}};var uh=function(a,b,c){null==b&&(b=!1);null==a&&(a=0);null==c&&(c=[]);this.__array=c;0a&&(a=0);if(a>b)for(;ba;)this.__array.pop()}return this.__array.length}, +__class__:uh,__properties__:{set_length:"set_length"}};var Vf=function(a,b,c){null==b&&(b=!1);null==a&&(a=0);null==c&&(c=[]);this.__array=c;0a&&(a=0);if(a>b)for(;ba;)this.__array.pop()}return this.__array.length},__class__:Vf,__properties__:{set_length:"set_length",get_length:"get_length"}};var kf=function(a,b,c,d){null==d&&(d=!1);null==b&&(b=!1);null==a&&(a=0);if(d){if(this.__array=[],null!=c){d=0;for(var f=c.length;da&&(a=0);if(a>b)for(;ba;)this.__array.pop()}return this.__array.length},__class__:kf,__properties__:{set_length:"set_length",get_length:"get_length"}}; +var Sf=function(){F.call(this);null==Ac.application&&(Ac.application=this);null==Ac.current&&(Ac.current=new Le);Ac.current.__loaderInfo=Kd.create(null);Ac.current.__loaderInfo.content=Ac.current};g["openfl.display.Application"]=Sf;Sf.__name__="openfl.display.Application";Sf.__super__=F;Sf.prototype=t(F.prototype,{createWindow:function(a){var b=new vg(this,a);this.__windows.push(b);this.__windowByID.h[b.id]=b;var c=this;b.onClose.add(function(){c.__onWindowClose(b)},!1,-1E4);null==this.__window&& +(this.__window=b,b.onActivate.add(h(this,this.onWindowActivate)),b.onRenderContextLost.add(h(this,this.onRenderContextLost)),b.onRenderContextRestored.add(h(this,this.onRenderContextRestored)),b.onDeactivate.add(h(this,this.onWindowDeactivate)),b.onDropFile.add(h(this,this.onWindowDropFile)),b.onEnter.add(h(this,this.onWindowEnter)),b.onExpose.add(h(this,this.onWindowExpose)),b.onFocusIn.add(h(this,this.onWindowFocusIn)),b.onFocusOut.add(h(this,this.onWindowFocusOut)),b.onFullscreen.add(h(this,this.onWindowFullscreen)), +b.onKeyDown.add(h(this,this.onKeyDown)),b.onKeyUp.add(h(this,this.onKeyUp)),b.onLeave.add(h(this,this.onWindowLeave)),b.onMinimize.add(h(this,this.onWindowMinimize)),b.onMouseDown.add(h(this,this.onMouseDown)),b.onMouseMove.add(h(this,this.onMouseMove)),b.onMouseMoveRelative.add(h(this,this.onMouseMoveRelative)),b.onMouseUp.add(h(this,this.onMouseUp)),b.onMouseWheel.add(h(this,this.onMouseWheel)),b.onMove.add(h(this,this.onWindowMove)),b.onRender.add(h(this,this.render)),b.onResize.add(h(this,this.onWindowResize)), +b.onRestore.add(h(this,this.onWindowRestore)),b.onTextEdit.add(h(this,this.onTextEdit)),b.onTextInput.add(h(this,this.onTextInput)),this.onWindowCreate());this.onCreateWindow.dispatch(b);return b},exec:function(){return F.prototype.exec.call(this)},__checkForAllWindowsClosed:function(){0a&&(a=0);0>b&&(b=0);this.width=a;this.height=b;this.rect=new da(0,0,a,b);this.__textureWidth=a;this.__textureHeight=b;0>>24&255),this.image.set_transparent(c),this.readable=this.__isValid=!0);this.__renderTransform=new pa;this.__worldAlpha=1;this.__worldTransform=new pa;this.__worldColorTransform=new Db; +this.__renderable=!0};g["openfl.display.BitmapData"]=xb;xb.__name__="openfl.display.BitmapData";xb.__interfaces__=[Wa];xb.fromCanvas=function(a,b){null==b&&(b=!0);if(null==a)return null;var c=new xb(0,0,b,0);c.__fromImage(Fb.fromCanvas(a));c.image.set_transparent(b);return c};xb.fromImage=function(a,b){null==b&&(b=!0);if(null==a||null==a.buffer)return null;var c=new xb(0,0,b,0);c.__fromImage(a);c.image.set_transparent(b);return null!=c.image?c:null};xb.loadFromBytes=function(a,b){return Fb.loadFromBytes(le.toBytes(a)).then(function(a){a= +xb.fromImage(a);null!=b&&a.__applyAlpha(b);return rb.withValue(a)})};xb.loadFromFile=function(a){return Fb.loadFromFile(a).then(function(a){return rb.withValue(xb.fromImage(a))})};xb.prototype={colorTransform:function(a,b){this.readable&&this.image.colorTransform(a.__toLimeRectangle(),b.__toLimeColorMatrix())},copyPixels:function(a,b,c,d,f,k){null==k&&(k=!1);this.readable&&null!=a&&(null!=f&&(xb.__tempVector.x=f.x,xb.__tempVector.y=f.y),this.image.copyPixels(a.image,b.__toLimeRectangle(),c.__toLimeVector2(), +null!=d?d.image:null,null!=f?xb.__tempVector:null,k))},dispose:function(){this.image=null;this.height=this.width=0;this.rect=null;this.readable=this.__isValid=!1;this.__textureContext=this.__texture=this.__framebufferContext=this.__framebuffer=this.__vertexBuffer=this.__surface=null},draw:function(a,b,c,d,f,k){null==k&&(k=!1);if(null!=a){var u=!0,g=null;a instanceof L&&(g=v.__cast(a,L),g.get_visible()||(u=!1,g.set_visible(!0)));a.__update(!1,!0);var n=pa.__pool.get();n.copyFrom(a.__renderTransform); +n.invert();null!=b&&n.concat(b);b=null;null!=f&&(b=pa.__pool.get(),b.copyFrom(n),b.invert());var q=new Db;q.__copyFrom(a.__worldColorTransform);q.__invert();if(this.readable||null==va.get_current().stage.context3D){if(null!=c){var h=da.__pool.get(),m=pa.__pool.get();a.__getBounds(h,m);var w=Math.ceil(h.width),p=Math.ceil(h.height);m.tx=-h.x;m.ty=-h.y;w=new xb(w,p,!0,0);w.draw(a,m);w.colorTransform(w.rect,c);w.__renderTransform.identity();w.__renderTransform.tx=h.x;w.__renderTransform.ty=h.y;w.__renderTransform.concat(a.__renderTransform); +w.__worldAlpha=a.__worldAlpha;w.__worldColorTransform.__copyFrom(a.__worldColorTransform);a=w;da.__pool.release(h);pa.__pool.release(m)}Ka.convertToCanvas(this.image);c=new oe(this.image.buffer.__srcContext);c.__allowSmoothing=k;c.__overrideBlendMode=d;c.__worldTransform=n;c.__worldAlpha=1/a.__worldAlpha;c.__worldColorTransform=q;null!=f&&c.__pushMaskRect(f,b);this.__drawCanvas(a,c)}else null==this.__textureContext&&(this.__textureContext=F.current.__window.context),null!=c&&q.__combine(c),c=new Ja(va.get_current().stage.context3D, +this),c.__allowSmoothing=k,c.__pixelRatio=va.get_current().stage.window.__scale,c.__overrideBlendMode=d,c.__worldTransform=n,c.__worldAlpha=1/a.__worldAlpha,c.__worldColorTransform=q,c.__resize(this.width,this.height),null!=f&&c.__pushMaskRect(f,b),this.__drawGL(a,c);null!=f&&(c.__popMaskRect(),pa.__pool.release(b));pa.__pool.release(n);null==g||u||g.set_visible(!1)}},fillRect:function(a,b){this.__fillRect(a,b,!0)},getIndexBuffer:function(a,b){if(null==this.__indexBuffer||this.__indexBufferContext!= +a.__context||null!=b&&null==this.__indexBufferGrid||null!=this.__indexBufferGrid&&!this.__indexBufferGrid.equals(b)){this.__indexBufferContext=a.__context;this.__indexBuffer=null;if(null!=b){null==this.__indexBufferGrid&&(this.__indexBufferGrid=new da);this.__indexBufferGrid.copyFrom(b);var c=b.width;b=b.height;0!=c&&0!=b?(this.__indexBufferData=new Uint16Array(54),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]= +1,this.__indexBufferData[5]=3,this.__indexBufferData[6]=4,this.__indexBufferData[7]=0,this.__indexBufferData[8]=5,this.__indexBufferData[9]=5,this.__indexBufferData[10]=0,this.__indexBufferData[11]=2,this.__indexBufferData[12]=6,this.__indexBufferData[13]=4,this.__indexBufferData[14]=7,this.__indexBufferData[15]=7,this.__indexBufferData[16]=4,this.__indexBufferData[17]=5,this.__indexBufferData[18]=8,this.__indexBufferData[19]=9,this.__indexBufferData[20]=0,this.__indexBufferData[21]=0,this.__indexBufferData[22]= +9,this.__indexBufferData[23]=1,this.__indexBufferData[24]=10,this.__indexBufferData[25]=8,this.__indexBufferData[26]=4,this.__indexBufferData[27]=4,this.__indexBufferData[28]=8,this.__indexBufferData[29]=0,this.__indexBufferData[30]=11,this.__indexBufferData[31]=10,this.__indexBufferData[32]=6,this.__indexBufferData[33]=6,this.__indexBufferData[34]=10,this.__indexBufferData[35]=4,this.__indexBufferData[36]=12,this.__indexBufferData[37]=13,this.__indexBufferData[38]=8,this.__indexBufferData[39]=8, +this.__indexBufferData[40]=13,this.__indexBufferData[41]=9,this.__indexBufferData[42]=14,this.__indexBufferData[43]=12,this.__indexBufferData[44]=10,this.__indexBufferData[45]=10,this.__indexBufferData[46]=12,this.__indexBufferData[47]=8,this.__indexBufferData[48]=15,this.__indexBufferData[49]=14,this.__indexBufferData[50]=11,this.__indexBufferData[51]=11,this.__indexBufferData[52]=14,this.__indexBufferData[53]=10,this.__indexBuffer=a.createIndexBuffer(54)):0==c&&0!=b?(this.__indexBufferData=new Uint16Array(18), +this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBufferData[6]=4,this.__indexBufferData[7]=5,this.__indexBufferData[8]=0,this.__indexBufferData[9]=0,this.__indexBufferData[10]=5,this.__indexBufferData[11]=1,this.__indexBufferData[12]=6,this.__indexBufferData[13]=7,this.__indexBufferData[14]=4,this.__indexBufferData[15]=4,this.__indexBufferData[16]=7,this.__indexBufferData[17]= +5,this.__indexBuffer=a.createIndexBuffer(18)):0!=c&&0==b&&(this.__indexBufferData=new Uint16Array(18),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBufferData[6]=4,this.__indexBufferData[7]=0,this.__indexBufferData[8]=5,this.__indexBufferData[9]=5,this.__indexBufferData[10]=0,this.__indexBufferData[11]=2,this.__indexBufferData[12]=6,this.__indexBufferData[13]=4,this.__indexBufferData[14]= +7,this.__indexBufferData[15]=7,this.__indexBufferData[16]=4,this.__indexBufferData[17]=5,this.__indexBuffer=a.createIndexBuffer(18))}else this.__indexBufferGrid=null;null==this.__indexBuffer&&(this.__indexBufferData=new Uint16Array(6),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBuffer=a.createIndexBuffer(6));this.__indexBuffer.uploadFromTypedArray(this.__indexBufferData)}return this.__indexBuffer}, +getVertexBuffer:function(a,b,c){if(null==this.__vertexBuffer||this.__vertexBufferContext!=a.__context||null!=b&&null==this.__vertexBufferGrid||null!=this.__vertexBufferGrid&&!this.__vertexBufferGrid.equals(b)||null!=c&&(this.__vertexBufferWidth!=c.get_width()||this.__vertexBufferHeight!=c.get_height()||this.__vertexBufferScaleX!=c.get_scaleX()||this.__vertexBufferScaleY!=c.get_scaleY())){this.__uvRect=new da(0,0,this.width,this.height);this.__vertexBufferContext=a.__context;this.__vertexBuffer=null; +null!=c&&(this.__vertexBufferWidth=c.get_width(),this.__vertexBufferHeight=c.get_height(),this.__vertexBufferScaleX=c.get_scaleX(),this.__vertexBufferScaleY=c.get_scaleY());if(null!=b&&null!=c){null==this.__vertexBufferGrid&&(this.__vertexBufferGrid=new da);this.__vertexBufferGrid.copyFrom(b);this.__vertexBufferWidth=c.get_width();this.__vertexBufferHeight=c.get_height();this.__vertexBufferScaleX=c.get_scaleX();this.__vertexBufferScaleY=c.get_scaleY();var d=b.width,f=b.height;if(0!=d&&0!=f){this.__vertexBufferData= +new Float32Array(224);var k=b.x,u=b.y,g=this.width-d-k,n=this.height-f-u;b=k/this.width;var q=u/this.height;d/=this.width;f/=this.height;k/=c.get_scaleX();u/=c.get_scaleY();g/=c.get_scaleX();var h=n/c.get_scaleY();n=c.get_width()/c.get_scaleX()-k-g;g=c.get_height()/c.get_scaleY()-u-h;this.__vertexBufferData[0]=k;this.__vertexBufferData[1]=u;this.__vertexBufferData[3]=1*b;this.__vertexBufferData[4]=1*q;this.__vertexBufferData[15]=u;this.__vertexBufferData[18]=1*q;this.__vertexBufferData[28]=k;this.__vertexBufferData[31]= +1*b;this.__vertexBufferData[56]=k+n;this.__vertexBufferData[57]=u;this.__vertexBufferData[59]=1*(b+d);this.__vertexBufferData[60]=1*q;this.__vertexBufferData[70]=k+n;this.__vertexBufferData[73]=1*(b+d);this.__vertexBufferData[84]=this.width;this.__vertexBufferData[85]=u;this.__vertexBufferData[87]=1;this.__vertexBufferData[88]=1*q;this.__vertexBufferData[98]=this.width;this.__vertexBufferData[101]=1;this.__vertexBufferData[112]=k;this.__vertexBufferData[113]=u+g;this.__vertexBufferData[115]=1*b;this.__vertexBufferData[116]= +1*(q+f);this.__vertexBufferData[127]=u+g;this.__vertexBufferData[130]=1*(q+f);this.__vertexBufferData[140]=k+n;this.__vertexBufferData[141]=u+g;this.__vertexBufferData[143]=1*(b+d);this.__vertexBufferData[144]=1*(q+f);this.__vertexBufferData[154]=this.width;this.__vertexBufferData[155]=u+g;this.__vertexBufferData[157]=1;this.__vertexBufferData[158]=1*(q+f);this.__vertexBufferData[168]=k;this.__vertexBufferData[169]=this.height;this.__vertexBufferData[171]=1*b;this.__vertexBufferData[172]=1;this.__vertexBufferData[183]= +this.height;this.__vertexBufferData[186]=1;this.__vertexBufferData[196]=k+n;this.__vertexBufferData[197]=this.height;this.__vertexBufferData[199]=1*(b+d);this.__vertexBufferData[200]=1;this.__vertexBufferData[210]=this.width;this.__vertexBufferData[211]=this.height;this.__vertexBufferData[213]=1;this.__vertexBufferData[214]=1;this.__vertexBuffer=a.createVertexBuffer(16,14)}else 0==d&&0!=f?(this.__vertexBufferData=new Float32Array(112),u=b.y,n=this.height-f-u,q=u/this.height,f/=this.height,u/=c.get_scaleY(), +h=n/c.get_scaleY(),g=c.get_height()/c.get_scaleY()-u-h,c=c.get_width()/c.get_scaleX(),this.__vertexBufferData[0]=c,this.__vertexBufferData[1]=u,this.__vertexBufferData[3]=1,this.__vertexBufferData[4]=1*q,this.__vertexBufferData[15]=u,this.__vertexBufferData[18]=1*q,this.__vertexBufferData[28]=c,this.__vertexBufferData[31]=1,this.__vertexBufferData[56]=c,this.__vertexBufferData[57]=u+g,this.__vertexBufferData[59]=1,this.__vertexBufferData[60]=1*(q+f),this.__vertexBufferData[71]=u+g,this.__vertexBufferData[74]= +1*(q+f),this.__vertexBufferData[84]=c,this.__vertexBufferData[85]=this.height,this.__vertexBufferData[87]=1,this.__vertexBufferData[88]=1,this.__vertexBufferData[99]=this.height,this.__vertexBufferData[102]=1,this.__vertexBuffer=a.createVertexBuffer(8,14)):0==f&&0!=d&&(this.__vertexBufferData=new Float32Array(112),k=b.x,g=this.width-d-k,b=k/this.width,d/=this.width,k/=c.get_scaleX(),g/=c.get_scaleX(),n=c.get_width()/c.get_scaleX()-k-g,c=c.get_height()/c.get_scaleY(),this.__vertexBufferData[0]=k,this.__vertexBufferData[1]= +c,this.__vertexBufferData[3]=1*b,this.__vertexBufferData[4]=1,this.__vertexBufferData[15]=c,this.__vertexBufferData[18]=1,this.__vertexBufferData[28]=k,this.__vertexBufferData[31]=1*b,this.__vertexBufferData[56]=k+n,this.__vertexBufferData[57]=c,this.__vertexBufferData[59]=1*(b+d),this.__vertexBufferData[60]=1,this.__vertexBufferData[70]=k+n,this.__vertexBufferData[73]=1*(b+d),this.__vertexBufferData[84]=this.width,this.__vertexBufferData[85]=c,this.__vertexBufferData[87]=1,this.__vertexBufferData[88]= +1,this.__vertexBufferData[98]=this.width,this.__vertexBufferData[101]=1,this.__vertexBuffer=a.createVertexBuffer(8,14))}else this.__vertexBufferGrid=null;null==this.__vertexBuffer&&(this.__vertexBufferData=new Float32Array(56),this.__vertexBufferData[0]=this.width,this.__vertexBufferData[1]=this.height,this.__vertexBufferData[3]=1,this.__vertexBufferData[4]=1,this.__vertexBufferData[15]=this.height,this.__vertexBufferData[18]=1,this.__vertexBufferData[28]=this.width,this.__vertexBufferData[31]=1, +this.__vertexBuffer=a.createVertexBuffer(3,14));this.__vertexBuffer.uploadFromTypedArray(sg.toArrayBufferView(this.__vertexBufferData))}return this.__vertexBuffer},getTexture:function(a){if(!this.__isValid)return null;if(null==this.__texture||this.__textureContext!=a.__context)this.__textureContext=a.__context,this.__texture=a.createRectangleTexture(this.width,this.height,1,!1),this.__textureVersion=-1;Ka.sync(this.image,!1);null!=this.image&&this.image.version>this.__textureVersion&&(null!=this.__surface&& +Xj.flush(this.__surface),a=this.image,ib.__supportsBGRA||0==a.get_format()||(a=a.clone(),a.set_format(0)),this.__texture.__uploadFromImage(a),this.__textureVersion=this.image.version,this.__textureWidth=a.buffer.width,this.__textureHeight=a.buffer.height);this.readable||null==this.image||(this.image=this.__surface=null);return this.__texture},__applyAlpha:function(a){Ka.convertToCanvas(this.image);Ka.createImageData(this.image);for(var b=this.image.buffer.data,c=0,d=le.get_length(a);c>>16&255)/255,(b>>>8&255)/255,(b&255)/255,this.transparent?(b>>>24&255)/255:1,0,0,1);d&&c.setScissorRectangle(null);null!=f?c.setRenderToTexture(f,k,u,g):c.setRenderToBackBuffer()}else this.readable&&this.image.fillRect(a.__toLimeRectangle(),b,1)},__fromImage:function(a){null!=a&&null!=a.buffer&&(this.image=a,this.width=a.width,this.height=a.height,this.rect=new da(0,0,a.width,a.height), +this.__textureWidth=this.width,this.__textureHeight=this.height,this.__isValid=this.readable=!0)},__getBounds:function(a,b){var c=da.__pool.get();this.rect.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);da.__pool.release(c)},__setUVRect:function(a,b,c,d,f){if(null!=this.getVertexBuffer(a)&&(d!=this.__uvRect.width||f!=this.__uvRect.height||b!=this.__uvRect.x||c!=this.__uvRect.y)){null==this.__uvRect&&(this.__uvRect=new da);this.__uvRect.setTo(b,c,d,f);a=0a.__cacheBitmapData.width||p>a.__cacheBitmapData.height?(u=Math.ceil(Math.max(1.25*w,a.__cacheBitmapData.width)),m=Math.ceil(Math.max(1.25*p,a.__cacheBitmapData.height)),b=!0):(u=a.__cacheBitmapData.width,m=a.__cacheBitmapData.height):(u=w,m=p);if(b)if(k=!0,a.__cacheBitmapBackground=a.opaqueBackground,.5<=w&&.5<=p){var C=null!=a.opaqueBackground&&(u!=w||m!=p),l=null!=a.opaqueBackground?-16777216|a.opaqueBackground:0,I=C?0:l,G="opengl"==this.__type;null==a.__cacheBitmapData||u>a.__cacheBitmapData.width|| +m>a.__cacheBitmapData.height?(a.__cacheBitmapData=new xb(u,m,!0,I),null==a.__cacheBitmap&&(a.__cacheBitmap=new Re),a.__cacheBitmap.__bitmapData=a.__cacheBitmapData,a.__cacheBitmapRenderer=null):a.__cacheBitmapData.__fillRect(a.__cacheBitmapData.rect,I,G);C&&(f.setTo(0,0,w,p),a.__cacheBitmapData.__fillRect(f,l,G))}else return Db.__pool.release(d),a.__cacheBitmap=null,a.__cacheBitmapData=null,a.__cacheBitmapData2=null,a.__cacheBitmapData3=null,a.__cacheBitmapRenderer=null,7==a.__drawableType&&(d=a, +null!=d.__cacheBitmap&&(d.__cacheBitmap.__renderTransform.tx-=d.__offsetX*q,d.__cacheBitmap.__renderTransform.ty-=d.__offsetY*q)),!0;else a.__cacheBitmapData=a.__cacheBitmap.get_bitmapData(),a.__cacheBitmapData2=null,a.__cacheBitmapData3=null;if(k||b)a.__cacheBitmap.__worldTransform.copyFrom(a.__worldTransform),n==a.__renderTransform?(a.__cacheBitmap.__renderTransform.identity(),a.__cacheBitmap.__renderTransform.scale(1/q,1/q),a.__cacheBitmap.__renderTransform.tx=a.__renderTransform.tx+h,a.__cacheBitmap.__renderTransform.ty= +a.__renderTransform.ty+r):(a.__cacheBitmap.__renderTransform.copyFrom(a.__cacheBitmapMatrix),a.__cacheBitmap.__renderTransform.invert(),a.__cacheBitmap.__renderTransform.concat(a.__renderTransform),a.__cacheBitmap.__renderTransform.a*=1/q,a.__cacheBitmap.__renderTransform.d*=1/q,a.__cacheBitmap.__renderTransform.tx+=h,a.__cacheBitmap.__renderTransform.ty+=r);a.__cacheBitmap.smoothing=this.__allowSmoothing;a.__cacheBitmap.__renderable=a.__renderable;a.__cacheBitmap.__worldAlpha=a.__worldAlpha;a.__cacheBitmap.__worldBlendMode= +a.__worldBlendMode;a.__cacheBitmap.__worldShader=a.__worldShader;a.__cacheBitmap.set_mask(a.__mask);if(b){if(null==a.__cacheBitmapRenderer||g!=a.__cacheBitmapRenderer.__type)"opengl"==g?a.__cacheBitmapRenderer=new Ja(v.__cast(this,Ja).__context3D,a.__cacheBitmapData):(null==a.__cacheBitmapData.image&&(a.__cacheBitmapData=new xb(u,m,!0,null!=a.opaqueBackground?-16777216|a.opaqueBackground:0),a.__cacheBitmap.__bitmapData=a.__cacheBitmapData),Ka.convertToCanvas(a.__cacheBitmapData.image),a.__cacheBitmapRenderer= +new oe(a.__cacheBitmapData.image.buffer.__srcContext)),a.__cacheBitmapRenderer.__worldTransform=new pa,a.__cacheBitmapRenderer.__worldColorTransform=new Db;null==a.__cacheBitmapColorTransform&&(a.__cacheBitmapColorTransform=new Db);a.__cacheBitmapRenderer.__stage=a.stage;a.__cacheBitmapRenderer.__allowSmoothing=this.__allowSmoothing;a.__cacheBitmapRenderer.__setBlendMode(10);a.__cacheBitmapRenderer.__worldAlpha=1/a.__worldAlpha;a.__cacheBitmapRenderer.__worldTransform.copyFrom(a.__renderTransform); +a.__cacheBitmapRenderer.__worldTransform.invert();a.__cacheBitmapRenderer.__worldTransform.concat(a.__cacheBitmapMatrix);a.__cacheBitmapRenderer.__worldTransform.tx-=h;a.__cacheBitmapRenderer.__worldTransform.ty-=r;a.__cacheBitmapRenderer.__worldTransform.scale(q,q);a.__cacheBitmapRenderer.__pixelRatio=q;a.__cacheBitmapRenderer.__worldColorTransform.__copyFrom(d);a.__cacheBitmapRenderer.__worldColorTransform.__invert();a.__isCacheBitmapRender=!0;if("opengl"==a.__cacheBitmapRenderer.__type){C=a.__cacheBitmapRenderer; +l=C.__context3D;I=l.__state.renderToTexture;G=l.__state.renderToTextureDepthStencil;var D=l.__state.renderToTextureAntiAlias,B=l.__state.renderToTextureSurfaceSelector,x=this.__blendMode;this.__suspendClipAndMask();C.__copyShader(this);a.__cacheBitmapData.__setUVRect(l,0,0,w,p);C.__setRenderTarget(a.__cacheBitmapData);null!=a.__cacheBitmapData.image&&(a.__cacheBitmapData.__textureVersion=a.__cacheBitmapData.image.version+1);a.__cacheBitmapData.__drawGL(a,C);if(c){var z=!1;n=0;for(q=a.__filters;n< +q.length;)h=q[n],++n,h.__preserveObject&&(z=!0);c=a.__cacheBitmapData;r=null;null==a.__cacheBitmapData2||u>a.__cacheBitmapData2.width||m>a.__cacheBitmapData2.height?a.__cacheBitmapData2=new xb(u,m,!0,0):(a.__cacheBitmapData2.fillRect(a.__cacheBitmapData2.rect,0),null!=a.__cacheBitmapData2.image&&(a.__cacheBitmapData2.__textureVersion=a.__cacheBitmapData2.image.version+1));a.__cacheBitmapData2.__setUVRect(l,0,0,w,p);g=a.__cacheBitmapData2;z&&(null==a.__cacheBitmapData3||u>a.__cacheBitmapData3.width|| +m>a.__cacheBitmapData3.height?a.__cacheBitmapData3=new xb(u,m,!0,0):(a.__cacheBitmapData3.fillRect(a.__cacheBitmapData3.rect,0),null!=a.__cacheBitmapData3.image&&(a.__cacheBitmapData3.__textureVersion=a.__cacheBitmapData3.image.version+1)),a.__cacheBitmapData3.__setUVRect(l,0,0,w,p),r=a.__cacheBitmapData3);C.__setBlendMode(10);C.__worldAlpha=1;C.__worldTransform.identity();C.__worldColorTransform.__identity();n=0;for(q=a.__filters;na.__cacheBitmapData2.width||m>a.__cacheBitmapData2.height?a.__cacheBitmapData2=new xb(u,m,!0,0):a.__cacheBitmapData2.fillRect(a.__cacheBitmapData2.rect,0),g=a.__cacheBitmapData2):g=c;z&&(null==a.__cacheBitmapData3||null==a.__cacheBitmapData3.image||u>a.__cacheBitmapData3.width|| +m>a.__cacheBitmapData3.height?a.__cacheBitmapData3=new xb(u,m,!0,0):a.__cacheBitmapData3.fillRect(a.__cacheBitmapData3.rect,0),r=a.__cacheBitmapData3);null==a.__tempPoint&&(a.__tempPoint=new Ba);m=a.__tempPoint;n=0;for(q=a.__filters;n=a.__worldAlpha||null==a.__currentState||(this.__pushMaskObject(a),this.__renderDrawable(a.__currentState),this.__popMaskObject(a),this.__renderEvent(a))}},__renderDrawableMask:function(a){if(null!= +a)switch(a.__drawableType){case 2:this.cairo.rectangle(0,0,a.get_width(),a.get_height());break;case 6:this.__renderDrawableMask(a.__currentState)}},__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);this.__blendMode!=a&&(this.__blendMode=a,this.__setBlendModeCairo(this.cairo,a))},__setBlendModeCairo:function(a,b){switch(b){case 0:a.setOperator(12);break;case 2:a.setOperator(17);break;case 3:a.setOperator(23);break;case 5:a.setOperator(21);break;case 7:a.setOperator(2); +break;case 8:a.setOperator(18);break;case 9:a.setOperator(14);break;case 11:a.setOperator(16);break;case 12:a.setOperator(15);break;default:a.setOperator(2)}},__class__:vh});var oe=function(a){Qc.call(this);this.context=a;this.__tempMatrix=new pa;this.__type="canvas"};g["openfl.display.CanvasRenderer"]=oe;oe.__name__="openfl.display.CanvasRenderer";oe.__super__=Qc;oe.prototype=t(Qc.prototype,{applySmoothing:function(a,b){a.imageSmoothingEnabled=b},setTransform:function(a,b){null==b?b=this.context: +this.context==b&&null!=this.__worldTransform&&(this.__tempMatrix.copyFrom(a),this.__tempMatrix.concat(this.__worldTransform),a=this.__tempMatrix);this.__roundPixels?b.setTransform(a.a,a.b,a.c,a.d,a.tx|0,a.ty|0):b.setTransform(a.a,a.b,a.c,a.d,a.tx,a.ty)},__clear:function(){if(null!=this.__stage){var a=this.__blendMode;this.__blendMode=null;this.__setBlendMode(10);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.__scale,this.__stage.stageHeight*this.__stage.window.__scale)):this.__stage.__transparent&&this.__stage.__clearBeforeRender&&this.context.clearRect(0,0,this.__stage.stageWidth*this.__stage.window.__scale,this.__stage.stageHeight*this.__stage.window.__scale);this.__setBlendMode(a)}},__popMask:function(){this.context.restore()},__popMaskObject:function(a,b){null==b&&(b=!0);a.__isCacheBitmapRender||null== +a.__mask||this.__popMask();b&&null!=a.__scrollRect&&this.__popMaskRect()},__popMaskRect:function(){this.context.restore()},__pushMask:function(a){this.context.save();this.setTransform(a.__renderTransform,this.context);this.context.beginPath();this.__renderDrawableMask(a);this.context.closePath();this.context.clip()},__pushMaskObject:function(a,b){null==b&&(b=!0);b&&null!=a.__scrollRect&&this.__pushMaskRect(a.__scrollRect,a.__renderTransform);a.__isCacheBitmapRender||null==a.__mask||this.__pushMask(a.__mask)}, +__pushMaskRect:function(a,b){this.context.save();this.setTransform(b,this.context);this.context.beginPath();this.context.rect(a.x,a.y,a.width,a.height);this.context.clip()},__render:function(a){this.__renderDrawable(a)},__renderDrawable:function(a){if(null!=a)switch(a.__drawableType){case 0:wh.renderDrawable(a,this);break;case 2:wg.renderDrawable(a,this);break;case 3:$e.renderDrawable(a,this);break;case 4:case 5:xh.renderDrawable(a,this);break;case 6:yh.renderDrawable(a,this);break;case 7:P.renderDrawable(a, +this);break;case 8:af.renderDrawable(a,this);break;case 9:pe.renderDrawable(a,this)}},__renderDrawableMask:function(a){if(null!=a)switch(a.__drawableType){case 0:wh.renderDrawableMask(a,this);break;case 2:wg.renderDrawableMask(a,this);break;case 3:$e.renderDrawableMask(a,this);break;case 4:case 5:xh.renderDrawableMask(a,this);break;case 6:yh.renderDrawableMask(a,this);break;case 7:P.renderDrawableMask(a,this);break;case 8:af.renderDrawableMask(a,this);break;case 9:pe.renderDrawableMask(a,this)}}, +__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);this.__blendMode!=a&&(this.__blendMode=a,this.__setBlendModeContext(this.context,a))},__setBlendModeContext:function(a,b){switch(b){case 0:a.globalCompositeOperation="lighter";break;case 2:a.globalCompositeOperation="darken";break;case 3:a.globalCompositeOperation="difference";break;case 5:a.globalCompositeOperation="hard-light";break;case 8:a.globalCompositeOperation="lighten";break;case 9:a.globalCompositeOperation= +"multiply";break;case 11:a.globalCompositeOperation="overlay";break;case 12:a.globalCompositeOperation="screen";break;default:a.globalCompositeOperation="source-over"}},__class__:oe});var Yj={toString:function(a){switch(a){case 0:return"none";case 1:return"round";case 2:return"square";default:return null}}},zh=function(a){L.call(this);this.__drawableType=10;this.__element=a};g["openfl.display.DOMElement"]=zh;zh.__name__="openfl.display.DOMElement";zh.__super__=L;zh.prototype=t(L.prototype,{__class__:zh}); +var xg=function(a){Qc.call(this);this.element=a;L.__supportDOM=!0;a=window.getComputedStyle(document.documentElement,"");a=(Array.prototype.slice.call(a).join("").match(/-(moz|webkit|ms)-/)||""===a.OLink&&["","o"])[1];"WebKit|Moz|MS|O".match(new RegExp("("+a+")","i"));a[0].toUpperCase();a.substr(1);this.__vendorPrefix=a;this.__transformProperty="webkit"==a?"-webkit-transform":"transform";this.__transformOriginProperty="webkit"==a?"-webkit-transform-origin":"transform-origin";this.__clipRects=[];this.__z= +this.__numClipRects=0;this.__type="dom";this.__canvasRenderer=new oe(null);this.__canvasRenderer.__isDOM=!0};g["openfl.display.DOMRenderer"]=xg;xg.__name__="openfl.display.DOMRenderer";xg.__super__=Qc;xg.prototype=t(Qc.prototype,{__applyStyle:function(a,b,c,d){var f=a.__style;if(b&&a.__renderTransformChanged){b=a.__renderTransform;var k=this.__roundPixels;null==k&&(k=!1);f.setProperty(this.__transformProperty,k?"matrix3d("+b.a+", "+b.b+", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+(b.tx|0)+", "+ +(b.ty|0)+", 0, 1)":"matrix3d("+b.a+", "+b.b+", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+b.tx+", "+b.ty+", 0, 1)",null)}a.__worldZ!=++this.__z&&(a.__worldZ=this.__z,f.setProperty("z-index",null==a.__worldZ?"null":""+a.__worldZ,null));c&&a.__worldAlphaChanged&&(1>a.__worldAlpha?f.setProperty("opacity",null==a.__worldAlpha?"null":""+a.__worldAlpha,null):f.removeProperty("opacity"));d&&a.__worldClipChanged&&(null==a.__worldClip?f.removeProperty("clip"):(a=a.__worldClip,f.setProperty("clip","rect("+ +a.y+"px, "+a.get_right()+"px, "+a.get_bottom()+"px, "+a.x+"px)",null)))},__initializeElement:function(a,b){var c=a.__style=b.style;c.setProperty("position","absolute",null);c.setProperty("top","0",null);c.setProperty("left","0",null);c.setProperty(this.__transformOriginProperty,"0 0 0",null);this.element.appendChild(b);a.__worldAlphaChanged=!0;a.__renderTransformChanged=!0;a.__worldVisibleChanged=!0;a.__worldClipChanged=!0;a.__worldClip=null;a.__worldZ=-1},__popMask:function(){this.__popMaskRect()}, +__popMaskObject:function(a,b){null==b&&(b=!0);null!=a.__mask&&this.__popMask();b&&null!=a.__scrollRect&&this.__popMaskRect()},__popMaskRect:function(){0c.height&&(c.height=0);0>c.width&&(c.width=0);this.__currentClipRect=c;this.__numClipRects++},__render:function(a){this.element.style.background=this.__stage.__transparent? +"none":this.__stage.__colorString;this.__z=1;this.__renderDrawable(a)},__renderDrawable:function(a){if(null!=a)switch(a.__drawableType){case 2:Lb.renderDrawable(a,this);break;case 3:Rc.renderDrawable(a,this);break;case 4:case 5:Ah.renderDrawable(a,this);break;case 6:Bh.renderDrawable(a,this);break;case 7:Ge.renderDrawable(a,this);break;case 8:qe.renderDrawable(a,this);break;case 9:He.renderDrawable(a,this);break;case 10:null!=a.stage&&a.__worldVisible&&a.__renderable?(a.__active||(this.__initializeElement(a, +a.__element),a.__active=!0),this.__updateClip(a),this.__applyStyle(a,!0,!0,!0)):a.__active&&(this.element.removeChild(a.__element),a.__active=!1),Rc.renderDrawable(a,this)}},__renderDrawableClear:function(a){if(null!=a)switch(a.__drawableType){case 2:Lb.renderDrawableClear(a,this);break;case 3:Rc.renderDrawableClear(a,this);break;case 4:case 5:Ah.renderDrawableClear(a,this);break;case 6:Bh.renderDrawableClear(a,this);break;case 7:Ge.renderDrawableClear(a,this);break;case 8:qe.renderDrawableClear(a, +this);break;case 9:He.renderDrawableClear(a,this)}},__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);this.__blendMode!=a&&(this.__blendMode=a)},__updateClip:function(a){if(null==this.__currentClipRect)a.__worldClipChanged=null!=a.__worldClip,a.__worldClip=null;else{null==a.__worldClip&&(a.__worldClip=new da);var b=da.__pool.get(),c=pa.__pool.get();c.copyFrom(a.__renderTransform);c.invert();this.__currentClipRect.__transform(b,c);b.equals(a.__worldClip)?a.__worldClipChanged= +!1:(a.__worldClip.copyFrom(b),a.__worldClipChanged=!0);da.__pool.release(b);pa.__pool.release(c)}},__class__:xg});var zd=function(a){this.byteCode=a;this.precisionHint=1;this.__glSourceDirty=!0;this.__numPasses=1;this.__data=Kj._new(a)};g["openfl.display.Shader"]=zd;zd.__name__="openfl.display.Shader";zd.prototype={__clearUseArray:function(){for(var a=0,b=this.__paramBool;a 0.0) {\n\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * openfl_Alphav, color.a * openfl_Alphav);\n\n\t\t\t} else {\n\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tgl_FragColor = color * openfl_Alphav;\n\n\t\t}\n\n\t\t}"); +null==this.__glVertexSource&&(this.__glVertexSource="attribute float openfl_Alpha;\n\t\tattribute vec4 openfl_ColorMultiplier;\n\t\tattribute vec4 openfl_ColorOffset;\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_Alphav = openfl_Alpha;\n\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tif (openfl_HasColorTransform) {\n\n\t\t\topenfl_ColorMultiplierv = openfl_ColorMultiplier;\n\t\t\topenfl_ColorOffsetv = openfl_ColorOffset / 255.0;\n\n\t\t}\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}"); +zd.call(this,a);this.__isGenerated=!0;this.__initGL()};g["openfl.display.DisplayObjectShader"]=Dh;Dh.__name__="openfl.display.DisplayObjectShader";Dh.__super__=zd;Dh.prototype=t(zd.prototype,{__class__:Dh});var Hi=function(a,b){S.call(this);this.name=a;this.frame=b};g["openfl.display.FrameLabel"]=Hi;Hi.__name__="openfl.display.FrameLabel";Hi.__super__=S;Hi.prototype=t(S.prototype,{__class__:Hi});var $c=function(a){this.__dirty=!0;this.__owner=a;this.__commands=new Sc;this.__positionY=this.__positionX= +this.__strokePadding=0;this.__renderTransform=new pa;this.__usedShaderBuffers=new ua;this.__worldTransform=new pa;this.__height=this.__width=0;this.__bitmapScale=1;this.__shaderBufferPool=new Na(function(){return new Eh});this.moveTo(0,0)};g["openfl.display.Graphics"]=$c;$c.__name__="openfl.display.Graphics";$c.prototype={beginBitmapFill:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!0);a.readable?(this.__commands.beginBitmapFill(a,null!=b?b.clone():null,c,d),this.__visible=!0):this.beginFill(0,1)}, +beginFill:function(a,b){null==b&&(b=1);null==a&&(a=0);this.__commands.beginFill(a&16777215,b);0c?-1:1,k=0>d?-1:1;this.__inflateBounds(a-this.__strokePadding* +f,b-this.__strokePadding*k);this.__inflateBounds(a+c+this.__strokePadding*f,b+d+this.__strokePadding*k);this.__commands.drawRect(a,b,c,d);this.set___dirty(!0)}},drawRoundRect:function(a,b,c,d,f,k){if(0!=c||0!=d){var g=0>c?-1:1,q=0>d?-1:1;this.__inflateBounds(a-this.__strokePadding*g,b-this.__strokePadding*q);this.__inflateBounds(a+c+this.__strokePadding*g,b+d+this.__strokePadding*q);this.__commands.drawRoundRect(a,b,c,d,f,k);this.set___dirty(!0)}},endFill:function(){this.__commands.endFill()},lineBitmapStyle:function(a, +b,c,d){null==d&&(d=!1);null==c&&(c=!0);this.__commands.lineBitmapStyle(a,null!=b?b.clone():null,c,d)},lineGradientStyle:function(a,b,c,d,f,k,g,q){null==q&&(q=0);null==g&&(g=1);null==k&&(k=0);if(null==c){c=[];for(var u=0,h=b.length;uthis.__strokePadding&&(this.__strokePadding=Math.ceil(a)):a/2>this.__strokePadding&&(this.__strokePadding=Math.ceil(a/2)));this.__commands.lineStyle(a,b,c,d,f,k,g,q);null!=a&&(this.__visible=!0)},lineTo:function(a,b){isFinite(a)&&isFinite(b)&&(this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding),this.__positionX= +a,this.__positionY=b,this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+2*this.__strokePadding,this.__positionY+this.__strokePadding),this.__commands.lineTo(a,b),this.set___dirty(!0))},moveTo:function(a,b){this.__positionX=a;this.__positionY=b;this.__commands.moveTo(a,b)},__cleanup:function(){null!=this.__bounds&&null!=this.__canvas&&(this.set___dirty(!0),this.__transformDirty=!0);this.__context=this.__canvas=this.__bitmap= +null},__getBounds:function(a,b){if(null!=this.__bounds){var c=da.__pool.get();this.__bounds.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);da.__pool.release(c)}},__hitTest:function(a,b,c,d){if(null==this.__bounds)return!1;var f=d.a*d.d-d.b*d.c,k=0==f?-d.tx:1/f*(d.c*(d.ty-b)+d.d*(a-d.tx));f=d.a*d.d-d.b*d.c;a=0==f?-d.ty:1/f*(d.a*(b-d.ty)+d.b*(d.tx-a));return k>this.__bounds.x&&a>this.__bounds.y&&this.__bounds.contains(k,a)?c?B.hitTest(this,k,a):!0:!1},__inflateBounds:function(a,b){null==this.__bounds? +(this.__bounds=new da(a,b,0,0),this.__transformDirty=!0):(athis.__bounds.x+this.__bounds.width&&(this.__bounds.width=a-this.__bounds.x),b>this.__bounds.y+this.__bounds.height&&(this.__bounds.height=b-this.__bounds.y))},__update:function(a,b){if(!(null==this.__bounds||0>=this.__bounds.width||0>= +this.__bounds.height)){var c=this.__owner.__renderTransform;if(null!=c){var d=b,f=b;null==this.__owner.__worldScale9Grid&&(d=0==c.b?Math.abs(c.a):Math.sqrt(c.a*c.a+c.b*c.b),f=0==c.c?Math.abs(c.d):Math.sqrt(c.c*c.c+c.d*c.d),null!=a&&(d=0==a.b?d*a.a:d*Math.sqrt(a.a*a.a+a.b*a.b),f=0==a.c?f*a.d:f*Math.sqrt(a.c*a.c+a.d*a.d)));a=this.__bounds.width*d;f*=this.__bounds.height;if(1>a||1>f)(1<=this.__width||1<=this.__height)&&this.set___dirty(!0),this.__height=this.__width=0;else{null!=$c.maxTextureWidth&& +a>$c.maxTextureWidth&&(a=$c.maxTextureWidth);null!=$c.maxTextureWidth&&f>$c.maxTextureHeight&&(f=$c.maxTextureHeight);if(null!=this.__owner.__worldScale9Grid){this.__renderTransform.a=b;this.__renderTransform.d=b;d=1/b;var k=1/b}else this.__renderTransform.a=a/this.__bounds.width,this.__renderTransform.d=f/this.__bounds.height,d=1/this.__renderTransform.a,k=1/this.__renderTransform.d;this.__worldTransform.a=d*c.a;this.__worldTransform.b=d*c.b;this.__worldTransform.c=k*c.c;this.__worldTransform.d= +k*c.d;k=this.__bounds.x;var g=this.__bounds.y;d=k*c.a+g*c.c+c.tx;c=k*c.b+g*c.d+c.ty;1 0.0) {\n\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * openfl_Alphav, color.a * openfl_Alphav);\n\n\t\t\t} else {\n\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tgl_FragColor = color * openfl_Alphav;\n\n\t\t}\n\n\t\t}"); +null==this.__glVertexSource&&(this.__glVertexSource="attribute float openfl_Alpha;\n\t\tattribute vec4 openfl_ColorMultiplier;\n\t\tattribute vec4 openfl_ColorOffset;\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_Alphav = openfl_Alpha;\n\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tif (openfl_HasColorTransform) {\n\n\t\t\topenfl_ColorMultiplierv = openfl_ColorMultiplier;\n\t\t\topenfl_ColorOffsetv = openfl_ColorOffset / 255.0;\n\n\t\t}\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}"); +zd.call(this,a);this.__isGenerated=!0;this.__initGL()};g["openfl.display.GraphicsShader"]=Fh;Fh.__name__="openfl.display.GraphicsShader";Fh.__super__=zd;Fh.prototype=t(zd.prototype,{__class__:Fh});var Ii=function(){};g["openfl.display.ITileContainer"]=Ii;Ii.__name__="openfl.display.ITileContainer";Ii.__isInterface__=!0;var Zj={toString:function(a){switch(a){case 0:return"bevel";case 1:return"miter";case 2:return"round";default:return null}}},Xf=function(){ya.call(this);this.__drawableType=4;this.contentLoaderInfo= +Kd.create(this);this.uncaughtErrorEvents=this.contentLoaderInfo.uncaughtErrorEvents;this.__unloaded=!0};g["openfl.display.Loader"]=Xf;Xf.__name__="openfl.display.Loader";Xf.__super__=ya;Xf.prototype=t(ya.prototype,{addChild:function(a){throw new Mb("Error #2069: The Loader class does not implement this method.",2069);},addChildAt:function(a,b){throw new Mb("Error #2069: The Loader class does not implement this method.",2069);},load:function(a,b){this.unload();b=new ca("open");this.contentLoaderInfo.dispatchEvent(b); +this.contentLoaderInfo.loaderURL=va.get_current().get_loaderInfo().url;this.contentLoaderInfo.url=a.url;this.__unloaded=!1;if(null==a.contentType||""==a.contentType){b="";this.__path=a.url;var c=this.__path.indexOf("?");-1=this.x&&b>=this.y&&aa+c&&(g=a+c-this.get_right());this.get_bottom()>b+d&&(q=b+d-this.get_bottom());this.x+=f;this.y+=k;this.width+=g-f;this.height+=q-k}},__expand:function(a,b,c,d){if(0==this.width&&0==this.height)this.x=a,this.y=b,this.width=c,this.height=d;else{var f=this.get_right(),k=this.get_bottom();this.x>a&&(this.x=a,this.width=f-a);this.y>b&&(this.y=b,this.height= +k-b);fd&&(d=g);q>k&&(k=q);g=b.a*(this.x+this.width)+b.c*(this.y+this.height);q=b.b* +(this.x+this.width)+b.d*(this.y+this.height);gd&&(d=g);q>k&&(k=q);g=b.a*this.x+b.c*(this.y+this.height);q=b.b*this.x+b.d*(this.y+this.height);gd&&(d=g);q>k&&(k=q);a.setTo(c+b.tx,f+b.ty,d-c,k-f)},get_bottom:function(){return this.y+this.height},get_left:function(){return this.x},get_right:function(){return this.x+this.width},get_top:function(){return this.y},__class__:da,__properties__:{get_top:"get_top",get_right:"get_right",get_left:"get_left",get_bottom:"get_bottom"}}; +var Ja=function(a,b){Qc.call(this);this.__context3D=a;this.__context=a.__context;this.__gl=this.gl=a.__context.webgl;this.__defaultRenderTarget=b;this.__flipped=null==this.__defaultRenderTarget;null==$c.maxTextureWidth&&($c.maxTextureWidth=$c.maxTextureHeight=this.__gl.getParameter(this.__gl.MAX_TEXTURE_SIZE));this.__matrix=Qa._new();this.__values=[];this.__softwareRenderer=new oe(null);this.__type="opengl";this.__setBlendMode(10);this.__context3D.__setGLBlend(!0);this.__clipRects=[];this.__maskObjects= +[];this.__numClipRects=0;this.__projection=Qa._new();this.__projectionFlipped=Qa._new();this.__stencilReference=0;this.__tempRect=new da;this.__defaultDisplayShader=new Dh;this.__defaultGraphicsShader=new Fh;this.__defaultShader=this.__defaultDisplayShader;this.__initShader(this.__defaultShader);this.__scrollRectMasks=new Na(function(){return new Jf});this.__maskShader=new bf};g["openfl.display.OpenGLRenderer"]=Ja;Ja.__name__="openfl.display.OpenGLRenderer";Ja.__super__=Qc;Ja.prototype=t(Qc.prototype, +{applyAlpha:function(a){Ja.__alphaValue[0]=a*this.__worldAlpha;null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addFloatOverride("openfl_Alpha",Ja.__alphaValue):null!=this.__currentShader&&null!=this.__currentShader.__alpha&&(this.__currentShader.__alpha.value=Ja.__alphaValue)},applyBitmapData:function(a,b,c){null==c&&(c=!1);null!=this.__currentShaderBuffer?null!=a&&(Ja.__textureSizeValue[0]=a.__textureWidth,Ja.__textureSizeValue[1]=a.__textureHeight,this.__currentShaderBuffer.addFloatOverride("openfl_TextureSize", +Ja.__textureSizeValue)):null!=this.__currentShader&&(null!=this.__currentShader.__bitmap&&(this.__currentShader.__bitmap.input=a,this.__currentShader.__bitmap.filter=b&&this.__allowSmoothing?4:5,this.__currentShader.__bitmap.mipFilter=2,this.__currentShader.__bitmap.wrap=c?2:0),null!=this.__currentShader.__texture&&(this.__currentShader.__texture.input=a,this.__currentShader.__texture.filter=b&&this.__allowSmoothing?4:5,this.__currentShader.__texture.mipFilter=2,this.__currentShader.__texture.wrap= +c?2:0),null!=this.__currentShader.__textureSize&&(null!=a?(Ja.__textureSizeValue[0]=a.__textureWidth,Ja.__textureSizeValue[1]=a.__textureHeight,this.__currentShader.__textureSize.value=Ja.__textureSizeValue):this.__currentShader.__textureSize.value=null))},applyColorTransform:function(a){var b=null!=a&&!a.__isDefault(!0);this.applyHasColorTransform(b);b?(a.__setArrays(Ja.__colorMultipliersValue,Ja.__colorOffsetsValue),null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addFloatOverride("openfl_ColorMultiplier", +Ja.__colorMultipliersValue),this.__currentShaderBuffer.addFloatOverride("openfl_ColorOffset",Ja.__colorOffsetsValue)):null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=Ja.__colorMultipliersValue),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.value=Ja.__colorOffsetsValue))):null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addFloatOverride("openfl_ColorMultiplier",Ja.__emptyColorValue), +this.__currentShaderBuffer.addFloatOverride("openfl_ColorOffset",Ja.__emptyColorValue)):null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=Ja.__emptyColorValue),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.value=Ja.__emptyColorValue))},applyHasColorTransform:function(a){Ja.__hasColorTransformValue[0]=a;null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addBoolOverride("openfl_HasColorTransform", +Ja.__hasColorTransformValue):null!=this.__currentShader&&null!=this.__currentShader.__hasColorTransform&&(this.__currentShader.__hasColorTransform.value=Ja.__hasColorTransformValue)},applyMatrix:function(a){null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addFloatOverride("openfl_Matrix",a):null!=this.__currentShader&&null!=this.__currentShader.__matrix&&(this.__currentShader.__matrix.value=a)},setShader:function(a){this.__currentShaderBuffer=null;this.__currentShader!=a&&(null==a?(this.__currentShader= +null,this.__context3D.setProgram(null)):(this.__currentShader=a,this.__initShader(a),this.__context3D.setProgram(a.program),this.__context3D.__flushGLProgram(),this.__currentShader.__enable(),this.__context3D.__state.shader=a))},setViewport:function(){this.__gl.viewport(this.__offsetX,this.__offsetY,this.__displayWidth,this.__displayHeight)},updateShader:function(){null!=this.__currentShader&&(null!=this.__currentShader.__position&&(this.__currentShader.__position.__useArray=!0),null!=this.__currentShader.__textureCoord&& +(this.__currentShader.__textureCoord.__useArray=!0),this.__context3D.setProgram(this.__currentShader.program),this.__context3D.__flushGLProgram(),this.__context3D.__flushGLTextures(),this.__currentShader.__update())},useAlphaArray:function(){null!=this.__currentShader&&null!=this.__currentShader.__alpha&&(this.__currentShader.__alpha.__useArray=!0)},useColorTransformArray:function(){null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.__useArray= +!0),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.__useArray=!0))},__clear:function(){null==this.__stage||this.__stage.__transparent?this.__context3D.clear(0,0,0,0,0,0,1):this.__context3D.clear(this.__stage.__colorSplit[0],this.__stage.__colorSplit[1],this.__stage.__colorSplit[2],1,0,0,1);this.__cleared=!0},__clearShader:function(){null!=this.__currentShader&&(null==this.__currentShaderBuffer?null!=this.__currentShader.__bitmap&&(this.__currentShader.__bitmap.input= +null):this.__currentShaderBuffer.clearOverride(),null!=this.__currentShader.__texture&&(this.__currentShader.__texture.input=null),null!=this.__currentShader.__textureSize&&(this.__currentShader.__textureSize.value=null),null!=this.__currentShader.__hasColorTransform&&(this.__currentShader.__hasColorTransform.value=null),null!=this.__currentShader.__position&&(this.__currentShader.__position.value=null),null!=this.__currentShader.__matrix&&(this.__currentShader.__matrix.value=null),this.__currentShader.__clearUseArray())}, +__copyShader:function(a){this.__currentShader=a.__currentShader;this.__currentShaderBuffer=a.__currentShaderBuffer;this.__currentDisplayShader=a.__currentDisplayShader;this.__currentGraphicsShader=a.__currentGraphicsShader},__getMatrix:function(a,b){var c=pa.__pool.get();c.copyFrom(a);c.concat(this.__worldTransform);if(0==b||1==b&&0==c.b&&0==c.c&&1.001>c.a&&.999c.d&&.999b.height&&(b.height=0);0>b.width&&(b.width=0);pa.__pool.release(c);this.__scissorRect(b);this.__numClipRects++},__render:function(a){this.__context3D.setColorMask(!0,!0,!0,!0);this.__context3D.setCulling(3); +this.__context3D.setDepthTest(!1,0);this.__context3D.setStencilActions();this.__context3D.setStencilReferenceValue(0,0,0);this.__context3D.setScissorRectangle(null);this.__blendMode=null;this.__setBlendMode(10);if(null==this.__defaultRenderTarget){if(this.__context3D.__backBufferWantsBestResolution?Ja.__scissorRectangle.setTo(this.__offsetX/this.__pixelRatio,this.__offsetY/this.__pixelRatio,this.__displayWidth/this.__pixelRatio,this.__displayHeight/this.__pixelRatio):Ja.__scissorRectangle.setTo(this.__offsetX, +this.__offsetY,this.__displayWidth,this.__displayHeight),this.__context3D.setScissorRectangle(Ja.__scissorRectangle),this.__upscaled=1!=this.__worldTransform.a||1!=this.__worldTransform.d,this.__renderDrawable(a),0d&&(d=0);0>f&&(f=0);Ja.__scissorRectangle.setTo(b,c,d,f);this.__context3D.setScissorRectangle(Ja.__scissorRectangle)}else this.__context3D.setScissorRectangle(null)},__setBlendMode:function(a){null!= +this.__overrideBlendMode&&(a=this.__overrideBlendMode);if(this.__blendMode!=a)switch(this.__blendMode=a,a){case 0:this.__context3D.setBlendFactors(2,2);break;case 9:this.__context3D.setBlendFactors(1,5);break;case 12:this.__context3D.setBlendFactors(2,6);break;case 14:this.__context3D.setBlendFactors(2,2);this.__context3D.__setGLBlendEquation(this.__gl.FUNC_REVERSE_SUBTRACT);break;default:this.__context3D.setBlendFactors(2,5)}},__setRenderTarget:function(a){this.__defaultRenderTarget=a;this.__flipped= +null==a;null!=a&&this.__resize(a.width,a.height)},__setShaderBuffer:function(a){this.setShader(a.shader);this.__currentShaderBuffer=a},__suspendClipAndMask:function(){0.299*(a>>16&255)+.587*(a>>8&255)+.114*(a&255)&&(b=16777215);a=this.getHeight()/2-3.5;var c=this.getWidth()-60;this.outline=new Jf;this.outline.get_graphics().beginFill(b,.07);this.outline.get_graphics().drawRect(0,0,c,7);this.outline.set_x(30);this.outline.set_y(a);this.outline.set_alpha(0);this.addChild(this.outline);this.progress=new Jf;this.progress.get_graphics().beginFill(b,.35);this.progress.get_graphics().drawRect(0, +0,c-4,3);this.progress.set_x(32);this.progress.set_y(a+2);this.progress.set_scaleX(0);this.progress.set_alpha(0);this.addChild(this.progress);this.startAnimation=va.getTimer()+100;this.endAnimation=this.startAnimation+1E3;this.addEventListener("addedToStage",h(this,this.this_onAddedToStage))};g["openfl.display.DefaultPreloader"]=Tf;Tf.__name__="openfl.display.DefaultPreloader";Tf.__super__=Ga;Tf.prototype=t(Ga.prototype,{getBackgroundColor:function(){var a=va.get_current().stage.window.context.attributes; +return Object.prototype.hasOwnProperty.call(a,"background")&&null!=a.background?a.background:0},getHeight:function(){var a=va.get_current().stage.window.__height;return 0a&&(a=0);1b||a.setTextureAt(b,null)},__updateGL:function(a,b,c,d,f,k){c=null!=c?c:this.input;d=null!=d?d:this.filter;f=null!=f?f:this.mipFilter;k=null!=k?k:this.wrap;null!=c?(a.setTextureAt(b,c.getTexture(a)),a.setSamplerStateAt(b,k,d,f)):a.setTextureAt(b,null)},__class__:Ch};var Hf=function(){this.index=0};g["openfl.display.ShaderParameter"]=Hf;Hf.__name__="openfl.display.ShaderParameter"; +Hf.prototype={__disableGL:function(a){if(!(0>this.index||(a=a.gl,this.__isUniform)))for(var b=0,c=this.__arrayLength;bthis.index)){a=a.gl;b=null!=b?b:this.value;var c=this.__isBool?b:null,d=this.__isFloat?b:null,f=this.__isInt?b:null;if(this.__isUniform)if(null!=b&&b.length>=this.__length)switch(this.type){case 0:a.uniform1i(this.index,c[0]?1:0);break;case 1:a.uniform2i(this.index,c[0]?1:0,c[1]?1:0);break;case 2:a.uniform3i(this.index, +c[0]?1:0,c[1]?1:0,c[2]?1:0);break;case 3:a.uniform4i(this.index,c[0]?1:0,c[1]?1:0,c[2]?1:0,c[3]?1:0);break;case 4:a.uniform1f(this.index,d[0]);break;case 5:a.uniform2f(this.index,d[0],d[1]);break;case 6:a.uniform3f(this.index,d[0],d[1],d[2]);break;case 7:a.uniform4f(this.index,d[0],d[1],d[2],d[3]);break;case 8:a.uniform1i(this.index,f[0]);break;case 9:a.uniform2i(this.index,f[0],f[1]);break;case 10:a.uniform3i(this.index,f[0],f[1],f[2]);break;case 11:a.uniform4i(this.index,f[0],f[1],f[2],f[3]);break; +case 12:this.__uniformMatrix[0]=d[0];this.__uniformMatrix[1]=d[1];this.__uniformMatrix[2]=d[2];this.__uniformMatrix[3]=d[3];sc.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=d[0];this.__uniformMatrix[1]=d[1];this.__uniformMatrix[2]=d[2];this.__uniformMatrix[3]=d[3];this.__uniformMatrix[4]=d[4];this.__uniformMatrix[5]=d[5];this.__uniformMatrix[6]=d[6];this.__uniformMatrix[7]=d[7];this.__uniformMatrix[8]=d[8];sc.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix); +break;case 20:this.__uniformMatrix[0]=d[0],this.__uniformMatrix[1]=d[1],this.__uniformMatrix[2]=d[2],this.__uniformMatrix[3]=d[3],this.__uniformMatrix[4]=d[4],this.__uniformMatrix[5]=d[5],this.__uniformMatrix[6]=d[6],this.__uniformMatrix[7]=d[7],this.__uniformMatrix[8]=d[8],this.__uniformMatrix[9]=d[9],this.__uniformMatrix[10]=d[10],this.__uniformMatrix[11]=d[11],this.__uniformMatrix[12]=d[12],this.__uniformMatrix[13]=d[13],this.__uniformMatrix[14]=d[14],this.__uniformMatrix[15]=d[15],sc.uniformMatrix4fv(a, +this.index,!1,this.__uniformMatrix)}else switch(this.type){case 4:a.uniform1f(this.index,0);break;case 5:a.uniform2f(this.index,0,0);break;case 6:a.uniform3f(this.index,0,0,0);break;case 7:a.uniform4f(this.index,0,0,0,0);break;case 0:case 8:a.uniform1i(this.index,0);break;case 1:case 9:a.uniform2i(this.index,0,0);break;case 2:case 10:a.uniform3i(this.index,0,0,0);break;case 3:case 11:a.uniform4i(this.index,0,0,0,0);break;case 12:this.__uniformMatrix[0]=0;this.__uniformMatrix[1]=0;this.__uniformMatrix[2]= +0;this.__uniformMatrix[3]=0;sc.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=0;this.__uniformMatrix[1]=0;this.__uniformMatrix[2]=0;this.__uniformMatrix[3]=0;this.__uniformMatrix[4]=0;this.__uniformMatrix[5]=0;this.__uniformMatrix[6]=0;this.__uniformMatrix[7]=0;this.__uniformMatrix[8]=0;sc.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=0,this.__uniformMatrix[1]=0,this.__uniformMatrix[2]=0,this.__uniformMatrix[3]= +0,this.__uniformMatrix[4]=0,this.__uniformMatrix[5]=0,this.__uniformMatrix[6]=0,this.__uniformMatrix[7]=0,this.__uniformMatrix[8]=0,this.__uniformMatrix[9]=0,this.__uniformMatrix[10]=0,this.__uniformMatrix[11]=0,this.__uniformMatrix[12]=0,this.__uniformMatrix[13]=0,this.__uniformMatrix[14]=0,this.__uniformMatrix[15]=0,sc.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}else if(this.__useArray||null!=b&&b.length!=this.__length)for(k=0,g=this.__arrayLength;kthis.index))if(a=a.gl,this.__isUniform){if(d>=this.__length)switch(this.type){case 4:a.uniform1f(this.index, +b[c]);break;case 5:a.uniform2f(this.index,b[c],b[c+1]);break;case 6:a.uniform3f(this.index,b[c],b[c+1],b[c+2]);break;case 7:a.uniform4f(this.index,b[c],b[c+1],b[c+2],b[c+3]);break;case 0:case 8:a.uniform1i(this.index,b[c]|0);break;case 1:case 9:a.uniform2i(this.index,b[c]|0,b[c+1]|0);break;case 2:case 10:a.uniform3i(this.index,b[c]|0,b[c+1]|0,b[c+2]|0);break;case 3:case 11:a.uniform4i(this.index,b[c]|0,b[c+1]|0,b[c+2]|0,b[c+3]|0);break;case 12:this.__uniformMatrix[0]=b[c];this.__uniformMatrix[1]= +b[c+1];this.__uniformMatrix[2]=b[c+2];this.__uniformMatrix[3]=b[c+3];sc.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=b[c];this.__uniformMatrix[1]=b[c+1];this.__uniformMatrix[2]=b[c+2];this.__uniformMatrix[3]=b[c+3];this.__uniformMatrix[4]=b[c+4];this.__uniformMatrix[5]=b[c+5];this.__uniformMatrix[6]=b[c+6];this.__uniformMatrix[7]=b[c+7];this.__uniformMatrix[8]=b[c+8];sc.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]= +b[c],this.__uniformMatrix[1]=b[c+1],this.__uniformMatrix[2]=b[c+2],this.__uniformMatrix[3]=b[c+3],this.__uniformMatrix[4]=b[c+4],this.__uniformMatrix[5]=b[c+5],this.__uniformMatrix[6]=b[c+6],this.__uniformMatrix[7]=b[c+7],this.__uniformMatrix[8]=b[c+8],this.__uniformMatrix[9]=b[c+9],this.__uniformMatrix[10]=b[c+10],this.__uniformMatrix[11]=b[c+11],this.__uniformMatrix[12]=b[c+12],this.__uniformMatrix[13]=b[c+13],this.__uniformMatrix[14]=b[c+14],this.__uniformMatrix[15]=b[c+15],sc.uniformMatrix4fv(a, +this.index,!1,this.__uniformMatrix)}}else if(this.__internal||0!=d&&d!=this.__length){b=a.FLOAT;this.__isBool?b=a.INT:this.__isInt&&(b=a.INT);k=0;for(g=this.__arrayLength;kthis.__dragBounds.get_right()&&(b=this.__dragBounds.get_right()),athis.__dragBounds.get_bottom()&&(a=this.__dragBounds.get_bottom()));this.__dragObject.set_x(b); +this.__dragObject.set_y(a)},__getInteractive:function(a){null!=a&&a.push(this);return!0},__globalToLocal:function(a,b){a!=b&&b.copyFrom(a);return b},__handleError:function(a){var b=new jf("uncaughtError",!0,!0,a);va.get_current().__loaderInfo.uncaughtErrorEvents.dispatchEvent(b);if(!b.__preventDefault){b=Be.toString(Be.exceptionStack());console.log(b);b=p.string(a);console.log(b);try{if(null!=a&&Object.prototype.hasOwnProperty.call(a,"stack")&&null!=a.stack&&""!=a.stack)console.log(a.stack),a.stack= +a.stack;else{var c=Be.toString(Be.callStack());console.log(c)}}catch(d){Ia.lastError=d}throw a;}},__onKey:function(a,b,c){this.__dispatchPendingMouseEvent();ob.__altKey=Ra.get_altKey(c);ob.__commandKey=Ra.get_metaKey(c);ob.__controlKey=Ra.get_ctrlKey(c)&&!Ra.get_metaKey(c);ob.__ctrlKey=Ra.get_ctrlKey(c);ob.__shiftKey=Ra.get_shiftKey(c);var d=[];null==this.__focus?this.__getInteractive(d):this.__focus.__getInteractive(d);if(0q?0:q+b}else k=this.__currentTabOrderIndex}else 1==d.length&&(a=d[0],this.get_focus()==a&& +(a=null));q=0<=k&&kk&&(k+=d.length),k%=d.length,a=d[k],a==this.get_focus()&&(k+=b,0>k&&(k+=d.length),k%=d.length,a=d[k]));b=null;null!=this.get_focus()&&(b=new ef("keyFocusChange",!0,!0,a,Ra.get_shiftKey(c),0),d=[],this.get_focus().__getInteractive(d),d.reverse(),this.__dispatchStack(b,d),b.isDefaultPrevented()&&this.window.onKeyDown.cancel());null!=b&&b.isDefaultPrevented()||(this.__currentTabOrderIndex=k,null!=a&&this.set_focus(a), +q&&this.window.onKeyDown.cancel())}else if("keyDown"==a&&null!=this.get_focus()&&!(this.get_focus()instanceof oc)&&(this.__macKeyboard?Ra.get_ctrlKey(c)||Ra.get_metaKey(c):Ra.get_ctrlKey(c))&&!Ra.get_altKey(c)&&!Ra.get_shiftKey(c))switch(b){case 65:c=new ca("selectAll",!0,!0);this.get_focus().dispatchEvent(c);break;case 67:c=new ca("copy",!0,!0);this.get_focus().dispatchEvent(c);break;case 86:c=new ca("paste",!0,!0);this.get_focus().dispatchEvent(c);break;case 88:c=new ca("cut",!0,!0),this.get_focus().dispatchEvent(c)}f.__updateAfterEventFlag&& +this.__renderAfterEvent()}},__onLimeCreateWindow:function(a){if(this.window==a){var b=this;a.onActivate.add(function(){b.__onLimeWindowActivate(a)});var c=this;a.onClose.add(function(){c.__onLimeWindowClose(a)},!1,-9E3);var d=this;a.onDeactivate.add(function(){d.__onLimeWindowDeactivate(a)});var f=this;var k=function(b){f.__onLimeWindowDropFile(a,b)};a.onDropFile.add(k);var g=this;a.onEnter.add(function(){g.__onLimeWindowEnter(a)});var q=this;a.onExpose.add(function(){q.__onLimeWindowExpose(a)}); +var n=this;a.onFocusIn.add(function(){n.__onLimeWindowFocusIn(a)});var w=this;a.onFocusOut.add(function(){w.__onLimeWindowFocusOut(a)});var p=this;a.onFullscreen.add(function(){p.__onLimeWindowFullscreen(a)});var m=this;k=function(b,c){m.__onLimeKeyDown(a,b,c)};a.onKeyDown.add(k);var r=this;k=function(b,c){r.__onLimeKeyUp(a,b,c)};a.onKeyUp.add(k);var C=this;a.onLeave.add(function(){C.__onLimeWindowLeave(a)});var l=this;a.onMinimize.add(function(){l.__onLimeWindowMinimize(a)});var I=this;k=function(b, +c,d){I.__onLimeMouseDown(a,b,c,d)};a.onMouseDown.add(k);var v=this;k=function(b,c){v.__onLimeMouseMove(a,b,c)};a.onMouseMove.add(k);var G=this;k=function(b,c){G.__onLimeMouseMoveRelative(a,b,c)};a.onMouseMoveRelative.add(k);var D=this;k=function(b,c,d){D.__onLimeMouseUp(a,b,c,d)};a.onMouseUp.add(k);var B=this;k=function(b,c,d){B.__onLimeMouseWheel(a,b,c,d)};a.onMouseWheel.add(k);var z=this;k=function(b,c){z.__onLimeWindowMove(a,b,c)};a.onMove.add(k);a.onRender.add(h(this,this.__onLimeRender));a.onRenderContextLost.add(h(this, +this.__onLimeRenderContextLost));a.onRenderContextRestored.add(h(this,this.__onLimeRenderContextRestored));var x=this;k=function(b,c){x.__onLimeWindowResize(a,b,c)};a.onResize.add(k);var t=this;a.onRestore.add(function(){t.__onLimeWindowRestore(a)});var A=this;k=function(b,c,d){A.__onLimeTextEdit(a,b,c,d)};a.onTextEdit.add(k);var E=this;k=function(b){E.__onLimeTextInput(a,b)};a.onTextInput.add(k);this.__onLimeWindowCreate(a)}},__onLimeGamepadAxisMove:function(a,b,c){if(this.__uncaughtErrorEvents.__enabled)try{Sa.__onGamepadAxisMove(a, +b,c)}catch(d){Ia.lastError=d,a=fa.caught(d).unwrap(),this.__handleError(a)}else Sa.__onGamepadAxisMove(a,b,c)},__onLimeGamepadButtonDown:function(a,b){if(this.__uncaughtErrorEvents.__enabled)try{Sa.__onGamepadButtonDown(a,b)}catch(c){Ia.lastError=c,a=fa.caught(c).unwrap(),this.__handleError(a)}else Sa.__onGamepadButtonDown(a,b)},__onLimeGamepadButtonUp:function(a,b){if(this.__uncaughtErrorEvents.__enabled)try{Sa.__onGamepadButtonUp(a,b)}catch(c){Ia.lastError=c,a=fa.caught(c).unwrap(),this.__handleError(a)}else Sa.__onGamepadButtonUp(a, +b)},__onLimeGamepadConnect:function(a){if(this.__uncaughtErrorEvents.__enabled)try{Sa.__onGamepadConnect(a)}catch(u){Ia.lastError=u;var b=fa.caught(u).unwrap();this.__handleError(b)}else Sa.__onGamepadConnect(a);var c=this;b=function(b,d){c.__onLimeGamepadAxisMove(a,b,d)};a.onAxisMove.add(b);var d=this;b=function(b){d.__onLimeGamepadButtonDown(a,b)};a.onButtonDown.add(b);var f=this;b=function(b){f.__onLimeGamepadButtonUp(a,b)};a.onButtonUp.add(b);var k=this;a.onDisconnect.add(function(){k.__onLimeGamepadDisconnect(a)})}, +__onLimeGamepadDisconnect:function(a){if(this.__uncaughtErrorEvents.__enabled)try{Sa.__onGamepadDisconnect(a)}catch(b){Ia.lastError=b,a=fa.caught(b).unwrap(),this.__handleError(a)}else Sa.__onGamepadDisconnect(a)},__onLimeKeyDown:function(a,b,c){null!=this.window&&this.window==a&&this.__onKey("keyDown",b,c)},__onLimeKeyUp:function(a,b,c){null!=this.window&&this.window==a&&this.__onKey("keyUp",b,c)},__onLimeModuleExit:function(a){null!=this.window&&(a=new ca("deactivate"),this.__broadcastEvent(a))}, +__onLimeMouseDown:function(a,b,c,d){if(null!=this.window&&this.window==a){this.__dispatchPendingMouseEvent();switch(d){case 1:var f="middleMouseDown";break;case 2:f="rightMouseDown";break;default:f="mouseDown"}this.__onMouse(f,b*a.__scale|0,c*a.__scale|0,d);this.showDefaultContextMenu||2!=d||a.onMouseDown.cancel()}},__onLimeMouseMove:function(a,b,c){null!=this.window&&this.window==a&&(this.__pendingMouseEvent=!0,this.__pendingMouseX=b*a.__scale|0,this.__pendingMouseY=c*a.__scale|0)},__onLimeMouseMoveRelative:function(a, +b,c){},__onLimeMouseUp:function(a,b,c,d){if(null!=this.window&&this.window==a){this.__dispatchPendingMouseEvent();switch(d){case 1:var f="middleMouseUp";break;case 2:f="rightMouseUp";break;default:f="mouseUp"}this.__onMouse(f,b*a.__scale|0,c*a.__scale|0,d);this.showDefaultContextMenu||2!=d||a.onMouseUp.cancel()}},__onLimeMouseWheel:function(a,b,c,d){null!=this.window&&this.window==a&&(this.__dispatchPendingMouseEvent(),d==De.PIXELS?this.__onMouseWheel(b*a.__scale|0,c*a.__scale|0,d):this.__onMouseWheel(b| +0,c|0,d))},__renderAfterEvent:function(){this.__render(this.window.context)},__render:function(a){a=!1;var b=null!=this.__renderer&&(this.__renderDirty||this.__forceRender);if(this.__invalidated&&b){this.__invalidated=!1;var c=new ca("render");this.__broadcastEvent(c)}this.__update(!1,!0);if(null!=this.__renderer){if(null!=this.context3D){for(c=this.stage3Ds.iterator();c.hasNext();){var d=c.next();this.context3D.__renderStage3D(d)}this.context3D.__present&&(b=!0)}b?(null==this.context3D&&this.__renderer.__clear(), +this.__renderer.__render(this)):null==this.context3D&&(a=!0);null!=this.context3D&&(this.context3D.__present?(this.__renderer.__cleared||this.__renderer.__clear(),this.context3D.__present=!1,this.context3D.__cleared=!1):a=!0);this.__renderer.__cleared=!1}return a},__onLimeRender:function(a){this.__rendering||(this.__rendering=!0,this.__broadcastEvent(new ca("enterFrame")),this.__broadcastEvent(new ca("frameConstructed")),this.__broadcastEvent(new ca("exitFrame")),this.__renderable=!0,this.__enterFrame(this.__deltaTime), +this.__deltaTime=0,this.__render(a)&&this.window.onRender.cancel(),this.__rendering=!1)},__onLimeRenderContextLost:function(){this.context3D=this.__renderer=null;for(var a=this.stage3Ds.iterator();a.hasNext();)a.next().__lostContext()},__onLimeRenderContextRestored:function(a){this.__createRenderer();for(a=this.stage3Ds.iterator();a.hasNext();)a.next().__restoreContext()},__onLimeTextEdit:function(a,b,c,d){},__onLimeTextInput:function(a,b){if(null!=this.window&&this.window==a){var c=[];null==this.__focus? +this.__getInteractive(c):this.__focus.__getInteractive(c);b=new Xd("textInput",!0,!0,b);0a-this.__lastClickTime&&k==this.__lastClickTarget?(q=ob.__create("doubleClick",d,0,this.__mouseX,this.__mouseY,k.__globalToLocal(f,c),k),this.__dispatchStack(q, +b),q.__updateAfterEventFlag&&this.__renderAfterEvent(),this.__lastClickTime=0,this.__lastClickTarget=null):(this.__lastClickTarget=k,this.__lastClickTime=a)):(this.__lastClickTarget=null,this.__lastClickTime=0)));if("auto"==Ji.__cursor&&!Ji.__hidden){q=null;if(null!=this.__mouseDownLeft)q=this.__mouseDownLeft.__getCursor();else for(a=0;a>>16)/255,this.__colorSplit[1]=((a&65280)>>>8)/255,this.__colorSplit[2]=(a&255)/255,this.__colorString="#"+W.hex(a&16777215,6),this.__renderDirty=!0,this.__color=-16777216|a&16777215);return a},get_focus:function(){return this.__focus},set_focus:function(a){if(a!=this.__focus||null==a&&null!=this.__cacheFocus){var b=this.__focus;this.__cacheFocus=this.__focus= +a;if(null!=b){var c=new ef("focusOut",!0,!1,a,!1,0),d=[];b.__getInteractive(d);d.reverse();this.__dispatchStack(c,d)}null!=a&&(c=new ef("focusIn",!0,!1,b,!1,0),d=[],a.__getInteractive(d),d.reverse(),this.__dispatchStack(c,d))}return a},get_frameRate:function(){return null!=this.window?this.window.__backend.getFrameRate():0},get_fullScreenSourceRect:function(){return null==this.__fullScreenSourceRect?null:this.__fullScreenSourceRect.clone()},set_height:function(a){return this.get_height()},get_mouseX:function(){return this.__mouseX}, +get_mouseY:function(){return this.__mouseY},get_quality:function(){return this.__quality},set_rotation:function(a){return 0},get_scaleMode:function(){return this.__scaleMode},set_scaleMode:function(a){a!=this.__scaleMode&&(this.__scaleMode=a,this.__resize());return a},set_scaleX:function(a){return 0},set_scaleY:function(a){return 0},get_tabEnabled:function(){return!1},set_tabEnabled:function(a){throw new bb("Error: The Stage class does not implement this property or method.");},get_tabIndex:function(){return-1}, +set_tabIndex:function(a){throw new bb("Error: The Stage class does not implement this property or method.");},set_transform:function(a){return this.get_transform()},set_width:function(a){return this.get_width()},set_x:function(a){return 0},set_y:function(a){return 0},__class__:Nc,__properties__:t(ya.prototype.__properties__,{set_color:"set_color",set_scaleMode:"set_scaleMode",get_scaleMode:"get_scaleMode",get_quality:"get_quality",get_fullScreenSourceRect:"get_fullScreenSourceRect",get_frameRate:"get_frameRate", +set_focus:"set_focus",get_focus:"get_focus"})});var df=function(a){S.call(this);this.__stage=a;this.__height=0;this.__projectionTransform=new Mh;this.__renderTransform=new Mh;this.__y=this.__x=this.__width=0;this.visible=!0;0a&&(a=1),a>this.__totalFrames&&(a=Math.floor((a-1)%this.__totalFrames)+1),this.__timeElapsed%=this.__frameTime):(a=this.__currentFrame+1,a>this.__totalFrames&&(a=1));return a},__goto:function(a){1>a?a=1:a>this.__totalFrames&&(a=this.__totalFrames);this.__lastFrameScriptEval=-1;this.__currentFrame=a;this.__updateSymbol(this.__currentFrame);this.__evaluateFrameScripts(this.__currentFrame)},__gotoAndStop:function(a,b){this.__stop();this.__goto(this.__resolveFrameReference(a))}, +__stop:function(){this.__isPlaying=!1},__resolveFrameReference:function(a){if("number"==typeof a&&(a|0)===a)return a;if("string"==typeof a){for(var b=0,c=this.__currentLabels;b=I))){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&& +0>>16&255)+","+(c>>>8&255)+","+(c&255)+")";v.fillRect(0,0,a.get_width(),a.get_height());b.__popMaskObject(a)}if(null!=a.__graphics&&a.__renderable&&(I=b.__getAlpha(a.__worldAlpha),!(0>=I))){var d=a.__graphics;if(null!=d){B.render(d,b);var f=d.__width,k=d.__height;c=d.__canvas;if(null!=c&&d.__visible&&1<=f&&1<= +k){var g=d.__worldTransform;v=b.context;G=a.__scrollRect;var q=a.__worldScale9Grid;if(null==G||0=d||(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(c>>>8&255)+","+(c&255)+")",f.fillRect(0,0,a.get_width(),a.get_height()),b.__popMaskObject(a)),null==a.__graphics||!a.__renderable||(d=b.__getAlpha(a.__worldAlpha),0>=d))))){var g=a.__graphics;if(null!=g){B.render(g,b);var q=g.__width,n=g.__height;c=g.__canvas;if(null!=c&&g.__visible&&1<=q&&1<=n){var h=g.__worldTransform;f=b.context;k=a.__scrollRect;var w=a.__worldScale9Grid;if(null==k||0=a.__worldAlpha||null!=a.get_mask()&&(0>=a.get_mask().get_width()||0>=a.get_mask().get_height()))&&($e.renderDrawable(a,b),null==a.__cacheBitmap||a.__isCacheBitmapRender)){b.__pushMaskObject(a);if(null!=b.__stage){c=0;for(d=a.__children;ck&&(k=0);1w;){u=0;for(h=b.length;uk&&(k=0),1k&&(k=0),1w;){u=0;for(h=b.length;uk&&(k=0),1k&&(k=0);1q&&(q=-1),g=B.context.createRadialGradient(819.2*q,0,0,0,0,819.2),B.pendingMatrix=f.clone(),B.inversePendingMatrix=f.clone(),B.inversePendingMatrix.invert(),u=0,h=b.length;uk&&(k=0),1>>16,d=(a&65280)>>>8;a&=255;return"rgba("+(null==c?"null":p.string(tb.toFloat(c)))+", "+(null==d?"null":p.string(tb.toFloat(d)))+", "+(null==a?"null":p.string(tb.toFloat(a)))+", "+b+")"};B.getDimensions=function(a){var b=Math.cos(Math.atan2(a.c,a.a)),c=a.a/b*1638.4;a=a.d/b*1638.4;0==c&&0==a&&(c=a=819.2);return{width:c,height:a}};B.createTempPatternCanvas=function(a,b,c,d){var f=window.document.createElement("canvas"),k=f.getContext("2d");f.width= +c;f.height=d;a=a.image.get_src();k.fillStyle=k.createPattern(a,b?"repeat":"no-repeat");k.beginPath();k.moveTo(0,0);k.lineTo(0,d);k.lineTo(c,d);k.lineTo(c,0);k.lineTo(0,0);k.closePath();B.hitTesting||k.fill(B.windingRule);return f};B.drawRoundRect=function(a,b,c,d,f,k){null==k&&(k=f);f*=.5;k*=.5;f>c/2&&(f=c/2);k>d/2&&(k=d/2);c=a+c;d=b+d;var g=-f+.7071067811865476*f,q=-f+.41421356237309503*f,n=-k+.7071067811865476*k,h=-k+.41421356237309503*k;B.context.moveTo(c,d-k);B.context.quadraticCurveTo(c,d+h, +c+g,d+n);B.context.quadraticCurveTo(c+q,d,c-f,d);B.context.lineTo(a+f,d);B.context.quadraticCurveTo(a-q,d,a-g,d+n);B.context.quadraticCurveTo(a,d+h,a,d-k);B.context.lineTo(a,b+k);B.context.quadraticCurveTo(a,b-h,a-g,b-n);B.context.quadraticCurveTo(a-q,b,a+f,b);B.context.lineTo(c-f,b);B.context.quadraticCurveTo(c+q,b,c+g,b-n);B.context.quadraticCurveTo(c,b-h,c,b+k);B.context.lineTo(c,d-k)};B.endFill=function(){B.context.beginPath();B.playCommands(B.fillCommands,!1);B.fillCommands.clear()};B.endStroke= +function(){B.context.beginPath();B.playCommands(B.strokeCommands,!0);B.context.closePath();B.strokeCommands.clear()};B.hitTest=function(a,b,c){B.bounds=a.__bounds;B.graphics=a;if(0==a.__commands.get_length()||null==B.bounds||0>=B.bounds.width||0>=B.bounds.height)return B.graphics=null,!1;B.hitTesting=!0;var d=a.__renderTransform,f=b*d.b+c*d.d+d.ty;b=b*d.a+c*d.c+d.tx-(B.bounds.x*d.a+B.bounds.y*d.c+d.tx);c=f-(B.bounds.x*d.b+B.bounds.y*d.d+d.ty);f=a.__canvas;var k=a.__context;a.__canvas=B.hitTestCanvas; +a.__context=B.hitTestContext;B.context=a.__context;B.context.setTransform(d.a,d.b,d.c,d.d,d.tx,d.ty);B.fillCommands.clear();B.strokeCommands.clear();B.hasFill=!1;B.hasStroke=!1;B.bitmapFill=null;B.bitmapRepeat=!1;B.windingRule="evenodd";d=new Yd(a.__commands);for(var g=0,q=a.__commands.types;gx.buffer.f[x.fPos])B.hasFill=!1;else{if(1==x.buffer.f[x.fPos]){var t=W.hex(x.buffer.i[x.iPos]&16777215,6);B.context.fillStyle="#"+t}else{var A=(x.buffer.i[x.iPos]&16711680)>>>16;var E=(x.buffer.i[x.iPos]&65280)>>>8;var ra=x.buffer.i[x.iPos]&255;B.context.fillStyle="rgba("+A+", "+E+", "+ra+", "+x.buffer.f[x.fPos]+")"}B.bitmapFill=null;B.setSmoothing(!0);B.hasFill=!0}break; +case 2:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+= +1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=ba.BEGIN_GRADIENT_FILL;var ja=m;B.context.fillStyle=B.createGradientPattern(ja.buffer.o[ja.oPos],ja.buffer.ii[ja.iiPos],ja.buffer.ff[ja.ffPos],ja.buffer.ii[ja.iiPos+1],ja.buffer.o[ja.oPos+1],ja.buffer.o[ja.oPos+2],ja.buffer.o[ja.oPos+3],ja.buffer.f[ja.fPos]);B.bitmapFill=null;B.setSmoothing(!0);B.hasFill=!0;break;case 3:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1; +m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break; +case 20:m.oPos+=1}m.prev=ba.BEGIN_SHADER_FILL;var Oa=m,sa=Oa.buffer.o[Oa.oPos];0=6*Qd?Q=U=!0: +ha.get_length()>=4*Qd?U=!0:ha.get_length()>=2*Qd&&(Q=!0));var gb=da.__pool.get(),Rb=pa.__pool.get(),Z=B.graphics.__renderTransform;B.context.save();for(var ua=0,ea=Qd;uanb||(gb.setTo(sb.get(nb),sb.get(nb+1),sb.get(nb+2),sb.get(nb+3)),0>=gb.width||0>=gb.height))){if(U&&Q){var X=6*Y;Rb.setTo(ha.get(X),ha.get(X+1),ha.get(X+2),ha.get(X+3),ha.get(X+4),ha.get(X+5))}else U?(X=4*Y,Rb.setTo(ha.get(X),ha.get(X+1),ha.get(X+2),ha.get(X+3),gb.x,gb.y)):Q?(X=2*Y, +Rb.tx=ha.get(X),Rb.ty=ha.get(X+1)):(Rb.tx=gb.x,Rb.ty=gb.y);Rb.tx+=f-c;Rb.ty+=k-d;Rb.concat(Z);B.context.setTransform(Rb.a,Rb.b,Rb.c,Rb.d,Rb.tx,Rb.ty);null!=B.bitmapFill?B.context.drawImage(B.bitmapFill.image.get_src(),gb.x,gb.y,gb.width,gb.height,0,0,gb.width,gb.height):B.context.fillRect(0,0,gb.width,gb.height)}}da.__pool.release(gb);pa.__pool.release(Rb);B.context.restore();break;case 9:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+= +2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=ba.DRAW_RECT; +var T=m;var Ea=!1;if(null!=B.bitmapFill&&!B.hitTesting){var aa=C=r=p=0;var fa=!0;if(null!=B.pendingMatrix)if(0!=B.pendingMatrix.b||0!=B.pendingMatrix.c)fa=!1;else{null==l&&(l=Ba.__pool.get());null==v&&(v=Ba.__pool.get());l.setTo(T.buffer.f[T.fPos],T.buffer.f[T.fPos+1]);var ca=B.inversePendingMatrix,vc=l.x,ka=l.y;l.x=vc*ca.a+ka*ca.c+ca.tx;l.y=vc*ca.b+ka*ca.d+ca.ty;v.setTo(T.buffer.f[T.fPos]+T.buffer.f[T.fPos+2],T.buffer.f[T.fPos+1]+T.buffer.f[T.fPos+3]);var ia=B.inversePendingMatrix,tb=v.x,ya=v.y; +v.x=tb*ia.a+ya*ia.c+ia.tx;v.y=tb*ia.b+ya*ia.d+ia.ty;p=l.y;aa=l.x;C=v.y;r=v.x}else p=T.buffer.f[T.fPos+1],aa=T.buffer.f[T.fPos],C=T.buffer.f[T.fPos+1]+T.buffer.f[T.fPos+3],r=T.buffer.f[T.fPos]+T.buffer.f[T.fPos+2];fa&&0<=p&&0<=aa&&r<=B.bitmapFill.width&&C<=B.bitmapFill.height&&(Ea=!0,B.hitTesting||B.context.drawImage(B.bitmapFill.image.get_src(),aa,p,r-aa,C-p,T.buffer.f[T.fPos]-c,T.buffer.f[T.fPos+1]-d,T.buffer.f[T.fPos+2],T.buffer.f[T.fPos+3]))}Ea||(w=!0,B.context.rect(T.buffer.f[T.fPos]-c,T.buffer.f[T.fPos+ +1]-d,T.buffer.f[T.fPos+2],T.buffer.f[T.fPos+3]));break;case 10:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1; +m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=ba.DRAW_ROUND_RECT;var Gc=m;w=!0;B.drawRoundRect(Gc.buffer.f[Gc.fPos]-c,Gc.buffer.f[Gc.fPos+1]-d,Gc.buffer.f[Gc.fPos+2],Gc.buffer.f[Gc.fPos+3],Gc.buffer.f[Gc.fPos+4],Gc.buffer.o[Gc.oPos]);break;case 12:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+= +1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=ba.DRAW_TRIANGLES;var cd=m,la=cd.buffer.o[cd.oPos], +qa=cd.buffer.o[cd.oPos+1],na=cd.buffer.o[cd.oPos+2],Ua=null,Ya=null==B.bitmapFill;if(Ya&&null!=na)break a;if(!Ya){if(null==na){na=oa.toFloatVector(null);for(var va=0,ta=la.get_length()/2|0;va(Ja-Na)*(jb-Ga)-(La-Ga)*(Qb-Na)){wa+=3;continue}break;case 2:if(!(0> +(Ja-Na)*(jb-Ga)-(La-Ga)*(Qb-Na))){wa+=3;continue}}Ya?(B.context.beginPath(),B.context.moveTo(Na,Ga),B.context.lineTo(Ja,La),B.context.lineTo(Qb,jb),B.context.closePath(),B.hitTesting||B.context.fill(B.windingRule),wa+=3):(nd=na.get(Ha)*Ua.width,Pa=na.get(kb)*Ua.width,Ra=na.get(Bb)*Ua.width,qc=na.get(Ia)*Ua.height,Qa=na.get(Ka)*Ua.height,Sa=na.get(Rd)*Ua.height,Va=nd*(Sa-Qa)-Pa*Sa+Ra*Qa+(Pa-Ra)*qc,0==Va?(wa+=3,B.context.restore()):(B.context.save(),B.context.beginPath(),B.context.moveTo(Na,Ga),B.context.lineTo(Ja, +La),B.context.lineTo(Qb,jb),B.context.closePath(),B.context.clip(),Pb=-(qc*(Qb-Ja)-Qa*Qb+Sa*Ja+(Qa-Sa)*Na)/Va,$a=(Qa*jb+qc*(La-jb)-Sa*La+(Sa-Qa)*Ga)/Va,ab=(nd*(Qb-Ja)-Pa*Qb+Ra*Ja+(Pa-Ra)*Na)/Va,bb=-(Pa*jb+nd*(La-jb)-Ra*La+(Ra-Pa)*Ga)/Va,cb=(nd*(Sa*Ja-Qa*Qb)+qc*(Pa*Qb-Ra*Ja)+(Ra*Qa-Pa*Sa)*Na)/Va,db=(nd*(Sa*La-Qa*jb)+qc*(Pa*jb-Ra*La)+(Ra*Qa-Pa*Sa)*Ga)/Va,B.context.transform(Pb,$a,ab,bb,cb,db),B.context.drawImage(Ua,0,0,Ua.width,Ua.height),B.context.restore(),wa+=3))}break;case 14:switch(m.prev._hx_index){case 0:m.oPos+= +2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+= +2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=ba.LINE_BITMAP_STYLE;var Za=m;b&&B.hasStroke&&B.closePath(!0);B.context.moveTo(f-c,k-d);B.context.strokeStyle=B.createBitmapFill(Za.buffer.o[Za.oPos],Za.buffer.b[Za.bPos],Za.buffer.b[Za.bPos+1]);B.hasStroke=!0;break;case 15:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+= +3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=ba.LINE_GRADIENT_STYLE;var Ma=m;b&&B.hasStroke&&B.closePath(!0);B.context.moveTo(f-c,k-d);B.context.strokeStyle=B.createGradientPattern(Ma.buffer.o[Ma.oPos], +Ma.buffer.ii[Ma.iiPos],Ma.buffer.ff[Ma.ffPos],Ma.buffer.ii[Ma.iiPos+1],Ma.buffer.o[Ma.oPos+1],Ma.buffer.o[Ma.oPos+2],Ma.buffer.o[Ma.oPos+3],Ma.buffer.f[Ma.fPos]);B.setSmoothing(!0);B.hasStroke=!0;break;case 16:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+= +4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=ba.LINE_STYLE;var za=m;b&&B.hasStroke&&B.closePath(!0);B.context.moveTo(f-c,k-d);if(null==za.buffer.o[za.oPos])B.hasStroke=!1;else{B.context.lineWidth=0>>16,E=(za.buffer.i[za.iPos]&65280)>>>8,ra=za.buffer.i[za.iPos]&255,B.context.strokeStyle="rgba("+A+", "+E+", "+ra+", "+za.buffer.f[za.fPos]+")";B.setSmoothing(!0);B.hasStroke=!0}break;case 17:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+= +4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=ba.LINE_TO;var bc=m;w=!0;B.context.lineTo(bc.buffer.f[bc.fPos]-c,bc.buffer.f[bc.fPos+1]-d);f=bc.buffer.f[bc.fPos];k=bc.buffer.f[bc.fPos+1];f==q&&k==n&&(g=!0);break;case 18:switch(m.prev._hx_index){case 0:m.oPos+= +2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+= +2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=ba.MOVE_TO;var Ta=m;B.context.moveTo(Ta.buffer.f[Ta.fPos]-c,Ta.buffer.f[Ta.fPos+1]-d);f=Ta.buffer.f[Ta.fPos];k=Ta.buffer.f[Ta.fPos+1];h&&Ta.buffer.f[Ta.fPos]!=q&&Ta.buffer.f[Ta.fPos+1]!=n&&(g=!0);q=Ta.buffer.f[Ta.fPos];n=Ta.buffer.f[Ta.fPos+1];h=!0;break;case 21:B.windingRule="evenodd";break;case 22:B.windingRule="nonzero";break;default:switch(m.prev._hx_index){case 0:m.oPos+=2;m.bPos+=2;break;case 1:m.iPos+=1;m.fPos+=1;break;case 2:m.oPos+= +4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 3:m.oPos+=1;break;case 4:m.fPos+=6;break;case 5:m.fPos+=4;break;case 6:m.fPos+=3;break;case 7:m.fPos+=4;break;case 8:m.oPos+=3;break;case 9:m.fPos+=4;break;case 10:m.fPos+=5;m.oPos+=1;break;case 12:m.oPos+=4;break;case 14:m.oPos+=2;m.bPos+=2;break;case 15:m.oPos+=4;m.iiPos+=2;m.ffPos+=1;m.fPos+=1;break;case 16:m.oPos+=4;m.iPos+=1;m.fPos+=2;m.bPos+=1;break;case 17:m.fPos+=2;break;case 18:m.fPos+=2;break;case 19:m.oPos+=1;break;case 20:m.oPos+=1}m.prev=D}}null!= +l&&Ba.__pool.release(l);null!=v&&Ba.__pool.release(v);m.destroy();if(w){if(b&&B.hasStroke){if(B.hasFill){if(f!=q||k!=n)B.context.lineTo(q-c,n-d),g=!0;g&&B.closePath(!0)}else g&&f==q&&k==n&&B.closePath(!0);B.hitTesting||B.context.stroke()}b||!B.hasFill&&null==B.bitmapFill||(B.context.translate(-B.bounds.x,-B.bounds.y),null!=B.pendingMatrix?(B.context.transform(B.pendingMatrix.a,B.pendingMatrix.b,B.pendingMatrix.c,B.pendingMatrix.d,B.pendingMatrix.tx,B.pendingMatrix.ty),B.hitTesting||B.context.fill(B.windingRule), +B.context.transform(B.inversePendingMatrix.a,B.inversePendingMatrix.b,B.inversePendingMatrix.c,B.inversePendingMatrix.d,B.inversePendingMatrix.tx,B.inversePendingMatrix.ty)):B.hitTesting||B.context.fill(B.windingRule),B.context.translate(B.bounds.x,B.bounds.y),B.context.closePath())}};B.render=function(a,b){a.__update(b.__worldTransform,b.__pixelRatio);if(a.__softwareDirty){B.hitTesting=!1;B.graphics=a;B.allowSmoothing=b.__allowSmoothing;B.worldAlpha=b.__getAlpha(a.__owner.__worldAlpha);B.bounds= +a.__bounds;var c=a.__width,d=a.__height;if(!a.__visible||0==a.__commands.get_length()||null==B.bounds||1>c||1>d)a.__canvas=null,a.__context=null,a.__bitmap=null;else{null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"));B.context=a.__context;var f=a.__renderTransform,k=a.__canvas,g=b.__pixelRatio,q=c*g|0,n=d*g|0;b.__setBlendModeContext(B.context,10);b.__isDOM?(k.width==q&&k.height==n?B.context.clearRect(0,0,q,n):(k.width=q,k.height=n,k.style.width= +c+"px",k.style.height=d+"px"),c=a.__renderTransform,B.context.setTransform(c.a*g,c.b*g,c.c*g,c.d*g,c.tx*g,c.ty*g)):(k.width==q&&k.height==n?(B.context.closePath(),B.context.setTransform(1,0,0,1,0,0),B.context.clearRect(0,0,q,n)):(k.width=c,k.height=d),B.context.setTransform(f.a,f.b,f.c,f.d,f.tx,f.ty));B.fillCommands.clear();B.strokeCommands.clear();B.hasFill=!1;B.hasStroke=!1;B.bitmapFill=null;g=B.bitmapRepeat=!1;d=c=0;B.windingRule="evenodd";f=new Yd(a.__commands);k=0;for(q=a.__commands.types;k< +q.length;)switch(n=q[k],++k,n._hx_index){case 0:case 1:case 2:case 3:B.endFill();B.endStroke();if(n==ba.BEGIN_BITMAP_FILL){switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+= +2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.BEGIN_BITMAP_FILL;n=f;B.fillCommands.beginBitmapFill(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.b[n.bPos],n.buffer.b[n.bPos+1]);B.strokeCommands.beginBitmapFill(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.b[n.bPos],n.buffer.b[n.bPos+1])}else if(n==ba.BEGIN_GRADIENT_FILL){switch(f.prev._hx_index){case 0:f.oPos+= +2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+= +2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.BEGIN_GRADIENT_FILL;n=f;B.fillCommands.beginGradientFill(n.buffer.o[n.oPos],n.buffer.ii[n.iiPos],n.buffer.ff[n.ffPos],n.buffer.ii[n.iiPos+1],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos]);B.strokeCommands.beginGradientFill(n.buffer.o[n.oPos],n.buffer.ii[n.iiPos],n.buffer.ff[n.ffPos],n.buffer.ii[n.iiPos+1],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos])}else if(n==ba.BEGIN_SHADER_FILL){switch(f.prev._hx_index){case 0:f.oPos+= +2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+= +2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.BEGIN_SHADER_FILL;n=f;B.fillCommands.beginShaderFill(n.buffer.o[n.oPos]);B.strokeCommands.beginShaderFill(n.buffer.o[n.oPos])}else{switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+= +5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.BEGIN_FILL;n=f;B.fillCommands.beginFill(n.buffer.i[n.iPos],n.buffer.f[n.fPos]);B.strokeCommands.beginFill(n.buffer.i[n.iPos],n.buffer.f[n.fPos])}break;case 4:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break; +case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+= +1;break;case 20:f.oPos+=1}f.prev=ba.CUBIC_CURVE_TO;n=f;B.fillCommands.cubicCurveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+4],n.buffer.f[n.fPos+5]);g?B.strokeCommands.cubicCurveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+4],n.buffer.f[n.fPos+5]):(c=n.buffer.f[n.fPos+4],d=n.buffer.f[n.fPos+5]);break;case 5:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1; +f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break; +case 20:f.oPos+=1}f.prev=ba.CURVE_TO;n=f;B.fillCommands.curveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);g?B.strokeCommands.curveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]):(c=n.buffer.f[n.fPos+2],d=n.buffer.f[n.fPos+3]);break;case 6:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+= +6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.DRAW_CIRCLE;n=f;B.fillCommands.drawCircle(n.buffer.f[n.fPos],n.buffer.f[n.fPos+ +1],n.buffer.f[n.fPos+2]);g&&B.strokeCommands.drawCircle(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2]);break;case 7:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+= +2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.DRAW_ELLIPSE;n=f;B.fillCommands.drawEllipse(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);g&&B.strokeCommands.drawEllipse(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);break;case 8:switch(f.prev._hx_index){case 0:f.oPos+= +2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+= +2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.DRAW_QUADS;n=f;B.fillCommands.drawQuads(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2]);break;case 9:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+= +1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.DRAW_RECT;n=f;B.fillCommands.drawRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);g&&B.strokeCommands.drawRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+ +3]);break;case 10:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1; +f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.DRAW_ROUND_RECT;n=f;B.fillCommands.drawRoundRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+4],n.buffer.o[n.oPos]);g&&B.strokeCommands.drawRoundRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+4],n.buffer.o[n.oPos]);break;case 12:switch(f.prev._hx_index){case 0:f.oPos+= +2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+= +2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.DRAW_TRIANGLES;n=f;B.fillCommands.drawTriangles(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3]);break;case 13:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+= +4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.END_FILL;B.endFill();B.endStroke();g=B.hasFill=!1;B.bitmapFill=null;d=c=0;break;case 14:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+= +4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.LINE_BITMAP_STYLE; +n=f;g||0==c&&0==d||(B.strokeCommands.moveTo(c,d),d=c=0);g=!0;B.strokeCommands.lineBitmapStyle(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.b[n.bPos],n.buffer.b[n.bPos+1]);break;case 15:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+= +5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.LINE_GRADIENT_STYLE;n=f;g||0==c&&0==d||(B.strokeCommands.moveTo(c,d),d=c=0);g=!0;B.strokeCommands.lineGradientStyle(n.buffer.o[n.oPos],n.buffer.ii[n.iiPos],n.buffer.ff[n.ffPos],n.buffer.ii[n.iiPos+1],n.buffer.o[n.oPos+ +1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos]);break;case 16:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+= +2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.LINE_STYLE;n=f;g||null==n.buffer.o[n.oPos]||0==c&&0==d||(B.strokeCommands.moveTo(c,d),d=c=0);g=null!=n.buffer.o[n.oPos];B.strokeCommands.lineStyle(n.buffer.o[n.oPos],n.buffer.i[n.iPos],n.buffer.f[n.fPos],n.buffer.b[n.bPos],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos+1]);break;case 17:switch(f.prev._hx_index){case 0:f.oPos+= +2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+= +2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.LINE_TO;n=f;B.fillCommands.lineTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1]);g?B.strokeCommands.lineTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1]):(c=n.buffer.f[n.fPos],d=n.buffer.f[n.fPos+1]);break;case 18:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+= +4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.MOVE_TO;n=f;B.fillCommands.moveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1]);g?B.strokeCommands.moveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1]):(c= +n.buffer.f[n.fPos],d=n.buffer.f[n.fPos+1]);break;case 19:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+= +1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.OVERRIDE_BLEND_MODE;n=f;b.__setBlendModeContext(B.context,n.buffer.o[n.oPos]);break;case 21:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+= +4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.WINDING_EVEN_ODD;B.fillCommands.windingEvenOdd();B.windingRule="evenodd";break;case 22:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break; +case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+= +1;break;case 20:f.oPos+=1}f.prev=ba.WINDING_NON_ZERO;B.fillCommands.windingNonZero();B.windingRule="nonzero";break;default:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+= +2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=n}0=a.__worldAlpha||null==a.__currentState||(b.__pushMaskObject(a),b.__renderDrawable(a.__currentState),b.__popMaskObject(a),b.__renderEvent(a))};yh.renderDrawableMask=function(a,b){b.__renderDrawableMask(a.__currentState)};var P=function(){};g["openfl.display._internal.CanvasTextField"]=P;P.__name__="openfl.display._internal.CanvasTextField"; +P.renderDrawable=function(a,b){b.__isDOM&&!a.__renderedOnCanvasWhileOnDOM&&(a.__renderedOnCanvasWhileOnDOM=!0,1==a.get_type()&&a.replaceText(0,a.__text.length,a.__text),a.__isHTML&&a.__updateText(wa.parse(a.__text,a.get_multiline(),a.__styleSheet,a.__textFormat,a.__textEngine.textFormatRanges)),a.__dirty=!0,a.__layoutDirty=!0,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));if(null==a.get_mask()||0=c.width||0>=c.height)&&2!=c.autoSize)a.__graphics.__canvas=null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));P.context=k.__context;k.__canvas.width=q;k.__canvas.height=h; +b.__isDOM&&(k.__canvas.style.width=Math.round(q/n)+"px",k.__canvas.style.height=Math.round(h/n)+"px");var w=pa.__pool.get();w.scale(n,n);w.concat(k.__renderTransform);P.context.setTransform(w.a,w.b,w.c,w.d,w.tx,w.ty);pa.__pool.release(w);null==P.clearRect&&(P.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);P.clearRect&&P.context.clearRect(0,0,k.__canvas.width,k.__canvas.height);if(null!=c.text&&""!=c.text||c.__hasFocus){q=c.text;k.__context.imageSmoothingEnabled= +!b.__allowSmoothing||0==c.antiAliasType&&400==c.sharpness?!1:!0;if(c.border||c.background){P.context.rect(.5,.5,f.width-1,f.height-1);if(c.background){var m=W.hex(c.backgroundColor&16777215,6);P.context.fillStyle="#"+m;P.context.fill()}c.border&&(P.context.lineWidth=1,m=W.hex(c.borderColor&16777215,6),P.context.strokeStyle="#"+m,P.context.stroke())}P.context.textBaseline="alphabetic";P.context.textAlign="start";h=-a.get_scrollH();var p=d=0;for(m=a.get_scrollV()-1;pc.get_bottomScrollV()-1)break;w="#"+W.hex(l.format.color&16777215,6);P.context.font=vb.getFont(l.format);P.context.fillStyle=w;P.context.fillText(q.substring(l.startIndex,l.endIndex),l.offsetX+h-f.x,l.offsetY+l.ascent+d-f.y);if(-1=a.__caretIndex){p=C=0;for(m= +a.__caretIndex-l.startIndex;p=a.__caretIndex||l.startIndex<=a.__selectionIndex&&l.endIndex>=a.__selectionIndex||l.startIndex>a.__caretIndex&&l.endIndexa.__selectionIndex&&l.endIndexC&&(C=l.startIndex),l.endIndex=l.endIndex?(m=a.getCharBoundaries(l.endIndex-1),null!=m&&(m.x+=m.width+2)):m=a.getCharBoundaries(p), +null!=r&&null!=m&&(P.context.fillStyle="#000000",P.context.fillRect(r.x+h-f.x,r.y+d,m.x-r.x,l.height),P.context.fillStyle="#FFFFFF",P.context.fillText(q.substring(C,p),h+r.x-f.x,l.offsetY+l.ascent+d));l.format.underline&&(P.context.beginPath(),P.context.strokeStyle=w,P.context.lineWidth=1,w=l.offsetX+h-f.x,C=Math.ceil(l.offsetY+d+l.ascent-f.y)+Math.floor(.185*l.ascent)+.5,P.context.moveTo(w,C),P.context.lineTo(w+l.width,C),P.context.stroke(),P.context.closePath())}}}else{if(c.border||c.background)c.border? +P.context.rect(.5,.5,f.width-1,f.height-1):P.context.rect(0,0,f.width,f.height),c.background&&(m=W.hex(c.backgroundColor&16777215,6),P.context.fillStyle="#"+m,P.context.fill()),c.border&&(P.context.lineWidth=1,P.context.lineCap="square",m=W.hex(c.borderColor&16777215,6),P.context.strokeStyle="#"+m,P.context.stroke());if(-1=f)&&(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(w>>>8&255)+","+(w&255)+")",c.fillRect(0,0,a.get_width(),a.get_height()),b.__popMaskObject(a)),null!=a.__graphics&&a.__renderable&&(f=b.__getAlpha(a.__worldAlpha),!(0>= +f)&&(k=a.__graphics,null!=k&&(B.render(k,b),q=k.__width,h=k.__height,g=k.__canvas,null!=g&&k.__visible&&1<=q&&1<=h&&(l=k.__worldTransform,c=b.context,n=a.__scrollRect,v=a.__worldScale9Grid,null==n||0=K))if(k||(K=1),q&&(v=null!=G.__blendMode?G.__blendMode:n),0=G.width||0>=G.height)continue}else{G=D.__data[l]; +if(null==G)continue;m.setTo(G.x,G.y,G.width,G.height);G=m}D=D.__bitmapData;null!=D&&null!=D.image&&(D!=h&&(null==D.image.buffer.__srcImage&&Ka.convertToCanvas(D.image),w=D.image.get_src(),h=D),u.globalAlpha=K,q&&b.__setBlendMode(v),b.setTransform(r,u),u.drawImage(w,G.x,G.y,G.width,G.height,0,0,G.width,G.height))}}pa.__pool.release(r)};pe.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable|| +(v=b.__getAlpha(a.__worldAlpha),0>=v))){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(c>>>8&255)+","+(c&255)+")";I.fillRect(0,0,a.get_width(),a.get_height());b.__popMaskObject(a)}if(null!=a.__graphics&&a.__renderable&&(v=b.__getAlpha(a.__worldAlpha),!(0>=v))){var d=a.__graphics;if(null!= +d){B.render(d,b);var f=d.__width,k=d.__height;c=d.__canvas;if(null!=c&&d.__visible&&1<=f&&1<=k){var g=d.__worldTransform;I=b.context;G=a.__scrollRect;var q=a.__worldScale9Grid;if(null==G||0=v||(I=b.context,b.__setBlendMode(a.__worldBlendMode),b.__pushMaskObject(a),c=da.__pool.get(),c.setTo(0,0,a.__width,a.__height),b.__pushMaskRect(c,a.__renderTransform),b.__allowSmoothing&&a.smoothing||(I.imageSmoothingEnabled=!1),pe.renderTileContainer(a.__group,b,a.__renderTransform,a.__tileset,b.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,v,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,c),b.__allowSmoothing&&a.smoothing||(I.imageSmoothingEnabled=!0), +b.__popMaskRect(),b.__popMaskObject(a),da.__pool.release(c)))}else if(c=a.__cacheBitmap,c.__renderable){var v=b.__getAlpha(c.__worldAlpha);if(0=c)){var d=b.context;if(null!=a.__stream.__video){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);d.globalAlpha=c;c=a.__scrollRect;var f=a.smoothing;b.setTransform(a.__worldTransform,d);f||(d.imageSmoothingEnabled=!1);null==c?d.drawImage(a.__stream.__video,0,0,a.get_width(),a.get_height()):d.drawImage(a.__stream.__video,c.x,c.y,c.width,c.height,c.x,c.y,c.width,c.height);f||(d.imageSmoothingEnabled=!0);b.__popMaskObject(a)}}}};af.renderDrawable=function(a,b){af.render(a,b);b.__renderEvent(a)}; +af.renderDrawableMask=function(a,b){};var sd=function(){};g["openfl.display._internal.Context3DBitmap"]=sd;sd.__name__="openfl.display._internal.Context3DBitmap";sd.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&&null!=a.__bitmapData&&a.__bitmapData.__isValid){var c=b.__context3D;b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var d=b.__initDisplayShader(a.__worldShader);b.setShader(d);b.applyBitmapData(a.__bitmapData,b.__allowSmoothing&&(a.smoothing||b.__upscaled));b.applyMatrix(b.__getMatrix(a.__renderTransform, +a.pixelSnapping));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();var f=a.__bitmapData.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,f,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,f,3,2);d=a.__bitmapData.getIndexBuffer(c);c.drawTriangles(d);b.__clearShader();b.__popMaskObject(a)}};sd.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);null!=a.__bitmapData&&null!=a.__bitmapData.image&&(a.__imageVersion= +a.__bitmapData.image.version);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255, +(f&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);da.__pool.release(d)}null!=a.__graphics&&Zd.render(a,b)}sd.render(a,b)}else sd.render(a.__cacheBitmap,b);b.__renderEvent(a)};sd.renderDrawableMask=function(a,b){sd.renderMask(a,b)};sd.renderMask=function(a,b){if(null!=a.__bitmapData&&a.__bitmapData.__isValid){var c=b.__context3D,d=b.__maskShader;b.setShader(d);b.applyBitmapData(bf.opaqueBitmapData,!0);b.applyMatrix(b.__getMatrix(a.__renderTransform,a.pixelSnapping));b.updateShader();var f= +a.__bitmapData.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,f,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,f,3,2);a=a.__bitmapData.getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()}};var Ih=function(){};g["openfl.display._internal.Context3DBitmapData"]=Ih;Ih.__name__="openfl.display._internal.Context3DBitmapData";Ih.renderDrawable=function(a,b){var c=b.__context3D;b.__setBlendMode(10);var d=b.__defaultDisplayShader;b.setShader(d);b.applyBitmapData(a, +b.__upscaled);b.applyMatrix(b.__getMatrix(a.__worldTransform,1));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();var f=a.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,f,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,f,3,2);a=a.getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()};Ih.renderDrawableMask=function(a,b){var c=b.__context3D,d=b.__maskShader;b.setShader(d);b.applyBitmapData(a,b.__upscaled); +b.applyMatrix(b.__getMatrix(a.__worldTransform,1));b.updateShader();var f=a.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,f,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,f,3,2);a=a.getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()};var Bg=function(a,b,c,d){this.context3D=a;this.elementType=b;this.dataPerVertex=d;this.vertexCount=this.indexCount=0;this.resize(c)};g["openfl.display._internal.Context3DBuffer"]=Bg;Bg.__name__="openfl.display._internal.Context3DBuffer"; +Bg.prototype={flushVertexBufferData:function(){this.vertexBufferData.length>this.vertexCount&&(this.vertexCount=this.vertexBufferData.length,this.vertexBuffer=this.context3D.createVertexBuffer(this.vertexCount,this.dataPerVertex,0));this.vertexBuffer.uploadFromTypedArray(sg.toArrayBufferView(this.vertexBufferData))},resize:function(a,b){null==b&&(b=-1);this.elementCount=a;-1==b&&(b=this.dataPerVertex);b!=this.dataPerVertex&&(this.vertexBuffer=null,this.vertexCount=0,this.dataPerVertex=b);var c=0; +switch(this.elementType._hx_index){case 0:c=4*a;break;case 1:c=3*a;break;case 2:c=3*a}b*=c;if(null==this.vertexBufferData){var d=c=null,f=null,k=null,g=null;this.vertexBufferData=b=null!=b?new Float32Array(b):null!=c?new Float32Array(c):null!=d?new Float32Array(d.__array):null!=f?new Float32Array(f):null!=k?null==g?new Float32Array(k,0):new Float32Array(k,0,g):null}else b>this.vertexBufferData.length&&(a=this.vertexBufferData,g=k=f=d=c=null,this.vertexBufferData=b=null!=b?new Float32Array(b):null!= +c?new Float32Array(c):null!=d?new Float32Array(d.__array):null!=f?new Float32Array(f):null!=k?null==g?new Float32Array(k,0):new Float32Array(k,0,g):null,this.vertexBufferData.set(a))},__class__:Bg};var Oh=D["openfl.display._internal.Context3DElementType"]={__ename__:!0,__constructs__:null,QUADS:{_hx_name:"QUADS",_hx_index:0,__enum__:"openfl.display._internal.Context3DElementType",toString:r},TRIANGLES:{_hx_name:"TRIANGLES",_hx_index:1,__enum__:"openfl.display._internal.Context3DElementType",toString:r}, +TRIANGLE_INDICES:{_hx_name:"TRIANGLE_INDICES",_hx_index:2,__enum__:"openfl.display._internal.Context3DElementType",toString:r}};Oh.__constructs__=[Oh.QUADS,Oh.TRIANGLES,Oh.TRIANGLE_INDICES];var cf=function(){};g["openfl.display._internal.Context3DDisplayObject"]=cf;cf.__name__="openfl.display._internal.Context3DDisplayObject";cf.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null!=a.__cacheBitmap&&!a.__isCacheBitmapRender)sd.render(a.__cacheBitmap,b);else if(!(null==a.opaqueBackground&& +null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255,(f&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);da.__pool.release(d)}null!=a.__graphics&&Zd.render(a, +b)}b.__renderEvent(a)};cf.renderDrawableMask=function(a,b){null!=a.__graphics&&Zd.renderMask(a,b)};var Jh=function(){};g["openfl.display._internal.Context3DDisplayObjectContainer"]=Jh;Jh.__name__="openfl.display._internal.Context3DDisplayObjectContainer";Jh.renderDrawable=function(a,b){for(var c=a.__removedChildren.iterator();c.hasNext();){var d=c.next();null==d.stage&&d.__cleanup()}a.__removedChildren.set_length(0);if(a.__renderable&&!(0>=a.__worldAlpha)&&(cf.renderDrawable(a,b),null==a.__cacheBitmap|| +a.__isCacheBitmapRender)){if(0=6*I?v=l=!0:r.get_length()>=4*I?l=!0:r.get_length()>=2*I&&(v=!0));null==a.__quadBuffer?a.__quadBuffer=new Bg(b,Oh.QUADS,I,4):a.__quadBuffer.resize(c+I,4);for(var G,D,B,z,x,t,A,E,ra,ja,O,Oa,sa,ma,y=a.__quadBuffer.vertexBufferData,W=n.width,F=n.height,L=0,H=I;LD||(g.setTo(m.get(D),m.get(D+1),m.get(D+2),m.get(D+3)),D=g.width,B=g.height,0>=D||0>=B||(l&&v?(z*=6,q.setTo(r.get(z),r.get(z+1),r.get(z+2),r.get(z+3),r.get(z+4), +r.get(z+5))):l?(z*=4,q.setTo(r.get(z),r.get(z+1),r.get(z+2),r.get(z+3),g.x,g.y)):v?(z*=2,q.tx=r.get(z),q.ty=r.get(z+1)):(q.tx=g.x,q.ty=g.y),z=g.x/W,x=g.y/F,t=g.get_right()/W,A=g.get_bottom()/F,E=0*q.a+0*q.c+q.tx,ra=0*q.b+0*q.d+q.ty,ja=D*q.a+0*q.c+q.tx,O=D*q.b+0*q.d+q.ty,Oa=0*q.a+B*q.c+q.tx,sa=0*q.b+B*q.d+q.ty,ma=D*q.a+B*q.c+q.tx,D=D*q.b+B*q.d+q.ty,y[G]=E,y[G+1]=ra,y[G+2]=z,y[G+3]=x,y[G+4]=ja,y[G+4+1]=O,y[G+4+2]=t,y[G+4+3]=x,y[G+8]=Oa,y[G+8+1]=sa,y[G+8+2]=z,y[G+8+3]=A,y[G+12]=ma,y[G+12+1]=D,y[G+12+ +2]=t,y[G+12+3]=A));c+=I}break;case 12:switch(k.prev._hx_index){case 0:k.oPos+=2;k.bPos+=2;break;case 1:k.iPos+=1;k.fPos+=1;break;case 2:k.oPos+=4;k.iiPos+=2;k.ffPos+=1;k.fPos+=1;break;case 3:k.oPos+=1;break;case 4:k.fPos+=6;break;case 5:k.fPos+=4;break;case 6:k.fPos+=3;break;case 7:k.fPos+=4;break;case 8:k.oPos+=3;break;case 9:k.fPos+=4;break;case 10:k.fPos+=5;k.oPos+=1;break;case 12:k.oPos+=4;break;case 14:k.oPos+=2;k.bPos+=2;break;case 15:k.oPos+=4;k.iiPos+=2;k.ffPos+=1;k.fPos+=1;break;case 16:k.oPos+= +4;k.iPos+=1;k.fPos+=2;k.bPos+=1;break;case 17:k.fPos+=2;break;case 18:k.fPos+=2;break;case 19:k.oPos+=1;break;case 20:k.oPos+=1}k.prev=ba.DRAW_TRIANGLES;r=k;m=r.buffer.o[r.oPos];p=r.buffer.o[r.oPos+1];r=r.buffer.o[r.oPos+2];C=null!=p;I=Math.floor(m.get_length()/2);l=C?p.get_length():I;G=(I=(v=null!=r)&&r.get_length()>=3*I)?4:2;y=I?3:2;W=G+2;F=I?f:d;Jb.resizeVertexBuffer(a,I,F+l*W);L=I?a.__vertexBufferDataUVT:a.__vertexBufferData;B=0;for(z=l;Ba.__vertexBufferCount)c=b.createVertexBuffer(d,4,0),a.__vertexBuffer=c,a.__vertexBufferCount=d;c.uploadFromTypedArray(sg.toArrayBufferView(a.__vertexBufferData))}if(0< +f){c=a.__vertexBufferUVT;if(null==c||f>a.__vertexBufferCountUVT)c=b.createVertexBuffer(f,6,0),a.__vertexBufferUVT=c,a.__vertexBufferCountUVT=f;c.uploadFromTypedArray(sg.toArrayBufferView(a.__vertexBufferDataUVT))}da.__pool.release(g);pa.__pool.release(q)};Jb.isCompatible=function(a){if(null!=a.__owner.__worldScale9Grid)return!1;var b=new Yd(a.__commands),c=!1,d=!1,f=!1,k=0;for(a=a.__commands.types;k=d)break;null==q||Jb.maskRender||b.__updateShaderBuffer(r);null!=G.__position&&k.setVertexBufferAt(G.__position.index,a.__quadBuffer.vertexBuffer, +16*p,2);null!=G.__textureCoord&&k.setVertexBufferAt(G.__textureCoord.index,a.__quadBuffer.vertexBuffer,16*p+2,2);k.drawTriangles(k.__quadIndexBuffer,0,2*d);r+=4*d;p+=d}b.__clearShader()}break;case 9:if(null!=m){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+= +4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=ba.DRAW_RECT;var z=c;G=z.buffer.f[z.fPos];D=z.buffer.f[z.fPos+1];d=z.buffer.f[z.fPos+2];f=z.buffer.f[z.fPos+3];z=m;Jb.tempColorTransform.redOffset=z>>>16&255;Jb.tempColorTransform.greenOffset=z>>> +8&255;Jb.tempColorTransform.blueOffset=z&255;Jb.tempColorTransform.__combine(a.__owner.__worldColorTransform);g.identity();g.scale(d,f);g.tx=G;g.ty=D;g.concat(a.__owner.__renderTransform);d=Jb.maskRender?b.__maskShader:b.__initGraphicsShader(null);b.setShader(d);b.applyMatrix(b.__getMatrix(g,1));b.applyBitmapData(Jb.blankBitmapData,!0,h);b.applyAlpha((z>>>24&255)/255*a.__owner.__worldAlpha);b.applyColorTransform(Jb.tempColorTransform);b.updateShader();G=Jb.blankBitmapData.getVertexBuffer(k);null!= +d.__position&&k.setVertexBufferAt(d.__position.index,G,0,3);null!=d.__textureCoord&&k.setVertexBufferAt(d.__textureCoord.index,G,3,2);d=Jb.blankBitmapData.getIndexBuffer(k);k.drawTriangles(d);r+=4;b.__clearShader()}break;case 12:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+= +3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=ba.DRAW_TRIANGLES;f=c;G=f.buffer.o[f.oPos+1];D=f.buffer.o[f.oPos+2];d=f.buffer.o[f.oPos+3];z=null!=G;f=Math.floor(f.buffer.o[f.oPos].get_length()/2);G=z?G.get_length():f;z= +(D=null!=D&&D.get_length()>=3*f)?4:2;f=z+2;var x=D?a.__vertexBufferUVT:a.__vertexBuffer,t=D?l:C,A=b.__getMatrix(a.__owner.__renderTransform,1);if(null==q||Jb.maskRender){var E=Jb.maskRender?b.__maskShader:b.__initGraphicsShader(null);b.setShader(E);b.applyMatrix(A);b.applyBitmapData(n,w,h);b.applyAlpha(a.__owner.__worldAlpha);b.applyColorTransform(a.__owner.__worldColorTransform);b.updateShader()}else E=b.__initShaderBuffer(q),b.__setShaderBuffer(q),b.applyMatrix(A),b.applyBitmapData(n,!1,h),b.applyAlpha(1), +b.applyColorTransform(null),b.__updateShaderBuffer(r);null!=E.__position&&k.setVertexBufferAt(E.__position.index,x,t,D?4:2);null!=E.__textureCoord&&k.setVertexBufferAt(E.__textureCoord.index,x,t+z,2);switch(d){case 0:k.setCulling(0);break;case 1:k.setCulling(3);break;case 2:k.setCulling(1)}k.__drawTriangles(0,G);r+=G;D?l+=f*G:C+=f*G;switch(d){case 1:case 2:k.setCulling(0)}b.__clearShader();break;case 13:q=m=n=null;switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+= +1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+= +1}c.prev=d;k.setCulling(3);break;case 18:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+= +4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=ba.MOVE_TO;break;case 19:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break; +case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=ba.OVERRIDE_BLEND_MODE;d=c;b.__setBlendMode(d.buffer.o[d.oPos]);break;default:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+= +1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=d}pa.__pool.release(g)}a.__hardwareDirty=!1;a.set___dirty(!1)}}; +Jb.renderMask=function(a,b){Jb.maskRender=!0;Jb.render(a,b);Jb.maskRender=!1};Jb.resizeVertexBuffer=function(a,b,c){var d=b?a.__vertexBufferDataUVT:a.__vertexBufferData,f=null;if(null==d){var k=f=null,g=null,q=null,n=null;f=c=null!=c?new Float32Array(c):null!=f?new Float32Array(f):null!=k?new Float32Array(k.__array):null!=g?new Float32Array(g):null!=q?null==n?new Float32Array(q,0):new Float32Array(q,0,n):null}else c>d.length&&(n=q=g=k=f=null,f=c=null!=c?new Float32Array(c):null!=f?new Float32Array(f): +null!=k?new Float32Array(k.__array):null!=g?new Float32Array(g):null!=q?null==n?new Float32Array(q,0):new Float32Array(q,0,n):null,f.set(d));null!=f&&(b?a.__vertexBufferDataUVT=f:a.__vertexBufferData=f)};var bf=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\n\t\tuniform sampler2D openfl_Texture;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\n\t\t\tif (color.a == 0.0) {\n\n\t\t\t\tdiscard;\n\n\t\t\t} else {\n\n\t\t\t\tgl_FragColor = color;\n\n\t\t\t}\n\n\t\t}"); +null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}");zd.call(this);this.__isGenerated=!0;this.__initGL()};g["openfl.display._internal.Context3DMaskShader"]=bf;bf.__name__="openfl.display._internal.Context3DMaskShader"; +bf.__super__=zd;bf.prototype=t(zd.prototype,{__class__:bf});var Zd=function(){};g["openfl.display._internal.Context3DShape"]=Zd;Zd.__name__="openfl.display._internal.Context3DShape";Zd.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)){var c=a.__graphics;if(null!=c){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);Jb.render(c,b);if(null!=c.__bitmap&&c.__visible){var d=b.__context3D,f=b.__initDisplayShader(a.__worldShader);b.setShader(f);b.applyBitmapData(c.__bitmap,!0);var k= +pa.__pool.get();k.scale(1/c.__bitmapScale,1/c.__bitmapScale);k.concat(c.__worldTransform);b.applyMatrix(b.__getMatrix(k,1));pa.__pool.release(k);b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();k=c.__bitmap.getVertexBuffer(d);null!=f.__position&&d.setVertexBufferAt(f.__position.index,k,0,3);null!=f.__textureCoord&&d.setVertexBufferAt(f.__textureCoord.index,k,3,2);c=c.__bitmap.getIndexBuffer(d);d.drawTriangles(c);b.__clearShader()}b.__popMaskObject(a)}}}; +Zd.renderMask=function(a,b){var c=a.__graphics;if(null!=c&&(Jb.renderMask(c,b),null!=c.__bitmap)){a=b.__context3D;var d=b.__maskShader;b.setShader(d);b.applyBitmapData(c.__bitmap,!0);b.applyMatrix(b.__getMatrix(c.__worldTransform,1));b.updateShader();var f=c.__bitmap.getVertexBuffer(a);null!=d.__position&&a.setVertexBufferAt(d.__position.index,f,0,3);null!=d.__textureCoord&&a.setVertexBufferAt(d.__textureCoord.index,f,3,2);c=c.__bitmap.getIndexBuffer(a);a.drawTriangles(c);b.__clearShader()}};var Kh= +function(){};g["openfl.display._internal.Context3DSimpleButton"]=Kh;Kh.__name__="openfl.display._internal.Context3DSimpleButton";Kh.renderDrawable=function(a,b){!a.__renderable||0>=a.__worldAlpha||null==a.__currentState||(b.__pushMaskObject(a),b.__renderDrawable(a.__currentState),b.__popMaskObject(a),b.__renderEvent(a))};Kh.renderDrawableMask=function(a,b){null!=a.__currentState&&b.__renderDrawableMask(a.__currentState)};var re=function(){};g["openfl.display._internal.Context3DTextField"]=re;re.__name__= +"openfl.display._internal.Context3DTextField";re.render=function(a,b){b.__softwareRenderer.__pixelRatio=b.__pixelRatio;var c=b.__softwareRenderer;b=a.__textEngine;var d=!(b.background||b.border),f=d?b.textBounds:b.bounds,k=a.__graphics,g=0;if(a.__dirty){a.__updateLayout();null==k.__bounds&&(k.__bounds=new da);if(0==a.get_text().length){g=b.bounds.width-4;var q=a.get_defaultTextFormat().align;g=3==q?0:4==q?g:g/2;switch(q){case 0:g+=a.get_defaultTextFormat().leftMargin/2;g-=a.get_defaultTextFormat().rightMargin/ +2;g+=a.get_defaultTextFormat().indent/2;g+=a.get_defaultTextFormat().blockIndent/2;break;case 2:g+=a.get_defaultTextFormat().leftMargin;g+=a.get_defaultTextFormat().indent;g+=a.get_defaultTextFormat().blockIndent;break;case 3:g+=a.get_defaultTextFormat().leftMargin;g+=a.get_defaultTextFormat().indent;g+=a.get_defaultTextFormat().blockIndent;break;case 4:g-=a.get_defaultTextFormat().rightMargin}d&&(f.y=b.bounds.y,f.x=g)}k.__bounds.copyFrom(f)}q=c.__pixelRatio;k.__update(c.__worldTransform,q);if(a.__dirty|| +k.__softwareDirty){var n=Math.round(k.__width*q),h=Math.round(k.__height*q);if(!(null!=b.text&&""!=b.text||b.background||b.border||b.__hasFocus||1==b.type&&b.selectable)||(0>=b.width||0>=b.height)&&2!=b.autoSize)a.__graphics.__canvas=null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d")); +P.context=k.__context;k.__canvas.width=n;k.__canvas.height=h;c.__isDOM&&(k.__canvas.style.width=Math.round(n/q)+"px",k.__canvas.style.height=Math.round(h/q)+"px");n=pa.__pool.get();n.scale(q,q);n.concat(k.__renderTransform);P.context.setTransform(n.a,n.b,n.c,n.d,n.tx,n.ty);pa.__pool.release(n);null==P.clearRect&&(P.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);P.clearRect&&P.context.clearRect(0,0,k.__canvas.width,k.__canvas.height);if(null!=b.text&&""!=b.text|| +b.__hasFocus){d=b.text;k.__context.imageSmoothingEnabled=!c.__allowSmoothing||0==b.antiAliasType&&400==b.sharpness?!1:!0;if(b.border||b.background){P.context.rect(.5,.5,f.width-1,f.height-1);if(b.background){var w=W.hex(b.backgroundColor&16777215,6);P.context.fillStyle="#"+w;P.context.fill()}b.border&&(P.context.lineWidth=1,w=W.hex(b.borderColor&16777215,6),P.context.strokeStyle="#"+w,P.context.stroke())}P.context.textBaseline="alphabetic";P.context.textAlign="start";c=-a.get_scrollH();var m=g=0; +for(w=a.get_scrollV()-1;mb.get_bottomScrollV()-1)break;var C="#"+W.hex(h.format.color&16777215,6);P.context.font=vb.getFont(h.format);P.context.fillStyle=C;P.context.fillText(d.substring(h.startIndex,h.endIndex),h.offsetX+c-f.x,h.offsetY+h.ascent+g-f.y);if(-1=a.__caretIndex){m=r=0;for(w=a.__caretIndex-h.startIndex;m=a.__caretIndex||h.startIndex<=a.__selectionIndex&&h.endIndex>=a.__selectionIndex||h.startIndex>a.__caretIndex&&h.endIndexa.__selectionIndex&&h.endIndexr&&(r=h.startIndex),h.endIndex=h.endIndex?(w=a.getCharBoundaries(h.endIndex- +1),null!=w&&(w.x+=w.width+2)):w=a.getCharBoundaries(m),null!=p&&null!=w&&(P.context.fillStyle="#000000",P.context.fillRect(p.x+c-f.x,p.y+g,w.x-p.x,h.height),P.context.fillStyle="#FFFFFF",P.context.fillText(d.substring(r,m),c+p.x-f.x,h.offsetY+h.ascent+g));h.format.underline&&(P.context.beginPath(),P.context.strokeStyle=C,P.context.lineWidth=1,C=h.offsetX+c-f.x,r=Math.ceil(h.offsetY+g+h.ascent-f.y)+Math.floor(.185*h.ascent)+.5,P.context.moveTo(C,r),P.context.lineTo(C+h.width,r),P.context.stroke(), +P.context.closePath())}}else{if(b.border||b.background)b.border?P.context.rect(.5,.5,f.width-1,f.height-1):P.context.rect(0,0,f.width,f.height),b.background&&(w=W.hex(b.backgroundColor&16777215,6),P.context.fillStyle="#"+w,P.context.fill()),b.border&&(P.context.lineWidth=1,P.context.lineCap="square",w=W.hex(b.borderColor&16777215,6),P.context.strokeStyle="#"+w,P.context.stroke());if(-1=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255,(f&255)/ +255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);da.__pool.release(d)}null!=a.__graphics&&Zd.render(a,b)}}else sd.render(a.__cacheBitmap,b);b.__renderEvent(a)};re.renderDrawableMask=function(a,b){re.renderMask(a,b);cf.renderDrawableMask(a,b)};re.renderMask=function(a,b){var c=b.__softwareRenderer;b=a.__textEngine;var d=!(b.background||b.border),f=d?b.textBounds:b.bounds,k=a.__graphics,g=0;if(a.__dirty){a.__updateLayout();null==k.__bounds&&(k.__bounds=new da);if(0==a.get_text().length){g=b.bounds.width- +4;var q=a.get_defaultTextFormat().align;g=3==q?0:4==q?g:g/2;switch(q){case 0:g+=a.get_defaultTextFormat().leftMargin/2;g-=a.get_defaultTextFormat().rightMargin/2;g+=a.get_defaultTextFormat().indent/2;g+=a.get_defaultTextFormat().blockIndent/2;break;case 2:g+=a.get_defaultTextFormat().leftMargin;g+=a.get_defaultTextFormat().indent;g+=a.get_defaultTextFormat().blockIndent;break;case 3:g+=a.get_defaultTextFormat().leftMargin;g+=a.get_defaultTextFormat().indent;g+=a.get_defaultTextFormat().blockIndent; +break;case 4:g-=a.get_defaultTextFormat().rightMargin}d&&(f.y=b.bounds.y,f.x=g)}k.__bounds.copyFrom(f)}q=c.__pixelRatio;k.__update(c.__worldTransform,q);if(a.__dirty||k.__softwareDirty){var n=Math.round(k.__width*q),h=Math.round(k.__height*q);if(!(null!=b.text&&""!=b.text||b.background||b.border||b.__hasFocus||1==b.type&&b.selectable)||(0>=b.width||0>=b.height)&&2!=b.autoSize)a.__graphics.__canvas=null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1), +a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));P.context=k.__context;k.__canvas.width=n;k.__canvas.height=h;c.__isDOM&&(k.__canvas.style.width=Math.round(n/q)+"px",k.__canvas.style.height=Math.round(h/q)+"px");n=pa.__pool.get();n.scale(q,q);n.concat(k.__renderTransform);P.context.setTransform(n.a,n.b,n.c,n.d,n.tx,n.ty);pa.__pool.release(n);null==P.clearRect&&(P.clearRect="undefined"!== +typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);P.clearRect&&P.context.clearRect(0,0,k.__canvas.width,k.__canvas.height);if(null!=b.text&&""!=b.text||b.__hasFocus){d=b.text;k.__context.imageSmoothingEnabled=!c.__allowSmoothing||0==b.antiAliasType&&400==b.sharpness?!1:!0;if(b.border||b.background){P.context.rect(.5,.5,f.width-1,f.height-1);if(b.background){var w=W.hex(b.backgroundColor&16777215,6);P.context.fillStyle="#"+w;P.context.fill()}b.border&&(P.context.lineWidth=1,w=W.hex(b.borderColor& +16777215,6),P.context.strokeStyle="#"+w,P.context.stroke())}P.context.textBaseline="alphabetic";P.context.textAlign="start";c=-a.get_scrollH();var m=g=0;for(w=a.get_scrollV()-1;mb.get_bottomScrollV()-1)break;var C="#"+W.hex(h.format.color&16777215,6);P.context.font=vb.getFont(h.format);P.context.fillStyle=C;P.context.fillText(d.substring(h.startIndex, +h.endIndex),h.offsetX+c-f.x,h.offsetY+h.ascent+g-f.y);if(-1=a.__caretIndex){m=r=0;for(w=a.__caretIndex-h.startIndex;m=a.__caretIndex||h.startIndex<=a.__selectionIndex&&h.endIndex>=a.__selectionIndex||h.startIndex>a.__caretIndex&&h.endIndexa.__selectionIndex&&h.endIndexr&&(r=h.startIndex),h.endIndex=h.endIndex?(w=a.getCharBoundaries(h.endIndex-1),null!=w&&(w.x+=w.width+2)):w=a.getCharBoundaries(m),null!=p&&null!=w&&(P.context.fillStyle="#000000",P.context.fillRect(p.x+c-f.x,p.y+g,w.x-p.x,h.height),P.context.fillStyle="#FFFFFF",P.context.fillText(d.substring(r,m),c+p.x-f.x,h.offsetY+h.ascent+g));h.format.underline&&(P.context.beginPath(),P.context.strokeStyle=C,P.context.lineWidth=1,C=h.offsetX+ +c-f.x,r=Math.ceil(h.offsetY+g+h.ascent-f.y)+Math.floor(.185*h.ascent)+.5,P.context.moveTo(C,r),P.context.lineTo(C+h.width,r),P.context.stroke(),P.context.closePath())}}else{if(b.border||b.background)b.border?P.context.rect(.5,.5,f.width-1,f.height-1):P.context.rect(0,0,f.width,f.height),b.background&&(w=W.hex(b.backgroundColor&16777215,6),P.context.fillStyle="#"+w,P.context.fill()),b.border&&(P.context.lineWidth=1,P.context.lineCap="square",w=W.hex(b.borderColor&16777215,6),P.context.strokeStyle= +"#"+w,P.context.stroke());if(-1=a.__worldAlpha)a.__group.__dirty=!1;else{N.numTiles=0;N.vertexBufferData=null!=a.__buffer?a.__buffer.vertexBufferData:null;N.vertexDataPosition=0;var c=da.__pool.get(),d=pa.__pool.get(),f=pa.__pool.get(); +N.dataPerVertex=4;a.tileAlphaEnabled&&N.dataPerVertex++;a.tileColorTransformEnabled&&(N.dataPerVertex+=8);N.buildBufferTileContainer(a,a.__group,b,f,a.__tileset,a.tileAlphaEnabled,a.__worldAlpha,a.tileColorTransformEnabled,a.__worldColorTransform,null,c,d);a.__buffer.flushVertexBufferData();da.__pool.release(c);pa.__pool.release(d);pa.__pool.release(f)}};N.buildBufferTileContainer=function(a,b,c,d,f,k,g,q,n,h,w,m,p){null==p&&(p=!0);var u=pa.__pool.get(),r=c.__roundPixels,C=b.__tiles,l=null;l=function(a){a= +a.__tiles;for(var b=0,c=0;c=Oa))if(q&&(null!=ja.get_colorTransform()? +null==n?p=ja.get_colorTransform():(null==N.cacheColorTransform&&(N.cacheColorTransform=new Db),p=N.cacheColorTransform,p.redMultiplier=n.redMultiplier*ja.get_colorTransform().redMultiplier,p.greenMultiplier=n.greenMultiplier*ja.get_colorTransform().greenMultiplier,p.blueMultiplier=n.blueMultiplier*ja.get_colorTransform().blueMultiplier,p.alphaMultiplier=n.alphaMultiplier*ja.get_colorTransform().alphaMultiplier,p.redOffset=n.redOffset+ja.get_colorTransform().redOffset,p.greenOffset=n.greenOffset+ja.get_colorTransform().greenOffset, +p.blueOffset=n.blueOffset+ja.get_colorTransform().blueOffset,p.alphaOffset=n.alphaOffset+ja.get_colorTransform().alphaOffset):p=n),k||(Oa=1),0=I.width||0>=I.height)continue;ja=I.x/G.width;O=I.y/G.height;y=I.get_right()/G.width;D=I.get_bottom()/G.height}else{G=O.__data[y];if(null==G)continue;w.setTo(G.x,G.y,G.width,G.height);I=w;ja=G.__uvX; +O=G.__uvY;y=G.__uvWidth;D=G.__uvHeight}G=I.width;v=I.height;I=0*u.a+0*u.c+u.tx;K=0*u.b+0*u.d+u.ty;B=G*u.a+0*u.c+u.tx;z=G*u.b+0*u.d+u.ty;x=0*u.a+v*u.c+u.tx;t=0*u.b+v*u.d+u.ty;A=G*u.a+v*u.c+u.tx;v=G*u.b+v*u.d+u.ty;G=N.vertexDataPosition;N.vertexBufferData[G]=I;N.vertexBufferData[G+1]=K;N.vertexBufferData[G+2]=ja;N.vertexBufferData[G+3]=O;N.vertexBufferData[G+N.dataPerVertex]=B;N.vertexBufferData[G+N.dataPerVertex+1]=z;N.vertexBufferData[G+N.dataPerVertex+2]=y;N.vertexBufferData[G+N.dataPerVertex+3]= +O;N.vertexBufferData[G+2*N.dataPerVertex]=x;N.vertexBufferData[G+2*N.dataPerVertex+1]=t;N.vertexBufferData[G+2*N.dataPerVertex+2]=ja;N.vertexBufferData[G+2*N.dataPerVertex+3]=D;N.vertexBufferData[G+3*N.dataPerVertex]=A;N.vertexBufferData[G+3*N.dataPerVertex+1]=v;N.vertexBufferData[G+3*N.dataPerVertex+2]=y;N.vertexBufferData[G+3*N.dataPerVertex+3]=D;k&&(N.vertexBufferData[G+0*N.dataPerVertex+4]=Oa,N.vertexBufferData[G+N.dataPerVertex+4]=Oa,N.vertexBufferData[G+2*N.dataPerVertex+4]=Oa,N.vertexBufferData[G+ +3*N.dataPerVertex+4]=Oa);if(q)if(null!=p)for(Oa=0;4>Oa;)ja=Oa++,N.vertexBufferData[G+N.dataPerVertex*ja+E]=p.redMultiplier,N.vertexBufferData[G+N.dataPerVertex*ja+E+1]=p.greenMultiplier,N.vertexBufferData[G+N.dataPerVertex*ja+E+2]=p.blueMultiplier,N.vertexBufferData[G+N.dataPerVertex*ja+E+3]=p.alphaMultiplier,N.vertexBufferData[G+N.dataPerVertex*ja+E+4]=p.redOffset,N.vertexBufferData[G+N.dataPerVertex*ja+E+5]=p.greenOffset,N.vertexBufferData[G+N.dataPerVertex*ja+E+6]=p.blueOffset,N.vertexBufferData[G+ +N.dataPerVertex*ja+E+7]=p.alphaOffset;else for(Oa=0;4>Oa;)ja=Oa++,N.vertexBufferData[G+N.dataPerVertex*ja+E]=1,N.vertexBufferData[G+N.dataPerVertex*ja+E+1]=1,N.vertexBufferData[G+N.dataPerVertex*ja+E+2]=1,N.vertexBufferData[G+N.dataPerVertex*ja+E+3]=1,N.vertexBufferData[G+N.dataPerVertex*ja+E+4]=0,N.vertexBufferData[G+N.dataPerVertex*ja+E+5]=0,N.vertexBufferData[G+N.dataPerVertex*ja+E+6]=0,N.vertexBufferData[G+N.dataPerVertex*ja+E+7]=0;N.vertexDataPosition+=4*N.dataPerVertex}}b.__dirty=!1;pa.__pool.release(u)}; +N.flush=function(a,b,c){null==N.currentShader&&(N.currentShader=b.__defaultDisplayShader);if(N.bufferPosition>N.lastFlushedPosition&&null!=N.currentBitmapData&&null!=N.currentShader){var d=b.__initDisplayShader(N.currentShader);b.setShader(d);b.applyBitmapData(N.currentBitmapData,a.smoothing);b.applyMatrix(b.__getMatrix(a.__renderTransform,1));a.tileAlphaEnabled?b.useAlphaArray():b.applyAlpha(a.__worldAlpha);a.tileBlendModeEnabled&&b.__setBlendMode(c);a.tileColorTransformEnabled?(b.applyHasColorTransform(!0), +b.useColorTransformArray()):b.applyColorTransform(a.__worldColorTransform);b.updateShader();c=a.__buffer.vertexBuffer;for(var f=N.lastFlushedPosition*N.dataPerVertex*4,k;N.lastFlushedPosition=k)break;null!=d.__position&&N.context.setVertexBufferAt(d.__position.index,c,f,2);null!=d.__textureCoord&&N.context.setVertexBufferAt(d.__textureCoord.index,c,f+2,2);a.tileAlphaEnabled&&null!=d.__alpha&& +N.context.setVertexBufferAt(d.__alpha.index,c,f+4,1);if(a.tileColorTransformEnabled){var g=a.tileAlphaEnabled?5:4;null!=d.__colorMultiplier&&N.context.setVertexBufferAt(d.__colorMultiplier.index,c,f+g,4);null!=d.__colorOffset&&N.context.setVertexBufferAt(d.__colorOffset.index,c,f+g+4,4)}N.context.drawTriangles(N.context.__quadIndexBuffer,0,2*k);N.lastFlushedPosition+=k}b.__clearShader()}N.lastUsedBitmapData=N.currentBitmapData;N.lastUsedShader=N.currentShader};N.render=function(a,b){if(a.__renderable&& +!(0>=a.__worldAlpha)&&(N.context=b.__context3D,N.buildBuffer(a,b),0!=N.numTiles)){N.bufferPosition=0;N.lastFlushedPosition=0;N.lastUsedBitmapData=null;N.lastUsedShader=null;N.currentBitmapData=null;N.currentShader=null;N.currentBlendMode=a.__worldBlendMode;a.tileBlendModeEnabled||b.__setBlendMode(N.currentBlendMode);b.__pushMaskObject(a);var c=da.__pool.get();c.setTo(0,0,a.__width,a.__height);b.__pushMaskRect(c,a.__renderTransform);N.renderTileContainer(a,b,a.__group,a.__worldShader,a.__tileset,a.__worldAlpha, +a.tileBlendModeEnabled,N.currentBlendMode,null);N.flush(a,b,N.currentBlendMode);b.__popMaskRect();b.__popMaskObject(a);da.__pool.release(c)}};N.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255,(f&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);da.__pool.release(d)}null!=a.__graphics&&Zd.render(a,b)}N.render(a,b)}else sd.render(a.__cacheBitmap,b);b.__renderEvent(a)};N.renderDrawableMask=function(a,b){if(null!=a.opaqueBackground||null!=a.__graphics)null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0=m))if(w=null!=h.get_shader()?h.get_shader():d,g&&(p=null!=h.__blendMode?h.__blendMode:q),0=h.width||0>=h.height)continue}else if(h=u.__data[r],null==h)continue;(w!=N.currentShader||m!=N.currentBitmapData&&null!=N.currentBitmapData||N.currentBlendMode!=p)&&N.flush(a,b,N.currentBlendMode);N.currentBitmapData=m;N.currentShader=w;N.currentBlendMode=p;N.bufferPosition++}};N.renderMask=function(a,b){};N.resizeBuffer=function(a,b){N.numTiles=b;null==a.__buffer?a.__buffer=new Bg(N.context,Oh.QUADS,N.numTiles,N.dataPerVertex):a.__buffer.resize(N.numTiles,N.dataPerVertex);N.vertexBufferData= +a.__buffer.vertexBufferData};var td=function(){};g["openfl.display._internal.Context3DVideo"]=td;td.__name__="openfl.display._internal.Context3DVideo";td.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&&null!=a.__stream&&null!=a.__stream.__video){var c=b.__context3D,d=c.gl;if(null!=a.__getTexture(c)){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var f=b.__initDisplayShader(a.__worldShader);b.setShader(f);b.applyBitmapData(null,!0,!1);b.applyMatrix(b.__getMatrix(a.__renderTransform, +1));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);null!=f.__textureSize&&(td.__textureSizeValue[0]=null!=a.__stream?a.__stream.__video.videoWidth:0,td.__textureSizeValue[1]=null!=a.__stream?a.__stream.__video.videoHeight:0,f.__textureSize.value=td.__textureSizeValue);b.updateShader();c.setTextureAt(0,a.__getTexture(c));c.__flushGLTextures();d.uniform1i(f.__texture.index,0);a.smoothing?(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.LINEAR),d.texParameteri(d.TEXTURE_2D, +d.TEXTURE_MIN_FILTER,d.LINEAR)):(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.NEAREST),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.NEAREST));d=a.__getVertexBuffer(c);null!=f.__position&&c.setVertexBufferAt(f.__position.index,d,0,3);null!=f.__textureCoord&&c.setVertexBufferAt(f.__textureCoord.index,d,3,2);f=a.__getIndexBuffer(c);c.drawTriangles(f);b.__clearShader();b.__popMaskObject(a)}}};td.renderDrawable=function(a,b){td.render(a,b);b.__renderEvent(a)};td.renderDrawableMask=function(a, +b){td.renderMask(a,b)};td.renderMask=function(a,b){if(null!=a.__stream&&null!=a.__stream.__video){var c=b.__context3D,d=b.__maskShader;b.setShader(d);b.applyBitmapData(bf.opaqueBitmapData,!0);b.applyMatrix(b.__getMatrix(a.__renderTransform,1));b.updateShader();var f=a.__getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,f,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,f,3,2);a=a.__getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()}};var Lb=function(){}; +g["openfl.display._internal.DOMBitmap"]=Lb;Lb.__name__="openfl.display._internal.DOMBitmap";Lb.clear=function(a,b){Rc.clear(a,b);null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null,a.__style=null);null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};Lb.renderCanvas=function(a,b){null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null);null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"), +a.__imageVersion=-1,b.__allowSmoothing&&a.smoothing||(a.__context.imageSmoothingEnabled=!1),b.__initializeElement(a,a.__canvas));a.__imageVersion!=a.__bitmapData.image.version&&(Ka.convertToCanvas(a.__bitmapData.image),a.__canvas.width=a.__bitmapData.width+1,a.__canvas.width=a.__bitmapData.width,a.__canvas.height=a.__bitmapData.height,a.__context.drawImage(a.__bitmapData.image.buffer.__srcCanvas,0,0),a.__imageVersion=a.__bitmapData.image.version);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0)};Lb.renderDrawable= +function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0c.get_bottomScrollV()-1)break;g+='
';if(null!=h.format.url&&""!=h.format.url){var w="text-decoration: underline; ";null!=h.format.color&& +(w+="color: #"+W.hex(h.format.color&16777215,6)+"; ");g+=""}g=a.__isHTML?g+W.replace(c.text.substring(h.startIndex,h.endIndex)," "," "):g+W.replace(W.htmlEscape(c.text.substring(h.startIndex,h.endIndex))," "," ");null!=h.format.url&&""!=h.format.url&&(g+="");g+="
"}}c.border?(d.setProperty("border","solid 1px #"+W.hex(c.borderColor&16777215,6),null),a.__renderTransform.translate(-1,-1),a.__renderTransformChanged= +!0,a.__transformDirty=!0):""!=d.border&&(d.removeProperty("border"),a.__renderTransformChanged=!0);d.setProperty("width",f+"px",null);d.setProperty("height",k+"px",null);a.__div.innerHTML=g;a.__dirty=!1}else null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null);null!=a.__div&&(c=b.__roundPixels,b.__roundPixels=!0,b.__updateClip(a),b.__applyStyle(a,!0,!0,!0),b.__roundPixels=c)}else Ge.clear(a,b)}else b.__renderDrawableClear(a),a.__cacheBitmap.stage=a.stage,c=a.__cacheBitmap,null!=c.stage&&c.__worldVisible&& +c.__renderable&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable?(b.__pushMaskObject(c),null!=c.__bitmapData.image.buffer.__srcImage?(d=c.__bitmapData.image.buffer.__srcImage.src,W.startsWith(d,"data:")||W.startsWith(d,"blob:")?Lb.renderCanvas(c,b):Lb.renderImage(c,b)):Lb.renderCanvas(c,b),b.__popMaskObject(c)):Lb.clear(c,b);b.__renderEvent(a)};Ge.renderDrawableClear=function(a,b){Ge.clear(a,b)};var He=function(){};g["openfl.display._internal.DOMTilemap"]=He;He.__name__="openfl.display._internal.DOMTilemap"; +He.clear=function(a,b){Rc.clear(a,b);null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};He.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender)if(null!=a.stage&&a.__worldVisible&&a.__renderable&&0=f)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>> +16&255)+","+(g>>>8&255)+","+(g&255)+")";k.fillRect(0,0,a.get_width(),a.get_height());d.__popMaskObject(a)}if(null!=a.__graphics&&a.__renderable&&(f=d.__getAlpha(a.__worldAlpha),!(0>=f))){var q=a.__graphics;if(null!=q){B.render(q,d);var n=q.__width,h=q.__height;g=q.__canvas;if(null!=g&&q.__visible&&1<=n&&1<=h){var w=q.__worldTransform;k=d.context;var m=a.__scrollRect,p=a.__worldScale9Grid;if(null==m||0=f||(k=d.context,d.__setBlendMode(a.__worldBlendMode),d.__pushMaskObject(a),g=da.__pool.get(),g.setTo(0,0,a.__width,a.__height),d.__pushMaskRect(g,a.__renderTransform),d.__allowSmoothing&&a.smoothing|| +(k.imageSmoothingEnabled=!1),pe.renderTileContainer(a.__group,d,a.__renderTransform,a.__tileset,d.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,f,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,g),d.__allowSmoothing&&a.smoothing||(k.imageSmoothingEnabled=!0),d.__popMaskRect(),d.__popMaskObject(a),da.__pool.release(g)));a.__renderTransform=c;b.__canvasRenderer.context=null;b.__updateClip(a);b.__applyStyle(a,!0,!1,!0)}else He.clear(a,b);else b.__renderDrawableClear(a),a.__cacheBitmap.stage=a.stage, +c=a.__cacheBitmap,null!=c.stage&&c.__worldVisible&&c.__renderable&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable?(b.__pushMaskObject(c),null!=c.__bitmapData.image.buffer.__srcImage?(d=c.__bitmapData.image.buffer.__srcImage.src,W.startsWith(d,"data:")||W.startsWith(d,"blob:")?Lb.renderCanvas(c,b):Lb.renderImage(c,b)):Lb.renderCanvas(c,b),b.__popMaskObject(c)):Lb.clear(c,b);b.__renderEvent(a)};He.renderDrawableClear=function(a,b){He.clear(a,b)};var qe=function(){};g["openfl.display._internal.DOMVideo"]= +qe;qe.__name__="openfl.display._internal.DOMVideo";qe.clear=function(a,b){Rc.clear(a,b);a.__active&&(b.element.removeChild(a.__stream.__video),a.__active=!1)};qe.render=function(a,b){null!=a.stage&&null!=a.__stream&&a.__worldVisible&&a.__renderable?(a.__active||(b.__initializeElement(a,a.__stream.__video),a.__active=!0,a.__dirty=!0),a.__dirty&&(a.__stream.__video.width=a.__width|0,a.__stream.__video.height=a.__height|0,a.__dirty=!1),b.__updateClip(a),b.__applyStyle(a,!0,!0,!0)):qe.clear(a,b)};qe.renderDrawable= +function(a,b){qe.render(a,b);b.__renderEvent(a)};qe.renderDrawableClear=function(a,b){Rc.renderDrawableClear(a,b)};var Yd=function(a){this.buffer=a;this.bPos=this.iPos=this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos=0;this.prev=ba.UNKNOWN};g["openfl.display._internal.DrawCommandReader"]=Yd;Yd.__name__="openfl.display._internal.DrawCommandReader";Yd.prototype={destroy:function(){this.buffer=null;this.reset()},reset:function(){this.bPos=this.iPos=this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos= +0},__class__:Yd};var ba=D["openfl.display._internal.DrawCommandType"]={__ename__:!0,__constructs__:null,BEGIN_BITMAP_FILL:{_hx_name:"BEGIN_BITMAP_FILL",_hx_index:0,__enum__:"openfl.display._internal.DrawCommandType",toString:r},BEGIN_FILL:{_hx_name:"BEGIN_FILL",_hx_index:1,__enum__:"openfl.display._internal.DrawCommandType",toString:r},BEGIN_GRADIENT_FILL:{_hx_name:"BEGIN_GRADIENT_FILL",_hx_index:2,__enum__:"openfl.display._internal.DrawCommandType",toString:r},BEGIN_SHADER_FILL:{_hx_name:"BEGIN_SHADER_FILL", +_hx_index:3,__enum__:"openfl.display._internal.DrawCommandType",toString:r},CUBIC_CURVE_TO:{_hx_name:"CUBIC_CURVE_TO",_hx_index:4,__enum__:"openfl.display._internal.DrawCommandType",toString:r},CURVE_TO:{_hx_name:"CURVE_TO",_hx_index:5,__enum__:"openfl.display._internal.DrawCommandType",toString:r},DRAW_CIRCLE:{_hx_name:"DRAW_CIRCLE",_hx_index:6,__enum__:"openfl.display._internal.DrawCommandType",toString:r},DRAW_ELLIPSE:{_hx_name:"DRAW_ELLIPSE",_hx_index:7,__enum__:"openfl.display._internal.DrawCommandType", +toString:r},DRAW_QUADS:{_hx_name:"DRAW_QUADS",_hx_index:8,__enum__:"openfl.display._internal.DrawCommandType",toString:r},DRAW_RECT:{_hx_name:"DRAW_RECT",_hx_index:9,__enum__:"openfl.display._internal.DrawCommandType",toString:r},DRAW_ROUND_RECT:{_hx_name:"DRAW_ROUND_RECT",_hx_index:10,__enum__:"openfl.display._internal.DrawCommandType",toString:r},DRAW_TILES:{_hx_name:"DRAW_TILES",_hx_index:11,__enum__:"openfl.display._internal.DrawCommandType",toString:r},DRAW_TRIANGLES:{_hx_name:"DRAW_TRIANGLES", +_hx_index:12,__enum__:"openfl.display._internal.DrawCommandType",toString:r},END_FILL:{_hx_name:"END_FILL",_hx_index:13,__enum__:"openfl.display._internal.DrawCommandType",toString:r},LINE_BITMAP_STYLE:{_hx_name:"LINE_BITMAP_STYLE",_hx_index:14,__enum__:"openfl.display._internal.DrawCommandType",toString:r},LINE_GRADIENT_STYLE:{_hx_name:"LINE_GRADIENT_STYLE",_hx_index:15,__enum__:"openfl.display._internal.DrawCommandType",toString:r},LINE_STYLE:{_hx_name:"LINE_STYLE",_hx_index:16,__enum__:"openfl.display._internal.DrawCommandType", +toString:r},LINE_TO:{_hx_name:"LINE_TO",_hx_index:17,__enum__:"openfl.display._internal.DrawCommandType",toString:r},MOVE_TO:{_hx_name:"MOVE_TO",_hx_index:18,__enum__:"openfl.display._internal.DrawCommandType",toString:r},OVERRIDE_BLEND_MODE:{_hx_name:"OVERRIDE_BLEND_MODE",_hx_index:19,__enum__:"openfl.display._internal.DrawCommandType",toString:r},OVERRIDE_MATRIX:{_hx_name:"OVERRIDE_MATRIX",_hx_index:20,__enum__:"openfl.display._internal.DrawCommandType",toString:r},WINDING_EVEN_ODD:{_hx_name:"WINDING_EVEN_ODD", +_hx_index:21,__enum__:"openfl.display._internal.DrawCommandType",toString:r},WINDING_NON_ZERO:{_hx_name:"WINDING_NON_ZERO",_hx_index:22,__enum__:"openfl.display._internal.DrawCommandType",toString:r},UNKNOWN:{_hx_name:"UNKNOWN",_hx_index:23,__enum__:"openfl.display._internal.DrawCommandType",toString:r}};ba.__constructs__=[ba.BEGIN_BITMAP_FILL,ba.BEGIN_FILL,ba.BEGIN_GRADIENT_FILL,ba.BEGIN_SHADER_FILL,ba.CUBIC_CURVE_TO,ba.CURVE_TO,ba.DRAW_CIRCLE,ba.DRAW_ELLIPSE,ba.DRAW_QUADS,ba.DRAW_RECT,ba.DRAW_ROUND_RECT, +ba.DRAW_TILES,ba.DRAW_TRIANGLES,ba.END_FILL,ba.LINE_BITMAP_STYLE,ba.LINE_GRADIENT_STYLE,ba.LINE_STYLE,ba.LINE_TO,ba.MOVE_TO,ba.OVERRIDE_BLEND_MODE,ba.OVERRIDE_MATRIX,ba.WINDING_EVEN_ODD,ba.WINDING_NON_ZERO,ba.UNKNOWN];var Ba=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};g["openfl.geom.Point"]=Ba;Ba.__name__="openfl.geom.Point";Ba.prototype={clone:function(){return new Ba(this.x,this.y)},copyFrom:function(a){this.x=a.x;this.y=a.y},setTo:function(a,b){this.x=a;this.y=b},__toLimeVector2:function(){null== +Ba.__limeVector2&&(Ba.__limeVector2=new Bf);var a=Ba.__limeVector2;a.x=this.x;a.y=this.y;return Ba.__limeVector2},__class__:Ba};var gf=function(a,b,c,d,f,k,g){null==g&&(g=!1);null==k&&(k=!1);null==f&&(f=!1);null==d&&(d=0);null==c&&(c=2);null==b&&(b=5);null==a&&(a=0);this.wrap=a;this.filter=b;this.mipfilter=c;this.lodBias=d;this.ignoreSampler=f;this.centroid=k;this.textureAlpha=g};g["openfl.display._internal.SamplerState"]=gf;gf.__name__="openfl.display._internal.SamplerState";gf.prototype={clone:function(){var a= +new gf(this.wrap,this.filter,this.mipfilter,this.lodBias,this.ignoreSampler,this.centroid,this.textureAlpha);a.mipmapGenerated=this.mipmapGenerated;return a},copyFrom:function(a){null==a||a.ignoreSampler||(this.wrap=a.wrap,this.filter=a.filter,this.mipfilter=a.mipfilter,this.lodBias=a.lodBias,this.centroid=a.centroid,this.textureAlpha=a.textureAlpha)},equals:function(a){return null==a?!1:this.wrap==a.wrap&&this.filter==a.filter&&this.mipfilter==a.mipfilter&&this.lodBias==a.lodBias?this.textureAlpha== +a.textureAlpha:!1},__class__:gf};var Eh=function(){this.inputRefs=[];this.inputFilter=[];this.inputMipFilter=[];this.inputs=[];this.inputWrap=[];this.overrideIntNames=[];this.overrideIntValues=[];this.overrideFloatNames=[];this.overrideFloatValues=[];this.overrideBoolNames=[];this.overrideBoolValues=[];this.paramLengths=[];this.paramPositions=[];this.paramRefs_Bool=[];this.paramRefs_Float=[];this.paramRefs_Int=[];this.paramTypes=[]};g["openfl.display._internal.ShaderBuffer"]=Eh;Eh.__name__="openfl.display._internal.ShaderBuffer"; +Eh.prototype={addBoolOverride:function(a,b){this.overrideBoolNames[this.overrideBoolCount]=a;this.overrideBoolValues[this.overrideBoolCount]=b;this.overrideBoolCount++},addFloatOverride:function(a,b){this.overrideFloatNames[this.overrideFloatCount]=a;this.overrideFloatValues[this.overrideFloatCount]=b;this.overrideFloatCount++},clearOverride:function(){this.overrideBoolCount=this.overrideFloatCount=this.overrideIntCount=0},__class__:Eh};var db=function(a,b,c){this.driverInfo="OpenGL (Direct blitting)"; +this.backBufferHeight=this.backBufferWidth=0;S.call(this);this.__stage=a;this.__contextState=b;this.__stage3D=c;this.__context=a.window.context;this.gl=this.__context.webgl;null==this.__contextState&&(this.__contextState=new Cg);this.__state=new Cg;var d;this.__vertexConstants=new Float32Array(512);this.__fragmentConstants=new Float32Array(512);var f=null;a=[1,1,1,1];var k=d=c=b=null;this.__positionScale=a=null!=f?new Float32Array(f):null!=a?new Float32Array(a):null!=b?new Float32Array(b.__array): +null!=c?new Float32Array(c):null!=d?null==k?new Float32Array(d,0):new Float32Array(d,0,k):null;this.__programs=new La;-1==db.__glMaxViewportDims&&(db.__glMaxViewportDims=this.gl.getParameter(this.gl.MAX_VIEWPORT_DIMS));this.maxBackBufferHeight=this.maxBackBufferWidth=db.__glMaxViewportDims;-1==db.__glMaxTextureMaxAnisotropy&&(a=this.gl.getExtension("EXT_texture_filter_anisotropic"),null!=a&&Object.prototype.hasOwnProperty.call(a,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")||(a=this.gl.getExtension("MOZ_EXT_texture_filter_anisotropic")), +null!=a&&Object.prototype.hasOwnProperty.call(a,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")||(a=this.gl.getExtension("WEBKIT_EXT_texture_filter_anisotropic")),null!=a?(db.__glTextureMaxAnisotropy=a.TEXTURE_MAX_ANISOTROPY_EXT,db.__glMaxTextureMaxAnisotropy=this.gl.getParameter(a.MAX_TEXTURE_MAX_ANISOTROPY_EXT)):(db.__glTextureMaxAnisotropy=0,db.__glMaxTextureMaxAnisotropy=0));-1==db.__glDepthStencil&&(db.__glDepthStencil=this.gl.DEPTH_STENCIL);-1==db.__glMemoryTotalAvailable&&(a=this.gl.getExtension("NVX_gpu_memory_info"), +null!=a&&(db.__glMemoryTotalAvailable=a.GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX,db.__glMemoryCurrentAvailable=a.GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX));null==db.__driverInfo&&(a=this.gl.getParameter(this.gl.VENDOR),b=this.gl.getParameter(this.gl.VERSION),c=this.gl.getParameter(this.gl.RENDERER),d=this.gl.getParameter(this.gl.SHADING_LANGUAGE_VERSION),db.__driverInfo="OpenGL Vendor="+a+" Version="+b+" Renderer="+c+" GLSL="+d);this.driverInfo=db.__driverInfo;this.__quadIndexBufferElements=16383; +f=this.__quadIndexBufferCount=6*this.__quadIndexBufferElements;k=d=c=b=a=null;a=null!=f?new Uint16Array(f):null!=a?new Uint16Array(a):null!=b?new Uint16Array(b.__array):null!=c?new Uint16Array(c):null!=d?null==k?new Uint16Array(d,0):new Uint16Array(d,0,k):null;d=c=b=0;for(k=this.__quadIndexBufferElements;da))if(null==b)this.gl.disableVertexAttribArray(a),this.__bindGLArrayBuffer(null);else switch(this.__bindGLArrayBuffer(b.__id),this.gl.enableVertexAttribArray(a),c*=4,d){case 0:this.gl.vertexAttribPointer(a,4,this.gl.UNSIGNED_BYTE,!0, +b.__stride,c);break;case 1:this.gl.vertexAttribPointer(a,1,this.gl.FLOAT,!1,b.__stride,c);break;case 2:this.gl.vertexAttribPointer(a,2,this.gl.FLOAT,!1,b.__stride,c);break;case 3:this.gl.vertexAttribPointer(a,3,this.gl.FLOAT,!1,b.__stride,c);break;case 4:this.gl.vertexAttribPointer(a,4,this.gl.FLOAT,!1,b.__stride,c);break;default:throw new bb;}},__bindGLArrayBuffer:function(a){this.__contextState.__currentGLArrayBuffer!=a&&(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,a),this.__contextState.__currentGLArrayBuffer= +a)},__bindGLElementArrayBuffer:function(a){this.__contextState.__currentGLElementArrayBuffer!=a&&(this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,a),this.__contextState.__currentGLElementArrayBuffer=a)},__bindGLFramebuffer:function(a){this.__contextState.__currentGLFramebuffer!=a&&(this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,a),this.__contextState.__currentGLFramebuffer=a)},__bindGLTexture2D:function(a){this.gl.bindTexture(this.gl.TEXTURE_2D,a);this.__contextState.__currentGLTexture2D=a},__bindGLTextureCubeMap:function(a){this.gl.bindTexture(this.gl.TEXTURE_CUBE_MAP, +a);this.__contextState.__currentGLTextureCubeMap=a},__dispose:function(){this.driverInfo+=" (Disposed)";null!=this.__stage3D&&(this.__stage3D.__indexBuffer=null,this.__stage3D.__vertexBuffer=null,this.__stage3D=this.__stage3D.context3D=null);this.__positionScale=this.__frontBufferTexture=this.__fragmentConstants=this.__renderStage3DProgram=this.__context=this.__backBufferTexture=null;this.__present=!1;this.__vertexConstants=this.__stage=this.__quadIndexBuffer=null},__drawTriangles:function(a,b){null== +a&&(a=0);null==this.__state.renderToTexture&&(this.__stage.context3D!=this||this.__stage.__renderer.__cleared?this.__cleared||this.clear(0,0,0,0,1,0,1):this.__stage.__renderer.__clear());this.__flushGL();null!=this.__state.program&&this.__state.program.__flush();this.gl.drawArrays(this.gl.TRIANGLES,a,b)},__flushGL:function(){this.__flushGLProgram();this.__flushGLFramebuffer();this.__flushGLViewport();this.__flushGLBlend();if(this.__contextState.colorMaskRed!=this.__state.colorMaskRed||this.__contextState.colorMaskGreen!= +this.__state.colorMaskGreen||this.__contextState.colorMaskBlue!=this.__state.colorMaskBlue||this.__contextState.colorMaskAlpha!=this.__state.colorMaskAlpha)this.gl.colorMask(this.__state.colorMaskRed,this.__state.colorMaskGreen,this.__state.colorMaskBlue,this.__state.colorMaskAlpha),this.__contextState.colorMaskRed=this.__state.colorMaskRed,this.__contextState.colorMaskGreen=this.__state.colorMaskGreen,this.__contextState.colorMaskBlue=this.__state.colorMaskBlue,this.__contextState.colorMaskAlpha= +this.__state.colorMaskAlpha;this.__flushGLCulling();this.__flushGLDepth();this.__flushGLScissor();this.__flushGLStencil();this.__flushGLTextures()},__flushGLBlend:function(){if(this.__contextState.blendDestinationRGBFactor!=this.__state.blendDestinationRGBFactor||this.__contextState.blendSourceRGBFactor!=this.__state.blendSourceRGBFactor||this.__contextState.blendDestinationAlphaFactor!=this.__state.blendDestinationAlphaFactor||this.__contextState.blendSourceAlphaFactor!=this.__state.blendSourceAlphaFactor)this.__setGLBlend(!0), +this.__state.blendDestinationRGBFactor==this.__state.blendDestinationAlphaFactor&&this.__state.blendSourceRGBFactor==this.__state.blendSourceAlphaFactor?this.gl.blendFunc(this.__getGLBlend(this.__state.blendSourceRGBFactor),this.__getGLBlend(this.__state.blendDestinationRGBFactor)):this.gl.blendFuncSeparate(this.__getGLBlend(this.__state.blendSourceRGBFactor),this.__getGLBlend(this.__state.blendDestinationRGBFactor),this.__getGLBlend(this.__state.blendSourceAlphaFactor),this.__getGLBlend(this.__state.blendDestinationAlphaFactor)), +this.__contextState.blendDestinationRGBFactor=this.__state.blendDestinationRGBFactor,this.__contextState.blendSourceRGBFactor=this.__state.blendSourceRGBFactor,this.__contextState.blendDestinationAlphaFactor=this.__state.blendDestinationAlphaFactor,this.__contextState.blendSourceAlphaFactor=this.__state.blendSourceAlphaFactor},__flushGLCulling:function(){if(this.__contextState.culling!=this.__state.culling){if(3==this.__state.culling)this.__setGLCullFace(!1);else switch(this.__setGLCullFace(!0),this.__state.culling){case 0:this.gl.cullFace(this.gl.BACK); +break;case 1:this.gl.cullFace(this.gl.FRONT);break;case 2:this.gl.cullFace(this.gl.FRONT_AND_BACK);break;case 3:break;default:throw new bb;}this.__contextState.culling=this.__state.culling}},__flushGLDepth:function(){var a=this.__state.depthMask&&(null!=this.__state.renderToTexture?this.__state.renderToTextureDepthStencil:this.__state.backBufferEnableDepthAndStencil);this.__contextState.depthMask!=a&&(this.gl.depthMask(a),this.__contextState.depthMask=a);if(this.__contextState.depthCompareMode!=this.__state.depthCompareMode){switch(this.__state.depthCompareMode){case 0:this.gl.depthFunc(this.gl.ALWAYS); +break;case 1:this.gl.depthFunc(this.gl.EQUAL);break;case 2:this.gl.depthFunc(this.gl.GREATER);break;case 3:this.gl.depthFunc(this.gl.GEQUAL);break;case 4:this.gl.depthFunc(this.gl.LESS);break;case 5:this.gl.depthFunc(this.gl.LEQUAL);break;case 6:this.gl.depthFunc(this.gl.NEVER);break;case 7:this.gl.depthFunc(this.gl.NOTEQUAL);break;default:throw new bb;}this.__contextState.depthCompareMode=this.__state.depthCompareMode}},__flushGLFramebuffer:function(){if(null!=this.__state.renderToTexture){if(this.__contextState.renderToTexture!= +this.__state.renderToTexture||this.__contextState.renderToTextureSurfaceSelector!=this.__state.renderToTextureSurfaceSelector){var a=this.__state.renderToTexture.__getGLFramebuffer(this.__state.renderToTextureDepthStencil,this.__state.renderToTextureAntiAlias,this.__state.renderToTextureSurfaceSelector);this.__bindGLFramebuffer(a);this.__contextState.renderToTexture=this.__state.renderToTexture;this.__contextState.renderToTextureAntiAlias=this.__state.renderToTextureAntiAlias;this.__contextState.renderToTextureDepthStencil= +this.__state.renderToTextureDepthStencil;this.__contextState.renderToTextureSurfaceSelector=this.__state.renderToTextureSurfaceSelector}this.__setGLDepthTest(this.__state.renderToTextureDepthStencil);this.__setGLStencilTest(this.__state.renderToTextureDepthStencil);this.__setGLFrontFace(!0)}else{if(null==this.__stage&&0==this.backBufferWidth&&0==this.backBufferHeight)throw new Mb("Context3D backbuffer has not been configured");if(null!=this.__contextState.renderToTexture||this.__contextState.__currentGLFramebuffer!= +this.__state.__primaryGLFramebuffer||this.__contextState.backBufferEnableDepthAndStencil!=this.__state.backBufferEnableDepthAndStencil)this.__bindGLFramebuffer(this.__state.__primaryGLFramebuffer),this.__contextState.renderToTexture=null,this.__contextState.backBufferEnableDepthAndStencil=this.__state.backBufferEnableDepthAndStencil;this.__setGLDepthTest(this.__state.backBufferEnableDepthAndStencil);this.__setGLStencilTest(this.__state.backBufferEnableDepthAndStencil);this.__setGLFrontFace(this.__stage.context3D!= +this)}},__flushGLProgram:function(){var a=this.__state.shader,b=this.__state.program;this.__contextState.shader!=a&&(null!=this.__contextState.shader&&this.__contextState.shader.__disable(),null!=a&&a.__enable(),this.__contextState.shader=a);this.__contextState.program!=b&&(null!=this.__contextState.program&&this.__contextState.program.__disable(),null!=b&&b.__enable(),this.__contextState.program=b);null!=b&&0==b.__format&&(this.__positionScale[1]=this.__stage.context3D==this&&null==this.__state.renderToTexture? +1:-1,b.__setPositionScale(this.__positionScale))},__flushGLScissor:function(){if(this.__state.scissorEnabled){this.__setGLScissorTest(!0);this.__contextState.scissorEnabled=!0;var a=this.__state.scissorRectangle.x|0,b=this.__state.scissorRectangle.y|0,c=this.__state.scissorRectangle.width|0,d=this.__state.scissorRectangle.height|0;this.__backBufferWantsBestResolution&&(a=this.__state.scissorRectangle.x*this.__stage.window.__scale|0,b=this.__state.scissorRectangle.y*this.__stage.window.__scale|0,c= +this.__state.scissorRectangle.width*this.__stage.window.__scale|0,d=this.__state.scissorRectangle.height*this.__stage.window.__scale|0);null==this.__state.renderToTexture&&null==this.__stage3D&&(b=(this.__stage.window.__height*this.__stage.window.__scale|0)-d-b);if(this.__contextState.scissorRectangle.x!=a||this.__contextState.scissorRectangle.y!=b||this.__contextState.scissorRectangle.width!=c||this.__contextState.scissorRectangle.height!=d)this.gl.scissor(a,b,c,d),this.__contextState.scissorRectangle.setTo(a, +b,c,d)}else this.__contextState.scissorEnabled!=this.__state.scissorEnabled&&(this.__setGLScissorTest(!1),this.__contextState.scissorEnabled=!1)},__flushGLStencil:function(){if(this.__contextState.stencilTriangleFace!=this.__state.stencilTriangleFace||this.__contextState.stencilPass!=this.__state.stencilPass||this.__contextState.stencilDepthFail!=this.__state.stencilDepthFail||this.__contextState.stencilFail!=this.__state.stencilFail)this.gl.stencilOpSeparate(this.__getGLTriangleFace(this.__state.stencilTriangleFace), +this.__getGLStencilAction(this.__state.stencilFail),this.__getGLStencilAction(this.__state.stencilDepthFail),this.__getGLStencilAction(this.__state.stencilPass)),this.__contextState.stencilTriangleFace=this.__state.stencilTriangleFace,this.__contextState.stencilPass=this.__state.stencilPass,this.__contextState.stencilDepthFail=this.__state.stencilDepthFail,this.__contextState.stencilFail=this.__state.stencilFail;this.__contextState.stencilWriteMask!=this.__state.stencilWriteMask&&(this.gl.stencilMask(this.__state.stencilWriteMask), +this.__contextState.stencilWriteMask=this.__state.stencilWriteMask);if(this.__contextState.stencilCompareMode!=this.__state.stencilCompareMode||this.__contextState.stencilReferenceValue!=this.__state.stencilReferenceValue||this.__contextState.stencilReadMask!=this.__state.stencilReadMask)this.gl.stencilFunc(this.__getGLCompareMode(this.__state.stencilCompareMode),this.__state.stencilReferenceValue,this.__state.stencilReadMask),this.__contextState.stencilCompareMode=this.__state.stencilCompareMode, +this.__contextState.stencilReferenceValue=this.__state.stencilReferenceValue,this.__contextState.stencilReadMask=this.__state.stencilReadMask},__flushGLTextures:function(){for(var a=0,b,c,d=0,f=this.__state.textures.length;d\nmov oc, ft1");this.__renderStage3DProgram=this.createProgram();this.__renderStage3DProgram.upload(c.agalcode,d.agalcode)}this.setProgram(this.__renderStage3DProgram);this.setBlendFactors(2,9);this.setColorMask(!0,!0,!0,!0);this.setCulling(3);this.setDepthTest(!1,0);this.setStencilActions();this.setStencilReferenceValue(0,0,0);this.setScissorRectangle(null);this.setTextureAt(0,b.__frontBufferTexture);this.setVertexBufferAt(0,a.__vertexBuffer, +0,3);this.setVertexBufferAt(1,a.__vertexBuffer,3,2);this.setProgramConstantsFromMatrix(1,0,a.__renderTransform,!0);this.drawTriangles(a.__indexBuffer);this.__present=!0}},__setGLBlend:function(a){this.__contextState.__enableGLBlend!=a&&(a?this.gl.enable(this.gl.BLEND):this.gl.disable(this.gl.BLEND),this.__contextState.__enableGLBlend=a)},__setGLBlendEquation:function(a){this.__contextState.__glBlendEquation!=a&&(this.gl.blendEquation(a),this.__contextState.__glBlendEquation=a)},__setGLCullFace:function(a){this.__contextState.__enableGLCullFace!= +a&&(a?this.gl.enable(this.gl.CULL_FACE):this.gl.disable(this.gl.CULL_FACE),this.__contextState.__enableGLCullFace=a)},__setGLDepthTest:function(a){this.__contextState.__enableGLDepthTest!=a&&(a?this.gl.enable(this.gl.DEPTH_TEST):this.gl.disable(this.gl.DEPTH_TEST),this.__contextState.__enableGLDepthTest=a)},__setGLFrontFace:function(a){this.__contextState.__frontFaceGLCCW!=a&&(this.gl.frontFace(a?this.gl.CCW:this.gl.CW),this.__contextState.__frontFaceGLCCW=a)},__setGLScissorTest:function(a){this.__contextState.__enableGLScissorTest!= +a&&(a?this.gl.enable(this.gl.SCISSOR_TEST):this.gl.disable(this.gl.SCISSOR_TEST),this.__contextState.__enableGLScissorTest=a)},__setGLStencilTest:function(a){this.__contextState.__enableGLStencilTest!=a&&(a?this.gl.enable(this.gl.STENCIL_TEST):this.gl.disable(this.gl.STENCIL_TEST),this.__contextState.__enableGLStencilTest=a)},__class__:db});var Lj={fromString:function(a){switch(a){case "dynamicDraw":return 0;case "staticDraw":return 1;default:return null}},toString:function(a){switch(a){case 0:return"dynamicDraw"; +case 1:return"staticDraw";default:return null}}},Mj={toString:function(a){switch(a){case 0:return"fragment";case 1:return"vertex";default:return null}}},bk={toString:function(a){switch(a){case 0:return"bgrPacked565";case 1:return"bgra";case 2:return"bgraPacked4444";case 3:return"compressed";case 4:return"compressedAlpha";case 5:return"rgbaHalfFloat";default:return null}}},Ki=function(a,b,c){this.__context=a;this.__numIndices=b;a=this.__context.gl;this.__id=a.createBuffer();this.__usage=0==c?a.DYNAMIC_DRAW: +a.STATIC_DRAW};g["openfl.display3D.IndexBuffer3D"]=Ki;Ki.__name__="openfl.display3D.IndexBuffer3D";Ki.prototype={uploadFromTypedArray:function(a,b){null!=a&&(b=this.__context.gl,this.__context.__bindGLElementArrayBuffer(this.__id),sc.bufferData(b,b.ELEMENT_ARRAY_BUFFER,a,this.__usage))},uploadFromVector:function(a,b,c){if(null!=a){var d=b+c,f=this.__tempUInt16Array;if(null==this.__tempUInt16Array||this.__tempUInt16Array.lengthb;){var f=b++;d="va"+f;-1!=a.indexOf(" "+d)&&c.bindAttribLocation(this.__glProgram,f,d)}else for(b=0,a=this.__glslAttribNames;bb&&(b=d.regIndex+d.regCount)}this.__registerLookup=oa.toObjectVector(null,b);a=0;for(c=this.__uniforms;athis.__registerLookup.get_length()&&(b=this.__registerLookup.get_length());a>>24&15;c.mask=a>>>16&15;c.n=a&65535;return c};Lf.prototype={getWriteMask:function(){var a=".";0!=(this.mask&1)&&(a+="x");0!=(this.mask&2)&&(a+="y");0!=(this.mask&4)&&(a+="z");0!=(this.mask&8)&&(a+="w");return a},toGLSL:function(a){null==a&&(a=!0);var b=3==this.type?this.programType== +$d.VERTEX?"gl_Position":"gl_FragColor":Dc.prefixFromType(this.type,this.programType)+this.n;a&&15!=this.mask&&(b+=this.getWriteMask());return b},__class__:Lf};var $d=D["openfl.display3D._internal._AGALConverter.ProgramType"]={__ename__:!0,__constructs__:null,VERTEX:{_hx_name:"VERTEX",_hx_index:0,__enum__:"openfl.display3D._internal._AGALConverter.ProgramType",toString:r},FRAGMENT:{_hx_name:"FRAGMENT",_hx_index:1,__enum__:"openfl.display3D._internal._AGALConverter.ProgramType",toString:r}};$d.__constructs__= +[$d.VERTEX,$d.FRAGMENT];var Sh=function(){this.mEntries=[]};g["openfl.display3D._internal.RegisterMap"]=Sh;Sh.__name__="openfl.display3D._internal.RegisterMap";Sh.prototype={add:function(a,b,c,d){for(var f=0,k=this.mEntries;fb?new Pa(a.high>>b,a.high<< +32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&15;c.f=b;b=56;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&15;c.m=b;b=52;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&15;c.w=b;b=48;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&15;c.s=b;b=44;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>> +b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&15;c.d=b;b=40;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&15;c.t=b;b=32;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&15;c.type=b;b=16;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&255;c.b=b;b=a.low&65535;c.n=b;return c};Mf.prototype= +{toGLSL:function(){return Dc.prefixFromType(this.type,this.programType)+this.n},toSamplerState:function(){switch(this.f){case 0:var a=5;break;case 1:a=4;break;default:throw new bb;}switch(this.m){case 0:var b=2;break;case 1:b=1;break;case 2:b=0;break;default:throw new bb;}switch(this.w){case 0:var c=0;break;case 1:c=2;break;default:throw new bb;}return new gf(c,a,b,(this.b<<24>>24)/8,4==(this.s&4),1==(this.s&1),2==this.t)},__class__:Mf};var hf=function(){};g["openfl.display3D._internal._AGALConverter.SourceRegister"]= +hf;hf.__name__="openfl.display3D._internal._AGALConverter.SourceRegister";hf.parse=function(a,b,c){var d=new hf;d.programType=b;b=63;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&1;d.d=b;b=48;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&3;d.q=b;b=40;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low& +15;d.itype=b;b=32;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&15;d.type=b;b=24;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&255;d.s=b;b=16;b=0==b?new Pa(a.high,a.low):32>b?new Pa(a.high>>b,a.high<<32-b|a.low>>>b):new Pa(a.high>>31,a.high>>b-32);b=b.low&255;d.o=b;b=a.low&65535;d.n=b;d.sourceMask=c;return d};hf.prototype={toGLSL:function(a,b){null==b&&(b=0);null== +a&&(a=!0);if(3==this.type)return this.programType==$d.VERTEX?"gl_Position":"gl_FragColor";var c=228==this.s&&15==this.sourceMask,d="";if(5!=this.type&&!c){if(0!=(this.sourceMask&1))switch(this.s&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z";break;case 3:d+="w"}if(0!=(this.sourceMask&2))switch(this.s>>2&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z";break;case 3:d+="w"}if(0!=(this.sourceMask&4))switch(this.s>>4&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z";break;case 3:d+= +"w"}if(0!=(this.sourceMask&8))switch(this.s>>6&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z";break;case 3:d+="w"}}c=Dc.prefixFromType(this.type,this.programType);if(0==this.d)c+=this.n+b;else{c+=this.o;var f="";switch(this.q){case 0:f="x";break;case 1:f="y";break;case 2:f="z";break;case 3:f="w"}f=Dc.prefixFromType(this.itype,this.programType)+this.n+"."+f;c+="[ int("+f+") +"+b+"]"}a&&""!=d&&(c+="."+d);return c},__class__:hf};var Cg=function(){this.backBufferEnableDepthAndStencil=!1;this.blendDestinationAlphaFactor= +9;this.blendSourceAlphaFactor=2;this.blendDestinationRGBFactor=9;this.blendSourceRGBFactor=2;this.colorMaskAlpha=this.colorMaskBlue=this.colorMaskGreen=this.colorMaskRed=!0;this.culling=3;this.depthCompareMode=4;this.depthMask=!0;this.samplerStates=[];this.scissorRectangle=new da;this.stencilCompareMode=0;this.stencilPass=this.stencilFail=this.stencilDepthFail=5;this.stencilReadMask=255;this.stencilReferenceValue=0;this.stencilTriangleFace=2;this.stencilWriteMask=255;this.textures=[];this.__frontFaceGLCCW= +!0;this.__glBlendEquation=32774};g["openfl.display3D._internal.Context3DState"]=Cg;Cg.__name__="openfl.display3D._internal.Context3DState";Cg.prototype={__class__:Cg};var ib=function(a){S.call(this);this.__context=a;var b=this.__context.gl;this.__textureID=b.createTexture();this.__textureContext=this.__context.__context;if(null==ib.__supportsBGRA){ib.__textureInternalFormat=b.RGBA;ib.__supportsBGRA=!1;ib.__textureFormat=b.RGBA;ib.__compressedFormats=new gc;ib.__compressedFormatsAlpha=new gc;a=b.getExtension("WEBGL_compressed_texture_s3tc"); +var c=b.getExtension("WEBGL_compressed_texture_etc1");b=b.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");if(null!=a){var d=a.COMPRESSED_RGBA_S3TC_DXT1_EXT;ib.__compressedFormats.h[0]=d;d=a.COMPRESSED_RGBA_S3TC_DXT5_EXT;ib.__compressedFormatsAlpha.h[0]=d}null!=c&&(d=c.COMPRESSED_RGB_ETC1_WEBGL,ib.__compressedFormats.h[2]=d,d=c.COMPRESSED_RGB_ETC1_WEBGL,ib.__compressedFormatsAlpha.h[2]=d);null!=b&&(d=b.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,ib.__compressedFormats.h[1]=d,d=b.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG, +ib.__compressedFormatsAlpha.h[1]=d)}this.__internalFormat=ib.__textureInternalFormat;this.__format=ib.__textureFormat};g["openfl.display3D.textures.TextureBase"]=ib;ib.__name__="openfl.display3D.textures.TextureBase";ib.__super__=S;ib.prototype=t(S.prototype,{dispose:function(){var a=this.__context.gl;null!=this.__alphaTexture&&(this.__alphaTexture.dispose(),this.__alphaTexture=null);null!=this.__textureID&&(a.deleteTexture(this.__textureID),this.__textureID=null);null!=this.__glFramebuffer&&(a.deleteFramebuffer(this.__glFramebuffer), +this.__glFramebuffer=null);null!=this.__glDepthRenderbuffer&&(a.deleteRenderbuffer(this.__glDepthRenderbuffer),this.__glDepthRenderbuffer=null);null!=this.__glStencilRenderbuffer&&(a.deleteRenderbuffer(this.__glStencilRenderbuffer),this.__glStencilRenderbuffer=null)},__getGLFramebuffer:function(a,b,c){b=this.__context.gl;null==this.__glFramebuffer&&(this.__glFramebuffer=b.createFramebuffer(),this.__context.__bindGLFramebuffer(this.__glFramebuffer),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0, +b.TEXTURE_2D,this.__textureID,0),this.__context.__enableErrorChecking&&(c=b.checkFramebufferStatus(b.FRAMEBUFFER),c!=b.FRAMEBUFFER_COMPLETE&&Fa.warn("Error: Context3D.setRenderToTexture status:"+c+" width:"+this.__width+" height:"+this.__height,{fileName:"openfl/display3D/textures/TextureBase.hx",lineNumber:201,className:"openfl.display3D.textures.TextureBase",methodName:"__getGLFramebuffer"})));a&&null==this.__glDepthRenderbuffer&&(this.__context.__bindGLFramebuffer(this.__glFramebuffer),0!=db.__glDepthStencil? +(this.__glStencilRenderbuffer=this.__glDepthRenderbuffer=b.createRenderbuffer(),b.bindRenderbuffer(b.RENDERBUFFER,this.__glDepthRenderbuffer),b.renderbufferStorage(b.RENDERBUFFER,db.__glDepthStencil,this.__width,this.__height),b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_STENCIL_ATTACHMENT,b.RENDERBUFFER,this.__glDepthRenderbuffer)):(this.__glDepthRenderbuffer=b.createRenderbuffer(),this.__glStencilRenderbuffer=b.createRenderbuffer(),b.bindRenderbuffer(b.RENDERBUFFER,this.__glDepthRenderbuffer), +b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.__width,this.__height),b.bindRenderbuffer(b.RENDERBUFFER,this.__glStencilRenderbuffer),b.renderbufferStorage(b.RENDERBUFFER,b.STENCIL_INDEX8,this.__width,this.__height),b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.__glDepthRenderbuffer),b.framebufferRenderbuffer(b.FRAMEBUFFER,b.STENCIL_ATTACHMENT,b.RENDERBUFFER,this.__glStencilRenderbuffer)),this.__context.__enableErrorChecking&&(c=b.checkFramebufferStatus(b.FRAMEBUFFER), +c!=b.FRAMEBUFFER_COMPLETE&&Fa.warn("Error: Context3D.setRenderToTexture status:"+c+" width:"+this.__width+" height:"+this.__height,{fileName:"openfl/display3D/textures/TextureBase.hx",lineNumber:239,className:"openfl.display3D.textures.TextureBase",methodName:"__getGLFramebuffer"})),b.bindRenderbuffer(b.RENDERBUFFER,null));return this.__glFramebuffer},__getTexture:function(){return this.__textureID},__setSamplerState:function(a){if(!a.equals(this.__samplerState)){var b=this.__context.gl;this.__textureTarget== +this.__context.gl.TEXTURE_CUBE_MAP?this.__context.__bindGLTextureCubeMap(this.__textureID):this.__context.__bindGLTexture2D(this.__textureID);var c;switch(a.wrap){case 0:var d=c=b.CLAMP_TO_EDGE;break;case 1:c=b.CLAMP_TO_EDGE;d=b.REPEAT;break;case 2:d=c=b.REPEAT;break;case 3:c=b.REPEAT;d=b.CLAMP_TO_EDGE;break;default:throw new Mb("wrap bad enum");}var f=5==a.filter?b.NEAREST:b.LINEAR;switch(a.mipfilter){case 0:var k=5==a.filter?b.NEAREST_MIPMAP_LINEAR:b.LINEAR_MIPMAP_LINEAR;break;case 1:k=5==a.filter? +b.NEAREST_MIPMAP_NEAREST:b.LINEAR_MIPMAP_NEAREST;break;case 2:k=5==a.filter?b.NEAREST:b.LINEAR;break;default:throw new Mb("mipfiter bad enum");}b.texParameteri(this.__textureTarget,b.TEXTURE_MIN_FILTER,k);b.texParameteri(this.__textureTarget,b.TEXTURE_MAG_FILTER,f);b.texParameteri(this.__textureTarget,b.TEXTURE_WRAP_S,c);b.texParameteri(this.__textureTarget,b.TEXTURE_WRAP_T,d);null==this.__samplerState&&(this.__samplerState=a.clone());this.__samplerState.copyFrom(a);return!0}return!1},__uploadFromImage:function(a){var b= +this.__context.gl,c;if(this.__textureTarget==b.TEXTURE_2D){if(1==a.buffer.bitsPerPixel)var d=c=b.ALPHA;else c=ib.__textureInternalFormat,d=ib.__textureFormat;this.__context.__bindGLTexture2D(this.__textureID);a.type==Cc.DATA||a.get_premultiplied()?!a.get_premultiplied()&&a.get_transparent()&&b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1):b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1);a.type==Cc.DATA?sc.texImage2D(b,b.TEXTURE_2D,0,c,a.buffer.width,a.buffer.height,0,d,b.UNSIGNED_BYTE,a.get_data()): +sc.texImage2D(b,b.TEXTURE_2D,0,c,d,b.UNSIGNED_BYTE,a.get_src());this.__context.__bindGLTexture2D(null)}},__class__:ib});var Qh=function(a,b,c,d,f){ib.call(this,a);this.__width=this.__height=this.__size=b;this.__optimizeForRenderToTexture=d;this.__streamingLevels=f;this.__textureTarget=this.__context.gl.TEXTURE_CUBE_MAP;this.__uploadedSides=0};g["openfl.display3D.textures.CubeTexture"]=Qh;Qh.__name__="openfl.display3D.textures.CubeTexture";Qh.__super__=ib;Qh.prototype=t(ib.prototype,{__getGLFramebuffer:function(a, +b,c){var d=this.__context.gl;null==this.__glFramebuffer&&(this.__glFramebuffer=d.createFramebuffer(),this.__framebufferSurface=-1);if(this.__framebufferSurface!=c&&(this.__framebufferSurface=c,this.__context.__bindGLFramebuffer(this.__glFramebuffer),d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_CUBE_MAP_POSITIVE_X+c,this.__textureID,0),this.__context.__enableErrorChecking)){var f=d.checkFramebufferStatus(d.FRAMEBUFFER);f!=d.FRAMEBUFFER_COMPLETE&&Fa.error("Error: Context3D.setRenderToTexture status:"+ +f+" width:"+this.__width+" height:"+this.__height,{fileName:"openfl/display3D/textures/CubeTexture.hx",lineNumber:279,className:"openfl.display3D.textures.CubeTexture",methodName:"__getGLFramebuffer"})}return ib.prototype.__getGLFramebuffer.call(this,a,b,c)},__setSamplerState:function(a){if(ib.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;2==a.mipfilter||this.__samplerState.mipmapGenerated||(b.generateMipmap(b.TEXTURE_CUBE_MAP),this.__samplerState.mipmapGenerated=!0);if(0!=db.__glMaxTextureMaxAnisotropy){switch(a.filter){case 0:a= +16;break;case 1:a=2;break;case 2:a=4;break;case 3:a=8;break;default:a=1}a>db.__glMaxTextureMaxAnisotropy&&(a=db.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_CUBE_MAP,db.__glTextureMaxAnisotropy,a)}return!0}return!1},__class__:Qh});var Dg=function(a,b,c,d,f){ib.call(this,a);this.__width=b;this.__height=c;this.__optimizeForRenderToTexture=f;this.__textureTarget=this.__context.gl.TEXTURE_2D;this.uploadFromTypedArray(null);f&&this.__getGLFramebuffer(!0,0,0)};g["openfl.display3D.textures.RectangleTexture"]= +Dg;Dg.__name__="openfl.display3D.textures.RectangleTexture";Dg.__super__=ib;Dg.prototype=t(ib.prototype,{uploadFromTypedArray:function(a){var b=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);sc.texImage2D(b,this.__textureTarget,0,this.__internalFormat,this.__width,this.__height,0,this.__format,b.UNSIGNED_BYTE,a);this.__context.__bindGLTexture2D(null)},__setSamplerState:function(a){if(ib.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;if(0!=db.__glMaxTextureMaxAnisotropy){switch(a.filter){case 0:a= +16;break;case 1:a=2;break;case 2:a=4;break;case 3:a=8;break;default:a=1}a>db.__glMaxTextureMaxAnisotropy&&(a=db.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_2D,db.__glTextureMaxAnisotropy,a)}return!0}return!1},__class__:Dg});var Ph=function(a,b,c,d,f,k){ib.call(this,a);this.__width=b;this.__height=c;this.__optimizeForRenderToTexture=f;this.__streamingLevels=k;a=this.__context.gl;this.__textureTarget=a.TEXTURE_2D;this.__context.__bindGLTexture2D(this.__textureID);sc.texImage2D(a,this.__textureTarget, +0,this.__internalFormat,this.__width,this.__height,0,this.__format,a.UNSIGNED_BYTE,null);this.__context.__bindGLTexture2D(null);f&&this.__getGLFramebuffer(!0,0,0)};g["openfl.display3D.textures.Texture"]=Ph;Ph.__name__="openfl.display3D.textures.Texture";Ph.__super__=ib;Ph.prototype=t(ib.prototype,{__setSamplerState:function(a){if(ib.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;2==a.mipfilter||this.__samplerState.mipmapGenerated||(b.generateMipmap(b.TEXTURE_2D),this.__samplerState.mipmapGenerated= +!0);if(0!=db.__glMaxTextureMaxAnisotropy){switch(a.filter){case 0:a=16;break;case 1:a=2;break;case 2:a=4;break;case 3:a=8;break;default:a=1}a>db.__glMaxTextureMaxAnisotropy&&(a=db.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_2D,db.__glTextureMaxAnisotropy,a)}return!0}return!1},__class__:Ph});var Oi=function(a){ib.call(this,a);this.__textureTarget=this.__context.gl.TEXTURE_2D};g["openfl.display3D.textures.VideoTexture"]=Oi;Oi.__name__="openfl.display3D.textures.VideoTexture";Oi.__super__= +ib;Oi.prototype=t(ib.prototype,{dispose:function(){null!=this.__netStream&&null!=this.__netStream.__video&&this.__netStream.__video.removeEventListener("timeupdate",h(this,this.__onTimeUpdate));ib.prototype.dispose.call(this)},__onTimeUpdate:function(a){null!=this.__netStream&&this.__netStream.__video.currentTime!=this.__cacheTime&&2<=this.__netStream.__video.readyState&&this.__textureReady()},__getTexture:function(){if(this.__netStream.__video.currentTime!=this.__cacheTime&&2<=this.__netStream.__video.readyState){var a= +this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);sc.texImage2D(a,a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.__netStream.__video);this.__cacheTime=this.__netStream.__video.currentTime}return this.__textureID},__textureReady:function(){this.videoWidth=this.__netStream.__video.videoWidth;this.videoHeight=this.__netStream.__video.videoHeight;var a=new ca("textureReady");this.dispatchEvent(a)},__class__:Oi});var Mb=function(a,b){null==b&&(b=0);null==a&&(a="");fa.call(this,a); +this.errorID=b;this.name="Error";this.__skipStack++};g["openfl.errors.Error"]=Mb;Mb.__name__="openfl.errors.Error";Mb.__super__=fa;Mb.prototype=t(fa.prototype,{toString:function(){return null!=this.get_message()?this.get_message():"Error"},__class__:Mb});var ab=function(a){null==a&&(a="");Mb.call(this,a);this.name="ArgumentError";this.__skipStack++};g["openfl.errors.ArgumentError"]=ab;ab.__name__="openfl.errors.ArgumentError";ab.__super__=Mb;ab.prototype=t(Mb.prototype,{__class__:ab});var Nf=function(a){null== +a&&(a="");Mb.call(this,a);this.name="IOError";this.__skipStack++};g["openfl.errors.IOError"]=Nf;Nf.__name__="openfl.errors.IOError";Nf.__super__=Mb;Nf.prototype=t(Mb.prototype,{__class__:Nf});var Fg=function(a,b){Nf.call(this,"End of file was encountered");this.name="EOFError";this.errorID=2030;this.__skipStack++};g["openfl.errors.EOFError"]=Fg;Fg.__name__="openfl.errors.EOFError";Fg.__super__=Nf;Fg.prototype=t(Nf.prototype,{__class__:Fg});var bb=function(a){null==a&&(a="");Mb.call(this,a,0);this.name= +"IllegalOperationError";this.__skipStack++};g["openfl.errors.IllegalOperationError"]=bb;bb.__name__="openfl.errors.IllegalOperationError";bb.__super__=Mb;bb.prototype=t(Mb.prototype,{__class__:bb});var Ne=function(a){null==a&&(a="");Mb.call(this,a,0);this.name="RangeError";this.__skipStack++};g["openfl.errors.RangeError"]=Ne;Ne.__name__="openfl.errors.RangeError";Ne.__super__=Mb;Ne.prototype=t(Mb.prototype,{__class__:Ne});var Og=function(a){null==a&&(a="");Mb.call(this,a,0);this.name="SecurityError"; +this.__skipStack++};g["openfl.errors.SecurityError"]=Og;Og.__name__="openfl.errors.SecurityError";Og.__super__=Mb;Og.prototype=t(Mb.prototype,{__class__:Og});var Zc=function(a){null==a&&(a="");Mb.call(this,a,0);this.name="TypeError";this.__skipStack++};g["openfl.errors.TypeError"]=Zc;Zc.__name__="openfl.errors.TypeError";Zc.__super__=Mb;Zc.prototype=t(Mb.prototype,{__class__:Zc});var Of=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!1);null==b&&(b=!1);ca.call(this,a,b,c);this.activating=d};g["openfl.events.ActivityEvent"]= +Of;Of.__name__="openfl.events.ActivityEvent";Of.__super__=ca;Of.prototype=t(ca.prototype,{__class__:Of});var Xd=function(a,b,c,d){null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);ca.call(this,a,b,c);this.text=d};g["openfl.events.TextEvent"]=Xd;Xd.__name__="openfl.events.TextEvent";Xd.__super__=ca;Xd.prototype=t(ca.prototype,{__class__:Xd});var ud=function(a,b,c,d,f){null==f&&(f=0);null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);Xd.call(this,a,b,c,d);this.errorID=f};g["openfl.events.ErrorEvent"]=ud; +ud.__name__="openfl.events.ErrorEvent";ud.__super__=Xd;ud.prototype=t(Xd.prototype,{__class__:ud});var Uf=function(a){this.active=!1;this.reset(a)};g["openfl.events._EventDispatcher.DispatchIterator"]=Uf;Uf.__name__="openfl.events._EventDispatcher.DispatchIterator";Uf.prototype={copy:function(){this.isCopy||(this.list=this.list.slice(),this.isCopy=!0)},hasNext:function(){return this.index=a)return this.tempBuffer=new Float32Array(2*a),a;throw new Mb("To be consistent with flash the listener function registered to SampleDataEvent has to provide 2048, 4096 or 8192 samples if targeting HTML5.");}return 0},getSamples:function(a){this.data.position=0;this.tempBuffer=Vj.fromBytes(le.toBytes(this.data));this.leftChannel=a.outputBuffer.getChannelData(0);this.rightChannel=a.outputBuffer.getChannelData(1); +for(var b=a=0,c=tb.toFloat(le.get_length(this.data))/tb.toFloat(2)|0;bb&&(b=-1);1a||a>this.__text.length-1)return null;var b=new da;return this.__getCharBoundaries(a,b)?b:null},getLineIndexOfChar:function(a){if(0> +a||a>this.__text.length)return-1;this.__updateLayout();for(var b=this.__textEngine.layoutGroups.iterator();b.hasNext();){var c=b.next();if(c.startIndex<=a&&c.endIndex>=a)return c.lineIndex}return-1},getLineLength:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return 0;for(var b=-1,c=-1,d=this.__textEngine.layoutGroups.iterator();d.hasNext();){var f=d.next();if(f.lineIndex==a)-1==b&&(b=f.startIndex);else if(f.lineIndex==a+1){c=f.startIndex;break}}-1==c&&(c=this.__text.length); +return c-b},getLineOffset:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return-1;for(var b=this.__textEngine.layoutGroups.iterator();b.hasNext();){var c=b.next();if(c.lineIndex==a)return c.startIndex}return 0},replaceSelectedText:function(a){this.__replaceSelectedText(a,!1)},replaceText:function(a,b,c){this.__replaceText(a,b,c,!1)},setSelection:function(a,b){this.__selectionIndex=a;this.__caretIndex=b;this.__updateScrollV();this.__updateScrollH();null!=this.stage&&this.stage.get_focus()== +this&&(this.__stopCursorTimer(),this.__startCursorTimer())},__setStageReference:function(a){this.__stopTextInput();ha.prototype.__setStageReference.call(this,a)},__allowMouseFocus:function(){return this.mouseEnabled},__caretBeginningOfLine:function(){this.__caretIndex=this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex))},__caretBeginningOfNextLine:function(){var a=this.getLineIndexOfChar(this.__caretIndex);this.__caretIndex=aa||a>this.__text.length-1)return!1;this.__updateLayout();for(var c=this.__textEngine.layoutGroups.iterator();c.hasNext();){var d=c.next();if(a>=d.startIndex&&aa||a>this.__text.length||0>b||b>this.__textEngine.numLines-1)return-1;for(var c=null,d=null,f=this.__textEngine.layoutGroups.iterator();f.hasNext();){var k=f.next();if(a>=k.startIndex&&a<=k.endIndex){c=k.offsetX;for(var g=0,q=a-k.startIndex;gthis.__textEngine.textHeight&&(b=this.__textEngine.textHeight);var g=!0;d=0;for(f=this.__textEngine.layoutGroups.get_length();d=q.offsetY&&b<=q.offsetY+q.height||!c&&null==k)if(a>=q.offsetX&&a<=q.offsetX+q.width||!c&&(null== +k||k.lineIndex!=q.lineIndex))return q}return null},__getPosition:function(a,b){b=this.__getGroup(a,b);if(null==b)return this.__text.length;for(var c=0,d=0,f=b.positions.length;d/\\|-=+*&^%$#@~`'\"";b=this.__text.charAt(a); +if(this.__specialSelectionInitialIndex<=a)for(;-1==c.indexOf(b)&&a/\\|-=+*&^%$#@~`'\"";var c=this.__text.charAt(a);if(a<=this.__caretIndex){for(;-1==b.indexOf(c)&&0this.__selectionIndex?this.__caretIndex: +this.__selectionIndex;if(!(c==d&&0this.__text.length&&(c=this.__text.length);d>this.__text.length&&(d=this.__text.length);if(dc&&(c=0);this.__replaceText(c,d,a,b)}}},__replaceText:function(a,b,c,d){if(!(ba||b>this.__text.length||null==c)){d&&(c=this.__textEngine.restrictText(c),0=d?c="":d=a&&(k.start>=a?(k.start+=d,k.end+=d):k.start=b&&(k.end+=d));else if(k.end>a)if(k.start>b)k.start+=d,k.end+=d;else if(k.start<=a&&k.end>b)k.end+=d;else if(k.start>=a&&k.end<=b){k=this.__textEngine.textFormatRanges;k.__tempIndex=f--;for(var g=0,q=[];gb&&k.start>a&&k.start<=b?(k.start=a,k.end+=d):k.starta&&k.end<=b&&(k.end=a);++f}0==this.__textEngine.textFormatRanges.get_length()? +this.__textEngine.textFormatRanges.push(new Md(this.get_defaultTextFormat().clone(),0,c.length)):a==b&&0this.__caretIndex&&(this.__selectionIndex=this.__caretIndex=this.__text.length);(L.__supportDOM?this.__renderedOnCanvasWhileOnDOM:1)&&this.__enableInput()},__stopCursorTimer:function(){null!=this.__cursorTimer&&(this.__cursorTimer.stop(),this.__cursorTimer=null);this.__showCursor&&(this.__showCursor=!1,this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()))},__stopTextInput:function(){(L.__supportDOM? +this.__renderedOnCanvasWhileOnDOM:1)&&this.__disableInput()},__updateLayout:function(){if(this.__layoutDirty){var a=this.__textEngine.width;this.__textEngine.update();if(2!=this.__textEngine.autoSize){if(this.__textEngine.width!=a)switch(this.__textEngine.autoSize){case 0:this.set_x(this.get_x()+(a-this.__textEngine.width)/2);break;case 3:this.set_x(this.get_x()+(a-this.__textEngine.width))}this.__textEngine.getBounds()}this.__layoutDirty=!1;this.setSelection(this.__selectionIndex,this.__caretIndex)}}, +__updateMouseDrag:function(){if(null!=this.stage){var a=this.getBounds(this);this.get_mouseX()>a.width-1?this.set_scrollH(this.get_scrollH()+(Math.max(Math.min(.1*(this.get_mouseX()-a.width),10),1)|0)):1>this.get_mouseX()&&this.set_scrollH(this.get_scrollH()-(Math.max(Math.min(-.1*this.get_mouseX(),10),1)|0));this.__mouseScrollVCounter++;this.__mouseScrollVCounter>this.stage.get_frameRate()/10&&(this.get_mouseY()>a.height-2?this.set_scrollV(Math.min(this.get_scrollV()+Math.max(Math.min(.03*(this.get_mouseY()- +a.height),5),1),this.get_maxScrollV())|0):2>this.get_mouseY()&&this.set_scrollV(this.get_scrollV()-(Math.max(Math.min(-.03*this.get_mouseY(),5),1)|0)),this.__mouseScrollVCounter=0);this.stage_onMouseMove(null)}},__updateScrollH:function(){this.__updateLayout();var a=this.getBounds(this);if(this.get_textWidth()<=a.width-4)this.set_scrollH(0);else{var b=this.get_scrollH();if(0==this.__caretIndex||this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex))==this.__caretIndex)b=0;else{var c=da.__pool.get(), +d=!1;this.__caretIndexb+a.width-4;)b+=24;da.__pool.release(c)}0c&&this.set_scrollH(Math.ceil(c-a.width+4)));0>b?this.set_scrollH(0):b>this.get_maxScrollH()?this.set_scrollH(this.get_maxScrollH()):this.set_scrollH(b)}}, +__updateScrollV:function(){this.__updateLayout();if(this.get_textHeight()<=this.get_height()-4)this.set_scrollV(1);else{var a=this.getLineIndexOfChar(this.__caretIndex);-1==a&&0this.get_bottomScrollV()){var b=0;for(a>=this.__textEngine.lineHeights.get_length()&&(a=this.__textEngine.lineHeights.get_length()-1);0<=a;){b+=this.__textEngine.lineHeights.get(a);if(b>this.get_height()- +4){a+=0>b-this.get_height()?1:2;break}--a}this.set_scrollV(a)}else this.set_scrollV(this.get_scrollV())}},__updateText:function(a){L.__supportDOM&&this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=this.__text!=a);this.__textEngine.set_text(a);this.__text=this.__textEngine.text;null!=this.stage&&this.stage.get_focus()==this?(this.__text.lengththis.__textEngine.maxScrollH&&(a=this.__textEngine.maxScrollH);0>a&&(a=0);a!=this.__textEngine.scrollH&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.scrollH=a,this.dispatchEvent(new ca("scroll")));return this.__textEngine.scrollH},get_scrollV:function(){return this.__textEngine.get_scrollV()}, +set_scrollV:function(a){this.__updateLayout();a>this.__textEngine.get_maxScrollV()&&(a=this.__textEngine.get_maxScrollV());1>a&&(a=1);if(a!=this.__textEngine.get_scrollV()||0==this.__textEngine.get_scrollV())this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.set_scrollV(a),this.dispatchEvent(new ca("scroll"));return this.__textEngine.get_scrollV()},get_selectable:function(){return this.__textEngine.selectable},set_selectable:function(a){a!= +this.__textEngine.selectable&&1==this.get_type()&&(null!=this.stage&&this.stage.get_focus()==this?this.__startTextInput():a||this.__stopTextInput());return this.__textEngine.selectable=a},get_selectionBeginIndex:function(){return Math.min(this.__caretIndex,this.__selectionIndex)|0},get_selectionEndIndex:function(){return Math.max(this.__caretIndex,this.__selectionIndex)|0},get_styleSheet:function(){return this.__styleSheet},set_styleSheet:function(a){null!=this.__styleSheet&&null==a||null==a||(this.__isHTML&& +a!=this.__styleSheet&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.set_htmlText(this.__htmlText)),this.set_type(0));return this.__styleSheet=a},get_tabEnabled:function(){return null==this.__tabEnabled?1==this.__textEngine.type:this.__tabEnabled},get_text:function(){return this.__text},set_text:function(a){if(null==a)throw a=new Zc("Error #2007: Parameter text must be non-null."),a.errorID=2007,a;if(null!=this.__styleSheet)return this.set_htmlText(a); +if(this.__isHTML||this.__text!=a)this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());else return a;if(1"),C=G+1,l=r.indexOf(" ");l=r.substring(m?1:0,-1=this.width&&(a=2);b>=this.height&&(b=2);this.textBounds.setTo(Math.max(a- +2,0),Math.max(b-2,0),Math.min(this.textWidth+4,this.bounds.width),Math.min(1.185*this.textHeight+4,this.bounds.height))},getLineBreaks:function(){this.lineBreaks.set_length(0);for(var a=-1,b;athis.numLines-1;)this.lineAscents.push(a),this.lineDescents.push(b),this.lineLeadings.push(null!=c?c:0),this.lineHeights.push(d),this.lineWidths.push(f),b=a=0,c=null,f=d=0,this.numLines++;a=Math.max(a,w.ascent);b=Math.max(b, +w.descent);c=null==c?w.leading:Math.max(c,w.leading)|0;d=Math.max(d,w.height);f=w.offsetX-2+w.width;f>this.textWidth&&(this.textWidth=f);h=Math.ceil(w.offsetY-2+w.ascent+w.descent);h>this.textHeight&&(this.textHeight=h)}}0==this.textHeight&&null!=this.textField&&1==this.type&&(a=this.textField.__textFormat,b=vb.getFontInstance(a),null!=a.__ascent?(k=a.size*a.__ascent,g=a.size*a.__descent):null!=b&&0!=b.unitsPerEM?(k=b.ascender/b.unitsPerEM*a.size,g=Math.abs(b.descender/b.unitsPerEM*a.size)):(k=a.size, +g=.185*a.size),c=a.leading,a=k,b=g,this.textHeight=h=Math.ceil(k+g));this.lineAscents.push(a);this.lineDescents.push(b);this.lineLeadings.push(null!=c?c:0);this.lineHeights.push(d);this.lineWidths.push(f);1==this.numLines&&0this.width-4?this.textWidth-this.width+4|0:0;this.scrollH> +this.maxScrollH&&(this.scrollH=this.maxScrollH)},getLayoutGroups:function(){var a=this;this.layoutGroups.set_length(0);if(null!=this.text&&""!=this.text){var b=-1,c=null,d=null,f=oc.__defaultTextFormat.clone(),k=0,g=0,q=0,h=0,w=3,p=0,m=0,r=0,G=0,C=!0,l=null,I=null,v=0,D=0,B=0,z=-2,t=-1,A=this.text.indexOf(" "),E=0,ja=EB&&(B=D);g>q&&(q=g)},V=function(){C=!0;w=null!=f.align?f.align:3;p=null!=f.blockIndent?f.blockIndent:0;m=null!= +f.indent?f.indent:0;r=null!=f.leftMargin?f.leftMargin:0;G=null!=f.rightMargin?f.rightMargin:0},fb=function(){if(b=f)I=[],v=0;else if(f<=c.end)I=sa(a.text,d,f),v=W(I);else{var k=d;d=c.end;var g=0;I=[];for(v=0;;)if(k!=d&&(k=sa(a.text,k,d),I=I.concat(k)),d!=f){if(!fb()){Fa.warn("You found a bug in OpenFL's text code! Please save a copy of your project and create an issue on GitHub so we can fix this.", +{fileName:"openfl/text/_internal/TextEngine.hx",lineNumber:1118,className:"openfl.text._internal.TextEngine",methodName:"getLayoutGroups"});break}k=d;d=fy||(c.ascent=q,c.height=B)}Oa+=B;B=q=0;y+=1;ra=0;C=!1},R=function(b){if(4<=a.width&&a.wordWrap){var c=I;var d=W(c);for(var f=c.length-1;0<=f;){var k=aa.cca(a.text,O+f);if(32!=k&&9!=k)break;d-=c[f];--f}for(;0F();){for(k=f=d=0;ra+kF();)--f,0F()&&(N=!0,0z)++P;else break;--N}O==z+1&&J();ra=0;if(0ja-l.startIndex-l.positions.length&&l.positions.push(0),O=ja+1);z=A;A=M;if(-1ja||-1==A)||O>this.text.length)break}else Othis.height-4){a=f+(0<=b-this.height?0:1);break}}return athis.height-4){a+=0>b-this.height?1:2;break}--a}return 1>a?1:a},get_scrollV:function(){if(1==this.numLines||null==this.lineHeights)return 1;var a=this.get_maxScrollV();return this.scrollV>a?a:this.scrollV},set_scrollV:function(a){1>a?a=1:a>this.get_maxScrollV()&&(a=this.get_maxScrollV());return this.scrollV=a},set_text:function(a){return this.text= +a},__class__:vb,__properties__:{set_text:"set_text",set_scrollV:"set_scrollV",get_scrollV:"get_scrollV",get_maxScrollV:"get_maxScrollV",get_bottomScrollV:"get_bottomScrollV"}};var Md=function(a,b,c){this.format=a;this.start=b;this.end=c};g["openfl.text._internal.TextFormatRange"]=Md;Md.__name__="openfl.text._internal.TextFormatRange";Md.prototype={__class__:Md};var Vh=function(a,b,c){this.format=a;this.startIndex=b;this.endIndex=c};g["openfl.text._internal.TextLayoutGroup"]=Vh;Vh.__name__="openfl.text._internal.TextLayoutGroup"; +Vh.prototype={__class__:Vh};var Sa=function(){S.call(this);Sa.__instances.push(this)};g["openfl.ui.GameInput"]=Sa;Sa.__name__="openfl.ui.GameInput";Sa.__getDevice=function(a){if(null==a)return null;if(null==Sa.__devices.h.__keys__[a.__id__]){var b=Zb.__getDeviceData(),c=b[a.id].id;b=Zb.__getDeviceData();b=new Xi(c,b[a.id].id);Sa.__deviceList.push(b);Sa.__devices.set(a,b);Sa.numDevices=Sa.__deviceList.length}return Sa.__devices.h[a.__id__]};Sa.__onGamepadAxisMove=function(a,b,c){a=Sa.__getDevice(a); +if(null!=a&&a.enabled){if(!a.__axis.h.hasOwnProperty(b)){if(null==b)var d="null";else switch(b){case 0:d="LEFT_X";break;case 1:d="LEFT_Y";break;case 2:d="RIGHT_X";break;case 3:d="RIGHT_Y";break;case 4:d="TRIGGER_LEFT";break;case 5:d="TRIGGER_RIGHT";break;default:d="UNKNOWN ("+b+")"}d=new vd(a,"AXIS_"+d,-1,1);a.__axis.h[b]=d;a.__controls.push(d)}d=a.__axis.h[b];d.value=c;d.dispatchEvent(new ca("change"))}};Sa.__onGamepadButtonDown=function(a,b){a=Sa.__getDevice(a);if(null!=a&&a.enabled){if(!a.__button.h.hasOwnProperty(b)){if(null== +b)var c="null";else switch(b){case 0:c="A";break;case 1:c="B";break;case 2:c="X";break;case 3:c="Y";break;case 4:c="BACK";break;case 5:c="GUIDE";break;case 6:c="START";break;case 7:c="LEFT_STICK";break;case 8:c="RIGHT_STICK";break;case 9:c="LEFT_SHOULDER";break;case 10:c="RIGHT_SHOULDER";break;case 11:c="DPAD_UP";break;case 12:c="DPAD_DOWN";break;case 13:c="DPAD_LEFT";break;case 14:c="DPAD_RIGHT";break;default:c="UNKNOWN ("+b+")"}c=new vd(a,"BUTTON_"+c,0,1);a.__button.h[b]=c;a.__controls.push(c)}c= +a.__button.h[b];c.value=1;c.dispatchEvent(new ca("change"))}};Sa.__onGamepadButtonUp=function(a,b){a=Sa.__getDevice(a);if(null!=a&&a.enabled){if(!a.__button.h.hasOwnProperty(b)){if(null==b)var c="null";else switch(b){case 0:c="A";break;case 1:c="B";break;case 2:c="X";break;case 3:c="Y";break;case 4:c="BACK";break;case 5:c="GUIDE";break;case 6:c="START";break;case 7:c="LEFT_STICK";break;case 8:c="RIGHT_STICK";break;case 9:c="LEFT_SHOULDER";break;case 10:c="RIGHT_SHOULDER";break;case 11:c="DPAD_UP"; +break;case 12:c="DPAD_DOWN";break;case 13:c="DPAD_LEFT";break;case 14:c="DPAD_RIGHT";break;default:c="UNKNOWN ("+b+")"}c=new vd(a,"BUTTON_"+c,0,1);a.__button.h[b]=c;a.__controls.push(c)}c=a.__button.h[b];c.value=0;c.dispatchEvent(new ca("change"))}};Sa.__onGamepadConnect=function(a){a=Sa.__getDevice(a);if(null!=a)for(var b=0,c=Sa.__instances;bb;){var c=b++;a=new vd(this,"BUTTON_"+c,0,1);this.__button.h[c]=a;this.__controls.push(a)}};g["openfl.ui.GameInputDevice"]=Xi;Xi.__name__= +"openfl.ui.GameInputDevice";Xi.prototype={__class__:Xi};var Aj=function(){};g["openfl.ui.Keyboard"]=Aj;Aj.__name__="openfl.ui.Keyboard";Aj.__getCharCode=function(a,b){null==b&&(b=!1);if(b){switch(a){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(65<=a&&90>=a)return a-65+65}else{switch(a){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(48<=a&&57>=a)return a-48+48;if(65<=a&&90>=a)return a-65+97}if(96<=a&&105>=a)return a- +96+48;switch(a){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};var Ji=function(){};g["openfl.ui.Mouse"]=Ji;Ji.__name__="openfl.ui.Mouse";var ak={toLimeCursor:function(a){switch(a){case "arrow":return Ub.ARROW;case "auto":return Ub.DEFAULT;case "button":return Ub.POINTER;case "crosshair":return Ub.CROSSHAIR;case "custom":return Ub.CUSTOM;case "hand":return Ub.MOVE;case "ibeam":return Ub.TEXT; +case "resize_nesw":return Ub.RESIZE_NESW;case "resize_ns":return Ub.RESIZE_NS;case "resize_nwse":return Ub.RESIZE_NWSE;case "resize_we":return Ub.RESIZE_WE;case "wait":return Ub.WAIT;case "waitarrow":return Ub.WAIT_ARROW;default:return Ub.DEFAULT}}},ka=function(a){null==a&&(a=!1);this.debugEnabled=a;ka.initialized||ka.init()};g["openfl.utils.AGALMiniAssembler"]=ka;ka.__name__="openfl.utils.AGALMiniAssembler";ka.init=function(){ka.initialized=!0;var a=ka.OPMAP,b=new $a("mov",2,0,0);a.h.mov=b;a=ka.OPMAP; +b=new $a("add",3,1,0);a.h.add=b;a=ka.OPMAP;b=new $a("sub",3,2,0);a.h.sub=b;a=ka.OPMAP;b=new $a("mul",3,3,0);a.h.mul=b;a=ka.OPMAP;b=new $a("div",3,4,0);a.h.div=b;a=ka.OPMAP;b=new $a("rcp",2,5,0);a.h.rcp=b;a=ka.OPMAP;b=new $a("min",3,6,0);a.h.min=b;a=ka.OPMAP;b=new $a("max",3,7,0);a.h.max=b;a=ka.OPMAP;b=new $a("frc",2,8,0);a.h.frc=b;a=ka.OPMAP;b=new $a("sqt",2,9,0);a.h.sqt=b;a=ka.OPMAP;b=new $a("rsq",2,10,0);a.h.rsq=b;a=ka.OPMAP;b=new $a("pow",3,11,0);a.h.pow=b;a=ka.OPMAP;b=new $a("log",2,12,0);a.h.log= +b;a=ka.OPMAP;b=new $a("exp",2,13,0);a.h.exp=b;a=ka.OPMAP;b=new $a("nrm",2,14,0);a.h.nrm=b;a=ka.OPMAP;b=new $a("sin",2,15,0);a.h.sin=b;a=ka.OPMAP;b=new $a("cos",2,16,0);a.h.cos=b;a=ka.OPMAP;b=new $a("crs",3,17,0);a.h.crs=b;a=ka.OPMAP;b=new $a("dp3",3,18,0);a.h.dp3=b;a=ka.OPMAP;b=new $a("dp4",3,19,0);a.h.dp4=b;a=ka.OPMAP;b=new $a("abs",2,20,0);a.h.abs=b;a=ka.OPMAP;b=new $a("neg",2,21,0);a.h.neg=b;a=ka.OPMAP;b=new $a("sat",2,22,0);a.h.sat=b;a=ka.OPMAP;b=new $a("m33",3,23,16);a.h.m33=b;a=ka.OPMAP;b=new $a("m44", +3,24,16);a.h.m44=b;a=ka.OPMAP;b=new $a("m34",3,25,16);a.h.m34=b;a=ka.OPMAP;b=new $a("ddx",2,26,288);a.h.ddx=b;a=ka.OPMAP;b=new $a("ddy",2,27,288);a.h.ddy=b;a=ka.OPMAP;b=new $a("ife",2,28,897);a.h.ife=b;a=ka.OPMAP;b=new $a("ine",2,29,897);a.h.ine=b;a=ka.OPMAP;b=new $a("ifg",2,30,897);a.h.ifg=b;a=ka.OPMAP;b=new $a("ifl",2,31,897);a.h.ifl=b;a=ka.OPMAP;b=new $a("els",0,32,1921);a.h.els=b;a=ka.OPMAP;b=new $a("eif",0,33,1409);a.h.eif=b;a=ka.OPMAP;b=new $a("kil",1,39,160);a.h.kil=b;a=ka.OPMAP;b=new $a("tex", +3,40,40);a.h.tex=b;a=ka.OPMAP;b=new $a("sge",3,41,0);a.h.sge=b;a=ka.OPMAP;b=new $a("slt",3,42,0);a.h.slt=b;a=ka.OPMAP;b=new $a("sgn",2,43,0);a.h.sgn=b;a=ka.OPMAP;b=new $a("seq",3,44,0);a.h.seq=b;a=ka.OPMAP;b=new $a("sne",3,45,0);a.h.sne=b;a=ka.SAMPLEMAP;b=new Nb("rgba",8,0);a.h.rgba=b;a=ka.SAMPLEMAP;b=new Nb("compressed",8,1);a.h.compressed=b;a=ka.SAMPLEMAP;b=new Nb("compressedalpha",8,2);a.h.compressedalpha=b;a=ka.SAMPLEMAP;b=new Nb("dxt1",8,1);a.h.dxt1=b;a=ka.SAMPLEMAP;b=new Nb("dxt5",8,2);a.h.dxt5= +b;a=ka.SAMPLEMAP;b=new Nb("video",8,3);a.h.video=b;a=ka.SAMPLEMAP;b=new Nb("2d",12,0);a.h["2d"]=b;a=ka.SAMPLEMAP;b=new Nb("3d",12,2);a.h["3d"]=b;a=ka.SAMPLEMAP;b=new Nb("cube",12,1);a.h.cube=b;a=ka.SAMPLEMAP;b=new Nb("mipnearest",24,1);a.h.mipnearest=b;a=ka.SAMPLEMAP;b=new Nb("miplinear",24,2);a.h.miplinear=b;a=ka.SAMPLEMAP;b=new Nb("mipnone",24,0);a.h.mipnone=b;a=ka.SAMPLEMAP;b=new Nb("nomip",24,0);a.h.nomip=b;a=ka.SAMPLEMAP;b=new Nb("nearest",28,0);a.h.nearest=b;a=ka.SAMPLEMAP;b=new Nb("linear", +28,1);a.h.linear=b;a=ka.SAMPLEMAP;b=new Nb("anisotropic2x",28,2);a.h.anisotropic2x=b;a=ka.SAMPLEMAP;b=new Nb("anisotropic4x",28,3);a.h.anisotropic4x=b;a=ka.SAMPLEMAP;b=new Nb("anisotropic8x",28,4);a.h.anisotropic8x=b;a=ka.SAMPLEMAP;b=new Nb("anisotropic16x",28,5);a.h.anisotropic16x=b;a=ka.SAMPLEMAP;b=new Nb("centroid",16,1);a.h.centroid=b;a=ka.SAMPLEMAP;b=new Nb("single",16,2);a.h.single=b;a=ka.SAMPLEMAP;b=new Nb("ignoresampler",16,4);a.h.ignoresampler=b;a=ka.SAMPLEMAP;b=new Nb("repeat",20,1);a.h.repeat= +b;a=ka.SAMPLEMAP;b=new Nb("wrap",20,1);a.h.wrap=b;a=ka.SAMPLEMAP;b=new Nb("clamp",20,0);a.h.clamp=b;a=ka.SAMPLEMAP;b=new Nb("clamp_u_repeat_v",20,2);a.h.clamp_u_repeat_v=b;a=ka.SAMPLEMAP;b=new Nb("repeat_u_clamp_v",20,3);a.h.repeat_u_clamp_v=b};ka.prototype={assemble:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=1);var f=va.getTimer();this.agalcode=new Jc(0);this.error="";var k=!1;"fragment"==a?k=!0:"vertex"!=a&&(this.error='ERROR: mode needs to be "fragment" or "vertex" but is "'+a+'".');this.agalcode.__endian= +1;this.agalcode.writeByte(160);this.agalcode.writeUnsignedInt(c);this.agalcode.writeByte(161);this.agalcode.writeByte(k?1:0);this.initregmap(c,d);a=W.replace(b,"\r","\n").split("\n");b=0;d=a.length;for(var g=new ta("<.*>","g"),q=new ta("([\\w\\.\\-\\+]+)","gi"),h=new ta("^\\w{3}","ig"),w=new ta("vc\\[([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw](\\+\\d{1,3})?)?\\](\\.[xyzw]{1,4})?|([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw]{1,4})?","gi"),r=new ta("\\[.*\\]","ig"),m=new ta("^\\b[A-Za-z]{1,3}","ig"),l=new ta("\\d+", +""),G=new ta("(\\.[xyzw]{1,4})",""),C=new ta("[A-Za-z]{1,3}","ig"),I=new ta("(\\.[xyzw]{1,1})",""),v=new ta("\\+\\d{1,3}","ig"),D=0;D +c){this.error="error: opcode requires version 2.";break}if(0!=(A.flags&64)&&k){this.error="error: opcode is only allowed in vertex programs.";break}if(0!=(A.flags&32)&&!k){this.error="error: opcode is only allowed in fragment programs.";break}this.verbose&&Fa.info("emit opcode="+p.string(A),{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:308,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});this.agalcode.writeUnsignedInt(A.emitCode);++b;if(4096=P;)ma|=N<<(P-1<<1),++P}else ma=L?15:228;if(O){F=this.match(Oa[0],C);V=ka.REGMAP.h[F[0]];if(null==V){this.error="error: bad index register";E=!0;break}V=V.emitCode;N=this.match(Oa[0],I); +if(0==N.length){this.error="error: bad index register select";E=!0;break}M=aa.cca(N[0],1)-120;tb.gt(M,2)&&(M=3);Oa=this.match(Oa[0],v);0fb||255k.length&&(k="0"+k),c+=k;Fa.info(c,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:662,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})}this.verbose&&Fa.info("AGALMiniAssembler.assemble time: "+(va.getTimer()-f)/1E3+"s",{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:667,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});return this.agalcode},initregmap:function(a,b){var c=ka.REGMAP,d=new gd("va","vertex attribute",0,b?1024:1==a||2==a?7:15, +66);c.h.va=d;c=ka.REGMAP;d=new gd("vc","vertex constant",1,b?1024:1==a?127:249,66);c.h.vc=d;c=ka.REGMAP;d=new gd("vt","vertex temporary",2,b?1024:1==a?7:25,67);c.h.vt=d;c=ka.REGMAP;d=new gd("vo","vertex output",3,b?1024:0,65);c.h.vo=d;c=ka.REGMAP;d=new gd("vi","varying",4,b?1024:1==a?7:9,99);c.h.vi=d;c=ka.REGMAP;d=new gd("fc","fragment constant",1,b?1024:1==a?27:2==a?63:199,34);c.h.fc=d;c=ka.REGMAP;d=new gd("ft","fragment temporary",2,b?1024:1==a?7:25,35);c.h.ft=d;c=ka.REGMAP;d=new gd("fs","texture sampler", +5,b?1024:7,34);c.h.fs=d;c=ka.REGMAP;d=new gd("fo","fragment output",3,b?1024:1==a?0:3,33);c.h.fo=d;c=ka.REGMAP;d=new gd("fd","fragment depth output",6,b?1024:1==a?-1:0,33);c.h.fd=d;c=ka.REGMAP;d=new gd("iid","instance id",7,b?1024:0,66);c.h.iid=d;d=ka.REGMAP.h.vo;ka.REGMAP.h.op=d;d=ka.REGMAP.h.vi;ka.REGMAP.h.i=d;d=ka.REGMAP.h.vi;ka.REGMAP.h.v=d;d=ka.REGMAP.h.fo;ka.REGMAP.h.oc=d;d=ka.REGMAP.h.fd;ka.REGMAP.h.od=d;d=ka.REGMAP.h.vi;ka.REGMAP.h.fi=d},match:function(a,b){for(var c=[],d=0;b.matchSub(a,d);)d= +b.matched(0),c.push(d),d=b.matchedPos().pos+d.length;return c},__class__:ka};var $a=function(a,b,c,d){this.name=a;this.numRegister=b;this.emitCode=c;this.flags=d};g["openfl.utils._AGALMiniAssembler.OpCode"]=$a;$a.__name__="openfl.utils._AGALMiniAssembler.OpCode";$a.prototype={toString:function(){return'[OpCode name="'+this.name+'", numRegister='+this.numRegister+", emitCode="+this.emitCode+", flags="+this.flags+"]"},__class__:$a};var gd=function(a,b,c,d,f){this.name=a;this.longName=b;this.emitCode= +c;this.range=d;this.flags=f};g["openfl.utils._AGALMiniAssembler.Register"]=gd;gd.__name__="openfl.utils._AGALMiniAssembler.Register";gd.prototype={toString:function(){return'[Register name="'+this.name+'", longName="'+this.longName+'", emitCode='+(null==this.emitCode?"null":p.string(tb.toFloat(this.emitCode)))+", range="+(null==this.range?"null":p.string(tb.toFloat(this.range)))+", flags="+(null==this.flags?"null":p.string(tb.toFloat(this.flags)))+"]"},__class__:gd};var Nb=function(a,b,c){this.name= +a;this.flag=b;this.mask=c};g["openfl.utils._AGALMiniAssembler.Sampler"]=Nb;Nb.__name__="openfl.utils._AGALMiniAssembler.Sampler";Nb.prototype={__class__:Nb};var Wh=function(){};g["openfl.utils.IAssetCache"]=Wh;Wh.__name__="openfl.utils.IAssetCache";Wh.__isInterface__=!0;Wh.prototype={__class__:Wh,__properties__:{get_enabled:"get_enabled"}};var Xh=function(){this.__enabled=!0;this.bitmapData=new La;this.font=new La;this.sound=new La};g["openfl.utils.AssetCache"]=Xh;Xh.__name__="openfl.utils.AssetCache"; +Xh.__interfaces__=[Wh];Xh.prototype={getBitmapData:function(a){return this.bitmapData.h[a]},hasBitmapData:function(a){return Object.prototype.hasOwnProperty.call(this.bitmapData.h,a)},hasFont:function(a){return Object.prototype.hasOwnProperty.call(this.font.h,a)},hasSound:function(a){return Object.prototype.hasOwnProperty.call(this.sound.h,a)},setBitmapData:function(a,b){this.bitmapData.h[a]=b},get_enabled:function(){return this.__enabled},__class__:Xh,__properties__:{get_enabled:"get_enabled"}}; +var Ad=function(){Ab.call(this)};g["openfl.utils.AssetLibrary"]=Ad;Ad.__name__="openfl.utils.AssetLibrary";Ad.fromBundle=function(a){a=Ab.fromBundle(a);if(null!=a){if(a instanceof Ad)return a;var b=new Ad;b.__proxy=a;return b}return null};Ad.fromManifest=function(a){a=Ab.fromManifest(a);if(null!=a){if(a instanceof Ad)return a;var b=new Ad;b.__proxy=a;return b}return null};Ad.__super__=Ab;Ad.prototype=t(Ab.prototype,{bind:function(a,b){return!1},exists:function(a,b){return null!=this.__proxy?this.__proxy.exists(a, +b):Ab.prototype.exists.call(this,a,b)},getAsset:function(a,b){return null!=this.__proxy?this.__proxy.getAsset(a,b):Ab.prototype.getAsset.call(this,a,b)},getAudioBuffer:function(a){return null!=this.__proxy?this.__proxy.getAudioBuffer(a):Ab.prototype.getAudioBuffer.call(this,a)},getBytes:function(a){return null!=this.__proxy?this.__proxy.getBytes(a):Ab.prototype.getBytes.call(this,a)},getFont:function(a){return null!=this.__proxy?this.__proxy.getFont(a):Ab.prototype.getFont.call(this,a)},getImage:function(a){return null!= +this.__proxy?this.__proxy.getImage(a):Ab.prototype.getImage.call(this,a)},getMovieClip:function(a){return null},getPath:function(a){return null!=this.__proxy?this.__proxy.getPath(a):Ab.prototype.getPath.call(this,a)},getText:function(a){return null!=this.__proxy?this.__proxy.getText(a):Ab.prototype.getText.call(this,a)},isLocal:function(a,b){return null!=this.__proxy?this.__proxy.isLocal(a,b):Ab.prototype.isLocal.call(this,a,b)},loadAsset:function(a,b){return null!=this.__proxy?this.__proxy.loadAsset(a, +b):Ab.prototype.loadAsset.call(this,a,b)},load:function(){return null!=this.__proxy?this.__proxy.load():Ab.prototype.load.call(this)},loadAudioBuffer:function(a){return null!=this.__proxy?this.__proxy.loadAudioBuffer(a):Ab.prototype.loadAudioBuffer.call(this,a)},loadBytes:function(a){return null!=this.__proxy?this.__proxy.loadBytes(a):Ab.prototype.loadBytes.call(this,a)},loadFont:function(a){return null!=this.__proxy?this.__proxy.loadFont(a):Ab.prototype.loadFont.call(this,a)},loadImage:function(a){return null!= +this.__proxy?this.__proxy.loadImage(a):Ab.prototype.loadImage.call(this,a)},loadMovieClip:function(a){return rb.withValue(this.getMovieClip(a))},loadText:function(a){return null!=this.__proxy?this.__proxy.loadText(a):Ab.prototype.loadText.call(this,a)},unload:function(){null!=this.__proxy?this.__proxy.unload():Ab.prototype.unload.call(this)},__class__:Ad});var cb=function(){};g["openfl.utils.Assets"]=cb;cb.__name__="openfl.utils.Assets";cb.exists=function(a,b){return la.exists(a,b)};cb.getBitmapData= +function(a,b){null==b&&(b=!0);if(b&&cb.cache.get_enabled()&&cb.cache.hasBitmapData(a)){var c=cb.cache.getBitmapData(a);if(cb.isValidBitmapData(c))return c}c=la.getImage(a,!1);return null!=c?(c=xb.fromImage(c),b&&cb.cache.get_enabled()&&cb.cache.setBitmapData(a,c),c):null};cb.getLibrary=function(a){return la.getLibrary(a)};cb.getMovieClip=function(a){var b=a.substring(0,a.indexOf(":")),c=aa.substr(a,a.indexOf(":")+1,null),d=cb.getLibrary(b);if(null!=d){if(d instanceof Ad&&d.exists(c,"MOVIE_CLIP")){if(d.isLocal(c, +"MOVIE_CLIP"))return d.getMovieClip(c);Fa.error('MovieClip asset "'+a+'" exists, but only asynchronously',{fileName:"openfl/utils/Assets.hx",lineNumber:215,className:"openfl.utils.Assets",methodName:"getMovieClip"});return null}Fa.error('There is no MovieClip asset with an ID of "'+a+'"',{fileName:"openfl/utils/Assets.hx",lineNumber:221,className:"openfl.utils.Assets",methodName:"getMovieClip"})}else Fa.error('There is no asset library named "'+b+'"',{fileName:"openfl/utils/Assets.hx",lineNumber:225, +className:"openfl.utils.Assets",methodName:"getMovieClip"});return null};cb.hasLibrary=function(a){return la.hasLibrary(a)};cb.isLocal=function(a,b,c){null==c&&(c=!0);if(c&&cb.cache.get_enabled()&&(("IMAGE"==b||null==b)&&cb.cache.hasBitmapData(a)||("FONT"==b||null==b)&&cb.cache.hasFont(a)||("SOUND"==b||"MUSIC"==b||null==b)&&cb.cache.hasSound(a)))return!0;c=a.substring(0,a.indexOf(":"));a=aa.substr(a,a.indexOf(":")+1,null);c=cb.getLibrary(c);return null!=c?c.isLocal(a,b):!1};cb.isValidBitmapData=function(a){return null!= +a&&null!=a.image};cb.loadBitmapData=function(a,b){null==b&&(b=!0);null==b&&(b=!0);var c=new Ic;if(b&&cb.cache.get_enabled()&&cb.cache.hasBitmapData(a)){var d=cb.cache.getBitmapData(a);if(cb.isValidBitmapData(d))return c.complete(d),c.future}la.loadImage(a,!1).onComplete(function(d){null!=d?(d=xb.fromImage(d),b&&cb.cache.get_enabled()&&cb.cache.setBitmapData(a,d),c.complete(d)):c.error('[Assets] Could not load Image "'+a+'"')}).onError(h(c,c.error)).onProgress(h(c,c.progress));return c.future};cb.loadMovieClip= +function(a){var b=new Ic,c=a.substring(0,a.indexOf(":")),d=aa.substr(a,a.indexOf(":")+1,null),f=cb.getLibrary(c);if(null!=f){if(f instanceof Ad&&f.exists(d,"MOVIE_CLIP"))return b.completeWith(f.loadMovieClip(d)),b.future;b.error('[Assets] There is no MovieClip asset with an ID of "'+a+'"')}else b.error('[Assets] There is no asset library named "'+c+'"');return b.future};cb.registerLibrary=function(a,b){la.registerLibrary(a,b)};cb.unloadLibrary=function(a){la.unloadLibrary(a)};var le={__properties__:{set_length:"set_length", +get_length:"get_length"},fromBytes:function(a){return null==a?null:a instanceof Jc?a:Jc.fromBytes(a)},toBytes:function(a){return a},get_length:function(a){return null==a?0:a.length},set_length:function(a,b){0<=b&&(a.__resize(b),bthis.length)throw new Fg;this.position+=a;return this.getString(this.position-a,a)},writeByte:function(a){this.__resize(this.position+1);this.b[this.position++]=a&255},writeInt:function(a){this.__resize(this.position+ +4);1==this.__endian?(this.b[this.position++]=a&255,this.b[this.position++]=a>>8&255,this.b[this.position++]=a>>16&255,this.b[this.position++]=a>>24&255):(this.b[this.position++]=a>>24&255,this.b[this.position++]=a>>16&255,this.b[this.position++]=a>>8&255,this.b[this.position++]=a&255)},writeShort:function(a){this.__resize(this.position+2);1==this.__endian?(this.b[this.position++]=a&255,this.b[this.position++]=a>>8&255):(this.b[this.position++]=a>>8&255,this.b[this.position++]=a&255)},writeUnsignedInt:function(a){this.writeInt(a)}, +__fromBytes:function(a){this.b=a.b;this.__allocated=a.length;this.data=a.data;this.length=a.length},__resize:function(a){if(a>this.__allocated){var b=new yb(new ArrayBuffer(3*(a+1)>>1));if(0a?String.fromCharCode(a):String.fromCharCode((a>>10)+55232)+String.fromCharCode((a&1023)+56320)});Object.defineProperty(String.prototype,"__class__",{value:g.String=String,enumerable:!1,writable:!0});String.__name__="String";g.Array=Array;Array.__name__="Array";Date.prototype.__class__=g.Date=Date;Date.__name__="Date";var Gj={},Sj={},Tj=Number,Rj=Boolean,Ij={},Uj={};v.__toStr={}.toString;"undefined"==typeof window&&(x.onmessage=function(a){a=a.data;try{x.onmessage=(z=za.__current, +h(z,z.dispatchMessage)),Gd.toFunction(a)()}catch(b){Ia.lastError=b,za.__current.destroy()}});X.__alpha16=new Uint32Array(256);for(var Rf=0;256>Rf;){var Ig=Rf++;X.__alpha16[Ig]=Math.ceil(257.00392156862745*Ig)}X.__clamp=new Uint8Array(511);for(Rf=0;255>Rf;)Ig=Rf++,X.__clamp[Ig]=Ig;for(Rf=255;511>Rf;)Ig=Rf++,X.__clamp[Ig]=255;Fa.level=3;"undefined"==typeof console&&(console={});null==console.log&&(console.log=function(){});B.hitTestCanvas=og.get_supported()?window.document.createElement("canvas"):null; +B.hitTestContext=og.get_supported()?B.hitTestCanvas.getContext("2d"):null;L.__meta__={fields:{__cairo:{SuppressWarnings:["checkstyle:Dynamic"]},addEventListener:{SuppressWarnings:["checkstyle:Dynamic"]},removeEventListener:{SuppressWarnings:["checkstyle:Dynamic"]}}};L.__broadcastEvents=new La;L.__instanceCount=0;L.__tempStack=new Na(function(){return oa.toObjectVector(null)},function(a){a.set_length(0)});Y.__meta__={fields:{layoutData:{style:null},focusRectSkin:{style:null}}};na.__meta__={obj:{defaultXmlProperty:["xmlContent"]}}; +na.VARIANT_TOOL_BAR="toolBar";mb.__meta__={obj:{defaultXmlProperty:["text"]}};mb.VARIANT_PRIMARY="primary";mb.VARIANT_DANGER="danger";ub.__meta__={obj:{defaultXmlProperty:["content"]}};ub.INVALIDATION_FLAG_ORIGIN=E.CUSTOM("origin");q.INVALIDATION_FLAG_DECREMENT_BUTTON_FACTORY=E.CUSTOM("decrementButtonFactory");q.INVALIDATION_FLAG_INCREMENT_BUTTON_FACTORY=E.CUSTOM("incrementButtonFactory");q.defaultDecrementButtonFactory=Va.withClass(mb);q.defaultIncrementButtonFactory=Va.withClass(mb);w.CHILD_VARIANT_DECREMENT_BUTTON= +"hScrollBar_decrementButton";w.CHILD_VARIANT_INCREMENT_BUTTON="hScrollBar_incrementButton";ra.__meta__={obj:{defaultXmlProperty:["text"]}};ra.VARIANT_HEADING="heading";ra.VARIANT_DETAIL="detail";ra.VARIANT_DANGER="danger";pc.CHILD_VARIANT_DECREMENT_BUTTON="vScrollBar_decrementButton";pc.CHILD_VARIANT_INCREMENT_BUTTON="vScrollBar_incrementButton";Xa.INVALIDATION_FLAG_SCROLLER_FACTORY=E.CUSTOM("scrollerFactory");Xa.INVALIDATION_FLAG_SCROLL_BAR_FACTORY=E.CUSTOM("scrollBarFactory");Xa.defaultScrollBarXFactory= +Va.withClass(w);Xa.defaultScrollBarYFactory=Va.withClass(pc);Ya.__meta__={obj:{defaultXmlProperty:["dataProvider"]}};Ya.VARIANT_BORDERLESS="borderless";Ya.VARIANT_BORDER="border";Ya.VARIANT_POP_UP="popUp";Ya.CHILD_VARIANT_ITEM_RENDERER="listView_itemRenderer";Ya.DEFAULT_DRAG_FORMAT_ITEMS="items";Ya.INVALIDATION_FLAG_ITEM_RENDERER_FACTORY=E.CUSTOM("itemRendererFactory");Ya.RESET_ITEM_STATE=new nd;bc.__meta__={obj:{defaultXmlProperty:["xmlContent"]}};Pb.__meta__={obj:{defaultXmlProperty:["dataProvider"]}}; +Pb.INVALIDATION_FLAG_BUTTON_FACTORY=E.CUSTOM("buttonFactory");Pb.INVALIDATION_FLAG_LIST_VIEW_FACTORY=E.CUSTOM("listViewFactory");Pb.CHILD_VARIANT_BUTTON="popUpListView_button";Pb.CHILD_VARIANT_LIST_VIEW="popUpListView_listView";Pb.defaultButtonFactory=Va.withClass(mb);Pb.defaultListViewFactory=Va.withClass(Ya);Ec.__meta__={obj:{defaultXmlProperty:["text"]}};Ec.VARIANT_DANGER="danger";Qb.__meta__={obj:{defaultXmlProperty:["text"]}};Aa.WRAP_OBJECT_HIGH_TAB_INDEX=2147483647;ge.CHILD_VARIANT_TOOL_TIP= +"toolTip";dc.stageToManager=new Ea;dc._focusManagerFactory=dc.defaultFocusManagerFactory;pb.stageToManager=new Ea;tc._toolTipManagerFactory=tc.defaultToolTipManagerFactory;tc.stageToManager=new Ea;Nd.STAGE_TO_VALIDATION_QUEUE=new Ea;Pe.__meta__={obj:{defaultXmlProperty:["array"]}};Z._dropTargetLocalX=0;Z._dropTargetLocalY=0;Z.dragAvatarOffsetX=1;Z.dragAvatarOffsetY=1;Z.dropAccepted=!1;Z._oldDragAvatarMouseEnabled=!1;Z._oldDragAvatarMouseChildren=!1;Vc._pool=new Na(function(){return new Vc(null,null, +!1)},function(a){a.target=null;a.currentTarget=null;a.__preventDefault=!1;a.__isCanceled=!1;a.__isCanceledNow=!1});Ca._pool=new Na(function(){return new Ca(null,!1,!1)},function(a){a.target=null;a.currentTarget=null;a.__preventDefault=!1;a.__isCanceled=!1;a.__isCanceledNow=!1});od._pool=new Na(function(){return new od(null,-1,!1,!1)},function(a){a.target=null;a.currentTarget=null;a.__preventDefault=!1;a.__isCanceled=!1;a.__isCanceledNow=!1;a.addedItem=null;a.removedItem=null});yd._pool=new Na(function(){return new yd(null, +null)},function(a){a.target=null;a.currentTarget=null;a.__preventDefault=!1;a.__isCanceled=!1;a.__isCanceledNow=!1;a.state=null});Ob._pool=new Na(function(){return new Ob(null,!1,!1)},function(a){a.target=null;a.currentTarget=null;a.__preventDefault=!1;a.__isCanceled=!1;a.__isCanceledNow=!1});pd._pool=new Na(function(){return new pd(null,null)},function(a){a.target=null;a.currentTarget=null;a.__preventDefault=!1;a.__isCanceled=!1;a.__isCanceledNow=!1;a.affectsTarget=null});zc._pool=new Na(function(){return new zc(null)}, +function(a){a.target=null;a.currentTarget=null;a.__preventDefault=!1;a.__isCanceled=!1;a.__isCanceledNow=!1;a.relatedObject=null});Oc.MEDIA_QUERY_DESKTOP="screen and (hover: hover) and (pointer: fine)";Fc.stageToObject=new Ea;md.MINIMUM_VELOCITY=.02;md.POINTER_ID_MOUSE=-1E3;Wc.DEFAULT_RESOLVER=new Zg;Wc.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";Bc.LEN_EXTRA_BITS_TBL=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,-1,-1];Bc.LEN_BASE_VAL_TBL=[3,4,5,6,7,8,9, +10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258];Bc.DIST_EXTRA_BITS_TBL=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,-1,-1];Bc.DIST_BASE_VAL_TBL=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];Bc.CODE_LENGTHS_POS=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];xa.activeRequests=0;xa.requestLimit=17;xa.requestQueue=new ua;za.__current=new za(x.location.href);za.__isWorker="undefined"== +typeof window;za.__messages=new ua;za.__resolveMethods=new ua;za.__workerCount=0;Ha.dummyCharacter="\u007f";Ha.windowID=0;Td.DICTIONARY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Td.EXTENDED_DICTIONARY=function(a){a=[];for(var b=0,c=Td.DICTIONARY;b","gi");wa.__regexBlockIndent=new ta("blockindent\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");wa.__regexClass=new ta("class\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");wa.__regexColor=new ta("color\\s?=\\s?(\"#([^\"]+)\"|'#([^']+)')","i");wa.__regexEntityApos=new ta("'","g");wa.__regexEntityNbsp=new ta(" ","g");wa.__regexCharEntity=new ta("&#(?:([0-9]+)|(x[0-9a-fA-F]+));","g");wa.__regexFace= +new ta("face\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");wa.__regexHTMLTag=new ta("<.*?>","g");wa.__regexHref=new ta("href\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");wa.__regexIndent=new ta(" indent\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");wa.__regexLeading=new ta("leading\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");wa.__regexLeftMargin=new ta("leftmargin\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");wa.__regexRightMargin=new ta("rightmargin\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");wa.__regexSize=new ta("size\\s?=\\s?(\"([^\"]+)\"|'([^']+)')", +"i");wa.__regexTabStops=new ta("tabstops\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");Qf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};vb.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Vh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Sa.__meta__={fields:{addEventListener:{SuppressWarnings:["checkstyle:Dynamic"]}}};Sa.numDevices=0;Sa.__deviceList=[];Sa.__instances=[];Sa.__devices=new Ea;Ji.__cursor="auto";ka.__meta__={obj:{SuppressWarnings:[["checkstyle:ConstantName", +"checkstyle:FieldDocComment"]]}};ka.OPMAP=new La;ka.REGMAP=new La;ka.SAMPLEMAP=new La;ka.initialized=!1;$a.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};gd.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Nb.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};cb.cache=new Xh;Jc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Jc.defaultObjectEncoding=10;Uc.__meta__={statics:{__get:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Yh.__meta__= +{obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Zh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Ac.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ff.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{touch:{SuppressWarnings:["checkstyle:Dynamic"]}}};ff.__pool=new Na(function(){return new ff},function(a){a.reset()});V.main()})("undefined"!=typeof l?l:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!= +typeof window?window:"undefined"!=typeof x?x:"undefined"!=typeof self?self:this)};"undefined"!==typeof self&&self.constructor.name.includes("Worker")?F({},l):(x.lime=x.lime||{},x.lime.$scripts=x.lime.$scripts||{},x.lime.$scripts.ListViewDragAndDrop=F,x.lime.embed=function(F){var y={},H=x.lime.$scripts[F];if(!H)throw Error('Cannot find project name "'+F+'"');H(y,l);for(var V in y)x[V]=x[V]||y[V];(H=y.lime||window.lime)&&H.embed&&this!==H.embed&&H.embed.apply(H,arguments);return y});"function"===typeof define&& +define.amd&&(define([],function(){return x.lime}),define.__amd=define.amd,define.amd=null)};$lime_init("undefined"!==typeof exports?exports:"function"===typeof define&&define.amd?{}:"undefined"!==typeof window?window:"undefined"!==typeof self?self:this,"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this); +"undefined"!==typeof self&&self.constructor.name.includes("Worker")||(!function(){var x=function(){this.init()};x.prototype={init:function(){var g=this||l;return g._counter=1E3,g._html5AudioPool=[],g.html5PoolSize=10,g._codecs={},g._howls=[],g._muted=!1,g._volume=1,g._canPlayEvent="canplaythrough",g._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,g.masterGain=null,g.noAudio=!1,g.usingWebAudio=!0,g.autoSuspend=!0,g.ctx=null,g.autoUnlock=!0,g._setup(),g},volume:function(g){var r= +this||l;if(g=parseFloat(g),r.ctx||h(),void 0!==g&&0<=g&&1>=g){if(r._volume=g,r._muted)return r;r.usingWebAudio&&r.masterGain.gain.setValueAtTime(g,l.ctx.currentTime);for(var D=0;DparseInt(x[0].split("/")[1],10);var t=-1!==z.indexOf("Safari")&&-1===z.indexOf("Chrome");z=z.match(/Version\/(.*?) /);z=t&&z&&15>parseInt(z[1],10);return g._codecs={mp3:!(x||!D&&!h.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!D,opus:!!h.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!h.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, +""),oga:!!h.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(h.canPlayType('audio/wav; codecs="1"')||h.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!h.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!h.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(h.canPlayType("audio/x-m4a;")||h.canPlayType("audio/m4a;")||h.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(h.canPlayType("audio/x-m4b;")||h.canPlayType("audio/m4b;")||h.canPlayType("audio/aac;")).replace(/^no$/, +""),mp4:!!(h.canPlayType("audio/x-mp4;")||h.canPlayType("audio/mp4;")||h.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(z||!h.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(z||!h.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!h.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(h.canPlayType("audio/x-flac;")||h.canPlayType("audio/flac;")).replace(/^no$/,"")},g},_unlockAudio:function(){var g=this||l;if(!g._audioUnlocked&&g.ctx){g._audioUnlocked= +!1;g.autoUnlock=!1;g._mobileUnloaded||44100===g.ctx.sampleRate||(g._mobileUnloaded=!0,g.unload());g._scratchBuffer=g.ctx.createBuffer(1,1,22050);var h=function(r){for(;g._html5AudioPool.length=oa)return void r._ended(y);var O=y._node;if(r._webAudio)z=function(){r._playLock=!1;Na();r._refreshBuffer(y);O.gain.setValueAtTime(y._muted||r._muted?0:y._volume,l.ctx.currentTime);y._playStart=l.ctx.currentTime;void 0===O.bufferSource.start?y._loop?O.bufferSource.noteGrainOn(0,H,86400):O.bufferSource.noteGrainOn(0,H,V):y._loop?O.bufferSource.start(0,H,86400):O.bufferSource.start(0,H,V);M!==1/0&&(r._endTimers[y._id]=setTimeout(r._ended.bind(r, +y),M));h||setTimeout(function(){r._emit("play",y._id);r._loadQueue()},0)},"running"===l.state&&"interrupted"!==l.ctx.state?z():(r._playLock=!0,r.once("resume",z),r._clearTimer(y._id));else{var Ea=function(){O.currentTime=H;O.muted=y._muted||r._muted||l._muted||O.muted;O.volume=y._volume*l.volume();O.playbackRate=y._rate;try{var D=O.play();if(D&&"undefined"!=typeof Promise&&(D instanceof Promise||"function"==typeof D.then)?(r._playLock=!0,Na(),D.then(function(){r._playLock=!1;O._unlocked=!0;h?r._loadQueue(): +r._emit("play",y._id)}).catch(function(){r._playLock=!1;r._emit("playerror",y._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");y._ended=!0;y._paused=!0})):h||(r._playLock=!1,Na(),r._emit("play",y._id)),O.playbackRate=y._rate,O.paused)return void r._emit("playerror",y._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."); +"__default"!==g||y._loop?r._endTimers[y._id]=setTimeout(r._ended.bind(r,y),M):(r._endTimers[y._id]=function(){r._ended(y);O.removeEventListener("ended",r._endTimers[y._id],!1)},O.addEventListener("ended",r._endTimers[y._id],!1))}catch(ha){r._emit("playerror",y._id,ha)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===O.src&&(O.src=r._src,O.load());z=window&&window.ejecta||!O.readyState&&l._navigator.isCocoonJS;if(3<=O.readyState||z)Ea();else{r._playLock= +!0;r._state="loading";var ua=function(){r._state="loaded";Ea();O.removeEventListener(l._canPlayEvent,ua,!1)};O.addEventListener(l._canPlayEvent,ua,!1);r._clearTimer(y._id)}}return y._id},pause:function(g,h){var r=this;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"pause",action:function(){r.pause(g)}}),r;for(var l=r._getSoundIds(g),x=0;x=g))return y=h?t._soundById(h):t._sounds[0],y?y._volume:0;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"volume",action:function(){t.volume.apply(t,x)}}),t;void 0===h&&(t._volume=g);h=t._getSoundIds(h);for(var F=0;Fz?Math.max(l,D):Math.min(l,D);r._webAudio?g._volume=D:r.volume(D,g._id,!0);y&&(r._volume=D);(lh&&D>=l)&&(clearInterval(g._interval), +g._interval=null,g._fadeTo=null,r.volume(l,g._id),r._emit("fade",g._id))},x)},_stopFade:function(g){var h=this._soundById(g);return h&&h._interval&&(this._webAudio&&h._node.gain.cancelScheduledValues(l.ctx.currentTime),clearInterval(h._interval),h._interval=null,this.volume(h._fadeTo,g),h._fadeTo=null,this._emit("fade",g)),this},loop:function(){var g,h,l,t=arguments;if(0===t.length)return this._loop;if(1===t.length){if("boolean"!=typeof t[0])return!!(l=this._soundById(parseInt(t[0],10)))&&l._loop; +this._loop=g=t[0]}else 2===t.length&&(g=t[0],h=parseInt(t[1],10));h=this._getSoundIds(h);for(t=0;th&&(g=/safari/.test(l._navigator&&l._navigator.userAgent.toLowerCase()),l._navigator&&!g&&(l.usingWebAudio=!1));l.usingWebAudio&&(l.masterGain=void 0===l.ctx.createGain? +l.ctx.createGainNode():l.ctx.createGain(),l.masterGain.gain.setValueAtTime(l._muted?0:l._volume,l.ctx.currentTime),l.masterGain.connect(l.ctx.destination));l._setup()}};"function"==typeof define&&define.amd&&define([],function(){return{Howler:l,Howl:F}});"undefined"!=typeof exports&&(exports.Howler=l,exports.Howl=F);"undefined"!=typeof global?(global.HowlerGlobal=x,global.Howler=l,global.Howl=F,global.Sound=H):"undefined"!=typeof window&&(window.HowlerGlobal=x,window.Howler=l,window.Howl=F,window.Sound= +H)}(),!function(){HowlerGlobal.prototype._pos=[0,0,0];HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0];HowlerGlobal.prototype.stereo=function(l){if(!this.ctx||!this.ctx.listener)return this;for(var x=this._howls.length-1;0<=x;x--)this._howls[x].stereo(l);return this};HowlerGlobal.prototype.pos=function(l,x,H){return this.ctx&&this.ctx.listener?(x="number"!=typeof x?this._pos[1]:x,H="number"!=typeof H?this._pos[2]:H,"number"!=typeof l?this._pos:(this._pos=[l,x,H],void 0!==this.ctx.listener.positionX? +(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this)):this};HowlerGlobal.prototype.orientation=function(l,x,H,y,J,V){if(!this.ctx||!this.ctx.listener)return this;var t=this._orientation;return x="number"!=typeof x?t[1]:x,H="number"!= +typeof H?t[2]:H,y="number"!=typeof y?t[3]:y,J="number"!=typeof J?t[4]:J,V="number"!=typeof V?t[5]:V,"number"!=typeof l?t:(this._orientation=[l,x,H,y,J,V],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(l,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(x,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(H,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(y,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(J, +Howler.ctx.currentTime,.1),this.ctx.listener.upZ.setTargetAtTime(V,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(l,x,H,y,J,V),this)};Howl.prototype.init=function(l){return function(x){return this._orientation=x.orientation||[1,0,0],this._stereo=x.stereo||null,this._pos=x.pos||null,this._pannerAttr={coneInnerAngle:void 0!==x.coneInnerAngle?x.coneInnerAngle:360,coneOuterAngle:void 0!==x.coneOuterAngle?x.coneOuterAngle:360,coneOuterGain:void 0!==x.coneOuterGain?x.coneOuterGain:0,distanceModel:void 0!== +x.distanceModel?x.distanceModel:"inverse",maxDistance:void 0!==x.maxDistance?x.maxDistance:1E4,panningModel:void 0!==x.panningModel?x.panningModel:"HRTF",refDistance:void 0!==x.refDistance?x.refDistance:1,rolloffFactor:void 0!==x.rolloffFactor?x.rolloffFactor:1},this._onstereo=x.onstereo?[{fn:x.onstereo}]:[],this._onpos=x.onpos?[{fn:x.onpos}]:[],this._onorientation=x.onorientation?[{fn:x.onorientation}]:[],l.call(this,x)}}(Howl.prototype.init);Howl.prototype.stereo=function(l,F){var H=this;if(!H._webAudio)return H; +if("loaded"!==H._state)return H._queue.push({event:"stereo",action:function(){H.stereo(l,F)}}),H;var y=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===F){if("number"!=typeof l)return H._stereo;H._stereo=l;H._pos=[l,0,0]}for(var J=H._getSoundIds(F),V=0;Vl.windowBits&&(l.windowBits+=16);this.err=0;this.msg= +"";this.ended=!1;this.chunks=[];this.strm=new g;this.strm.avail_out=0;var H=V.deflateInit2(this.strm,l.level,l.method,l.windowBits,l.memLevel,l.strategy);if(H!==D)throw Error(h[H]);if(l.header&&V.deflateSetHeader(this.strm,l.header),l.dictionary){var F;if(F="string"==typeof l.dictionary?M.string2buf(l.dictionary):"[object ArrayBuffer]"===r.call(l.dictionary)?new Uint8Array(l.dictionary):l.dictionary,H=V.deflateSetDictionary(this.strm,F),H!==D)throw Error(h[H]);this._dict_set=!0}}function J(g,h){h= +new y(h);if(h.push(g,!0),h.err)throw h.msg;return h.result}var V=l("./zlib/deflate"),t=l("./utils/common"),M=l("./utils/strings"),h=l("./zlib/messages"),g=l("./zlib/zstream"),r=Object.prototype.toString,D=0,z=-1,ma=0,sa=8;y.prototype.push=function(g,h){var l,y=this.strm,z=this.options.chunkSize;if(this.ended)return!1;h=h===~~h?h:!0===h?4:0;"string"==typeof g?y.input=M.string2buf(g):"[object ArrayBuffer]"===r.call(g)?y.input=new Uint8Array(g):y.input=g;y.next_in=0;y.avail_in=y.input.length;do{if(0=== +y.avail_out&&(y.output=new t.Buf8(z),y.next_out=0,y.avail_out=z),l=V.deflate(y,h),1!==l&&l!==D)return this.onEnd(l),this.ended=!0,!1;0!==y.avail_out&&(0!==y.avail_in||4!==h&&2!==h)||("string"===this.options.to?this.onData(M.buf2binstring(t.shrinkBuf(y.output,y.next_out))):this.onData(t.shrinkBuf(y.output,y.next_out)))}while((0z.windowBits&&(z.windowBits=-z.windowBits,0===z.windowBits&&(z.windowBits=-15));!(0<=z.windowBits&&16>z.windowBits)||l&&l.windowBits||(z.windowBits+=32);15z.windowBits&&0===(15&z.windowBits)&&(z.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new r;this.strm.avail_out=0;l=V.inflateInit2(this.strm,z.windowBits);if(l!==h.Z_OK)throw Error(g[l]); +this.header=new D;V.inflateGetHeader(this.strm,this.header)}function J(g,h){h=new y(h);if(h.push(g,!0),h.err)throw h.msg;return h.result}var V=l("./zlib/inflate"),t=l("./utils/common"),M=l("./utils/strings"),h=l("./zlib/constants"),g=l("./zlib/messages"),r=l("./zlib/zstream"),D=l("./zlib/gzheader"),z=Object.prototype.toString;y.prototype.push=function(g,l){var r,y,D,H,F,J=this.strm,sa=this.options.chunkSize,ma=this.options.dictionary,O=!1;if(this.ended)return!1;l=l===~~l?l:!0===l?h.Z_FINISH:h.Z_NO_FLUSH; +"string"==typeof g?J.input=M.binstring2buf(g):"[object ArrayBuffer]"===z.call(g)?J.input=new Uint8Array(g):J.input=g;J.next_in=0;J.avail_in=J.input.length;do{if(0===J.avail_out&&(J.output=new t.Buf8(sa),J.next_out=0,J.avail_out=sa),r=V.inflate(J,h.Z_NO_FLUSH),r===h.Z_NEED_DICT&&ma&&(F="string"==typeof ma?M.string2buf(ma):"[object ArrayBuffer]"===z.call(ma)?new Uint8Array(ma):ma,r=V.inflateSetDictionary(this.strm,F)),r===h.Z_BUF_ERROR&&!0===O&&(r=h.Z_OK,O=!1),r!==h.Z_STREAM_END&&r!==h.Z_OK)return this.onEnd(r), +this.ended=!0,!1;J.next_out&&(0!==J.avail_out&&r!==h.Z_STREAM_END&&(0!==J.avail_in||l!==h.Z_FINISH&&l!==h.Z_SYNC_FLUSH)||("string"===this.options.to?(y=M.utf8border(J.output,J.next_out),D=J.next_out-y,H=M.buf2string(J.output,y),J.next_out=D,J.avail_out=sa-D,D&&t.arraySet(J.output,J.output,y,D,0),this.onData(H)):this.onData(t.shrinkBuf(J.output,J.next_out))));0===J.avail_in&&0===J.avail_out&&(O=!0)}while((0g&&(h.subarray&&t||!h.subarray&&V))return String.fromCharCode.apply(null,J.shrinkBuf(h,g));for(var l="",y=0;yl;l++)M[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;M[254]=M[254]=1;H.string2buf=function(h){var g,l,t,y=h.length,H=0;for(l=0;lF?1:2048>F?2:65536>F?3:4}var V=new J.Buf8(H);for(l=t=0;tF?V[t++]= +F:2048>F?(V[t++]=192|F>>>6,V[t++]=128|63&F):65536>F?(V[t++]=224|F>>>12,V[t++]=128|F>>>6&63,V[t++]=128|63&F):(V[t++]=240|F>>>18,V[t++]=128|F>>>12&63,V[t++]=128|F>>>6&63,V[t++]=128|63&F);return V};H.buf2binstring=function(h){return y(h,h.length)};H.binstring2buf=function(h){for(var g=new J.Buf8(h.length),l=0,t=g.length;lt)F[l++]=t;else if(z=M[t],4t?F[l++]=t:(t-=65536,F[l++]=55296|t>>10&1023,F[l++]=56320|1023&t)}return y(F,l)};H.utf8border=function(h,g){var l;g=g||h.length;g>h.length&&(g=h.length);for(l=g-1;0<=l&&128===(192&h[l]);)l--;return 0>l?g:0===l?g:l+M[h[l]]>g?l:g}},{"./common":3}],5:[function(l,F,H){F.exports=function(l,H,F,t){var y=65535&l|0;l=l>>>16&65535|0;for(var h;0!==F;){h=2E3t;t++){l=t; +for(var H=0;8>H;H++)l=1&l?3988292384^l>>>1:l>>>1;y[t]=l}return y}();F.exports=function(l,H,t,F){t=F+t;for(l^=-1;F>>8^y[255&(l^H[F])];return l^-1}},{}],8:[function(l,F,H){function y(g,h){return g.msg=Na[h],h}function J(g){for(var h=g.length;0<=--h;)g[h]=0}function V(g){var h=g.state,l=h.pending;l>g.avail_out&&(l=g.avail_out);0!==l&&(Ua.arraySet(g.output,h.pending_buf,h.pending_out,l,g.next_out),g.next_out+=l,h.pending_out+=l,g.total_out+=l,g.avail_out-=l,h.pending-=l,0===h.pending&&(h.pending_out= +0))}function t(g,h){S._tr_flush_block(g,0<=g.block_start?g.block_start:-1,g.strstart-g.block_start,h);g.block_start=g.strstart;V(g.strm)}function M(g,h){g.pending_buf[g.pending++]=h}function h(g,h){g.pending_buf[g.pending++]=h>>>8&255;g.pending_buf[g.pending++]=255&h}function g(g,h){var l,p,r=g.max_chain_length,I=g.strstart,t=g.prev_length,y=g.nice_match,A=g.strstart>g.w_size-na?g.strstart-(g.w_size-na):0,z=g.window,D=g.w_mask,O=g.prev,H=g.strstart+Y,F=z[I+t-1],L=z[I+t];g.prev_length>=g.good_match&& +(r>>=2);y>g.lookahead&&(y=g.lookahead);do if(l=h,z[l+t]===L&&z[l+t-1]===F&&z[l]===z[I]&&z[++l]===z[I+1]){I+=2;for(l++;z[++I]===z[++l]&&z[++I]===z[++l]&&z[++I]===z[++l]&&z[++I]===z[++l]&&z[++I]===z[++l]&&z[++I]===z[++l]&&z[++I]===z[++l]&&z[++I]===z[++l]&&It){if(g.match_start=h,t=p,p>=y)break;F=z[I+t-1];L=z[I+t]}}while((h=O[h&D])>A&&0!==--r);return t<=g.lookahead?t:g.lookahead}function r(g){var h,l,p=g.w_size;do{if(l=g.window_size-g.lookahead-g.strstart,g.strstart>=p+(p-na)){Ua.arraySet(g.window, +g.window,p,p,0);g.match_start-=p;g.strstart-=p;g.block_start-=p;var r=h=g.hash_size;do{var t=g.head[--r];g.head[r]=t>=p?t-p:0}while(--h);r=h=p;do t=g.prev[--r],g.prev[r]=t>=p?t-p:0;while(--h);l+=p}if(0===g.strm.avail_in)break;r=g.strm;t=g.window;var I=g.strstart+g.lookahead,y=r.avail_in;if(h=(y>l&&(y=l),0===y?0:(r.avail_in-=y,Ua.arraySet(t,r.input,r.next_in,y,I),1===r.state.wrap?r.adler=Wa(r.adler,t,y,I):2===r.state.wrap&&(r.adler=oa(r.adler,t,y,I)),r.next_in+=y,r.total_in+=y,y)),g.lookahead+=h,g.lookahead+ +g.insert>=ia)for(l=g.strstart-g.insert,g.ins_h=g.window[l],g.ins_h=(g.ins_h<=ia&&(h.ins_h=(h.ins_h<=ia)if(p=S._tr_tally(h,h.strstart-h.match_start,h.match_length-ia),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=ia){h.match_length--;do h.strstart++,h.ins_h=(h.ins_h<=ia&&(h.ins_h=(h.ins_h<=h.match_length&&(h.strategy===ya||h.match_length===ia&&4096=ia&&h.match_length<=h.prev_length){y=h.strstart+h.lookahead-ia;p=S._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-ia);h.lookahead-=h.prev_length-1;h.prev_length-=2;do++h.strstart<=y&&(h.ins_h=(h.ins_h<h.wrap&&(h.wrap=-h.wrap),h.status=h.wrap?qa:U,g.adler=2===h.wrap?0:1,h.last_flush=O,S._tr_init(h),ua):y(g,L)}function nb(g){var h=fb(g);h===ua&&(g=g.state,g.window_size=2*g.w_size,J(g.head),g.max_lazy_match=Za[g.level].max_lazy,g.good_match=Za[g.level].good_length,g.nice_match=Za[g.level].nice_length,g.max_chain_length=Za[g.level].max_chain, +g.strstart=0,g.block_start=0,g.lookahead=0,g.insert=0,g.match_length=g.prev_length=ia-1,g.match_available=0,g.ins_h=0);return h}function $b(g,h,l,p,r,t){if(!g)return L;var C=1;if(h===ha&&(h=6),0>p?(C=0,p=-p):15r||r>jb||l!==Yb||8>p||15h||9t||t>Ga)return y(g,L);8===p&&(p=9);var z=new sa;return g.state=z,z.strm=g,z.wrap=C,z.gzhead=null,z.w_bits=p,z.w_size=1<g.pending_buf_size-5&&(l=g.pending_buf_size-5);;){if(1>=g.lookahead){if(r(g),0===g.lookahead&&h===O)return Q;if(0===g.lookahead)break}g.strstart+=g.lookahead;g.lookahead=0;var p=g.block_start+l;if((0===g.strstart||g.strstart>=p)&&(g.lookahead=g.strstart-p,g.strstart=p,t(g,!1),0===g.strm.avail_out)||g.strstart-g.block_start>=g.w_size-na&&(t(g,!1),0===g.strm.avail_out))return Q}return g.insert=0,h===Ea?(t(g,!0),0===g.strm.avail_out? +ta:aa):(g.strstart>g.block_start&&t(g,!1),Q)}),new ma(4,4,8,4,D),new ma(4,5,16,8,D),new ma(4,6,32,32,D),new ma(4,4,16,16,z),new ma(8,16,32,32,z),new ma(8,16,128,128,z),new ma(8,32,128,256,z),new ma(32,128,258,1024,z),new ma(32,258,258,4096,z)];H.deflateInit=function(g,h){return $b(g,h,Yb,15,8,0)};H.deflateInit2=$b;H.deflateReset=nb;H.deflateResetKeep=fb;H.deflateSetHeader=function(g,h){return g&&g.state?2!==g.state.wrap?L:(g.state.gzhead=h,ua):L};H.deflate=function(g,l){var C,p;if(!g||!g.state||5< +l||0>l)return g?y(g,L):L;if(p=g.state,!g.output||!g.input&&0!==g.avail_in||666===p.status&&l!==Ea)return y(g,0===g.avail_out?-5:L);if(p.strm=g,C=p.last_flush,p.last_flush=l,p.status===qa)if(2===p.wrap)g.adler=0,M(p,31),M(p,139),M(p,8),p.gzhead?(M(p,(p.gzhead.text?1:0)+(p.gzhead.hcrc?2:0)+(p.gzhead.extra?4:0)+(p.gzhead.name?8:0)+(p.gzhead.comment?16:0)),M(p,255&p.gzhead.time),M(p,p.gzhead.time>>8&255),M(p,p.gzhead.time>>16&255),M(p,p.gzhead.time>>24&255),M(p,9===p.level?2:2<=p.strategy||2>p.level? +4:0),M(p,255&p.gzhead.os),p.gzhead.extra&&p.gzhead.extra.length&&(M(p,255&p.gzhead.extra.length),M(p,p.gzhead.extra.length>>8&255)),p.gzhead.hcrc&&(g.adler=oa(g.adler,p.pending_buf,p.pending,0)),p.gzindex=0,p.status=69):(M(p,0),M(p,0),M(p,0),M(p,0),M(p,0),M(p,9===p.level?2:2<=p.strategy||2>p.level?4:0),M(p,3),p.status=U);else{var z=Yb+(p.w_bits-8<<4)<<8;z|=(2<=p.strategy||2>p.level?0:6>p.level?1:6===p.level?2:3)<<6;0!==p.strstart&&(z|=32);p.status=U;h(p,z+(31-z%31));0!==p.strstart&&(h(p,g.adler>>> +16),h(p,65535&g.adler));g.adler=1}if(69===p.status)if(p.gzhead.extra){for(z=p.pending;p.gzindex<(65535&p.gzhead.extra.length)&&(p.pending!==p.pending_buf_size||(p.gzhead.hcrc&&p.pending>z&&(g.adler=oa(g.adler,p.pending_buf,p.pending-z,z)),V(g),z=p.pending,p.pending!==p.pending_buf_size));)M(p,255&p.gzhead.extra[p.gzindex]),p.gzindex++;p.gzhead.hcrc&&p.pending>z&&(g.adler=oa(g.adler,p.pending_buf,p.pending-z,z));p.gzindex===p.gzhead.extra.length&&(p.gzindex=0,p.status=73)}else p.status=73;if(73=== +p.status)if(p.gzhead.name){z=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>z&&(g.adler=oa(g.adler,p.pending_buf,p.pending-z,z)),V(g),z=p.pending,p.pending===p.pending_buf_size)){var A=1;break}A=p.gzindexz&&(g.adler=oa(g.adler,p.pending_buf,p.pending-z,z));0===A&&(p.gzindex=0,p.status=91)}else p.status=91;if(91===p.status)if(p.gzhead.comment){z=p.pending;do{if(p.pending=== +p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>z&&(g.adler=oa(g.adler,p.pending_buf,p.pending-z,z)),V(g),z=p.pending,p.pending===p.pending_buf_size)){A=1;break}A=p.gzindexz&&(g.adler=oa(g.adler,p.pending_buf,p.pending-z,z));0===A&&(p.status=103)}else p.status=103;if(103===p.status&&(p.gzhead.hcrc?(p.pending+2>p.pending_buf_size&&V(g),p.pending+2<=p.pending_buf_size&&(M(p,255&g.adler), +M(p,g.adler>>8&255),g.adler=0,p.status=U)):p.status=U),0!==p.pending){if(V(g),0===g.avail_out)return p.last_flush=-1,ua}else if(0===g.avail_in&&(l<<1)-(4=ia&&0p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=ia?(I=S._tr_tally(p,1,p.match_length-ia),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(I=S._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),I&&(t(p,!1),0===p.strm.avail_out)){I=Q;break a}}I=(p.insert=0,l===Ea?(t(p,!0),0===p.strm.avail_out?ta:aa):p.last_lit&&(t(p,!1),0===p.strm.avail_out)?Q:hc)}else I=Za[p.level].func(p,l);if(I!==ta&&I!==aa|| +(p.status=666),I===Q||I===ta)return 0===g.avail_out&&(p.last_flush=-1),ua;if(I===hc&&(1===l?S._tr_align(p):5!==l&&(S._tr_stored_block(p,0,0,!1),3===l&&(J(p.head),0===p.lookahead&&(p.strstart=0,p.block_start=0,p.insert=0))),V(g),0===g.avail_out))return p.last_flush=-1,ua}return l!==Ea?ua:0>=p.wrap?1:(2===p.wrap?(M(p,255&g.adler),M(p,g.adler>>8&255),M(p,g.adler>>16&255),M(p,g.adler>>24&255),M(p,255&g.total_in),M(p,g.total_in>>8&255),M(p,g.total_in>>16&255),M(p,g.total_in>>24&255)):(h(p,g.adler>>>16), +h(p,65535&g.adler)),V(g),0=l.w_size&&(0===p&&(J(l.head),l.strstart=0,l.block_start=0,l.insert= +0),t=new Ua.Buf8(l.w_size),Ua.arraySet(t,h,z-l.w_size,l.w_size,0),h=t,z=l.w_size);t=g.avail_in;var y=g.next_in;var A=g.input;g.avail_in=z;g.next_in=0;g.input=h;for(r(l);l.lookahead>=ia;){h=l.strstart;z=l.lookahead-(ia-1);do l.ins_h=(l.ins_h<oa&&(Wa+=r[g++]<>>24,Wa>>>=y,oa-=y,y=L>>>16&255,0===y)J[z++]=65535&L;else{if(!(16&y)){if(0===(64&y)){L=Na[(65535&L)+(Wa&(1<>>=y,oa-=y);15>oa&&(Wa+=r[g++]<>>24,Wa>>>=y,oa-=y,y=L>>>16&255,!(16&y)){if(0===(64&y)){L=O[(65535&L)+(Wa&(1<fb){l.msg="invalid distance too far back";h.mode=30; +break a}if(Wa>>>=y,oa-=y,y=z-H,t>y){if(y=t-y,y>$b&&h.sane){l.msg="invalid distance too far back";h.mode=30;break a}if(L=0,F=S,0===Ua){if(L+=nb-y,y>3;g-=ha;oa-=ha<<3;l.next_in=g;l.next_out=z;l.avail_in=g>>24&255)+(g>>>8&65280)+((65280&g)<<8)+((255&g)<<24)}function J(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags= +0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new z.Buf16(320);this.work=new z.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function V(g){var h;return g&&g.state?(h=g.state,g.total_in=g.total_out=h.total=0,g.msg="",h.wrap&&(g.adler=1&h.wrap),h.mode=S,h.last= +0,h.havedict=0,h.dmax=32768,h.head=null,h.hold=0,h.bits=0,h.lencode=h.lendyn=new z.Buf32(Wa),h.distcode=h.distdyn=new z.Buf32(oa),h.sane=1,h.back=-1,$b):Ua}function t(g){var h;return g&&g.state?(h=g.state,h.wsize=0,h.whave=0,h.wnext=0,V(g)):Ua}function M(g,h){var l,r;return g&&g.state?(r=g.state,0>h?(l=0,h=-h):(l=(h>>4)+1,48>h&&(h&=15)),h&&(8>h||15=g.wsize?(z.arraySet(g.window,h,l-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):(t=g.wsize-g.wnext,t>r&&(t=r),z.arraySet(g.window,h,l-r,t,g.wnext),r-=t,r?(z.arraySet(g.window,h,l-r,r,0),g.wnext=r,g.whave=g.wsize):(g.wnext+=t,g.wnext===g.wsize&&(g.wnext=0),g.whaveQ;){if(0===qa)break a;qa--;U+=na[Y++]<>>8&255;A.check=sa(A.check,Da,2,0);Q=U=0;A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&U)<<8)+(U>>8))%31){h.msg="incorrect header check";A.mode=30;break}if(8!==(15&U)){h.msg="unknown compression method";A.mode=30;break}if(U>>>=4,Q-= +4,M=(15&U)+8,0===A.wbits)A.wbits=M;else if(M>A.wbits){h.msg="invalid window size";A.mode=30;break}A.dmax=1<Q;){if(0===qa)break a;qa--;U+=na[Y++]<>8&1);512&A.flags&&(Da[0]=255&U,Da[1]=U>>>8&255,A.check=sa(A.check,Da,2,0));Q=U=0;A.mode=3;case 3:for(;32>Q;){if(0=== +qa)break a;qa--;U+=na[Y++]<>>8&255,Da[2]=U>>>16&255,Da[3]=U>>>24&255,A.check=sa(A.check,Da,4,0));Q=U=0;A.mode=4;case 4:for(;16>Q;){if(0===qa)break a;qa--;U+=na[Y++]<>8);512&A.flags&&(Da[0]=255&U,Da[1]=U>>>8&255,A.check=sa(A.check,Da,2,0));Q=U=0;A.mode=5;case 5:if(1024&A.flags){for(;16>Q;){if(0===qa)break a;qa--;U+=na[Y++]<>>8&255,A.check=sa(A.check,Da,2,0));Q=U=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(t=A.length,t>qa&&(t=qa),t&&(A.head&&(M=A.head.extra_len-A.length,A.head.extra||(A.head.extra=Array(A.head.extra_len)),z.arraySet(A.head.extra,na,Y,t,M)),512&A.flags&&(A.check=sa(A.check,na,t,Y)),qa-=t,Y+=t,A.length-=t),A.length))break a;A.length=0;A.mode=7;case 7:if(2048&A.flags){if(0===qa)break a;t=0;do M=na[Y+t++],A.head&&M&&65536>A.length&&(A.head.name+=String.fromCharCode(M)); +while(M&&tA.length&&(A.head.comment+=String.fromCharCode(M));while(M&&tQ;){if(0===qa)break a;qa--;U+=na[Y++]<>9&1,A.head.done=!0);h.adler=A.check=0;A.mode=12;break;case 10:for(;32>Q;){if(0===qa)break a;qa--;U+=na[Y++]<>>=7&Q;Q-=7&Q;A.mode=27;break}for(;3>Q;){if(0===qa)break a;qa--;U+=na[Y++]<>>=1, +--Q,3&U){case 0:A.mode=14;break;case 1:var Za=A;if(Na){r=new z.Buf32(512);D=new z.Buf32(32);for(F=0;144>F;)Za.lens[F++]=8;for(;256>F;)Za.lens[F++]=9;for(;280>F;)Za.lens[F++]=7;for(;288>F;)Za.lens[F++]=8;nb(1,Za.lens,0,288,r,0,Za.work,{bits:9});for(F=0;32>F;)Za.lens[F++]=5;nb(2,Za.lens,0,32,D,0,Za.work,{bits:5});Na=!1}Za.lencode=r;Za.lenbits=9;Za.distcode=D;Za.distbits=5;if(A.mode=20,6===l){U>>>=2;Q-=2;break a}break;case 2:A.mode=17;break;case 3:h.msg="invalid block type",A.mode=30}U>>>=2;Q-=2;break; +case 14:U>>>=7&Q;for(Q-=7&Q;32>Q;){if(0===qa)break a;qa--;U+=na[Y++]<>>16^65535)){h.msg="invalid stored block lengths";A.mode=30;break}if(A.length=65535&U,U=0,Q=0,A.mode=15,6===l)break a;case 15:A.mode=16;case 16:if(t=A.length){if(t>qa&&(t=qa),t>ia&&(t=ia),0===t)break a;z.arraySet(Wa,na,Y,t,Ta);qa-=t;Y+=t;ia-=t;Ta+=t;A.length-=t;break}A.mode=12;break;case 17:for(;14>Q;){if(0===qa)break a;qa--;U+=na[Y++]<>>=5,Q-=5,A.ndist=(31&U)+1,U>>>=5,Q-= +5,A.ncode=(15&U)+4,U>>>=4,Q-=4,286Q;){if(0===qa)break a;qa--;U+=na[Y++]<>>=3;Q-=3}for(;19>A.have;)A.lens[Ea[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,V={bits:A.lenbits},aa=nb(0,A.lens,0,19,A.lencode,0,A.work,V),A.lenbits=V.bits,aa){h.msg="invalid code lengths set";A.mode=30;break}A.have=0;A.mode=19;case 19:for(;A.have>>24,Za=65535&oa,!(J<=Q);){if(0===qa)break a;qa--;U+=na[Y++]<Za)U>>>=J,Q-=J,A.lens[A.have++]=Za;else{if(16===Za){for(F=J+2;Q>>=J,Q-=J,0===A.have){h.msg="invalid bit length repeat";A.mode=30;break}M=A.lens[A.have-1];t=3+(3&U);U>>>=2;Q-=2}else if(17===Za){for(F=J+3;Q>>=J;Q-=J;M=0;t=3+(7&U);U>>>=3;Q-=3}else{for(F=J+7;Q>>=J;Q-=J;M=0;t=11+(127&U);U>>>=7;Q-=7}if(A.have+t>A.nlen+A.ndist){h.msg="invalid bit length repeat";A.mode=30;break}for(;t--;)A.lens[A.have++]=M}}if(30===A.mode)break;if(0===A.lens[256]){h.msg="invalid code -- missing end-of-block";A.mode=30;break}if(A.lenbits=9,V={bits:A.lenbits},aa=nb(1,A.lens,0,A.nlen,A.lencode,0,A.work,V),A.lenbits=V.bits,aa){h.msg="invalid literal/lengths set";A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,V={bits:A.distbits},aa=nb(2,A.lens,A.nlen, +A.ndist,A.distcode,0,A.work,V),A.distbits=V.bits,aa){h.msg="invalid distances set";A.mode=30;break}if(A.mode=20,6===l)break a;case 20:A.mode=21;case 21:if(6<=qa&&258<=ia){h.next_out=Ta;h.avail_out=ia;h.next_in=Y;h.avail_in=qa;A.hold=U;A.bits=Q;fb(h,ta);Ta=h.next_out;Wa=h.output;ia=h.avail_out;Y=h.next_in;na=h.input;qa=h.avail_in;U=A.hold;Q=A.bits;12===A.mode&&(A.back=-1);break}for(A.back=0;oa=A.lencode[U&(1<>>24,F=oa>>>16&255,Za=65535&oa,!(J<=Q);){if(0===qa)break a;qa--;U+=na[Y++]<< +Q;Q+=8}if(F&&0===(240&F)){var I=J;var gb=F;for(O=Za;oa=A.lencode[O+((U&(1<>I)],J=oa>>>24,F=oa>>>16&255,Za=65535&oa,!(I+J<=Q);){if(0===qa)break a;qa--;U+=na[Y++]<>>=I;Q-=I;A.back+=I}if(U>>>=J,Q-=J,A.back+=J,A.length=Za,0===F){A.mode=26;break}if(32&F){A.back=-1;A.mode=12;break}if(64&F){h.msg="invalid literal/length code";A.mode=30;break}A.extra=15&F;A.mode=22;case 22:if(A.extra){for(F=A.extra;Q>>=A.extra; +Q-=A.extra;A.back+=A.extra}A.was=A.length;A.mode=23;case 23:for(;oa=A.distcode[U&(1<>>24,F=oa>>>16&255,Za=65535&oa,!(J<=Q);){if(0===qa)break a;qa--;U+=na[Y++]<>I)],J=oa>>>24,F=oa>>>16&255,Za=65535&oa,!(I+J<=Q);){if(0===qa)break a;qa--;U+=na[Y++]<>>=I;Q-=I;A.back+=I}if(U>>>=J,Q-=J,A.back+=J,64&F){h.msg="invalid distance code";A.mode=30;break}A.offset=Za;A.extra=15&F;A.mode=24;case 24:if(A.extra){for(F= +A.extra;Q>>=A.extra;Q-=A.extra;A.back+=A.extra}if(A.offset>A.dmax){h.msg="invalid distance too far back";A.mode=30;break}A.mode=25;case 25:if(0===ia)break a;if(t=ta-ia,A.offset>t){if(t=A.offset-t,t>A.whave&&A.sane){h.msg="invalid distance too far back";A.mode=30;break}t>A.wnext?(t-=A.wnext,H=A.wsize-t):H=A.wnext-t;t>A.length&&(t=A.length);F=A.window}else F=Wa,H=Ta-A.offset,t=A.length;t>ia&&(t=ia);ia-=t;A.length-=t;do Wa[Ta++]= +F[H++];while(--t);0===A.length&&(A.mode=21);break;case 26:if(0===ia)break a;Wa[Ta++]=A.length;ia--;A.mode=21;break;case 27:if(A.wrap){for(;32>Q;){if(0===qa)break a;qa--;U|=na[Y++]<Q;){if(0===qa)break a;qa--;U+=na[Y++]<A.mode&&(27>A.mode||4!==l))&&g(h,h.output,h.next_out,ta-h.avail_out)?(A.mode=31,-4):(hc-=h.avail_in,ta-=h.avail_out,h.total_in+=hc,h.total_out+=ta,A.total+=ta,A.wrap&&ta&&(h.adler=A.check=A.flags?sa(A.check,Wa,ta,h.next_out-ta):ma(A.check,Wa,ta,h.next_out- +ta)),h.data_type=A.bits+(A.last?64:0)+(12===A.mode?128:0)+(20===A.mode||15===A.mode?256:0),(0===hc&&0===ta||4===l)&&aa===$b&&(aa=-5),aa)};H.inflateEnd=function(g){if(!g||!g.state)return Ua;var h=g.state;return h.window&&(h.window=null),g.state=null,$b};H.inflateGetHeader=function(g,h){var l;return g&&g.state?(l=g.state,0===(2&l.wrap)?Ua:(l.head=h,h.done=!1,$b)):Ua};H.inflateSetDictionary=function(h,l){var r,t,y=l.length;return h&&h.state?(r=h.state,0!==r.wrap&&11!==r.mode?Ua:11===r.mode&&(t=1,t=ma(t, +l,y,0),t!==r.check)?-3:g(h,l,y,y)?(r.mode=31,-4):(r.havedict=1,$b)):Ua};H.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(l,F,H){var y=l("../utils/common"),J=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],V=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],t=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769, +1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],M=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];F.exports=function(h,g,l,D,z,F,H,fb){var r,sa,ma,S,Wa,oa,Na=fb.bits,O,Ea,ua,L,ha,ya=0,Ga,ea=null,Yb=0,jb=new y.Buf16(16);var Da=new y.Buf16(16);var Hb=null,A=0;for(O=0;15>=O;O++)jb[O]=0;for(Ea=0;Eaua&&(Ta=ua),0===ua)return z[F++]=20971520,z[F++]=20971520,fb.bits=1,0;for(Na= +1;Na=O;O++)if(r<<=1,r-=jb[O],0>r)return-1;if(0O;O++)Da[O+1]=Da[O]+jb[O];for(Ea=0;EaS?(Wa=Hb[A+H[Ea]],oa=ea[Yb+H[Ea]]):(Wa=96,oa= +0);r=1<>ha)+sa]=ia<<24|Wa<<16|oa|0;while(0!==sa);for(r=1<>=1;if(0!==r?(Ga&=r-1,Ga+=r):Ga=0,Ea++,0===--jb[O]){if(O===ua)break;O=g[l+H[Ea]]}if(O>Ta&&(Ga&D)!==ma){0===ha&&(ha=Ta);Da+=Na;L=O-ha;for(r=1<=r));)L++,r<<=1;if(ya+=1<>>8&255}function M(g,h,l){g.bi_valid>Yb-l?(g.bi_buf|=h<>Yb-g.bi_valid,g.bi_valid+=l-Yb):(g.bi_buf|=h<>>=1,l<<=1;while(0<--h);return l>>>1}function r(h,l,r){var p,t=Array(ea+1),C=0;for(p=1;p<=ea;p++)t[p]=C=C+r[p-1]<<1;for(r=0;r<=l;r++)p=h[2*r+1],0!==p&&(h[2*r]=g(t[p]++,p))}function D(g){var h;for(h=0;hy?U[y]:U[256+(y>>>7)],h(g,p,r),t=mc[p],0!==t&&(y-=ta[p],M(g,y,t)))}while(Cg.heap_len;){var A=g.heap[++g.heap_len]=2>z?++z:0;p[2*A]=1;g.depth[A]=0;g.opt_len--;C&&(g.static_len-=t[2*A+1])}h.max_code=z;for(l=g.heap_len>>1;1<=l;l--)sa(g,p,l);A=y;do l=g.heap[1],g.heap[1]=g.heap[g.heap_len--],sa(g,p,1),t=g.heap[1],g.heap[--g.heap_max]=l,g.heap[--g.heap_max]=t,p[2*A]=p[2*l]+p[2*t],g.depth[A]=(g.depth[l]>=g.depth[t]?g.depth[l]:g.depth[t])+1,p[2*l+1]=p[2*t+1]=A,g.heap[1]=A++,sa(g,p,1);while(2<=g.heap_len);g.heap[--g.heap_max]=g.heap[1];var D, +F;l=h.dyn_tree;A=h.max_code;y=h.stat_desc.static_tree;var H=h.stat_desc.has_stree,I=h.stat_desc.extra_bits,J=h.stat_desc.extra_base,L=h.stat_desc.max_length,O=0;for(C=0;C<=ea;C++)g.bl_count[C]=0;l[2*g.heap[g.heap_max]+1]=0;for(h=g.heap_max+1;hL&&(C=L,O++),l[2*t+1]=C,t>A||(g.bl_count[C]++,D=0,t>=J&&(D=I[t-J]),F=l[2*t],g.opt_len+=F*(C+D),H&&(g.static_len+=F*(y[2*t+1]+D)));if(0!==O){do{for(C=L-1;0===g.bl_count[C];)C--;g.bl_count[C]--;g.bl_count[C+1]+=2;g.bl_count[L]--; +O-=2}while(0A||(l[2*D+1]!==C&&(g.opt_len+=(C-l[2*D+1])*l[2*D],l[2*D+1]=C),t--)}r(p,z,g.bl_count)}function $b(g,h,l){var p,r=-1,t=h[1],C=0,y=7,z=4;0===t&&(y=138,z=3);h[2*(l+1)+1]=65535;for(p=0;p<=l;p++){var D=t;t=h[2*(p+1)+1];++C=C?g.bl_tree[2*Hb]++:g.bl_tree[2*A]++,C=0,r=D,0===t?(y=138,z=3):D===t?(y=6,z=3):(y=7,z=4))}}function Ua(g,l,r){var p,t,C= +-1,y=l[1],z=0,D=7,F=4;0===y&&(D=138,F=3);for(p=0;p<=r;p++)if(t=y,y=l[2*(p+1)+1],!(++z=z?(h(g,Hb,g.bl_tree),M(g,z-3,3)):(h(g,A,g.bl_tree),M(g,z-11,7));z=0;C=t;0===y?(D=138,F=3):t===y?(D=6,F=3):(D=7,F=4)}}function S(g){var h,l=4093624447;for(h=0;31>=h;h++,l>>>=1)if(1&l&&0!==g.dyn_ltree[2*h])return Na;if(0!==g.dyn_ltree[18]||0!==g.dyn_ltree[20]||0!==g.dyn_ltree[26])return O; +for(h=32;hy;y++)for(hc[y]=t,l=0;l<1<y;y++)for(ta[y]=t,l=0;l<1<>=7;y=l;)na[2*l+1]=8,l++,z[8]++; +for(;255>=l;)na[2*l+1]=9,l++,z[9]++;for(;279>=l;)na[2*l+1]=7,l++,z[7]++;for(;287>=l;)na[2*l+1]=8,l++,z[8]++;r(na,L+1,z);for(l=0;l>>3;var y=g.static_len+3+7>>>3;y<=t&&(t=y)}else t=y=l+5;if(l+4<=t&&-1!==h)Wa(g,h,l,r);else if(4===g.strategy||y===t)M(g,2+(r?1:0),3),fb(g,na,qa);else{M(g,4+(r?1:0),3);h=g.l_desc.max_code+1;l=g.d_desc.max_code+1;p+=1;M(g,h-257,5);M(g,l-1,5);M(g,p-4,4);for(t=0;t>>8&255,g.pending_buf[g.d_buf+2*g.last_lit+1]=255&h,g.pending_buf[g.l_buf+g.last_lit]=255&l,g.last_lit++,0===h?g.dyn_ltree[2*l]++:(g.matches++,h--,g.dyn_ltree[2*(Q[l]+ua+1)]++,g.dyn_dtree[2*(256>h?U[h]:U[256+(h>>>7)])]++),g.last_lit===g.lit_bufsize-1};H._tr_align=function(g){M(g,2,3);h(g,jb,na);16===g.bi_valid?(t(g,g.bi_buf),g.bi_buf=0,g.bi_valid=0):8<=g.bi_valid&& +(g.pending_buf[g.pending++]=255&g.bi_buf,g.bi_buf>>=8,g.bi_valid-=8)}},{"../utils/common":3}],15:[function(l,F,H){F.exports=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}},{}],"/":[function(l,F,H){H=l("./lib/utils/common").assign;var y=l("./lib/deflate"),J=l("./lib/inflate");l=l("./lib/zlib/constants");var V={};H(V,y,J,l);F.exports=V},{"./lib/deflate":1, +"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")}); +if("undefined"===typeof self||!self.constructor.name.includes("Worker")){var e=function(){function x(g){var h=[];return h[g-1]=void 0,h}function l(g,h){return y(g[0]+h[0],g[1]+h[1])}function F(g,h){var q=V(g)&V(h),l,w;return l=(~~Math.max(Math.min(g[1]/Sb,2147483647),-2147483648)&~~Math.max(Math.min(h[1]/Sb,2147483647),-2147483648))*Sb,w=q,0>q&&(w+=Sb),[w,l]}function H(g,h){var q,l;return g[0]==h[0]&&g[1]==h[1]?0:(q=0>g[1],l=0>h[1],q&&!l?-1:!q&&l?1:0>y(g[0]-h[0],g[1]-h[1])[1]?-1:1)}function y(g,h){h%= +1.8446744073709552E19;g%=1.8446744073709552E19;var q=h%Sb;var l=Math.floor(g/Sb)*Sb;h=h-q+l;for(g=g-l+q;0>g;)g+=Sb,h-=Sb;for(;4294967295h;)h+=1.8446744073709552E19;return[g,h]}function J(g){return 0<=g?[g,0]:[g+Sb,-Sb]}function V(g){return 2147483648<=g[0]?~~Math.max(Math.min(g[0]-Sb,2147483647),-2147483648):~~Math.max(Math.min(g[0],2147483647),-2147483648)}function t(g){return 30>= +g?1<g[1])throw Error("Neg");return p=t(h),l=g[1]*p%1.8446744073709552E19,w=g[0]*p,q=w-w%Sb,l+=q,w-=q,0x7fffffffffffffff<=l&&(l-=1.8446744073709552E19),[w,l]}function h(g,h){var q;return h&=63,q=t(h),y(Math.floor(g[0]/q),g[1]/q)}function g(g,h){return g.Mc=h,g.Lc=0,g.Yb=h.length,g}function r(g){return g.Lc>=g.Yb?-1:255&g.Mc[g.Lc++]}function D(g){return g.Mc=x(32),g.Yb=0,g}function z(g){var h=g.Mc;return h.length= +g.Yb,h}function ma(g,h,l,p,r){for(var q=0;r>q;++q)l[p+q]=g[h+q]}function sa(q,l,p){q.Nb=D({});var w=g({},l),r=q.Nb,t=J(l.length);if(0>H(t,mb))throw Error("invalid length "+t);q.Tb=t;l={};var G;l.v=x(4);l.a=[];l.d={};l.C=x(192);l.bb=x(12);l.hb=x(12);l.Ub=x(12);l.vc=x(12);l._=x(192);l.K=[];l.Sb=x(114);l.S=Rb({},4);l.$=aa({});l.i=aa({});l.A={};l.m=[];l.P=[];l.lb=[];l.nc=x(16);l.x=x(4);l.Q=x(4);l.Xb=[E];l.uc=[E];l.Kc=[0];l.fc=x(5);l.yc=x(128);l.vb=0;l.X=1;l.D=0;l.Hb=-1;for(G=l.mb=0;4096>G;++G)l.a[G]= +{};for(G=0;4>G;++G)l.K[G]=Rb({},6);G=1<1<>24;for(p=0;4>p;++p)l.fc[1+p]=l.ab>>8*p<<24>>24;ma(l.fc,0,r.Mc,r.Yb,5);r.Yb+=5;for(p=0;64>p;p+=8)G=255&V(h(t,p)),r.Mc[r.Yb++]=G<<24>>24;l.W=0;l.oc=w;l.pc=0;l.b||(w={},t=4,l.X||(t=2),w.qb=2t;++t){G=w.V;v=t;var y={};y=(y.tb=x(768),y);G[v]=y}if(l.ab!=l.wb||l.Hb!=l.n)w=l.b,t=l.ab,p=l.n,1073741567>t&&(w.Fc=16+(p>>1),v=t+4096,G=p+274,w.Bc=v,w._b=G,v=v+G+(~~((t+4096+p+274)/2)+256),(null==w.c||w.Kb!=v)&&(w.c=null,w.Kb=v,w.c=x(w.Kb)),w.H=w.Kb-G,w.ob=p,p=t+1,w.p!=p&&(w.L=x(2*(w.p=p))),p=65536,w.qb&&(p=t-1,p|=p>>1,p|=p>>2,p|=p>>4,p|=p>>8,p>>=1,p|=65535,16777216>=1),w.Ec=p,++p,p+=w.R),p!=w.rc&&(w.ub=x(w.rc=p))), +l.wb=l.ab,l.Hb=l.n;l.d.Ab=r;l.l=0;for(r=l.J=0;4>r;++r)l.v[r]=0;r=l.d;r.mc=E;r.xc=E;r.E=-1;r.Jb=1;r.Oc=0;kb(l.C);kb(l._);kb(l.bb);kb(l.hb);kb(l.Ub);kb(l.vc);kb(l.Sb);r=l.A;t=1<w;++w)kb(r.V[w].tb);for(r=0;4>r;++r)kb(l.K[r].G);Q(l.$,1<t;++t){if(v=r(q),-1==v)throw Error("truncated input");A[t]=v<<24>>24}l={B:{},e:{}};l.Gb=x(192);l.Zb=x(12);l.Cb=x(12);l.Db=x(12);l.Eb=x(12);l.pb=x(192);l.kb=x(4);l.kc=x(114);l.Fb=p({},4);l.Rb=Yb({});l.sb=Yb({});l.gb={};for(t=0;4>t;++t)l.kb[t]=p({},6);var C;if(5>A.length)t=0;else{t=255&A[0];var F=t%9;t=~~(t/9);var H=t%5;var I=~~(t/5);for(C=t=0;4>C;++C)t+=(255&A[1+C])<<8*C;if(!(A=99999999F;++F){C=A.V;var L=F;var O={};O=(O.Ib=x(768),O);C[L]=O}I=1<t?t=0:(l.Ob!=t&&(l.Ob=t,l.nb=Math.max(l.Ob,1),t=l.B,I=Math.max(l.nb,4096),null!=t.Lb&&t.M==I||(t.Lb=x(I)),t.M=I,t.o=0,t.h=0),t=1)}if(!t)throw Error("corrupted input");for(t=0;64>t;t+=8){if(v=r(q),-1==v)throw Error("truncated input");v=v.toString(16);1==v.length&&(v="0"+v);z=v+""+z}/^0+$|^f+$/i.test(z)?h.Tb=mb:(y=parseInt(z,16),h.Tb=4294967295q;++q)kb(w.V[q].Ib);for(w=0;4>w;++w)kb(l.kb[w].G);jb(l.Rb);jb(l.sb);kb(l.Fb.G);w=l.e;w.Bb=0;w.E=-1;for(q=0;5>q;++q)w.Bb=w.Bb<<8|r(w.Ab);l.U=0;l.ib=0;l.Jc=0;l.Ic=0;l.Qc=0;l.Nc=v;l.g=E;l.jc=0;w={};l=(w.Z=l,w.cb=null,w.zc=1,w);h.yb=l;return h}function nb(g,h){return g.c[g.f+g.o+h]}function $b(g,h,l,p){g.T&&g.o+h+p>g.h&&(p=g.h-(g.o+h));++l;var q=g.f+g.o+h;for(h= +0;p>h&&g.c[q+h]==g.c[q+h-l];++h);return h}function Ua(g){return g.h-g.o}function S(g){var h,q,l;if(!g.T)for(;l=-g.f+g.Kb-g.h,l;){var p=g.cc,r=l;if(h=p.Lc>=p.Yb?-1:(r=Math.min(r,p.Yb-p.Lc),ma(p.Mc,p.Lc,g.c,g.f+g.h,r),p.Lc+=r,r),-1==h)return g.zb=g.h,q=g.f+g.zb,q>g.H&&(g.zb=g.H-g.f),void(g.T=1);g.h+=h;g.h>=g.o+g._b&&(g.zb=g.h-g._b)}}function Wa(g,h){g.f+=h;g.zb-=h;g.o-=h;g.h-=h}function oa(g){var h;++g.k>=g.p&&(g.k=0);++g.o;if(g.o>g.zb){var q=g.f+g.o;if(q>g.H){var l=g.f+g.o-g.Bc;0q;++q)g.c[q]=g.c[l+q];g.f-=l}S(g)}1073741823==g.o&&(h=g.o-g.p,Na(g.L,2*g.p,h),Na(g.ub,g.rc,h),Wa(g,h))}function Na(g,h,l){var q;for(q=0;h>q;++q){var w=g[q]||0;l>=w?w=0:w-=l;g[q]=w}}function O(g,h){var q,l,w,p,r,t,v,x,y,z;do{if(g.h>=g.o+g.ob)var A=g.ob;else if(A=g.h-g.o,g.xb>A){oa(g);continue}var C=g.o>g.p?g.o-g.p:0;var E=g.f+g.o;g.qb?(z=Pd[255&g.c[E]]^255&g.c[E+1],p=1023&z,g.ub[p]=g.o,z^=(255&g.c[E+2])<<8,r=65535&z,g.ub[1024+r]=g.o,t=(z^Pd[255&g.c[E+3]]<<5)&g.Ec):t=255&g.c[E]^(255& +g.c[E+1])<<8;var D=g.ub[g.R+t];g.ub[g.R+t]=g.o;var F=(g.k<<1)+1;var H=g.k<<1;var I=x=g.w;for(q=g.Fc;;){if(C>=D||0==q--){g.L[F]=g.L[H]=0;break}if(w=g.o-D,l=(g.k>=w?g.k-w:g.k-w+g.p)<<1,y=g.f+D,v=x>I?I:x,g.c[y+v]==g.c[E+v]){for(;++v!=A&&g.c[y+v]==g.c[E+v];);if(v==A){g.L[H]=g.L[l];g.L[F]=g.L[l+1];break}}(255&g.c[E+v])>(255&g.c[y+v])?(g.L[H]=D,H=l+1,D=g.L[H],x=v):(g.L[F]=D,F=l,D=g.L[F],I=v)}oa(g)}while(0!=--h)}function Ea(g){var h=g.o-g.h;if(h){var q=g.cc;ma(g.Lb,g.h,q.Mc,q.Yb,h);q.Yb+=h;g.o>=g.M&&(g.o= +0);g.h=g.o}}function ua(g,h){h=g.o-h-1;return 0>h&&(h+=g.M),g.Lb[h]}function L(g){return g-=2,4>g?g:3}function ha(g){return 4>g?0:10>g?g-3:g-6}function ya(g){if(!g.zc)throw Error("bad state");if(g.cb){a:{var h=g.cb,q=g.cb.Xb,p=g.cb.uc,t=g.cb.Kc,v,x;q[0]=E;p[0]=E;t[0]=1;if(h.oc){h.b.cc=h.oc;var z=h.b;z.f=0;z.o=0;z.h=0;z.T=0;S(z);z.k=0;Wa(z,-1);h.W=1;h.oc=null}if(!h.pc){h.pc=1;var C=z=h.g;if(C[0]==E[0]&&C[1]==E[1]){if(!Ua(h.b)){Ta(h,V(h.g));break a}na(h);var D=V(h.g)&h.y;Bb(h.d,h.C,(h.l<<4)+D,0);h.l= +ha(h.l);C=nb(h.b,-h.s);gb(I(h.A,V(h.g),h.J),h.d,C);h.J=C;--h.s;h.g=l(h.g,ub)}if(Ua(h.b))for(;;){if(v=mc(h,V(h.g)),x=h.mb,D=V(h.g)&h.y,C=(h.l<<4)+D,1==v&&-1==x){Bb(h.d,h.C,C,0);C=nb(h.b,-h.s);var F=I(h.A,V(h.g),h.J);if(7>h.l)gb(F,h.d,C);else{var O=nb(h.b,-h.v[0]-1-h.s);var M=void 0;var Q;var Y=h.d;var aa=O,ia=C,oa=1,sa=1;for(Q=7;0<=Q;--Q){var ma=ia>>Q&1;O=sa;oa&&(M=aa>>Q&1,O+=1+M<<8,oa=M==ma);Bb(Y,F.tb,O,ma);sa=sa<<1|ma}}h.J=C;h.l=ha(h.l)}else{if(Bb(h.d,h.C,C,1),4>x){if(Bb(h.d,h.bb,h.l,1),x?(Bb(h.d, +h.hb,h.l,1),1==x?Bb(h.d,h.Ub,h.l,0):(Bb(h.d,h.Ub,h.l,1),Bb(h.d,h.vc,h.l,x-2))):(Bb(h.d,h.hb,h.l,0),1==v?Bb(h.d,h._,C,0):Bb(h.d,h._,C,1)),1==v?h.l=7>h.l?9:11:(ta(h.i,h.d,v-2,D),h.l=7>h.l?8:11),C=h.v[x],0!=x){for(M=x;1<=M;--M)h.v[M]=h.v[M-1];h.v[0]=C}}else{Bb(h.d,h.bb,h.l,0);h.l=7>h.l?7:10;ta(h.$,h.d,v-2,D);x-=4;M=U(x);C=L(v);W(h.K[C],h.d,M);if(4<=M)if(Y=(M>>1)-1,F=(2|1&M)<M)for(C=h.Sb,M=F-M-1,F=h.d,ma=O,aa=1,O=0;Y>O;++O)Q=1&ma,Bb(F,C,M+aa,Q),aa=aa<<1|Q,ma>>=1;else jd(h.d,O>>4,Y-4),zb(h.S, +h.d,15&O),++h.Qb;C=x;for(M=3;1<=M;--M)h.v[M]=h.v[M-1];h.v[0]=C;++h.Mb}h.J=nb(h.b,v-1-h.s)}if(h.s-=v,h.g=l(h.g,J(v)),!h.s){128<=h.Mb&&A(h);16<=h.Qb&&Hb(h);q[0]=h.g;C=h.d;C=l(l(J(C.Jb),C.mc),[4,0]);if(p[0]=C,!Ua(h.b)){Ta(h,V(h.g));break a}C=h.g;C=y(C[0]-z[0],C[1]-z[1]);if(0<=H(C,[4096,0])){h.pc=0;t[0]=0;break a}}}else Ta(h,V(h.g))}}g.Pb=g.cb.Xb[0];g.cb.Kc[0]&&(v=g.cb,qa(v),v.d.Ab=null,g.zc=0)}else{a:{v=g.Z;if(M=V(v.g)&v.Dc,tb(v.e,v.Gb,(v.U<<4)+M)){if(tb(v.e,v.Zb,v.U))h=0,tb(v.e,v.Cb,v.U)?(tb(v.e,v.Db, +v.U)?(tb(v.e,v.Eb,v.U)?(C=v.Qc,v.Qc=v.Ic):C=v.Ic,v.Ic=v.Jc):C=v.Jc,v.Jc=v.ib,v.ib=C):tb(v.e,v.pb,(v.U<<4)+M)||(v.U=7>v.U?9:11,h=1),h||(h=ea(v.sb,v.e,M)+2,v.U=7>v.U?8:11);else if(v.Qc=v.Ic,v.Ic=v.Jc,v.Jc=v.ib,h=2+ea(v.Rb,v.e,M),v.U=7>v.U?7:10,z=nc(v.kb[L(h)],v.e),4<=z)if(q=(z>>1)-1,v.ib=(2|1&z)<z){x=v.ib;D=v.kc;p=v.ib-z-1;t=v.e;M=1;for(C=F=0;q>C;++C)z=tb(t,D,p+M),M<<=1,M+=z,F|=z<>>=1,t=D.Bb-D.E>>>31,D.Bb-=D.E&t-1,p=p<<1|1-t,-16777216&D.E|| +(D.Bb=D.Bb<<8|r(D.Ab),D.E<<=8);v.ib=x+(p<<4);x=v.ib;D=v.Fb;q=v.e;z=1;for(t=C=0;D.F>t;++t)p=tb(q,D.G,z),z<<=1,z+=p,C|=p<v.ib){v=-1==v.ib?1:-1;break a}}else v.ib=z;if(0<=H(J(v.ib),v.g)||v.ib>=v.nb){v=-1;break a}x=v.B;D=h;q=x.o-v.ib-1;for(0>q&&(q+=x.M);0!=D;--D)q>=x.M&&(q=0),x.Lb[x.o++]=x.Lb[q++],x.o>=x.M&&Ea(x);v.g=l(v.g,J(h));v.jc=ua(v.B,0)}else{x=v.gb;D=V(v.g);x=x.V[((D&x.qc)<>>8-x.u)];if(7>v.U){D=v.e;h=1;do h=h<<1|tb(D,x.Ib,h);while(256>h);x=h<<24>>24}else{D=v.e; +h=ua(v.B,v.ib);q=1;do if(t=h>>7&1,h<<=1,p=tb(D,x.Ib,(1+t<<8)+q),q=q<<1|p,t!=p){for(;256>q;)q=q<<1|tb(D,x.Ib,q);break}while(256>q);x=q<<24>>24}v.jc=x;x=v.B;D=v.jc;x.Lb[x.o++]=D;x.o>=x.M&&Ea(x);v.U=ha(v.U);v.g=l(v.g,ub)}v=0}if(-1==v)throw Error("corrupted input");g.Pb=mb;g.Pc=g.Z.g;if(v||0<=H(g.Z.Nc,E)&&0<=H(g.Z.g,g.Z.Nc))Ea(g.Z.B),v=g.Z.B,Ea(v),v.cc=null,g.Z.e.Ab=null,g.zc=0}return g.zc}function Ga(g,h){for(;h>g.O;++g.O)g.ec[g.O]=p({},3),g.hc[g.O]=p({},3)}function ea(g,h,l){return tb(h,g.wc,0)?8+(tb(h, +g.wc,1)?8+nc(g.tc,h):nc(g.hc[l],h)):nc(g.ec[l],h)}function Yb(g){return g.wc=x(2),g.ec=x(16),g.hc=x(16),g.tc=p({},8),g.O=0,g}function jb(g){kb(g.wc);for(var h=0;g.O>h;++h)kb(g.ec[h].G),kb(g.hc[h].G);kb(g.tc.G)}function Da(g,h){g.jb=h;var q=g.a[h].r;var l=g.a[h].j;do{if(g.a[h].t){var p=g.a[q];p.j=-1;p.t=0;g.a[q].r=q-1;g.a[h].Ac&&(g.a[q-1].t=0,g.a[q-1].r=g.a[h].r2,g.a[q-1].j=g.a[h].j2)}var r=q;p=l;l=g.a[r].j;q=g.a[r].r;g.a[r].j=p;g.a[r].r=h;h=r}while(0h;++h){var q=g.nc,l=h,p,r=g.S,t=h,v=1,x=0;for(p=r.F;0!=p;--p){var y=1&t;t>>>=1;x+=yc(r.G[v],y);v=v<<1|y}q[l]=x}g.Qb=0}function A(g){var h;for(h=4;128>h;++h){var q=U(h);var l=(q>>1)-1;var p=(2|1&q)<>>=1,z+=Va[(2047&(g.Sb[p-q-1+y]-v^-v))>>>2],y=y<<1|v;r[t]=z}for(p=0;4>p;++p){h=g.K[p];r=p<<6;for(q=0;g.$b>q;++q)g.P[r+q]=sb(h,q);for(q=14;g.$b>q;++q)g.P[r+q]+=(q>>1)-1-4<<6;q=128*p;for(h=0;4>h;++h)g.lb[q+h]=g.P[r+h];for(;128>h;++h)g.lb[q+h]= +g.P[r+U(h)]+g.yc[h]}g.Mb=0}function Ta(g,h){qa(g);h&=g.y;g.Gc&&(Bb(g.d,g.C,(g.l<<4)+h,1),Bb(g.d,g.bb,g.l,0),g.l=7>g.l?7:10,ta(g.$,g.d,0,h),h=L(2),W(g.K[h],g.d,63),jd(g.d,67108863,26),zb(g.S,g.d,15));for(h=0;5>h;++h)de(g.d)}function mc(g,h){var l,q,p,r,t,v,w,x,y,z,A,D,E,F,H,J,L,M,Q,U,V,S,W,aa,ea,oa,qa,sa;if(g.jb!=g.q)return z=g.a[g.q].r-g.q,g.mb=g.a[g.q].j,g.q=g.a[g.q].r,z;if(g.q=g.jb=0,g.N?(y=g.vb,g.N=0):y=na(g),z=g.D,L=Ua(g.b)+1,2>L)return g.mb=-1,1;273v;++v)g.x[v]=g.v[v], +g.Q[v]=$b(g.b,-1,g.x[v],273),g.Q[v]>g.Q[w]&&(w=v);if(g.Q[w]>=g.n)return g.mb=w,z=g.Q[w],h=z-1,0=g.n)return g.mb=g.m[z-1]+4,h=y-1,0y&&t!=F&&2>g.Q[w])return g.mb=-1,1;g.a[0].Hc=g.l;var ma=h&g.y;g.a[1].z=Va[g.C[(g.l<<4)+ma]>>>2]+C(I(g.A,h,g.J),7<=g.l,F,t);var ta=g.a[1];ta.j=-1;ta.t=0;ta=Va[2048-g.C[(g.l<<4)+ma]>>>2];var ya=ta+Va[2048-g.bb[g.l]>>>2];if(F==t){var Ea=g.l;Ea=ya+(Va[g.hb[Ea]>>>2]+Va[g._[(Ea<<4)+ma]>>> +2]);g.a[1].z>Ea&&(g.a[1].z=Ea,v=g.a[1],v.j=0,v.t=0)}if(x=y>=g.Q[w]?y:g.Q[w],2>x)return g.mb=g.a[1].j,1;g.a[1].r=0;g.a[0].bc=g.x[0];g.a[0].ac=g.x[1];g.a[0].dc=g.x[2];g.a[0].lc=g.x[3];w=x;do g.a[w--].z=268435455;while(2<=w);for(v=0;4>v;++v)if(E=g.Q[v],!(2>E)){var Ga=ya+Y(g,v,g.l,ma);do{var ua=Ga+g.i.Cc[272*ma+(E-2)];var Aa=g.a[E];Aa.z>ua&&(Aa.z=ua,Aa.r=0,Aa.j=v,Aa.t=0)}while(2<=--E)}if(E=ta+Va[g.bb[g.l]>>>2],w=2<=g.Q[0]?g.Q[0]+1:2,y>=w){for(y=0;w>g.m[y];)y+=2;for(;l=g.m[y+1],ua=E+ia(g,l,w,ma),Aa=g.a[w], +Aa.z>ua&&(Aa.z=ua,Aa.r=0,Aa.j=l+4,Aa.t=0),w!=g.m[y]||(y+=2,y!=z);++w);}for(l=0;;){if(++l,l==x)return Da(g,l);if(H=na(g),z=g.D,H>=g.n)return g.vb=H,g.N=1,Da(g,l);if(++h,V=g.a[l].r,g.a[l].t?(--V,g.a[l].Ac?(S=g.a[g.a[l].r2].Hc,S=4>g.a[l].j2?7>S?8:11:7>S?7:10):S=g.a[V].Hc,S=ha(S)):S=g.a[V].Hc,V==l-1?S=g.a[l].j?ha(S):7>S?9:11:(g.a[l].t&&g.a[l].Ac?(V=g.a[l].r2,U=g.a[l].j2,S=7>S?8:11):(U=g.a[l].j,S=4>U?7>S?8:11:7>S?7:10),Q=g.a[V],4>U?U?1==U?(g.x[0]=Q.ac,g.x[1]=Q.bc,g.x[2]=Q.dc,g.x[3]=Q.lc):2==U?(g.x[0]= +Q.dc,g.x[1]=Q.bc,g.x[2]=Q.ac,g.x[3]=Q.lc):(g.x[0]=Q.lc,g.x[1]=Q.bc,g.x[2]=Q.ac,g.x[3]=Q.dc):(g.x[0]=Q.bc,g.x[1]=Q.ac,g.x[2]=Q.dc,g.x[3]=Q.lc):(g.x[0]=U-4,g.x[1]=Q.bc,g.x[2]=Q.ac,g.x[3]=Q.dc)),g.a[l].Hc=S,g.a[l].bc=g.x[0],g.a[l].ac=g.x[1],g.a[l].dc=g.x[2],g.a[l].lc=g.x[3],r=g.a[l].z,t=nb(g.b,-1),F=nb(g.b,-g.x[0]-1-1),ma=h&g.y,q=r+Va[g.C[(S<<4)+ma]>>>2]+C(I(g.A,h,nb(g.b,-2)),7<=S,F,t),J=g.a[l+1],y=0,J.z>q&&(J.z=q,J.r=l,J.j=-1,J.t=0,y=1),ta=r+Va[2048-g.C[(S<<4)+ma]>>>2],ya=ta+Va[2048-g.bb[S]>>>2],F!= +t||l>J.r&&!J.j||(Ea=ya+(Va[g.hb[S]>>>2]+Va[g._[(S<<4)+ma]>>>2]),J.z>=Ea&&(J.z=Ea,J.r=l,J.j=0,J.t=0,y=1)),M=Ua(g.b)+1,M=M>4095-l?4095-l:M,L=M,!(2>L)){if(L>g.n&&(L=g.n),!y&&F!=t&&(W=Math.min(M-1,g.n),D=$b(g.b,0,g.x[0],W),2<=D)){v=ha(S);Aa=h+1&g.y;ua=q+Va[2048-g.C[(v<<4)+Aa]>>>2]+Va[2048-g.bb[v]>>>2];for(Ga=l+1+D;Ga>x;)g.a[++x].z=268435455;ua+=(aa=g.i.Cc[272*Aa+(D-2)],aa+Y(g,0,v,Aa));Aa=g.a[Ga];Aa.z>ua&&(Aa.z=ua,Aa.r=l+1,Aa.j=0,Aa.t=1,Aa.Ac=0)}w=2;for(y=0;4>y;++y)if(A=$b(g.b,-1,g.x[y],L),!(2>A)){E=A; +do{for(;l+A>x;)g.a[++x].z=268435455;ua=ya+(ea=g.i.Cc[272*ma+(A-2)],ea+Y(g,y,S,ma));Aa=g.a[l+A];Aa.z>ua&&(Aa.z=ua,Aa.r=l,Aa.j=y,Aa.t=0)}while(2<=--A);if(A=E,y||(w=A+1),M>A&&(W=Math.min(M-1-A,g.n),D=$b(g.b,A,g.x[y],W),2<=D)){v=7>S?8:11;Aa=h+A&g.y;ua=ya+(oa=g.i.Cc[272*ma+(A-2)],oa+Y(g,y,S,ma))+Va[g.C[(v<<4)+Aa]>>>2]+C(I(g.A,h+A,nb(g.b,A-1-1)),1,nb(g.b,A-1-(g.x[y]+1)),nb(g.b,A-1));v=ha(v);Aa=h+A+1&g.y;ua+=Va[2048-g.C[(v<<4)+Aa]>>>2];ua+=Va[2048-g.bb[v]>>>2];for(Ga=A+1+D;l+Ga>x;)g.a[++x].z=268435455;ua+= +(qa=g.i.Cc[272*Aa+(D-2)],qa+Y(g,0,v,Aa));Aa=g.a[l+Ga];Aa.z>ua&&(Aa.z=ua,Aa.r=l+A+1,Aa.j=0,Aa.t=1,Aa.Ac=1,Aa.r2=l,Aa.j2=y)}}if(H>L){H=L;for(z=0;H>g.m[z];z+=2);g.m[z]=H;z+=2}if(H>=w){for(E=ta+Va[g.bb[S]>>>2];l+H>x;)g.a[++x].z=268435455;for(y=0;w>g.m[y];)y+=2;for(A=w;;++A)if(p=g.m[y+1],ua=E+ia(g,p,A,ma),Aa=g.a[l+A],Aa.z>ua&&(Aa.z=ua,Aa.r=l,Aa.j=p+4,Aa.t=0),A==g.m[y]){if(M>A&&(W=Math.min(M-1-A,g.n),D=$b(g.b,A,p,W),2<=D)){v=7>S?7:10;Aa=h+A&g.y;ua=ua+Va[g.C[(v<<4)+Aa]>>>2]+C(I(g.A,h+A,nb(g.b,A-1-1)),1, +nb(g.b,A-(p+1)-1),nb(g.b,A-1));v=ha(v);Aa=h+A+1&g.y;ua+=Va[2048-g.C[(v<<4)+Aa]>>>2];ua+=Va[2048-g.bb[v]>>>2];for(Ga=A+1+D;l+Ga>x;)g.a[++x].z=268435455;ua+=(sa=g.i.Cc[272*Aa+(D-2)],sa+Y(g,0,v,Aa));Aa=g.a[l+Ga];Aa.z>ua&&(Aa.z=ua,Aa.r=l+A+1,Aa.j=0,Aa.t=1,Aa.Ac=1,Aa.r2=l,Aa.j2=p+4)}if(y+=2,y==z)break}}}}}function ia(g,h,l,p){var q,r=L(l);return q=128>h?g.lb[128*r+h]:g.P[(r<<6)+(131072>h?xd[h>>6]+12:134217728>h?xd[h>>16]+32:xd[h>>26]+52)]+g.nc[15&h],q+g.$.Cc[272*p+(l-2)]}function Y(g,h,l,p){var q;return h? +(q=Va[2048-g.hb[l]>>>2],1==h?q+=Va[g.Ub[l]>>>2]:(q+=Va[2048-g.Ub[l]>>>2],q+=yc(g.vc[l],h-2))):(q=Va[g.hb[l]>>>2],q+=Va[2048-g._[(l<<4)+p]>>>2]),q}function na(g){var h=0;a:{var l=g.b;var q=g.m,p,r,t,v,x,y,z,A;if(l.h>=l.o+l.ob)var C=l.ob;else if(C=l.h-l.o,l.xb>C){l=(oa(l),0);break a}var D=0;var E=l.o>l.p?l.o-l.p:0;var F=l.f+l.o;var H=1;var I=x=0;l.qb?(r=Pd[255&l.c[F]]^255&l.c[F+1],x=1023&r,r^=(255&l.c[F+2])<<8,I=65535&r,y=(r^Pd[255&l.c[F+3]]<<5)&l.Ec):y=255&l.c[F]^(255&l.c[F+1])<<8;r=l.ub[l.R+y]||0; +l.qb&&(p=l.ub[x]||0,t=l.ub[1024+I]||0,l.ub[x]=l.o,l.ub[1024+I]=l.o,p>E&&l.c[l.f+p]==l.c[F]&&(q[D++]=H=2,q[D++]=l.o-p-1),t>E&&l.c[l.f+t]==l.c[F]&&(t==p&&(D-=2),q[D++]=H=3,q[D++]=l.o-t-1,p=t),0!=D&&p==r&&(D-=2,H=1));l.ub[l.R+y]=l.o;y=(l.k<<1)+1;var J=l.k<<1;x=I=l.w;0!=l.w&&r>E&&l.c[l.f+r+l.w]!=l.c[F+l.w]&&(q[D++]=H=l.w,q[D++]=l.o-r-1);for(p=l.Fc;;){if(E>=r||0==p--){l.L[y]=l.L[J]=0;break}if(v=l.o-r,t=(l.k>=v?l.k-v:l.k-v+l.p)<<1,A=l.f+r,z=I>x?x:I,l.c[A+z]==l.c[F+z]){for(;++z!=C&&l.c[A+z]==l.c[F+z];); +if(z>H&&(q[D++]=H=z,q[D++]=v-1,z==C)){l.L[J]=l.L[t];l.L[y]=l.L[t+1];break}}(255&l.c[F+z])>(255&l.c[A+z])?(l.L[J]=r,J=t+1,r=l.L[J],I=z):(l.L[y]=r,y=t,r=l.L[y],x=z)}l=(oa(l),D)}return g.D=l,0g?xd[g]:2097152>g?xd[g>>10]+20:xd[g>>20]+40}function Q(g,h){kb(g.db);for(var l=0;h>l;++l)kb(g.Vb[l].G),kb(g.Wb[l].G);kb(g.ic.G)}function hc(g,h,l,p,r){var q;var t=Va[g.db[0]>>> +2];var v=Va[2048-g.db[0]>>>2];var w=v+Va[g.db[1]>>>2];v+=Va[2048-g.db[1]>>>2];for(q=0;8>q;++q){if(q>=l)return;p[r+q]=t+sb(g.Vb[h],q)}for(;16>q;++q){if(q>=l)return;p[r+q]=w+sb(g.Wb[h],q-8)}for(;l>q;++q)p[r+q]=v+sb(g.ic,q-8-8)}function ta(g,h,l,p){8>l?(Bb(h,g.db,0,0),W(g.Vb[p],h,l)):(l-=8,Bb(h,g.db,0,1),8>l?(Bb(h,g.db,1,0),W(g.Wb[p],h,l)):(Bb(h,g.db,1,1),W(g.ic,h,l-8)));0==--g.sc[p]&&(hc(g,p,g.rb,g.Cc,272*p),g.sc[p]=g.rb)}function aa(g){g.db=x(2);g.Vb=x(16);g.Wb=x(16);g.ic=Rb({},8);for(var h=0;16>h;++h)g.Vb[h]= +Rb({},3),g.Wb[h]=Rb({},3);return g.Cc=[],g.sc=[],g}function Za(g,h){for(var l=0;h>l;++l)hc(g,l,g.rb,g.Cc,272*l),g.sc[l]=g.rb}function I(g,h,l){return g.V[((h&g.qc)<>>8-g.u)]}function gb(g,h,l){var q,p=1;for(q=7;0<=q;--q){var r=l>>q&1;Bb(h,g.tb,p,r);p=p<<1|r}}function C(g,h,l,p){var q,r,t=1,v=7,w=0;if(h)for(;0<=v;--v)if(r=l>>v&1,q=p>>v&1,w+=yc(g.tb[(1+r<<8)+t],q),t=t<<1|q,r!=q){--v;break}for(;0<=v;--v)q=p>>v&1,w+=yc(g.tb[t],q),t=t<<1|q;return w}function p(g,h){return g.F=h,g.G=x(1<< +h),g}function nc(g,h){var l,q=1;for(l=g.F;0!=l;--l)q=(q<<1)+tb(h,g.G,q);return q-(1<>>q&1;Bb(h,g.G,p,r);p=p<<1|r}}function sb(g,h){var l,q=1,p=0;for(l=g.F;0!=l;){--l;var r=h>>>l&1;p+=yc(g.G[q],r);q=(q<<1)+r}return p}function zb(g,h,l){var q,p=1;for(q=0;g.F>q;++q){var r=1&l;Bb(h,g.G,p,r);p=p<<1|r;l>>=1}}function tb(g,h,l){var q,p=h[l];return q=(g.E>>>11)*p,(-2147483648^q)>(-2147483648^g.Bb)?(g.E= +q,h[l]=p+(2048-p>>>5)<<16>>16,-16777216&g.E||(g.Bb=g.Bb<<8|r(g.Ab),g.E<<=8),0):(g.E-=q,g.Bb-=q,h[l]=p-(p>>>5)<<16>>16,-16777216&g.E||(g.Bb=g.Bb<<8|r(g.Ab),g.E<<=8),1)}function kb(g){for(var h=g.length-1;0<=h;--h)g[h]=1024}function Bb(g,h,p,r){var q=h[p];var t=(g.E>>>11)*q;r?(g.xc=l(g.xc,F(J(t),[4294967295,0])),g.E-=t,h[p]=q-(q>>>5)<<16>>16):(g.E=t,h[p]=q+(2048-q>>>5)<<16>>16);-16777216&g.E||(g.E<<=8,de(g))}function jd(g,h,p){for(--p;0<=p;--p)g.E>>>=1,1==(h>>>p&1)&&(g.xc=l(g.xc,J(g.E))),-16777216& +g.E||(g.E<<=8,de(g))}function de(g){var q=g.xc;var p=32,r;q=(p&=63,r=h(q,p),0>q[1]&&(r=l(r,M([2,0],63-p))),r);p=V(q);if(0!=p||0>H(g.xc,[4278190080,0])){g.mc=l(g.mc,J(g.Jb));q=g.Oc;do r=g.Ab,q+=p,r.Mc[r.Yb++]=q<<24>>24,q=255;while(0!=--g.Jb);g.Oc=V(g.xc)>>>24}++g.Jb;g.xc=M(F(g.xc,[16777215,0]),8)}function yc(g,h){return Va[(2047&(g-h^-h))>>>2]}function Mc(g){for(var h,l,q,p=0,r=0,t=g.length,v=[],x=[];t>p;++p,++r){if(h=255&g[p],128&h)if(192==(224&h)){if(p+1>=t||(l=255&g[++p],128!=(192&l)))return g; +x[r]=(31&h)<<6|63&l}else{if(224!=(240&h)||p+2>=t||(l=255&g[++p],128!=(192&l))||(q=255&g[++p],128!=(192&q)))return g;x[r]=(15&h)<<12|(63&l)<<6|63&q}else{if(!h)return g;x[r]=h}16383==r&&(v.push(String.fromCharCode.apply(String,x)),r=-1)}return 0l;++l)q[h++]=g.charCodeAt(l);for(l=0;r>l;++l)g=q[l],1<=g&&127>=g?++p:p+=!g||128<=g&&2047>=g?2:3;h=[]; +for(l=p=0;r>l;++l)g=q[l],1<=g&&127>=g?h[p++]=g<<24>>24:!g||128<=g&&2047>=g?(h[p++]=(192|g>>6&31)<<24>>24,h[p++]=(128|63&g)<<24>>24):(h[p++]=(224|g>>12&15)<<24>>24,h[p++]=(128|g>>6&63)<<24>>24,h[p++]=(128|63&g)<<24>>24);return h}function Kb(g){return g[1]+g[0]}var kd="function"==typeof setImmediate?setImmediate:setTimeout,Sb=4294967296,mb=[4294967295,-Sb],ac=[0,-9223372036854775808],E=[0,0],ub=[1,0],Pd=function(){var g,h,l=[];for(g=0;256>g;++g){var p=g;for(h=0;8>h;++h)0!=(1&p)?p=p>>>1^-306674912:p>>>= +1;l[g]=p}return l}(),xd=function(){var g,h,l=2,p=[0,1];for(h=2;22>h;++h){var r=1<<(h>>1)-1;for(g=0;r>g;++g,++l)p[l]=h<<24>>24}return p}(),Va=function(){var g,h,l=[];for(h=8;0<=h;--h){var p=1<<9-h-1;for(g=1<<9-h;g>p;++p)l[p]=(h<<6)+(g-p<<6>>>9-h-1)}return l}(),v=function(){var g=[{s:16,f:64,m:0},{s:20,f:64,m:0},{s:19,f:64,m:1},{s:20,f:64,m:1},{s:21,f:128,m:1},{s:22,f:128,m:1},{s:23,f:128,m:1},{s:24,f:255,m:1},{s:25,f:255,m:1}];return function(h){return g[h-1]||g[6]}}();return"undefined"==typeof onmessage|| +"undefined"!=typeof window&&void 0!==window.document||!function(){onmessage=function(g){g&&g.gc&&(2==g.gc.action?e.decompress(g.gc.gc,g.gc.cbn):1==g.gc.action&&e.compress(g.gc.gc,g.gc.Rc,g.gc.cbn))}}(),{compress:function(g,h,l,p){function q(){try{for(var g,h=(new Date).getTime();ya(w.c.yb);)if(r=Kb(w.c.yb.Pb)/Kb(w.c.Tb),200<(new Date).getTime()-h)return p(r),kd(q,0),0;p(1);g=z(w.c.Nb);kd(l.bind(null,g),0)}catch(Rd){l(null,Rd)}}var r,t,w={},x=void 0===l&&void 0===p;if("function"!=typeof l&&(t=l,l= +p=0),p=p||function(g){void 0!==t&&postMessage({action:3,cbn:t,result:g})},l=l||function(g,h){return void 0!==t?postMessage({action:1,cbn:t,result:g,error:h}):void 0},x){for(w.c=sa({},bd(g),v(h));ya(w.c.yb););return z(w.c.Nb)}try{w.c=sa({},bd(g),v(h)),p(0)}catch(cd){return l(null,cd)}kd(q,0)},decompress:function(g,h,l){function p(){try{for(var g,r=0,v=(new Date).getTime();ya(t.d.yb);)if(0==++r%1E3&&200<(new Date).getTime()-v)return x&&(q=Kb(t.d.yb.Z.g)/w,l(q)),kd(p,0),0;l(1);g=Mc(z(t.d.Nb));kd(h.bind(null, +g),0)}catch(nd){h(null,nd)}}var q,r,t={},v=void 0===h&&void 0===l;if("function"!=typeof h&&(r=h,h=l=0),l=l||function(g){void 0!==r&&postMessage({action:3,cbn:r,result:x?g:-1})},h=h||function(g,h){return void 0!==r?postMessage({action:2,cbn:r,result:g,error:h}):void 0},v){for(t.d=fb({},g);ya(t.d.yb););return Mc(z(t.d.Nb))}try{t.d=fb({},g);var w=Kb(t.d.Tb);var x=-1KP)Nkl15gx*04M{_c{GIw7p5?<+A5B57dBo3aDZZjZvy!07yafq*c=B+BEZ~< zF$~z%0yY)KxPl;7_(R-@c0?V33PtyIJ8$|nq-~%i3iRj#z%GYxLS0A;+WW= z_W*d#=N{e&U|&Ta^8IH4-0RtY6@W2{_A-}c{0Y3}CZkl7ZLcmV~ zFjCiS4ZPy0LKCNCbw_!MeAF{*HkdDZD2r^g&9jyn723$ zR9fme+FzD72Dm1ZLSCcTx6;tQArjz(J5l)Pt{Gv=&S#e&NRZ8n0XM&z2AXABFOG5V z6!2~6QYZt-0<}dq;vz%J2KKDB@a)nQ<}6ABRaQ|1+&<4y^!FK{3ySrfJKUV06YxZq zo$gfp3Pdfy>HwtyO&+w6P?_aebbe`A zh@QTj(aK>Sr6@+)G61uwP&NeUTa?2D2Em5%MfWCMJ^}DLfXM*-7}vV~KM%k;B*a8r`{i1n0&q!)v|1kk*KquUJ=ZPP##;a$2XL#Q zk0Suwz%OxX)3RF$;*4 z06(3V#`8n0jANIrozww{QF8_p@>DC3P61YjvdA(~LMs#4h*>e%nk1wL(IAa{a3s?b z{WZ;GAbWEYLHG`ZT?L6~Uku4)Kp<1YsI-e0IR<^niS z)252TaTI|40sPOW&kHEH-89EV5WmdrY-R$MDcZ@5e6V8wPzv~I03Owx!?9?p`J4_i zjJJa4k?lGFKbAapn=f8vVa~D?o?2kxxG_;+L*Y8(F}|DzNH8G@BwK;<>P?81*=<7J z(I|}|olc`+^G1}$l8Q+$@A#e~=V(Gt&X_VgPxrK&2;jHEnaE<07xCpk-?eY8p}il1 z%(lmKmfR~qTTxukP%w26GSa0X#<&lFg;Y>pA=jm%8ffzCgj+C!e;3el3W{nzKjB=Q z9O0`s^<5jsjiOzoPMdW)V&>ePBzO2H#3HatA}H(j zI#Tgf?M=QrDWq__F^#6^I@iADEQQ;FSO*UPc#WTP(QZM$duqr&41tWgk zkO1w3I`|LQ=gEdyPJ&Gjx^(tfntj!tb|-M=ahuYYxCC5Sa}NP{62QM{rBu;0{tKXyg2mQPlR20G}3iGF&0x zBHXP&Dgo3C1A6TN#5aj>7h8JtC~kfzbqV+&`p_zzs+ied;Y|ICqP-}XNv_ZT0q{pg ze1F6gn;YUA-^ujbA2eea$5~{dOTfDt1pKxfQdz>AKE*?wyq|%rT@~$nGA-o@$#{(^ zEJ|Y(?}rHp!Xuz`i&4{znW2WFLbl~y9!144g;bR)nDrDOfhypVX&2vo^(fq zgR+N5VqL=BSA@HNu?lw>xP9dlG~avCV7AX=(8i0gihUCq{q_pC8~1r;K{rMz_VqFJ zHOO$xgbyiHDqi%{hVQvu2c6RSl|r~3+@`s9-E&dlDvfZ%;I;<1lXvpDr+xNTDgGsc!W&}`Kv@>@uP%VA{3V69D^_Jue;5A)?(nt4a zPIwT@4NbM!*>VEH!bILNDJSRtL?|>WJYz`9rs>vr??I4gKB#O>IrL{V`zJ?LR*KaM%>qnQ#4ijFFAC^H;0RZKati9HM@k24Is|CA;@5|oVP=c|iyn#wGR z3WF%Xy&Z#u1WP2CwiRiTP6nQl|PuqBFpqiFKIz-Vq5;Vu*eVPE(5Ii|ahy);TJ z=sOUE-uo@LPi?>ix@B*;i8X!7fn^Og?vSdovK=JC@BBdunoMm%mo&$==Co^uy3BH| zA__Nyr1O$P$V8~yh7>_*%nF)@zm-8P6Qj*?`DI<&d4?48?>7P4rZw8W5JI*=W}$p5 z<)E2nljY$cL09Zy(tZ7KAWi=>Bwd?K1GT*^Oq!p(N&#u7gbv9-%vvI``mda#ia=&63o!jD|lJ1QTp^I@cH`)-b8xaHq7@q z_ah3*at+B%x->1wxD2wU+jhuZz}+*qq}VEIGJ(1b@=KTtN21MLhFE~^JxDw81({mIVw1&Y7`n)=`_X5w$_CW^;I2ftcE$iD$qe$JDl4k*z{@lOS zHGl;+e8{r0T z%gnN^h%~(=m zVSP)ce8Xd=H`6-E2kxaQpB2IjxI3U$D>Jv4PTa``5Ox!&`g)vQVO z`x&9>^Z_Sn1l%;k9A*e?xiQYgmeN(5nX1rC_fowXZnCiuBrnh#8bvUdMTd#_r=5>cvEDQMyHRlFst6MKnP#4|@mujdQ9mE3s22>CvSZHz!{mIb`hE-7jH?#6;2?;=dGxWKD3gb%V z#s{*GbtHaF=S%J2baLYz&n^}q4?2Nl4av2BiNYA6$+()9$=j~X#N|vGxw9QnpP$2- zN%zH_-EdxUlf|==S%#aKh8oTZz!Azu5=9o#rCF%yXD(wL-V9ANK#EErsZcq;2%ZE+ zB{SkInJjQWQ*pJ73uK5v>tkxkeHX>@6Ef$d>QIDIDA3ZAheKi?L@gG!hb#>|`lIWE}zY9W3xtmVA z(E$Lvse!iUZU6LjQh*QpSP0$L=4M}m`AwlPnsYJVMCfsha^ro`25ueDmQR)Zgpgu1nxdnr~Qa8$0mOe?NMd~!# zp;zV9zVE(wndZ$A_pT&c*|Ym)c}Ty;pSm?*cA)IdooJKQM07Ay_8oUIv9f@nCmyr-Y1%VmYBcNdc_<+9Esml`M^ zB&UF^Rvvnz_9GwA3l!N0&e$uDvH0I;ouRoa*gymodcN?HNz)i;eL#)xB1E4>$Q; zHRXLT>!~V-qi?CUD^YlsDNa~AurG}_iXkDJ9d2&Y14s$0-fT5yH zk@TNET@*dLxv^S4Qe7=9K)K$iaL~4Sr>ze=B?-cC7qmk%A;Vj(!mN}IC=%sIAQeSM z>exQG)cjhb!m@_Nf&l@Z;{~sV0ta5Ku5G}Ib4t8kwfi;i#Ii`+Yj%DrnI;{7T8@Wf zAXR0&8!3iUu7iEt#BHj%tHUy&HO1Xu@50!0|NMCL@?$f-#kWhfO6u@AE?r9~YQ0}{ z5#dZOPs z!E11=(dvV!Ciitf`6ToT4$2Z-_aW%csp)`E-jK~;j``$^8Y|aG6aK9VJVsUz1SUVf z5y@qAB45Mpu1&QJGLR-<7hAOpwmF;%d$nrsU;gs3AE?epO8F&(yr=)coqy%f!CX=J z>fg9r-ewlbxFpe&%rem_Px;(3RY+b?+D6i}7ABE?K${d$8}2ueB&$bNre%6YVc`+-^{l-ADvfo6F-|UM`mh zXpQasOTwXmRUWTTp_~z$Tx<>TgFDJ+fh9Ze?}{-z)aW%s+bvSSqLkvcA>;IMzxNg$ z*8D0Hwcr8gqI6*M#_iwjxFV`NJOlP+-Quvm-BHNqObchgf(c*OqZHwgi4;IGQ`Xlp zE)`(c0hM!Wt-cLPNZYa_y~kJb9D7&j+2NMkk2LERBhwz}$%0XH9gNBf3|+i}$q~(v zMe)9`#2aTc(#RfIb+#~9n7aK0dm_SfCw?)o89)BoY#?+v9&Kqnn$Zmg6M&LcamL`~ zXL43G_V^Tf8;4!OPVY-0 z5FYGGV$j<#q(UB7t%I`n`K49kpCwe5K;5>bPymS~y)0ieTrcwFG0}9f-987IC{ObN zD3MJO+6%ic=b8_D&-!X?hOSuL%G!vg04Vvutv^$K&W+>iJ^FbZo96FB_VV`Lk&G^b zFgQ@}c<$AXMfcS+1koARMc!cP4Q5&g6F=Re3_eVO)MX_GY>>N6=)DAQ;@v(DCeBR$4w zXQ}Gzm?=;f{UjlEPnkbQ2gpz3e2{i?E(kO(DlX(ZY75VQ4cE?j;A!l4pfoFbWDRs{ zte(t*o*81;ROVTqo!7TLv7KGwI=Tz2DBEMr)kys>bMaQ@O#1zV(Xls8>{xRoZz^}z zZ>e;+X=-ZL_MR`jJp=X|-1G@2$7t}a9D0d&GoghZ{dB>~BJwFGOl#U71#`6NDL^YC zf23gV7+?ojj50bEgp808xozoIPdXpXaA4(L2F{}H6q_x^!%QuoPVL<57^b4^VJq~^ z;rXu}rRmSzPHtqjZo&`Dtr}#eqZX^qw4H^M?O`6 z+^{+`mxE$G?1#*4$i&J9b7`$5Ac0cYYggmE7f`xlgmLtQbmGF;qvt!hm8}#oA>ZJ3ntu$XRDld z9j&icI;6x$tdi_K?Mq=qv`!$hE2Bcfq@aJ8ON6DDC*pjC*)QRtit4#cn>w2A8%=$& z?l`WB^y{tbU{0*s2jd=Z4oCk=JtNPb=11XB;y0wX@b84i{kP#q@LIr|(*Oif^Og=i z;J6L&mA&G&NAcEs%PComR~Cjd2q{YY2VIMv$Gw#Dr0Wi6Ao3^{X3wEu-8`WIn(I&` z^+=yIyp}bxdlZIYRFS4sRBH1SvaVzYM$QL66Yc<`V^imqidfw%ih1~Je4o<7h5iLT zFzi)Ai43|4SnzLmgi){Z#20pm%^a(eqAK9;UAkh?f2T82j$H zUo=ynB=uSt97gRJm~}$prTSVJzc+(BGBQAX?0}x03WEjSXyI~G2kdL>ifroHg_mpz zKUs9<%DKU};hUHMPC#!F^adi%ywv>KbS6c^I2=|yo~)-)_j%(ARdg)mRb_J#GIp4f zu;GbvnZf}lRykNY^u@i5Y&Szcp0GAhJv}XLjGXZf|a!koAjCX@|y zf8X;w<0~pw(9gN?U7tdK;c)3Qs=0JJSI9gSU5E227;ON;V=F2G6umrYJJs>5P30j< z)F#r2eyqaB8WyK4mv>~ayPp~&AoFyFe}9q0&!}ELey*)?>-#e*>}wET`a|5-xu37% zXdm#Y(Pbyu&_<)Z0*zE8fvcXK|LTZhjyG^|!JfAMSFX{ed!VAzi2vHFfA<)LQZz)Y zlCr?racf>MBS=}%y^Ov|WmhM@bM8i(&^ z>hEu^rz^-XU>sG25`XkdYdmQkO(4ZhQ5H&GebpiqjqbDbDHMt#F3)V#eq7*oh@@fv za--dW37pLUk;J9F*x;vhZl+r%Q(Xw+^SB|}_pagu(!7(raU}}Zr5(7&M{;Fk?u2dG ze8|2a&|CVg)3~nbrF5GFJVmz%%d4XPi2lca9O5P-&Kfs!kV5GPM#{JS~s4ySBZ_{m0K`^I=K7+=C zAMGg~E#T}xj28dv8m-9YkwLXmo2T^^3PlqKNJRphV<(DVhAQhv3lP|;P#m&4)f8k-deUd za`NfIHjXZA0Sil+J{0UMYKnl=oKD7+enr4$PO~yEcdkub zYoX93n`Q^LR+jug)|ta33LaOlBlC|~4;IerH~zJ@i-ap1(O3vmrYLs)W@f^-_;9(C z%)QM!ARt0fI(0=b(pGk&2XUb_&LX#L{ybqA!nn7jfSYXOH`!i02LaI5_$C4^x@Q=X zOY@gWS!Z5G3KBhP498U!bL)=#V-Va01f{g(aaa~&xhU}G7B~Q zGzfJ(V8eM!XxramDqq)Ay45?5+Wq-DVk+~Hm_h{r3mVWb9)vTvbyD)y_pDZ><=I8a zS&9l3u@;CJZ2b1`@Z%zV#JlY+4K2~wLxJkZ<#zV$7i-d@#(FDu+M%I>=p&@#vIht- zX*^;L35c9#!8fCM2UAiWal^MMqJ%iTGdcHY7zNW59!0X6!39{Nvi|fA|G-;iQ=HC?x;pI$3-j3;?V8bdJ2q|FK9m0bW(| zER*lZMBj!xRGU)!snT|Z>Gvl|a8;*#wxe}h1asqiWMU$f833U90?!Z5UVeShmfzVY z^5;h*g8B1u-{O@pNdQ3nJppYqT@Mc8HuT?YL+i2rO@i8h0PJAZ{jGK-GU>L`JWF>z z>(ROzrKhH!qzilJzbemJwAopSSYWQm7~siT3f(I<6~2?QINa zJnu|gC8L5#iVl1;|8Y1UN~SXXU$f2%WQG@T$QK(HZCOXOBMHW&_ckx7M7QL>OH4$J zAA0oEYw1ubE$2u+lV)Y9lg2wpU}GHTLOjLh?X(q6ZrkNEi|Ouvvlsa@J1dpzqMUw3 zQy&B$&gdRsJiTe5R-Zsv74Q_xK?;Mg6({(n&*y$+QXuISr?{acg8h13rqjleI_1xX za~|bU)C*hIc=e_w3jpHbdC-{Y$~>lLx(b=p(R&D(w;KxtjFrx2GFf_zbD8` zO04!j#y9;zyQ;+tugPofCU2-tJMqngRoI7ePe>>Vg&d?12X9eC#lxg)QJy`C5#;*h z=?U{jgJa?@Z8_-!l3m7ADa>ex%Bdif5uWV(H{wgTP{V>NuIAd$mBZt^62+PR60q*o z_^=}VOz>iSPrK0Yu7nfMHAXH6(h5!5W8slgRT1l~-)`2q8t4tJ&?$W?Ajr2Bs{N)A zd9iFFn&s0uZwXSQd zML_x1Ki#XR!nS(M-}`6JB!teVFpuRP@8y{Zn)GS|0d=EV6d8(-vt#2^1uk6-w|#0R=a^Abu540T>9 ztvr6*-dCRxw+9JkDl$CFQ4>|%?Wbc7n8%bu&ZiJ|>BSY8_`sJ85?~xk+gnTyWy~#G z?kZ6lkN#9%%=6E2xJm$FzB+lnv$-yvv=OQD`yvIX5QLf*r3U_yQ2p!DUn4@bVX21+#!)}k)$u7xO%|urLM7m(dB{oQrZY^twMGNMK^fwAkY*VzZ$zun zjqx@^67BceCtkS&d(=PY z>K?dAtl%4d9v8sQQAN`6*^o*V<{xQzIJqu#bW!M4%Bs$mtc&LH&z+E+EX1ORuN?^i zB_;}8;Y>=d7d{^CJhmH%y{sPW1uoetB<}NQR5Gkw z#~=T5_(boi>-yCoGwW9-JDLAEh4*`1z63jFLPhS>n$M6fLx!R^n`)AauIpuLF;w4TLlNB(~G1e|cp~L?N*vME# literal 0 HcmV?d00001 diff --git a/static/samples/haxe-openfl/list-view-drag-and-drop/index.html b/static/samples/haxe-openfl/list-view-drag-and-drop/index.html new file mode 100644 index 00000000..f8b39aa2 --- /dev/null +++ b/static/samples/haxe-openfl/list-view-drag-and-drop/index.html @@ -0,0 +1,44 @@ + + + + + + + Drag and drop between two ListView components — Feathers UI Samples + + + + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/static/samples/haxe-openfl/list-view-drag-and-drop/manifest/default.json b/static/samples/haxe-openfl/list-view-drag-and-drop/manifest/default.json new file mode 100644 index 00000000..2e15e51e --- /dev/null +++ b/static/samples/haxe-openfl/list-view-drag-and-drop/manifest/default.json @@ -0,0 +1 @@ +{"name":null,"assets":"aoy4:pathy34:assets%2Fimg%2Ffeathersui-logo.pngy4:sizei3872y4:typey5:IMAGEy2:idy15:feathersui-logogh","rootPath":null,"version":2,"libraryArgs":[],"libraryType":null} \ No newline at end of file