/*
 howler.js v2.1.1 | (c) 2013-2018, 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(ca){var y=0;return function(){return y<ca.length?{done:!1,value:ca[y++]}:{done:!0}}};$jscomp.arrayIterator=function(ca){return{next:$jscomp.arrayIteratorImpl(ca)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(ca,y,E){ca!=Array.prototype&&ca!=Object.prototype&&(ca[y]=E.value)};$jscomp.getGlobal=function(ca){ca=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,ca];for(var y=0;y<ca.length;++y){var E=ca[y];if(E&&E.Math==Math)return E}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.SymbolClass=function(ca,y){this.$jscomp$symbol$id_=ca;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:y})};$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_};
$jscomp.Symbol=function(){function ca(E){if(this instanceof ca)throw new TypeError("Symbol is not a constructor");return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(E||"")+"_"+y++,E)}var y=0;return ca}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var ca=$jscomp.global.Symbol.iterator;ca||(ca=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[ca]&&$jscomp.defineProperty(Array.prototype,ca,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var ca=$jscomp.global.Symbol.asyncIterator;ca||(ca=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("Symbol.asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(ca){$jscomp.initSymbolIterator();ca={next:ca};ca[$jscomp.global.Symbol.iterator]=function(){return this};return ca};
$jscomp.iteratorFromArray=function(ca,y){$jscomp.initSymbolIterator();ca instanceof String&&(ca+="");var E=0,K={next:function(){if(E<ca.length){var M=E++;return{value:y(M,ca[M]),done:!1}}K.next=function(){return{done:!0,value:void 0}};return K.next()}};K[Symbol.iterator]=function(){return K};return K};
$jscomp.polyfill=function(ca,y,E,K){if(y){E=$jscomp.global;ca=ca.split(".");for(K=0;K<ca.length-1;K++){var M=ca[K];M in E||(E[M]={});E=E[M]}ca=ca[ca.length-1];K=E[ca];y=y(K);y!=K&&null!=y&&$jscomp.defineProperty(E,ca,{configurable:!0,writable:!0,value:y})}};$jscomp.polyfill("Array.prototype.keys",function(ca){return ca?ca:function(){return $jscomp.iteratorFromArray(this,function(y){return y})}},"es6","es3");
$jscomp.polyfill("String.fromCodePoint",function(ca){return ca?ca:function(y){for(var E="",K=0;K<arguments.length;K++){var M=Number(arguments[K]);if(0>M||1114111<M||M!==Math.floor(M))throw new RangeError("invalid_code_point "+M);65535>=M?E+=String.fromCharCode(M):(M-=65536,E+=String.fromCharCode(M>>>10&1023|55296),E+=String.fromCharCode(M&1023|56320))}return E}},"es6","es3");
$jscomp.findInternal=function(ca,y,E){ca instanceof String&&(ca=String(ca));for(var K=ca.length,M=0;M<K;M++){var ea=ca[M];if(y.call(E,ea,M,ca))return{i:M,v:ea}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(ca){return ca?ca:function(y,E){return $jscomp.findInternal(this,y,E).v}},"es6","es3");
$jscomp.polyfill("Array.prototype.fill",function(ca){return ca?ca:function(y,E,K){var M=this.length||0;0>E&&(E=Math.max(0,M+E));if(null==K||K>M)K=M;K=Number(K);0>K&&(K=Math.max(0,M+K));for(E=Number(E||0);E<K;E++)this[E]=y;return this}},"es6","es3");
$jscomp.checkStringArgs=function(ca,y,E){if(null==ca)throw new TypeError("The 'this' value for String.prototype."+E+" must not be null or undefined");if(y instanceof RegExp)throw new TypeError("First argument to String.prototype."+E+" must not be a regular expression");return ca+""};
$jscomp.polyfill("String.prototype.endsWith",function(ca){return ca?ca:function(y,E){var K=$jscomp.checkStringArgs(this,y,"endsWith");y+="";void 0===E&&(E=K.length);E=Math.max(0,Math.min(E|0,K.length));for(var M=y.length;0<M&&0<E;)if(K[--E]!=y[--M])return!1;return 0>=M}},"es6","es3");
$jscomp.polyfill("String.prototype.repeat",function(ca){return ca?ca:function(y){var E=$jscomp.checkStringArgs(this,null,"repeat");if(0>y||1342177279<y)throw new RangeError("Invalid count value");y|=0;for(var K="";y;)if(y&1&&(K+=E),y>>>=1)E+=E;return K}},"es6","es3");
$jscomp.polyfill("String.prototype.startsWith",function(ca){return ca?ca:function(y,E){var K=$jscomp.checkStringArgs(this,y,"startsWith");y+="";var M=K.length,ea=y.length;E=Math.max(0,Math.min(E|0,K.length));for(var r=0;r<ea&&E<M;)if(K[E++]!=y[r++])return!1;return r>=ea}},"es6","es3");$jscomp.polyfill("Array.prototype.values",function(ca){return ca?ca:function(){return $jscomp.iteratorFromArray(this,function(y,E){return E})}},"es8","es3");
(function(ca,y){ca.lime=ca.lime||{};ca.lime.$scripts=ca.lime.$scripts||{};ca.lime.$scripts.room=function(y,K){(function(y,E){function r(a,b){a=Object.create(a);for(var c in b)a[c]=b[c];b.toString!==Object.prototype.toString&&(a.toString=b.toString);return a}function M(a){return a instanceof Array?new pe(a):a.iterator()}function k(a,b){if(null==b)return null;null==b.__id__&&(b.__id__=E.$haxeUID++);var c;null==a.hx__closures__?a.hx__closures__={}:c=a.hx__closures__[b.__id__];null==c&&(c=b.bind(a),a.hx__closures__[b.__id__]=
c);return c}y.lime=y.lime||{};var g={},v=function(){return N.__string_rec(this,"")},P=P||{},x,Y=function(){};g["openfl.events.IEventDispatcher"]=Y;Y.__name__="openfl.events.IEventDispatcher";Y.__isInterface__=!0;Y.prototype={addEventListener:null,dispatchEvent:null,hasEventListener:null,removeEventListener:null,willTrigger:null,__class__:Y};var L=function(a){null!=a&&(this.__targetDispatcher=a)};g["openfl.events.EventDispatcher"]=L;L.__name__="openfl.events.EventDispatcher";L.__interfaces__=[Y];L.prototype=
{__eventMap:null,__iterators:null,__targetDispatcher:null,addEventListener:function(a,b,c,d,e){null==d&&(d=0);null==c&&(c=!1);if(null!=b)if(null==this.__eventMap&&(this.__eventMap=new da,this.__iterators=new da),Object.prototype.hasOwnProperty.call(this.__eventMap.h,a)){l=this.__eventMap.h[a];e=0;for(var f=l.length;e<f;){var h=e++;if(l[h].match(b,c))return}a=this.__iterators.h[a];for(e=0;e<a.length;)f=a[e],++e,f.active&&f.copy();this.__addListenerByPriority(l,new om(b,c,d))}else{var l=[];l.push(new om(b,
c,d));f=new pm(l);this.__eventMap.h[a]=l;this.__iterators.h[a]=[f]}},dispatchEvent:function(a){a.target=null!=this.__targetDispatcher?this.__targetDispatcher:this;return this.__dispatchEvent(a)},hasEventListener:function(a){return null==this.__eventMap?!1:Object.prototype.hasOwnProperty.call(this.__eventMap.h,a)},removeEventListener:function(a,b,c){null==c&&(c=!1);if(null!=this.__eventMap&&null!=b){var d=this.__eventMap.h[a];if(null!=d){for(var e=this.__iterators.h[a],f=0,h=d.length;f<h;){var l=f++;
if(d[l].match(b,c)){for(b=0;b<e.length;)c=e[b],++b,c.remove(d[l],l);d.splice(l,1);break}}0==d.length&&(d=this.__eventMap,e=a,Object.prototype.hasOwnProperty.call(d.h,e)&&delete d.h[e],d=this.__iterators,e=a,Object.prototype.hasOwnProperty.call(d.h,e)&&delete d.h[e]);0>=Object.keys(this.__eventMap.h).length&&(this.__iterators=this.__eventMap=null)}}},toString:function(){return"[object "+N.getClass(this).__name__.split(".").pop()+"]"},willTrigger:function(a){return this.hasEventListener(a)},__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 e=b[0];e.active&&(e=new pm(c),b.push(e));e.start();for(var f=e;f.hasNext();){var h=f.next();if(null!=h&&h.useCapture==d&&(h.callback(a),a.__isCanceledNow))break}e.stop();e!=b[0]?G.remove(b,e):e.reset(c);return!a.isDefaultPrevented()},__removeAllListeners:function(){this.__iterators=
this.__eventMap=null},__addListenerByPriority:function(a,b){for(var c=a.length,d=c,e=0;e<c;){var f=e++;if(a[f].priority<b.priority){d=f;break}}a.splice(d,0,b)},__class__:L};var Wa=function(){};g["openfl.display.IBitmapDrawable"]=Wa;Wa.__name__="openfl.display.IBitmapDrawable";Wa.__isInterface__=!0;Wa.prototype={__blendMode:null,__drawableType:null,__isMask:null,__renderable:null,__renderTransform:null,__transform:null,__worldAlpha:null,__worldColorTransform:null,__worldTransform:null,__getBounds:null,
__update:null,__updateTransforms:null,__mask:null,__scrollRect:null,__class__:Wa};var fb={__properties__:{set_length:"set_length",get_length:"get_length",set_fixed:"set_fixed",get_fixed:"get_fixed"},concat:function(a,b){return a.concat(b)},copy:function(a){return a.copy()},filter:function(a,b){return a.filter(b)},get:function(a,b){return a.get(b)},indexOf:function(a,b,c){null==c&&(c=0);return a.indexOf(b,c)},insertAt:function(a,b,c){a.insertAt(b,c)},iterator:function(a){return a.iterator()},join:function(a,
b){null==b&&(b=",");return a.join(b)},lastIndexOf:function(a,b,c){return a.lastIndexOf(b,c)},pop:function(a){return a.pop()},push:function(a,b){return a.push(b)},removeAt:function(a,b){return a.removeAt(b)},reverse:function(a){return a.reverse()},set:function(a,b,c){return a.set(b,c)},shift:function(a){return a.shift()},slice:function(a,b,c){null==b&&(b=0);return a.slice(b,c)},sort:function(a,b){a.sort(b)},splice:function(a,b,c){return a.splice(b,c)},toString:function(a){return null!=a?a.toString():
null},unshift:function(a,b){a.unshift(b)},convert:function(a){return a},toBoolVector:function(a,b,c,d){return new $f(b,c,d)},toIntVector:function(a,b,c,d){return new ag(b,c,d)},toFloatVector:function(a,b,c,d){return new bg(b,c,d,!0)},toFunctionVector:function(a,b,c,d){return new cg(b,c,d)},toObjectVector:function(a,b,c,d){return new vf(b,c,d,!0)},toNullVector:function(a,b,c,d){return new vf(b,c,d,!0)},fromBoolVector:function(a){return a},fromIntVector:function(a){return a},fromFloatVector:function(a){return a},
fromFunctionVector:function(a){return a},fromObjectVector:function(a){return a},get_fixed:function(a){return a.fixed},set_fixed:function(a,b){return a.fixed=b},get_length:function(a){return a.get_length()},set_length:function(a,b){return a.set_length(b)}},K=function(a,b,c){this.__pool=new ea;this.inactiveObjects=this.activeObjects=0;this.__inactiveObject1=this.__inactiveObject0=null;this.__inactiveObjectList=new hb;null!=a&&(this.create=a);null!=b&&(this.clean=b);null!=c&&this.set_size(c)};g["lime.utils.ObjectPool"]=
K;K.__name__="lime.utils.ObjectPool";K.prototype={activeObjects:null,inactiveObjects:null,__inactiveObject0:null,__inactiveObject1:null,__inactiveObjectList:null,__pool:null,__size:null,add:function(a){this.__pool.exists(a)||(this.__pool.set(a,!1),this.clean(a),null==this.__inactiveObject0?this.__inactiveObject0=a:null==this.__inactiveObject1?this.__inactiveObject1=a:this.__inactiveObjectList.add(a),this.inactiveObjects++)},clean:function(a){},clear:function(){this.__pool=new ea;this.inactiveObjects=
this.activeObjects=0;this.__inactiveObject1=this.__inactiveObject0=null;this.__inactiveObjectList.clear()},create:function(){return null},get:function(){var a=null;if(0<this.inactiveObjects)null!=this.__inactiveObject0?(a=this.__inactiveObject0,this.__inactiveObject0=null):null!=this.__inactiveObject1?(a=this.__inactiveObject1,this.__inactiveObject1=null):(a=this.__inactiveObjectList.pop(),0<this.__inactiveObjectList.length&&(this.__inactiveObject0=this.__inactiveObjectList.pop()),0<this.__inactiveObjectList.length&&
(this.__inactiveObject1=this.__inactiveObjectList.pop())),this.inactiveObjects--,this.activeObjects++;else if(null==this.__size||this.activeObjects<this.__size)a=this.create(),null!=a&&(this.__pool.set(a,!0),this.activeObjects++);return a},release:function(a){this.activeObjects--;null==this.__size||this.activeObjects+this.inactiveObjects<this.__size?(this.clean(a),null==this.__inactiveObject0?this.__inactiveObject0=a:null==this.__inactiveObject1?this.__inactiveObject1=a:this.__inactiveObjectList.add(a),
this.inactiveObjects++):this.__pool.remove(a)},remove:function(a){this.__pool.exists(a)&&(this.__pool.remove(a),this.__inactiveObject0==a?(this.__inactiveObject0=null,this.inactiveObjects--):this.__inactiveObject1==a?(this.__inactiveObject1=null,this.inactiveObjects--):this.__inactiveObjectList.remove(a)?this.inactiveObjects--:this.activeObjects--)},__addInactive:function(a){null==this.__inactiveObject0?this.__inactiveObject0=a:null==this.__inactiveObject1?this.__inactiveObject1=a:this.__inactiveObjectList.add(a);
this.inactiveObjects++},__getInactive:function(){if(null!=this.__inactiveObject0){var a=this.__inactiveObject0;this.__inactiveObject0=null}else null!=this.__inactiveObject1?(a=this.__inactiveObject1,this.__inactiveObject1=null):(a=this.__inactiveObjectList.pop(),0<this.__inactiveObjectList.length&&(this.__inactiveObject0=this.__inactiveObjectList.pop()),0<this.__inactiveObjectList.length&&(this.__inactiveObject1=this.__inactiveObjectList.pop()));this.inactiveObjects--;this.activeObjects++;return a},
__removeInactive:function(a){if(!(0>=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}},get_size:function(){return this.__size},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;c<d;)if(c++,b=this.create(),null!=b)this.__pool.set(b,!1),this.__inactiveObjectList.add(b),this.inactiveObjects++;else break}return a},__class__:K,__properties__:{set_size:"set_size",get_size:"get_size"}};var ca=function(){};
g["haxe.IMap"]=ca;ca.__name__="haxe.IMap";ca.__isInterface__=!0;ca.prototype={get:null,set:null,exists:null,remove:null,keys:null,iterator:null,keyValueIterator:null,__class__:ca};var ea=function(){this.h={__keys__:{}}};g["haxe.ds.ObjectMap"]=ea;ea.__name__="haxe.ds.ObjectMap";ea.__interfaces__=[ca];ea.prototype={h:null,set:function(a,b){var c=a.__id__;null==c&&(c=a.__id__=E.$haxeUID++);this.h[c]=b;this.h.__keys__[c]=a},get:function(a){return this.h[a.__id__]},exists:function(a){return null!=this.h.__keys__[a.__id__]},
remove:function(a){a=a.__id__;if(null==this.h.__keys__[a])return!1;delete this.h[a];delete this.h.__keys__[a];return!0},keys:function(){var a=[],b;for(b in this.h.__keys__)this.h.hasOwnProperty(b)&&a.push(this.h.__keys__[b]);return new pe(a)},iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var a=this.it.next();return this.ref[a.__id__]}}},keyValueIterator:function(){return new Fi(this)},toString:function(){var a="[";for(var b=this.keys();b.hasNext();){var c=
b.next();a+=B.string(B.string(c));a+=" => ";a+=B.string(B.string(this.h[c.__id__]));b.hasNext()&&(a+=", ")}return a+"]"},__class__:ea};var hb=function(){this.length=0};g["haxe.ds.List"]=hb;hb.__name__="haxe.ds.List";hb.prototype={h:null,q:null,length:null,add:function(a){a=new ho(a,null);null==this.h?this.h=a:this.q.next=a;this.q=a;this.length++},push:function(a){this.h=a=new ho(a,this.h);null==this.q&&(this.q=a);this.length++},first:function(){return null==this.h?null:this.h.item},pop:function(){if(null==
this.h)return null;var a=this.h.item;this.h=this.h.next;null==this.h&&(this.q=null);this.length--;return a},isEmpty:function(){return null==this.h},clear:function(){this.q=this.h=null;this.length=0},remove:function(a){for(var b=null,c=this.h;null!=c;){if(c.item==a)return null==b?this.h=c.next:b.next=c.next,this.q==c&&(this.q=b),this.length--,!0;b=c;c=c.next}return!1},iterator:function(){return new ps(this.h)},toString:function(){var a,b=!0,c=this.h;for(a="{";null!=c;)b?b=!1:a+=", ",a+=B.string(B.string(c.item)),
c=c.next;return a+"}"},__class__:hb};var ka=function(){L.call(this);this.__alpha=this.__drawableType=1;this.__blendMode=10;this.__cacheAsBitmap=!1;this.__transform=new Aa;this.__visible=!0;this.__rotationSine=this.__rotation=0;this.__worldAlpha=this.__scaleY=this.__scaleX=this.__rotationCosine=1;this.__worldBlendMode=10;this.__worldTransform=new Aa;this.__worldColorTransform=new tc;this.__renderTransform=new Aa;this.__worldVisible=!0;this.set_name("instance"+ ++ka.__instanceCount);null!=ka.__initStage&&
(this.stage=ka.__initStage,ka.__initStage=null,this.stage.addChild(this))};g["openfl.display.DisplayObject"]=ka;ka.__name__="openfl.display.DisplayObject";ka.__interfaces__=[Wa];ka.__calculateAbsoluteTransform=function(a,b,c){c.a=a.a*b.a+a.b*b.c;c.b=a.a*b.b+a.b*b.d;c.c=a.c*b.a+a.d*b.c;c.d=a.c*b.b+a.d*b.d;c.tx=a.tx*b.a+a.ty*b.c+b.tx;c.ty=a.tx*b.b+a.ty*b.d+b.ty};ka.__super__=L;ka.prototype=r(L.prototype,{opaqueBackground:null,parent:null,stage:null,__alpha:null,__blendMode:null,__cacheAsBitmap:null,
__cacheAsBitmapMatrix:null,__cacheBitmap:null,__cacheBitmapBackground:null,__cacheBitmapColorTransform:null,__cacheBitmapData:null,__cacheBitmapData2:null,__cacheBitmapData3:null,__cacheBitmapMatrix:null,__cacheBitmapRenderer:null,__cairo:null,__children:null,__customRenderClear:null,__customRenderEvent:null,__drawableType:null,__filters:null,__graphics:null,__interactive:null,__isCacheBitmapRender:null,__isMask:null,__loaderInfo:null,__mask:null,__maskTarget:null,__name:null,__objectTransform:null,
__renderable:null,__renderDirty:null,__renderParent:null,__renderTransform:null,__renderTransformCache:null,__renderTransformChanged:null,__rotation:null,__rotationCosine:null,__rotationSine:null,__scale9Grid:null,__scaleX:null,__scaleY:null,__scrollRect:null,__shader:null,__tempPoint:null,__transform:null,__transformDirty:null,__visible:null,__worldAlpha:null,__worldAlphaChanged:null,__worldBlendMode:null,__worldClip:null,__worldClipChanged:null,__worldColorTransform:null,__worldShader:null,__worldScale9Grid:null,
__worldTransform:null,__worldVisible:null,__worldVisibleChanged:null,__worldTransformInvalid:null,__worldZ:null,__canvas:null,__context:null,__style:null,addEventListener:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);switch(a){case "activate":case "deactivate":case "enterFrame":case "exitFrame":case "frameConstructed":case "render":Object.prototype.hasOwnProperty.call(ka.__broadcastEvents.h,a)||(ka.__broadcastEvents.h[a]=[]);var f=ka.__broadcastEvents.h[a];-1==f.indexOf(this)&&
f.push(this);break;case "clearDOM":case "renderCairo":case "renderCanvas":case "renderDOM":case "renderOpenGL":null==this.__customRenderEvent&&(this.__customRenderEvent=new Hg(null),this.__customRenderEvent.objectColorTransform=new tc,this.__customRenderEvent.objectMatrix=new Aa,this.__customRenderClear=!0)}L.prototype.addEventListener.call(this,a,b,c,d,e)},dispatchEvent:function(a){if(a instanceof eb){var b=this.__getRenderTransform();a.stageX=a.localX*b.a+a.localY*b.c+b.tx;b=this.__getRenderTransform();
a.stageY=a.localX*b.b+a.localY*b.d+b.ty}else a instanceof xd&&(b=this.__getRenderTransform(),a.stageX=a.localX*b.a+a.localY*b.c+b.tx,b=this.__getRenderTransform(),a.stageY=a.localX*b.b+a.localY*b.d+b.ty);a.target=this;return this.__dispatchWithCapture(a)},getBounds:function(a){var b=Aa.__pool.get();if(null!=a&&a!=this){b.copyFrom(this.__getWorldTransform());var c=Aa.__pool.get();c.copyFrom(a.__getWorldTransform());c.invert();b.concat(c);Aa.__pool.release(c)}else b.identity();a=new ha;this.__getBounds(a,
b);Aa.__pool.release(b);return a},getRect:function(a){return this.getBounds(a)},globalToLocal:function(a){return this.__globalToLocal(a,new ab)},hitTestObject:function(a){if(null!=a&&null!=a.parent&&null!=this.parent){var b=this.getBounds(this);a=a.getBounds(this);return b.intersects(a)}return!1},hitTestPoint:function(a,b,c){null==c&&(c=!1);return null!=this.stage?this.__hitTest(a,b,c,null,!1,this):!1},invalidate:function(){this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},
localToGlobal:function(a){return this.__getRenderTransform().transformPoint(a)},removeEventListener:function(a,b,c){null==c&&(c=!1);L.prototype.removeEventListener.call(this,a,b,c);switch(a){case "activate":case "deactivate":case "enterFrame":case "exitFrame":case "frameConstructed":case "render":this.hasEventListener(a)||Object.prototype.hasOwnProperty.call(ka.__broadcastEvents.h,a)&&G.remove(ka.__broadcastEvents.h[a],this);break;case "clearDOM":case "renderCairo":case "renderCanvas":case "renderDOM":case "renderOpenGL":this.hasEventListener("clearDOM")||
this.hasEventListener("renderCairo")||this.hasEventListener("renderCanvas")||this.hasEventListener("renderDOM")||this.hasEventListener("renderOpenGL")||(this.__customRenderEvent=null)}},__cleanup:function(){this.__context=this.__canvas=this.__cairo=null;null!=this.__graphics&&this.__graphics.__cleanup();null!=this.__cacheBitmap&&(this.__cacheBitmap.__cleanup(),this.__cacheBitmap=null);null!=this.__cacheBitmapData&&(this.__cacheBitmapData.dispose(),this.__cacheBitmapData=null)},__dispatch:function(a){if(null!=
this.__eventMap&&this.hasEventListener(a.type)){var b=L.prototype.__dispatchEvent.call(this,a);return a.__isCanceled?!0:b}return!0},__dispatchChildren:function(a){},__dispatchEvent:function(a){var b=a.bubbles?this.parent:null,c=L.prototype.__dispatchEvent.call(this,a);if(a.__isCanceled)return!0;null!=b&&b!=this&&(a.eventPhase=3,null==a.target&&(a.target=this),b.__dispatchEvent(a));return c},__dispatchWithCapture:function(a){null==a.target&&(a.target=this);if(null!=this.parent)if(a.eventPhase=1,this.parent==
this.stage)this.parent.__dispatch(a);else{for(var b=ka.__tempStack.get(),c=this.parent,d=0;null!=c;)b.set(d,c),c=c.parent,++d;c=0;for(var e=d;c<e;){var f=c++;b.get(d-f-1).__dispatch(a)}ka.__tempStack.release(b)}a.eventPhase=2;return this.__dispatchEvent(a)},__enterFrame:function(a){},__getBounds:function(a,b){null!=this.__graphics&&this.__graphics.__getBounds(a,b)},__getCursor:function(){return null},__getFilterBounds:function(a,b){this.__getRenderBounds(a,b);if(null!=this.__filters){b=ha.__pool.get();
for(var c=0,d=this.__filters;c<d.length;){var e=d[c];++c;b.__expand(-e.__leftExtension,-e.__topExtension,e.__leftExtension+e.__rightExtension,e.__topExtension+e.__bottomExtension)}a.width+=b.width;a.height+=b.height;a.x+=b.x;a.y+=b.y;ha.__pool.release(b)}},__getInteractive:function(a){return!1},__getLocalBounds:function(a){this.__getBounds(a,this.__transform);a.x-=this.__transform.tx;a.y-=this.__transform.ty},__getRenderBounds:function(a,b){if(null==this.__scrollRect)this.__getBounds(a,b);else{var c=
ha.__pool.get();c.copyFrom(this.__scrollRect);c.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);ha.__pool.release(c)}},__getRenderTransform:function(){this.__getWorldTransform();return this.__renderTransform},__getWorldTransform:function(){if(this.__transformDirty||this.__worldTransformInvalid){var a=[],b=this;if(null==this.parent)this.__update(!0,!1);else for(;b!=this.stage&&(a.push(b),b=b.parent,null!=b););for(var c=a.length;0<=--c;)b=a[c],b.__update(!0,!1)}return this.__worldTransform},__globalToLocal:function(a,
b){this.__getRenderTransform();if(a==b){var c=this.__renderTransform,d=c.a*c.d-c.b*c.c;if(0==d)a.x=-c.tx,a.y=-c.ty;else{var e=1/d*(c.c*(c.ty-a.y)+c.d*(a.x-c.tx));a.y=1/d*(c.a*(a.y-c.ty)+c.b*(c.tx-a.x));a.x=e}}else c=this.__renderTransform,d=c.a*c.d-c.b*c.c,b.x=0==d?-c.tx:1/d*(c.c*(c.ty-a.y)+c.d*(a.x-c.tx)),c=this.__renderTransform,d=c.a*c.d-c.b*c.c,b.y=0==d?-c.ty:1/d*(c.a*(a.y-c.ty)+c.b*(c.tx-a.x));return b},__hitTest:function(a,b,c,d,e,f){if(null!=this.__graphics){if(!f.__visible||this.__isMask||
null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;if(this.__graphics.__hitTest(a,b,c,this.__getRenderTransform()))return null==d||e||d.push(f),!0}return!1},__hitTestMask:function(a,b){return null!=this.__graphics&&this.__graphics.__hitTest(a,b,!0,this.__getRenderTransform())?!0:!1},__readGraphicsData:function(a,b){null!=this.__graphics&&this.__graphics.__readGraphicsData(a)},__setParentRenderDirty:function(){var a=null!=this.__renderParent?this.__renderParent:this.parent;null==a||
a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty())},__setRenderDirty:function(){this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},__setStageReference:function(a){this.stage=a},__setTransformDirty:function(){this.__transformDirty||(this.__transformDirty=!0,this.__setWorldTransformInvalid(),this.__setParentRenderDirty())},__setWorldTransformInvalid:function(){this.__worldTransformInvalid=!0},__stopAllMovieClips:function(){},__update:function(a,b){var c=null!=this.__renderParent?
this.__renderParent:this.parent;this.__isMask&&null==c&&(c=this.__maskTarget);this.__renderable=this.__visible&&0!=this.__scaleX&&0!=this.__scaleY&&!this.__isMask&&(null==c||!c.__isMask);this.__updateTransforms();this.__worldTransformInvalid=this.__transformDirty=!1;if(!a)if(ka.__supportDOM&&(this.__renderTransformChanged=!this.__renderTransform.equals(this.__renderTransformCache),null==this.__renderTransformCache?this.__renderTransformCache=this.__renderTransform.clone():this.__renderTransformCache.copyFrom(this.__renderTransform)),
null!=c){if(ka.__supportDOM){var d=c.__worldVisible&&this.__visible;this.__worldVisibleChanged=this.__worldVisible!=d;this.__worldVisible=d;d=this.get_alpha()*c.__worldAlpha;this.__worldAlphaChanged=this.__worldAlpha!=d;this.__worldAlpha=d}else this.__worldAlpha=this.get_alpha()*c.__worldAlpha;null!=this.__objectTransform?(this.__worldColorTransform.__copyFrom(this.__objectTransform.__colorTransform),this.__worldColorTransform.__combine(c.__worldColorTransform)):this.__worldColorTransform.__copyFrom(c.__worldColorTransform);
this.__worldBlendMode=null==this.__blendMode||10==this.__blendMode?c.__worldBlendMode:this.__blendMode;this.__worldShader=null==this.__shader?c.__shader:this.__shader;this.__worldScale9Grid=null==this.__scale9Grid?c.__scale9Grid:this.__scale9Grid}else this.__worldAlpha=this.get_alpha(),ka.__supportDOM&&(this.__worldVisibleChanged=this.__worldVisible!=this.__visible,this.__worldVisible=this.__visible,this.__worldAlphaChanged=this.__worldAlpha!=this.get_alpha()),null!=this.__objectTransform?this.__worldColorTransform.__copyFrom(this.__objectTransform.__colorTransform):
this.__worldColorTransform.__identity(),this.__worldBlendMode=this.__blendMode,this.__worldShader=this.__shader,this.__worldScale9Grid=this.__scale9Grid;b&&null!=this.get_mask()&&this.get_mask().__update(a,!0)},__updateTransforms:function(a){var b=null!=a;a=b?a:this.__transform;null==this.__worldTransform&&(this.__worldTransform=new Aa);null==this.__renderTransform&&(this.__renderTransform=new Aa);var c=null!=this.__renderParent?this.__renderParent:this.parent;if(b||null==this.parent)this.__worldTransform.copyFrom(a);
else{var d=this.parent.__worldTransform,e=this.__worldTransform;e.a=a.a*d.a+a.b*d.c;e.b=a.a*d.b+a.b*d.d;e.c=a.c*d.a+a.d*d.c;e.d=a.c*d.b+a.d*d.d;e.tx=a.tx*d.a+a.ty*d.c+d.tx;e.ty=a.tx*d.b+a.ty*d.d+d.ty}b||null==c?this.__renderTransform.copyFrom(a):(d=c.__renderTransform,e=this.__renderTransform,e.a=a.a*d.a+a.b*d.c,e.b=a.a*d.b+a.b*d.d,e.c=a.c*d.a+a.d*d.c,e.d=a.c*d.b+a.d*d.d,e.tx=a.tx*d.a+a.ty*d.c+d.tx,e.ty=a.tx*d.b+a.ty*d.d+d.ty);null!=this.__scrollRect&&(b=this.__renderTransform,a=-this.__scrollRect.x,
c=-this.__scrollRect.y,b.tx=a*b.a+c*b.c+b.tx,b.ty=a*b.b+c*b.d+b.ty)},get_alpha:function(){return this.__alpha},set_alpha:function(a){1<a&&(a=1);0>a&&(a=0);a==this.__alpha||this.get_cacheAsBitmap()||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__alpha=a},get_blendMode:function(){return this.__blendMode},set_blendMode:function(a){null==a&&(a=10);a==this.__blendMode||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__blendMode=
a},get_cacheAsBitmap:function(){return null==this.__filters?this.__cacheAsBitmap:!0},set_cacheAsBitmap:function(a){a==this.__cacheAsBitmap||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__cacheAsBitmap=a},get_cacheAsBitmapMatrix:function(){return this.__cacheAsBitmapMatrix},set_cacheAsBitmapMatrix:function(a){this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__cacheAsBitmapMatrix=null!=a?a.clone():a},get_filters:function(){return null==
this.__filters?[]:this.__filters.slice()},set_filters:function(a){null!=a&&0<a.length?(this.__filters=a,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())):null!=this.__filters&&(this.__filters=null,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return a},get_height:function(){var a=ha.__pool.get();this.__getLocalBounds(a);var b=a.height;ha.__pool.release(a);return b},set_height:function(a){var b=ha.__pool.get(),c=Aa.__pool.get();c.identity();this.__getBounds(b,
c);a!=b.height?this.set_scaleY(a/b.height):this.set_scaleY(1);ha.__pool.release(b);Aa.__pool.release(c);return a},get_loaderInfo:function(){return null!=this.stage?ic.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:ic.current.stage.__mouseX,b=null!=this.stage?this.stage.__mouseY:ic.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:ic.current.stage.__mouseX,b=null!=this.stage?this.stage.__mouseY:ic.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_root:function(){return null!=this.stage?ic.current:null},get_rotation:function(){return this.__rotation},set_rotation:function(a){if(a!=
this.__rotation){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_scale9Grid:function(){return null==this.__scale9Grid?null:this.__scale9Grid.clone()},set_scale9Grid:function(a){if(null==
a&&null==this.__scale9Grid||null!=a&&null!=this.__scale9Grid&&this.__scale9Grid.equals(a))return a;null!=a?(null==this.__scale9Grid&&(this.__scale9Grid=new ha),this.__scale9Grid.copyFrom(a)):this.__scale9Grid=null;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());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 ha),this.__scrollRect.copyFrom(a)):this.__scrollRect=null;this.__setTransformDirty();ka.__supportDOM&&!this.__renderDirty&&(this.__renderDirty=!0,this.__setParentRenderDirty());
return a},get_shader:function(){return this.__shader},set_shader:function(a){this.__shader=a;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return a},get_transform:function(){null==this.__objectTransform&&(this.__objectTransform=new io(this));return this.__objectTransform},set_transform:function(a){if(null==a)throw u.thrown(new qm("Parameter transform must be non-null."));null==this.__objectTransform&&(this.__objectTransform=new io(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=ha.__pool.get();this.__getLocalBounds(a);var b=a.width;ha.__pool.release(a);return b},set_width:function(a){var b=ha.__pool.get(),c=Aa.__pool.get();c.identity();this.__getBounds(b,c);a!=b.width?this.set_scaleX(a/b.width):this.set_scaleX(1);ha.__pool.release(b);Aa.__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__:ka,__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_shader:"set_shader",get_shader:"get_shader",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_scale9Grid:"set_scale9Grid",get_scale9Grid:"get_scale9Grid",set_rotation:"set_rotation",get_rotation:"get_rotation",get_root:"get_root",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",set_cacheAsBitmapMatrix:"set_cacheAsBitmapMatrix",
get_cacheAsBitmapMatrix:"get_cacheAsBitmapMatrix",set_cacheAsBitmap:"set_cacheAsBitmap",get_cacheAsBitmap:"get_cacheAsBitmap",set_blendMode:"set_blendMode",get_blendMode:"get_blendMode",set_alpha:"set_alpha",get_alpha:"get_alpha"}});var Na=function(){ka.call(this);this.doubleClickEnabled=!1;this.mouseEnabled=!0;this.needsSoftKeyboard=!1;this.__tabEnabled=null;this.__tabIndex=-1};g["openfl.display.InteractiveObject"]=Na;Na.__name__="openfl.display.InteractiveObject";Na.__super__=ka;Na.prototype=r(ka.prototype,
{doubleClickEnabled:null,focusRect:null,mouseEnabled:null,needsSoftKeyboard:null,softKeyboardInputAreaOfInterest:null,__tabEnabled:null,__tabIndex:null,requestSoftKeyboard:function(){ic.notImplemented({fileName:"openfl/display/InteractiveObject.hx",lineNumber:1251,className:"openfl.display.InteractiveObject",methodName:"requestSoftKeyboard"});return!1},__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,e,f){return!f.get_visible()||this.__isMask||e&&!this.mouseEnabled?!1:ka.prototype.__hitTest.call(this,a,b,c,d,e,f)},__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 W("tabEnabledChange",!0,!1)));return this.__tabEnabled},get_tabIndex:function(){return this.__tabIndex},
set_tabIndex:function(a){if(this.__tabIndex!=a){if(-1>a)throw u.thrown(new Bj("Parameter tabIndex must be a non-negative number; got "+a));this.__tabIndex=a;this.dispatchEvent(new W("tabIndexChange",!0,!1))}return this.__tabIndex},__class__:Na,__properties__:r(ka.prototype.__properties__,{set_tabIndex:"set_tabIndex",get_tabIndex:"get_tabIndex",set_tabEnabled:"set_tabEnabled",get_tabEnabled:"get_tabEnabled"})});var jb=function(){Na.call(this);this.__tabChildren=this.mouseChildren=!0;this.__children=
[];this.__removedChildren=fb.toObjectVector(null)};g["openfl.display.DisplayObjectContainer"]=jb;jb.__name__="openfl.display.DisplayObjectContainer";jb.__super__=Na;jb.prototype=r(Na.prototype,{mouseChildren:null,__removedChildren:null,__tabChildren:null,addChild:function(a){return this.addChildAt(a,this.get_numChildren())},addChildAt:function(a,b){if(null==a)throw a=new qm("Error #2007: Parameter child must be non-null."),a.errorID=2007,u.thrown(a);if(a.stage==a)throw a=new uk("Error #3783: A Stage object cannot be added as the child of another object."),
a.errorID=3783,u.thrown(a);if(b>this.__children.length||0>b)throw u.thrown("Invalid index position "+b);if(a.parent==this)this.__children[b]!=a&&(G.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 W("added");c.bubbles=!0;c.target=a;a.__dispatchWithCapture(c);b&&(c=new W("addedToStage",!1,!1),a.__dispatchWithCapture(c),a.__dispatchChildren(c))}return a},areInaccessibleObjectsUnderPoint:function(a){return!1},contains:function(a){for(;a!=this&&null!=a;)a=a.parent;return a==this},getChildAt:function(a){return 0<=a&&a<this.__children.length?this.__children[a]:null},getChildByName:function(a){for(var b=0,c=this.__children;b<
c.length;){var d=c[b];++b;if(d.get_name()==a)return d}return null},getChildIndex:function(a){for(var b=0,c=this.__children.length;b<c;){var d=b++;if(this.__children[d]==a)return d}return-1},getObjectsUnderPoint:function(a){var b=[];this.__hitTest(a.x,a.y,!1,b,!1,this);b.reverse();return b},removeChild:function(a){if(null!=a&&a.parent==this){a.__setTransformDirty();a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty());this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());
var b=new W("removed",!0);a.__dispatchWithCapture(b);null!=this.stage&&(null!=a.stage&&this.stage.get_focus()==a&&this.stage.set_focus(null),b=new W("removedFromStage",!1,!1),a.__dispatchWithCapture(b),a.__dispatchChildren(b),a.__setStageReference(null));a.parent=null;G.remove(this.__children,a);this.__removedChildren.push(a);a.__setTransformDirty()}return a},removeChildAt:function(a){return 0<=a&&a<this.__children.length?this.removeChild(this.__children[a]):null},removeChildren:function(a,b){null==
b&&(b=2147483647);null==a&&(a=0);if(2147483647==b&&(b=this.__children.length-1,0>b))return;if(!(a>this.__children.length-1)){if(b<a||0>a||b>this.__children.length)throw u.thrown(new Bj("The supplied index is out of bounds."));for(b-=a;0<=b;)this.removeChildAt(a),--b}},resolve:function(a){if(null==this.__children)return null;for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;if(d.get_name()==a)return d}return null},setChildIndex:function(a,b){0<=b&&b<=this.__children.length&&a.parent==this&&
(G.remove(this.__children,a),this.__children.splice(b,0,a))},stopAllMovieClips:function(){this.__stopAllMovieClips()},swapChildren:function(a,b){if(a.parent==this&&b.parent==this){var c=this.__children.indexOf(a),d=this.__children.indexOf(b);this.__children[c]=b;this.__children[d]=a;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())}},swapChildrenAt:function(a,b){var c=this.__children[a];this.__children[a]=this.__children[b];this.__children[b]=c;this.__renderDirty||(this.__renderDirty=
!0,this.__setParentRenderDirty())},__cleanup:function(){Na.prototype.__cleanup.call(this);for(var a=0,b=this.__children;a<b.length;){var c=b[a];++a;c.__cleanup()}for(a=this.__removedChildren.iterator();a.hasNext();)b=a.next(),null==b.stage&&b.__cleanup();this.__removedChildren.set_length(0)},__cleanupRemovedChildren:function(){for(var a=this.__removedChildren.iterator();a.hasNext();){var b=a.next();null==b.stage&&b.__cleanup()}this.__removedChildren.set_length(0)},__dispatchChildren:function(a){if(null!=
this.__children)for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;a.target=d;if(!d.__dispatchWithCapture(a))break;d.__dispatchChildren(a)}},__enterFrame:function(a){for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;d.__enterFrame(a)}},__getBounds:function(a,b){Na.prototype.__getBounds.call(this,a,b);if(0!=this.__children.length){for(var c=Aa.__pool.get(),d=0,e=this.__children;d<e.length;){var f=e[d];++d;if(0!=f.__scaleX&&0!=f.__scaleY){var h=f.__transform;c.a=h.a*b.a+h.b*b.c;c.b=h.a*
b.b+h.b*b.d;c.c=h.c*b.a+h.d*b.c;c.d=h.c*b.b+h.d*b.d;c.tx=h.tx*b.a+h.ty*b.c+b.tx;c.ty=h.tx*b.b+h.ty*b.d+b.ty;f.__getBounds(a,c)}}Aa.__pool.release(c)}},__getFilterBounds:function(a,b){Na.prototype.__getFilterBounds.call(this,a,b);if(null==this.__scrollRect&&0!=this.__children.length){for(var c=Aa.__pool.get(),d=0,e=this.__children;d<e.length;){var f=e[d];++d;if(0!=f.__scaleX&&0!=f.__scaleY&&!f.__isMask){var h=f.__transform;c.a=h.a*b.a+h.b*b.c;c.b=h.a*b.b+h.b*b.d;c.c=h.c*b.a+h.d*b.c;c.d=h.c*b.b+h.d*
b.d;c.tx=h.tx*b.a+h.ty*b.c+b.tx;c.ty=h.tx*b.b+h.ty*b.d+b.ty;h=ha.__pool.get();f.__getFilterBounds(h,c);a.__expand(h.x,h.y,h.width,h.height);ha.__pool.release(h)}}Aa.__pool.release(c)}},__getRenderBounds:function(a,b){if(null!=this.__scrollRect)Na.prototype.__getRenderBounds.call(this,a,b);else if(Na.prototype.__getBounds.call(this,a,b),0!=this.__children.length){for(var c=Aa.__pool.get(),d=0,e=this.__children;d<e.length;){var f=e[d];++d;if(0!=f.__scaleX&&0!=f.__scaleY&&!f.__isMask){var h=f.__transform;
c.a=h.a*b.a+h.b*b.c;c.b=h.a*b.b+h.b*b.d;c.c=h.c*b.a+h.d*b.c;c.d=h.c*b.b+h.d*b.d;c.tx=h.tx*b.a+h.ty*b.c+b.tx;c.ty=h.tx*b.b+h.ty*b.d+b.ty;f.__getRenderBounds(a,c)}}Aa.__pool.release(c)}},__hitTest:function(a,b,c,d,e,f){if(!f.get_visible()||this.__isMask||e&&!this.mouseEnabled&&!this.mouseChildren||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;if(null!=this.__scrollRect){var h=ab.__pool.get();h.setTo(a,b);var l=this.__getRenderTransform(),m=l.a*l.d-l.b*l.c;if(0==m)h.x=-l.tx,h.y=
-l.ty;else{var t=1/m*(l.c*(l.ty-h.y)+l.d*(h.x-l.tx));h.y=1/m*(l.a*(h.y-l.ty)+l.b*(l.tx-h.x));h.x=t}if(!this.__scrollRect.containsPoint(h))return ab.__pool.release(h),!1;ab.__pool.release(h)}h=this.__children.length;if(e)if(null==d||!this.mouseChildren)for(;0<=--h;){if(this.__children[h].__hitTest(a,b,c,null,!0,this.__children[h]))return null!=d&&d.push(f),!0}else{if(null!=d){e=d.length;for(m=!1;0<=--h&&!(((l=this.__children[h].__getInteractive(null))||this.mouseEnabled&&!m)&&this.__children[h].__hitTest(a,
b,c,d,!0,this.__children[h])&&(m=!0,l&&d.length>e)););if(m)return d.splice(e,0,f),!0}}else{for(m=!1;0<=--h&&(!this.__children[h].__hitTest(a,b,c,d,!1,this.__children[h])||(m=!0,null!=d)););return m}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},__readGraphicsData:function(a,b){Na.prototype.__readGraphicsData.call(this,a,b);if(b)for(var c=0,d=this.__children;c<d.length;){var e=d[c];++c;e.__readGraphicsData(a,
b)}},__setStageReference:function(a){Na.prototype.__setStageReference.call(this,a);if(null!=this.__children)for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;d.__setStageReference(a)}},__setWorldTransformInvalid:function(){if(!this.__worldTransformInvalid&&(this.__worldTransformInvalid=!0,null!=this.__children))for(var a=0,b=this.__children;a<b.length;){var c=b[a];++a;c.__setWorldTransformInvalid()}},__stopAllMovieClips:function(){for(var a=0,b=this.__children;a<b.length;){var c=b[a];++a;
c.__stopAllMovieClips()}},__tabTest:function(a){Na.prototype.__tabTest.call(this,a);if(this.get_tabChildren())for(var b,c=0,d=this.__children;c<d.length;){var e=d[c];++c;if(b=e.__getInteractive(null))b=e,b.__tabTest(a)}},__update:function(a,b){Na.prototype.__update.call(this,a,b);if(b){b=0;for(var c=this.__children;b<c.length;){var d=c[b];++b;d.__update(a,!0)}}},get_numChildren:function(){return this.__children.length},get_tabChildren:function(){return this.__tabChildren},set_tabChildren:function(a){this.__tabChildren!=
a&&(this.__tabChildren=a,this.dispatchEvent(new W("tabChildrenChange",!0,!1)));return this.__tabChildren},__class__:jb,__properties__:r(Na.prototype.__properties__,{set_tabChildren:"set_tabChildren",get_tabChildren:"get_tabChildren",get_numChildren:"get_numChildren"})});var F=function(){jb.call(this);this.__drawableType=4;this.__buttonMode=!1;this.useHandCursor=!0};g["openfl.display.Sprite"]=F;F.__name__="openfl.display.Sprite";F.__super__=jb;F.prototype=r(jb.prototype,{dropTarget:null,hitArea:null,
useHandCursor:null,__buttonMode:null,startDrag:function(a,b){null==a&&(a=!1);null!=this.stage&&this.stage.__startDrag(this,a,b)},stopDrag:function(){null!=this.stage&&this.stage.__stopDrag(this)},__getCursor:function(){return this.__buttonMode&&this.useHandCursor?"button":null},__hitTest:function(a,b,c,d,e,f){if(e&&!this.mouseEnabled&&!this.mouseChildren)return!1;if(!f.get_visible()||this.__isMask||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return this.__hitTestHitArea(a,b,c,d,e,f);
if(null!=this.__scrollRect){var h=ab.__pool.get();h.setTo(a,b);var l=this.__getRenderTransform(),m=l.a*l.d-l.b*l.c;if(0==m)h.x=-l.tx,h.y=-l.ty;else{var t=1/m*(l.c*(l.ty-h.y)+l.d*(h.x-l.tx));h.y=1/m*(l.a*(h.y-l.ty)+l.b*(l.tx-h.x));h.x=t}if(!this.__scrollRect.containsPoint(h))return ab.__pool.release(h),this.__hitTestHitArea(a,b,c,d,!0,f);ab.__pool.release(h)}return jb.prototype.__hitTest.call(this,a,b,c,d,e,f)?null!=d?e:!0:null==this.hitArea&&null!=this.__graphics&&this.__graphics.__hitTest(a,b,c,
this.__getRenderTransform())?(null==d||e&&!this.mouseEnabled||d.push(f),!0):this.__hitTestHitArea(a,b,c,d,e,f)},__hitTestHitArea:function(a,b,c,d,e,f){return null==this.hitArea||this.hitArea.mouseEnabled?!1:(this.hitArea.mouseEnabled=!0,a=this.hitArea.__hitTest(a,b,c,null,!0,f),this.hitArea.mouseEnabled=!1,null!=d&&a&&(d[d.length]=f),a)},__hitTestMask:function(a,b){return jb.prototype.__hitTestMask.call(this,a,b)||null!=this.__graphics&&this.__graphics.__hitTest(a,b,!0,this.__getRenderTransform())?
!0:!1},get_graphics:function(){null==this.__graphics&&(this.__graphics=new ye(this));return this.__graphics},get_tabEnabled:function(){return null==this.__tabEnabled?this.__buttonMode:this.__tabEnabled},get_buttonMode:function(){return this.__buttonMode},set_buttonMode:function(a){return this.__buttonMode=a},__class__:F,__properties__:r(jb.prototype.__properties__,{get_graphics:"get_graphics",set_buttonMode:"set_buttonMode",get_buttonMode:"get_buttonMode"})});var Q=function(){F.call(this);this.__enabled=
!0;if(null!=Q.__constructor){var a=Q.__constructor;Q.__constructor=null;a(this)}};g["openfl.display.MovieClip"]=Q;Q.__name__="openfl.display.MovieClip";Q.fromTimeline=function(a){var b=new Q;b.attachTimeline(a);return b};Q.__super__=F;Q.prototype=r(F.prototype,{__enabled:null,__hasDown:null,__hasOver:null,__hasUp:null,__mouseIsDown:null,__scene:null,__timeline:null,addFrameScript:function(a,b){null!=this.__timeline&&this.__timeline.__addFrameScript(a,b)},attachTimeline:function(a){this.__timeline=
a;null!=a&&(a.__attachMovieClip(this),this.play())},gotoAndPlay:function(a,b){null!=this.__timeline&&this.__timeline.__gotoAndPlay(a,b)},gotoAndStop:function(a,b){null!=this.__timeline&&this.__timeline.__gotoAndStop(a,b)},nextFrame:function(){null!=this.__timeline&&this.__timeline.__nextFrame()},nextScene:function(){null!=this.__timeline&&this.__timeline.__nextScene()},play:function(){null!=this.__timeline&&this.__timeline.__play()},prevFrame:function(){null!=this.__timeline&&this.__timeline.__prevFrame()},
prevScene:function(){null!=this.__timeline&&this.__timeline.__prevScene()},stop:function(){null!=this.__timeline&&this.__timeline.__stop()},__enterFrame:function(a){null!=this.__timeline&&this.__timeline.__enterFrame(a);for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;d.__enterFrame(a)}},__stopAllMovieClips:function(){F.prototype.__stopAllMovieClips.call(this);this.stop()},__tabTest:function(a){this.__enabled&&F.prototype.__tabTest.call(this,a)},__onMouseDown:function(a){this.__enabled&&
this.__hasDown&&this.gotoAndStop("_down");this.__mouseIsDown=!0;null!=this.stage&&this.stage.addEventListener("mouseUp",k(this,this.__onMouseUp),!0)},__onMouseUp:function(a){this.__mouseIsDown=!1;null!=this.stage&&this.stage.removeEventListener("mouseUp",k(this,this.__onMouseUp));this.__buttonMode&&(a.target==this&&this.__enabled&&this.__hasOver?this.gotoAndStop("_over"):this.__enabled&&this.__hasUp&&this.gotoAndStop("_up"))},__onRollOut:function(a){this.__enabled&&(this.__mouseIsDown&&this.__hasOver?
this.gotoAndStop("_over"):this.__hasUp&&this.gotoAndStop("_up"))},__onRollOver:function(a){this.__enabled&&this.__hasOver&&this.gotoAndStop("_over")},set_buttonMode:function(a){if(this.__buttonMode!=a){if(a){this.__hasUp=this.__hasOver=this.__hasDown=!1;for(var b=0,c=this.get_currentLabels();b<c.length;){var d=c[b];++b;switch(d.name){case "_down":this.__hasDown=!0;break;case "_over":this.__hasOver=!0;break;case "_up":this.__hasUp=!0}}if(this.__hasDown||this.__hasOver||this.__hasUp)this.addEventListener("rollOver",
k(this,this.__onRollOver)),this.addEventListener("rollOut",k(this,this.__onRollOut)),this.addEventListener("mouseDown",k(this,this.__onMouseDown))}else this.removeEventListener("rollOver",k(this,this.__onRollOver)),this.removeEventListener("rollOut",k(this,this.__onRollOut)),this.removeEventListener("mouseDown",k(this,this.__onMouseDown));this.__buttonMode=a}return a},get_currentFrame:function(){return null!=this.__timeline?this.__timeline.__currentFrame:1},get_currentFrameLabel:function(){return null!=
this.__timeline?this.__timeline.__currentFrameLabel:null},get_currentLabel:function(){return null!=this.__timeline?this.__timeline.__currentLabel:null},get_currentLabels:function(){return null!=this.__timeline?this.__timeline.__currentLabels.slice():[]},get_currentScene:function(){if(null!=this.__timeline)return this.__timeline.__currentScene;null==this.__scene&&(this.__scene=new jo("",[],1));return this.__scene},get_enabled:function(){return this.__enabled},set_enabled:function(a){return this.__enabled=
a},get_framesLoaded:function(){return null!=this.__timeline?this.__timeline.__framesLoaded:1},get_isPlaying:function(){return null!=this.__timeline?this.__timeline.__isPlaying:!1},get_scenes:function(){return null!=this.__timeline?this.__timeline.scenes.slice():[this.get_currentScene()]},get_totalFrames:function(){return null!=this.__timeline?this.__timeline.__totalFrames:1},__class__:Q,__properties__:r(F.prototype.__properties__,{get_totalFrames:"get_totalFrames",get_scenes:"get_scenes",get_isPlaying:"get_isPlaying",
get_framesLoaded:"get_framesLoaded",set_enabled:"set_enabled",get_enabled:"get_enabled",get_currentScene:"get_currentScene",get_currentLabels:"get_currentLabels",get_currentLabel:"get_currentLabel",get_currentFrameLabel:"get_currentFrameLabel",get_currentFrame:"get_currentFrame"})});var Tb=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[382].__init(a);Q.call(this)};g.AlertSymbol=Tb;Tb.__name__="AlertSymbol";Tb.__super__=Q;Tb.prototype=r(Q.prototype,{overlay:null,dragArea:null,textField:null,
titleField:null,closeButton:null,__class__:Tb});var bb=function(){};g["lime.app.IModule"]=bb;bb.__name__="lime.app.IModule";bb.__isInterface__=!0;bb.prototype={__registerLimeModule:null,__unregisterLimeModule:null,__class__:bb};var rb=function(){this.onExit=new Cj};g["lime.app.Module"]=rb;rb.__name__="lime.app.Module";rb.__interfaces__=[bb];rb.prototype={onExit:null,__registerLimeModule:function(a){},__unregisterLimeModule:function(a){},__class__:rb};var Ab=function(a){this.gameDeviceCache=new Bc;
this.parent=a;this.nextUpdate=this.lastUpdate=this.currentUpdate=0;this.framePeriod=-1;Ud.init();this.accelerometer=dg.registerSensor(qs.ACCELEROMETER,0)};g["lime._internal.backend.html5.HTML5Application"]=Ab;Ab.__name__="lime._internal.backend.html5.HTML5Application";Ab.prototype={accelerometer:null,currentUpdate:null,deltaTime:null,framePeriod:null,gameDeviceCache:null,hidden:null,lastUpdate:null,nextUpdate:null,parent:null,convertKeyCode:function(a){if(65<=a&&90>=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",k(this,this.handleKeyEvent),!1);window.addEventListener("keyup",k(this,this.handleKeyEvent),!1);window.addEventListener("focus",k(this,this.handleWindowEvent),!1);window.addEventListener("blur",k(this,this.handleWindowEvent),!1);window.addEventListener("resize",k(this,this.handleWindowEvent),!1);window.addEventListener("beforeunload",k(this,this.handleWindowEvent),!1);window.addEventListener("devicemotion",k(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<
c.length&&!window.requestAnimationFrame;++d)window.requestAnimationFrame=window[c[d]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[c[d]+"CancelAnimationFrame"]||window[c[d]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(a,c){var d=(new Date).getTime(),e=Math.max(0,16-(d-b));c=window.setTimeout(function(){a(d+e)},e);b=d+e;return c});window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)});window.requestAnimFrame=
window.requestAnimationFrame;this.lastUpdate=(new Date).getTime();this.handleApplicationEvent();return 0},exit:function(){},handleApplicationEvent:function(a){a=0;for(var b=this.parent.__windows;a<b.length;){var c=b[a];++a;c.__backend.updateSize()}this.updateGameDevices();this.currentUpdate=(new Date).getTime();if(this.currentUpdate>=this.nextUpdate){this.deltaTime=this.currentUpdate-this.lastUpdate;a=0;for(b=this.parent.__windows;a<b.length;)c=b[a],++a,this.parent.onUpdate.dispatch(this.deltaTime|
0),null!=c.context&&c.onRender.dispatch(c.context);this.nextUpdate=0>this.framePeriod?this.currentUpdate:this.currentUpdate-this.currentUpdate%this.framePeriod+this.framePeriod;this.lastUpdate=this.currentUpdate}window.requestAnimationFrame(k(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=Cc.__getDeviceData();if(null!=a)for(var b,c,d,e,f,h=0,l=a.length;h<l;)if(b=h++,e=a[b],null!=e){if(!this.gameDeviceCache.h.hasOwnProperty(b)){f=new rs;f.id=b;f.connected=e.connected;c=0;for(d=e.buttons.length;c<d;){var m=c++;f.buttons.push(e.buttons[m].value)}c=0;for(d=e.axes.length;c<d;)m=c++,f.axes.push(e.axes[m]);"standard"==e.mapping&&(f.isGamepad=!0);this.gameDeviceCache.h[b]=f;e.connected&&(Cc.__connect(b),f.isGamepad&&dd.__connect(b))}f=this.gameDeviceCache.h[b];
d=Cc.devices.h[b];c=dd.devices.h[b];if(e.connected){for(var t=0,O=e.buttons.length;t<O;){var n=t++;m=e.buttons[n].value;if(m!=f.buttons[n]){if(6==n)d.onAxisMove.dispatch(e.axes.length,m),null!=c&&c.onAxisMove.dispatch(4,m);else if(7==n)d.onAxisMove.dispatch(e.axes.length+1,m),null!=c&&c.onAxisMove.dispatch(5,m);else if(0<m?d.onButtonDown.dispatch(n):d.onButtonUp.dispatch(n),null!=c){switch(n){case 0:b=0;break;case 1:b=1;break;case 2:b=2;break;case 3:b=3;break;case 4:b=9;break;case 5:b=10;break;case 8:b=
4;break;case 9:b=6;break;case 10:b=7;break;case 11:b=8;break;case 12:b=11;break;case 13:b=12;break;case 14:b=13;break;case 15:b=14;break;case 16:b=5;break;default:continue}0<m?c.onButtonDown.dispatch(b):c.onButtonUp.dispatch(b)}f.buttons[n]=m}}b=0;for(m=e.axes.length;b<m;)t=b++,e.axes[t]!=f.axes[t]&&(d.onAxisMove.dispatch(t,e.axes[t]),null!=c&&c.onAxisMove.dispatch(t,e.axes[t]),f.axes[t]=e.axes[t])}else f.connected&&(f.connected=!1,Cc.__disconnect(b),dd.__disconnect(b))}},__class__:Ab};var nc=function(){this.onCreateWindow=
new ss;this.onUpdate=new Cj;this.onExit=new Cj;null==nc.current&&(nc.current=this);this.meta=new da;this.modules=[];this.__windowByID=new Bc;this.__windows=[];this.__backend=new Ab(this);this.__registerLimeModule(this);this.__preloader=new ts;this.__preloader.onProgress.add(k(this,this.onPreloadProgress));this.__preloader.onComplete.add(k(this,this.onPreloadComplete))};g["lime.app.Application"]=nc;nc.__name__="lime.app.Application";nc.__super__=rb;nc.prototype=r(rb.prototype,{meta:null,modules:null,
onUpdate:null,onCreateWindow:null,preloader:null,window:null,windows:null,__backend:null,__preloader:null,__window:null,__windowByID:null,__windows:null,addModule:function(a){a.__registerLimeModule(this);this.modules.push(a)},createWindow:function(a){a=this.__createWindow(a);this.__addWindow(a);return a},exec:function(){nc.current=this;return this.__backend.exec()},onGamepadAxisMove:function(a,b,c){},onGamepadButtonDown:function(a,b){},onGamepadButtonUp:function(a,b){},onGamepadConnect:function(a){},
onGamepadDisconnect:function(a){},onJoystickAxisMove:function(a,b,c){},onJoystickButtonDown:function(a,b){},onJoystickButtonUp:function(a,b){},onJoystickConnect:function(a){},onJoystickDisconnect:function(a){},onJoystickHatMove:function(a,b,c){},onJoystickTrackballMove:function(a,b,c,d){},onKeyDown:function(a,b){},onKeyUp:function(a,b){},onModuleExit:function(a){},onMouseDown:function(a,b,c){},onMouseMove:function(a,b){},onMouseMoveRelative:function(a,b){},onMouseUp:function(a,b,c){},onMouseWheel:function(a,
b,c){},onPreloadComplete:function(){},onPreloadProgress:function(a,b){},onRenderContextLost:function(){},onRenderContextRestored:function(a){},onTextEdit:function(a,b,c){},onTextInput:function(a){},onTouchCancel:function(a){},onTouchEnd:function(a){},onTouchMove:function(a){},onTouchStart:function(a){},onWindowActivate:function(){},onWindowClose:function(){},onWindowCreate:function(){},onWindowDeactivate:function(){},onWindowDropFile:function(a){},onWindowEnter:function(){},onWindowExpose:function(){},
onWindowFocusIn:function(){},onWindowFocusOut:function(){},onWindowFullscreen:function(){},onWindowLeave:function(){},onWindowMove:function(a,b){},onWindowMinimize:function(){},onWindowResize:function(a,b){},onWindowRestore:function(){},removeModule:function(a){null!=a&&(a.__unregisterLimeModule(this),G.remove(this.modules,a))},render:function(a){},update:function(a){},__addWindow:function(a){if(null!=a){this.__windows.push(a);this.__windowByID.h[a.id]=a;var b=this;a.onClose.add(function(){b.__onWindowClose(a)},
!1,-1E4);null==this.__window&&(this.__window=a,a.onActivate.add(k(this,this.onWindowActivate)),a.onRenderContextLost.add(k(this,this.onRenderContextLost)),a.onRenderContextRestored.add(k(this,this.onRenderContextRestored)),a.onDeactivate.add(k(this,this.onWindowDeactivate)),a.onDropFile.add(k(this,this.onWindowDropFile)),a.onEnter.add(k(this,this.onWindowEnter)),a.onExpose.add(k(this,this.onWindowExpose)),a.onFocusIn.add(k(this,this.onWindowFocusIn)),a.onFocusOut.add(k(this,this.onWindowFocusOut)),
a.onFullscreen.add(k(this,this.onWindowFullscreen)),a.onKeyDown.add(k(this,this.onKeyDown)),a.onKeyUp.add(k(this,this.onKeyUp)),a.onLeave.add(k(this,this.onWindowLeave)),a.onMinimize.add(k(this,this.onWindowMinimize)),a.onMouseDown.add(k(this,this.onMouseDown)),a.onMouseMove.add(k(this,this.onMouseMove)),a.onMouseMoveRelative.add(k(this,this.onMouseMoveRelative)),a.onMouseUp.add(k(this,this.onMouseUp)),a.onMouseWheel.add(k(this,this.onMouseWheel)),a.onMove.add(k(this,this.onWindowMove)),a.onRender.add(k(this,
this.render)),a.onResize.add(k(this,this.onWindowResize)),a.onRestore.add(k(this,this.onWindowRestore)),a.onTextEdit.add(k(this,this.onTextEdit)),a.onTextInput.add(k(this,this.onTextInput)),this.onWindowCreate());this.onCreateWindow.dispatch(a)}},__createWindow:function(a){a=new vk(this,a);return-1==a.id?null:a},__registerLimeModule:function(a){a.onUpdate.add(k(this,this.update));a.onExit.add(k(this,this.onModuleExit),!1,0);a.onExit.add(k(this,this.__onModuleExit),!1,0);for(a=dd.devices.iterator();a.hasNext();){var b=
a.next();this.__onGamepadConnect(b)}dd.onConnect.add(k(this,this.__onGamepadConnect));for(a=Cc.devices.iterator();a.hasNext();)b=a.next(),this.__onJoystickConnect(b);Cc.onConnect.add(k(this,this.__onJoystickConnect));Qc.onCancel.add(k(this,this.onTouchCancel));Qc.onStart.add(k(this,this.onTouchStart));Qc.onMove.add(k(this,this.onTouchMove));Qc.onEnd.add(k(this,this.onTouchEnd))},__removeWindow:function(a){null!=a&&this.__windowByID.h.hasOwnProperty(a.id)&&(this.__window==a&&(this.__window=null),G.remove(this.__windows,
a),this.__windowByID.remove(a.id),a.close(),0==this.__windows.length&&Ka.exit(0))},__onGamepadConnect:function(a){this.onGamepadConnect(a);var b=this,c=function(c,d){b.onGamepadAxisMove(a,c,d)};a.onAxisMove.add(c);var d=this;c=function(b){d.onGamepadButtonDown(a,b)};a.onButtonDown.add(c);var e=this;c=function(b){e.onGamepadButtonUp(a,b)};a.onButtonUp.add(c);var f=this;a.onDisconnect.add(function(){f.onGamepadDisconnect(a)})},__onJoystickConnect:function(a){this.onJoystickConnect(a);var b=this,c=function(c,
d){b.onJoystickAxisMove(a,c,d)};a.onAxisMove.add(c);var d=this;c=function(b){d.onJoystickButtonDown(a,b)};a.onButtonDown.add(c);var e=this;c=function(b){e.onJoystickButtonUp(a,b)};a.onButtonUp.add(c);var f=this;a.onDisconnect.add(function(){f.onJoystickDisconnect(a)});var h=this;c=function(b,c){h.onJoystickHatMove(a,b,c)};a.onHatMove.add(c);var l=this;c=function(b,c,d){l.onJoystickTrackballMove(a,b,c,d)};a.onTrackballMove.add(c)},__onModuleExit:function(a){this.__backend.exit()},__onWindowClose:function(a){if(this.__window==
a)this.onWindowClose();this.__removeWindow(a)},__unregisterLimeModule:function(a){a.onUpdate.remove(k(this,this.update));a.onExit.remove(k(this,this.__onModuleExit));a.onExit.remove(k(this,this.onModuleExit));dd.onConnect.remove(k(this,this.__onGamepadConnect));Cc.onConnect.remove(k(this,this.__onJoystickConnect));Qc.onCancel.remove(k(this,this.onTouchCancel));Qc.onStart.remove(k(this,this.onTouchStart));Qc.onMove.remove(k(this,this.onTouchMove));Qc.onEnd.remove(k(this,this.onTouchEnd));this.onModuleExit(0)},
get_preloader:function(){return this.__preloader},get_window:function(){return this.__window},get_windows:function(){return this.__windows},__class__:nc,__properties__:{get_windows:"get_windows",get_window:"get_window",get_preloader:"get_preloader"}});var dc=function(){};g.ApplicationMain=dc;dc.__name__="ApplicationMain";dc.main=function(){Ka.__registerEntryPoint("room",dc.create)};dc.create=function(a){var b=new rm;Ha.init(a);b.meta.h.build="1844";b.meta.h.company="E-learning WMB";b.meta.h.file=
"room";b.meta.h.name="Room";b.meta.h.packageName="uk.elearningwmb";var c={allowHighDPI:!1,alwaysOnTop:!1,borderless:!1,element:null,frameRate:60,height:650,hidden:!1,maximized:!1,minimized:!1,parameters:{},resizable:!0,title:"Room",width:1070,x:null,y:null,context:{antialiasing:0,background:16777215,colorDepth:32,depth:!0,hardware:!0,stencil:!0,type:null,vsync:!1}};if(null==b.__window&&null!=a)for(var d=0,e=J.fields(a);d<e.length;){var f=e[d];++d;Object.prototype.hasOwnProperty.call(c,f)?c[f]=J.field(a,
f):Object.prototype.hasOwnProperty.call(c.context,f)&&(c.context[f]=J.field(a,f))}b.createWindow(c);a=b.__preloader;var h=N.__cast(b.__window,wk).stage;a.onComplete.add(function(){dc.start(h)});d=0;for(e=Ha.preloadLibraries;d<e.length;)c=e[d],++d,a.addLibrary(c);d=0;for(e=Ha.preloadLibraryNames;d<e.length;)c=e[d],++d,a.addLibraryName(c);a.load();b.exec()};dc.start=function(a){try{var b=Sa.get_current();null!=b&&b instanceof jb||(b=new Q,a.addChild(b));new Vd(b);a.dispatchEvent(new W("resize",!1,!1));
a.window.__fullscreen&&a.dispatchEvent(new gh("fullScreen",!1,!1,!0,!0))}catch(c){wa.lastError=c,b=u.caught(c).unwrap(),a.__handleError(b)}};var fe=function(){F.call(this);this.context=new xk;this.context.install(ko,lo,mo,no,oo,po,qo,ro,Dj);this.context.install(Ig,so,to,uo,vo,sm);this.context.configure(Gh,hh);this.get_loaderInfo();this.get_loaderInfo();this.get_loaderInfo();this.get_loaderInfo();this.get_loaderInfo();var a=new URLSearchParams(E.location.search);var b=a.get("coursePath");var c=a.get("instUrl");
var d=a.get("scormUrl");var e=a.get("hash");a=a.get("scoid");!Gb.isEmpty(d)||Gb.isEmpty(c)||Gb.isEmpty(a)||(d=ec.trim(c,"/")+"/api/index.php/scorm/"+a);this.room=new Jg(b,a,d,e);this.addChild(this.room);if(null!=this.stage)this.onAddedToStage(null);else this.addEventListener("addedToStage",k(this,this.onAddedToStage));this.get_loaderInfo().uncaughtErrorEvents.addEventListener("uncaughtError",k(this,this.onGlobalError))};g["room.Main"]=fe;fe.__name__="room.Main";fe.__super__=F;fe.prototype=r(F.prototype,
{context:null,room:null,onAddedToStage:function(a){this.removeEventListener("addedToStage",k(this,this.onAddedToStage));Hh.registerStage(this);this.context.configure(new wf(this));this.addEventListener("removedFromStage",k(this,this.onRemovedFromStage))},onRemovedFromStage:function(a){this.removeEventListener("removedFromStage",k(this,this.onRemovedFromStage));this.get_loaderInfo().uncaughtErrorEvents.removeEventListener("uncaughtError",k(this,this.onGlobalError))},onGlobalError:function(a){a.error instanceof
eg&&2032==a.error.errorID?a.preventDefault():Ub.trace(a,{fileName:"Source/room/Main.hx",lineNumber:145,className:"room.Main",methodName:"onGlobalError"})},__class__:fe});var Vd=function(a){a.addChild(this);fe.call(this);this.dispatchEvent(new W("addedToStage",!1,!1))};g.DocumentClass=Vd;Vd.__name__="DocumentClass";Vd.__super__=fe;Vd.prototype=r(fe.prototype,{__class__:Vd});var Od=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[13].__init(a);Q.call(this)};g.BackgroundAsset=Od;Od.__name__=
"BackgroundAsset";Od.__super__=Q;Od.prototype=r(Q.prototype,{__class__:Od});var Qe=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[12].__init(a);Q.call(this)};g.BackgroundImagesAsset=Qe;Qe.__name__="BackgroundImagesAsset";Qe.__super__=Q;Qe.prototype=r(Q.prototype,{__class__:Qe});var p={__properties__:{get_isZero:"get_isZero",get_length:"get_length",get_isPositive:"get_isPositive",get_isNegative:"get_isNegative"},_new:function(a){return a},get:function(a,b){return a.chunks[a.start+b]},
set:function(a,b,c){a.chunks[a.start+b]=c},push:function(a,b){a.end++;a.chunks.push(b)},unshift:function(a,b){a.end++;a.chunks.unshift(b)},splitHigh:function(a,b){var c=new w(a.chunks);if(b>=a.end-a.start)return null;c.start=a.start+b;c.end=a.end;return c},splitLow:function(a,b){var c=0;for(a.start+b>a.end&&(b=a.end-a.start);c<b&&0==a.chunks[a.start+c];)++c;if(c==b)return null;c=new w(a.chunks);c.start=a.start;c.end=a.start+b;return c},truncateZeroChunks:function(a,b){for(var c=a.end-a.start;0<=--c;)0==
a.chunks[a.start+c]?b?(a.end--,a.chunks.pop()):a.end--:c=0},setNegative:function(a){a.isNegative=!0;return a},setPositive:function(a){a.isNegative=!1;return a},copy:function(a){for(var b=new w,c=0,d=a.end-a.start;c<d;){var e=c++;e=a.chunks[a.start+e];b.end++;b.chunks.push(e)}b.isNegative=a.isNegative;return b},negCopy:function(a){for(var b=new w,c=0,d=a.end-a.start;c<d;){var e=c++;e=a.chunks[a.start+e];b.end++;b.chunks.push(e)}b.isNegative=!a.isNegative;return b},clone:function(a){var b=new w(a.chunks);
b.start=a.start;b.end=a.end;b.isNegative=a.isNegative;return b},negClone:function(a){var b=new w(a.chunks);b.start=a.start;b.end=a.end;b.isNegative=!a.isNegative;return b},get_isNegative:function(a){return a.isNegative},get_isPositive:function(a){return!a.isNegative},get_length:function(a){return a.end-a.start},get_isZero:function(a){return null==a},fromInt:function(a){if(0==a)a=null;else{var b=new w;0>a&&(b.isNegative=!0,a=-a);for(;0!=a;)b.end++,b.chunks.push(a&32767),a>>>=15;a=b}return a},toInt:function(a){if(null==
a||0==a.end-a.start)return 0;for(var b=0,c,d=0,e=a.end-a.start;d<e;){var f=d++;c=a.chunks[a.start+f];if(c<<15*f>>15*f!=c)throw u.thrown("Error, BigInt with "+(15*(a.end-a.start-1)+Rb.bitsize(c))+" bits is to big for native Integer length");b+=c<<15*f}return a.isNegative?-b:b},fromString:function(a){return w.createFromBaseString(a)},toString:function(a){return null==a?"0":a.toBaseString(10)},fromBinaryString:function(a){return w.createFromBaseString(a,2)},fromHexString:function(a){return w.createFromBaseString(a,
16)},fromOctalString:function(a){return w.createFromBaseString(a,8)},fromBaseString:function(a,b){null==b&&(b=10);return w.createFromBaseString(a,b)},toBinaryString:function(a,b,c){null==c&&(c=!0);null==b&&(b=0);if(null==a){if(c&&0<b){c=[];for(var d=0;d<b;)d++,c.push("0");return c.join("")}return"0"}var e=c;null==e&&(e=!0);null==b&&(b=0);var f="",h,l=0;c=0;for(d=a.end-a.start;c<d;){var m=c++;m=a.chunks[a.start+m];for(h=1;32768>h;)0<b&&(f=(0==l%b&&0<b&&0!=l?" ":"")+f),f=(0==(h&m)?"0":"1")+f,++l,h<<=
1}if(e&&0<b){if(0!=l%b){c=[];d=0;for(b-=l%b;d<b;)d++,c.push("0");f=c.join("")+f}f=f.replace(/^(0+\s)+/,"")}else f=f.replace(w.regexLeadingZeros.r,"");return(a.isNegative?"-":"")+f},toOctalString:function(a,b,c){null==c&&(c=!0);null==b&&(b=0);if(null==a){if(c&&0<b){a=[];for(c=0;c<b;)c++,a.push("0");return a.join("")}return"0"}return a.toBaseString(8,b,c)},toHexString:function(a,b,c){null==c&&(c=!0);null==b&&(b=0);if(null==a){if(c&&0<b){a=[];for(c=0;c<b;)c++,a.push("0");return a.join("")}return"0"}return a.toHexString(b,
c)},toBaseString:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=0);null==b&&(b=10);if(null==a){if(d&&0<c){a=[];for(b=0;b<c;)b++,a.push("0");return a.join("")}return"0"}return a.toBaseString(b,c,d)},fromBytes:function(a){if(1==a.length&&0==a.b[0])return null;var b=new w,c=a.length;0==a.b[c-1]&&(b.isNegative=!0,--c);for(var d=0,e=((8*(c-1)+Rb.bitsize(a.b[c-1],8)-1)/15|0)+1;d<e;){var f=0,h=0,l=0,m=15*d++,t=m/8|0,O=(m+15)/8|0,n=m-8*t,k=8-n;m=m+15-8*O;for(var g,q,p=[],A=t,v=O+1;A<v;){var r=A++;if(r==c)break;
r==t&&r==O?(g=n,q=m-g):r==t?(g=n,q=k):(q=r==O?m:8,g=0);p.push({index:r,offset:g,size:q})}for(t=p;l<t.length;)O=t[l],++l,f|=(a.b[O.index]>>>O.offset&(1<<O.size)-1)<<h,h+=O.size;b.end++;b.chunks.push(f)}return b},toBytes:function(a){return null==a?(a=new Qa(new ArrayBuffer(1)),a.b[0]=0,a):a.toBytes()},abs:function(a){if(null==a)return null;if(a.isNegative){for(var b=new w,c=0,d=a.end-a.start;c<d;){var e=c++;e=a.chunks[a.start+e];b.end++;b.chunks.push(e)}b.isNegative=!a.isNegative;return b}b=new w;c=
0;for(d=a.end-a.start;c<d;)e=c++,e=a.chunks[a.start+e],b.end++,b.chunks.push(e);b.isNegative=a.isNegative;return b},opAdd:function(a,b){if(null==a){if(null==b)return null;for(var c=new w,d=0,e=b.end-b.start;d<e;){var f=d++,h=b.chunks[b.start+f];c.end++;c.chunks.push(h)}c.isNegative=b.isNegative;return c}if(null==b){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);c.isNegative=a.isNegative;return c}if(a.isNegative){if(b.isNegative){if(a.end-a.start>b.end-b.start){c=
new w;d=0;for(e=a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);c.isNegative=a.isNegative;d=0;for(e=b.end-b.start;d<e;){f=d++;h=b.chunks[b.start+f];for(var l,m=f,t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f]+h;if(0==(l&32768)){c.chunks[c.start+f]=l;h=0;break}c.chunks[c.start+f]=l&32767;h=1}0<h&&(c.end++,c.chunks.push(h))}}else{c=new w;d=0;for(e=b.end-b.start;d<e;)f=d++,h=b.chunks[b.start+f],c.end++,c.chunks.push(h);c.isNegative=b.isNegative;d=0;for(e=a.end-a.start;d<e;){f=
d++;h=a.chunks[a.start+f];m=f;for(t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f]+h;if(0==(l&32768)){c.chunks[c.start+f]=l;h=0;break}c.chunks[c.start+f]=l&32767;h=1}0<h&&(c.end++,c.chunks.push(h))}}a=c;a.isNegative=!0;return a}c=new w(a.chunks);c.start=a.start;c.end=a.end;c.isNegative=!a.isNegative;h=c;if(p.greater(b,h)){c=new w;d=0;for(e=b.end-b.start;d<e;){f=d++;var O=b.chunks[b.start+f];c.end++;c.chunks.push(O)}c.isNegative=b.isNegative;d=0;for(e=h.end-h.start;d<e;)for(f=d++,O=h.chunks[h.start+
f],m=f,t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f];if(l>=O){c.chunks[c.start+f]=l-O;break}c.chunks[c.start+f]=l+32768-O;O=1}h=c;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;return h}c=new w;d=0;for(e=h.end-h.start;d<e;)f=d++,O=h.chunks[h.start+f],c.end++,c.chunks.push(O);c.isNegative=h.isNegative;d=0;for(e=b.end-b.start;d<e;)for(f=d++,O=b.chunks[b.start+f],m=f,t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f];if(l>=O){c.chunks[c.start+f]=l-O;break}c.chunks[c.start+f]=l+32768-
O;O=1}h=c;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;if(0==h.end-h.start)return null;h.isNegative=!0;return h}if(b.isNegative){c=new w(b.chunks);c.start=b.start;c.end=b.end;c.isNegative=!b.isNegative;h=c;if(p.greater(a,h)){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,O=a.chunks[a.start+f],c.end++,c.chunks.push(O);c.isNegative=a.isNegative;d=0;for(e=h.end-h.start;d<e;)for(f=d++,O=h.chunks[h.start+f],m=f,t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f];if(l>=O){c.chunks[c.start+f]=
l-O;break}c.chunks[c.start+f]=l+32768-O;O=1}h=c;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;return h}c=new w;d=0;for(e=h.end-h.start;d<e;)f=d++,O=h.chunks[h.start+f],c.end++,c.chunks.push(O);c.isNegative=h.isNegative;d=0;for(e=a.end-a.start;d<e;)for(f=d++,O=a.chunks[a.start+f],m=f,t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f];if(l>=O){c.chunks[c.start+f]=l-O;break}c.chunks[c.start+f]=l+32768-O;O=1}h=c;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;if(0==h.end-
h.start)return null;h.isNegative=!0;return h}if(a.end-a.start>b.end-b.start){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);c.isNegative=a.isNegative;d=0;for(e=b.end-b.start;d<e;){f=d++;h=b.chunks[b.start+f];m=f;for(t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f]+h;if(0==(l&32768)){c.chunks[c.start+f]=l;h=0;break}c.chunks[c.start+f]=l&32767;h=1}0<h&&(c.end++,c.chunks.push(h))}}else{c=new w;d=0;for(e=b.end-b.start;d<e;)f=d++,h=b.chunks[b.start+f],c.end++,
c.chunks.push(h);c.isNegative=b.isNegative;d=0;for(e=a.end-a.start;d<e;){f=d++;h=a.chunks[a.start+f];m=f;for(t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f]+h;if(0==(l&32768)){c.chunks[c.start+f]=l;h=0;break}c.chunks[c.start+f]=l&32767;h=1}0<h&&(c.end++,c.chunks.push(h))}}return c},opAddInt:function(a,b){var c=p.fromInt(a);if(null==c){if(null==b)return null;a=new w;for(var d=0,e=b.end-b.start;d<e;){var f=d++,h=b.chunks[b.start+f];a.end++;a.chunks.push(h)}a.isNegative=b.isNegative;return a}if(null==
b){a=new w;d=0;for(e=c.end-c.start;d<e;)f=d++,h=c.chunks[c.start+f],a.end++,a.chunks.push(h);a.isNegative=c.isNegative;return a}if(c.isNegative){if(b.isNegative){if(c.end-c.start>b.end-b.start){a=new w;d=0;for(e=c.end-c.start;d<e;)f=d++,h=c.chunks[c.start+f],a.end++,a.chunks.push(h);a.isNegative=c.isNegative;d=0;for(e=b.end-b.start;d<e;){f=d++;h=b.chunks[b.start+f];for(var l,m=f,t=a.end-a.start;m<t;){f=m++;l=a.chunks[a.start+f]+h;if(0==(l&32768)){a.chunks[a.start+f]=l;h=0;break}a.chunks[a.start+f]=
l&32767;h=1}0<h&&(a.end++,a.chunks.push(h))}}else{a=new w;d=0;for(e=b.end-b.start;d<e;)f=d++,h=b.chunks[b.start+f],a.end++,a.chunks.push(h);a.isNegative=b.isNegative;d=0;for(e=c.end-c.start;d<e;){f=d++;h=c.chunks[c.start+f];m=f;for(t=a.end-a.start;m<t;){f=m++;l=a.chunks[a.start+f]+h;if(0==(l&32768)){a.chunks[a.start+f]=l;h=0;break}a.chunks[a.start+f]=l&32767;h=1}0<h&&(a.end++,a.chunks.push(h))}}b=a;b.isNegative=!0;return b}a=new w(c.chunks);a.start=c.start;a.end=c.end;a.isNegative=!c.isNegative;h=
a;if(p.greater(b,h)){a=new w;d=0;for(e=b.end-b.start;d<e;){f=d++;var O=b.chunks[b.start+f];a.end++;a.chunks.push(O)}a.isNegative=b.isNegative;d=0;for(e=h.end-h.start;d<e;)for(f=d++,O=h.chunks[h.start+f],m=f,t=a.end-a.start;m<t;){f=m++;l=a.chunks[a.start+f];if(l>=O){a.chunks[a.start+f]=l-O;break}a.chunks[a.start+f]=l+32768-O;O=1}h=a;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;return h}a=new w;d=0;for(e=h.end-h.start;d<e;)f=d++,O=h.chunks[h.start+f],a.end++,a.chunks.push(O);a.isNegative=
h.isNegative;d=0;for(e=b.end-b.start;d<e;)for(f=d++,O=b.chunks[b.start+f],m=f,t=a.end-a.start;m<t;){f=m++;l=a.chunks[a.start+f];if(l>=O){a.chunks[a.start+f]=l-O;break}a.chunks[a.start+f]=l+32768-O;O=1}h=a;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;if(0==h.end-h.start)return null;h.isNegative=!0;return h}if(b.isNegative){a=new w(b.chunks);a.start=b.start;a.end=b.end;a.isNegative=!b.isNegative;h=a;if(p.greater(c,h)){a=new w;d=0;for(e=c.end-c.start;d<e;)f=d++,O=c.chunks[c.start+f],
a.end++,a.chunks.push(O);a.isNegative=c.isNegative;d=0;for(e=h.end-h.start;d<e;)for(f=d++,O=h.chunks[h.start+f],m=f,t=a.end-a.start;m<t;){f=m++;l=a.chunks[a.start+f];if(l>=O){a.chunks[a.start+f]=l-O;break}a.chunks[a.start+f]=l+32768-O;O=1}h=a;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;return h}a=new w;d=0;for(e=h.end-h.start;d<e;)f=d++,O=h.chunks[h.start+f],a.end++,a.chunks.push(O);a.isNegative=h.isNegative;d=0;for(e=c.end-c.start;d<e;)for(f=d++,O=c.chunks[c.start+f],m=f,t=a.end-
a.start;m<t;){f=m++;l=a.chunks[a.start+f];if(l>=O){a.chunks[a.start+f]=l-O;break}a.chunks[a.start+f]=l+32768-O;O=1}h=a;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;if(0==h.end-h.start)return null;h.isNegative=!0;return h}if(c.end-c.start>b.end-b.start){a=new w;d=0;for(e=c.end-c.start;d<e;)f=d++,h=c.chunks[c.start+f],a.end++,a.chunks.push(h);a.isNegative=c.isNegative;d=0;for(e=b.end-b.start;d<e;){f=d++;h=b.chunks[b.start+f];m=f;for(t=a.end-a.start;m<t;){f=m++;l=a.chunks[a.start+f]+
h;if(0==(l&32768)){a.chunks[a.start+f]=l;h=0;break}a.chunks[a.start+f]=l&32767;h=1}0<h&&(a.end++,a.chunks.push(h))}}else{a=new w;d=0;for(e=b.end-b.start;d<e;)f=d++,h=b.chunks[b.start+f],a.end++,a.chunks.push(h);a.isNegative=b.isNegative;d=0;for(e=c.end-c.start;d<e;){f=d++;h=c.chunks[c.start+f];m=f;for(t=a.end-a.start;m<t;){f=m++;l=a.chunks[a.start+f]+h;if(0==(l&32768)){a.chunks[a.start+f]=l;h=0;break}a.chunks[a.start+f]=l&32767;h=1}0<h&&(a.end++,a.chunks.push(h))}}return a},opIncrementAfter:function(a){if(null==
a){var b=1;if(0!=b){var c=new w;0>b&&(c.isNegative=!0,b=-b);for(;0!=b;)c.end++,c.chunks.push(b&32767),b>>>=15}return null}c=new w;for(var d=0,e=a.end-a.start;d<e;){b=d++;var f=a.chunks[a.start+b];c.end++;c.chunks.push(f)}if(c.isNegative=a.isNegative){if(1!=a.end-a.start||1!=a.chunks[a.start])for(f=1,d=0,e=a.end-a.start;d<e;){b=d++;var h=a.chunks[a.start+b];if(h>=f){a.chunks[a.start+b]=h-f;break}a.chunks[a.start+b]=h+32768-f;f=1}}else{f=1;d=0;for(e=a.end-a.start;d<e;){b=d++;h=a.chunks[a.start+b]+f;
if(0==(h&32768)){a.chunks[a.start+b]=h;f=0;break}a.chunks[a.start+b]=h&32767;f=1}0<f&&(a.end++,a.chunks.push(f))}return c},opIncrementBefore:function(a){if(null==a){var b=1;if(0!=b){var c=new w;0>b&&(c.isNegative=!0,b=-b);for(;0!=b;)c.end++,c.chunks.push(b&32767),b>>>=15}b=1;if(0==b)return null;c=new w;0>b&&(c.isNegative=!0,b=-b);for(;0!=b;)c.end++,c.chunks.push(b&32767),b>>>=15;return c}if(a.isNegative){if(1==a.end-a.start&&1==a.chunks[a.start])return null;for(var d=1,e=0,f=a.end-a.start;e<f;){b=
e++;c=a.chunks[a.start+b];if(c>=d){a.chunks[a.start+b]=c-d;break}a.chunks[a.start+b]=c+32768-d;d=1}c=new w;e=0;for(f=a.end-a.start;e<f;)b=e++,d=a.chunks[a.start+b],c.end++,c.chunks.push(d);c.isNegative=a.isNegative;return c}d=1;e=0;for(f=a.end-a.start;e<f;){b=e++;c=a.chunks[a.start+b]+d;if(0==(c&32768)){a.chunks[a.start+b]=c;d=0;break}a.chunks[a.start+b]=c&32767;d=1}0<d&&(a.end++,a.chunks.push(d));c=new w;e=0;for(f=a.end-a.start;e<f;)b=e++,d=a.chunks[a.start+b],c.end++,c.chunks.push(d);c.isNegative=
a.isNegative;return c},_add:function(a,b){if(null==a){if(null==b)return null;for(var c=new w,d=0,e=b.end-b.start;d<e;){var f=d++,h=b.chunks[b.start+f];c.end++;c.chunks.push(h)}c.isNegative=b.isNegative;return c}if(null==b){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);c.isNegative=a.isNegative;return c}if(a.isNegative){if(b.isNegative){if(a.end-a.start>b.end-b.start){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);
c.isNegative=a.isNegative;d=0;for(e=b.end-b.start;d<e;){f=d++;h=b.chunks[b.start+f];for(var l,m=f,t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f]+h;if(0==(l&32768)){c.chunks[c.start+f]=l;h=0;break}c.chunks[c.start+f]=l&32767;h=1}0<h&&(c.end++,c.chunks.push(h))}}else{c=new w;d=0;for(e=b.end-b.start;d<e;)f=d++,h=b.chunks[b.start+f],c.end++,c.chunks.push(h);c.isNegative=b.isNegative;d=0;for(e=a.end-a.start;d<e;){f=d++;h=a.chunks[a.start+f];m=f;for(t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f]+
h;if(0==(l&32768)){c.chunks[c.start+f]=l;h=0;break}c.chunks[c.start+f]=l&32767;h=1}0<h&&(c.end++,c.chunks.push(h))}}a=c;a.isNegative=!0;return a}c=new w(a.chunks);c.start=a.start;c.end=a.end;c.isNegative=!a.isNegative;h=c;if(p.greater(b,h)){c=new w;d=0;for(e=b.end-b.start;d<e;){f=d++;var O=b.chunks[b.start+f];c.end++;c.chunks.push(O)}c.isNegative=b.isNegative;d=0;for(e=h.end-h.start;d<e;)for(f=d++,O=h.chunks[h.start+f],m=f,t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f];if(l>=O){c.chunks[c.start+
f]=l-O;break}c.chunks[c.start+f]=l+32768-O;O=1}h=c;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;return h}c=new w;d=0;for(e=h.end-h.start;d<e;)f=d++,O=h.chunks[h.start+f],c.end++,c.chunks.push(O);c.isNegative=h.isNegative;d=0;for(e=b.end-b.start;d<e;)for(f=d++,O=b.chunks[b.start+f],m=f,t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f];if(l>=O){c.chunks[c.start+f]=l-O;break}c.chunks[c.start+f]=l+32768-O;O=1}h=c;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;if(0==h.end-
h.start)return null;h.isNegative=!0;return h}if(b.isNegative){c=new w(b.chunks);c.start=b.start;c.end=b.end;c.isNegative=!b.isNegative;h=c;if(p.greater(a,h)){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,O=a.chunks[a.start+f],c.end++,c.chunks.push(O);c.isNegative=a.isNegative;d=0;for(e=h.end-h.start;d<e;)for(f=d++,O=h.chunks[h.start+f],m=f,t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f];if(l>=O){c.chunks[c.start+f]=l-O;break}c.chunks[c.start+f]=l+32768-O;O=1}h=c;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+
f]?h.end--:f=0;return h}c=new w;d=0;for(e=h.end-h.start;d<e;)f=d++,O=h.chunks[h.start+f],c.end++,c.chunks.push(O);c.isNegative=h.isNegative;d=0;for(e=a.end-a.start;d<e;)for(f=d++,O=a.chunks[a.start+f],m=f,t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f];if(l>=O){c.chunks[c.start+f]=l-O;break}c.chunks[c.start+f]=l+32768-O;O=1}h=c;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;if(0==h.end-h.start)return null;h.isNegative=!0;return h}if(a.end-a.start>b.end-b.start){c=new w;d=0;for(e=
a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);c.isNegative=a.isNegative;d=0;for(e=b.end-b.start;d<e;){f=d++;h=b.chunks[b.start+f];m=f;for(t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f]+h;if(0==(l&32768)){c.chunks[c.start+f]=l;h=0;break}c.chunks[c.start+f]=l&32767;h=1}0<h&&(c.end++,c.chunks.push(h))}}else{c=new w;d=0;for(e=b.end-b.start;d<e;)f=d++,h=b.chunks[b.start+f],c.end++,c.chunks.push(h);c.isNegative=b.isNegative;d=0;for(e=a.end-a.start;d<e;){f=d++;h=a.chunks[a.start+
f];m=f;for(t=c.end-c.start;m<t;){f=m++;l=c.chunks[c.start+f]+h;if(0==(l&32768)){c.chunks[c.start+f]=l;h=0;break}c.chunks[c.start+f]=l&32767;h=1}0<h&&(c.end++,c.chunks.push(h))}}return c},__add:function(a,b){if(a.end-a.start>b.end-b.start){for(var c=new w,d=0,e=a.end-a.start;d<e;){var f=d++,h=a.chunks[a.start+f];c.end++;c.chunks.push(h)}c.isNegative=a.isNegative;d=0;for(e=b.end-b.start;d<e;){f=d++;h=b.chunks[b.start+f];for(var l=f,m=c.end-c.start;l<m;){f=l++;h=c.chunks[c.start+f]+h;if(0==(h&32768)){c.chunks[c.start+
f]=h;h=0;break}c.chunks[c.start+f]=h&32767;h=1}0<h&&(c.end++,c.chunks.push(h))}return c}c=new w;d=0;for(e=b.end-b.start;d<e;)f=d++,h=b.chunks[b.start+f],c.end++,c.chunks.push(h);c.isNegative=b.isNegative;d=0;for(e=a.end-a.start;d<e;){f=d++;h=a.chunks[a.start+f];l=f;for(m=c.end-c.start;l<m;){f=l++;h=c.chunks[c.start+f]+h;if(0==(h&32768)){c.chunks[c.start+f]=h;h=0;break}c.chunks[c.start+f]=h&32767;h=1}0<h&&(c.end++,c.chunks.push(h))}return c},addLong:function(a,b){for(var c=0,d=b.end-b.start;c<d;){for(var e=
c++,f=b.chunks[b.start+e],h=a.end-a.start;e<h;){var l=e++;f=a.chunks[a.start+l]+f;if(0==(f&32768)){a.chunks[a.start+l]=f;f=0;break}a.chunks[a.start+l]=f&32767;f=1}0<f&&(a.end++,a.chunks.push(f))}return a},addLittle:function(a,b,c){for(var d=a.end-a.start;c<d;){var e=c++;b=a.chunks[a.start+e]+b;if(0==(b&32768)){a.chunks[a.start+e]=b;b=0;break}a.chunks[a.start+e]=b&32767;b=1}0<b&&(a.end++,a.chunks.push(b))},opSubtract:function(a,b){if(null==a){if(null==b)return null;for(var c=new w,d=0,e=b.end-b.start;d<
e;){var f=d++,h=b.chunks[b.start+f];c.end++;c.chunks.push(h)}c.isNegative=!b.isNegative;return c}if(null==b){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);c.isNegative=a.isNegative;return c}if(a.isNegative){if(b.isNegative){c=new w(b.chunks);c.start=b.start;c.end=b.end;c.isNegative=!b.isNegative;var l=c;c=new w(a.chunks);c.start=a.start;c.end=a.end;c.isNegative=!a.isNegative;a=c;if(p.greater(l,a)){c=new w;d=0;for(e=l.end-l.start;d<e;){f=d++;var m=l.chunks[l.start+
f];c.end++;c.chunks.push(m)}c.isNegative=l.isNegative;b=c;d=0;for(e=a.end-a.start;d<e;){f=d++;m=a.chunks[a.start+f];c=f;for(var t=b.end-b.start;c<t;){f=c++;h=b.chunks[b.start+f];if(h>=m){b.chunks[b.start+f]=h-m;break}b.chunks[b.start+f]=h+32768-m;m=1}}h=b;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;return h}c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,m=a.chunks[a.start+f],c.end++,c.chunks.push(m);c.isNegative=a.isNegative;b=c;d=0;for(e=l.end-l.start;d<e;)for(f=d++,m=l.chunks[l.start+
f],c=f,t=b.end-b.start;c<t;){f=c++;h=b.chunks[b.start+f];if(h>=m){b.chunks[b.start+f]=h-m;break}b.chunks[b.start+f]=h+32768-m;m=1}h=b;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;if(0==h.end-h.start)return null;h.isNegative=!0;return h}if(a.end-a.start>b.end-b.start){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);c.isNegative=a.isNegative;l=c;d=0;for(e=b.end-b.start;d<e;){f=d++;h=b.chunks[b.start+f];c=f;for(t=l.end-l.start;c<t;){f=c++;h=
l.chunks[l.start+f]+h;if(0==(h&32768)){l.chunks[l.start+f]=h;h=0;break}l.chunks[l.start+f]=h&32767;h=1}0<h&&(l.end++,l.chunks.push(h))}}else{c=new w;d=0;for(e=b.end-b.start;d<e;)f=d++,h=b.chunks[b.start+f],c.end++,c.chunks.push(h);c.isNegative=b.isNegative;l=c;d=0;for(e=a.end-a.start;d<e;){f=d++;h=a.chunks[a.start+f];c=f;for(t=l.end-l.start;c<t;){f=c++;h=l.chunks[l.start+f]+h;if(0==(h&32768)){l.chunks[l.start+f]=h;h=0;break}l.chunks[l.start+f]=h&32767;h=1}0<h&&(l.end++,l.chunks.push(h))}}d=l;d.isNegative=
!0;return d}if(b.isNegative){d=b.chunks;m=null!=d?d:[];var O=b.start;t=b.end;l=!b.isNegative;if(a.end-a.start>t-O){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);c.isNegative=a.isNegative;l=c;d=0;for(e=t-O;d<e;){f=d++;h=m[O+f];c=f;for(t=l.end-l.start;c<t;){f=c++;h=l.chunks[l.start+f]+h;if(0==(h&32768)){l.chunks[l.start+f]=h;h=0;break}l.chunks[l.start+f]=h&32767;h=1}0<h&&(l.end++,l.chunks.push(h))}}else{c=new w;d=0;for(e=t-O;d<e;)f=d++,h=m[O+f],c.end++,c.chunks.push(h);
c.isNegative=l;l=c;d=0;for(e=a.end-a.start;d<e;){f=d++;h=a.chunks[a.start+f];c=f;for(t=l.end-l.start;c<t;){f=c++;h=l.chunks[l.start+f]+h;if(0==(h&32768)){l.chunks[l.start+f]=h;h=0;break}l.chunks[l.start+f]=h&32767;h=1}0<h&&(l.end++,l.chunks.push(h))}}return l}if(p.greater(a,b)){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,m=a.chunks[a.start+f],c.end++,c.chunks.push(m);c.isNegative=a.isNegative;l=c;d=0;for(e=b.end-b.start;d<e;)for(f=d++,m=b.chunks[b.start+f],c=f,t=l.end-l.start;c<t;){f=c++;h=l.chunks[l.start+
f];if(h>=m){l.chunks[l.start+f]=h-m;break}l.chunks[l.start+f]=h+32768-m;m=1}h=l;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;return h}c=new w;d=0;for(e=b.end-b.start;d<e;)f=d++,m=b.chunks[b.start+f],c.end++,c.chunks.push(m);c.isNegative=b.isNegative;l=c;d=0;for(e=a.end-a.start;d<e;)for(f=d++,m=a.chunks[a.start+f],c=f,t=l.end-l.start;c<t;){f=c++;h=l.chunks[l.start+f];if(h>=m){l.chunks[l.start+f]=h-m;break}l.chunks[l.start+f]=h+32768-m;m=1}h=l;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+
f]?h.end--:f=0;if(0==h.end-h.start)return null;h.isNegative=!0;return h},opIntSubtract:function(a,b){var c=p.fromInt(a);if(null==c){if(null==b)return null;for(var d=new w,e=0,f=b.end-b.start;e<f;){var h=e++,l=b.chunks[b.start+h];d.end++;d.chunks.push(l)}d.isNegative=!b.isNegative;return d}if(null==b){d=new w;e=0;for(f=c.end-c.start;e<f;)h=e++,l=c.chunks[c.start+h],d.end++,d.chunks.push(l);d.isNegative=c.isNegative;return d}if(c.isNegative){if(b.isNegative){d=new w(b.chunks);d.start=b.start;d.end=
b.end;d.isNegative=!b.isNegative;a=d;d=new w(c.chunks);d.start=c.start;d.end=c.end;d.isNegative=!c.isNegative;c=d;if(p.greater(a,c)){d=new w;e=0;for(f=a.end-a.start;e<f;){h=e++;var m=a.chunks[a.start+h];d.end++;d.chunks.push(m)}d.isNegative=a.isNegative;b=d;e=0;for(f=c.end-c.start;e<f;){h=e++;m=c.chunks[c.start+h];d=h;for(var t=b.end-b.start;d<t;){h=d++;l=b.chunks[b.start+h];if(l>=m){b.chunks[b.start+h]=l-m;break}b.chunks[b.start+h]=l+32768-m;m=1}}l=b;for(h=l.end-l.start;0<=--h;)0==l.chunks[l.start+
h]?l.end--:h=0;return l}d=new w;e=0;for(f=c.end-c.start;e<f;)h=e++,m=c.chunks[c.start+h],d.end++,d.chunks.push(m);d.isNegative=c.isNegative;b=d;e=0;for(f=a.end-a.start;e<f;)for(h=e++,m=a.chunks[a.start+h],d=h,t=b.end-b.start;d<t;){h=d++;l=b.chunks[b.start+h];if(l>=m){b.chunks[b.start+h]=l-m;break}b.chunks[b.start+h]=l+32768-m;m=1}l=b;for(h=l.end-l.start;0<=--h;)0==l.chunks[l.start+h]?l.end--:h=0;if(0==l.end-l.start)return null;l.isNegative=!0;return l}if(c.end-c.start>b.end-b.start){d=new w;e=0;for(f=
c.end-c.start;e<f;)h=e++,l=c.chunks[c.start+h],d.end++,d.chunks.push(l);d.isNegative=c.isNegative;a=d;e=0;for(f=b.end-b.start;e<f;){h=e++;l=b.chunks[b.start+h];d=h;for(t=a.end-a.start;d<t;){h=d++;l=a.chunks[a.start+h]+l;if(0==(l&32768)){a.chunks[a.start+h]=l;l=0;break}a.chunks[a.start+h]=l&32767;l=1}0<l&&(a.end++,a.chunks.push(l))}}else{d=new w;e=0;for(f=b.end-b.start;e<f;)h=e++,l=b.chunks[b.start+h],d.end++,d.chunks.push(l);d.isNegative=b.isNegative;a=d;e=0;for(f=c.end-c.start;e<f;){h=e++;l=c.chunks[c.start+
h];d=h;for(t=a.end-a.start;d<t;){h=d++;l=a.chunks[a.start+h]+l;if(0==(l&32768)){a.chunks[a.start+h]=l;l=0;break}a.chunks[a.start+h]=l&32767;l=1}0<l&&(a.end++,a.chunks.push(l))}}e=a;e.isNegative=!0;return e}if(b.isNegative){e=b.chunks;m=null!=e?e:[];var O=b.start;t=b.end;a=!b.isNegative;if(c.end-c.start>t-O){d=new w;e=0;for(f=c.end-c.start;e<f;)h=e++,l=c.chunks[c.start+h],d.end++,d.chunks.push(l);d.isNegative=c.isNegative;a=d;e=0;for(f=t-O;e<f;){h=e++;l=m[O+h];d=h;for(t=a.end-a.start;d<t;){h=d++;l=
a.chunks[a.start+h]+l;if(0==(l&32768)){a.chunks[a.start+h]=l;l=0;break}a.chunks[a.start+h]=l&32767;l=1}0<l&&(a.end++,a.chunks.push(l))}}else{d=new w;e=0;for(f=t-O;e<f;)h=e++,l=m[O+h],d.end++,d.chunks.push(l);d.isNegative=a;a=d;e=0;for(f=c.end-c.start;e<f;){h=e++;l=c.chunks[c.start+h];d=h;for(t=a.end-a.start;d<t;){h=d++;l=a.chunks[a.start+h]+l;if(0==(l&32768)){a.chunks[a.start+h]=l;l=0;break}a.chunks[a.start+h]=l&32767;l=1}0<l&&(a.end++,a.chunks.push(l))}}return a}if(p.greater(c,b)){d=new w;e=0;for(f=
c.end-c.start;e<f;)h=e++,m=c.chunks[c.start+h],d.end++,d.chunks.push(m);d.isNegative=c.isNegative;a=d;e=0;for(f=b.end-b.start;e<f;)for(h=e++,m=b.chunks[b.start+h],d=h,t=a.end-a.start;d<t;){h=d++;l=a.chunks[a.start+h];if(l>=m){a.chunks[a.start+h]=l-m;break}a.chunks[a.start+h]=l+32768-m;m=1}l=a;for(h=l.end-l.start;0<=--h;)0==l.chunks[l.start+h]?l.end--:h=0;return l}d=new w;e=0;for(f=b.end-b.start;e<f;)h=e++,m=b.chunks[b.start+h],d.end++,d.chunks.push(m);d.isNegative=b.isNegative;a=d;e=0;for(f=c.end-
c.start;e<f;)for(h=e++,m=c.chunks[c.start+h],d=h,t=a.end-a.start;d<t;){h=d++;l=a.chunks[a.start+h];if(l>=m){a.chunks[a.start+h]=l-m;break}a.chunks[a.start+h]=l+32768-m;m=1}l=a;for(h=l.end-l.start;0<=--h;)0==l.chunks[l.start+h]?l.end--:h=0;if(0==l.end-l.start)return null;l.isNegative=!0;return l},opDecrementAfter:function(a){if(null==a){var b=-1;if(0!=b){var c=new w;0>b&&(c.isNegative=!0,b=-b);for(;0!=b;)c.end++,c.chunks.push(b&32767),b>>>=15}return null}c=new w;for(var d=0,e=a.end-a.start;d<e;){b=
d++;var f=a.chunks[a.start+b];c.end++;c.chunks.push(f)}if(c.isNegative=a.isNegative){f=1;d=0;for(e=a.end-a.start;d<e;){b=d++;var h=a.chunks[a.start+b]+f;if(0==(h&32768)){a.chunks[a.start+b]=h;f=0;break}a.chunks[a.start+b]=h&32767;f=1}0<f&&(a.end++,a.chunks.push(f))}else if(1!=a.end-a.start||1!=a.chunks[a.start])for(f=1,d=0,e=a.end-a.start;d<e;){b=d++;h=a.chunks[a.start+b];if(h>=f){a.chunks[a.start+b]=h-f;break}a.chunks[a.start+b]=h+32768-f;f=1}return c},opDecrementBefore:function(a){if(null==a){var b=
-1;if(0!=b){var c=new w;0>b&&(c.isNegative=!0,b=-b);for(;0!=b;)c.end++,c.chunks.push(b&32767),b>>>=15}b=-1;if(0==b)return null;c=new w;0>b&&(c.isNegative=!0,b=-b);for(;0!=b;)c.end++,c.chunks.push(b&32767),b>>>=15;return c}if(a.isNegative){for(var d=1,e=0,f=a.end-a.start;e<f;){b=e++;c=a.chunks[a.start+b]+d;if(0==(c&32768)){a.chunks[a.start+b]=c;d=0;break}a.chunks[a.start+b]=c&32767;d=1}0<d&&(a.end++,a.chunks.push(d));c=new w;e=0;for(f=a.end-a.start;e<f;)b=e++,d=a.chunks[a.start+b],c.end++,c.chunks.push(d);
c.isNegative=a.isNegative;return c}if(1==a.end-a.start&&1==a.chunks[a.start])return null;d=1;e=0;for(f=a.end-a.start;e<f;){b=e++;c=a.chunks[a.start+b];if(c>=d){a.chunks[a.start+b]=c-d;break}a.chunks[a.start+b]=c+32768-d;d=1}c=new w;e=0;for(f=a.end-a.start;e<f;)b=e++,d=a.chunks[a.start+b],c.end++,c.chunks.push(d);c.isNegative=a.isNegative;return c},_subtract:function(a,b){if(null==a){if(null==b)return null;for(var c=new w,d=0,e=b.end-b.start;d<e;){var f=d++,h=b.chunks[b.start+f];c.end++;c.chunks.push(h)}c.isNegative=
!b.isNegative;return c}if(null==b){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);c.isNegative=a.isNegative;return c}if(a.isNegative){if(b.isNegative){c=new w(b.chunks);c.start=b.start;c.end=b.end;c.isNegative=!b.isNegative;var l=c;c=new w(a.chunks);c.start=a.start;c.end=a.end;c.isNegative=!a.isNegative;a=c;if(p.greater(l,a)){c=new w;d=0;for(e=l.end-l.start;d<e;){f=d++;var m=l.chunks[l.start+f];c.end++;c.chunks.push(m)}c.isNegative=l.isNegative;b=c;d=0;for(e=
a.end-a.start;d<e;){f=d++;m=a.chunks[a.start+f];c=f;for(var t=b.end-b.start;c<t;){f=c++;h=b.chunks[b.start+f];if(h>=m){b.chunks[b.start+f]=h-m;break}b.chunks[b.start+f]=h+32768-m;m=1}}h=b;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;return h}c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,m=a.chunks[a.start+f],c.end++,c.chunks.push(m);c.isNegative=a.isNegative;b=c;d=0;for(e=l.end-l.start;d<e;)for(f=d++,m=l.chunks[l.start+f],c=f,t=b.end-b.start;c<t;){f=c++;h=b.chunks[b.start+f];if(h>=
m){b.chunks[b.start+f]=h-m;break}b.chunks[b.start+f]=h+32768-m;m=1}h=b;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;if(0==h.end-h.start)return null;h.isNegative=!0;return h}if(a.end-a.start>b.end-b.start){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);c.isNegative=a.isNegative;l=c;d=0;for(e=b.end-b.start;d<e;){f=d++;h=b.chunks[b.start+f];c=f;for(t=l.end-l.start;c<t;){f=c++;h=l.chunks[l.start+f]+h;if(0==(h&32768)){l.chunks[l.start+f]=h;h=
0;break}l.chunks[l.start+f]=h&32767;h=1}0<h&&(l.end++,l.chunks.push(h))}}else{c=new w;d=0;for(e=b.end-b.start;d<e;)f=d++,h=b.chunks[b.start+f],c.end++,c.chunks.push(h);c.isNegative=b.isNegative;l=c;d=0;for(e=a.end-a.start;d<e;){f=d++;h=a.chunks[a.start+f];c=f;for(t=l.end-l.start;c<t;){f=c++;h=l.chunks[l.start+f]+h;if(0==(h&32768)){l.chunks[l.start+f]=h;h=0;break}l.chunks[l.start+f]=h&32767;h=1}0<h&&(l.end++,l.chunks.push(h))}}d=l;d.isNegative=!0;return d}if(b.isNegative){d=b.chunks;m=null!=d?d:[];
var O=b.start;t=b.end;l=!b.isNegative;if(a.end-a.start>t-O){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,h=a.chunks[a.start+f],c.end++,c.chunks.push(h);c.isNegative=a.isNegative;l=c;d=0;for(e=t-O;d<e;){f=d++;h=m[O+f];c=f;for(t=l.end-l.start;c<t;){f=c++;h=l.chunks[l.start+f]+h;if(0==(h&32768)){l.chunks[l.start+f]=h;h=0;break}l.chunks[l.start+f]=h&32767;h=1}0<h&&(l.end++,l.chunks.push(h))}}else{c=new w;d=0;for(e=t-O;d<e;)f=d++,h=m[O+f],c.end++,c.chunks.push(h);c.isNegative=l;l=c;d=0;for(e=a.end-a.start;d<
e;){f=d++;h=a.chunks[a.start+f];c=f;for(t=l.end-l.start;c<t;){f=c++;h=l.chunks[l.start+f]+h;if(0==(h&32768)){l.chunks[l.start+f]=h;h=0;break}l.chunks[l.start+f]=h&32767;h=1}0<h&&(l.end++,l.chunks.push(h))}}return l}if(p.greater(a,b)){c=new w;d=0;for(e=a.end-a.start;d<e;)f=d++,m=a.chunks[a.start+f],c.end++,c.chunks.push(m);c.isNegative=a.isNegative;l=c;d=0;for(e=b.end-b.start;d<e;)for(f=d++,m=b.chunks[b.start+f],c=f,t=l.end-l.start;c<t;){f=c++;h=l.chunks[l.start+f];if(h>=m){l.chunks[l.start+f]=h-m;
break}l.chunks[l.start+f]=h+32768-m;m=1}h=l;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;return h}c=new w;d=0;for(e=b.end-b.start;d<e;)f=d++,m=b.chunks[b.start+f],c.end++,c.chunks.push(m);c.isNegative=b.isNegative;l=c;d=0;for(e=a.end-a.start;d<e;)for(f=d++,m=a.chunks[a.start+f],c=f,t=l.end-l.start;c<t;){f=c++;h=l.chunks[l.start+f];if(h>=m){l.chunks[l.start+f]=h-m;break}l.chunks[l.start+f]=h+32768-m;m=1}h=l;for(f=h.end-h.start;0<=--f;)0==h.chunks[h.start+f]?h.end--:f=0;if(0==h.end-
h.start)return null;h.isNegative=!0;return h},__subtract:function(a,b){if(p.greater(a,b)){for(var c=new w,d=0,e=a.end-a.start;d<e;){var f=d++,h=a.chunks[a.start+f];c.end++;c.chunks.push(h)}c.isNegative=a.isNegative;d=0;for(e=b.end-b.start;d<e;){f=d++;h=b.chunks[b.start+f];for(var l=f,m=c.end-c.start;l<m;){f=l++;var t=c.chunks[c.start+f];if(t>=h){c.chunks[c.start+f]=t-h;break}c.chunks[c.start+f]=t+32768-h;h=1}}a=c;for(f=a.end-a.start;0<=--f;)0==a.chunks[a.start+f]?a.end--:f=0;return a}c=new w;d=0;
for(e=b.end-b.start;d<e;)f=d++,h=b.chunks[b.start+f],c.end++,c.chunks.push(h);c.isNegative=b.isNegative;d=0;for(e=a.end-a.start;d<e;)for(f=d++,h=a.chunks[a.start+f],l=f,m=c.end-c.start;l<m;){f=l++;t=c.chunks[c.start+f];if(t>=h){c.chunks[c.start+f]=t-h;break}c.chunks[c.start+f]=t+32768-h;h=1}a=c;for(f=a.end-a.start;0<=--f;)0==a.chunks[a.start+f]?a.end--:f=0;if(0==a.end-a.start)return null;a.isNegative=!0;return a},subtractLong:function(a,b){for(var c=0,d=b.end-b.start;c<d;)for(var e=c++,f=b.chunks[b.start+
e],h=a.end-a.start;e<h;){var l=e++,m=a.chunks[a.start+l];if(m>=f){a.chunks[a.start+l]=m-f;break}a.chunks[a.start+l]=m+32768-f;f=1}return a},subtractLittle:function(a,b,c){for(var d=a.end-a.start;c<d;){var e=c++,f=a.chunks[a.start+e];if(f>=b){a.chunks[a.start+e]=f-b;break}a.chunks[a.start+e]=f+32768-b;b=1}},negation:function(a){if(null==a)return null;for(var b=new w,c=0,d=a.end-a.start;c<d;){var e=c++;e=a.chunks[a.start+e];b.end++;b.chunks.push(e)}b.isNegative=!a.isNegative;return b},opMulticplicate:function(a,
b){return null==a||null==b?null:a.isNegative!=b.isNegative?(a=p.mul(a,b),a.isNegative=!0,a):p.mul(a,b)},opMulticplicateInt:function(a,b){return p.opMulticplicate(b,p.fromInt(a))},mulLittle:function(a,b){if(1==b){b=new w;for(var c=0,d=a.end-a.start;c<d;){var e=c++;e=a.chunks[a.start+e];b.end++;b.chunks.push(e)}b.isNegative=a.isNegative;return b}0>b&&(b=-b);var f=0,h=new w;c=0;for(d=a.end-a.start;c<d;)e=c++,f=a.chunks[a.start+e]*b+f,h.end++,h.chunks.push(f&32767),f>>>=15;0<f&&(h.end++,h.chunks.push(f));
return h},mul:function(a,b){if(null==a||null==b)return null;if(1==a.end-a.start){if(1==b.end-b.start)return p.fromInt(a.chunks[a.start]*b.chunks[b.start]);var c=a.chunks[a.start];if(1==c){for(var d=new w,e=0,f=b.end-b.start;e<f;){var h=e++;c=b.chunks[b.start+h];d.end++;d.chunks.push(c)}d.isNegative=b.isNegative;return d}0>c&&(c=-c);var l=0,m=new w;e=0;for(f=b.end-b.start;e<f;)h=e++,l=b.chunks[b.start+h]*c+l,m.end++,m.chunks.push(l&32767),l>>>=15;0<l&&(m.end++,m.chunks.push(l));return m}if(1==b.end-
b.start){c=b.chunks[b.start];if(1==c){d=new w;e=0;for(f=a.end-a.start;e<f;)h=e++,c=a.chunks[a.start+h],d.end++,d.chunks.push(c);d.isNegative=a.isNegative;return d}0>c&&(c=-c);l=0;m=new w;e=0;for(f=a.end-a.start;e<f;)h=e++,l=a.chunks[a.start+h]*c+l,m.end++,m.chunks.push(l&32767),l>>>=15;0<l&&(m.end++,m.chunks.push(l));return m}var t=Rb.nextPowerOfTwo(a.end-a.start>b.end-b.start?a.end-a.start:b.end-b.start)>>>1;d=new w(a.chunks);t>=a.end-a.start?d=null:(d.start=a.start+t,d.end=a.end);var O=d,n=t;h=
0;for(a.start+n>a.end&&(n=a.end-a.start);h<n&&0==a.chunks[a.start+h];)++h;h==n?a=null:(d=new w(a.chunks),d.start=a.start,d.end=a.start+n,a=d);var k=a;d=new w(b.chunks);t>=b.end-b.start?a=null:(d.start=b.start+t,d.end=b.end,a=d);var g=a;n=t;h=0;for(b.start+n>b.end&&(n=b.end-b.start);h<n&&0==b.chunks[b.start+h];)++h;h==n?b=null:(d=new w(b.chunks),d.start=b.start,d.end=b.start+n,b=d);var q=b,v=p.mul(O,g);n=p.mul(k,q);a=v;if(null==O)if(null==k)b=null;else{d=new w;e=0;for(f=k.end-k.start;e<f;)h=e++,c=
k.chunks[k.start+h],d.end++,d.chunks.push(c);d.isNegative=k.isNegative;b=d}else if(null==k){d=new w;e=0;for(f=O.end-O.start;e<f;)h=e++,c=O.chunks[O.start+h],d.end++,d.chunks.push(c);d.isNegative=O.isNegative;b=d}else if(O.isNegative)if(k.isNegative){if(O.end-O.start>k.end-k.start){d=new w;e=0;for(f=O.end-O.start;e<f;)h=e++,c=O.chunks[O.start+h],d.end++,d.chunks.push(c);d.isNegative=O.isNegative;var A=d;e=0;for(f=k.end-k.start;e<f;){h=e++;c=k.chunks[k.start+h];for(var xa=h,r=A.end-A.start;xa<r;){h=
xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}else{d=new w;e=0;for(f=k.end-k.start;e<f;)h=e++,c=k.chunks[k.start+h],d.end++,d.chunks.push(c);d.isNegative=k.isNegative;A=d;e=0;for(f=O.end-O.start;e<f;){h=e++;c=O.chunks[O.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}k=
A;k.isNegative=!0;b=k}else if(d=new w(O.chunks),d.start=O.start,d.end=O.end,d.isNegative=!O.isNegative,m=d,p.greater(k,m)){d=new w;e=0;for(f=k.end-k.start;e<f;)h=e++,c=k.chunks[k.start+h],d.end++,d.chunks.push(c);d.isNegative=k.isNegative;A=d;e=0;for(f=m.end-m.start;e<f;)for(h=e++,c=m.chunks[m.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;
b=c}else{d=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],d.end++,d.chunks.push(c);d.isNegative=m.isNegative;A=d;e=0;for(f=k.end-k.start;e<f;)for(h=e++,c=k.chunks[k.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;0==c.end-c.start?b=null:(c.isNegative=!0,b=c)}else if(k.isNegative)if(d=new w(k.chunks),d.start=k.start,d.end=k.end,
d.isNegative=!k.isNegative,m=d,p.greater(O,m)){d=new w;e=0;for(f=O.end-O.start;e<f;)h=e++,c=O.chunks[O.start+h],d.end++,d.chunks.push(c);d.isNegative=O.isNegative;A=d;e=0;for(f=m.end-m.start;e<f;)for(h=e++,c=m.chunks[m.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;b=c}else{d=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],d.end++,
d.chunks.push(c);d.isNegative=m.isNegative;A=d;e=0;for(f=O.end-O.start;e<f;)for(h=e++,c=O.chunks[O.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;0==c.end-c.start?b=null:(c.isNegative=!0,b=c)}else{if(O.end-O.start>k.end-k.start){d=new w;e=0;for(f=O.end-O.start;e<f;)h=e++,c=O.chunks[O.start+h],d.end++,d.chunks.push(c);d.isNegative=O.isNegative;
A=d;e=0;for(f=k.end-k.start;e<f;){h=e++;c=k.chunks[k.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}else{d=new w;e=0;for(f=k.end-k.start;e<f;)h=e++,c=k.chunks[k.start+h],d.end++,d.chunks.push(c);d.isNegative=k.isNegative;A=d;e=0;for(f=O.end-O.start;e<f;){h=e++;c=O.chunks[O.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+
h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}b=A}if(null==g)if(null==q)m=null;else{d=new w;e=0;for(f=q.end-q.start;e<f;)h=e++,c=q.chunks[q.start+h],d.end++,d.chunks.push(c);d.isNegative=q.isNegative;m=d}else if(null==q){d=new w;e=0;for(f=g.end-g.start;e<f;)h=e++,c=g.chunks[g.start+h],d.end++,d.chunks.push(c);d.isNegative=g.isNegative;m=d}else if(g.isNegative)if(q.isNegative){if(g.end-g.start>q.end-q.start){d=new w;e=0;for(f=g.end-g.start;e<f;)h=e++,c=g.chunks[g.start+
h],d.end++,d.chunks.push(c);d.isNegative=g.isNegative;A=d;e=0;for(f=q.end-q.start;e<f;){h=e++;c=q.chunks[q.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}else{d=new w;e=0;for(f=q.end-q.start;e<f;)h=e++,c=q.chunks[q.start+h],d.end++,d.chunks.push(c);d.isNegative=q.isNegative;A=d;e=0;for(f=g.end-g.start;e<f;){h=e++;c=g.chunks[g.start+h];xa=h;for(r=A.end-A.start;xa<
r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}k=A;k.isNegative=!0;m=k}else if(d=new w(g.chunks),d.start=g.start,d.end=g.end,d.isNegative=!g.isNegative,O=d,p.greater(q,O)){d=new w;e=0;for(f=q.end-q.start;e<f;)h=e++,c=q.chunks[q.start+h],d.end++,d.chunks.push(c);d.isNegative=q.isNegative;A=d;e=0;for(f=O.end-O.start;e<f;)for(h=e++,c=O.chunks[O.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+
h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;m=c}else{d=new w;e=0;for(f=O.end-O.start;e<f;)h=e++,c=O.chunks[O.start+h],d.end++,d.chunks.push(c);d.isNegative=O.isNegative;A=d;e=0;for(f=q.end-q.start;e<f;)for(h=e++,c=q.chunks[q.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+
h]?c.end--:h=0;0==c.end-c.start?m=null:(c.isNegative=!0,m=c)}else if(q.isNegative)if(d=new w(q.chunks),d.start=q.start,d.end=q.end,d.isNegative=!q.isNegative,O=d,p.greater(g,O)){d=new w;e=0;for(f=g.end-g.start;e<f;)h=e++,c=g.chunks[g.start+h],d.end++,d.chunks.push(c);d.isNegative=g.isNegative;A=d;e=0;for(f=O.end-O.start;e<f;)for(h=e++,c=O.chunks[O.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-
c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;m=c}else{d=new w;e=0;for(f=O.end-O.start;e<f;)h=e++,c=O.chunks[O.start+h],d.end++,d.chunks.push(c);d.isNegative=O.isNegative;A=d;e=0;for(f=g.end-g.start;e<f;)for(h=e++,c=g.chunks[g.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;0==c.end-c.start?m=null:(c.isNegative=!0,m=c)}else{if(g.end-g.start>
q.end-q.start){d=new w;e=0;for(f=g.end-g.start;e<f;)h=e++,c=g.chunks[g.start+h],d.end++,d.chunks.push(c);d.isNegative=g.isNegative;A=d;e=0;for(f=q.end-q.start;e<f;){h=e++;c=q.chunks[q.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}else{d=new w;e=0;for(f=q.end-q.start;e<f;)h=e++,c=q.chunks[q.start+h],d.end++,d.chunks.push(c);d.isNegative=q.isNegative;A=d;e=0;for(f=
g.end-g.start;e<f;){h=e++;c=g.chunks[g.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}m=A}O=p.mul(b,m);if(null==v)if(null==n)b=null;else{d=new w;e=0;for(f=n.end-n.start;e<f;)h=e++,c=n.chunks[n.start+h],d.end++,d.chunks.push(c);d.isNegative=n.isNegative;b=d}else if(null==n){d=new w;e=0;for(f=v.end-v.start;e<f;)h=e++,c=v.chunks[v.start+h],d.end++,d.chunks.push(c);
d.isNegative=v.isNegative;b=d}else if(v.isNegative)if(n.isNegative){if(v.end-v.start>n.end-n.start){d=new w;e=0;for(f=v.end-v.start;e<f;)h=e++,c=v.chunks[v.start+h],d.end++,d.chunks.push(c);d.isNegative=v.isNegative;A=d;e=0;for(f=n.end-n.start;e<f;){h=e++;c=n.chunks[n.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}else{d=new w;e=0;for(f=n.end-n.start;e<f;)h=e++,
c=n.chunks[n.start+h],d.end++,d.chunks.push(c);d.isNegative=n.isNegative;A=d;e=0;for(f=v.end-v.start;e<f;){h=e++;c=v.chunks[v.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}k=A;k.isNegative=!0;b=k}else if(d=new w(v.chunks),d.start=v.start,d.end=v.end,d.isNegative=!v.isNegative,m=d,p.greater(n,m)){d=new w;e=0;for(f=n.end-n.start;e<f;)h=e++,c=n.chunks[n.start+h],
d.end++,d.chunks.push(c);d.isNegative=n.isNegative;A=d;e=0;for(f=m.end-m.start;e<f;)for(h=e++,c=m.chunks[m.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;b=c}else{d=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],d.end++,d.chunks.push(c);d.isNegative=m.isNegative;A=d;e=0;for(f=n.end-n.start;e<f;)for(h=e++,c=n.chunks[n.start+h],
xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;0==c.end-c.start?b=null:(c.isNegative=!0,b=c)}else if(n.isNegative)if(d=new w(n.chunks),d.start=n.start,d.end=n.end,d.isNegative=!n.isNegative,m=d,p.greater(v,m)){d=new w;e=0;for(f=v.end-v.start;e<f;)h=e++,c=v.chunks[v.start+h],d.end++,d.chunks.push(c);d.isNegative=v.isNegative;A=d;e=0;for(f=m.end-m.start;e<
f;)for(h=e++,c=m.chunks[m.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;b=c}else{d=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],d.end++,d.chunks.push(c);d.isNegative=m.isNegative;A=d;e=0;for(f=v.end-v.start;e<f;)for(h=e++,c=v.chunks[v.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+
h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;0==c.end-c.start?b=null:(c.isNegative=!0,b=c)}else{if(v.end-v.start>n.end-n.start){d=new w;e=0;for(f=v.end-v.start;e<f;)h=e++,c=v.chunks[v.start+h],d.end++,d.chunks.push(c);d.isNegative=v.isNegative;A=d;e=0;for(f=n.end-n.start;e<f;){h=e++;c=n.chunks[n.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+
h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}else{d=new w;e=0;for(f=n.end-n.start;e<f;)h=e++,c=n.chunks[n.start+h],d.end++,d.chunks.push(c);d.isNegative=n.isNegative;A=d;e=0;for(f=v.end-v.start;e<f;){h=e++;c=v.chunks[v.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}b=A}m=p.opSubtract(O,b);d=new w;if(null==n)for(e=0,f=t;e<f;)e++,d.end++,d.chunks.push(0);else{e=
0;for(f=t;e<f;)if(h=e++,h<n.end-n.start)c=n.chunks[n.start+h],d.end++,d.chunks.push(c);else{if(null==m&&null==a)break;d.end++;d.chunks.push(0)}if(n.end-n.start>t)if(g=new w(n.chunks),t>=n.end-n.start?b=null:(g.start=n.start+t,g.end=n.end,b=g),O=b,null==m)if(null==O)m=null;else{g=new w;e=0;for(f=O.end-O.start;e<f;)h=e++,c=O.chunks[O.start+h],g.end++,g.chunks.push(c);g.isNegative=O.isNegative;m=g}else if(null==O){g=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],g.end++,g.chunks.push(c);
g.isNegative=m.isNegative;m=g}else if(m.isNegative)if(O.isNegative){if(m.end-m.start>O.end-O.start){g=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],g.end++,g.chunks.push(c);g.isNegative=m.isNegative;A=g;e=0;for(f=O.end-O.start;e<f;){h=e++;c=O.chunks[O.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}else{g=new w;e=0;for(f=O.end-O.start;e<f;)h=e++,
c=O.chunks[O.start+h],g.end++,g.chunks.push(c);g.isNegative=O.isNegative;A=g;e=0;for(f=m.end-m.start;e<f;){h=e++;c=m.chunks[m.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}k=A;k.isNegative=!0;m=k}else if(g=new w(m.chunks),g.start=m.start,g.end=m.end,g.isNegative=!m.isNegative,b=g,p.greater(O,b)){g=new w;e=0;for(f=O.end-O.start;e<f;)h=e++,c=O.chunks[O.start+h],
g.end++,g.chunks.push(c);g.isNegative=O.isNegative;A=g;e=0;for(f=b.end-b.start;e<f;)for(h=e++,c=b.chunks[b.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;m=c}else{g=new w;e=0;for(f=b.end-b.start;e<f;)h=e++,c=b.chunks[b.start+h],g.end++,g.chunks.push(c);g.isNegative=b.isNegative;A=g;e=0;for(f=O.end-O.start;e<f;)for(h=e++,c=O.chunks[O.start+h],
xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;0==c.end-c.start?m=null:(c.isNegative=!0,m=c)}else if(O.isNegative)if(g=new w(O.chunks),g.start=O.start,g.end=O.end,g.isNegative=!O.isNegative,b=g,p.greater(m,b)){g=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],g.end++,g.chunks.push(c);g.isNegative=m.isNegative;A=g;e=0;for(f=b.end-b.start;e<
f;)for(h=e++,c=b.chunks[b.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;m=c}else{g=new w;e=0;for(f=b.end-b.start;e<f;)h=e++,c=b.chunks[b.start+h],g.end++,g.chunks.push(c);g.isNegative=b.isNegative;A=g;e=0;for(f=m.end-m.start;e<f;)for(h=e++,c=m.chunks[m.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+
h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;0==c.end-c.start?m=null:(c.isNegative=!0,m=c)}else{if(m.end-m.start>O.end-O.start){g=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],g.end++,g.chunks.push(c);g.isNegative=m.isNegative;A=g;e=0;for(f=O.end-O.start;e<f;){h=e++;c=O.chunks[O.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+
h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}else{g=new w;e=0;for(f=O.end-O.start;e<f;)h=e++,c=O.chunks[O.start+h],g.end++,g.chunks.push(c);g.isNegative=O.isNegative;A=g;e=0;for(f=m.end-m.start;e<f;){h=e++;c=m.chunks[m.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}m=A}}if(null==m){if(null!=a)for(e=0,f=t;e<f;)e++,d.end++,d.chunks.push(0)}else{e=0;for(f=t;e<
f;)if(h=e++,h<m.end-m.start)c=m.chunks[m.start+h],d.end++,d.chunks.push(c);else{if(null==a)break;d.end++;d.chunks.push(0)}if(m.end-m.start>t)if(g=new w(m.chunks),t>=m.end-m.start?b=null:(g.start=m.start+t,g.end=m.end,b=g),m=b,null==a)if(null==m)a=null;else{g=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],g.end++,g.chunks.push(c);g.isNegative=m.isNegative;a=g}else if(null==m){g=new w;e=0;for(f=a.end-a.start;e<f;)h=e++,c=a.chunks[a.start+h],g.end++,g.chunks.push(c);g.isNegative=a.isNegative;
a=g}else if(a.isNegative)if(m.isNegative){if(a.end-a.start>m.end-m.start){g=new w;e=0;for(f=a.end-a.start;e<f;)h=e++,c=a.chunks[a.start+h],g.end++,g.chunks.push(c);g.isNegative=a.isNegative;A=g;e=0;for(f=m.end-m.start;e<f;){h=e++;c=m.chunks[m.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}else{g=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],g.end++,
g.chunks.push(c);g.isNegative=m.isNegative;A=g;e=0;for(f=a.end-a.start;e<f;){h=e++;c=a.chunks[a.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}k=A;k.isNegative=!0;a=k}else if(g=new w(a.chunks),g.start=a.start,g.end=a.end,g.isNegative=!a.isNegative,b=g,p.greater(m,b)){g=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],g.end++,g.chunks.push(c);g.isNegative=
m.isNegative;A=g;e=0;for(f=b.end-b.start;e<f;)for(h=e++,c=b.chunks[b.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;a=c}else{g=new w;e=0;for(f=b.end-b.start;e<f;)h=e++,c=b.chunks[b.start+h],g.end++,g.chunks.push(c);g.isNegative=b.isNegative;A=g;e=0;for(f=m.end-m.start;e<f;)for(h=e++,c=m.chunks[m.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=
A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;0==c.end-c.start?a=null:(c.isNegative=!0,a=c)}else if(m.isNegative)if(g=new w(m.chunks),g.start=m.start,g.end=m.end,g.isNegative=!m.isNegative,b=g,p.greater(a,b)){g=new w;e=0;for(f=a.end-a.start;e<f;)h=e++,c=a.chunks[a.start+h],g.end++,g.chunks.push(c);g.isNegative=a.isNegative;A=g;e=0;for(f=b.end-b.start;e<f;)for(h=e++,c=b.chunks[b.start+
h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;a=c}else{g=new w;e=0;for(f=b.end-b.start;e<f;)h=e++,c=b.chunks[b.start+h],g.end++,g.chunks.push(c);g.isNegative=b.isNegative;A=g;e=0;for(f=a.end-a.start;e<f;)for(h=e++,c=a.chunks[a.start+h],xa=h,r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h];if(l>=c){A.chunks[A.start+h]=l-c;break}A.chunks[A.start+
h]=l+32768-c;c=1}c=A;for(h=c.end-c.start;0<=--h;)0==c.chunks[c.start+h]?c.end--:h=0;0==c.end-c.start?a=null:(c.isNegative=!0,a=c)}else{if(a.end-a.start>m.end-m.start){g=new w;e=0;for(f=a.end-a.start;e<f;)h=e++,c=a.chunks[a.start+h],g.end++,g.chunks.push(c);g.isNegative=a.isNegative;A=g;e=0;for(f=m.end-m.start;e<f;){h=e++;c=m.chunks[m.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,
A.chunks.push(c))}}else{g=new w;e=0;for(f=m.end-m.start;e<f;)h=e++,c=m.chunks[m.start+h],g.end++,g.chunks.push(c);g.isNegative=m.isNegative;A=g;e=0;for(f=a.end-a.start;e<f;){h=e++;c=a.chunks[a.start+h];xa=h;for(r=A.end-A.start;xa<r;){h=xa++;l=A.chunks[A.start+h]+c;if(0==(l&32768)){A.chunks[A.start+h]=l;c=0;break}A.chunks[A.start+h]=l&32767;c=1}0<c&&(A.end++,A.chunks.push(c))}}a=A}}if(null!=a)for(e=0,f=a.end-a.start;e<f;)h=e++,c=a.chunks[a.start+h],d.end++,d.chunks.push(c);return d},join:function(a,
b,c,d){var e=new w;if(null==d)for(var f=0,h=a;f<h;)f++,e.end++,e.chunks.push(0);else{f=0;for(h=a;f<h;){var l=f++;if(l<d.end-d.start){var m=d.chunks[d.start+l];e.end++;e.chunks.push(m)}else{if(null==c&&null==b)break;e.end++;e.chunks.push(0)}}if(d.end-d.start>a){var t=new w(d.chunks);a>=d.end-d.start?m=null:(t.start=d.start+a,t.end=d.end,m=t);d=m;if(null==c)if(null==d)c=null;else{t=new w;f=0;for(h=d.end-d.start;f<h;)l=f++,m=d.chunks[d.start+l],t.end++,t.chunks.push(m);t.isNegative=d.isNegative;c=t}else if(null==
d){t=new w;f=0;for(h=c.end-c.start;f<h;)l=f++,m=c.chunks[c.start+l],t.end++,t.chunks.push(m);t.isNegative=c.isNegative;c=t}else if(c.isNegative)if(d.isNegative){if(c.end-c.start>d.end-d.start){t=new w;f=0;for(h=c.end-c.start;f<h;)l=f++,m=c.chunks[c.start+l],t.end++,t.chunks.push(m);t.isNegative=c.isNegative;f=0;for(h=d.end-d.start;f<h;){l=f++;m=d.chunks[d.start+l];for(var k,n=l,g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l]+m;if(0==(k&32768)){t.chunks[t.start+l]=k;m=0;break}t.chunks[t.start+l]=
k&32767;m=1}0<m&&(t.end++,t.chunks.push(m))}}else{t=new w;f=0;for(h=d.end-d.start;f<h;)l=f++,m=d.chunks[d.start+l],t.end++,t.chunks.push(m);t.isNegative=d.isNegative;f=0;for(h=c.end-c.start;f<h;){l=f++;m=c.chunks[c.start+l];n=l;for(g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l]+m;if(0==(k&32768)){t.chunks[t.start+l]=k;m=0;break}t.chunks[t.start+l]=k&32767;m=1}0<m&&(t.end++,t.chunks.push(m))}}c=t;c.isNegative=!0}else if(t=new w(c.chunks),t.start=c.start,t.end=c.end,t.isNegative=!c.isNegative,m=
t,p.greater(d,m)){t=new w;f=0;for(h=d.end-d.start;f<h;){l=f++;var q=d.chunks[d.start+l];t.end++;t.chunks.push(q)}t.isNegative=d.isNegative;f=0;for(h=m.end-m.start;f<h;)for(l=f++,q=m.chunks[m.start+l],n=l,g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l];if(k>=q){t.chunks[t.start+l]=k-q;break}t.chunks[t.start+l]=k+32768-q;q=1}m=t;for(l=m.end-m.start;0<=--l;)0==m.chunks[m.start+l]?m.end--:l=0;c=m}else{t=new w;f=0;for(h=m.end-m.start;f<h;)l=f++,q=m.chunks[m.start+l],t.end++,t.chunks.push(q);t.isNegative=
m.isNegative;f=0;for(h=d.end-d.start;f<h;)for(l=f++,q=d.chunks[d.start+l],n=l,g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l];if(k>=q){t.chunks[t.start+l]=k-q;break}t.chunks[t.start+l]=k+32768-q;q=1}m=t;for(l=m.end-m.start;0<=--l;)0==m.chunks[m.start+l]?m.end--:l=0;0==m.end-m.start?c=null:(m.isNegative=!0,c=m)}else if(d.isNegative)if(t=new w(d.chunks),t.start=d.start,t.end=d.end,t.isNegative=!d.isNegative,m=t,p.greater(c,m)){t=new w;f=0;for(h=c.end-c.start;f<h;)l=f++,q=c.chunks[c.start+l],t.end++,
t.chunks.push(q);t.isNegative=c.isNegative;f=0;for(h=m.end-m.start;f<h;)for(l=f++,q=m.chunks[m.start+l],n=l,g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l];if(k>=q){t.chunks[t.start+l]=k-q;break}t.chunks[t.start+l]=k+32768-q;q=1}m=t;for(l=m.end-m.start;0<=--l;)0==m.chunks[m.start+l]?m.end--:l=0;c=m}else{t=new w;f=0;for(h=m.end-m.start;f<h;)l=f++,q=m.chunks[m.start+l],t.end++,t.chunks.push(q);t.isNegative=m.isNegative;f=0;for(h=c.end-c.start;f<h;)for(l=f++,q=c.chunks[c.start+l],n=l,g=t.end-t.start;n<
g;){l=n++;k=t.chunks[t.start+l];if(k>=q){t.chunks[t.start+l]=k-q;break}t.chunks[t.start+l]=k+32768-q;q=1}m=t;for(l=m.end-m.start;0<=--l;)0==m.chunks[m.start+l]?m.end--:l=0;0==m.end-m.start?c=null:(m.isNegative=!0,c=m)}else{if(c.end-c.start>d.end-d.start){t=new w;f=0;for(h=c.end-c.start;f<h;)l=f++,m=c.chunks[c.start+l],t.end++,t.chunks.push(m);t.isNegative=c.isNegative;f=0;for(h=d.end-d.start;f<h;){l=f++;m=d.chunks[d.start+l];n=l;for(g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l]+m;if(0==(k&32768)){t.chunks[t.start+
l]=k;m=0;break}t.chunks[t.start+l]=k&32767;m=1}0<m&&(t.end++,t.chunks.push(m))}}else{t=new w;f=0;for(h=d.end-d.start;f<h;)l=f++,m=d.chunks[d.start+l],t.end++,t.chunks.push(m);t.isNegative=d.isNegative;f=0;for(h=c.end-c.start;f<h;){l=f++;m=c.chunks[c.start+l];n=l;for(g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l]+m;if(0==(k&32768)){t.chunks[t.start+l]=k;m=0;break}t.chunks[t.start+l]=k&32767;m=1}0<m&&(t.end++,t.chunks.push(m))}}c=t}}}if(null==c){if(null!=b)for(f=0,h=a;f<h;)f++,e.end++,e.chunks.push(0)}else{f=
0;for(h=a;f<h;)if(l=f++,l<c.end-c.start)m=c.chunks[c.start+l],e.end++,e.chunks.push(m);else{if(null==b)break;e.end++;e.chunks.push(0)}if(c.end-c.start>a)if(t=new w(c.chunks),a>=c.end-c.start?m=null:(t.start=c.start+a,t.end=c.end,m=t),c=m,null==b)if(null==c)b=null;else{t=new w;f=0;for(h=c.end-c.start;f<h;)l=f++,m=c.chunks[c.start+l],t.end++,t.chunks.push(m);t.isNegative=c.isNegative;b=t}else if(null==c){t=new w;f=0;for(h=b.end-b.start;f<h;)l=f++,m=b.chunks[b.start+l],t.end++,t.chunks.push(m);t.isNegative=
b.isNegative;b=t}else if(b.isNegative)if(c.isNegative){if(b.end-b.start>c.end-c.start){t=new w;f=0;for(h=b.end-b.start;f<h;)l=f++,m=b.chunks[b.start+l],t.end++,t.chunks.push(m);t.isNegative=b.isNegative;f=0;for(h=c.end-c.start;f<h;){l=f++;m=c.chunks[c.start+l];n=l;for(g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l]+m;if(0==(k&32768)){t.chunks[t.start+l]=k;m=0;break}t.chunks[t.start+l]=k&32767;m=1}0<m&&(t.end++,t.chunks.push(m))}}else{t=new w;f=0;for(h=c.end-c.start;f<h;)l=f++,m=c.chunks[c.start+
l],t.end++,t.chunks.push(m);t.isNegative=c.isNegative;f=0;for(h=b.end-b.start;f<h;){l=f++;m=b.chunks[b.start+l];n=l;for(g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l]+m;if(0==(k&32768)){t.chunks[t.start+l]=k;m=0;break}t.chunks[t.start+l]=k&32767;m=1}0<m&&(t.end++,t.chunks.push(m))}}c=t;c.isNegative=!0;b=c}else if(t=new w(b.chunks),t.start=b.start,t.end=b.end,t.isNegative=!b.isNegative,m=t,p.greater(c,m)){t=new w;f=0;for(h=c.end-c.start;f<h;)l=f++,q=c.chunks[c.start+l],t.end++,t.chunks.push(q);
t.isNegative=c.isNegative;f=0;for(h=m.end-m.start;f<h;)for(l=f++,q=m.chunks[m.start+l],n=l,g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l];if(k>=q){t.chunks[t.start+l]=k-q;break}t.chunks[t.start+l]=k+32768-q;q=1}m=t;for(l=m.end-m.start;0<=--l;)0==m.chunks[m.start+l]?m.end--:l=0;b=m}else{t=new w;f=0;for(h=m.end-m.start;f<h;)l=f++,q=m.chunks[m.start+l],t.end++,t.chunks.push(q);t.isNegative=m.isNegative;f=0;for(h=c.end-c.start;f<h;)for(l=f++,q=c.chunks[c.start+l],n=l,g=t.end-t.start;n<g;){l=n++;k=
t.chunks[t.start+l];if(k>=q){t.chunks[t.start+l]=k-q;break}t.chunks[t.start+l]=k+32768-q;q=1}m=t;for(l=m.end-m.start;0<=--l;)0==m.chunks[m.start+l]?m.end--:l=0;0==m.end-m.start?b=null:(m.isNegative=!0,b=m)}else if(c.isNegative)if(t=new w(c.chunks),t.start=c.start,t.end=c.end,t.isNegative=!c.isNegative,m=t,p.greater(b,m)){t=new w;f=0;for(h=b.end-b.start;f<h;)l=f++,q=b.chunks[b.start+l],t.end++,t.chunks.push(q);t.isNegative=b.isNegative;f=0;for(h=m.end-m.start;f<h;)for(l=f++,q=m.chunks[m.start+l],n=
l,g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l];if(k>=q){t.chunks[t.start+l]=k-q;break}t.chunks[t.start+l]=k+32768-q;q=1}m=t;for(l=m.end-m.start;0<=--l;)0==m.chunks[m.start+l]?m.end--:l=0;b=m}else{t=new w;f=0;for(h=m.end-m.start;f<h;)l=f++,q=m.chunks[m.start+l],t.end++,t.chunks.push(q);t.isNegative=m.isNegative;f=0;for(h=b.end-b.start;f<h;)for(l=f++,q=b.chunks[b.start+l],n=l,g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l];if(k>=q){t.chunks[t.start+l]=k-q;break}t.chunks[t.start+l]=k+32768-q;
q=1}m=t;for(l=m.end-m.start;0<=--l;)0==m.chunks[m.start+l]?m.end--:l=0;0==m.end-m.start?b=null:(m.isNegative=!0,b=m)}else{if(b.end-b.start>c.end-c.start){t=new w;f=0;for(h=b.end-b.start;f<h;)l=f++,m=b.chunks[b.start+l],t.end++,t.chunks.push(m);t.isNegative=b.isNegative;f=0;for(h=c.end-c.start;f<h;){l=f++;m=c.chunks[c.start+l];n=l;for(g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l]+m;if(0==(k&32768)){t.chunks[t.start+l]=k;m=0;break}t.chunks[t.start+l]=k&32767;m=1}0<m&&(t.end++,t.chunks.push(m))}}else{t=
new w;f=0;for(h=c.end-c.start;f<h;)l=f++,m=c.chunks[c.start+l],t.end++,t.chunks.push(m);t.isNegative=c.isNegative;f=0;for(h=b.end-b.start;f<h;){l=f++;m=b.chunks[b.start+l];n=l;for(g=t.end-t.start;n<g;){l=n++;k=t.chunks[t.start+l]+m;if(0==(k&32768)){t.chunks[t.start+l]=k;m=0;break}t.chunks[t.start+l]=k&32767;m=1}0<m&&(t.end++,t.chunks.push(m))}}b=t}}if(null!=b)for(f=0,h=b.end-b.start;f<h;)l=f++,m=b.chunks[b.start+l],e.end++,e.chunks.push(m);return e},opDiv:function(a,b){if(null==b)throw u.thrown("Error '/', divisor can't be 0");
if(null==a)a={quotient:null,remainder:null};else if(p.equal(b,p.fromInt(1))){for(var c=new w,d=0,e=a.end-a.start;d<e;){b=d++;var f=a.chunks[a.start+b];c.end++;c.chunks.push(f)}c.isNegative=a.isNegative;a={quotient:c,remainder:null}}else if(p.equal(a,b))a={quotient:p.fromInt(1),remainder:null};else if(a.isNegative){if(b.isNegative)if(c=new w(a.chunks),c.start=a.start,c.end=a.end,c.isNegative=!a.isNegative,a=c,c=new w(b.chunks),c.start=b.start,c.end=b.end,c.isNegative=!b.isNegative,b=c,2>=b.end-b.start)if(2>=
a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=
p.divModLong(a,b);else a=p.divModLong(a,b);else{c=new w(a.chunks);c.start=a.start;c.end=a.end;c.isNegative=!a.isNegative;a=c;if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,
c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);null!=a.quotient&&(a.quotient.isNegative=!0)}null!=a.remainder&&(a.remainder.isNegative=!0)}else if(b.isNegative){c=new w(b.chunks);c.start=b.start;c.end=b.end;c.isNegative=!b.isNegative;b=c;if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%
p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);null!=a.quotient&&(a.quotient.isNegative=
!0)}else if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a=
{quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);return a.quotient},opIntDiv:function(a,b){a=p.fromInt(a);if(null==b)throw u.thrown("Error '/', divisor can't be 0");if(null==a)a={quotient:null,remainder:null};else if(p.equal(b,p.fromInt(1))){for(var c=new w,d=0,e=a.end-a.start;d<e;){b=d++;var f=a.chunks[a.start+b];c.end++;c.chunks.push(f)}c.isNegative=a.isNegative;a={quotient:c,remainder:null}}else if(p.equal(a,b))a={quotient:p.fromInt(1),remainder:null};else if(a.isNegative){if(b.isNegative)if(c=
new w(a.chunks),c.start=a.start,c.end=a.end,c.isNegative=!a.isNegative,a=c,c=new w(b.chunks),c.start=b.start,c.end=b.end,c.isNegative=!b.isNegative,b=c,2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],
e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);else{c=new w(a.chunks);c.start=a.start;c.end=a.end;c.isNegative=!a.isNegative;a=c;if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,
remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);null!=a.quotient&&(a.quotient.isNegative=!0)}null!=a.remainder&&(a.remainder.isNegative=!0)}else if(b.isNegative){c=new w(b.chunks);
c.start=b.start;c.end=b.end;c.isNegative=!b.isNegative;b=c;if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):
(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);null!=a.quotient&&(a.quotient.isNegative=!0)}else if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);
d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);return a.quotient},opModulo:function(a,b){if(null==b)throw u.thrown("Error '/', divisor can't be 0");if(null==a)a={quotient:null,remainder:null};else if(p.equal(b,p.fromInt(1))){for(var c=new w,d=0,e=a.end-a.start;d<e;){b=d++;var f=a.chunks[a.start+
b];c.end++;c.chunks.push(f)}c.isNegative=a.isNegative;a={quotient:c,remainder:null}}else if(p.equal(a,b))a={quotient:p.fromInt(1),remainder:null};else if(a.isNegative){if(b.isNegative)if(c=new w(a.chunks),c.start=a.start,c.end=a.end,c.isNegative=!a.isNegative,a=c,c=new w(b.chunks),c.start=b.start,c.end=b.end,c.isNegative=!b.isNegative,b=c,2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==
b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);else{c=new w(a.chunks);c.start=a.start;c.end=a.end;c.isNegative=!a.isNegative;a=c;if(2>=
b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=
p.divModLong(a,b);else a=p.divModLong(a,b);null!=a.quotient&&(a.quotient.isNegative=!0)}null!=a.remainder&&(a.remainder.isNegative=!0)}else if(b.isNegative){c=new w(b.chunks);c.start=b.start;c.end=b.end;c.isNegative=!b.isNegative;b=c;if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+
b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);null!=a.quotient&&(a.quotient.isNegative=!0)}else if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==
b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);return a.remainder},opIntModulo:function(a,b){a=p.fromInt(a);if(null==
b)throw u.thrown("Error '/', divisor can't be 0");if(null==a)a={quotient:null,remainder:null};else if(p.equal(b,p.fromInt(1))){for(var c=new w,d=0,e=a.end-a.start;d<e;){b=d++;var f=a.chunks[a.start+b];c.end++;c.chunks.push(f)}c.isNegative=a.isNegative;a={quotient:c,remainder:null}}else if(p.equal(a,b))a={quotient:p.fromInt(1),remainder:null};else if(a.isNegative){if(b.isNegative)if(c=new w(a.chunks),c.start=a.start,c.end=a.end,c.isNegative=!a.isNegative,a=c,c=new w(b.chunks),c.start=b.start,c.end=
b.end,c.isNegative=!b.isNegative,b=c,2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),
d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);else{c=new w(a.chunks);c.start=a.start;c.end=a.end;c.isNegative=!a.isNegative;a=c;if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|
0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);null!=a.quotient&&(a.quotient.isNegative=!0)}null!=a.remainder&&(a.remainder.isNegative=!0)}else if(b.isNegative){c=new w(b.chunks);c.start=b.start;c.end=b.end;c.isNegative=!b.isNegative;b=c;if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/
p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,
b);null!=a.quotient&&(a.quotient.isNegative=!0)}else if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,
c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);return a.remainder},divMod:function(a,b){if(null==b)throw u.thrown("Error '/', divisor can't be 0");if(null==a)return{quotient:null,remainder:null};if(p.equal(b,p.fromInt(1))){for(var c=new w,d=0,e=a.end-a.start;d<e;){b=d++;var f=a.chunks[a.start+b];c.end++;c.chunks.push(f)}c.isNegative=a.isNegative;return{quotient:c,remainder:null}}if(p.equal(a,b))return{quotient:p.fromInt(1),
remainder:null};if(a.isNegative){if(b.isNegative)if(c=new w(a.chunks),c.start=a.start,c.end=a.end,c.isNegative=!a.isNegative,a=c,c=new w(b.chunks),c.start=b.start,c.end=b.end,c.isNegative=!b.isNegative,b=c,2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=
p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);else{c=new w(a.chunks);c.start=a.start;c.end=a.end;c.isNegative=!a.isNegative;a=c;if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==
b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);null!=a.quotient&&(a.quotient.isNegative=!0)}null!=a.remainder&&(a.remainder.isNegative=
!0)}else if(b.isNegative){c=new w(b.chunks);c.start=b.start;c.end=b.end;c.isNegative=!b.isNegative;b=c;if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>
15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);null!=a.quotient&&(a.quotient.isNegative=!0)}else if(2>=b.end-b.start)if(2>=a.end-a.start)a={quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};else if(1==b.end-b.start)if(1==b.chunks[b.start])a={quotient:a,remainder:null};else{f=p.toInt(b);b=a.end-a.start-1;d=a.chunks[a.start+b--]<<15|
a.chunks[a.start+b];c=p.fromInt(d/f|0);d=d%f|0;do d=d<<15|a.chunks[a.start+--b],e=d/f|0,32768<=e?(c.end++,c.chunks.unshift(e>>>15),c.end++,c.chunks.unshift(e&32767)):(c.end++,c.chunks.unshift(e)),d=d%f|0;while(0<b);a={quotient:c,remainder:p.fromInt(d)}}else a=p.divModLong(a,b);else a=p.divModLong(a,b);return a},_divMod:function(a,b){if(2>=b.end-b.start){if(2>=a.end-a.start)return{quotient:p.fromInt(p.toInt(a)/p.toInt(b)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(b)|0)};if(1==b.end-b.start){if(1==b.chunks[b.start])return{quotient:a,
remainder:null};b=p.toInt(b);var c=a.end-a.start-1,d=a.chunks[a.start+c--]<<15|a.chunks[a.start+c],e=p.fromInt(d/b|0);d=d%b|0;do{d=d<<15|a.chunks[a.start+--c];var f=d/b|0;32768<=f?(e.end++,e.chunks.unshift(f>>>15),e.end++,e.chunks.unshift(f&32767)):(e.end++,e.chunks.unshift(f));d=d%b|0}while(0<c);return{quotient:e,remainder:p.fromInt(d)}}}return p.divModLong(a,b)},divModLittle:function(a,b){var c=a.end-a.start-1,d=a.chunks[a.start+c--]<<15|a.chunks[a.start+c],e=p.fromInt(d/b|0);d=d%b|0;do{d=d<<15|
a.chunks[a.start+--c];var f=d/b|0;32768<=f?(e.end++,e.chunks.unshift(f>>>15),e.end++,e.chunks.unshift(f&32767)):(e.end++,e.chunks.unshift(f));d=d%b|0}while(0<c);return{quotient:e,remainder:p.fromInt(d)}},divFast:function(a,b){if(null==a)return null;if(p.equal(a,p.fromInt(b)))return p.fromInt(1);if(1==b){b=new w;for(var c=0,d=a.end-a.start;c<d;){var e=c++;e=a.chunks[a.start+e];b.end++;b.chunks.push(e)}b.isNegative=a.isNegative;return b}if(2>=a.end-a.start)return p.fromInt(p.toInt(a)/b|0);e=a.end-a.start-
1;d=a.chunks[a.start+e--]<<15|a.chunks[a.start+e];c=p.fromInt(d/b|0);d=d%b|0;do{d=d<<15|a.chunks[a.start+--e];var f=d/b|0;32768<=f?(c.end++,c.chunks.unshift(f>>>15),c.end++,c.chunks.unshift(f&32767)):(c.end++,c.chunks.unshift(f));d=d%b|0}while(0<e);p.fromInt(d);return c},divModLong:function(a,b){var c=b.end-b.start-1,d=b.chunks[b.start+c],e=new w(a.chunks);if(c>=a.end-a.start)var f=null;else e.start=a.start+c,e.end=a.end,f=e;if(null==f)var h=null;else if(p.equal(f,p.fromInt(d)))h=p.fromInt(1);else if(1==
d){e=new w;for(var l=0,m=f.end-f.start;l<m;){var t=l++,k=f.chunks[f.start+t];e.end++;e.chunks.push(k)}e.isNegative=f.isNegative;h=e}else if(2>=f.end-f.start)h=p.fromInt(p.toInt(f)/d|0);else{t=f.end-f.start-1;l=f.chunks[f.start+t--]<<15|f.chunks[f.start+t];k=p.fromInt(l/d|0);l=l%d|0;do l=l<<15|f.chunks[f.start+--t],m=l/d|0,32768<=m?(k.end++,k.chunks.unshift(m>>>15),k.end++,k.chunks.unshift(m&32767)):(k.end++,k.chunks.unshift(m)),l=l%d|0;while(0<t);f=k;p.fromInt(l);h=f}do{var n=p.opSubtract(a,p.opMulticplicate(h,
b));if(null!=n){p.shiftOneBitLeft(h);e=new w(n.chunks);c>=n.end-n.start?f=null:(e.start=n.start+c,e.end=n.end,f=e);if(null==f)k=null;else if(p.equal(f,p.fromInt(d)))k=p.fromInt(1);else if(1==d){e=new w;l=0;for(m=f.end-f.start;l<m;)t=l++,k=f.chunks[f.start+t],e.end++,e.chunks.push(k);e.isNegative=f.isNegative;k=e}else if(2>=f.end-f.start)k=p.fromInt(p.toInt(f)/d|0);else{t=f.end-f.start-1;l=f.chunks[f.start+t--]<<15|f.chunks[f.start+t];k=p.fromInt(l/d|0);l=l%d|0;do l=l<<15|f.chunks[f.start+--t],m=l/
d|0,32768<=m?(k.end++,k.chunks.unshift(m>>>15),k.end++,k.chunks.unshift(m&32767)):(k.end++,k.chunks.unshift(m)),l=l%d|0;while(0<t);f=k;p.fromInt(l);k=f}h=p.opSubtract(h,k);p.shiftOneBitRight(h);n.isNegative=!1}}while(p.greaterOrEqual(n,b));if(null!=n&&(n=p.opSubtract(a,p.opMulticplicate(h,b)),n.isNegative)){k=1;l=0;for(m=h.end-h.start;l<m;){t=l++;d=h.chunks[h.start+t];if(d>=k){h.chunks[h.start+t]=d-k;break}h.chunks[h.start+t]=d+32768-k;k=1}n=p.opAdd(n,b)}return{quotient:h,remainder:n}},pow:function(a,
b){if(p.lesser(b,p.fromInt(0)))throw u.thrown("Error 'powMod', exponent can't be negative");if(null==b)return p.fromInt(1);if(null==a)return null;if(1==a.end-a.start&&1==a.chunks[a.start])return p.fromInt(1);if(1==b.end-b.start&&1==b.chunks[b.start]){b=new w;for(var c=0,d=a.end-a.start;c<d;){var e=c++;e=a.chunks[a.start+e];b.end++;b.chunks.push(e)}b.isNegative=a.isNegative;return b}var f=p.fromInt(1),h=a;c=0;for(d=b.end-b.start;c<d;){e=c++;var l=b.chunks[b.start+e];a=1;for(e=e==b.end-b.start-1?1<<
Rb.bitsize(l):32768;a<e;)0!=(a&l)&&(f=p.opMulticplicate(f,h)),h=p.opMulticplicate(h,h),a<<=1}return f},powMod:function(a,b,c){if(p.lesser(b,p.fromInt(0)))throw u.thrown("Error 'powMod', exponent can't be negative");if(null==c)throw u.thrown("Error 'powMod', modulus can't be 0");if(p.equal(c,p.fromInt(1)))return null;if(null==b)return p.fromInt(1);if(null==a)return null;if(1==a.end-a.start&&1==a.chunks[a.start])return p.fromInt(1);if(1==b.end-b.start&&1==b.chunks[b.start]){if(null==c)throw u.thrown("Error '/', divisor can't be 0");
if(null==a)b={quotient:null,remainder:null};else if(p.equal(c,p.fromInt(1))){for(var d=new w,e=0,f=a.end-a.start;e<f;){var h=e++,l=a.chunks[a.start+h];d.end++;d.chunks.push(l)}d.isNegative=a.isNegative;b={quotient:d,remainder:null}}else if(p.equal(a,c))b={quotient:p.fromInt(1),remainder:null};else{if(a.isNegative){if(c.isNegative){d=new w(a.chunks);d.start=a.start;d.end=a.end;d.isNegative=!a.isNegative;var m=d;d=new w(c.chunks);d.start=c.start;d.end=c.end;d.isNegative=!c.isNegative;l=d;if(2>=l.end-
l.start)if(2>=m.end-m.start)l={quotient:p.fromInt(p.toInt(m)/p.toInt(l)|0),remainder:p.fromInt(p.toInt(m)%p.toInt(l)|0)};else if(1==l.end-l.start)if(1==l.chunks[l.start])l={quotient:m,remainder:null};else{l=p.toInt(l);h=m.end-m.start-1;var t=m.chunks[m.start+h--]<<15|m.chunks[m.start+h];d=p.fromInt(t/l|0);t=t%l|0;do{t=t<<15|m.chunks[m.start+--h];var k=t/l|0;32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k));t=t%l|0}while(0<h);l={quotient:d,
remainder:p.fromInt(t)}}else l=p.divModLong(m,l);else l=p.divModLong(m,l)}else{d=new w(a.chunks);d.start=a.start;d.end=a.end;d.isNegative=!a.isNegative;m=d;if(2>=c.end-c.start)if(2>=m.end-m.start)l={quotient:p.fromInt(p.toInt(m)/p.toInt(c)|0),remainder:p.fromInt(p.toInt(m)%p.toInt(c)|0)};else if(1==c.end-c.start)if(1==c.chunks[c.start])l={quotient:m,remainder:null};else{l=p.toInt(c);h=m.end-m.start-1;t=m.chunks[m.start+h--]<<15|m.chunks[m.start+h];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|m.chunks[m.start+
--h],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<h);l={quotient:d,remainder:p.fromInt(t)}}else l=p.divModLong(m,c);else l=p.divModLong(m,c);null!=l.quotient&&(l.quotient.isNegative=!0)}null!=l.remainder&&(l.remainder.isNegative=!0)}else if(c.isNegative){d=new w(c.chunks);d.start=c.start;d.end=c.end;d.isNegative=!c.isNegative;l=d;if(2>=l.end-l.start)if(2>=a.end-a.start)l={quotient:p.fromInt(p.toInt(a)/p.toInt(l)|
0),remainder:p.fromInt(p.toInt(a)%p.toInt(l)|0)};else if(1==l.end-l.start)if(1==l.chunks[l.start])l={quotient:a,remainder:null};else{l=p.toInt(l);h=a.end-a.start-1;t=a.chunks[a.start+h--]<<15|a.chunks[a.start+h];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|a.chunks[a.start+--h],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<h);l={quotient:d,remainder:p.fromInt(t)}}else l=p.divModLong(a,l);else l=p.divModLong(a,l);null!=
l.quotient&&(l.quotient.isNegative=!0)}else if(2>=c.end-c.start)if(2>=a.end-a.start)l={quotient:p.fromInt(p.toInt(a)/p.toInt(c)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(c)|0)};else if(1==c.end-c.start)if(1==c.chunks[c.start])l={quotient:a,remainder:null};else{l=p.toInt(c);h=a.end-a.start-1;t=a.chunks[a.start+h--]<<15|a.chunks[a.start+h];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|a.chunks[a.start+--h],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),
t=t%l|0;while(0<h);l={quotient:d,remainder:p.fromInt(t)}}else l=p.divModLong(a,c);else l=p.divModLong(a,c);b=l}return b.remainder}var n=p.fromInt(1);if(null==c)throw u.thrown("Error '/', divisor can't be 0");if(null==a)var g={quotient:null,remainder:null};else if(p.equal(c,p.fromInt(1))){d=new w;e=0;for(f=a.end-a.start;e<f;)h=e++,l=a.chunks[a.start+h],d.end++,d.chunks.push(l);d.isNegative=a.isNegative;g={quotient:d,remainder:null}}else if(p.equal(a,c))g={quotient:p.fromInt(1),remainder:null};else{if(a.isNegative){if(c.isNegative)if(d=
new w(a.chunks),d.start=a.start,d.end=a.end,d.isNegative=!a.isNegative,m=d,d=new w(c.chunks),d.start=c.start,d.end=c.end,d.isNegative=!c.isNegative,l=d,2>=l.end-l.start)if(2>=m.end-m.start)l={quotient:p.fromInt(p.toInt(m)/p.toInt(l)|0),remainder:p.fromInt(p.toInt(m)%p.toInt(l)|0)};else if(1==l.end-l.start)if(1==l.chunks[l.start])l={quotient:m,remainder:null};else{l=p.toInt(l);h=m.end-m.start-1;t=m.chunks[m.start+h--]<<15|m.chunks[m.start+h];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|m.chunks[m.start+--h],
k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<h);l={quotient:d,remainder:p.fromInt(t)}}else l=p.divModLong(m,l);else l=p.divModLong(m,l);else{d=new w(a.chunks);d.start=a.start;d.end=a.end;d.isNegative=!a.isNegative;m=d;if(2>=c.end-c.start)if(2>=m.end-m.start)l={quotient:p.fromInt(p.toInt(m)/p.toInt(c)|0),remainder:p.fromInt(p.toInt(m)%p.toInt(c)|0)};else if(1==c.end-c.start)if(1==c.chunks[c.start])l={quotient:m,
remainder:null};else{l=p.toInt(c);h=m.end-m.start-1;t=m.chunks[m.start+h--]<<15|m.chunks[m.start+h];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|m.chunks[m.start+--h],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<h);l={quotient:d,remainder:p.fromInt(t)}}else l=p.divModLong(m,c);else l=p.divModLong(m,c);null!=l.quotient&&(l.quotient.isNegative=!0)}null!=l.remainder&&(l.remainder.isNegative=!0)}else if(c.isNegative){d=new w(c.chunks);
d.start=c.start;d.end=c.end;d.isNegative=!c.isNegative;l=d;if(2>=l.end-l.start)if(2>=a.end-a.start)l={quotient:p.fromInt(p.toInt(a)/p.toInt(l)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(l)|0)};else if(1==l.end-l.start)if(1==l.chunks[l.start])l={quotient:a,remainder:null};else{l=p.toInt(l);h=a.end-a.start-1;t=a.chunks[a.start+h--]<<15|a.chunks[a.start+h];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|a.chunks[a.start+--h],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):
(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<h);l={quotient:d,remainder:p.fromInt(t)}}else l=p.divModLong(a,l);else l=p.divModLong(a,l);null!=l.quotient&&(l.quotient.isNegative=!0)}else if(2>=c.end-c.start)if(2>=a.end-a.start)l={quotient:p.fromInt(p.toInt(a)/p.toInt(c)|0),remainder:p.fromInt(p.toInt(a)%p.toInt(c)|0)};else if(1==c.end-c.start)if(1==c.chunks[c.start])l={quotient:a,remainder:null};else{l=p.toInt(c);h=a.end-a.start-1;t=a.chunks[a.start+h--]<<15|a.chunks[a.start+h];d=p.fromInt(t/l|0);
t=t%l|0;do t=t<<15|a.chunks[a.start+--h],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<h);l={quotient:d,remainder:p.fromInt(t)}}else l=p.divModLong(a,c);else l=p.divModLong(a,c);g=l}g=g.remainder;e=0;for(f=b.end-b.start;e<f;){h=e++;var q=b.chunks[b.start+h];a=1;for(h=h==b.end-b.start-1?1<<Rb.bitsize(q):32768;a<h;){if(0!=(a&q)){n=p.opMulticplicate(n,g);if(null==c)throw u.thrown("Error '/', divisor can't be 0");if(null==
n)n={quotient:null,remainder:null};else if(p.equal(c,p.fromInt(1))){d=new w;m=0;for(t=n.end-n.start;m<t;)l=m++,l=n.chunks[n.start+l],d.end++,d.chunks.push(l);d.isNegative=n.isNegative;n={quotient:d,remainder:null}}else if(p.equal(n,c))n={quotient:p.fromInt(1),remainder:null};else{if(n.isNegative){if(c.isNegative)if(l=new w(n.chunks),l.start=n.start,l.end=n.end,l.isNegative=!n.isNegative,m=l,n=new w(c.chunks),n.start=c.start,n.end=c.end,n.isNegative=!c.isNegative,l=n,2>=l.end-l.start)if(2>=m.end-m.start)l=
{quotient:p.fromInt(p.toInt(m)/p.toInt(l)|0),remainder:p.fromInt(p.toInt(m)%p.toInt(l)|0)};else if(1==l.end-l.start)if(1==l.chunks[l.start])l={quotient:m,remainder:null};else{n=p.toInt(l);l=m.end-m.start-1;t=m.chunks[m.start+l--]<<15|m.chunks[m.start+l];d=p.fromInt(t/n|0);t=t%n|0;do t=t<<15|m.chunks[m.start+--l],k=t/n|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%n|0;while(0<l);l={quotient:d,remainder:p.fromInt(t)}}else l=p.divModLong(m,
l);else l=p.divModLong(m,l);else{l=new w(n.chunks);l.start=n.start;l.end=n.end;l.isNegative=!n.isNegative;n=l;if(2>=c.end-c.start)if(2>=n.end-n.start)l={quotient:p.fromInt(p.toInt(n)/p.toInt(c)|0),remainder:p.fromInt(p.toInt(n)%p.toInt(c)|0)};else if(1==c.end-c.start)if(1==c.chunks[c.start])l={quotient:n,remainder:null};else{l=p.toInt(c);m=n.end-n.start-1;t=n.chunks[n.start+m--]<<15|n.chunks[n.start+m];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|n.chunks[n.start+--m],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>
15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<m);l={quotient:d,remainder:p.fromInt(t)}}else l=p.divModLong(n,c);else l=p.divModLong(n,c);null!=l.quotient&&(l.quotient.isNegative=!0)}null!=l.remainder&&(l.remainder.isNegative=!0)}else if(c.isNegative){l=new w(c.chunks);l.start=c.start;l.end=c.end;l.isNegative=!c.isNegative;if(2>=l.end-l.start)if(2>=n.end-n.start)l={quotient:p.fromInt(p.toInt(n)/p.toInt(l)|0),remainder:p.fromInt(p.toInt(n)%p.toInt(l)|0)};else if(1==
l.end-l.start)if(1==l.chunks[l.start])l={quotient:n,remainder:null};else{l=p.toInt(l);m=n.end-n.start-1;t=n.chunks[n.start+m--]<<15|n.chunks[n.start+m];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|n.chunks[n.start+--m],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<m);l={quotient:d,remainder:p.fromInt(t)}}else l=p.divModLong(n,l);else l=p.divModLong(n,l);null!=l.quotient&&(l.quotient.isNegative=!0)}else if(2>=c.end-c.start)if(2>=
n.end-n.start)l={quotient:p.fromInt(p.toInt(n)/p.toInt(c)|0),remainder:p.fromInt(p.toInt(n)%p.toInt(c)|0)};else if(1==c.end-c.start)if(1==c.chunks[c.start])l={quotient:n,remainder:null};else{l=p.toInt(c);m=n.end-n.start-1;t=n.chunks[n.start+m--]<<15|n.chunks[n.start+m];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|n.chunks[n.start+--m],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<m);l={quotient:d,remainder:p.fromInt(t)}}else l=
p.divModLong(n,c);else l=p.divModLong(n,c);n=l}n=n.remainder}g=p.opMulticplicate(g,g);if(null==c)throw u.thrown("Error '/', divisor can't be 0");if(null==g)g={quotient:null,remainder:null};else if(p.equal(c,p.fromInt(1))){l=new w;m=0;for(d=g.end-g.start;m<d;)t=m++,t=g.chunks[g.start+t],l.end++,l.chunks.push(t);l.isNegative=g.isNegative;g={quotient:l,remainder:null}}else if(p.equal(g,c))g={quotient:p.fromInt(1),remainder:null};else if(g.isNegative){if(c.isNegative)if(l=new w(g.chunks),l.start=g.start,
l.end=g.end,l.isNegative=!g.isNegative,g=l,l=new w(c.chunks),l.start=c.start,l.end=c.end,l.isNegative=!c.isNegative,2>=l.end-l.start)if(2>=g.end-g.start)g={quotient:p.fromInt(p.toInt(g)/p.toInt(l)|0),remainder:p.fromInt(p.toInt(g)%p.toInt(l)|0)};else if(1==l.end-l.start)if(1==l.chunks[l.start])g={quotient:g,remainder:null};else{l=p.toInt(l);m=g.end-g.start-1;t=g.chunks[g.start+m--]<<15|g.chunks[g.start+m];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|g.chunks[g.start+--m],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>
15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<m);g={quotient:d,remainder:p.fromInt(t)}}else g=p.divModLong(g,l);else g=p.divModLong(g,l);else{l=new w(g.chunks);l.start=g.start;l.end=g.end;l.isNegative=!g.isNegative;g=l;if(2>=c.end-c.start)if(2>=g.end-g.start)g={quotient:p.fromInt(p.toInt(g)/p.toInt(c)|0),remainder:p.fromInt(p.toInt(g)%p.toInt(c)|0)};else if(1==c.end-c.start)if(1==c.chunks[c.start])g={quotient:g,remainder:null};else{l=p.toInt(c);m=g.end-g.start-
1;t=g.chunks[g.start+m--]<<15|g.chunks[g.start+m];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|g.chunks[g.start+--m],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<m);g={quotient:d,remainder:p.fromInt(t)}}else g=p.divModLong(g,c);else g=p.divModLong(g,c);null!=g.quotient&&(g.quotient.isNegative=!0)}null!=g.remainder&&(g.remainder.isNegative=!0)}else if(c.isNegative){l=new w(c.chunks);l.start=c.start;l.end=c.end;l.isNegative=
!c.isNegative;if(2>=l.end-l.start)if(2>=g.end-g.start)g={quotient:p.fromInt(p.toInt(g)/p.toInt(l)|0),remainder:p.fromInt(p.toInt(g)%p.toInt(l)|0)};else if(1==l.end-l.start)if(1==l.chunks[l.start])g={quotient:g,remainder:null};else{l=p.toInt(l);m=g.end-g.start-1;t=g.chunks[g.start+m--]<<15|g.chunks[g.start+m];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|g.chunks[g.start+--m],k=t/l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<
m);g={quotient:d,remainder:p.fromInt(t)}}else g=p.divModLong(g,l);else g=p.divModLong(g,l);null!=g.quotient&&(g.quotient.isNegative=!0)}else if(2>=c.end-c.start)if(2>=g.end-g.start)g={quotient:p.fromInt(p.toInt(g)/p.toInt(c)|0),remainder:p.fromInt(p.toInt(g)%p.toInt(c)|0)};else if(1==c.end-c.start)if(1==c.chunks[c.start])g={quotient:g,remainder:null};else{l=p.toInt(c);m=g.end-g.start-1;t=g.chunks[g.start+m--]<<15|g.chunks[g.start+m];d=p.fromInt(t/l|0);t=t%l|0;do t=t<<15|g.chunks[g.start+--m],k=t/
l|0,32768<=k?(d.end++,d.chunks.unshift(k>>>15),d.end++,d.chunks.unshift(k&32767)):(d.end++,d.chunks.unshift(k)),t=t%l|0;while(0<m);g={quotient:d,remainder:p.fromInt(t)}}else g=p.divModLong(g,c);else g=p.divModLong(g,c);g=g.remainder;a<<=1}}return n},greater:function(a,b){if(null==a)return null==b?!1:b.isNegative?!0:!1;if(null==b||a.isNegative!=b.isNegative||a.end-a.start>b.end-b.start)return a.isNegative?!1:!0;if(a.end-a.start<b.end-b.start)return a.isNegative?!0:!1;for(var c=a.end-a.start;0<c--;){if(a.chunks[a.start+
c]>b.chunks[b.start+c])if(a.isNegative)break;else return!0;if(a.chunks[a.start+c]<b.chunks[b.start+c]){if(a.isNegative)return!0;break}}return!1},intGreater:function(a,b){return p.lesser(b,p.fromInt(a))},greaterOrEqual:function(a,b){if(null==a)return null==b?!0:b.isNegative?!0:!1;if(null==b||a.isNegative!=b.isNegative||a.end-a.start>b.end-b.start)return a.isNegative?!1:!0;if(a.end-a.start<b.end-b.start)return a.isNegative?!0:!1;for(var c=a.end-a.start;0<c--;){if(a.chunks[a.start+c]>b.chunks[b.start+
c]){if(a.isNegative)return!1;break}if(a.chunks[a.start+c]<b.chunks[b.start+c])if(a.isNegative)break;else return!1}return!0},intGreaterOrEqual:function(a,b){return p.lesserOrEqual(b,p.fromInt(a))},lesser:function(a,b){if(null==a)return null==b?!1:b.isNegative?!1:!0;if(null==b||a.isNegative!=b.isNegative)return a.isNegative?!0:!1;if(a.end-a.start<b.end-b.start)return a.isNegative?!1:!0;if(a.end-a.start>b.end-b.start)return a.isNegative?!0:!1;for(var c=a.end-a.start;0<c--;){if(a.chunks[a.start+c]<b.chunks[b.start+
c])if(a.isNegative)break;else return!0;if(a.chunks[a.start+c]>b.chunks[b.start+c]){if(a.isNegative)return!0;break}}return!1},intLesser:function(a,b){return p.greater(b,p.fromInt(a))},lesserOrEqual:function(a,b){if(null==a)return null==b?!0:b.isNegative?!1:!0;if(null==b||a.isNegative!=b.isNegative)return a.isNegative?!0:!1;if(a.end-a.start<b.end-b.start)return a.isNegative?!1:!0;if(a.end-a.start>b.end-b.start)return a.isNegative?!0:!1;for(var c=a.end-a.start;0<c--;){if(a.chunks[a.start+c]<b.chunks[b.start+
c]){if(a.isNegative)return!1;break}if(a.chunks[a.start+c]>b.chunks[b.start+c])if(a.isNegative)break;else return!1}return!0},intLesserOrEqual:function(a,b){return p.greaterOrEqual(b,p.fromInt(a))},equal:function(a,b){if(null==a)return null==b?!0:!1;if(null==b||a.isNegative!=b.isNegative||a.end-a.start!=b.end-b.start)return!1;for(var c=a.end-a.start;0<c--;)if(a.chunks[a.start+c]!=b.chunks[b.start+c])return!1;return!0},notEqual:function(a,b){if(null==a)return null==b?!1:!0;if(null==b||a.isNegative!=
b.isNegative||a.end-a.start!=b.end-b.start)return!0;for(var c=a.end-a.start;0<c--;)if(a.chunks[a.start+c]!=b.chunks[b.start+c])return!0;return!1},shiftOneBitRight:function(a){if(null!=a){var b=a.end-a.start-1,c=a.chunks[a.start+b],d=0<(c&1);c>>>=1;0!=c?a.chunks[a.start+b]=c:(a.end--,a.chunks.pop());for(;0<b--;)c=a.chunks[a.start+b],d&&(c|=32768),d=0<(c&1),a.chunks[a.start+b]=c>>>1}},shiftOneBitLeft:function(a){if(null!=a){for(var b=0,c=0,d=a.end-a.start;c<d;){var e=c++;b=a.chunks[a.start+e]<<1|(0<
(b&32768)?1:0);a.chunks[a.start+e]=b&32767}0<(b&32768)&&(a.end++,a.chunks.push(1))}},opNOT:function(a){if(null==a)return p.fromInt(-1);if(a.isNegative){if(1==a.end-a.start&&1==a.chunks[a.start])return null;for(var b=new w,c=0,d=a.end-a.start;c<d;){var e=c++,f=a.chunks[a.start+e];b.end++;b.chunks.push(f)}b.isNegative=!a.isNegative;a=b;f=1;c=0;for(d=a.end-a.start;c<d;){e=c++;b=a.chunks[a.start+e];if(b>=f){a.chunks[a.start+e]=b-f;break}a.chunks[a.start+e]=b+32768-f;f=1}return a}b=new w;c=0;for(d=a.end-
a.start;c<d;)e=c++,f=a.chunks[a.start+e],b.end++,b.chunks.push(f);b.isNegative=a.isNegative;a=b;f=1;c=0;for(d=a.end-a.start;c<d;){e=c++;b=a.chunks[a.start+e]+f;if(0==(b&32768)){a.chunks[a.start+e]=b;f=0;break}a.chunks[a.start+e]=b&32767;f=1}0<f&&(a.end++,a.chunks.push(f));a.isNegative=!0;return a},opShiftRightUnsigned:function(a,b){if(null==a)return null;if(0==b){for(var c=new w,d=0,e=a.end-a.start;d<e;){b=d++;var f=a.chunks[a.start+b];c.end++;c.chunks.push(f)}c.isNegative=a.isNegative;return c}if(a.isNegative)throw u.thrown("ERROR '>>>', can't shift a negative value");
if(0>b)return null;c=new w;d=b/15|0;e=b-15*d;if(0==e)for(e=a.end-a.start;d<e;)b=d++,f=a.chunks[a.start+b],c.end++,c.chunks.push(f);else{var h=0;for(b=a.end-a.start;b-- >d;){f=a.chunks[a.start+b];if(0<c.end-c.start||0<(f>>>e|h))c.end++,c.chunks.unshift(f>>>e|h);h=f<<15-e&32767}}if(0==c.end-c.start)return null;a.isNegative&&(c.isNegative=!0);return c},opShiftRight:function(a,b){if(null==a)return null;if(0==b){for(var c=new w,d=0,e=a.end-a.start;d<e;){b=d++;var f=a.chunks[a.start+b];c.end++;c.chunks.push(f)}c.isNegative=
a.isNegative;return c}if(a.isNegative){if(0>b||1==a.end-a.start&&1==a.chunks[a.start])return p.fromInt(-1);a=p.opNOT(a);c=new w;d=b/15|0;e=b-15*d;if(0==e)for(e=a.end-a.start;d<e;)b=d++,f=a.chunks[a.start+b],c.end++,c.chunks.push(f);else{var h=0;for(b=a.end-a.start;b-- >d;){f=a.chunks[a.start+b];if(0<c.end-c.start||0<(f>>>e|h))c.end++,c.chunks.unshift(f>>>e|h);h=f<<15-e&32767}}0==c.end-c.start?a=null:(a.isNegative&&(c.isNegative=!0),a=c);return p.opNOT(a)}if(0>b)return null;c=new w;d=b/15|0;e=b-15*
d;if(0==e)for(e=a.end-a.start;d<e;)b=d++,f=a.chunks[a.start+b],c.end++,c.chunks.push(f);else for(h=0,b=a.end-a.start;b-- >d;){f=a.chunks[a.start+b];if(0<c.end-c.start||0<(f>>>e|h))c.end++,c.chunks.unshift(f>>>e|h);h=f<<15-e&32767}if(0==c.end-c.start)return null;a.isNegative&&(c.isNegative=!0);return c},_opShiftRight:function(a,b){var c=new w,d=b/15|0,e=b-15*d;if(0==e)for(e=a.end-a.start;d<e;){b=d++;var f=a.chunks[a.start+b];c.end++;c.chunks.push(f)}else{var h=0;for(b=a.end-a.start;b-- >d;){f=a.chunks[a.start+
b];if(0<c.end-c.start||0<(f>>>e|h))c.end++,c.chunks.unshift(f>>>e|h);h=f<<15-e&32767}}if(0==c.end-c.start)return null;a.isNegative&&(c.isNegative=!0);return c},opShiftLeft:function(a,b){if(null==a)return null;if(0==b){var c=new w;b=0;for(var d=a.end-a.start;b<d;){var e=b++;e=a.chunks[a.start+e];c.end++;c.chunks.push(e)}c.isNegative=a.isNegative;return c}if(0>b)throw u.thrown("ERROR '<<', can't negative-shift-left a negative value");c=new w;d=b/15|0;var f=b-15*d;for(b=0;b<d;)b++,c.end++,c.chunks.push(0);
if(0==f)for(b=0,d=a.end-a.start;b<d;)e=b++,e=a.chunks[a.start+e],c.end++,c.chunks.push(e);else{var h=0;b=0;for(d=a.end-a.start;b<d;)e=b++,e=a.chunks[a.start+e],c.end++,c.chunks.push(e<<f&32767|h),h=e>>>15-f;0<h&&(c.end++,c.chunks.push(h))}a.isNegative&&(c.isNegative=!0);return c},_opShiftLeft:function(a,b){var c=new w,d=b/15|0;b-=15*d;for(var e=0;e<d;)e++,c.end++,c.chunks.push(0);if(0==b)for(e=0,d=a.end-a.start;e<d;){var f=e++;f=a.chunks[a.start+f];c.end++;c.chunks.push(f)}else{var h=0;e=0;for(d=
a.end-a.start;e<d;)f=e++,f=a.chunks[a.start+f],c.end++,c.chunks.push(f<<b&32767|h),h=f>>>15-b;0<h&&(c.end++,c.chunks.push(h))}a.isNegative&&(c.isNegative=!0);return c},opAND:function(a,b){if(null==a||null==b)return null;if(a.isNegative||b.isNegative)throw u.thrown("ERROR '&', emulation of two's complement behavior for '&' with negative numbers is not implemented yet");for(var c=null,d,e=a.end-a.start<b.end-b.start?a.end-a.start:b.end-b.start;0<e--;)d=a.chunks[a.start+e]&b.chunks[b.start+e],null!=
c?(c.end++,c.chunks.unshift(d)):0!=d&&(c=new w,c.end++,c.chunks.unshift(d));return c},_opAND:function(a,b){for(var c=null,d,e=a.end-a.start<b.end-b.start?a.end-a.start:b.end-b.start;0<e--;)d=a.chunks[a.start+e]&b.chunks[b.start+e],null!=c?(c.end++,c.chunks.unshift(d)):0!=d&&(c=new w,c.end++,c.chunks.unshift(d));return c},opANDInt:function(a,b){return p.opAND(b,p.fromInt(a))},opOR:function(a,b){if(null==a||null==b)return null;if(a.isNegative||b.isNegative)throw u.thrown("ERROR '&', emulation of two's complement behavior for '|' with negative numbers is not implemented yet");
for(var c=new w,d=a.end-a.start<b.end-b.start?a.end-a.start:b.end-b.start,e=0,f=d;e<f;){var h=e++;h=a.chunks[a.start+h]|b.chunks[b.start+h];c.end++;c.chunks.push(h)}if(a.end-a.start<b.end-b.start)for(e=d,f=b.end-b.start;e<f;)h=e++,h=b.chunks[b.start+h],c.end++,c.chunks.push(h);else if(a.end-a.start>b.end-b.start)for(e=d,f=a.end-a.start;e<f;)h=e++,h=a.chunks[a.start+h],c.end++,c.chunks.push(h);return c},_opOR:function(a,b){for(var c=new w,d=a.end-a.start<b.end-b.start?a.end-a.start:b.end-b.start,e=
0,f=d;e<f;){var h=e++;h=a.chunks[a.start+h]|b.chunks[b.start+h];c.end++;c.chunks.push(h)}if(a.end-a.start<b.end-b.start)for(e=d,f=b.end-b.start;e<f;)h=e++,h=b.chunks[b.start+h],c.end++,c.chunks.push(h);else if(a.end-a.start>b.end-b.start)for(e=d,f=a.end-a.start;e<f;)h=e++,h=a.chunks[a.start+h],c.end++,c.chunks.push(h);return c},opOrInt:function(a,b){return p.opOR(b,p.fromInt(a))},opXOR:function(a,b){if(null==a||null==b)return null;if(a.isNegative||b.isNegative)throw u.thrown("ERROR '&', emulation of two's complement behavior for '^' with negative numbers is not implemented yet");
for(var c=new w,d=a.end-a.start<b.end-b.start?a.end-a.start:b.end-b.start,e=0,f=d;e<f;){var h=e++;h=a.chunks[a.start+h]^b.chunks[b.start+h];c.end++;c.chunks.push(h)}if(a.end-a.start<b.end-b.start)for(e=d,f=b.end-b.start;e<f;)h=e++,h=b.chunks[b.start+h],c.end++,c.chunks.push(h);else if(a.end-a.start>b.end-b.start)for(e=d,f=a.end-a.start;e<f;)h=e++,h=a.chunks[a.start+h],c.end++,c.chunks.push(h);return c},_opXOR:function(a,b){for(var c=new w,d=a.end-a.start<b.end-b.start?a.end-a.start:b.end-b.start,
e=0,f=d;e<f;){var h=e++;h=a.chunks[a.start+h]^b.chunks[b.start+h];c.end++;c.chunks.push(h)}if(a.end-a.start<b.end-b.start)for(e=d,f=b.end-b.start;e<f;)h=e++,h=b.chunks[b.start+h],c.end++,c.chunks.push(h);else if(a.end-a.start>b.end-b.start)for(e=d,f=a.end-a.start;e<f;)h=e++,h=a.chunks[a.start+h],c.end++,c.chunks.push(h);return c},opXORInt:function(a,b){return p.opXOR(b,p.fromInt(a))}},oc=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[21].__init(a);Q.call(this)};g.ButtonsContainerAsset=
oc;oc.__name__="ButtonsContainerAsset";oc.__super__=Q;oc.prototype=r(Q.prototype,{__class__:oc});var ed=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[190].__init(a);Q.call(this)};g.ContentAsset=ed;ed.__name__="ContentAsset";ed.__super__=Q;ed.prototype=r(Q.prototype,{contentField:null,scrollBar:null,__class__:ed});var Ra=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[179].__init(a);Q.call(this)};g.ContentFieldAsset=Ra;Ra.__name__="ContentFieldAsset";Ra.__super__=Q;Ra.prototype=
r(Q.prototype,{contentField:null,__class__:Ra});var Ua=function(){};g.DateTools=Ua;Ua.__name__="DateTools";Ua.__format_get=function(a,b){switch(b){case "%":return"%";case "A":return Ua.DAY_NAMES[a.getDay()];case "B":return Ua.MONTH_NAMES[a.getMonth()];case "C":return ia.lpad(B.string(a.getFullYear()/100|0),"0",2);case "D":return Ua.__format(a,"%m/%d/%y");case "F":return Ua.__format(a,"%Y-%m-%d");case "M":return ia.lpad(B.string(a.getMinutes()),"0",2);case "R":return Ua.__format(a,"%H:%M");case "S":return ia.lpad(B.string(a.getSeconds()),
"0",2);case "T":return Ua.__format(a,"%H:%M:%S");case "Y":return B.string(a.getFullYear());case "a":return Ua.DAY_SHORT_NAMES[a.getDay()];case "d":return ia.lpad(B.string(a.getDate()),"0",2);case "e":return B.string(a.getDate());case "b":case "h":return Ua.MONTH_SHORT_NAMES[a.getMonth()];case "H":case "k":return ia.lpad(B.string(a.getHours()),"H"==b?"0":" ",2);case "I":case "l":return a=a.getHours()%12,ia.lpad(B.string(0==a?12:a),"I"==b?"0":" ",2);case "m":return ia.lpad(B.string(a.getMonth()+1),
"0",2);case "n":return"\n";case "p":return 11<a.getHours()?"PM":"AM";case "r":return Ua.__format(a,"%I:%M:%S %p");case "s":return B.string(a.getTime()/1E3|0);case "t":return"\t";case "u":return b=a.getDay(),0==b?"7":null==b?"null":""+b;case "w":return B.string(a.getDay());case "y":return ia.lpad(B.string(a.getFullYear()%100),"0",2);default:throw new tm("Date.format %"+b+"- not implemented yet.",null,{fileName:"DateTools.hx",lineNumber:101,className:"DateTools",methodName:"__format_get"});}};Ua.__format=
function(a,b){for(var c="",d=0;;){var e=b.indexOf("%",d);if(0>e)break;var f=e-d;c+=null==f?G.substr(b,d,null):G.substr(b,d,f);c+=B.string(Ua.__format_get(a,G.substr(b,e+1,1)));d=e+2}f=b.length-d;return c+=null==f?G.substr(b,d,null):G.substr(b,d,f)};Ua.format=function(a,b){return Ua.__format(a,b)};var fa=function(a,b){this.r=new RegExp(a,b.split("u").join(""))};g.EReg=fa;fa.__name__="EReg";fa.prototype={r:null,match:function(a){this.r.global&&(this.r.lastIndex=0);this.r.m=this.r.exec(a);this.r.s=a;
return null!=this.r.m},matched:function(a){if(null!=this.r.m&&0<=a&&a<this.r.m.length)return this.r.m[a];throw u.thrown("EReg::matched");},matchedRight:function(){if(null==this.r.m)throw u.thrown("No string matched");var a=this.r.m.index+this.r.m[0].length;return G.substr(this.r.s,a,this.r.s.length-a)},matchedPos:function(){if(null==this.r.m)throw u.thrown("No string matched");return{pos:this.r.m.index,len:this.r.m[0].length}},matchSub:function(a,b,c){null==c&&(c=-1);if(this.r.global){if(this.r.lastIndex=
b,this.r.m=this.r.exec(0>c?a:G.substr(a,0,b+c)),c=null!=this.r.m)this.r.s=a}else if(c=this.match(0>c?G.substr(a,b,null):G.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+=B.string(G.substr(a,c,null));break}var e=this.matchedPos();d+=B.string(G.substr(a,c,e.pos-c));d+=B.string(b(this));0==e.len?(d+=B.string(G.substr(a,e.pos,1)),c=
e.pos+1):c=e.pos+e.len}while(this.r.global);!this.r.global&&0<c&&c<a.length&&(d+=B.string(G.substr(a,c,null)));return d},__class__:fa};var Pa=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[50].__init(a);Q.call(this)};g.EndPanelAsset=Pa;Pa.__name__="EndPanelAsset";Pa.__super__=Q;Pa.prototype=r(Q.prototype,{bg:null,icon:null,dots:null,text:null,__class__:Pa});var qa=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[156].__init(a);Q.call(this)};g.FreeVersionAddAsset=qa;qa.__name__=
"FreeVersionAddAsset";qa.__super__=Q;qa.prototype=r(Q.prototype,{txt:null,__class__:qa});var G=function(){};g.HxOverrides=G;G.__name__="HxOverrides";G.dateStr=function(a){var b=a.getMonth()+1,c=a.getDate(),d=a.getHours(),e=a.getMinutes(),f=a.getSeconds();return a.getFullYear()+"-"+(10>b?"0"+b:""+b)+"-"+(10>c?"0"+c:""+c)+" "+(10>d?"0"+d:""+d)+":"+(10>e?"0"+e:""+e)+":"+(10>f?"0"+f:""+f)};G.strDate=function(a){switch(a.length){case 8:a=a.split(":");var b=new Date;b.setTime(0);b.setUTCHours(a[0]);b.setUTCMinutes(a[1]);
b.setUTCSeconds(a[2]);return b;case 10:return a=a.split("-"),new Date(a[0],a[1]-1,a[2],0,0,0);case 19:return a=a.split(" "),b=a[0].split("-"),a=a[1].split(":"),new Date(b[0],b[1]-1,b[2],a[0],a[1],a[2]);default:throw u.thrown("Invalid date format : "+a);}};G.cca=function(a,b){a=a.charCodeAt(b);if(a==a)return a};G.substr=function(a,b,c){if(null==c)c=a.length;else if(0>c)if(0==b)c=a.length+c;else return"";return a.substr(b,c)};G.remove=function(a,b){b=a.indexOf(b);if(-1==b)return!1;a.splice(b,1);return!0};
G.now=function(){return Date.now()};var ge=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[18].__init(a);Q.call(this)};g.ImgButtonLabel=ge;ge.__name__="ImgButtonLabel";ge.__super__=Q;ge.prototype=r(Q.prototype,{txt:null,__class__:ge});var Yb=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[8].__init(a);Q.call(this)};g.InputHolderAsset=Yb;Yb.__name__="InputHolderAsset";Yb.__super__=Q;Yb.prototype=r(Q.prototype,{__class__:Yb});var Rb=function(){};g.IntUtil=Rb;Rb.__name__="IntUtil";
Rb.nextPowerOfTwo=function(a,b){null==b&&(b=32);if(za.gt(3,a))return a;--a;var c=b>>1,d=b>>1;if(1==a>>>c)a=c+1;else{d>>=1;if(0==d)throw u.thrown("Error calculating intBitLength: "+(null==a?"null":B.string(za.toFloat(a)))+" has more bits than maxBitSize");c=za.gt(1,a>>>c)?c-d:c+d;if(1==a>>>c)a=c+1;else{d>>=1;if(0==d)throw u.thrown("Error calculating intBitLength: "+(null==a?"null":B.string(za.toFloat(a)))+" has more bits than maxBitSize");a=za.gt(1,a>>>c)?Rb._bitsize(a,c-d,d):Rb._bitsize(a,c+d,d)}}if(a>=
b)throw u.thrown("Error calculating nextPowerOfTwo: reaching maxBitSize of "+b);return 1<<a};Rb.bitsize=function(a,b){null==b&&(b=32);if(za.gt(3,a))return a;var c=b>>=1;if(1==a>>>b)return b+1;c>>=1;if(0==c)throw u.thrown("Error calculating intBitLength: "+(null==a?"null":B.string(za.toFloat(a)))+" has more bits than maxBitSize");b=za.gt(1,a>>>b)?b-c:b+c;if(1==a>>>b)return b+1;c>>=1;if(0==c)throw u.thrown("Error calculating intBitLength: "+(null==a?"null":B.string(za.toFloat(a)))+" has more bits than maxBitSize");
return za.gt(1,a>>>b)?Rb._bitsize(a,b-c,c):Rb._bitsize(a,b+c,c)};Rb._bitsize=function(a,b,c){if(1==a>>>b)return b+1;c>>=1;if(0==c)throw u.thrown("Error calculating intBitLength: "+(null==a?"null":B.string(za.toFloat(a)))+" has more bits than maxBitSize");return za.gt(1,a>>>b)?Rb._bitsize(a,b-c,c):Rb._bitsize(a,b+c,c)};var vb=function(){};g.Lambda=vb;vb.__name__="Lambda";vb.array=function(a){var b=[];for(a=M(a);a.hasNext();){var c=a.next();b.push(c)}return b};vb.filter=function(a,b){var c=[];for(a=
M(a);a.hasNext();){var d=a.next();b(d)&&c.push(d)}return c};vb.count=function(a,b){var c=0;if(null==b)for(b=M(a);b.hasNext();)b.next(),++c;else for(a=M(a);a.hasNext();){var d=a.next();b(d)&&++c}return c};vb.find=function(a,b){for(a=M(a);a.hasNext();){var c=a.next();if(b(c))return c}return null};var X=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[56].__init(a);Q.call(this)};g.LicenceAsset=X;X.__name__="LicenceAsset";X.__super__=Q;X.prototype=r(Q.prototype,{bg:null,label:null,__class__:X});
var w=function(a){this.start=this.end=0;this.isNegative=!1;this.chunks=null!=a?a:[]};g.LittleIntChunks=w;w.__name__="LittleIntChunks";w.createFromLittleInt=function(a){if(0==a)return null;var b=new w;0>a&&(b.isNegative=!0,a=-a);for(;0!=a;)b.end++,b.chunks.push(a&32767),a>>>=15;return b};w.createFromBaseString=function(a,b){a=a.toLowerCase().replace(w.regexSpaces.r,"");if(w.regexZero.match(a))return null;var c=!1;w.regexSign.match(a)&&(a=a.replace(w.regexSign.r,""),c=!0);if(null!=b){var d=a.replace(w.regexLeadingZeros.r,
""),e=b;null==e&&(e=10);if(2>e)throw u.thrown("Error, base "+e+" need to be greater or equal 2");if(16<e)throw u.thrown("Error, base "+e+" for string output is to great. Max value can be "+w.hexaChars.length);for(var f=d.length,h=p.fromInt(1),l=p.fromInt(0),m;0<f;){m=w.hexaChars.indexOf(d.charAt(--f));if(-1==m||m>=e)throw u.thrown("Error, base "+e+' string can only contain "'+w.hexaChars.join("")+'"');var t=m;if(1==t){for(var k=new w,n=0,g=h.end-h.start;n<g;){var q=n++,v=h.chunks[h.start+q];k.end++;
k.chunks.push(v)}k.isNegative=h.isNegative;var r=k}else{0>t&&(t=-t);for(var A=0,xa=new w,z=0,x=h.end-h.start;z<x;){var U=z++;A=h.chunks[h.start+U]*t+A;xa.end++;xa.chunks.push(A&32767);A>>>=15}0<A&&(xa.end++,xa.chunks.push(A));r=xa}if(null==l)if(null==r)l=null;else{for(var X=new w,B=0,P=r.end-r.start;B<P;){var D=B++,Ha=r.chunks[r.start+D];X.end++;X.chunks.push(Ha)}X.isNegative=r.isNegative;l=X}else if(null==r){for(var F=new w,C=0,G=l.end-l.start;C<G;){var y=C++,I=l.chunks[l.start+y];F.end++;F.chunks.push(I)}F.isNegative=
l.isNegative;l=F}else if(l.isNegative)if(r.isNegative){if(l.end-l.start>r.end-r.start){for(var J=new w,H=0,Y=l.end-l.start;H<Y;){var L=H++,Q=l.chunks[l.start+L];J.end++;J.chunks.push(Q)}J.isNegative=l.isNegative;for(var N=J,Wa=0,E=r.end-r.start;Wa<E;){for(var fb=Wa++,T=r.chunks[r.start+fb],V,R=fb,S=N.end-N.start;R<S;){var W=R++;V=N.chunks[N.start+W]+T;if(0==(V&32768)){N.chunks[N.start+W]=V;T=0;break}N.chunks[N.start+W]=V&32767;T=1}0<T&&(N.end++,N.chunks.push(T))}var K=N}else{for(var M=new w,aa=0,
ba=r.end-r.start;aa<ba;){var ff=aa++,ha=r.chunks[r.start+ff];M.end++;M.chunks.push(ha)}M.isNegative=r.isNegative;for(var Z=M,ia=0,fa=l.end-l.start;ia<fa;){for(var ja=ia++,ea=l.chunks[l.start+ja],ka,ca=ja,qa=Z.end-Z.start;ca<qa;){var ma=ca++;ka=Z.chunks[Z.start+ma]+ea;if(0==(ka&32768)){Z.chunks[Z.start+ma]=ka;ea=0;break}Z.chunks[Z.start+ma]=ka&32767;ea=1}0<ea&&(Z.end++,Z.chunks.push(ea))}K=Z}K.isNegative=!0;l=K}else{var Ed=new w(l.chunks);Ed.start=l.start;Ed.end=l.end;Ed.isNegative=!l.isNegative;var la=
Ed;if(p.greater(r,la)){for(var da=new w,oa=0,ta=r.end-r.start;oa<ta;){var xf=oa++,sa=r.chunks[r.start+xf];da.end++;da.chunks.push(sa)}da.isNegative=r.isNegative;for(var na=da,Ba=0,Tb=la.end-la.start;Ba<Tb;)for(var ya=Ba++,ua=la.chunks[la.start+ya],ra=ya,rc=na.end-na.start;ra<rc;){var Hc=ra++,va=na.chunks[na.start+Hc];if(va>=ua){na.chunks[na.start+Hc]=va-ua;ua=0;break}na.chunks[na.start+Hc]=va+32768-ua;ua=1}var pa=na;for(var wa=pa.end-pa.start;0<=--wa;)0==pa.chunks[pa.start+wa]?pa.end--:wa=0;l=pa}else{for(var rb=
new w,bb=0,Aa=la.end-la.start;bb<Aa;){var Ca=bb++,Da=la.chunks[la.start+Ca];rb.end++;rb.chunks.push(Da)}rb.isNegative=la.isNegative;for(var za=rb,Na=0,Ka=r.end-r.start;Na<Ka;)for(var Ea=Na++,Ga=r.chunks[r.start+Ea],Ia=Ea,Oa=za.end-za.start;Ia<Oa;){var Ma=Ia++,Fa=za.chunks[za.start+Ma];if(Fa>=Ga){za.chunks[za.start+Ma]=Fa-Ga;Ga=0;break}za.chunks[za.start+Ma]=Fa+32768-Ga;Ga=1}pa=za;for(var Pa=pa.end-pa.start;0<=--Pa;)0==pa.chunks[pa.start+Pa]?pa.end--:Pa=0;0==pa.end-pa.start?l=null:(pa.isNegative=!0,
l=pa)}}else if(r.isNegative){var Ib=new w(r.chunks);Ib.start=r.start;Ib.end=r.end;Ib.isNegative=!r.isNegative;var kc=Ib;if(p.greater(l,kc)){for(var ab=new w,Qa=0,Ua=l.end-l.start;Qa<Ua;){var Za=Qa++,Ya=l.chunks[l.start+Za];ab.end++;ab.chunks.push(Ya)}ab.isNegative=l.isNegative;for(var Xa=ab,db=0,hb=kc.end-kc.start;db<hb;)for(var cb=db++,Sa=kc.chunks[kc.start+cb],Ra=cb,Va=Xa.end-Xa.start;Ra<Va;){var $a=Ra++,hc=Xa.chunks[Xa.start+$a];if(hc>=Sa){Xa.chunks[Xa.start+$a]=hc-Sa;Sa=0;break}Xa.chunks[Xa.start+
$a]=hc+32768-Sa;Sa=1}var La=Xa;for(var kb=La.end-La.start;0<=--kb;)0==La.chunks[La.start+kb]?La.end--:kb=0;l=La}else{for(var jb=new w,qb=0,pb=kc.end-kc.start;qb<pb;){var vb=qb++,Ja=kc.chunks[kc.start+vb];jb.end++;jb.chunks.push(Ja)}jb.isNegative=kc.isNegative;for(var Ta=jb,eb=0,wb=l.end-l.start;eb<wb;)for(var sb=eb++,mb=l.chunks[l.start+sb],xb=sb,Bb=Ta.end-Ta.start;xb<Bb;){var tb=xb++,gb=Ta.chunks[Ta.start+tb];if(gb>=mb){Ta.chunks[Ta.start+tb]=gb-mb;mb=0;break}Ta.chunks[Ta.start+tb]=gb+32768-mb;mb=
1}La=Ta;for(var zb=La.end-La.start;0<=--zb;)0==La.chunks[La.start+zb]?La.end--:zb=0;0==La.end-La.start?l=null:(La.isNegative=!0,l=La)}}else if(l.end-l.start>r.end-r.start){for(var ub=new w,ob=0,Gb=l.end-l.start;ob<Gb;){var ih=ob++,Kb=l.chunks[l.start+ih];ub.end++;ub.chunks.push(Kb)}ub.isNegative=l.isNegative;for(var Ab=ub,yb=0,Lb=r.end-r.start;yb<Lb;){for(var Cb=yb++,nb=r.chunks[r.start+Cb],Fb,Mb=Cb,Pb=Ab.end-Ab.start;Mb<Pb;){var Hb=Mb++;Fb=Ab.chunks[Ab.start+Hb]+nb;if(0==(Fb&32768)){Ab.chunks[Ab.start+
Hb]=Fb;nb=0;break}Ab.chunks[Ab.start+Hb]=Fb&32767;nb=1}0<nb&&(Ab.end++,Ab.chunks.push(nb))}l=Ab}else{for(var Db=new w,Qb=0,Sb=r.end-r.start;Qb<Sb;){var Ub=Qb++,Vb=r.chunks[r.start+Ub];Db.end++;Db.chunks.push(Vb)}Db.isNegative=r.isNegative;for(var ib=Db,Jb=0,Xb=l.end-l.start;Jb<Xb;){for(var Ob=Jb++,dc=l.chunks[l.start+Ob],lb,Wb=Ob,Zb=ib.end-ib.start;Wb<Zb;){var Rb=Wb++;lb=ib.chunks[ib.start+Rb]+dc;if(0==(lb&32768)){ib.chunks[ib.start+Rb]=lb;dc=0;break}ib.chunks[ib.start+Rb]=lb&32767;dc=1}0<dc&&(ib.end++,
ib.chunks.push(dc))}l=ib}h=p.opMulticplicate(h,p.fromInt(e))}c&&(l.isNegative=!0);return l}if(w.regexBinary.match(a)){var Yb=w.regexLeadingZeros;d=a.replace(w.regexBinary.r,"").replace(Yb.r,"");k=new w;k.isNegative=c;f=d.length;for(var Eb=1,Nb=0;0<f;){switch(d.charAt(--f)){case "0":break;case "1":Nb+=Eb;break;default:throw u.thrown('Error, binary string can only contain "0" or "1"');}Eb<<=1;32768==Eb&&(k.end++,k.chunks.push(Nb),Eb=1,Nb=0)}1<Eb&&(k.end++,k.chunks.push(Nb));return k}if(w.regexHex.match(a)){Yb=
w.regexLeadingZeros;d=a.replace(w.regexHex.r,"").replace(Yb.r,"");k=new w;k.isNegative=c;f=d.length;Eb=1;for(Nb=0;0<f;){m=w.hexaChars.indexOf(d.charAt(--f));if(-1==m)throw u.thrown('Error, hexadecimal string can only contain "'+w.hexaChars.join("")+'"');Nb+=m*Eb;Eb<<=4;32768<=Eb&&(k.end++,k.chunks.push(Nb&32767),Eb=32768==Eb?1:65536==Eb?2:131072==Eb?4:8,Nb>>=15)}0!=Nb&&(k.end++,k.chunks.push(Nb));return k}w.regexOctal.match(a)?(Yb=w.regexLeadingZeros,d=a.replace(w.regexOctal.r,"").replace(Yb.r,""),
b=8):(d=a.replace(w.regexLeadingZeros.r,""),b=10);null==b&&(b=10);if(2>b)throw u.thrown("Error, base "+b+" need to be greater or equal 2");if(16<b)throw u.thrown("Error, base "+b+" for string output is to great. Max value can be "+w.hexaChars.length);f=d.length;h=p.fromInt(1);for(l=p.fromInt(0);0<f;){m=w.hexaChars.indexOf(d.charAt(--f));if(-1==m||m>=b)throw u.thrown("Error, base "+b+' string can only contain "'+w.hexaChars.join("")+'"');t=m;if(1==t){k=new w;n=0;for(g=h.end-h.start;n<g;)q=n++,v=h.chunks[h.start+
q],k.end++,k.chunks.push(v);k.isNegative=h.isNegative;r=k}else{0>t&&(t=-t);A=0;xa=new w;z=0;for(x=h.end-h.start;z<x;)U=z++,A=h.chunks[h.start+U]*t+A,xa.end++,xa.chunks.push(A&32767),A>>>=15;0<A&&(xa.end++,xa.chunks.push(A));r=xa}if(null==l)if(null==r)l=null;else{X=new w;B=0;for(P=r.end-r.start;B<P;)D=B++,Ha=r.chunks[r.start+D],X.end++,X.chunks.push(Ha);X.isNegative=r.isNegative;l=X}else if(null==r){F=new w;C=0;for(G=l.end-l.start;C<G;)y=C++,I=l.chunks[l.start+y],F.end++,F.chunks.push(I);F.isNegative=
l.isNegative;l=F}else if(l.isNegative)if(r.isNegative){if(l.end-l.start>r.end-r.start){J=new w;H=0;for(Y=l.end-l.start;H<Y;)L=H++,Q=l.chunks[l.start+L],J.end++,J.chunks.push(Q);J.isNegative=l.isNegative;N=J;Wa=0;for(E=r.end-r.start;Wa<E;){fb=Wa++;T=r.chunks[r.start+fb];R=fb;for(S=N.end-N.start;R<S;){W=R++;V=N.chunks[N.start+W]+T;if(0==(V&32768)){N.chunks[N.start+W]=V;T=0;break}N.chunks[N.start+W]=V&32767;T=1}0<T&&(N.end++,N.chunks.push(T))}K=N}else{M=new w;aa=0;for(ba=r.end-r.start;aa<ba;)ff=aa++,
ha=r.chunks[r.start+ff],M.end++,M.chunks.push(ha);M.isNegative=r.isNegative;Z=M;ia=0;for(fa=l.end-l.start;ia<fa;){ja=ia++;ea=l.chunks[l.start+ja];ca=ja;for(qa=Z.end-Z.start;ca<qa;){ma=ca++;ka=Z.chunks[Z.start+ma]+ea;if(0==(ka&32768)){Z.chunks[Z.start+ma]=ka;ea=0;break}Z.chunks[Z.start+ma]=ka&32767;ea=1}0<ea&&(Z.end++,Z.chunks.push(ea))}K=Z}K.isNegative=!0;l=K}else if(Ed=new w(l.chunks),Ed.start=l.start,Ed.end=l.end,Ed.isNegative=!l.isNegative,la=Ed,p.greater(r,la)){da=new w;oa=0;for(ta=r.end-r.start;oa<
ta;)xf=oa++,sa=r.chunks[r.start+xf],da.end++,da.chunks.push(sa);da.isNegative=r.isNegative;na=da;Ba=0;for(Tb=la.end-la.start;Ba<Tb;)for(ya=Ba++,ua=la.chunks[la.start+ya],ra=ya,rc=na.end-na.start;ra<rc;){Hc=ra++;va=na.chunks[na.start+Hc];if(va>=ua){na.chunks[na.start+Hc]=va-ua;ua=0;break}na.chunks[na.start+Hc]=va+32768-ua;ua=1}pa=na;for(wa=pa.end-pa.start;0<=--wa;)0==pa.chunks[pa.start+wa]?pa.end--:wa=0;l=pa}else{rb=new w;bb=0;for(Aa=la.end-la.start;bb<Aa;)Ca=bb++,Da=la.chunks[la.start+Ca],rb.end++,
rb.chunks.push(Da);rb.isNegative=la.isNegative;za=rb;Na=0;for(Ka=r.end-r.start;Na<Ka;)for(Ea=Na++,Ga=r.chunks[r.start+Ea],Ia=Ea,Oa=za.end-za.start;Ia<Oa;){Ma=Ia++;Fa=za.chunks[za.start+Ma];if(Fa>=Ga){za.chunks[za.start+Ma]=Fa-Ga;Ga=0;break}za.chunks[za.start+Ma]=Fa+32768-Ga;Ga=1}pa=za;for(Pa=pa.end-pa.start;0<=--Pa;)0==pa.chunks[pa.start+Pa]?pa.end--:Pa=0;0==pa.end-pa.start?l=null:(pa.isNegative=!0,l=pa)}else if(r.isNegative)if(Ib=new w(r.chunks),Ib.start=r.start,Ib.end=r.end,Ib.isNegative=!r.isNegative,
kc=Ib,p.greater(l,kc)){ab=new w;Qa=0;for(Ua=l.end-l.start;Qa<Ua;)Za=Qa++,Ya=l.chunks[l.start+Za],ab.end++,ab.chunks.push(Ya);ab.isNegative=l.isNegative;Xa=ab;db=0;for(hb=kc.end-kc.start;db<hb;)for(cb=db++,Sa=kc.chunks[kc.start+cb],Ra=cb,Va=Xa.end-Xa.start;Ra<Va;){$a=Ra++;hc=Xa.chunks[Xa.start+$a];if(hc>=Sa){Xa.chunks[Xa.start+$a]=hc-Sa;Sa=0;break}Xa.chunks[Xa.start+$a]=hc+32768-Sa;Sa=1}La=Xa;for(kb=La.end-La.start;0<=--kb;)0==La.chunks[La.start+kb]?La.end--:kb=0;l=La}else{jb=new w;qb=0;for(pb=kc.end-
kc.start;qb<pb;)vb=qb++,Ja=kc.chunks[kc.start+vb],jb.end++,jb.chunks.push(Ja);jb.isNegative=kc.isNegative;Ta=jb;eb=0;for(wb=l.end-l.start;eb<wb;)for(sb=eb++,mb=l.chunks[l.start+sb],xb=sb,Bb=Ta.end-Ta.start;xb<Bb;){tb=xb++;gb=Ta.chunks[Ta.start+tb];if(gb>=mb){Ta.chunks[Ta.start+tb]=gb-mb;mb=0;break}Ta.chunks[Ta.start+tb]=gb+32768-mb;mb=1}La=Ta;for(zb=La.end-La.start;0<=--zb;)0==La.chunks[La.start+zb]?La.end--:zb=0;0==La.end-La.start?l=null:(La.isNegative=!0,l=La)}else if(l.end-l.start>r.end-r.start){ub=
new w;ob=0;for(Gb=l.end-l.start;ob<Gb;)ih=ob++,Kb=l.chunks[l.start+ih],ub.end++,ub.chunks.push(Kb);ub.isNegative=l.isNegative;Ab=ub;yb=0;for(Lb=r.end-r.start;yb<Lb;){Cb=yb++;nb=r.chunks[r.start+Cb];Mb=Cb;for(Pb=Ab.end-Ab.start;Mb<Pb;){Hb=Mb++;Fb=Ab.chunks[Ab.start+Hb]+nb;if(0==(Fb&32768)){Ab.chunks[Ab.start+Hb]=Fb;nb=0;break}Ab.chunks[Ab.start+Hb]=Fb&32767;nb=1}0<nb&&(Ab.end++,Ab.chunks.push(nb))}l=Ab}else{Db=new w;Qb=0;for(Sb=r.end-r.start;Qb<Sb;)Ub=Qb++,Vb=r.chunks[r.start+Ub],Db.end++,Db.chunks.push(Vb);
Db.isNegative=r.isNegative;ib=Db;Jb=0;for(Xb=l.end-l.start;Jb<Xb;){Ob=Jb++;dc=l.chunks[l.start+Ob];Wb=Ob;for(Zb=ib.end-ib.start;Wb<Zb;){Rb=Wb++;lb=ib.chunks[ib.start+Rb]+dc;if(0==(lb&32768)){ib.chunks[ib.start+Rb]=lb;dc=0;break}ib.chunks[ib.start+Rb]=lb&32767;dc=1}0<dc&&(ib.end++,ib.chunks.push(dc))}l=ib}h=p.opMulticplicate(h,p.fromInt(b))}c&&(l.isNegative=!0);return l};w.getStringOfZeros=function(a){for(var b=[],c=0;c<a;)c++,b.push("0");return b.join("")};w.fromBaseString=function(a,b,c){null==b&&
(b=10);if(2>b)throw u.thrown("Error, base "+b+" need to be greater or equal 2");if(16<b)throw u.thrown("Error, base "+b+" for string output is to great. Max value can be "+w.hexaChars.length);for(var d=a.length,e=p.fromInt(1),f=p.fromInt(0),h;0<d;){h=w.hexaChars.indexOf(a.charAt(--d));if(-1==h||h>=b)throw u.thrown("Error, base "+b+' string can only contain "'+w.hexaChars.join("")+'"');var l=h;if(1==l){for(var m=new w,t=0,k=e.end-e.start;t<k;){var n=t++,g=e.chunks[e.start+n];m.end++;m.chunks.push(g)}m.isNegative=
e.isNegative;var q=m}else{0>l&&(l=-l);for(var r=0,v=new w,A=0,xa=e.end-e.start;A<xa;){var z=A++;r=e.chunks[e.start+z]*l+r;v.end++;v.chunks.push(r&32767);r>>>=15}0<r&&(v.end++,v.chunks.push(r));q=v}if(null==f)if(null==q)f=null;else{for(var x=new w,U=0,X=q.end-q.start;U<X;){var B=U++,P=q.chunks[q.start+B];x.end++;x.chunks.push(P)}x.isNegative=q.isNegative;f=x}else if(null==q){for(var F=new w,D=0,Ha=f.end-f.start;D<Ha;){var C=D++,G=f.chunks[f.start+C];F.end++;F.chunks.push(G)}F.isNegative=f.isNegative;
f=F}else if(f.isNegative)if(q.isNegative){if(f.end-f.start>q.end-q.start){for(var y=new w,J=0,I=f.end-f.start;J<I;){var H=J++,Y=f.chunks[f.start+H];y.end++;y.chunks.push(Y)}y.isNegative=f.isNegative;for(var L=y,N=0,Q=q.end-q.start;N<Q;){for(var Wa=N++,T=q.chunks[q.start+Wa],E,fb=Wa,V=L.end-L.start;fb<V;){var R=fb++;E=L.chunks[L.start+R]+T;if(0==(E&32768)){L.chunks[L.start+R]=E;T=0;break}L.chunks[L.start+R]=E&32767;T=1}0<T&&(L.end++,L.chunks.push(T))}var S=L}else{for(var W=new w,M=0,K=q.end-q.start;M<
K;){var aa=M++,Z=q.chunks[q.start+aa];W.end++;W.chunks.push(Z)}W.isNegative=q.isNegative;for(var ba=W,ff=0,ha=f.end-f.start;ff<ha;){for(var ia=ff++,fa=f.chunks[f.start+ia],ea,ja=ia,la=ba.end-ba.start;ja<la;){var ka=ja++;ea=ba.chunks[ba.start+ka]+fa;if(0==(ea&32768)){ba.chunks[ba.start+ka]=ea;fa=0;break}ba.chunks[ba.start+ka]=ea&32767;fa=1}0<fa&&(ba.end++,ba.chunks.push(fa))}S=ba}S.isNegative=!0;f=S}else{var na=new w(f.chunks);na.start=f.start;na.end=f.end;na.isNegative=!f.isNegative;var ca=na;if(p.greater(q,
ca)){for(var Ed=new w,pa=0,ma=q.end-q.start;pa<ma;){var da=pa++,qa=q.chunks[q.start+da];Ed.end++;Ed.chunks.push(qa)}Ed.isNegative=q.isNegative;for(var oa=Ed,ta=0,xf=ca.end-ca.start;ta<xf;)for(var sa=ta++,ua=ca.chunks[ca.start+sa],Ba=sa,ya=oa.end-oa.start;Ba<ya;){var Tb=Ba++,Hc=oa.chunks[oa.start+Tb];if(Hc>=ua){oa.chunks[oa.start+Tb]=Hc-ua;ua=0;break}oa.chunks[oa.start+Tb]=Hc+32768-ua;ua=1}var ra=oa;for(var va=ra.end-ra.start;0<=--va;)0==ra.chunks[ra.start+va]?ra.end--:va=0;f=ra}else{for(var rc=new w,
rb=0,wa=ca.end-ca.start;rb<wa;){var za=rb++,bb=ca.chunks[ca.start+za];rc.end++;rc.chunks.push(bb)}rc.isNegative=ca.isNegative;for(var Aa=rc,Ca=0,Da=q.end-q.start;Ca<Da;)for(var Ga=Ca++,kc=q.chunks[q.start+Ga],Na=Ga,La=Aa.end-Aa.start;Na<La;){var Ea=Na++,Ia=Aa.chunks[Aa.start+Ea];if(Ia>=kc){Aa.chunks[Aa.start+Ea]=Ia-kc;kc=0;break}Aa.chunks[Aa.start+Ea]=Ia+32768-kc;kc=1}ra=Aa;for(var Ka=ra.end-ra.start;0<=--Ka;)0==ra.chunks[ra.start+Ka]?ra.end--:Ka=0;0==ra.end-ra.start?f=null:(ra.isNegative=!0,f=ra)}}else if(q.isNegative){var Ma=
new w(q.chunks);Ma.start=q.start;Ma.end=q.end;Ma.isNegative=!q.isNegative;var Fa=Ma;if(p.greater(f,Fa)){for(var Ib=new w,Oa=0,Pa=f.end-f.start;Oa<Pa;){var Xa=Oa++,ab=f.chunks[f.start+Xa];Ib.end++;Ib.chunks.push(ab)}Ib.isNegative=f.isNegative;for(var Qa=Ib,Sa=0,Ta=Fa.end-Fa.start;Sa<Ta;)for(var Ua=Sa++,Ab=Fa.chunks[Fa.start+Ua],db=Ua,Za=Qa.end-Qa.start;db<Za;){var Ya=db++,cb=Qa.chunks[Qa.start+Ya];if(cb>=Ab){Qa.chunks[Qa.start+Ya]=cb-Ab;Ab=0;break}Qa.chunks[Qa.start+Ya]=cb+32768-Ab;Ab=1}var Ra=Qa;
for(var $a=Ra.end-Ra.start;0<=--$a;)0==Ra.chunks[Ra.start+$a]?Ra.end--:$a=0;f=Ra}else{for(var hb=new w,hc=0,jb=Fa.end-Fa.start;hc<jb;){var ib=hc++,kb=Fa.chunks[Fa.start+ib];hb.end++;hb.chunks.push(kb)}hb.isNegative=Fa.isNegative;for(var Va=hb,mb=0,qb=f.end-f.start;mb<qb;)for(var eb=mb++,pb=f.chunks[f.start+eb],ub=eb,vb=Va.end-Va.start;ub<vb;){var Ja=ub++,sb=Va.chunks[Va.start+Ja];if(sb>=pb){Va.chunks[Va.start+Ja]=sb-pb;pb=0;break}Va.chunks[Va.start+Ja]=sb+32768-pb;pb=1}Ra=Va;for(var tb=Ra.end-Ra.start;0<=
--tb;)0==Ra.chunks[Ra.start+tb]?Ra.end--:tb=0;0==Ra.end-Ra.start?f=null:(Ra.isNegative=!0,f=Ra)}}else if(f.end-f.start>q.end-q.start){for(var nb=new w,gb=0,wb=f.end-f.start;gb<wb;){var xb=gb++,zb=f.chunks[f.start+xb];nb.end++;nb.chunks.push(zb)}nb.isNegative=f.isNegative;for(var ob=nb,Bb=0,Fb=q.end-q.start;Bb<Fb;){for(var Db=Bb++,yb=q.chunks[q.start+Db],dc,Gb=Db,ih=ob.end-ob.start;Gb<ih;){var Eb=Gb++;dc=ob.chunks[ob.start+Eb]+yb;if(0==(dc&32768)){ob.chunks[ob.start+Eb]=dc;yb=0;break}ob.chunks[ob.start+
Eb]=dc&32767;yb=1}0<yb&&(ob.end++,ob.chunks.push(yb))}f=ob}else{for(var Cb=new w,Hb=0,Kb=q.end-q.start;Hb<Kb;){var Lb=Hb++,Mb=q.chunks[q.start+Lb];Cb.end++;Cb.chunks.push(Mb)}Cb.isNegative=q.isNegative;for(var lb=Cb,Nb=0,Qb=f.end-f.start;Nb<Qb;){for(var Pb=Nb++,Jb=f.chunks[f.start+Pb],Ob,Sb=Pb,Ub=lb.end-lb.start;Sb<Ub;){var Rb=Sb++;Ob=lb.chunks[lb.start+Rb]+Jb;if(0==(Ob&32768)){lb.chunks[lb.start+Rb]=Ob;Jb=0;break}lb.chunks[lb.start+Rb]=Ob&32767;Jb=1}0<Jb&&(lb.end++,lb.chunks.push(Jb))}f=lb}e=p.opMulticplicate(e,
p.fromInt(b))}c&&(f.isNegative=!0);return f};w.fromBinaryString=function(a,b){var c=new w;c.isNegative=b;b=a.length;for(var d=1,e=0;0<b;){switch(a.charAt(--b)){case "0":break;case "1":e+=d;break;default:throw u.thrown('Error, binary string can only contain "0" or "1"');}d<<=1;32768==d&&(c.end++,c.chunks.push(e),d=1,e=0)}1<d&&(c.end++,c.chunks.push(e));return c};w.fromHexString=function(a,b){var c=new w;c.isNegative=b;b=a.length;for(var d=1,e=0,f;0<b;){f=w.hexaChars.indexOf(a.charAt(--b));if(-1==f)throw u.thrown('Error, hexadecimal string can only contain "'+
w.hexaChars.join("")+'"');e+=f*d;d<<=4;32768<=d&&(c.end++,c.chunks.push(e&32767),d=32768==d?1:65536==d?2:131072==d?4:8,e>>=15)}0!=e&&(c.end++,c.chunks.push(e));return c};w.fromBytes=function(a){if(1==a.length&&0==a.b[0])return null;var b=new w,c=a.length;0==a.b[c-1]&&(b.isNegative=!0,--c);for(var d=0,e=((8*(c-1)+Rb.bitsize(a.b[c-1],8)-1)/15|0)+1;d<e;){var f=0,h=0,l=0,m=15*d++,t=m/8|0,k=(m+15)/8|0,n=m-8*t,g=8-n;m=m+15-8*k;for(var q,p,r=[],A=t,v=k+1;A<v;){var u=A++;if(u==c)break;u==t&&u==k?(q=n,p=m-
q):u==t?(q=n,p=g):(p=u==k?m:8,q=0);r.push({index:u,offset:q,size:p})}for(t=r;l<t.length;)k=t[l],++l,f|=(a.b[k.index]>>>k.offset&(1<<k.size)-1)<<h,h+=k.size;b.end++;b.chunks.push(f)}return b};w.mapFromBitPosition=function(a,b,c,d){var e=a/b|0,f=(a+c)/b|0,h=a-e*b,l=b-h;a=a+c-f*b;for(var m,t=[],k=e,n=f+1;k<n;){var g=k++;if(g==d)break;g==e&&g==f?(c=h,m=a-c):g==e?(c=h,m=l):(m=g==f?a:b,c=0);t.push({index:g,offset:c,size:m})}return t};w.prototype={chunks:null,isNegative:null,start:null,end:null,get_length:function(){return this.end-
this.start},copy:function(){for(var a=new w,b=0,c=this.end-this.start;b<c;){var d=b++;d=this.chunks[this.start+d];a.end++;a.chunks.push(d)}a.isNegative=this.isNegative;return a},negCopy:function(){for(var a=new w,b=0,c=this.end-this.start;b<c;){var d=b++;d=this.chunks[this.start+d];a.end++;a.chunks.push(d)}a.isNegative=!this.isNegative;return a},clone:function(){var a=new w(this.chunks);a.start=this.start;a.end=this.end;a.isNegative=this.isNegative;return a},negClone:function(){var a=new w(this.chunks);
a.start=this.start;a.end=this.end;a.isNegative=!this.isNegative;return a},splitHigh:function(a){var b=new w(this.chunks);if(a>=this.end-this.start)return null;b.start=this.start+a;b.end=this.end;return b},splitLow:function(a){var b=0;for(this.start+a>this.end&&(a=this.end-this.start);b<a&&0==this.chunks[this.start+b];)++b;if(b==a)return null;b=new w(this.chunks);b.start=this.start;b.end=this.start+a;return b},get:function(a){return this.chunks[this.start+a]},set:function(a,b){this.chunks[this.start+
a]=b},push:function(a){this.end++;this.chunks.push(a)},pop:function(){this.end--;return this.chunks.pop()},unshift:function(a){this.end++;this.chunks.unshift(a)},truncateZeroChunks:function(a){for(var b=this.end-this.start;0<=--b;)0==this.chunks[this.start+b]?a?(this.end--,this.chunks.pop()):this.end--:b=0},toLittleInt:function(){if(0==this.end-this.start)return 0;for(var a=0,b,c=0,d=this.end-this.start;c<d;){var e=c++;b=this.chunks[this.start+e];if(b<<15*e>>15*e!=b)throw u.thrown("Error, BigInt with "+
(15*(this.end-this.start-1)+Rb.bitsize(b))+" bits is to big for native Integer length");a+=b<<15*e}return this.isNegative?-a:a},toBaseString:function(a,b,c){null==c&&(c=!1);null==b&&(b=0);null==a&&(a=10);if(2>a)throw u.thrown("Error, base "+a+" need to be greater or equal 2");if(16<a)throw u.thrown("Error, base "+a+" for string output is to great. Max value can be "+w.hexaChars.length);var d="",e=this,f=new w(e.chunks);f.start=e.start;f.end=e.end;f.isNegative=e.isNegative;e=f;e.isNegative=!1;var h=
e;for(e=0;null!=h;){f=p.fromInt(a);if(null==f)throw u.thrown("Error '/', divisor can't be 0");if(null==h)f={quotient:null,remainder:null};else if(p.equal(f,p.fromInt(1))){f=new w;for(var l=0,m=h.end-h.start;l<m;){var t=l++;t=h.chunks[h.start+t];f.end++;f.chunks.push(t)}f.isNegative=h.isNegative;f={quotient:f,remainder:null}}else if(p.equal(h,f))f={quotient:p.fromInt(1),remainder:null};else{if(h.isNegative){if(f.isNegative)if(l=new w(h.chunks),l.start=h.start,l.end=h.end,l.isNegative=!h.isNegative,
h=l,l=new w(f.chunks),l.start=f.start,l.end=f.end,l.isNegative=!f.isNegative,f=l,2>=f.end-f.start)if(2>=h.end-h.start)h={quotient:p.fromInt(p.toInt(h)/p.toInt(f)|0),remainder:p.fromInt(p.toInt(h)%p.toInt(f)|0)};else if(1==f.end-f.start)if(1==f.chunks[f.start])h={quotient:h,remainder:null};else{f=p.toInt(f);l=h.end-h.start-1;t=h.chunks[h.start+l--]<<15|h.chunks[h.start+l];m=p.fromInt(t/f|0);t=t%f|0;do{t=t<<15|h.chunks[h.start+--l];var k=t/f|0;32768<=k?(m.end++,m.chunks.unshift(k>>>15),m.end++,m.chunks.unshift(k&
32767)):(m.end++,m.chunks.unshift(k));t=t%f|0}while(0<l);h={quotient:m,remainder:p.fromInt(t)}}else h=p.divModLong(h,f);else h=p.divModLong(h,f);else{l=new w(h.chunks);l.start=h.start;l.end=h.end;l.isNegative=!h.isNegative;h=l;if(2>=f.end-f.start)if(2>=h.end-h.start)h={quotient:p.fromInt(p.toInt(h)/p.toInt(f)|0),remainder:p.fromInt(p.toInt(h)%p.toInt(f)|0)};else if(1==f.end-f.start)if(1==f.chunks[f.start])h={quotient:h,remainder:null};else{f=p.toInt(f);l=h.end-h.start-1;t=h.chunks[h.start+l--]<<15|
h.chunks[h.start+l];m=p.fromInt(t/f|0);t=t%f|0;do t=t<<15|h.chunks[h.start+--l],k=t/f|0,32768<=k?(m.end++,m.chunks.unshift(k>>>15),m.end++,m.chunks.unshift(k&32767)):(m.end++,m.chunks.unshift(k)),t=t%f|0;while(0<l);h={quotient:m,remainder:p.fromInt(t)}}else h=p.divModLong(h,f);else h=p.divModLong(h,f);null!=h.quotient&&(h.quotient.isNegative=!0)}null!=h.remainder&&(h.remainder.isNegative=!0)}else if(f.isNegative){l=new w(f.chunks);l.start=f.start;l.end=f.end;l.isNegative=!f.isNegative;f=l;if(2>=f.end-
f.start)if(2>=h.end-h.start)h={quotient:p.fromInt(p.toInt(h)/p.toInt(f)|0),remainder:p.fromInt(p.toInt(h)%p.toInt(f)|0)};else if(1==f.end-f.start)if(1==f.chunks[f.start])h={quotient:h,remainder:null};else{f=p.toInt(f);l=h.end-h.start-1;t=h.chunks[h.start+l--]<<15|h.chunks[h.start+l];m=p.fromInt(t/f|0);t=t%f|0;do t=t<<15|h.chunks[h.start+--l],k=t/f|0,32768<=k?(m.end++,m.chunks.unshift(k>>>15),m.end++,m.chunks.unshift(k&32767)):(m.end++,m.chunks.unshift(k)),t=t%f|0;while(0<l);h={quotient:m,remainder:p.fromInt(t)}}else h=
p.divModLong(h,f);else h=p.divModLong(h,f);null!=h.quotient&&(h.quotient.isNegative=!0)}else if(2>=f.end-f.start)if(2>=h.end-h.start)h={quotient:p.fromInt(p.toInt(h)/p.toInt(f)|0),remainder:p.fromInt(p.toInt(h)%p.toInt(f)|0)};else if(1==f.end-f.start)if(1==f.chunks[f.start])h={quotient:h,remainder:null};else{f=p.toInt(f);l=h.end-h.start-1;t=h.chunks[h.start+l--]<<15|h.chunks[h.start+l];m=p.fromInt(t/f|0);t=t%f|0;do t=t<<15|h.chunks[h.start+--l],k=t/f|0,32768<=k?(m.end++,m.chunks.unshift(k>>>15),m.end++,
m.chunks.unshift(k&32767)):(m.end++,m.chunks.unshift(k)),t=t%f|0;while(0<l);h={quotient:m,remainder:p.fromInt(t)}}else h=p.divModLong(h,f);else h=p.divModLong(h,f);f=h}h=f.quotient;0<b&&(d=(0!=e&&0==e%b?" ":"")+d,++e);d=w.hexaChars[p.toInt(f.remainder)]+d}if(c&&0<b){if(0!=e%b){l=[];m=0;for(a=b-e%b;m<a;)m++,l.push("0");d=l.join("")+d}d=d.replace(/^(0+\s)+/,"")}return(this.isNegative?"-":"")+d},toBinaryString:function(a,b){null==b&&(b=!0);null==a&&(a=0);for(var c="",d,e,f=0,h=0,l=this.end-this.start;h<
l;)for(d=h++,d=this.chunks[this.start+d],e=1;32768>e;)0<a&&(c=(0==f%a&&0<a&&0!=f?" ":"")+c),c=(0==(e&d)?"0":"1")+c,++f,e<<=1;if(b&&0<a){if(0!=f%a){h=[];l=0;for(a-=f%a;l<a;)l++,h.push("0");c=h.join("")+c}c=c.replace(/^(0+\s)+/,"")}else c=c.replace(w.regexLeadingZeros.r,"");return(this.isNegative?"-":"")+c},toHexString:function(a,b){null==b&&(b=!0);null==a&&(a=0);for(var c="",d=0,e=0,f=0,h=0,l=this.end-this.start;h<l;){var m=h++;for(d=(this.chunks[this.start+m]<<e)+d;4<=15+e;)0<a&&(c=(0!=f&&0==f%a?
" ":"")+c,++f),c=w.hexaChars[d&15]+c,d>>=4,e-=4;e=15+e;switch(e){case 0:d=0;break;case 1:d&=1;break;case 2:d&=3;break;default:d&=7}}0<e&&0<d&&(0<a&&(c=(0==f++%a?" ":"")+c),c=w.hexaChars[d&15]+c);if(b&&0<a){if(0!=f%a){h=[];l=0;for(a-=f%a;l<a;)l++,h.push("0");c=h.join("")+c}c=c.replace(/^(0+\s)+/,"")}else c=c.replace(w.regexLeadingZeros.r,"");return(this.isNegative?"-":"")+c},toBytes:function(){var a=((15*(this.end-this.start-1)+Rb.bitsize(this.chunks[this.start+(this.end-this.start-1)])-1)/8|0)+1;
if(this.isNegative){var b=new Qa(new ArrayBuffer(a+1));b.b[a]=0}else b=new Qa(new ArrayBuffer(a));for(var c=0;c<a;){var d=c++,e=0,f=0,h=0,l=8*d,m=this.end-this.start,t=l/15|0,k=(l+8)/15|0,n=l-15*t,g=15-n;l=l+8-15*k;for(var q,p,r=[],A=t,v=k+1;A<v;){var u=A++;if(u==m)break;u==t&&u==k?(q=n,p=l-q):u==t?(q=n,p=g):(p=u==k?l:15,q=0);r.push({index:u,offset:q,size:p})}for(m=r;h<m.length;)t=m[h],++h,e|=(this.chunks[this.start+t.index]>>>t.offset&(1<<t.size)-1)<<f,f+=t.size;b.b[d]=e&255}return b},__class__:w,
__properties__:{get_length:"get_length"}};var Ha=function(){};g.ManifestResources=Ha;Ha.__name__="ManifestResources";Ha.init=function(a){Ha.preloadLibraries=[];Ha.preloadLibraryNames=[];Ha.rootPath=null;null!=a&&Object.prototype.hasOwnProperty.call(a,"rootPath")&&(Ha.rootPath=J.field(a,"rootPath"));null==Ha.rootPath&&(Ha.rootPath="./");Xa.registerFont(wo);Xa.registerFont(xo);Xa.registerFont(yo);Xa.registerFont(zo);Xa.registerFont(Ao);Xa.registerFont(Bo);Xa.registerFont(Co);Xa.registerFont(Do);Xa.registerFont(Eo);
oa.bundlePaths.h["js-room"]=Ha.rootPath+"lib/js-room.zip";a=Dc.parse('{"name":null,"assets":"aoy4:sizei4981y4:typey5:MUSICy2:idy17:thozi_daClick.mp3y9:pathGroupaR4hy7:preloadtgoy4:pathy18:fonts%2FArial.woffR0i211828R1y6:BINARYR3R8R6tgoR0i333476R1y4:FONTy9:classNamey29:__ASSET__fonts_arial_bold_ttfR3y24:fonts%2FArial%20Bold.ttfR6tgoR7y25:fonts%2FArial%20Bold.woffR0i205888R1R9R3R14R6tgoR0i347108R1R10R11y24:__ASSET__fonts_arial_ttfR3y17:fonts%2FArial.ttfR6tgoR7y34:fonts%2FRoboto%2FRoboto-Black.woffR0i94368R1R9R3R17R6tgoR0i168644R1R10R11y39:__ASSET__fonts_roboto_roboto_medium_ttfR3y34:fonts%2FRoboto%2FRoboto-Medium.ttfR6tgoR0i168060R1R10R11y38:__ASSET__fonts_roboto_roboto_black_ttfR3y33:fonts%2FRoboto%2FRoboto-Black.ttfR6tgoR0i168260R1R10R11y40:__ASSET__fonts_roboto_roboto_regular_ttfR3y35:fonts%2FRoboto%2FRoboto-Regular.ttfR6tgoR0i167336R1R10R11y37:__ASSET__fonts_roboto_roboto_bold_ttfR3y32:fonts%2FRoboto%2FRoboto-Bold.ttfR6tgoR0i168488R1R10R11y37:__ASSET__fonts_roboto_roboto_thin_ttfR3y32:fonts%2FRoboto%2FRoboto-Thin.ttfR6tgoR7y34:fonts%2FRoboto%2FRoboto-Light.woffR0i93484R1R9R3R28R6tgoR0i167000R1R10R11y38:__ASSET__fonts_roboto_roboto_light_ttfR3y33:fonts%2FRoboto%2FRoboto-Light.ttfR6tgoR7y36:fonts%2FRoboto%2FRoboto-Regular.woffR0i93796R1R9R3R31R6tgoR7y33:fonts%2FRoboto%2FRoboto-Bold.woffR0i94052R1R9R3R32R6tgoR7y33:fonts%2FRoboto%2FRoboto-Thin.woffR0i92164R1R9R3R33R6tgoR7y35:fonts%2FRoboto%2FRoboto-Medium.woffR0i94376R1R9R3R34R6tgoR7y26:fonts%2FArial%20Black.woffR0i44496R1R9R3R35R6tgoR0i73008R1R10R11y30:__ASSET__fonts_arial_black_ttfR3y25:fonts%2FArial%20Black.ttfR6tgoR7y30:assets%2Fvideo%2Fplay-down.pngR0i927R1y5:IMAGER3R38R6tgoR7y26:assets%2Fvideo%2Fpause.pngR0i677R1R39R3R40R6tgoR7y32:assets%2Fvideo%2Frewind-down.pngR0i927R1R39R3R41R6tgoR7y31:assets%2Fvideo%2Fpause-down.pngR0i838R1R39R3R42R6tgoR7y30:assets%2Fvideo%2Fplay-over.pngR0i729R1R39R3R43R6tgoR7y28:assets%2Fvideo%2FseekBar.pngR0i109R1R39R3R44R6tgoR7y25:assets%2Fvideo%2Fplay.pngR0i785R1R39R3R45R6tgoR7y27:assets%2Fvideo%2Frewind.pngR0i785R1R39R3R46R6tgoR7y32:assets%2Fvideo%2FprogressBar.pngR0i106R1R39R3R47R6tgoR7y32:assets%2Fvideo%2Frewind-over.pngR0i729R1R39R3R48R6tgoR7y31:assets%2Fvideo%2Fpause-over.pngR0i634R1R39R3R49R6tgoR7y28:assets%2Fradio%2Finitial.pngR0i11489R1R39R3R50R6tgoR7y25:assets%2Fradio%2Fover.pngR0i12501R1R39R3R51R6tgoR7y30:assets%2Fradio%2Fincorrect.pngR0i14671R1R39R3R52R6tgoR7y29:assets%2Fradio%2Fanswered.pngR0i13958R1R39R3R53R6tgoR7y28:assets%2Fradio%2Fcorrect.pngR0i13912R1R39R3R54R6tgoR7y31:assets%2Fcheckbox%2Finitial.pngR0i2633R1R39R3R55R6tgoR7y28:assets%2Fcheckbox%2Fover.pngR0i3484R1R39R3R56R6tgoR7y33:assets%2Fcheckbox%2Fincorrect.pngR0i3094R1R39R3R57R6tgoR7y32:assets%2Fcheckbox%2Fanswered.pngR0i3484R1R39R3R58R6tgoR7y31:assets%2Fcheckbox%2Fcorrect.pngR0i3332R1R39R3R59R6tgoR7y26:assets%2Fbutton%2Fnext.pngR0i5255R1R39R3R60R6tgoR7y31:assets%2Fbutton%2Fquiz-over.pngR0i5626R1R39R3R61R6tgoR7y30:assets%2Fbutton%2Fquiz-hit.pngR0i5626R1R39R3R62R6tgoR7y28:assets%2Fbutton%2Fno-hit.pngR0i6193R1R39R3R63R6tgoR7y31:assets%2Fbutton%2Fnext-over.pngR0i5117R1R39R3R64R6tgoR7y30:assets%2Fbutton%2Fyes-over.pngR0i5810R1R39R3R65R6tgoR7y30:assets%2Fbutton%2Fprev-hit.pngR0i3218R1R39R3R66R6tgoR7y30:assets%2Fbutton%2Fyes-down.pngR0i5810R1R39R3R67R6tgoR7y31:assets%2Fbutton%2Fprev-over.pngR0i3229R1R39R3R68R6tgoR7y29:assets%2Fbutton%2Fno-down.pngR0i5976R1R39R3R69R6tgoR7y29:assets%2Fbutton%2Fno-over.pngR0i5976R1R39R3R70R6tgoR7y26:assets%2Fbutton%2Fquiz.pngR0i5508R1R39R3R71R6tgoR7y25:assets%2Fbutton%2Fyes.pngR0i6123R1R39R3R72R6tgoR7y31:assets%2Fbutton%2Fnext-down.pngR0i5096R1R39R3R73R6tgoR7y30:assets%2Fbutton%2Fnext-hit.pngR0i5096R1R39R3R74R6tgoR7y24:assets%2Fbutton%2Fno.pngR0i6193R1R39R3R75R6tgoR7y26:assets%2Fbutton%2Fprev.pngR0i3319R1R39R3R76R6tgoR7y31:assets%2Fbutton%2Fprev-down.pngR0i3218R1R39R3R77R6tgoR7y31:assets%2Fbutton%2Fquiz-down.pngR0i5626R1R39R3R78R6tgoR7y29:assets%2Fbutton%2Fyes-hit.pngR0i6123R1R39R3R79R6tgoR7y33:assets%2Fheader%2FfastNavBtn1.pngR0i1127R1R39R3R80R6tgoR7y30:assets%2Fheader%2FPrintBtn.pngR0i381R1R39R3R81R6tgoR7y33:assets%2Fheader%2FfastNavBtn2.pngR0i1527R1R39R3R82R6tgoR7y31:assets%2Fbutton-korn%2Fnext.pngR0i882R1R39R3R83R6tgoR7y33:assets%2Fbutton-korn%2Fno-hit.pngR0i6193R1R39R3R84R6tgoR7y36:assets%2Fbutton-korn%2Fnext-over.pngR0i824R1R39R3R85R6tgoR7y35:assets%2Fbutton-korn%2Fyes-over.pngR0i5810R1R39R3R86R6tgoR7y35:assets%2Fbutton-korn%2Fprev-hit.pngR0i672R1R39R3R87R6tgoR7y35:assets%2Fbutton-korn%2Fyes-down.pngR0i5810R1R39R3R88R6tgoR7y36:assets%2Fbutton-korn%2Fprev-over.pngR0i865R1R39R3R89R6tgoR7y34:assets%2Fbutton-korn%2Fno-down.pngR0i5976R1R39R3R90R6tgoR7y34:assets%2Fbutton-korn%2Fno-over.pngR0i5976R1R39R3R91R6tgoR7y30:assets%2Fbutton-korn%2Fyes.pngR0i6123R1R39R3R92R6tgoR7y36:assets%2Fbutton-korn%2Fnext-down.pngR0i824R1R39R3R93R6tgoR7y35:assets%2Fbutton-korn%2Fnext-hit.pngR0i672R1R39R3R94R6tgoR7y29:assets%2Fbutton-korn%2Fno.pngR0i6193R1R39R3R95R6tgoR7y31:assets%2Fbutton-korn%2Fprev.pngR0i891R1R39R3R96R6tgoR7y36:assets%2Fbutton-korn%2Fprev-down.pngR0i865R1R39R3R97R6tgoR7y34:assets%2Fbutton-korn%2Fyes-hit.pngR0i6123R1R39R3R98R6tgh","rootPath":null,"version":2,"libraryArgs":[],"libraryType":null}',
Ha.rootPath);a=Vb.fromManifest(a);oa.registerLibrary("default",a);a=oa.getLibrary("js-room");null!=a?Ha.preloadLibraries.push(a):Ha.preloadLibraryNames.push("js-room");a=oa.getLibrary("default");null!=a?Ha.preloadLibraries.push(a):Ha.preloadLibraryNames.push("default")};var U=function(a){null!=a&&(this.name=a);this.__init||(void 0==this.ascender&&(this.ascender=0),void 0==this.descender&&(this.descender=0),void 0==this.height&&(this.height=0),void 0==this.numGlyphs&&(this.numGlyphs=0),void 0==this.underlinePosition&&
(this.underlinePosition=0),void 0==this.underlineThickness&&(this.underlineThickness=0),void 0==this.unitsPerEM&&(this.unitsPerEM=0),null!=this.__fontID?oa.isLocal(this.__fontID)&&this.__fromBytes(oa.getBytes(this.__fontID)):null!=this.__fontPath&&this.__fromFile(this.__fontPath))};g["lime.text.Font"]=U;U.__name__="lime.text.Font";U.fromBytes=function(a){if(null==a)return null;var b=new U;b.__fromBytes(a);return b};U.fromFile=function(a){if(null==a)return null;var b=new U;b.__fromFile(a);return b};
U.loadFromBytes=function(a){return Ja.withValue(U.fromBytes(a))};U.loadFromFile=function(a){return(new Fo).load(a).then(function(a){return null!=a?Ja.withValue(a):Ja.withError("")})};U.loadFromName=function(a){return(new U).__loadFromName(a)};U.__measureFontNode=function(a){var b=window.document.createElement("span");b.setAttribute("aria-hidden","true");var c=window.document.createTextNode("BESbswy");b.appendChild(c);c=b.style;c.display="block";c.position="absolute";c.top="-9999px";c.left="-9999px";
c.fontSize="300px";c.width="auto";c.height="auto";c.lineHeight="normal";c.margin="0";c.padding="0";c.fontVariant="normal";c.whiteSpace="nowrap";c.fontFamily=a;window.document.body.appendChild(b);return b};U.prototype={ascender:null,descender:null,height:null,name:null,numGlyphs:null,src:null,underlinePosition:null,underlineThickness:null,unitsPerEM:null,__fontID:null,__fontPath:null,__init:null,decompose:function(){return null},getGlyph:function(a){return-1},getGlyphs:function(a){return null},getGlyphMetrics:function(a){return null},
renderGlyph:function(a,b){return null},renderGlyphs:function(a,b){return null},__copyFrom:function(a){null!=a&&(this.ascender=a.ascender,this.descender=a.descender,this.height=a.height,this.name=a.name,this.numGlyphs=a.numGlyphs,this.src=a.src,this.underlinePosition=a.underlinePosition,this.underlineThickness=a.underlineThickness,this.unitsPerEM=a.unitsPerEM,this.__fontID=a.__fontID,this.__fontPath=a.__fontPath,this.__init=!0)},__fromBytes:function(a){this.__fontPath=null},__fromFile:function(a){this.__fontPath=
a},__initializeSource:function(){this.__init=!0},__loadFromName:function(a){var b=this,c=new nd;this.name=a;var d=E.navigator.userAgent.toLowerCase(),e=0<=d.indexOf(" safari/")&&0>d.indexOf(" chrome/");d=(new fa("(iPhone|iPod|iPad).*AppleWebKit(?!.*Version)","i")).match(d);if(!e&&!d&&window.document.fonts&&(x=window.document.fonts,k(x,x.load)))window.document.fonts.load("1em '"+a+"'").then(function(a){c.complete(b)},function(d){Ea.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 f=U.__measureFontNode("'"+a+"', sans-serif"),h=U.__measureFontNode("'"+a+"', serif"),l=f.offsetWidth,m=h.offsetWidth,t=-1,g=0,n,q;t=window.setInterval(function(){g+=1;n=f.offsetWidth!=l||h.offsetWidth!=m;q=3E3<=50*g;if(n||q)window.clearInterval(t),f.parentNode.removeChild(f),h.parentNode.removeChild(h),h=f=null,q&&Ea.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},__setSize:function(a){},__class__:U};var ff=y.__ASSET__fonts_arial_bold_ttf=function(){this.ascender=1854;this.descender=-434;this.height=2355;this.numGlyphs=1732;this.underlinePosition=-538;this.underlineThickness=215;this.unitsPerEM=2048;this.name="Arial Bold";U.call(this)};g.__ASSET__fonts_arial_bold_ttf=ff;ff.__name__="__ASSET__fonts_arial_bold_ttf";ff.__super__=U;ff.prototype=r(U.prototype,{__class__:ff});var Ed=y.__ASSET__fonts_arial_ttf=
function(){this.ascender=1854;this.descender=-434;this.height=2355;this.numGlyphs=1729;this.underlinePosition=-442;this.underlineThickness=150;this.unitsPerEM=2048;this.name="Arial";U.call(this)};g.__ASSET__fonts_arial_ttf=Ed;Ed.__name__="__ASSET__fonts_arial_ttf";Ed.__super__=U;Ed.prototype=r(U.prototype,{__class__:Ed});var Hc=y.__ASSET__fonts_roboto_roboto_medium_ttf=function(){this.ascender=1900;this.descender=-500;this.height=2400;this.numGlyphs=1294;this.underlinePosition=-200;this.underlineThickness=
100;this.unitsPerEM=2048;this.name="Roboto Medium";U.call(this)};g.__ASSET__fonts_roboto_roboto_medium_ttf=Hc;Hc.__name__="__ASSET__fonts_roboto_roboto_medium_ttf";Hc.__super__=U;Hc.prototype=r(U.prototype,{__class__:Hc});var xf=y.__ASSET__fonts_roboto_roboto_black_ttf=function(){this.ascender=1900;this.descender=-500;this.height=2400;this.numGlyphs=1294;this.underlinePosition=-200;this.underlineThickness=100;this.unitsPerEM=2048;this.name="Roboto Black";U.call(this)};g.__ASSET__fonts_roboto_roboto_black_ttf=
xf;xf.__name__="__ASSET__fonts_roboto_roboto_black_ttf";xf.__super__=U;xf.prototype=r(U.prototype,{__class__:xf});var ih=y.__ASSET__fonts_roboto_roboto_regular_ttf=function(){this.ascender=1900;this.descender=-500;this.height=2400;this.numGlyphs=1294;this.underlinePosition=-200;this.underlineThickness=100;this.unitsPerEM=2048;this.name="Roboto";U.call(this)};g.__ASSET__fonts_roboto_roboto_regular_ttf=ih;ih.__name__="__ASSET__fonts_roboto_roboto_regular_ttf";ih.__super__=U;ih.prototype=r(U.prototype,
{__class__:ih});var kc=y.__ASSET__fonts_roboto_roboto_bold_ttf=function(){this.ascender=1900;this.descender=-500;this.height=2400;this.numGlyphs=1294;this.underlinePosition=-200;this.underlineThickness=100;this.unitsPerEM=2048;this.name="Roboto Bold";U.call(this)};g.__ASSET__fonts_roboto_roboto_bold_ttf=kc;kc.__name__="__ASSET__fonts_roboto_roboto_bold_ttf";kc.__super__=U;kc.prototype=r(U.prototype,{__class__:kc});var Go=y.__ASSET__fonts_roboto_roboto_thin_ttf=function(){this.ascender=1900;this.descender=
-500;this.height=2400;this.numGlyphs=1294;this.underlinePosition=-200;this.underlineThickness=100;this.unitsPerEM=2048;this.name="Roboto Thin";U.call(this)};g.__ASSET__fonts_roboto_roboto_thin_ttf=Go;Go.__name__="__ASSET__fonts_roboto_roboto_thin_ttf";Go.__super__=U;Go.prototype=r(U.prototype,{__class__:Go});var Ho=y.__ASSET__fonts_roboto_roboto_light_ttf=function(){this.ascender=1900;this.descender=-500;this.height=2400;this.numGlyphs=1294;this.underlinePosition=-200;this.underlineThickness=100;
this.unitsPerEM=2048;this.name="Roboto Light";U.call(this)};g.__ASSET__fonts_roboto_roboto_light_ttf=Ho;Ho.__name__="__ASSET__fonts_roboto_roboto_light_ttf";Ho.__super__=U;Ho.prototype=r(U.prototype,{__class__:Ho});var Io=y.__ASSET__fonts_arial_black_ttf=function(){this.ascender=2254;this.descender=-634;this.height=2888;this.numGlyphs=478;this.underlinePosition=-439;this.underlineThickness=123;this.unitsPerEM=2048;this.name="Arial Black";U.call(this)};g.__ASSET__fonts_arial_black_ttf=Io;Io.__name__=
"__ASSET__fonts_arial_black_ttf";Io.__super__=U;Io.prototype=r(U.prototype,{__class__:Io});var Xa=function(a){U.call(this,a)};g["openfl.text.Font"]=Xa;Xa.__name__="openfl.text.Font";Xa.enumerateFonts=function(a){return Xa.__registeredFonts};Xa.fromBytes=function(a){var b=new Xa;b.__fromBytes(Mb.toBytes(a));return b};Xa.fromFile=function(a){var b=new Xa;b.__fromFile(a);return b};Xa.loadFromBytes=function(a){return U.loadFromBytes(Mb.toBytes(a)).then(function(a){var b=new Xa;b.__fromLimeFont(a);return Ja.withValue(b)})};
Xa.loadFromFile=function(a){return U.loadFromFile(a).then(function(a){var b=new Xa;b.__fromLimeFont(a);return Ja.withValue(b)})};Xa.loadFromName=function(a){return U.loadFromName(a).then(function(a){var b=new Xa;b.__fromLimeFont(a);return Ja.withValue(b)})};Xa.registerFont=function(a){a=null==N.getClass(a)?N.__cast(wb.createInstance(a,[]),Xa):N.__cast(a,Xa);null!=a&&(Xa.__registeredFonts.push(a),Xa.__fontByName.h[a.name]=a)};Xa.__super__=U;Xa.prototype=r(U.prototype,{fontStyle:null,fontType:null,
__initialized:null,__fromLimeFont:function(a){this.__copyFrom(a)},__initialize:function(){return this.__initialized},get_fontName:function(){return this.name},set_fontName:function(a){return this.name=a},__class__:Xa,__properties__:{set_fontName:"set_fontName",get_fontName:"get_fontName"}});var wo=y.__ASSET__OPENFL__fonts_arial_bold_ttf=function(){this.__fromLimeFont(new ff);U.call(this,void 0)};g.__ASSET__OPENFL__fonts_arial_bold_ttf=wo;wo.__name__="__ASSET__OPENFL__fonts_arial_bold_ttf";wo.__super__=
Xa;wo.prototype=r(Xa.prototype,{__class__:wo});var xo=y.__ASSET__OPENFL__fonts_arial_ttf=function(){this.__fromLimeFont(new Ed);U.call(this,void 0)};g.__ASSET__OPENFL__fonts_arial_ttf=xo;xo.__name__="__ASSET__OPENFL__fonts_arial_ttf";xo.__super__=Xa;xo.prototype=r(Xa.prototype,{__class__:xo});var yo=y.__ASSET__OPENFL__fonts_roboto_roboto_medium_ttf=function(){this.__fromLimeFont(new Hc);U.call(this,void 0)};g.__ASSET__OPENFL__fonts_roboto_roboto_medium_ttf=yo;yo.__name__="__ASSET__OPENFL__fonts_roboto_roboto_medium_ttf";
yo.__super__=Xa;yo.prototype=r(Xa.prototype,{__class__:yo});var zo=y.__ASSET__OPENFL__fonts_roboto_roboto_black_ttf=function(){this.__fromLimeFont(new xf);U.call(this,void 0)};g.__ASSET__OPENFL__fonts_roboto_roboto_black_ttf=zo;zo.__name__="__ASSET__OPENFL__fonts_roboto_roboto_black_ttf";zo.__super__=Xa;zo.prototype=r(Xa.prototype,{__class__:zo});var Ao=y.__ASSET__OPENFL__fonts_roboto_roboto_regular_ttf=function(){this.__fromLimeFont(new ih);U.call(this,void 0)};g.__ASSET__OPENFL__fonts_roboto_roboto_regular_ttf=
Ao;Ao.__name__="__ASSET__OPENFL__fonts_roboto_roboto_regular_ttf";Ao.__super__=Xa;Ao.prototype=r(Xa.prototype,{__class__:Ao});var Bo=y.__ASSET__OPENFL__fonts_roboto_roboto_bold_ttf=function(){this.__fromLimeFont(new kc);U.call(this,void 0)};g.__ASSET__OPENFL__fonts_roboto_roboto_bold_ttf=Bo;Bo.__name__="__ASSET__OPENFL__fonts_roboto_roboto_bold_ttf";Bo.__super__=Xa;Bo.prototype=r(Xa.prototype,{__class__:Bo});var Co=y.__ASSET__OPENFL__fonts_roboto_roboto_thin_ttf=function(){this.__fromLimeFont(new Go);
U.call(this,void 0)};g.__ASSET__OPENFL__fonts_roboto_roboto_thin_ttf=Co;Co.__name__="__ASSET__OPENFL__fonts_roboto_roboto_thin_ttf";Co.__super__=Xa;Co.prototype=r(Xa.prototype,{__class__:Co});var Do=y.__ASSET__OPENFL__fonts_roboto_roboto_light_ttf=function(){this.__fromLimeFont(new Ho);U.call(this,void 0)};g.__ASSET__OPENFL__fonts_roboto_roboto_light_ttf=Do;Do.__name__="__ASSET__OPENFL__fonts_roboto_roboto_light_ttf";Do.__super__=Xa;Do.prototype=r(Xa.prototype,{__class__:Do});var Eo=y.__ASSET__OPENFL__fonts_arial_black_ttf=
function(){this.__fromLimeFont(new Io);U.call(this,void 0)};g.__ASSET__OPENFL__fonts_arial_black_ttf=Eo;Eo.__name__="__ASSET__OPENFL__fonts_arial_black_ttf";Eo.__super__=Xa;Eo.prototype=r(Xa.prototype,{__class__:Eo});Math.__name__="Math";var us=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[51].__init(a);Q.call(this)};g.ModuleEndPanelAsset=us;us.__name__="ModuleEndPanelAsset";us.__super__=Q;us.prototype=r(Q.prototype,{endPanel:null,__class__:us});var um=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");
a.symbols.h[20].__init(a);Q.call(this)};g.NarratorContainerAsset=um;um.__name__="NarratorContainerAsset";um.__super__=Q;um.prototype=r(Q.prototype,{__class__:um});var Jo=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[313].__init(a);Q.call(this)};g.QuizCompletionCertificate=Jo;Jo.__name__="QuizCompletionCertificate";Jo.__super__=Q;Jo.prototype=r(Q.prototype,{course_txt:null,conclusion_txt:null,__class__:Jo});var Ko=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[285].__init(a);
Q.call(this)};g.QuizIntroAsset=Ko;Ko.__name__="QuizIntroAsset";Ko.__super__=Q;Ko.prototype=r(Q.prototype,{__class__:Ko});var Lo=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[316].__init(a);Q.call(this)};g.QuizQuestionCheckBoxButton=Lo;Lo.__name__="QuizQuestionCheckBoxButton";Lo.__super__=Q;Lo.prototype=r(Q.prototype,{__class__:Lo});var Mo=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[303].__init(a);Q.call(this)};g.QuizReportPrint=Mo;Mo.__name__="QuizReportPrint";Mo.__super__=
Q;Mo.prototype=r(Q.prototype,{__class__:Mo});var No=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[273].__init(a);Q.call(this)};g.QuizometerAsset=No;No.__name__="QuizometerAsset";No.__super__=Q;No.prototype=r(Q.prototype,{bar:null,__class__:No});var fg=function(){};g.Random=fg;fg.__name__="Random";fg.bool=function(){return.5>Math.random()};fg.int=function(a,b){return a+Math.floor((b-a+1)*Math.random())};fg.float=function(a,b){return a+(b-a)*Math.random()};fg.string=function(a,b){null==
b&&(b="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");for(var c="",d=0;d<a;)d++,c+=b.charAt(Math.floor((b.length-1+1)*Math.random()));return c};fg.date=function(a,b){a=a.getTime();return new Date(a+(b.getTime()-a)*Math.random())};fg.fromArray=function(a){return null!=a&&0<a.length?a[Math.floor((a.length-1+1)*Math.random())]:null};fg.shuffle=function(a){if(null!=a)for(var b=0,c=a.length;b<c;){var d=b++,e=Math.floor((a.length-1+1)*Math.random()),f=a[d];a[d]=a[e];a[e]=f}return a};fg.fromIterable=
function(a){return null!=a?(a=vb.array(a),null!=a&&0<a.length?a[Math.floor((a.length-1+1)*Math.random())]:null):null};fg.enumConstructor=function(a){return null!=a?(a=a.__empty_constructs__.slice(),null!=a&&0<a.length?a[Math.floor((a.length-1+1)*Math.random())]:null):null};var J=function(){};g.Reflect=J;J.__name__="Reflect";J.field=function(a,b){try{return a[b]}catch(c){return wa.lastError=c,null}};J.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]};J.setProperty=function(a,b,c){var d;var e=a.__properties__?d=a.__properties__["set_"+b]:!1;if(e)a[d](c);else a[b]=c};J.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};J.isFunction=function(a){return"function"==typeof a?!(a.__name__||a.__ename__):!1};J.compare=function(a,b){return a==b?0:a>b?1:-1};J.isObject=function(a){if(null==a)return!1;var b=typeof a;return"string"==
b||"object"==b&&null==a.__enum__?!0:"function"==b?null!=(a.__name__||a.__ename__):!1};J.isEnumValue=function(a){return null!=a?null!=a.__enum__:!1};J.deleteField=function(a,b){if(!Object.prototype.hasOwnProperty.call(a,b))return!1;delete a[b];return!0};J.makeVarArgs=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a(b)}};var yk=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[157].__init(a);Q.call(this)};g.RoomAsset=yk;yk.__name__="RoomAsset";yk.__super__=
Q;yk.prototype=r(Q.prototype,{backgroundImages:null,background:null,watermark:null,screenNavigator:null,videoScreen:null,startButton:null,PrintableDocumentsBtn:null,GlossaryBtn:null,HelpBtn:null,moduleEnd:null,introHolder:null,licence:null,free_advert:null,__class__:yk});var Oo=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[250].__init(a);Q.call(this)};g.ScreenButtonAsset=Oo;Oo.__name__="ScreenButtonAsset";Oo.__super__=Q;Oo.prototype=r(Q.prototype,{__class__:Oo});var vm=function(){var a=
ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[16].__init(a);Q.call(this)};g.ScreenNavigatorAsset=vm;vm.__name__="ScreenNavigatorAsset";vm.__super__=Q;vm.prototype=r(Q.prototype,{__class__:vm});var Po=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[189].__init(a);Q.call(this)};g.ScrollBarAsset=Po;Po.__name__="ScrollBarAsset";Po.__super__=Q;Po.prototype=r(Q.prototype,{down:null,up:null,track:null,thumb:null,__class__:Po});var zk=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[7].__init(a);
Q.call(this)};g.SmallContentFieldAsset=zk;zk.__name__="SmallContentFieldAsset";zk.__super__=Q;zk.prototype=r(Q.prototype,{txt:null,__class__:zk});var vs=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[11].__init(a);Q.call(this)};g.StartButtonAsset=vs;vs.__name__="StartButtonAsset";vs.__super__=Q;vs.prototype=r(Q.prototype,{__class__:vs});var B=function(){};g.Std=B;B.__name__="Std";B.string=function(a){return N.__string_rec(a,"")};B.parseInt=function(a){a=parseInt(a);return isNaN(a)?null:
a};var Tt=function(){};g["_String.String_Impl_"]=Tt;Tt.__name__="_String.String_Impl_";Tt.fromCharCode=function(a){return String.fromCodePoint(a)};var gg=function(){this.b=""};g.StringBuf=gg;gg.__name__="StringBuf";gg.prototype={b:null,__class__:gg};var ia=function(){};g.StringTools=ia;ia.__name__="StringTools";ia.htmlEscape=function(a,b){for(var c="",d=0,e=a;d<e.length;){a=e;var f=d++,h=a.charCodeAt(f);55296<=h&&56319>=h&&(h=h-55232<<10|a.charCodeAt(f+1)&1023);a=h;65536<=a&&++d;switch(a){case 34:c=
b?c+"&quot;":c+String.fromCodePoint(a);break;case 38:c+="&amp;";break;case 39:c=b?c+"&#039;":c+String.fromCodePoint(a);break;case 60:c+="&lt;";break;case 62:c+="&gt;";break;default:c+=String.fromCodePoint(a)}}return c};ia.htmlUnescape=function(a){return a.split("&gt;").join(">").split("&lt;").join("<").split("&quot;").join('"').split("&#039;").join("'").split("&amp;").join("&")};ia.startsWith=function(a,b){return a.length>=b.length?0==a.lastIndexOf(b,0):!1};ia.endsWith=function(a,b){var c=b.length,
d=a.length;return d>=c?a.indexOf(b,d-c)==d-c:!1};ia.isSpace=function(a,b){a=G.cca(a,b);return 8<a&&14>a?!0:32==a};ia.ltrim=function(a){for(var b=a.length,c=0;c<b&&ia.isSpace(a,c);)++c;return 0<c?G.substr(a,c,b-c):a};ia.rtrim=function(a){for(var b=a.length,c=0;c<b&&ia.isSpace(a,b-c-1);)++c;return 0<c?G.substr(a,0,b-c):a};ia.trim=function(a){return ia.ltrim(ia.rtrim(a))};ia.lpad=function(a,b,c){if(0>=b.length)return a;var d="";for(c-=a.length;d.length<c;)d+=null==b?"null":""+b;return d+(null==a?"null":
""+a)};ia.replace=function(a,b,c){return a.split(b).join(c)};ia.hex=function(a,b){var c="";do c="0123456789ABCDEF".charAt(a&15)+c,a>>>=4;while(0<a);if(null!=b)for(;c.length<b;)c="0"+c;return c};var Ak=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[5].__init(a);Q.call(this)};g.TitleFieldAsset=Ak;Ak.__name__="TitleFieldAsset";Ak.__super__=Q;Ak.prototype=r(Q.prototype,{contentField:null,__class__:Ak});var yc=P.ValueType={__ename__:"ValueType",__constructs__:null,TNull:{_hx_name:"TNull",
_hx_index:0,__enum__:"ValueType",toString:v},TInt:{_hx_name:"TInt",_hx_index:1,__enum__:"ValueType",toString:v},TFloat:{_hx_name:"TFloat",_hx_index:2,__enum__:"ValueType",toString:v},TBool:{_hx_name:"TBool",_hx_index:3,__enum__:"ValueType",toString:v},TObject:{_hx_name:"TObject",_hx_index:4,__enum__:"ValueType",toString:v},TFunction:{_hx_name:"TFunction",_hx_index:5,__enum__:"ValueType",toString:v},TClass:(x=function(a){return{_hx_index:6,c:a,__enum__:"ValueType",toString:v}},x._hx_name="TClass",
x.__params__=["c"],x),TEnum:(x=function(a){return{_hx_index:7,e:a,__enum__:"ValueType",toString:v}},x._hx_name="TEnum",x.__params__=["e"],x),TUnknown:{_hx_name:"TUnknown",_hx_index:8,__enum__:"ValueType",toString:v}};yc.__constructs__=[yc.TNull,yc.TInt,yc.TFloat,yc.TBool,yc.TObject,yc.TFunction,yc.TClass,yc.TEnum,yc.TUnknown];yc.__empty_constructs__=[yc.TNull,yc.TInt,yc.TFloat,yc.TBool,yc.TObject,yc.TFunction,yc.TUnknown];var wb=function(){};g.Type=wb;wb.__name__="Type";wb.resolveEnum=function(a){return P[a]};
wb.createInstance=function(a,b){return new (Function.prototype.bind.apply(a,[null].concat(b)))};wb.createEnum=function(a,b,c){var d=J.field(a,b);if(null==d)throw u.thrown("No such constructor "+b);if(J.isFunction(d)){if(null==c)throw u.thrown("Constructor "+b+" need parameters");return d.apply(a,c)}if(null!=c&&0!=c.length)throw u.thrown("Constructor "+b+" does not need parameters");return d};wb.getInstanceFields=function(a){var b=[],c;for(c in a.prototype)b.push(c);G.remove(b,"__class__");G.remove(b,
"__properties__");return b};wb.typeof=function(a){switch(typeof a){case "boolean":return yc.TBool;case "function":return a.__name__||a.__ename__?yc.TObject:yc.TFunction;case "number":return Math.ceil(a)==a%2147483648?yc.TInt:yc.TFloat;case "object":if(null==a)return yc.TNull;var b=a.__enum__;if(null!=b)return yc.TEnum(P[b]);a=N.getClass(a);return null!=a?yc.TClass(a):yc.TObject;case "string":return yc.TClass(String);case "undefined":return yc.TNull;default:return yc.TUnknown}};wb.enumParameters=function(a){var b=
P[a.__enum__].__constructs__[a._hx_index].__params__;if(null!=b){for(var c=[],d=0;d<b.length;){var e=b[d];++d;c.push(a[e])}return c}return[]};var za={gt:function(a,b){var c=0>a;return c!=0>b?c:a>b},gte:function(a,b){var c=0>a;return c!=0>b?c:a>=b},toFloat:function(a){return 0>a?4294967296+a:a+0}},wm=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[172].__init(a);Q.call(this)};g.VariablesAsset=wm;wm.__name__="VariablesAsset";wm.__super__=Q;wm.prototype=r(Q.prototype,{txt:null,__class__:wm});
var xm=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");a.symbols.h[19].__init(a);Q.call(this)};g.VideoContainerAsset=xm;xm.__name__="VideoContainerAsset";xm.__super__=Q;xm.prototype=r(Q.prototype,{__class__:xm});var V={toString:function(a){switch(a){case 0:return"Element";case 1:return"PCData";case 2:return"CData";case 3:return"Comment";case 4:return"DocType";case 5:return"ProcessingInstruction";case 6:return"Document"}}},z=function(a){this.nodeType=a;this.children=[];this.attributeMap=new da};g.Xml=
z;z.__name__="Xml";z.parse=function(a){return Gi.parse(a)};z.createElement=function(a){var b=new z(z.Element);if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b.nodeName=a;return b};z.createPCData=function(a){var b=new z(z.PCData);if(b.nodeType==z.Document||b.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":V.toString(b.nodeType)));b.nodeValue=a;return b};z.createCData=function(a){var b=
new z(z.CData);if(b.nodeType==z.Document||b.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":V.toString(b.nodeType)));b.nodeValue=a;return b};z.createComment=function(a){var b=new z(z.Comment);if(b.nodeType==z.Document||b.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":V.toString(b.nodeType)));b.nodeValue=a;return b};z.createDocType=function(a){var b=new z(z.DocType);if(b.nodeType==z.Document||b.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+
(null==b.nodeType?"null":V.toString(b.nodeType)));b.nodeValue=a;return b};z.createProcessingInstruction=function(a){var b=new z(z.ProcessingInstruction);if(b.nodeType==z.Document||b.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":V.toString(b.nodeType)));b.nodeValue=a;return b};z.createDocument=function(){return new z(z.Document)};z.prototype={nodeType:null,nodeName:null,nodeValue:null,parent:null,children:null,attributeMap:null,get:function(a){if(this.nodeType!=
z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==this.nodeType?"null":V.toString(this.nodeType)));return this.attributeMap.h[a]},set:function(a,b){if(this.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==this.nodeType?"null":V.toString(this.nodeType)));this.attributeMap.h[a]=b},remove:function(a){if(this.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==this.nodeType?"null":V.toString(this.nodeType)));
var b=this.attributeMap;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a]},exists:function(a){if(this.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==this.nodeType?"null":V.toString(this.nodeType)));return Object.prototype.hasOwnProperty.call(this.attributeMap.h,a)},attributes:function(){if(this.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==this.nodeType?"null":V.toString(this.nodeType)));return new Qo(this.attributeMap.h)},
elements:function(){if(this.nodeType!=z.Document&&this.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==this.nodeType?"null":V.toString(this.nodeType)));for(var a=[],b=0,c=this.children;b<c.length;){var d=c[b];++b;d.nodeType==z.Element&&a.push(d)}return new pe(a)},elementsNamed:function(a){if(this.nodeType!=z.Document&&this.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==this.nodeType?"null":V.toString(this.nodeType)));
for(var b=[],c=0,d=this.children;c<d.length;){var e=d[c];++c;if(e.nodeType==z.Element){if(e.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==e.nodeType?"null":V.toString(e.nodeType)));var f=e.nodeName==a}else f=!1;f&&b.push(e)}return new pe(b)},firstElement:function(){if(this.nodeType!=z.Document&&this.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==this.nodeType?"null":V.toString(this.nodeType)));for(var a=0,
b=this.children;a<b.length;){var c=b[a];++a;if(c.nodeType==z.Element)return c}return null},addChild:function(a){if(this.nodeType!=z.Document&&this.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==this.nodeType?"null":V.toString(this.nodeType)));null!=a.parent&&a.parent.removeChild(a);this.children.push(a);a.parent=this},removeChild:function(a){if(this.nodeType!=z.Document&&this.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+
(null==this.nodeType?"null":V.toString(this.nodeType)));return G.remove(this.children,a)?(a.parent=null,!0):!1},insertChild:function(a,b){if(this.nodeType!=z.Document&&this.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==this.nodeType?"null":V.toString(this.nodeType)));null!=a.parent&&G.remove(a.parent.children,a);this.children.splice(b,0,a);a.parent=this},toString:function(){return bc.print(this)},__class__:z};var Ro=function(){var a=ac.get("6JprOj7LtMUHhYlxrhWQ");
a.symbols.h[247].__init(a);Q.call(this)};g.YesButtonAsset=Ro;Ro.__name__="YesButtonAsset";Ro.__super__=Q;Ro.prototype=r(Q.prototype,{__class__:Ro});var W=function(a,b,c){null==c&&(c=!1);null==b&&(b=!1);this.type=a;this.bubbles=b;this.cancelable=c;this.eventPhase=2};g["openfl.events.Event"]=W;W.__name__="openfl.events.Event";W.prototype={bubbles:null,cancelable:null,currentTarget:null,eventPhase:null,target:null,type:null,__isCanceled:null,__isCanceledNow:null,__preventDefault:null,clone:function(){var a=
new W(this.type,this.bubbles,this.cancelable);a.eventPhase=this.eventPhase;a.target=this.target;a.currentTarget=this.currentTarget;return a},formatToString:function(a,b,c,d,e,f){var h=[];null!=b&&h.push(b);null!=c&&h.push(c);null!=d&&h.push(d);null!=e&&h.push(e);null!=f&&h.push(f);return k(this,this.__formatToString).apply(this,[a,h])},isDefaultPrevented:function(){return this.__preventDefault},preventDefault:function(){this.cancelable&&(this.__preventDefault=!0)},stopImmediatePropagation:function(){this.__isCanceledNow=
this.__isCanceled=!0},stopPropagation:function(){this.__isCanceled=!0},toString:function(){return this.__formatToString("Event",["type","bubbles","cancelable"])},__formatToString:function(a,b){a="["+a;for(var c,d=0;d<b.length;){var e=b[d];++d;c=J.field(this,e);a="string"==typeof c?a+(" "+e+'="'+B.string(c)+'"'):a+(" "+e+"="+B.string(c))}return a+"]"},__init:function(){this.currentTarget=this.target=null;this.cancelable=this.bubbles=!1;this.eventPhase=2;this.__preventDefault=this.__isCanceledNow=this.__isCanceled=
!1},__class__:W};var yf=function(a,b,c){null==c&&(c=!1);null==b&&(b=!1);W.call(this,a,b,c)};g["com.massiveProCreation.events.CustomEvent"]=yf;yf.__name__="com.massiveProCreation.events.CustomEvent";yf.__super__=W;yf.prototype=r(W.prototype,{clone:function(){return new yf(this.type,this.bubbles,this.cancelable)},toString:function(){return this.formatToString("CustomEvent","type","bubbles","cancelable","eventPhase")},__class__:yf});var Db=function(a){this.data=a};g["elearningwmb.DisplayObjectMeta"]=
Db;Db.__name__="elearningwmb.DisplayObjectMeta";Db.get=function(a){return Db._meta.h[a.__id__]};Db.getField=function(a,b){return null!=Db._meta.h.__keys__[a.__id__]?Db._meta.h[a.__id__].field(b):null};Db.set=function(a,b){var c=Db.get(a);if(null==c)c=new Db(b),Db._meta.set(a,c);else{a=0;for(var d=J.fields(b);a<d.length;){var e=d[a];++a;c.setField(e,J.field(b,e))}}return c};Db.remove=function(a){Db._meta.remove(a)};Db.removeField=function(a,b){null!=Db._meta.h.__keys__[a.__id__]&&Db._meta.h[a.__id__].deleteField(b)};
Db.prototype={data:null,hasField:function(a){return Object.prototype.hasOwnProperty.call(this.data,a)},field:function(a){return J.field(this.data,a)},setField:function(a,b){this.data[a]=b},deleteField:function(a){J.deleteField(this.data,a)},__class__:Db};var So=function(){};g["elearningwmb.Layout"]=So;So.__name__="elearningwmb.Layout";var kb=function(a){this._key=a;this._singleKey=kb.getSingleName(this._key)};g["elearningwmb.NodeType"]=kb;kb.__name__="elearningwmb.NodeType";kb.getSingleName=function(a){var b=
a;kb.isMultipleTag(a)&&(b=a.substring(0,a.lastIndexOf("_")));return kb.fixLegacy(b)};kb.isNodeEditable=function(a){switch(a){case "Answer":case "Answers":case "Background":case "Content":case "Flash":case "Image":case "Narrator":case "Question":case "Quiz":case "Quizes":case "Section":case "Video":case "iframe":case "input":case "navigation":case "settings":case "video":return!0}return!1};kb.isQuizNode=function(a){switch(a){case "Answer":case "Answers":case "Question":case "Quiz":case "Quizes":return!0}return!1};
kb.isMultipleTag=function(a){return(new fa("_\\d+$","i")).match(a)};kb.getMultipleTagIndex=function(a,b){null==b&&(b=-1);var c=a.lastIndexOf("_");return-1==c?b:B.parseInt(G.substr(a,c+1,null))};kb.fixLegacy=function(a){return"video"==a?"Video":a};kb.prototype={_key:null,_singleKey:null,getProps:function(a){return"Section"==this._singleKey?{x:a.get_x(),y:a.get_y(),width:1070,height:a.get_height(),alpha:1,hasBackground:!1}:{width:a.get_width(),height:a.get_height(),alpha:a.get_alpha()}},getMultipleTagNameOffset:function(a){null==
a&&(a=1);var b=kb.getMultipleTagIndex(this._key);return-1<b?(a=b+a,0<a?this._singleKey+"_"+a:this._singleKey):0<a?this._singleKey+"_"+a:null},get_movable:function(){switch(this._singleKey){case "Answer":case "Answers":case "Background":case "Question":case "Section":case "navigation":case "screens":return!1}return!0},get_resizable:function(){switch(this._singleKey){case "Answer":case "Answers":case "Background":case "Question":case "Quiz":case "Section":case "input":case "navigation":case "screen":case "screens":return!1}return!0},
get_scalable:function(){switch(this._singleKey){case "Image":case "Narrator":case "Video":return!0}return!1},get_maintainRatio:function(){switch(this._singleKey){case "Flash":case "Image":case "Narrator":case "Video":return!0}return!1},get_editable:function(){return kb.isNodeEditable(this._singleKey)},get_hasBorder:function(){switch(this._singleKey){case "Background":case "Section":case "input":case "navigation":case "screen":case "screens":return!1}return!0},get_hasBgToggle:function(){switch(this._singleKey){case "Section":case "input":case "navigation":return!1}return!0},
get_hasBgColor:function(){switch(this._singleKey){case "input":case "navigation":return!1}return!0},get_icon:function(){return"Video"==this._singleKey?"video.png":"file.png"},get_singleKey:function(){return this._singleKey},equals:function(a){return this._key==a},get_quizNode:function(){return kb.isQuizNode(this._singleKey)},get_canCopy:function(){switch(this._singleKey){case "Background":case "Quiz":case "Section":case "screen_id":return!1;default:return!0}},canPaste:function(a){return this.get_quizNode()==
a.get_quizNode()},any:function(a){for(var b=0;b<a.length;){var c=a[b];++b;if(c==this._singleKey)return!0}return!1},toString:function(){return this._key},__class__:kb,__properties__:{get_canCopy:"get_canCopy",get_quizNode:"get_quizNode",get_singleKey:"get_singleKey",get_icon:"get_icon",get_hasBgColor:"get_hasBgColor",get_hasBgToggle:"get_hasBgToggle",get_hasBorder:"get_hasBorder",get_editable:"get_editable",get_maintainRatio:"get_maintainRatio",get_scalable:"get_scalable",get_resizable:"get_resizable",
get_movable:"get_movable"}};var ws=function(a,b,c){this.tagName=a;this.properties=b;this.nodeID=c};g["elearningwmb.SelectTagVO"]=ws;ws.__name__="elearningwmb.SelectTagVO";ws.prototype={tagName:null,properties:null,nodeID:null,__class__:ws};var Ec=function(){};g["elearningwmb.XmlFactory"]=Ec;Ec.__name__="elearningwmb.XmlFactory";Ec.create=function(a,b){switch(a){case "Background":return Ec.createBackground(b.path);case "Flash":case "Image":return Ec.createImage({path:b.path},a);case "Narrator":return Ec.createNarrator({path:b.path});
case "Video":case "video":return Ec.createVideo(b);default:throw new u("invalid node name "+a);}};Ec.createImage=function(a,b){null==b&&(b="Image");a=Zc.merge({x:"",y:"",width:"",height:"",path:""},a);b=z.parse("<"+b+' x="'+B.string(a.x)+'" y="'+B.string(a.y)+'" width="'+B.string(a.width)+'" height="'+B.string(a.height)+'">'+B.string(a.path)+"</"+b+">");if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":
V.toString(b.nodeType)));b=b.children[0];if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==b.nodeType?"null":V.toString(b.nodeType)));a.targetId&&b.set("targetId",a.targetId);a.text&&b.set("text",a.text);a.delay&&b.set("delay",a.delay);return b};Ec.createFlash=function(a){return Ec.createImage(a,"Flash")};Ec.createBackground=function(a){return Ec.createValue("Background",a)};Ec.createVideo=function(a){a.width=null!=a.width?B.string(a.width):"240";if(null!=
a.height)var b=B.string(a.height);else b=parseFloat(a.width),b=isNaN(b)?"135":B.string(9*parseFloat(a.width)/16);a.height=b;a=Zc.merge({x:"",y:""},a);a=z.parse('<Video x="'+B.string(a.x)+'" y="'+B.string(a.y)+'"\n            width="'+B.string(a.width)+'" height="'+B.string(a.height)+'" autostart="false">\n                '+B.string(a.path)+"\n            </Video>");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?
"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a};Ec.createNarrator=function(a){a=Zc.merge({x:"",y:"",start:"",path:""},a);var b=z.parse('<Narrator x="'+B.string(a.x)+'" y="'+B.string(a.y)+'" start="'+B.string(a.start)+'">'+B.string(a.path)+"</Narrator>");if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+
(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children[0];if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==b.nodeType?"null":V.toString(b.nodeType)));a.stop&&b.set("stop",a.stop);return b};Ec.createContent=function(a){a=Zc.merge({x:"",y:"",width:"",height:"",text:""},a);var b=z.parse(ec.trim('<Content x="'+B.string(a.x)+'" y="'+B.string(a.y)+'" width="'+B.string(a.width)+'" height="'+B.string(a.height)+'" hasBackground="false" bgColor="#000000">'+
Gb.cdata(a.text)+"</Content>"));a.auto_narrator&&b.set("auto_narrator",a.auto_narrator);if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));a=b.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a};Ec.createNavigation=function(a){var b=z.parse("<navigation></navigation>");if(b.nodeType!=
z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children[0];if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==b.nodeType?"null":V.toString(b.nodeType)));a.delay&&b.set("delay",a.delay);return b};Ec.createAnswer=function(a){a=Zc.merge({id:"",correct:0,score:0,text:"",feedback:"",match:""},a);a=z.parse('<Answer AnswerID="'+B.string(a.id)+'" Correct="'+
B.string(a.correct)+'" Score="'+B.string(a.score)+'" Order="" TaskSeverity="0" ActionByID="0">\n            <Text>'+Gb.cdata(a.text)+"</Text>\n            <TaskName />\n            <TaskDescription />\n            <Feedback>"+Gb.cdata(a.feedback)+"</Feedback>\n            <Match>"+Gb.cdata(a.match)+"</Match>\n        </Answer>");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));
a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a};Ec.createQuizes=function(a){a=z.parse("<Quizes>\n            <settings></settings>\n        </Quizes>");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+
(null==a.nodeType?"null":V.toString(a.nodeType)));return a};Ec.createQuiz=function(a){var b=z.parse('<Quiz Type="'+B.string(a.type)+'"></Quiz>');if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children[0];if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==b.nodeType?"null":V.toString(b.nodeType)));a.id&&b.set("identifier",a.id);a.x&&
b.set("x",B.string(a.x));a.y&&b.set("y",B.string(a.y));return b};Ec.createQuestion=function(a){a=Zc.merge({title:"Enter question title...",type:"exam",qType:"MC"},a);null==J.field(a,"id")&&(a.id="MI01");if(null==J.field(a,"answers")){var b=ze.TYPE_STRINGS.indexOf(a.type);a.answers=[fc.TRUE_FALSE_ANSWERS,fc.TASK_ANSWERS(),fc.SKILLSCAN_ANSWERS,fc.TRUE_FALSE_ANSWERS,fc.LIKERT_SCALE_ANSWERS][b]}a=z.parse('<Question QuestionID="'+B.string(a.id)+'" QuestionType="'+B.string(a.type)+'" Title="'+B.string(a.title)+
'" CommentBox="0" qType="'+B.string(a.qType)+'">\n          <Text>Enter question here...</Text>\n          '+B.string(a.answers)+"\n        </Question>");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a};Ec.createButton=
function(a){a=Zc.merge({name:""},a);var b=z.parse('<button name="'+B.string(a.name)+'"></button>');if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children[0];if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==b.nodeType?"null":V.toString(b.nodeType)));a.asset&&b.set("asset",a.asset);a.x&&b.set("x",a.x);a.y&&b.set("y",a.y);a.delay&&
b.set("delay",a.delay);a.visible&&b.set("visible",a.visible);return b};Ec.createInput=function(a){a=Zc.merge({name:""},a);var b=z.parse('<input name="'+B.string(a.name)+'" />');if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children[0];if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==b.nodeType?"null":V.toString(b.nodeType)));a.type&&
b.set("type",a.type);a.label&&b.set("label",a.label);a.x&&b.set("x",B.string(a.x));a.y&&b.set("y",B.string(a.y));a.width&&b.set("width",a.width);a.height&&b.set("height",a.height);a.questionID&&b.set("questionID",a.questionID);return b};Ec.createIframe=function(a){a=Ec.parseEmbedCode(a);if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a};Ec.parseEmbedCode=function(a){var b=window.document.createElement("div");
b.innerHTML=a;a=b.innerHTML;b=z.parse(a);if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children[0];if(0==b.nodeType){if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));if("iframe"!=b.nodeName.toLowerCase())throw u.thrown("Only iframe tags allowed");}else{new URL(a);if(b.nodeType==z.Document||
b.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=z.parse('<iframe src="'+b.nodeValue+'"></iframe>');if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children[0]}return b};Ec.createEmpty=function(a){a=z.parse("<"+a+"></"+a+">");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+
(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a};Ec.createValue=function(a,b){null==b&&(b="");a=z.parse("<"+a+">"+b+"</"+a+">");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&
a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a};var Ej=function(a,b,c){null==c&&(c=!1);null==b&&(b=!1);W.call(this,a,b,c)};g["lib.events.MessageEvent"]=Ej;Ej.__name__="lib.events.MessageEvent";Ej.__super__=W;Ej.prototype=r(W.prototype,{_data:null,get_data:function(){return this._data},set_data:function(a){return this._data=a},__class__:Ej,__properties__:{set_data:"set_data",get_data:"get_data"}});var Hi=function(a,b,c){null==c&&
(c=!1);null==b&&(b=!1);Ej.call(this,a,b,c)};g["elearningwmb.events.MobileAppEvent"]=Hi;Hi.__name__="elearningwmb.events.MobileAppEvent";Hi.__super__=Ej;Hi.prototype=r(Ej.prototype,{__class__:Hi});var Ih=function(a,b){W.call(this,a);this.data=b};g["elearningwmb.events.NavigateToEvent"]=Ih;Ih.__name__="elearningwmb.events.NavigateToEvent";Ih.__super__=W;Ih.prototype=r(W.prototype,{data:null,__class__:Ih});var Mc=function(a,b,c){W.call(this,a,!0);this.data=b;this.undoEvents=c};g["elearningwmb.events.UpdateJackdawEvent"]=
Mc;Mc.__name__="elearningwmb.events.UpdateJackdawEvent";Mc.fromKeyboardEvent=function(a){var b="keyUp"==a.type?"room.key_up":"room.key_down";a=new Ii(a.type,a.bubbles,a.cancelable,a.charCode,a.keyCode,a.keyLocation,a.ctrlKey,a.altKey,a.shiftKey,a.controlKey,a.commandKey);return new Mc(b,a)};Mc.__super__=W;Mc.prototype=r(W.prototype,{data:null,undoEvents:null,__class__:Mc});var Ic=function(a,b){this.isUndo=this.isRedo=this.isLive=!1;W.call(this,a,!1,!1);this.data=b;this.dataArr=b instanceof Array?
b:[b]};g["elearningwmb.events.UpdateRoomEvent"]=Ic;Ic.__name__="elearningwmb.events.UpdateRoomEvent";Ic.createUndo=function(a,b){switch(a.type){case "insert_answer":var c="remove_answer";var d=N.__cast(b,Bk).get_id();break;case "insert_main_screen":c="remove_main_screen";d=N.__cast(N.__cast(b,Array)[0],Ae).screen_id;break;case "insert_question":c="remove_question";d=N.__cast(b,fc).get_id();break;case "insert_sub_screen":c="remove_sub_screen";d=N.__cast(N.__cast(b,Array)[0],Ae).screen_id;break;case "remove_answer":c=
"insert_answer";d=b;d=[d.oldIndex,bc.print(d.get_xml())];break;case "remove_main_screen":c="insert_main_screen";d=N.__cast(b,Array)[0];d=[d.oldIndex,[]];var e=0;for(b=N.__cast(b,Array);e<b.length;){var f=b[e];++e;var h=d[1];f=bc.print(N.__cast(f,Ae).get_xml());h.push(f)}break;case "remove_question":c="insert_question";d=b;d=[d.oldIndex,bc.print(d.get_xml())];break;case "remove_sub_screen":c="insert_sub_screen";d=N.__cast(b,Array)[0];d=[d.oldIndex,[]];e=0;for(b=N.__cast(b,Array);e<b.length;)f=b[e],
++e,h=d[1],f=bc.print(N.__cast(f,Ae).get_xml()),h.push(f);break;default:c=a.type,d=a.data}e=null;null!=c&&(e=new Ic(c,d),e.isRedo=a.isUndo,e.isUndo=!a.isRedo,e.isLive=a.isLive);return e};Ic.__super__=W;Ic.prototype=r(W.prototype,{data:null,dataArr:null,isUndo:null,isRedo:null,isLive:null,getXml:function(){var a=z.parse(this.dataArr[0]);if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));
return a.children[0]},setXml:function(a){this.data instanceof Array?this.data[0]=a:(this.data=a,this.dataArr[0]=a)},getNodeIds:function(){return 1<this.dataArr.length?this.dataArr[1].split(","):null},clone:function(){return new Ic(this.type,this.data)},__class__:Ic});var Jc=function(){};g["elearningwmb.utils.AssetsUtil"]=Jc;Jc.__name__="elearningwmb.utils.AssetsUtil";Jc.getAssetPath=function(a,b){null==b&&(b="");return"assets/"+a+(Gb.isEmpty(b)?"":"-"+b)+".png"};Jc.getButton=function(a,b){null==b&&
(b=!1);var c=new Pd(xb.fromImage(na.getBitmapData(Jc.getAssetPath(a)).image.clone())),d=new Pd(xb.fromImage(na.getBitmapData(Jc.getAssetPath(a,Jc.STATE_OVER)).image.clone()));a=new Pd(xb.fromImage(na.getBitmapData(Jc.getAssetPath(a,Jc.STATE_DOWN)).image.clone()));b&&(c.set_x(-c.get_width()/2),c.set_y(-c.get_height()/2),d.set_x(-d.get_width()/2),d.set_y(-d.get_height()/2),a.set_x(-a.get_width()/2),a.set_y(-a.get_height()/2));return new Ji(c,d,a,c)};Jc.drawButton=function(a,b,c){null==c&&(c=!1);null==
b&&(b=!1);return new Ji(la.buttonSprite("button-up",a,b,c),la.buttonSprite("button-over",a,b,c),la.buttonSprite("button-down",a,b,c),la.buttonSprite("button-hitbox",a,b,c))};Jc.drawTextButton=function(a){return new Ji(Jc.drawTextButtonState(a,11184810),Jc.drawTextButtonState(a,8421504),Jc.drawTextButtonState(a,5066061),Jc.drawTextButtonState(a))};Jc.drawTextButtonState=function(a,b){var c=new ib(na.getFont("fonts/Roboto/Roboto-Black.ttf").name,18,b),d=new Bb;d.set_embedFonts(!0);d.set_autoSize(1);
d.set_width(50);d.set_height(20);d.set_antiAliasType(0);d.set_selectable(!1);d.set_defaultTextFormat(c);d.set_text(a);d.set_x(34);d.set_y(20);a=new F;a.get_graphics().beginFill(0,0);null!=b&&a.get_graphics().lineStyle(2,b);a.get_graphics().drawRoundRect(0,0,64+d.get_width(),64,64,64);a.get_graphics().endFill();a.set_x(a.get_width()/-2);a.set_y(-32);a.addChild(d);return a};var hg=function(){};g["elearningwmb.utils.Html5Utils"]=hg;hg.__name__="elearningwmb.utils.Html5Utils";hg.convertPath=function(a,
b){1!=b||Uc.get_FlashWebGL()||(b=0);b=null==b?"null":Ut.toString(b);return a.replace(/\.swf(\?|$)/i,"_"+b+".html$1")};hg.convertScreens=function(a){for(var b=[],c=[],d=0,e=Jh.resolve(a,"screen");d<e.length;){var f=e[d];++d;b.push(f)}d=0;for(e=b.length;d<e;){var h=d++;f=b[h];var l=B.parseInt(qb.get_innerData(aa.resolve(f,"Template")));if(2==Eb.fromInt(l)||8==Eb.fromInt(l)||7==Eb.fromInt(l)){var m=qb.get_innerData(aa.resolve(f,"screen_id")),t=aa.resolve(f,"screen_id"),k=f,n=aa.resolve(f,"Template"),
g=aa.resolve(f,"Content");if(2==Eb.fromInt(l)||8==Eb.fromInt(l)){if(n.nodeType!=z.Document&&n.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==n.nodeType?"null":V.toString(n.nodeType)));n.removeChild(n.children[0]);n.addChild(z.createPCData(B.string(N.__cast(5,jh))));k=B.parseInt(t.get("x"))+B.parseInt(g.get("x"));n=B.parseInt(t.get("y"))+B.parseInt(g.get("y"));lb.isMain(m)?(t.set("x","160"),t.set("y","130")):(t.set("x","0"),t.set("y","0"));g.set("x",
B.string(k-160));g.set("y",B.string(n-130));for(m=1;ma.resolve(f,"Content_"+m);)g=aa.resolve(f,"Content_"+m),k=B.parseInt(t.get("x"))+B.parseInt(g.get("x")),n=B.parseInt(t.get("y"))+B.parseInt(g.get("y")),g.set("x",B.string(k-160)),g.set("y",B.string(n-130)),++m}else{if(n.nodeType!=z.Document&&n.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==n.nodeType?"null":V.toString(n.nodeType)));n.removeChild(n.children[0]);n.addChild(z.createPCData(B.string(N.__cast(4,
jh))));if(lb.isMain(m)){t.set("x","100");t.set("y","70");g.set("x","-70");g.set("y","20");g.set("width","280");g.set("height","380");g.set("hasBackground","false");g.set("bgColor","#FFFFFF");ma.resolve(f,"Flash")&&f.removeChild(aa.resolve(f,"Flash"));t=z.parse('<Flash x="" y="" width="" height="" targetId="" text="" textColor="#000000">animated_book_business/animated_book_business.swf</Flash>');if(t.nodeType!=z.Document&&t.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+
(null==t.nodeType?"null":V.toString(t.nodeType)));f.addChild(t.children[0]);ma.resolve(f,"Content_1")&&f.removeChild(aa.resolve(f,"Content_1"));if(b.length>h+1&&(f=hg.getContent(b[h+1]),0<f.length)){f=z.parse('<Content_1 x="280" y="150" width="300" height="90" hasBackground="false" bgColor="#FFFFFF">'+f+"</Content_1>");if(f.nodeType!=z.Document&&f.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==f.nodeType?"null":V.toString(f.nodeType)));k.addChild(f.children[0])}}else{var q=
!1,p="";k=l=null;g="";1==B.parseInt(m)%2&&b.length>h+2&&(p=hg.getSectionId(m),l=b[h+1],q=qb.get_innerData(aa.resolve(l,"screen_id")),k=b[h+2],g=qb.get_innerData(aa.resolve(k,"screen_id")),q=hg.getSectionId(q)==p&&(""!=hg.getContent(l)||hg.getSectionId(g)==p));if(q){m=Math.ceil(B.parseInt(G.substr(m,-2,null))/2);m=p+(10>m?"0"+m:null==m?"null":""+m);t.set("x","100");t.set("y","70");if(t.nodeType!=z.Document&&t.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+
(null==t.nodeType?"null":V.toString(t.nodeType)));t.removeChild(t.children[0]);t.addChild(z.createPCData(m));if(n.nodeType!=z.Document&&n.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==n.nodeType?"null":V.toString(n.nodeType)));n.removeChild(n.children[0]);n.addChild(z.createPCData(B.string(N.__cast(4,jh))));ma.resolve(f,"Image")&&f.removeChild(aa.resolve(f,"Image"));t=z.parse('<Image x="51" y="14" width="380" height="484">'+qb.get_innerData(aa.resolve(l,
"Image"))+"</Image>");if(t.nodeType!=z.Document&&t.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==t.nodeType?"null":V.toString(t.nodeType)));f.addChild(t.children[0]);ma.resolve(f,"Content")&&f.removeChild(aa.resolve(f,"Content"));t=z.parse('<Content x="446" y="30" width="370" height="440" hasBackground="false" bgColor="#FFFFFF"/>');if(t.nodeType!=z.Document&&t.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+
(null==t.nodeType?"null":V.toString(t.nodeType)));t=t.children[0];f.addChild(t);lb.isMain(g)||(m=qb.get_innerData(aa.resolve(k,"Content")).replace(/COLOR="#ffffff"/ig,'COLOR="#000000"'),t.addChild(z.createPCData(m)),ma.resolve(k,"Narrator")&&(ma.resolve(f,"Narrator")&&f.removeChild(aa.resolve(f,"Narrator")),f.addChild(aa.resolve(k,"Narrator"))),ma.resolve(k,"Video")&&(ma.resolve(f,"Video")&&f.removeChild(aa.resolve(f,"Video")),f.addChild(aa.resolve(k,"Video"))))}else c.push(f)}}}}for(d=0;d<c.length;)f=
c[d],++d,a.removeChild(f);if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a};hg.getSectionId=function(a){return G.substr(a,0,3<a.length?2:1)};hg.getContent=function(a){try{return qb.get_innerData(aa.resolve(a,"Content"))}catch(b){return wa.lastError=b,""}};var od=function(){};g["elearningwmb.utils.QuizIdUtil"]=od;od.__name__="elearningwmb.utils.QuizIdUtil";od.fromInt=function(a,b){null==b&&(b="MI");return b+
(10<=a?null==a?"null":""+a:"0"+a)};od.parseInt=function(a){var b=new fa("^([^0-9]*)([0-9]+)$","");return b.match(a)?B.parseInt(b.matched(2)):-1};od.parsePrefix=function(a){var b=new fa("^([^0-9]*)([0-9]+)$","");return b.match(a)?b.matched(1):""};var lb=function(){};g["elearningwmb.utils.ScreenIdUtil"]=lb;lb.__name__="elearningwmb.utils.ScreenIdUtil";lb.isMain=function(a){return 0==a.indexOf("s")?0>a.indexOf("#"):100>B.parseInt(a)};lb.parseInt=function(a){if(0==a.indexOf("s")){var b=a.split("#");a=
B.parseInt(b[0].substring(1));return 1<b.length?(b=B.parseInt(b[1]),100*a+b):a}return B.parseInt(a)};lb.getMainId=function(a){if(0==a.indexOf("s"))return B.parseInt(a.split("#")[0].substring(1));a=B.parseInt(a);return 100<a?Math.floor(a/100):a};lb.updateMain=function(a,b){if(0==a.indexOf("s")){a=a.split("#");var c=a[0].substring(1);return"s"+(B.parseInt(c)+b)+(1<a.length?"#"+a[1]:"")}a=B.parseInt(a);b=100<a?100*(Math.floor(a/100)+b)+a%100:a+b;return null==b?"null":""+b};lb.updateSub=function(a,b){if(0==
a.indexOf("s")){var c=a.split("#");a=c[0].substring(1);b=(1<c.length?B.parseInt(c[1]):0)+b;return"s"+a+(0<b?"#"+b:"")}a=B.parseInt(a);100>a&&(a*=100);b=a+b;0==b%100&&(b=b/100|0);return null==b?"null":""+b};lb.getScreenIdSum=function(a){var b=0,c=0;for(a=Jh.resolve(a,"screen");c<a.length;){var d=a[c];++c;if(ma.resolve(d,"screen_id"))try{var e=qb.get_innerData(aa.resolve(d,"screen_id"));b+=lb.parseInt(e)}catch(f){wa.lastError=f}}return b};var Be=function(a,b,c,d){null==d&&(d=500);this.obj=a;this.onShow=
b;this.onHide=c;this.timer=new Ck(d);this.timer.addEventListener("timer",k(this,this.onTimer));a.addEventListener("mouseOver",k(this,this.onMouseOver));a.addEventListener("mouseOut",k(this,this.onMouseOut));a.addEventListener("mouseMove",k(this,this.onMouseMove));a[Be.KEY_HANDLER]=this};g["elearningwmb.utils.TooltipHandler"]=Be;Be.__name__="elearningwmb.utils.TooltipHandler";Be.createHandler=function(a,b,c,d){null==d&&(d=500);var e=J.field(a,Be.KEY_HANDLER);null==e&&(e=new Be(a,b,c,d));return e};
Be.destroyHandler=function(a){a=J.field(a,Be.KEY_HANDLER);null!=a&&a.destroy()};Be.prototype={obj:null,onShow:null,onHide:null,timer:null,mouseEvent:null,destroy:function(){this.timer.reset();this.obj.removeEventListener("mouseOver",k(this,this.onMouseOver));this.obj.removeEventListener("mouseOut",k(this,this.onMouseOut));J.deleteField(this.obj,Be.KEY_HANDLER)},onTimer:function(a){this.onShow(this.mouseEvent);this.timer.stop()},onMouseOver:function(a){this.mouseEvent=a;this.timer.reset();this.timer.start()},
onMouseOut:function(a){this.onHide(a);this.timer.reset()},onMouseMove:function(a){this.onHide(a);this.timer.reset();this.timer.start()},__class__:Be};var Ji=function(a,b,c,d){this.thisOver=this.thisDown=!1;F.call(this);this.useHandCursor=!0;this.hitTestState=d;this.hitTestState.set_alpha(0);this.addChild(this.hitTestState);this.currentState=this.addChildAt(a,0);this.currentState.mouseEnabled=!1;this.set_overState(b);this.set_downState(c);this.set_upState(a);yb.isMobile()||(this.addEventListener("mouseDown",
k(this,this.mouseDown)),this.addEventListener("mouseOver",k(this,this.mouseOver)),this.addEventListener("mouseOut",k(this,this.mouseOut)),this.addEventListener("mouseUp",k(this,this.mouseOver)))};g["elearningwmb.utils.VerySimpleButton"]=Ji;Ji.__name__="elearningwmb.utils.VerySimpleButton";Ji.__super__=F;Ji.prototype=r(F.prototype,{upState:null,overState:null,downState:null,hitTestState:null,currentState:null,thisOver:null,thisDown:null,mouseOver:function(a){this.thisOver=!0;this.thisDown=!1;this.removeChild(this.currentState);
this.currentState=this.addChildAt(this.overState,0);this.currentState.mouseEnabled=!1},mouseOut:function(a){this.thisOver=!1;this.removeChild(this.currentState);this.currentState=this.addChildAt(this.upState,0);this.currentState.mouseEnabled=!1},mouseDown:function(a){this.thisDown=!0;this.removeChild(this.currentState);this.currentState=this.addChildAt(this.downState,0);this.currentState.mouseEnabled=!1},set_upState:function(a){this.thisDown||this.thisOver||(this.removeChild(this.currentState),this.currentState=
this.addChildAt(a,0),this.currentState.mouseEnabled=!1);return this.upState=a},set_overState:function(a){this.thisOver&&(this.removeChild(this.currentState),this.currentState=this.addChildAt(a,0),this.currentState.mouseEnabled=!1);return this.overState=a},set_downState:function(a){this.thisDown&&(this.removeChild(this.currentState),this.currentState=this.addChildAt(a,0),this.currentState.mouseEnabled=!1);return this.downState=a},__class__:Ji,__properties__:r(F.prototype.__properties__,{set_downState:"set_downState",
set_overState:"set_overState",set_upState:"set_upState"})});var la=function(){};g["elearningwmb.utils.Visuals"]=la;la.__name__="elearningwmb.utils.Visuals";la.navButton=function(a){var b=[],c=[];c.push({lineColor:16777215,lineAlpha:1,fillColor:0,fillAlpha:1,bgAlpha:.4});c.push({lineColor:16777215,lineAlpha:1,fillColor:"no"==a?16730920:"yes"==a?6205229:0,fillAlpha:1,bgAlpha:.8});c.push({lineColor:0,lineAlpha:1,fillColor:"no"==a?16730920:"yes"==a?6205229:16777215,fillAlpha:1,bgAlpha:.4});c.push({lineColor:16777215,
lineAlpha:1,fillColor:0,fillAlpha:1,bgAlpha:0});for(var d=0;d<c.length;){var e=c[d];++d;var f=new F;if("next"==a||"yes"==a||"no"==a){var h=la.drawFrame(e.lineColor,e.lineAlpha,e.fillColor,e.fillAlpha);h.set_x(-65);h.set_y(-32)}else h=la.drawCircle(e.lineColor,2,e.fillColor,e.fillAlpha);h.set_alpha(e.bgAlpha);f.addChild(h);f.addChild(la.addSymbol("yes"==a?'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="27.67,10.7 24.13,7.16 13.53,17.77 7.87,12.11 4.33,15.65 9.99,21.3 9.99,21.3 13.53,24.84 17.06,21.3 17.06,21.3 "/></svg>':
"no"==a?'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="25.02,21.49 19.54,16 25.02,10.51 21.49,6.98 16,12.46 10.51,6.98 6.98,10.51 12.46,16 6.98,21.49 10.51,25.02 16,19.54 21.49,25.02 "/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m 28.035,15.995 -3.04,3.04 v 0 l -6.07,6.07 -3.04,-3.04 3.93,-3.93 H 3.965 v -4.29 h 15.84 l -3.91,-3.9099997 3.04,-3.0400005 6.07,6.0700002 v 0 z" id="arrow2" /></svg>',
e.lineColor));"prev"==a&&f.set_rotation(180);b.push(f)}return new Ji(b[0],b[1],b[2],b[3])};la.checkBox=function(a,b){var c=8421504,d=16225312;null!=b&&(c=la.SURVEY_CBOX_TONES[b],d=la.SURVEY_CBOX_TONES[b]);b=new F;switch(a){case "cbox-checked":b.addChild(la.drawCircle(d,3));b.addChild(la.addSymbol('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="27.67,10.7 24.13,7.16 13.53,17.77 7.87,12.11 4.33,15.65 9.99,21.3 9.99,21.3 13.53,24.84 17.06,21.3 17.06,21.3 "/></svg>',
d));break;case "cbox-checked-down":b.addChild(la.drawCircle(c,3));b.addChild(la.addSymbol('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="25.02,21.49 19.54,16 25.02,10.51 21.49,6.98 16,12.46 10.51,6.98 6.98,10.51 12.46,16 6.98,21.49 10.51,25.02 16,19.54 21.49,25.02 "/></svg>',c));break;case "cbox-checked-over":b.addChild(la.drawCircle(d,3));b.addChild(la.addSymbol('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="25.02,21.49 19.54,16 25.02,10.51 21.49,6.98 16,12.46 10.51,6.98 6.98,10.51 12.46,16 6.98,21.49 10.51,25.02 16,19.54 21.49,25.02 "/></svg>',
d));break;case "cbox-correct":b.addChild(la.drawCircle(6205229,3));b.addChild(la.addSymbol('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="27.67,10.7 24.13,7.16 13.53,17.77 7.87,12.11 4.33,15.65 9.99,21.3 9.99,21.3 13.53,24.84 17.06,21.3 17.06,21.3 "/></svg>',6205229));break;case "cbox-empty":b.addChild(la.drawDashedCircle(c,2,12));break;case "cbox-empty-down":b.addChild(la.drawCircle(c,3));b.addChild(la.addSymbol('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="27.67,10.7 24.13,7.16 13.53,17.77 7.87,12.11 4.33,15.65 9.99,21.3 9.99,21.3 13.53,24.84 17.06,21.3 17.06,21.3 "/></svg>',
c));break;case "cbox-empty-over":b.addChild(la.drawCircle(c,3));break;case "cbox-incorrect":b.addChild(la.drawCircle(16730920,3));b.addChild(la.addSymbol('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="25.02,21.49 19.54,16 25.02,10.51 21.49,6.98 16,12.46 10.51,6.98 6.98,10.51 12.46,16 6.98,21.49 10.51,25.02 16,19.54 21.49,25.02 "/></svg>',16730920));break;default:b.addChild(la.drawCircle(14474460,
2))}return b};la.buttonSprite=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!1);null==b&&(b="");var e=new F,f=new F,h=new F;switch(a){case "button-down":a=c?16777215:5066061;d?h=e.addChild(la.drawCircle(a,3.5)):e.addChild(la.drawFrame(a,c?.25:1));f=e.addChild(la.addSymbol(b,a,c?.25:1));break;case "button-hitbox":d?h=e.addChild(la.drawCircle(8421504,2,8421504,1)):e.addChild(la.drawFrame());break;case "button-over":a=c?16777215:8421504;d?h=e.addChild(la.drawCircle(a,3)):e.addChild(la.drawFrame(a));
f=e.addChild(la.addSymbol(b,a));break;case "button-up":a=c?16777215:11184810;d?h=e.addChild(la.drawCircle(a,2)):e.addChild(la.drawFrame(a,c?.75:1));f=e.addChild(la.addSymbol(b,a,c?.75:1));break;default:e.addChild(la.drawCircle(14474460,2))}f.set_x(h.set_x(d?32:65));f.set_y(h.set_y(32));return e};la.drawFrame=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null==b&&(b=1);var e=new F;e.get_graphics().beginFill(c,d);null!=a&&e.get_graphics().lineStyle(2,a,b);e.get_graphics().drawRoundRect(0,0,130,64,
64,64);e.get_graphics().endFill();return e};la.drawCircle=function(a,b,c,d){null==c&&(c=0);var e=new F;e.get_graphics().lineStyle(b,a);null!=d&&e.get_graphics().beginFill(c,d);e.get_graphics().drawCircle(0,0,32);null!=d&&e.get_graphics().endFill();return e};la.drawDashedCircle=function(a,b,c){var d=new F;d.get_graphics().lineStyle(b,a,null,!1,2,null,null,0);d.get_graphics().beginFill(0,0);d.get_graphics().moveTo(32,0);a=Math.PI/180;for(b=1;360>b;){var e=b++,f=32*Math.cos(a*e),h=32*Math.sin(a*e);la.isOdd(Math.floor(e/
c))?d.get_graphics().lineTo(f,h):d.get_graphics().moveTo(f,h)}d.get_graphics().endFill();return d};la.isOdd=function(a){return a!=2*Math.round(.5*a)};la.addSymbol=function(a,b,c,d,e){null==e&&(e=32);null==d&&(d=32);null==c&&(c=1);if(""==a||null==a)return new F;var f=new F;a=ia.replace(a,"ffffff",p.toHexString(p.fromInt(b)));a=ia.replace(a,"fill-opacity:1","fill-opacity:"+c);(new zf(a)).render(f.get_graphics(),-d/2,-e/2,d,e);return f};la.hitBoxSprite=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);
null==b&&(b=40);null==a&&(a=40);var e=new F;e.get_graphics().beginFill(0,.01);e.get_graphics().drawRect(c,d,a,b);e.get_graphics().endFill();return e};la.roundRect=function(a,b,c,d,e,f,h){null==h&&(h=0);null==f&&(f=0);null==e&&(e=1);null==d&&(d=16777215);null==c&&(c=5);null==b&&(b=40);null==a&&(a=40);var l=new F;l.get_graphics().beginFill(d,e);l.get_graphics().drawRoundRect(f,h,a,b,c);l.get_graphics().endFill();return l};la.closeBtn=function(a,b){var c=new F;c.addChild(la.hitBoxSprite(b,b,-b/2,-b/
2));c.addChild(la.addSymbol('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="25.02,21.49 19.54,16 25.02,10.51 21.49,6.98 16,12.46 10.51,6.98 6.98,10.51 12.46,16 6.98,21.49 10.51,25.02 16,19.54 21.49,25.02 "/></svg>',16777215,1,a,a));return c};la.prototype={__class__:la};var Ki=function(){};g["elearningwmb.xml.IFastBase"]=Ki;Ki.__name__="elearningwmb.xml.IFastBase";Ki.__isInterface__=!0;Ki.prototype=
{get_fast:null,set_fast:null,get_xml:null,set_xml:null,__changed:null,__class__:Ki,__properties__:{set_xml:"set_xml",get_xml:"get_xml",set_fast:"set_fast",get_fast:"get_fast"}};var Ca=function(){this.isDestroyed=!1;this.parent=null};g["elearningwmb.xml.FastBase"]=Ca;Ca.__name__="elearningwmb.xml.FastBase";Ca.__interfaces__=[Ki];Ca.parsePosition=function(a){a.x=null;if(ja.resolve(a.get_fast(),"x")){a.x=parseFloat(ba.resolve(a.get_fast(),"x"));var b=a.x;isNaN(b)&&(a.x=null)}a.y=null;ja.resolve(a.get_fast(),
"y")&&(a.y=parseFloat(ba.resolve(a.get_fast(),"y")),b=a.y,isNaN(b)&&(a.y=null))};Ca.parseAlpha=function(a){a.alpha=1;ja.resolve(a.get_fast(),"alpha")&&(a.alpha=parseFloat(ba.resolve(a.get_fast(),"alpha")),isNaN(a.alpha)&&(a.alpha=1))};Ca.parseBorder=function(a,b,c,d,e){null==e&&(e=1);null==d&&(d=0);null==c&&(c=2);null==b&&(b=!0);a.borderSize=0;if(ja.resolve(a.get_fast(),"borderSize")||ja.resolve(a.get_fast(),"borderColor")||!b)a.borderSize=ja.resolve(a.get_fast(),"borderSize")?B.parseInt(ba.resolve(a.get_fast(),
"borderSize")):c,a.borderColor=ja.resolve(a.get_fast(),"borderColor")?B.parseInt("0x"+G.substr(ba.resolve(a.get_fast(),"borderColor"),1,null)):d,a.borderAlpha=ja.resolve(a.get_fast(),"borderAlpha")?parseFloat(ba.resolve(a.get_fast(),"borderAlpha")):e};Ca.parsePadding=function(a,b,c){null==c&&(c=20);null==b&&(b=!0);a.padding=0;if(0<a.borderSize||!b)a.padding=ja.resolve(a.get_fast(),"padding")?B.parseInt(ba.resolve(a.get_fast(),"padding")):c};Ca.__setPosition=function(a,b,c){if(a.x!=b&&!isNaN(b)||a.y!=
c&&!isNaN(c))a.x=b,a.y=c,null!=b?a.get_xml().set("x",null==b?"null":""+b):a.get_xml().remove("x"),null!=c?a.get_xml().set("y",null==c?"null":""+c):a.get_xml().remove("y"),a.__changed()};Ca.prototype={parent:null,isDestroyed:null,oldIndex:null,_fast:null,_signals:null,get_fast:function(){return this._fast},set_fast:function(a){a!=this._fast&&(this._fast=a,this.__fastUpdated());return this._fast},__fastUpdated:function(){var a=J.field(this,"toJSON"),b=null!=a?a.apply(this,[]):"";this.get_signals().get_setFast().dispatch();
null!=a&&b==a.apply(this,[])||this.__changed()},__changed:function(a){null==a&&(a=this);this.get_signals().get_change().dispatch(a);null!=this.parent&&this.parent.__changed(a)},get_xml:function(){return this._fast},set_xml:function(a){if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));this.set_fast(a);return this._fast},replaceXml:function(a){null!=this._fast.parent&&La._replaceChild(this._fast.parent,this._fast,a);
this.set_xml(a)},addChild:function(a){a.parent=this;a.get_xml().parent!=this.get_xml()&&(this.get_xml().addChild(a.get_xml()),this.__fastUpdated())},removeChild:function(a){this.get_xml().removeChild(a.get_xml())&&(a.parent=null,this.__fastUpdated())},remove:function(){this.destroy();null!=this.parent&&this.parent.removeChild(this)},destroy:function(){this.get_signals().get_destroy().dispatch(this);this.get_signals().get_destroy().remove(!0);this.get_signals().get_setFast().remove(!0);this.get_signals().get_change().remove(!0);
this.isDestroyed=!0;var a=this.get_xml();var b=this._fast;if(b.nodeType==z.Document)b="Document";else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.nodeName}if(kb.isMultipleTag(b))b=null;else if(b=this._fast,b.nodeType==z.Document)b="Document";else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.nodeName}this.oldIndex=
La.elementIndex(a,b)},signals:null,get_signals:function(){null==this._signals&&(this._signals=new To);return this._signals},parseString:function(a){try{var b=qb.get_innerData(a)}catch(c){wa.lastError=c,b=""}return b},toBool:function(a){return"1"!=a?"true"==a.toLowerCase():!0},parseBool:function(a){a=this.parseString(a);return this.toBool(a)},parseInt:function(a){a=this.parseString(a);return B.parseInt(a)},parseFloat:function(a){a=this.parseString(a);return parseFloat(a)},__class__:Ca,__properties__:{get_signals:"get_signals",
set_xml:"set_xml",get_xml:"get_xml",set_fast:"set_fast",get_fast:"get_fast"}};var Li=function(a){Ca.call(this);this.set_fast(a)};g["elearningwmb.xml.DemoConfig"]=Li;Li.__name__="elearningwmb.xml.DemoConfig";Li.__super__=Ca;Li.prototype=r(Ca.prototype,{getTitle:function(){return ma.resolve(this._fast,"title")&&0<qb.get_innerData(aa.resolve(this._fast,"title")).length?qb.get_innerData(aa.resolve(this._fast,"title")):"Demo version"},getText:function(){return Pb.isIOS()?ma.resolve(this._fast,"text_ios")&&
0<qb.get_innerData(aa.resolve(this._fast,"text_ios")).length?qb.get_innerData(aa.resolve(this._fast,"text_ios")):'To run this course in full you will need to purchase the non-demo App from your App Store.<br><font color="#0000ff"><a href="https://itunes.apple.com/us/artist/e-learning-wmb/id735297927" target="_blank">Click here to see all e-learning courses currently available.</a></font>':Pb.isAndroid()?ma.resolve(this._fast,"text_android")&&0<qb.get_innerData(aa.resolve(this._fast,"text_android")).length?
qb.get_innerData(aa.resolve(this._fast,"text_android")):'To run this course in full you will need to purchase the non-demo App from your App Store.<br><font color="#0000ff"><a href="https://play.google.com/store/apps/developer?id=e-Learning+WMB&hl=en_GB" target="_blank">Click here to see all e-learning courses currently available.</a></font>':ma.resolve(this._fast,"text")&&0<qb.get_innerData(aa.resolve(this._fast,"text")).length?qb.get_innerData(aa.resolve(this._fast,"text")):'This elearning is currently in demo mode. If a client, contact <font color="#0000ff"><a href="mailto:support@openelms.com" target="_blank" >support@openelms.com</a></font> to unlock the learning.'},
__class__:Li});var fd=function(){this._signals=new da};g["lib.signals.SignalSet"]=fd;fd.__name__="lib.signals.SignalSet";fd.prototype={_signals:null,getSignal:function(a){if(!Object.prototype.hasOwnProperty.call(this._signals.h,a)){var b=this._signals,c=new ya;b.h[a]=c}return this._signals.h[a]},getSignal0:function(a){return this.getSignal(a)},removeAll:function(){for(var a=Object.keys(this._signals.h),b=a.length,c=0;c<b;){var d=a[c++];this._signals.h[d].remove(!0);var e=this._signals;Object.prototype.hasOwnProperty.call(e.h,
d)&&delete e.h[d]}},__class__:fd};var To=function(){this._signals=new da};g["elearningwmb.xml.FastBaseSignalSet"]=To;To.__name__="elearningwmb.xml.FastBaseSignalSet";To.__super__=fd;To.prototype=r(fd.prototype,{setFast:null,get_setFast:function(){return this.getSignal("setFast")},change:null,get_change:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,"change")){var a=this._signals,b=new pb;a.h.change=b}return this._signals.h.change},destroy:null,get_destroy:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,
"destroy")){var a=this._signals,b=new pb;a.h.destroy=b}return this._signals.h.destroy},__class__:To,__properties__:{get_destroy:"get_destroy",get_change:"get_change",get_setFast:"get_setFast"}});var Wd=function(a){Ca.call(this);this.screenIdSum=lb.getScreenIdSum(a);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(hg.convertScreens(aa.resolve(a,"screens")))};g["elearningwmb.xml.InformationXml"]=Wd;Wd.__name__="elearningwmb.xml.InformationXml";Wd.__super__=Ca;Wd.prototype=
r(Ca.prototype,{_demo:null,screenIdSum:null,screensList:null,intro:null,menu:null,video:null,settings:null,scorm:null,navigation:null,nav_blocks:null,variables:null,onSetFast:function(){null==this.screensList?(this.screensList=new Uo(Jh.resolve(this._fast,"screen")),this.screensList.set_parent(this),this.screensList.get_signals().get_add().add(k(this,this.onAddScreens)),this.screensList.get_signals().get_remove().add(k(this,this.onRemoveScreen)),this.screensList.get_signals().get_move().add(k(this,
this.onMoveScreen))):this.screensList.update(Jh.resolve(this._fast,"screen"));this.intro=new Vo(aa.resolve(this._fast,"introduction"));this.menu=new Wo(aa.resolve(aa.resolve(this._fast,"background"),"menu"));this.video=new Dk(aa.resolve(this._fast,"video"));this.settings=new Fj(aa.resolve(this._fast,"settings"));this.scorm=new Xo(aa.resolve(this._fast,"scorm"));this.navigation=new Re(ma.resolve(this._fast,"navigation")?aa.resolve(this._fast,"navigation"):Kg.clone(Re.NAVIGATION),Ta.get_DEFAULTS());
this.addChild(this.navigation);this.nav_blocks=new Re(ma.resolve(this._fast,"nav_blocks")?aa.resolve(this._fast,"nav_blocks"):Kg.clone(Re.NAV_BLOCKS),Ta.get_BLOCKS());this.addChild(this.nav_blocks);this.variables=ma.resolve(this._fast,"variables")?new ym(aa.resolve(this._fast,"variables")):null},isDemo:function(){return ma.resolve(this._fast,"demo")?aa.resolve(this._fast,"demo").elements().hasNext()?!0:"true"==qb.get_innerData(aa.resolve(this._fast,"demo")):!1},demo:null,get_demo:function(){null==
this._demo&&(this._demo=new Li(aa.resolve(this._fast,"demo")));return this._demo},version:null,get_version:function(){if(null==this.scorm.room){if(0==this.scorm.scorm_2004)return"FREE";switch(this.get_multiplier()){case 11:return"FREE";case 13:return"LIGHT";case 17:return"STANDARD";case 19:return"TRIAL";default:return"FREE"}}else return""!=this.scorm.room&&12345!=this.get_multiplier_room()?"TRIAL":"STANDARD"},multiplier:null,get_multiplier:function(){return Math.floor(this.scorm.scorm_2004/this.screenIdSum)},
multiplier_room:null,get_multiplier_room:function(){var a=B.parseInt(this.scorm.room);return 0<a?a/lb.parseInt(this.screensList.prevMainScreen(this.screensList.get_length()-1).screen_id):0},onAddScreens:function(a){for(var b=a[0],c=0<b.get_index()?La.childIndex(this.screensList.get(b.get_index()-1).get_xml())+1:La.childIndex(this.screensList.get(a[a.length-1].get_index()+1).get_xml()),d=0;d<a.length;){var e=a[d];++d;this.get_xml().insertChild(e.get_xml(),c);++c}b.isMainScreen&&(this.menu.addItem(b,
this.settings.get_defaultThumb()),this.screensList.createMainScreenIndexes());this.get_signals().get_change().dispatch(this)},onRemoveScreen:function(a){for(var b=0;b<a.length;){var c=a[b];++b;c.destroy();this.get_xml().removeChild(c.get_xml());c.isMainScreen&&null==this.screensList.find(c.screen_id)&&(this.menu.removeItem(c.screen_id),c=function(a){return function(b){return lb.getMainId(b.screen_id)>=a[0]}}([lb.getMainId(c.screen_id)]),this.screensList.updateMainIds(c,-1),this.screensList.createMainScreenIndexes())}this.get_signals().get_change().dispatch(this)},
onMoveScreen:function(a){this.get_signals().get_change().dispatch(this)},updateTargets:function(a,b){var c=new da;c.h.item_url=b;this.menu.updateItems(a,c,!1);this.screensList.updateTargets(a,b)},__class__:Wd,__properties__:r(Ca.prototype.__properties__,{get_multiplier_room:"get_multiplier_room",get_multiplier:"get_multiplier",get_version:"get_version",get_demo:"get_demo"})});var Vo=function(a){Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.IntroConfig"]=
Vo;Vo.__name__="elearningwmb.xml.IntroConfig";Vo.__super__=Ca;Vo.prototype=r(Ca.prototype,{_showIntro:null,_loadingText1:null,_loadingText2:null,_loadingImage1:null,_loadingImage2:null,onSetFast:function(){this._showIntro=Ma.parseBool(aa.resolve(this._fast,"show_intro"));this._loadingText1=ma.resolve(this._fast,"loading_text1")?Ma.parseString(aa.resolve(this._fast,"loading_text1")):"";this._loadingText2=ma.resolve(this._fast,"loading_text2")?Ma.parseString(aa.resolve(this._fast,"loading_text2")):
"";this._loadingImage1=ma.resolve(this._fast,"loading_image1")?Ma.parseString(aa.resolve(this._fast,"loading_image1")):"";this._loadingImage2=ma.resolve(this._fast,"loading_image2")?Ma.parseString(aa.resolve(this._fast,"loading_image2")):""},get_showIntro:function(){return this._showIntro},set_showIntro:function(a){this._showIntro=a;La.setChildValue(this._fast,"show_intro",null==a?"null":""+a);this.__changed();return a},get_loadingText1:function(){return this._loadingText1},set_loadingText1:function(a){this._loadingText1=
a;La.setChildValue(this._fast,"loading_text1",a);this.__changed();return a},get_loadingImage1:function(){return this._loadingImage1},set_loadingImage1:function(a){this._loadingImage1=a;La.setChildValue(this._fast,"loading_image1",a);this.__changed();return a},get_loadingText2:function(){return this._loadingText2},set_loadingText2:function(a){this._loadingText2=a;La.setChildValue(this._fast,"loading_text2",a);this.__changed();return a},get_loadingImage2:function(){return this._loadingImage2},set_loadingImage2:function(a){this._loadingImage2=
a;La.setChildValue(this._fast,"loading_image2",a);this.__changed();return a},isLoadingScreenConfigured:function(){return ma.resolve(this._fast,"loading_text1")&&0<this._loadingText1.length||ma.resolve(this._fast,"loading_text2")&&0<this._loadingText2.length||ma.resolve(this._fast,"loading_image1")&&0<this._loadingImage1.length?!0:ma.resolve(this._fast,"loading_image2")?0<this._loadingImage2.length:!1},getBlueColor:function(){return B.parseInt("0x"+qb.get_innerData(aa.resolve(this._fast,"blue_color")))},
getOrangeColor:function(){return B.parseInt("0x"+qb.get_innerData(aa.resolve(this._fast,"orange_color")))},__class__:Vo,__properties__:r(Ca.prototype.__properties__,{set_loadingImage2:"set_loadingImage2",get_loadingImage2:"get_loadingImage2",set_loadingImage1:"set_loadingImage1",get_loadingImage1:"get_loadingImage1",set_loadingText2:"set_loadingText2",get_loadingText2:"get_loadingText2",set_loadingText1:"set_loadingText1",get_loadingText1:"get_loadingText1",set_showIntro:"set_showIntro",get_showIntro:"get_showIntro"})});
var Wo=function(a){Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.Menu"]=Wo;Wo.__name__="elearningwmb.xml.Menu";Wo.__super__=Ca;Wo.prototype=r(Ca.prototype,{items:null,hasCategories:null,categories:null,onSetFast:function(){this.items=Jh.resolve(this._fast,"item");this.hasCategories=ma.resolve(this._fast,"category");this.categories=Jh.resolve(this._fast,"category")},getItem:function(a){for(var b=0,c=0,d=this.items;c<d.length;){var e=
d[c];++c;if(b==a)return e;++b}return null},findItem:function(a){for(var b=0,c=this.items;b<c.length;){var d=c[b];++b;if(ba.resolve(d,"item_url")==a)return d}return null},getItemIndex:function(a){for(var b=-1,c=0,d=this.items;c<d.length;){var e=d[c];++c;++b;if(ba.resolve(e,"item_url")==a)return b}return-1},addItem:function(a,b){Gb.isEmpty(b)&&(b="images/thumbs/1.jpg");b=z.parse('<item item_label="'+ec.stripTags(a.get_sectionTitle())+'" item_url="'+a.screen_id+'" item_url_target="_self" thumbnail="'+
b+'"/>');if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children[0];for(var c=!1,d=0,e=this.items;d<e.length;){var f=e[d];++d;if(lb.parseInt(ba.resolve(f,"item_url"))>lb.parseInt(a.screen_id)){this.get_xml().insertChild(b,La.childIndex(f));c=!0;break}}c||this.get_xml().addChild(b);this.__fastUpdated();return this.findItem(a.screen_id)},removeItem:function(a){a=this.findItem(a);
return null!=a?(this.get_xml().removeChild(a),this.__fastUpdated(),!0):!1},updateItems:function(a,b,c){null==c&&(c=!0);for(var d=-1,e=0,f=0,h=this.items;f<h.length;){var l=h[f];++f;++d;if(ba.resolve(l,"item_url")==a){for(var m=Object.keys(b.h),t=m.length,k=0;k<t;){var n=m[k++];l.set(n,b.h[n])}++e}}0<e&&(c?this.__fastUpdated():this.get_signals().get_setFast().dispatch());return e},__class__:Wo});var Bu={fromString:function(a){return a==N.__cast("play_again",String)?"play_again":"reset_screen"}},Xo=
function(a){Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.ScormConfig"]=Xo;Xo.__name__="elearningwmb.xml.ScormConfig";Xo.__super__=Ca;Xo.prototype=r(Ca.prototype,{scorm_2004:null,room:null,xmlversion:null,scorm_format:null,course_name:null,finish_screen:null,onSetFast:function(){try{this.scorm_2004=B.parseInt(qb.get_innerData(aa.resolve(this._fast,"scorm_2004")))}catch(a){wa.lastError=a,this.scorm_2004=0}this.room=null;if(ma.resolve(this._fast,
"room"))try{this.room=qb.get_innerData(aa.resolve(this._fast,"room"))}catch(a){wa.lastError=a,this.room=""}try{this.xmlversion=qb.get_innerData(aa.resolve(this._fast,"xmlversion"))}catch(a){wa.lastError=a,this.xmlversion=""}try{this.scorm_format=qb.get_innerData(aa.resolve(this._fast,"scorm_format"))}catch(a){wa.lastError=a,this.scorm_format=""}try{this.course_name=qb.get_innerData(aa.resolve(this._fast,"course_name"))}catch(a){wa.lastError=a,this.course_name=""}try{this.finish_screen=B.parseInt(qb.get_innerData(aa.resolve(this._fast,
"screen_scorm_finish")))}catch(a){wa.lastError=a,this.finish_screen=0}},__class__:Xo});var Uo=function(a){this.update(a)};g["elearningwmb.xml.ScreensList"]=Uo;Uo.__name__="elearningwmb.xml.ScreensList";Uo.prototype={parent:null,mainScreenIdxDic:null,numMainScreens:null,length:null,_screenNodes:null,_mainScreenIndexes:null,_mainScreenIdxDic:null,_signals:null,update:function(a){this._screenNodes=[];for(var b=0;b<a.length;){var c=a[b];++b;c=new Ae(c);this._screenNodes.push(c)}null!=this.parent&&this.updateParent();
this.createMainScreenIndexes()},get:function(a){return this._screenNodes[a]},getMainScreens:function(a){null==a&&(a=!1);for(var b=[],c=0,d=this._screenNodes;c<d.length;){var e=d[c];++c;e.isMainScreen&&b.push(e)}b.sort(function(a,b){return a.get_mainId()<b.get_mainId()?-1:a.get_mainId()>b.get_mainId()?1:0});if(a){var f=1;for(c=0;c<b.length;)a=b[c],++c,a.get_mainId()>f?this.updateMainIds(function(a){return a.get_mainId()>=f},f-a.get_mainId()|0):a.get_mainId()!=f&&a.set_screen_id(null==f?"null":""+f),
f+=1}return b},getScreensIds:function(){for(var a=new hb,b=0,c=this._screenNodes;b<c.length;){var d=c[b];++b;a.push(d.screen_id)}return a},getNarratorVideos:function(){for(var a=[],b=0,c=this._screenNodes;b<c.length;){var d=c[b];++b;for(var e=0,f=d.narratorNodes;e<f.length;)++e,d.narratorNode.isVideo&&a.push(d.narratorNode.playPath)}return a},createMainScreenIndexes:function(){var a=0,b=0;this._mainScreenIndexes=[];this._mainScreenIdxDic=new da;for(var c=0,d=this._screenNodes;c<d.length;){var e=d[c];
++c;if(e.isMainScreen){var f=a++;this._mainScreenIdxDic.h[e.screen_id]=f;this._mainScreenIndexes.push(b)}++b}},getIndex:function(a){for(var b=0,c=0,d=this._screenNodes;c<d.length;){var e=d[c];++c;if(e.screen_id==a)return b;++b}return-1},find:function(a){for(var b=0,c=this._screenNodes;b<c.length;){var d=c[b];++b;if(d.screen_id==a)return d}return null},findAll:function(a){for(var b=[],c=0,d=this._screenNodes;c<d.length;){var e=d[c];++c;-1<a.indexOf(e.screen_id)&&b.push(e)}return b},prevMainScreen:function(a){for(var b;0<=
a;)if(b=this.get(a--),null!=b&&b.isMainScreen)return b;return null},nextMainScreenIndex:function(a){for(;a<this.get_length()&&!this._screenNodes[a].isMainScreen;)++a;return a},getSubScreens:function(a){var b=[];if(0==a.indexOf("s"))for(var c=0,d=this._screenNodes;c<d.length;){var e=d[c];++c;e.screen_id!=a&&0==e.screen_id.indexOf(a)&&B.string(e.get_mainId())==a&&b.push(e)}else if(1>=a.length)for(c=0,d=this._screenNodes;c<d.length;){e=d[c];++c;var f=e.screen_id;G.substr(f,0,1)==G.substr(a,0,1)&&3==
f.length&&b.push(e)}else for(c=0,d=this._screenNodes;c<d.length;)e=d[c],++c,f=e.screen_id,G.substr(f,0,2)==G.substr(a,0,2)&&4==f.length&&b.push(e);return b},restoreVisitedScreens:function(a,b,c){null==c&&(c=!1);for(var d=0,e=this._mainScreenIndexes;d<e.length;){var f=e[d];++d;if(-1==a.indexOf(f)){if(c&&5<lb.parseInt(this.get(f).screen_id))break;if(f>b)break;a.push(f)}}},set_parent:function(a){this.parent=a;this.updateParent();return this.parent},updateParent:function(){for(var a=0,b=this._screenNodes.length;a<
b;){var c=a++;this._screenNodes[c].parent=this.parent}},get_mainScreenIdxDic:function(){return this._mainScreenIdxDic},get_numMainScreens:function(){return this._mainScreenIndexes.length},get_length:function(){return this._screenNodes.length},add:function(a,b,c){null==c&&(c=!1);null==b&&(b=-1);c?b=-1<b?this.nextMainScreenIndex(b):this._screenNodes.length:-1>=b&&(b=this._screenNodes.length);if(b>=this._screenNodes.length){b=this._screenNodes.length;var d=c?lb.updateMain(B.string(this._screenNodes[this._screenNodes.length-
1].get_mainId()),1):lb.updateSub(this._screenNodes[this._screenNodes.length-1].screen_id,1)}else d=!c&&this._screenNodes[b].isMainScreen?lb.updateSub(this._screenNodes[Math.max(0,b-1)|0].screen_id,1):this._screenNodes[b].screen_id;for(var e=[],f=Object.create(null),h=0;h<a.length;){var l=a[h];++h;l=z.parse(l);if(l.nodeType!=z.Document&&l.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==l.nodeType?"null":V.toString(l.nodeType)));l=aa.resolve(l,"screen");if(!ma.resolve(l,"screen_id")){var m=
z.parse("<screen_id></screen_id>");if(m.nodeType!=z.Document&&m.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==m.nodeType?"null":V.toString(m.nodeType)));l.addChild(m.children[0])}m=l.elementsNamed("screen_id").next();if(m.nodeType!=z.Document&&m.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==m.nodeType?"null":V.toString(m.nodeType)));m=m.children[0];if(m.nodeType==z.Document||m.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+
(null==m.nodeType?"null":V.toString(m.nodeType)));m=m.nodeValue;var t=0==e.length?d:lb.updateSub(d,e.length);0<m.length&&(f[m]=t);m=l.elementsNamed("screen_id").next();if(m.nodeType!=z.Document&&m.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==m.nodeType?"null":V.toString(m.nodeType)));m=m.children[0];if(m.nodeType==z.Document||m.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==m.nodeType?"null":V.toString(m.nodeType)));m.nodeValue=
t;l=new Ae(l);l.parent=this.parent;if(0==e.length)if(c)m=function(a){return function(b){return lb.getMainId(b.screen_id)>=a[0]}}([lb.getMainId(l.screen_id)]),this.updateMainIds(m,1);else for(m=b,t=this.nextMainScreenIndex(b);m<t;){var k=m++;this._screenNodes[k].updateSubId(a.length)}this._screenNodes.splice(b,0,l);e.push(l);++b}a=Object.keys(f);b=a.length;for(c=0;c<b;)for(m=a[c++],h=0;h<e.length;)l=e[h],++h,l.updateTargets(m,f[m]);this.get_signals().get_add().dispatch(e);return e},remove:function(a,
b){null==b&&(b=!1);var c=[],d=this.find(a);if(null!=d){G.remove(this._screenNodes,d);c.push(d);if(d.isMainScreen)if(a=this.getSubScreens(d.screen_id),b)for(b=0;b<a.length;)d=a[b],++b,G.remove(this._screenNodes,d),c.push(d);else 0<a.length&&(a[0].makeMainScreen(d),this.updateSubIds(d.screen_id,-1));else this.updateSubIds(d.screen_id,-1);this.get_signals().get_remove().dispatch(c)}return c},move:function(a,b){var c=this.find(a),d=lb.getMainId(a),e=lb.getMainId(b);d<e?(a=function(a){return lb.getMainId(a.screen_id)>
e},this.updateMainIds(a,1),a=function(a){return lb.getMainId(a.screen_id)==d},this.updateMainIds(a,e-d+1),a=function(a){return lb.getMainId(a.screen_id)>d}):(a=function(a){return lb.getMainId(a.screen_id)>=e},this.updateMainIds(a,1),a=function(a){return lb.getMainId(a.screen_id)==d+1},this.updateMainIds(a,e-d-1),a=function(a){return lb.getMainId(a.screen_id)>d+1});this.updateMainIds(a,-1);this.sort();this.get_signals().get_move().dispatch(c)},sort:function(){if(null!=this.parent){this._screenNodes.sort(function(a,
b){if(a.get_mainId()==b.get_mainId()){a=B.parseInt(a.get_id());b=B.parseInt(b.get_id());if(a<b)return-1;if(a>b)return 1}else{if(a.get_mainId()<b.get_mainId())return-1;if(a.get_mainId()>b.get_mainId())return 1}return 0});for(var a=0,b=this._screenNodes.length;a<b;){var c=a++;this.parent.get_xml().removeChild(this._screenNodes[c].get_xml())}a=0;for(b=this._screenNodes.length;a<b;)c=a++,this.parent.get_xml().addChild(this._screenNodes[c].get_xml());this.createMainScreenIndexes()}},updateMainIds:function(a,
b){for(var c=this._screenNodes.length-1,d=0,e=this._screenNodes.length;d<e;){var f=d++;f=this._screenNodes[0<b?c-f:f];a(f)&&f.updateMainId(b)}},updateSubIds:function(a,b){var c=lb.getMainId(a);c=this.getSubScreens(null==c?"null":""+c);a=lb.parseInt(a);for(var d=0;d<c.length;){var e=c[d];++d;lb.parseInt(e.screen_id)>=a&&e.updateSubId(b)}},updateTargets:function(a,b){for(var c=0,d=this._screenNodes;c<d.length;){var e=d[c];++c;e.updateTargets(a,b)}},signals:null,get_signals:function(){null==this._signals&&
(this._signals=new Yo);return this._signals},__class__:Uo,__properties__:{get_signals:"get_signals",get_length:"get_length",get_numMainScreens:"get_numMainScreens",get_mainScreenIdxDic:"get_mainScreenIdxDic",set_parent:"set_parent"}};var Yo=function(){this._signals=new da};g["elearningwmb.xml.ScreensListSignalSet"]=Yo;Yo.__name__="elearningwmb.xml.ScreensListSignalSet";Yo.__super__=fd;Yo.prototype=r(fd.prototype,{add:null,get_add:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,
"add")){var a=this._signals,b=new pb;a.h.add=b}return this._signals.h.add},remove:null,get_remove:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,"remove")){var a=this._signals,b=new pb;a.h.remove=b}return this._signals.h.remove},move:null,get_move:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,"move")){var a=this._signals,b=new pb;a.h.move=b}return this._signals.h.move},__class__:Yo,__properties__:{get_move:"get_move",get_remove:"get_remove",get_add:"get_add"}});
var Fj=function(a){Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.Settings"]=Fj;Fj.__name__="elearningwmb.xml.Settings";Fj.__super__=Ca;Fj.prototype=r(Ca.prototype,{showBackground:null,showPrintBtn:null,showRefreshBtn:null,showToggleNarratorBtn:null,showHomeBtn:null,preloader:null,hideTitleAndContent:null,refreshBtnFunc:null,tryWebGL:null,imageDelay:null,contentDelay:null,embedDelay:null,lessonLocationNew:null,closeSubmitted:null,menuLogo:null,
menuLogoUrl:null,_titleColor:null,_defaultBackground:null,_defaultThumb:null,_showSecondMenu:null,_menuUnlocked:null,_showTextToggleButton:null,_setStatusToPassed:null,_fadeNarrator:null,_videoFadesIn:null,_logo:null,_voice:null,_largeMenuTab:null,onSetFast:function(){this._defaultBackground=ma.resolve(this._fast,"default_background")?Ma.parseString(aa.resolve(this._fast,"default_background")):"";this._defaultThumb=ma.resolve(this._fast,"default_thumb")?Ma.parseString(aa.resolve(this._fast,"default_thumb")):
null;this._showSecondMenu=ma.resolve(this._fast,"show_second_menu")&&Ma.parseBool(aa.resolve(this._fast,"show_second_menu"));this._menuUnlocked=ma.resolve(this._fast,"menu_unlocked")&&Ma.parseBool(aa.resolve(this._fast,"menu_unlocked"));this._setStatusToPassed=!ma.resolve(this._fast,"status_set_to_passed")||Ma.parseBool(aa.resolve(this._fast,"status_set_to_passed"));this._fadeNarrator=!ma.resolve(this._fast,"fade_narrator")||"false"!=qb.get_innerData(aa.resolve(this._fast,"fade_narrator"));this._videoFadesIn=
!ma.resolve(this._fast,"video_fades_in")||"false"!=qb.get_innerData(aa.resolve(this._fast,"video_fades_in"));this._titleColor=ma.resolve(this._fast,"title_color")?B.parseInt(qb.get_innerData(aa.resolve(this._fast,"title_color")).replace(/^#/,"0x")):null;this._logo=ma.resolve(this._fast,"logo")?Ma.parseString(aa.resolve(this._fast,"logo")):null;this._voice=ma.resolve(this._fast,"voice")?Ma.parseString(aa.resolve(this._fast,"voice")):"Fable";this._largeMenuTab=ma.resolve(this._fast,"large_menu_tab")&&
Ma.parseBool(aa.resolve(this._fast,"large_menu_tab"));this.showBackground=ma.resolve(this._fast,"show_background")&&Ma.parseBool(aa.resolve(this._fast,"show_background"));this.showPrintBtn=ma.resolve(this._fast,"show_print_btn")&&Ma.parseBool(aa.resolve(this._fast,"show_print_btn"));this.set_showTextToggleButton(!ma.resolve(this._fast,"show_text_toggle_button")||Ma.parseBool(aa.resolve(this._fast,"show_text_toggle_button")));this.showRefreshBtn=!ma.resolve(this._fast,"show_refresh_button")||Ma.parseBool(aa.resolve(this._fast,
"show_refresh_button"));this.showToggleNarratorBtn=!ma.resolve(this._fast,"show_toggle_narrator_button")||Ma.parseBool(aa.resolve(this._fast,"show_toggle_narrator_button"));this.showHomeBtn=!ma.resolve(this._fast,"show_home_button")||Ma.parseBool(aa.resolve(this._fast,"show_home_button"));this.preloader=!ma.resolve(this._fast,"preloader")||0<B.parseInt(qb.get_innerData(aa.resolve(this._fast,"preloader")));this.hideTitleAndContent=ma.resolve(this._fast,"hide_title_and_content")&&"true"==qb.get_innerData(aa.resolve(this._fast,
"hide_title_and_content"));this.refreshBtnFunc=ma.resolve(this._fast,"refresh_button_func")?Bu.fromString(Ma.parseString(aa.resolve(this._fast,"refresh_button_func"))):"reset_screen";this.tryWebGL=ma.resolve(this._fast,"try_webgl")&&"true"==qb.get_innerData(aa.resolve(this._fast,"try_webgl"));this.imageDelay=ma.resolve(this._fast,"image_delay")?Kg.asInt(aa.resolve(this._fast,"image_delay")):0;this.contentDelay=ma.resolve(this._fast,"content_delay")?Kg.asInt(aa.resolve(this._fast,"content_delay")):
0;this.embedDelay=ma.resolve(this._fast,"embed_delay")?Kg.asInt(aa.resolve(this._fast,"embed_delay")):0;this.lessonLocationNew=ma.resolve(this._fast,"lesson_location_new")?0!=Ma.parseBool(aa.resolve(this._fast,"lesson_location_new")):!0;this.closeSubmitted=ma.resolve(this._fast,"close_submitted")?0!=Ma.parseBool(aa.resolve(this._fast,"close_submitted")):!0;this.set_menuLogo(ma.resolve(this._fast,"menu_logo")?Ma.parseString(aa.resolve(this._fast,"menu_logo")):null);this.set_menuLogoUrl(ma.resolve(this._fast,
"menu_logo_url")?Ma.parseString(aa.resolve(this._fast,"menu_logo_url")):null)},get_defaultThumb:function(){return this._defaultThumb},set_defaultThumb:function(a){this._defaultThumb=a;La.setChildValue(this._fast,"default_thumb",a);this.__changed();return a},get_defaultBackground:function(){return this._defaultBackground},set_defaultBackground:function(a){this._defaultBackground=a;La.setChildValue(this._fast,"default_background",a);this.__changed();return a},get_logo:function(){return this._logo},
set_logo:function(a){this._logo=a;La.setChildValue(this._fast,"logo",a);this.__changed();return a},set_menuLogo:function(a){this.menuLogo=a;La.setChildValue(this._fast,"menu_logo",a);this.__changed();return a},set_menuLogoUrl:function(a){this.menuLogoUrl=a;La.setChildValue(this._fast,"menu_logo_url",a);this.__changed();return a},get_titleColor:function(){return this._titleColor},set_titleColor:function(a){this._titleColor=a;this.set_titleColorStr(this.get_titleColorStr());return a},get_titleColorStr:function(){return null!=
this._titleColor?"#"+ia.hex(this._titleColor,6):null},set_titleColorStr:function(a){La.setChildValue(this._fast,"title_color",null!=a?a:"");this.__changed();return a},get_showSecondMenu:function(){return this._showSecondMenu},set_showSecondMenu:function(a){this._showSecondMenu=a;La.setChildValue(this._fast,"show_second_menu",null==a?"null":""+a);this.__changed();return a},get_menuUnlocked:function(){return this._menuUnlocked},set_menuUnlocked:function(a){this._menuUnlocked=a;La.setChildValue(this._fast,
"menu_unlocked",null==a?"null":""+a);this.__changed();return a},get_showTextToggleButton:function(){return this._showTextToggleButton},set_showTextToggleButton:function(a){this._showTextToggleButton=a;La.setChildValue(this._fast,"show_text_toggle_button",null==a?"null":""+a);this.__changed();return a},get_setStatusToPassed:function(){return this._setStatusToPassed},set_setStatusToPassed:function(a){this._setStatusToPassed=a;La.setChildValue(this._fast,"status_set_to_passed",null==a?"null":""+a);this.__changed();
return a},get_fadeNarrator:function(){return this._fadeNarrator},set_fadeNarrator:function(a){this._fadeNarrator=a;La.setChildValue(this._fast,"fade_narrator",null==a?"null":""+a);this.__changed();return a},get_videoFadesIn:function(){return this._videoFadesIn},set_videoFadesIn:function(a){this._videoFadesIn=a;La.setChildValue(this._fast,"video_fades_in",null==a?"null":""+a);this.__changed();return a},get_voice:function(){return this._voice},set_voice:function(a){this._voice=a;La.setChildValue(this._fast,
"voice",null==a?"null":""+a);this.__changed();return a},get_largeMenuTab:function(){return this._largeMenuTab},set_largeMenuTab:function(a){this._largeMenuTab=a;La.setChildValue(this._fast,"large_menu_tab",null==a?"null":""+a);this.__changed();return a},__class__:Fj,__properties__:r(Ca.prototype.__properties__,{set_menuLogoUrl:"set_menuLogoUrl",set_menuLogo:"set_menuLogo",set_largeMenuTab:"set_largeMenuTab",get_largeMenuTab:"get_largeMenuTab",set_voice:"set_voice",get_voice:"get_voice",set_logo:"set_logo",
get_logo:"get_logo",set_videoFadesIn:"set_videoFadesIn",get_videoFadesIn:"get_videoFadesIn",set_fadeNarrator:"set_fadeNarrator",get_fadeNarrator:"get_fadeNarrator",set_setStatusToPassed:"set_setStatusToPassed",get_setStatusToPassed:"get_setStatusToPassed",set_showTextToggleButton:"set_showTextToggleButton",get_showTextToggleButton:"get_showTextToggleButton",set_menuUnlocked:"set_menuUnlocked",get_menuUnlocked:"get_menuUnlocked",set_showSecondMenu:"set_showSecondMenu",get_showSecondMenu:"get_showSecondMenu",
set_defaultThumb:"set_defaultThumb",get_defaultThumb:"get_defaultThumb",set_defaultBackground:"set_defaultBackground",get_defaultBackground:"get_defaultBackground",set_titleColorStr:"set_titleColorStr",get_titleColorStr:"get_titleColorStr",set_titleColor:"set_titleColor",get_titleColor:"get_titleColor"})});var ym=function(a){Ca.call(this);this.set_fast(a)};g["elearningwmb.xml.VariablesConfig"]=ym;ym.__name__="elearningwmb.xml.VariablesConfig";ym.__super__=Ca;ym.prototype=r(Ca.prototype,{elements:null,
get_elements:function(){return this._fast.elements()},__class__:ym,__properties__:r(Ca.prototype.__properties__,{get_elements:"get_elements"})});var Dk=function(a){Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.VideoConfig"]=Dk;Dk.__name__="elearningwmb.xml.VideoConfig";Dk.__super__=Ca;Dk.prototype=r(Ca.prototype,{server:null,name:null,width:null,height:null,showProgress:null,_slidesIn:null,_fileVisible:null,onSetFast:function(){this._slidesIn=
ma.resolve(this._fast,"video_slides_in")&&Ma.parseBool(aa.resolve(this._fast,"video_slides_in"));this._fileVisible=ma.resolve(this._fast,"video_file_visible")&&Ma.parseBool(aa.resolve(this._fast,"video_file_visible"));this.server=ma.resolve(this._fast,"server")?Ma.parseString(aa.resolve(this._fast,"server")):"";this.name=ma.resolve(this._fast,"vid")?Ma.parseString(aa.resolve(this._fast,"vid")):null;this.width=ma.resolve(this._fast,"video_width")?Ma.parseFloat(aa.resolve(this._fast,"video_width")):
null;this.height=ma.resolve(this._fast,"video_height")?Ma.parseFloat(aa.resolve(this._fast,"video_height")):null;this.showProgress=ma.resolve(this._fast,"show_progress")?Ma.parseString(aa.resolve(this._fast,"show_progress")):"hover"},get_slidesIn:function(){return this._slidesIn},set_slidesIn:function(a){this._slidesIn=a;La.setChildValue(this._fast,"video_slides_in",null==a?"null":""+a);this.__changed();return a},get_fileVisible:function(){return this._fileVisible},set_fileVisible:function(a){this._fileVisible=
a;La.setChildValue(this._fast,"video_file_visible",null==a?"null":""+a);this.__changed();return a},__class__:Dk,__properties__:r(Ca.prototype.__properties__,{set_fileVisible:"set_fileVisible",get_fileVisible:"get_fileVisible",set_slidesIn:"set_slidesIn",get_slidesIn:"get_slidesIn"})});var Lg=function(){};g["elearningwmb.xml.screen.IMovable"]=Lg;Lg.__name__="elearningwmb.xml.screen.IMovable";Lg.__isInterface__=!0;Lg.__interfaces__=[Ki];Lg.prototype={x:null,y:null,setPosition:null,__class__:Lg};var da=
function(){this.h=Object.create(null)};g["haxe.ds.StringMap"]=da;da.__name__="haxe.ds.StringMap";da.__interfaces__=[ca];da.stringify=function(a){var b="[",c=!0,d;for(d in a)c?c=!1:b+=",",b+=d+" => "+B.string(a[d]);return b+"]"};da.prototype={h:null,exists:function(a){return Object.prototype.hasOwnProperty.call(this.h,a)},get:function(a){return this.h[a]},set:function(a,b){this.h[a]=b},remove:function(a){return Object.prototype.hasOwnProperty.call(this.h,a)?(delete this.h[a],!0):!1},keys:function(){return new Qo(this.h)},
iterator:function(){return new zm(this.h)},keyValueIterator:function(){return new xs(this.h)},__class__:da};var Gi=function(){};g["haxe.xml.Parser"]=Gi;Gi.__name__="haxe.xml.Parser";Gi.parse=function(a,b){null==b&&(b=!1);var c=z.createDocument();Gi.doParse(a,b,0,c);return c};Gi.doParse=function(a,b,c,d){null==c&&(c=0);for(var e=null,f=1,h=1,l=null,m=0,t=0,k=0,n=new gg,g=1,q=-1;c<a.length;){var p=a.charCodeAt(c);switch(f){case 0:switch(p){case 9:case 10:case 13:case 32:break;default:f=h;continue}break;
case 1:if(60==p)f=0,h=2;else{m=c;f=13;continue}break;case 2:switch(p){case 33:if(91==a.charCodeAt(c+1)){c+=2;if("CDATA["!=G.substr(a,c,6).toUpperCase())throw u.thrown(new Fd("Expected <![CDATA[",a,c));c+=5;f=17}else if(68==a.charCodeAt(c+1)||100==a.charCodeAt(c+1)){if("OCTYPE"!=G.substr(a,c+2,6).toUpperCase())throw u.thrown(new Fd("Expected <!DOCTYPE",a,c));c+=8;f=16}else{if(45!=a.charCodeAt(c+1)||45!=a.charCodeAt(c+2))throw u.thrown(new Fd("Expected \x3c!--",a,c));c+=2;f=15}m=c+1;break;case 47:if(null==
d)throw u.thrown(new Fd("Expected node name",a,c));m=c+1;f=0;h=10;break;case 63:f=14;m=c;break;default:f=3;m=c;continue}break;case 3:if(!(97<=p&&122>=p||65<=p&&90>=p||48<=p&&57>=p||58==p||46==p||95==p||45==p)){if(c==m)throw u.thrown(new Fd("Expected node name",a,c));e=z.createElement(G.substr(a,m,c-m));d.addChild(e);++t;f=0;h=4;continue}break;case 4:switch(p){case 47:f=11;break;case 62:f=9;break;default:f=5;m=c;continue}break;case 5:if(!(97<=p&&122>=p||65<=p&&90>=p||48<=p&&57>=p||58==p||46==p||95==
p||45==p)){if(m==c)throw u.thrown(new Fd("Expected attribute name",a,c));l=G.substr(a,m,c-m);if(e.exists(l))throw u.thrown(new Fd("Duplicate attribute ["+l+"]",a,c));f=0;h=6;continue}break;case 6:if(61==p)f=0,h=7;else throw u.thrown(new Fd("Expected =",a,c));break;case 7:switch(p){case 34:case 39:n=new gg;f=8;m=c+1;q=p;break;default:throw u.thrown(new Fd('Expected "',a,c));}break;case 8:switch(p){case 38:g=c-m;n.b+=null==g?G.substr(a,m,null):G.substr(a,m,g);f=18;g=8;m=c+1;break;case 60:case 62:if(b)throw u.thrown(new Fd("Invalid unescaped "+
String.fromCodePoint(p)+" in attribute value",a,c));p==q&&(h=c-m,n.b+=null==h?G.substr(a,m,null):G.substr(a,m,h),h=n.b,n=new gg,e.set(l,h),f=0,h=4);break;default:p==q&&(h=c-m,n.b+=null==h?G.substr(a,m,null):G.substr(a,m,h),h=n.b,n=new gg,e.set(l,h),f=0,h=4)}break;case 9:m=c=Gi.doParse(a,b,c,e);f=1;break;case 10:if(!(97<=p&&122>=p||65<=p&&90>=p||48<=p&&57>=p||58==p||46==p||95==p||45==p)){if(m==c)throw u.thrown(new Fd("Expected node name",a,c));h=G.substr(a,m,c-m);if(null==d||0!=d.nodeType)throw u.thrown(new Fd("Unexpected </"+
h+">, tag is not open",a,c));if(d.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==d.nodeType?"null":V.toString(d.nodeType)));if(h!=d.nodeName){if(d.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==d.nodeType?"null":V.toString(d.nodeType)));throw u.thrown(new Fd("Expected </"+d.nodeName+">",a,c));}f=0;h=12;continue}break;case 11:if(62==p)f=1;else throw u.thrown(new Fd("Expected >",a,c));break;case 12:if(62==p)return 0==t&&
d.addChild(z.createPCData("")),c;throw u.thrown(new Fd("Expected >",a,c));case 13:60==p?(h=c-m,n.b+=null==h?G.substr(a,m,null):G.substr(a,m,h),h=z.createPCData(n.b),n=new gg,d.addChild(h),++t,f=0,h=2):38==p&&(g=c-m,n.b+=null==g?G.substr(a,m,null):G.substr(a,m,g),f=18,g=13,m=c+1);break;case 14:63==p&&62==a.charCodeAt(c+1)&&(++c,f=G.substr(a,m+1,c-m-2),d.addChild(z.createProcessingInstruction(f)),++t,f=1);break;case 15:45==p&&45==a.charCodeAt(c+1)&&62==a.charCodeAt(c+2)&&(d.addChild(z.createComment(G.substr(a,
m,c-m))),++t,c+=2,f=1);break;case 16:91==p?++k:93==p?--k:62==p&&0==k&&(d.addChild(z.createDocType(G.substr(a,m,c-m))),++t,f=1);break;case 17:93==p&&93==a.charCodeAt(c+1)&&62==a.charCodeAt(c+2)&&(f=z.createCData(G.substr(a,m,c-m)),d.addChild(f),++t,c+=2,f=1);break;case 18:if(59==p){m=G.substr(a,m,c-m);if(35==m.charCodeAt(0))m=120==m.charCodeAt(1)?B.parseInt("0"+G.substr(m,1,m.length-1)):B.parseInt(G.substr(m,1,m.length-1)),n.b+=String.fromCodePoint(m);else if(Object.prototype.hasOwnProperty.call(Gi.escapes.h,
m))n.b+=B.string(Gi.escapes.h[m]);else{if(b)throw u.thrown(new Fd("Undefined entity: "+m,a,c));n.b+=B.string("&"+m+";")}m=c+1;f=g}else if(!(97<=p&&122>=p||65<=p&&90>=p||48<=p&&57>=p||58==p||46==p||95==p||45==p)&&35!=p){if(b)throw u.thrown(new Fd("Invalid character in entity: "+String.fromCodePoint(p),a,c));n.b+=String.fromCodePoint(38);f=c-m;n.b+=null==f?G.substr(a,m,null):G.substr(a,m,f);--c;m=c+1;f=g}}++c}1==f&&(m=c,f=13);if(13==f){if(0==d.nodeType){if(d.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+
(null==d.nodeType?"null":V.toString(d.nodeType)));throw u.thrown(new Fd("Unclosed node <"+d.nodeName+">",a,c));}if(c!=m||0==t)g=c-m,n.b+=null==g?G.substr(a,m,null):G.substr(a,m,g),d.addChild(z.createPCData(n.b));return c}if(!b&&18==f&&13==g)return n.b+=String.fromCodePoint(38),g=c-m,n.b+=null==g?G.substr(a,m,null):G.substr(a,m,g),d.addChild(z.createPCData(n.b)),c;throw u.thrown(new Fd("Unexpected end",a,c));};var Fd=function(a,b,c){this.xml=b;this.message=a;this.position=c;this.lineNumber=1;for(a=
this.positionAtLine=0;a<c;){var d=a++;d=b.charCodeAt(d);10==d?(this.lineNumber++,this.positionAtLine=0):13!=d&&this.positionAtLine++}};g["haxe.xml.XmlParserException"]=Fd;Fd.__name__="haxe.xml.XmlParserException";Fd.prototype={message:null,lineNumber:null,positionAtLine:null,position:null,xml:null,toString:function(){return N.getClass(this).__name__+": "+this.message+" at line "+this.lineNumber+" char "+this.positionAtLine},__class__:Fd};var N=function(){};g["js.Boot"]=N;N.__name__="js.Boot";N.getClass=
function(a){if(null==a)return null;if(a instanceof Array)return Array;var b=a.__class__;if(null!=b)return b;a=N.__nativeClassName(a);return null!=a?N.__resolveNativeClass(a):null};N.__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"<function>";case "object":if(a.__enum__){var d=P[a.__enum__].__constructs__[a._hx_index];c=d._hx_name;if(d.__params__){b+="\t";var e=[],
f=0;for(d=d.__params__;f<d.length;){var h=d[f];f+=1;e.push(N.__string_rec(a[h],b))}return c+"("+e.join(",")+")"}return c}if(a instanceof Array){c="[";b+="\t";e=0;for(f=a.length;e<f;)d=e++,c+=(0<d?",":"")+N.__string_rec(a[d],b);return c+"]"}try{e=a.toString}catch(l){return wa.lastError=l,"???"}if(null!=e&&e!=Object.toString&&"function"==typeof e&&(c=a.toString(),"[object Object]"!=c))return c;c="{\n";b+="\t";e=null!=a.hasOwnProperty;f=null;for(f in a)e&&!a.hasOwnProperty(f)||"prototype"==f||"__class__"==
f||"__super__"==f||"__interfaces__"==f||"__properties__"==f||(2!=c.length&&(c+=", \n"),c+=b+f+" : "+N.__string_rec(a[f],b));b=b.substring(1);return c+("\n"+b+"}");case "string":return a;default:return String(a)}};N.__interfLoop=function(a,b){if(null==a)return!1;if(a==b)return!0;var c=a.__interfaces__;if(null!=c)for(var d=0,e=c.length;d<e;){var f=d++;f=c[f];if(f==b||N.__interfLoop(f,b))return!0}return N.__interfLoop(a.__super__,b)};N.__instanceof=function(a,b){if(null==b)return!1;switch(b){case Array:return a instanceof
Array;case Ju:return"boolean"==typeof a;case Tu:return null!=a;case Ku:return"number"==typeof a;case jh:return"number"==typeof a?(a|0)===a:!1;case String:return"string"==typeof a;default:if(null!=a)if("function"==typeof b){if(N.__downcastCheck(a,b))return!0}else{if("object"==typeof b&&N.__isNativeObj(b)&&a instanceof b)return!0}else return!1;return b==Gd&&null!=a.__name__||b==Lu&&null!=a.__ename__?!0:null!=a.__enum__?P[a.__enum__]==b:!1}};N.__downcastCheck=function(a,b){return a instanceof b?!0:b.__isInterface__?
N.__interfLoop(N.getClass(a),b):!1};N.__implements=function(a,b){return N.__interfLoop(N.getClass(a),b)};N.__cast=function(a,b){if(null==a||N.__instanceof(a,b))return a;throw u.thrown("Cannot cast "+B.string(a)+" to "+B.string(b));};N.__nativeClassName=function(a){a=N.__toStr.call(a).slice(8,-1);return"Object"==a||"Function"==a||"Math"==a||"JSON"==a?null:a};N.__isNativeObj=function(a){return null!=N.__nativeClassName(a)};N.__resolveNativeClass=function(a){return E[a]};var Ta=function(a){this.x=this.y=
null;Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.navigation.ButtonNode"]=Ta;Ta.__name__="elearningwmb.xml.navigation.ButtonNode";Ta.__interfaces__=[Lg];Ta.__properties__={get_BLOCKS:"get_BLOCKS",get_DEFAULTS:"get_DEFAULTS",get_ALL:"get_ALL"};Ta.get_ALL=function(){if(null==Ta._ALL){Ta._ALL=new da;var a=Ta.NEXT,b=Ta._ALL,c=ba.resolve(a,"name");b.h[c]=a;a=Ta.PREV;b=Ta._ALL;c=ba.resolve(a,"name");b.h[c]=a;a=Ta.YES;b=Ta._ALL;c=ba.resolve(a,
"name");b.h[c]=a;a=Ta.NO;b=Ta._ALL;c=ba.resolve(a,"name");b.h[c]=a;a=Ta.SKIP;b=Ta._ALL;c=ba.resolve(a,"name");b.h[c]=a;a=Ta.QUIZ;b=Ta._ALL;c=ba.resolve(a,"name");b.h[c]=a}return Ta._ALL};Ta.get_DEFAULTS=function(){if(null==Ta._DEFAULTS){Ta._DEFAULTS=new da;var a=Ta.NEXT,b=Ta._DEFAULTS,c=ba.resolve(a,"name");b.h[c]=a;a=Ta.PREV;b=Ta._DEFAULTS;c=ba.resolve(a,"name");b.h[c]=a;a=Ta.YES;b=Ta._DEFAULTS;c=ba.resolve(a,"name");b.h[c]=a;a=Ta.NO;b=Ta._DEFAULTS;c=ba.resolve(a,"name");b.h[c]=a}return Ta._DEFAULTS};
Ta.get_BLOCKS=function(){if(null==Ta._BLOCKS){Ta._BLOCKS=new da;var a=Ta.SKIP,b=Ta._BLOCKS,c=ba.resolve(a,"name");b.h[c]=a}return Ta._BLOCKS};Ta.__super__=Ca;Ta.prototype=r(Ca.prototype,{x:null,y:null,width:null,height:null,command:null,isNext:null,isPrev:null,questionID:null,addResources:null,removeResources:null,button:null,_name:null,_x:null,_y:null,_visible:null,_asset:null,_delay:null,onSetFast:function(){this._name=ba.resolve(this._fast,"name");var a=Ta.get_ALL();if(Object.prototype.hasOwnProperty.call(a.h,
this._name))a=Ta.get_ALL().h[this._name];else{a=z.parse('<button x="0" y="0" width="75" height="60" />');if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));}ja.resolve(this._fast,"x")&&(this.x=parseFloat(ba.resolve(this._fast,"x")));
ja.resolve(this._fast,"y")&&(this.y=parseFloat(ba.resolve(this._fast,"y")));ja.resolve(this._fast,"width")&&(this.width=parseFloat(ba.resolve(this._fast,"width")));ja.resolve(this._fast,"height")&&(this.height=parseFloat(ba.resolve(this._fast,"height")));if("yes"!=this._name&&"no"!=this._name&&"next"!=this._name&&"prev"!=this._name){if(null!=this.x){var b=this.x;b=isNaN(b)}else b=!0;b&&(this.x=parseFloat(ba.resolve(a,"x")));null!=this.y?(b=this.y,b=isNaN(b)):b=!0;b&&(this.y=parseFloat(ba.resolve(a,
"y")));null!=this.width?(b=this.width,b=isNaN(b)):b=!0;b&&(this.width=parseFloat(ba.resolve(a,"width")));null!=this.height?(b=this.width,b=isNaN(b)):b=!0;b&&(this.height=parseFloat(ba.resolve(a,"height")))}this._visible="false"!=(ja.resolve(this._fast,"visible")?ba.resolve(this._fast,"visible"):ja.resolve(a,"visible")?ba.resolve(a,"visible"):"");this.set_command(ja.resolve(this._fast,"command")?ba.resolve(this._fast,"command"):"yes"==this._name||"no"==this._name?"next":this._name);this.isNext=this._name==
ba.resolve(Ta.NEXT,"name");this.isPrev=this._name==ba.resolve(Ta.PREV,"name");this.questionID=ja.resolve(this._fast,"QuestionID")?ba.resolve(this._fast,"QuestionID"):null;this.addResources=ja.resolve(this._fast,"addResources")?ba.resolve(this._fast,"addResources"):null;this.removeResources=ja.resolve(this._fast,"removeResources")?ba.resolve(this._fast,"removeResources"):null;this._asset=ja.resolve(this._fast,"asset")?ba.resolve(this._fast,"asset"):this._name;this._delay=ja.resolve(this._fast,"delay")?
B.parseInt(ba.resolve(this._fast,"delay")):null},get_name:function(){return this._name},set_name:function(a){a!=this._name&&(this._name=a,this._fast.set("name",a),this.__changed());return a},get_asset:function(){return this._asset},set_asset:function(a){a!=this._asset&&(this._asset=a,this._fast.set("asset",a),this.__changed());return a},setPosition:function(a,b){if(this.x!=a&&!isNaN(a)||this.y!=b&&!isNaN(b))this.x=a,this.y=b,null!=a?this.get_xml().set("x",null==a?"null":""+a):this.get_xml().remove("x"),
null!=b?this.get_xml().set("y",null==b?"null":""+b):this.get_xml().remove("y"),this.__changed()},get_visible:function(){return this._visible},set_visible:function(a){a!=this._visible&&(this._visible=a,this._fast.set("visible",a?"true":"false"),this.__changed());return a},get_delay:function(){return this._delay},set_delay:function(a){this._delay=a;this._fast.set("delay",null==a?"":null==a?"null":""+a);this.__changed();return a},set_command:function(a){this.command=a;this._fast.set("command",null==
a?"":null==a?"null":""+a);this.__changed();return a},getDelay:function(){return null==this._delay?null!=this.parent?N.__cast(this.parent,Re).getDelay():0:this._delay},get_button:function(){if("next"==this.get_asset()||"yes"==this.get_asset()||"prev"==this.get_asset()||"no"==this.get_asset())var a=la.navButton(this.get_asset());else a=Jc.getButton("button/"+this.get_asset(),!0),0<this.width&&a.set_width(this.width),0<this.height&&a.set_height(this.height);a.set_name(this._name);return a},__class__:Ta,
__properties__:r(Ca.prototype.__properties__,{get_button:"get_button",set_delay:"set_delay",get_delay:"get_delay",set_asset:"set_asset",get_asset:"get_asset",set_command:"set_command",set_visible:"set_visible",get_visible:"get_visible",set_name:"set_name",get_name:"get_name"})});var Re=function(a,b){this._delay=null;Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a);this.hasButtons()||null==b||this.addButtons(b)};g["elearningwmb.xml.navigation.NavigationNode"]=
Re;Re.__name__="elearningwmb.xml.navigation.NavigationNode";Re.__super__=Ca;Re.prototype=r(Ca.prototype,{buttons:null,buttonsXml:null,_delay:null,onSetFast:function(){this.buttons=new da;for(var a=0,b=Jh.resolve(this._fast,"button");a<b.length;){var c=b[a];++a;c=new Ta(c);c.parent=this;var d=this.buttons,e=c.get_name();d.h[e]=c}this._delay=null;ja.resolve(this._fast,"delay")&&(this._delay=B.parseInt(ba.resolve(this._fast,"delay")))},addButtons:function(a){for(a=M(a);a.hasNext();){var b=a.next();this.get_xml().addChild(La.clone(b))}this.__fastUpdated()},
removeButtons:function(){for(var a=this.buttons.h,b=Object.keys(a),c=b.length,d=0;d<c;){var e=a[b[d++]];this.get_xml().removeChild(e.get_xml())}this.__fastUpdated()},copyButtons:function(a){for(var b=Object.keys(a.h),c=b.length,d=0;d<c;){var e=b[d++];this.get_xml().addChild(La.clone(a.h[e].get_xml()))}this.__fastUpdated()},isEmpty:function(){return null==this._delay?!this.hasButtons():!1},hasButtons:function(){return 0<Object.keys(this.buttons.h).length},get_buttonsXml:function(){for(var a=new da,
b=this.buttons.h,c=Object.keys(b),d=c.length,e=0;e<d;){var f=b[c[e++]],h=f.get_name();f=f.get_fast();a.h[h]=f}return a},get_delay:function(){return this._delay},set_delay:function(a){this._delay=a;this._fast.set("delay",null==a?"":null==a?"null":""+a);this.__changed();return a},getDelay:function(){return null==this._delay?null!=this.parent&&this.parent instanceof Ae&&null!=this.parent.parent?N.__cast(this.parent.parent,Wd).navigation.getDelay():0:this._delay},get_backButtonEnabled:function(){return Object.prototype.hasOwnProperty.call(this.buttons.h,
"prev")?this.buttons.h.prev.get_visible():!1},set_backButtonEnabled:function(a){Object.prototype.hasOwnProperty.call(this.buttons.h,"prev")||this.addButtons([Ta.PREV]);this.buttons.h.prev.set_visible(a);return a},__class__:Re,__properties__:r(Ca.prototype.__properties__,{set_backButtonEnabled:"set_backButtonEnabled",get_backButtonEnabled:"get_backButtonEnabled",set_delay:"set_delay",get_delay:"get_delay",get_buttonsXml:"get_buttonsXml"})});var Bk=function(a){Ca.call(this);this.get_signals().get_setFast().add(k(this,
this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.quiz.QuizAnswerNode"]=Bk;Bk.__name__="elearningwmb.xml.quiz.QuizAnswerNode";Bk.__super__=Ca;Bk.prototype=r(Ca.prototype,{score:null,taskSeverity:null,actionByID:null,text:null,taskName:null,taskDescription:null,feedback:null,match:null,resources:null,_id:null,_order:null,_correct:null,_narrator:null,onSetFast:function(){this._id=ba.resolve(this._fast,"AnswerID");this._order=B.parseInt(ba.resolve(this._fast,"Order"));this._correct=this.toBool(ba.resolve(this._fast,
"Correct"));this.score=ja.resolve(this._fast,"Score")?parseFloat(ba.resolve(this._fast,"Score")):0;this.taskSeverity=ja.resolve(this._fast,"TaskSeverity")?B.parseInt(ba.resolve(this._fast,"TaskSeverity")):0;this.actionByID=ja.resolve(this._fast,"ActionByID")?ba.resolve(this._fast,"ActionByID"):"";"0"==this.actionByID&&(this.actionByID="");this.text="";ma.resolve(this._fast,"Text")&&(this.text=Ma.parseString(aa.resolve(this._fast,"Text")));this.taskName="";ma.resolve(this._fast,"TaskName")&&(this.taskName=
Ma.parseString(aa.resolve(this._fast,"TaskName")));this.taskDescription="";ma.resolve(this._fast,"TaskDescription")&&(this.taskDescription=Ma.parseString(aa.resolve(this._fast,"TaskDescription")));this.feedback="";ma.resolve(this._fast,"Feedback")&&(this.feedback=Ma.parseString(aa.resolve(this._fast,"Feedback")));this.match="";ma.resolve(this._fast,"Match")&&(this.match=Ma.parseString(aa.resolve(this._fast,"Match")));this.resources=ja.resolve(this._fast,"Resources")?ba.resolve(this._fast,"Resources"):
""},narrator:null,get_narrator:function(){null==this._narrator&&ma.resolve(this._fast,"Narrator")&&(this._narrator=new Mi(aa.resolve(this._fast,"Narrator")));return this._narrator},updateId:function(a){a=B.string(B.parseInt(this.get_id())+a);B.parseInt(this.get_id())==this.get_order()&&this.set_order(B.parseInt(a));this.set_id(a)},get_id:function(){return this._id},set_id:function(a){a!=this._id&&(this._id=a,this._fast.set("AnswerID",a));return this._id},get_order:function(){return this._order},set_order:function(a){a!=
this._order&&(this._order=a,this._fast.set("Order",null==a?"null":""+a));return this._order},get_correct:function(){return this._correct},set_correct:function(a){a!=this._correct&&(this._correct=a,this._fast.set("Correct",null==a?"null":""+a));return this._correct},__class__:Bk,__properties__:r(Ca.prototype.__properties__,{get_narrator:"get_narrator",set_correct:"set_correct",get_correct:"get_correct",set_order:"set_order",get_order:"get_order",set_id:"set_id",get_id:"get_id"})});var Ni=function(a){Ca.call(this);
this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.quiz.QuizNode"]=Ni;Ni.__name__="elearningwmb.xml.quiz.QuizNode";Ni.__interfaces__=[Lg];Ni.__super__=Ca;Ni.prototype=r(Ca.prototype,{x:null,y:null,questions:null,_id:null,_type:null,onSetFast:function(){this._id=ja.resolve(this._fast,"identifier")?ba.resolve(this._fast,"identifier"):ja.resolve(this._fast,"id")?ba.resolve(this._fast,"id"):"";this._type=ja.resolve(this._fast,"Type")?ba.resolve(this._fast,
"Type"):"";this.x=null;if(ja.resolve(this.get_fast(),"x")){var a=this.x=parseFloat(ba.resolve(this.get_fast(),"x"));isNaN(a)&&(this.x=null)}this.y=null;ja.resolve(this.get_fast(),"y")&&(a=this.y=parseFloat(ba.resolve(this.get_fast(),"y")),isNaN(a)&&(this.y=null));this.parseQuestions()},parseQuestions:function(){for(var a=[],b=0,c=Jh.resolve(this._fast,"Question");b<c.length;){var d=c[b];++b;d=new fc(d);a.push(d)}this.updateQuestions(a)},updateQuestions:function(a){if(null!=this.questions)for(var b=
0,c=this.questions.length;b<c;){for(var d=b++,e=this.questions[d],f=d=0,h=a.length;f<h;){d=f++;var l=a[d];if(!l.isDestroyed&&l.get_id()==e.get_id()){l.destroy();e.parent=null;e.set_xml(l.get_xml());a[d]=e;break}}a[d]!=e&&e.destroy()}this.questions=a;e=[];b=0;for(c=this.questions;b<c.length;)f=c[b],++b,f.parent=this,-1<e.indexOf(f.get_id())&&(d=od.parseInt(f.get_id()),this.updateIds(d+1,1),f.__setId(od.fromInt(d+1))),e.push(f.get_id());a.sort(function(a,b){a=od.parseInt(a.get_id());b=od.parseInt(b.get_id());
return a>b?1:a<b?-1:0});if("INPUTNODES"!=this._id&&"inline"!=this._type)for(b=0,c=a.length;b<c;)d=b++,e=od.parsePrefix(a[d].get_id()),e=od.fromInt(d+1,e),a[d].__setId(e)},nextQuestionId:function(){var a="MI",b=0;if(0<this.questions.length&&-1<od.parseInt(this.questions[0].get_id())){a=od.parsePrefix(this.questions[0].get_id());for(var c=0,d=this.questions;c<d.length;){var e=d[c];++c;e=od.parseInt(e.get_id());e>b&&(b=e)}}return a+ec.pad(b+1+"",2,"0")},getQuestion:function(a){return vb.find(this.questions,
function(b){return b.get_id()==a})},getOrCreateQuestion:function(a){var b=this.getQuestion(a.id);null==b&&(b=this.addQuestion(Ec.createQuestion(a)));return b},addQuestion:function(a,b){null==b&&(b=-1);-1>=b&&(b=this.questions.length);var c=a.get("QuestionID");Gb.isEmpty(c)&&(c=od.fromInt(b+1),a.set("QuestionID",c));this.updateIds(od.parseInt(c),1);if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));c=new fc(a);c.parent=
this;b<this.questions.length?this.get_xml().insertChild(a,La.elementIndex(this.questions[b].get_xml())):this.get_xml().addChild(a);this.questions.splice(b,0,c);this.__changed();return c},removeQuestion:function(a){a=od.parseInt(a);for(var b=null,c=0,d=this.questions.length;c<d;)if(b=c++,b=this.questions[b],od.parseInt(b.get_id())==a){G.remove(this.questions,b);b.destroy();this.get_xml().removeChild(b.get_xml());this.updateIds(od.parseInt(b.get_id()),-1);break}this.__changed();return b},updateIds:function(a,
b){for(var c=0,d=this.questions;c<d.length;){var e=d[c];++c;od.parseInt(e.get_id())>=a&&e.updateId(b)}},get_id:function(){return this._id},set_id:function(a){a!=this._id&&(this._id=a,this._fast.set("identifier",a),this._fast.remove("id"),this.__changed());return this._id},get_type:function(){return this._type},set_type:function(a){if(a!=this._type){this._type=a;this._fast.set("Type",a);for(var b=0,c=this.questions;b<c.length;){var d=c[b];++b;d.set_type(a)}}return this._type},setPosition:function(a,
b){if(this.x!=a&&!isNaN(a)||this.y!=b&&!isNaN(b))this.x=a,this.y=b,null!=a?this.get_xml().set("x",null==a?"null":""+a):this.get_xml().remove("x"),null!=b?this.get_xml().set("y",null==b?"null":""+b):this.get_xml().remove("y"),this.__changed()},__class__:Ni,__properties__:r(Ca.prototype.__properties__,{set_type:"set_type",get_type:"get_type",set_id:"set_id",get_id:"get_id"})});var fc=function(a){Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.quiz.QuizQuestionNode"]=
fc;fc.__name__="elearningwmb.xml.quiz.QuizQuestionNode";fc.TASK_ANSWERS=function(a){null==a&&(a=["Option 1","Option 2"]);for(var b="",c=0,d=a.length;c<d;){var e=c++;b+='<Answer AnswerID="'+(e+1)+'" Correct="1" Score="0" Order="'+(e+1)+'" TaskSeverity="0" ActionByID="0">\n                <Text>'+a[e]+"</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>"}return"<Answers>"+b+"</Answers>"};fc.__super__=Ca;fc.prototype=r(Ca.prototype,
{qType:null,title:null,hasCommentBox:null,include:null,imageNode:null,answers:null,narrator:null,resources:null,_id:null,_type:null,_text:null,_imageFit:null,onSetFast:function(){this._id=ba.resolve(this._fast,"QuestionID");this._type=ja.resolve(this._fast,"QuestionType")?ba.resolve(this._fast,"QuestionType"):"";this.qType=ba.resolve(this._fast,"qType");this.title=ba.resolve(this._fast,"Title");this._imageFit=ja.resolve(this._fast,"imageFit")?ba.resolve(this._fast,"imageFit"):"cover";this.hasCommentBox=
Gb.parseBool(ba.resolve(this._fast,"CommentBox"));this.include=ja.resolve(this._fast,"include")?ba.resolve(this._fast,"include"):"";this._text=Ma.parseString(aa.resolve(this._fast,"Text"));this.answers=[];this.parseAnswers(Jh.resolve(aa.resolve(this._fast,"Answers"),"Answer"));if(0==this.answers.length&&"TF"==this.qType){var a=z.parse(fc.TRUE_FALSE_ANSWERS);if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":
V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));this.parseAnswers(Jh.resolve(a,"Answer"))}ja.resolve(this._fast,"image")?this.set_image(""!=ba.resolve(this._fast,"image")?ba.resolve(this._fast,"image"):null):ma.resolve(this._fast,"Image")&&(this.imageNode=new Mg(aa.resolve(this._fast,"Image")),""!=this.imageNode.get_path()&&this.set_image(this.imageNode.get_path()));ma.resolve(this._fast,
"Narrator")&&(this.narrator=new Mi(aa.resolve(this._fast,"Narrator")));this.resources=ja.resolve(this._fast,"Resources")?ba.resolve(this._fast,"Resources"):""},parseAnswers:function(a){for(var b=0;b<a.length;){var c=a[b];++b;c=new Bk(c);var d=this.answers,e=c.get_order()-1;d.splice(e,0,c)}},addAnswer:function(a,b){null==b&&(b=-1);0>b&&(b=this.answers.length);var c=b+1;a.set("AnswerID",null==c?"null":""+c);""==a.get("Order")&&a.set("Order",null==c?"null":""+c);this.updateIds(null==c?"null":""+c,1);
if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));c=new Bk(a);b<this.answers.length?aa.resolve(this.get_fast(),"Answers").insertChild(a,La.childIndex(this.answers[b].get_xml())):aa.resolve(this.get_fast(),"Answers").addChild(a);this.answers.splice(b,0,c);this.__changed();return c},removeAnswer:function(a){a=B.parseInt(a);for(var b=null,c=0,d=this.answers.length;c<d;)if(b=c++,b=this.answers[b],B.parseInt(b.get_id())==
a){G.remove(this.answers,b);b.destroy();aa.resolve(this.get_fast(),"Answers").removeChild(b.get_xml());this.updateIds(b.get_id(),-1);break}this.__changed();return b},updateId:function(a){var b=od.parsePrefix(this.get_id());a=od.parseInt(this.get_id())+a;this.__setId(b+(10<=a?null==a?"null":""+a:"0"+a))},updateIds:function(a,b){a=B.parseInt(a);for(var c=0,d=this.answers;c<d.length;){var e=d[c];++c;B.parseInt(e.get_id())>=a&&e.updateId(b)}},__setId:function(a){this._id=a;this._fast.set("QuestionID",
a)},__setType:function(a){this._type=a;this._fast.set("QuestionType",a);if("exam"==a){if(2<=this.answers.length){a=0;for(var b=this.answers;a<b.length;)++a}}else if("survey"==a){this._fast.set("qType","LKS");a=0;for(b=this.answers.length;a<b;)a++,this.removeAnswer("1");b=["Strongly disagree","Disagree","Neither agree nor disagree","Agree","Strongly agree"];for(a=0;a<b.length;){var c=b[a];++a;c=z.parse('<Answer AnswerID="'+(this.answers.length+1)+'" Correct="0" Score="'+(this.answers.length+1)+'" Order="'+
(this.answers.length+1)+'" TaskSeverity="0" ActionByID="0"><Text>'+c+"</Text><TaskName/><TaskDescription/><Feedback/></Answer>");if(c.nodeType!=z.Document&&c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));this.addAnswer(c.children[0])}}},resetType:function(a){this._fast.set("QuestionType",ze.TYPE_STRINGS[a]);this._fast.set("qType","MC")},get_id:function(){return this._id},set_id:function(a){a!=this._id&&
(this.__setId(a),this.__changed());return this._id},get_type:function(){return this._type},set_type:function(a){a!=this._type&&this.__setType(a);return this._type},get_text:function(){return this._text},set_text:function(a){a!=this._text&&(this._text=a,La.setChildValue(this._fast,"Text",Gb.cdata(a)),this.__changed());return this._text},get_image:function(){return ja.resolve(this._fast,"image")?ba.resolve(this._fast,"image"):null},set_image:function(a){null!=a&&""!=a?this._fast.set("image",a):(ma.resolve(this._fast,
"Image")&&this._fast.removeChild(aa.resolve(this._fast,"Image")),this._fast.remove("image"));return a},get_imageFit:function(){return ja.resolve(this._fast,"imageFit")?ba.resolve(this._fast,"imageFit"):"cover"},set_imageFit:function(a){a!=this._imageFit&&(this._imageFit=a,this._fast.set("imageFit",a),this.__changed());return this._imageFit},__class__:fc,__properties__:r(Ca.prototype.__properties__,{set_imageFit:"set_imageFit",get_imageFit:"get_imageFit",set_image:"set_image",get_image:"get_image",
set_text:"set_text",get_text:"get_text",set_type:"set_type",get_type:"get_type",set_id:"set_id",get_id:"get_id"})});var ze=function(a){this._submitComplete=!1;this._type=this._passMark=0;this._showAnswers=!0;this._random=this._showResults=this._hideProgressRatio=this._showFeedback=!1;this._columns=1;this.retakeTest=this.ratio=this.issuesLevel5=this._identifier=this._introText=this._issuesLevel1=this._issuesLevel2=this._issuesLevel3=this._issuesLevel4="";Ca.call(this);this.fontSize=18;Pb.isMobile()&&
(this.fontSize=22);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.quiz.QuizSettingsNode"]=ze;ze.__name__="elearningwmb.xml.quiz.QuizSettingsNode";ze.__super__=Ca;ze.prototype=r(Ca.prototype,{title:null,ok:null,issueDetected:null,retakeTest:null,ratio:null,issuesLevel5:null,introArt:null,showIntro:null,showCertificate:null,typeString:null,loadsQuizAtScreenLevel:null,fontSize:null,maxTimeAllowed:null,_identifier:null,_introText:null,_issuesLevel1:null,
_issuesLevel2:null,_issuesLevel3:null,_issuesLevel4:null,_columns:null,_random:null,_showResults:null,_hideProgressRatio:null,_showFeedback:null,_showAnswers:null,_type:null,_passMark:null,_numberQuestionsUsed:null,_submitComplete:null,onSetFast:function(){ma.resolve(this.get_fast(),"quiz_identifier")&&(this._identifier=Ma.parseString(aa.resolve(this.get_fast(),"quiz_identifier")));ma.resolve(this.get_fast(),"quiz_title")&&(this.title=Ma.parseString(aa.resolve(this.get_fast(),"quiz_title")));ma.resolve(this.get_fast(),
"OK")&&(this.ok=Ma.parseString(aa.resolve(this.get_fast(),"OK")));ma.resolve(this.get_fast(),"Issue_Detected")&&(this.issueDetected=Ma.parseString(aa.resolve(this.get_fast(),"Issue_Detected")));ma.resolve(this.get_fast(),"Retake_Test")&&(this.retakeTest=Ma.parseString(aa.resolve(this.get_fast(),"Retake_Test")));ma.resolve(this.get_fast(),"Ratio")&&(this.ratio=Ma.parseString(aa.resolve(this.get_fast(),"Ratio")));ma.resolve(this.get_fast(),"No_Issues")&&(this._issuesLevel1=Ma.parseString(aa.resolve(this.get_fast(),
"No_Issues")));ma.resolve(this.get_fast(),"Few_Issues")&&(this._issuesLevel2=Ma.parseString(aa.resolve(this.get_fast(),"Few_Issues")));ma.resolve(this.get_fast(),"Some_Issues")&&(this._issuesLevel3=Ma.parseString(aa.resolve(this.get_fast(),"Some_Issues")));ma.resolve(this.get_fast(),"Many_Issues")&&(this._issuesLevel4=Ma.parseString(aa.resolve(this.get_fast(),"Many_Issues")));ma.resolve(this.get_fast(),"Most_Issues")&&(this.issuesLevel5=Ma.parseString(aa.resolve(this.get_fast(),"Most_Issues")));ma.resolve(this.get_fast(),
"Intro_Text")&&(this._introText=Ma.parseString(aa.resolve(this.get_fast(),"Intro_Text")));ma.resolve(this.get_fast(),"Intro_Art")&&(this.introArt=Ma.parseString(aa.resolve(this.get_fast(),"Intro_Art")));ma.resolve(this.get_fast(),"Columns")&&(this._columns=Ma.parseInt(aa.resolve(this.get_fast(),"Columns")));1>this._columns&&(this._columns=1);this._random=ma.resolve(this.get_fast(),"Random")&&Ma.parseBool(aa.resolve(this.get_fast(),"Random"));this.showIntro=ma.resolve(this.get_fast(),"Show_Intro")&&
Ma.parseBool(aa.resolve(this.get_fast(),"Show_Intro"));this._showResults=ma.resolve(this.get_fast(),"Show_Results")&&Ma.parseBool(aa.resolve(this.get_fast(),"Show_Results"));this._hideProgressRatio=ma.resolve(this.get_fast(),"Hide_Progress_Ratio")&&Ma.parseBool(aa.resolve(this.get_fast(),"Hide_Progress_Ratio"));this.showCertificate=ma.resolve(this.get_fast(),"Show_Sertificate")&&Ma.parseBool(aa.resolve(this.get_fast(),"Show_Sertificate"));ma.resolve(this.get_fast(),"QuizType")&&(this._type=Ma.parseInt(aa.resolve(this.get_fast(),
"QuizType")));if(0>this._type||this._type>ze.TYPE_STRINGS.length)this._type=0;this.typeString=ze.TYPE_STRINGS[this._type];this.loadsQuizAtScreenLevel=ma.resolve(this.get_fast(),"LoadsQuizatScreenLevel")&&Ma.parseBool(aa.resolve(this.get_fast(),"LoadsQuizatScreenLevel"));this._showFeedback=ma.resolve(this.get_fast(),"ShowFeedback")&&Ma.parseBool(aa.resolve(this.get_fast(),"ShowFeedback"));ma.resolve(this.get_fast(),"PassMark")&&(this._passMark=Ma.parseInt(aa.resolve(this.get_fast(),"PassMark")));ma.resolve(this.get_fast(),
"FontSize")&&(this.fontSize=Ma.parseInt(aa.resolve(this.get_fast(),"FontSize")));ma.resolve(this.get_fast(),"Show_Answers")&&(this._showAnswers=Ma.parseBool(aa.resolve(this.get_fast(),"Show_Answers")));ma.resolve(this.get_fast(),"number_questions_used")&&(this._numberQuestionsUsed=Ma.parseInt(aa.resolve(this.get_fast(),"number_questions_used")));ma.resolve(this.get_fast(),"Submit_Complete")&&(this._submitComplete=Ma.parseBool(aa.resolve(this.get_fast(),"Submit_Complete")));ma.resolve(this.get_fast(),
"max_time_allowed")&&(this.maxTimeAllowed=Ma.parseInt(aa.resolve(this.get_fast(),"max_time_allowed")))},get_identifier:function(){return this._identifier},set_identifier:function(a){this._identifier=a;La.setChildValue(this._fast,"quiz_identifier",a);this.__changed();return a},get_introText:function(){return this._introText},set_introText:function(a){this._introText=a;La.setChildValue(this._fast,"Intro_Text",a);this.__changed();return a},get_columns:function(){return this._columns},set_columns:function(a){this._columns=
a;La.setChildValue(this._fast,"Columns",null==a?"null":""+a);this.__changed();return a},get_random:function(){return this._random},set_random:function(a){this._random=a;La.setChildValue(this._fast,"Random",B.string(a?1:0));this.__changed();return a},get_showResults:function(){return 5!=this._type?this._showResults:!1},set_showResults:function(a){this._showResults=a;La.setChildValue(this._fast,"Show_Results",B.string(a?1:0));this.__changed();return a},get_hideProgressRatio:function(){return 5!=this._type?
this._hideProgressRatio:!0},set_hideProgressRatio:function(a){this._hideProgressRatio=a;La.setChildValue(this._fast,"Hide_Progress_Ratio",B.string(a?1:0));this.__changed();return a},get_showFeedback:function(){return 5!=this._type?this._showFeedback:!1},set_showFeedback:function(a){this._showFeedback=a;La.setChildValue(this._fast,"ShowFeedback",B.string(a?1:0));this.__changed();return a},get_showAnswers:function(){return 5!=this._type?this._showAnswers:!1},set_showAnswers:function(a){this._showAnswers=
a;La.setChildValue(this._fast,"Show_Answers",B.string(a?1:0));this.__changed();return a},get_type:function(){return this._type},set_type:function(a){this._type=a;La.setChildValue(this._fast,"QuizType",null==a?"null":""+a);this.__changed();return a},get_passMark:function(){return this._passMark},set_passMark:function(a){this._passMark=a;La.setChildValue(this._fast,"PassMark",null==a?"null":""+a);this.__changed();return a},get_numberQuestionsUsed:function(){return this._numberQuestionsUsed},set_numberQuestionsUsed:function(a){this._numberQuestionsUsed=
a;La.setChildValue(this._fast,"number_questions_used",null==a?"null":""+a);this.__changed();return a},set_issuesLevel1:function(a){this._issuesLevel1=a;La.setChildValue(this._fast,"No_Issues",null==a?"null":""+a);this.__changed();return a},set_issuesLevel2:function(a){this._issuesLevel2=a;La.setChildValue(this._fast,"Few_Issues",null==a?"null":""+a);this.__changed();return a},set_issuesLevel3:function(a){this._issuesLevel3=a;La.setChildValue(this._fast,"Some_Issues",null==a?"null":""+a);this.__changed();
return a},set_issuesLevel4:function(a){this._issuesLevel4=a;La.setChildValue(this._fast,"Many_Issues",null==a?"null":""+a);this.__changed();return a},get_issuesLevel1:function(){return this._issuesLevel1},get_issuesLevel2:function(){return this._issuesLevel2},get_issuesLevel3:function(){return this._issuesLevel3},get_issuesLevel4:function(){return this._issuesLevel4},get_submitComplete:function(){return this._submitComplete},set_submitComplete:function(a){this._submitComplete=a;La.setChildValue(this._fast,
"Submit_Complete",B.string(a?1:0));this.__changed();return a},__class__:ze,__properties__:r(Ca.prototype.__properties__,{set_submitComplete:"set_submitComplete",get_submitComplete:"get_submitComplete",set_numberQuestionsUsed:"set_numberQuestionsUsed",get_numberQuestionsUsed:"get_numberQuestionsUsed",set_passMark:"set_passMark",get_passMark:"get_passMark",set_type:"set_type",get_type:"get_type",set_showAnswers:"set_showAnswers",get_showAnswers:"get_showAnswers",set_showFeedback:"set_showFeedback",
get_showFeedback:"get_showFeedback",set_hideProgressRatio:"set_hideProgressRatio",get_hideProgressRatio:"get_hideProgressRatio",set_showResults:"set_showResults",get_showResults:"get_showResults",set_random:"set_random",get_random:"get_random",set_columns:"set_columns",get_columns:"get_columns",set_introText:"set_introText",get_introText:"get_introText",set_issuesLevel4:"set_issuesLevel4",get_issuesLevel4:"get_issuesLevel4",set_issuesLevel3:"set_issuesLevel3",get_issuesLevel3:"get_issuesLevel3",set_issuesLevel2:"set_issuesLevel2",
get_issuesLevel2:"get_issuesLevel2",set_issuesLevel1:"set_issuesLevel1",get_issuesLevel1:"get_issuesLevel1",set_identifier:"set_identifier",get_identifier:"get_identifier"})});var Am=function(a,b){Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a);this.parent=b};g["elearningwmb.xml.quiz.QuizesNode"]=Am;Am.__name__="elearningwmb.xml.quiz.QuizesNode";Am.__super__=Ca;Am.prototype=r(Ca.prototype,{settingsNode:null,quizNodes:null,onSetFast:function(){this.quizNodes=
[];if(ma.resolve(this._fast,"Quiz"))for(var a=[],b=0,c=Jh.resolve(this._fast,"Quiz");b<c.length;){var d=c[b];++b;d=new Ni(d);-1<a.indexOf(d.get_id())&&d.set_id(this.nextId());a.push(d.get_id());this.quizNodes.push(d);d.parent=this}ma.resolve(this._fast,"settings")&&(this.settingsNode=new ze(aa.resolve(this._fast,"settings")),this.settingsNode.parent=this)},nextId:function(){var a="MI",b=0;if(0<this.quizNodes.length&&-1<od.parseInt(this.quizNodes[0].get_id())){a=od.parsePrefix(this.quizNodes[0].get_id());
for(var c=0,d=this.quizNodes;c<d.length;){var e=d[c];++c;e=od.parseInt(e.get_id());e>b&&(b=e)}}return a+ec.pad(b+1+"",2,"0")},addQuiz:function(a){this.get_xml().addChild(a);this.__fastUpdated();return this.quizNodes[this.quizNodes.length-1]},__class__:Am});var kh=function(){};g["elearningwmb.xml.screen.IHasAlpha"]=kh;kh.__name__="elearningwmb.xml.screen.IHasAlpha";kh.__isInterface__=!0;kh.__interfaces__=[Ki];kh.prototype={alpha:null,__class__:kh};var Ek=function(){};g["elearningwmb.xml.screen.IHasBorder"]=
Ek;Ek.__name__="elearningwmb.xml.screen.IHasBorder";Ek.__isInterface__=!0;Ek.__interfaces__=[Ki];Ek.prototype={borderSize:null,borderColor:null,borderAlpha:null,__class__:Ek};var Kh=function(){};g["elearningwmb.xml.screen.IHasBorderPadding"]=Kh;Kh.__name__="elearningwmb.xml.screen.IHasBorderPadding";Kh.__isInterface__=!0;Kh.__interfaces__=[Ek];Kh.prototype={padding:null,__class__:Kh};var Fk=function(){};g["elearningwmb.xml.screen.IHasBackground"]=Fk;Fk.__name__="elearningwmb.xml.screen.IHasBackground";
Fk.__isInterface__=!0;Fk.__interfaces__=[Kh];Fk.prototype={hasBackground:null,bgColor:null,bgAlpha:null,__class__:Fk};var Gj=function(a,b){this.bgAlpha=.75;this.x=this.y=this.width=this.height=this.padding=0;this.value="";Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a);this.parent=b};g["elearningwmb.xml.screen.ContentNode"]=Gj;Gj.__name__="elearningwmb.xml.screen.ContentNode";Gj.__interfaces__=[kh,Fk];Gj.__super__=Ca;Gj.prototype=r(Ca.prototype,{value:null,
x:null,y:null,width:null,height:null,alpha:null,hasBackground:null,bgColor:null,borderSize:null,borderColor:null,borderAlpha:null,padding:null,bgAlpha:null,scroll:null,autoNarrator:null,delay:null,onSetFast:function(){var a=this._fast;if(a.nodeType==z.Document)a="Document";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.nodeName}"Content"==kb.getSingleName(a)?this.parse():this.parseLegacy()},get_delay:function(){return ja.resolve(this._fast,
"delay")?B.parseInt(ba.resolve(this._fast,"delay")):null!=this.parent&&null!=this.parent.parent?N.__cast(this.parent.parent,Wd).settings.contentDelay:0},parse:function(){try{this.value=qb.get_innerData(this._fast)}catch(b){wa.lastError=b,this.value=""}var a=this._fast;if(a.nodeType==z.Document)a="Document";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.nodeName}kb.isMultipleTag(a)&&(this.y=this.x=100,
this.width=200,this.height=50);ja.resolve(this._fast,"x")&&(this.x=parseFloat(ba.resolve(this._fast,"x")));ja.resolve(this._fast,"y")&&(this.y=parseFloat(ba.resolve(this._fast,"y")));ja.resolve(this._fast,"width")&&(this.width=parseFloat(ba.resolve(this._fast,"width")));ja.resolve(this._fast,"height")&&(this.height=parseFloat(ba.resolve(this._fast,"height")));this.alpha=1;ja.resolve(this.get_fast(),"alpha")&&(this.alpha=parseFloat(ba.resolve(this.get_fast(),"alpha")),isNaN(this.alpha)&&(this.alpha=
1));this.hasBackground=ja.resolve(this._fast,"hasBackground")&&"true"==ba.resolve(this._fast,"hasBackground")&&""!=this.value;this.bgColor=ja.resolve(this._fast,"bgColor")?B.parseInt("0x"+G.substr(ba.resolve(this._fast,"bgColor"),1,null)):16777215;this.bgAlpha=ja.resolve(this._fast,"bgAlpha")?parseFloat(ba.resolve(this._fast,"bgAlpha")):.75;1<this.bgAlpha&&(this.bgAlpha/=100);this.borderSize=0;if(ja.resolve(this.get_fast(),"borderSize")||ja.resolve(this.get_fast(),"borderColor"))this.borderSize=ja.resolve(this.get_fast(),
"borderSize")?B.parseInt(ba.resolve(this.get_fast(),"borderSize")):2,this.borderColor=ja.resolve(this.get_fast(),"borderColor")?B.parseInt("0x"+G.substr(ba.resolve(this.get_fast(),"borderColor"),1,null)):0,this.borderAlpha=ja.resolve(this.get_fast(),"borderAlpha")?parseFloat(ba.resolve(this.get_fast(),"borderAlpha")):1;a=!(this.hasBackground||ja.resolve(this._fast,"padding"));null==a&&(a=!0);this.padding=0;if(0<this.borderSize||!a)this.padding=ja.resolve(this.get_fast(),"padding")?B.parseInt(ba.resolve(this.get_fast(),
"padding")):20;this.scroll=!ja.resolve(this._fast,"scroll")||Gb.parseBool(ba.resolve(this._fast,"scroll"));this.autoNarrator=ja.resolve(this._fast,"auto_narrator")&&Gb.parseBool(ba.resolve(this._fast,"auto_narrator"))},parseLegacy:function(){ma.resolve(this._fast,"Content_x")&&(this.x=parseFloat(qb.get_innerData(aa.resolve(this._fast,"Content_x"))));ma.resolve(this._fast,"Content_y")&&(this.y=B.parseInt(qb.get_innerData(aa.resolve(this._fast,"Content_y"))));ma.resolve(this._fast,"Content_Width")&&
(this.width=B.parseInt(qb.get_innerData(aa.resolve(this._fast,"Content_Width"))));ma.resolve(this._fast,"Content_Height")&&(this.height=B.parseInt(qb.get_innerData(aa.resolve(this._fast,"Content_Height"))));ma.resolve(this._fast,"Content")?this.set_fast(aa.resolve(this._fast,"Content")):(this.value="",this.hasBackground=!1,this.bgColor=16777215,this.height=this.width=this.padding=this.borderSize=0)},validAutoNarrator:function(){return this.autoNarrator?!Gb.isEmpty(this.value):!1},toJSON:function(){return JSON.stringify({value:this.value,
x:this.x,y:this.y,width:this.width,height:this.height,alpha:this.alpha,hasBackground:this.hasBackground,bgColor:this.bgColor,borderSize:this.borderSize,borderColor:this.borderColor,borderAlpha:this.borderAlpha,padding:this.padding,bgAlpha:this.bgAlpha,scroll:this.scroll,autoNarrator:this.autoNarrator,delay:this.get_delay()})},__class__:Gj,__properties__:r(Ca.prototype.__properties__,{get_delay:"get_delay"})});var Ut={fromString:function(a){switch(a){case "Canvas":return 0;case "Pixi":return 2;case "Webgl":return 1;
default:return null}},toString:function(a){switch(N.__cast(a,jh)){case 0:return"Canvas";case 1:return"Webgl";case 2:return"Pixi";default:return null}}},Oi=function(){};g["elearningwmb.xml.screen.IResizable"]=Oi;Oi.__name__="elearningwmb.xml.screen.IResizable";Oi.__isInterface__=!0;Oi.__interfaces__=[Ki];Oi.prototype={width:null,height:null,updateSize:null,__class__:Oi};var Gk=function(a){Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));null!=a&&this.set_fast(a)};g["elearningwmb.xml.screen.IframeNode"]=
Gk;Gk.__name__="elearningwmb.xml.screen.IframeNode";Gk.__interfaces__=[kh,Ek,Oi,Lg];Gk.__super__=Ca;Gk.prototype=r(Ca.prototype,{src:null,x:null,y:null,width:null,height:null,alpha:null,borderSize:null,borderColor:null,borderAlpha:null,delay:null,frameborder:null,style:null,allow:null,allowfullscreen:null,loading:null,onSetFast:function(){if(ja.resolve(this._fast,"src"))this.src=ba.resolve(this.get_fast(),"src");else try{this.src=qb.get_innerData(this._fast)}catch(b){wa.lastError=b,this.src=""}this.x=
null;if(ja.resolve(this.get_fast(),"x")){var a=this.x=parseFloat(ba.resolve(this.get_fast(),"x"));isNaN(a)&&(this.x=null)}this.y=null;ja.resolve(this.get_fast(),"y")&&(a=this.y=parseFloat(ba.resolve(this.get_fast(),"y")),isNaN(a)&&(this.y=null));this.alpha=1;ja.resolve(this.get_fast(),"alpha")&&(a=this.alpha=parseFloat(ba.resolve(this.get_fast(),"alpha")),isNaN(a)&&(this.alpha=1));this.width=null;ja.resolve(this._fast,"width")&&(a=this.width=parseFloat(ba.resolve(this._fast,"width")),isNaN(a)||0>
this.width)&&(this.width=null);this.height=null;ja.resolve(this._fast,"height")&&(a=this.height=parseFloat(ba.resolve(this._fast,"height")),isNaN(a)||0>this.width)&&(this.height=null);this.frameborder=0;ja.resolve(this._fast,"frameborder")&&(this.frameborder=B.parseInt(ba.resolve(this._fast,"frameborder")));this.style="";ja.resolve(this._fast,"style")&&(this.style=ba.resolve(this._fast,"style"));this.allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture";ja.resolve(this._fast,
"allow")&&(this.allow=ba.resolve(this._fast,"allow"));this.allowfullscreen=ja.resolve(this._fast,"allowfullscreen");this.loading="auto";ja.resolve(this._fast,"loading")&&(this.loading=ba.resolve(this._fast,"loading"));this.borderSize=0;if(ja.resolve(this.get_fast(),"borderSize")||ja.resolve(this.get_fast(),"borderColor"))this.borderSize=ja.resolve(this.get_fast(),"borderSize")?B.parseInt(ba.resolve(this.get_fast(),"borderSize")):2,this.borderColor=ja.resolve(this.get_fast(),"borderColor")?B.parseInt("0x"+
G.substr(ba.resolve(this.get_fast(),"borderColor"),1,null)):0,this.borderAlpha=ja.resolve(this.get_fast(),"borderAlpha")?parseFloat(ba.resolve(this.get_fast(),"borderAlpha")):1},get_delay:function(){return ja.resolve(this._fast,"delay")?B.parseInt(ba.resolve(this._fast,"delay")):N.__cast(this.parent.parent,Wd).settings.embedDelay},setPosition:function(a,b){if(this.x!=a&&!isNaN(a)||this.y!=b&&!isNaN(b))this.x=a,this.y=b,null!=a?this.get_xml().set("x",null==a?"null":""+a):this.get_xml().remove("x"),
null!=b?this.get_xml().set("y",null==b?"null":""+b):this.get_xml().remove("y"),this.__changed()},updateSize:function(a,b,c){null==c&&(c=!0);if(this.width!=a||this.height!=b)this.get_xml().set("width",null==a?"null":""+a),this.get_xml().set("height",null==b?"null":""+b),c&&this.__fastUpdated()},__class__:Gk,__properties__:r(Ca.prototype.__properties__,{get_delay:"get_delay"})});var Mg=function(a,b){null==b&&(b=0);Ca.call(this);this._format=b;this.get_signals().get_setFast().add(k(this,this.onSetFast));
null!=a&&this.set_fast(a)};g["elearningwmb.xml.screen.ImageNode"]=Mg;Mg.__name__="elearningwmb.xml.screen.ImageNode";Mg.__interfaces__=[kh,Kh,Oi,Lg];Mg.__super__=Ca;Mg.prototype=r(Ca.prototype,{_format:null,_path:null,_origPath:null,isMovie:null,x:null,y:null,width:null,height:null,alpha:null,imageName:null,targetId:null,onClick:null,isButton:null,text:null,textColor:null,waitTillEnd:null,borderSize:null,borderColor:null,borderAlpha:null,padding:null,swfStageSizing:null,delay:null,alt:null,get_format:function(){return this._format},
set_format:function(a){this._format=a;this.set_path(this._origPath);return this._format},get_path:function(){return this._path},set_path:function(a){this._path=this._origPath=a;this._path=hg.convertPath(this._path,this._format);this.isMovie=-1<this._path.indexOf(".html");return this._path},onSetFast:function(){try{this.set_path(qb.get_innerData(this._fast))}catch(b){wa.lastError=b,this.set_path("")}this.x=null;if(ja.resolve(this.get_fast(),"x")){var a=this.x=parseFloat(ba.resolve(this.get_fast(),
"x"));isNaN(a)&&(this.x=null)}this.y=null;ja.resolve(this.get_fast(),"y")&&(a=this.y=parseFloat(ba.resolve(this.get_fast(),"y")),isNaN(a)&&(this.y=null));this.alpha=1;ja.resolve(this.get_fast(),"alpha")&&(a=this.alpha=parseFloat(ba.resolve(this.get_fast(),"alpha")),isNaN(a)&&(this.alpha=1));this.width=null;ja.resolve(this._fast,"width")&&(a=this.width=parseFloat(ba.resolve(this._fast,"width")),isNaN(a)||0>this.width)&&(this.width=null);this.height=null;ja.resolve(this._fast,"height")&&(a=this.height=
parseFloat(ba.resolve(this._fast,"height")),isNaN(a)||0>this.width)&&(this.height=null);a=this._fast;if(a.nodeType==z.Document)a="Document";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.nodeName}this.imageName=a;this.targetId=ja.resolve(this._fast,"targetId")?ba.resolve(this._fast,"targetId"):"";this.onClick=ja.resolve(this._fast,"onClick")?ba.resolve(this._fast,"onClick"):"";this.isButton=""!=this.targetId||
""!=this.onClick;this.text=ja.resolve(this._fast,"text")?ba.resolve(this._fast,"text"):"";this.textColor=ja.resolve(this._fast,"textColor")?B.parseInt("0x"+G.substr(ba.resolve(this._fast,"textColor"),1,null)):0;this.waitTillEnd=this.isMovie&&ja.resolve(this._fast,"waitTillEnd")&&"true"==ba.resolve(this._fast,"waitTillEnd");this.swfStageSizing=this.isMovie&&ja.resolve(this._fast,"swfSizing")&&"stage"==ba.resolve(this._fast,"swfSizing");this.borderSize=0;if(ja.resolve(this.get_fast(),"borderSize")||
ja.resolve(this.get_fast(),"borderColor"))this.borderSize=ja.resolve(this.get_fast(),"borderSize")?B.parseInt(ba.resolve(this.get_fast(),"borderSize")):2,this.borderColor=ja.resolve(this.get_fast(),"borderColor")?B.parseInt("0x"+G.substr(ba.resolve(this.get_fast(),"borderColor"),1,null)):0,this.borderAlpha=ja.resolve(this.get_fast(),"borderAlpha")?parseFloat(ba.resolve(this.get_fast(),"borderAlpha")):1;this.padding=0;0<this.borderSize&&(this.padding=ja.resolve(this.get_fast(),"padding")?B.parseInt(ba.resolve(this.get_fast(),
"padding")):20);this.alt=ja.resolve(this._fast,"alt")?ba.resolve(this._fast,"alt"):""},get_delay:function(){return ja.resolve(this._fast,"delay")?B.parseInt(ba.resolve(this._fast,"delay")):N.__cast(this.parent.parent,Wd).settings.imageDelay},updateTargetId:function(a,b){this.targetId==a&&(this.get_xml().set("targetId",b),this.__fastUpdated())},setPosition:function(a,b){if(this.x!=a&&!isNaN(a)||this.y!=b&&!isNaN(b))this.x=a,this.y=b,null!=a?this.get_xml().set("x",null==a?"null":""+a):this.get_xml().remove("x"),
null!=b?this.get_xml().set("y",null==b?"null":""+b):this.get_xml().remove("y"),this.__changed()},updateSize:function(a,b,c){null==c&&(c=!0);if(this.width!=a||this.height!=b)this.get_xml().set("width",null==a?"null":""+a),this.get_xml().set("height",null==b?"null":""+b),c&&this.__fastUpdated()},__class__:Mg,__properties__:r(Ca.prototype.__properties__,{get_delay:"get_delay",set_path:"set_path",get_path:"get_path",set_format:"set_format",get_format:"get_format"})});var he=function(a,b){this.borderAlpha=
this.alpha=1;Ca.call(this);this._source=b;this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.screen.InputNode"]=he;he.__name__="elearningwmb.xml.screen.InputNode";he.__interfaces__=[kh,Kh,Lg];he.fromTextField=function(a,b,c){null==c&&(c=!1);var d=new he(Ec.createEmpty("input"),a);d.set_type("text");d.set_name(J.getProperty(a,"name"));d.x=J.getProperty(a,"x");d.y=J.getProperty(a,"y");for(var e=J.getProperty(a,"parent");null!=e;)d.x+=J.getProperty(e,"x"),
d.y+=J.getProperty(e,"y"),e=J.getProperty(e,"parent");null!=b&&d.set_questionID(b);d.set_readOnly(c);try{var f=N.__cast(a,createjs.Text)}catch(h){wa.lastError=h,f=a}f.text="very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text, very very long text";
b=f.getBounds();f.text="";d.set_width(b.width*f.scaleX|0);d.set_height((Object.prototype.hasOwnProperty.call(f,"height")?J.field(f,"height"):150*f.scaleY)|0);d.align=J.getProperty(a,"textAlign");f=J.getProperty(a,"font").split(" ");2<f.length?(d.fontFamily=f[2],d.fontSize=B.parseInt(f[1]),d.fontStyle=f[0]):(d.fontFamily=f[1],d.fontSize=B.parseInt(f[0]));d.color=B.parseInt(J.getProperty(a,"color").replace(/^#/,"0x"));return d};he.fromCheckbox=function(a){var b=new he(Ec.createEmpty("input"),a);b.set_type("checkbox");
b.set_name(J.getProperty(a,"name"));b.x=J.getProperty(a,"x");b.y=J.getProperty(a,"y");b.set_width(J.getProperty(a,"width"));b.set_height(J.getProperty(a,"height"));return b};he.fromRadioButton=function(a){var b=new he(Ec.createEmpty("input"),a);b.set_type("radio");b.set_name(J.getProperty(a,"name"));b.x=J.getProperty(a,"x");b.y=J.getProperty(a,"y");b.set_width(J.getProperty(a,"width"));b.set_height(J.getProperty(a,"height"));return b};he.__super__=Ca;he.prototype=r(Ca.prototype,{source:null,x:null,
y:null,control:null,fontFamily:null,fontSize:null,fontStyle:null,color:null,align:null,borderSize:null,borderColor:null,borderAlpha:null,padding:null,alpha:null,_source:null,_label:null,_name:null,_width:null,_height:null,_type:null,_questionID:null,_readOnly:null,_control:null,onSetFast:function(){this._name=ba.resolve(this._fast,"name");ja.resolve(this._fast,"label")&&(this._label=ba.resolve(this._fast,"label"));this.x=null;if(ja.resolve(this.get_fast(),"x")){var a=this.x=parseFloat(ba.resolve(this.get_fast(),
"x"));isNaN(a)&&(this.x=null)}this.y=null;ja.resolve(this.get_fast(),"y")&&(a=this.y=parseFloat(ba.resolve(this.get_fast(),"y")),isNaN(a)&&(this.y=null));ja.resolve(this._fast,"width")&&(this._width=B.parseInt(ba.resolve(this._fast,"width")));ja.resolve(this._fast,"height")&&(this._height=B.parseInt(ba.resolve(this._fast,"height")));this._type=ja.resolve(this._fast,"type")?ba.resolve(this._fast,"type"):"text";this._questionID=ja.resolve(this._fast,"questionID")?ba.resolve(this._fast,"questionID"):
this._name;this._readOnly=ja.resolve(this._fast,"readOnly")&&this.toBool(ba.resolve(this._fast,"readOnly"));if(null==this._source){this.alpha=1;ja.resolve(this.get_fast(),"alpha")&&(a=this.alpha=parseFloat(ba.resolve(this.get_fast(),"alpha")),isNaN(a)&&(this.alpha=1));a=!1;null==a&&(a=!0);this.borderSize=0;if(ja.resolve(this.get_fast(),"borderSize")||ja.resolve(this.get_fast(),"borderColor")||!a)this.borderSize=ja.resolve(this.get_fast(),"borderSize")?B.parseInt(ba.resolve(this.get_fast(),"borderSize")):
2,this.borderColor=ja.resolve(this.get_fast(),"borderColor")?B.parseInt("0x"+G.substr(ba.resolve(this.get_fast(),"borderColor"),1,null)):0,this.borderAlpha=ja.resolve(this.get_fast(),"borderAlpha")?parseFloat(ba.resolve(this.get_fast(),"borderAlpha")):1;this.padding=0;0<this.borderSize&&(this.padding=ja.resolve(this.get_fast(),"padding")?B.parseInt(ba.resolve(this.get_fast(),"padding")):20)}},get_name:function(){return this._name},set_name:function(a){a!=this._name&&(this._name=a,this._fast.set("name",
a),this.__changed());return a},get_label:function(){return this._label},set_label:function(a){a!=this._label&&(this._label=a,this._fast.set("label",a),this.__changed());return a},setPosition:function(a,b){if(this.x!=a&&!isNaN(a)||this.y!=b&&!isNaN(b))this.x=a,this.y=b,null!=a?this.get_xml().set("x",null==a?"null":""+a):this.get_xml().remove("x"),null!=b?this.get_xml().set("y",null==b?"null":""+b):this.get_xml().remove("y"),this.__changed()},get_width:function(){return this._width},set_width:function(a){a!=
this._width&&(this._width=a,this._fast.set("width",null==a?"null":""+a),this.__changed());return a},get_height:function(){return this._height},set_height:function(a){a!=this._height&&(this._height=a,this._fast.set("height",null==a?"null":""+a),this.__changed());return a},get_type:function(){return this._type},set_type:function(a){a!=this._type&&(this._type=a,this._fast.set("type",a),this.__changed());return a},get_questionID:function(){return this._questionID},set_questionID:function(a){a!=this._questionID&&
(this._questionID=a,this._fast.set("questionID",a),this.__changed());return a},get_readOnly:function(){return this._readOnly},set_readOnly:function(a){a!=this._readOnly&&(this._readOnly=a,this._fast.set("readOnly",null==a?"null":""+a),this.__changed());return a},get_control:function(){null==this._control&&(this._control=this.createControl());return this._control},get_source:function(){return this._source},createControl:function(){switch(this._type){case "checkbox":return this.createCheckbox();case "radio":return this.createRadioButton()}return this.createTextField()},
createTextField:function(){var a=new Bb;a.set_name(this.get_name());a.set_type(this.get_readOnly()?0:1);a.set_multiline(!0);a.set_wordWrap(!0);a.set_x(this.x);a.set_y(this.y);a.set_alpha(this.alpha);return a},createCheckbox:function(){if(null!=this._source)return this._source;var a=new ie(this._label);a.set_name(this.get_name());a.set_x(this.x);a.set_y(this.y);a.set_alpha(this.alpha);return a},createRadioButton:function(){if(null!=this._source)return this._source;var a=new ie(this._label);a.assets=
"assets/radio";a.set_name(this.get_name());a.set_x(this.x);a.set_y(this.y);a.set_alpha(this.alpha);return a},getTextFormat:function(){var a=null==this.fontStyle?!1:-1<this.fontStyle.indexOf("bold");return new ib(this.fontFamily,this.fontSize,this.color,a)},updateControl:function(){null!=this._control&&(J.setProperty(this._control,"x",this.x),J.setProperty(this._control,"y",this.y),"checkbox"!=this.get_type()&&"radio"!=this.get_type()||J.setProperty(this._control,"title",this._label),"text"==this.get_type()&&
(J.setProperty(this._control,"name",this.get_questionID()),J.setProperty(this._control,"type",this.get_readOnly()?0:1)))},__class__:he,__properties__:r(Ca.prototype.__properties__,{get_control:"get_control",set_readOnly:"set_readOnly",get_readOnly:"get_readOnly",set_questionID:"set_questionID",get_questionID:"get_questionID",set_type:"set_type",get_type:"get_type",set_height:"set_height",get_height:"get_height",set_width:"set_width",get_width:"get_width",set_name:"set_name",get_name:"get_name",set_label:"set_label",
get_label:"get_label",get_source:"get_source"})});var Mi=function(a){Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.screen.NarratorNode"]=Mi;Mi.__name__="elearningwmb.xml.screen.NarratorNode";Mi.__interfaces__=[kh,Kh,Oi,Lg];Mi.__super__=Ca;Mi.prototype=r(Ca.prototype,{start:null,stop:null,x:null,y:null,width:null,height:null,alpha:null,syncPos:null,isVideo:null,borderSize:null,borderColor:null,borderAlpha:null,padding:null,playPath:null,
mirror:null,_path:null,onSetFast:function(){var a="";try{var b=this._fast;if(b.nodeType==z.Document)var c="Document";else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));c=b.nodeName}if(kb.isMultipleTag(c)){b=this._fast;if(b.nodeType==z.Document)c="Document";else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));c=b.nodeName}var d=
kb.getSingleName(c)}else if(b=this._fast,b.nodeType==z.Document)d="Document";else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));d=b.nodeName}a="Narrator"==d?qb.get_innerData(this._fast):qb.get_innerData(aa.resolve(this._fast,"narrator_flv"))}catch(e){wa.lastError=e}this.playPath=this._path=a;this.setPlayWebM();this.start=ja.resolve(this._fast,"start")?ec.toFloat(ba.resolve(this._fast,"start"),0):ma.resolve(this._fast,
"narrator_start")?ec.toFloat(Ma.parseString(aa.resolve(this._fast,"narrator_start")),0):0;this.stop=ja.resolve(this._fast,"stop")?parseFloat(ba.resolve(this._fast,"stop")):ma.resolve(this._fast,"narrator_stop")?parseFloat(Ma.parseString(aa.resolve(this._fast,"narrator_stop"))):null;this.x=null;ja.resolve(this._fast,"x")?this.x=ec.toFloat(ba.resolve(this._fast,"x"),null):ma.resolve(this._fast,"narrator_x")&&(this.x=ec.toFloat(Ma.parseString(aa.resolve(this._fast,"narrator_x")),null));this.y=null;ja.resolve(this._fast,
"y")?this.y=ec.toFloat(ba.resolve(this._fast,"y"),null):ma.resolve(this._fast,"narrator_y")&&(this.y=ec.toFloat(Ma.parseString(aa.resolve(this._fast,"narrator_y")),null));this.alpha=1;ja.resolve(this.get_fast(),"alpha")&&(this.alpha=parseFloat(ba.resolve(this.get_fast(),"alpha")),isNaN(this.alpha)&&(this.alpha=1));this.width=null;ja.resolve(this._fast,"width")&&(this.width=ec.toFloat(ba.resolve(this._fast,"width"),null),0>this.width&&(this.width=null));this.height=null;ja.resolve(this._fast,"height")&&
(this.height=ec.toFloat(ba.resolve(this._fast,"height"),null),0>this.height&&(this.height=null));a=new da;for(d=this._fast.attributes();d.hasNext();)b=d.next(),"sync"==G.substr(b,0,4)&&(c=parseFloat(ba.resolve(this._fast,b)),a.h[b]=c);this.syncPos=a;a=G.substr(this._path,this._path.lastIndexOf("."),null).toLowerCase();this.isVideo=".flv"==a||".mp4"==a||".webm"==a;this.mirror=ja.resolve(this._fast,"mirror")&&Gb.parseBool(ba.resolve(this._fast,"mirror"));this.borderSize=0;if(ja.resolve(this.get_fast(),
"borderSize")||ja.resolve(this.get_fast(),"borderColor"))this.borderSize=ja.resolve(this.get_fast(),"borderSize")?B.parseInt(ba.resolve(this.get_fast(),"borderSize")):2,this.borderColor=ja.resolve(this.get_fast(),"borderColor")?B.parseInt("0x"+G.substr(ba.resolve(this.get_fast(),"borderColor"),1,null)):0,this.borderAlpha=ja.resolve(this.get_fast(),"borderAlpha")?parseFloat(ba.resolve(this.get_fast(),"borderAlpha")):1;this.padding=0;0<this.borderSize&&(this.padding=ja.resolve(this.get_fast(),"padding")?
B.parseInt(ba.resolve(this.get_fast(),"padding")):20)},get_path:function(){return this._path},set_path:function(a){this._path!=a&&(La.setNodeValue(this.get_xml(),ys.Right(a)),this.__fastUpdated());return a},setPlayWebM:function(){this.playPath=this._path.replace(/.(flv|mp4)$/i,".webm")},setPlayMp4:function(){this.playPath=this._path.replace(/.(webm|flv)$/i,".mp4")},setPlayFlv:function(){this.playPath=this._path.replace(/.(webm|mp4)$/i,".flv")},setPosition:function(a,b){if(this.x!=a&&!isNaN(a)||this.y!=
b&&!isNaN(b))this.x=a,this.y=b,null!=a?this.get_xml().set("x",null==a?"null":""+a):this.get_xml().remove("x"),null!=b?this.get_xml().set("y",null==b?"null":""+b):this.get_xml().remove("y"),this.__changed()},updateSize:function(a,b,c){null==c&&(c=!0);if(this.width!=a||this.height!=b)this.get_xml().set("width",null==a?"null":""+a),this.get_xml().set("height",null==b?"null":""+b),c&&this.__fastUpdated()},toJSON:function(){return JSON.stringify({start:this.start,stop:this.stop,x:this.x,y:this.y,width:this.width,
height:this.height,alpha:this.alpha,syncPos:null!=this.syncPos?da.stringify(this.syncPos.h):null,isVideo:this.isVideo,borderSize:this.borderSize,borderColor:this.borderColor,borderAlpha:this.borderAlpha,padding:this.padding,playPath:this.playPath,mirror:this.mirror})},__class__:Mi,__properties__:r(Ca.prototype.__properties__,{set_path:"set_path",get_path:"get_path"})});var Ae=function(a){this._sectionTitle="";Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};
g["elearningwmb.xml.screen.ScreenNode"]=Ae;Ae.__name__="elearningwmb.xml.screen.ScreenNode";Ae.__super__=Ca;Ae.prototype=r(Ca.prototype,{screen_id:null,isMainScreen:null,x:null,y:null,templateNode:null,titleNode:null,hasContent:null,contentNode:null,additionalContent:null,template:null,imageNode:null,imageNodes:null,buttonNodes:null,videoNode:null,videoNodes:null,hasFlash:null,narratorNode:null,narratorNodes:null,iframeNodes:null,inputNodes:null,quizesNode:null,navigationNode:null,information:null,
id:null,mainId:null,title:null,index:null,infoXml:null,_background:null,_sectionTitle:null,_narratorNode:null,_contentMovieNode:null,_navigation:null,onSetFast:function(){this.set_screen_id(qb.get_innerData(aa.resolve(this._fast,"screen_id")));this.x=B.parseInt(ja.resolve(aa.resolve(this._fast,"screen_id"),"x")?ba.resolve(aa.resolve(this._fast,"screen_id"),"x"):qb.get_innerData(aa.resolve(this._fast,"x")));this.y=B.parseInt(ja.resolve(aa.resolve(this._fast,"screen_id"),"y")?ba.resolve(aa.resolve(this._fast,
"screen_id"),"y"):qb.get_innerData(aa.resolve(this._fast,"y")));try{this._background=ma.resolve(this._fast,"Background")?qb.get_innerData(aa.resolve(this._fast,"Background")):""}catch(a){wa.lastError=a,this._background=""}if(""==this._background)try{this._background=ma.resolve(this._fast,"photos")?qb.get_innerData(aa.resolve(this._fast,"photos")):""}catch(a){wa.lastError=a,this._background=""}if(ma.resolve(this._fast,"Section"))try{this.set_sectionTitle(qb.get_innerData(aa.resolve(this._fast,"Section")))}catch(a){wa.lastError=
a,this.set_sectionTitle("")}else if(ma.resolve(this._fast,"Section_Title"))try{this.set_sectionTitle(qb.get_innerData(aa.resolve(this._fast,"Section_Title")))}catch(a){wa.lastError=a,this.set_sectionTitle("")}null==this.templateNode?(this.templateNode=new Zo(aa.resolve(this._fast,"Template"),this),this.titleNode=new Bm(this._fast,this),this.contentNode=new Gj(this._fast,this)):this.contentNode.set_fast(this._fast);this.template=Eb.fromInt(this.templateNode.id);this.updateAdditionalContent();this.hasContent=
0<this.contentNode.value.length||0<this.additionalContent.length;this.hasFlash=ma.resolve(this._fast,"Flash");ma.resolve(this._fast,"Quizes")&&(this.quizesNode=new Am(aa.resolve(this._fast,"Quizes"),this));this.navigationNode=new Re(ma.resolve(this._fast,"navigation")?aa.resolve(this._fast,"navigation"):Kg.clone(Re.NAVIGATION));this.addChild(this.navigationNode);this._navigation=null;ma.resolve(this._fast,"information")&&(this.information=Ma.parseString(aa.resolve(this._fast,"information")));this.parseChildElements()},
updateAdditionalContent:function(){for(var a=[],b=1;ma.resolve(this._fast,"Content_"+b);){var c=new Gj(aa.resolve(this._fast,"Content_"+b),this);a.push(c);++b}if(null==this.additionalContent||this.additionalContent.length!=a.length)this.additionalContent=a},parseChildElements:function(){var a=[],b=[],c=[],d=[],e=[],f=[],h=this.get_imageNodeFast(!1);this.imageNode=null!=h?new Mg(h):null;this.videoNode=this.narratorNode=null;for(h=this._fast.elements();h.hasNext();){var l=h.next();if(l.nodeType==z.Document)var m=
"Document";else{if(l.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==l.nodeType?"null":V.toString(l.nodeType)));m=l.nodeName}m=kb.getSingleName(m);switch(m){case "Image":var t=null!=this.imageNode&&this.imageNode.get_fast()==l?this.imageNode:new Mg(l);if(l.nodeType==z.Document)l="Document";else{if(l.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==l.nodeType?"null":V.toString(l.nodeType)));l=l.nodeName}l==m&&null==this.imageNode&&
(this.imageNode=t);f.push(t);break;case "Narrator":t=new Mi(l);if(l.nodeType==z.Document)l="Document";else{if(l.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==l.nodeType?"null":V.toString(l.nodeType)));l=l.nodeName}l==m&&null==this.narratorNode&&(this.narratorNode=t);d.push(t);break;case "button":b.push(new Ta(l));break;case "iframe":c.push(new Gk(l));break;case "input":e.push(new he(l));break;case "Video":case "video":t=new Hk(l);if(l.nodeType==z.Document)l=
"Document";else{if(l.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==l.nodeType?"null":V.toString(l.nodeType)));l=l.nodeName}l==m&&null==this.videoNode&&(this.videoNode=t);a.push(t)}}this.updateImageNodes(f);this.updateVideoNodes(a);this.updateNarratorNodes(d);this.updateButtonNodes(b);this.updateIframeNodes(c);this.updateInputNodes(e)},updateImageNodes:function(a){if(null!=this.imageNodes)for(var b=0,c=this.imageNodes.length;b<c;){var d=b++;d=this.imageNodes[d];
for(var e=0,f=0,h=a.length;f<h;){e=f++;var l=a[e];if(!l.isDestroyed&&l.get_path()==d.get_path()){l.destroy();d.parent=null;d.set_xml(l.get_xml());a[e]=d;break}}a[e]!=d&&d.destroy()}this.imageNodes=a;this.imageNode=(null==this.imageNode||this.imageNode.isDestroyed)&&0<this.imageNodes.length?this.imageNodes[0]:this.imageNode;b=0;for(c=this.imageNodes.length;b<c;)d=b++,this.imageNodes[d].parent=this},updateVideoNodes:function(a){if(null!=this.videoNodes)for(var b=0,c=this.videoNodes.length;b<c;){var d=
b++;d=this.videoNodes[d];for(var e=0,f=0,h=a.length;f<h;){e=f++;var l=a[e];if(!l.isDestroyed&&l.path==d.path){l.destroy();d.parent=null;d.set_xml(l.get_xml());a[e]=d;break}}a[e]!=d&&d.destroy()}this.videoNodes=a;this.videoNode=(null==this.videoNode||this.videoNode.isDestroyed)&&0<this.videoNodes.length?this.videoNodes[0]:this.videoNode;b=0;for(c=this.videoNodes.length;b<c;)d=b++,this.videoNodes[d].parent=this},updateNarratorNodes:function(a){if(null!=this.narratorNodes)for(var b=0,c=this.narratorNodes.length;b<
c;){var d=b++;d=this.narratorNodes[d];for(var e=0,f=0,h=a.length;f<h;){e=f++;var l=a[e];if(!l.isDestroyed&&l.get_path()==d.get_path()){l.destroy();d.parent=null;d.set_xml(l.get_xml());a[e]=d;break}}a[e]!=d&&d.destroy()}this.narratorNodes=a;this.narratorNode=(null==this.narratorNode||this.narratorNode.isDestroyed)&&0<this.narratorNodes.length?this.narratorNodes[0]:this.narratorNode;b=0;for(c=this.narratorNodes.length;b<c;)d=b++,this.narratorNodes[d].parent=this},updateButtonNodes:function(a){if(null!=
this.buttonNodes)for(var b=0,c=this.buttonNodes.length;b<c;){var d=b++;d=this.buttonNodes[d];for(var e=0,f=0,h=a.length;f<h;){e=f++;var l=a[e];if(!l.isDestroyed){l.destroy();d.parent=null;d.set_xml(l.get_xml());a[e]=d;break}}a[e]!=d&&d.destroy()}this.buttonNodes=a;b=0;for(c=this.buttonNodes.length;b<c;)d=b++,this.buttonNodes[d].parent=this},updateIframeNodes:function(a){if(null!=this.iframeNodes)for(var b=0,c=this.iframeNodes.length;b<c;){var d=b++;d=this.iframeNodes[d];for(var e=0,f=0,h=a.length;f<
h;){e=f++;var l=a[e];if(!l.isDestroyed&&l.src==d.src){l.destroy();d.parent=null;d.set_xml(l.get_xml());a[e]=d;break}}a[e]!=d&&d.destroy()}this.iframeNodes=a;b=0;for(c=this.iframeNodes.length;b<c;)d=b++,this.iframeNodes[d].parent=this},updateInputNodes:function(a){this.inputNodes=a;a=0;for(var b=this.inputNodes.length;a<b;){var c=a++;this.inputNodes[c].parent=this}},set_screen_id:function(a){if(a!=this.screen_id){this.screen_id=a;var b=aa.resolve(this._fast,"screen_id");if(b.nodeType!=z.Document&&
b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children[0];if(b.nodeType==z.Document||b.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":V.toString(b.nodeType)));b.nodeValue=a;this.isMainScreen=lb.isMain(this.screen_id)}return this.screen_id},get_imageNodeFast:function(a){if(ma.resolve(this._fast,"Image")){var b=aa.resolve(this._fast,"Image");if(b.nodeType!=
z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children;b=0<b.length}else b=!1;if(b)return aa.resolve(this._fast,"Image");if(!a&&this.isMainScreen||!this.hasFlash)b=!1;else{b=aa.resolve(this._fast,"Flash");if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children;
b=0<b.length}if(b)return aa.resolve(this._fast,"Flash");if(ma.resolve(this._fast,"img")){b=aa.resolve(this._fast,"img");if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children;b=0<b.length}else b=!1;return b?aa.resolve(this._fast,"img"):null},menuIndex:null,get_menuIndex:function(){return this.get_infoXml().menu.getItemIndex(B.string(this.get_mainId()))},contentMovieNode:null,
get_contentMovieNode:function(){null==this._contentMovieNode&&(this.hasFlash?this._contentMovieNode=new Mg(aa.resolve(this._fast,"Flash"),this.templateNode.get_html5Format()):ma.resolve(this._fast,"Image")?this._contentMovieNode=new Mg(aa.resolve(this._fast,"Image"),this.templateNode.get_html5Format()):ma.resolve(this._fast,"img")&&(this._contentMovieNode=new Mg(aa.resolve(this._fast,"img"),this.templateNode.get_html5Format())));return this._contentMovieNode},get_background:function(){return this._background},
set_background:function(a){if(a!=this._background){this._background=a;var b=this.get_xml().elementsNamed("Background");if(b.hasNext())if(null!=a&&""!=a){b=b.next();if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children[0];if(b.nodeType==z.Document||b.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":V.toString(b.nodeType)));b.nodeValue=
a}else this.get_xml().removeChild(b.next());else if(null!=a&&""!=a){var c=this.get_xml();b=z.parse("<Background>"+a+"</Background>");if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));c.addChild(b.children[0])}this.get_signals().get_change().dispatch(this)}return this._background},get_sectionTitle:function(){return this._sectionTitle},set_sectionTitle:function(a){null==a&&(a="");
if(a!=this._sectionTitle){this._sectionTitle=a;var b=this.get_xml().elementsNamed("Section");if(b.hasNext())if(""!=a){b=b.next();if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.children[0];if(b.nodeType==z.Document||b.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":V.toString(b.nodeType)));b.nodeValue=a}else this.get_xml().removeChild(b.next());
else if(""!=a){var c=this.get_xml();b=z.parse("<Section>"+a+"</Section>");if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));c.addChild(b.children[0])}this.get_signals().get_change().dispatch(this)}return this._sectionTitle},setSectionTitle:function(a){this.set_sectionTitle(a);var b=new da;a=ec.stripTags(this.get_sectionTitle());b.h.item_label=a;this.get_infoXml().menu.updateItems(this.screen_id,
b)},replaceFlash:function(a){this.hasFlash?this.get_contentMovieNode().replaceXml(a):(this._fast.addChild(a),this.__fastUpdated())},contentMoviePath:null,get_contentMoviePath:function(){return ma.resolve(this._fast,"Html5")?qb.get_innerData(aa.resolve(this._fast,"Html5")):this.get_contentMovieNode().get_path()},slideRoom:null,get_slideRoom:function(){return ma.resolve(this._fast,"Slide_Room")?"true"==qb.get_innerData(aa.resolve(this._fast,"Slide_Room")).toLowerCase():!1},inAlpha:null,get_inAlpha:function(){return ma.resolve(this._fast,
"Slide_fm_In")?"true"==qb.get_innerData(aa.resolve(this._fast,"Slide_fm_In")).toLowerCase():!1},navigation:null,get_navigation:function(){this.navigationNode.isEmpty()?this._navigation=2==this.template?new Re(this.get_infoXml().nav_blocks.get_fast()):new Re(this.get_infoXml().navigation.get_fast()):(this._navigation=new Re(this.navigationNode.get_fast()),this._navigation.hasButtons()||(2==this.template?this._navigation.copyButtons(this.get_infoXml().nav_blocks.buttons):this._navigation.copyButtons(this.get_infoXml().navigation.buttons)));
return this._navigation},isFinishScreen:function(){return this.get_menuIndex()+1>=this.get_infoXml().scorm.finish_screen},isFirstScreen:function(){return this.screen_id==this.get_infoXml().screensList.get(0).screen_id},isLastScreen:function(){return this.screen_id==this.get_infoXml().screensList.get(this.get_infoXml().screensList.get_length()-1).screen_id},makeMainScreen:function(a){a.hasFlash&&this.get_fast().addChild(aa.resolve(a.get_fast(),"Flash"));if(""!=a.get_background()){var b=this.get_fast(),
c=z.parse("<Background>"+a.get_background()+"</Background>");if(c.nodeType!=z.Document&&c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));b.addChild(c.children[0])}if(""!=a.get_sectionTitle()){b=this.get_fast();c=z.parse("<Section>"+a.get_sectionTitle()+"</Section>");if(c.nodeType!=z.Document&&c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==c.nodeType?
"null":V.toString(c.nodeType)));b.addChild(c.children[0])}a=this.get_fast();if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));this.set_fast(a)},updateMainId:function(a){var b=this.screen_id;this.set_screen_id(lb.updateMain(this.screen_id,a));this.get_infoXml().updateTargets(b,this.screen_id)},updateSubId:function(a){var b=this.screen_id;this.set_screen_id(lb.updateSub(this.screen_id,a));this.get_infoXml().updateTargets(b,
this.screen_id)},updateTargets:function(a,b){for(var c=0,d=this.imageNodes;c<d.length;){var e=d[c];++c;e.updateTargetId(a,b)}},getQuestionText:function(){var a=null,b=new fa("([^.?!]*)\\?","");if(null!=this.contentNode&&!Gb.isEmpty(this.contentNode.value)){var c=ec.stripTags(this.contentNode.value);b.match(c)&&(a=b.matched(0))}if(null==a&&0<this.additionalContent.length)for(var d=0,e=this.additionalContent;d<e.length;)if(c=e[d],++d,!Gb.isEmpty(c.value)&&(c=ec.stripTags(c.value),b.match(c))){a=b.matched(0);
break}null==a&&(a=this.get_infoXml().screensList.find(B.string(this.get_mainId())),a=""==a.get_sectionTitle()?this.screen_id:a.get_sectionTitle()+" ("+this.screen_id+")");return a},hasForms:function(){return null!=this.quizesNode?0<this.quizesNode.quizNodes.length:!1},get_id:function(){return this.screen_id},get_mainId:function(){return lb.getMainId(this.screen_id)},get_title:function(){return ec.stripTags(this.get_sectionTitle())},get_index:function(){return this.get_infoXml().screensList.getIndex(this.screen_id)},
get_infoXml:function(){return N.__cast(this.parent,Wd)},destroy:function(){null!=this.quizesNode&&this.quizesNode.destroy();Ca.prototype.destroy.call(this)},__class__:Ae,__properties__:r(Ca.prototype.__properties__,{get_navigation:"get_navigation",get_inAlpha:"get_inAlpha",get_slideRoom:"get_slideRoom",get_contentMoviePath:"get_contentMoviePath",set_background:"set_background",get_background:"get_background",get_contentMovieNode:"get_contentMovieNode",get_menuIndex:"get_menuIndex",get_infoXml:"get_infoXml",
get_index:"get_index",get_title:"get_title",get_mainId:"get_mainId",get_id:"get_id",set_sectionTitle:"set_sectionTitle",get_sectionTitle:"get_sectionTitle",set_screen_id:"set_screen_id"})});var Eb={fromInt:function(a){return Eb.TEMPLATES[a-1]},toString:function(a){return Eb.CLASS_NAMES[a-1]}},Zo=function(a,b){Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a);this.parent=b};g["elearningwmb.xml.screen.TemplateNode"]=Zo;Zo.__name__="elearningwmb.xml.screen.TemplateNode";
Zo.__super__=Ca;Zo.prototype=r(Ca.prototype,{id:null,onSetFast:function(){this.id=B.parseInt(qb.get_innerData(this.get_fast()))},html5Format:null,get_html5Format:function(){return N.__cast(this.parent.parent,Wd).settings.tryWebGL&&4==Eb.fromInt(this.id)?1:0},isMultiImage:null,get_isMultiImage:function(){return 9!=Eb.fromInt(this.id)&&10!=Eb.fromInt(this.id)&&11!=Eb.fromInt(this.id)&&12!=Eb.fromInt(this.id)&&4!=Eb.fromInt(this.id)&&13!=Eb.fromInt(this.id)&&3!=Eb.fromInt(this.id)?7==Eb.fromInt(this.id):
!0},isMultiButton:null,get_isMultiButton:function(){return 9!=Eb.fromInt(this.id)&&10!=Eb.fromInt(this.id)&&11!=Eb.fromInt(this.id)?3==Eb.fromInt(this.id):!0},__class__:Zo,__properties__:r(Ca.prototype.__properties__,{get_isMultiButton:"get_isMultiButton",get_isMultiImage:"get_isMultiImage",get_html5Format:"get_html5Format"})});var Bm=function(a,b){this.bgAlpha=.75;this.x=this.y=this.width=this.height=0;this.value="";Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a);
this.parent=b};g["elearningwmb.xml.screen.TitleNode"]=Bm;Bm.__name__="elearningwmb.xml.screen.TitleNode";Bm.__interfaces__=[Fk];Bm.__super__=Ca;Bm.prototype=r(Ca.prototype,{value:null,x:null,y:null,width:null,height:null,hasBackground:null,bgColor:null,borderSize:null,borderColor:null,borderAlpha:null,padding:null,bgAlpha:null,onSetFast:function(){var a=this._fast;if(a.nodeType==z.Document)a="Document";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==
a.nodeType?"null":V.toString(a.nodeType)));a=a.nodeName}if("Title"==a){try{this.value=qb.get_innerData(this._fast)}catch(b){wa.lastError=b,this.value=""}ja.resolve(this._fast,"x")&&(this.x=B.parseInt(ba.resolve(this._fast,"x")));ja.resolve(this._fast,"y")&&(this.y=B.parseInt(ba.resolve(this._fast,"y")));ja.resolve(this._fast,"width")&&(this.width=B.parseInt(ba.resolve(this._fast,"width")));ja.resolve(this._fast,"height")&&(this.height=B.parseInt(ba.resolve(this._fast,"height")));this.hasBackground=
ja.resolve(this._fast,"hasBackground")&&"true"==ba.resolve(this._fast,"hasBackground")&&""!=this.value;this.bgColor=ja.resolve(this._fast,"bgColor")?B.parseInt("0x"+G.substr(ba.resolve(this._fast,"bgColor"),1,null)):16777215;this.bgAlpha=ja.resolve(this._fast,"bgAlpha")?parseFloat(ba.resolve(this._fast,"bgAlpha")):.75;1<this.bgAlpha&&(this.bgAlpha/=100);this.borderSize=0;if(ja.resolve(this.get_fast(),"borderSize")||ja.resolve(this.get_fast(),"borderColor"))this.borderSize=ja.resolve(this.get_fast(),
"borderSize")?B.parseInt(ba.resolve(this.get_fast(),"borderSize")):2,this.borderColor=ja.resolve(this.get_fast(),"borderColor")?B.parseInt("0x"+G.substr(ba.resolve(this.get_fast(),"borderColor"),1,null)):0,this.borderAlpha=ja.resolve(this.get_fast(),"borderAlpha")?parseFloat(ba.resolve(this.get_fast(),"borderAlpha")):1;a=!this.hasBackground;null==a&&(a=!0);this.padding=0;if(0<this.borderSize||!a)this.padding=ja.resolve(this.get_fast(),"padding")?B.parseInt(ba.resolve(this.get_fast(),"padding")):20}else ma.resolve(this._fast,
"Title_x")&&(this.x=B.parseInt(qb.get_innerData(aa.resolve(this._fast,"Title_x")))),ma.resolve(this._fast,"Title_y")&&(this.y=B.parseInt(qb.get_innerData(aa.resolve(this._fast,"Title_y")))),ma.resolve(this._fast,"Title_Width")&&(this.width=B.parseInt(qb.get_innerData(aa.resolve(this._fast,"Title_Width")))),ma.resolve(this._fast,"Title_Height")&&(this.height=B.parseInt(qb.get_innerData(aa.resolve(this._fast,"Title_Height")))),ma.resolve(this._fast,"Title")&&this.set_fast(aa.resolve(this._fast,"Title"))},
__class__:Bm});var Hk=function(a){Ca.call(this);this.get_signals().get_setFast().add(k(this,this.onSetFast));this.set_fast(a)};g["elearningwmb.xml.screen.VideoNode"]=Hk;Hk.__name__="elearningwmb.xml.screen.VideoNode";Hk.__interfaces__=[kh,Kh,Oi,Lg];Hk.__super__=Ca;Hk.prototype=r(Ca.prototype,{x:null,y:null,width:null,height:null,autostart:null,videoAlpha:null,alpha:null,path:null,borderSize:null,borderColor:null,borderAlpha:null,padding:null,allowFullscreen:null,allowPictureInPicture:null,onSetFast:function(){this.x=
null;if(ja.resolve(this.get_fast(),"x")){var a=this.x=parseFloat(ba.resolve(this.get_fast(),"x"));isNaN(a)&&(this.x=null)}this.y=null;ja.resolve(this.get_fast(),"y")&&(a=this.y=parseFloat(ba.resolve(this.get_fast(),"y")),isNaN(a)&&(this.y=null));this.width=null;ja.resolve(this._fast,"width")&&(a=this.width=parseFloat(ba.resolve(this._fast,"width")),isNaN(a)||0>this.width)&&(this.width=null);this.height=null;ja.resolve(this._fast,"height")&&(a=this.height=parseFloat(ba.resolve(this._fast,"height")),
isNaN(a)||0>this.height)&&(this.height=null);this.autostart=ja.resolve(this._fast,"autostart")&&"true"==ba.resolve(this._fast,"autostart");this.videoAlpha=ja.resolve(this._fast,"alpha")&&"true"==ba.resolve(this._fast,"alpha");this.allowFullscreen=ja.resolve(this._fast,"allowfullscreen")&&"true"==ba.resolve(this._fast,"allowfullscreen");this.allowPictureInPicture=ja.resolve(this._fast,"pictureinpicture")&&"true"==ba.resolve(this._fast,"pictureinpicture");this.alpha=1;ja.resolve(this.get_fast(),"alpha")&&
(a=this.alpha=parseFloat(ba.resolve(this.get_fast(),"alpha")),isNaN(a)&&(this.alpha=1));try{this.path=ec.trim(qb.get_innerData(this._fast)),this.path=this.path.replace(/.(flv|mp4)$/i,"."+(this.videoAlpha?"webm":"mp4"))}catch(b){wa.lastError=b,this.path=""}this.borderSize=0;if(ja.resolve(this.get_fast(),"borderSize")||ja.resolve(this.get_fast(),"borderColor"))this.borderSize=ja.resolve(this.get_fast(),"borderSize")?B.parseInt(ba.resolve(this.get_fast(),"borderSize")):2,this.borderColor=ja.resolve(this.get_fast(),
"borderColor")?B.parseInt("0x"+G.substr(ba.resolve(this.get_fast(),"borderColor"),1,null)):0,this.borderAlpha=ja.resolve(this.get_fast(),"borderAlpha")?parseFloat(ba.resolve(this.get_fast(),"borderAlpha")):1;this.padding=0;0<this.borderSize&&(this.padding=ja.resolve(this.get_fast(),"padding")?B.parseInt(ba.resolve(this.get_fast(),"padding")):20)},isEmbed:function(){return this.isYoutube()?!0:this.isVimeo()},isYoutube:function(){return-1<this.path.indexOf("youtube.com")},parseYoutubeId:function(){var a=
new fa('(?:youtube\\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\\.be/)([^"&?/\\s]{11})',"gi");a.match(this.path);return a.matched(1)},isVimeo:function(){return-1<this.path.indexOf("vimeo.com")},parseVimeoId:function(){var a=new fa("(?:www\\.|player\\.)?vimeo.com/(?:channels/(?:\\w+/)?|groups/(?:[^/]*)/videos/|album/(?:\\d+)/video/|video/|)(\\d+)(?:[a-zA-Z0-9_\\-]+)?","i");a.match(this.path);return a.matched(1)},parseType:function(){var a=this.path.lastIndexOf(".");return-1<a?"video/"+G.substr(this.path,
a+1,null).toLowerCase():null},setPosition:function(a,b){if(this.x!=a&&!isNaN(a)||this.y!=b&&!isNaN(b))this.x=a,this.y=b,null!=a?this.get_xml().set("x",null==a?"null":""+a):this.get_xml().remove("x"),null!=b?this.get_xml().set("y",null==b?"null":""+b):this.get_xml().remove("y"),this.__changed()},updateSize:function(a,b,c){null==c&&(c=!0);if(this.width!=a||this.height!=b)this.get_xml().set("width",null==a?"null":""+a),this.get_xml().set("height",null==b?"null":""+b),c&&this.__fastUpdated()},__class__:Hk});
var zs=function(){};g["extensions.ArrayExtension"]=zs;zs.__name__="extensions.ArrayExtension";zs.shuffle=function(a){for(var b=[];0<a.length;)b.push(a.splice(Math.round(Math.random()*(a.length-1)),1)[0]);return b};zs.unique=function(a){for(var b={},c=[],d=0;d<a.length;){var e=a[d];++d;var f=B.string(e)+"";b[f]||(c.push(e),b[f]=!0)}return c};var Af=function(){};g["extensions.DateExtension"]=Af;Af.__name__="extensions.DateExtension";Af.getUTCFullYear=function(a){return J.field(a,"getUTCFullYear").apply(a,
[])};Af.getUTCDate=function(a){return J.field(a,"getUTCDate").apply(a,[])};Af.getUTCDay=function(a){return J.field(a,"getUTCDay").apply(a,[])};Af.getUTCMonth=function(a){return J.field(a,"getUTCMonth").apply(a,[])};Af.getUTCHours=function(a){return J.field(a,"getUTCHours").apply(a,[])};Af.getUTCMinutes=function(a){return J.field(a,"getUTCMinutes").apply(a,[])};Af.getUTCSeconds=function(a){return J.field(a,"getUTCSeconds").apply(a,[])};Af.toUTCString=function(a){var b=a.getUTCFullYear(),c=a.getUTCDate(),
d=a.getUTCDay(),e=a.getUTCMonth();a=Gb.formatTime(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds());return Af.DAYS[d]+", "+c+" "+Af.MONTHS[e]+" "+b+" "+a+" UTC"};var Zc=function(){};g["extensions.DynamicExtension"]=Zc;Zc.__name__="extensions.DynamicExtension";Zc.fields=function(a){var b=N.getClass(a);return null==b||"Dynamic"==b.__name__?J.fields(a):wb.getInstanceFields(b)};Zc.diff=function(a,b,c){null==c&&(c=!1);for(var d={},e=0,f=J.fields(b);e<f.length;){var h=f[e];++e;Zc.equals(J.field(b,h),
J.field(a,h),c)||(d[h]=J.field(b,h))}return d};Zc.contains=function(a,b,c){null==c&&(c=!1);if(a==b)return!0;for(var d=0,e=J.fields(b);d<e.length;){var f=e[d];++d;if(!Zc.equals(J.field(b,f),J.field(a,f),c))return!1}return!0};Zc.equals=function(a,b,c){null==c&&(c=!1);if(a==b)return!0;if(a instanceof Array&&b instanceof Array){if(a.length!=b.length)return!1;for(var d=0,e=N.__cast(a,Array).length;d<e;){var f=d++;if(c){if(!Zc.equals(a[f],b[f]))return!1}else if(a[f]!=b[f])return!1}}else if(J.isObject(a)&&
J.isObject(b)){if(a.__name__!=b.__name__||J.fields(a).length!=J.fields(b).length)return!1;d=0;for(e=J.fields(a);d<e.length;)if(f=e[d],++d,c){if(!Zc.equals(J.field(a,f),J.field(b,f),!0))return!1}else if(J.field(a,f)!=J.field(b,f))return!1}else return a==b;return!0};Zc.deepTrace=function(a,b){null==b&&(b=0);for(var c="",d=0,e=b;d<e;)d++,c+="\t";if(a instanceof Array)for(d=0,e=N.__cast(a,Array).length;d<e;){var f=d++;Ub.trace(c+"["+f+"] -> ",{fileName:"../Lib/Source/extensions/DynamicExtension.hx",lineNumber:95,
className:"extensions.DynamicExtension",methodName:"deepTrace"});Zc.deepTrace(a[f],b+1)}else for(e=Zc.fields(a),d=0;d<e.length;){f=e[d];++d;var h=J.field(a,f);J.isObject(h)?(Ub.trace(c+"["+f+"] -> ",{fileName:"../Lib/Source/extensions/DynamicExtension.hx",lineNumber:104,className:"extensions.DynamicExtension",methodName:"deepTrace"}),Zc.deepTrace(h,b+1)):Ub.trace(c+"["+f+"] -> "+B.string(h),{fileName:"../Lib/Source/extensions/DynamicExtension.hx",lineNumber:108,className:"extensions.DynamicExtension",
methodName:"deepTrace"})}};Zc.merge=function(a,b){for(var c=Zc.fields(b),d=0;d<c.length;){var e=c[d];++d;a[e]=J.field(b,e)}return a};var Kg=function(){};g["extensions.FastExtension"]=Kg;Kg.__name__="extensions.FastExtension";Kg.clone=function(a){a=z.parse(bc.print(a));if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+
(null==a.nodeType?"null":V.toString(a.nodeType)));return a};Kg.asString=function(a){return Ma.parseString(a)};Kg.asBool=function(a){return Ma.parseBool(a)};Kg.asInt=function(a){return Ma.parseInt(a)};Kg.asFloat=function(a){return Ma.parseFloat(a)};var Lh=function(){};g["extensions.FloatExtension"]=Lh;Lh.__name__="extensions.FloatExtension";Lh.toFixed=function(a,b){return J.field(a,"toFixed").apply(a,[b])};var Ng=function(){};g["extensions.IntExtension"]=Ng;Ng.__name__="extensions.IntExtension";Ng.formatTime=
function(a,b){null==b&&(b=!1);var c=Math.floor(a/60),d=a%60;return b||3600<=a?Math.floor(a/3600)+":"+Ng.padZero(c)+":"+Ng.padZero(d):c+":"+Ng.padZero(d)};Ng.padZero=function(a){return(10<=a?"":"0")+a};Ng.toRGB=function(a){return[a>>16,a>>8&255,a&255]};var ec=function(){};g["extensions.StringExtension"]=ec;ec.__name__="extensions.StringExtension";ec.trim=function(a,b){var c=Object.create(null);if("string"==typeof b){var d=0;for(b=b.split("");d<b.length;){var e=b[d];++d;c["code_"+e]=!0}}else if(b instanceof
Array)for(d=0,b=b.split("");d<b.length;)e=b[d],++d,c["code_"+G.cca(e,0)]=!0;else c.code_9=!0,c.code_10=!0,c.code_13=!0,c.code_32=!0;for(;1==c["code_"+G.cca(a,0)];)a=a.substring(1,a.length);for(;1==c["code_"+G.cca(a,a.length-1)];)a=a.substring(0,a.length-1);return a};ec.hasTags=function(a){return(new fa("<[^<]+?>","gi")).match(a)};ec.stripTags=function(a){return a.replace(/<[^<]+?>/gi,"")};ec.htmlEntityDecode=function(a){return a.replace(/&nbsp;/gi,"\u00a0").replace(/&quot;/gi,'"').replace(/&amp;/gi,
"&").replace(/&gt;/gi,">").replace(/&lt;/gi,"<").replace(/&apos;/gi,"'").replace(/&copy;/gi,"\u00a9").replace(/&rsquo;/gi,"\u2019").replace(/&ldquo;/gi,"\u201c").replace(/&rdquo;/gi,"\u201d").replace(/&lsquo;/gi,"\u2018").replace(/&mdash;/gi,"\u2014")};ec.pollyTags=function(a){return a.replace(/<li>/gi," - ").replace(/<\/li>/gi,"\n").replace(/<\/p>/gi,"</p>\n").replace(/<p[^<]+?>/gi,"<p>").replace(/<(?!p|\/p)[^<]+?>/gi,"")};ec.replace=function(a,b,c){return ia.replace(a,b,c)};ec.toFloat=function(a,
b){a=parseFloat(a);return isNaN(a)?b:a};ec.ucfirst=function(a){return G.substr(a,0,1).toUpperCase()+G.substr(a,1,null)};ec.localeCompare=function(a,b,c){var d=null,e={numeric:!0};null!=c&&(d=c.locale,J.deleteField(c,"locale"),e=Zc.merge(e,c));return a.localeCompare(b,null==d?void 0:d,e)};ec.pad=function(a,b,c){for(;a.length<b;)a=c+a;return a};var La=function(){};g["extensions.XmlExtension"]=La;La.__name__="extensions.XmlExtension";La.elementIndex=function(a,b){var c=0,d=a.parent;if(d.nodeType!=z.Document&&
d.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==d.nodeType?"null":V.toString(d.nodeType)));var e=0;for(d=d.children;e<d.length;){var f=d[e++];if(0==f.nodeType)if(null!=b){if(f.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==f.nodeType?"null":V.toString(f.nodeType)));var h=f.nodeName!=b}else h=!1;else h=!0;if(!h){if(f==a)return c;++c}}return-1};La.childIndex=function(a){var b=0,c=a.parent;if(c.nodeType!=z.Document&&
c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));var d=0;for(c=c.children;d<c.length;){if(c[d++]==a)return b;++b}return-1};La._replaceChild=function(a,b,c){a.insertChild(c,La.childIndex(b));a.removeChild(b)};La.replaceChild=function(a,b){if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));var c=a.elementsNamed(b.nodeName);
c.hasNext()?La._replaceChild(a,c.next(),b):a.addChild(b)};La.setNodeValue=function(a,b){switch(b._hx_index){case 0:var c=b.v;break;case 1:b=z.parse(b.v);if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));c=b.children[0]}for(;0<a.children.length;){if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?
"null":V.toString(a.nodeType)));a.removeChild(a.children[0])}a.addChild(c)};La.setChildValue=function(a,b,c){c=z.parse("<"+b+">"+c+"</"+b+">");if(c.nodeType!=z.Document&&c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));c=c.children[0];b=a.elementsNamed(b);b.hasNext()&&La.copyAttributes(b.next(),c);La.replaceChild(a,c)};La.copyAttributes=function(a,b){for(var c=a.attributes();c.hasNext();){var d=c.next();
b.set(d,a.get(d))}};La.clone=function(a){a=z.parse(bc.print(a));if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a.children[0]};var zf=function(a){null!=a&&(this.data=new Cb(z.parse(a)))};g["format.SVG"]=zf;zf.__name__="format.SVG";zf.prototype={data:null,render:function(a,b,c,d,e,f){null==e&&(e=-1);null==d&&(d=-1);null==c&&(c=0);null==b&&(b=0);if(null!=this.data){var h=
new Aa;h.identity();-1<d&&-1<e&&h.scale(d/this.data.width,e/this.data.height);h.translate(b,c);(new Mh(this.data,f)).render(a,h)}},__class__:zf};var ig=function(){};g["format.gfx.Gfx"]=ig;ig.__name__="format.gfx.Gfx";ig.prototype={geometryOnly:function(){return!1},size:function(a,b){},beginGradientFill:function(a){},beginFill:function(a,b){},endFill:function(){},lineStyle:function(a){},endLineStyle:function(){},moveTo:function(a,b){},lineTo:function(a,b){},curveTo:function(a,b,c,d){},renderText:function(a){},
eof:function(){},__class__:ig};var $o=function(){this.commands=[]};g["format.gfx.Gfx2Haxe"]=$o;$o.__name__="format.gfx.Gfx2Haxe";$o.__super__=ig;$o.prototype=r(ig.prototype,{commands:null,f2a:function(a){return 1E-6>Math.abs(a)?"0":1E-6>Math.abs(1-a)?"1":a+""},newMatrix:function(a){return"new Matrix("+this.f2a(a.a)+","+this.f2a(a.b)+","+this.f2a(a.c)+","+this.f2a(a.d)+","+this.f2a(a.tx)+","+this.f2a(a.ty)+")"},beginGradientFill:function(a){this.commands.push("g.beginGradientFill("+(null==a.type?"null":
Cu.toString(a.type))+","+B.string(a.colors)+","+B.string(a.alphas)+","+B.string(a.ratios)+","+this.newMatrix(a.matrix)+","+(null==a.spread?"null":Vt.toString(a.spread))+","+(null==a.interp?"null":Du.toString(a.interp))+","+a.focus+");")},beginFill:function(a,b){this.commands.push("g.beginFill("+a+","+this.f2a(b)+");")},endFill:function(){this.commands.push("g.endFill();")},lineStyle:function(a){this.commands.push("g.lineStyle("+this.f2a(a.thickness)+","+a.color+","+this.f2a(a.alpha)+","+(null==a.pixelHinting?
"null":""+a.pixelHinting)+","+(null==a.scaleMode?"null":As.toString(a.scaleMode))+","+(null==a.capsStyle?"null":Bs.toString(a.capsStyle))+","+(null==a.jointStyle?"null":Cs.toString(a.jointStyle))+","+this.f2a(a.miterLimit)+");")},endLineStyle:function(){this.commands.push("g.lineStyle();")},moveTo:function(a,b){this.commands.push("g.moveTo("+a+","+b+");")},lineTo:function(a,b){this.commands.push("g.lineTo("+a+","+b+");")},curveTo:function(a,b,c,d){this.commands.push("g.curveTo("+a+","+b+","+c+","+
d+");")},__class__:$o});var $c=function(a,b){this.buffer=null==a?new Nb(0):a};g["format.gfx.GfxBytes"]=$c;$c.__name__="format.gfx.GfxBytes";$c.fromString=function(a){null==$c.baseCoder&&($c.baseCoder=new ap(Qa.ofString($c.base64)));var b=new Nb(0);b.writeUTF(a);return new $c(b)};$c.__super__=ig;$c.prototype=r(ig.prototype,{buffer:null,toString:function(){return""},eof:function(){this.buffer.writeByte(0)},iterate:function(a){for(this.buffer.position=0;;)switch(this.buffer.readByte()){case 0:return;
case 1:var b=this.buffer.readFloat(),c=this.buffer.readFloat();a.size(b,c);break;case 10:b=this.readRGB();c=this.buffer.readFloat();a.beginFill(b,c);break;case 11:b=new Ik;b.type=this.buffer.readByte();c=0;for(var d=this.buffer.readByte();c<d;)c++,b.colors.push(this.readRGB()),b.alphas.push(this.buffer.readByte()/255),b.ratios.push(this.buffer.readByte());c=this.buffer.readFloat();b.matrix.a=c;c=this.buffer.readFloat();b.matrix.b=c;c=this.buffer.readFloat();b.matrix.c=c;c=this.buffer.readFloat();
b.matrix.d=c;c=this.buffer.readFloat();b.matrix.tx=c;c=this.buffer.readFloat();b.matrix.ty=c;b.spread=this.buffer.readByte();b.interp=this.buffer.readByte();b.focus=this.buffer.readFloat();a.beginGradientFill(b);break;case 12:a.endFill();break;case 20:b=new bp;b.thickness=this.buffer.readFloat();b.color=this.readRGB();b.alpha=this.buffer.readFloat();b.pixelHinting=0<this.buffer.readByte();b.scaleMode=this.buffer.readByte();b.capsStyle=this.buffer.readByte();b.jointStyle=this.buffer.readByte();b.miterLimit=
this.buffer.readFloat();a.lineStyle(b);break;case 21:a.endLineStyle();break;case 30:b=this.buffer.readFloat();c=this.buffer.readFloat();a.moveTo(b,c);break;case 31:b=this.buffer.readFloat();c=this.buffer.readFloat();a.lineTo(b,c);break;case 32:b=this.buffer.readFloat();c=this.buffer.readFloat();d=this.buffer.readFloat();var e=this.buffer.readFloat();a.curveTo(b,c,d,e);break;default:throw u.thrown("Unknown gfx buffer format.");}},size:function(a,b){this.buffer.writeByte(1);this.buffer.writeFloat(a);
this.buffer.writeFloat(b)},pushClipped:function(a){this.buffer.writeByte(0>a?0:255<a?255:a|0)},writeRGB:function(a){this.buffer.writeByte(a>>16&255);this.buffer.writeByte(a>>8&255);this.buffer.writeByte(a&255)},readRGB:function(){var a=this.buffer.readByte(),b=this.buffer.readByte(),c=this.buffer.readByte();return a<<16|b<<8|c},beginGradientFill:function(a){this.buffer.writeByte(11);this.buffer.writeByte(a.type);this.buffer.writeByte(a.colors.length);for(var b=0,c=a.colors.length;b<c;){var d=b++;
this.writeRGB(za.toFloat(a.colors[d])|0);var e=255*a.alphas[d];this.buffer.writeByte(0>e?0:255<e?255:e|0);d=a.ratios[d];this.buffer.writeByte(0>d?0:255<d?255:d|0)}this.buffer.writeFloat(a.matrix.a);this.buffer.writeFloat(a.matrix.b);this.buffer.writeFloat(a.matrix.c);this.buffer.writeFloat(a.matrix.d);this.buffer.writeFloat(a.matrix.tx);this.buffer.writeFloat(a.matrix.ty);this.buffer.writeByte(a.spread);this.buffer.writeByte(a.interp);this.buffer.writeFloat(a.focus)},beginFill:function(a,b){this.buffer.writeByte(10);
this.writeRGB(a);this.buffer.writeFloat(b)},endFill:function(){this.buffer.writeByte(12)},lineStyle:function(a){this.buffer.writeByte(20);this.buffer.writeFloat(a.thickness);this.writeRGB(a.color);this.buffer.writeFloat(a.alpha);this.buffer.writeByte(a.pixelHinting?1:0);this.buffer.writeByte(a.scaleMode);this.buffer.writeByte(a.capsStyle);this.buffer.writeByte(a.jointStyle);this.buffer.writeFloat(a.miterLimit)},endLineStyle:function(){this.buffer.writeByte(21)},moveTo:function(a,b){this.buffer.writeByte(30);
this.buffer.writeFloat(a);this.buffer.writeFloat(b)},lineTo:function(a,b){this.buffer.writeByte(31);this.buffer.writeFloat(a);this.buffer.writeFloat(b)},curveTo:function(a,b,c,d){this.buffer.writeByte(32);this.buffer.writeFloat(a);this.buffer.writeFloat(b);this.buffer.writeFloat(c);this.buffer.writeFloat(d)},__class__:$c});var cp=function(){this.extent=null};g["format.gfx.GfxExtent"]=cp;cp.__name__="format.gfx.GfxExtent";cp.__super__=ig;cp.prototype=r(ig.prototype,{extent:null,addExtent:function(a,
b){null==this.extent?this.extent=new ha(a,b,0,0):(a<this.extent.get_left()&&this.extent.set_left(a),a>this.extent.get_right()&&this.extent.set_right(a),b<this.extent.get_top()&&this.extent.set_top(b),b>this.extent.get_bottom()&&this.extent.set_bottom(b))},geometryOnly:function(){return!0},moveTo:function(a,b){this.addExtent(a,b)},lineTo:function(a,b){this.addExtent(a,b)},curveTo:function(a,b,c,d){this.addExtent(a,b);this.addExtent(c,d)},__class__:cp});var Cm=function(a){this.graphics=a};g["format.gfx.GfxGraphics"]=
Cm;Cm.__name__="format.gfx.GfxGraphics";Cm.__super__=ig;Cm.prototype=r(ig.prototype,{graphics:null,beginGradientFill:function(a){this.graphics.beginGradientFill(a.type,a.colors,a.alphas,a.ratios,a.matrix,a.spread,a.interp,a.focus)},beginFill:function(a,b){this.graphics.beginFill(a,b)},endFill:function(){this.graphics.endFill()},lineStyle:function(a){this.graphics.lineStyle(a.thickness,a.color,a.alpha,a.pixelHinting,a.scaleMode,a.capsStyle,a.jointStyle,a.miterLimit)},endLineStyle:function(){this.graphics.lineStyle()},
moveTo:function(a,b){this.graphics.moveTo(a,b)},lineTo:function(a,b){this.graphics.lineTo(a,b)},curveTo:function(a,b,c,d){this.graphics.curveTo(a,b,c,d)},__class__:Cm});var dp=function(){};g["format.gfx.GfxTextFinder"]=dp;dp.__name__="format.gfx.GfxTextFinder";dp.__super__=ig;dp.prototype=r(ig.prototype,{text:null,geometryOnly:function(){return!0},renderText:function(a){null==this.text&&(this.text=a)},__class__:dp});var Ik=function(){this.type=0;this.colors=[];this.alphas=[];this.ratios=[];this.matrix=
new Aa;this.spread=0;this.interp=1;this.focus=0};g["format.gfx.Gradient"]=Ik;Ik.__name__="format.gfx.Gradient";Ik.prototype={type:null,colors:null,alphas:null,ratios:null,matrix:null,spread:null,interp:null,focus:null,__class__:Ik};var bp=function(){this.thickness=1;this.color=0;this.alpha=1;this.pixelHinting=!1;this.scaleMode=2;this.capsStyle=1;this.jointStyle=2;this.miterLimit=3};g["format.gfx.LineStyle"]=bp;bp.__name__="format.gfx.LineStyle";bp.prototype={thickness:null,color:null,alpha:null,pixelHinting:null,
scaleMode:null,capsStyle:null,jointStyle:null,miterLimit:null,__class__:bp};var Nh=P["format.svg.FillType"]={__ename__:"format.svg.FillType",__constructs__:null,FillGrad:(x=function(a){return{_hx_index:0,grad:a,__enum__:"format.svg.FillType",toString:v}},x._hx_name="FillGrad",x.__params__=["grad"],x),FillSolid:(x=function(a){return{_hx_index:1,colour:a,__enum__:"format.svg.FillType",toString:v}},x._hx_name="FillSolid",x.__params__=["colour"],x),FillNone:{_hx_name:"FillNone",_hx_index:2,__enum__:"format.svg.FillType",
toString:v}};Nh.__constructs__=[Nh.FillGrad,Nh.FillSolid,Nh.FillNone];Nh.__empty_constructs__=[Nh.FillNone];var ep=function(a){Ik.call(this);this.type=a;this.radius=0;this.gradMatrix=new Aa;this.y2=this.x2=this.y1=this.x1=0};g["format.svg.Grad"]=ep;ep.__name__="format.svg.Grad";ep.__super__=Ik;ep.prototype=r(Ik.prototype,{gradMatrix:null,radius:null,x1:null,y1:null,x2:null,y2:null,updateMatrix:function(a){var b=this.x2-this.x1,c=this.y2-this.y1,d=Math.atan2(c,b);b=Math.sqrt(b*b+c*c);c=new Aa;0==this.type?
(c.createGradientBox(1,1),c.scale(b,b)):(0!=this.radius&&(this.focus=b/this.radius),c.createGradientBox(1,1),c.translate(-.5,-.5),c.scale(2*this.radius,2*this.radius));c.rotate(d);c.translate(this.x1,this.y1);c.concat(this.gradMatrix);c.concat(a);this.matrix=c},__class__:ep});var Jk=function(){this.name="";this.children=[]};g["format.svg.Group"]=Jk;Jk.__name__="format.svg.Group";Jk.prototype={hasGroup:function(a){return null!=this.findGroup(a)},findGroup:function(a){for(var b=0,c=this.children;b<
c.length;){var d=c[b];++b;if(1==d._hx_index){d=d.group;if(d.name==a)return d;d=d.findGroup(a);if(null!=d)return d}}return null},name:null,children:null,__class__:Jk};var lh=P["format.svg.DisplayElement"]={__ename__:"format.svg.DisplayElement",__constructs__:null,DisplayPath:(x=function(a){return{_hx_index:0,path:a,__enum__:"format.svg.DisplayElement",toString:v}},x._hx_name="DisplayPath",x.__params__=["path"],x),DisplayGroup:(x=function(a){return{_hx_index:1,group:a,__enum__:"format.svg.DisplayElement",
toString:v}},x._hx_name="DisplayGroup",x.__params__=["group"],x),DisplayText:(x=function(a){return{_hx_index:2,text:a,__enum__:"format.svg.DisplayElement",toString:v}},x._hx_name="DisplayText",x.__params__=["text"],x)};lh.__constructs__=[lh.DisplayPath,lh.DisplayGroup,lh.DisplayText];lh.__empty_constructs__=[];var Ds=function(){};g["format.svg.Path"]=Ds;Ds.__name__="format.svg.Path";Ds.prototype={matrix:null,name:null,font_size:null,fill:null,alpha:null,fill_alpha:null,stroke_alpha:null,stroke_colour:null,
stroke_width:null,stroke_caps:null,joint_style:null,miter_limit:null,segments:null,__class__:Ds};var pc=function(){if(null==pc.sCommandArgs){pc.sCommandArgs=[];for(var a=0;128>a;){var b=a++;pc.sCommandArgs[b]=this.commandArgs(b)}}};g["format.svg.PathParser"]=pc;pc.__name__="format.svg.PathParser";pc.prototype={lastMoveX:null,lastMoveY:null,prev:null,parse:function(a,b){var c=this.lastMoveX=this.lastMoveY=0,d=[],e=[],f=0,h=-1,l=-1;this.prev=null;for(var m=a.length,t=!1;c<=m;){var k=c==m?32:G.cca(a,
c),n=0<k&&128>k?pc.sCommandArgs[k]:-1;if(-1==n)throw u.thrown("failed parsing path near '"+G.substr(a,c,null)+"'");if(-2==n)++c;else if(-3>=n){k=c+1;var g=-1,q=-5==n;-6==n&&(g=0,q=!0);for(;k<a.length;){n=G.cca(a,k);n=0>n||127<n?-1:pc.sCommandArgs[n];if(-3<n)break;if(-5==n&&q)break;if(0<=g){if(-4==n){if(0!=g)break}else if(-3!=n)break;++g}else if(-6==n){if(0<=g)break;g=0;q=!0}else if(-4==n)break;++k}0<=h&&(c=parseFloat(G.substr(a,c,k-c)),d.push(c));c=k}else h=k,l=n,t=!1,f=c,d=[],++c;g=k=0;if(0<=h&&
l==d.length){b&&null!=this.prev&&(k=this.prev.prevX(),g=this.prev.prevY());this.prev=this.createCommand(h,d);if(null==this.prev)throw u.thrown("Unknown command "+String.fromCodePoint(h)+" near '"+G.substr(a,f,null)+"'");if(b&&4==this.prev.getType())for(d=this.prev.toQuadratics(k,g),f=0;f<d.length;)t=d[f],++f,e.push(t);else e.push(this.prev);t=!0;0==l?h=l=-1:77==h?h=76:109==h&&(h=108);f=c;d=[]}}if(0<=h&&!t)throw u.thrown("Unfinished command ("+d.length+"/"+l+") near '"+G.substr(a,f,null)+"'");return e},
commandArgs:function(a){if(10==a)return-2;a=String.fromCodePoint(a).toUpperCase();if("0"<=a&&"9">=a)return-3;switch(a){case "+":return-4;case "\t":case "\n":case "\r":case " ":case ",":return-2;case "-":return-4;case ".":return-5;case "A":return 7;case "C":return 6;case "Q":case "S":return 4;case "L":case "M":case "T":return 2;case "H":case "V":return 1;case "Z":return 0;case "E":case "e":return-6}return-1},prevX:function(){return null!=this.prev?this.prev.prevX():0},prevY:function(){return null!=
this.prev?this.prev.prevY():0},prevCX:function(){return null!=this.prev?this.prev.prevCX():0},prevCY:function(){return null!=this.prev?this.prev.prevCY():0},createCommand:function(a,b){switch(a){case 65:return new Dm(this.prevX(),this.prevY(),b[0],b[1],b[2],0!=b[3],0!=b[4],b[5],b[6]);case 67:return new Hj(b[0],b[1],b[2],b[3],b[4],b[5]);case 72:return new Xd(b[0],this.prevY());case 76:return new Xd(b[0],b[1]);case 77:return this.lastMoveX=b[0],this.lastMoveY=b[1],new Pi(this.lastMoveX,this.lastMoveY);
case 81:return new pd(b[0],b[1],b[2],b[3]);case 83:a=this.prevX();var c=this.prevY();return new Hj(2*a-this.prevCX(),2*c-this.prevCY(),b[0],b[1],b[2],b[3]);case 84:return a=this.prevX(),this.prevY(),new pd(2*a-this.prevCX(),2*a-this.prevCY(),b[2],b[3]);case 86:return new Xd(this.prevX(),b[0]);case 90:return new Xd(this.lastMoveX,this.lastMoveY);case 97:return a=this.prevX(),c=this.prevY(),new Dm(a,c,b[0],b[1],b[2],0!=b[3],0!=b[4],b[5]+a,b[6]+c);case 99:return a=this.prevX(),c=this.prevY(),new Hj(b[0]+
a,b[1]+c,b[2]+a,b[3]+c,b[4]+a,b[5]+c);case 104:return new Xd(b[0]+this.prevX(),this.prevY());case 108:return new Xd(b[0]+this.prevX(),b[1]+this.prevY());case 109:return this.lastMoveX=b[0]+this.prevX(),this.lastMoveY=b[1]+this.prevY(),new Pi(this.lastMoveX,this.lastMoveY);case 113:return a=this.prevX(),c=this.prevY(),new pd(b[0]+a,b[1]+c,b[2]+a,b[3]+c);case 115:return a=this.prevX(),c=this.prevY(),new Hj(2*a-this.prevCX(),2*c-this.prevCY(),b[0]+a,b[1]+c,b[2]+a,b[3]+c);case 116:return a=this.prevX(),
c=this.prevY(),new pd(2*a-this.prevCX(),2*c-this.prevCY(),b[0]+a,b[1]+c);case 118:return new Xd(this.prevX(),b[0]+this.prevY());case 122:return new Xd(this.lastMoveX,this.lastMoveY)}return null},__class__:pc};var yd=function(a,b){this.x=a;this.y=b};g["format.svg.PathSegment"]=yd;yd.__name__="format.svg.PathSegment";yd.prototype={x:null,y:null,getType:function(){return 0},prevX:function(){return this.x},prevY:function(){return this.y},prevCX:function(){return this.x},prevCY:function(){return this.y},
toGfx:function(a,b){b.setLast(this.x,this.y);b.firstX=b.lastX;b.firstY=b.lastY;a.moveTo(b.lastX,b.lastY)},__class__:yd};var Pi=function(a,b){yd.call(this,a,b)};g["format.svg.MoveSegment"]=Pi;Pi.__name__="format.svg.MoveSegment";Pi.__super__=yd;Pi.prototype=r(yd.prototype,{getType:function(){return 1},__class__:Pi});var Xd=function(a,b){yd.call(this,a,b)};g["format.svg.DrawSegment"]=Xd;Xd.__name__="format.svg.DrawSegment";Xd.__super__=yd;Xd.prototype=r(yd.prototype,{toGfx:function(a,b){b.setLast(this.x,
this.y);a.lineTo(b.lastX,b.lastY)},getType:function(){return 2},__class__:Xd});var pd=function(a,b,c,d){yd.call(this,c,d);this.cx=a;this.cy=b};g["format.svg.QuadraticSegment"]=pd;pd.__name__="format.svg.QuadraticSegment";pd.__super__=yd;pd.prototype=r(yd.prototype,{cx:null,cy:null,prevCX:function(){return this.cx},prevCY:function(){return this.cy},toGfx:function(a,b){b.setLast(this.x,this.y);a.curveTo(b.transX(this.cx,this.cy),b.transY(this.cx,this.cy),b.lastX,b.lastY)},getType:function(){return 3},
__class__:pd});var Hj=function(a,b,c,d,e,f){yd.call(this,e,f);this.cx1=a;this.cy1=b;this.cx2=c;this.cy2=d};g["format.svg.CubicSegment"]=Hj;Hj.__name__="format.svg.CubicSegment";Hj.__super__=yd;Hj.prototype=r(yd.prototype,{cx1:null,cy1:null,cx2:null,cy2:null,prevCX:function(){return this.cx2},prevCY:function(){return this.cy2},Interp:function(a,b,c){return a+(b-a)*c},toGfx:function(a,b){var c=b.lastX,d=b.lastY,e=b.transX(this.cx1,this.cy1),f=b.transY(this.cx1,this.cy1),h=b.transX(this.cx2,this.cy2),
l=b.transY(this.cx2,this.cy2);b.setLast(this.x,this.y);var m=b.lastX;b=b.lastY;var t=this.Interp(c,e,.75),k=this.Interp(d,f,.75),n=this.Interp(m,h,.75),g=this.Interp(b,l,.75),q=(m-c)/16,p=(b-d)/16;c=this.Interp(c,e,.375);d=this.Interp(d,f,.375);f=this.Interp(t,n,.375)-q;e=this.Interp(k,g,.375)-p;q=this.Interp(n,t,.375)+q;p=this.Interp(g,k,.375)+p;h=this.Interp(m,h,.375);l=this.Interp(b,l,.375);t=.5*(t+n);k=.5*(k+g);g=.5*(q+h);n=.5*(p+l);a.curveTo(c,d,.5*(c+f),.5*(d+e));a.curveTo(f,e,t,k);a.curveTo(q,
p,g,n);a.curveTo(h,l,m,b)},toQuadratics:function(a,b){var c=[],d=this.Interp(a,this.cx1,.75),e=this.Interp(b,this.cy1,.75),f=this.Interp(this.x,this.cx2,.75),h=this.Interp(this.y,this.cy2,.75),l=(this.x-a)/16,m=(this.y-b)/16;a=this.Interp(a,this.cx1,.375);b=this.Interp(b,this.cy1,.375);var t=this.Interp(d,f,.375)-l,k=this.Interp(e,h,.375)-m;l=this.Interp(f,d,.375)+l;m=this.Interp(h,e,.375)+m;var n=this.Interp(this.x,this.cx2,.375),g=this.Interp(this.y,this.cy2,.375);d=.5*(d+f);e=.5*(e+h);h=.5*(l+
n);f=.5*(m+g);c.push(new pd(a,b,.5*(a+t),.5*(b+k)));c.push(new pd(t,k,d,e));c.push(new pd(l,m,h,f));c.push(new pd(n,g,this.x,this.y));return c},getType:function(){return 4},__class__:Hj});var Dm=function(a,b,c,d,e,f,h,l,m){this.x1=a;this.y1=b;yd.call(this,l,m);this.rx=c;this.ry=d;this.phi=e;this.fA=f;this.fS=h};g["format.svg.ArcSegment"]=Dm;Dm.__name__="format.svg.ArcSegment";Dm.__super__=yd;Dm.prototype=r(yd.prototype,{x1:null,y1:null,rx:null,ry:null,phi:null,fA:null,fS:null,toGfx:function(a,b){if(this.x1!=
this.x||this.y1!=this.y){b.setLast(this.x,this.y);if(0!=this.rx&&0!=this.ry){0>this.rx&&(this.rx=-this.rx);0>this.ry&&(this.ry=-this.ry);var c=this.phi*Math.PI/180,d=Math.cos(c),e=Math.sin(c);c=.5*(this.x1-this.x);var f=.5*(this.y1-this.y),h=d*c+e*f;f=-e*c+d*f;c=this.rx*this.rx;var l=this.ry*this.ry,m=h*h,t=f*f;c=(c*l-c*t-l*m)/(c*t+l*m);c=0>c?0:this.fA==this.fS?-Math.sqrt(c):Math.sqrt(c);l=c*this.rx*f/this.ry;m=-c*this.ry*h/this.rx;c=d*l-e*m+.5*(this.x1+this.x);var k=e*l+d*m+.5*(this.y1+this.y);d=
Math.atan2((f-m)/this.ry,(h-l)/this.rx);h=Math.atan2((-f-m)/this.ry,(-h-l)/this.rx)-d;this.fS&&0>h?h+=2*Math.PI:!this.fS&&0<h&&(h-=2*Math.PI);var n=b.matrix;null!=n?(e=n.a*this.rx,f=n.c*this.ry,l=n.a*c+n.c*k+n.tx,m=n.b*this.rx,t=n.d*this.ry,k=n.b*c+n.d*k+n.ty):(e=this.rx,f=0,l=c+n.tx,m=0,t=this.ry,k+=n.ty);c=Math.round(Math.abs(h)*Math.sqrt(e*e+f*f+m*m+t*t)*5);if(1<c){h/=c;n=1;for(var g=c-1;n<g;){n++;var q=Math.cos(d);c=Math.sin(d);d+=h;a.lineTo(e*q+f*c+l,m*q+t*c+k)}}}a.lineTo(b.lastX,b.lastY)}},
getType:function(){return 5},__class__:Dm});var Es=function(a,b,c,d){this.matrix=a;this.rect=b;this.rectW=null!=c?c:null!=b?b.width:1;this.rectH=null!=d?d:null!=b?b.height:1;this.lastY=this.lastX=this.firstY=this.firstX=0};g["format.svg.RenderContext"]=Es;Es.__name__="format.svg.RenderContext";Es.prototype={transX:function(a,b){null!=this.rect&&a>this.rect.x&&(a=a>this.rect.get_right()?a+(this.rectW-this.rect.width):this.rect.x+this.rectW*(a-this.rect.x)/this.rect.width);return a*this.matrix.a+b*
this.matrix.c+this.matrix.tx},transY:function(a,b){null!=this.rect&&b>this.rect.y&&(b=b>this.rect.get_right()?b+(this.rectH-this.rect.height):this.rect.y+this.rectH*(b-this.rect.y)/this.rect.height);return a*this.matrix.b+b*this.matrix.d+this.matrix.ty},setLast:function(a,b){this.lastX=this.transX(a,b);this.lastY=this.transY(a,b)},matrix:null,rect:null,rectW:null,rectH:null,firstX:null,firstY:null,lastX:null,lastY:null,__class__:Es};var Cb=function(a,b){null==b&&(b=!1);Jk.call(this);a=a.firstElement();
if(null!=a){if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));if("svg"!=a.nodeName){if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));var c="svg:svg"!=a.nodeName}else c=!1}else c=!0;if(c){if(null==a)c="null";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));
c=a.nodeName}throw u.thrown("Not an SVG file ("+c+")");}this.mGrads=new da;this.mPathParser=new pc;this.mConvertCubics=b;this.width=this.getFloatStyle("width",a,null,0);this.height=this.getFloatStyle("height",a,null,0);0==this.width&&0==this.height?this.width=this.height=400:0==this.width?this.width=this.height:0==this.height&&(this.height=this.width);b=new ha(0,0,this.width,this.height);a.exists("viewBox")&&(b=a.get("viewBox"),b=-1!=b.indexOf(",")?b.split(","):b.split(" "),b=new ha(parseFloat(ia.trim(b[0])),
parseFloat(ia.trim(b[1])),parseFloat(ia.trim(b[2])),parseFloat(ia.trim(b[3]))));this.loadGroup(this,a,new Aa(1,0,0,1,-b.x,-b.y),null)};g["format.svg.SVGData"]=Cb;Cb.__name__="format.svg.SVGData";Cb.parseHex=function(a){3==a.length&&(a=G.substr(a,0,1)+G.substr(a,0,1)+G.substr(a,1,1)+G.substr(a,1,1)+G.substr(a,2,1)+G.substr(a,2,1));return B.parseInt("0x"+a)};Cb.parseRGBMatch=function(a){var b=parseFloat(a.matched(1));"%"==a.matched(2)&&(b=255*b/100);var c=parseFloat(a.matched(3));"%"==a.matched(4)&&
(c=255*c/100);var d=parseFloat(a.matched(5));"%"==a.matched(6)&&(d=255*d/100);a=b;0>a&&(a=0);255<a&&(a=255);0>c&&(c=0);255<c&&(c=255);0>d&&(d=0);255<d&&(d=255);return(a|0)<<16|(c|0)<<8|d|0};Cb.__super__=Jk;Cb.prototype=r(Jk.prototype,{height:null,width:null,mConvertCubics:null,mGrads:null,mPathParser:null,trimToFloat:function(a){return parseFloat(ia.trim(a))},applyTransform:function(a,b){var c=1;if(Cb.mTranslateMatch.match(b))a.translate(parseFloat(Cb.mTranslateMatch.matched(1)),parseFloat(Cb.mTranslateMatch.matched(2)));
else if(Cb.mScaleMatch.match(b))c=parseFloat(Cb.mScaleMatch.matched(1)),a.scale(c,c);else if(Cb.mMatrixMatch.match(b))c=new Aa(parseFloat(Cb.mMatrixMatch.matched(1)),parseFloat(Cb.mMatrixMatch.matched(2)),parseFloat(Cb.mMatrixMatch.matched(3)),parseFloat(Cb.mMatrixMatch.matched(4)),parseFloat(Cb.mMatrixMatch.matched(5)),parseFloat(Cb.mMatrixMatch.matched(6))),c.concat(a),a.a=c.a,a.b=c.b,a.c=c.c,a.d=c.d,a.tx=c.tx,a.ty=c.ty,c=Math.sqrt(a.a*a.a+a.c*a.c);else if(Cb.mRotationMatch.match(b)){var d=parseFloat(Cb.mRotationMatch.matched(1));
b=parseFloat(Cb.mRotationMatch.matched(2));isNaN(b)&&(b=0);var e=parseFloat(Cb.mRotationMatch.matched(3));isNaN(e)&&(e=0);d=d*Math.PI/180;a.translate(-b,-e);a.rotate(d);a.translate(b,e)}else Ub.trace("Warning, unknown transform:"+b,{fileName:"format/svg/SVGData.hx",lineNumber:154,className:"format.svg.SVGData",methodName:"applyTransform"});return c},dumpGroup:function(a,b){Ub.trace(b+"Group:"+a.name,{fileName:"format/svg/SVGData.hx",lineNumber:165,className:"format.svg.SVGData",methodName:"dumpGroup"});
b+="  ";var c=0;for(a=a.children;c<a.length;){var d=a[c];++c;switch(d._hx_index){case 0:Ub.trace(b+"Path  "+B.string(d.path.matrix),{fileName:"format/svg/SVGData.hx",lineNumber:172,className:"format.svg.SVGData",methodName:"dumpGroup"});break;case 1:this.dumpGroup(d.group,b+"   ");break;case 2:Ub.trace(b+"Text "+d.text.text,{fileName:"format/svg/SVGData.hx",lineNumber:174,className:"format.svg.SVGData",methodName:"dumpGroup"})}}},getColorStyle:function(a,b,c,d){a=this.getStyle(a,b,c,"");return""==
a?d:"#"==a.charAt(0)?(d=G.substr(a,1,null),3==d.length&&(d=G.substr(d,0,1)+G.substr(d,0,1)+G.substr(d,1,1)+G.substr(d,1,1)+G.substr(d,2,1)+G.substr(d,2,1)),B.parseInt("0x"+d)):Cb.mRGBMatch.match(a)?(b=Cb.mRGBMatch,c=parseFloat(b.matched(1)),"%"==b.matched(2)&&(c=255*c/100),a=parseFloat(b.matched(3)),"%"==b.matched(4)&&(a=255*a/100),d=parseFloat(b.matched(5)),"%"==b.matched(6)&&(d=255*d/100),b=c,0>b&&(b=0),255<b&&(b=255),0>a&&(a=0),255<a&&(a=255),0>d&&(d=0),255<d&&(d=255),(b|0)<<16|(a|0)<<8|d|0):B.parseInt(a)},
getFillStyle:function(a,b,c){a=this.getStyle(a,b,c,"");if(""==a)return Cb.defaultFill;if("#"==a.charAt(0))return a=G.substr(a,1,null),3==a.length&&(a=G.substr(a,0,1)+G.substr(a,0,1)+G.substr(a,1,1)+G.substr(a,1,1)+G.substr(a,2,1)+G.substr(a,2,1)),Nh.FillSolid(B.parseInt("0x"+a));if(Cb.mRGBMatch.match(a)){c=Cb.mRGBMatch;var d=parseFloat(c.matched(1));"%"==c.matched(2)&&(d=255*d/100);b=parseFloat(c.matched(3));"%"==c.matched(4)&&(b=255*b/100);a=parseFloat(c.matched(5));"%"==c.matched(6)&&(a=255*a/100);
c=d;0>c&&(c=0);255<c&&(c=255);0>b&&(b=0);255<b&&(b=255);0>a&&(a=0);255<a&&(a=255);return Nh.FillSolid((c|0)<<16|(b|0)<<8|a|0)}if("none"==a)return Nh.FillNone;if(Cb.mURLMatch.match(a)){a=Cb.mURLMatch.matched(1);if(Object.prototype.hasOwnProperty.call(this.mGrads.h,a))return Nh.FillGrad(this.mGrads.h[a]);throw u.thrown("Unknown url:"+a);}throw u.thrown("Unknown fill string:"+a);},getFloat:function(a,b,c){null==c&&(c=0);return a.exists(b)?parseFloat(a.get(b)):c},getFloatStyle:function(a,b,c,d){a=this.getStyle(a,
b,c,"");return""==a?d:parseFloat(a)},getStyleAndConvert:function(a,b,c,d,e){a=this.getStyle(a,b,c,"");return""!=a&&Object.prototype.hasOwnProperty.call(e.h,a)?e.h[a]:d},getStrokeStyle:function(a,b,c,d){a=this.getStyle(a,b,c,"");return""==a?d:Cb.mRGBMatch.match(a)?(b=Cb.mRGBMatch,c=parseFloat(b.matched(1)),"%"==b.matched(2)&&(c=255*c/100),a=parseFloat(b.matched(3)),"%"==b.matched(4)&&(a=255*a/100),d=parseFloat(b.matched(5)),"%"==b.matched(6)&&(d=255*d/100),b=c,0>b&&(b=0),255<b&&(b=255),0>a&&(a=0),
255<a&&(a=255),0>d&&(d=0),255<d&&(d=255),(b|0)<<16|(a|0)<<8|d|0):"none"==a?null:"#"==a.charAt(0)?(d=G.substr(a,1,null),3==d.length&&(d=G.substr(d,0,1)+G.substr(d,0,1)+G.substr(d,1,1)+G.substr(d,1,1)+G.substr(d,2,1)+G.substr(d,2,1)),B.parseInt("0x"+d)):B.parseInt(a)},getStyle:function(a,b,c,d){return null!=b&&b.exists(a)?b.get(a):null!=c&&Object.prototype.hasOwnProperty.call(c.h,a)?c.h[a]:d},getStyles:function(a,b){if(!a.exists("style"))return b;var c=new da;if(null!=b)for(var d=Object.keys(b.h),e=
d.length,f=0;f<e;){var h=d[f++];c.h[h]=b.h[h]}h=a.get("style");a=Cb.mStyleSplit.split(h);for(b=0;b<a.length;)h=a[b],++b,Cb.mStyleValue.match(h)&&(h=Cb.mStyleValue.matched(1),d=Cb.mStyleValue.matched(2),c.h[h]=d);return c},loadDefs:function(a){for(var b=a.elements();b.hasNext();){var c=b.next();if(c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));var d=c.nodeName;"svg:"==G.substr(d,0,4)&&(d=G.substr(d,4,null));"linearGradient"==
d?this.loadGradient(c,0,!1):"radialGradient"==d&&this.loadGradient(c,1,!1)}for(b=a.elements();b.hasNext();){c=b.next();if(c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));d=c.nodeName;"svg:"==G.substr(d,0,4)&&(d=G.substr(d,4,null));"linearGradient"==d?this.loadGradient(c,0,!0):"radialGradient"==d&&this.loadGradient(c,1,!0)}},loadGradient:function(a,b,c){var d=a.get("id");b=new ep(b);if(c&&a.exists("xlink:href")){c=
a.get("xlink:href");if("#"!=c.charAt(0))throw u.thrown("xlink - unkown syntax : "+c);var e=this.mGrads.h[G.substr(c,1,null)];if(null!=e)b.colors=e.colors,b.alphas=e.alphas,b.ratios=e.ratios,b.gradMatrix=e.gradMatrix.clone(),b.spread=e.spread,b.interp=e.interp,b.radius=e.radius;else throw u.thrown("Unknown xlink : "+c);}a.exists("x1")?(b.x1=this.getFloat(a,"x1"),b.y1=this.getFloat(a,"y1"),b.x2=this.getFloat(a,"x2"),b.y2=this.getFloat(a,"y2")):(b.x1=this.getFloat(a,"cx"),b.y1=this.getFloat(a,"cy"),
b.x2=this.getFloat(a,"fx",b.x1),b.y2=this.getFloat(a,"fy",b.y1));b.radius=this.getFloat(a,"r");a.exists("gradientTransform")&&this.applyTransform(b.gradMatrix,a.get("gradientTransform"));for(a=a.elements();a.hasNext();)c=a.next(),e=this.getStyles(c,null),b.colors.push(this.getColorStyle("stop-color",c,e,0)),b.alphas.push(this.getFloatStyle("stop-opacity",c,e,1)),b.ratios.push(255*parseFloat(c.get("offset"))|0);this.mGrads.h[d]=b},loadGroup:function(a,b,c,d){b.exists("transform")&&(c=c.clone(),this.applyTransform(c,
b.get("transform")));b.exists("inkscape:label")?a.name=b.get("inkscape:label"):b.exists("id")&&(a.name=b.get("id"));d=this.getStyles(b,d);if(b.exists("opacity")){var e=b.get("opacity");null==d&&(d=new da);Object.prototype.hasOwnProperty.call(d.h,"opacity")&&(e=B.string(parseFloat(e)*parseFloat(d.h.opacity)));d.h.opacity=e}for(b=b.elements();b.hasNext();){e=b.next();if(e.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==e.nodeType?"null":V.toString(e.nodeType)));
var f=e.nodeName;"svg:"==G.substr(f,0,4)&&(f=G.substr(f,4,null));e.exists("display")&&"none"==e.get("display")||("defs"==f?this.loadDefs(e):"g"==f?e.exists("display")&&"none"==e.get("display")||a.children.push(lh.DisplayGroup(this.loadGroup(new Jk,e,c,d))):"path"==f||"line"==f||"polyline"==f?a.children.push(lh.DisplayPath(this.loadPath(e,c,d,!1,!1))):"rect"==f?a.children.push(lh.DisplayPath(this.loadPath(e,c,d,!0,!1))):"polygon"==f?a.children.push(lh.DisplayPath(this.loadPath(e,c,d,!1,!1))):"ellipse"==
f?a.children.push(lh.DisplayPath(this.loadPath(e,c,d,!1,!0))):"circle"==f?a.children.push(lh.DisplayPath(this.loadPath(e,c,d,!1,!0,!0))):"text"==f?a.children.push(lh.DisplayText(this.loadText(e,c,d))):"linearGradient"==f?this.loadGradient(e,0,!0):"radialGradient"==f&&this.loadGradient(e,1,!0))}return a},loadPath:function(a,b,c,d,e,f){null==f&&(f=!1);a.exists("transform")&&(b=b.clone(),this.applyTransform(b,a.get("transform")));var h=this.getStyles(a,c),l=a.exists("id")?a.get("id"):"";c=new Ds;c.fill=
this.getFillStyle("fill",a,h);c.alpha=this.getFloatStyle("opacity",a,h,1);c.fill_alpha=this.getFloatStyle("fill-opacity",a,h,1);c.stroke_alpha=this.getFloatStyle("stroke-opacity",a,h,1);c.stroke_colour=this.getStrokeStyle("stroke",a,h,null);c.stroke_width=this.getFloatStyle("stroke-width",a,h,1);var m=new da;m.h.round=1;m.h.square=2;m.h.butt=0;c.stroke_caps=this.getStyleAndConvert("stroke-linecap",a,h,0,m);m=new da;m.h.bevel=0;m.h.round=2;m.h.miter=1;c.joint_style=this.getStyleAndConvert("stroke-linejoin",
a,h,1,m);c.miter_limit=this.getFloatStyle("stroke-miterlimit",a,h,3);c.segments=[];c.matrix=b;c.name=l;if(d)m=a.exists("x")?parseFloat(a.get("x")):0,b=a.exists("y")?parseFloat(a.get("y")):0,d=parseFloat(a.get("width")),f=parseFloat(a.get("height")),e=a.exists("rx")?parseFloat(a.get("rx")):0,a=a.exists("ry")?parseFloat(a.get("ry")):0,0==e||0==a?(c.segments.push(new Pi(m,b)),c.segments.push(new Xd(m+d,b)),c.segments.push(new Xd(m+d,b+f)),c.segments.push(new Xd(m,b+f)),c.segments.push(new Xd(m,b))):
(c.segments.push(new Pi(m,b+a)),c.segments.push(new pd(m,b,m+e,b)),c.segments.push(new Xd(m+d-e,b)),c.segments.push(new pd(m+d,b,m+d,b+e)),c.segments.push(new Xd(m+d,b+f-a)),c.segments.push(new pd(m+d,b+f,m+d-e,b+f)),c.segments.push(new Xd(m+e,b+f)),c.segments.push(new pd(m,b+f,m,b+f-a)),c.segments.push(new Xd(m,b+a)));else if(e)m=a.exists("cx")?parseFloat(a.get("cx")):0,b=a.exists("cy")?parseFloat(a.get("cy")):0,l=f&&a.exists("r")?parseFloat(a.get("r")):0,d=f?l:a.exists("rx")?parseFloat(a.get("rx")):
0,e=.7071067811865476*d,h=.41421356237309503*d,f=f?l:a.exists("ry")?parseFloat(a.get("ry")):0,a=.7071067811865476*f,l=.41421356237309503*f,c.segments.push(new Pi(m+d,b)),c.segments.push(new pd(m+d,b+l,m+e,b+a)),c.segments.push(new pd(m+h,b+f,m,b+f)),c.segments.push(new pd(m-h,b+f,m-e,b+a)),c.segments.push(new pd(m-d,b+l,m-d,b)),c.segments.push(new pd(m-d,b-l,m-e,b-a)),c.segments.push(new pd(m-h,b-f,m,b-f)),c.segments.push(new pd(m+h,b-f,m+e,b-a)),c.segments.push(new pd(m+d,b-l,m+d,b));else for(a=
a.exists("points")?"M"+a.get("points")+"z":a.exists("x1")?"M"+a.get("x1")+","+a.get("y1")+" "+a.get("x2")+","+a.get("y2")+"z":a.get("d"),m=0,a=this.mPathParser.parse(a,this.mConvertCubics);m<a.length;)f=a[m],++m,c.segments.push(f);return c},loadText:function(a,b,c){a.exists("transform")&&(b=b.clone(),this.applyTransform(b,a.get("transform")));var d=this.getStyles(a,c);c=new Fs;c.matrix=b;c.name=a.exists("id")?a.get("id"):"";c.x=this.getFloat(a,"x",0);c.y=this.getFloat(a,"y",0);c.fill=this.getFillStyle("fill",
a,d);c.fill_alpha=this.getFloatStyle("fill-opacity",a,d,1);c.stroke_alpha=this.getFloatStyle("stroke-opacity",a,d,1);c.stroke_colour=this.getStrokeStyle("stroke",a,d,null);c.stroke_width=this.getFloatStyle("stroke-width",a,d,1);c.font_family=this.getStyle("font-family",a,d,"");c.font_size=this.getFloatStyle("font-size",a,d,12);c.letter_spacing=this.getFloatStyle("letter-spacing",a,d,0);c.kerning=this.getFloatStyle("kerning",a,d,0);c.text_align=this.getStyle("text-align",a,d,"start");b="";for(a=a.elements();a.hasNext();)d=
a.next(),b+=bc.print(d);c.text=b;return c},__class__:Cb});var Mh=function(a,b){this.mSvg=a;this.width=this.mSvg.width;this.height=this.mSvg.height;this.mRoot=this.mSvg;if(null!=b&&(this.mRoot=this.mSvg.findGroup(b),null==this.mRoot))throw u.thrown("Could not find SVG group: "+b);};g["format.svg.SVGRenderer"]=Mh;Mh.__name__="format.svg.SVGRenderer";Mh.toHaxe=function(a,b){return(new Mh(new Cb(a,!0))).iterate(new $o,b).commands};Mh.toBytes=function(a,b){return(new Mh(new Cb(a,!0))).iterate(new $c,b)};
Mh.prototype={width:null,height:null,mSvg:null,mRoot:null,mGfx:null,mMatrix:null,mScaleRect:null,mScaleW:null,mScaleH:null,mFilter:null,mGroupPath:null,iterate:function(a,b){this.mGfx=a;this.mMatrix=new Aa;this.mFilter=b;this.mGroupPath=[];this.mGfx.size(this.width,this.height);this.iterateGroup(this.mRoot,!0);this.mGfx.eof();return a},hasGroup:function(a){return this.mRoot.hasGroup(a)},iterateText:function(a){(null==this.mFilter||this.mFilter(a.name,this.mGroupPath))&&this.mGfx.renderText(a)},iteratePath:function(a){if((null==
this.mFilter||this.mFilter(a.name,this.mGroupPath))&&0!=a.segments.length&&null!=this.mGfx){var b=a.matrix.clone();b.concat(this.mMatrix);var c=new Es(b,this.mScaleRect,this.mScaleW,this.mScaleH);if(!this.mGfx.geometryOnly()){a.segments[0].toGfx(this.mGfx,c);var d=a.fill;switch(d._hx_index){case 0:d=d.grad;d.updateMatrix(b);this.mGfx.beginGradientFill(d);break;case 1:this.mGfx.beginFill(d.colour,a.fill_alpha*a.alpha)}null!=a.stroke_colour&&(d=new bp,d.thickness=Math.sqrt(b.a*b.a+b.d*b.d)/Mh.SQRT2*
a.stroke_width,d.alpha=a.stroke_alpha*a.alpha,d.color=a.stroke_colour,d.capsStyle=a.stroke_caps,d.jointStyle=a.joint_style,d.miterLimit=a.miter_limit,this.mGfx.lineStyle(d))}d=0;for(a=a.segments;d<a.length;)b=a[d],++d,b.toGfx(this.mGfx,c);this.mGfx.endLineStyle();this.mGfx.endFill()}},iterateGroup:function(a,b){if(!b||null==a.name||"."!=G.substr(a.name,0,1)){this.mGroupPath.push(a.name);var c=0;for(a=a.children;c<a.length;){var d=a[c];++c;switch(d._hx_index){case 0:this.iteratePath(d.path);break;
case 1:this.iterateGroup(d.group,b);break;case 2:this.iterateText(d.text)}}this.mGroupPath.pop()}},render:function(a,b,c,d,e,f){this.mGfx=new Cm(a);this.mMatrix=null==b?new Aa:b.clone();this.mScaleRect=d;this.mScaleW=e;this.mScaleH=f;this.mFilter=c;this.mGroupPath=[];this.iterateGroup(this.mRoot,null==c)},renderRect:function(a,b,c,d,e){var f=new Aa;f.tx=e.x-d.x;f.ty=e.y-d.y;null!=c?this.render(a,f,b,c,e.width-(d.width-c.width),e.height-(d.height-c.height)):this.render(a,f,b)},renderRect0:function(a,
b,c,d,e){var f=new Aa;f.tx=-d.x;f.ty=-d.y;null!=c?this.render(a,f,b,c,e.width-(d.width-c.width),e.height-(d.height-c.height)):this.render(a,f,b)},getExtent:function(a,b,c){null==c&&(c=null==b);var d=new cp;this.mGfx=d;this.mMatrix=null==a?new Aa:a.clone();this.mFilter=b;this.mGroupPath=[];this.iterateGroup(this.mRoot,c);return d.extent},findText:function(a){this.mFilter=a;this.mGroupPath=[];this.mGfx=a=new dp;this.iterateGroup(this.mRoot,!1);return a.text},getMatchingRect:function(a){return this.getExtent(null,
function(b,c){return null!=c[1]?a.match(c[1]):!1},!1)},renderObject:function(a,b,c,d,e){this.render(b,c,d,e);this.getExtent(c,function(a,b){return".scale9"==b[1]})},renderSprite:function(a,b,c,d){this.renderObject(a,a.get_graphics(),b,c,d)},createShape:function(a,b,c){var d=new Og;this.renderObject(d,d.get_graphics(),a,b,c);return d},namedShape:function(a){return this.createShape(null,function(b,c){return b==a})},renderBitmap:function(a,b){null==b&&(b=1);this.mMatrix=new Aa(b,0,0,b,-a.x*b,-a.y*b);
a=new xb(Math.ceil(null==a?this.width:a.width*b)|0,Math.ceil(null==a?this.width:a.height*b)|0,!0,0);b=new Og;this.mGfx=new Cm(b.get_graphics());this.mGroupPath=[];this.iterateGroup(this.mRoot,!0);a.draw(b);this.mGfx=null;return a},__class__:Mh};var Fs=function(){};g["format.svg.Text"]=Fs;Fs.__name__="format.svg.Text";Fs.prototype={name:null,x:null,y:null,matrix:null,text:null,fill:null,fill_alpha:null,stroke_alpha:null,stroke_colour:null,stroke_width:null,font_family:null,font_size:null,kerning:null,
letter_spacing:null,text_align:null,__class__:Fs};var Bf=P["haxe.StackItem"]={__ename__:"haxe.StackItem",__constructs__:null,CFunction:{_hx_name:"CFunction",_hx_index:0,__enum__:"haxe.StackItem",toString:v},Module:(x=function(a){return{_hx_index:1,m:a,__enum__:"haxe.StackItem",toString:v}},x._hx_name="Module",x.__params__=["m"],x),FilePos:(x=function(a,b,c,d){return{_hx_index:2,s:a,file:b,line:c,column:d,__enum__:"haxe.StackItem",toString:v}},x._hx_name="FilePos",x.__params__=["s","file","line","column"],
x),Method:(x=function(a,b){return{_hx_index:3,classname:a,method:b,__enum__:"haxe.StackItem",toString:v}},x._hx_name="Method",x.__params__=["classname","method"],x),LocalFunction:(x=function(a){return{_hx_index:4,v:a,__enum__:"haxe.StackItem",toString:v}},x._hx_name="LocalFunction",x.__params__=["v"],x)};Bf.__constructs__=[Bf.CFunction,Bf.Module,Bf.FilePos,Bf.Method,Bf.LocalFunction];Bf.__empty_constructs__=[Bf.CFunction];var Cf={callStack:function(){return wa.toHaxe(wa.callStack())},exceptionStack:function(a){null==
a&&(a=!1);var b=wa.toHaxe(wa.exceptionStack());return a?b:Cf.subtract(b,Cf.callStack())},toString:function(a){for(var b=new gg,c=0;c<a.length;){var d=a[c];++c;b.b+="\nCalled from ";Cf.itemToString(b,d)}return b.b},subtract:function(a,b){for(var c=-1,d=-1;++d<a.length;){for(var e=0,f=b.length;e<f;){var h=e++;if(Cf.equalItems(a[d],b[h])){if(0>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,e=b.column,f=a.column,h=a.line,l=a.s;return a.file==b.file&&h==d&&f==e?Cf.equalItems(l,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,e=b.line;b=b.column;null!=c&&(Cf.itemToString(a,c),a.b+=" (");a.b+=null==d?"null":""+d;a.b+=" line ";a.b+=null==e?"null":""+e;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+=B.string(null==c?"<unknown>":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}}},u=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,u),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"]=u;u.__name__="haxe.Exception";u.caught=function(a){return a instanceof u?a:a instanceof Error?
new u(a.message,null,a):new Em(a,null,a)};u.thrown=function(a){if(a instanceof u)return a.get_native();if(a instanceof Error)return a;a=new Em(a);a.__skipStack++;return a};u.__super__=Error;u.prototype=r(Error.prototype,{__skipStack:null,__nativeException:null,__previousException:null,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=wa.toHaxe(wa.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__:u,__properties__:{get_native:"get_native",get_stack:"get_stack",get_message:"get_message"}});var zb=function(a,b){this.high=a;this.low=b};g["haxe._Int64.___Int64"]=zb;zb.__name__="haxe._Int64.___Int64";zb.prototype={high:null,low:null,__class__:zb};
var Ub=function(){};g["haxe.Log"]=Ub;Ub.__name__="haxe.Log";Ub.formatOutput=function(a,b){var c=B.string(a);if(null==b)return c;var d=b.fileName+":"+b.lineNumber;if(null!=b.customParams){var e=0;for(b=b.customParams;e<b.length;)a=b[e],++e,c+=", "+B.string(a)}return d+": "+c};Ub.trace=function(a,b){a=Ub.formatOutput(a,b);"undefined"!=typeof console&&null!=console.log&&console.log(a)};var wa=function(){};g["haxe.NativeStackTrace"]=wa;wa.__name__="haxe.NativeStackTrace";wa.saveStack=function(a){wa.lastError=
a};wa.callStack=function(){var a=Error(""),b=wa.tryHaxeStack(a);if("undefined"==typeof b){try{throw a;}catch(c){}b=a.stack}return wa.normalize(b,2)};wa.exceptionStack=function(){return wa.normalize(wa.tryHaxeStack(wa.lastError))};wa.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,e=a.length;d<e;){var f=d++;if(!(b>f)){var h=a[f];f=h.match(/^    at ([$A-Za-z0-9_. ]+) \(([^)]+):([0-9]+):([0-9]+)\)$/);if(null!=f){h=
f[1].split(".");"$hxClasses"==h[0]&&h.shift();var l=h.pop(),m=f[2],t=B.parseInt(f[3]);f=B.parseInt(f[4]);c.push(Bf.FilePos("Anonymous function"==l?Bf.LocalFunction():"Global code"==l?null:Bf.Method(h.join("."),l),m,t,f))}else c.push(Bf.Module(ia.trim(h)))}}return c}return 0<b&&Array.isArray(a)?a.slice(b):a};wa.tryHaxeStack=function(a){if(null==a)return[];var b=Error.prepareStackTrace;Error.prepareStackTrace=wa.prepareHxStackTrace;a=a.stack;Error.prepareStackTrace=b;return a};wa.prepareHxStackTrace=
function(a,b){a=[];for(var c=0;c<b.length;){var d=b[c];++c;null!=wa.wrapCallSite&&(d=wa.wrapCallSite(d));var e=null,f=d.getFunctionName();if(null!=f){var h=f.lastIndexOf(".");0<=h?(e=f.substring(0,h),f=f.substring(h+1),e=Bf.Method(e,f)):e=Bf.Method(null,f)}f=d.getFileName();h=null==f?-1:f.indexOf("file:");null!=wa.wrapCallSite&&0<h&&(f=f.substring(h+6));a.push(Bf.FilePos(e,f,d.getLineNumber(),d.getColumnNumber()))}return a};wa.normalize=function(a,b){null==b&&(b=0);if(Array.isArray(a)&&0<b)return a.slice(b);
if("string"==typeof a){switch(a.substring(0,6)){case "Error\n":case "Error:":++b}return wa.skipLines(a,b)}return a};wa.skipLines=function(a,b,c){null==c&&(c=0);return 0<b?(c=a.indexOf("\n",c),0>c?"":wa.skipLines(a,--b,c+1)):a.substring(c)};var Yd=function(){this.buf=new gg;this.cache=[];this.useCache=Yd.USE_CACHE;this.useEnumIndex=Yd.USE_ENUM_INDEX;this.shash=new da;this.scount=0};g["haxe.Serializer"]=Yd;Yd.__name__="haxe.Serializer";Yd.run=function(a){var b=new Yd;b.serialize(a);return b.toString()};
Yd.prototype={buf:null,cache:null,shash:null,scount:null,useCache:null,useEnumIndex:null,toString:function(){return this.buf.b},serializeString:function(a){var b=this.shash.h[a];null!=b?(this.buf.b+="R",this.buf.b+=null==b?"null":""+b):(this.shash.h[a]=this.scount++,this.buf.b+="y",a=encodeURIComponent(a),this.buf.b+=B.string(a.length),this.buf.b+=":",this.buf.b+=null==a?"null":""+a)},serializeRef:function(a){for(var b=typeof a,c=0,d=this.cache.length;c<d;){var e=c++,f=this.cache[e];if(typeof f==
b&&f==a)return this.buf.b+="r",this.buf.b+=null==e?"null":""+e,!0}this.cache.push(a);return!1},serializeFields:function(a){for(var b=0,c=J.fields(a);b<c.length;){var d=c[b];++b;this.serializeString(d);this.serialize(J.field(a,d))}this.buf.b+="g"},serialize:function(a){var b=wb.typeof(a);switch(b._hx_index){case 0:this.buf.b+="n";break;case 1:if(0==a){this.buf.b+="z";break}this.buf.b+="i";this.buf.b+=null==a?"null":""+a;break;case 2:isNaN(a)?this.buf.b+="k":isFinite(a)?(this.buf.b+="d",this.buf.b+=
null==a?"null":""+a):this.buf.b+=0>a?"m":"p";break;case 3:this.buf.b+=a?"t":"f";break;case 4:N.__instanceof(a,Gd)?(a=a.__name__,this.buf.b+="A",this.serializeString(a)):N.__instanceof(a,Lu)?(this.buf.b+="B",this.serializeString(a.__ename__)):this.useCache&&this.serializeRef(a)||(this.buf.b+="o",this.serializeFields(a));break;case 5:throw u.thrown("Cannot serialize function");case 6:b=b.c;if(b==String){this.serializeString(a);break}if(this.useCache&&this.serializeRef(a))break;switch(b){case Array:var c=
0;this.buf.b+="a";for(var d=0,e=a.length;d<e;)b=d++,null==a[b]?++c:(0<c&&(1==c?this.buf.b+="n":(this.buf.b+="u",this.buf.b+=null==c?"null":""+c),c=0),this.serialize(a[b]));0<c&&(1==c?this.buf.b+="n":(this.buf.b+="u",this.buf.b+=null==c?"null":""+c));this.buf.b+="h";break;case Date:this.buf.b+="v";this.buf.b+=B.string(a.getTime());break;case Bc:this.buf.b+="q";for(b=a.keys();b.hasNext();)c=b.next(),this.buf.b+=":",this.buf.b+=null==c?"null":""+c,this.serialize(a.h[c]);this.buf.b+="h";break;case hb:this.buf.b+=
"l";for(a=a.h;null!=a;)b=a.item,a=a.next,this.serialize(b);this.buf.b+="h";break;case ea:this.buf.b+="M";for(b=a.keys();b.hasNext();){c=b.next();var f=J.field(c,"__id__");J.deleteField(c,"__id__");this.serialize(c);c.__id__=f;this.serialize(a.h[c.__id__])}this.buf.b+="h";break;case da:this.buf.b+="b";c=Object.keys(a.h);f=c.length;for(d=0;d<f;)b=c[d++],this.serializeString(b),this.serialize(a.h[b]);this.buf.b+="h";break;case Qa:this.buf.b+="s";this.buf.b+=B.string(Math.ceil(8*a.length/6));this.buf.b+=
":";b=0;c=a.length-2;f=Yd.BASE64_CODES;if(null==f){f=Array(Yd.BASE64.length);d=0;for(e=Yd.BASE64.length;d<e;){var h=d++;f[h]=G.cca(Yd.BASE64,h)}Yd.BASE64_CODES=f}for(;b<c;)d=a.b[b++],e=a.b[b++],h=a.b[b++],this.buf.b+=String.fromCodePoint(f[d>>2]),this.buf.b+=String.fromCodePoint(f[(d<<4|e>>4)&63]),this.buf.b+=String.fromCodePoint(f[(e<<2|h>>6)&63]),this.buf.b+=String.fromCodePoint(f[h&63]);b==c?(d=a.b[b++],e=a.b[b++],this.buf.b+=String.fromCodePoint(f[d>>2]),this.buf.b+=String.fromCodePoint(f[(d<<
4|e>>4)&63]),this.buf.b+=String.fromCodePoint(f[e<<2&63])):b==c+1&&(d=a.b[b++],this.buf.b+=String.fromCodePoint(f[d>>2]),this.buf.b+=String.fromCodePoint(f[d<<4&63]));break;default:this.useCache&&this.cache.pop(),null!=a.hxSerialize?(this.buf.b+="C",this.serializeString(b.__name__),this.useCache&&this.cache.push(a),a.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(b.__name__),this.useCache&&this.cache.push(a),this.serializeFields(a))}break;case 7:b=b.e;if(this.useCache){if(this.serializeRef(a))break;
this.cache.pop()}this.buf.b+=B.string(this.useEnumIndex?"j":"w");this.serializeString(b.__ename__);this.useEnumIndex?(this.buf.b+=":",this.buf.b+=B.string(a._hx_index)):(b=a,this.serializeString(P[b.__enum__].__constructs__[b._hx_index]._hx_name));this.buf.b+=":";c=wb.enumParameters(a);this.buf.b+=B.string(c.length);for(b=0;b<c.length;)f=c[b],++b,this.serialize(f);this.useCache&&this.cache.push(a);break;default:throw u.thrown("Cannot serialize "+B.string(a));}},__class__:Yd};var gf=P["haxe._Template.TemplateExpr"]=
{__ename__:"haxe._Template.TemplateExpr",__constructs__:null,OpVar:(x=function(a){return{_hx_index:0,v:a,__enum__:"haxe._Template.TemplateExpr",toString:v}},x._hx_name="OpVar",x.__params__=["v"],x),OpExpr:(x=function(a){return{_hx_index:1,expr:a,__enum__:"haxe._Template.TemplateExpr",toString:v}},x._hx_name="OpExpr",x.__params__=["expr"],x),OpIf:(x=function(a,b,c){return{_hx_index:2,expr:a,eif:b,eelse:c,__enum__:"haxe._Template.TemplateExpr",toString:v}},x._hx_name="OpIf",x.__params__=["expr","eif",
"eelse"],x),OpStr:(x=function(a){return{_hx_index:3,str:a,__enum__:"haxe._Template.TemplateExpr",toString:v}},x._hx_name="OpStr",x.__params__=["str"],x),OpBlock:(x=function(a){return{_hx_index:4,l:a,__enum__:"haxe._Template.TemplateExpr",toString:v}},x._hx_name="OpBlock",x.__params__=["l"],x),OpForeach:(x=function(a,b){return{_hx_index:5,expr:a,loop:b,__enum__:"haxe._Template.TemplateExpr",toString:v}},x._hx_name="OpForeach",x.__params__=["expr","loop"],x),OpMacro:(x=function(a,b){return{_hx_index:6,
name:a,params:b,__enum__:"haxe._Template.TemplateExpr",toString:v}},x._hx_name="OpMacro",x.__params__=["name","params"],x)};gf.__constructs__=[gf.OpVar,gf.OpExpr,gf.OpIf,gf.OpStr,gf.OpBlock,gf.OpForeach,gf.OpMacro];gf.__empty_constructs__=[];var pe=function(a){this.current=0;this.array=a};g["haxe.iterators.ArrayIterator"]=pe;pe.__name__="haxe.iterators.ArrayIterator";pe.prototype={array:null,current:null,hasNext:function(){return this.current<this.array.length},next:function(){return this.array[this.current++]},
__class__:pe};var Nc=function(a){a=this.parseTokens(a);this.expr=this.parseBlock(a);if(!a.isEmpty())throw u.thrown("Unexpected '"+B.string(a.first().s)+"'");};g["haxe.Template"]=Nc;Nc.__name__="haxe.Template";Nc.prototype={expr:null,context:null,macros:null,stack:null,buf:null,execute:function(a,b){this.macros=null==b?{}:b;this.context=a;this.stack=new hb;this.buf=new gg;this.run(this.expr);return this.buf.b},resolve:function(a){if("__current__"==a)return this.context;if(J.isObject(this.context)){var b=
J.getProperty(this.context,a);if(null!=b||Object.prototype.hasOwnProperty.call(this.context,a))return b}for(var c=this.stack.h;null!=c;){b=c.item;c=c.next;var d=b;b=J.getProperty(d,a);if(null!=b||Object.prototype.hasOwnProperty.call(d,a))return b}return J.field(Nc.globals,a)},parseTokens:function(a){for(var b=new hb;Nc.splitter.match(a);){var c=Nc.splitter.matchedPos();0<c.pos&&b.add({p:G.substr(a,0,c.pos),s:!0,l:null});if(58==G.cca(a,c.pos))b.add({p:G.substr(a,c.pos+2,c.len-4),s:!1,l:null}),a=Nc.splitter.matchedRight();
else{c=c.pos+c.len;for(var d=1,e=[],f="";;){var h=G.cca(a,c);++c;if(40==h)++d;else if(41==h){if(--d,0>=d)break}else if(null==h)throw u.thrown("Unclosed macro parenthesis");44==h&&1==d?(e.push(f),f=""):f+=String.fromCodePoint(h)}e.push(f);b.add({p:Nc.splitter.matched(2),s:!1,l:e});a=G.substr(a,c,a.length-c)}}0<a.length&&b.add({p:a,s:!0,l:null});return b},parseBlock:function(a){for(var b=new hb;;){var c=a.first();if(null==c)break;if(!c.s&&("end"==c.p||"else"==c.p||"elseif "==G.substr(c.p,0,7)))break;
b.add(this.parse(a))}return 1==b.length?b.first():gf.OpBlock(b)},parse:function(a){var b=a.pop(),c=b.p;if(b.s)return gf.OpStr(c);if(null!=b.l){a=new hb;var d=0;for(b=b.l;d<b.length;){var e=b[d];++d;a.add(this.parseBlock(this.parseTokens(e)))}return gf.OpMacro(c,a)}b=function(a){var b=-1,d=a.length;if(G.substr(c,0,d)==a)for(b=d,a=0,d=G.substr(c,d,null);a<d.length;)if(32==d.charCodeAt(a++))++b;else break;return b};d=b("if");if(0<d){c=G.substr(c,d,c.length-d);d=this.parseExpr(c);e=this.parseBlock(a);
b=a.first();if(null==b)throw u.thrown("Unclosed 'if'");if("end"==b.p){a.pop();var f=null}else if("else"==b.p){if(a.pop(),f=this.parseBlock(a),b=a.pop(),null==b||"end"!=b.p)throw u.thrown("Unclosed 'else'");}else b.p=G.substr(b.p,4,b.p.length-4),f=this.parse(a);return gf.OpIf(d,e,f)}d=b("foreach");if(0<=d){c=G.substr(c,d,c.length-d);d=this.parseExpr(c);e=this.parseBlock(a);b=a.pop();if(null==b||"end"!=b.p)throw u.thrown("Unclosed 'foreach'");return gf.OpForeach(d,e)}return Nc.expr_splitter.match(c)?
gf.OpExpr(this.parseExpr(c)):gf.OpVar(c)},parseExpr:function(a){for(var b=new hb,c=a;Nc.expr_splitter.match(a);){var d=Nc.expr_splitter.matchedPos();0!=d.pos&&b.add({p:G.substr(a,0,d.pos),s:!0});a=Nc.expr_splitter.matched(0);b.add({p:a,s:0<=a.indexOf('"')});a=Nc.expr_splitter.matchedRight()}if(0!=a.length){d=0;for(var e=a;d<e.length;){var f=d,h=e.charCodeAt(d++);if(32!=h){b.add({p:G.substr(a,f,null),s:!0});break}}}try{var l=this.makeExpr(b);if(!b.isEmpty())throw u.thrown(b.first().p);}catch(m){wa.lastError=
m;b=u.caught(m).unwrap();if("string"==typeof b)throw u.thrown("Unexpected '"+b+"' in "+c);throw m;}return function(){try{return l()}catch(t){wa.lastError=t;var a=u.caught(t).unwrap();throw u.thrown("Error : "+B.string(a)+" in "+c);}}},makeConst:function(a){Nc.expr_trim.match(a);a=Nc.expr_trim.matched(1);if(34==G.cca(a,0)){var b=G.substr(a,1,a.length-2);return function(){return b}}if(Nc.expr_int.match(a)){var c=B.parseInt(a);return function(){return c}}if(Nc.expr_float.match(a)){var d=parseFloat(a);
return function(){return d}}var e=this;return function(){return e.resolve(a)}},makePath:function(a,b){var c=b.first();if(null==c||"."!=c.p)return a;b.pop();c=b.pop();if(null==c||!c.s)throw u.thrown(c.p);var d=c.p;Nc.expr_trim.match(d);d=Nc.expr_trim.matched(1);return this.makePath(function(){return J.field(a(),d)},b)},makeExpr:function(a){return this.makePath(this.makeExpr2(a),a)},skipSpaces:function(a){for(var b=a.first();null!=b;){var c=0;for(b=b.p;c<b.length;)if(32!=b.charCodeAt(c++))return;a.pop();
b=a.first()}},makeExpr2:function(a){this.skipSpaces(a);var b=a.pop();this.skipSpaces(a);if(null==b)throw u.thrown("<eof>");if(b.s)return this.makeConst(b.p);switch(b.p){case "!":var c=this.makeExpr(a);return function(){var a=c();return null!=a?0==a:!0};case "(":this.skipSpaces(a);var d=this.makeExpr(a);this.skipSpaces(a);b=a.pop();if(null==b||b.s)throw u.thrown(b);if(")"==b.p)return d;this.skipSpaces(a);var e=this.makeExpr(a);this.skipSpaces(a);var f=a.pop();this.skipSpaces(a);if(null==f||")"!=f.p)throw u.thrown(f);
switch(b.p){case "!=":return function(){return d()!=e()};case "&&":return function(){return d()&&e()};case "*":return function(){return d()*e()};case "+":return function(){return d()+e()};case "-":return function(){return d()-e()};case "/":return function(){return d()/e()};case "<":return function(){return d()<e()};case "<=":return function(){return d()<=e()};case "==":return function(){return d()==e()};case ">":return function(){return d()>e()};case ">=":return function(){return d()>=e()};case "||":return function(){return d()||
e()};default:throw u.thrown("Unknown operation "+b.p);}case "-":var h=this.makeExpr(a);return function(){return-h()}}throw u.thrown(b.p);},run:function(a){switch(a._hx_index){case 0:a=a.v;var b=this.buf,c=B.string(this.resolve(a));b.b+=B.string(c);break;case 1:var d=a.expr;b=this.buf;c=B.string(d());b.b+=B.string(c);break;case 2:d=a.expr;c=a.eif;b=a.eelse;a=d();null==a||0==a?null!=b&&this.run(b):this.run(c);break;case 3:a=a.str;this.buf.b+=null==a?"null":""+a;break;case 4:for(var e=a.l.h;null!=e;){var f=
e.item;e=e.next;d=f;this.run(d)}break;case 5:d=a.expr;b=a.loop;a=d();try{c=M(a);if(null==c.hasNext)throw u.thrown(null);a=c}catch(t){wa.lastError=t;try{if(null==a.hasNext)throw u.thrown(null);}catch(O){throw u.thrown("Cannot iter on "+B.string(a));}}for(this.stack.push(this.context);a.hasNext();)this.context=a.next(),this.run(b);this.context=this.stack.pop();break;case 6:d=a.name;e=a.params;a=J.field(this.macros,d);var h=[],l=this.buf;h.push(k(this,this.resolve));for(e=e.h;null!=e;)f=e.item,e=e.next,
0==f._hx_index?(f=f.v,h.push(this.resolve(f))):(this.buf=new gg,this.run(f),h.push(this.buf.b));this.buf=l;try{b=this.buf,c=B.string(a.apply(this.macros,h)),b.b+=B.string(c)}catch(t){wa.lastError=t;a=u.caught(t).unwrap();try{var m=h.join(",")}catch(O){m="???"}a="Macro call "+d+"("+m+") failed ("+B.string(a)+")";throw u.thrown(a);}}},__class__:Nc};var Qb=function(a){var b=this;this.id=setInterval(function(){b.run()},a)};g["haxe.Timer"]=Qb;Qb.__name__="haxe.Timer";Qb.delay=function(a,b){var c=new Qb(b);
c.run=function(){c.stop();a()};return c};Qb.measure=function(a,b){var c=(new Date).getTime()/1E3;a=a();Ub.trace((new Date).getTime()/1E3-c+"s",b);return a};Qb.stamp=function(){return(new Date).getTime()/1E3};Qb.prototype={id:null,stop:function(){null!=this.id&&(clearInterval(this.id),this.id=null)},run:function(){},__class__:Qb};var fp=function(){};g["haxe._Unserializer.DefaultResolver"]=fp;fp.__name__="haxe._Unserializer.DefaultResolver";fp.prototype={resolveClass:function(a){return g[a]},resolveEnum:function(a){return P[a]},
__class__:fp};var je=function(a){this.buf=a;this.length=this.buf.length;this.pos=0;this.scache=[];this.cache=[];a=je.DEFAULT_RESOLVER;null==a&&(a=new fp,je.DEFAULT_RESOLVER=a);this.resolver=a};g["haxe.Unserializer"]=je;je.__name__="haxe.Unserializer";je.initCodes=function(){for(var a=[],b=0,c=je.BASE64.length;b<c;){var d=b++;a[je.BASE64.charCodeAt(d)]=d}return a};je.run=function(a){return(new je(a)).unserialize()};je.prototype={buf:null,pos:null,length:null,cache:null,scache:null,resolver:null,setResolver:function(a){null==
a?(null==Kk.instance&&(Kk.instance=new Kk),this.resolver=Kk.instance):this.resolver=a},readDigits:function(){for(var a=0,b=!1,c=this.pos;;){var d=this.buf.charCodeAt(this.pos);if(d!=d)break;if(45==d){if(this.pos!=c)break;b=!0}else{if(48>d||57<d)break;a=10*a+(d-48)}this.pos++}b&&(a*=-1);return a},readFloat:function(){for(var a=this.pos;;){var b=this.buf.charCodeAt(this.pos);if(b!=b)break;if(43<=b&&58>b||101==b||69==b)this.pos++;else break}return parseFloat(G.substr(this.buf,a,this.pos-a))},unserializeObject:function(a){for(;;){if(this.pos>=
this.length)throw u.thrown("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var b=this.unserialize();if("string"!=typeof b)throw u.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 u.thrown("Invalid enum format");var c=this.readDigits();if(0==c)return wb.createEnum(a,b);for(var d=[];0<c--;)d.push(this.unserialize());return wb.createEnum(a,b,d)},unserialize:function(){switch(this.buf.charCodeAt(this.pos++)){case 65:var a=
this.unserialize(),b=this.resolver.resolveClass(a);if(null==b)throw u.thrown("Class not found "+a);return b;case 66:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw u.thrown("Enum not found "+a);return b;case 67:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw u.thrown("Class not found "+a);b=Object.create(b.prototype);this.cache.push(b);b.hxUnserialize(this);if(103!=this.buf.charCodeAt(this.pos++))throw u.thrown("Invalid custom data");return b;case 77:a=new ea;
this.cache.push(a);for(var c;104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),a.set(b,this.unserialize());this.pos++;return a;case 82:a=this.readDigits();if(0>a||a>=this.scache.length)throw u.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 da;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 u.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 u.thrown("Enum not found "+a);this.pos++;for(var d=this.readDigits(),e=c.__constructs__,
f=Array(e.length),h=0,l=e.length;h<l;)b=h++,f[b]=e[b]._hx_name;b=f[d];if(null==b)throw u.thrown("Unknown enum index "+a+"@"+d);b=this.unserializeEnum(c,b);this.cache.push(b);return b;case 107:return NaN;case 108:b=new hb;for(this.cache.push(b);104!=this.buf.charCodeAt(this.pos);)b.add(this.unserialize());this.pos++;return b;case 109:return-Infinity;case 110:return null;case 111:return b={},this.cache.push(b),this.unserializeObject(b),b;case 112:return Infinity;case 113:a=new Bc;this.cache.push(a);
for(c=this.buf.charCodeAt(this.pos++);58==c;)b=this.readDigits(),c=this.unserialize(),a.h[b]=c,c=this.buf.charCodeAt(this.pos++);if(104!=c)throw u.thrown("Invalid IntMap format");return a;case 114:a=this.readDigits();if(0>a||a>=this.cache.length)throw u.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<a)throw u.thrown("Invalid bytes length");d=je.CODES;null==d&&(d=je.initCodes(),je.CODES=d);b=this.pos;
e=a&3;f=b+(a-e);h=new Qa(new ArrayBuffer(3*(a>>2)+(2<=e?e-1:0)));for(l=0;b<f;){var m=d[c.charCodeAt(b++)],t=d[c.charCodeAt(b++)];h.b[l++]=(m<<2|t>>4)&255;m=d[c.charCodeAt(b++)];h.b[l++]=(t<<4|m>>2)&255;t=d[c.charCodeAt(b++)];h.b[l++]=(m<<6|t)&255}2<=e&&(m=d[c.charCodeAt(b++)],t=d[c.charCodeAt(b++)],h.b[l++]=(m<<2|t>>4)&255,3==e&&(m=d[c.charCodeAt(b++)],h.b[l++]=(t<<4|m>>2)&255));this.pos+=a;this.cache.push(h);return h;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=G.strDate(G.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 u.thrown("Enum not found "+a);b=this.unserializeEnum(c,this.unserialize());
this.cache.push(b);return b;case 120:throw u.thrown(this.unserialize());case 121:a=this.readDigits();if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos<a)throw u.thrown("Invalid string length");b=G.substr(this.buf,this.pos,a);this.pos+=a;b=decodeURIComponent(b.split("+").join(" "));this.scache.push(b);return b;case 122:return 0}this.pos--;throw u.thrown("Invalid char "+this.buf.charAt(this.pos)+" at position "+this.pos);},__class__:je};var Kk=function(){};g["haxe._Unserializer.NullResolver"]=
Kk;Kk.__name__="haxe._Unserializer.NullResolver";Kk.prototype={resolveClass:function(a){return null},resolveEnum:function(a){return null},__class__:Kk};var Em=function(a,b,c){u.call(this,String(a),b,c);this.value=a;this.__skipStack++};g["haxe.ValueException"]=Em;Em.__name__="haxe.ValueException";Em.__super__=u;Em.prototype=r(u.prototype,{value:null,unwrap:function(){return this.value},__class__:Em});var Lk=function(){this.a1=1;this.a2=0};g["haxe.crypto.Adler32"]=Lk;Lk.__name__="haxe.crypto.Adler32";
Lk.read=function(a){var b=new Lk,c=a.readByte(),d=a.readByte(),e=a.readByte();a=a.readByte();b.a1=e<<8|a;b.a2=c<<8|d;return b};Lk.prototype={a1:null,a2:null,update:function(a,b,c){var d=this.a1,e=this.a2,f=b;for(b+=c;f<b;)c=f++,d=(d+a.b[c])%65521,e=(e+d)%65521;this.a1=d;this.a2=e},equals:function(a){return a.a1==this.a1?a.a2==this.a2:!1},__class__:Lk};var Qa=function(a){this.length=a.byteLength;this.b=new Uint8Array(a);this.b.bufferValue=a;a.hxBytes=this;a.bytes=this.b};g["haxe.io.Bytes"]=Qa;Qa.__name__=
"haxe.io.Bytes";Qa.alloc=function(a){return new Qa(new ArrayBuffer(a))};Qa.ofString=function(a,b){b=[];for(var c=0;c<a.length;){var d=a.charCodeAt(c++);55296<=d&&56319>=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 Qa((new Uint8Array(b)).buffer)};Qa.ofData=function(a){var b=a.hxBytes;return null!=b?b:new Qa(a)};Qa.ofHex=function(a){if(0!=(a.length&
1))throw u.thrown("Not a hex string (odd number of digits)");for(var b=[],c=0,d=a.length>>1;c<d;){var e=a.charCodeAt(2*c),f=a.charCodeAt(2*c+1);e=(e&15)+9*((e&64)>>6);f=(f&15)+9*((f&64)>>6);b.push((e<<4|f)&255);++c}return new Qa((new Uint8Array(b)).buffer)};Qa.fastGet=function(a,b){return a.bytes[b]};Qa.prototype={length:null,b:null,data:null,get:function(a){return this.b[a]},set:function(a,b){this.b[a]=b&255},blit:function(a,b,c,d){if(0>a||0>c||0>d||a+d>this.length||c+d>b.length)throw u.thrown(Ce.OutsideBounds);
0==c&&d==b.b.byteLength?this.b.set(b.b,a):this.b.set(b.b.subarray(c,c+d),a)},fill:function(a,b,c){for(var d=0;d<b;)d++,this.b[a++]=c&255},sub:function(a,b){if(0>a||0>b||a+b>this.length)throw u.thrown(Ce.OutsideBounds);return new Qa(this.b.buffer.slice(a+this.b.byteOffset,a+this.b.byteOffset+b))},compare:function(a){for(var b=this.b,c=a.b,d=0,e=this.length<a.length?this.length:a.length;d<e;){var f=d++;if(b[f]!=c[f])return b[f]-c[f]}return this.length-a.length},initData:function(){null==this.data&&
(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength))},getDouble:function(a){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));return this.data.getFloat64(a,!0)},getFloat:function(a){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));return this.data.getFloat32(a,!0)},setDouble:function(a,b){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));this.data.setFloat64(a,
b,!0)},setFloat:function(a,b){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));this.data.setFloat32(a,b,!0)},getUInt16:function(a){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));return this.data.getUint16(a,!0)},setUInt16:function(a,b){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));this.data.setUint16(a,b,!0)},getInt32:function(a){null==this.data&&(this.data=new DataView(this.b.buffer,
this.b.byteOffset,this.b.byteLength));return this.data.getInt32(a,!0)},setInt32:function(a,b){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));this.data.setInt32(a,b,!0)},getInt64:function(a){return new zb(this.getInt32(a+4),this.getInt32(a))},setInt64:function(a,b){this.setInt32(a,b.low);this.setInt32(a+4,b.high)},getString:function(a,b,c){if(0>a||0>b||a+b>this.length)throw u.thrown(Ce.OutsideBounds);c="";var d=this.b,e=Tt.fromCharCode,f=a;for(a+=b;f<a;)if(b=
d[f++],128>b){if(0==b)break;c+=e(b)}else if(224>b)c+=e((b&63)<<6|d[f++]&127);else if(240>b){var h=d[f++];c+=e((b&31)<<12|(h&127)<<6|d[f++]&127)}else{h=d[f++];var l=d[f++];b=(b&15)<<18|(h&127)<<12|(l&127)<<6|d[f++]&127;c+=e((b>>10)+55232);c+=e(b&1023|56320)}return c},readString:function(a,b){return this.getString(a,b)},toString:function(){return this.getString(0,this.length)},toHex:function(){for(var a="",b=[],c=0,d=16;c<d;){var e=c++;b.push(G.cca("0123456789abcdef",e))}c=0;for(d=this.length;c<d;)e=
c++,e=this.b[e],a+=String.fromCodePoint(b[e>>4]),a+=String.fromCodePoint(b[e&15]);return a},getData:function(){return this.b.bufferValue},__class__:Qa};var Mk=function(){};g["haxe.crypto.Base64"]=Mk;Mk.__name__="haxe.crypto.Base64";Mk.decode=function(a,b){null==b&&(b=!0);if(b)for(;61==G.cca(a,a.length-1);)a=G.substr(a,0,-1);return(new ap(Mk.BYTES)).decodeBytes(Qa.ofString(a))};var ap=function(a){for(var b=a.length,c=1;b>1<<c;)++c;if(8<c||b!=1<<c)throw u.thrown("BaseCode : base length must be a power of two.");
this.base=a;this.nbits=c};g["haxe.crypto.BaseCode"]=ap;ap.__name__="haxe.crypto.BaseCode";ap.prototype={base:null,nbits:null,tbl:null,initTable:function(){for(var a=[],b=0;256>b;){var c=b++;a[c]=-1}b=0;for(var d=this.base.length;b<d;)c=b++,a[this.base.b[c]]=c;this.tbl=a},decodeBytes:function(a){var b=this.nbits;null==this.tbl&&this.initTable();for(var c=this.tbl,d=a.length*b>>3,e=new Qa(new ArrayBuffer(d)),f=0,h=0,l=0,m=0;m<d;){for(;8>h;){h+=b;f<<=b;var t=c[a.b[l++]];if(-1==t)throw u.thrown("BaseCode : invalid encoded char");
f|=t}h-=8;e.b[m++]=f>>h&255}return e},__class__:ap};var Hd=function(){};g["haxe.ds.ArraySort"]=Hd;Hd.__name__="haxe.ds.ArraySort";Hd.sort=function(a,b){Hd.rec(a,b,0,a.length)};Hd.rec=function(a,b,c,d){var e=c+d>>1;if(12>d-c){if(!(d<=c))for(e=c+1;e<d;)for(var f=e++;f>c;){if(0>b(a[f],a[f-1]))Hd.swap(a,f-1,f);else break;--f}}else Hd.rec(a,b,c,e),Hd.rec(a,b,e,d),Hd.doMerge(a,b,c,e,d,e-c,d-e)};Hd.doMerge=function(a,b,c,d,e,f,h){if(0!=f&&0!=h)if(2==f+h)0>b(a[d],a[c])&&Hd.swap(a,d,c);else{if(f>h){var l=
f>>1;var m=c+l;var t=Hd.lower(a,b,d,e,m);var k=t-d}else k=h>>1,t=d+k,m=Hd.upper(a,b,c,d,t),l=m-c;Hd.rotate(a,b,m,d,t);d=m+k;Hd.doMerge(a,b,c,m,d,l,k);Hd.doMerge(a,b,d,t,e,f-l,h-k)}};Hd.rotate=function(a,b,c,d,e){if(c!=d&&d!=e)for(b=Hd.gcd(e-c,d-c);0!=b--;){for(var f=a[c+b],h=d-c,l=c+b,m=c+b+h;m!=c+b;)a[l]=a[m],l=m,m=e-m>h?m+h:c+(h-(e-m));a[l]=f}};Hd.gcd=function(a,b){for(;0!=b;){var c=a%b;a=b;b=c}return a};Hd.upper=function(a,b,c,d,e){d-=c;for(var f,h;0<d;)f=d>>1,h=c+f,0>b(a[e],a[h])?d=f:(c=h+1,d=
d-f-1);return c};Hd.lower=function(a,b,c,d,e){d-=c;for(var f,h;0<d;)f=d>>1,h=c+f,0>b(a[h],a[e])?(c=h+1,d=d-f-1):d=f;return c};Hd.swap=function(a,b,c){var d=a[b];a[b]=a[c];a[c]=d};var Oh=function(){};g["haxe.ds.BalancedTree"]=Oh;Oh.__name__="haxe.ds.BalancedTree";Oh.__interfaces__=[ca];Oh.iteratorLoop=function(a,b){null!=a&&(Oh.iteratorLoop(a.left,b),b.push(a.value),Oh.iteratorLoop(a.right,b))};Oh.prototype={root:null,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){wa.lastError=b;if("string"==typeof u.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=[];Oh.iteratorLoop(this.root,a);return new pe(a)},keyValueIterator:function(){return new Fi(this)},
keys:function(){var a=[];this.keysLoop(this.root,a);return new pe(a)},setLoop:function(a,b,c){if(null==c)return new Se(null,a,b,null);var d=this.compare(a,c.key);if(0==d)return new Se(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 u.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 u.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 e=null==a?0:a._height,f=null==d?0:d._height;return e>f+2?(e=a.left,f=a.right,(null==e?0:e._height)>=(null==f?0:f._height)?new Se(a.left,a.key,a.value,new Se(a.right,b,c,d)):new Se(new Se(a.left,a.key,a.value,a.right.left),a.right.key,a.right.value,new Se(a.right.right,b,c,d))):f>e+2?(e=d.right,f=d.left,(null==e?0:e._height)>(null==f?0:f._height)?new Se(new Se(a,b,c,d.left),d.key,d.value,
d.right):new Se(new Se(a,b,c,d.left.left),d.left.key,d.left.value,new Se(d.left.right,d.key,d.value,d.right))):new Se(a,b,c,d,(e>f?e:f)+1)},compare:function(a,b){return J.compare(a,b)},__class__:Oh};var Se=function(a,b,c,d,e){null==e&&(e=-1);this.left=a;this.key=b;this.value=c;this.right=d;-1==e?(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=e};g["haxe.ds.TreeNode"]=Se;Se.__name__="haxe.ds.TreeNode";Se.prototype=
{left:null,right:null,key:null,value:null,_height:null,__class__:Se};var ys=P["haxe.ds.Either"]={__ename__:"haxe.ds.Either",__constructs__:null,Left:(x=function(a){return{_hx_index:0,v:a,__enum__:"haxe.ds.Either",toString:v}},x._hx_name="Left",x.__params__=["v"],x),Right:(x=function(a){return{_hx_index:1,v:a,__enum__:"haxe.ds.Either",toString:v}},x._hx_name="Right",x.__params__=["v"],x)};ys.__constructs__=[ys.Left,ys.Right];ys.__empty_constructs__=[];var Fm=function(){};g["haxe.ds.EnumValueMap"]=
Fm;Fm.__name__="haxe.ds.EnumValueMap";Fm.__interfaces__=[ca];Fm.__super__=Oh;Fm.prototype=r(Oh.prototype,{compare:function(a,b){var c=a._hx_index-b._hx_index;if(0!=c)return c;a=wb.enumParameters(a);b=wb.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<d;){var e=c++;e=this.compareArg(a[e],b[e]);if(0!=e)return e}return 0},compareArg:function(a,b){return J.isEnumValue(a)&&J.isEnumValue(b)?
this.compare(a,b):a instanceof Array&&b instanceof Array?this.compareArgs(a,b):J.compare(a,b)},__class__:Fm});var Bc=function(){this.h={}};g["haxe.ds.IntMap"]=Bc;Bc.__name__="haxe.ds.IntMap";Bc.__interfaces__=[ca];Bc.prototype={h:null,set:function(a,b){this.h[a]=b},get:function(a){return this.h[a]},exists:function(a){return this.h.hasOwnProperty(a)},remove:function(a){if(!this.h.hasOwnProperty(a))return!1;delete this.h[a];return!0},keys:function(){var a=[],b;for(b in this.h)this.h.hasOwnProperty(b)&&
a.push(+b);return new pe(a)},iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var a=this.it.next();return this.ref[a]}}},keyValueIterator:function(){return new Fi(this)},__class__:Bc};var ho=function(a,b){this.item=a;this.next=b};g["haxe.ds._List.ListNode"]=ho;ho.__name__="haxe.ds._List.ListNode";ho.prototype={item:null,next:null,__class__:ho};var ps=function(a){this.head=a};g["haxe.ds._List.ListIterator"]=ps;ps.__name__="haxe.ds._List.ListIterator";
ps.prototype={head:null,hasNext:function(){return null!=this.head},next:function(){var a=this.head.item;this.head=this.head.next;return a},__class__:ps};var Qo=function(a){this.h=a;this.keys=Object.keys(a);this.length=this.keys.length;this.current=0};g["haxe.ds._StringMap.StringMapKeyIterator"]=Qo;Qo.__name__="haxe.ds._StringMap.StringMapKeyIterator";Qo.prototype={h:null,keys:null,length:null,current:null,hasNext:function(){return this.current<this.length},next:function(){return this.keys[this.current++]},
__class__:Qo};var zm=function(a){this.h=a;this.keys=Object.keys(a);this.length=this.keys.length;this.current=0};g["haxe.ds._StringMap.StringMapValueIterator"]=zm;zm.__name__="haxe.ds._StringMap.StringMapValueIterator";zm.prototype={h:null,keys:null,length:null,current:null,hasNext:function(){return this.current<this.length},next:function(){return this.h[this.keys[this.current++]]},__class__:zm};var xs=function(a){this.h=a;this.keys=Object.keys(a);this.length=this.keys.length;this.current=0};g["haxe.ds._StringMap.StringMapKeyValueIterator"]=
xs;xs.__name__="haxe.ds._StringMap.StringMapKeyValueIterator";xs.prototype={h:null,keys:null,length:null,current:null,hasNext:function(){return this.current<this.length},next:function(){var a=this.keys[this.current++];return{key:a,value:this.h[a]}},__class__:xs};var Nk=function(a,b,c){u.call(this,a,b);this.posInfos=null==c?{fileName:"(unknown)",lineNumber:0,className:"(unknown)",methodName:"(unknown)"}:c;this.__skipStack++};g["haxe.exceptions.PosException"]=Nk;Nk.__name__="haxe.exceptions.PosException";
Nk.__super__=u;Nk.prototype=r(u.prototype,{posInfos:null,toString:function(){return""+u.prototype.toString.call(this)+" in "+this.posInfos.className+"."+this.posInfos.methodName+" at "+this.posInfos.fileName+":"+this.posInfos.lineNumber},__class__:Nk});var tm=function(a,b,c){null==a&&(a="Not implemented");Nk.call(this,a,b,c);this.__skipStack++};g["haxe.exceptions.NotImplementedException"]=tm;tm.__name__="haxe.exceptions.NotImplementedException";tm.__super__=Nk;tm.prototype=r(Nk.prototype,{__class__:tm});
var gp=function(){this.size=this.pos=0};g["haxe.io.BytesBuffer"]=gp;gp.__name__="haxe.io.BytesBuffer";gp.prototype={buffer:null,view:null,u8:null,pos:null,size:null,addByte:function(a){this.pos==this.size&&this.grow(1);this.view.setUint8(this.pos++,a)},add:function(a){this.pos+a.length>this.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 u.thrown(Ce.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<b;)a=3*a>>1;b=new ArrayBuffer(a);var c=new Uint8Array(b);0<this.size&&c.set(this.u8);this.size=a;this.buffer=b;this.u8=c;this.view=new DataView(this.buffer)},getBytes:function(){if(0==this.size)return new Qa(new ArrayBuffer(0));var a=new Qa(this.buffer);a.length=this.pos;return a},__class__:gp};var hp=
function(){};g["haxe.io.Input"]=hp;hp.__name__="haxe.io.Input";hp.prototype={bigEndian:null,readByte:function(){throw new tm(null,null,{fileName:"haxe/io/Input.hx",lineNumber:53,className:"haxe.io.Input",methodName:"readByte"});},readBytes:function(a,b,c){var d=c,e=a.b;if(0>b||0>c||b+c>a.length)throw u.thrown(Ce.OutsideBounds);try{for(;0<d;)e[b]=this.readByte(),++b,--d}catch(f){if(wa.lastError=f,!(u.caught(f).unwrap()instanceof Gm))throw f;}return c-d},readFullBytes:function(a,b,c){for(;0<c;){var d=
this.readBytes(a,b,c);if(0==d)throw u.thrown(Ce.Blocked);b+=d;c-=d}},read:function(a){for(var b=new Qa(new ArrayBuffer(a)),c=0;0<a;){var d=this.readBytes(b,c,a);if(0==d)throw u.thrown(Ce.Blocked);c+=d;a-=d}return b},readInt16:function(){var a=this.readByte(),b=this.readByte();a=this.bigEndian?b|a<<8:a|b<<8;return 0!=(a&32768)?a-65536:a},readUInt16:function(){var a=this.readByte(),b=this.readByte();return this.bigEndian?b|a<<8:a|b<<8},readInt32:function(){var a=this.readByte(),b=this.readByte(),c=
this.readByte(),d=this.readByte();return this.bigEndian?d|c<<8|b<<16|a<<24:a|b<<8|c<<16|d<<24},readString:function(a,b){var c=new Qa(new ArrayBuffer(a));this.readFullBytes(c,0,a);return c.getString(0,a,b)},__class__:hp};var ip=function(a,b,c){null==b&&(b=0);null==c&&(c=a.length-b);if(0>b||0>c||b+c>a.length)throw u.thrown(Ce.OutsideBounds);this.b=a.b;this.pos=b;this.totlen=this.len=c};g["haxe.io.BytesInput"]=ip;ip.__name__="haxe.io.BytesInput";ip.__super__=hp;ip.prototype=r(hp.prototype,{b:null,pos:null,
len:null,totlen:null,readByte:function(){if(0==this.len)throw u.thrown(new Gm);this.len--;return this.b[this.pos++]},readBytes:function(a,b,c){if(0>b||0>c||b+c>a.length)throw u.thrown(Ce.OutsideBounds);if(0==this.len&&0<c)throw u.thrown(new Gm);this.len<c&&(c=this.len);var d=this.b;a=a.b;for(var e=0,f=c;e<f;){var h=e++;a[b+h]=d[this.pos+h]}this.pos+=c;this.len-=c;return c},__class__:ip});var jp=P["haxe.io.Encoding"]={__ename__:"haxe.io.Encoding",__constructs__:null,UTF8:{_hx_name:"UTF8",_hx_index:0,
__enum__:"haxe.io.Encoding",toString:v},RawNative:{_hx_name:"RawNative",_hx_index:1,__enum__:"haxe.io.Encoding",toString:v}};jp.__constructs__=[jp.UTF8,jp.RawNative];jp.__empty_constructs__=[jp.UTF8,jp.RawNative];var Gm=function(){};g["haxe.io.Eof"]=Gm;Gm.__name__="haxe.io.Eof";Gm.prototype={toString:function(){return"Eof"},__class__:Gm};var Ce=P["haxe.io.Error"]={__ename__:"haxe.io.Error",__constructs__:null,Blocked:{_hx_name:"Blocked",_hx_index:0,__enum__:"haxe.io.Error",toString:v},Overflow:{_hx_name:"Overflow",
_hx_index:1,__enum__:"haxe.io.Error",toString:v},OutsideBounds:{_hx_name:"OutsideBounds",_hx_index:2,__enum__:"haxe.io.Error",toString:v},Custom:(x=function(a){return{_hx_index:3,e:a,__enum__:"haxe.io.Error",toString:v}},x._hx_name="Custom",x.__params__=["e"],x)};Ce.__constructs__=[Ce.Blocked,Ce.Overflow,Ce.OutsideBounds,Ce.Custom];Ce.__empty_constructs__=[Ce.Blocked,Ce.Overflow,Ce.OutsideBounds];var Id=function(){};g["haxe.io.FPHelper"]=Id;Id.__name__="haxe.io.FPHelper";Id.i32ToFloat=function(a){Id.helper.setInt32(0,
a,!0);return Id.helper.getFloat32(0,!0)};Id.floatToI32=function(a){Id.helper.setFloat32(0,a,!0);return Id.helper.getInt32(0,!0)};Id.i64ToDouble=function(a,b){Id.helper.setInt32(0,a,!0);Id.helper.setInt32(4,b,!0);return Id.helper.getFloat64(0,!0)};Id.doubleToI64=function(a){var b=Id.i64tmp;Id.helper.setFloat64(0,a,!0);b.low=Id.helper.getInt32(0,!0);b.high=Id.helper.getInt32(4,!0);return b};var Qi=function(a){switch(a){case ".":case "..":this.dir=a;this.file="";return}var b=a.lastIndexOf("/"),c=a.lastIndexOf("\\");
b<c?(this.dir=G.substr(a,0,c),a=G.substr(a,c+1,null),this.backslash=!0):c<b?(this.dir=G.substr(a,0,b),a=G.substr(a,b+1,null)):this.dir=null;b=a.lastIndexOf(".");-1!=b?(this.ext=G.substr(a,b+1,null),this.file=G.substr(a,0,b)):(this.ext=null,this.file=a)};g["haxe.io.Path"]=Qi;Qi.__name__="haxe.io.Path";Qi.directory=function(a){a=new Qi(a);return null==a.dir?"":a.dir};Qi.prototype={dir:null,file:null,ext:null,backslash:null,__class__:Qi};var Fi=function(a){this.map=a;this.keys=a.keys()};g["haxe.iterators.MapKeyValueIterator"]=
Fi;Fi.__name__="haxe.iterators.MapKeyValueIterator";Fi.prototype={map:null,keys:null,hasNext:function(){return this.keys.hasNext()},next:function(){var a=this.keys.next();return{value:this.map.get(a),key:a}},__class__:Fi};var Hm=function(){};g["haxe.rtti.Meta"]=Hm;Hm.__name__="haxe.rtti.Meta";Hm.getMeta=function(a){return a.__meta__};Hm.getFields=function(a){a=Hm.getMeta(a);return null==a||null==a.fields?{}:a.fields};var aa={resolve:function(a,b){var c=a.elementsNamed(b).next();if(null==c){if(a.nodeType==
z.Document)a="Document";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.nodeName}throw u.thrown(a+" is missing element "+b);}if(c.nodeType!=z.Document&&c.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==c.nodeType?"null":V.toString(c.nodeType)));return c}},ba={resolve:function(a,b){if(a.nodeType==z.Document)throw u.thrown("Cannot access document attribute "+b);var c=a.get(b);if(null==c){if(a.nodeType!=
z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));throw u.thrown(a.nodeName+" is missing attribute "+b);}return c}},ja={resolve:function(a,b){if(a.nodeType==z.Document)throw u.thrown("Cannot access document attribute "+b);return a.exists(b)}},ma={resolve:function(a,b){return a.elementsNamed(b).hasNext()}},Jh={resolve:function(a,b){var c=[];for(a=a.elementsNamed(b);a.hasNext();){b=a.next();if(b.nodeType!=z.Document&&b.nodeType!=
z.Element)throw u.thrown("Invalid nodeType "+(null==b.nodeType?"null":V.toString(b.nodeType)));c.push(b)}return c}},qb={__properties__:{get_innerData:"get_innerData"},get_innerData:function(a){if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));var b=0,c=a.children;if(b>=c.length){if(a.nodeType==z.Document)var d="Document";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+
(null==a.nodeType?"null":V.toString(a.nodeType)));d=a.nodeName}throw u.thrown(d+" does not have data");}d=c[b++];if(b<c.length){var e=c[b++];if(d.nodeType==z.PCData&&e.nodeType==z.CData){if(d.nodeType==z.Document||d.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==d.nodeType?"null":V.toString(d.nodeType)));d=""==ia.trim(d.nodeValue)}else d=!1;if(d){if(b>=c.length){if(e.nodeType==z.Document||e.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==e.nodeType?"null":
V.toString(e.nodeType)));return e.nodeValue}d=c[b++];if(d.nodeType==z.PCData){if(d.nodeType==z.Document||d.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==d.nodeType?"null":V.toString(d.nodeType)));d=""==ia.trim(d.nodeValue)}else d=!1;if(d&&b>=c.length){if(e.nodeType==z.Document||e.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==e.nodeType?"null":V.toString(e.nodeType)));return e.nodeValue}}if(a.nodeType==z.Document)d="Document";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+
(null==a.nodeType?"null":V.toString(a.nodeType)));d=a.nodeName}throw u.thrown(d+" does not only have data");}if(d.nodeType!=z.PCData&&d.nodeType!=z.CData){if(a.nodeType==z.Document)d="Document";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));d=a.nodeName}throw u.thrown(d+" does not have data");}if(d.nodeType==z.Document||d.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==d.nodeType?"null":
V.toString(d.nodeType)));return d.nodeValue}},bc=function(a){this.output=new gg;this.pretty=a};g["haxe.xml.Printer"]=bc;bc.__name__="haxe.xml.Printer";bc.print=function(a,b){null==b&&(b=!1);b=new bc(b);b.writeNode(a,"");return b.output.b};bc.prototype={output:null,pretty:null,writeNode:function(a,b){switch(a.nodeType){case 0:this.output.b+=B.string(b+"<");if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));this.output.b+=
B.string(a.nodeName);for(var c=a.attributes();c.hasNext();){var d=c.next();this.output.b+=B.string(" "+d+'="');d=ia.htmlEscape(a.get(d),!0);this.output.b+=B.string(d);this.output.b+='"'}if(this.hasChildren(a)){this.output.b+=">";this.pretty&&(this.output.b+="\n");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));c=0;for(d=a.children;c<d.length;){var e=d[c++];this.writeNode(e,this.pretty?
b+"\t":b)}this.output.b+=B.string(b+"</");if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));this.output.b+=B.string(a.nodeName);this.output.b+=">"}else this.output.b+="/>";this.pretty&&(this.output.b+="\n");break;case 1:if(a.nodeType==z.Document||a.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.nodeValue;0!=a.length&&(d=b+ia.htmlEscape(a),this.output.b+=
B.string(d),this.pretty&&(this.output.b+="\n"));break;case 2:this.output.b+=B.string(b+"<![CDATA[");if(a.nodeType==z.Document||a.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==a.nodeType?"null":V.toString(a.nodeType)));this.output.b+=B.string(a.nodeValue);this.output.b+="]]\x3e";this.pretty&&(this.output.b+="\n");break;case 3:if(a.nodeType==z.Document||a.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.nodeValue;
a=a.replace(/[\n\r\t]+/g,"");this.output.b+=null==b?"null":""+b;d=ia.trim("\x3c!--"+a+"--\x3e");this.output.b+=B.string(d);this.pretty&&(this.output.b+="\n");break;case 4:if(a.nodeType==z.Document||a.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==a.nodeType?"null":V.toString(a.nodeType)));this.output.b+=B.string("<!DOCTYPE "+a.nodeValue+">");this.pretty&&(this.output.b+="\n");break;case 5:if(a.nodeType==z.Document||a.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+
(null==a.nodeType?"null":V.toString(a.nodeType)));this.output.b+=B.string("<?"+a.nodeValue+"?>");this.pretty&&(this.output.b+="\n");break;case 6:if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));c=0;for(d=a.children;c<d.length;)e=d[c++],this.writeNode(e,b)}},hasChildren:function(a){if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+
(null==a.nodeType?"null":V.toString(a.nodeType)));var b=0;for(a=a.children;b<a.length;){var c=a[b++];switch(c.nodeType){case 0:case 1:return!0;case 2:case 3:if(c.nodeType==z.Document||c.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==c.nodeType?"null":V.toString(c.nodeType)));if(0!=ia.ltrim(c.nodeValue).length)return!0}}return!1},__class__:bc};var Ri=P["haxe.zip.ExtraField"]={__ename__:"haxe.zip.ExtraField",__constructs__:null,FUnknown:(x=function(a,b){return{_hx_index:0,tag:a,
bytes:b,__enum__:"haxe.zip.ExtraField",toString:v}},x._hx_name="FUnknown",x.__params__=["tag","bytes"],x),FInfoZipUnicodePath:(x=function(a,b){return{_hx_index:1,name:a,crc:b,__enum__:"haxe.zip.ExtraField",toString:v}},x._hx_name="FInfoZipUnicodePath",x.__params__=["name","crc"],x),FUtf8:{_hx_name:"FUtf8",_hx_index:2,__enum__:"haxe.zip.ExtraField",toString:v}};Ri.__constructs__=[Ri.FUnknown,Ri.FInfoZipUnicodePath,Ri.FUtf8];Ri.__empty_constructs__=[Ri.FUtf8];var jg=P["haxe.zip.Huffman"]={__ename__:"haxe.zip.Huffman",
__constructs__:null,Found:(x=function(a){return{_hx_index:0,i:a,__enum__:"haxe.zip.Huffman",toString:v}},x._hx_name="Found",x.__params__=["i"],x),NeedBit:(x=function(a,b){return{_hx_index:1,left:a,right:b,__enum__:"haxe.zip.Huffman",toString:v}},x._hx_name="NeedBit",x.__params__=["left","right"],x),NeedBits:(x=function(a,b){return{_hx_index:2,n:a,table:b,__enum__:"haxe.zip.Huffman",toString:v}},x._hx_name="NeedBits",x.__params__=["n","table"],x)};jg.__constructs__=[jg.Found,jg.NeedBit,jg.NeedBits];
jg.__empty_constructs__=[];var Gs=function(){};g["haxe.zip.HuffTools"]=Gs;Gs.__name__="haxe.zip.HuffTools";Gs.prototype={treeDepth:function(a){switch(a._hx_index){case 0:return 0;case 1:var b=a.right;a=this.treeDepth(a.left);b=this.treeDepth(b);return 1+(a<b?a:b);case 2:throw u.thrown("assert");}},treeCompress:function(a){var b=this.treeDepth(a);if(0==b)return a;if(1==b){if(1==a._hx_index)return b=a.right,jg.NeedBit(this.treeCompress(a.left),this.treeCompress(b));throw u.thrown("assert");}for(var c=
[],d=0,e=1<<b;d<e;)d++,c.push(jg.Found(-1));this.treeWalk(c,0,0,b,a);return jg.NeedBits(b,c)},treeWalk:function(a,b,c,d,e){if(1==e._hx_index){var f=e.left,h=e.right;0<d?(this.treeWalk(a,b,c+1,d-1,f),this.treeWalk(a,b|1<<c,c+1,d-1,h)):a[b]=this.treeCompress(e)}else a[b]=this.treeCompress(e)},treeMake:function(a,b,c,d){if(d>b)throw u.thrown("Invalid huffman");var e=c<<5|d;if(a.h.hasOwnProperty(e))return jg.Found(a.h[e]);c<<=1;++d;return jg.NeedBit(this.treeMake(a,b,c,d),this.treeMake(a,b,c|1,d))},make:function(a,
b,c,d){if(1==c)return jg.NeedBit(jg.Found(0),jg.Found(0));var e=[],f=[];if(32<d)throw u.thrown("Invalid huffman");for(var h=0,l=d;h<l;)h++,e.push(0),f.push(0);h=0;for(l=c;h<l;){var m=h++;m=a[m+b];if(m>=d)throw u.thrown("Invalid huffman");e[m]++}var t=0;h=1;for(l=d-1;h<l;)m=h++,t=t+e[m]<<1,f[m]=t;e=new Bc;h=0;for(l=c;h<l;)m=h++,c=a[m+b],0!=c&&(t=f[c-1],f[c-1]=t+1,e.h[t<<5|c]=m);return this.treeCompress(jg.NeedBit(this.treeMake(e,d,0,1),this.treeMake(e,d,1,1)))},__class__:Gs};var Hs=function(a){this.buffer=
new Qa(new ArrayBuffer(65536));this.pos=0;a&&(this.crc=new Lk)};g["haxe.zip._InflateImpl.Window"]=Hs;Hs.__name__="haxe.zip._InflateImpl.Window";Hs.prototype={buffer:null,pos:null,crc:null,slide:function(){null!=this.crc&&this.crc.update(this.buffer,0,32768);var a=new Qa(new ArrayBuffer(65536));this.pos-=32768;a.blit(0,this.buffer,32768,this.pos);this.buffer=a},addBytes:function(a,b,c){65536<this.pos+c&&this.slide();this.buffer.blit(this.pos,a,b,c);this.pos+=c},addByte:function(a){65536==this.pos&&
this.slide();this.buffer.b[this.pos]=a&255;this.pos++},getLastChar:function(){return this.buffer.b[this.pos-1]},available:function(){return this.pos},checksum:function(){null!=this.crc&&this.crc.update(this.buffer,0,this.pos);return this.crc},__class__:Hs};var uc=P["haxe.zip._InflateImpl.State"]={__ename__:"haxe.zip._InflateImpl.State",__constructs__:null,Head:{_hx_name:"Head",_hx_index:0,__enum__:"haxe.zip._InflateImpl.State",toString:v},Block:{_hx_name:"Block",_hx_index:1,__enum__:"haxe.zip._InflateImpl.State",
toString:v},CData:{_hx_name:"CData",_hx_index:2,__enum__:"haxe.zip._InflateImpl.State",toString:v},Flat:{_hx_name:"Flat",_hx_index:3,__enum__:"haxe.zip._InflateImpl.State",toString:v},Crc:{_hx_name:"Crc",_hx_index:4,__enum__:"haxe.zip._InflateImpl.State",toString:v},Dist:{_hx_name:"Dist",_hx_index:5,__enum__:"haxe.zip._InflateImpl.State",toString:v},DistOne:{_hx_name:"DistOne",_hx_index:6,__enum__:"haxe.zip._InflateImpl.State",toString:v},Done:{_hx_name:"Done",_hx_index:7,__enum__:"haxe.zip._InflateImpl.State",
toString:v}};uc.__constructs__=[uc.Head,uc.Block,uc.CData,uc.Flat,uc.Crc,uc.Dist,uc.DistOne,uc.Done];uc.__empty_constructs__=[uc.Head,uc.Block,uc.CData,uc.Flat,uc.Crc,uc.Dist,uc.DistOne,uc.Done];var ke=function(a,b,c){null==c&&(c=!0);null==b&&(b=!0);this.isFinal=!1;this.htools=new Gs;this.huffman=this.buildFixedHuffman();this.huffdist=null;this.dist=this.len=0;this.state=b?uc.Head:uc.Block;this.input=a;this.needed=this.nbits=this.bits=0;this.output=null;this.outpos=0;this.lengths=[];this.lengths.push(-1);
this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.window=new Hs(c)};g["haxe.zip.InflateImpl"]=ke;ke.__name__="haxe.zip.InflateImpl";ke.prototype={nbits:null,
bits:null,state:null,isFinal:null,huffman:null,huffdist:null,htools:null,len:null,dist:null,needed:null,output:null,outpos:null,input:null,lengths:null,window:null,buildFixedHuffman:function(){if(null!=ke.FIXED_HUFFMAN)return ke.FIXED_HUFFMAN;for(var a=[],b=0;288>b;){var c=b++;a.push(143>=c?8:255>=c?9:279>=c?7:8)}ke.FIXED_HUFFMAN=this.htools.make(a,0,288,10);return ke.FIXED_HUFFMAN},readBytes:function(a,b,c){this.needed=c;this.outpos=b;this.output=a;if(0<c)for(;this.inflateLoop(););return c-this.needed},
getBits:function(a){for(;this.nbits<a;)this.bits|=this.input.readByte()<<this.nbits,this.nbits+=8;var b=this.bits&(1<<a)-1;this.nbits-=a;this.bits>>=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<<a-1|this.getRevBits(a-1):this.getRevBits(a-1)},resetBits:function(){this.nbits=this.bits=0},addBytes:function(a,b,c){this.window.addBytes(a,b,c);this.output.blit(this.outpos,
a,b,c);this.needed-=c;this.outpos+=c},addByte:function(a){this.window.addByte(a);this.output.b[this.outpos]=a&255;this.needed--;this.outpos++},addDistOne:function(a){for(var b=this.window.getLastChar(),c=0;c<a;)c++,this.addByte(b)},addDist:function(a,b){this.addBytes(this.window.buffer,this.window.pos-a,b)},applyHuffman:function(a){switch(a._hx_index){case 0:var b=a.i;return b;case 1:return b=a.left,a=a.right,this.applyHuffman(this.getBit()?a:b);case 2:return b=a.n,this.applyHuffman(a.table[this.getBits(b)])}},
inflateLengths:function(a,b){for(var c=0,d=0;c<b;){var e=this.applyHuffman(this.huffman);switch(e){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:d=e;a[c]=e;++c;break;case 16:e=c+3+this.getBits(2);if(e>b)throw u.thrown("Invalid data");for(;c<e;)a[c]=d,++c;break;case 17:c+=3+this.getBits(3);if(c>b)throw u.thrown("Invalid data");break;case 18:c+=11+this.getBits(7);if(c>b)throw u.thrown("Invalid data");break;default:throw u.thrown("Invalid data");
}}},inflateLoop:function(){switch(this.state._hx_index){case 0:var a=this.input.readByte();if(8!=(a&15))throw u.thrown("Invalid data");var b=this.input.readByte(),c=0!=(b&32);if(0!=((a<<8)+b)%31)throw u.thrown("Invalid data");if(c)throw u.thrown("Unsupported dictionary");this.state=uc.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 u.thrown("Invalid data");this.state=uc.Flat;a=this.inflateLoop();
this.resetBits();return a;case 1:return this.huffman=this.buildFixedHuffman(),this.huffdist=null,this.state=uc.CData,!0;case 2:a=this.getBits(5)+257;b=this.getBits(5)+1;var d=this.getBits(4)+4;c=0;for(var e=d;c<e;){var f=c++;this.lengths[ke.CODE_LENGTHS_POS[f]]=this.getBits(3)}c=d;for(e=19;c<e;)f=c++,this.lengths[ke.CODE_LENGTHS_POS[f]]=0;this.huffman=this.htools.make(this.lengths,0,19,8);d=[];c=0;for(e=a+b;c<e;)c++,d.push(0);this.inflateLengths(d,a+b);this.huffdist=this.htools.make(d,a,b,16);this.huffman=
this.htools.make(d,0,a,16);this.state=uc.CData;return!0;default:throw u.thrown("Invalid data");}case 2:b=this.applyHuffman(this.huffman);if(256>b)return this.addByte(b),0<this.needed;if(256==b)this.state=this.isFinal?uc.Crc:uc.Block;else{b-=257;a=ke.LEN_EXTRA_BITS_TBL[b];if(-1==a)throw u.thrown("Invalid data");this.len=ke.LEN_BASE_VAL_TBL[b]+this.getBits(a);b=null==this.huffdist?this.getRevBits(5):this.applyHuffman(this.huffdist);a=ke.DIST_EXTRA_BITS_TBL[b];if(-1==a)throw u.thrown("Invalid data");
this.dist=ke.DIST_BASE_VAL_TBL[b]+this.getBits(a);if(this.dist>this.window.available())throw u.thrown("Invalid data");this.state=1==this.dist?uc.DistOne:uc.Dist}return!0;case 3:return a=this.len<this.needed?this.len:this.needed,b=this.input.read(a),this.len-=a,this.addBytes(b,0,a),0==this.len&&(this.state=this.isFinal?uc.Crc:uc.Block),0<this.needed;case 4:a=this.window.checksum();if(null==a)return this.state=uc.Done,!0;b=Lk.read(this.input);if(!a.equals(b))throw u.thrown("Invalid CRC");this.state=
uc.Done;return!0;case 5:for(;0<this.len&&0<this.needed;)a=this.len<this.dist?this.len:this.dist,a=this.needed<a?this.needed:a,this.addDist(this.dist,a),this.len-=a;0==this.len&&(this.state=uc.CData);return 0<this.needed;case 6:return a=this.len<this.needed?this.len:this.needed,this.addDistOne(a),this.len-=a,0==this.len&&(this.state=uc.CData),0<this.needed;case 7:return!1}},__class__:ke};var Ok=function(a){this.i=a};g["haxe.zip.Reader"]=Ok;Ok.__name__="haxe.zip.Reader";Ok.readZip=function(a){return(new Ok(a)).read()};
Ok.unzip=function(a){if(!a.compressed)return a.data;throw u.thrown("No uncompress support");};Ok.prototype={i:null,readZipDate:function(){var a=this.i.readUInt16(),b=a>>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 hb;0<a;){if(4>a)throw u.thrown("Invalid extra fields data");var c=this.i.readUInt16(),d=this.i.readUInt16();if(a<d)throw u.thrown("Invalid extra fields data");if(28789==c){var e=this.i.readByte();
if(1!=e){var f=new gp;f.addByte(e);f.add(this.i.read(d-1));b.add(Ri.FUnknown(c,f.getBytes()))}else c=this.i.readInt32(),e=this.i.read(d-5).toString(),b.add(Ri.FInfoZipUnicodePath(e,c))}else b.add(Ri.FUnknown(c,this.i.read(d)));a-=4+d}return b},readEntryHeader:function(){var a=this.i,b=a.readInt32();if(33639248==b||101010256==b)return null;if(67324752!=b)throw u.thrown("Invalid Zip Data");a.readUInt16();b=a.readUInt16();var c=0!=(b&2048),d=a.readUInt16(),e=0!=d;if(e&&8!=d)throw u.thrown("Unsupported compression "+
d);d=this.readZipDate();var f=a.readInt32(),h=a.readInt32(),l=a.readInt32(),m=a.readInt16(),t=a.readInt16();a=a.readString(m);t=this.readExtraFields(t);c&&t.push(Ri.FUtf8);0!=(b&8)&&(h=-1);return{fileName:a,fileSize:l,fileTime:d,compressed:e,dataSize:h,data:null,crc32:f,extraFields:t}},read:function(){for(var a=new hb,b=null;;){var c=this.readEntryHeader();if(null==c)break;if(0>c.dataSize){null==b&&(b=new Qa(new ArrayBuffer(65536)));for(var d=new gp,e=new ke(this.i,!1,!1);;){var f=e.readBytes(b,0,
65536);d.addBytes(b,0,f);if(65536>f)break}c.data=d.getBytes();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__:Ok};var Is=function(){this.onUpdate=new ya;this._previewMode=!1};g["jackdaw.JackdawOptions"]=Is;Is.__name__="jackdaw.JackdawOptions";Is.prototype={_previewMode:null,onUpdate:null,update:function(a){a.hasOwnProperty("previewMode")&&
this.get_previewMode()!=a.previewMode&&(this.set_previewMode(a.previewMode),this.onUpdate.dispatch())},get_previewMode:function(){return this._previewMode},set_previewMode:function(a){if(this._previewMode==a)return!1;this._previewMode=a;return!0},__class__:Is,__properties__:{set_previewMode:"set_previewMode",get_previewMode:"get_previewMode"}};var Ya=function(){};g["jackdaw.Jackdaw"]=Ya;Ya.__name__="jackdaw.Jackdaw";Ya.wrapTagName=function(a){var b={};b.jackdaw_tag_name=a;return b};Ya.getProps=function(a){var b=
{};a.hasField("jackdaw_node_width")&&(b.width=a.field("jackdaw_node_width"));a.hasField("jackdaw_node_height")&&(b.height=a.field("jackdaw_node_height"));a.hasField("jackdaw_node_has_background")&&(b.hasBackground=a.field("jackdaw_node_has_background"));return b};var Ph=function(){F.call(this);this.mouseChildren=!1};g["jackdaw.JackdawBoundsDisplay"]=Ph;Ph.__name__="jackdaw.JackdawBoundsDisplay";Ph.createLabel=function(){var a=new Pg(window.document.createElement("div"));a.__element.style.color="#000";
a.__element.style.background="rgba(255, 255, 255, 0.9)";a.__element.style.cursor="default";a.__element.style.fontSize="12px";a.__element.style.padding="1px 5px";a.__element.style.fontFamily="Roboto";return a};Ph.createNote=function(a){var b=Ph.createLabel();b.__element.innerHTML=a;b.__element.style.textAlign="center";b.__element.style.background="transparent";return b};Ph.__super__=F;Ph.prototype=r(F.prototype,{bounds:null,label:null,note:null,clear:function(){this.get_graphics().clear();this.removeChildren()},
draw:function(a,b,c,d,e){null==e&&(e=.5);null==d&&(d=-1);null==c&&(c=16777215);this.bounds=b;this.drawBounds(c,d,e);null==this.label&&(this.label=Ph.createLabel());this.label.parent!=this&&this.addChild(this.label);this.label.__element.innerHTML=a;this.label.set_x(b.x+b.width);this.label.set_alpha(0);this.label.addEventListener("renderDOM",k(this,this.onLabelRenderDOM));this.label.set_y(b.y)},drawBounds:function(a,b,c){null==c&&(c=.5);null==b&&(b=-1);null==a&&(a=16777215);this.get_graphics().clear();
this.get_graphics().lineStyle(1,a,.5);0<=b&&this.get_graphics().beginFill(b,c);this.get_graphics().drawRect(this.bounds.x+.5,this.bounds.y+.5,this.bounds.width-1,this.bounds.height-1);this.get_graphics().endFill()},onLabelRenderDOM:function(a){N.__cast(a.target,Pg).removeEventListener("renderDOM",k(this,this.onLabelRenderDOM));a=this.label;a.set_x(a.get_x()-this.label.__element.offsetWidth);this.label.set_alpha(1)},addNote:function(a){var b=this;this.removeNote();this.note=Ph.createNote(a);this.addChild(this.note);
this.note.set_x(this.bounds.x);this.note.set_y(this.bounds.y+this.bounds.height/2);var c=null;c=function(a){b.note.removeEventListener("renderDOM",c);b.note.set_x(b.bounds.x+(b.bounds.width-b.note.__element.offsetWidth)/2)};this.note.addEventListener("renderDOM",c)},removeNote:function(){null!=this.note&&this.removeChild(this.note)},__class__:Ph});var Fb=function(){};g["jackdaw.JackdawUtil"]=Fb;Fb.__name__="jackdaw.JackdawUtil";Fb.clearLabel=function(a){if(a instanceof F){var b=Db.getField(a,"jackdaw_bounds_display");
null!=b&&(null!=b.parent&&a.removeChild(b),Db.removeField(a,"jackdaw_bounds_display"))}else a instanceof Pg&&Fb.clearDOMLabel(a)};Fb.clearDOMLabel=function(a,b){null==b&&(b="jackdaw-label");"jackdaw-label"==b&&(a.__element.style.outline=null);a=a.__element.children.namedItem(b);null!=a&&a.remove()};Fb.drawLabel=function(a,b,c,d,e,f){null==f&&(f=.5);null==e&&(e=-1);null==d&&(d=16777215);var h=null;a instanceof F&&(h=a);null==c&&(c=Fb.getBounds(a));null!=h?Fb.setBoundsDisplay(h,b,c,d,e,f):a instanceof
Pg&&Fb.drawDOMLabel(a,b)};Fb.drawDOMLabel=function(a,b,c){null==c&&(c="jackdaw-label");"jackdaw-label"==c&&(a.__element.style.outline="1px solid #fff");var d=a.__element.children.namedItem(c);null==d&&(d=window.document.createElement("div"));d.id=c;d.innerHTML=b;d.style.color="#000";d.style.background="rgba(255, 255, 255, 0.9)";d.style.position="absolute";d.style.top="0px";d.style.right="0px";d.style.cursor="default";d.style.padding="1px 5px";d.style.fontSize="12px";d.style.fontFamily="Roboto";a.__element.appendChild(d);
return d};Fb.getBounds=function(a){Fb.clearBoundsDisplay(a);return a.getBounds(a)};Fb.scaleBounds=function(a,b){a.x/=b.get_scaleX();a.y/=b.get_scaleY();a.width/=b.get_scaleX();a.height/=b.get_scaleY();return a};Fb.getBoundsDisplay=function(a){return Db.getField(a,"jackdaw_bounds_display")};Fb.setBoundsDisplay=function(a,b,c,d,e,f){null==f&&(f=.5);null==e&&(e=-1);null==d&&(d=16777215);var h=Fb.getBoundsDisplay(a);null==h&&(h=new Ph,Db.set(a,Fb.wrapBoundsDisplay(h)));0<c.width&&0<c.height&&(h.draw(b,
c,d,e,f),a.addChild(N.__cast(h,ka)))};Fb.clearBoundsDisplay=function(a){a=Fb.getBoundsDisplay(a);null!=a&&a.clear()};Fb.wrapBoundsDisplay=function(a){var b={};b.jackdaw_bounds_display=a;return b};var Qh=function(){};g["js.Browser"]=Qh;Qh.__name__="js.Browser";Qh.__properties__={get_supported:"get_supported"};Qh.get_supported=function(){return"undefined"!=typeof window&&"undefined"!=typeof window.location?"string"==typeof window.location.protocol:!1};Qh.getLocalStorage=function(){try{var a=window.localStorage;
a.getItem("");if(0==a.length){var b="_hx_"+Math.random();a.setItem(b,b);a.removeItem(b)}return a}catch(c){return wa.lastError=c,null}};var Ij=function(){};g["js.browser.Chrome"]=Ij;Ij.__name__="js.browser.Chrome";Ij.__properties__={get_version:"get_version"};Ij.get_version=function(){var a=new fa("Chrom(e|ium)/([0-9]+)\\.",""),b=new fa("Google Inc","");return a.match(E.navigator.userAgent)&&b.match(E.navigator.vendor)?B.parseInt(a.matched(2)):null};var Uc=function(){};g["js.browser.Supports"]=Uc;
Uc.__name__="js.browser.Supports";Uc.__properties__={get_fullScreenAPI:"get_fullScreenAPI",get_autoPlay:"get_autoPlay",get_WebMAlpha:"get_WebMAlpha",get_WebM:"get_WebM",get_video:"get_video",get_FlashWebGL:"get_FlashWebGL",get_canvas:"get_canvas"};Uc.get_canvas=function(){null==Uc.canvas&&(Uc.canvas=window.document.createElement("canvas"));return Uc.canvas};Uc.get_FlashWebGL=function(){return null==kp.getContextWebGL(Uc.get_canvas(),null)||null==Ij.get_version()||yb.isEdge()?!1:30<=Ij.get_version()};
Uc.get_video=function(){null==Uc.video&&(Uc.video=window.document.createElement("video"));return Uc.video};Uc.get_WebM=function(){return J.isFunction(J.field(Uc.get_video(),"canPlayType"))?""!=Uc.get_video().canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""):!1};Uc.get_WebMAlpha=function(){return Uc.get_WebM()?31>Ij.get_version()?yb.isFirefox(53):!0:!1};Uc.get_autoPlay=function(){return null==yb.get_androidVersion()?null!=yb.get_iosVersion()?6.1>yb.get_iosVersion()[0]+yb.get_iosVersion()[1]/
10:!0:!1};Uc.get_fullScreenAPI=function(){return null!=yb.get_iosVersion()?(new fa("iPad","")).match(E.navigator.platform):!0};var yb=function(){};g["js.browser.UserAgent"]=yb;yb.__name__="js.browser.UserAgent";yb.__properties__={get_iosVersion:"get_iosVersion",get_androidVersion:"get_androidVersion",get_browserVersion:"get_browserVersion",get_browser:"get_browser"};yb.bEreg=function(){return new fa("(MSIE|Trident|(?!Gecko.+)Firefox|(?!AppleWebKit.+Chrome.+)Safari(?!.+Edge)|(?!AppleWebKit.+)Chrome(?!.+Edge)|(?!AppleWebKit.+Chrome.+Safari.+)Edge|AppleWebKit(?!.+Chrome|.+Safari)|Gecko(?!.+Firefox))(?: |/)([\\d\\.apre]+)",
"i")};yb.get_browser=function(){var a=new fa("(MSIE|Trident|(?!Gecko.+)Firefox|(?!AppleWebKit.+Chrome.+)Safari(?!.+Edge)|(?!AppleWebKit.+)Chrome(?!.+Edge)|(?!AppleWebKit.+Chrome.+Safari.+)Edge|AppleWebKit(?!.+Chrome|.+Safari)|Gecko(?!.+Firefox))(?: |/)([\\d\\.apre]+)","i");return a.match(E.navigator.userAgent)?a.matched(1):null};yb.get_browserVersion=function(){var a=new fa("(MSIE|Trident|(?!Gecko.+)Firefox|(?!AppleWebKit.+Chrome.+)Safari(?!.+Edge)|(?!AppleWebKit.+)Chrome(?!.+Edge)|(?!AppleWebKit.+Chrome.+Safari.+)Edge|AppleWebKit(?!.+Chrome|.+Safari)|Gecko(?!.+Firefox))(?: |/)([\\d\\.apre]+)",
"i");return a.match(E.navigator.userAgent)?a.matched(2):null};yb.get_androidVersion=function(){var a=new fa("android\\s([0-9\\.]*)","i");return a.match(E.navigator.userAgent)?a.matched(1):null};yb.get_iosVersion=function(){var a=new fa("OS (\\d+)_(\\d+)_?(\\d+)?","");if((new fa("iP(hone|od|ad)","")).match(E.navigator.userAgent)&&a.match(E.navigator.appVersion)){var b=B.parseInt(a.matched(1)),c=B.parseInt(a.matched(2));a=null!=a.matched(3)?B.parseInt(a.matched(3)):0;return[b,c,a]}return null};yb.isAndroid=
function(){return null==yb.get_androidVersion()?(new fa("Android","i")).match(E.navigator.userAgent):!0};yb.isIOS=function(){return null!=yb.get_iosVersion()};yb.isMobile=function(){return yb.isIOS()||yb.isAndroid()?!0:(new fa("Windows Phone|webOS|BlackBerry|IEMobile|Opera Mini","i")).match(E.navigator.userAgent)};yb.checkBrowser=function(a,b){return null!=yb.get_browser()&&yb.get_browser().toLowerCase()==a?null!=b?parseFloat(yb.get_browserVersion())>=b:!0:!1};yb.isSafari=function(a){return yb.checkBrowser("safari",
a)};yb.isEdge=function(a){return yb.checkBrowser("edge",a)};yb.isFirefox=function(a){return yb.checkBrowser("firefox",a)};var Im=function(){};g["js.canvas.IRenderingContext"]=Im;Im.__name__="js.canvas.IRenderingContext";Im.__isInterface__=!0;Im.prototype={isReading:null,readPixels:null,close:null,__class__:Im};var Jm=function(a){this.context=a.getContext("2d",null)};g["js.canvas.CanvasRenderingContext"]=Jm;Jm.__name__="js.canvas.CanvasRenderingContext";Jm.__interfaces__=[Im];Jm.prototype={isReading:null,
context:null,readPixels:function(a,b,c,d,e){this.isReading=!0;e(new Uint8Array(this.context.getImageData(a,b,c,d).data.buffer));this.isReading=!1},close:function(){},__class__:Jm};var Km=function(a){this.context=kp.getContextWebGL(a,{preserveDrawingBuffer:!0});"undefined"!==typeof Worker&&(a=URL.createObjectURL(new Blob(["var convert = "+(this.convertPixels.toString()+";"),"self.onmessage = function(event) {","var buffer = convert(event.data).buffer;","self.postMessage(buffer, [buffer]);","}"],{type:"application/javascript"})),
this.worker=new Worker(a))};g["js.canvas.WebglRenderingContext"]=Km;Km.__name__="js.canvas.WebglRenderingContext";Km.__interfaces__=[Im];Km.prototype={isReading:null,context:null,worker:null,readPixels:function(a,b,c,d,e){var f=this;this.isReading=!0;a=new Uint8Array(c*d*4);this.context.readPixels(0,0,c,d,6408,5121,a);null!=this.worker?(a=a.buffer,this.worker.onmessage=function(a){e(new Uint8Array(a.data));f.isReading=!1},this.worker.postMessage({buffer:a,width:c,height:d},[a])):(e(this.convertPixels({data:a,
width:c,height:d})),this.isReading=!1)},convertPixels:function(a){null==a.data&&(a.data=new Uint8Array(a.buffer));for(var b=new Uint8Array(a.width*a.height*4|0),c=0,d=a.height;c<d;){var e=c++,f=4*a.width|0;b.set(a.data.subarray(f*e,f*e+f),(a.height-e-1|0)*f)}return b},close:function(){null!=this.worker&&(this.worker.terminate(),this.worker=null)},__class__:Km};var Pk=function(){};g["js.display.IContentMovie"]=Pk;Pk.__name__="js.display.IContentMovie";Pk.__isInterface__=!0;Pk.prototype={currentFrame:null,
get_currentFrame:null,currentLabel:null,get_currentLabel:null,currentFrameLabel:null,get_currentFrameLabel:null,labels:null,get_labels:null,currentLabels:null,get_currentLabels:null,numChildren:null,get_numChildren:null,totalFrames:null,get_totalFrames:null,gotoAndPlay:null,gotoAndStop:null,play:null,stop:null,getChildAt:null,addEventListener:null,removeEventListener:null,dispatchEvent:null,setPosition:null,__class__:Pk,__properties__:{get_totalFrames:"get_totalFrames",get_numChildren:"get_numChildren",
get_currentLabels:"get_currentLabels",get_labels:"get_labels",get_currentFrameLabel:"get_currentFrameLabel",get_currentLabel:"get_currentLabel",get_currentFrame:"get_currentFrame"}};var lp=function(a){this.movieClip=a};g["js.display.CreatejsContentMovie"]=lp;lp.__name__="js.display.CreatejsContentMovie";lp.__interfaces__=[Pk];lp.prototype={movieClip:null,_childNames:null,currentFrame:null,get_currentFrame:function(){return this.movieClip.currentFrame+1},currentLabel:null,get_currentLabel:function(){return this.movieClip.currentLabel},
currentFrameLabel:null,get_currentFrameLabel:function(){if(null!=this.movieClip.labels)for(var a=0,b=this.movieClip.labels;a<b.length;){var c=b[a];++a;if(this.movieClip.currentFrame==c.position)return c.label;if(this.movieClip.currentFrame<c.position)break}return null},labels:null,get_labels:function(){return this.movieClip.labels},currentLabels:null,get_currentLabels:function(){var a=null;if(null!=this.movieClip.labels){a=[];for(var b=0,c=this.movieClip.labels;b<c.length;){var d=c[b];++b;a.push({name:d.label,
frame:d.position})}}return a},totalFrames:null,get_totalFrames:function(){return this.movieClip.totalFrames},numChildren:null,get_numChildren:function(){return this.movieClip.numChildren},gotoAndPlay:function(a){this.movieClip.gotoAndPlay("number"==typeof a&&(a|0)===a?a-1:a)},gotoAndStop:function(a){this.movieClip.gotoAndStop("number"==typeof a&&(a|0)===a?a-1:a)},play:function(){this.movieClip.play()},stop:function(){this.movieClip.stop()},getChildAt:function(a){return this.movieClip.getChildAt(a)},
addEventListener:function(a,b){this.movieClip.addEventListener(a,b)},removeEventListener:function(a,b){this.movieClip.removeEventListener(a,b)},dispatchEvent:function(a){this.movieClip.dispatchEvent(a)},setPosition:function(a,b){this.movieClip.x=a;this.movieClip.y=b},__class__:lp,__properties__:{get_numChildren:"get_numChildren",get_totalFrames:"get_totalFrames",get_currentLabels:"get_currentLabels",get_labels:"get_labels",get_currentFrameLabel:"get_currentFrameLabel",get_currentLabel:"get_currentLabel",
get_currentFrame:"get_currentFrame"}};var Qk=function(a){this.movieClip=a};g["js.display.PixiflashContentMovie"]=Qk;Qk.__name__="js.display.PixiflashContentMovie";Qk.__interfaces__=[Pk];Qk.prototype={movieClip:null,_childNames:null,currentFrame:null,get_currentFrame:function(){return this.movieClip.currentFrame+1},currentLabel:null,get_currentLabel:function(){return this.movieClip.currentLabel},currentFrameLabel:null,get_currentFrameLabel:function(){if(null!=this.movieClip.labels)for(var a=0,b=this.movieClip.labels;a<
b.length;){var c=b[a];++a;if(this.movieClip.currentFrame==c.position)return c.label;if(this.movieClip.currentFrame<c.position)break}return null},labels:null,get_labels:function(){return this.movieClip.labels},currentLabels:null,get_currentLabels:function(){var a=null;if(null!=this.movieClip.labels){a=[];for(var b=0,c=this.movieClip.labels;b<c.length;){var d=c[b];++b;a.push({name:d.label,frame:d.position})}}return a},totalFrames:null,get_totalFrames:function(){return this.movieClip.timeline.duration},
numChildren:null,get_numChildren:function(){return this.movieClip.children.length},gotoAndPlay:function(a){this.movieClip.gotoAndPlay("number"==typeof a&&(a|0)===a?a-1:a)},gotoAndStop:function(a){this.movieClip.gotoAndStop("number"==typeof a&&(a|0)===a?a-1:a)},play:function(){this.movieClip.play()},stop:function(){this.movieClip.stop()},getChildAt:function(a){return this.movieClip.getChildAt(a)},addEventListener:function(a,b){Ub.trace("PixiFlashContentMovie::addEventListener not implemented!",{fileName:"../Lib/Source/js/display/PixiflashContentMovie.hx",
lineNumber:91,className:"js.display.PixiflashContentMovie",methodName:"addEventListener"})},removeEventListener:function(a,b){Ub.trace("PixiFlashContentMovie::removeEventListener not implemented!",{fileName:"../Lib/Source/js/display/PixiflashContentMovie.hx",lineNumber:96,className:"js.display.PixiflashContentMovie",methodName:"removeEventListener"})},dispatchEvent:function(a){Ub.trace("PixiFlashContentMovie::dispatchEvent not implemented!",{fileName:"../Lib/Source/js/display/PixiflashContentMovie.hx",
lineNumber:101,className:"js.display.PixiflashContentMovie",methodName:"dispatchEvent"})},setPosition:function(a,b){this.movieClip.x=a;this.movieClip.y=b},__class__:Qk,__properties__:{get_numChildren:"get_numChildren",get_totalFrames:"get_totalFrames",get_currentLabels:"get_currentLabels",get_labels:"get_labels",get_currentFrameLabel:"get_currentFrameLabel",get_currentLabel:"get_currentLabel",get_currentFrame:"get_currentFrame"}};var Jj=function(a){this.movieClip=a};g["js.display.WebglContentMovie"]=
Jj;Jj.__name__="js.display.WebglContentMovie";Jj.__interfaces__=[Pk];Jj.prototype={movieClip:null,currentFrame:null,get_currentFrame:function(){return this.movieClip.getCurrentFrame()},currentLabel:null,get_currentLabel:function(){return this.movieClip.getCurrentLabel()},currentFrameLabel:null,get_currentFrameLabel:function(){if(null!=this.movieClip.getFrameLabels())for(var a=0,b=this.movieClip.getFrameLabels();a<b.length;){var c=b[a];++a;if(this.get_currentFrame()==c.frameNum)return c.name;if(this.get_currentFrame()<
c.frameNum)break}return null},labels:null,get_labels:function(){return this.movieClip.getFrameLabels()},currentLabels:null,get_currentLabels:function(){var a=null;if(null!=this.movieClip.getFrameLabels()){a=[];for(var b=0,c=this.movieClip.getFrameLabels();b<c.length;){var d=c[b];++b;a.push({name:d.name,frame:d.frameNum})}}return a},numChildren:null,get_numChildren:function(){return this.movieClip.getNumChildren()},totalFrames:null,get_totalFrames:function(){return this.movieClip.getTotalFrames()},
gotoAndPlay:function(a){this.movieClip.gotoAndPlay(a)},gotoAndStop:function(a){this.movieClip.gotoAndStop(a)},play:function(){this.movieClip.play()},stop:function(){this.movieClip.stop()},getChildAt:function(a){return this.movieClip.getChildAt(a)},addEventListener:function(a,b){this.movieClip.addEventListener(a,b)},removeEventListener:function(a,b){this.movieClip.removeEventListener(a,b)},dispatchEvent:function(a){this.movieClip.dispatchEvent(a)},setPosition:function(a,b){var c=this.movieClip.getLocalTransform(),
d=c.getValues();d[4]=a;d[5]=b;c.setValues(d);this.movieClip.setLocalTransform(c)},__class__:Jj,__properties__:{get_totalFrames:"get_totalFrames",get_numChildren:"get_numChildren",get_currentLabels:"get_currentLabels",get_labels:"get_labels",get_currentFrameLabel:"get_currentFrameLabel",get_currentLabel:"get_currentLabel",get_currentFrame:"get_currentFrame"}};var kp=function(){};g["js.html._CanvasElement.CanvasUtil"]=kp;kp.__name__="js.html._CanvasElement.CanvasUtil";kp.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 Rk=function(){};g["js.iframe.IIframeObject"]=Rk;Rk.__name__="js.iframe.IIframeObject";Rk.__isInterface__=!0;Rk.__interfaces__=[Y];Rk.prototype={set_iframeWidth:null,set_iframeHeight:null,set_iframeSrc:null,get_loadCancelled:null,renderAsDOMElement:null,iframe:null,canvas:null,iframeWidth:null,iframeHeight:null,iframeSrc:null,onLoad:null,onError:null,loadCancelled:null,rect:null,__class__:Rk,
__properties__:{get_loadCancelled:"get_loadCancelled",set_iframeSrc:"set_iframeSrc",set_iframeHeight:"set_iframeHeight",set_iframeWidth:"set_iframeWidth"}};var Lm=function(){};g["js.iframe.IIframeMCObject"]=Lm;Lm.__name__="js.iframe.IIframeMCObject";Lm.__isInterface__=!0;Lm.__interfaces__=[Rk];Lm.prototype={get_contentMovie:null,contentMovie_onLoad:null,contentMovie:null,_contentMovie:null,_numPolls:null,__class__:Lm,__properties__:{get_contentMovie:"get_contentMovie"}};var Jd=function(){jb.call(this);
this.__drawableType=4;this.contentLoaderInfo=Qg.create(this);this.uncaughtErrorEvents=this.contentLoaderInfo.uncaughtErrorEvents;this.__unloaded=!0};g["openfl.display.Loader"]=Jd;Jd.__name__="openfl.display.Loader";Jd.__super__=jb;Jd.prototype=r(jb.prototype,{content:null,contentLoaderInfo:null,uncaughtErrorEvents:null,__library:null,__path:null,__unloaded:null,__futureBitmapData:null,__urlLoader:null,addChild:function(a){throw u.thrown(new Fc("Error #2069: The Loader class does not implement this method.",
2069));},addChildAt:function(a,b){throw u.thrown(new Fc("Error #2069: The Loader class does not implement this method.",2069));},close:function(){null!=this.__futureBitmapData&&(this.__futureBitmapData.__completeListeners=null,this.__futureBitmapData.__errorListeners=null,this.__futureBitmapData=this.__futureBitmapData.__progressListeners=null);null!=this.__urlLoader&&this.__urlLoader.close()},load:function(a,b){this.unload();this.contentLoaderInfo.loaderURL=Sa.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<c&&(this.__path=this.__path.substring(0,c));for(;ia.endsWith(this.__path,"/");)this.__path=this.__path.substring(0,this.__path.length-1);ia.endsWith(this.__path,".bundle")&&(this.__path+="/library.json",a.url=-1<c?this.__path+a.url.substring(c):this.__path);c=this.__path.lastIndexOf(".");-1<c&&(b=this.__path.substring(c+1));switch(b){case "gif":b=
"image/gif";break;case "jpeg":case "jpg":b="image/jpeg";break;case "js":b="application/javascript";break;case "json":b="application/json";break;case "png":b="image/png";break;case "swf":b="application/x-shockwave-flash";break;default:b="application/x-www-form-urlencoded"}this.contentLoaderInfo.contentType=b}else this.contentLoaderInfo.contentType=a.contentType;if(-1<this.contentLoaderInfo.contentType.indexOf("image/")&&"GET"==a.method&&(null==a.requestHeaders||0==a.requestHeaders.length)&&null==a.userAgent)this.__futureBitmapData=
xb.loadFromFile(a.url).onComplete(k(this,this.BitmapData_onLoad)).onError(k(this,this.BitmapData_onError)).onProgress(k(this,this.BitmapData_onProgress));else{b=new le;b.dataFormat=0;if(-1<this.contentLoaderInfo.contentType.indexOf("/json")||-1<this.contentLoaderInfo.contentType.indexOf("/javascript")||-1<this.contentLoaderInfo.contentType.indexOf("/ecmascript"))b.dataFormat=1;b.addEventListener("complete",k(this,this.loader_onComplete));b.addEventListener("ioError",k(this,this.loader_onError));b.addEventListener("progress",
k(this,this.loader_onProgress));b.load(a);this.__urlLoader=b}},loadBytes:function(a,b){xb.loadFromBytes(a).onComplete(k(this,this.BitmapData_onLoad)).onError(k(this,this.BitmapData_onError))},removeChild:function(a){if(a==this.content)return jb.prototype.removeChild.call(this,this.content);throw u.thrown(new Fc("Error #2069: The Loader class does not implement this method.",2069));},removeChildAt:function(a){throw u.thrown(new Fc("Error #2069: The Loader class does not implement this method.",2069));
},setChildIndex:function(a,b){throw u.thrown(new Fc("Error #2069: The Loader class does not implement this method.",2069));},unload:function(){this.__unloaded||(null!=this.content&&this.content.parent==this&&jb.prototype.removeChild.call(this,this.content),null!=this.__library&&(na.unloadLibrary(this.contentLoaderInfo.url),this.__library=null),this.content=null,this.contentLoaderInfo.url=null,this.contentLoaderInfo.contentType=null,this.contentLoaderInfo.content=null,this.contentLoaderInfo.bytesLoaded=
0,this.contentLoaderInfo.bytesTotal=0,this.contentLoaderInfo.width=0,this.contentLoaderInfo.height=0,this.__unloaded=!0,this.contentLoaderInfo.dispatchEvent(new W("unload")))},unloadAndStop:function(a){null!=this.content&&this.content.__stopAllMovieClips();a=0;for(var b=this.get_numChildren();a<b;){var c=a++;this.getChildAt(c).__stopAllMovieClips()}this.unload()},__dispatchError:function(a){var b=new eg("ioError");b.text=a;this.contentLoaderInfo.dispatchEvent(b)},__setContent:function(a,b,c){this.content=
a;this.contentLoaderInfo.content=a;this.contentLoaderInfo.width=b;this.contentLoaderInfo.height=c;null!=a&&jb.prototype.addChildAt.call(this,a,0)},BitmapData_onError:function(a){this.__dispatchError(B.string(a))},BitmapData_onLoad:function(a){null==a?this.__dispatchError("Unknown error"):(this.__setContent(new Pd(a),a.width,a.height),this.contentLoaderInfo.dispatchEvent(new W("complete")))},BitmapData_onProgress:function(a,b){var c=new Df("progress");c.bytesLoaded=a;c.bytesTotal=b;this.contentLoaderInfo.dispatchEvent(c)},
loader_onComplete:function(a){var b=this;a=a.target;if(null!=this.contentLoaderInfo.contentType&&-1<this.contentLoaderInfo.contentType.indexOf("/json")){var c=Dc.parse(a.data,Qi.directory(this.__path));if(null==c)this.__dispatchError("Cannot parse asset manifest");else{var d=Vb.fromManifest(c);if(null==d)this.__dispatchError("Cannot open library");else if(d instanceof zc)d.load().onComplete(function(a){b.__library=d;na.registerLibrary(b.contentLoaderInfo.url,b.__library);null==c.name||na.hasLibrary(c.name)||
na.registerLibrary(c.name,b.__library);a=b.__library.getMovieClip("");b.__setContent(a,a.get_width()|0,a.get_height()|0);b.contentLoaderInfo.dispatchEvent(new W("complete"))}).onError(function(a){b.__dispatchError(a)})}}else null!=this.contentLoaderInfo.contentType&&(-1<this.contentLoaderInfo.contentType.indexOf("/javascript")||-1<this.contentLoaderInfo.contentType.indexOf("/ecmascript"))?(this.__setContent(new F,0,0),eval("(function () {"+B.string(a.data)+"})()"),this.contentLoaderInfo.dispatchEvent(new W("complete"))):
(this.contentLoaderInfo.bytes=a.data,xb.loadFromBytes(a.data).onComplete(k(this,this.BitmapData_onLoad)).onError(k(this,this.BitmapData_onError)))},loader_onError:function(a){a.target=this.contentLoaderInfo;this.contentLoaderInfo.dispatchEvent(a)},loader_onProgress:function(a){a.target=this.contentLoaderInfo;this.contentLoaderInfo.dispatchEvent(a)},__class__:Jd});var Rg=function(a,b,c){null==c&&(c=!1);null==b&&(b="100%");null==a&&(a="100%");Jd.call(this);this.renderAsDOMElement=c;this.set_iframeWidth(a);
this.set_iframeHeight(b);Kj.create(this);c?(this.__drawableType=10,this.__element=this.iframe):(a=this.iframe,a.style.top="0px",a.style.opacity="0",a.style.setProperty("pointer-events","none"),window.document.body.appendChild(a));this.addEventListener("addedToStage",k(this,this.addedToStageHandler))};g["js.iframe.IframeLoader"]=Rg;Rg.__name__="js.iframe.IframeLoader";Rg.__interfaces__=[Rk];Rg.__super__=Jd;Rg.prototype=r(Jd.prototype,{renderAsDOMElement:null,iframe:null,canvas:null,iframeWidth:null,
iframeHeight:null,iframeSrc:null,loadCancelled:null,buffer:null,bitmap:null,__element:null,rect:null,addedToStageHandler:function(a){this.removeEventListener("addedToStage",k(this,this.addedToStageHandler));this.addEventListener("removedFromStage",k(this,this.removedFromStageHandler))},removedFromStageHandler:function(a){this.removeEventListener("removedFromStage",k(this,this.removedFromStageHandler));this.unload()},load:function(a,b){this.__unloaded=!1;this.contentLoaderInfo.url=a.url;this.contentLoaderInfo.contentType=
null!=a.contentType&&""!=a.contentType?a.contentType:"text/html";this.set_iframeSrc(a.url)},loadBytes:function(a,b){this.iframe.contentDocument.write(a.toString())},unload:function(){null!=this.iframe&&(Jd.prototype.unload.call(this),this.renderAsDOMElement||null==this.iframe.parentNode||this.iframe.parentNode.removeChild(this.iframe));this.removeEventListener("enterFrame",k(this,this.onEnterFrame));this.renderAsDOMElement&&null!=this.iframe&&null!=this.iframe.contentDocument?this.iframe.contentDocument.removeEventListener("click",
k(this,this.forwardClickEvent)):(this.removeEventListener("mouseDown",zd.forwardMouseEvent),this.removeEventListener("mouseUp",zd.forwardMouseEvent),this.removeEventListener("mouseMove",zd.forwardMouseEvent),this.removeEventListener("doubleClick",zd.forwardMouseEvent));Kj.destroy(this);this.renderAsDOMElement||(this.bitmap=null,null!=this.buffer&&(this.buffer.close(),this.buffer=null))},onEnterFrame:function(a){if(!this.renderAsDOMElement){a=this.canvas;var b=this.bitmap;b.get_bitmapData().image.buffer.__srcCanvas=
a;b.get_bitmapData().image.buffer.__srcContext=a.getContext("2d");b.__renderDirty=!0;b.__setParentRenderDirty()}this.dispatchEvent(new Sk("jsFrameConstructed"))},forwardClickEvent:function(a){this.dispatchEvent(new eb("click",!0,!1,a.screenX,a.screenY,null,a.ctrlKey,a.altKey,a.shiftKey,0==a.button,0,a.metaKey))},onLoad:function(){var a=new W("complete");this.contentLoaderInfo.dispatchEvent(a);this.addEventListener("enterFrame",k(this,this.onEnterFrame));this.renderAsDOMElement?this.iframe.contentDocument.addEventListener("click",
k(this,this.forwardClickEvent)):(this.addEventListener("mouseDown",zd.forwardMouseEvent),this.addEventListener("mouseUp",zd.forwardMouseEvent),this.addEventListener("mouseMove",zd.forwardMouseEvent),this.addEventListener("doubleClick",zd.forwardMouseEvent))},onError:function(){var a=new W("ioError");a.target=this.contentLoaderInfo;a.currentTarget=this.contentLoaderInfo;this.contentLoaderInfo.dispatchEvent(a)},set_iframeWidth:function(a){this.iframeWidth=a;null!=this.iframe&&(this.iframe.width=a);
return a},set_iframeHeight:function(a){this.iframeHeight=a;null!=this.iframe&&(this.iframe.height=a);return a},set_iframeSrc:function(a){this.iframeSrc=a;null!=this.iframe&&(this.iframe.src=a);return a},get_loadCancelled:function(){return this.__unloaded},__getBounds:function(a,b){if(this.renderAsDOMElement){var c=ha.__pool.get();this.rect.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);ha.__pool.release(c)}else Jd.prototype.__getBounds.call(this,a,b)},__class__:Rg,__properties__:r(Jd.prototype.__properties__,
{get_loadCancelled:"get_loadCancelled",set_iframeSrc:"set_iframeSrc",set_iframeHeight:"set_iframeHeight",set_iframeWidth:"set_iframeWidth"})});var Ef=function(a,b,c){null==c&&(c=!1);null==b&&(b="100%");null==a&&(a="100%");Rg.call(this,a,b,c)};g["js.iframe.IframeMCLoader"]=Ef;Ef.__name__="js.iframe.IframeMCLoader";Ef.__interfaces__=[Lm];Ef.__super__=Rg;Ef.prototype=r(Rg.prototype,{contentMovie:null,_contentMovie:null,_numPolls:null,onLoad:function(){var a=this.iframe.contentDocument.getElementsByTagName("canvas");
if(0<a.length)this.canvas=a[0],this.canvas.style.background="",this._numPolls=0,Tk.contentMovie_poll(this);else this.onError()},contentMovie_onLoad:function(){if(this.renderAsDOMElement)this.set_iframeWidth(this.canvas.offsetWidth+""),this.set_iframeHeight(this.canvas.offsetHeight+""),this.__setContent(null,this.canvas.offsetWidth,this.canvas.offsetHeight);else{var a=this.get_contentMovie(),b=this.canvas;this.buffer=a instanceof Jj||a instanceof Qk?new Km(b):new Jm(b);this.bitmap=new Pd;this.bitmap.set_bitmapData(new xb(this.canvas.width,
this.canvas.height));this.__setContent(this.bitmap,this.canvas.width,this.canvas.height)}Rg.prototype.onLoad.call(this)},get_contentMovie:function(){return Tk.get_contentMovie(this)},__class__:Ef,__properties__:r(Rg.prototype.__properties__,{get_contentMovie:"get_contentMovie"})});var Tk=function(){};g["js.iframe.IframeMCObjectHelper"]=Tk;Tk.__name__="js.iframe.IframeMCObjectHelper";Tk.contentMovie_poll=function(a){if(!a.get_loadCancelled())if(null==a.get_contentMovie())if(300>a._numPolls)Qb.delay(function(){Tk.contentMovie_poll(a)},
100);else a.onError();else a.contentMovie_onLoad()};Tk.get_contentMovie=function(a){if(null==a._contentMovie){var b=J.field(a.iframe.contentWindow,"exportRoot");if(null!=b)if(Object.prototype.hasOwnProperty.call(a.iframe.contentWindow,"pixiflash"))a._contentMovie=new Qk(b);else if(Object.prototype.hasOwnProperty.call(a.iframe.contentWindow,"flwebgl"))a._contentMovie=new Jj(b);else if(Object.prototype.hasOwnProperty.call(a.iframe.contentWindow,"createjs"))a._contentMovie=new lp(b);else throw u.thrown("Unsupported IframeLoader::contentMovie type");
}return a._contentMovie};Tk.destroy=function(a){a._contentMovie=null;Kj.destroy(a)};var Kj=function(){};g["js.iframe.IframeObjectHelper"]=Kj;Kj.__name__="js.iframe.IframeObjectHelper";Kj.create=function(a){var b=window.document.createElement("iframe");b.onload=function(){Kj.onLoad(a)};b.style.position="absolute";b.style.top="0px";b.style.left="0px";b.style.border="0";b.width=a.iframeWidth;b.height=a.iframeHeight;a.iframe=b;a.rect=new ha;J.setProperty(a,"alpha",0)};Kj.onLoad=function(a){a.iframe.contentDocument.body.style.background=
"";var b=a.iframe.contentDocument.getElementById("animation_container");null!=b&&(b.style.background="");J.setProperty(a,"alpha",1);a.rect.setTo(a.iframe.offsetLeft,a.iframe.offsetTop,a.iframe.offsetWidth,a.iframe.offsetHeight);a.onLoad()};Kj.destroy=function(a){a.canvas=null;a.iframe=null};var zd=function(){};g["js.iframe.StaticIframeLoader"]=zd;zd.__name__="js.iframe.StaticIframeLoader";zd.createIframe=function(a){a=a.iframe;a.style.top="0px";a.style.opacity="0";a.style.setProperty("pointer-events",
"none");window.document.body.appendChild(a)};zd.destroy=function(a){a.bitmap=null;null!=a.buffer&&(a.buffer.close(),a.buffer=null)};zd.addEventListeners=function(a){a.addEventListener("mouseDown",zd.forwardMouseEvent);a.addEventListener("mouseUp",zd.forwardMouseEvent);a.addEventListener("mouseMove",zd.forwardMouseEvent);a.addEventListener("doubleClick",zd.forwardMouseEvent)};zd.removeEventListeners=function(a){a.removeEventListener("mouseDown",zd.forwardMouseEvent);a.removeEventListener("mouseUp",
zd.forwardMouseEvent);a.removeEventListener("mouseMove",zd.forwardMouseEvent);a.removeEventListener("doubleClick",zd.forwardMouseEvent)};zd.forwardMouseEvent=function(a){var b=a.currentTarget,c=b.iframe;b=b.canvas;var d=null;switch(a.type){case "doubleClick":d="dblclick";break;case "mouseDown":d="mousedown";break;case "mouseMove":d="mousemove";break;case "mouseUp":d="mouseup"}if(null!=d){var e=c.contentWindow.document.createEvent("MouseEvents");e.initMouseEvent(d,!0,!0,c.contentWindow,a.clickCount,
a.localX|0,a.localY|0,a.stageX|0,a.stageY|0,a.ctrlKey,a.altKey,a.shiftKey,a.commandKey,a.buttonDown?0:2,null);b.dispatchEvent(e)}};zd.onEnterFrame=function(a){var b=a.canvas,c=a.bitmap;c.get_bitmapData().image.buffer.__srcCanvas=b;c.get_bitmapData().image.buffer.__srcContext=b.getContext("2d");c.__renderDirty=!0;c.__setParentRenderDirty();a.dispatchEvent(new Sk("jsFrameConstructed"))};var Eu=function(){};g["js.iframe.StaticMCIframeLoader"]=Eu;Eu.__name__="js.iframe.StaticMCIframeLoader";Eu.contentMovie_onLoad=
function(a){var b=a.get_contentMovie(),c=a.canvas;a.buffer=b instanceof Jj||b instanceof Qk?new Km(c):new Jm(c)};var Wt=function(){};g["js.lib._ArrayBuffer.ArrayBufferCompat"]=Wt;Wt.__name__="js.lib._ArrayBuffer.ArrayBufferCompat";Wt.sliceImpl=function(a,b){a=new Uint8Array(this,a,null==b?null:b-a);b=new Uint8Array(a.byteLength);b.set(a);return b.buffer};var Xt=function(){};g["js.video.CanvasVideoTransparencyFix"]=Xt;Xt.__name__="js.video.CanvasVideoTransparencyFix";Xt.render=function(a,b){if(a.__renderable&&
!(0>=a.__worldAlpha)&&null!=a.__stream){var c=b.context;if(null!=a.__stream.__video){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);c.globalAlpha=a.__worldAlpha;var d=a.__scrollRect,e=a.smoothing;b.setTransform(a.__worldTransform,c);e||(c.imageSmoothingEnabled=!1);a.renderFrame();null==d?c.drawImage(a.__element,0,0,a.get_width(),a.get_height()):c.drawImage(a.__element,d.x,d.y,d.width,d.height,d.x,d.y,d.width,d.height);e||(c.imageSmoothingEnabled=!0);b.__popMaskObject(a)}}};var mp=function(){};
g["js.video.DOMVideoTransparencyFix"]=mp;mp.__name__="js.video.DOMVideoTransparencyFix";mp.clear=function(a,b){a.__active&&(b.element.removeChild(a.__element),a.__active=!1)};mp.render=function(a,b){null!=a.stage&&null!=a.__stream&&a.__worldVisible&&a.__renderable?(a.renderFrame(),a.__active||(b.__initializeElement(a,a.__element),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)):mp.clear(a,b)};var Si=function(a,b){null==b&&(b=240);null==a&&(a=320);ka.call(this);this.__drawableType=8;this.__width=a;this.__height=b;this.__textureTime=-1;this.smoothing=!1;this.deblocking=0};g["openfl.media.Video"]=Si;Si.__name__="openfl.media.Video";Si.__super__=ka;Si.prototype=r(ka.prototype,{deblocking:null,smoothing:null,__active:null,__buffer:null,__bufferAlpha:null,__bufferColorTransform:null,__bufferContext:null,__bufferData:null,__dirty:null,__height:null,__indexBuffer:null,__indexBufferContext:null,
__indexBufferData:null,__stream:null,__texture:null,__textureTime:null,__uvRect:null,__vertexBuffer:null,__vertexBufferContext:null,__vertexBufferData:null,__width:null,attachNetStream:function(a){this.__stream=a;null==this.__stream||null==this.__stream.__video||this.__stream.__closed||this.__stream.__video.play()},clear:function(){},__enterFrame:function(a){this.__renderable&&null!=this.__stream&&!this.__renderDirty&&(this.__renderDirty=!0,this.__setParentRenderDirty())},__getBounds:function(a,b){var c=
ha.__pool.get();c.setTo(0,0,this.__width,this.__height);c.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);ha.__pool.release(c)},__getIndexBuffer:function(a){if(null==this.__indexBuffer||this.__indexBufferContext!=a.__context)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.__indexBufferContext=a.__context,this.__indexBuffer=a.createIndexBuffer(6),
this.__indexBuffer.uploadFromTypedArray(this.__indexBufferData);return this.__indexBuffer},__getTexture:function(a){if(null==this.__stream||null==this.__stream.__video)return null;var b=a.__context.webgl,c=b.RGBA,d=b.RGBA;this.__stream.__closed||this.__stream.__video.currentTime==this.__textureTime||(null==this.__texture&&(this.__texture=a.createRectangleTexture(this.__stream.__video.videoWidth,this.__stream.__video.videoHeight,1,!1)),a.__bindGLTexture2D(this.__texture.__textureID),cc.texImage2D(b,
b.TEXTURE_2D,0,c,d,b.UNSIGNED_BYTE,this.__stream.__video),this.__textureTime=this.__stream.__video.currentTime);return this.__texture},__getVertexBuffer:function(a){if(null==this.__vertexBuffer||this.__vertexBufferContext!=a.__context)this.__vertexBufferData=new Float32Array(20),this.__vertexBufferData[0]=this.get_width(),this.__vertexBufferData[1]=this.get_height(),this.__vertexBufferData[3]=1,this.__vertexBufferData[4]=1,this.__vertexBufferData[6]=this.get_height(),this.__vertexBufferData[9]=1,
this.__vertexBufferData[10]=this.get_width(),this.__vertexBufferData[13]=1,this.__vertexBufferContext=a.__context,this.__vertexBuffer=a.createVertexBuffer(3,5),this.__vertexBuffer.uploadFromTypedArray(Rh.toArrayBufferView(this.__vertexBufferData));return this.__vertexBuffer},__hitTest:function(a,b,c,d,e,f){if(!f.get_visible()||this.__isMask||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;this.__getRenderTransform();var h=this.__renderTransform,l=h.a*h.d-h.b*h.c;c=0==l?-h.tx:1/
l*(h.c*(h.ty-b)+h.d*(a-h.tx));h=this.__renderTransform;l=h.a*h.d-h.b*h.c;a=0==l?-h.ty:1/l*(h.a*(b-h.ty)+h.b*(h.tx-a));return 0<c&&0<a&&c<=this.__width&&a<=this.__height?(null==d||e||d.push(f),!0):!1},__hitTestMask:function(a,b){var c=ab.__pool.get();c.setTo(a,b);this.__globalToLocal(c,c);a=0<c.x&&0<c.y&&c.x<=this.__width&&c.y<=this.__height;ab.__pool.release(c);return a},get_height:function(){return this.__height*this.get_scaleY()},set_height:function(a){if(1!=this.get_scaleY()||a!=this.__height)this.__setTransformDirty(),
this.__dirty=!0;this.set_scaleY(1);return this.__height=a},get_videoHeight:function(){return null!=this.__stream&&null!=this.__stream.__video?this.__stream.__video.videoHeight|0:0},get_videoWidth:function(){return null!=this.__stream&&null!=this.__stream.__video?this.__stream.__video.videoWidth|0:0},get_width:function(){return this.__width*this.__scaleX},set_width:function(a){if(1!=this.__scaleX||this.__width!=a)this.__setTransformDirty(),this.__dirty=!0;this.set_scaleX(1);return this.__width=a},
__class__:Si,__properties__:r(ka.prototype.__properties__,{get_videoWidth:"get_videoWidth",get_videoHeight:"get_videoHeight"})});var np=function(a,b){null==b&&(b=240);null==a&&(a=320);this.fixTransparency=!1;Si.call(this,a,b);this.__element=window.document.createElement("canvas");this.addEventListener("renderCanvas",k(this,this.onRenderCanvas));this.addEventListener("renderDOM",k(this,this.onRenderDOM))};g["js.video.VideoTransparencyFix"]=np;np.__name__="js.video.VideoTransparencyFix";np.__super__=
Si;np.prototype=r(Si.prototype,{_bufferCanvas:null,_bufferContext:null,_outContext:null,__element:null,fixTransparency:null,set_fixTransparency:function(a){this._outContext=this._bufferContext=this._bufferCanvas=null;this.__drawableType=a?10:8;return this.fixTransparency=a},initCanvas:function(){null==this._bufferCanvas&&(this._bufferCanvas=window.document.createElement("canvas"),this._bufferCanvas.width=this.__stream.__video.videoWidth,this._bufferCanvas.height=this.__stream.__video.videoHeight,
this._bufferContext=this._bufferCanvas.getContext("2d",null),this.__element.width=this.__stream.__video.videoWidth,this.__element.height=Math.ceil(this.__stream.__video.videoHeight/2),this._outContext=this.__element.getContext("2d",null))},renderFrame:function(){this._bufferContext.drawImage(this.__stream.__video,0,0);for(var a=this._bufferContext.getImageData(0,0,this.__element.width,this.__element.height),b=a.data,c=this._bufferContext.getImageData(0,this.__element.height,this.__element.width,this.__element.height).data,
d=3;d<b.length;)b[d]=c[d-1],d+=4;this._outContext.putImageData(a,0,0)},onRenderCanvas:function(a){this.fixTransparency?0<this.__stream.__video.videoWidth&&0<this.__stream.__video.videoHeight&&(this.initCanvas(),Xt.render(this,a.renderer)):Ti.render(this,a.renderer)},onRenderDOM:function(a){this.fixTransparency?0<this.__stream.__video.videoWidth&&0<this.__stream.__video.videoHeight&&(this.initCanvas(),mp.render(this,a.renderer)):mh.render(this,a.renderer)},__class__:np,__properties__:r(Si.prototype.__properties__,
{set_fixTransparency:"set_fixTransparency"})});var ie=function(a,b,c){null==b&&(b=26);this._focused=!1;this.assets="assets/checkbox";this.enabled=!0;this._title=a;this._size=b;this._textFormat=null!=c?this._textFormat:new ib("Arial",24,2236962);F.call(this);this.addEventListener("addedToStage",k(this,this.onAddedToStage))};g["lib.display.Selectable"]=ie;ie.__name__="lib.display.Selectable";ie.__super__=F;ie.prototype=r(F.prototype,{initialBmp:null,overBmp:null,answeredBmp:null,correctBmp:null,incorrectBmp:null,
titleField:null,enabled:null,assets:null,_built:null,_selected:null,_focused:null,_title:null,_state:null,_size:null,_textFormat:null,initialize:function(){if(!this._built){this._built=!0;this.initialBmp=new Pd(na.getBitmapData(this.assets+"/initial.png"));this.overBmp=new Pd(na.getBitmapData(this.assets+"/over.png"));this.answeredBmp=new Pd(na.getBitmapData(this.assets+"/answered.png"));this.correctBmp=new Pd(na.getBitmapData(this.assets+"/correct.png"));this.incorrectBmp=new Pd(na.getBitmapData(this.assets+
"/incorrect.png"));this.initialBmp.set_scaleX(this.initialBmp.set_scaleY(this._size/this.initialBmp.get_width()));this.overBmp.set_scaleX(this.overBmp.set_scaleY(this._size/this.overBmp.get_width()));this.answeredBmp.set_scaleX(this.answeredBmp.set_scaleY(this._size/this.answeredBmp.get_width()));this.correctBmp.set_scaleX(this.correctBmp.set_scaleY(this._size/this.correctBmp.get_width()));this.incorrectBmp.set_scaleX(this.incorrectBmp.set_scaleY(this._size/this.incorrectBmp.get_width()));this.answeredBmp.set_alpha(this.overBmp.set_alpha(this.correctBmp.set_alpha(this.incorrectBmp.set_alpha(0))));
var a=this._textFormat;this.titleField=new Bb;this.titleField.set_x(this._size+10);this.titleField.set_y((this._size-24)/2);this.titleField.set_autoSize(1);this.titleField.set_antiAliasType(0);this.titleField.set_selectable(!1);this.titleField.set_wordWrap(!0);this.titleField.set_defaultTextFormat(a);this.titleField.set_htmlText(this._title);this.addChild(this.initialBmp);this.addChild(this.overBmp);this.addChild(this.answeredBmp);this.addChild(this.correctBmp);this.addChild(this.incorrectBmp);this.addChild(this.titleField);
this.doSetTextFormat();this.enabled&&this.__enable()}},onAddedToStage:function(a){this.removeEventListener("addedToStage",k(this,this.onAddedToStage));this.addEventListener("removedFromStage",k(this,this.onRemovedFromStage));this.initialize()},onRemovedFromStage:function(a){this.removeEventListener("removedFromStage",k(this,this.onRemovedFromStage));this.__disable()},enable:function(){this.enabled=!0;this.__enable()},__enable:function(){Pb.isMobile()&&Pb.hasTouch()?this.addEventListener("mouseDown",
k(this,this.buttonClickHandler)):(this.addEventListener("click",k(this,this.buttonClickHandler)),this.addEventListener("mouseDown",k(this,this.buttonDownHandler)),this.addEventListener("mouseOver",k(this,this.rollOverHandler)),this.addEventListener("mouseOut",k(this,this.rollOutHandler)));this.set_buttonMode(!0)},disable:function(){this.enabled=!1;this.__disable()},__disable:function(){Pb.isMobile()?this.removeEventListener("mouseDown",k(this,this.buttonClickHandler)):(this.removeEventListener("click",
k(this,this.buttonClickHandler)),this.removeEventListener("mouseDown",k(this,this.buttonDownHandler)),this.removeEventListener("mouseOver",k(this,this.rollOverHandler)),this.removeEventListener("mouseOut",k(this,this.rollOutHandler)));this.set_buttonMode(!1)},buttonClickHandler:function(a){this.dispatchEvent(new W("selected_cb"));this.set_selected(!this.get_selected());this._selected||Pb.isMobile()||this.setState("over")},buttonDownHandler:function(a){this.get_selected()?this.setState("down-selected"):
this.setState("down-empty")},rollOverHandler:function(a){this.dispatchEvent(new W("over_cb"));this.setState("over")},rollOutHandler:function(a){this.dispatchEvent(new W("out_cb"));this.setState("initial")},setTitle:function(a){this.titleField.set_htmlText(a);this.doSetTextFormat()},setTextFormat:function(a){this._textFormat=a;this.doSetTextFormat()},doSetTextFormat:function(){null!=this._textFormat&&(this.titleField.setTextFormat(this._textFormat),this.titleField.set_y((this._size-this.titleField.get_height())/
2+2),1<this.titleField.get_numLines()&&this.titleField.set_y(0))},setState:function(a){this._selected&&("initial"==a?a="answered":"over"==a&&(a="over-selected"));this._state=a;this.displayState()},displayState:function(){this.initialBmp.set_alpha(0);this.overBmp.set_alpha(0);this.answeredBmp.set_alpha(0);this.correctBmp.set_alpha(0);this.incorrectBmp.set_alpha(0);switch(this._state){case "correct":this.correctBmp.set_alpha(1);this.setTitle("<b>"+this._title+"</b>");break;case "down-empty":case "initial":this.initialBmp.set_alpha(1);
this.setTitle(this._title);break;case "incorrect":this.incorrectBmp.set_alpha(1);this.setTitle(this._title);break;case "over":this.overBmp.set_alpha(1);this.setTitle(this._title);break;case "answered":case "down-selected":case "over-selected":this.answeredBmp.set_alpha(1),this.setTitle("<b>"+this._title+"</b>")}},get_checked:function(){return this._selected},set_checked:function(a){return this.set_selected(a)},get_selected:function(){return this._selected},set_selected:function(a){(this._selected=
a)?this.setState("answered"):this.setState("initial");return this._selected},get_title:function(){return this._title},set_title:function(a){this._title=a;Gb.isEmpty(this._state)?this.setTitle(this._title):this.setState(this._state);return this._title},get_focused:function(){return this._focused},set_focused:function(a){return this._focused=a},__class__:ie,__properties__:r(F.prototype.__properties__,{set_title:"set_title",get_title:"get_title",set_focused:"set_focused",get_focused:"get_focused",set_selected:"set_selected",
get_selected:"get_selected",set_checked:"set_checked",get_checked:"get_checked"})});var Sk=function(a){W.call(this,a,!1,!1)};g["lib.events.TemplateEvent"]=Sk;Sk.__name__="lib.events.TemplateEvent";Sk.__super__=W;Sk.prototype=r(W.prototype,{__class__:Sk});var Zd=function(){this._autoPlay=this._isPlaying=!1;this._mediaURL=this._mediaName=null;this._soundTransform=new hf};g["lib.media.MediaController"]=Zd;Zd.__name__="lib.media.MediaController";Zd.prototype={_mediaURL:null,_mediaName:null,_autoPlay:null,
_isPlaying:null,_playTimer:null,_soundTransform:null,_signals:null,load:function(a,b){this._mediaURL=a;this._mediaName=b},onLoad:function(a){this._autoPlay&&this.play();this.get_signals().get_load().dispatch()},play:function(){this._isPlaying||this.doPlay()},doPlay:function(){throw u.thrown("abstract method 'doPlay' called");},pause:function(){this._isPlaying&&this.doPause()},doPause:function(){throw u.thrown("abstract method 'doPause' called");},togglePause:function(){throw u.thrown("abstract method 'togglePause' called");
},seek:function(a){throw u.thrown("abstract method 'seek' called");},rewind:function(){throw u.thrown("abstract method 'rewind' called");},mute:function(){this._soundTransform.volume=0},unmute:function(){this._soundTransform.volume=1},stop:function(){throw u.thrown("abstract method 'stop' called");},unload:function(){this._mediaName=this._mediaURL=null;this.setIsPlaying(!1)},isStream:null,get_isStream:function(){return null!=this._mediaName},isLoaded:null,get_isLoaded:function(){throw u.thrown("abstract method 'get isLoaded' called");
},position:null,get_position:function(){throw u.thrown("abstract method 'get position' called");},length:null,get_length:function(){throw u.thrown("abstract method 'get length' called");},mediaURL:null,get_mediaURL:function(){return this._mediaURL},hasMedia:null,get_hasMedia:function(){return null!=this._mediaURL},get_autoPlay:function(){return this._autoPlay},set_autoPlay:function(a){return this._autoPlay=a},isPlaying:null,get_isPlaying:function(){return this._isPlaying},setIsPlaying:function(a){var b=
this;(this._isPlaying=a)?(this._playTimer=new Qb(40),this._playTimer.run=function(){b.get_signals().get_playing().dispatch()}):null!=this._playTimer&&(this._playTimer.stop(),this._playTimer=null)},onPlay:function(){this.setIsPlaying(!0);this.get_signals().get_play().dispatch()},onPause:function(){this.setIsPlaying(!1);this.get_signals().get_pause().dispatch()},onStop:function(){this.setIsPlaying(!1);this.get_signals().get_stop().dispatch()},signals:null,get_signals:function(){null==this._signals&&
(this._signals=new op);return this._signals},__class__:Zd,__properties__:{get_signals:"get_signals",get_isPlaying:"get_isPlaying",set_autoPlay:"set_autoPlay",get_autoPlay:"get_autoPlay",get_hasMedia:"get_hasMedia",get_mediaURL:"get_mediaURL",get_length:"get_length",get_position:"get_position",get_isLoaded:"get_isLoaded",get_isStream:"get_isStream"}};var pp=function(){Zd.call(this)};g["lib.media.SoundController"]=pp;pp.__name__="lib.media.SoundController";pp.__super__=Zd;pp.prototype=r(Zd.prototype,
{_sound:null,_channel:null,_soundInfo:null,_isLoaded:null,_pausedTime:null,load:function(a,b){null==b&&(b="");if(a!=this._mediaURL||b!=this._mediaName)Zd.prototype.load.call(this,a,b),this._isLoaded=!1,this._pausedTime=0,this._sound=new jf(new Kc(a)),this._sound.addEventListener("complete",k(this,this.onLoad)),this._sound.addEventListener("id3",k(this,this.onMetaData)),this._sound.addEventListener("ioError",k(this,this.ioErrorHandler)),this._sound.addEventListener("progress",k(this,this.progressHandler));
else if(this._isLoaded)this.onLoad()},onLoad:function(a){this._isLoaded=!0;Zd.prototype.onLoad.call(this,a)},onMetaData:function(a){this._soundInfo=this._sound.get_id3()},ioErrorHandler:function(a){this.get_signals().get_error().dispatch(a)},progressHandler:function(a){},doPlay:function(){null!=this._channel&&this.destroyChannel();this._channel=this._sound.play(1E3*this._pausedTime,0,this._soundTransform);this._channel.addEventListener("soundComplete",k(this,this.onSoundComplete));this.onPlay()},
destroyChannel:function(){this._channel.stop();this._channel.removeEventListener("soundComplete",k(this,this.onSoundComplete));this._channel=null},onSoundComplete:function(a){this.stop()},doPause:function(){this._pausedTime=.001*this._channel.get_position();this.destroyChannel();this.onPause()},seek:function(a){this._pausedTime=a;this.doPlay()},mute:function(){Zd.prototype.mute.call(this);null!=this._channel&&this._channel.set_soundTransform(this._soundTransform.clone())},unmute:function(){Zd.prototype.unmute.call(this);
null!=this._channel&&this._channel.set_soundTransform(this._soundTransform.clone())},stop:function(){this._pausedTime=0;this.destroyChannel();this.onStop()},unload:function(){null!=this._channel&&this.pause();Zd.prototype.unload.call(this);if(null!=this._sound){this._sound.removeEventListener("complete",k(this,this.onLoad));this._sound.removeEventListener("id3",k(this,this.onMetaData));this._sound.removeEventListener("ioError",k(this,this.ioErrorHandler));this._sound.removeEventListener("progress",
k(this,this.progressHandler));try{this._sound.close()}catch(a){wa.lastError=a}}this._mediaURL=this._sound=this._channel=null;this._isLoaded=!1},get_isLoaded:function(){return this._isLoaded},get_position:function(){return null!=this._channel?this._channel.get_position():0},get_length:function(){return this._sound.get_length()},soundInfo:null,get_soundInfo:function(){return this._soundInfo},__class__:pp,__properties__:r(Zd.prototype.__properties__,{get_soundInfo:"get_soundInfo"})});var qp=function(){Zd.call(this)};
g["lib.media.VideoController"]=qp;qp.__name__="lib.media.VideoController";qp.__super__=Zd;qp.prototype=r(Zd.prototype,{_nc:null,_ns:null,_video:null,_videoInfo:null,load:function(a,b){this.unload();Zd.prototype.load.call(this,a,b);this._nc=new Lj;this._nc.addEventListener("netStatus",k(this,this.netStatusHandler));this._nc.connect(this.get_isStream()?a:null)},netStatusHandler:function(a){if("NetConnection.Connect.Success"==a.info.code||a.info.code==J.field(Lj,"CONNECT_SUCCESS"))this.connectStream();
else if("NetStream.Seek.InvalidTime"!=a.info.code&&"NetStream.Play.Stop"==a.info.code)this.onStop()},connectStream:function(){var a=this;this._ns=new Mm(this._nc);this._ns.client={onMetaData:k(this,this.onMetaData),onPlayStatus:k(this,this.onPlayStatus)};this._ns.addEventListener("netStatus",k(this,this.netStatusHandler));this._ns.bufferTime=0;var b=this.get_isStream()?this._mediaName:this._mediaURL;this._ns.__video.addEventListener("play",k(this,this.onPlay));var c=function(){var c=(-1<b.indexOf("?")?
"&":"?")+Math.round(1E6*Math.random());a._ns.__video.src=b+c;a._ns.__video.load()};if(Uc.get_autoPlay())c();else try{var d=this._ns.play(b);"undefined"!==typeof d&&d.catch(c)}catch(e){wa.lastError=e,c()}null!=this._video&&this.attachStream()},onMetaData:function(a){var b=this.get_isLoaded();this._videoInfo=Nm.extract(a);this._ns.bufferTime=Math.min(this._videoInfo.duration,10);if(!b)this.onLoad()},onLoad:function(a){this._autoPlay?this.doPlay():this.doPause();this.get_signals().get_load().dispatch()},
onPlayStatus:function(a){"NetStream.Play.error"==a.code&&(Ub.trace(a,{fileName:"../Lib/Source/lib/media/VideoController.hx",lineNumber:114,className:"lib.media.VideoController",methodName:"onPlayStatus"}),this.get_signals().get_error().dispatch(a))},attachStream:function(){this._video.__stream=this._ns;null!=this._ns&&(this._ns.__video.volume=this._soundTransform.volume);this._video.smoothing=!0},doPause:function(){this._ns.pause();this.onPause()},doPlay:function(){this._ns.resume()},togglePause:function(){this._ns.togglePause()},
seek:function(a){1==this._ns.__video.seekable.length&&0==this._ns.__video.seekable.end(0)?Ub.trace("video not seekable",{fileName:"../Lib/Source/lib/media/VideoController.hx",lineNumber:155,className:"lib.media.VideoController",methodName:"seek"}):this._ns.seek(a)},rewind:function(){this._ns.seek(0);this._ns.resume();this.setIsPlaying(!0)},mute:function(){Zd.prototype.mute.call(this);null!=this._ns&&(this._ns.__video.muted=!0)},unmute:function(){Zd.prototype.unmute.call(this);null!=this._ns&&(this._ns.__video.muted=
!1)},stop:function(){this._ns.seek(0);this._ns.pause();this.onStop()},unload:function(){Zd.prototype.unload.call(this);this._videoInfo=null;try{null!=this._ns&&(this._ns.removeEventListener("netStatus",k(this,this.netStatusHandler)),this._ns.close(),this._ns.client=null,this._ns.__video.removeEventListener("play",k(this,this.onPlay)),this._ns.__video.src="",this._ns.__video.load(),this._ns=null),null!=this._nc&&(this._nc.removeEventListener("netStatus",k(this,this.netStatusHandler)),this._nc=null)}catch(a){wa.lastError=
a}},get_isLoaded:function(){return null!=this._ns?null!=this._videoInfo:!1},get_position:function(){return this._ns.time},get_length:function(){return null!=this._videoInfo?this._videoInfo.duration:0},ns:null,get_ns:function(){return this._ns},get_video:function(){return this._video},set_video:function(a){this._video=a;null!=this._ns&&null!=this._video&&this.attachStream();return this._video},videoInfo:null,get_videoInfo:function(){return this._videoInfo},__class__:qp,__properties__:r(Zd.prototype.__properties__,
{get_videoInfo:"get_videoInfo",set_video:"set_video",get_video:"get_video",get_ns:"get_ns"})});var Nm=function(a,b,c,d,e,f,h){null==h&&(h=0);null==f&&(f=0);null==e&&(e=!1);null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.width=a;this.height=b;this.duration=c;this.framerate=d;this.canSeekToEnd=e;this.videodatarate=f;this.videocodecid=h};g["lib.media.VideoInfo"]=Nm;Nm.__name__="lib.media.VideoInfo";Nm.extract=function(a){for(var b=new Nm,c=0,d=J.fields(a);c<d.length;){var e=d[c];++c;
Object.prototype.hasOwnProperty.call(b,e)&&J.setProperty(b,e,J.field(a,e))}return b};Nm.prototype={width:null,height:null,duration:null,framerate:null,canSeekToEnd:null,videodatarate:null,videocodecid:null,__class__:Nm};var le=function(a){L.call(this);this.bytesTotal=this.bytesLoaded=0;this.dataFormat=1;null!=a&&this.load(a)};g["openfl.net.URLLoader"]=le;le.__name__="openfl.net.URLLoader";le.__super__=L;le.prototype=r(L.prototype,{bytesLoaded:null,bytesTotal:null,data:null,dataFormat:null,__httpRequest:null,
close:function(){null!=this.__httpRequest&&this.__httpRequest.cancel()},load:function(a){var b=this;if(0==this.dataFormat){var c=new rp;this.__prepareRequest(c,a);c.load().onProgress(k(this,this.httpRequest_onProgress)).onError(k(this,this.httpRequest_onError)).onComplete(function(a){b.__dispatchStatus();b.data=a;a=new W("complete");b.dispatchEvent(a)})}else c=new Om,this.__prepareRequest(c,a),c.load().onProgress(k(this,this.httpRequest_onProgress)).onError(k(this,this.httpRequest_onError)).onComplete(function(a){b.__dispatchStatus();
b.data=a;a=new W("complete");b.dispatchEvent(a)})},__dispatchStatus:function(){var a=new Mj("httpStatus",!1,!1,this.__httpRequest.responseStatus);a.responseURL=this.__httpRequest.uri;var b=[];if(this.__httpRequest.enableResponseHeaders&&null!=this.__httpRequest.responseHeaders)for(var c=0,d=this.__httpRequest.responseHeaders;c<d.length;){var e=d[c];++c;b.push(new Pm(e.name,e.value))}a.responseHeaders=b;this.dispatchEvent(a)},__prepareRequest:function(a,b){this.__httpRequest=a;this.__httpRequest.uri=
b.url;this.__httpRequest.method=b.method;if(null!=b.data)if(wb.typeof(b.data)==yc.TObject){var c=J.fields(b.data);for(a=0;a<c.length;){var d=c[a];++a;this.__httpRequest.formData.h[d]=J.field(b.data,d)}}else this.__httpRequest.data=b.data instanceof Qa?b.data:Qa.ofString(B.string(b.data));this.__httpRequest.contentType=b.contentType;if(null!=b.requestHeaders)for(a=0,c=b.requestHeaders;a<c.length;)d=c[a],++a,this.__httpRequest.headers.push(new sp(d.name,d.value));this.__httpRequest.followRedirects=
b.followRedirects;this.__httpRequest.timeout=b.idleTimeout|0;this.__httpRequest.withCredentials=b.manageCookies;this.__httpRequest.userAgent=b.userAgent;this.__httpRequest.enableResponseHeaders=!0},httpRequest_onError:function(a){this.__dispatchStatus();var b=403==a?new Uk("securityError"):new eg("ioError");b.text=B.string(a);this.dispatchEvent(b)},httpRequest_onProgress:function(a,b){var c=new Df("progress");c.bytesLoaded=a;c.bytesTotal=b;this.dispatchEvent(c)},__class__:le});var Ui=function(a,b){null==
a&&(a=1E3);this.timeout=a;this._timeoutTimer=new Ck(a);le.call(this,b)};g["lib.net.URLLoaderDeluxe"]=Ui;Ui.__name__="lib.net.URLLoaderDeluxe";Ui.__super__=le;Ui.prototype=r(le.prototype,{_timeoutTimer:null,timeout:null,load:function(a){this._timeoutTimer.addEventListener("timer",k(this,this.handleTimeout));this._timeoutTimer.set_delay(this.timeout);this.addEventListener("ioError",k(this,this.handleLoadActivity));this.addEventListener("securityError",k(this,this.handleLoadActivity));this.addEventListener("complete",
k(this,this.handleLoadActivity));this.addEventListener("progress",k(this,this.handleLoadActivity));this.addEventListener("open",k(this,this.handleLoadActivity));le.prototype.load.call(this,a);this._timeoutTimer.start()},close:function(){this.killTimer();le.prototype.close.call(this)},handleLoadActivity:function(a){this.killTimer()},killTimer:function(){this.removeEventListener("ioError",k(this,this.handleLoadActivity));this.removeEventListener("securityError",k(this,this.handleLoadActivity));this.removeEventListener("complete",
k(this,this.handleLoadActivity));this.removeEventListener("progress",k(this,this.handleLoadActivity));this.removeEventListener("open",k(this,this.handleLoadActivity));this._timeoutTimer.reset();this._timeoutTimer.removeEventListener("timer",k(this,this.handleTimeout))},handleTimeout:function(a){this.killTimer();le.prototype.dispatchEvent.call(this,new W("loaderTimeout",!0))},__class__:Ui});var kg=function(){L.call(this)};g["lib.services.Evaluator"]=kg;kg.__name__="lib.services.Evaluator";kg.getInstance=
function(a){null==a&&(a=-1);if(0<=a)return kg._evaluatorCache.h[a];var b=new kg;a=b._id=kg._currentID++;return kg._evaluatorCache.h[a]=b};kg.__super__=L;kg.prototype=r(L.prototype,{_id:null,_data:null,id:null,get_id:function(){return this._id},data:null,get_data:function(){return this._data},eval:function(a,b){this._data=b},handleError:function(a){this.dispatchEvent(new qe("error",!1,!1,a.errorID+","+a.name+","+a.message))},handleComplete:function(){this.dispatchEvent(new W("complete"))},__class__:kg,
__properties__:{get_data:"get_data",get_id:"get_id"}});var tp=function(){};g["lib.services.ImageLoader"]=tp;tp.__name__="lib.services.ImageLoader";tp.create=function(a){return(new fa("\\.html$","i")).match(a.get_path())?new Ef("100%","100%",!0):new Jd};tp.load=function(a,b,c,d){null==d&&(d=tp.create(a));var e=null,f=null;e=function(a){d.contentLoaderInfo.removeEventListener("complete",e);d.contentLoaderInfo.removeEventListener("ioError",f);d.removeEventListener("ioError",f);b(a)};f=function(a){d.contentLoaderInfo.removeEventListener("complete",
e);d.contentLoaderInfo.removeEventListener("ioError",f);d.removeEventListener("ioError",f);null!=c?c(a):Ub.trace("ImageLoader ioError: "+a.text,{fileName:"../Lib/Source/lib/services/ImageLoader.hx",lineNumber:58,className:"lib.services.ImageLoader",methodName:"load"})};var h=new Kc;h.url=H.absoluteCoursePath+a.get_path();d.contentLoaderInfo.addEventListener("complete",e);d.contentLoaderInfo.addEventListener("ioError",f);d.addEventListener("ioError",f);d.load(h,new Sh(!1,Ff.currentDomain,null));return d};
var Vi=function(){throw u.thrown("Cannot instantiate utility class LoaderManager");};g["lib.services.LoaderManager"]=Vi;Vi.__name__="lib.services.LoaderManager";Vi.load=function(a,b,c,d){var e=Object.prototype.hasOwnProperty.call(Vi._swfLoaders.h,a),f=null,h=null,l=null;h=function(a){f.contentLoaderInfo.removeEventListener("complete",h);f.contentLoaderInfo.removeEventListener("ioError",l);f.removeEventListener("ioError",l);f instanceof Rg&&N.__cast(f,Rg).renderAsDOMElement||(f.set_scaleX(1070/f.contentLoaderInfo.width),
f.set_scaleY(650/f.contentLoaderInfo.height));b(f)};l=function(a){f.contentLoaderInfo.removeEventListener("complete",h);f.contentLoaderInfo.removeEventListener("ioError",l);f.removeEventListener("ioError",l);null!=c?c(a):Ub.trace(">LoaderManager.as>ioErrorHandler>"+a.text,{fileName:"../Lib/Source/lib/services/LoaderManager.hx",lineNumber:64,className:"lib.services.LoaderManager",methodName:"load"})};e?(f=Vi._swfLoaders.h[a],Qb.delay(h,0)):(null==d&&(d=Ef),f=wb.createInstance(d,["1070","650",!0]),
f.contentLoaderInfo.addEventListener("complete",h),f.contentLoaderInfo.addEventListener("ioError",l),f.addEventListener("ioError",l),f.load(new Kc(a),new Sh(!1,Ff.currentDomain,null)));return f};Vi.prototype={__class__:Vi};var Gf=function(a,b,c){L.call(this);this._window=a;this._origin=b;this._otherWindow=c;a.addEventListener("message",k(this,this.onMessage),!1)};g["lib.services.MessageProxy"]=Gf;Gf.__name__="lib.services.MessageProxy";Gf.get=function(a,b){if(!Object.prototype.hasOwnProperty.call(Gf.instances.h,
a)){var c=window;if(null!=c){var d=Gf.instances;c=new Gf(c,a,b);d.h[a]=c}}a=Gf.instances.h[a];a._otherWindow=b;return a};Gf.remove=function(a){var b=Gf.instances;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a]};Gf.__super__=L;Gf.prototype=r(L.prototype,{_window:null,_origin:null,_otherWindow:null,destroy:function(){this.__removeAllListeners();Gf.remove(this._origin)},onMessage:function(a){if(null==this._otherWindow||a.source==this._otherWindow){var b=a.data;if("string"==typeof b)try{b=
je.run(b)}catch(c){wa.lastError=c}else!J.isObject(b)||b instanceof W||(a=J.field(b,"type"),null!=a&&""!=a&&(a=new Ej(a),a.set_data(b),b=a));b instanceof W&&this.dispatchEvent(b)}},postMessage:function(a,b){b=null!=b?b:this._otherWindow;Object.prototype.hasOwnProperty.call(b,"postMessage")?J.field(b,"postMessage").apply(b,[a,"*"]):"string"==typeof b&&lc.available&&lc.call(""+B.string(b)+".postMessage",a,"*")},postEvent:function(a){var b=new Yd;b.serialize(a);this.postMessage(b.toString())},__class__:Gf});
var up=function(){this.networkChange=new ya;this._connected=window.navigator.onLine;window.addEventListener("online",k(this,this.onNetworkChange));window.addEventListener("offline",k(this,this.onNetworkChange))};g["lib.services.NetworkInfo"]=up;up.__name__="lib.services.NetworkInfo";up.prototype={networkChange:null,_connected:null,onNetworkChange:function(a){this._connected="online"==a.type;this.networkChange.dispatch()},isConnected:function(){return this._connected},__class__:up};var $d=function(){};
g["org.swiftsuspenders.utils.DescribedType"]=$d;$d.__name__="org.swiftsuspenders.utils.DescribedType";$d.__isInterface__=!0;var Oa=function(a){null==a&&(a=!0);a&&(this.ctor=new Qm)};g["org.swiftsuspenders.typedescriptions.TypeDescription"]=Oa;Oa.__name__="org.swiftsuspenders.typedescriptions.TypeDescription";Oa.prototype={ctor:null,injectionPoints:null,preDestroyMethods:null,_postConstructAdded:null,setConstructor:function(a,b,c,d){null==c&&(c=1073741823);this.ctor=new Wi(this.createParameterMappings(a,
null!=b?b:[]),c,d);return this},addFieldInjection:function(a,b,c,d,e){null==d&&(d=!1);null==c&&(c="");if(this._postConstructAdded)throw u.thrown(new Qd("Can't add injection point after post construct method"));this.addInjectionPoint(new Rm(b.__name__+"|"+c,a,d,e));return this},addMethodInjection:function(a,b,c,d,e,f){null==e&&(e=!1);null==d&&(d=1073741823);if(this._postConstructAdded)throw u.thrown(new Qd("Can't add injection point after post construct method"));this.addInjectionPoint(new nh(a,this.createParameterMappings(b,
null!=c?c:[]),N.__cast(Math.min(za.toFloat(d),b.length),jh),e,f));return this},addPostConstructMethod:function(a,b,c,d){null==d&&(d=1073741823);c=null!=c?c:[];this._postConstructAdded=!0;this.addInjectionPoint(new Sm(a,this.createParameterMappings(b,c),N.__cast(Math.min(za.toFloat(d),b.length),jh),0));return this},addPreDestroyMethod:function(a,b,c,d){null==d&&(d=1073741823);a=new Vk(a,this.createParameterMappings(b,null!=c?c:[]),N.__cast(Math.min(za.toFloat(d),b.length),jh),0);null!=this.preDestroyMethods?
this.preDestroyMethods.last.next=a:this.preDestroyMethods=a;this.preDestroyMethods.last=a;return this},addInjectionPoint:function(a){null!=this.injectionPoints?this.injectionPoints.last.next=a:this.injectionPoints=a;this.injectionPoints.last=a},createParameterMappings:function(a,b){for(var c=[],d=0,e=a.length;d<e;){var f=d++;c[f]=a[f].__name__+"|";null!=b[f]&&(c[f]+=b[f])}return c},__class__:Oa};var Wk=function(){};g["org.swiftsuspenders.typedescriptions.InjectionPoint"]=Wk;Wk.__name__="org.swiftsuspenders.typedescriptions.InjectionPoint";
Wk.prototype={next:null,last:null,injectParameters:null,applyInjection:function(a,b,c){},__class__:Wk};var nh=function(a,b,c,d,e){this._methodName=a;this._parameterMappingIDs=b;this._requiredParameters=c;this._isOptional=d;this.injectParameters=e};g["org.swiftsuspenders.typedescriptions.MethodInjectionPoint"]=nh;nh.__name__="org.swiftsuspenders.typedescriptions.MethodInjectionPoint";nh.__super__=Wk;nh.prototype=r(Wk.prototype,{_parameterMappingIDs:null,_requiredParameters:null,_isOptional:null,_methodName:null,
applyInjection:function(a,b,c){b=this.gatherParameterValues(a,b,c);b.length>=this._requiredParameters&&(c=J.getProperty(a,this._methodName),J.isFunction(c)&&c.apply(a,b))},gatherParameterValues:function(a,b,c){for(var d=[],e=0,f=this._parameterMappingIDs.length;e<f;){var h=e++,l=this._parameterMappingIDs[h],m=c.getProvider(l);if(null==m){if(h>=this._requiredParameters||this._isOptional)break;c='Injector is missing a mapping to handle injection into target "';c+=B.string(a);c+='" of type "';c+=b.__name__;
c+='". Target dependency: ';c+=l;c+=", method: ";c+=this._methodName;c+=", parameter: ";c+=h+1;throw u.thrown(new Nj(c));}d[h]=m.apply(b,c,this.injectParameters)}return d},__class__:nh});var Wi=function(a,b,c){nh.call(this,"ctor",a,b,!1,c)};g["org.swiftsuspenders.typedescriptions.ConstructorInjectionPoint"]=Wi;Wi.__name__="org.swiftsuspenders.typedescriptions.ConstructorInjectionPoint";Wi.__super__=nh;Wi.prototype=r(nh.prototype,{createInstance:function(a,b){b=this.gatherParameterValues(a,a,b);switch(b.length){case 0:a=
wb.createInstance(a,[]);break;case 1:a=wb.createInstance(a,[b[0]]);break;case 2:a=wb.createInstance(a,[b[0],b[1]]);break;case 3:a=wb.createInstance(a,[b[0],b[1],b[2]]);break;case 4:a=wb.createInstance(a,[b[0],b[1],b[2],b[3]]);break;case 5:a=wb.createInstance(a,[b[0],b[1],b[2],b[3],b[4]]);break;case 6:a=wb.createInstance(a,[b[0],b[1],b[2],b[3],b[4],b[5]]);break;case 7:a=wb.createInstance(a,[b[0],b[1],b[2],b[3],b[4],b[5],b[6]]);break;case 8:a=wb.createInstance(a,[b[0],b[1],b[2],b[3],b[4],b[5],b[6],
b[7]]);break;case 9:a=wb.createInstance(a,[b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8]]);break;case 10:a=wb.createInstance(a,[b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9]]);break;default:throw u.thrown(new Qd("The constructor for "+B.string(a)+" has too many arguments, maximum is 10"));}return a},__class__:Wi});var Qm=function(){Wi.call(this,[],0,this.injectParameters)};g["org.swiftsuspenders.typedescriptions.NoParamsConstructorInjectionPoint"]=Qm;Qm.__name__="org.swiftsuspenders.typedescriptions.NoParamsConstructorInjectionPoint";
Qm.__super__=Wi;Qm.prototype=r(Wi.prototype,{createInstance:function(a,b){return wb.createInstance(a,[])},__class__:Qm});var gd=function(){this.quiz=new Js};g["room.models.quiz.QuizManager"]=gd;gd.__name__="room.models.quiz.QuizManager";gd.__interfaces__=[$d];gd.prototype={source:null,settingsQuizes:null,dataQuizes:null,quiz:null,_signals:null,init:function(){this.source=this.settingsQuizes=this.dataQuizes=null},setSettings:function(a){null!=this.settingsQuizes&&this.settingsQuizes.get_signals().get_destroy().remove(k(this,
this.onDestroyQuiz));this.settingsQuizes=a;null!=this.settingsQuizes&&this.settingsQuizes.get_signals().get_destroy().add(k(this,this.onDestroyQuiz)).repeat(0);this.get_signals().get_changeSettings().dispatch()},onDestroyQuiz:function(a){this.init()},setData:function(a){this.get_signals().get_beforeChangeData().dispatch(a);this.dataQuizes=a;this.get_signals().get_changeData().dispatch()},settingsNode:null,get_settingsNode:function(){return this.settingsQuizes.settingsNode},getQuiz:function(a,b){return Gb.isEmpty(b)?
vb.find(this.dataQuizes.quizNodes,function(b){return a==b.get_type()}):vb.find(this.dataQuizes.quizNodes,function(a){return b==a.get_id()})},createQuiz:function(a,b){return this.dataQuizes.addQuiz(Ec.createQuiz({type:a,id:null!=b?b:this.dataQuizes.nextId()}))},getOrCreateQuiz:function(a,b){var c=this.getQuiz(a,b);null==c&&(c=this.createQuiz(a,b));return c},loadSource:function(a){a!=this.source&&(this.source=a,this.loadData(a))},loadData:function(a){a=new le(new Kc(a));a.addEventListener("complete",
k(this,this.onLoadData));a.addEventListener("ioError",k(this,this.onLoadDataError))},onLoadData:function(a){a=a.target;a.removeEventListener("complete",k(this,this.onLoadData));a.removeEventListener("ioError",k(this,this.onLoadDataError));try{var b=z.parse(a.data).firstElement();if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==b.nodeType?"null":V.toString(b.nodeType)));this.setData(new Am(b,null))}catch(c){wa.lastError=c,Ub.trace("could not parse quiz xml: "+
B.string(a.data),{fileName:"Source/room/models/quiz/QuizManager.hx",lineNumber:123,className:"room.models.quiz.QuizManager",methodName:"onLoadData"})}},onLoadDataError:function(a){var b=a.target;b.removeEventListener("complete",k(this,this.onLoadData));b.removeEventListener("ioError",k(this,this.onLoadDataError));Ub.trace("Quiz load error: "+a.text,{fileName:"Source/room/models/quiz/QuizManager.hx",lineNumber:133,className:"room.models.quiz.QuizManager",methodName:"onLoadDataError"})},startQuiz:function(a){null==
a&&(a=this.get_settingsNode().typeString);this.writeIdentifier(a);this.setQuestions(a);this.quiz.start(this.get_settingsNode())},writeIdentifier:function(a){if(""==this.get_settingsNode().get_identifier())for(var b,c=0,d=this.dataQuizes.quizNodes;c<d.length;)if(b=d[c],++c,b.get_type()==a||"exam"==a&&""==b.get_type()){this.get_settingsNode().set_identifier(b.get_id());break}},setQuestions:function(a){var b=this.getQuiz(a,null!=this.get_settingsNode()?this.get_settingsNode().get_identifier():null);
0<this.quiz.questions.length&&N.__cast(this.quiz.questions[0].data.parent,Ni).get_signals().get_change().remove(k(this,this.onChangeQuizNode));this.quiz.reset(a);b.get_signals().get_change().add(k(this,this.onChangeQuizNode));this.updateQuestions(b,a)},setCurrentQuestion:function(a){this.quiz.setQuestionIndex(this.quiz.findQuestionIndex(a))},onChangeQuizNode:function(a){0<this.quiz.questions.length&&(a=this.quiz.questions[0].data.parent,a.get_type()==this.quiz.get_type()?this.updateQuestions(a,this.quiz.get_type()):
""!=a.get_type()&&this.quiz.set_type(a.get_type()))},updateQuestions:function(a,b){for(var c=this.quiz.questions.slice(),d=0,e=a.questions.length;d<e;){var f=d++,h=a.questions[f];if(a.get_type()==b||h.get_type()==b||"exam"==b&&""==a.get_type()){for(var l=null,m=0,t=c.length;m<t;){var k=m++;if(c[k].data==h){l=c[k];break}}null!=l?(l.setData(h),G.remove(c,l)):(l=new vp(this.get_settingsNode()),l.setData(h),this.quiz.addQuestion(l,f))}}for(d=0;d<c.length;)l=c[d],++d,this.quiz.removeQuestion(l)},addQuestion:function(a,
b){null==b&&(b=-1);if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));if(1<this.dataQuizes.quizNodes.length&&ja.resolve(a,"QuestionType"))for(var c=0,d=this.dataQuizes.quizNodes;c<d.length;){var e=d[c];++c;if(e.get_type()==ba.resolve(a,"QuestionType"))return e.addQuestion(a,b)}return this.dataQuizes.quizNodes[0].addQuestion(a,b)},unload:function(){this.get_signals().get_unload().dispatch()},signals:null,get_signals:function(){null==
this._signals&&(this._signals=new wp);return this._signals},__class__:gd,__properties__:{get_signals:"get_signals",get_settingsNode:"get_settingsNode"}};var Xi=function(){};g["lib.services.Printer"]=Xi;Xi.__name__="lib.services.Printer";Xi.__interfaces__=[$d];Xi.prototype={quizManager:null,printQuizAnswers:function(){null!=this.quizManager.dataQuizes?this.dataReady():(this.quizManager.get_signals().get_changeData().add(k(this,this.dataReady)),this.quizManager.loadSource(H.get_quizXmlPath()))},dataReady:function(){this.quizManager.setQuestions("task");
lc.available&&lc.call('(function __printAnswers__(html, windowName, windowSettings) { var win = window.open("", windowName, windowSettings); win.document.write(html);})',this.buildHtml(),"printPopup","height=500,width=500,resizable,scrollbars=yes")},buildHtml:function(){for(var a=(new Nc('<div style="text-align: center"><h1>::courseName::</h1><h2>::studentName::</h2><h3>::date::</h3></div>')).execute({courseName:H.xmlData.scorm.course_name,studentName:sa.getStudentName(),date:Ua.format(new Date,"%d/%m/%y")}),
b=[],c=0,d=this.quizManager.quiz.questions;c<d.length;){var e=d[c];++c;var f=sa.getInteraction(e.data.get_id());e=e.data.get_text();f=null!=f?f.value.replace(/\r\n|\r|\n/g,"<br>"):"";b.push({question:e,answer:f})}b=(new Nc("::foreach answers::<p>::question::<br/><em>::answer::</em></p>::end::")).execute({answers:b});return(new Nc("<html><head><title>::title::</title></head><body>::header:: ::answers::</body></html>")).execute({title:"Print",header:a,answers:b})},__class__:Xi};var Tm=function(){Jd.call(this);
this.addEventListener("addedToStage",k(this,this.addedToStageHandler))};g["lib.services.SecureLoader"]=Tm;Tm.__name__="lib.services.SecureLoader";Tm.__super__=Jd;Tm.prototype=r(Jd.prototype,{fileName:null,_urlLoader:null,_context:null,desc:null,imageType:null,addedToStageHandler:function(a){this.removeEventListener("addedToStage",k(this,this.addedToStageHandler));this.addEventListener("removedFromStage",k(this,this.removedFromStageHandler))},removedFromStageHandler:function(a){this.removeEventListener("removedFromStage",
k(this,this.removedFromStageHandler));Pb.isIOS()&&"swf"==G.substr(this.fileName,-3,null).toLowerCase()||this.unloadAndStop()},load:function(a,b){this._context=null!=b?b:new Sh;try{this._context.allowLoadBytesCodeExecution=!0}catch(c){wa.lastError=c}b=a.url.split("/");this.fileName=b[b.length-1];this._urlLoader=new le(a);this._urlLoader.dataFormat=0;this._urlLoader.addEventListener("complete",k(this,this.urlLoaderCompleteHandler));this._urlLoader.addEventListener("progress",k(this,this.urlLoaderProgressHandler));
this._urlLoader.addEventListener("ioError",k(this,this.urlLoaderErrorHandler))},urlLoaderProgressHandler:function(a){this.dispatchEvent(a.clone())},urlLoaderErrorHandler:function(a){this._urlLoader.removeEventListener("complete",k(this,this.urlLoaderCompleteHandler));this._urlLoader.removeEventListener("progress",k(this,this.urlLoaderProgressHandler));this._urlLoader.removeEventListener("ioError",k(this,this.urlLoaderErrorHandler));this.dispatchEvent(a.clone())},urlLoaderCompleteHandler:function(a){this._urlLoader.removeEventListener("complete",
k(this,this.urlLoaderCompleteHandler));this._urlLoader.removeEventListener("progress",k(this,this.urlLoaderProgressHandler));this._urlLoader.removeEventListener("ioError",k(this,this.urlLoaderErrorHandler));this.contentLoaderInfo.addEventListener("init",k(this,this.initHandler));this.contentLoaderInfo.addEventListener("complete",k(this,this.completeHandler));this.loadBytes(this._urlLoader.data,this._context)},initHandler:function(a){this.contentLoaderInfo.removeEventListener("init",k(this,this.initHandler));
"jpg"==G.substr(this.fileName,-3,null).toLowerCase()&&(N.__cast(this.content,Pd).smoothing=!0)},completeHandler:function(a){this.contentLoaderInfo.removeEventListener("complete",k(this,this.completeHandler));this.content.set_scaleX(1);this.content.set_scaleY(1)},__class__:Tm});var kf=function(){};g["lib.services.Sounds"]=kf;kf.__name__="lib.services.Sounds";kf.play=function(a,b){a=oa.getAudioBuffer(a);a=new xp(a);a.set_gain(null!=b?b:.7);a.play()};var op=function(){this._signals=new da};g["lib.signals.MediaControllerSignalSet"]=
op;op.__name__="lib.signals.MediaControllerSignalSet";op.__super__=fd;op.prototype=r(fd.prototype,{get_load:function(){return this.getSignal("load")},get_play:function(){return this.getSignal("play")},get_pause:function(){return this.getSignal("pause")},get_stop:function(){return this.getSignal("stop")},get_mute:function(){return this.getSignal("mute")},get_unmute:function(){return this.getSignal("unmute")},get_playing:function(){return this.getSignal("playing")},get_error:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,
"error")){var a=this._signals,b=new pb;a.h.error=b}return this._signals.h.error},__class__:op,__properties__:{get_error:"get_error",get_playing:"get_playing",get_unmute:"get_unmute",get_mute:"get_mute",get_stop:"get_stop",get_pause:"get_pause",get_play:"get_play",get_load:"get_load"}});var qc=function(a){null==a&&(a=1);this._bgAlpha=this._padding=0;this._bgColor=16777215;this._borderThickness=this._borderColor=this._borderRadius=0;F.call(this);this.numberOfLines=a;this.tf=new Bb;this.tff=new ib("Arial",
12);this.set_editable(!0);this.addEventListener("addedToStage",k(this,this.onAddedToStage));this.addEventListener("removedFromStage",k(this,this.onRemovedFromStage))};g["lib.text.AdvancedText"]=qc;qc.__name__="lib.text.AdvancedText";qc.__super__=F;qc.prototype=r(F.prototype,{tf:null,tff:null,numberOfLines:null,_width:null,_height:null,_borderThickness:null,_borderColor:null,_borderRadius:null,_bgColor:null,_bgAlpha:null,lineMetric:null,_color:null,_placeholder:null,_padding:null,addEventListener:function(a,
b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);this.isEventTypeStageTextSpecific(a)?this.tf.addEventListener(a,b,c,d,e):F.prototype.addEventListener.call(this,a,b,c,d,e)},removeEventListener:function(a,b,c){null==c&&(c=!1);this.isEventTypeStageTextSpecific(a)?this.tf.removeEventListener(a,b,c):F.prototype.removeEventListener.call(this,a,b,c)},isEventTypeStageTextSpecific:function(a){return"change"==a||"focusIn"==a||"focusOut"==a||"keyDown"==a||"keyUp"==a||"textInput"==a},onAddedToStage:function(a){this.addFocusEventListeners();
this.addChild(this.tf);this.render()},onRemovedFromStage:function(a){this.removeFocusEventListeners()},addFocusEventListeners:function(){this.addEventListener("focusIn",k(this,this.onFocusIn));this.addEventListener("focusOut",k(this,this.onFocusOut))},removeFocusEventListeners:function(){this.removeEventListener("focusIn",k(this,this.onFocusIn));this.removeEventListener("focusOut",k(this,this.onFocusOut))},onFocusIn:function(a){this.get_editable()&&this.tf.get_text()==this._placeholder&&(this.tf.set_text(""),
this.tf.set_textColor(this._color))},onFocusOut:function(a){this.get_editable()&&""==ec.trim(this.tf.get_text())&&(this.tf.set_text(this._placeholder),this.tf.set_textColor(10066329))},set_borderThickness:function(a){this._borderThickness=a;this.render();return a},get_borderThickness:function(){return this._borderThickness},set_borderColor:function(a){this._borderColor=a;this.render();return a},get_borderColor:function(){return this._borderColor},set_borderRadius:function(a){this._borderRadius=a;
this.render();return a},get_borderRadius:function(){return this._borderRadius},set_bgColor:function(a){this._bgColor=a;this.render();return a},get_bgColor:function(){return this._bgColor},set_bgAlpha:function(a){this._bgAlpha=a;this.render();return a},get_bgAlpha:function(){return this._bgAlpha},set_color:function(a){this._color=a;this.checkColor();return a},set_displayAsPassword:function(a){this.tf.set_displayAsPassword(a);return a},get_editable:function(){return 1==this.tf.get_type()},set_editable:function(a){this.tf.set_type(a?
1:0);return a},set_fontFamily:function(a){return this.tff.font=a},get_fontSize:function(){return this.tff.size},set_fontSize:function(a){this.tff.size=a;this.render();return a},set_maxChars:function(a){this.tf.set_maxChars(a);return a},set_restrict:function(a){this.tf.set_restrict(a);return a},get_selectable:function(){return this.tf.get_selectable()},set_selectable:function(a){this.tf.set_selectable(a);return a},get_selectionActiveIndex:function(){return this.tf.get_selectionBeginIndex()},get_selectionAnchorIndex:function(){return this.tf.get_selectionEndIndex()},
get_text:function(){return this.tf.get_text()},set_text:function(a){this.tf.set_text(a);this.checkColor();return a},set_textAlign:function(a){this.tff.align=Oj.fromString(a);return a},set_visible:function(a){F.prototype.set_visible.call(this,a);this.tf.set_visible(a);return a},get_multiline:function(){return this.tf.get_multiline()},assignFocus:function(){this.stage.set_focus(this.tf)},hasFocus:function(){return this.stage.get_focus()==this.tf},selectRange:function(a,b){this.tf.setSelection(a,b)},
set_width:function(a){this._width=a|0;this.render();return a},set_height:function(a){return a},set_x:function(a){F.prototype.set_x.call(this,a);this.render();return a},set_y:function(a){F.prototype.set_y.call(this,a);this.render();return a},get_width:function(){return this._width},get_height:function(){return this._height},get_placeholder:function(){return this._placeholder},set_placeholder:function(a){this._placeholder=a;""==this.tf.get_text()&&(this.tf.set_text(this._placeholder),this.tf.set_textColor(10066329));
return a},get_padding:function(){return this._padding},set_padding:function(a){this._padding=a;this.render();return a},render:function(){if(null!=this.stage&&this.stage.contains(this)){this.tf.set_defaultTextFormat(this.tff);this.lineMetric=null;this.calculateHeight();var a=this.getViewPortRectangle();this.tf.set_x(this.get_borderThickness()+this._padding);this.tf.set_y(this.get_borderThickness()+this._padding);this.tf.set_width(a.width);this.tf.set_height(a.height);this.drawBorder(this)}},getViewPortRectangle:function(){var a=
this.getTotalFontHeight(),b=this.parent.localToGlobal(new ab(this.get_x(),this.get_y()));return new ha(b.x+this.get_borderThickness()+this._padding,b.y+this.get_borderThickness()+this._padding,Math.round(this._width-2.5*this.get_borderThickness()),Math.round((a+(a-this.get_fontSize()))*this.numberOfLines))},drawBorder:function(a){0!=this.get_borderThickness()&&(a.get_graphics().clear(),a.get_graphics().beginFill(this._bgColor,this._bgAlpha),a.get_graphics().lineStyle(this.get_borderThickness(),this.get_borderColor()),
a.get_graphics().drawRoundRect(0,0,this._width-this.get_borderThickness()+2*this._padding,this._height+2*this._padding,this.get_borderRadius(),this.get_borderRadius()),a.get_graphics().endFill())},calculateHeight:function(){var a=this.getTotalFontHeight();this._height=Math.round(a*this.numberOfLines+2*this.get_borderThickness()+4)},getTotalFontHeight:function(){if(null!=this.lineMetric)return this.lineMetric.ascent+this.lineMetric.descent;this.tf.set_defaultTextFormat(this.tff);var a=this.tf.get_text();
this.tf.set_text("QQQ");this.lineMetric=this.tf.getLineMetrics(0);this.tf.set_text(a);return this.lineMetric.ascent+this.lineMetric.descent},checkColor:function(){this.tf.get_text()!=this._placeholder&&this.tf.set_textColor(this._color)},__class__:qc,__properties__:r(F.prototype.__properties__,{set_padding:"set_padding",get_padding:"get_padding",set_placeholder:"set_placeholder",get_placeholder:"get_placeholder",get_multiline:"get_multiline",set_textAlign:"set_textAlign",set_text:"set_text",get_text:"get_text",
get_selectionAnchorIndex:"get_selectionAnchorIndex",get_selectionActiveIndex:"get_selectionActiveIndex",set_selectable:"set_selectable",get_selectable:"get_selectable",set_restrict:"set_restrict",set_maxChars:"set_maxChars",set_fontSize:"set_fontSize",get_fontSize:"get_fontSize",set_fontFamily:"set_fontFamily",set_editable:"set_editable",get_editable:"get_editable",set_displayAsPassword:"set_displayAsPassword",set_color:"set_color",set_bgAlpha:"set_bgAlpha",get_bgAlpha:"get_bgAlpha",set_bgColor:"set_bgColor",
get_bgColor:"get_bgColor",set_borderRadius:"set_borderRadius",get_borderRadius:"get_borderRadius",set_borderColor:"set_borderColor",get_borderColor:"get_borderColor",set_borderThickness:"set_borderThickness",get_borderThickness:"get_borderThickness"})});var yp=function(a){null==a&&(a=1);qc.call(this,a);this.st=this.tf};g["lib.text.NativeText"]=yp;yp.__name__="lib.text.NativeText";yp.__super__=qc;yp.prototype=r(qc.prototype,{st:null,snapshot:null,addEventListener:function(a,b,c,d,e){null==e&&(e=!1);
null==d&&(d=0);null==c&&(c=!1);this.isEventTypeStageTextSpecific(a)?this.st.addEventListener(a,b,c,d,e):qc.prototype.addEventListener.call(this,a,b,c,d,e)},removeEventListener:function(a,b,c){null==c&&(c=!1);this.isEventTypeStageTextSpecific(a)?this.st.removeEventListener(a,b,c):qc.prototype.removeEventListener.call(this,a,b,c)},isEventTypeStageTextSpecific:function(a){return qc.prototype.isEventTypeStageTextSpecific.call(this,a)},onAddedToStage:function(a){qc.prototype.onAddedToStage.call(this,a)},
onRemovedFromStage:function(a){qc.prototype.onRemovedFromStage.call(this,a)},onFocusIn:function(a){this.st.get_text()==this._placeholder&&(this.st.set_text(""),this.tf.set_textColor(this._color))},onFocusOut:function(a){""==ec.trim(this.st.get_text())&&(this.st.set_text(this._placeholder),this.tf.set_textColor(10066329))},set_autoCorrect:function(a){return a},set_locale:function(a){return a},set_displayAsPassword:function(a){this.st.set_displayAsPassword(a);return a},get_editable:function(){return qc.prototype.get_editable.call(this)},
set_editable:function(a){return qc.prototype.set_editable.call(this,a)},set_fontFamily:function(a){return qc.prototype.set_fontFamily.call(this,a)},get_fontSize:function(){return qc.prototype.get_fontSize.call(this)},set_fontSize:function(a){return qc.prototype.set_fontSize.call(this,a)},set_maxChars:function(a){this.st.set_maxChars(a);return a},set_restrict:function(a){this.st.set_restrict(a);return a},get_selectionActiveIndex:function(){return qc.prototype.get_selectionActiveIndex.call(this)},get_selectionAnchorIndex:function(){return qc.prototype.get_selectionAnchorIndex.call(this)},
get_text:function(){return this.st.get_text()},set_text:function(a){this.st.set_text(a);this.checkColor();return a},set_textAlign:function(a){return qc.prototype.set_textAlign.call(this,a)},set_visible:function(a){qc.prototype.set_visible.call(this,a);this.st.set_visible(a);return a},get_multiline:function(){return this.st.get_multiline()},assignFocus:function(){qc.prototype.assignFocus.call(this)},hasFocus:function(){return this.stage.get_focus()==this.st},selectRange:function(a,b){qc.prototype.selectRange.call(this,
a,b)},freeze:function(){qc.prototype.set_editable.call(this,!1)},unfreeze:function(){qc.prototype.set_editable.call(this,!1)},set_placeholder:function(a){this._placeholder=a;""==this.st.get_text()&&(this.st.set_text(this._placeholder),this.tf.set_textColor(10066329));return a},render:function(){null!=this.stage&&this.stage.contains(this)&&qc.prototype.render.call(this)},getTotalFontHeight:function(){return null!=this.lineMetric?this.lineMetric.ascent+this.lineMetric.descent:qc.prototype.getTotalFontHeight.call(this)},
checkColor:function(){this.st.get_text()!=this._placeholder&&this.tf.set_textColor(this._color)},__class__:yp,__properties__:r(qc.prototype.__properties__,{set_locale:"set_locale",set_autoCorrect:"set_autoCorrect"})});var Ma=function(){};g["lib.utils.FastUtil"]=Ma;Ma.__name__="lib.utils.FastUtil";Ma.parseString=function(a){try{var b=qb.get_innerData(a)}catch(c){wa.lastError=c,b=""}return b};Ma.parseBool=function(a){a=Ma.parseString(a);return Gb.parseBool(a)};Ma.parseInt=function(a){a=Ma.parseString(a);
return B.parseInt(a)};Ma.parseFloat=function(a){a=Ma.parseString(a);return parseFloat(a)};var Gb=function(){};g["lib.utils.StringUtil"]=Gb;Gb.__name__="lib.utils.StringUtil";Gb.cdata=function(a){return"<![CDATA["+a+"]]\x3e"};Gb.parseBool=function(a){return null!=a?"1"!=a?"true"==a.toLowerCase():!0:!1};Gb.stripHTMLTags=function(a){a=a.replace(/<\/P>/gi,"\n");return a.replace(/<[^<]+?>/gi,"")};Gb.removeExtraWhitespace=function(a){return null==a?"":Gb.trim(a).replace(/\s+/g," ")};Gb.trim=function(a){return null==
a?"":ia.trim(a)};Gb.hasText=function(a){return 0<Gb.removeExtraWhitespace(a).length};Gb.isEmpty=function(a){return null==a?!0:0==a.length};Gb.isNumeric=function(a){return null==a?!1:(new fa("^[-+]?\\d*\\.?\\d+(?:[eE][-+]?\\d+)?$","")).match(a)};Gb.formatTime=function(a,b,c,d){var e="";b=null==b?"null":""+b;c=null==c?"null":""+c;var f="";null!=a&&(e=null==a?"null":""+a,2>e.length&&(e="0"+e),e+=":");2>b.length&&(b="0"+b);2>c.length&&(c="0"+c);if(null!=d){for(f=null==d?"null":""+d;3>f.length;)f="0"+
f;f="."+f}return e+(b+":")+c+f};var Pb=function(){};g["lib.utils.SystemInfo"]=Pb;Pb.__name__="lib.utils.SystemInfo";Pb.isMac=function(){return-1<E.navigator.platform.indexOf("Mac")};Pb.isLinux=function(){return-1<E.navigator.platform.indexOf("Linux")};Pb.isWindows=function(){return-1<E.navigator.platform.indexOf("Win")};Pb.isAndroid=function(){return yb.isAndroid()};Pb.isIOS=function(){return null!=yb.get_iosVersion()};Pb.isMobile=function(){return yb.isMobile()};Pb.hasTouch=function(){return Object.prototype.hasOwnProperty.call(window,
"ontouchstrat")||0<E.navigator.maxTouchPoints?!0:0<J.field(E.navigator,"msMaxTouchPoints")};Pb.isAirPlayer=function(){return"Desktop"==Hb.playerType};Pb.isWebPlayer=function(){return"ActiveX"!=Hb.playerType?"PlugIn"==Hb.playerType:!0};Pb.isStandalone=function(){return"StandAlone"==Hb.playerType};Pb.isTestingFromFlashIDE=function(){return"External"==Hb.playerType};var Mu=function(){};g["lib.utils.Version"]=Mu;Mu.__name__="lib.utils.Version";var rs=function(){this.connected=!0;this.buttons=[];this.axes=
[]};g["lime._internal.backend.html5.GameDeviceData"]=rs;rs.__name__="lime._internal.backend.html5.GameDeviceData";rs.prototype={connected:null,id:null,isGamepad:null,buttons:null,axes:null,__class__:rs};var Ks=function(a){this.parent=a;this.id=-1;this.gain=1;this.position=new jc};g["lime._internal.backend.html5.HTML5AudioSource"]=Ks;Ks.__name__="lime._internal.backend.html5.HTML5AudioSource";Ks.prototype={completed:null,gain:null,id:null,length:null,loops:null,parent:null,playing:null,position:null,
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",k(this,this.howl_onEnd),this.id);this.setCurrentTime(a)}},
pause:function(){this.playing=!1;null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&this.parent.buffer.__srcHowl.pause(this.id)},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",k(this,this.howl_onEnd),this.id))},howl_onEnd:function(){this.playing=!1;0<this.loops?(this.loops--,this.stop(),this.play()):(null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&
(this.parent.buffer.__srcHowl.stop(this.id),this.parent.buffer.__srcHowl.off("end",k(this,this.howl_onEnd),this.id)),this.completed=!0,this.parent.onComplete.dispatch())},getCurrentTime:function(){if(-1==this.id)return 0;if(this.completed)return this.getLength();if(null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl){var a=(1E3*this.parent.buffer.__srcHowl.seek(this.id)|0)-this.parent.offset;return 0>a?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},
getLoops:function(){return this.loops},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.__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__:Ks};var Fa=function(){this.validStatus0=(new fa("Tizen","gi")).match(window.navigator.userAgent)};
g["lime._internal.backend.html5.HTML5HTTPRequest"]=Fa;Fa.__name__="lime._internal.backend.html5.HTML5HTTPRequest";Fa.loadImage=function(a){var b=new nd;Fa.activeRequests<Fa.requestLimit?(Fa.activeRequests++,Fa.__loadImage(a,b,0)):Fa.requestQueue.add({instance:null,uri:a,promise:b,type:"IMAGE",options:0});return b.future};Fa.loadImageFromBytes=function(a,b){var c=URL.createObjectURL(new Blob([a.b.bufferValue],{type:b}));return null!=c?(a=new nd,Fa.activeRequests<Fa.requestLimit?(Fa.activeRequests++,
Fa.__loadImage(c,a,1)):Fa.requestQueue.add({instance:null,uri:c,promise:a,type:"IMAGE",options:1}),a.future):Fa.loadImage("data:"+b+";base64,"+lg.encode(a))};Fa.processQueue=function(){if(Fa.activeRequests<Fa.requestLimit&&0<Fa.requestQueue.length){Fa.activeRequests++;var a=Fa.requestQueue.pop();switch(a.type){case "BINARY":a.instance.__loadData(a.uri,a.promise);break;case "IMAGE":Fa.__loadImage(a.uri,a.promise,a.options);break;case "TEXT":a.instance.__loadText(a.uri,a.promise);break;default:Fa.activeRequests--}}};
Fa.__createBlobURIFromBytes=function(a,b){return URL.createObjectURL(new Blob([a.b.bufferValue],{type:b}))};Fa.__fixHostname=function(a){return null==a?"":a};Fa.__fixPort=function(a,b){if(null==a||""==a)switch(b){case "ftp:":return"21";case "gopher:":return"70";case "http:":return"80";case "https:":return"443";case "ws:":return"80";case "wss:":return"443";default:return""}return a};Fa.__fixProtocol=function(a){return null==a||""==a?"http:":a};Fa.__isInMemoryURI=function(a){return ia.startsWith(a,
"data:")?!0:ia.startsWith(a,"blob:")};Fa.__isSameOrigin=function(a){if(null==a||""==a||Fa.__isInMemoryURI(a))return!0;null==Fa.originElement&&(Fa.originElement=window.document.createElement("a"),Fa.originHostname=Fa.__fixHostname(E.location.hostname),Fa.originProtocol=Fa.__fixProtocol(E.location.protocol),Fa.originPort=Fa.__fixPort(E.location.port,Fa.originProtocol));var b=Fa.originElement;b.href=a;""==b.hostname&&(b.href=b.href);var c=Fa.__fixHostname(b.hostname);a=Fa.__fixProtocol(b.protocol);b=
Fa.__fixPort(b.port,a);c=""==c||c==Fa.originHostname;b=""==b||b==Fa.originPort;return"file:"!=a&&c?b:!1};Fa.__loadImage=function(a,b,c){var d=new Image;Fa.__isSameOrigin(a)||(d.crossOrigin="Anonymous");null==Fa.supportsImageProgress&&(Fa.supportsImageProgress="onprogress"in d);if(Fa.supportsImageProgress||Fa.__isInMemoryURI(a))d.addEventListener("load",function(e){Fa.__revokeBlobURI(a,c);e=new mg(null,d.width,d.height);e.__srcImage=d;Fa.activeRequests--;Fa.processQueue();b.complete(new Lb(e))},!1),
d.addEventListener("progress",function(a){b.progress(a.loaded,a.total)},!1),d.addEventListener("error",function(d){Fa.__revokeBlobURI(a,c);Fa.activeRequests--;Fa.processQueue();b.error(d.detail)},!1),d.src=a;else{var e=new XMLHttpRequest;e.onload=function(a){Fa.activeRequests--;Fa.processQueue();(new Lb).__fromBytes(Qa.ofData(e.response),function(a){b.complete(a)})};e.onerror=function(a){b.error(a.message)};e.onprogress=function(a){a.lengthComputable&&b.progress(a.loaded,a.total)};e.open("GET",a,
!0);e.responseType="arraybuffer";e.overrideMimeType("text/plain; charset=x-user-defined");e.send(null)}};Fa.__revokeBlobURI=function(a,b){0!=(b&1)&&URL.revokeObjectURL(a)};Fa.prototype={binary:null,parent:null,request:null,validStatus0:null,cancel:function(){null!=this.request&&this.request.abort()},init:function(a){this.parent=a},load:function(a,b,c){this.request=new XMLHttpRequest;"POST"==this.parent.method?this.request.upload.addEventListener("progress",b,!1):this.request.addEventListener("progress",
b,!1);this.request.onreadystatechange=c;b="";if(null==this.parent.data){c=Object.keys(this.parent.formData.h);for(var d=c.length,e=0;e<d;){var f=c[e++];0<b.length&&(b+="&");var h=this.parent.formData.h[f];if(-1<f.indexOf("[]")&&h instanceof Array){f=encodeURIComponent(f);var l=[];for(h=M(h);h.hasNext();){var m=h.next();l.push(encodeURIComponent(m))}l=l.join("&"+f+"=");b+=f+"="+l}else l=encodeURIComponent(f)+"=",f=B.string(h),b+=l+encodeURIComponent(f)}"GET"==this.parent.method&&""!=b&&(a=-1<a.indexOf("?")?
a+("&"+b):a+("?"+b),b="")}this.request.open(B.string(this.parent.method),a,!0);0<this.parent.timeout&&(this.request.timeout=this.parent.timeout);this.binary&&(this.request.responseType="arraybuffer");a=null;l=0;for(c=this.parent.headers;l<c.length;)d=c[l],++l,"Content-Type"==d.name?a=d.value:this.request.setRequestHeader(d.name,d.value);null!=this.parent.contentType&&(a=this.parent.contentType);null==a&&(null!=this.parent.data?a="application/octet-stream":""!=b&&(a="application/x-www-form-urlencoded"));
null!=a&&this.request.setRequestHeader("Content-Type",a);this.parent.withCredentials&&(this.request.withCredentials=!0);null!=this.parent.data?this.request.send(this.parent.data.b.bufferValue):this.request.send(b)},loadData:function(a){var b=new nd;Fa.activeRequests<Fa.requestLimit?(Fa.activeRequests++,this.__loadData(a,b)):Fa.requestQueue.add({instance:this,uri:a,promise:b,type:"BINARY",options:0});return b.future},loadText:function(a){var b=new nd;Fa.activeRequests<Fa.requestLimit?(Fa.activeRequests++,
this.__loadText(a,b)):Fa.requestQueue.add({instance:this,uri:a,promise:b,type:"TEXT",options:0});return b.future},processResponse:function(){if(this.parent.enableResponseHeaders){this.parent.responseHeaders=[];for(var a,b,c=0,d=this.request.getAllResponseHeaders().split("\n");c<d.length;)b=d[c],++c,a=ia.trim(G.substr(b,0,b.indexOf(":"))),b=ia.trim(G.substr(b,b.indexOf(":")+1,null)),""!=a&&this.parent.responseHeaders.push(new sp(a,b))}this.parent.responseStatus=this.request.status},__loadData:function(a,
b){var c=this;this.binary=!0;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)?(a=null,""==c.request.responseType?null!=c.request.responseText&&(a=Qa.ofString(c.request.responseText)):null!=c.request.response&&(a=Qa.ofData(c.request.response)),c.processResponse(),b.complete(a)):(c.processResponse(),b.error(c.request.status)),c.request=null,Fa.activeRequests--,
Fa.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(c.request.status)),c.request=null,Fa.activeRequests--,Fa.processQueue())})},__class__:Fa};var cb=function(a){this.inputing=!1;this.unusedTouchesPool=
new hb;this.scale=1;this.currentTouches=new Bc;this.parent=a;this.cursor=sb.DEFAULT;this.cacheMouseY=this.cacheMouseX=0;var b=a.__attributes;Object.prototype.hasOwnProperty.call(b,"context")||(b.context={});b.context.type="dom";b.context.version="";this.renderType=b.context.type;Object.prototype.hasOwnProperty.call(b,"element")&&(a.element=b.element);var c=a.element;Object.prototype.hasOwnProperty.call(b,"allowHighDPI")&&b.allowHighDPI&&"dom"!=this.renderType&&(this.scale=window.devicePixelRatio);
a.__scale=this.scale;this.setWidth=Object.prototype.hasOwnProperty.call(b,"width")?b.width:0;this.setHeight=Object.prototype.hasOwnProperty.call(b,"height")?b.height:0;a.__width=this.setWidth;a.__height=this.setHeight;a.id=cb.windowID++;c instanceof HTMLCanvasElement?this.canvas=c:"dom"==this.renderType?this.div=window.document.createElement("div"):this.canvas=window.document.createElement("canvas");if(null!=this.canvas){var d=this.canvas.style;d.setProperty("-webkit-transform","translateZ(0)",null);
d.setProperty("transform","translateZ(0)",null)}else null!=this.div&&(d=this.div.style,d.setProperty("-webkit-transform","translate3D(0,0,0)",null),d.setProperty("transform","translate3D(0,0,0)",null),d.position="relative",d.overflow="hidden",d.setProperty("-webkit-user-select","none",null),d.setProperty("-moz-user-select","none",null),d.setProperty("-ms-user-select","none",null),d.setProperty("-o-user-select","none",null));0==a.__width&&0==a.__height&&(null!=c?(a.__width=c.clientWidth,a.__height=
c.clientHeight):(a.__width=window.innerWidth,a.__height=window.innerHeight),this.cacheElementWidth=a.__width,this.cacheElementHeight=a.__height,this.resizeElement=!0);null!=this.canvas?(this.canvas.width=Math.round(a.__width*this.scale),this.canvas.height=Math.round(a.__height*this.scale),this.canvas.style.width=a.__width+"px",this.canvas.style.height=a.__height+"px"):(this.div.style.width=a.__width+"px",this.div.style.height=a.__height+"px");if(Object.prototype.hasOwnProperty.call(b,"resizable")&&
b.resizable||!Object.prototype.hasOwnProperty.call(b,"width")&&0==this.setWidth&&0==this.setHeight)a.__resizable=!0;this.updateSize();if(null!=c){null!=this.canvas?c!=this.canvas&&c.appendChild(this.canvas):c.appendChild(this.div);b="mousedown mouseenter mouseleave mousemove mouseup wheel".split(" ");for(d=0;d<b.length;){var e=b[d];++d;c.addEventListener(e,k(this,this.handleMouseEvent),!0)}c.addEventListener("contextmenu",k(this,this.handleContextMenuEvent),!0);c.addEventListener("dragstart",k(this,
this.handleDragEvent),!0);c.addEventListener("dragover",k(this,this.handleDragEvent),!0);c.addEventListener("drop",k(this,this.handleDragEvent),!0);c.addEventListener("touchstart",k(this,this.handleTouchEvent),!0);c.addEventListener("touchmove",k(this,this.handleTouchEvent),!0);c.addEventListener("touchend",k(this,this.handleTouchEvent),!0);c.addEventListener("touchcancel",k(this,this.handleTouchEvent),!0);c.addEventListener("gamepadconnected",k(this,this.handleGamepadEvent),!0);c.addEventListener("gamepaddisconnected",
k(this,this.handleGamepadEvent),!0)}this.createContext();"webgl"==a.context.type&&(this.canvas.addEventListener("webglcontextlost",k(this,this.handleContextEvent),!1),this.canvas.addEventListener("webglcontextrestored",k(this,this.handleContextEvent),!1))};g["lime._internal.backend.html5.HTML5Window"]=cb;cb.__name__="lime._internal.backend.html5.HTML5Window";cb.prototype={canvas:null,div:null,cacheElementHeight:null,cacheElementWidth:null,cacheMouseX:null,cacheMouseY:null,cursor:null,currentTouches:null,
isFullscreen:null,parent:null,primaryTouch:null,renderType:null,requestedFullscreen:null,resizeElement:null,scale:null,setHeight:null,setWidth:null,textInputEnabled:null,unusedTouchesPool:null,alert:function(a,b){null!=a&&window.alert(B.string(a))},close:function(){this.parent.application.__removeWindow(this.parent)},createContext:function(){var a=new Ls,b=this.parent.__attributes.context;a.window=this.parent;a.attributes=b;if(null!=this.div)a.dom=this.div,a.type="dom",a.version="";else if(null!=
this.canvas){var c=null,d="canvas"==this.renderType,e="opengl"==this.renderType||"opengles"==this.renderType||"webgl"==this.renderType,f=!Object.prototype.hasOwnProperty.call(b,"version")||"1"!=b.version,h=!1;if(e||!d&&(!Object.prototype.hasOwnProperty.call(b,"hardware")||b.hardware)){d=Object.prototype.hasOwnProperty.call(b,"background")&&null==b.background;e=Object.prototype.hasOwnProperty.call(b,"colorDepth")?b.colorDepth:16;var l=Object.prototype.hasOwnProperty.call(b,"antialiasing")&&0<b.antialiasing,
m=Object.prototype.hasOwnProperty.call(b,"depth")?b.depth:!0;b=Object.prototype.hasOwnProperty.call(b,"stencil")&&b.stencil;b={alpha:d||16<e,antialias:l,depth:m,premultipliedAlpha:!0,stencil:b,preserveDrawingBuffer:!1,failIfMajorPerformanceCaveat:!1};d=["webgl","experimental-webgl"];f&&d.unshift("webgl2");for(f=0;f<d.length&&(e=d[f],++f,c=this.canvas.getContext(e,b),null!=c&&"webgl2"==e&&(h=!0),null==c););}null==c?(a.canvas2D=this.canvas.getContext("2d"),a.type="canvas",a.version=""):(a.webgl=cc.fromWebGL2RenderContext(c),
h&&(a.webgl2=c),null==q.context&&(q.context=c,q.type="webgl",q.version=h?2:1),a.type="webgl",a.version=h?"2":"1")}this.parent.context=a},focus:function(){},getCursor:function(){return this.cursor},getDisplay:function(){return Ka.getDisplay(0)},getDisplayMode:function(){return Ka.getDisplay(0).currentMode},getFrameRate:function(){return null==this.parent.application?0:0>this.parent.application.__backend.framePeriod?60:1E3==this.parent.application.__backend.framePeriod?0:1E3/this.parent.application.__backend.framePeriod},
getMouseLock:function(){return!1},getTextInputEnabled:function(){return this.textInputEnabled},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){a.clipboardData.setData("text/plain",Rd.get_text());a.cancelable&&a.preventDefault()},handleDragEvent:function(a){switch(a.type){case "dragover":return a.preventDefault(),!1;case "dragstart":if("img"==N.__cast(a.target,HTMLElement).nodeName.toLowerCase()&&a.cancelable)return a.preventDefault(),!1;break;case "drop":if(null!=a.dataTransfer&&0<a.dataTransfer.files.length)return this.parent.onDropFile.dispatch(a.dataTransfer.files),a.preventDefault(),
!1}return!0},handleFocusEvent:function(a){var b=this;this.textInputEnabled&&(null==a.relatedTarget||this.isDescendent(a.relatedTarget))&&Qb.delay(function(){b.textInputEnabled&&cb.textInput.focus()},20)},handleFullscreenEvent:function(a){if(null!=(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement))this.isFullscreen=!0,this.parent.__fullscreen=!0,this.requestedFullscreen&&(this.requestedFullscreen=!1,this.parent.onFullscreen.dispatch());
else{this.isFullscreen=!1;this.parent.__fullscreen=!1;this.parent.onRestore.dispatch();a=["fullscreenchange","mozfullscreenchange","webkitfullscreenchange","MSFullscreenChange"];for(var b=["fullscreenerror","mozfullscreenerror","webkitfullscreenerror","MSFullscreenError"],c=0,d=a.length;c<d;){var e=c++;window.document.removeEventListener(a[e],k(this,this.handleFullscreenEvent),!1);window.document.removeEventListener(b[e],k(this,this.handleFullscreenEvent),!1)}}},handleGamepadEvent:function(a){switch(a.type){case "gamepadconnected":Cc.__connect(a.gamepad.index);
"standard"==a.gamepad.mapping&&dd.__connect(a.gamepad.index);break;case "gamepaddisconnected":Cc.__disconnect(a.gamepad.index),dd.__disconnect(a.gamepad.index)}},handleInputEvent:function(a){this.inputing||cb.textInput.value==cb.dummyCharacter||(a=ia.replace(cb.textInput.value,cb.dummyCharacter,""),0<a.length&&this.parent.onTextInput.dispatch(a),cb.textInput.value=cb.dummyCharacter)},handleMouseEvent:function(a){if("wheel"!=a.type){if(null!=this.parent.element)if(null!=this.canvas){var b=this.canvas.getBoundingClientRect();
var c=this.parent.__width/b.width*(a.clientX-b.left);b=this.parent.__height/b.height*(a.clientY-b.top)}else null!=this.div?(b=this.div.getBoundingClientRect(),2<window.devicePixelRatio?(c=(a.clientX-b.left)*(parseFloat(this.parent.__backend.div.style.width)/b.width),b=(a.clientY-b.top)*(parseFloat(this.parent.__backend.div.style.height)/b.height)):(c=a.clientX-b.left,b=a.clientY-b.top)):(b=this.parent.element.getBoundingClientRect(),c=this.parent.__width/b.width*(a.clientX-b.left),b=this.parent.__height/
b.height*(a.clientY-b.top));else c=a.clientX,b=a.clientY;switch(a.type){case "mousedown":a.currentTarget==this.parent.element&&window.addEventListener("mouseup",k(this,this.handleMouseEvent));this.parent.onMouseDown.dispatch(c,b,a.button);this.parent.onMouseDown.canceled&&a.cancelable&&a.preventDefault();break;case "mouseenter":a.target==this.parent.element&&(this.parent.onEnter.dispatch(),this.parent.onEnter.canceled&&a.cancelable&&a.preventDefault());break;case "mouseleave":a.target==this.parent.element&&
(this.parent.onLeave.dispatch(),this.parent.onLeave.canceled&&a.cancelable&&a.preventDefault());break;case "mousemove":if(c!=this.cacheMouseX||b!=this.cacheMouseY)this.parent.onMouseMove.dispatch(c,b),this.parent.onMouseMoveRelative.dispatch(c-this.cacheMouseX,b-this.cacheMouseY),(this.parent.onMouseMove.canceled||this.parent.onMouseMoveRelative.canceled)&&a.cancelable&&a.preventDefault();break;case "mouseup":window.removeEventListener("mouseup",k(this,this.handleMouseEvent)),a.currentTarget==this.parent.element&&
a.stopPropagation(),this.parent.onMouseUp.dispatch(c,b,a.button),this.parent.onMouseUp.canceled&&a.cancelable&&a.preventDefault()}this.cacheMouseX=c;this.cacheMouseY=b}else{switch(a.deltaMode){case 0:c=Hf.PIXELS;break;case 1:c=Hf.LINES;break;case 2:c=Hf.PAGES;break;default:c=Hf.UNKNOWN}this.parent.onMouseWheel.dispatch(a.deltaX,-a.deltaY,c);this.parent.onMouseWheel.canceled&&a.cancelable&&a.preventDefault()}},handlePasteEvent:function(a){if(-1<a.clipboardData.types.indexOf("text/plain")){var b=a.clipboardData.getData("text/plain");
Rd.set_text(b);this.textInputEnabled&&this.parent.onTextInput.dispatch(b);a.cancelable&&a.preventDefault()}},handleResizeEvent:function(a){this.primaryTouch=null;this.updateSize()},handleTouchEvent:function(a){a.cancelable&&a.preventDefault();var b=null;null!=this.parent.element&&(b=null!=this.canvas?this.canvas.getBoundingClientRect():null!=this.div?this.div.getBoundingClientRect():this.parent.element.getBoundingClientRect());var c=this.setWidth,d=this.setHeight;if(0==c||0==d)null!=b?(c=b.width,
d=b.height):d=c=1;for(var e,f,h,l,m,t=0,k=a.changedTouches;t<k.length;){var n=k[t];++t;if(null!=b){if(f=n.clientX-b.left,h=n.clientY-b.top,null!=this.canvas||null==this.div||2<window.devicePixelRatio)f*=c/b.width,h*=d/b.height}else f=n.clientX,h=n.clientY;if("touchstart"==a.type){e=this.unusedTouchesPool.pop();null==e?e=new Qc(f/c,h/d,n.identifier,0,0,n.force,this.parent.id):(e.x=f/c,e.y=h/d,e.id=n.identifier,e.dx=0,e.dy=0,e.pressure=n.force,e.device=this.parent.id);this.currentTouches.h[n.identifier]=
e;Qc.onStart.dispatch(e);if(null==this.primaryTouch||1==vb.count(this.currentTouches)||null!=a.touches&&1==a.touches.length)this.primaryTouch=e;e==this.primaryTouch&&this.parent.onMouseDown.dispatch(f,h,0)}else if(e=this.currentTouches.h[n.identifier],null!=e)switch(l=e.x,m=e.y,e.x=f/c,e.y=h/d,e.dx=e.x-l,e.dy=e.y-m,e.pressure=n.force,a.type){case "touchcancel":Qc.onCancel.dispatch(e);this.currentTouches.remove(n.identifier);this.unusedTouchesPool.add(e);e==this.primaryTouch&&(this.primaryTouch=null);
break;case "touchend":Qc.onEnd.dispatch(e);this.currentTouches.remove(n.identifier);this.unusedTouchesPool.add(e);e==this.primaryTouch&&(this.parent.onMouseUp.dispatch(f,h,0),this.primaryTouch=null);break;case "touchmove":Qc.onMove.dispatch(e),e==this.primaryTouch&&this.parent.onMouseMove.dispatch(f,h)}}},isDescendent:function(a){if(a==this.parent.element)return!0;for(;null!=a;){if(a.parentNode==this.parent.element)return!0;a=a.parentNode}return!1},move:function(a,b){},readPixels:function(a){if(null!=
this.canvas){var b=new qd(0,0,this.canvas.width,this.canvas.height);null==a?a=b:a.intersection(b,a);if(0<a.width&&0<a.height)return b=window.document.createElement("canvas"),b.width=a.width|0,b.height=a.height|0,b.getContext("2d").drawImage(this.canvas,-a.x,-a.y),Lb.fromCanvas(b)}return null},resize:function(a,b){},setBorderless:function(a){return a},setClipboard:function(a){null==cb.textArea&&(cb.textArea=window.document.createElement("textarea"),cb.textArea.style.height="0px",cb.textArea.style.left=
"-100px",cb.textArea.style.opacity="0",cb.textArea.style.position="fixed",cb.textArea.style.top="-100px",cb.textArea.style.width="0px",window.document.body.appendChild(cb.textArea));cb.textArea.value=a;cb.textArea.focus();cb.textArea.select();window.document.queryCommandEnabled("copy")&&window.document.execCommand("copy")},setCursor:function(a){if(this.cursor!=a){if(null==a)this.parent.element.style.cursor="none";else{switch(a._hx_index){case 0:var b="default";break;case 1:b="crosshair";break;case 3:b=
"move";break;case 4:b="pointer";break;case 5:b="nesw-resize";break;case 6:b="ns-resize";break;case 7:b="nwse-resize";break;case 8:b="ew-resize";break;case 9:b="text";break;case 10:b="wait";break;case 11:b="wait";break;default:b="auto"}this.parent.element.style.cursor=b}this.cursor=a}return this.cursor},setDisplayMode:function(a){return a},setFrameRate:function(a){null!=this.parent.application&&(60<=a?this.parent==this.parent.application.__window&&(this.parent.application.__backend.framePeriod=-1):
0<a?this.parent==this.parent.application.__window&&(this.parent.application.__backend.framePeriod=1E3/a):this.parent==this.parent.application.__window&&(this.parent.application.__backend.framePeriod=1E3));return a},setFullscreen:function(a){a?this.requestedFullscreen||this.isFullscreen||(this.requestedFullscreen=!0,(x=this.parent.element,k(x,x.requestFullscreen))?(document.addEventListener("fullscreenchange",k(this,this.handleFullscreenEvent),!1),document.addEventListener("fullscreenerror",k(this,
this.handleFullscreenEvent),!1),this.parent.element.requestFullscreen()):this.parent.element.mozRequestFullScreen?(document.addEventListener("mozfullscreenchange",k(this,this.handleFullscreenEvent),!1),document.addEventListener("mozfullscreenerror",k(this,this.handleFullscreenEvent),!1),this.parent.element.mozRequestFullScreen()):this.parent.element.webkitRequestFullscreen?(document.addEventListener("webkitfullscreenchange",k(this,this.handleFullscreenEvent),!1),document.addEventListener("webkitfullscreenerror",
k(this,this.handleFullscreenEvent),!1),this.parent.element.webkitRequestFullscreen()):this.parent.element.msRequestFullscreen&&(document.addEventListener("MSFullscreenChange",k(this,this.handleFullscreenEvent),!1),document.addEventListener("MSFullscreenError",k(this,this.handleFullscreenEvent),!1),this.parent.element.msRequestFullscreen())):this.isFullscreen&&(this.requestedFullscreen=!1,document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():
document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen());return a},setIcon:function(a){ua.convertToCanvas(a);var b=window.document.querySelector("link[rel*='icon']");null==b&&(b=window.document.createElement("link"));b.type="image/x-icon";b.rel="shortcut icon";b.href=a.buffer.get_src().toDataURL("image/x-icon");window.document.getElementsByTagName("head")[0].appendChild(b)},setMaximized:function(a){return!1},setMinimized:function(a){return!1},
setMouseLock:function(a){},setResizable:function(a){return a},setTextInputEnabled:function(a){a?(null==cb.textInput&&(cb.textInput=window.document.createElement("input"),cb.textInput.type="text",cb.textInput.style.position="absolute",cb.textInput.style.opacity="0",cb.textInput.style.color="transparent",cb.textInput.value=cb.dummyCharacter,cb.textInput.autocapitalize="off",cb.textInput.autocorrect="off",cb.textInput.autocomplete="off",cb.textInput.style.left="0px",cb.textInput.style.top="50%",(new fa("(iPad|iPhone|iPod).*OS 8_",
"gi")).match(window.navigator.userAgent)?(cb.textInput.style.fontSize="0px",cb.textInput.style.width="0px",cb.textInput.style.height="0px"):(cb.textInput.style.width="1px",cb.textInput.style.height="1px"),cb.textInput.style.pointerEvents="none",cb.textInput.style.zIndex="-10000000"),null==cb.textInput.parentNode&&this.parent.element.appendChild(cb.textInput),this.textInputEnabled||(cb.textInput.addEventListener("input",k(this,this.handleInputEvent),!0),cb.textInput.addEventListener("blur",k(this,
this.handleFocusEvent),!0),cb.textInput.addEventListener("cut",k(this,this.handleCutOrCopyEvent),!0),cb.textInput.addEventListener("copy",k(this,this.handleCutOrCopyEvent),!0),cb.textInput.addEventListener("paste",k(this,this.handlePasteEvent),!0),cb.textInput.addEventListener("compositionstart",k(this,this.handleCompositionstartEvent),!0),cb.textInput.addEventListener("compositionend",k(this,this.handleCompositionendEvent),!0)),cb.textInput.focus(),cb.textInput.select()):null!=cb.textInput&&(cb.textInput.removeEventListener("input",
k(this,this.handleInputEvent),!0),cb.textInput.removeEventListener("blur",k(this,this.handleFocusEvent),!0),cb.textInput.removeEventListener("cut",k(this,this.handleCutOrCopyEvent),!0),cb.textInput.removeEventListener("copy",k(this,this.handleCutOrCopyEvent),!0),cb.textInput.removeEventListener("paste",k(this,this.handlePasteEvent),!0),cb.textInput.removeEventListener("compositionstart",k(this,this.handleCompositionstartEvent),!0),cb.textInput.removeEventListener("compositionend",k(this,this.handleCompositionendEvent),
!0),cb.textInput.blur());return this.textInputEnabled=a},inputing:null,handleCompositionstartEvent:function(a){this.inputing=!0},handleCompositionendEvent:function(a){this.inputing=!1;this.handleInputEvent(a)},setTitle:function(a){null!=a&&(window.document.title=a);return a},updateSize:function(){if(this.parent.__resizable){if(null!=this.parent.element){var a=this.parent.element.clientWidth;var b=this.parent.element.clientHeight}else a=window.innerWidth,b=window.innerHeight;if(a!=this.cacheElementWidth||
b!=this.cacheElementHeight){this.cacheElementWidth=a;this.cacheElementHeight=b;var c=this.resizeElement||0==this.setWidth&&0==this.setHeight;if(null!=this.parent.element&&(null==this.div||null!=this.div&&c))if(c){if(this.parent.__width!=a||this.parent.__height!=b)this.parent.__width=a,this.parent.__height=b,null!=this.canvas?this.parent.element!=this.canvas&&(this.canvas.width=Math.round(a*this.scale),this.canvas.height=Math.round(b*this.scale),this.canvas.style.width=a+"px",this.canvas.style.height=
b+"px"):(this.div.style.width=a+"px",this.div.style.height=b+"px"),this.parent.onResize.dispatch(a,b)}else{c=0!=this.setWidth?a/this.setWidth:1;var d=0!=this.setHeight?b/this.setHeight:1,e=a,f=b,h=0,l=0;c<d?(f=Math.floor(this.setHeight*c),l=Math.floor((b-f)/2)):(e=Math.floor(this.setWidth*d),h=Math.floor((a-e)/2));null!=this.canvas?this.parent.element!=this.canvas&&(this.canvas.style.width=e+"px",this.canvas.style.height=f+"px",this.canvas.style.marginLeft=h+"px",this.canvas.style.marginTop=l+"px"):
(this.div.style.width=e+"px",this.div.style.height=f+"px",this.div.style.marginLeft=h+"px",this.div.style.marginTop=l+"px")}}}},warpMouse:function(a,b){},__class__:cb};var Nu=function(){};g["lime._internal.backend.native.NativeCFFI"]=Nu;Nu.__name__="lime._internal.backend.native.NativeCFFI";var Yt=function(){};g["lime._internal.format.BMP"]=Yt;Yt.__name__="lime._internal.format.BMP";Yt.encode=function(a,b){if(a.get_premultiplied()||0!=a.get_format())a=a.clone(),a.set_premultiplied(!1),a.set_format(0);
null==b&&(b=Sg.RGB);var c=14,d=40,e=a.width*a.height*4;if(null!=b)switch(b._hx_index){case 0:e=(3*a.width+3*a.width%4)*a.height;break;case 1:d=108;break;case 2:c=0,e+=a.width*a.height}var f=new Qa(new ArrayBuffer(c+d+e)),h=0;0<c&&(f.b[h++]=66,f.b[h++]=77,f.setInt32(h,f.length),h+=4,f.setUInt16(h,0),h+=2,f.setUInt16(h,0),h+=2,f.setInt32(h,c+d),h+=4);f.setInt32(h,d);h+=4;f.setInt32(h,a.width);h+=4;f.setInt32(h,b==Sg.ICO?2*a.height:a.height);h+=4;f.setUInt16(h,1);h+=2;f.setUInt16(h,b==Sg.RGB?24:32);
h+=2;f.setInt32(h,b==Sg.BITFIELD?3:0);h+=4;f.setInt32(h,e);h+=4;f.setInt32(h,11824);h+=4;f.setInt32(h,11824);h+=4;f.setInt32(h,0);h+=4;f.setInt32(h,0);h+=4;if(b==Sg.BITFIELD)for(f.setInt32(h,16711680),h+=4,f.setInt32(h,65280),h+=4,f.setInt32(h,255),h+=4,f.setInt32(h,-16777216),h+=4,f.b[h++]=32,f.b[h++]=110,f.b[h++]=105,f.b[h++]=87,c=0;48>c;)c++,f.b[h++]=0;d=a.getPixels(new qd(0,0,a.width,a.height),1);if(null!=b)switch(b._hx_index){case 0:c=0;for(b=a.height;c<b;){var l=c++;l=4*(a.height-1-l)*a.width;
for(var m=0,t=a.width;m<t;){m++;l++;var k=d.b[l++];var n=d.b[l++];var g=d.b[l++];f.b[h++]=g&255;f.b[h++]=n&255;f.b[h++]=k&255}e=0;for(var q=3*a.width%4;e<q;)e++,f.b[h++]=0}break;case 1:c=0;for(b=a.height;c<b;)for(l=c++,l=4*(a.height-1-l)*a.width,m=0,t=a.width;m<t;){m++;var p=d.b[l++];k=d.b[l++];n=d.b[l++];g=d.b[l++];f.b[h++]=g&255;f.b[h++]=n&255;f.b[h++]=k&255;f.b[h++]=p&255}break;case 2:e=new Qa(new ArrayBuffer(a.width*a.height));c=q=0;for(b=a.height;c<b;)for(l=c++,l=4*(a.height-1-l)*a.width,m=0,
t=a.width;m<t;)m++,p=d.b[l++],k=d.b[l++],n=d.b[l++],g=d.b[l++],f.b[h++]=g&255,f.b[h++]=n&255,f.b[h++]=k&255,f.b[h++]=p&255,e.b[q++]=0;f.blit(h,e,0,a.width*a.height)}return f};var Sg=P["lime._internal.format.BMPType"]={__ename__:"lime._internal.format.BMPType",__constructs__:null,RGB:{_hx_name:"RGB",_hx_index:0,__enum__:"lime._internal.format.BMPType",toString:v},BITFIELD:{_hx_name:"BITFIELD",_hx_index:1,__enum__:"lime._internal.format.BMPType",toString:v},ICO:{_hx_name:"ICO",_hx_index:2,__enum__:"lime._internal.format.BMPType",
toString:v}};Sg.__constructs__=[Sg.RGB,Sg.BITFIELD,Sg.ICO];Sg.__empty_constructs__=[Sg.RGB,Sg.BITFIELD,Sg.ICO];var lg=function(){};g["lime._internal.format.Base64"]=lg;lg.__name__="lime._internal.format.Base64";lg.decode=function(a){return Mk.decode(a)};lg.encode=function(a){var b=[],c=lg.DICTIONARY,d=lg.EXTENDED_DICTIONARY,e=a.length,f=Math.floor(e/3),h=2*f;b.length=2*Math.ceil(e/3);for(var l=0,m=0,t;m<h;)t=a.b[l]<<16|a.b[l+1]<<8|a.b[l+2],b[m]=d[t>>12&4095],b[m+1]=d[t&4095],l+=3,m+=2;switch(e-3*
f){case 1:t=a.b[l]<<16;b[m]=d[t>>12&4095];b[m+1]="==";break;case 2:t=a.b[l]<<16|a.b[l+1]<<8,b[m]=d[t>>12&4095],b[m+1]=c[t>>6&63]+"="}return b.join("")};var zp=function(){};g["lime._internal.format.Deflate"]=zp;zp.__name__="lime._internal.format.Deflate";zp.compress=function(a){a=pako.deflateRaw(a.b.bufferValue);return Qa.ofData(a)};zp.decompress=function(a){a=pako.inflateRaw(a.b.bufferValue);return Qa.ofData(a)};var Ap=function(){};g["lime._internal.format.GZip"]=Ap;Ap.__name__="lime._internal.format.GZip";
Ap.compress=function(a){a=pako.gzip(a.b.bufferValue);return Qa.ofData(a)};Ap.decompress=function(a){a=pako.ungzip(a.b.bufferValue);return Qa.ofData(a)};var Bp=function(){};g["lime._internal.format.JPEG"]=Bp;Bp.__name__="lime._internal.format.JPEG";Bp.decodeBytes=function(a,b){return null};Bp.decodeFile=function(a,b){return null};Bp.encode=function(a,b){if(a.get_premultiplied()||0!=a.get_format())a=a.clone(),a.set_premultiplied(!1),a.set_format(0);ua.convertToCanvas(a,!1);if(null!=a.buffer.__srcCanvas){a=
a.buffer.__srcCanvas.toDataURL("image/jpeg",b/100);a=window.atob(a.split(";base64,")[1]);b=new Qa(new ArrayBuffer(a.length));for(var c=0,d=a.length;c<d;){var e=c++;b.b[e]=G.cca(a,e)&255}return b}return null};var Cp=function(){};g["lime._internal.format.LZMA"]=Cp;Cp.__name__="lime._internal.format.LZMA";Cp.compress=function(a){return null};Cp.decompress=function(a){return null};var Um=function(){};g["lime._internal.format.PNG"]=Um;Um.__name__="lime._internal.format.PNG";Um.decodeBytes=function(a,b){return null};
Um.decodeFile=function(a,b){return null};Um.encode=function(a){if(a.get_premultiplied()||0!=a.get_format())a=a.clone(),a.set_premultiplied(!1),a.set_format(0);ua.convertToCanvas(a,!1);if(null!=a.buffer.__srcCanvas){a=a.buffer.__srcCanvas.toDataURL("image/png");a=window.atob(a.split(";base64,")[1]);for(var b=new Qa(new ArrayBuffer(a.length)),c=0,d=a.length;c<d;){var e=c++;b.b[e]=G.cca(a,e)&255}return b}return null};var Dp=function(){};g["lime._internal.format.Zlib"]=Dp;Dp.__name__="lime._internal.format.Zlib";
Dp.compress=function(a){a=pako.deflate(a.b.bufferValue);return Qa.ofData(a)};Dp.decompress=function(a){a=pako.inflate(a.b.bufferValue);return Qa.ofData(a)};var ua=function(){};g["lime._internal.graphics.ImageCanvasUtil"]=ua;ua.__name__="lime._internal.graphics.ImageCanvasUtil";ua.colorTransform=function(a,b,c){ua.convertToData(a);Ga.colorTransform(a,b,c)};ua.convertToCanvas=function(a,b){null==b&&(b=!1);var c=a.buffer;null!=c.__srcImage?(null==c.__srcCanvas&&(ua.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),ua.createCanvas(a,c.width,c.height),ua.createImageData(a),c.__srcContext.putImageData(c.__srcImageData,0,0)):a.type==hd.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=hd.CANVAS};ua.convertToData=
function(a,b){null==b&&(b=!1);var c=a.buffer;null!=c.__srcImage&&ua.convertToCanvas(a);if(null!=c.__srcCanvas&&null==c.data)ua.createImageData(a),a.type==hd.CANVAS&&(a.dirty=!1);else if(a.type==hd.CANVAS&&null!=c.__srcCanvas&&a.dirty){if(null==c.__srcImageData)ua.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=hd.DATA};ua.copyChannel=function(a,b,c,d,e,f){ua.convertToData(b);ua.convertToData(a);Ga.copyChannel(a,b,c,d,e,f)};ua.copyPixels=function(a,b,c,d,e,f,h){null==h&&(h=!1);null==d||d.x>=a.width||d.y>=a.height||null==c||1>c.width||1>c.height||(null!=e&&e.get_transparent()&&(null==f&&(f=new id),b=b.clone(),b.copyChannel(e,new qd(c.x+f.x,c.y+f.y,c.width,c.height),new id(c.x,c.y),Kd.ALPHA,Kd.ALPHA)),ua.convertToCanvas(a,!0),h||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),ua.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++)};ua.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})))};ua.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}};ua.fillRect=function(a,b,c,d){ua.convertToCanvas(a);if(1==d){d=c>>16&255;var e=c>>8&255;var f=c&255;c=a.get_transparent()?c>>24&255:255}else d=c>>24&255,e=c>>16&255,f=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<c&&(a.buffer.__srcContext.fillStyle=
"rgba("+d+", "+e+", "+f+", "+c/255+")",a.buffer.__srcContext.fillRect(b.x+a.offsetX,b.y+a.offsetY,b.width+a.offsetX,b.height+a.offsetY)),a.dirty=!0,a.version++)};ua.floodFill=function(a,b,c,d,e){ua.convertToData(a);Ga.floodFill(a,b,c,d,e)};ua.getPixel=function(a,b,c,d){ua.convertToData(a);return Ga.getPixel(a,b,c,d)};ua.getPixel32=function(a,b,c,d){ua.convertToData(a);return Ga.getPixel32(a,b,c,d)};ua.getPixels=function(a,b,c){ua.convertToData(a);return Ga.getPixels(a,b,c)};ua.merge=function(a,b,
c,d,e,f,h,l){ua.convertToData(b);ua.convertToData(a);Ga.merge(a,b,c,d,e,f,h,l)};ua.resize=function(a,b,c){var d=a.buffer;if(null==d.__srcCanvas)ua.createCanvas(a,b,c),d.__srcContext.drawImage(d.get_src(),0,0,b,c);else{ua.convertToCanvas(a,!0);var e=d.__srcCanvas;d.__srcCanvas=null;ua.createCanvas(a,b,c);d.__srcContext.drawImage(e,0,0,b,c)}d.__srcImageData=null;d.data=null;a.dirty=!0;a.version++};ua.scroll=function(a,b,c){if(0!=b%a.width||0!=c%a.height){var d=a.clone();ua.convertToCanvas(a,!0);a.buffer.__srcContext.clearRect(b,
c,a.width,a.height);a.buffer.__srcContext.drawImage(d.get_src(),b,c);a.dirty=!0;a.version++}};ua.setPixel=function(a,b,c,d,e){ua.convertToData(a);Ga.setPixel(a,b,c,d,e)};ua.setPixel32=function(a,b,c,d,e){ua.convertToData(a);Ga.setPixel32(a,b,c,d,e)};ua.setPixels=function(a,b,c,d,e){ua.convertToData(a);Ga.setPixels(a,b,c,d,e)};ua.sync=function(a,b){null!=a&&(a.type!=hd.CANVAS||null==a.buffer.__srcCanvas&&null==a.buffer.data?a.type==hd.DATA&&ua.convertToData(a,b):ua.convertToCanvas(a,b))};var Ga=function(){};
g["lime._internal.graphics.ImageDataUtil"]=Ga;Ga.__name__="lime._internal.graphics.ImageDataUtil";Ga.displaceMap=function(a,b,c,d,e,f,h){var l=a.buffer.data,m=b.buffer.data,t=c.buffer.data,k=a.buffer.format,n=b.buffer.format,g=c.buffer.format,q=a.get_premultiplied(),p=b.get_premultiplied(),r=c.get_premultiplied();b=new re(b);c=new re(c);for(var A,v,u=0,z=0,x,w,U,X=0,B=0,P=0,F=0,D,Ha=0,C=b.height;Ha<C;){var G=Ha++;A=b.byteOffset+b.stride*G;for(var y=0,J=b.width;y<J;){var H=y++;v=A+4*H;U=d.x|0;x=d.y|
0;if(h){z=b.byteOffset+b.stride*(G-x+1)+4*(H-U);w=g;D=r;null==D&&(D=!1);null==w&&(w=0);switch(w){case 0:X=(t[z]&255)<<24|(t[z+1]&255)<<16|(t[z+2]&255)<<8|t[z+3]&255;break;case 1:X=(t[z+1]&255)<<24|(t[z+2]&255)<<16|(t[z+3]&255)<<8|t[z]&255;break;case 2:X=(t[z+2]&255)<<24|(t[z+1]&255)<<16|(t[z]&255)<<8|t[z+3]&255}D&&0!=(X&255)&&255!=(X&255)&&(I.unmult=255/(X&255),X=(I.__clamp[Math.round((X>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((X>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((X>>>
8&255)*I.unmult)]&255)<<8|X&255);z=b.byteOffset+b.stride*(G-x)+4*(H-U+1);w=g;D=r;null==D&&(D=!1);null==w&&(w=0);switch(w){case 0:B=(t[z]&255)<<24|(t[z+1]&255)<<16|(t[z+2]&255)<<8|t[z+3]&255;break;case 1:B=(t[z+1]&255)<<24|(t[z+2]&255)<<16|(t[z+3]&255)<<8|t[z]&255;break;case 2:B=(t[z+2]&255)<<24|(t[z+1]&255)<<16|(t[z]&255)<<8|t[z+3]&255}D&&0!=(B&255)&&255!=(B&255)&&(I.unmult=255/(B&255),B=(I.__clamp[Math.round((B>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((B>>>16&255)*I.unmult)]&255)<<16|
(I.__clamp[Math.round((B>>>8&255)*I.unmult)]&255)<<8|B&255);z=b.byteOffset+b.stride*(G-x+1)+4*(H-U+1);w=g;D=r;null==D&&(D=!1);null==w&&(w=0);switch(w){case 0:P=(t[z]&255)<<24|(t[z+1]&255)<<16|(t[z+2]&255)<<8|t[z+3]&255;break;case 1:P=(t[z+1]&255)<<24|(t[z+2]&255)<<16|(t[z+3]&255)<<8|t[z]&255;break;case 2:P=(t[z+2]&255)<<24|(t[z+1]&255)<<16|(t[z]&255)<<8|t[z+3]&255}D&&0!=(P&255)&&255!=(P&255)&&(I.unmult=255/(P&255),P=(I.__clamp[Math.round((P>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((P>>>
16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((P>>>8&255)*I.unmult)]&255)<<8|P&255);z=b.byteOffset+b.stride*(G-x)+4*(H-U);w=g;D=r;null==D&&(D=!1);null==w&&(w=0);switch(w){case 0:F=(t[z]&255)<<24|(t[z+1]&255)<<16|(t[z+2]&255)<<8|t[z+3]&255;break;case 1:F=(t[z+1]&255)<<24|(t[z+2]&255)<<16|(t[z+3]&255)<<8|t[z]&255;break;case 2:F=(t[z+2]&255)<<24|(t[z+1]&255)<<16|(t[z]&255)<<8|t[z+3]&255}D&&0!=(F&255)&&255!=(F&255)&&(I.unmult=255/(F&255),F=(I.__clamp[Math.round((F>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((F>>>
16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((F>>>8&255)*I.unmult)]&255)<<8|F&255);z=Ga.bilinear(X,B,P,F,d.x-U,d.y-x)}else{U=c.byteOffset+c.stride*(G-x)+4*(H-U);x=g;w=r;null==w&&(w=!1);null==x&&(x=0);switch(x){case 0:z=(t[U]&255)<<24|(t[U+1]&255)<<16|(t[U+2]&255)<<8|t[U+3]&255;break;case 1:z=(t[U+1]&255)<<24|(t[U+2]&255)<<16|(t[U+3]&255)<<8|t[U]&255;break;case 2:z=(t[U+2]&255)<<24|(t[U+1]&255)<<16|(t[U]&255)<<8|t[U+3]&255}w&&0!=(z&255)&&255!=(z&255)&&(I.unmult=255/(z&255),z=(I.__clamp[Math.round((z>>>
24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((z>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((z>>>8&255)*I.unmult)]&255)<<8|z&255)}U=(z&255)/255;x=((z>>>24&255)-128)/255*U;w=((z>>>16&255)-128)/255*U;U=x*e.x+w*f.x;D=x*e.y+w*f.y;x=Math.floor(U*b.width);w=Math.floor(D*b.height);if(h){u=b.byteOffset+b.stride*(G+w+1)+4*(H+x);var L=n,Y=p;null==Y&&(Y=!1);null==L&&(L=0);switch(L){case 0:X=(m[u]&255)<<24|(m[u+1]&255)<<16|(m[u+2]&255)<<8|m[u+3]&255;break;case 1:X=(m[u+1]&255)<<24|(m[u+2]&255)<<
16|(m[u+3]&255)<<8|m[u]&255;break;case 2:X=(m[u+2]&255)<<24|(m[u+1]&255)<<16|(m[u]&255)<<8|m[u+3]&255}Y&&0!=(X&255)&&255!=(X&255)&&(I.unmult=255/(X&255),X=(I.__clamp[Math.round((X>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((X>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((X>>>8&255)*I.unmult)]&255)<<8|X&255);u=b.byteOffset+b.stride*(G+w)+4*(H+x+1);L=n;Y=p;null==Y&&(Y=!1);null==L&&(L=0);switch(L){case 0:B=(m[u]&255)<<24|(m[u+1]&255)<<16|(m[u+2]&255)<<8|m[u+3]&255;break;case 1:B=(m[u+
1]&255)<<24|(m[u+2]&255)<<16|(m[u+3]&255)<<8|m[u]&255;break;case 2:B=(m[u+2]&255)<<24|(m[u+1]&255)<<16|(m[u]&255)<<8|m[u+3]&255}Y&&0!=(B&255)&&255!=(B&255)&&(I.unmult=255/(B&255),B=(I.__clamp[Math.round((B>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((B>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((B>>>8&255)*I.unmult)]&255)<<8|B&255);u=b.byteOffset+b.stride*(G+w+1)+4*(H+x+1);L=n;Y=p;null==Y&&(Y=!1);null==L&&(L=0);switch(L){case 0:P=(m[u]&255)<<24|(m[u+1]&255)<<16|(m[u+2]&255)<<8|m[u+
3]&255;break;case 1:P=(m[u+1]&255)<<24|(m[u+2]&255)<<16|(m[u+3]&255)<<8|m[u]&255;break;case 2:P=(m[u+2]&255)<<24|(m[u+1]&255)<<16|(m[u]&255)<<8|m[u+3]&255}Y&&0!=(P&255)&&255!=(P&255)&&(I.unmult=255/(P&255),P=(I.__clamp[Math.round((P>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((P>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((P>>>8&255)*I.unmult)]&255)<<8|P&255);H=b.byteOffset+b.stride*(G+w)+4*(H+x);u=n;L=p;null==L&&(L=!1);null==u&&(u=0);switch(u){case 0:F=(m[H]&255)<<24|(m[H+1]&255)<<
16|(m[H+2]&255)<<8|m[H+3]&255;break;case 1:F=(m[H+1]&255)<<24|(m[H+2]&255)<<16|(m[H+3]&255)<<8|m[H]&255;break;case 2:F=(m[H+2]&255)<<24|(m[H+1]&255)<<16|(m[H]&255)<<8|m[H+3]&255}L&&0!=(F&255)&&255!=(F&255)&&(I.unmult=255/(F&255),F=(I.__clamp[Math.round((F>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((F>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((F>>>8&255)*I.unmult)]&255)<<8|F&255);u=Ga.bilinear(X,B,P,F,U*b.width-x,D*b.height-w)}else{H=b.byteOffset+b.stride*(G+w)+4*(H+x);U=n;x=p;null==
x&&(x=!1);null==U&&(U=0);switch(U){case 0:u=(m[H]&255)<<24|(m[H+1]&255)<<16|(m[H+2]&255)<<8|m[H+3]&255;break;case 1:u=(m[H+1]&255)<<24|(m[H+2]&255)<<16|(m[H+3]&255)<<8|m[H]&255;break;case 2:u=(m[H+2]&255)<<24|(m[H+1]&255)<<16|(m[H]&255)<<8|m[H+3]&255}x&&0!=(u&255)&&255!=(u&255)&&(I.unmult=255/(u&255),u=(I.__clamp[Math.round((u>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((u>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((u>>>8&255)*I.unmult)]&255)<<8|u&255)}H=k;U=q;null==U&&(U=!1);null==
H&&(H=0);U&&(0==(u&255)?0!=u&&(u=0):255!=(u&255)&&(I.a16=I.__alpha16[u&255],u=((u>>>24&255)*I.a16>>16&255)<<24|((u>>>16&255)*I.a16>>16&255)<<16|((u>>>8&255)*I.a16>>16&255)<<8|u&255));switch(H){case 0:l[v]=u>>>24&255;l[v+1]=u>>>16&255;l[v+2]=u>>>8&255;l[v+3]=u&255;break;case 1:l[v]=u&255;l[v+1]=u>>>24&255;l[v+2]=u>>>16&255;l[v+3]=u>>>8&255;break;case 2:l[v]=u>>>8&255,l[v+1]=u>>>16&255,l[v+2]=u>>>24&255,l[v+3]=u&255}}}a.dirty=!0;a.version++};Ga.bilinear=function(a,b,c,d,e,f){return Ga.lerpRGBA(Ga.lerpRGBA(d,
b,e),Ga.lerpRGBA(a,c,e),f)};Ga.lerpRGBA=function(a,b,c){var d=0,e=Math.floor(Ga.lerp(a>>>24&255,b>>>24&255,c));d=(e&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|d&255;e=Math.floor(Ga.lerp(a>>>16&255,b>>>16&255,c));d=(d>>>24&255)<<24|(e&255)<<16|(d>>>8&255)<<8|d&255;e=Math.floor(Ga.lerp(a>>>8&255,b>>>8&255,c));d=(d>>>24&255)<<24|(d>>>16&255)<<16|(e&255)<<8|d&255;e=Math.floor(Ga.lerp(a&255,b&255,c));return(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|e&255};Ga.lerp4f=function(a,b,c){return new jc(Ga.lerp(a.x,
b.x,c),Ga.lerp(a.y,b.y,c),Ga.lerp(a.z,b.z,c),Ga.lerp(a.w,b.w,c))};Ga.lerp=function(a,b,c){return(1-c)*a+c*b};Ga.colorTransform=function(a,b,c){var d=a.buffer.data;if(null!=d){var e=a.buffer.format,f=a.buffer.premultiplied;b=new re(a,b);var h=jd.getAlphaTable(c),l=jd.getRedTable(c),m=jd.getGreenTable(c);c=jd.getBlueTable(c);for(var t,k,n=0,g=0,q=b.height;g<q;){t=g++;t=b.byteOffset+b.stride*t;for(var p=0,r=b.width;p<r;){k=p++;k=t+4*k;var A=e,v=f;null==v&&(v=!1);null==A&&(A=0);switch(A){case 0:n=(d[k]&
255)<<24|(d[k+1]&255)<<16|(d[k+2]&255)<<8|d[k+3]&255;break;case 1:n=(d[k+1]&255)<<24|(d[k+2]&255)<<16|(d[k+3]&255)<<8|d[k]&255;break;case 2:n=(d[k+2]&255)<<24|(d[k+1]&255)<<16|(d[k]&255)<<8|d[k+3]&255}v&&0!=(n&255)&&255!=(n&255)&&(I.unmult=255/(n&255),n=(I.__clamp[Math.round((n>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((n>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((n>>>8&255)*I.unmult)]&255)<<8|n&255);n=(l[n>>>24&255]&255)<<24|(m[n>>>16&255]&255)<<16|(c[n>>>8&255]&255)<<8|h[n&255]&
255;A=e;v=f;null==v&&(v=!1);null==A&&(A=0);v&&(0==(n&255)?0!=n&&(n=0):255!=(n&255)&&(I.a16=I.__alpha16[n&255],n=((n>>>24&255)*I.a16>>16&255)<<24|((n>>>16&255)*I.a16>>16&255)<<16|((n>>>8&255)*I.a16>>16&255)<<8|n&255));switch(A){case 0:d[k]=n>>>24&255;d[k+1]=n>>>16&255;d[k+2]=n>>>8&255;d[k+3]=n&255;break;case 1:d[k]=n&255;d[k+1]=n>>>24&255;d[k+2]=n>>>16&255;d[k+3]=n>>>8&255;break;case 2:d[k]=n>>>8&255,d[k+1]=n>>>16&255,d[k+2]=n>>>24&255,d[k+3]=n&255}}}a.dirty=!0;a.version++}};Ga.copyChannel=function(a,
b,c,d,e,f){switch(f._hx_index){case 0:var h=0;break;case 1:h=1;break;case 2:h=2;break;case 3:h=3}switch(e._hx_index){case 0:var l=0;break;case 1:l=1;break;case 2:l=2;break;case 3:l=3}e=b.buffer.data;f=a.buffer.data;if(null!=e&&null!=f){c=new re(b,c);d=new re(a,new qd(d.x,d.y,c.width,c.height));var m=b.buffer.format,t=a.buffer.format;b=b.buffer.premultiplied;for(var k=a.buffer.premultiplied,n,g,q=0,p=0,r=0,A=0,v=d.height;A<v;){g=A++;n=c.byteOffset+c.stride*g;g=d.byteOffset+d.stride*g;for(var u=0,z=
d.width;u<z;){u++;var x=m,w=b;null==w&&(w=!1);null==x&&(x=0);switch(x){case 0:q=(e[n]&255)<<24|(e[n+1]&255)<<16|(e[n+2]&255)<<8|e[n+3]&255;break;case 1:q=(e[n+1]&255)<<24|(e[n+2]&255)<<16|(e[n+3]&255)<<8|e[n]&255;break;case 2:q=(e[n+2]&255)<<24|(e[n+1]&255)<<16|(e[n]&255)<<8|e[n+3]&255}w&&0!=(q&255)&&255!=(q&255)&&(I.unmult=255/(q&255),q=(I.__clamp[Math.round((q>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((q>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((q>>>8&255)*I.unmult)]&255)<<
8|q&255);x=t;w=k;null==w&&(w=!1);null==x&&(x=0);switch(x){case 0:p=(f[g]&255)<<24|(f[g+1]&255)<<16|(f[g+2]&255)<<8|f[g+3]&255;break;case 1:p=(f[g+1]&255)<<24|(f[g+2]&255)<<16|(f[g+3]&255)<<8|f[g]&255;break;case 2:p=(f[g+2]&255)<<24|(f[g+1]&255)<<16|(f[g]&255)<<8|f[g+3]&255}w&&0!=(p&255)&&255!=(p&255)&&(I.unmult=255/(p&255),p=(I.__clamp[Math.round((p>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((p>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((p>>>8&255)*I.unmult)]&255)<<8|p&255);switch(l){case 0:r=
q>>>24&255;break;case 1:r=q>>>16&255;break;case 2:r=q>>>8&255;break;case 3:r=q&255}switch(h){case 0:p=(r&255)<<24|(p>>>16&255)<<16|(p>>>8&255)<<8|p&255;break;case 1:p=(p>>>24&255)<<24|(r&255)<<16|(p>>>8&255)<<8|p&255;break;case 2:p=(p>>>24&255)<<24|(p>>>16&255)<<16|(r&255)<<8|p&255;break;case 3:p=(p>>>24&255)<<24|(p>>>16&255)<<16|(p>>>8&255)<<8|r&255}x=t;w=k;null==w&&(w=!1);null==x&&(x=0);w&&(0==(p&255)?0!=p&&(p=0):255!=(p&255)&&(I.a16=I.__alpha16[p&255],p=((p>>>24&255)*I.a16>>16&255)<<24|((p>>>16&
255)*I.a16>>16&255)<<16|((p>>>8&255)*I.a16>>16&255)<<8|p&255));switch(x){case 0:f[g]=p>>>24&255;f[g+1]=p>>>16&255;f[g+2]=p>>>8&255;f[g+3]=p&255;break;case 1:f[g]=p&255;f[g+1]=p>>>24&255;f[g+2]=p>>>16&255;f[g+3]=p>>>8&255;break;case 2:f[g]=p>>>8&255,f[g+1]=p>>>16&255,f[g+2]=p>>>24&255,f[g+3]=p&255}n+=4;g+=4}}a.dirty=!0;a.version++}};Ga.copyPixels=function(a,b,c,d,e,f,h){null==h&&(h=!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==
e&&null==f&&0==h&&a.get_format()==b.get_format())a.buffer.data.set(b.buffer.data);else{var l=b.buffer.data,m=a.buffer.data;if(null==l||null==m)return;c=new re(b,c);var t=new qd(d.x,d.y,c.width,c.height);t=new re(a,t);var k=b.buffer.format,n=a.buffer.format,g=0,q=0,p=b.buffer.premultiplied,r=a.buffer.premultiplied,A=b.buffer.bitsPerPixel/8|0,v=a.buffer.bitsPerPixel/8|0,u=null!=e&&e.get_transparent(),z=h||u&&!a.get_transparent()||!h&&!a.get_transparent()&&b.get_transparent();if(u)if(v=e.buffer.data,
b=e.buffer.format,h=0,e=new re(e,new qd(c.x+(null==f?0:f.x),c.y+(null==f?0:f.y),c.width,c.height)),t.clip(d.x|0,d.y|0,e.width,e.height),z)for(z=0,A=t.height;z<A;)for(u=z++,d=c.byteOffset+c.stride*u,f=t.byteOffset+t.stride*u,u=e.byteOffset+e.stride*u,B=0,P=t.width;B<P;){B++;var x=k;var w=p;null==w&&(w=!1);null==x&&(x=0);switch(x){case 0:g=(l[d]&255)<<24|(l[d+1]&255)<<16|(l[d+2]&255)<<8|l[d+3]&255;break;case 1:g=(l[d+1]&255)<<24|(l[d+2]&255)<<16|(l[d+3]&255)<<8|l[d]&255;break;case 2:g=(l[d+2]&255)<<
24|(l[d+1]&255)<<16|(l[d]&255)<<8|l[d+3]&255}w&&0!=(g&255)&&255!=(g&255)&&(I.unmult=255/(g&255),g=(I.__clamp[Math.round((g>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((g>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((g>>>8&255)*I.unmult)]&255)<<8|g&255);x=n;w=r;null==w&&(w=!1);null==x&&(x=0);switch(x){case 0:q=(m[f]&255)<<24|(m[f+1]&255)<<16|(m[f+2]&255)<<8|m[f+3]&255;break;case 1:q=(m[f+1]&255)<<24|(m[f+2]&255)<<16|(m[f+3]&255)<<8|m[f]&255;break;case 2:q=(m[f+2]&255)<<24|(m[f+1]&255)<<
16|(m[f]&255)<<8|m[f+3]&255}w&&0!=(q&255)&&255!=(q&255)&&(I.unmult=255/(q&255),q=(I.__clamp[Math.round((q>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((q>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((q>>>8&255)*I.unmult)]&255)<<8|q&255);x=b;w=!1;null==w&&(w=!1);null==x&&(x=0);switch(x){case 0:h=(v[u]&255)<<24|(v[u+1]&255)<<16|(v[u+2]&255)<<8|v[u+3]&255;break;case 1:h=(v[u+1]&255)<<24|(v[u+2]&255)<<16|(v[u+3]&255)<<8|v[u]&255;break;case 2:h=(v[u+2]&255)<<24|(v[u+1]&255)<<16|(v[u]&255)<<
8|v[u+3]&255}w&&0!=(h&255)&&255!=(h&255)&&(I.unmult=255/(h&255),h=(I.__clamp[Math.round((h>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((h>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((h>>>8&255)*I.unmult)]&255)<<8|h&255);w=(h&255)/255*((g&255)/255);if(0<w){var U=(q&255)/255;var X=1-w;x=w+U*X;F=I.__clamp[Math.round(((g>>>24&255)*w+(q>>>24&255)*U*X)/x)];q=(F&255)<<24|(q>>>16&255)<<16|(q>>>8&255)<<8|q&255;F=I.__clamp[Math.round(((g>>>16&255)*w+(q>>>16&255)*U*X)/x)];q=(q>>>24&255)<<24|
(F&255)<<16|(q>>>8&255)<<8|q&255;w=I.__clamp[Math.round(((g>>>8&255)*w+(q>>>8&255)*U*X)/x)];q=(q>>>24&255)<<24|(q>>>16&255)<<16|(w&255)<<8|q&255;x=I.__clamp[Math.round(255*x)];q=(q>>>24&255)<<24|(q>>>16&255)<<16|(q>>>8&255)<<8|x&255;x=n;w=r;null==w&&(w=!1);null==x&&(x=0);w&&(0==(q&255)?0!=q&&(q=0):255!=(q&255)&&(I.a16=I.__alpha16[q&255],q=((q>>>24&255)*I.a16>>16&255)<<24|((q>>>16&255)*I.a16>>16&255)<<16|((q>>>8&255)*I.a16>>16&255)<<8|q&255));switch(x){case 0:m[f]=q>>>24&255;m[f+1]=q>>>16&255;m[f+
2]=q>>>8&255;m[f+3]=q&255;break;case 1:m[f]=q&255;m[f+1]=q>>>24&255;m[f+2]=q>>>16&255;m[f+3]=q>>>8&255;break;case 2:m[f]=q>>>8&255,m[f+1]=q>>>16&255,m[f+2]=q>>>24&255,m[f+3]=q&255}}d+=4;f+=4;u+=4}else for(z=0,A=t.height;z<A;)for(u=z++,d=c.byteOffset+c.stride*u,f=t.byteOffset+t.stride*u,u=e.byteOffset+e.stride*u,B=0,P=t.width;B<P;){B++;x=k;w=p;null==w&&(w=!1);null==x&&(x=0);switch(x){case 0:g=(l[d]&255)<<24|(l[d+1]&255)<<16|(l[d+2]&255)<<8|l[d+3]&255;break;case 1:g=(l[d+1]&255)<<24|(l[d+2]&255)<<16|
(l[d+3]&255)<<8|l[d]&255;break;case 2:g=(l[d+2]&255)<<24|(l[d+1]&255)<<16|(l[d]&255)<<8|l[d+3]&255}w&&0!=(g&255)&&255!=(g&255)&&(I.unmult=255/(g&255),g=(I.__clamp[Math.round((g>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((g>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((g>>>8&255)*I.unmult)]&255)<<8|g&255);x=b;w=!1;null==w&&(w=!1);null==x&&(x=0);switch(x){case 0:h=(v[u]&255)<<24|(v[u+1]&255)<<16|(v[u+2]&255)<<8|v[u+3]&255;break;case 1:h=(v[u+1]&255)<<24|(v[u+2]&255)<<16|(v[u+3]&255)<<
8|v[u]&255;break;case 2:h=(v[u+2]&255)<<24|(v[u+1]&255)<<16|(v[u]&255)<<8|v[u+3]&255}w&&0!=(h&255)&&255!=(h&255)&&(I.unmult=255/(h&255),h=(I.__clamp[Math.round((h>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((h>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((h>>>8&255)*I.unmult)]&255)<<8|h&255);F=Math.round((h&255)/255*(g&255));g=(g>>>24&255)<<24|(g>>>16&255)<<16|(g>>>8&255)<<8|F&255;x=n;w=r;null==w&&(w=!1);null==x&&(x=0);w&&(0==(g&255)?0!=g&&(g=0):255!=(g&255)&&(I.a16=I.__alpha16[g&255],
g=((g>>>24&255)*I.a16>>16&255)<<24|((g>>>16&255)*I.a16>>16&255)<<16|((g>>>8&255)*I.a16>>16&255)<<8|g&255));switch(x){case 0:m[f]=g>>>24&255;m[f+1]=g>>>16&255;m[f+2]=g>>>8&255;m[f+3]=g&255;break;case 1:m[f]=g&255;m[f+1]=g>>>24&255;m[f+2]=g>>>16&255;m[f+3]=g>>>8&255;break;case 2:m[f]=g>>>8&255,m[f+1]=g>>>16&255,m[f+2]=g>>>24&255,m[f+3]=g&255}d+=4;f+=4;u+=4}else if(z)for(z=0,A=t.height;z<A;){u=z++;d=c.byteOffset+c.stride*u;f=t.byteOffset+t.stride*u;for(var B=0,P=t.width;B<P;){B++;x=k;w=p;null==w&&(w=
!1);null==x&&(x=0);switch(x){case 0:g=(l[d]&255)<<24|(l[d+1]&255)<<16|(l[d+2]&255)<<8|l[d+3]&255;break;case 1:g=(l[d+1]&255)<<24|(l[d+2]&255)<<16|(l[d+3]&255)<<8|l[d]&255;break;case 2:g=(l[d+2]&255)<<24|(l[d+1]&255)<<16|(l[d]&255)<<8|l[d+3]&255}w&&0!=(g&255)&&255!=(g&255)&&(I.unmult=255/(g&255),g=(I.__clamp[Math.round((g>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((g>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((g>>>8&255)*I.unmult)]&255)<<8|g&255);x=n;w=r;null==w&&(w=!1);null==x&&
(x=0);switch(x){case 0:q=(m[f]&255)<<24|(m[f+1]&255)<<16|(m[f+2]&255)<<8|m[f+3]&255;break;case 1:q=(m[f+1]&255)<<24|(m[f+2]&255)<<16|(m[f+3]&255)<<8|m[f]&255;break;case 2:q=(m[f+2]&255)<<24|(m[f+1]&255)<<16|(m[f]&255)<<8|m[f+3]&255}w&&0!=(q&255)&&255!=(q&255)&&(I.unmult=255/(q&255),q=(I.__clamp[Math.round((q>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((q>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((q>>>8&255)*I.unmult)]&255)<<8|q&255);w=(g&255)/255;U=(q&255)/255;X=1-w;x=w+U*X;if(0==
x)q=0;else{var F=I.__clamp[Math.round(((g>>>24&255)*w+(q>>>24&255)*U*X)/x)];q=(F&255)<<24|(q>>>16&255)<<16|(q>>>8&255)<<8|q&255;F=I.__clamp[Math.round(((g>>>16&255)*w+(q>>>16&255)*U*X)/x)];q=(q>>>24&255)<<24|(F&255)<<16|(q>>>8&255)<<8|q&255;w=I.__clamp[Math.round(((g>>>8&255)*w+(q>>>8&255)*U*X)/x)];q=(q>>>24&255)<<24|(q>>>16&255)<<16|(w&255)<<8|q&255;x=I.__clamp[Math.round(255*x)];q=(q>>>24&255)<<24|(q>>>16&255)<<16|(q>>>8&255)<<8|x&255}x=n;w=r;null==w&&(w=!1);null==x&&(x=0);w&&(0==(q&255)?0!=q&&
(q=0):255!=(q&255)&&(I.a16=I.__alpha16[q&255],q=((q>>>24&255)*I.a16>>16&255)<<24|((q>>>16&255)*I.a16>>16&255)<<16|((q>>>8&255)*I.a16>>16&255)<<8|q&255));switch(x){case 0:m[f]=q>>>24&255;m[f+1]=q>>>16&255;m[f+2]=q>>>8&255;m[f+3]=q&255;break;case 1:m[f]=q&255;m[f+1]=q>>>24&255;m[f+2]=q>>>16&255;m[f+3]=q>>>8&255;break;case 2:m[f]=q>>>8&255,m[f+1]=q>>>16&255,m[f+2]=q>>>24&255,m[f+3]=q&255}d+=4;f+=4}}else if(k==n&&p==r&&A==v)for(z=0,A=t.height;z<A;)u=z++,d=c.byteOffset+c.stride*u,f=t.byteOffset+t.stride*
u,m.set(l.subarray(d,d+t.width*v),f);else for(z=0,A=t.height;z<A;)for(u=z++,d=c.byteOffset+c.stride*u,f=t.byteOffset+t.stride*u,B=0,P=t.width;B<P;){B++;x=k;w=p;null==w&&(w=!1);null==x&&(x=0);switch(x){case 0:g=(l[d]&255)<<24|(l[d+1]&255)<<16|(l[d+2]&255)<<8|l[d+3]&255;break;case 1:g=(l[d+1]&255)<<24|(l[d+2]&255)<<16|(l[d+3]&255)<<8|l[d]&255;break;case 2:g=(l[d+2]&255)<<24|(l[d+1]&255)<<16|(l[d]&255)<<8|l[d+3]&255}w&&0!=(g&255)&&255!=(g&255)&&(I.unmult=255/(g&255),g=(I.__clamp[Math.round((g>>>24&255)*
I.unmult)]&255)<<24|(I.__clamp[Math.round((g>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((g>>>8&255)*I.unmult)]&255)<<8|g&255);x=n;w=r;null==w&&(w=!1);null==x&&(x=0);w&&(0==(g&255)?0!=g&&(g=0):255!=(g&255)&&(I.a16=I.__alpha16[g&255],g=((g>>>24&255)*I.a16>>16&255)<<24|((g>>>16&255)*I.a16>>16&255)<<16|((g>>>8&255)*I.a16>>16&255)<<8|g&255));switch(x){case 0:m[f]=g>>>24&255;m[f+1]=g>>>16&255;m[f+2]=g>>>8&255;m[f+3]=g&255;break;case 1:m[f]=g&255;m[f+1]=g>>>24&255;m[f+2]=g>>>16&255;m[f+3]=g>>>8&
255;break;case 2:m[f]=g>>>8&255,m[f+1]=g>>>16&255,m[f+2]=g>>>24&255,m[f+3]=g&255}d+=4;f+=4}}a.dirty=!0;a.version++};Ga.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 e=a.buffer.data;if(null!=e){d=a.buffer.format;var f=a.buffer.premultiplied;f&&(0==(c&255)?0!=c&&(c=0):255!=(c&255)&&(I.a16=I.__alpha16[c&
255],c=((c>>>24&255)*I.a16>>16&255)<<24|((c>>>16&255)*I.a16>>16&255)<<16|((c>>>8&255)*I.a16>>16&255)<<8|c&255));b=new re(a,b);for(var h,l=0,m=b.height;l<m;){f=l++;h=b.byteOffset+b.stride*f;for(var t=0,k=b.width;t<k;){f=t++;var n=h+4*f,g=d;f=!1;null==f&&(f=!1);null==g&&(g=0);f&&(0==(c&255)?0!=c&&(c=0):255!=(c&255)&&(I.a16=I.__alpha16[c&255],c=((c>>>24&255)*I.a16>>16&255)<<24|((c>>>16&255)*I.a16>>16&255)<<16|((c>>>8&255)*I.a16>>16&255)<<8|c&255));switch(g){case 0:e[n]=c>>>24&255;e[n+1]=c>>>16&255;e[n+
2]=c>>>8&255;e[n+3]=c&255;break;case 1:e[n]=c&255;e[n+1]=c>>>24&255;e[n+2]=c>>>16&255;e[n+3]=c>>>8&255;break;case 2:e[n]=c>>>8&255,e[n+1]=c>>>16&255,e[n+2]=c>>>24&255,e[n+3]=c&255}}}a.dirty=!0;a.version++}};Ga.floodFill=function(a,b,c,d,e){var f=a.buffer.data;if(null!=f){1==e&&(d=(d&16777215)<<8|d>>24&255);e=a.buffer.format;var h=a.buffer.premultiplied,l=0,m=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX),t=e,k=h;null==k&&(k=!1);null==t&&(t=0);switch(t){case 0:l=(f[m]&255)<<24|(f[m+1]&255)<<16|(f[m+
2]&255)<<8|f[m+3]&255;break;case 1:l=(f[m+1]&255)<<24|(f[m+2]&255)<<16|(f[m+3]&255)<<8|f[m]&255;break;case 2:l=(f[m+2]&255)<<24|(f[m+1]&255)<<16|(f[m]&255)<<8|f[m+3]&255}k&&0!=(l&255)&&255!=(l&255)&&(I.unmult=255/(l&255),l=(I.__clamp[Math.round((l>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((l>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((l>>>8&255)*I.unmult)]&255)<<8|l&255);a.get_transparent()||(d=(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|255,l=(l>>>24&255)<<24|(l>>>16&255)<<
16|(l>>>8&255)<<8|255);if(d!=l){h&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>>24&255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>>16&255)<<8|d&255));m=[0,-1,1,0];var n=[-1,0,0,1],g=-a.offsetX,q=-a.offsetY,p=g+a.width,r=q+a.height,A=[];A.push(b);A.push(c);for(var v,u,x,z=0;0<A.length;){c=A.pop();b=A.pop();for(var w=0;4>w;)if(t=w++,v=b+m[t],u=c+n[t],!(v<g||u<q||v>=p||u>=r)){x=4*(u*a.width+v);t=e;k=h;null==k&&(k=!1);null==t&&(t=0);switch(t){case 0:z=
(f[x]&255)<<24|(f[x+1]&255)<<16|(f[x+2]&255)<<8|f[x+3]&255;break;case 1:z=(f[x+1]&255)<<24|(f[x+2]&255)<<16|(f[x+3]&255)<<8|f[x]&255;break;case 2:z=(f[x+2]&255)<<24|(f[x+1]&255)<<16|(f[x]&255)<<8|f[x+3]&255}k&&0!=(z&255)&&255!=(z&255)&&(I.unmult=255/(z&255),z=(I.__clamp[Math.round((z>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((z>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((z>>>8&255)*I.unmult)]&255)<<8|z&255);if(z==l){t=e;k=!1;null==k&&(k=!1);null==t&&(t=0);k&&(0==(d&255)?0!=d&&(d=
0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>>24&255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>>16&255)<<8|d&255));switch(t){case 0:f[x]=d>>>24&255;f[x+1]=d>>>16&255;f[x+2]=d>>>8&255;f[x+3]=d&255;break;case 1:f[x]=d&255;f[x+1]=d>>>24&255;f[x+2]=d>>>16&255;f[x+3]=d>>>8&255;break;case 2:f[x]=d>>>8&255,f[x+1]=d>>>16&255,f[x+2]=d>>>24&255,f[x+3]=d&255}A.push(v);A.push(u)}}}a.dirty=!0;a.version++}}};Ga.gaussianBlur=function(a,b,c,d,e,f,h,l,m){null==h&&(h=1);null==f&&
(f=4);null==e&&(e=4);(l=a.get_premultiplied())&&a.set_premultiplied(!1);Te.blur(a,b,c,d,e,f,h);a.dirty=!0;a.version++;l&&a.set_premultiplied(!0);return a};Ga.getColorBoundsRect=function(a,b,c,d,e){var f=a.width+1,h=0,l=a.height+1,m=0;switch(e){case 1:e=c;c=(e>>>16&255)<<24|(e>>>8&255)<<16|(e&255)<<8|e>>>24&255;e=b;b=(e>>>16&255)<<24|(e>>>8&255)<<16|(e&255)<<8|e>>>24&255;break;case 2:e=c,c=(e>>>8&255)<<24|(e>>>16&255)<<16|(e>>>24&255)<<8|e&255,e=b,b=(e>>>8&255)<<24|(e>>>16&255)<<16|(e>>>24&255)<<8|
e&255}a.get_transparent()||(c=(c>>>24&255)<<24|(c>>>16&255)<<16|(c>>>8&255)<<8|255,b=(b>>>24&255)<<24|(b>>>16&255)<<16|(b>>>8&255)<<8|255);e=0;for(var t=a.width;e<t;){var k=e++;var n=!1;for(var g=0,q=a.height;g<q;){var p=g++;n=a.getPixel32(k,p,0);if(n=d?(n&b)==c:(n&b)!=c){k<f&&(f=k);break}}if(n)break}e=0;for(t=a.width;e<t;){k=e++;k=a.width-1-k;n=!1;g=0;for(q=a.height;g<q;)if(p=g++,n=a.getPixel32(k,p,0),n=d?(n&b)==c:(n&b)!=c){k>h&&(h=k);break}if(n)break}e=0;for(t=a.height;e<t;){p=e++;n=!1;g=0;for(q=
a.width;g<q;)if(k=g++,n=a.getPixel32(k,p,0),n=d?(n&b)==c:(n&b)!=c){p<l&&(l=p);break}if(n)break}e=0;for(t=a.height;e<t;){p=e++;p=a.height-1-p;n=!1;g=0;for(q=a.width;g<q;)if(k=g++,n=a.getPixel32(k,p,0),n=d?(n&b)==c:(n&b)!=c){p>m&&(m=p);break}if(n)break}d=h-f;c=m-l;0<d&&++d;0<c&&++c;0>d&&(d=0);0>c&&(c=0);f==h&&(d=1);l==m&&(c=1);f>a.width&&(f=0);l>a.height&&(l=0);return new qd(f,l,d,c)};Ga.getPixel=function(a,b,c,d){var e=0,f=a.buffer.data;b=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);c=a.buffer.format;
a=a.buffer.premultiplied;null==a&&(a=!1);null==c&&(c=0);switch(c){case 0:e=(f[b]&255)<<24|(f[b+1]&255)<<16|(f[b+2]&255)<<8|f[b+3]&255;break;case 1:e=(f[b+1]&255)<<24|(f[b+2]&255)<<16|(f[b+3]&255)<<8|f[b]&255;break;case 2:e=(f[b+2]&255)<<24|(f[b+1]&255)<<16|(f[b]&255)<<8|f[b+3]&255}a&&0!=(e&255)&&255!=(e&255)&&(I.unmult=255/(e&255),e=(I.__clamp[Math.round((e>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((e>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((e>>>8&255)*I.unmult)]&255)<<8|e&255);
e=(e>>>24&255)<<24|(e>>>16&255)<<16|(e>>>8&255)<<8|0;switch(d){case 1:return(e&255)<<24|(e>>>24&255)<<16|(e>>>16&255)<<8|e>>>8&255;case 2:return(e>>>8&255)<<24|(e>>>16&255)<<16|(e>>>24&255)<<8|e&255;default:return e}};Ga.getPixel32=function(a,b,c,d){var e=0,f=a.buffer.data;b=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);c=a.buffer.format;a=a.buffer.premultiplied;null==a&&(a=!1);null==c&&(c=0);switch(c){case 0:e=(f[b]&255)<<24|(f[b+1]&255)<<16|(f[b+2]&255)<<8|f[b+3]&255;break;case 1:e=(f[b+1]&255)<<
24|(f[b+2]&255)<<16|(f[b+3]&255)<<8|f[b]&255;break;case 2:e=(f[b+2]&255)<<24|(f[b+1]&255)<<16|(f[b]&255)<<8|f[b+3]&255}a&&0!=(e&255)&&255!=(e&255)&&(I.unmult=255/(e&255),e=(I.__clamp[Math.round((e>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((e>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((e>>>8&255)*I.unmult)]&255)<<8|e&255);switch(d){case 1:return(e&255)<<24|(e>>>24&255)<<16|(e>>>16&255)<<8|e>>>8&255;case 2:return(e>>>8&255)<<24|(e>>>16&255)<<16|(e>>>24&255)<<8|e&255;default:return e}};
Ga.getPixels=function(a,b,c){if(null==a.buffer.data)return null;var d=new Qa(new ArrayBuffer(4*(b.width*b.height|0))),e=a.buffer.data,f=a.buffer.format,h=a.buffer.premultiplied;a=new re(a,b);for(var l,m,t=b=m=0,k=a.height;t<k;){l=t++;l=a.byteOffset+a.stride*l;for(var n=0,g=a.width;n<g;){n++;var q=f,p=h;null==p&&(p=!1);null==q&&(q=0);switch(q){case 0:m=(e[l]&255)<<24|(e[l+1]&255)<<16|(e[l+2]&255)<<8|e[l+3]&255;break;case 1:m=(e[l+1]&255)<<24|(e[l+2]&255)<<16|(e[l+3]&255)<<8|e[l]&255;break;case 2:m=
(e[l+2]&255)<<24|(e[l+1]&255)<<16|(e[l]&255)<<8|e[l+3]&255}p&&0!=(m&255)&&255!=(m&255)&&(I.unmult=255/(m&255),m=(I.__clamp[Math.round((m>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((m>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((m>>>8&255)*I.unmult)]&255)<<8|m&255);switch(c){case 1:m=(m&255)<<24|(m>>>24&255)<<16|(m>>>16&255)<<8|m>>>8&255;break;case 2:m=(m>>>8&255)<<24|(m>>>16&255)<<16|(m>>>24&255)<<8|m&255}d.b[b++]=m>>>24&255;d.b[b++]=m>>>16&255;d.b[b++]=m>>>8&255;d.b[b++]=m&255;l+=
4}}return d};Ga.merge=function(a,b,c,d,e,f,h,l){if(null!=a.buffer.data&&null!=b.buffer.data){c=new re(b,c);d=new re(a,new qd(d.x,d.y,c.width,c.height));var m=b.buffer.data,t=a.buffer.data,k=b.buffer.format,n=a.buffer.format;b=b.buffer.premultiplied;for(var g=a.buffer.premultiplied,q,p,r=0,A=0,v=0,u=d.height;v<u;){p=v++;q=c.byteOffset+c.stride*p;p=d.byteOffset+d.stride*p;for(var x=0,z=d.width;x<z;){x++;var w=k,U=b;null==U&&(U=!1);null==w&&(w=0);switch(w){case 0:r=(m[q]&255)<<24|(m[q+1]&255)<<16|(m[q+
2]&255)<<8|m[q+3]&255;break;case 1:r=(m[q+1]&255)<<24|(m[q+2]&255)<<16|(m[q+3]&255)<<8|m[q]&255;break;case 2:r=(m[q+2]&255)<<24|(m[q+1]&255)<<16|(m[q]&255)<<8|m[q+3]&255}U&&0!=(r&255)&&255!=(r&255)&&(I.unmult=255/(r&255),r=(I.__clamp[Math.round((r>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((r>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((r>>>8&255)*I.unmult)]&255)<<8|r&255);w=n;U=g;null==U&&(U=!1);null==w&&(w=0);switch(w){case 0:A=(t[p]&255)<<24|(t[p+1]&255)<<16|(t[p+2]&255)<<8|t[p+
3]&255;break;case 1:A=(t[p+1]&255)<<24|(t[p+2]&255)<<16|(t[p+3]&255)<<8|t[p]&255;break;case 2:A=(t[p+2]&255)<<24|(t[p+1]&255)<<16|(t[p]&255)<<8|t[p+3]&255}U&&0!=(A&255)&&255!=(A&255)&&(I.unmult=255/(A&255),A=(I.__clamp[Math.round((A>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((A>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((A>>>8&255)*I.unmult)]&255)<<8|A&255);A=((((r>>>24&255)*e+(A>>>24&255)*(256-e))/256|0)&255)<<24|(A>>>16&255)<<16|(A>>>8&255)<<8|A&255;A=(A>>>24&255)<<24|((((r>>>
16&255)*f+(A>>>16&255)*(256-f))/256|0)&255)<<16|(A>>>8&255)<<8|A&255;A=(A>>>24&255)<<24|(A>>>16&255)<<16|((((r>>>8&255)*h+(A>>>8&255)*(256-h))/256|0)&255)<<8|A&255;A=(A>>>24&255)<<24|(A>>>16&255)<<16|(A>>>8&255)<<8|(((r&255)*l+(A&255)*(256-l))/256|0)&255;w=n;U=g;null==U&&(U=!1);null==w&&(w=0);U&&(0==(A&255)?0!=A&&(A=0):255!=(A&255)&&(I.a16=I.__alpha16[A&255],A=((A>>>24&255)*I.a16>>16&255)<<24|((A>>>16&255)*I.a16>>16&255)<<16|((A>>>8&255)*I.a16>>16&255)<<8|A&255));switch(w){case 0:t[p]=A>>>24&255;
t[p+1]=A>>>16&255;t[p+2]=A>>>8&255;t[p+3]=A&255;break;case 1:t[p]=A&255;t[p+1]=A>>>24&255;t[p+2]=A>>>16&255;t[p+3]=A>>>8&255;break;case 2:t[p]=A>>>8&255,t[p+1]=A>>>16&255,t[p+2]=A>>>24&255,t[p+3]=A&255}q+=4;p+=4}}a.dirty=!0;a.version++}};Ga.multiplyAlpha=function(a){var b=a.buffer.data;if(null!=b&&a.buffer.transparent){for(var c=a.buffer.format,d=0,e=0,f=b.length/4|0;e<f;){var h=e++,l=4*h,m=c,t=!1;null==t&&(t=!1);null==m&&(m=0);switch(m){case 0:d=(b[l]&255)<<24|(b[l+1]&255)<<16|(b[l+2]&255)<<8|b[l+
3]&255;break;case 1:d=(b[l+1]&255)<<24|(b[l+2]&255)<<16|(b[l+3]&255)<<8|b[l]&255;break;case 2:d=(b[l+2]&255)<<24|(b[l+1]&255)<<16|(b[l]&255)<<8|b[l+3]&255}t&&0!=(d&255)&&255!=(d&255)&&(I.unmult=255/(d&255),d=(I.__clamp[Math.round((d>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((d>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((d>>>8&255)*I.unmult)]&255)<<8|d&255);h*=4;l=c;m=!0;null==m&&(m=!1);null==l&&(l=0);m&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>>24&
255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>>16&255)<<8|d&255));switch(l){case 0:b[h]=d>>>24&255;b[h+1]=d>>>16&255;b[h+2]=d>>>8&255;b[h+3]=d&255;break;case 1:b[h]=d&255;b[h+1]=d>>>24&255;b[h+2]=d>>>16&255;b[h+3]=d>>>8&255;break;case 2:b[h]=d>>>8&255,b[h+1]=d>>>16&255,b[h+2]=d>>>24&255,b[h+3]=d&255}}a.buffer.premultiplied=!0;a.dirty=!0;a.version++}};Ga.resize=function(a,b,c){var d=a.buffer;if(d.width!=b||d.height!=c){var e=b*c*4;e=null!=e?new Uint8Array(e):null;e=new mg(e,
b,c);for(var f=a.width,h=a.height,l=a.get_data(),m=e.data,t,k,n,g,q,p,r,A,v,u=0;u<c;)for(var x=u++,z=0,w=b;z<w;)q=z++,A=(q+.5)/b*f-.5,v=(x+.5)/c*h-.5,p=A|0,r=v|0,t=4*(r*f+p),k=p<f-1?t+4:t,n=r<h-1?t+4*f:t,g=k!=t?n+4:n,q=4*(x*b+q),p=A-p,r=v-r,v=1-p,A=1-r,m[q]=(za.toFloat(l[t])*v+za.toFloat(l[k])*p)*A+(za.toFloat(l[n])*v+za.toFloat(l[g])*p)*r|0,m[q+1]=(za.toFloat(l[t+1])*v+za.toFloat(l[k+1])*p)*A+(za.toFloat(l[n+1])*v+za.toFloat(l[g+1])*p)*r|0,m[q+2]=(za.toFloat(l[t+2])*v+za.toFloat(l[k+2])*p)*A+(za.toFloat(l[n+
2])*v+za.toFloat(l[g+2])*p)*r|0,m[q+3]=0==l[k+3]||0==l[n+3]||0==l[g+3]?0:l[t+3];d.data=e.data;d.width=b;d.height=c;d.__srcImage=null;d.__srcImageData=null;d.__srcCanvas=null;d.__srcContext=null;a.dirty=!0;a.version++}};Ga.resizeBuffer=function(a,b,c){var d=a.buffer,e=a.get_data(),f=b*c*4;f=null!=f?new Uint8Array(f):null;for(var h,l,m=0,t=d.height;m<t;)for(var k=m++,n=0,g=d.width;n<g;)l=n++,h=4*(k*d.width+l),l=4*(k*b+l),f[l]=e[h],f[l+1]=e[h+1],f[l+2]=e[h+2],f[l+3]=e[h+3];d.data=f;d.width=b;d.height=
c;d.__srcImage=null;d.__srcImageData=null;d.__srcCanvas=null;d.__srcContext=null;a.dirty=!0;a.version++};Ga.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 e=0;var f=1;var h=2;var l=3;break;case 1:e=1;f=2;h=3;l=0;break;case 2:e=2,f=1,h=0,l=3}switch(b){case 0:var m=0;var t=1;var k=2;var n=3;break;case 1:m=1;t=2;k=3;n=0;break;case 2:m=2,t=1,k=0,n=3}for(var g=0;g<d;){var q=4*g++;var p=c[q+e];var r=c[q+f];var A=c[q+h];var v=c[q+l];c[q+m]=p;
c[q+t]=r;c[q+k]=A;c[q+n]=v}a.buffer.format=b;a.dirty=!0;a.version++}};Ga.setPixel=function(a,b,c,d,e){switch(e){case 1:d=(d>>>16&255)<<24|(d>>>8&255)<<16|(d&255)<<8|d>>>24&255;break;case 2:d=(d>>>8&255)<<24|(d>>>16&255)<<16|(d>>>24&255)<<8|d&255}var f=0,h=a.buffer.data,l=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);e=a.buffer.format;var m=a.buffer.premultiplied;null==m&&(m=!1);null==e&&(e=0);switch(e){case 0:f=(h[l]&255)<<24|(h[l+1]&255)<<16|(h[l+2]&255)<<8|h[l+3]&255;break;case 1:f=(h[l+1]&255)<<
24|(h[l+2]&255)<<16|(h[l+3]&255)<<8|h[l]&255;break;case 2:f=(h[l+2]&255)<<24|(h[l+1]&255)<<16|(h[l]&255)<<8|h[l+3]&255}m&&0!=(f&255)&&255!=(f&255)&&(I.unmult=255/(f&255),f=(I.__clamp[Math.round((f>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((f>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((f>>>8&255)*I.unmult)]&255)<<8|f&255);d=(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|f&255;h=a.buffer.data;l=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);e=a.buffer.format;m=a.buffer.premultiplied;
null==m&&(m=!1);null==e&&(e=0);m&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>>24&255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>>16&255)<<8|d&255));switch(e){case 0:h[l]=d>>>24&255;h[l+1]=d>>>16&255;h[l+2]=d>>>8&255;h[l+3]=d&255;break;case 1:h[l]=d&255;h[l+1]=d>>>24&255;h[l+2]=d>>>16&255;h[l+3]=d>>>8&255;break;case 2:h[l]=d>>>8&255,h[l+1]=d>>>16&255,h[l+2]=d>>>24&255,h[l+3]=d&255}a.dirty=!0;a.version++};Ga.setPixel32=function(a,b,c,d,e){switch(e){case 1:d=
(d>>>16&255)<<24|(d>>>8&255)<<16|(d&255)<<8|d>>>24&255;break;case 2:d=(d>>>8&255)<<24|(d>>>16&255)<<16|(d>>>24&255)<<8|d&255}a.get_transparent()||(d=(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|255);var f=a.buffer.data;b=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);e=a.buffer.format;c=a.buffer.premultiplied;null==c&&(c=!1);null==e&&(e=0);c&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>>24&255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>>
16&255)<<8|d&255));switch(e){case 0:f[b]=d>>>24&255;f[b+1]=d>>>16&255;f[b+2]=d>>>8&255;f[b+3]=d&255;break;case 1:f[b]=d&255;f[b+1]=d>>>24&255;f[b+2]=d>>>16&255;f[b+3]=d>>>8&255;break;case 2:f[b]=d>>>8&255,f[b+1]=d>>>16&255,f[b+2]=d>>>24&255,f[b+3]=d&255}a.dirty=!0;a.version++};Ga.setPixels=function(a,b,c,d,e){if(null!=a.buffer.data){var f=a.buffer.data,h=a.buffer.format,l=a.buffer.premultiplied;b=new re(a,b);var m=a.get_transparent(),t=c.bytes;c=c.offset;e=e!=If.BIG_ENDIAN;for(var k=0,n=b.height;k<
n;){var g=k++;g=b.byteOffset+b.stride*g;for(var q=0,p=b.width;q<p;){var r=q++;var A=e?t.getInt32(c):t.b[c+3]|t.b[c+2]<<8|t.b[c+1]<<16|t.b[c]<<24;c+=4;switch(d){case 1:A=(A>>>16&255)<<24|(A>>>8&255)<<16|(A&255)<<8|A>>>24&255;break;case 2:A=(A>>>8&255)<<24|(A>>>16&255)<<16|(A>>>24&255)<<8|A&255}m||(A=(A>>>24&255)<<24|(A>>>16&255)<<16|(A>>>8&255)<<8|255);r=g+4*r;var v=h,u=l;null==u&&(u=!1);null==v&&(v=0);u&&(0==(A&255)?0!=A&&(A=0):255!=(A&255)&&(I.a16=I.__alpha16[A&255],A=((A>>>24&255)*I.a16>>16&255)<<
24|((A>>>16&255)*I.a16>>16&255)<<16|((A>>>8&255)*I.a16>>16&255)<<8|A&255));switch(v){case 0:f[r]=A>>>24&255;f[r+1]=A>>>16&255;f[r+2]=A>>>8&255;f[r+3]=A&255;break;case 1:f[r]=A&255;f[r+1]=A>>>24&255;f[r+2]=A>>>16&255;f[r+3]=A>>>8&255;break;case 2:f[r]=A>>>8&255,f[r+1]=A>>>16&255,f[r+2]=A>>>24&255,f[r+3]=A&255}}}a.dirty=!0;a.version++}};Ga.threshold=function(a,b,c,d,e,f,h,l,m,t){switch(t){case 1:var k=h;h=(k>>>16&255)<<24|(k>>>8&255)<<16|(k&255)<<8|k>>>24&255;k=l;l=(k>>>16&255)<<24|(k>>>8&255)<<16|
(k&255)<<8|k>>>24&255;k=f;f=(k>>>16&255)<<24|(k>>>8&255)<<16|(k&255)<<8|k>>>24&255;break;case 2:k=h,h=(k>>>8&255)<<24|(k>>>16&255)<<16|(k>>>24&255)<<8|k&255,k=l,l=(k>>>8&255)<<24|(k>>>16&255)<<16|(k>>>24&255)<<8|k&255,k=f,f=(k>>>8&255)<<24|(k>>>16&255)<<16|(k>>>24&255)<<8|k&255}switch(e){case "!=":e=0;break;case "<":e=2;break;case "<=":e=3;break;case "==":e=1;break;case ">":e=4;break;case ">=":e=5;break;default:e=-1}if(-1==e)return 0;k=b.buffer.data;var n=a.buffer.data;if(null==k||null==n)return 0;
var g=0;c=new re(b,c);d=new re(a,new qd(d.x,d.y,c.width,c.height));var q=b.buffer.format,p=a.buffer.format;b=b.buffer.premultiplied;for(var r=a.buffer.premultiplied,A,v,u=0,x=0,z=d.height;x<z;){v=x++;A=c.byteOffset+c.stride*v;v=d.byteOffset+d.stride*v;for(var w=0,U=d.width;w<U;){w++;t=q;var X=b;null==X&&(X=!1);null==t&&(t=0);switch(t){case 0:u=(k[A]&255)<<24|(k[A+1]&255)<<16|(k[A+2]&255)<<8|k[A+3]&255;break;case 1:u=(k[A+1]&255)<<24|(k[A+2]&255)<<16|(k[A+3]&255)<<8|k[A]&255;break;case 2:u=(k[A+2]&
255)<<24|(k[A+1]&255)<<16|(k[A]&255)<<8|k[A+3]&255}X&&0!=(u&255)&&255!=(u&255)&&(I.unmult=255/(u&255),u=(I.__clamp[Math.round((u>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((u>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((u>>>8&255)*I.unmult)]&255)<<8|u&255);t=u&l;X=t>>>24&255;var B=f>>>24&255;X!=B?t=za.gt(X,B)?1:-1:(X=t>>>16&255,B=f>>>16&255,X!=B?t=za.gt(X,B)?1:-1:(X=t>>>8&255,B=f>>>8&255,X!=B?t=za.gt(X,B)?1:-1:(X=t&255,B=f&255,t=X!=B?za.gt(X,B)?1:-1:0)));switch(e){case 0:t=0!=t;break;
case 1:t=0==t;break;case 2:t=-1==t;break;case 3:t=0==t||-1==t;break;case 4:t=1==t;break;case 5:t=0==t||1==t;break;default:t=!1}if(t){t=p;X=r;null==X&&(X=!1);null==t&&(t=0);X&&(0==(h&255)?0!=h&&(h=0):255!=(h&255)&&(I.a16=I.__alpha16[h&255],h=((h>>>24&255)*I.a16>>16&255)<<24|((h>>>16&255)*I.a16>>16&255)<<16|((h>>>8&255)*I.a16>>16&255)<<8|h&255));switch(t){case 0:n[v]=h>>>24&255;n[v+1]=h>>>16&255;n[v+2]=h>>>8&255;n[v+3]=h&255;break;case 1:n[v]=h&255;n[v+1]=h>>>24&255;n[v+2]=h>>>16&255;n[v+3]=h>>>8&255;
break;case 2:n[v]=h>>>8&255,n[v+1]=h>>>16&255,n[v+2]=h>>>24&255,n[v+3]=h&255}++g}else if(m)switch(t=p,X=r,null==X&&(X=!1),null==t&&(t=0),X&&(0==(u&255)?0!=u&&(u=0):255!=(u&255)&&(I.a16=I.__alpha16[u&255],u=((u>>>24&255)*I.a16>>16&255)<<24|((u>>>16&255)*I.a16>>16&255)<<16|((u>>>8&255)*I.a16>>16&255)<<8|u&255)),t){case 0:n[v]=u>>>24&255;n[v+1]=u>>>16&255;n[v+2]=u>>>8&255;n[v+3]=u&255;break;case 1:n[v]=u&255;n[v+1]=u>>>24&255;n[v+2]=u>>>16&255;n[v+3]=u>>>8&255;break;case 2:n[v]=u>>>8&255,n[v+1]=u>>>
16&255,n[v+2]=u>>>24&255,n[v+3]=u&255}A+=4;v+=4}}0<g&&(a.dirty=!0,a.version++);return g};Ga.unmultiplyAlpha=function(a){var b=a.buffer.data;if(null!=b){for(var c=a.buffer.format,d=0,e=0,f=b.length/4|0;e<f;){var h=e++,l=4*h,m=c,t=!0;null==t&&(t=!1);null==m&&(m=0);switch(m){case 0:d=(b[l]&255)<<24|(b[l+1]&255)<<16|(b[l+2]&255)<<8|b[l+3]&255;break;case 1:d=(b[l+1]&255)<<24|(b[l+2]&255)<<16|(b[l+3]&255)<<8|b[l]&255;break;case 2:d=(b[l+2]&255)<<24|(b[l+1]&255)<<16|(b[l]&255)<<8|b[l+3]&255}t&&0!=(d&255)&&
255!=(d&255)&&(I.unmult=255/(d&255),d=(I.__clamp[Math.round((d>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((d>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((d>>>8&255)*I.unmult)]&255)<<8|d&255);h*=4;l=c;m=!1;null==m&&(m=!1);null==l&&(l=0);m&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>>24&255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>>16&255)<<8|d&255));switch(l){case 0:b[h]=d>>>24&255;b[h+1]=d>>>16&255;b[h+2]=d>>>8&255;b[h+3]=
d&255;break;case 1:b[h]=d&255;b[h+1]=d>>>24&255;b[h+2]=d>>>16&255;b[h+3]=d>>>8&255;break;case 2:b[h]=d>>>8&255,b[h+1]=d>>>16&255,b[h+2]=d>>>24&255,b[h+3]=d&255}}a.buffer.premultiplied=!1;a.dirty=!0;a.version++}};Ga.__boxBlur=function(a,b,c,d,e,f){b.set(a);e|=0;f|=0;Ga.__boxBlurH(b,a,c,d,e,0);Ga.__boxBlurH(b,a,c,d,e,1);Ga.__boxBlurH(b,a,c,d,e,2);Ga.__boxBlurH(b,a,c,d,e,3);e=1/(f+f+1);for(var h=4*c,l,m,t,k,n,g,q=0,p=c;q<p;){l=q++;m=l*=4;t=l+f*h;k=a[l];n=a[l+h*(d-1)];g=(f+1)*k;for(var r=0,A=f;r<A;){var v=
r++;g+=a[l+v*h]}r=0;for(A=f+1;r<A;)r++,g+=a[t]-k,b[l]=Math.round(za.toFloat(g)*e),t+=h,l+=h;k=f+1;for(r=d-f;k<r;)k++,g+=a[t]-a[m],b[l]=Math.round(za.toFloat(g)*e),m+=h,t+=h,l+=h;t=d-f;for(k=d;t<k;)t++,g+=n-a[m],b[l]=Math.round(za.toFloat(g)*e),m+=h,l+=h}e=1/(f+f+1);h=4*c;q=0;for(p=c;q<p;){l=q++;m=l=4*l+1;t=l+f*h;k=a[l];n=a[l+h*(d-1)];g=(f+1)*k;r=0;for(A=f;r<A;)v=r++,g+=a[l+v*h];r=0;for(A=f+1;r<A;)r++,g+=a[t]-k,b[l]=Math.round(za.toFloat(g)*e),t+=h,l+=h;k=f+1;for(r=d-f;k<r;)k++,g+=a[t]-a[m],b[l]=Math.round(za.toFloat(g)*
e),m+=h,t+=h,l+=h;t=d-f;for(k=d;t<k;)t++,g+=n-a[m],b[l]=Math.round(za.toFloat(g)*e),m+=h,l+=h}e=1/(f+f+1);h=4*c;q=0;for(p=c;q<p;){l=q++;m=l=4*l+2;t=l+f*h;k=a[l];n=a[l+h*(d-1)];g=(f+1)*k;r=0;for(A=f;r<A;)v=r++,g+=a[l+v*h];r=0;for(A=f+1;r<A;)r++,g+=a[t]-k,b[l]=Math.round(za.toFloat(g)*e),t+=h,l+=h;k=f+1;for(r=d-f;k<r;)k++,g+=a[t]-a[m],b[l]=Math.round(za.toFloat(g)*e),m+=h,t+=h,l+=h;t=d-f;for(k=d;t<k;)t++,g+=n-a[m],b[l]=Math.round(za.toFloat(g)*e),m+=h,l+=h}e=1/(f+f+1);h=4*c;q=0;for(p=c;q<p;){l=q++;
m=l=4*l+3;t=l+f*h;k=a[l];n=a[l+h*(d-1)];g=(f+1)*k;r=0;for(A=f;r<A;)v=r++,g+=a[l+v*h];r=0;for(A=f+1;r<A;)r++,g+=a[t]-k,b[l]=Math.round(za.toFloat(g)*e),t+=h,l+=h;k=f+1;for(r=d-f;k<r;)k++,g+=a[t]-a[m],b[l]=Math.round(za.toFloat(g)*e),m+=h,t+=h,l+=h;t=d-f;for(k=d;t<k;)t++,g+=n-a[m],b[l]=Math.round(za.toFloat(g)*e),m+=h,l+=h}};Ga.__boxBlurH=function(a,b,c,d,e,f){for(var h=1/(e+e+1),l,m,t,k,n,g,q=0;q<d;){m=l=q++*c;t=l+e;k=a[4*l+f];n=a[4*(l+c-1)+f];g=(e+1)*k;for(var p=0,r=e;p<r;){var A=p++;g+=a[4*(l+A)+
f]}p=0;for(r=e+1;p<r;)p++,g+=a[4*t+f]-k,b[4*l+f]=Math.round(za.toFloat(g)*h),++t,++l;k=e+1;for(p=c-e;k<p;)k++,g+=a[4*t+f]-a[4*m+f],b[4*l+f]=Math.round(za.toFloat(g)*h),++t,++m,++l;t=c-e;for(k=c;t<k;)t++,g+=n-a[4*m+f],b[4*l+f]=Math.round(za.toFloat(g)*h),++m,++l}};Ga.__boxBlurT=function(a,b,c,d,e,f){for(var h=1/(e+e+1),l=4*c,m,k,g,n,q,p,r=0;r<c;){k=m=4*r++ +f;g=m+e*l;n=a[m];q=a[m+l*(d-1)];p=(e+1)*n;for(var v=0,A=e;v<A;){var u=v++;p+=a[m+u*l]}v=0;for(A=e+1;v<A;)v++,p+=a[g]-n,b[m]=Math.round(za.toFloat(p)*
h),g+=l,m+=l;n=e+1;for(v=d-e;n<v;)n++,p+=a[g]-a[k],b[m]=Math.round(za.toFloat(p)*h),k+=l,g+=l,m+=l;g=d-e;for(n=d;g<n;)g++,p+=q-a[k],b[m]=Math.round(za.toFloat(p)*h),k+=l,m+=l}};Ga.__calculateSourceOffset=function(a,b,c,d){c-=b.x|0;b=d-(b.y|0);return 0>c||0>b||c>=a.width||b>=a.height?-1:4*(b*(a.width|0)+c)};Ga.__getBoxesForGaussianBlur=function(a,b){var c=Math.floor(Math.sqrt(12*a*a/b+1));0==c%2&&--c;var d=c+2;a=Math.round((12*a*a-b*c*c-4*b*c-3*b)/(-4*c-4));for(var e=[],f=0;f<b;){var h=f++;e.push(h<
a?c:d)}return e};Ga.__pixelCompare=function(a,b){var c=a>>>24&255,d=b>>>24&255;if(c!=d)return za.gt(c,d)?1:-1;c=a>>>16&255;d=b>>>16&255;if(c!=d)return za.gt(c,d)?1:-1;c=a>>>8&255;d=b>>>8&255;if(c!=d)return za.gt(c,d)?1:-1;c=a&255;d=b&255;return c!=d?za.gt(c,d)?1:-1:0};Ga.__translatePixel=function(a,b,c,d,e,f,h){c=4*(f*(c.width|0)+e);b=Ga.__calculateSourceOffset(b,d,e,f);0>b?a[c]=a[c+1]=a[c+2]=a[c+3]=0:(a[c]=a[b],a[c+1]=a[b+1],a[c+2]=a[b+2],h=za.toFloat(a[b+3])*h|0,a[c+3]=0>h?0:255<h?255:h)};var re=
function(a,b){this.image=a;null==b?this.rect=a.get_rect():(0>b.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"]=re;re.__name__="lime._internal.graphics._ImageDataUtil.ImageDataView";re.prototype={x:null,y:null,height:null,width:null,byteOffset:null,image:null,rect:null,
stride:null,tempRect:null,clip:function(a,b,c,d){null==this.tempRect&&(this.tempRect=new qd);this.tempRect.setTo(a,b,c,d);this.rect.intersection(this.tempRect,this.rect);this.__update()},hasRow:function(a){return 0<=a?a<this.height:!1},offset:function(a,b){0>a?(this.rect.x+=a,0>this.rect.x&&(this.rect.x=0)):(this.rect.x+=a,this.rect.width-=a);0>b?(this.rect.y+=b,0>this.rect.y&&(this.rect.y=0)):(this.rect.y+=b,this.rect.height-=b);this.__update()},row:function(a){return this.byteOffset+this.stride*
a},__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__:re};var Te=function(){};g["lime._internal.graphics.StackBlur"]=Te;Te.__name__="lime._internal.graphics.StackBlur";Te.blur=function(a,b,c,d,e,f,h){a.copyPixels(b,c,d);Te.__stackBlurCanvasRGBA(a,c.width|0,c.height|0,e,f,h)};Te.__stackBlurCanvasRGBA=
function(a,b,c,d,e,f){d=Math.round(d)>>1;e=Math.round(e)>>1;if(null!=Te.MUL_TABLE&&(d>=Te.MUL_TABLE.length&&(d=Te.MUL_TABLE.length-1),e>=Te.MUL_TABLE.length&&(e=Te.MUL_TABLE.length-1),!(0>d||0>e))){1>f&&(f=1);3<f&&(f=3);a=a.get_data();var h,l=d+d+1;var m=e+e+1;var k=b-1,g=c-1,n=d+1,q=e+1,p=new Xk,r=p;var v=1;for(var A=l;v<A;)v++,r=r.n=new Xk;r.n=p;var u=l=new Xk;v=1;for(A=m;v<A;)v++,u=u.n=new Xk;u.n=l;for(var x=Te.MUL_TABLE[d],z=Te.SHG_TABLE[d],w=Te.MUL_TABLE[e],U=Te.SHG_TABLE[e];0<f;){--f;var X=
h=0;var B=x,P=z;var F=c;do{var D=a[h];m=n*D;var Ha=a[h+1];var G=n*Ha;var C=a[h+2];var H=n*C;v=a[h+3];var y=n*v;r=p;u=n;do r.r=D,r.g=Ha,r.b=C,r.a=v,r=r.n;while(-1<--u);v=1;for(A=n;v<A;)u=v++,u=h+((k<u?k:u)<<2),m+=r.r=a[u],G+=r.g=a[u+1],H+=r.b=a[u+2],y+=r.a=a[u+3],r=r.n;A=p;r=0;for(v=b;r<v;)u=r++,a[h++]=m*B>>>P,a[h++]=G*B>>>P,a[h++]=H*B>>>P,a[h++]=y*B>>>P,u=u+d+1,u=X+(u<k?u:k)<<2,m-=A.r-(A.r=a[u]),G-=A.g-(A.g=a[u+1]),H-=A.b-(A.b=a[u+2]),y-=A.a-(A.a=a[u+3]),A=A.n;X+=b}while(0<--F);B=w;P=U;F=0;for(X=
b;F<X;){r=F++;h=r<<2;D=a[h];m=q*D;Ha=a[h+1];G=q*Ha;C=a[h+2];H=q*C;v=a[h+3];y=q*v;u=l;h=0;for(A=q;h<A;)h++,u.r=D,u.g=Ha,u.b=C,u.a=v,u=u.n;v=b;A=1;for(D=e+1;A<D;)Ha=A++,h=v+r<<2,m+=u.r=a[h],G+=u.g=a[h+1],H+=u.b=a[h+2],y+=u.a=a[h+3],u=u.n,Ha<g&&(v+=b);h=r;A=l;if(0<f)for(D=0,Ha=c;D<Ha;)C=D++,u=h<<2,v=y*B>>>P,a[u+3]=v,0<v?(a[u]=m*B>>>P,a[u+1]=G*B>>>P,a[u+2]=H*B>>>P):a[u]=a[u+1]=a[u+2]=0,u=C+q,u=r+(u<g?u:g)*b<<2,m-=A.r-(A.r=a[u]),G-=A.g-(A.g=a[u+1]),H-=A.b-(A.b=a[u+2]),y-=A.a-(A.a=a[u+3]),A=A.n,h+=b;else for(var J=
0,I=c;J<I;){var L=J++;u=h<<2;v=y*B>>>P;a[u+3]=v;0<v?(v=255/v,D=(m*B>>>P)*v|0,Ha=(G*B>>>P)*v|0,C=(H*B>>>P)*v|0,a[u]=255<D?255:D,a[u+1]=255<Ha?255:Ha,a[u+2]=255<C?255:C):a[u]=a[u+1]=a[u+2]=0;u=L+q;u=r+(u<g?u:g)*b<<2;m-=A.r-(A.r=a[u]);G-=A.g-(A.g=a[u+1]);H-=A.b-(A.b=a[u+2]);y-=A.a-(A.a=a[u+3]);A=A.n;h+=b}}}}};var Xk=function(){this.a=this.b=this.g=this.r=0;this.n=null};g["lime._internal.graphics.BlurStack"]=Xk;Xk.__name__="lime._internal.graphics.BlurStack";Xk.prototype={r:null,g:null,b:null,a:null,
n:null,__class__:Xk};var Ou=function(){};g["lime._internal.macros.AssetsMacro"]=Ou;Ou.__name__="lime._internal.macros.AssetsMacro";var Zt=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app.Event"]=Zt;Zt.__name__="lime.app.Event";Zt.prototype={canceled:null,__listeners:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,
0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},dispatch:null,has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=
this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__class__:Zt};var Ja=function(a,b){null==b&&(b=!1);if(null!=a)if(b)b=new nd,b.future=this,De.queue({promise:b,work:a});else try{this.value=a(),this.isComplete=!0}catch(c){wa.lastError=c,this.error=u.caught(c).unwrap(),this.isError=!0}};g["lime.app.Future"]=Ja;Ja.__name__="lime.app.Future";Ja.ofEvents=function(a,b,c){var d=new nd;a.add(function(a){d.complete(a)},!0);null!=b&&b.add(function(a){d.error(a)},
!0);null!=c&&c.add(function(a,b){d.progress(a,b)},!0);return d.future};Ja.withError=function(a){var b=new Ja;b.isError=!0;b.error=a;return b};Ja.withValue=function(a){var b=new Ja;b.isComplete=!0;b.value=a;return b};Ja.prototype={error:null,isComplete:null,isError:null,value:null,__completeListeners:null,__errorListeners:null,__progressListeners:null,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},ready:function(a){this.isComplete||this.isError||Ea.warn("Cannot block thread in JavaScript",{fileName:"lime/app/Future.hx",lineNumber:208,className:"lime.app.Future",methodName:"ready"});
return this},result:function(a){null==a&&(a=-1);this.ready(a);return this.isComplete?this.value:null},then:function(a){if(this.isComplete)return a(this.value);if(this.isError){var b=new Ja;b.isError=!0;b.error=this.error;return b}var c=new nd;this.onError(k(c,c.error));this.onProgress(k(c,c.progress));this.onComplete(function(b){b=a(b);b.onError(k(c,c.error));b.onComplete(k(c,c.complete))});return c.future},__class__:Ja};var De=function(){};g["lime.app._Future.FutureWork"]=De;De.__name__="lime.app._Future.FutureWork";
De.queue=function(a){null==De.threadPool&&(De.threadPool=new Ms,De.threadPool.doWork.add(De.threadPool_doWork),De.threadPool.onComplete.add(De.threadPool_onComplete),De.threadPool.onError.add(De.threadPool_onError));De.threadPool.queue(a)};De.threadPool_doWork=function(a){try{var b=a.work();De.threadPool.sendComplete({promise:a.promise,result:b})}catch(c){wa.lastError=c,b=u.caught(c).unwrap(),De.threadPool.sendError({promise:a.promise,error:b})}};De.threadPool_onComplete=function(a){a.promise.complete(a.result)};
De.threadPool_onError=function(a){a.promise.error(a.error)};var nd=function(){this.future=new Ja};g["lime.app.Promise"]=nd;nd.__name__="lime.app.Promise";nd.prototype={future:null,isComplete:null,isError:null,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;b<c.length;){var d=c[b];++b;d(a)}this.future.__completeListeners=null}return this},completeWith:function(a){a.onComplete(k(this,
this.complete));a.onError(k(this,this.error));a.onProgress(k(this,this.progress));return this},error:function(a){if(!this.future.isComplete&&(this.future.isError=!0,this.future.error=a,null!=this.future.__errorListeners)){for(var b=0,c=this.future.__errorListeners;b<c.length;){var d=c[b];++b;d(a)}this.future.__errorListeners=null}return this},progress:function(a,b){if(!this.future.isError&&!this.future.isComplete&&null!=this.future.__progressListeners)for(var c=0,d=this.future.__progressListeners;c<
d.length;){var e=d[c];++c;e(a,b)}return this},get_isComplete:function(){return this.future.isComplete},get_isError:function(){return this.future.isError},__class__:nd,__properties__:{get_isError:"get_isError",get_isComplete:"get_isComplete"}};var Pj=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_Dynamic_Void"]=Pj;Pj.__name__="lime.app._Event_Dynamic_Void";Pj.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==
c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Pj};var Ns=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=
[]};g["lime.app._Event_Float_Float_Float_Void"]=Ns;Ns.__name__="lime.app._Event_Float_Float_Float_Void";Ns.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,
e=this.__repeat,f=0;f<d.length&&(d[f](a,b,c),e[f]?++f:this.remove(d[f]),!this.canceled););},__class__:Ns};var Os=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_Float_Float_Int_Void"]=Os;Os.__name__="lime.app._Event_Float_Float_Int_Void";Os.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,
0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;
this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,e=this.__repeat,f=0;f<d.length&&(d[f](a,b,c),e[f]?++f:this.remove(d[f]),!this.canceled););},__class__:Os};var Vm=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_Float_Float_Void"]=Vm;Vm.__name__="lime.app._Event_Float_Float_Void";Vm.prototype={canceled:null,__repeat:null,
__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]),!this.canceled););},__class__:Vm};var Ps=function(){this.canceled=!1;this.__listeners=[];this.__priorities=
[];this.__repeat=[]};g["lime.app._Event_Float_Float_lime_ui_MouseButton_Void"]=Ps;Ps.__name__="lime.app._Event_Float_Float_lime_ui_MouseButton_Void";Ps.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b,c){this.canceled=
!1;for(var d=this.__listeners,e=this.__repeat,f=0;f<d.length&&(d[f](a,b,c),e[f]?++f:this.remove(d[f]),!this.canceled););},__class__:Ps};var Qs=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_Float_Float_lime_ui_MouseWheelMode_Void"]=Qs;Qs.__name__="lime.app._Event_Float_Float_lime_ui_MouseWheelMode_Void";Qs.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<
e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,e=this.__repeat,f=0;f<d.length&&(d[f](a,b,c),e[f]?++f:this.remove(d[f]),!this.canceled););},__class__:Qs};var Rs=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_Int_Float_Float_Void"]=Rs;Rs.__name__="lime.app._Event_Int_Float_Float_Void";
Rs.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},
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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,e=this.__repeat,f=0;f<d.length&&(d[f](a,b,c),e[f]?++f:this.remove(d[f]),!this.canceled););},__class__:Rs};
var Ss=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_Int_Float_Void"]=Ss;Ss.__name__="lime.app._Event_Int_Float_Void";Ss.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,
b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]),!this.canceled););},__class__:Ss};var Ep=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_Int_Int_Void"]=Ep;Ep.__name__="lime.app._Event_Int_Int_Void";Ep.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,
0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;
this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]),!this.canceled););},__class__:Ep};var Cj=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_Int_Void"]=Cj;Cj.__name__="lime.app._Event_Int_Void";Cj.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,
b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Cj};var Ts=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=
[]};g["lime.app._Event_Int_lime_ui_JoystickHatPosition_Void"]=Ts;Ts.__name__="lime.app._Event_Int_lime_ui_JoystickHatPosition_Void";Ts.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=
this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]),!this.canceled););},__class__:Ts};var Us=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_String_Int_Int_Void"]=Us;Us.__name__="lime.app._Event_String_Int_Int_Void";Us.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,
0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;
this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,e=this.__repeat,f=0;f<d.length&&(d[f](a,b,c),e[f]?++f:this.remove(d[f]),!this.canceled););},__class__:Us};var Fp=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_String_Void"]=Fp;Fp.__name__="lime.app._Event_String_Void";Fp.prototype={canceled:null,__repeat:null,__priorities:null,
add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Fp};var Ad=function(){this.canceled=!1;this.__listeners=[];this.__priorities=
[];this.__repeat=[]};g["lime.app._Event_Void_Void"]=Ad;Ad.__name__="lime.app._Event_Void_Void";Ad.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(){this.canceled=!1;for(var a=this.__listeners,b=this.__repeat,c=0;c<a.length&&(a[c](),
b[c]?++c:this.remove(a[c]),!this.canceled););},__class__:Ad};var Gp=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_lime_graphics_RenderContext_Void"]=Gp;Gp.__name__="lime.app._Event_lime_graphics_RenderContext_Void";Gp.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,
0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,
a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Gp};var Vs=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_lime_ui_GamepadAxis_Float_Void"]=Vs;Vs.__name__="lime.app._Event_lime_ui_GamepadAxis_Float_Void";Vs.prototype={canceled:null,__repeat:null,__priorities:null,
add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]),!this.canceled););},__class__:Vs};var Hp=function(){this.canceled=!1;this.__listeners=[];this.__priorities=
[];this.__repeat=[]};g["lime.app._Event_lime_ui_GamepadButton_Void"]=Hp;Hp.__name__="lime.app._Event_lime_ui_GamepadButton_Void";Hp.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,
d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Hp};var Ws=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_lime_ui_Gamepad_Void"]=Ws;Ws.__name__="lime.app._Event_lime_ui_Gamepad_Void";Ws.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,
0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,
a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Ws};var Xs=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_lime_ui_Joystick_Void"]=Xs;Xs.__name__="lime.app._Event_lime_ui_Joystick_Void";Xs.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,
b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Xs};var Ip=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=
[]};g["lime.app._Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void"]=Ip;Ip.__name__="lime.app._Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void";Ip.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b){this.canceled=
!1;for(var c=this.__listeners,d=this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]),!this.canceled););},__class__:Ip};var Yk=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_lime_ui_Touch_Void"]=Yk;Yk.__name__="lime.app._Event_lime_ui_Touch_Void";Yk.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,
0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;
this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Yk};var ss=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};g["lime.app._Event_lime_ui_Window_Void"]=ss;ss.__name__="lime.app._Event_lime_ui_Window_Void";ss.prototype={canceled:null,__repeat:null,__priorities:null,
add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:ss};var $t=function(){this.canceled=!1;this.__listeners=[];this.__priorities=
[];this.__repeat=[]};g["lime.app._Event_ofEvents_T_Void"]=$t;$t.__name__="lime.app._Event_ofEvents_T_Void";$t.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var f=d++;if(c>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,c);this.__repeat.splice(f,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;b<c.length;){var d=c[b];++b;if(d==a)return!0}return!1},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))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,
d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:$t};var Lb=function(a,b,c,d,e,f,h){null==e&&(e=-1);null==d&&(d=-1);null==c&&(c=0);null==b&&(b=0);this.offsetX=b;this.offsetY=c;this.width=d;this.height=e;this.version=0;null==h&&(h=hd.CANVAS);this.type=h;if(null==a){if(0<d&&0<e)switch(this.type._hx_index){case 0:this.buffer=new mg(null,d,e);ua.createCanvas(this,d,e);null!=f&&0!=f&&this.fillRect(new qd(0,0,d,e),f);break;case 1:a=d*e*4,a=null!=a?new Uint8Array(a):null,
this.buffer=new mg(a,d,e),null!=f&&0!=f&&this.fillRect(new qd(0,0,d,e),f)}}else this.__fromImageBuffer(a)};g["lime.graphics.Image"]=Lb;Lb.__name__="lime.graphics.Image";Lb.fromBase64=function(a,b){if(null==a)return null;var c=new Lb;c.__fromBase64(a,b);return c};Lb.fromBitmapData=function(a){return null==a?null:a.image};Lb.fromBytes=function(a){if(null==a)return null;var b=new Lb;return b.__fromBytes(a)?b:null};Lb.fromCanvas=function(a){if(null==a)return null;var b=new mg(null,a.width,a.height);b.set_src(a);
a=new Lb(b);a.type=hd.CANVAS;return a};Lb.fromFile=function(a){if(null==a)return null;var b=new Lb;return b.__fromFile(a)?b:null};Lb.fromImageElement=function(a){if(null==a)return null;var b=new mg(null,a.width,a.height);b.set_src(a);a=new Lb(b);a.type=hd.CANVAS;return a};Lb.loadFromBase64=function(a,b){return null==a||null==b?Ja.withValue(null):Fa.loadImage("data:"+b+";base64,"+a)};Lb.loadFromBytes=function(a){if(null==a)return Ja.withValue(null);if(Lb.__isPNG(a))var b="image/png";else if(Lb.__isJPG(a))b=
"image/jpeg";else if(Lb.__isGIF(a))b="image/gif";else if(Lb.__isWebP(a))b="image/webp";else return Ja.withValue(null);return Fa.loadImageFromBytes(a,b)};Lb.loadFromFile=function(a){return null==a?Ja.withValue(null):Fa.loadImage(a)};Lb.__isGIF=function(a){if(null==a||6>a.length)return!1;a=a.getString(0,6);return"GIF87a"!=a?"GIF89a"==a:!0};Lb.__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};Lb.__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};Lb.__isWebP=function(a){return null==a||16>a.length?!1:"RIFF"==a.getString(0,4)?"WEBP"==a.getString(8,4):!1};Lb.prototype={buffer:null,dirty:null,height:null,offsetX:null,offsetY:null,rect:null,type:null,version:null,width:null,x:null,y:null,clone:function(){if(null!=this.buffer){this.type==hd.CANVAS?ua.convertToCanvas(this):ua.convertToData(this);var a=new Lb(this.buffer.clone(),this.offsetX,
this.offsetY,this.width,this.height,null,this.type);a.version=this.version;return a}return new Lb(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:ua.colorTransform(this,a,b);break;case 1:ua.convertToData(this);Ga.colorTransform(this,a,b);break;case 2:a.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.colorTransform(a.__toFlashRectangle(),jd.__toFlashColorTransform(b))}},
copyChannel:function(a,b,c,d,e){b=this.__clipRect(b);if(null!=this.buffer&&null!=b&&!(e==Kd.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:ua.copyChannel(this,a,b,c,d,e);break;case 1:ua.convertToData(this);ua.convertToData(a);Ga.copyChannel(this,a,b,c,d,e);break;case 2:switch(d._hx_index){case 0:var f=1;break;case 1:f=2;break;case 2:f=4;break;case 3:f=8}switch(e._hx_index){case 0:var h=
1;break;case 1:h=2;break;case 2:h=4;break;case 3:h=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(),f,h)}},copyPixels:function(a,b,c,d,e,f){null==f&&(f=!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<b.get_right()&&c.y<b.get_bottom()&&(a=this.clone()),d==a&&(null==e||0==e.x&&0==e.y)&&(e=d=null),this.type._hx_index){case 0:null!=d?(ua.convertToData(this),ua.convertToData(a),null!=d&&ua.convertToData(d),Ga.copyPixels(this,a,b,c,d,e,f)):(ua.convertToCanvas(this),ua.convertToCanvas(a),ua.copyPixels(this,
a,b,c,d,e,f));break;case 1:ua.convertToData(this);ua.convertToData(a);null!=d&&ua.convertToData(d);Ga.copyPixels(this,a,b,c,d,e,f);break;case 2:b.offset(a.offsetX,a.offsetY),c.offset(this.offsetX,this.offsetY),null!=d&&null!=e&&e.offset(d.offsetX,d.offsetY),this.buffer.__srcBitmapData.copyPixels(a.buffer.__srcBitmapData,b.__toFlashRectangle(),c.__toFlashPoint(),null!=d?d.buffer.get_src():null,null!=e?e.__toFlashPoint():null,f)}},encode:function(a,b){null==b&&(b=90);if(null==a)return Um.encode(this);
switch(a._hx_index){case 0:return Yt.encode(this);case 1:return Bp.encode(this,b);case 2:return Um.encode(this)}},fillRect:function(a,b,c){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(this.type._hx_index){case 0:ua.fillRect(this,a,b,c);break;case 1:ua.convertToData(this);if(0==this.buffer.data.length)break;Ga.fillRect(this,a,b,c);break;case 2:a.offset(this.offsetX,this.offsetY);if(null==c)b=(b&255)<<24|(b>>>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)}},floodFill:function(a,b,c,d){if(null!=this.buffer)switch(this.type._hx_index){case 0:ua.floodFill(this,a,b,c,d);break;case 1:ua.convertToData(this);Ga.floodFill(this,a,b,c,d);break;case 2:if(null==d)c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255;else switch(d){case 1:break;case 2:c=(c&255)<<24|(c>>>8&255)<<
16|(c>>>16&255)<<8|c>>>24&255;break;default:c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255}this.buffer.__srcBitmapData.floodFill(a+this.offsetX,b+this.offsetY,c)}},getColorBoundsRect:function(a,b,c,d){null==c&&(c=!0);if(null==this.buffer)return null;switch(this.type._hx_index){case 0:return ua.convertToData(this),Ga.getColorBoundsRect(this,a,b,c,d);case 1:return Ga.getColorBoundsRect(this,a,b,c,d);case 2:return a=this.buffer.__srcBitmapData.getColorBoundsRect(a,b,c),new qd(a.x,a.y,a.width,
a.height);default:return null}},getPixel:function(a,b,c){if(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height)return 0;switch(this.type._hx_index){case 0:return ua.getPixel(this,a,b,c);case 1:return ua.convertToData(this),Ga.getPixel(this,a,b,c);case 2:a=this.buffer.__srcBitmapData.getPixel(a+this.offsetX,b+this.offsetY);if(null==c)return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255;switch(c){case 1:return a;case 2:return(a&255)<<24|(a>>>8&255)<<16|(a>>>16&255)<<8|a>>>24&255;default:return(a>>>
16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255}default:return 0}},getPixel32:function(a,b,c){if(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height)return 0;switch(this.type._hx_index){case 0:return ua.getPixel32(this,a,b,c);case 1:return ua.convertToData(this),Ga.getPixel32(this,a,b,c);case 2:a=this.buffer.__srcBitmapData.getPixel32(a+this.offsetX,b+this.offsetY);if(null==c)return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255;switch(c){case 1:return a;case 2:return(a&255)<<24|(a>>>
8&255)<<16|(a>>>16&255)<<8|a>>>24&255;default:return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255}default:return 0}},getPixels:function(a,b){if(null==this.buffer)return null;switch(this.type._hx_index){case 0:return ua.getPixels(this,a,b);case 1:return ua.convertToData(this),Ga.getPixels(this,a,b);case 2:return null;default:return null}},merge:function(a,b,c,d,e,f,h){if(null!=this.buffer&&null!=a)switch(this.type._hx_index){case 0:ua.convertToCanvas(this);ua.merge(this,a,b,c,d,e,f,h);break;
case 1:ua.convertToData(this);ua.convertToData(a);Ga.merge(this,a,b,c,d,e,f,h);break;case 2:b.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.merge(a.buffer.__srcBitmapData,b.__toFlashRectangle(),c.__toFlashPoint(),d,e,f,h)}},resize:function(a,b){switch(this.type._hx_index){case 0:ua.resize(this,a,b);break;case 1:Ga.resize(this,a,b)}this.buffer.width=a;this.buffer.height=b;this.offsetY=this.offsetX=0;this.width=a;this.height=b},scroll:function(a,b){if(null!=this.buffer)switch(this.type._hx_index){case 0:ua.scroll(this,
a,b);break;case 1:this.copyPixels(this,this.get_rect(),new id(a,b));break;case 2:this.buffer.__srcBitmapData.scroll(a+this.offsetX,b+this.offsetX)}},setPixel:function(a,b,c,d){if(!(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height))switch(this.type._hx_index){case 0:ua.setPixel(this,a,b,c,d);break;case 1:ua.convertToData(this);Ga.setPixel(this,a,b,c,d);break;case 2:if(null==d)c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255;else switch(d){case 1:break;case 2:c=(c&255)<<24|(c>>>8&
255)<<16|(c>>>16&255)<<8|c>>>24&255;break;default:c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255}this.buffer.__srcBitmapData.setPixel(a+this.offsetX,b+this.offsetX,c)}},setPixel32:function(a,b,c,d){if(!(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height))switch(this.type._hx_index){case 0:ua.setPixel32(this,a,b,c,d);break;case 1:ua.convertToData(this);Ga.setPixel32(this,a,b,c,d);break;case 2:if(null==d)c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255;else switch(d){case 1:break;
case 2:c=(c&255)<<24|(c>>>8&255)<<16|(c>>>16&255)<<8|c>>>24&255;break;default:c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255}this.buffer.__srcBitmapData.setPixel32(a+this.offsetX,b+this.offsetY,c)}},setPixels:function(a,b,c,d){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(null==d&&(d=If.BIG_ENDIAN),this.type._hx_index){case 0:ua.setPixels(this,a,b,c,d);break;case 1:ua.convertToData(this),Ga.setPixels(this,a,b,c,d)}},threshold:function(a,b,c,d,e,f,h,l,m){null==l&&(l=!1);null==
h&&(h=-1);null==f&&(f=0);if(null==this.buffer||null==a||null==b)return 0;switch(this.type._hx_index){case 0:case 1:return ua.convertToData(this),ua.convertToData(a),Ga.threshold(this,a,b,c,d,e,f,h,l,m);case 2:if(null==m){var k=f;f=(k&255)<<24|(k>>>24&255)<<16|(k>>>16&255)<<8|k>>>8&255}else switch(m){case 1:break;case 2:k=f;f=(k&255)<<24|(k>>>8&255)<<16|(k>>>16&255)<<8|k>>>24&255;break;default:k=f,f=(k&255)<<24|(k>>>24&255)<<16|(k>>>16&255)<<8|k>>>8&255}if(null==m)k=h,h=(k&255)<<24|(k>>>24&255)<<16|
(k>>>16&255)<<8|k>>>8&255;else switch(m){case 1:break;case 2:k=h;h=(k&255)<<24|(k>>>8&255)<<16|(k>>>16&255)<<8|k>>>24&255;break;default:k=h,h=(k&255)<<24|(k>>>24&255)<<16|(k>>>16&255)<<8|k>>>8&255}b.offset(a.offsetX,a.offsetY);c.offset(this.offsetX,this.offsetY);return this.buffer.__srcBitmapData.threshold(a.buffer.get_src(),b.__toFlashRectangle(),c.__toFlashPoint(),d,e,f,h,l)}return 0},__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,e=new Image;e.addEventListener("load",function(a){d.buffer=new mg(null,e.width,e.height);d.buffer.__srcImage=e;d.offsetX=0;d.offsetY=0;d.width=d.buffer.width;d.height=d.buffer.height;null!=c&&c(d)},!1);e.src="data:"+b+";base64,"+a},__fromBytes:function(a,b){if(Lb.__isPNG(a))var c="image/png";
else if(Lb.__isJPG(a))c="image/jpeg";else if(Lb.__isGIF(a))c="image/gif";else return!1;this.__fromBase64(lg.encode(a),c,b);return!0},__fromFile:function(a,b,c){var d=this,e=new Image;Fa.__isSameOrigin(a)||(e.crossOrigin="Anonymous");e.onload=function(a){d.buffer=new mg(null,e.width,e.height);d.buffer.__srcImage=e;d.width=e.width;d.height=e.height;null!=b&&b(d)};e.onerror=function(a){null!=c&&c()};e.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&&0<this.buffer.width&&0<this.buffer.height&&ua.convertToData(this);return this.buffer.data},set_data:function(a){return this.buffer.data=a},get_format:function(){return this.buffer.format},set_format:function(a){this.buffer.format!=a&&1==this.type._hx_index&&Ga.setFormat(this,a);return this.buffer.format=a},get_powerOfTwo:function(){return 0!=this.buffer.width&&(this.buffer.width&~this.buffer.width+1)==this.buffer.width?
0!=this.buffer.height?(this.buffer.height&~this.buffer.height+1)==this.buffer.height:!1:!1},set_powerOfTwo:function(a){if(a!=this.get_powerOfTwo()){for(var b=1,c=1;b<this.buffer.width;)b<<=1;for(;c<this.buffer.height;)c<<=1;if(b==this.buffer.width&&c==this.buffer.height)return a;switch(this.type._hx_index){case 0:ua.convertToData(this);Ga.resizeBuffer(this,b,c);break;case 1:Ga.resizeBuffer(this,b,c)}}return a},get_premultiplied:function(){return this.buffer.premultiplied},set_premultiplied:function(a){if(a&&
!this.buffer.premultiplied)switch(this.type._hx_index){case 0:case 1:ua.convertToData(this),Ga.multiplyAlpha(this)}else!a&&this.buffer.premultiplied&&1==this.type._hx_index&&(ua.convertToData(this),Ga.unmultiplyAlpha(this));return a},get_rect:function(){return new qd(0,0,this.width,this.height)},get_src:function(){null!=this.buffer.__srcCanvas||null==this.buffer.data&&this.type!=hd.DATA||ua.convertToCanvas(this);return this.buffer.get_src()},set_src:function(a){return this.buffer.set_src(a)},get_transparent:function(){return null==
this.buffer?!1:this.buffer.transparent},set_transparent:function(a){return null==this.buffer?!1:this.buffer.transparent=a},__class__:Lb,__properties__:{set_transparent:"set_transparent",get_transparent:"get_transparent",set_src:"set_src",get_src:"get_src",get_rect:"get_rect",set_premultiplied:"set_premultiplied",get_premultiplied:"get_premultiplied",set_powerOfTwo:"set_powerOfTwo",get_powerOfTwo:"get_powerOfTwo",set_format:"set_format",get_format:"get_format",set_data:"set_data",get_data:"get_data"}};
var mg=function(a,b,c,d,e){null==d&&(d=32);null==c&&(c=0);null==b&&(b=0);this.data=a;this.width=b;this.height=c;this.bitsPerPixel=d;this.format=null==e?0:e;this.premultiplied=!1;this.transparent=!0};g["lime.graphics.ImageBuffer"]=mg;mg.__name__="lime.graphics.ImageBuffer";mg.prototype={bitsPerPixel:null,data:null,format:null,height:null,premultiplied:null,transparent:null,width:null,__srcBitmapData:null,__srcCanvas:null,__srcContext:null,__srcCustom:null,__srcImage:null,__srcImageData:null,clone:function(){var a=
new mg(this.data,this.width,this.height,this.bitsPerPixel);if(null!=this.data){var b=this.data.byteLength,c=null,d=null,e=null,f=null,h=null;b=null!=b?new Uint8Array(b):null!=c?new Uint8Array(c):null!=d?new Uint8Array(d.__array):null!=e?new Uint8Array(e):null!=f?null==h?new Uint8Array(f,0):new Uint8Array(f,0,h):null;a.data=b;d=c=b=null;e=this.data;h=f=null;b=null!=b?new Uint8Array(b):null!=c?new Uint8Array(c):null!=d?new Uint8Array(d.__array):null!=e?new Uint8Array(e):null!=f?null==h?new Uint8Array(f,
0):new Uint8Array(f,0,h):null;a.data.set(b)}else null!=this.__srcImageData?(a.__srcCanvas=window.document.createElement("canvas"),a.__srcContext=a.__srcCanvas.getContext("2d"),a.__srcCanvas.width=this.__srcImageData.width,a.__srcCanvas.height=this.__srcImageData.height,a.__srcImageData=a.__srcContext.createImageData(this.__srcImageData.width,this.__srcImageData.height),b=new Uint8ClampedArray(this.__srcImageData.data),a.__srcImageData.data.set(b)):null!=this.__srcCanvas?(a.__srcCanvas=window.document.createElement("canvas"),
a.__srcContext=a.__srcCanvas.getContext("2d"),a.__srcCanvas.width=this.__srcCanvas.width,a.__srcCanvas.height=this.__srcCanvas.height,a.__srcContext.drawImage(this.__srcCanvas,0,0)):a.__srcImage=this.__srcImage;a.bitsPerPixel=this.bitsPerPixel;a.format=this.format;a.premultiplied=this.premultiplied;a.transparent=this.transparent;return a},get_src:function(){return null!=this.__srcImage?this.__srcImage:this.__srcCanvas},set_src:function(a){a instanceof Image?this.__srcImage=a:a instanceof HTMLCanvasElement&&
(this.__srcCanvas=a,this.__srcContext=this.__srcCanvas.getContext("2d"));return a},get_stride:function(){return this.width*(this.bitsPerPixel/8|0)},__class__:mg,__properties__:{get_stride:"get_stride",set_src:"set_src",get_src:"get_src"}};var Kd=P["lime.graphics.ImageChannel"]={__ename__:"lime.graphics.ImageChannel",__constructs__:null,RED:{_hx_name:"RED",_hx_index:0,__enum__:"lime.graphics.ImageChannel",toString:v},GREEN:{_hx_name:"GREEN",_hx_index:1,__enum__:"lime.graphics.ImageChannel",toString:v},
BLUE:{_hx_name:"BLUE",_hx_index:2,__enum__:"lime.graphics.ImageChannel",toString:v},ALPHA:{_hx_name:"ALPHA",_hx_index:3,__enum__:"lime.graphics.ImageChannel",toString:v}};Kd.__constructs__=[Kd.RED,Kd.GREEN,Kd.BLUE,Kd.ALPHA];Kd.__empty_constructs__=[Kd.RED,Kd.GREEN,Kd.BLUE,Kd.ALPHA];var Yi=P["lime.graphics.ImageFileFormat"]={__ename__:"lime.graphics.ImageFileFormat",__constructs__:null,BMP:{_hx_name:"BMP",_hx_index:0,__enum__:"lime.graphics.ImageFileFormat",toString:v},JPEG:{_hx_name:"JPEG",_hx_index:1,
__enum__:"lime.graphics.ImageFileFormat",toString:v},PNG:{_hx_name:"PNG",_hx_index:2,__enum__:"lime.graphics.ImageFileFormat",toString:v}};Yi.__constructs__=[Yi.BMP,Yi.JPEG,Yi.PNG];Yi.__empty_constructs__=[Yi.BMP,Yi.JPEG,Yi.PNG];var hd=P["lime.graphics.ImageType"]={__ename__:"lime.graphics.ImageType",__constructs__:null,CANVAS:{_hx_name:"CANVAS",_hx_index:0,__enum__:"lime.graphics.ImageType",toString:v},DATA:{_hx_name:"DATA",_hx_index:1,__enum__:"lime.graphics.ImageType",toString:v},FLASH:{_hx_name:"FLASH",
_hx_index:2,__enum__:"lime.graphics.ImageType",toString:v},CUSTOM:{_hx_name:"CUSTOM",_hx_index:3,__enum__:"lime.graphics.ImageType",toString:v}};hd.__constructs__=[hd.CANVAS,hd.DATA,hd.FLASH,hd.CUSTOM];hd.__empty_constructs__=[hd.CANVAS,hd.DATA,hd.FLASH,hd.CUSTOM];var Ls=function(){};g["lime.graphics.RenderContext"]=Ls;Ls.__name__="lime.graphics.RenderContext";Ls.prototype={attributes:null,cairo:null,canvas2D:null,dom:null,flash:null,gl:null,gles2:null,gles3:null,type:null,version:null,webgl:null,
webgl2:null,window:null,__class__:Ls};var Pu={bufferData:function(a,b,c,d,e,f){null!=e?a.bufferData(b,c,d,e,f):a.bufferData(b,c,d)},bufferSubData:function(a,b,c,d,e,f){null!=e?a.bufferSubData(b,c,d,e,f):a.bufferSubData(b,c,d)},compressedTexImage2D:function(a,b,c,d,e,f,h,l,m,k){null!=m?a.compressedTexImage2D(b,c,d,e,f,h,l,m,k):a.compressedTexImage2D(b,c,d,e,f,h,l)},compressedTexSubImage2D:function(a,b,c,d,e,f,h,l,m,k,g){null!=k?a.compressedTexSubImage2D(b,c,d,e,f,h,l,m,k,g):a.compressedTexSubImage2D(b,
c,d,e,f,h,l,m)},getBufferSubData:function(a,b,c,d,e,f){null!=e?a.getBufferSubData(b,c,d,e,f):a.getBufferSubData(b,c,d)},readPixels:function(a,b,c,d,e,f,h,l,m){null!=m?a.readPixels(b,c,d,e,f,h,l,m):a.readPixels(b,c,d,e,f,h,l)},texImage2D:function(a,b,c,d,e,f,h,l,m,k,g){null!=g?a.texImage2D(b,c,d,e,f,h,l,m,k,g):null!=l?a.texImage2D(b,c,d,e,f,h,l,m,k):a.texImage2D(b,c,d,e,f,h)},texSubImage2D:function(a,b,c,d,e,f,h,l,m,k,g){null!=g?a.texSubImage2D(b,c,d,e,f,h,l,m,k,g):null!=m?a.texSubImage2D(b,c,d,e,
f,h,l,m,k):a.texSubImage2D(b,c,d,e,f,h,l)},uniform1fv:function(a,b,c,d,e){null!=d?a.uniform1fv(b,c,d,e):a.uniform1fv(b,c)},uniform1iv:function(a,b,c,d,e){null!=d?a.uniform1iv(b,c,d,e):a.uniform1iv(b,c)},uniform2fv:function(a,b,c,d,e){null!=d?a.uniform2fv(b,c,d,e):a.uniform2fv(b,c)},uniform2iv:function(a,b,c,d,e){null!=d?a.uniform2iv(b,c,d,e):a.uniform2iv(b,c)},uniform3fv:function(a,b,c,d,e){null!=d?a.uniform3fv(b,c,d,e):a.uniform3fv(b,c)},uniform3iv:function(a,b,c,d,e){null!=d?a.uniform3iv(b,c,d,
e):a.uniform3iv(b,c)},uniform4fv:function(a,b,c,d,e){null!=d?a.uniform4fv(b,c,d,e):a.uniform4fv(b,c)},uniform4iv:function(a,b,c,d,e){null!=d?a.uniform4iv(b,c,d,e):a.uniform4iv(b,c)},uniformMatrix2fv:function(a,b,c,d,e,f){null!=e?a.uniformMatrix2fv(b,c,d,e,f):a.uniformMatrix2fv(b,c,d)},uniformMatrix3fv:function(a,b,c,d,e,f){null!=e?a.uniformMatrix3fv(b,c,d,e,f):a.uniformMatrix3fv(b,c,d)},uniformMatrix4fv:function(a,b,c,d,e,f){null!=e?a.uniformMatrix4fv(b,c,d,e,f):a.uniformMatrix4fv(b,c,d)},fromGL:function(a){return null},
fromRenderContext:function(a){return a.webgl2},toWebGLRenderContext:function(a){return a}},cc={bufferData:function(a,b,c,d){a.bufferData(b,c,d)},bufferSubData:function(a,b,c,d){a.bufferSubData(b,c,d)},compressedTexImage2D:function(a,b,c,d,e,f,h,l){a.compressedTexImage2D(b,c,d,e,f,h,l)},compressedTexSubImage2D:function(a,b,c,d,e,f,h,l,m){a.compressedTexSubImage2D(b,c,d,e,f,h,l,m)},readPixels:function(a,b,c,d,e,f,h,l){a.readPixels(b,c,d,e,f,h,l)},texImage2D:function(a,b,c,d,e,f,h,l,m,k){null!=l?a.texImage2D(b,
c,d,e,f,h,l,m,k):a.texImage2D(b,c,d,e,f,h)},texSubImage2D:function(a,b,c,d,e,f,h,l,m,k){null!=m?a.texSubImage2D(b,c,d,e,f,h,l,m,k):a.texSubImage2D(b,c,d,e,f,h,l)},uniformMatrix2fv:function(a,b,c,d){a.uniformMatrix2fv(b,c,d)},uniformMatrix3fv:function(a,b,c,d){a.uniformMatrix3fv(b,c,d)},uniformMatrix4fv:function(a,b,c,d){a.uniformMatrix4fv(b,c,d)},fromWebGL2RenderContext:function(a){return a},fromRenderContext:function(a){return a.webgl},fromGL:function(a){return q.context}},Wm=function(a){};g["lime.graphics.cairo.Cairo"]=
Wm;Wm.__name__="lime.graphics.cairo.Cairo";Wm.__properties__={get_versionString:"get_versionString",get_version:"get_version"};Wm.get_version=function(){return 0};Wm.get_versionString=function(){return""};Wm.prototype={target:null,userData:null,handle:null,arc:function(a,b,c,d,e){},arcNegative:function(a,b,c,d,e){},clip:function(){},clipExtents:function(a,b,c,d){},clipPreserve:function(){},closePath:function(){},copyPage:function(){},curveTo:function(a,b,c,d,e,f){},fill:function(){},fillExtents:function(a,
b,c,d){},fillPreserve:function(){},getOperator:function(){return 0},identityMatrix:function(){},inClip:function(a,b){return!1},inFill:function(a,b){return!1},inStroke:function(a,b){return!1},lineTo:function(a,b){},mask:function(a){},maskSurface:function(a,b,c){},moveTo:function(a,b){},newPath:function(){},paint:function(){},paintWithAlpha:function(a){},popGroup:function(){return null},popGroupToSource:function(){},pushGroup:function(){},pushGroupWithContent:function(a){},recreate:function(a){},rectangle:function(a,
b,c,d){},relCurveTo:function(a,b,c,d,e,f){},relLineTo:function(a,b){},relMoveTo:function(a,b){},resetClip:function(){},restore:function(){},rotate:function(a){},save:function(){},scale:function(a,b){},setFontSize:function(a){},setOperator:function(a){return a},setSourceRGB:function(a,b,c){},setSourceRGBA:function(a,b,c,d){},setSourceSurface:function(a,b,c){},showGlyphs:function(a){},showPage:function(){},showText:function(a){},status:function(){return 0},stroke:function(){},strokeExtents:function(a,
b,c,d){},strokePreserve:function(){},textPath:function(a){},transform:function(a){},translate:function(a,b){},get_antialias:function(){return 0},set_antialias:function(a){return a},get_currentPoint:function(){return null},get_dash:function(){return[]},set_dash:function(a){return a},get_dashCount:function(){return 0},get_fillRule:function(){return 0},set_fillRule:function(a){return a},get_fontFace:function(){return 0},set_fontFace:function(a){return a},get_fontOptions:function(){return null},set_fontOptions:function(a){return a},
get_groupTarget:function(){return 0},get_hasCurrentPoint:function(){return!1},get_lineCap:function(){return 0},set_lineCap:function(a){return a},get_lineJoin:function(){return 0},set_lineJoin:function(a){return a},get_lineWidth:function(){return 0},set_lineWidth:function(a){return a},get_matrix:function(){return null},set_matrix:function(a){return a},get_miterLimit:function(){return 0},set_miterLimit:function(a){return a},get_source:function(){return 0},set_source:function(a){return a},get_target:function(){return 0},
get_tolerance:function(){return 0},set_tolerance:function(a){return a},__class__:Wm,__properties__:{set_tolerance:"set_tolerance",get_tolerance:"get_tolerance",get_target:"get_target",set_source:"set_source",get_source:"get_source",set_miterLimit:"set_miterLimit",get_miterLimit:"get_miterLimit",set_matrix:"set_matrix",get_matrix:"get_matrix",set_lineWidth:"set_lineWidth",get_lineWidth:"get_lineWidth",set_lineJoin:"set_lineJoin",get_lineJoin:"get_lineJoin",set_lineCap:"set_lineCap",get_lineCap:"get_lineCap",
get_hasCurrentPoint:"get_hasCurrentPoint",get_groupTarget:"get_groupTarget",set_fontOptions:"set_fontOptions",get_fontOptions:"get_fontOptions",set_fontFace:"set_fontFace",get_fontFace:"get_fontFace",set_fillRule:"set_fillRule",get_fillRule:"get_fillRule",get_dashCount:"get_dashCount",set_dash:"set_dash",get_dash:"get_dash",get_currentPoint:"get_currentPoint",set_antialias:"set_antialias",get_antialias:"get_antialias"}};var au=function(a,b,c){null==c&&(c=0);null==b&&(b=0);this.index=a;this.x=b;this.y=
c};g["lime.graphics.cairo.CairoGlyph"]=au;au.__name__="lime.graphics.cairo.CairoGlyph";au.prototype={index:null,x:null,y:null,__class__:au};var Uu={__properties__:{get_width:"get_width",get_stride:"get_stride",get_height:"get_height",get_format:"get_format",get_data:"get_data"},_new:function(a,b,c){return 0},create:function(a,b,c,d,e){return 0},fromImage:function(a){return null},get_data:function(a){return lf.fromFloat(0)},get_format:function(a){return 0},get_height:function(a){return 0},get_stride:function(a){return 0},
get_width:function(a){return 0}},Ys={__properties__:{set_matrix:"set_matrix",get_matrix:"get_matrix",set_filter:"set_filter",get_filter:"get_filter",set_extend:"set_extend",get_extend:"get_extend",get_colorStopCount:"get_colorStopCount"},_new:function(a){return a},addColorStopRGB:function(a,b,c,d,e){},addColorStopRGBA:function(a,b,c,d,e,f){},createForSurface:function(a){return 0},createLinear:function(a,b,c,d){return 0},createRadial:function(a,b,c,d,e,f){return 0},createRGB:function(a,b,c){return 0},
createRGBA:function(a,b,c,d){return 0},get_colorStopCount:function(a){return 0},get_extend:function(a){return 0},set_extend:function(a,b){return b},get_filter:function(a){return 0},set_filter:function(a,b){return b},get_matrix:function(a){return null},set_matrix:function(a,b){return b}},Vu={flush:function(a){}},q=function(){};g["lime.graphics.opengl.GL"]=q;q.__name__="lime.graphics.opengl.GL";q.activeTexture=function(a){q.context.activeTexture(a)};q.attachShader=function(a,b){q.context.attachShader(a,
b)};q.beginQuery=function(a,b){q.context.beginQuery(a,b)};q.beginTransformFeedback=function(a){q.context.beginTransformFeedback(a)};q.bindAttribLocation=function(a,b,c){q.context.bindAttribLocation(a,b,c)};q.bindBuffer=function(a,b){q.context.bindBuffer(a,b)};q.bindBufferBase=function(a,b,c){q.context.bindBufferBase(a,b,c)};q.bindBufferRange=function(a,b,c,d,e){q.context.bindBufferRange(a,b,c,d,lf.fromFloat(e))};q.bindFramebuffer=function(a,b){q.context.bindFramebuffer(a,b)};q.bindRenderbuffer=function(a,
b){q.context.bindRenderbuffer(a,b)};q.bindSampler=function(a,b){q.context.bindSampler(a,b)};q.bindTexture=function(a,b){q.context.bindTexture(a,b)};q.bindTransformFeedback=function(a,b){q.context.bindTransformFeedback(a,b)};q.bindVertexArray=function(a){q.context.bindVertexArray(a)};q.blitFramebuffer=function(a,b,c,d,e,f,h,l,m,k){q.context.blitFramebuffer(a,b,c,d,e,f,h,l,m,k)};q.blendColor=function(a,b,c,d){q.context.blendColor(a,b,c,d)};q.blendEquation=function(a){q.context.blendEquation(a)};q.blendEquationSeparate=
function(a,b){q.context.blendEquationSeparate(a,b)};q.blendFunc=function(a,b){q.context.blendFunc(a,b)};q.blendFuncSeparate=function(a,b,c,d){q.context.blendFuncSeparate(a,b,c,d)};q.bufferDataWEBGL=function(a,b,c,d,e){var f=q.context;null!=d?f.bufferData(a,b,c,d,e):f.bufferData(a,b,c)};q.bufferSubDataWEBGL=function(a,b,c,d,e){var f=q.context;null!=d?f.bufferSubData(a,b,c,d,e):f.bufferSubData(a,b,c)};q.checkFramebufferStatus=function(a){return q.context.checkFramebufferStatus(a)};q.clear=function(a){q.context.clear(a)};
q.clearBufferfi=function(a,b,c,d){q.context.clearBufferfi(a,b,c,d)};q.clearBufferfvWEBGL=function(a,b,c,d){q.context.clearBufferfv(a,b,c,d)};q.clearBufferivWEBGL=function(a,b,c,d){q.context.clearBufferiv(a,b,c,d)};q.clearBufferuivWEBGL=function(a,b,c,d){q.context.clearBufferuiv(a,b,c,d)};q.clearColor=function(a,b,c,d){q.context.clearColor(a,b,c,d)};q.clearDepth=function(a){q.context.clearDepth(a)};q.clearStencil=function(a){q.context.clearStencil(a)};q.clientWaitSync=function(a,b,c){return q.context.clientWaitSync(a,
b,c)};q.colorMask=function(a,b,c,d){q.context.colorMask(a,b,c,d)};q.compileShader=function(a){q.context.compileShader(a)};q.compressedTexImage2DWEBGL=function(a,b,c,d,e,f,h,l,m){var k=q.context;null!=l?k.compressedTexImage2D(a,b,c,d,e,f,h,l,m):k.compressedTexImage2D(a,b,c,d,e,f,h)};q.compressedTexImage3DWEBGL=function(a,b,c,d,e,f,h,l,m,k){q.context.compressedTexImage3D(a,b,c,d,e,f,h,l,m,k)};q.compressedTexSubImage2DWEBGL=function(a,b,c,d,e,f,h,l,m,k){var g=q.context;null!=m?g.compressedTexSubImage2D(a,
b,c,d,e,f,h,l,m,k):g.compressedTexSubImage2D(a,b,c,d,e,f,h,l)};q.compressedTexSubImage3DWEBGL=function(a,b,c,d,e,f,h,l,m,k,g,n){q.context.compressedTexSubImage3D(a,b,c,d,e,f,h,l,m,k,g,n)};q.copyTexImage2D=function(a,b,c,d,e,f,h,l){q.context.copyTexImage2D(a,b,c,d,e,f,h,l)};q.copyTexSubImage2D=function(a,b,c,d,e,f,h,l){q.context.copyTexSubImage2D(a,b,c,d,e,f,h,l)};q.copyTexSubImage3D=function(a,b,c,d,e,f,h,l,m){q.context.copyTexSubImage3D(a,b,c,d,e,f,h,l,m)};q.createBuffer=function(){return q.context.createBuffer()};
q.createFramebuffer=function(){return q.context.createFramebuffer()};q.createProgram=function(){return q.context.createProgram()};q.createQuery=function(){return q.context.createQuery()};q.createRenderbuffer=function(){return q.context.createRenderbuffer()};q.createSampler=function(){return q.context.createSampler()};q.createShader=function(a){return q.context.createShader(a)};q.createTexture=function(){return q.context.createTexture()};q.createTransformFeedback=function(){return q.context.createTransformFeedback()};
q.createVertexArray=function(){return q.context.createVertexArray()};q.cullFace=function(a){q.context.cullFace(a)};q.deleteBuffer=function(a){q.context.deleteBuffer(a)};q.deleteFramebuffer=function(a){q.context.deleteFramebuffer(a)};q.deleteProgram=function(a){q.context.deleteProgram(a)};q.deleteQuery=function(a){q.context.deleteQuery(a)};q.deleteRenderbuffer=function(a){q.context.deleteRenderbuffer(a)};q.deleteSampler=function(a){q.context.deleteSampler(a)};q.deleteShader=function(a){q.context.deleteShader(a)};
q.deleteSync=function(a){q.context.deleteSync(a)};q.deleteTexture=function(a){q.context.deleteTexture(a)};q.deleteTransformFeedback=function(a){q.context.deleteTransformFeedback(a)};q.deleteVertexArray=function(a){q.context.deleteVertexArray(a)};q.depthFunc=function(a){q.context.depthFunc(a)};q.depthMask=function(a){q.context.depthMask(a)};q.depthRange=function(a,b){q.context.depthRange(a,b)};q.detachShader=function(a,b){q.context.detachShader(a,b)};q.disable=function(a){q.context.disable(a)};q.disableVertexAttribArray=
function(a){q.context.disableVertexAttribArray(a)};q.drawArrays=function(a,b,c){q.context.drawArrays(a,b,c)};q.drawArraysInstanced=function(a,b,c,d){q.context.drawArraysInstanced(a,b,c,d)};q.drawBuffers=function(a){q.context.drawBuffers(a)};q.drawElements=function(a,b,c,d){q.context.drawElements(a,b,c,d)};q.drawElementsInstanced=function(a,b,c,d,e){q.context.drawElementsInstanced(a,b,c,d,e)};q.drawRangeElements=function(a,b,c,d,e,f){q.context.drawRangeElements(a,b,c,d,e,f)};q.enable=function(a){q.context.enable(a)};
q.enableVertexAttribArray=function(a){q.context.enableVertexAttribArray(a)};q.endQuery=function(a){q.context.endQuery(a)};q.endTransformFeedback=function(){q.context.endTransformFeedback()};q.fenceSync=function(a,b){return q.context.fenceSync(a,b)};q.finish=function(){q.context.finish()};q.flush=function(){q.context.flush()};q.framebufferRenderbuffer=function(a,b,c,d){q.context.framebufferRenderbuffer(a,b,c,d)};q.framebufferTexture2D=function(a,b,c,d,e){q.context.framebufferTexture2D(a,b,c,d,e)};
q.framebufferTextureLayer=function(a,b,c,d,e){q.context.framebufferTextureLayer(a,b,c,d,e)};q.frontFace=function(a){q.context.frontFace(a)};q.generateMipmap=function(a){q.context.generateMipmap(a)};q.getActiveAttrib=function(a,b){return q.context.getActiveAttrib(a,b)};q.getActiveUniform=function(a,b){return q.context.getActiveUniform(a,b)};q.getActiveUniformBlockName=function(a,b){return q.context.getActiveUniformBlockName(a,b)};q.getActiveUniformBlockParameter=function(a,b,c){return q.context.getActiveUniformBlockParameter(a,
b,c)};q.getActiveUniforms=function(a,b,c){return q.context.getActiveUniforms(a,b,c)};q.getAttachedShaders=function(a){return q.context.getAttachedShaders(a)};q.getAttribLocation=function(a,b){return q.context.getAttribLocation(a,b)};q.getBufferParameter=function(a,b){return q.context.getBufferParameter(a,b)};q.getBufferSubDataWEBGL=function(a,b,c,d,e){var f=q.context;null!=d?f.getBufferSubData(a,b,c,d,e):f.getBufferSubData(a,b,c)};q.getContextAttributes=function(){return q.context.getContextAttributes()};
q.getError=function(){return q.context.getError()};q.getExtension=function(a){return q.context.getExtension(a)};q.getFragDataLocation=function(a,b){return q.context.getFragDataLocation(a,b)};q.getFramebufferAttachmentParameter=function(a,b,c){return q.context.getFramebufferAttachmentParameter(a,b,c)};q.getIndexedParameter=function(a,b){return q.context.getIndexedParameter(a,b)};q.getInternalformatParameter=function(a,b,c){return q.context.getInternalformatParameter(a,b,c)};q.getParameter=function(a){return q.context.getParameter(a)};
q.getProgramInfoLog=function(a){return q.context.getProgramInfoLog(a)};q.getProgramParameter=function(a,b){return q.context.getProgramParameter(a,b)};q.getQuery=function(a,b){return q.context.getQuery(a,b)};q.getQueryParameter=function(a,b){return q.context.getQueryParameter(a,b)};q.getRenderbufferParameter=function(a,b){return q.context.getRenderbufferParameter(a,b)};q.getSamplerParameter=function(a,b){return q.context.getSamplerParameter(a,b)};q.getShaderInfoLog=function(a){return q.context.getShaderInfoLog(a)};
q.getShaderParameter=function(a,b){return q.context.getShaderParameter(a,b)};q.getShaderPrecisionFormat=function(a,b){return q.context.getShaderPrecisionFormat(a,b)};q.getShaderSource=function(a){return q.context.getShaderSource(a)};q.getSupportedExtensions=function(){return q.context.getSupportedExtensions()};q.getSyncParameter=function(a,b){return q.context.getSyncParameter(a,b)};q.getTexParameter=function(a,b){return q.context.getTexParameter(a,b)};q.getTransformFeedbackVarying=function(a,b){return q.context.getTransformFeedbackVarying(a,
b)};q.getUniform=function(a,b){return q.context.getUniform(a,b)};q.getUniformBlockIndex=function(a,b){return q.context.getUniformBlockIndex(a,b)};q.getUniformIndices=function(a,b){return q.context.getUniformIndices(a,b)};q.getUniformLocation=function(a,b){return q.context.getUniformLocation(a,b)};q.getVertexAttrib=function(a,b){return q.context.getVertexAttrib(a,b)};q.getVertexAttribOffset=function(a,b){return lf.fromFloat(q.context.getVertexAttribOffset(a,b))};q.hint=function(a,b){q.context.hint(a,
b)};q.invalidateFramebuffer=function(a,b){q.context.invalidateFramebuffer(a,b)};q.invalidateSubFramebuffer=function(a,b,c,d,e,f){q.context.invalidateSubFramebuffer(a,b,c,d,e,f)};q.isBuffer=function(a){return q.context.isBuffer(a)};q.isContextLost=function(){return q.context.isContextLost()};q.isEnabled=function(a){return q.context.isEnabled(a)};q.isFramebuffer=function(a){return q.context.isFramebuffer(a)};q.isProgram=function(a){return q.context.isProgram(a)};q.isQuery=function(a){return q.context.isQuery(a)};
q.isRenderbuffer=function(a){return q.context.isRenderbuffer(a)};q.isSampler=function(a){return q.context.isSampler(a)};q.isShader=function(a){return q.context.isShader(a)};q.isSync=function(a){return q.context.isSync(a)};q.isTexture=function(a){return q.context.isTexture(a)};q.isTransformFeedback=function(a){return q.context.isTransformFeedback(a)};q.isVertexArray=function(a){return q.context.isVertexArray(a)};q.lineWidth=function(a){q.context.lineWidth(a)};q.linkProgram=function(a){q.context.linkProgram(a)};
q.pauseTransformFeedback=function(){q.context.pauseTransformFeedback()};q.pixelStorei=function(a,b){q.context.pixelStorei(a,b)};q.polygonOffset=function(a,b){q.context.polygonOffset(a,b)};q.readBuffer=function(a){q.context.readBuffer(a)};q.readPixelsWEBGL=function(a,b,c,d,e,f,h,l){var m=q.context;null!=l?m.readPixels(a,b,c,d,e,f,h,l):m.readPixels(a,b,c,d,e,f,h)};q.renderbufferStorage=function(a,b,c,d){q.context.renderbufferStorage(a,b,c,d)};q.renderbufferStorageMultisample=function(a,b,c,d,e){q.context.renderbufferStorageMultisample(a,
b,c,d,e)};q.resumeTransformFeedback=function(){q.context.resumeTransformFeedback()};q.sampleCoverage=function(a,b){q.context.sampleCoverage(a,b)};q.samplerParameterf=function(a,b,c){q.context.samplerParameterf(a,b,c)};q.samplerParameteri=function(a,b,c){q.context.samplerParameteri(a,b,c)};q.scissor=function(a,b,c,d){q.context.scissor(a,b,c,d)};q.shaderSource=function(a,b){q.context.shaderSource(a,b)};q.stencilFunc=function(a,b,c){q.context.stencilFunc(a,b,c)};q.stencilFuncSeparate=function(a,b,c,
d){q.context.stencilFuncSeparate(a,b,c,d)};q.stencilMask=function(a){q.context.stencilMask(a)};q.stencilMaskSeparate=function(a,b){q.context.stencilMaskSeparate(a,b)};q.stencilOp=function(a,b,c){q.context.stencilOp(a,b,c)};q.stencilOpSeparate=function(a,b,c,d){q.context.stencilOpSeparate(a,b,c,d)};q.texImage2DWEBGL=function(a,b,c,d,e,f,h,l,m,k){var g=q.context;null!=k?g.texImage2D(a,b,c,d,e,f,h,l,m,k):null!=h?g.texImage2D(a,b,c,d,e,f,h,l,m):g.texImage2D(a,b,c,d,e,f)};q.texImage3DWEBGL=function(a,
b,c,d,e,f,h,l,m,k,g){q.context.texImage3D(a,b,c,d,e,f,h,l,m,k,g)};q.texStorage2D=function(a,b,c,d,e){q.context.texStorage2D(a,b,c,d,e)};q.texStorage3D=function(a,b,c,d,e,f){q.context.texStorage3D(a,b,c,d,e,f)};q.texParameterf=function(a,b,c){q.context.texParameterf(a,b,c)};q.texParameteri=function(a,b,c){q.context.texParameteri(a,b,c)};q.texSubImage2DWEBGL=function(a,b,c,d,e,f,h,l,m,k){var g=q.context;null!=k?g.texSubImage2D(a,b,c,d,e,f,h,l,m,k):null!=l?g.texSubImage2D(a,b,c,d,e,f,h,l,m):g.texSubImage2D(a,
b,c,d,e,f,h)};q.texSubImage3DWEBGL=function(a,b,c,d,e,f,h,l,m,k,g,n){q.context.texSubImage3D(a,b,c,d,e,f,h,l,m,k,g,n)};q.transformFeedbackVaryings=function(a,b,c){q.context.transformFeedbackVaryings(a,b,c)};q.uniform1f=function(a,b){q.context.uniform1f(a,b)};q.uniform1fvWEBGL=function(a,b,c,d){var e=q.context;null!=c?e.uniform1fv(a,b,c,d):e.uniform1fv(a,b)};q.uniform1i=function(a,b){q.context.uniform1i(a,b)};q.uniform1ivWEBGL=function(a,b,c,d){var e=q.context;null!=c?e.uniform1iv(a,b,c,d):e.uniform1iv(a,
b)};q.uniform1ui=function(a,b){q.context.uniform1ui(a,b)};q.uniform1uivWEBGL=function(a,b,c,d){q.context.uniform1uiv(a,b,c,d)};q.uniform2f=function(a,b,c){q.context.uniform2f(a,b,c)};q.uniform2fvWEBGL=function(a,b,c,d){Pu.uniform2fv(q.context,a,b,c,d)};q.uniform2i=function(a,b,c){q.context.uniform2i(a,b,c)};q.uniform2ivWEBGL=function(a,b,c,d){var e=q.context;null!=c?e.uniform2iv(a,b,c,d):e.uniform2iv(a,b)};q.uniform2ui=function(a,b,c){q.context.uniform2ui(a,b,c)};q.uniform2uivWEBGL=function(a,b,c,
d){q.context.uniform2uiv(a,b,c,d)};q.uniform3f=function(a,b,c,d){q.context.uniform3f(a,b,c,d)};q.uniform3fvWEBGL=function(a,b,c,d){var e=q.context;null!=c?e.uniform3fv(a,b,c,d):e.uniform3fv(a,b)};q.uniform3i=function(a,b,c,d){q.context.uniform3i(a,b,c,d)};q.uniform3ivWEBGL=function(a,b,c,d){var e=q.context;null!=c?e.uniform3iv(a,b,c,d):e.uniform3iv(a,b)};q.uniform3ui=function(a,b,c,d){q.context.uniform3ui(a,b,c,d)};q.uniform3uivWEBGL=function(a,b,c,d){q.context.uniform3uiv(a,b,c,d)};q.uniform4f=function(a,
b,c,d,e){q.context.uniform4f(a,b,c,d,e)};q.uniform4fvWEBGL=function(a,b,c,d){var e=q.context;null!=c?e.uniform4fv(a,b,c,d):e.uniform4fv(a,b)};q.uniform4i=function(a,b,c,d,e){q.context.uniform4i(a,b,c,d,e)};q.uniform4ivWEBGL=function(a,b,c,d){var e=q.context;null!=c?e.uniform4iv(a,b,c,d):e.uniform4iv(a,b)};q.uniform4ui=function(a,b,c,d,e){q.context.uniform4ui(a,b,c,d,e)};q.uniform4uivWEBGL=function(a,b,c,d){q.context.uniform4uiv(a,b,c,d)};q.uniformBlockBinding=function(a,b,c){q.context.uniformBlockBinding(a,
b,c)};q.uniformMatrix2fvWEBGL=function(a,b,c,d,e){var f=q.context;null!=d?f.uniformMatrix2fv(a,b,c,d,e):f.uniformMatrix2fv(a,b,c)};q.uniformMatrix2x3fvWEBGL=function(a,b,c,d,e){q.context.uniformMatrix2x3fv(a,b,c,d,e)};q.uniformMatrix2x4fvWEBGL=function(a,b,c,d,e){q.context.uniformMatrix2x4fv(a,b,c,d,e)};q.uniformMatrix3fvWEBGL=function(a,b,c,d,e){var f=q.context;null!=d?f.uniformMatrix3fv(a,b,c,d,e):f.uniformMatrix3fv(a,b,c)};q.uniformMatrix3x2fvWEBGL=function(a,b,c,d,e){q.context.uniformMatrix3x2fv(a,
b,c,d,e)};q.uniformMatrix3x4fvWEBGL=function(a,b,c,d,e){q.context.uniformMatrix3x4fv(a,b,c,d,e)};q.uniformMatrix4fvWEBGL=function(a,b,c,d,e){var f=q.context;null!=d?f.uniformMatrix4fv(a,b,c,d,e):f.uniformMatrix4fv(a,b,c)};q.uniformMatrix4x2fvWEBGL=function(a,b,c,d,e){q.context.uniformMatrix4x2fv(a,b,c,d,e)};q.uniformMatrix4x3fvWEBGL=function(a,b,c,d,e){q.context.uniformMatrix4x3fv(a,b,c,d,e)};q.useProgram=function(a){q.context.useProgram(a)};q.validateProgram=function(a){q.context.validateProgram(a)};
q.vertexAttrib1f=function(a,b){q.context.vertexAttrib1f(a,b)};q.vertexAttrib1fv=function(a,b){q.context.vertexAttrib1fv(a,b)};q.vertexAttrib1fvWEBGL=function(a,b){q.context.vertexAttrib1fv(a,b)};q.vertexAttrib2f=function(a,b,c){q.context.vertexAttrib2f(a,b,c)};q.vertexAttrib2fv=function(a,b){q.context.vertexAttrib2fv(a,b)};q.vertexAttrib2fvWEBGL=function(a,b){q.context.vertexAttrib2fv(a,b)};q.vertexAttrib3f=function(a,b,c,d){q.context.vertexAttrib3f(a,b,c,d)};q.vertexAttrib3fv=function(a,b){q.context.vertexAttrib3fv(a,
b)};q.vertexAttrib3fvWEBGL=function(a,b){q.context.vertexAttrib3fv(a,b)};q.vertexAttrib4f=function(a,b,c,d,e){q.context.vertexAttrib4f(a,b,c,d,e)};q.vertexAttrib4fv=function(a,b){q.context.vertexAttrib4fv(a,b)};q.vertexAttrib4fvWEBGL=function(a,b){q.context.vertexAttrib4fv(a,b)};q.vertexAttribDivisor=function(a,b){q.context.vertexAttribDivisor(a,b)};q.vertexAttribI4i=function(a,b,c,d,e){q.context.vertexAttribI4i(a,b,c,d,e)};q.vertexAttribI4iv=function(a,b){q.context.vertexAttribI4iv(a,b)};q.vertexAttribI4ivWEBGL=
function(a,b){q.context.vertexAttribI4iv(a,b)};q.vertexAttribI4ui=function(a,b,c,d,e){q.context.vertexAttribI4ui(a,b,c,d,e)};q.vertexAttribI4uiv=function(a,b){q.context.vertexAttribI4uiv(a,b)};q.vertexAttribI4uivWEBGL=function(a,b){q.context.vertexAttribI4uiv(a,b)};q.vertexAttribIPointer=function(a,b,c,d,e){q.context.vertexAttribIPointer(a,b,c,d,e)};q.vertexAttribPointer=function(a,b,c,d,e,f){q.context.vertexAttribPointer(a,b,c,d,e,f)};q.viewport=function(a,b,c,d){q.context.viewport(a,b,c,d)};q.waitSync=
function(a,b,c){q.context.waitSync(a,b,c)};q.__getObjectID=function(a){return null==a?0:a.id};var bu=function(){this.STACK_UNDERFLOW=1284;this.STACK_OVERFLOW=1283;this.CONTEXT_FLAG_DEBUG_BIT=2;this.DEBUG_OUTPUT=37600;this.DEBUG_SEVERITY_LOW=37192;this.DEBUG_SEVERITY_MEDIUM=37191;this.DEBUG_SEVERITY_HIGH=37190;this.DEBUG_LOGGED_MESSAGES=37189;this.MAX_DEBUG_LOGGED_MESSAGES=37188;this.MAX_DEBUG_MESSAGE_LENGTH=37187;this.MAX_LABEL_LENGTH=33512;this.SAMPLER=33510;this.QUERY=33507;this.PROGRAM=33506;this.SHADER=
33505;this.BUFFER=33504;this.DEBUG_GROUP_STACK_DEPTH=33389;this.MAX_DEBUG_GROUP_STACK_DEPTH=33388;this.DEBUG_SEVERITY_NOTIFICATION=33387;this.DEBUG_TYPE_POP_GROUP=33386;this.DEBUG_TYPE_PUSH_GROUP=33385;this.DEBUG_TYPE_MARKER=33384;this.DEBUG_TYPE_OTHER=33361;this.DEBUG_TYPE_PERFORMANCE=33360;this.DEBUG_TYPE_PORTABILITY=33359;this.DEBUG_TYPE_UNDEFINED_BEHAVIOR=33358;this.DEBUG_TYPE_DEPRECATED_BEHAVIOR=33357;this.DEBUG_TYPE_ERROR=33356;this.DEBUG_SOURCE_OTHER=33355;this.DEBUG_SOURCE_APPLICATION=33354;
this.DEBUG_SOURCE_THIRD_PARTY=33353;this.DEBUG_SOURCE_SHADER_COMPILER=33352;this.DEBUG_SOURCE_WINDOW_SYSTEM=33351;this.DEBUG_SOURCE_API=33350;this.DEBUG_CALLBACK_USER_PARAM=33349;this.DEBUG_CALLBACK_FUNCTION=33348;this.DEBUG_NEXT_LOGGED_MESSAGE_LENGTH=33347;this.DEBUG_OUTPUT_SYNCHRONOUS=33346};g["lime.graphics.opengl.ext.KHR_debug"]=bu;bu.__name__="lime.graphics.opengl.ext.KHR_debug";bu.prototype={DEBUG_OUTPUT_SYNCHRONOUS:null,DEBUG_NEXT_LOGGED_MESSAGE_LENGTH:null,DEBUG_CALLBACK_FUNCTION:null,DEBUG_CALLBACK_USER_PARAM:null,
DEBUG_SOURCE_API:null,DEBUG_SOURCE_WINDOW_SYSTEM:null,DEBUG_SOURCE_SHADER_COMPILER:null,DEBUG_SOURCE_THIRD_PARTY:null,DEBUG_SOURCE_APPLICATION:null,DEBUG_SOURCE_OTHER:null,DEBUG_TYPE_ERROR:null,DEBUG_TYPE_DEPRECATED_BEHAVIOR:null,DEBUG_TYPE_UNDEFINED_BEHAVIOR:null,DEBUG_TYPE_PORTABILITY:null,DEBUG_TYPE_PERFORMANCE:null,DEBUG_TYPE_OTHER:null,DEBUG_TYPE_MARKER:null,DEBUG_TYPE_PUSH_GROUP:null,DEBUG_TYPE_POP_GROUP:null,DEBUG_SEVERITY_NOTIFICATION:null,MAX_DEBUG_GROUP_STACK_DEPTH:null,DEBUG_GROUP_STACK_DEPTH:null,
BUFFER:null,SHADER:null,PROGRAM:null,QUERY:null,SAMPLER:null,MAX_LABEL_LENGTH:null,MAX_DEBUG_MESSAGE_LENGTH:null,MAX_DEBUG_LOGGED_MESSAGES:null,DEBUG_LOGGED_MESSAGES:null,DEBUG_SEVERITY_HIGH:null,DEBUG_SEVERITY_MEDIUM:null,DEBUG_SEVERITY_LOW:null,DEBUG_OUTPUT:null,CONTEXT_FLAG_DEBUG_BIT:null,STACK_OVERFLOW:null,STACK_UNDERFLOW:null,__class__:bu};var jd={__properties__:{set_redOffset:"set_redOffset",get_redOffset:"get_redOffset",set_redMultiplier:"set_redMultiplier",get_redMultiplier:"get_redMultiplier",
set_greenOffset:"set_greenOffset",get_greenOffset:"get_greenOffset",set_greenMultiplier:"set_greenMultiplier",get_greenMultiplier:"get_greenMultiplier",set_color:"set_color",get_color:"get_color",set_blueOffset:"set_blueOffset",get_blueOffset:"get_blueOffset",set_blueMultiplier:"set_blueMultiplier",get_blueMultiplier:"get_blueMultiplier",set_alphaOffset:"set_alphaOffset",get_alphaOffset:"get_alphaOffset",set_alphaMultiplier:"set_alphaMultiplier",get_alphaMultiplier:"get_alphaMultiplier"},_new:function(a){if(null==
a||20!=a.length)a=jd.__identity,a=null!=a?new Float32Array(a):null;return a},clone:function(a){a=Rh.toArrayBufferView(a);a=null!=a?new Float32Array(a):null;return jd._new(a)},concat:function(a,b){a[0]+=b[0];a[6]+=b[6];a[12]+=b[12];a[18]+=b[18]},copyFrom:function(a,b){a.set(b)},identity:function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=0;a[6]=1;a[7]=0;a[8]=0;a[9]=0;a[10]=0;a[11]=0;a[12]=1;a[13]=0;a[14]=0;a[15]=0;a[16]=0;a[17]=0;a[18]=1;a[19]=0},getAlphaTable:function(a){null==jd.__alphaTable&&(jd.__alphaTable=
new Uint8Array(256));jd.__alphaTable[0]=0;for(var b=1;256>b;){var c=b++;var d=Math.floor(c*a[18]+255*a[19]);255<d&&(d=255);0>d&&(d=0);jd.__alphaTable[c]=d}return jd.__alphaTable},getBlueTable:function(a){null==jd.__blueTable&&(jd.__blueTable=new Uint8Array(256));for(var b,c=0;256>c;){var d=c++;b=Math.floor(d*a[12]+255*a[14]);255<b&&(b=255);0>b&&(b=0);jd.__blueTable[d]=b}return jd.__blueTable},getGreenTable:function(a){null==jd.__greenTable&&(jd.__greenTable=new Uint8Array(256));for(var b,c=0;256>
c;){var d=c++;b=Math.floor(d*a[6]+255*a[9]);255<b&&(b=255);0>b&&(b=0);jd.__greenTable[d]=b}return jd.__greenTable},getRedTable:function(a){null==jd.__redTable&&(jd.__redTable=new Uint8Array(256));for(var b,c=0;256>c;){var d=c++;b=Math.floor(d*a[0]+255*a[4]);255<b&&(b=255);0>b&&(b=0);jd.__redTable[d]=b}return jd.__redTable},__toFlashColorTransform:function(a){return null},get_alphaMultiplier:function(a){return a[18]},set_alphaMultiplier:function(a,b){return a[18]=b},get_alphaOffset:function(a){return 255*
a[19]},set_alphaOffset:function(a,b){return a[19]=b/255},get_blueMultiplier:function(a){return a[12]},set_blueMultiplier:function(a,b){return a[12]=b},get_blueOffset:function(a){return 255*a[14]},set_blueOffset:function(a,b){return a[14]=b/255},get_color:function(a){return(255*a[4]|0)<<16|(255*a[9]|0)<<8|255*a[14]|0},set_color:function(a,b){a[4]=(b>>16&255)/255;a[9]=(b>>8&255)/255;a[14]=(b&255)/255;a[0]=0;a[6]=0;a[12]=0;return jd.get_color(a)},get_greenMultiplier:function(a){return a[6]},set_greenMultiplier:function(a,
b){return a[6]=b},get_greenOffset:function(a){return 255*a[9]},set_greenOffset:function(a,b){return a[9]=b/255},get_redMultiplier:function(a){return a[0]},set_redMultiplier:function(a,b){return a[0]=b},get_redOffset:function(a){return 255*a[4]},set_redOffset:function(a,b){return a[4]=b/255},get:function(a,b){return a[b]},set:function(a,b,c){return a[b]=c}},Qj=function(a,b,c,d,e,f){null==f&&(f=0);null==e&&(e=0);null==d&&(d=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=1);this.a=a;this.b=b;this.c=c;
this.d=d;this.tx=e;this.ty=f};g["lime.math.Matrix3"]=Qj;Qj.__name__="lime.math.Matrix3";Qj.prototype={a:null,b:null,c:null,d:null,tx:null,ty:null,clone:function(){return new Qj(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a*a.a+this.b*a.c;this.b=this.a*a.b+this.b*a.d;this.a=b;b=this.c*a.a+this.d*a.c;this.d=this.c*a.b+this.d*a.d;this.c=b;b=this.tx*a.a+this.ty*a.c+a.tx;this.ty=this.tx*a.b+this.ty*a.d+a.ty;this.tx=b},copyColumnFrom:function(a,b){if(2<a)throw u.thrown("Column "+
a+" out of bounds (2)");0==a?(this.a=b.x,this.b=b.y):1==a?(this.c=b.x,this.d=b.y):(this.tx=b.x,this.ty=b.y)},copyColumnTo:function(a,b){if(2<a)throw u.thrown("Column "+a+" out of bounds (2)");0==a?(b.x=this.a,b.y=this.b,b.z=0):1==a?(b.x=this.c,b.y=this.d,b.z=0):(b.x=this.tx,b.y=this.ty,b.z=1)},copyFrom:function(a){this.a=a.a;this.b=a.b;this.c=a.c;this.d=a.d;this.tx=a.tx;this.ty=a.ty},copyRowFrom:function(a,b){if(2<a)throw u.thrown("Row "+a+" out of bounds (2)");0==a?(this.a=b.x,this.c=b.y,this.tx=
b.z):1==a&&(this.b=b.x,this.d=b.y,this.ty=b.z)},copyRowTo:function(a,b){if(2<a)throw u.thrown("Row "+a+" out of bounds (2)");0==a?(b.x=this.a,b.y=this.c,b.z=this.tx):1==a?(b.x=this.b,b.y=this.d,b.z=this.ty):(b.x=0,b.y=0,b.z=1)},createBox:function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);if(0!=c){var f=Math.cos(c);c=Math.sin(c);this.a=f*a;this.b=c*b;this.c=-c*a;this.d=f*b}else this.a=a,this.c=this.b=0,this.d=b;this.tx=d;this.ty=e},createGradientBox:function(a,b,c,d,e){null==e&&(e=0);
null==d&&(d=0);null==c&&(c=0);this.a=a/1638.4;this.d=b/1638.4;if(0!=c){var f=Math.cos(c);c=Math.sin(c);this.b=c*this.d;this.c=-c*this.a;this.a*=f;this.d*=f}else this.c=this.b=0;this.tx=d+a/2;this.ty=e+b/2},equals:function(a){return null!=a&&this.tx==a.tx&&this.ty==a.ty&&this.a==a.a&&this.b==a.b&&this.c==a.c?this.d==a.d:!1},deltaTransformVector:function(a,b){null==b&&(b=new id);b.x=a.x*this.a+a.y*this.c;b.y=a.x*this.b+a.y*this.d;return b},identity:function(){this.a=1;this.c=this.b=0;this.d=1;this.ty=
this.tx=0},invert:function(){var a=this.a*this.d-this.b*this.c;if(0==a)this.a=this.b=this.c=this.d=0,this.tx=-this.tx,this.ty=-this.ty;else{a=1/a;var b=this.d*a;this.d=this.a*a;this.a=b;this.b*=-a;this.c*=-a;a=-this.a*this.tx-this.c*this.ty;this.ty=-this.b*this.tx-this.d*this.ty;this.tx=a}return this},rotate:function(a){var b=Math.cos(a);a=Math.sin(a);var c=this.a*b-this.b*a;this.b=this.a*a+this.b*b;this.a=c;c=this.c*b-this.d*a;this.d=this.c*a+this.d*b;this.c=c;c=this.tx*b-this.ty*a;this.ty=this.tx*
a+this.ty*b;this.tx=c},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b},setRotation:function(a,b){null==b&&(b=1);this.a=Math.cos(a)*b;this.c=Math.sin(a)*b;this.b=-this.c;this.d=this.a},setTo:function(a,b,c,d,e,f){this.a=a;this.b=b;this.c=c;this.d=d;this.tx=e;this.ty=f},to3DString:function(a){null==a&&(a=!1);return a?"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+(this.tx|0)+", "+(this.ty|0)+", 0, 1)":"matrix3d("+this.a+", "+this.b+
", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+this.tx+", "+this.ty+", 0, 1)"},toString:function(){return"matrix("+this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+", "+this.ty+")"},transformRect:function(a,b){null==b&&(b=new qd);var c=this.a*a.x+this.c*a.y,d=c,e=this.b*a.x+this.d*a.y,f=e,h=this.a*(a.x+a.width)+this.c*a.y,l=this.b*(a.x+a.width)+this.d*a.y;h<c&&(c=h);l<e&&(e=l);h>d&&(d=h);l>f&&(f=l);h=this.a*(a.x+a.width)+this.c*(a.y+a.height);l=this.b*(a.x+a.width)+this.d*(a.y+a.height);
h<c&&(c=h);l<e&&(e=l);h>d&&(d=h);l>f&&(f=l);h=this.a*a.x+this.c*(a.y+a.height);l=this.b*a.x+this.d*(a.y+a.height);h<c&&(c=h);l<e&&(e=l);h>d&&(d=h);l>f&&(f=l);b.setTo(c+h,e+l,d-c,f-e);return b},transformVector:function(a,b){null==b&&(b=new id);b.x=a.x*this.a+a.y*this.c+this.tx;b.y=a.x*this.b+a.y*this.d+this.ty;return b},translate:function(a,b){this.tx+=a;this.ty+=b},__class__:Qj};var ra={__properties__:{set_position:"set_position",get_position:"get_position",get_determinant:"get_determinant"},_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],e=a[8],f=a[12],h=a[1],l=a[5],m=a[9],k=a[13],g=a[2],n=a[6],q=a[10],p=a[14],r=a[3],v=a[7],A=a[11],u=a[15],x=ra.get(b,0),z=ra.get(b,4),w=ra.get(b,8),U=ra.get(b,12),X=ra.get(b,1),B=ra.get(b,5),P=ra.get(b,9),F=ra.get(b,13),D=ra.get(b,2),Ha=ra.get(b,6),G=ra.get(b,10),C=ra.get(b,14),H=ra.get(b,3),y=ra.get(b,7),J=ra.get(b,11);b=ra.get(b,15);a[0]=c*x+h*z+g*w+r*U;a[1]=c*X+h*B+g*P+r*F;a[2]=c*D+
h*Ha+g*G+r*C;a[3]=c*H+h*y+g*J+r*b;a[4]=d*x+l*z+n*w+v*U;a[5]=d*X+l*B+n*P+v*F;a[6]=d*D+l*Ha+n*G+v*C;a[7]=d*H+l*y+n*J+v*b;a[8]=e*x+m*z+q*w+A*U;a[9]=e*X+m*B+q*P+A*F;a[10]=e*D+m*Ha+q*G+A*C;a[11]=e*H+m*y+q*J+A*b;a[12]=f*x+k*z+p*w+u*U;a[13]=f*X+k*B+p*P+u*F;a[14]=f*D+k*Ha+p*G+u*C;a[15]=f*H+k*y+p*J+u*b},appendRotation:function(a,b,c,d){b=ra.__getAxisRotation(a,c.x,c.y,c.z,b);null!=d&&ra.appendTranslation(b,d.x,d.y,d.z);ra.append(a,b)},appendScale:function(a,b,c,d){b=[b,0,0,0,0,c,0,0,0,0,d,0,0,0,0,1];b=null!=
b?new Float32Array(b):null;ra.append(a,ra._new(b))},appendTranslation:function(a,b,c,d){a[12]+=b;a[13]+=c;a[14]+=d},clone:function(a){a=Rh.toArrayBufferView(a);a=null!=a?new Float32Array(a):null;return ra._new(a)},copyColumnFrom:function(a,b,c){switch(b){case 0:a[0]=c.x;a[1]=c.y;a[2]=c.z;a[3]=c.w;break;case 1:a[4]=c.x;a[5]=c.y;a[6]=c.z;a[7]=c.w;break;case 2:a[8]=c.x;a[9]=c.y;a[10]=c.z;a[11]=c.w;break;case 3:a[12]=c.x;a[13]=c.y;a[14]=c.z;a[15]=c.w;break;default:Ea.error("Column "+b+" out of bounds [0, ..., 3]",
{fileName:"lime/math/Matrix4.hx",lineNumber:187,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyColumnFrom"})}},copyColumnTo:function(a,b,c){switch(b){case 0:c.x=a[0];c.y=a[1];c.z=a[2];c.w=a[3];break;case 1:c.x=a[4];c.y=a[5];c.z=a[6];c.w=a[7];break;case 2:c.x=a[8];c.y=a[9];c.z=a[10];c.w=a[11];break;case 3:c.x=a[12];c.y=a[13];c.z=a[14];c.w=a[15];break;default:Ea.error("Column "+b+" out of bounds [0, ..., 3]",{fileName:"lime/math/Matrix4.hx",lineNumber:225,className:"lime.math._Matrix4.Matrix4_Impl_",
methodName:"copyColumnTo"})}},copyFrom:function(a,b){a.set(b)},copyRowFrom:function(a,b,c){switch(b){case 0:a[0]=c.x;a[4]=c.y;a[8]=c.z;a[12]=c.w;break;case 1:a[1]=c.x;a[5]=c.y;a[9]=c.z;a[13]=c.w;break;case 2:a[2]=c.x;a[6]=c.y;a[10]=c.z;a[14]=c.w;break;case 3:a[3]=c.x;a[7]=c.y;a[11]=c.z;a[15]=c.w;break;default:Ea.error("Row "+b+" out of bounds [0, ..., 3]",{fileName:"lime/math/Matrix4.hx",lineNumber:272,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyRowFrom"})}},copyRowTo:function(a,
b,c){switch(b){case 0:c.x=a[0];c.y=a[4];c.z=a[8];c.w=a[12];break;case 1:c.x=a[1];c.y=a[5];c.z=a[9];c.w=a[13];break;case 2:c.x=a[2];c.y=a[6];c.z=a[10];c.w=a[14];break;case 3:c.x=a[3];c.y=a[7];c.z=a[11];c.w=a[15];break;default:Ea.error("Row "+b+" out of bounds [0, ..., 3]",{fileName:"lime/math/Matrix4.hx",lineNumber:310,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyRowTo"})}},create2D:function(a,b,c,d,e,f,h){null==h&&(h=0);null==f&&(f=0);a[0]=b;a[1]=c;a[2]=0;a[3]=0;a[4]=d;a[5]=e;a[6]=
0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=f;a[13]=h;a[14]=0;a[15]=1},createOrtho:function(a,b,c,d,e,f,h){var l=1/(c-b),m=1/(e-d),k=1/(h-f);a[0]=2*l;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=2*m;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=-2*k;a[11]=0;a[12]=-(b+c)*l;a[13]=-(d+e)*m;a[14]=-(f+h)*k;a[15]=1},deltaTransformVector:function(a,b,c){null==c&&(c=new jc);var d=b.x,e=b.y;b=b.z;c.x=d*a[0]+e*a[4]+b*a[8]+a[3];c.y=d*a[1]+e*a[5]+b*a[9]+a[7];c.z=d*a[2]+e*a[6]+b*a[10]+a[11];return c},fromMatrix3:function(a){var b=ra._new();
ra.create2D(b,a.a,a.b,a.c,a.d,a.tx,a.ty);return b},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},interpolate:function(a,b,c,d){null==d&&(d=ra._new());for(var e=0;16>e;){var f=e++;ra.set(d,f,ra.get(a,f)+(ra.get(b,f)-ra.get(a,f))*c)}return d},interpolateTo:function(a,b,c){for(var d=0;16>d;){var e=d++;a[e]+=(ra.get(b,e)-a[e])*c}},invert:function(a){var b=ra.get_determinant(a),c=1E-11<Math.abs(b);if(c){b=1/b;
var d=a[0],e=a[4],f=a[8],h=a[12],l=a[1],m=a[5],k=a[9],g=a[13],n=a[2],q=a[6],p=a[10],r=a[14],v=a[3],A=a[7],u=a[11],x=a[15];a[0]=b*(m*(p*x-r*u)-k*(q*x-r*A)+g*(q*u-p*A));a[1]=-b*(l*(p*x-r*u)-k*(n*x-r*v)+g*(n*u-p*v));a[2]=b*(l*(q*x-r*A)-m*(n*x-r*v)+g*(n*A-q*v));a[3]=-b*(l*(q*u-p*A)-m*(n*u-p*v)+k*(n*A-q*v));a[4]=-b*(e*(p*x-r*u)-f*(q*x-r*A)+h*(q*u-p*A));a[5]=b*(d*(p*x-r*u)-f*(n*x-r*v)+h*(n*u-p*v));a[6]=-b*(d*(q*x-r*A)-e*(n*x-r*v)+h*(n*A-q*v));a[7]=b*(d*(q*u-p*A)-e*(n*u-p*v)+f*(n*A-q*v));a[8]=b*(e*(k*x-
g*u)-f*(m*x-g*A)+h*(m*u-k*A));a[9]=-b*(d*(k*x-g*u)-f*(l*x-g*v)+h*(l*u-k*v));a[10]=b*(d*(m*x-g*A)-e*(l*x-g*v)+h*(l*A-m*v));a[11]=-b*(d*(m*u-k*A)-e*(l*u-k*v)+f*(l*A-m*v));a[12]=-b*(e*(k*r-g*p)-f*(m*r-g*q)+h*(m*p-k*q));a[13]=b*(d*(k*r-g*p)-f*(l*r-g*n)+h*(l*p-k*n));a[14]=-b*(d*(m*r-g*q)-e*(l*r-g*n)+h*(l*q-m*n));a[15]=b*(d*(m*p-k*q)-e*(l*p-k*n)+f*(l*q-m*n))}return c},pointAt:function(a,b,c,d){null==c&&(c=new jc(0,0,1));null==d&&(d=new jc(0,1,0));var e=null;null==e&&(e=new jc);e.x=b.x-c.x;e.y=b.y-c.y;e.z=
b.z-c.z;c=e;d=new jc(d.x,d.y,d.z,d.w);e=Math.sqrt(c.x*c.x+c.y*c.y+c.z*c.z);0!=e&&(c.x/=e,c.y/=e,c.z/=e);e=Math.sqrt(d.x*d.x+d.y*d.y+d.z*d.z);0!=e&&(d.x/=e,d.y/=e,d.z/=e);var f=new jc(c.x,c.y,c.z,c.w);e=d.x*c.x+d.y*c.y+d.z*c.z;f.x*=e;f.y*=e;f.z*=e;e=null;null==e&&(e=new jc);e.x=d.x-f.x;e.y=d.y-f.y;e.z=d.z-f.z;d=e;0<Math.sqrt(d.x*d.x+d.y*d.y+d.z*d.z)?(e=Math.sqrt(d.x*d.x+d.y*d.y+d.z*d.z),0!=e&&(d.x/=e,d.y/=e,d.z/=e)):d=0!=c.x?new jc(-c.y,c.x,0):new jc(1,0,0);e=null;null==e&&(e=new jc);f=d.z*c.x-d.x*
c.z;var h=d.x*c.y-d.y*c.x;e.x=d.y*c.z-d.z*c.y;e.y=f;e.z=h;e.w=1;f=e;e=Math.sqrt(f.x*f.x+f.y*f.y+f.z*f.z);0!=e&&(f.x/=e,f.y/=e,f.z/=e);a[0]=f.x;a[4]=f.y;a[8]=f.z;a[12]=0;a[1]=d.x;a[5]=d.y;a[9]=d.z;a[13]=0;a[2]=c.x;a[6]=c.y;a[10]=c.z;a[14]=0;a[3]=b.x;a[7]=b.y;a[11]=b.z;a[15]=1},prepend:function(a,b){var c=ra.get(b,0),d=ra.get(b,4),e=ra.get(b,8),f=ra.get(b,12),h=ra.get(b,1),l=ra.get(b,5),m=ra.get(b,9),k=ra.get(b,13),g=ra.get(b,2),n=ra.get(b,6),q=ra.get(b,10),p=ra.get(b,14),r=ra.get(b,3),v=ra.get(b,7),
A=ra.get(b,11);b=ra.get(b,15);var u=a[0],x=a[4],z=a[8],w=a[12],U=a[1],X=a[5],B=a[9],P=a[13],F=a[2],D=a[6],Ha=a[10],G=a[14],C=a[3],H=a[7],y=a[11],J=a[15];a[0]=c*u+h*x+g*z+r*w;a[1]=c*U+h*X+g*B+r*P;a[2]=c*F+h*D+g*Ha+r*G;a[3]=c*C+h*H+g*y+r*J;a[4]=d*u+l*x+n*z+v*w;a[5]=d*U+l*X+n*B+v*P;a[6]=d*F+l*D+n*Ha+v*G;a[7]=d*C+l*H+n*y+v*J;a[8]=e*u+m*x+q*z+A*w;a[9]=e*U+m*X+q*B+A*P;a[10]=e*F+m*D+q*Ha+A*G;a[11]=e*C+m*H+q*y+A*J;a[12]=f*u+k*x+p*z+b*w;a[13]=f*U+k*X+p*B+b*P;a[14]=f*F+k*D+p*Ha+b*G;a[15]=f*C+k*H+p*y+b*J},prependRotation:function(a,
b,c,d){b=ra.__getAxisRotation(a,c.x,c.y,c.z,b);null!=d&&ra.appendTranslation(b,d.x,d.y,d.z);ra.prepend(a,b)},prependScale:function(a,b,c,d){b=[b,0,0,0,0,c,0,0,0,0,d,0,0,0,0,1];b=null!=b?new Float32Array(b):null;ra.prepend(a,ra._new(b))},prependTranslation:function(a,b,c,d){var e=ra._new();ra.set_position(e,new jc(b,c,d));ra.prepend(a,e)},transformVector:function(a,b,c){null==c&&(c=new jc);var d=b.x,e=b.y;b=b.z;c.x=d*a[0]+e*a[4]+b*a[8]+a[12];c.y=d*a[1]+e*a[5]+b*a[9]+a[13];c.z=d*a[2]+e*a[6]+b*a[10]+
a[14];c.w=d*a[3]+e*a[7]+b*a[11]+a[15];return c},transformVectors:function(a,b,c){for(var d=0,e,f,h;d+3<=b.length;)e=b[d],f=b[d+1],h=b[d+2],c[d]=e*a[0]+f*a[4]+h*a[8]+a[12],c[d+1]=e*a[1]+f*a[5]+h*a[9]+a[13],c[d+2]=e*a[2]+f*a[6]+h*a[10]+a[14],d+=3},transpose:function(a){var b=a[1];a[1]=a[4];a[4]=b;b=a[2];a[2]=a[8];a[8]=b;b=a[3];a[3]=a[12];a[12]=b;b=a[6];a[6]=a[9];a[9]=b;b=a[7];a[7]=a[13];a[13]=b;b=a[11];a[11]=a[14];a[14]=b},__getAxisRotation:function(a,b,c,d,e){a=ra._new();b=new jc(b,c,d);e=Math.PI/
180*-e;d=Math.cos(e);e=Math.sin(e);c=1-d;ra.set(a,0,d+b.x*b.x*c);ra.set(a,5,d+b.y*b.y*c);ra.set(a,10,d+b.z*b.z*c);d=b.x*b.y*c;var f=b.z*e;ra.set(a,4,d+f);ra.set(a,1,d-f);d=b.x*b.z*c;f=b.y*e;ra.set(a,8,d-f);ra.set(a,2,d+f);d=b.y*b.z*c;f=b.x*e;ra.set(a,9,d+f);ra.set(a,6,d-f);return a},__swap:function(a,b,c){var d=a[b];a[b]=a[c];a[c]=d},get_determinant:function(a){return(a[0]*a[5]-a[4]*a[1])*(a[10]*a[15]-a[14]*a[11])-(a[0]*a[9]-a[8]*a[1])*(a[6]*a[15]-a[14]*a[7])+(a[0]*a[13]-a[12]*a[1])*(a[6]*a[11]-a[10]*
a[7])+(a[4]*a[9]-a[8]*a[5])*(a[2]*a[15]-a[14]*a[3])-(a[4]*a[13]-a[12]*a[5])*(a[2]*a[11]-a[10]*a[3])+(a[8]*a[13]-a[12]*a[9])*(a[2]*a[7]-a[6]*a[3])},get_position:function(a){return new jc(a[12],a[13],a[14])},set_position:function(a,b){a[12]=b.x;a[13]=b.y;a[14]=b.z;return b},get:function(a,b){return a[b]},set:function(a,b,c){return a[b]=c}},I={__properties__:{set_r:"set_r",get_r:"get_r",set_g:"set_g",get_g:"get_g",set_b:"set_b",get_b:"get_b",set_a:"set_a",get_a:"get_a"},_new:function(a){null==a&&(a=
0);return a},create:function(a,b,c,d){return(a&255)<<24|(b&255)<<16|(c&255)<<8|d&255},multiplyAlpha:function(a){0!=(a&255)&&255!=(a&255)&&(I.a16=I.__alpha16[a&255])},readUInt8:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);switch(d){case 0:a=(b[c]&255)<<24|(b[c+1]&255)<<16|(b[c+2]&255)<<8|b[c+3]&255;break;case 1:a=(b[c+1]&255)<<24|(b[c+2]&255)<<16|(b[c+3]&255)<<8|b[c]&255;break;case 2:a=(b[c+2]&255)<<24|(b[c+1]&255)<<16|(b[c]&255)<<8|b[c+3]&255}e&&0!=(a&255)&&255!=(a&255)&&(I.unmult=255/(a&255))},
set:function(a,b,c,d,e){},unmultiplyAlpha:function(a){0!=(a&255)&&255!=(a&255)&&(I.unmult=255/(a&255))},writeUInt8:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);e&&(0==(a&255)?0!=a&&(a=0):255!=(a&255)&&(I.a16=I.__alpha16[a&255],a=((a>>>24&255)*I.a16>>16&255)<<24|((a>>>16&255)*I.a16>>16&255)<<16|((a>>>8&255)*I.a16>>16&255)<<8|a&255));switch(d){case 0:b[c]=a>>>24&255;b[c+1]=a>>>16&255;b[c+2]=a>>>8&255;b[c+3]=a&255;break;case 1:b[c]=a&255;b[c+1]=a>>>24&255;b[c+2]=a>>>16&255;b[c+3]=a>>>8&255;break;
case 2:b[c]=a>>>8&255,b[c+1]=a>>>16&255,b[c+2]=a>>>24&255,b[c+3]=a&255}},__fromARGB:function(a){return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255},__fromBGRA:function(a){return(a>>>8&255)<<24|(a>>>16&255)<<16|(a>>>24&255)<<8|a&255},get_a:function(a){return a&255},set_a:function(a,b){return b},get_b:function(a){return a>>>8&255},set_b:function(a,b){return b},get_g:function(a){return a>>>16&255},set_g:function(a,b){return b},get_r:function(a){return a>>>24&255},set_r:function(a,b){return b}},
qd=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"]=qd;qd.__name__="lime.math.Rectangle";qd.prototype={height:null,width:null,x:null,y:null,clone:function(){return new qd(this.x,this.y,this.width,this.height)},contains:function(a,b){return a>=this.x&&b>=this.y&&a<this.get_right()?b<this.get_bottom():!1},containsPoint:function(a){return this.containsVector(a)},containsRect:function(a){return 0>=a.width||
0>=a.height?a.x>this.x&&a.y>this.y&&a.get_right()<this.get_right()?a.get_bottom()<this.get_bottom():!1:a.x>=this.x&&a.y>=this.y&&a.get_right()<=this.get_right()?a.get_bottom()<=this.get_bottom():!1},containsVector:function(a){return this.contains(a.x,a.y)},copyFrom:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height},equals:function(a){return null!=a&&this.x==a.x&&this.y==a.y&&this.width==a.width?this.height==a.height:!1},inflate:function(a,b){this.x-=a;this.width+=2*a;this.y-=
b;this.height+=2*b},inflateVector:function(a){this.inflate(a.x,a.y)},intersection:function(a,b){null==b&&(b=new qd);var c=this.x<a.x?a.x:this.x,d=this.get_right()>a.get_right()?a.get_right():this.get_right();if(d<=c)return b.setEmpty(),b;var e=this.y<a.y?a.y:this.y;a=this.get_bottom()>a.get_bottom()?a.get_bottom():this.get_bottom();if(a<=e)return b.setEmpty(),b;b.x=c;b.y=e;b.width=d-c;b.height=a-e;return b},intersects:function(a){var b=this.x<a.x?a.x:this.x;if((this.get_right()>a.get_right()?a.get_right():
this.get_right())<=b)return!1;b=this.y<a.y?a.y:this.y;return(this.get_bottom()>a.get_bottom()?a.get_bottom():this.get_bottom())>b},isEmpty:function(){return 0>=this.width?!0:0>=this.height},offset:function(a,b){this.x+=a;this.y+=b},offsetVector:function(a){this.x+=a.x;this.y+=a.y},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},union:function(a,b){null==b&&(b=new qd);if(0==this.width||0==this.height)b.copyFrom(a);else if(0==
a.width||0==a.height)b.copyFrom(this);else{var c=this.x>a.x?a.x:this.x,d=this.get_right()<a.get_right()?a.get_right():this.get_right(),e=this.y>a.y?a.y:this.y;a=this.get_bottom()<a.get_bottom()?a.get_bottom():this.get_bottom();b.setTo(c,e,d-c,a-e)}return b},__toFlashRectangle:function(){return null},get_bottom:function(){return this.y+this.height},set_bottom:function(a){this.height=a-this.y;return a},get_bottomRight:function(){return new id(this.x+this.width,this.y+this.height)},set_bottomRight:function(a){this.width=
a.x-this.x;this.height=a.y-this.y;return a.clone()},get_left:function(){return this.x},set_left:function(a){this.width-=a-this.x;return this.x=a},get_right:function(){return this.x+this.width},set_right:function(a){this.width=a-this.x;return a},get_size:function(){return new id(this.width,this.height)},set_size:function(a){this.width=a.x;this.height=a.y;return a.clone()},get_top:function(){return this.y},set_top:function(a){this.height-=a-this.y;return this.y=a},get_topLeft:function(){return new id(this.x,
this.y)},set_topLeft:function(a){this.x=a.x;this.y=a.y;return a.clone()},__class__:qd,__properties__:{set_topLeft:"set_topLeft",get_topLeft:"get_topLeft",set_top:"set_top",get_top:"get_top",set_size:"set_size",get_size:"get_size",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left",set_bottomRight:"set_bottomRight",get_bottomRight:"get_bottomRight",set_bottom:"set_bottom",get_bottom:"get_bottom"}};var id=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};
g["lime.math.Vector2"]=id;id.__name__="lime.math.Vector2";id.distance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)};id.interpolate=function(a,b,c,d){null==d&&(d=new id);d.x=b.x+c*(a.x-b.x);d.y=b.y+c*(a.y-b.y);return d};id.polar=function(a,b,c){null==c&&(c=new id);var d=a*Math.sin(b);c.x=a*Math.cos(b);c.y=d;return c};id.prototype={x:null,y:null,add:function(a,b){null==b&&(b=new id);b.x=a.x+this.x;b.y=a.y+this.y;return b},clone:function(){return new id(this.x,this.y)},equals:function(a){return null!=
a&&a.x==this.x?a.y==this.y:!1},normalize:function(a){if(0!=this.x||0!=this.y)a/=Math.sqrt(this.x*this.x+this.y*this.y),this.x*=a,this.y*=a},offset:function(a,b){this.x+=a;this.y+=b},setTo:function(a,b){this.x=a;this.y=b},subtract:function(a,b){null==b&&(b=new id);b.x=this.x-a.x;b.y=this.y-a.y;return b},__toFlashPoint:function(){return null},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},get_lengthSquared:function(){return this.x*this.x+this.y*this.y},__class__:id,__properties__:{get_lengthSquared:"get_lengthSquared",
get_length:"get_length"}};var jc=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"]=jc;jc.__name__="lime.math.Vector4";jc.__properties__={get_Z_AXIS:"get_Z_AXIS",get_Y_AXIS:"get_Y_AXIS",get_X_AXIS:"get_X_AXIS"};jc.angleBetween=function(a,b){a=new jc(a.x,a.y,a.z,a.w);var c=Math.sqrt(a.x*a.x+a.y*a.y+a.z*a.z);0!=c&&(a.x/=c,a.y/=c,a.z/=c);b=new jc(b.x,b.y,b.z,b.w);c=Math.sqrt(b.x*b.x+b.y*b.y+b.z*b.z);0!=c&&(b.x/=c,
b.y/=c,b.z/=c);return Math.acos(a.x*b.x+a.y*b.y+a.z*b.z)};jc.distance=function(a,b){var c=b.x-a.x,d=b.y-a.y;a=b.z-a.z;return Math.sqrt(c*c+d*d+a*a)};jc.distanceSquared=function(a,b){var c=b.x-a.x,d=b.y-a.y;a=b.z-a.z;return c*c+d*d+a*a};jc.get_X_AXIS=function(){return new jc(1,0,0)};jc.get_Y_AXIS=function(){return new jc(0,1,0)};jc.get_Z_AXIS=function(){return new jc(0,0,1)};jc.prototype={w:null,x:null,y:null,z:null,add:function(a,b){null==b&&(b=new jc);b.x=this.x+a.x;b.y=this.y+a.y;b.z=this.z+a.z;
return b},clone:function(){return new jc(this.x,this.y,this.z,this.w)},copyFrom:function(a){this.x=a.x;this.y=a.y;this.z=a.z},crossProduct:function(a,b){null==b&&(b=new jc);var c=this.z*a.x-this.x*a.z,d=this.x*a.y-this.y*a.x;b.x=this.y*a.z-this.z*a.y;b.y=c;b.z=d;b.w=1;return b},decrementBy:function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z},dotProduct:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},equals:function(a,b){null==b&&(b=!1);return this.x==a.x&&this.y==a.y&&this.z==a.z?b?this.w==a.w:!0:
!1},incrementBy:function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z},nearEquals:function(a,b,c){null==c&&(c=!1);return Math.abs(this.x-a.x)<b&&Math.abs(this.y-a.y)<b&&Math.abs(this.z-a.z)<b?c?Math.abs(this.w-a.w)<b:!0:!1},negate:function(){this.x*=-1;this.y*=-1;this.z*=-1},normalize:function(){var a=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);0!=a&&(this.x/=a,this.y/=a,this.z/=a);return a},project:function(){this.x/=this.w;this.y/=this.w;this.z/=this.w},scaleBy:function(a){this.x*=a;this.y*=
a;this.z*=a},setTo:function(a,b,c){this.x=a;this.y=b;this.z=c},subtract:function(a,b){null==b&&(b=new jc);b.x=this.x-a.x;b.y=this.y-a.y;b.z=this.z-a.z;return b},toString:function(){return"Vector4("+this.x+", "+this.y+", "+this.z+")"},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},get_lengthSquared:function(){return this.x*this.x+this.y*this.y+this.z*this.z},__class__:jc,__properties__:{get_lengthSquared:"get_lengthSquared",get_length:"get_length"}};var vc=function(){};
g["lime.media.AudioBuffer"]=vc;vc.__name__="lime.media.AudioBuffer";vc.fromBase64=function(a){if(null==a)return null;-1==a.indexOf(",")&&(a="data:"+vc.__getCodec(lg.decode(a))+";base64,"+a);var b=new vc;b.set_src(new Howl({src:[a],html5:!0,preload:!1}));return b};vc.fromBytes=function(a){if(null==a)return null;var b=new vc;b.set_src(new Howl({src:["data:"+vc.__getCodec(a)+";base64,"+lg.encode(a)],html5:!0,preload:!1}));return b};vc.fromFile=function(a){if(null==a)return null;var b=new vc;b.__srcHowl=
new Howl({src:[a],preload:!1});return b};vc.fromFiles=function(a){var b=new vc;b.__srcHowl=new Howl({src:a,preload:!1});return b};vc.fromVorbisFile=function(a){return null};vc.loadFromFile=function(a){var b=new nd,c=vc.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};vc.loadFromFiles=function(a){var b=new nd,c=vc.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};vc.__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"}}}Ea.error("Unsupported sound format",{fileName:"lime/media/AudioBuffer.hx",lineNumber:362,className:"lime.media.AudioBuffer",methodName:"__getCodec"});return null};vc.prototype={bitsPerSample:null,channels:null,data:null,sampleRate:null,__srcAudio:null,__srcBuffer:null,__srcCustom:null,__srcHowl:null,__srcSound:null,__srcVorbisFile:null,dispose:function(){this.__srcHowl.unload()},get_src:function(){return this.__srcHowl},set_src:function(a){return this.__srcHowl=
a},__class__:vc,__properties__:{set_src:"set_src",get_src:"get_src"}};var $s=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){wa.lastError=b}null==this.web&&"web"!=a&&(this.html5=new Zs,this.type="html5")}else this.type="custom"};g["lime.media.AudioContext"]=$s;$s.__name__="lime.media.AudioContext";$s.prototype={custom:null,flash:null,html5:null,openal:null,type:null,web:null,
__class__:$s};var Ud=function(){};g["lime.media.AudioManager"]=Ud;Ud.__name__="lime.media.AudioManager";Ud.init=function(a){if(null==Ud.context){if(null==a&&(Ud.context=new $s,a=Ud.context,"openal"==a.type)){var b=a.openal,c=b.openDevice();c=b.createContext(c);b.makeContextCurrent(c);b.processContext(c)}Ud.context=a}};Ud.resume=function(){if(null!=Ud.context&&"openal"==Ud.context.type){var a=Ud.context.openal,b=a.getCurrentContext();if(null!=b){var c=a.getContextsDevice(b);a.resumeDevice(c);a.processContext(b)}}};
Ud.shutdown=function(){if(null!=Ud.context&&"openal"==Ud.context.type){var a=Ud.context.openal,b=a.getCurrentContext();if(null!=b){var c=a.getContextsDevice(b);a.makeContextCurrent(null);a.destroyContext(b);null!=c&&a.closeDevice(c)}}Ud.context=null};Ud.suspend=function(){if(null!=Ud.context&&"openal"==Ud.context.type){var a=Ud.context.openal,b=a.getCurrentContext();null!=b&&(a.suspendContext(b),b=a.getContextsDevice(b),null!=b&&a.pauseDevice(b))}};var xp=function(a,b,c,d){null==d&&(d=0);null==b&&
(b=0);this.onComplete=new Ad;this.buffer=a;this.offset=b;this.__backend=new Ks(this);null!=c&&0!=c&&this.set_length(c);this.set_loops(d);null!=a&&this.init()};g["lime.media.AudioSource"]=xp;xp.__name__="lime.media.AudioSource";xp.prototype={onComplete:null,buffer:null,offset:null,__backend:null,dispose:function(){this.__backend.dispose()},init:function(){this.__backend.init()},play:function(){this.__backend.play()},pause:function(){this.__backend.pause()},stop:function(){this.__backend.stop()},get_currentTime:function(){return this.__backend.getCurrentTime()},
set_currentTime:function(a){return this.__backend.setCurrentTime(a)},get_gain:function(){return this.__backend.getGain()},set_gain:function(a){return this.__backend.setGain(a)},get_length:function(){return this.__backend.getLength()},set_length:function(a){return this.__backend.setLength(a)},get_loops:function(){return this.__backend.getLoops()},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__:xp,__properties__:{set_position:"set_position",get_position:"get_position",set_loops:"set_loops",get_loops:"get_loops",set_length:"set_length",get_length:"get_length",set_gain:"set_gain",get_gain:"get_gain",set_currentTime:"set_currentTime",get_currentTime:"get_currentTime"}};var cu=function(){};g["lime.media.FlashAudioContext"]=cu;cu.__name__="lime.media.FlashAudioContext";cu.prototype={createBuffer:function(a,b){return null},getBytesLoaded:function(a){return 0},getBytesTotal:function(a){return 0},
getID3:function(a){return null},getIsBuffering:function(a){return!1},getIsURLInaccessible:function(a){return!1},getLength:function(a){return 0},getURL:function(a){return null},close:function(a){},extract:function(a,b,c,d){return 0},load:function(a,b,c){},loadCompressedDataFromByteArray:function(a,b,c){},loadPCMFromByteArray:function(a,b,c,d,e,f){},play:function(a,b,c,d){return null},__class__:cu};var Zs=function(){this.NETWORK_NO_SOURCE=3;this.NETWORK_LOADING=2;this.NETWORK_IDLE=1;this.HAVE_NOTHING=
this.NETWORK_EMPTY=0;this.HAVE_METADATA=1;this.HAVE_FUTURE_DATA=3;this.HAVE_ENOUGH_DATA=4;this.HAVE_CURRENT_DATA=2};g["lime.media.HTML5AudioContext"]=Zs;Zs.__name__="lime.media.HTML5AudioContext";Zs.prototype={HAVE_CURRENT_DATA:null,HAVE_ENOUGH_DATA:null,HAVE_FUTURE_DATA:null,HAVE_METADATA:null,HAVE_NOTHING:null,NETWORK_EMPTY:null,NETWORK_IDLE:null,NETWORK_LOADING:null,NETWORK_NO_SOURCE:null,canPlayType:function(a,b){return null!=a.__srcAudio?a.__srcAudio.canPlayType(b):null},createBuffer:function(a){var b=
new vc;b.__srcAudio=new Audio;b.__srcAudio.src=a;return b},getAutoplay:function(a){return null!=a.__srcAudio?a.__srcAudio.autoplay:!1},getBuffered:function(a){return null!=a.__srcAudio?a.__srcAudio.buffered:null},getCurrentSrc:function(a){return null!=a.__srcAudio?a.__srcAudio.currentSrc:null},getCurrentTime:function(a){return null!=a.__srcAudio?a.__srcAudio.currentTime:0},getDefaultPlaybackRate:function(a){return null!=a.__srcAudio?a.__srcAudio.defaultPlaybackRate:1},getDuration:function(a){return null!=
a.__srcAudio?a.__srcAudio.duration:0},getEnded:function(a){return null!=a.__srcAudio?a.__srcAudio.ended:!1},getError:function(a){return null!=a.__srcAudio?a.__srcAudio.error:null},getLoop:function(a){return null!=a.__srcAudio?a.__srcAudio.loop:!1},getMuted:function(a){return null!=a.__srcAudio?a.__srcAudio.muted:!1},getNetworkState:function(a){return null!=a.__srcAudio?a.__srcAudio.networkState:0},getPaused:function(a){return null!=a.__srcAudio?a.__srcAudio.paused:!1},getPlaybackRate:function(a){return null!=
a.__srcAudio?a.__srcAudio.playbackRate:1},getPlayed:function(a){return null!=a.__srcAudio?a.__srcAudio.played:null},getPreload:function(a){return null!=a.__srcAudio?a.__srcAudio.preload:null},getReadyState:function(a){return null!=a.__srcAudio?a.__srcAudio.readyState:0},getSeekable:function(a){return null!=a.__srcAudio?a.__srcAudio.seekable:null},getSeeking:function(a){return null!=a.__srcAudio?a.__srcAudio.seeking:!1},getSrc:function(a){return null!=a.__srcAudio?a.__srcAudio.src:null},getStartTime:function(a){return null!=
a.__srcAudio?a.__srcAudio.playbackRate:0},getVolume:function(a){return null!=a.__srcAudio?a.__srcAudio.volume:1},load:function(a){null!=a.__srcAudio&&a.__srcAudio.load()},pause:function(a){null!=a.__srcAudio&&a.__srcAudio.pause()},play:function(a){null!=a.__srcAudio&&a.__srcAudio.play()},setAutoplay:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.autoplay=b)},setCurrentTime:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.currentTime=b)},setDefaultPlaybackRate:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.defaultPlaybackRate=
b)},setLoop:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.loop=b)},setMuted:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.muted=b)},setPlaybackRate:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.playbackRate=b)},setPreload:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.preload=b)},setSrc:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.src=b)},setVolume:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.volume=b)},__class__:Zs};var du=function(){this.ALL_DEVICES_SPECIFIER=4115;this.DEFAULT_ALL_DEVICES_SPECIFIER=
4114;this.ENUMERATE_ALL_EXT=1;this.DEVICE_SPECIFIER=4101;this.DEFAULT_DEVICE_SPECIFIER=4100;this.ALL_ATTRIBUTES=4099;this.ATTRIBUTES_SIZE=4098;this.INVALID_CONTEXT=40962;this.INVALID_DEVICE=40961;this.STEREO_SOURCES=4113;this.MONO_SOURCES=4112;this.SYNC=4105;this.REFRESH=4104;this.EXPONENT_DISTANCE_CLAMPED=53254;this.EXPONENT_DISTANCE=53253;this.LINEAR_DISTANCE_CLAMPED=53252;this.LINEAR_DISTANCE=53251;this.INVERSE_DISTANCE_CLAMPED=53250;this.INVERSE_DISTANCE=53249;this.DISTANCE_MODEL=53248;this.DOPPLER_VELOCITY=
49153;this.SPEED_OF_SOUND=49155;this.DOPPLER_FACTOR=49152;this.EXTENSIONS=45060;this.RENDERER=45059;this.VERSION=45058;this.VENDOR=45057;this.OUT_OF_MEMORY=40965;this.INVALID_OPERATION=40964;this.INVALID_VALUE=40963;this.INVALID_ENUM=40962;this.INVALID_NAME=40961;this.NO_ERROR=0;this.SIZE=8196;this.CHANNELS=8195;this.BITS=8194;this.FREQUENCY=8193;this.FORMAT_STEREO16=4355;this.FORMAT_STEREO8=4354;this.FORMAT_MONO16=4353;this.FORMAT_MONO8=4352;this.UNDETERMINED=4144;this.STREAMING=4137;this.STATIC=
4136;this.SOURCE_TYPE=4135;this.BYTE_OFFSET=4134;this.SAMPLE_OFFSET=4133;this.SEC_OFFSET=4132;this.MAX_DISTANCE=4131;this.CONE_OUTER_GAIN=4130;this.ROLLOFF_FACTOR=4129;this.REFERENCE_DISTANCE=4128;this.BUFFERS_PROCESSED=4118;this.BUFFERS_QUEUED=4117;this.STOPPED=4116;this.PAUSED=4115;this.PLAYING=4114;this.INITIAL=4113;this.SOURCE_STATE=4112;this.ORIENTATION=4111;this.MAX_GAIN=4110;this.MIN_GAIN=4109;this.GAIN=4106;this.BUFFER=4105;this.LOOPING=4103;this.VELOCITY=4102;this.DIRECTION=4101;this.POSITION=
4100;this.PITCH=4099;this.CONE_OUTER_ANGLE=4098;this.CONE_INNER_ANGLE=4097;this.SOURCE_RELATIVE=514;this.TRUE=1;this.NONE=this.FALSE=0};g["lime.media.OpenALAudioContext"]=du;du.__name__="lime.media.OpenALAudioContext";du.prototype={NONE:null,FALSE:null,TRUE:null,SOURCE_RELATIVE:null,CONE_INNER_ANGLE:null,CONE_OUTER_ANGLE:null,PITCH:null,POSITION:null,DIRECTION:null,VELOCITY:null,LOOPING:null,BUFFER:null,GAIN:null,MIN_GAIN:null,MAX_GAIN:null,ORIENTATION:null,SOURCE_STATE:null,INITIAL:null,PLAYING:null,
PAUSED:null,STOPPED:null,BUFFERS_QUEUED:null,BUFFERS_PROCESSED:null,REFERENCE_DISTANCE:null,ROLLOFF_FACTOR:null,CONE_OUTER_GAIN:null,MAX_DISTANCE:null,SEC_OFFSET:null,SAMPLE_OFFSET:null,BYTE_OFFSET:null,SOURCE_TYPE:null,STATIC:null,STREAMING:null,UNDETERMINED:null,FORMAT_MONO8:null,FORMAT_MONO16:null,FORMAT_STEREO8:null,FORMAT_STEREO16:null,FREQUENCY:null,BITS:null,CHANNELS:null,SIZE:null,NO_ERROR:null,INVALID_NAME:null,INVALID_ENUM:null,INVALID_VALUE:null,INVALID_OPERATION:null,OUT_OF_MEMORY:null,
VENDOR:null,VERSION:null,RENDERER:null,EXTENSIONS:null,DOPPLER_FACTOR:null,SPEED_OF_SOUND:null,DOPPLER_VELOCITY:null,DISTANCE_MODEL:null,INVERSE_DISTANCE:null,INVERSE_DISTANCE_CLAMPED:null,LINEAR_DISTANCE:null,LINEAR_DISTANCE_CLAMPED:null,EXPONENT_DISTANCE:null,EXPONENT_DISTANCE_CLAMPED:null,REFRESH:null,SYNC:null,MONO_SOURCES:null,STEREO_SOURCES:null,INVALID_DEVICE:null,INVALID_CONTEXT:null,ATTRIBUTES_SIZE:null,ALL_ATTRIBUTES:null,DEFAULT_DEVICE_SPECIFIER:null,DEVICE_SPECIFIER:null,ENUMERATE_ALL_EXT:null,
DEFAULT_ALL_DEVICES_SPECIFIER:null,ALL_DEVICES_SPECIFIER:null,bufferData:function(a,b,c,d,e){C.bufferData(a,b,c,d,e)},buffer3f:function(a,b,c,d,e){C.buffer3f(a,b,c,d,e)},buffer3i:function(a,b,c,d,e){C.buffer3i(a,b,c,d,e)},bufferf:function(a,b,c){C.bufferf(a,b,c)},bufferfv:function(a,b,c){C.bufferfv(a,b,c)},bufferi:function(a,b,c){C.bufferi(a,b,c)},bufferiv:function(a,b,c){C.bufferiv(a,b,c)},closeDevice:function(a){return tb.closeDevice(a)},createContext:function(a,b){return tb.createContext(a,b)},
createBuffer:function(){return C.createBuffer()},createSource:function(){return C.createSource()},deleteBuffer:function(a){C.deleteBuffer(a)},deleteBuffers:function(a){C.deleteBuffers(a)},deleteSource:function(a){C.deleteSource(a)},deleteSources:function(a){C.deleteSources(a)},destroyContext:function(a){null!=a&&tb.destroyContext(a)},disable:function(a){C.disable(a)},distanceModel:function(a){C.distanceModel(a)},dopplerFactor:function(a){C.dopplerFactor(a)},dopplerVelocity:function(a){C.dopplerVelocity(a)},
enable:function(a){C.enable(a)},genSource:function(){return this.createSource()},genSources:function(a){return C.genSources(a)},genBuffer:function(){return this.createBuffer()},genBuffers:function(a){return C.genBuffers(a)},getBoolean:function(a){return C.getBoolean(a)},getBooleanv:function(a,b){null==b&&(b=1);return C.getBooleanv(a,b)},getBuffer3f:function(a,b){return C.getBuffer3f(a,b)},getBuffer3i:function(a,b){return C.getBuffer3i(a,b)},getBufferf:function(a,b){return C.getBufferf(a,b)},getBufferfv:function(a,
b,c){null==c&&(c=1);return C.getBufferfv(a,b,c)},getBufferi:function(a,b){return C.getBufferi(a,b)},getBufferiv:function(a,b,c){null==c&&(c=1);return C.getBufferiv(a,b,c)},getContextsDevice:function(a){return null==a?null:tb.getContextsDevice(a)},getCurrentContext:function(){return tb.getCurrentContext()},getDouble:function(a){return C.getDouble(a)},getDoublev:function(a,b){null==b&&(b=1);return C.getDoublev(a,b)},getEnumValue:function(a){return C.getEnumValue(a)},getError:function(a){return null==
a?C.getError():tb.getError(a)},getErrorString:function(a){return null==a?C.getErrorString():tb.getErrorString(a)},getFloat:function(a){return C.getFloat(a)},getFloatv:function(a,b){null==b&&(b=1);return C.getFloatv(a,b)},getInteger:function(a){return C.getInteger(a)},getIntegerv:function(a,b,c){null==b&&(b=1);return null==c?C.getIntegerv(a,b):tb.getIntegerv(c,a,b)},getListener3f:function(a){return C.getListener3f(a)},getListener3i:function(a){return C.getListener3i(a)},getListenerf:function(a){return C.getListenerf(a)},
getListenerfv:function(a,b){null==b&&(b=1);return C.getListenerfv(a,b)},getListeneri:function(a){return C.getListeneri(a)},getListeneriv:function(a,b){null==b&&(b=1);return C.getListeneriv(a,b)},getProcAddress:function(a){return C.getProcAddress(a)},getSource3f:function(a,b){return C.getSource3f(a,b)},getSourcef:function(a,b){return C.getSourcef(a,b)},getSource3i:function(a,b){return C.getSource3i(a,b)},getSourcefv:function(a,b,c){return C.getSourcefv(a,b)},getSourcei:function(a,b){return C.getSourcei(a,
b)},getSourceiv:function(a,b,c){null==c&&(c=1);return C.getSourceiv(a,b,c)},getString:function(a,b){return null==b?C.getString(a):tb.getString(b,a)},isBuffer:function(a){return C.isBuffer(a)},isEnabled:function(a){return C.isEnabled(a)},isExtensionPresent:function(a){return C.isExtensionPresent(a)},isSource:function(a){return C.isSource(a)},listener3f:function(a,b,c,d){C.listener3f(a,b,c,d)},listener3i:function(a,b,c,d){C.listener3i(a,b,c,d)},listenerf:function(a,b){C.listenerf(a,b)},listenerfv:function(a,
b){C.listenerfv(a,b)},listeneri:function(a,b){C.listeneri(a,b)},listeneriv:function(a,b){C.listeneriv(a,b)},makeContextCurrent:function(a){return tb.makeContextCurrent(a)},openDevice:function(a){return tb.openDevice(a)},pauseDevice:function(a){tb.pauseDevice(a)},processContext:function(a){tb.processContext(a)},resumeDevice:function(a){tb.resumeDevice(a)},source3f:function(a,b,c,d,e){C.source3f(a,b,c,d,e)},source3i:function(a,b,c,d,e){C.source3i(a,b,c,d,e)},sourcef:function(a,b,c){C.sourcef(a,b,c)},
sourcefv:function(a,b,c){C.sourcefv(a,b,c)},sourcei:function(a,b,c){C.sourcei(a,b,c)},sourceiv:function(a,b,c){C.sourceiv(a,b,c)},sourcePlay:function(a){C.sourcePlay(a)},sourcePlayv:function(a){C.sourcePlayv(a)},sourceStop:function(a){C.sourceStop(a)},sourceStopv:function(a){C.sourceStopv(a)},sourceRewind:function(a){C.sourceRewind(a)},sourceRewindv:function(a){C.sourceRewindv(a)},sourcePause:function(a){C.sourcePause(a)},sourcePausev:function(a){C.sourcePausev(a)},sourceQueueBuffer:function(a,b){C.sourceQueueBuffer(a,
b)},sourceQueueBuffers:function(a,b,c){C.sourceQueueBuffers(a,b,c)},sourceUnqueueBuffer:function(a){return C.sourceUnqueueBuffer(a)},sourceUnqueueBuffers:function(a,b){return C.sourceUnqueueBuffers(a,b)},speedOfSound:function(a){C.speedOfSound(a)},suspendContext:function(a){tb.suspendContext(a)},__class__:du};var C=function(){};g["lime.media.openal.AL"]=C;C.__name__="lime.media.openal.AL";C.removeDirectFilter=function(a){};C.removeSend=function(a,b){};C.auxf=function(a,b,c){};C.auxfv=function(a,b,
c){};C.auxi=function(a,b,c){};C.auxiv=function(a,b,c){};C.bufferData=function(a,b,c,d,e){};C.buffer3f=function(a,b,c,d,e){};C.buffer3i=function(a,b,c,d,e){};C.bufferf=function(a,b,c){};C.bufferfv=function(a,b,c){};C.bufferi=function(a,b,c){};C.bufferiv=function(a,b,c){};C.createAux=function(){return null};C.createBuffer=function(){return null};C.createEffect=function(){return null};C.createFilter=function(){return null};C.createSource=function(){return null};C.deleteBuffer=function(a){};C.deleteBuffers=
function(a){};C.deleteSource=function(a){};C.deleteSources=function(a){};C.disable=function(a){};C.distanceModel=function(a){};C.dopplerFactor=function(a){};C.dopplerVelocity=function(a){};C.effectf=function(a,b,c){};C.effectfv=function(a,b,c){};C.effecti=function(a,b,c){};C.effectiv=function(a,b,c){};C.enable=function(a){};C.genSource=function(){return null};C.genSources=function(a){return null};C.genBuffer=function(){return null};C.genBuffers=function(a){return null};C.getBoolean=function(a){return!1};
C.getBooleanv=function(a,b){return null};C.getBuffer3f=function(a,b){return null};C.getBuffer3i=function(a,b){return null};C.getBufferf=function(a,b){return 0};C.getBufferfv=function(a,b,c){return null};C.getBufferi=function(a,b){return 0};C.getBufferiv=function(a,b,c){return null};C.getDouble=function(a){return 0};C.getDoublev=function(a,b){return null};C.getEnumValue=function(a){return 0};C.getError=function(){return 0};C.getErrorString=function(){switch(C.getError()){case 40961:return"INVALID_NAME: Invalid parameter name";
case 40962:return"INVALID_ENUM: Invalid enum value";case 40963:return"INVALID_VALUE: Invalid parameter value";case 40964:return"INVALID_OPERATION: Illegal operation or call";case 40965:return"OUT_OF_MEMORY: OpenAL has run out of memory";default:return""}};C.getFilteri=function(a,b){return 0};C.getFloat=function(a){return 0};C.getFloatv=function(a,b){return null};C.getInteger=function(a){return 0};C.getIntegerv=function(a,b){return null};C.getListener3f=function(a){return null};C.getListener3i=function(a){return null};
C.getListenerf=function(a){return 0};C.getListenerfv=function(a,b){return null};C.getListeneri=function(a){return 0};C.getListeneriv=function(a,b){return null};C.getParameter=function(a){return null};C.getProcAddress=function(a){return null};C.getSource3f=function(a,b){return null};C.getSourcef=function(a,b){return 0};C.getSource3i=function(a,b){return null};C.getSourcefv=function(a,b,c){return null};C.getSourcei=function(a,b){return 0};C.getSourceiv=function(a,b,c){return null};C.getString=function(a){return null};
C.isBuffer=function(a){return!1};C.isEnabled=function(a){return!1};C.isExtensionPresent=function(a){return!1};C.isAux=function(a){return!1};C.isEffect=function(a){return!1};C.isFilter=function(a){return!1};C.isSource=function(a){return!1};C.listener3f=function(a,b,c,d){};C.listener3i=function(a,b,c,d){};C.listenerf=function(a,b){};C.listenerfv=function(a,b){};C.listeneri=function(a,b){};C.listeneriv=function(a,b){};C.source3f=function(a,b,c,d,e){};C.source3i=function(a,b,c,d,e){};C.sourcef=function(a,
b,c){};C.sourcefv=function(a,b,c){};C.sourcei=function(a,b,c){};C.filteri=function(a,b,c){};C.filterf=function(a,b,c){};C.sourceiv=function(a,b,c){};C.sourcePlay=function(a){};C.sourcePlayv=function(a){};C.sourceStop=function(a){};C.sourceStopv=function(a){};C.sourceRewind=function(a){};C.sourceRewindv=function(a){};C.sourcePause=function(a){};C.sourcePausev=function(a){};C.sourceQueueBuffer=function(a,b){};C.sourceQueueBuffers=function(a,b,c){};C.sourceUnqueueBuffer=function(a){return 0};C.sourceUnqueueBuffers=
function(a,b){return null};C.speedOfSound=function(a){};var tb=function(){};g["lime.media.openal.ALC"]=tb;tb.__name__="lime.media.openal.ALC";tb.closeDevice=function(a){return!1};tb.createContext=function(a,b){return null};tb.destroyContext=function(a){};tb.getContextsDevice=function(a){return null};tb.getCurrentContext=function(){return null};tb.getError=function(a){return 0};tb.getErrorString=function(a){switch(tb.getError(a)){case 40961:return"INVALID_DEVICE: Invalid device (or no device?)";case 40962:return"INVALID_CONTEXT: Invalid context (or no context?)";
case 40963:return"INVALID_ENUM: Invalid enum value";case 40964:return"INVALID_VALUE: Invalid param value";case 40965:return"OUT_OF_MEMORY: OpenAL has run out of memory";default:return""}};tb.getIntegerv=function(a,b,c){return null};tb.getString=function(a,b){return null};tb.makeContextCurrent=function(a){return!1};tb.openDevice=function(a){return null};tb.pauseDevice=function(a){};tb.processContext=function(a){};tb.resumeDevice=function(a){};tb.suspendContext=function(a){};var eu=function(){};g["lime.media.vorbis.VorbisComment"]=
eu;eu.__name__="lime.media.vorbis.VorbisComment";eu.prototype={userComments:null,vendor:null,__class__:eu};var Jp=function(a){this.handle=a};g["lime.media.vorbis.VorbisFile"]=Jp;Jp.__name__="lime.media.vorbis.VorbisFile";Jp.fromBytes=function(a){return null};Jp.fromFile=function(a){return null};Jp.prototype={bitstream:null,handle:null,bitrate:function(a){return 0},bitrateInstant:function(){return 0},clear:function(){},comment:function(a){return null},crosslap:function(a){return 0},info:function(a){return null},
pcmSeek:function(a){return 0},pcmSeekLap:function(a){return 0},pcmSeekPage:function(a){return 0},pcmSeekPageLap:function(a){return 0},pcmTell:function(){return new zb(0,0)},pcmTotal:function(a){return new zb(0,0)},rawSeek:function(a){return 0},rawSeekLap:function(a){return 0},rawTell:function(){return new zb(0,0)},rawTotal:function(a){return new zb(0,0)},read:function(a,b,c,d,e,f){return 0},readFloat:function(a,b){return 0},seekable:function(){return!1},serialNumber:function(a){return 0},streams:function(){return 0},
timeSeek:function(a){return 0},timeSeekLap:function(a){return 0},timeSeekPage:function(a){return 0},timeSeekPageLap:function(a){return 0},timeTell:function(){return 0},timeTotal:function(a){return 0},__class__:Jp};var fu=function(){};g["lime.media.vorbis.VorbisInfo"]=fu;fu.__name__="lime.media.vorbis.VorbisInfo";fu.prototype={bitrateLower:null,bitrateNominal:null,bitrateUpper:null,channels:null,rate:null,version:null,__class__:fu};var Kp=function(){};g["lime.net._IHTTPRequest"]=Kp;Kp.__name__="lime.net._IHTTPRequest";
Kp.__isInterface__=!0;Kp.prototype={contentType:null,data:null,enableResponseHeaders:null,followRedirects:null,formData:null,headers:null,method:null,responseHeaders:null,responseStatus:null,timeout:null,uri:null,userAgent:null,withCredentials:null,cancel:null,__class__:Kp};var Ue=function(a){this.uri=a;this.contentType="application/x-www-form-urlencoded";this.followRedirects=!0;this.enableResponseHeaders=!1;this.formData=new da;this.headers=[];this.method="GET";this.timeout=3E4;this.withCredentials=
!1;this.__backend=new Fa;this.__backend.init(this)};g["lime.net._HTTPRequest.AbstractHTTPRequest"]=Ue;Ue.__name__="lime.net._HTTPRequest.AbstractHTTPRequest";Ue.__interfaces__=[Kp];Ue.prototype={contentType:null,data:null,enableResponseHeaders:null,followRedirects:null,formData:null,headers:null,method:null,responseData:null,responseHeaders:null,responseStatus:null,timeout:null,uri:null,userAgent:null,withCredentials:null,__backend:null,cancel:function(){this.__backend.cancel()},load:function(a){return null},
__class__:Ue};var at=function(a){Ue.call(this,a)};g["lime.net.HTTPRequest"]=at;at.__name__="lime.net.HTTPRequest";at.__super__=Ue;at.prototype=r(Ue.prototype,{__class__:at});var Th=function(a){Ue.call(this,a)};g["lime.net._HTTPRequest_Bytes"]=Th;Th.__name__="lime.net._HTTPRequest_Bytes";Th.__super__=Ue;Th.prototype=r(Ue.prototype,{fromBytes:function(a){return a},load:function(a){var b=this;null!=a&&(this.uri=a);var c=new nd;a=this.__backend.loadData(this.uri);a.onProgress(k(c,c.progress));a.onError(k(c,
c.error));a.onComplete(function(a){b.responseData=b.fromBytes(a);c.complete(b.responseData)});return c.future},__class__:Th});var Om=function(a){Ue.call(this,a)};g["lime.net._HTTPRequest_String"]=Om;Om.__name__="lime.net._HTTPRequest_String";Om.__super__=Ue;Om.prototype=r(Ue.prototype,{load:function(a){var b=this;null!=a&&(this.uri=a);var c=new nd;a=this.__backend.loadText(this.uri);a.onProgress(k(c,c.progress));a.onError(k(c,c.error));a.onComplete(function(a){b.responseData=a;c.complete(b.responseData)});
return c.future},__class__:Om});var sp=function(a,b){null==b&&(b="");this.name=a;this.value=b};g["lime.net.HTTPRequestHeader"]=sp;sp.__name__="lime.net.HTTPRequestHeader";sp.prototype={name:null,value:null,__class__:sp};var Fo=function(a){Ue.call(this,a)};g["lime.net._HTTPRequest_lime_text_Font"]=Fo;Fo.__name__="lime.net._HTTPRequest_lime_text_Font";Fo.__super__=Th;Fo.prototype=r(Th.prototype,{fromBytes:function(a){return U.fromBytes(a)},__class__:Fo});var Lp=function(a){Ue.call(this,a)};g["lime.net._HTTPRequest_lime_utils_Bytes"]=
Lp;Lp.__name__="lime.net._HTTPRequest_lime_utils_Bytes";Lp.__super__=Th;Lp.prototype=r(Th.prototype,{fromBytes:function(a){return Sd.fromBytes(a)},__class__:Lp});var rp=function(a){Ue.call(this,a)};g["lime.net._HTTPRequest_openfl_utils_ByteArray"]=rp;rp.__name__="lime.net._HTTPRequest_openfl_utils_ByteArray";rp.__super__=Th;rp.prototype=r(Th.prototype,{fromBytes:function(a){return Mb.fromBytes(a)},__class__:rp});var Uh=function(){};g["lime.system.CFFI"]=Uh;Uh.__name__="lime.system.CFFI";Uh.load=function(a,
b,c,d){null==d&&(d=!1);null==c&&(c=0);return Uh.enabled?null:J.makeVarArgs(function(a){return{}})};Uh.__findHaxelib=function(a){return""};Uh.__loaderTrace=function(a){};Uh.__sysName=function(){return null};Uh.__tryLoad=function(a,b,c,d){return null};var kd={_new:function(a){return a},get:function(a){return 0},equals:function(a,b){return kd.get(a)==b},equalsPointer:function(a,b){return kd.get(a)==kd.get(b)},greaterThan:function(a,b){return kd.get(a)>b},greaterThanPointer:function(a,b){return kd.get(a)>
kd.get(b)},greaterThanOrEqual:function(a,b){return kd.get(a)>=b},greaterThanOrEqualPointer:function(a,b){return kd.get(a)>=kd.get(b)},lessThan:function(a,b){return kd.get(a)<b},lessThanPointer:function(a,b){return kd.get(a)<kd.get(b)},lessThanOrEqual:function(a,b){return kd.get(a)<=b},lessThanOrEqualPointer:function(a,b){return kd.get(a)<=kd.get(b)},notEquals:function(a,b){return kd.get(a)!=b},notEqualsPointer:function(a,b){return kd.get(a)!=kd.get(b)}},Rd=function(){};g["lime.system.Clipboard"]=
Rd;Rd.__name__="lime.system.Clipboard";Rd.__properties__={set_text:"set_text",get_text:"get_text"};Rd.__update=function(){var a=Rd._text;Rd._text=null;Rd._text!=a&&Rd.onUpdate.dispatch()};Rd.get_text=function(){Rd.__update();return Rd._text};Rd.set_text=function(a){var b=Rd._text;Rd._text=a;var c=nc.current.__window;null!=c&&c.__backend.setClipboard(a);Rd._text!=b&&Rd.onUpdate.dispatch();return a};var bt=function(){};g["lime.system.Display"]=bt;bt.__name__="lime.system.Display";bt.prototype={bounds:null,
currentMode:null,id:null,dpi:null,name:null,supportedModes:null,__class__:bt};var ct=function(a,b,c,d){this.width=a;this.height=b;this.refreshRate=c;this.pixelFormat=d};g["lime.system.DisplayMode"]=ct;ct.__name__="lime.system.DisplayMode";ct.prototype={height:null,pixelFormat:null,refreshRate:null,width:null,__class__:ct};var If=P["lime.system.Endian"]={__ename__:"lime.system.Endian",__constructs__:null,LITTLE_ENDIAN:{_hx_name:"LITTLE_ENDIAN",_hx_index:0,__enum__:"lime.system.Endian",toString:v},
BIG_ENDIAN:{_hx_name:"BIG_ENDIAN",_hx_index:1,__enum__:"lime.system.Endian",toString:v}};If.__constructs__=[If.LITTLE_ENDIAN,If.BIG_ENDIAN];If.__empty_constructs__=[If.LITTLE_ENDIAN,If.BIG_ENDIAN];var ae=function(){};g["lime.system.JNI"]=ae;ae.__name__="lime.system.JNI";ae.callMember=function(a,b,c){switch(c.length){case 0:return a(b);case 1:return a(b,c[0]);case 2:return a(b,c[0],c[1]);case 3:return a(b,c[0],c[1],c[2]);case 4:return a(b,c[0],c[1],c[2],c[3]);case 5:return a(b,c[0],c[1],c[2],c[3],
c[4]);case 6:return a(b,c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return a(b,c[0],c[1],c[2],c[3],c[4],c[5],c[6]);default:return null}};ae.callStatic=function(a,b){switch(b.length){case 0:return a();case 1:return a(b[0]);case 2:return a(b[0],b[1]);case 3:return a(b[0],b[1],b[2]);case 4:return a(b[0],b[1],b[2],b[3]);case 5:return a(b[0],b[1],b[2],b[3],b[4]);case 6:return a(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return a(b[0],b[1],b[2],b[3],b[4],b[5],b[6]);default:return null}};ae.createMemberField=function(a,
b,c){ae.init();return null};ae.createMemberMethod=function(a,b,c,d,e){ae.init();return null};ae.createStaticField=function(a,b,c){ae.init();return null};ae.createStaticMethod=function(a,b,c,d,e){ae.init();return null};ae.getEnv=function(){ae.init();return null};ae.init=function(){ae.initialized||(ae.initialized=!0)};ae.onCallback=function(a,b,c){var d=J.field(a,b);if(null!=d)return null==c&&(c=[]),d.apply(a,c);Ub.trace("onCallback - unknown field "+b,{fileName:"lime/system/JNI.hx",lineNumber:173,
className:"lime.system.JNI",methodName:"onCallback"});return null};ae.postUICallback=function(a){a()};var gu=function(a){this.field=a};g["lime.system.JNIMemberField"]=gu;gu.__name__="lime.system.JNIMemberField";gu.prototype={field:null,get:function(a){return null},set:function(a,b){return b},__class__:gu};var hu=function(a){this.field=a};g["lime.system.JNIStaticField"]=hu;hu.__name__="lime.system.JNIStaticField";hu.prototype={field:null,get:function(){return null},set:function(a){return a},__class__:hu};
var iu=function(a){this.method=a};g["lime.system.JNIMethod"]=iu;iu.__name__="lime.system.JNIMethod";iu.prototype={method:null,callMember:function(a){return null},callStatic:function(a){return null},getMemberMethod:function(a){return a?k(this,this.callMember):J.makeVarArgs(k(this,this.callMember))},getStaticMethod:function(a){return a?k(this,this.callStatic):J.makeVarArgs(k(this,this.callStatic))},__class__:iu};var Ee={__properties__:{get_region:"get_region",get_language:"get_language",get_systemLocale:"get_systemLocale",
set_currentLocale:"set_currentLocale",get_currentLocale:"get_currentLocale"},_new:function(a){return a},equals:function(a,b){var c=Ee.get_language(a);a=Ee.get_region(a);var d=Ee.get_language(b);b=Ee.get_region(b);var e=c==d,f=a==b;e||null==c||null==d||(e=c.toLowerCase()==d.toLowerCase());f||null==a||null==b||(f=a.toLowerCase()==b.toLowerCase());return e?f:!1},__init:function(){if(null==Ee.__systemLocale){var a=navigator.language;Ee.__systemLocale=null!=a?a:"en-US";Ee.set_currentLocale(Ee.__systemLocale)}},
get_language:function(a){if(null!=a){var b=a.indexOf("_");if(-1<b){var c=a.indexOf("-");-1<c&&c<b&&(b=c);return a.substring(0,b)}b=a.indexOf("-");if(-1<b)return a.substring(0,b)}return a},get_region:function(a){if(null!=a){var b=a.indexOf("_"),c=a.indexOf("."),d=a.indexOf("-");if(-1<b)return-1<c?a.substring(b+1,c):a.substring(b+1);if(-1<d)return-1<c?a.substring(d+1,c):a.substring(d+1)}return null},get_currentLocale:function(){Ee.__init();return Ee.currentLocale},set_currentLocale:function(a){Ee.__init();
return Ee.currentLocale=a},get_systemLocale:function(){Ee.__init();return Ee.__systemLocale}},dg=function(a,b){this.onUpdate=new Ns;this.type=a;this.id=b};g["lime.system.Sensor"]=dg;dg.__name__="lime.system.Sensor";dg.getSensors=function(a){if(null==a)return dg.sensors.slice();for(var b=[],c=0,d=dg.sensors;c<d.length;){var e=d[c];++c;e.type==a&&b.push(e)}return b};dg.registerSensor=function(a,b){a=new dg(a,b);dg.sensors.push(a);return dg.sensorByID.h[b]=a};dg.prototype={id:null,onUpdate:null,type:null,
__class__:dg};var qs=P["lime.system.SensorType"]={__ename__:"lime.system.SensorType",__constructs__:null,ACCELEROMETER:{_hx_name:"ACCELEROMETER",_hx_index:0,__enum__:"lime.system.SensorType",toString:v}};qs.__constructs__=[qs.ACCELEROMETER];qs.__empty_constructs__=[qs.ACCELEROMETER];var Ka=function(){};g["lime.system.System"]=Ka;Ka.__name__="lime.system.System";Ka.__properties__={get_userDirectory:"get_userDirectory",get_platformVersion:"get_platformVersion",get_platformName:"get_platformName",get_platformLabel:"get_platformLabel",
get_numDisplays:"get_numDisplays",get_fontsDirectory:"get_fontsDirectory",get_endianness:"get_endianness",get_documentsDirectory:"get_documentsDirectory",get_deviceVendor:"get_deviceVendor",get_deviceModel:"get_deviceModel",get_desktopDirectory:"get_desktopDirectory",get_applicationStorageDirectory:"get_applicationStorageDirectory",get_applicationDirectory:"get_applicationDirectory",set_allowScreenTimeout:"set_allowScreenTimeout",get_allowScreenTimeout:"get_allowScreenTimeout"};Ka.embed=y.lime.embed=
function(a,b,c,d,e){if(null!=Ka.__applicationEntryPoint&&Object.prototype.hasOwnProperty.call(Ka.__applicationEntryPoint.h,a)){var f="string"==typeof b?window.document.getElementById(b):null==b?window.document.createElement("div"):b;null==f?window.console.log("[lime.embed] ERROR: Cannot find target element: "+B.string(b)):(null==c&&(c=0),null==d&&(d=0),null==e&&(e={}),Object.prototype.hasOwnProperty.call(e,"background")&&"string"==typeof e.background&&(b=ia.replace(B.string(e.background),"#",""),
-1<b.indexOf("0x")?e.background=B.parseInt(b):e.background=B.parseInt("0x"+b)),e.element=f,e.width=c,e.height=d,Ka.__applicationEntryPoint.h[a](e))}};Ka.exit=function(a){};Ka.getDisplay=function(a){return 0==a?(a=new bt,a.id=0,a.name="Generic Display",a.dpi=96*window.devicePixelRatio,a.currentMode=new ct(window.screen.width,window.screen.height,60,1),a.supportedModes=[a.currentMode],a.bounds=new qd(0,0,a.currentMode.width,a.currentMode.height),a):null};Ka.getTimer=function(){return window.performance.now()|
0};Ka.load=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=0);return Uh.load(a,b,c,d)};Ka.openFile=function(a){null!=a&&window.open(a,"_blank")};Ka.openURL=function(a,b){null==b&&(b="_blank");null!=a&&window.open(a,b)};Ka.__copyMissingFields=function(a,b){if(null!=b&&null!=a)for(var c=0,d=J.fields(b);c<d.length;){var e=d[c];++c;Object.prototype.hasOwnProperty.call(a,e)||(a[e]=J.field(b,e))}};Ka.__getDirectory=function(a){return null};Ka.__parseBool=function(a){return"true"==a};Ka.__registerEntryPoint=
function(a,b){null==Ka.__applicationEntryPoint&&(Ka.__applicationEntryPoint=new da);Ka.__applicationEntryPoint.h[a]=b};Ka.__runProcess=function(a,b){return null};Ka.get_allowScreenTimeout=function(){return!0};Ka.set_allowScreenTimeout=function(a){return!0};Ka.get_applicationDirectory=function(){null==Ka.__applicationDirectory&&(Ka.__applicationDirectory=Ka.__getDirectory(0));return Ka.__applicationDirectory};Ka.get_applicationStorageDirectory=function(){null==Ka.__applicationStorageDirectory&&(Ka.__applicationStorageDirectory=
Ka.__getDirectory(1));return Ka.__applicationStorageDirectory};Ka.get_deviceModel=function(){return Ka.__deviceModel};Ka.get_deviceVendor=function(){return Ka.__deviceVendor};Ka.get_desktopDirectory=function(){null==Ka.__desktopDirectory&&(Ka.__desktopDirectory=Ka.__getDirectory(2));return Ka.__desktopDirectory};Ka.get_documentsDirectory=function(){null==Ka.__documentsDirectory&&(Ka.__documentsDirectory=Ka.__getDirectory(3));return Ka.__documentsDirectory};Ka.get_endianness=function(){if(null==Ka.__endianness){var a=
new ArrayBuffer(2),b=null,c=null,d=null,e=null,f=null,h=b=null!=b?new Uint8Array(b):null!=c?new Uint8Array(c):null!=d?new Uint8Array(d.__array):null!=e?new Uint8Array(e):null!=a?null==f?new Uint8Array(a,0):new Uint8Array(a,0,f):null;f=e=d=c=b=null;b=null!=b?new Uint16Array(b):null!=c?new Uint16Array(c):null!=d?new Uint16Array(d.__array):null!=e?new Uint16Array(e):null!=a?null==f?new Uint16Array(a,0):new Uint16Array(a,0,f):null;h[0]=170;h[1]=187;Ka.__endianness=43707==b[0]?If.BIG_ENDIAN:If.LITTLE_ENDIAN}return Ka.__endianness};
Ka.get_fontsDirectory=function(){null==Ka.__fontsDirectory&&(Ka.__fontsDirectory=Ka.__getDirectory(4));return Ka.__fontsDirectory};Ka.get_numDisplays=function(){return 1};Ka.get_platformLabel=function(){if(null==Ka.__platformLabel){var a=Ka.get_platformName(),b=Ka.get_platformVersion();null!=a&&null!=b?Ka.__platformLabel=a+" "+b:null!=a&&(Ka.__platformLabel=a)}return Ka.__platformLabel};Ka.get_platformName=function(){null==Ka.__platformName&&(Ka.__platformName="HTML5");return Ka.__platformName};Ka.get_platformVersion=
function(){return Ka.__platformVersion};Ka.get_userDirectory=function(){null==Ka.__userDirectory&&(Ka.__userDirectory=Ka.__getDirectory(5));return Ka.__userDirectory};var Ms=function(a,b){null==b&&(b=1);null==a&&(a=0);this.onRun=new Pj;this.onProgress=new Pj;this.onError=new Pj;this.onComplete=new Pj;this.doWork=new Pj;this.minThreads=a;this.maxThreads=b;this.currentThreads=0};g["lime.system.ThreadPool"]=Ms;Ms.__name__="lime.system.ThreadPool";Ms.prototype={currentThreads:null,doWork:null,maxThreads:null,
minThreads:null,onComplete:null,onError:null,onProgress:null,onRun:null,queue:function(a){this.runWork(a)},sendComplete:function(a){this.onComplete.dispatch(a)},sendError:function(a){this.onError.dispatch(a)},sendProgress:function(a){this.onProgress.dispatch(a)},runWork:function(a){this.onRun.dispatch(a);this.doWork.dispatch(a)},__class__:Ms};var oh=P["lime.system._ThreadPool.ThreadPoolMessageType"]={__ename__:"lime.system._ThreadPool.ThreadPoolMessageType",__constructs__:null,COMPLETE:{_hx_name:"COMPLETE",
_hx_index:0,__enum__:"lime.system._ThreadPool.ThreadPoolMessageType",toString:v},ERROR:{_hx_name:"ERROR",_hx_index:1,__enum__:"lime.system._ThreadPool.ThreadPoolMessageType",toString:v},EXIT:{_hx_name:"EXIT",_hx_index:2,__enum__:"lime.system._ThreadPool.ThreadPoolMessageType",toString:v},PROGRESS:{_hx_name:"PROGRESS",_hx_index:3,__enum__:"lime.system._ThreadPool.ThreadPoolMessageType",toString:v},WORK:{_hx_name:"WORK",_hx_index:4,__enum__:"lime.system._ThreadPool.ThreadPoolMessageType",toString:v}};
oh.__constructs__=[oh.COMPLETE,oh.ERROR,oh.EXIT,oh.PROGRESS,oh.WORK];oh.__empty_constructs__=[oh.COMPLETE,oh.ERROR,oh.EXIT,oh.PROGRESS,oh.WORK];var ju=function(a,b){this.type=a;this.state=b};g["lime.system._ThreadPool.ThreadPoolMessage"]=ju;ju.__name__="lime.system._ThreadPool.ThreadPoolMessage";ju.prototype={state:null,type:null,__class__:ju};var ku=function(){};g["lime.text.GlyphMetrics"]=ku;ku.__name__="lime.text.GlyphMetrics";ku.prototype={advance:null,height:null,horizontalBearing:null,verticalBearing:null,
__class__:ku};var Fu=function(){};g["lime.text.harfbuzz.HB"]=Fu;Fu.__name__="lime.text.harfbuzz.HB";Fu.shape=function(a,b,c){};var Wu={__properties__:{set_segmentProperties:"set_segmentProperties",get_segmentProperties:"get_segmentProperties",set_script:"set_script",get_script:"get_script",set_replacementCodepoint:"set_replacementCodepoint",get_replacementCodepoint:"get_replacementCodepoint",set_length:"set_length",get_length:"get_length",set_language:"set_language",get_language:"get_language",set_flags:"set_flags",
get_flags:"get_flags",set_direction:"set_direction",get_direction:"get_direction",set_contentType:"set_contentType",get_contentType:"get_contentType",set_clusterLevel:"set_clusterLevel",get_clusterLevel:"get_clusterLevel",get_allocationSuccessful:"get_allocationSuccessful"},_new:function(){return null},add:function(a,b,c){},addCodepoints:function(a,b,c,d,e){},addUTF8:function(a,b,c,d){},addUTF16:function(a,b,c,d,e){},addUTF32:function(a,b,c,d,e){},clearContents:function(a){},getGlyphInfo:function(a){return null},
getGlyphPositions:function(a){return null},guessSegmentProperties:function(a){},normalizeGlyphs:function(a){},preallocate:function(a,b){return!1},reset:function(a){},reverse:function(a){},reverseClusters:function(a){},get_allocationSuccessful:function(a){return!1},get_clusterLevel:function(a){return 0},set_clusterLevel:function(a,b){return b},get_contentType:function(a){return 0},set_contentType:function(a,b){return b},get_direction:function(a){return 0},set_direction:function(a,b){return b},get_empty:function(){return null},
get_flags:function(a){return 0},set_flags:function(a,b){return b},get_language:function(a){return null},set_language:function(a,b){return b},get_length:function(a){return 0},set_length:function(a,b){return b},get_replacementCodepoint:function(a){return 0},set_replacementCodepoint:function(a,b){return b},get_script:function(a){return 0},set_script:function(a,b){return b},get_segmentProperties:function(a){return null},set_segmentProperties:function(a,b){return b}},lu=function(){};g["lime.text.harfbuzz.HBFeature"]=
lu;lu.__name__="lime.text.harfbuzz.HBFeature";lu.prototype={__class__:lu};var mu=function(){};g["lime.text.harfbuzz.HBGlyphInfo"]=mu;mu.__name__="lime.text.harfbuzz.HBGlyphInfo";mu.prototype={codepoint:null,mask:null,cluster:null,__class__:mu};var nu=function(){};g["lime.text.harfbuzz.HBGlyphPosition"]=nu;nu.__name__="lime.text.harfbuzz.HBGlyphPosition";nu.prototype={xAdvance:null,xOffset:null,yAdvance:null,yOffset:null,__class__:nu};var Qu={_new:function(a){return null},toString:function(a){return null},
fromString:function(a){return Qu._new(a)}},ou=function(){};g["lime.text.harfbuzz.HBSegmentProperties"]=ou;ou.__name__="lime.text.harfbuzz.HBSegmentProperties";ou.prototype={__class__:ou};var dd=function(a){this.onDisconnect=new Ad;this.onButtonUp=new Hp;this.onButtonDown=new Hp;this.onAxisMove=new Vs;this.id=a;this.connected=!0};g["lime.ui.Gamepad"]=dd;dd.__name__="lime.ui.Gamepad";dd.addMappings=function(a){};dd.__connect=function(a){if(!dd.devices.h.hasOwnProperty(a)){var b=new dd(a);dd.devices.h[a]=
b;dd.onConnect.dispatch(b)}};dd.__disconnect=function(a){var b=dd.devices.h[a];null!=b&&(b.connected=!1);dd.devices.remove(a);null!=b&&b.onDisconnect.dispatch()};dd.prototype={connected:null,id:null,onAxisMove:null,onButtonDown:null,onButtonUp:null,onDisconnect:null,get_guid:function(){return Cc.__getDeviceData()[this.id].id},get_name:function(){return Cc.__getDeviceData()[this.id].id},__class__:dd,__properties__:{get_name:"get_name",get_guid:"get_guid"}};var Cc=function(a){this.onTrackballMove=new Rs;
this.onHatMove=new Ts;this.onDisconnect=new Ad;this.onButtonUp=new Cj;this.onButtonDown=new Cj;this.onAxisMove=new Ss;this.id=a;this.connected=!0};g["lime.ui.Joystick"]=Cc;Cc.__name__="lime.ui.Joystick";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.__getDeviceData=function(){return navigator.getGamepads?
navigator.getGamepads():navigator.webkitGetGamepads?navigator.webkitGetGamepads():null};Cc.prototype={connected:null,id:null,onAxisMove:null,onButtonDown:null,onButtonUp:null,onDisconnect:null,onHatMove:null,onTrackballMove:null,get_guid:function(){return Cc.__getDeviceData()[this.id].id},get_name:function(){return Cc.__getDeviceData()[this.id].id},get_numAxes:function(){return Cc.__getDeviceData()[this.id].axes.length},get_numButtons:function(){return Cc.__getDeviceData()[this.id].buttons.length},
get_numHats:function(){return 0},get_numTrackballs:function(){return 0},__class__:Cc,__properties__:{get_numTrackballs:"get_numTrackballs",get_numHats:"get_numHats",get_numButtons:"get_numButtons",get_numAxes:"get_numAxes",get_name:"get_name",get_guid:"get_guid"}};var mb={__properties__:{set_shiftKey:"set_shiftKey",get_shiftKey:"get_shiftKey",set_numLock:"set_numLock",get_numLock:"get_numLock",set_metaKey:"set_metaKey",get_metaKey:"get_metaKey",set_ctrlKey:"set_ctrlKey",get_ctrlKey:"get_ctrlKey",
set_capsLock:"set_capsLock",get_capsLock:"get_capsLock",set_altKey:"set_altKey",get_altKey:"get_altKey"},get_altKey:function(a){return 0>=(a&256)?0<(a&512):!0},set_altKey:function(a,b){return b},get_capsLock:function(a){return 0>=(a&8192)?0<(a&8192):!0},set_capsLock:function(a,b){return b},get_ctrlKey:function(a){return 0>=(a&64)?0<(a&128):!0},set_ctrlKey:function(a,b){return b},get_metaKey:function(a){return 0>=(a&1024)?0<(a&2048):!0},set_metaKey:function(a,b){return b},get_numLock:function(a){return 0>=
(a&4096)?0<(a&4096):!0},set_numLock:function(a,b){return b},get_shiftKey:function(a){return 0>=(a&1)?0<(a&2):!0},set_shiftKey:function(a,b){return b}},sb=P["lime.ui.MouseCursor"]={__ename__:"lime.ui.MouseCursor",__constructs__:null,ARROW:{_hx_name:"ARROW",_hx_index:0,__enum__:"lime.ui.MouseCursor",toString:v},CROSSHAIR:{_hx_name:"CROSSHAIR",_hx_index:1,__enum__:"lime.ui.MouseCursor",toString:v},DEFAULT:{_hx_name:"DEFAULT",_hx_index:2,__enum__:"lime.ui.MouseCursor",toString:v},MOVE:{_hx_name:"MOVE",
_hx_index:3,__enum__:"lime.ui.MouseCursor",toString:v},POINTER:{_hx_name:"POINTER",_hx_index:4,__enum__:"lime.ui.MouseCursor",toString:v},RESIZE_NESW:{_hx_name:"RESIZE_NESW",_hx_index:5,__enum__:"lime.ui.MouseCursor",toString:v},RESIZE_NS:{_hx_name:"RESIZE_NS",_hx_index:6,__enum__:"lime.ui.MouseCursor",toString:v},RESIZE_NWSE:{_hx_name:"RESIZE_NWSE",_hx_index:7,__enum__:"lime.ui.MouseCursor",toString:v},RESIZE_WE:{_hx_name:"RESIZE_WE",_hx_index:8,__enum__:"lime.ui.MouseCursor",toString:v},TEXT:{_hx_name:"TEXT",
_hx_index:9,__enum__:"lime.ui.MouseCursor",toString:v},WAIT:{_hx_name:"WAIT",_hx_index:10,__enum__:"lime.ui.MouseCursor",toString:v},WAIT_ARROW:{_hx_name:"WAIT_ARROW",_hx_index:11,__enum__:"lime.ui.MouseCursor",toString:v},CUSTOM:{_hx_name:"CUSTOM",_hx_index:12,__enum__:"lime.ui.MouseCursor",toString:v}};sb.__constructs__=[sb.ARROW,sb.CROSSHAIR,sb.DEFAULT,sb.MOVE,sb.POINTER,sb.RESIZE_NESW,sb.RESIZE_NS,sb.RESIZE_NWSE,sb.RESIZE_WE,sb.TEXT,sb.WAIT,sb.WAIT_ARROW,sb.CUSTOM];sb.__empty_constructs__=[sb.ARROW,
sb.CROSSHAIR,sb.DEFAULT,sb.MOVE,sb.POINTER,sb.RESIZE_NESW,sb.RESIZE_NS,sb.RESIZE_NWSE,sb.RESIZE_WE,sb.TEXT,sb.WAIT,sb.WAIT_ARROW,sb.CUSTOM];var Hf=P["lime.ui.MouseWheelMode"]={__ename__:"lime.ui.MouseWheelMode",__constructs__:null,PIXELS:{_hx_name:"PIXELS",_hx_index:0,__enum__:"lime.ui.MouseWheelMode",toString:v},LINES:{_hx_name:"LINES",_hx_index:1,__enum__:"lime.ui.MouseWheelMode",toString:v},PAGES:{_hx_name:"PAGES",_hx_index:2,__enum__:"lime.ui.MouseWheelMode",toString:v},UNKNOWN:{_hx_name:"UNKNOWN",
_hx_index:3,__enum__:"lime.ui.MouseWheelMode",toString:v}};Hf.__constructs__=[Hf.PIXELS,Hf.LINES,Hf.PAGES,Hf.UNKNOWN];Hf.__empty_constructs__=[Hf.PIXELS,Hf.LINES,Hf.PAGES,Hf.UNKNOWN];var Qc=function(a,b,c,d,e,f,h){this.x=a;this.y=b;this.id=c;this.dx=d;this.dy=e;this.pressure=f;this.device=h};g["lime.ui.Touch"]=Qc;Qc.__name__="lime.ui.Touch";Qc.prototype={device:null,dx:null,dy:null,id:null,pressure:null,x:null,y:null,__class__:Qc};var vk=function(a,b){this.onTextInput=new Fp;this.onTextEdit=new Us;
this.onRestore=new Ad;this.onResize=new Ep;this.onRenderContextRestored=new Gp;this.onRenderContextLost=new Ad;this.onRender=new Gp;this.onMove=new Vm;this.onMouseWheel=new Qs;this.onMouseUp=new Os;this.onMouseMoveRelative=new Vm;this.onMouseMove=new Vm;this.onMouseDown=new Ps;this.onMinimize=new Ad;this.onMaximize=new Ad;this.onLeave=new Ad;this.onKeyUp=new Ip;this.onKeyDown=new Ip;this.onFullscreen=new Ad;this.onFocusOut=new Ad;this.onFocusIn=new Ad;this.onExpose=new Ad;this.onEnter=new Ad;this.onDropFile=
new Fp;this.onDeactivate=new Ad;this.onClose=new Ad;this.onActivate=new Ad;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="";this.id=-1;this.__backend=new cb(this)};g["lime.ui.Window"]=vk;vk.__name__="lime.ui.Window";vk.prototype={application:null,context:null,display:null,element:null,
hidden:null,id:null,onActivate:null,onClose:null,onDeactivate:null,onDropFile:null,onEnter:null,onExpose:null,onFocusIn:null,onFocusOut:null,onFullscreen:null,onKeyDown:null,onKeyUp:null,onLeave:null,onMaximize:null,onMinimize:null,onMouseDown:null,onMouseMove:null,onMouseMoveRelative:null,onMouseUp:null,onMouseWheel:null,onMove:null,onRender:null,onRenderContextLost:null,onRenderContextRestored:null,onResize:null,onRestore:null,onTextEdit:null,onTextInput:null,parameters:null,scale:null,stage:null,
__attributes:null,__backend:null,__borderless:null,__fullscreen:null,__height:null,__hidden:null,__maximized:null,__minimized:null,__resizable:null,__scale:null,__title:null,__width:null,__x:null,__y:null,alert:function(a,b){this.__backend.alert(a,b)},close:function(){this.__backend.close()},focus:function(){this.__backend.focus()},move:function(a,b){this.__backend.move(a,b);this.__x=a;this.__y=b},readPixels:function(a){return this.__backend.readPixels(a)},resize:function(a,b){this.__backend.resize(a,
b);this.__width=a;this.__height=b},setIcon:function(a){null!=a&&this.__backend.setIcon(a)},toString:function(){return"[object Window]"},warpMouse:function(a,b){this.__backend.warpMouse(a,b)},get_cursor:function(){return this.__backend.getCursor()},set_cursor:function(a){return this.__backend.setCursor(a)},get_display:function(){return this.__backend.getDisplay()},get_displayMode:function(){return this.__backend.getDisplayMode()},set_displayMode:function(a){return this.__backend.setDisplayMode(a)},
get_borderless:function(){return this.__borderless},set_borderless:function(a){return this.__borderless=this.__backend.setBorderless(a)},get_frameRate:function(){return this.__backend.getFrameRate()},set_frameRate:function(a){return this.__backend.setFrameRate(a)},get_fullscreen:function(){return this.__fullscreen},set_fullscreen:function(a){return this.__fullscreen=this.__backend.setFullscreen(a)},get_height:function(){return this.__height},set_height:function(a){this.resize(this.__width,a);return this.__height},
get_hidden:function(){return this.__hidden},get_maximized:function(){return this.__maximized},set_maximized:function(a){this.__minimized=!1;return this.__maximized=this.__backend.setMaximized(a)},get_minimized:function(){return this.__minimized},set_minimized:function(a){this.__maximized=!1;return this.__minimized=this.__backend.setMinimized(a)},get_mouseLock:function(){return this.__backend.getMouseLock()},set_mouseLock:function(a){this.__backend.setMouseLock(a);return a},get_resizable:function(){return this.__resizable},
set_resizable:function(a){return this.__resizable=this.__backend.setResizable(a)},get_scale:function(){return this.__scale},get_textInputEnabled:function(){return this.__backend.getTextInputEnabled()},set_textInputEnabled:function(a){return this.__backend.setTextInputEnabled(a)},get_title:function(){return this.__title},set_title:function(a){return this.__title=this.__backend.setTitle(a)},get_width:function(){return this.__width},set_width:function(a){this.resize(a,this.__height);return this.__width},
get_x:function(){return this.__x},set_x:function(a){this.move(a,this.__y);return this.__x},get_y:function(){return this.__y},set_y:function(a){this.move(this.__x,a);return this.__y},__class__:vk,__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_title:"set_title",get_title:"get_title",set_textInputEnabled:"set_textInputEnabled",get_textInputEnabled:"get_textInputEnabled",get_scale:"get_scale",set_resizable:"set_resizable",get_resizable:"get_resizable",
set_mouseLock:"set_mouseLock",get_mouseLock:"get_mouseLock",set_minimized:"set_minimized",get_minimized:"get_minimized",set_maximized:"set_maximized",get_maximized:"get_maximized",get_hidden:"get_hidden",set_height:"set_height",get_height:"get_height",set_fullscreen:"set_fullscreen",get_fullscreen:"get_fullscreen",set_frameRate:"set_frameRate",get_frameRate:"get_frameRate",set_displayMode:"set_displayMode",get_displayMode:"get_displayMode",get_display:"get_display",set_cursor:"set_cursor",get_cursor:"get_cursor",
set_borderless:"set_borderless",get_borderless:"get_borderless"}};var pu=P["lime.utils.TAError"]={__ename__:"lime.utils.TAError",__constructs__:null,RangeError:{_hx_name:"RangeError",_hx_index:0,__enum__:"lime.utils.TAError",toString:v}};pu.__constructs__=[pu.RangeError];pu.__empty_constructs__=[pu.RangeError];var ng=function(){this.data=new da;this.paths=[]};g["lime.utils.AssetBundle"]=ng;ng.__name__="lime.utils.AssetBundle";ng.fromBytes=function(a){a=new ip(a);return ng.__extractBundle(a)};ng.fromFile=
function(a){return null};ng.loadFromBytes=function(a){return Ja.withValue(ng.fromBytes(a))};ng.loadFromFile=function(a){return Sd.loadFromFile(a).then(ng.loadFromBytes)};ng.__extractBundle=function(a){var b=Ok.readZip(a);a=new ng;for(b=b.h;null!=b;){var c=b.item;b=b.next;if(c.compressed){var d=a.data,e=c.fileName,f=Sd.decompress(c.data,Ve.DEFLATE);d.h[e]=f}else a.data.h[c.fileName]=c.data;a.paths.push(c.fileName)}return a};ng.prototype={data:null,paths:null,__class__:ng};var dt=function(){this.enabled=
!0;this.audio=new da;this.font=new da;this.image=new da;this.version=970870};g["lime.utils.AssetCache"]=dt;dt.__name__="lime.utils.AssetCache";dt.prototype={audio:null,enabled:null,image:null,font:null,version:null,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 Lb))throw u.thrown("Cannot cache non-Image asset: "+B.string(c)+" as Image");this.image.h[a]=c;break;case "MUSIC":case "SOUND":if(!(c instanceof vc))throw u.thrown("Cannot cache non-AudioBuffer asset: "+B.string(c)+" as AudioBuffer");this.audio.h[a]=c;break;default:throw u.thrown(b+" assets are not cachable");}},clear:function(a){if(null==a)this.audio=new da,this.font=new da,this.image=new da;else{var b=this.audio.h;
b=Object.keys(b);for(var c=b.length,d=0;d<c;){var e=b[d++];if(ia.startsWith(e,a)){var f=this.audio;Object.prototype.hasOwnProperty.call(f.h,e)&&delete f.h[e]}}b=this.font.h;b=Object.keys(b);c=b.length;for(d=0;d<c;)e=b[d++],ia.startsWith(e,a)&&(f=this.font,Object.prototype.hasOwnProperty.call(f.h,e)&&delete f.h[e]);b=this.image.h;b=Object.keys(b);c=b.length;for(d=0;d<c;)e=b[d++],ia.startsWith(e,a)&&(f=this.image,Object.prototype.hasOwnProperty.call(f.h,e)&&delete f.h[e])}},__class__:dt};var Vb=function(){this.types=
new da;this.sizes=new da;this.preload=new da;this.paths=new da;this.pathGroups=new da;this.classTypes=new da;this.cachedText=new da;this.cachedImages=new da;this.cachedFonts=new da;this.cachedBytes=new da;this.cachedAudioBuffers=new da;this.onChange=new Ad;this.bytesTotal=this.bytesLoaded=0};g["lime.utils.AssetLibrary"]=Vb;Vb.__name__="lime.utils.AssetLibrary";Vb.fromBytes=function(a,b){return Vb.fromManifest(Dc.fromBytes(a,b))};Vb.fromFile=function(a,b){return Vb.fromManifest(Dc.fromFile(a,b))};
Vb.fromBundle=function(a){if(Object.prototype.hasOwnProperty.call(a.data.h,"library.json")){var b=Dc.fromBytes(a.data.h["library.json"]);if(null!=b){if(null==b.libraryType)var c=new Vb;else if(c=g[b.libraryType],null!=c)c=wb.createInstance(c,b.libraryArgs);else return Ea.warn("Could not find library type: "+b.libraryType,{fileName:"lime/utils/AssetLibrary.hx",lineNumber:122,className:"lime.utils.AssetLibrary",methodName:"fromBundle"}),null;c.__fromBundle(a,b);return c}}else return c=new Vb,c.__fromBundle(a),
c;return null};Vb.fromManifest=function(a){if(null==a)return null;if(null==a.libraryType)var b=new Vb;else if(b=g[a.libraryType],null!=b)b=wb.createInstance(b,a.libraryArgs);else return Ea.warn("Could not find library type: "+a.libraryType,{fileName:"lime/utils/AssetLibrary.hx",lineNumber:160,className:"lime.utils.AssetLibrary",methodName:"fromManifest"}),null;b.__fromManifest(a);return b};Vb.loadFromBytes=function(a,b){return Dc.loadFromBytes(a,b).then(function(a){return Vb.loadFromManifest(a)})};
Vb.loadFromFile=function(a,b){return Dc.loadFromFile(a,b).then(function(a){return Vb.loadFromManifest(a)})};Vb.loadFromManifest=function(a){a=Vb.fromManifest(a);return null!=a?a.load():Ja.withError("Could not load asset manifest")};Vb.prototype={onChange:null,assetsLoaded:null,assetsTotal:null,bytesLoaded:null,bytesLoadedCache:null,bytesTotal:null,cachedAudioBuffers:null,cachedBytes:null,cachedFonts:null,cachedImages:null,cachedText:null,classTypes:null,loaded:null,pathGroups:null,paths:null,preload:null,
promise:null,sizes:null,types:null,exists:function(a,b){b=null!=b?N.__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 u.thrown("Not sure how to get template: "+a);case "TEXT":return this.getText(a);
default:throw u.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)?vc.fromBytes(N.__cast(wb.createInstance(this.classTypes.h[a],[]),Qa)):vc.fromFile(this.paths.h[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=Sd.ofString(this.cachedText.h[a]);return this.cachedBytes.h[a]=b}return Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?N.__cast(wb.createInstance(this.classTypes.h[a],[]),Qa):Sd.fromFile(this.paths.h[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)?N.__cast(wb.createInstance(this.classTypes.h[a],[]),U):U.fromFile(this.paths.h[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)?N.__cast(wb.createInstance(this.classTypes.h[a],[]),Lb):Lb.fromFile(this.paths.h[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=null!=b?N.__cast(b,String):null;if(null==b)return Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a)?!0:Object.prototype.hasOwnProperty.call(this.cachedText.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)}},list:function(a){for(var b=null!=a?N.__cast(a,String):null,c=[],d=Object.keys(this.types.h),e=d.length,f=0;f<e;){var h=d[f++];(null==b||this.exists(h,a))&&c.push(h)}return c},loadAsset:function(a,b){switch(b){case "BINARY":return this.loadBytes(a);case "FONT":return this.loadFont(a);case "IMAGE":return this.loadImage(a);case "MUSIC":case "SOUND":return this.loadAudioBuffer(a);
case "TEMPLATE":throw u.thrown("Not sure how to load template: "+a);case "TEXT":return this.loadText(a);default:throw u.thrown("Unknown asset type: "+b);}},load:function(){if(this.loaded)return Ja.withValue(this);if(null==this.promise){this.promise=new nd;this.bytesLoadedCache=new da;this.assetsLoaded=0;this.assetsTotal=1;for(var a=Object.keys(this.preload.h),b=a.length,c=0;c<b;){var d=a[c++];if(this.preload.h[d]){Ea.verbose("Preloading asset: "+d+" ["+this.types.h[d]+"]",{fileName:"lime/utils/AssetLibrary.hx",
lineNumber:405,className:"lime.utils.AssetLibrary",methodName:"load"});var e=this.types.h[d];if(null!=e)switch(e){case "BINARY":this.assetsTotal++;e=this.loadBytes(d);e.onProgress(function(a,b){return function(c,d){b[0].load_onProgress(a[0],c,d)}}([d],[this]));e.onError(function(a,b){return function(c){b[0].load_onError(a[0],c)}}([d],[this]));e.onComplete(function(a,b){return function(c){b[0].loadBytes_onComplete(a[0],c)}}([d],[this]));break;case "FONT":this.assetsTotal++;e=this.loadFont(d);e.onProgress(function(a,
b){return function(c,d){b[0].load_onProgress(a[0],c,d)}}([d],[this]));e.onError(function(a,b){return function(c){b[0].load_onError(a[0],c)}}([d],[this]));e.onComplete(function(a,b){return function(c){b[0].loadFont_onComplete(a[0],c)}}([d],[this]));break;case "IMAGE":this.assetsTotal++;e=this.loadImage(d);e.onProgress(function(a,b){return function(c,d){b[0].load_onProgress(a[0],c,d)}}([d],[this]));e.onError(function(a,b){return function(c){b[0].load_onError(a[0],c)}}([d],[this]));e.onComplete(function(a,
b){return function(c){b[0].loadImage_onComplete(a[0],c)}}([d],[this]));break;case "MUSIC":case "SOUND":this.assetsTotal++;e=this.loadAudioBuffer(d);e.onProgress(function(a,b){return function(c,d){b[0].load_onProgress(a[0],c,d)}}([d],[this]));e.onError(function(a,b){return function(c){b[0].loadAudioBuffer_onError(a[0],c)}}([d],[this]));e.onComplete(function(a,b){return function(c){b[0].loadAudioBuffer_onComplete(a[0],c)}}([d],[this]));break;case "TEXT":this.assetsTotal++,e=this.loadText(d),e.onProgress(function(a,
b){return function(c,d){b[0].load_onProgress(a[0],c,d)}}([d],[this])),e.onError(function(a,b){return function(c){b[0].load_onError(a[0],c)}}([d],[this])),e.onComplete(function(a,b){return function(c){b[0].loadText_onComplete(a[0],c)}}([d],[this]))}}}this.__assetLoaded(null)}return this.promise.future},loadAudioBuffer:function(a){return Object.prototype.hasOwnProperty.call(this.cachedAudioBuffers.h,a)?Ja.withValue(this.cachedAudioBuffers.h[a]):Object.prototype.hasOwnProperty.call(this.classTypes.h,
a)?Ja.withValue(vc.fromBytes(N.__cast(wb.createInstance(this.classTypes.h[a],[]),Qa))):Object.prototype.hasOwnProperty.call(this.pathGroups.h,a)?vc.loadFromFiles(this.pathGroups.h[a]):vc.loadFromFile(this.paths.h[a])},loadBytes:function(a){return Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a)?Ja.withValue(this.cachedBytes.h[a]):Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?Ja.withValue(wb.createInstance(this.classTypes.h[a],[])):Sd.loadFromFile(this.paths.h[a])},loadFont:function(a){return Object.prototype.hasOwnProperty.call(this.cachedFonts.h,
a)?Ja.withValue(this.cachedFonts.h[a]):Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?(a=wb.createInstance(this.classTypes.h[a],[]),a.__loadFromName(a.name)):U.loadFromName(this.paths.h[a])},loadImage:function(a){var b=this;return Object.prototype.hasOwnProperty.call(this.cachedImages.h,a)?Ja.withValue(this.cachedImages.h[a]):Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?Ja.withValue(wb.createInstance(this.classTypes.h[a],[])):Object.prototype.hasOwnProperty.call(this.cachedBytes.h,
a)?Lb.loadFromBytes(this.cachedBytes.h[a]).then(function(c){var d=b.cachedBytes;Object.prototype.hasOwnProperty.call(d.h,a)&&delete d.h[a];b.cachedImages.h[a]=c;return Ja.withValue(c)}):Lb.loadFromFile(this.paths.h[a])},loadText:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedText.h,a))return Ja.withValue(this.cachedText.h[a]);if(Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a)||Object.prototype.hasOwnProperty.call(this.classTypes.h,a)){var b=this.getBytes(a);if(null==b)return Ja.withValue(null);
b=b.getString(0,b.length);this.cachedText.h[a]=b;return Ja.withValue(b)}return(new Om).load(this.paths.h[a])},unload:function(){},__assetLoaded:function(a){this.assetsLoaded++;null!=a&&Ea.verbose("Loaded asset: "+a+" ["+this.types.h[a]+"] ("+(this.assetsLoaded-1)+"/"+(this.assetsTotal-1)+")",{fileName:"lime/utils/AssetLibrary.hx",lineNumber:619,className:"lime.utils.AssetLibrary",methodName:"__assetLoaded"});if(null!=a){var b=Object.prototype.hasOwnProperty.call(this.sizes.h,a)?this.sizes.h[a]:0;
if(Object.prototype.hasOwnProperty.call(this.bytesLoadedCache.h,a)){var c=this.bytesLoadedCache.h[a];c<b&&(this.bytesLoaded+=b-c)}else this.bytesLoaded+=b;this.bytesLoadedCache.h[a]=b}this.assetsLoaded<this.assetsTotal?this.promise.progress(this.bytesLoaded,this.bytesTotal):(this.loaded=!0,this.promise.progress(this.bytesTotal,this.bytesTotal),this.promise.complete(this))},__cacheBreak:function(a){return oa.__cacheBreak(a)},__fromBundle:function(a,b){if(null!=b){var c=0;for(b=b.assets;c<b.length;){var d=
b[c];++c;var e=Object.prototype.hasOwnProperty.call(d,"id")?d.id:d.path;var f=a.data.h[d.path];if(Object.prototype.hasOwnProperty.call(d,"type")){var h=d.type;"TEXT"==h?this.cachedText.h[e]=null!=f?B.string(f):null:this.cachedBytes.h[e]=f;this.types.h[e]=d.type}else this.cachedBytes.h[e]=f,this.types.h[e]="BINARY"}}else for(c=0,b=a.paths;c<b.length;)e=b[c],++c,this.cachedBytes.h[e]=a.data.h[e],this.types.h[e]="BINARY"},__fromManifest:function(a){var b=2<=a.version,c=a.rootPath;null==c&&(c="");""!=
c&&(c+="/");for(var d=0,e=a.assets;d<e.length;){var f=e[d];++d;var h=b&&Object.prototype.hasOwnProperty.call(f,"size")?f.size:100;var l=Object.prototype.hasOwnProperty.call(f,"id")?f.id:f.path;if(Object.prototype.hasOwnProperty.call(f,"path")){var m=this.paths;var k=this.__cacheBreak(this.__resolvePath(c+B.string(J.field(f,"path"))));m.h[l]=k}if(Object.prototype.hasOwnProperty.call(f,"pathGroup")){m=J.field(f,"pathGroup");k=0;for(var q=m.length;k<q;){var n=k++;m[n]=this.__cacheBreak(this.__resolvePath(c+
m[n]))}this.pathGroups.h[l]=m}this.sizes.h[l]=h;this.types.h[l]=f.type;Object.prototype.hasOwnProperty.call(f,"preload")&&(this.preload.h[l]=J.field(f,"preload"));Object.prototype.hasOwnProperty.call(f,"className")&&(h=J.field(f,"className"),h=g[h],this.classTypes.h[l]=h)}d=this.bytesTotal=0;for(e=a.assets;d<e.length;)f=e[d],++d,l=Object.prototype.hasOwnProperty.call(f,"id")?f.id:f.path,Object.prototype.hasOwnProperty.call(this.preload.h,l)&&this.preload.h[l]&&Object.prototype.hasOwnProperty.call(this.sizes.h,
l)&&(this.bytesTotal+=this.sizes.h[l])},__resolvePath:function(a){a=ia.replace(a,"\\","/");var b=a.indexOf(":");ia.startsWith(a,"http")&&0<b?(b+=3,a=G.substr(a,0,b)+ia.replace(G.substr(a,b,null),"//","/")):a=ia.replace(a,"//","/");if(-1<a.indexOf("./")){a=a.split("/");b=[];for(var c=0,d=a.length;c<d;){var e=c++;".."==a[e]?0==e||".."==b[e-1]?b.push(".."):b.pop():"."==a[e]?0==e&&b.push("."):b.push(a[e])}a=b.join("/")}return a},loadAudioBuffer_onComplete:function(a,b){this.cachedAudioBuffers.h[a]=b;
if(Object.prototype.hasOwnProperty.call(this.pathGroups.h,a))for(var c=this.pathGroups.h[a],d=Object.keys(this.pathGroups.h),e=d.length,f=0;f<e;){var h=d[f++];if(h!=a)for(var l=0;l<c.length;){var m=c[l];++l;if(-1<this.pathGroups.h[h].indexOf(m)){this.cachedAudioBuffers.h[h]=b;break}}}this.__assetLoaded(a)},loadAudioBuffer_onError:function(a,b){null!=b&&""!=b?Ea.warn('Could not load "'+a+'": '+B.string(b),{fileName:"lime/utils/AssetLibrary.hx",lineNumber:865,className:"lime.utils.AssetLibrary",methodName:"loadAudioBuffer_onError"}):
Ea.warn('Could not load "'+a+'"',{fileName:"lime/utils/AssetLibrary.hx",lineNumber:869,className:"lime.utils.AssetLibrary",methodName:"loadAudioBuffer_onError"});this.loadAudioBuffer_onComplete(a,new vc)},loadBytes_onComplete:function(a,b){this.cachedBytes.h[a]=b;this.__assetLoaded(a)},loadFont_onComplete:function(a,b){this.cachedFonts.h[a]=b;this.__assetLoaded(a)},loadImage_onComplete:function(a,b){this.cachedImages.h[a]=b;this.__assetLoaded(a)},loadText_onComplete:function(a,b){this.cachedText.h[a]=
b;this.__assetLoaded(a)},load_onError:function(a,b){null!=b&&""!=b?this.promise.error('Error loading asset "'+a+'": '+B.string(b)):this.promise.error('Error loading asset "'+a+'"')},load_onProgress:function(a,b,c){if(0<b){var d=this.sizes.h[a];0<c?(b/=c,1<b&&(b=1),b=Math.floor(b*d)):b>d&&(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__:Vb};var Dc=function(){this.assets=[];this.libraryArgs=[];this.version=2};g["lime.utils.AssetManifest"]=Dc;Dc.__name__="lime.utils.AssetManifest";Dc.fromBytes=function(a,b){return null!=a?Dc.parse(a.getString(0,a.length),b):null};Dc.fromFile=function(a,b){a=Dc.__resolvePath(a);b=Dc.__resolveRootPath(b,a);return null==a?null:Dc.fromBytes(Sd.fromFile(a),b)};Dc.loadFromBytes=function(a,b){return Ja.withValue(Dc.fromBytes(a,b))};Dc.loadFromFile=function(a,b){a=Dc.__resolvePath(a);
b=Dc.__resolveRootPath(b,a);return null==a?null:Sd.loadFromFile(a).then(function(a){return Ja.withValue(Dc.fromBytes(a,b))})};Dc.parse=function(a,b){if(null==a||""==a)return null;a=JSON.parse(a);var c=new Dc;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=je.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};Dc.__resolvePath=function(a){if(null==a)return null;var b=a.indexOf("?");var c=-1<b?G.substr(a,0,b):a;for(c=ia.replace(c,"\\","/");ia.endsWith(c,"/");)c=G.substr(c,0,c.length-1);return ia.endsWith(c,".bundle")?-1<b?c+"/library.json"+
G.substr(a,b,null):c+"/library.json":a};Dc.__resolveRootPath=function(a,b){if(null!=a)return a;a=b.indexOf("?");a=-1<a?G.substr(b,0,a):b;for(a=ia.replace(a,"\\","/");ia.endsWith(a,"/");){if("/"==a)return a;a=G.substr(a,0,a.length-1)}return ia.endsWith(a,".bundle")?a:Qi.directory(a)};Dc.prototype={assets:null,libraryArgs:null,libraryType:null,name:null,rootPath:null,version:null,serialize:function(){var a={};a.version=this.version;a.libraryType=this.libraryType;a.libraryArgs=this.libraryArgs;a.name=
this.name;a.assets=Yd.run(this.assets);a.rootPath=this.rootPath;return JSON.stringify(a)},__class__:Dc};var oa=function(){};g["lime.utils.Assets"]=oa;oa.__name__="lime.utils.Assets";oa.exists=function(a,b){null==b&&(b="BINARY");var c=a.indexOf(":"),d=a.substring(0,c);a=a.substring(c+1);d=oa.getLibrary(d);return null!=d?d.exists(a,b):!1};oa.getAsset=function(a,b,c){if(c&&oa.cache.enabled)switch(b){case "FONT":var d=oa.cache.font.h[a];if(null!=d)return d;break;case "IMAGE":d=oa.cache.image.h[a];if(oa.isValidImage(d))return d;
break;case "MUSIC":case "SOUND":d=oa.cache.audio.h[a];if(oa.isValidAudio(d))return d;break;case "TEMPLATE":throw u.thrown("Not sure how to get template: "+a);case "BINARY":case "TEXT":c=!1;break;default:return null}var e=a.indexOf(":");d=a.substring(0,e);e=a.substring(e+1);var f=oa.getLibrary(d);if(null!=f)if(f.exists(e,b)){if(f.isLocal(e,b))return d=f.getAsset(e,b),c&&oa.cache.enabled&&oa.cache.set(a,b,d),d;Ea.error(b+' asset "'+a+'" exists, but only asynchronously',{fileName:"lime/utils/Assets.hx",
lineNumber:133,className:"lime.utils.Assets",methodName:"getAsset"})}else Ea.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 Ea.error(oa.__libraryNotFound(d),{fileName:"lime/utils/Assets.hx",lineNumber:143,className:"lime.utils.Assets",methodName:"getAsset"});return null};oa.getAudioBuffer=function(a,b){null==b&&(b=!0);return oa.getAsset(a,"SOUND",b)};oa.getBytes=function(a){return oa.getAsset(a,
"BINARY",!1)};oa.getFont=function(a,b){null==b&&(b=!0);return oa.getAsset(a,"FONT",b)};oa.getImage=function(a,b){null==b&&(b=!0);return oa.getAsset(a,"IMAGE",b)};oa.getLibrary=function(a){if(null==a||""==a)a="default";return oa.libraries.h[a]};oa.getPath=function(a){var b=a.indexOf(":"),c=a.substring(0,b);b=a.substring(b+1);var d=oa.getLibrary(c);if(null!=d){if(d.exists(b,null))return d.getPath(b);Ea.error('There is no asset with an ID of "'+a+'"',{fileName:"lime/utils/Assets.hx",lineNumber:224,className:"lime.utils.Assets",
methodName:"getPath"})}else Ea.error(oa.__libraryNotFound(c),{fileName:"lime/utils/Assets.hx",lineNumber:229,className:"lime.utils.Assets",methodName:"getPath"});return null};oa.getText=function(a){return oa.getAsset(a,"TEXT",!1)};oa.hasLibrary=function(a){if(null==a||""==a)a="default";return Object.prototype.hasOwnProperty.call(oa.libraries.h,a)};oa.isLocal=function(a,b,c){null==c&&(c=!0);if(c&&oa.cache.enabled&&oa.cache.exists(a,b))return!0;var d=a.indexOf(":");c=a.substring(0,d);a=a.substring(d+
1);c=oa.getLibrary(c);return null!=c?c.isLocal(a,b):!1};oa.isValidAudio=function(a){return null!=a};oa.isValidImage=function(a){return null!=a?null!=a.buffer:!1};oa.list=function(a){for(var b=[],c=oa.libraries.h,d=Object.keys(c),e=d.length,f=0;f<e;){var h=c[d[f++]].list(a);null!=h&&(b=b.concat(h))}return b};oa.loadAsset=function(a,b,c){if(c&&oa.cache.enabled)switch(b){case "FONT":var d=oa.cache.font.h[a];if(null!=d)return Ja.withValue(d);break;case "IMAGE":d=oa.cache.image.h[a];if(oa.isValidImage(d))return Ja.withValue(d);
break;case "MUSIC":case "SOUND":d=oa.cache.audio.h[a];if(oa.isValidAudio(d))return Ja.withValue(d);break;case "TEMPLATE":throw u.thrown("Not sure how to get template: "+a);case "BINARY":case "TEXT":c=!1;break;default:return null}var e=a.indexOf(":");d=a.substring(0,e);e=a.substring(e+1);var f=oa.getLibrary(d);if(null!=f){if(f.exists(e,b)){d=f.loadAsset(e,b);if(c&&oa.cache.enabled)d.onComplete(function(c){oa.cache.set(a,b,c)});return d}return Ja.withError("There is no "+b+' asset with an ID of "'+
a+'"')}return Ja.withError(oa.__libraryNotFound(d))};oa.loadAudioBuffer=function(a,b){null==b&&(b=!0);return oa.loadAsset(a,"SOUND",b)};oa.loadBytes=function(a){return oa.loadAsset(a,"BINARY",!1)};oa.loadFont=function(a,b){null==b&&(b=!0);return oa.loadAsset(a,"FONT",b)};oa.loadImage=function(a,b){null==b&&(b=!0);return oa.loadAsset(a,"IMAGE",b)};oa.loadLibrary=function(a){var b=new nd,c=oa.getLibrary(a);if(null!=c)return c.load();c=a;var d=null;if(Object.prototype.hasOwnProperty.call(oa.bundlePaths.h,
a))ng.loadFromFile(oa.bundlePaths.h[a]).onComplete(function(c){null==c?b.error('Cannot load bundle for library "'+a+'"'):(c=Vb.fromBundle(c),null==c?b.error('Cannot open library "'+a+'"'):(oa.libraries.h[a]=c,c.onChange.add((x=oa.onChange,k(x,x.dispatch))),b.completeWith(c.load())))}).onError(function(c){b.error('There is no asset library with an ID of "'+a+'"')});else Object.prototype.hasOwnProperty.call(oa.libraryPaths.h,a)?(c=oa.libraryPaths.h[a],d=Qi.directory(c)):(ia.endsWith(c,".bundle")?(d=
c,c+="/library.json"):d=Qi.directory(c),c=oa.__cacheBreak(c)),Dc.loadFromFile(c,d).onComplete(function(c){null==c?b.error('Cannot parse asset manifest for library "'+a+'"'):(c=Vb.fromManifest(c),null==c?b.error('Cannot open library "'+a+'"'):(oa.libraries.h[a]=c,c.onChange.add((x=oa.onChange,k(x,x.dispatch))),b.completeWith(c.load())))}).onError(function(c){b.error('There is no asset library with an ID of "'+a+'"')});return b.future};oa.loadText=function(a){return oa.loadAsset(a,"TEXT",!1)};oa.registerLibrary=
function(a,b){if(Object.prototype.hasOwnProperty.call(oa.libraries.h,a)){if(oa.libraries.h[a]==b)return;oa.unloadLibrary(a)}null!=b&&b.onChange.add(oa.library_onChange);oa.libraries.h[a]=b};oa.unloadLibrary=function(a){if(null==a||""==a)a="default";var b=oa.libraries.h[a];null!=b&&(oa.cache.clear(a+":"),b.onChange.remove(oa.library_onChange),b.unload());b=oa.libraries;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a]};oa.__cacheBreak=function(a){0<oa.cache.version&&(a=-1<a.indexOf("?")?a+
("&"+oa.cache.version):a+("?"+oa.cache.version));return a};oa.__libraryNotFound=function(a){if(null==a||""==a)a="default";return null==nc.current||null==nc.current.__preloader||nc.current.__preloader.complete?'There is no asset library named "'+a+'"':'There is no asset library named "'+a+'", or it is not yet preloaded'};oa.library_onChange=function(){oa.cache.clear();oa.onChange.dispatch()};var qu=function(a){var b=a.indexOf(":");this.libraryName=a.substring(0,b);this.symbolName=a.substring(b+1);
this.library=oa.getLibrary(this.libraryName)};g["lime.utils._Assets.LibrarySymbol"]=qu;qu.__name__="lime.utils._Assets.LibrarySymbol";qu.prototype={library:null,libraryName:null,symbolName:null,isLocal:function(a){return this.library.isLocal(this.symbolName,a)},exists:function(a){return this.library.exists(this.symbolName,a)},__class__:qu};var Xu={_new:function(a,b){null==b&&(b=0);return new og(a,b)},set:function(a,b,c,d,e){null!=d&&(b=Qa.ofData(d));null!=b||null==c?(a.bytes=b,a.offset=null!=e?e:
0):(a.bytes=Qa.ofData(c.buffer),a.offset=null!=e?c.byteOffset+e:c.byteOffset)},__arrayGet:function(a,b){return null!=a.bytes?a.bytes.b[b+a.offset]:0},__arraySet:function(a,b,c){null==a.bytes&&(a.bytes.b[b+a.offset]=c&255);return c},fromArrayBufferView:function(a){return null==a?null:new og(Qa.ofData(a.buffer),a.byteOffset)},fromArrayBuffer:function(a){return null==a?null:new og(Qa.ofData(a),0)},fromBytes:function(a){return new og(a,0)},fromBytesData:function(a){return null==a?new og(null,0):new og(Qa.ofData(a),
0)},fromFile:function(a){return new og(Sd.fromFile(a),0)},fromLimeBytes:function(a){return new og(a,0)},toUInt8Array:function(a){var b=a.bytes.b.bufferValue;a=a.offset/8|0;null==a&&(a=0);return null!=b?new Uint8Array(b,a):null},toUInt8ClampedArray:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/8|0;null==a&&(a=0);return null!=b?new Uint8ClampedArray(b,a):null},toInt8Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/
8|0;null==a&&(a=0);return null!=b?new Int8Array(b,a):null},toUInt16Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/16|0;null==a&&(a=0);return null!=b?new Uint16Array(b,a):null},toInt16Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/16|0;null==a&&(a=0);return null!=b?new Int16Array(b,a):null},toUInt32Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/32|0;null==
a&&(a=0);return null!=b?new Uint32Array(b,a):null},toInt32Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/32|0;null==a&&(a=0);return null!=b?new Int32Array(b,a):null},toFloat32Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/32|0;null==a&&(a=0);return null!=b?new Float32Array(b,a):null},toFloat64Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/64|0;null==a&&(a=
0);return null!=b?new Float64Array(b,a):null}},og=function(a,b){this.bytes=a;this.offset=b};g["lime.utils.BytePointerData"]=og;og.__name__="lime.utils.BytePointerData";og.prototype={bytes:null,offset:null,__class__:og};var Sd={_new:function(a,b){return new Qa(b)},alloc:function(a){return new Qa(new ArrayBuffer(a))},compress:function(a,b){switch(b._hx_index){case 0:return zp.compress(a);case 1:return Ap.compress(a);case 2:return Cp.compress(a);case 3:return Dp.compress(a)}},decompress:function(a,b){switch(b._hx_index){case 0:return zp.decompress(a);
case 1:return Ap.decompress(a);case 2:return Cp.decompress(a);case 3:return Dp.decompress(a)}},fastGet:function(a,b){return a.bytes[b]},fromBytes:function(a){return null==a?null:Sd._new(a.length,a.b.bufferValue)},fromFile:function(a){return null},loadFromBytes:function(a){return Ja.withValue(Sd.fromBytes(a))},loadFromFile:function(a){return(new Lp).load(a)},ofData:function(a){a=Qa.ofData(a);return Sd._new(a.length,a.b.bufferValue)},ofString:function(a){a=Qa.ofString(a);return Sd._new(a.length,a.b.bufferValue)}},
Ve=P["lime.utils.CompressionAlgorithm"]={__ename__:"lime.utils.CompressionAlgorithm",__constructs__:null,DEFLATE:{_hx_name:"DEFLATE",_hx_index:0,__enum__:"lime.utils.CompressionAlgorithm",toString:v},GZIP:{_hx_name:"GZIP",_hx_index:1,__enum__:"lime.utils.CompressionAlgorithm",toString:v},LZMA:{_hx_name:"LZMA",_hx_index:2,__enum__:"lime.utils.CompressionAlgorithm",toString:v},ZLIB:{_hx_name:"ZLIB",_hx_index:3,__enum__:"lime.utils.CompressionAlgorithm",toString:v}};Ve.__constructs__=[Ve.DEFLATE,Ve.GZIP,
Ve.LZMA,Ve.ZLIB];Ve.__empty_constructs__=[Ve.DEFLATE,Ve.GZIP,Ve.LZMA,Ve.ZLIB];var lf={_new:function(a){return a},fromFloat:function(a){return a},fromBytesPointer:function(a){return lf.fromFloat(0)},fromArrayBufferView:function(a){return lf.fromFloat(0)},fromArrayBuffer:function(a){return lf.fromFloat(0)},fromBytes:function(a){return lf.fromFloat(0)},fromBytesData:function(a){return lf.fromFloat(0)},fromLimeBytes:function(a){return lf.fromBytes(a)},fromCFFIPointer:function(a){return lf.fromFloat(0)},
fromFile:function(a){return lf.fromFloat(0)},__withOffset:function(a,b){return lf.fromFloat(0)},equals:function(a,b){return a==b},equalsPointer:function(a,b){return a==b},greaterThan:function(a,b){return a>b},greaterThanPointer:function(a,b){return kd.get(a)>kd.get(b)},greaterThanOrEqual:function(a,b){return a>=b},greaterThanOrEqualPointer:function(a,b){return kd.get(a)>=kd.get(b)},lessThan:function(a,b){return a<b},lessThanPointer:function(a,b){return kd.get(a)<kd.get(b)},lessThanOrEqual:function(a,
b){return a<=b},lessThanOrEqualPointer:function(a,b){return kd.get(a)<=kd.get(b)},notEquals:function(a,b){return a!=b},notEqualsPointer:function(a,b){return a!=b},plus:function(a,b){return lf.__withOffset(a,b)},plusPointer:function(a,b){return lf.__withOffset(a,b|0)},minus:function(a,b){return lf.__withOffset(a,-b)},minusPointer:function(a,b){return lf.__withOffset(a,-(b|0))}},Rh={toArrayBufferView:function(a){return a},fromBytes:function(a,b,c){null==b&&(b=0);return null==b?new Float32Array(a.b.bufferValue):
null==c?new Float32Array(a.b.bufferValue,b):new Float32Array(a.b.bufferValue,b,c)},toBytes:function(a){return new Qa(new Uint8Array(a.buffer))},toString:function(a){return null!=a?"Float32Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null}},Ea=function(){};g["lime.utils.Log"]=Ea;Ea.__name__="lime.utils.Log";Ea.debug=function(a,b){4<=Ea.level&&console.debug("["+b.className+"] "+B.string(a))};Ea.error=function(a,b){if(1<=Ea.level){a="["+b.className+"] ERROR: "+B.string(a);if(Ea.throwErrors)throw u.thrown(a);
console.error(a)}};Ea.info=function(a,b){3<=Ea.level&&console.info("["+b.className+"] "+B.string(a))};Ea.print=function(a){console.log(a)};Ea.println=function(a){console.log(a)};Ea.verbose=function(a,b){5<=Ea.level&&(a="["+b.className+"] "+B.string(a),console.log(a))};Ea.warn=function(a,b){2<=Ea.level&&console.warn("["+b.className+"] WARNING: "+B.string(a))};var ts=function(){this.bytesTotalCache=new da;this.bytesLoadedCache2=new da;this.bytesLoadedCache=new ea;this.onProgress=new Ep;this.onComplete=
new Ad;this.bytesTotal=this.bytesLoaded=0;this.libraries=[];this.libraryNames=[];this.onProgress.add(k(this,this.update))};g["lime.utils.Preloader"]=ts;ts.__name__="lime.utils.Preloader";ts.prototype={complete:null,onComplete:null,onProgress:null,bytesLoaded:null,bytesLoadedCache:null,bytesLoadedCache2:null,bytesTotal:null,bytesTotalCache:null,initLibraryNames:null,libraries:null,libraryNames:null,loadedLibraries:null,loadedStage:null,preloadComplete:null,preloadStarted:null,simulateProgress:null,
addLibrary:function(a){this.libraries.push(a)},addLibraryName:function(a){-1==this.libraryNames.indexOf(a)&&this.libraryNames.push(a)},load:function(){for(var a=this,b=0,c=this.libraries;b<c.length;){var d=c[b];++b;this.bytesTotal+=d.bytesTotal}this.loadedLibraries=-1;this.preloadStarted=!1;b=0;for(c=this.libraries;b<c.length;)d=[c[b]],++b,Ea.verbose("Preloading asset library",{fileName:"lime/utils/Preloader.hx",lineNumber:144,className:"lime.utils.Preloader",methodName:"load"}),d[0].load().onProgress(function(b){return function(c,
d){a.bytesLoaded=null==a.bytesLoadedCache.h.__keys__[b[0].__id__]?a.bytesLoaded+c:a.bytesLoaded+(c-a.bytesLoadedCache.h[b[0].__id__]);a.bytesLoadedCache.set(b[0],c);a.simulateProgress||a.onProgress.dispatch(a.bytesLoaded,a.bytesTotal)}}(d)).onComplete(function(b){return function(c){a.bytesLoaded=null==a.bytesLoadedCache.h.__keys__[b[0].__id__]?a.bytesLoaded+b[0].bytesTotal:a.bytesLoaded+(b[0].bytesTotal-a.bytesLoadedCache.h[b[0].__id__]);a.loadedAssetLibrary()}}(d)).onError(function(){return function(a){Ea.error(a,
{fileName:"lime/utils/Preloader.hx",lineNumber:180,className:"lime.utils.Preloader",methodName:"load"})}}());b=0;for(c=this.libraryNames;b<c.length;)++b,this.bytesTotal+=200;this.loadedLibraries++;this.preloadStarted=!0;this.updateProgress()},loadedAssetLibrary:function(a){this.loadedLibraries++;var b=this.loadedLibraries;this.preloadStarted||++b;var c=this.libraries.length+this.libraryNames.length;null!=a?Ea.verbose("Loaded asset library: "+a+" ["+b+"/"+c+"]",{fileName:"lime/utils/Preloader.hx",
lineNumber:209,className:"lime.utils.Preloader",methodName:"loadedAssetLibrary"}):Ea.verbose("Loaded asset library ["+b+"/"+c+"]",{fileName:"lime/utils/Preloader.hx",lineNumber:213,className:"lime.utils.Preloader",methodName:"loadedAssetLibrary"});this.updateProgress()},start:function(){this.complete||this.simulateProgress||!this.preloadComplete||(this.complete=!0,this.onComplete.dispatch())},update:function(a,b){},updateProgress:function(){var a=this;this.simulateProgress||this.onProgress.dispatch(this.bytesLoaded,
this.bytesTotal);if(this.loadedLibraries==this.libraries.length&&!this.initLibraryNames){this.initLibraryNames=!0;for(var b=0,c=this.libraryNames;b<c.length;){var d=[c[b]];++b;Ea.verbose("Preloading asset library: "+d[0],{fileName:"lime/utils/Preloader.hx",lineNumber:252,className:"lime.utils.Preloader",methodName:"updateProgress"});oa.loadLibrary(d[0]).onProgress(function(b){return function(c,d){0<d&&(Object.prototype.hasOwnProperty.call(a.bytesTotalCache.h,b[0])||(a.bytesTotalCache.h[b[0]]=d,a.bytesTotal+=
d-200),c>d&&(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){Ea.error(a,{fileName:"lime/utils/Preloader.hx",lineNumber:306,className:"lime.utils.Preloader",methodName:"updateProgress"})}}())}}this.simulateProgress||this.loadedLibraries!=this.libraries.length+this.libraryNames.length||(this.preloadComplete||(this.preloadComplete=!0,Ea.verbose("Preload complete",{fileName:"lime/utils/Preloader.hx",lineNumber:319,className:"lime.utils.Preloader",methodName:"updateProgress"})),
this.start())},__class__:ts};var Rj=function(){};g["motion.actuators.IGenericActuator"]=Rj;Rj.__name__="motion.actuators.IGenericActuator";Rj.__isInterface__=!0;Rj.prototype={autoVisible:null,delay:null,ease:null,onComplete:null,onRepeat:null,onUpdate:null,reflect:null,repeat:null,reverse:null,smartRotation:null,snapping:null,onPause:null,onResume:null,apply:null,move:null,pause:null,resume:null,stop:null,__class__:Rj};var Vh=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=va.defaultEase};g["motion.actuators.GenericActuator"]=Vh;Vh.__name__="motion.actuators.GenericActuator";Vh.__interfaces__=[Rj];Vh.prototype={duration:null,id:null,properties:null,target:null,_autoVisible:null,_delay:null,_ease:null,_onComplete:null,_onCompleteParams:null,_onRepeat:null,_onRepeatParams:null,_onUpdate:null,_onUpdateParams:null,_onResume:null,_onResumeParams:null,
_onPause:null,_onPauseParams:null,_reflect:null,_repeat:null,_reverse:null,_smartRotation:null,_snapping:null,special:null,apply:function(){for(var a=0,b=J.fields(this.properties);a<b.length;){var c=b[a];++a;Object.prototype.hasOwnProperty.call(this.target,c)?this.target[c]=J.field(this.properties,c):J.setProperty(this.target,c,J.field(this.properties,c))}},autoVisible:function(a){null==a&&(a=!0);this._autoVisible=a;return this},callMethod:function(a,b){null==b&&(b=[]);return a.apply(a,b)},change:function(){if(null!=
this._onUpdate){var a=this._onUpdate,b=this._onUpdateParams;null==b&&(b=[]);a.apply(a,b)}},complete:function(a){null==a&&(a=!0);if(a&&(this.change(),null!=this._onComplete)){a=this._onComplete;var b=this._onCompleteParams;null==b&&(b=[]);a.apply(a,b)}va.unload(this)},delay:function(a){this._delay=a;return this},ease:function(a){this._ease=a;return this},move:function(){},onComplete:function(a,b){this._onComplete=a;this._onCompleteParams=null==b?[]:b;0==this.duration&&this.complete();return this},
onRepeat:function(a,b){this._onRepeat=a;this._onRepeatParams=null==b?[]:b;return this},onUpdate:function(a,b){this._onUpdate=a;this._onUpdateParams=null==b?[]:b;return this},onPause:function(a,b){this._onPause=a;this._onPauseParams=null==b?[]:b;return this},onResume:function(a,b){this._onResume=a;this._onResumeParams=null==b?[]:b;return this},pause:function(){if(null!=this._onPause){var a=this._onPause,b=this._onPauseParams;null==b&&(b=[]);a.apply(a,b)}},reflect:function(a){null==a&&(a=!0);this._reflect=
a;this.special=!0;return this},repeat:function(a){null==a&&(a=-1);this._repeat=a;return this},resume:function(){if(null!=this._onResume){var a=this._onResume,b=this._onResumeParams;null==b&&(b=[]);a.apply(a,b)}},reverse:function(a){null==a&&(a=!0);this._reverse=a;this.special=!0;return this},smartRotation:function(a){null==a&&(a=!0);this._smartRotation=a;this.special=!0;return this},snapping:function(a){null==a&&(a=!0);this._snapping=a;this.special=!0;return this},stop:function(a,b,c){},__class__:Vh};
var sc=function(a,b,c){this.active=!0;this.propertyDetails=[];this.toggleVisible=this.setVisible=this.initialized=this.cacheVisible=this.paused=this.sendChange=!1;this.startTime=Sa.getTimer()/1E3;Vh.call(this,a,b,c);sc.addedEvent||(sc.addedEvent=!0,Sa.get_current().stage.addEventListener("enterFrame",sc.stage_onEnterFrame))};g["motion.actuators.SimpleActuator"]=sc;sc.__name__="motion.actuators.SimpleActuator";sc.stage_onEnterFrame=function(a){a=Sa.getTimer()/1E3;for(var b,c=0,d=0,e=sc.actuatorsLength;d<
e;)d++,b=sc.actuators[c],null!=b&&b.active?(a>=b.timeOffset&&b.update(a),++c):(sc.actuators.splice(c,1),--sc.actuatorsLength)};sc.__super__=Vh;sc.prototype=r(Vh.prototype,{timeOffset:null,active:null,cacheVisible:null,detailsLength:null,initialized:null,paused:null,pauseTime:null,propertyDetails:null,sendChange:null,setVisible:null,startTime:null,toggleVisible:null,apply:function(){Vh.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")?J.field(a,"visible"):J.getProperty(a,"visible");null!=b&&(a=this.target,b=0<J.field(this.properties,"alpha"),!Object.prototype.hasOwnProperty.call(a,"visible")||a.__properties__&&a.__properties__.set_visible?J.setProperty(a,"visible",b):a.visible=b)}},autoVisible:function(a){null==a&&(a=!0);this._autoVisible=a;if(!a&&(this.toggleVisible=!1,this.setVisible)){var b=this.target;a=this.cacheVisible;!Object.prototype.hasOwnProperty.call(b,
"visible")||b.__properties__&&b.__properties__.set_visible?J.setProperty(b,"visible",a):b.visible=a}return this},delay:function(a){this._delay=a;this.timeOffset=this.startTime+a;return this},getField:function(a,b){return Object.prototype.hasOwnProperty.call(a,b)?J.field(a,b):J.getProperty(a,b)},initialize:function(){for(var a,b=0,c=J.fields(this.properties);b<c.length;){var d=c[b];++b;var e=!0;!Object.prototype.hasOwnProperty.call(this.target,d)||this.target.__properties__&&this.target.__properties__["set_"+
d]?(e=!1,a=J.getProperty(this.target,d)):a=J.field(this.target,d);if("number"==typeof a){var f=this.properties;f=Object.prototype.hasOwnProperty.call(f,d)?J.field(f,d):J.getProperty(f,d);null==a&&(a=0);null==f&&(f=0);a=new Tg(this.target,d,a,f-a,e);this.propertyDetails.push(a)}}this.detailsLength=this.propertyDetails.length;this.initialized=!0},move:function(){this.toggleVisible=Object.prototype.hasOwnProperty.call(this.properties,"alpha")&&this.target instanceof ka;if(this.toggleVisible&&0!=this.properties.alpha){var a=
this.target;var b=Object.prototype.hasOwnProperty.call(a,"visible")?J.field(a,"visible"):J.getProperty(a,"visible");a=!b}else a=!1;a&&(this.setVisible=!0,a=this.target,this.cacheVisible=b=Object.prototype.hasOwnProperty.call(a,"visible")?J.field(a,"visible"):J.getProperty(a,"visible"),a=this.target,b=!0,!Object.prototype.hasOwnProperty.call(a,"visible")||a.__properties__&&a.__properties__.set_visible?J.setProperty(a,"visible",b):a.visible=b);this.timeOffset=this.startTime;sc.actuators.push(this);
++sc.actuatorsLength},onUpdate:function(a,b){this._onUpdate=a;this._onUpdateParams=null==b?[]:b;this.sendChange=!0;return this},pause:function(){this.paused||(this.paused=!0,Vh.prototype.pause.call(this),this.pauseTime=Sa.getTimer())},resume:function(){this.paused&&(this.paused=!1,this.timeOffset+=(Sa.getTimer()-this.pauseTime)/1E3,Vh.prototype.resume.call(this))},setField:function(a,b,c){!Object.prototype.hasOwnProperty.call(a,b)||a.__properties__&&a.__properties__["set_"+b]?J.setProperty(a,b,c):
a[b]=c},setProperty:function(a,b){a.isField?a.target[a.propertyName]=b:J.setProperty(a.target,a.propertyName,b)},stop:function(a,b,c){if(this.active)if(null==a)this.active=!1,b&&this.apply(),this.complete(c);else{var d=0;for(a=J.fields(a);d<a.length;){var e=a[d];++d;if(Object.prototype.hasOwnProperty.call(this.properties,e)){this.active=!1;b&&this.apply();this.complete(c);break}}}},update:function(a){if(!this.paused){var b=(a-this.timeOffset)/this.duration;1<b&&(b=1);this.initialized||this.initialize();
if(this.special){var c=this._reverse?this._ease.calculate(1-b):this._ease.calculate(b);f=0;for(h=this.detailsLength;f<h;){var d=f++;d=this.propertyDetails[d];if(!this._smartRotation||"rotation"!=d.propertyName&&"rotationX"!=d.propertyName&&"rotationY"!=d.propertyName&&"rotationZ"!=d.propertyName)var e=d.start+d.change*c;else e=d.change%360,180<e?e-=360:-180>e&&(e+=360),e=d.start+e*c;this._snapping?(e=Math.round(e),d.isField?d.target[d.propertyName]=e:J.setProperty(d.target,d.propertyName,e)):d.isField?
d.target[d.propertyName]=e:J.setProperty(d.target,d.propertyName,e)}}else{c=this._ease.calculate(b);for(var f=0,h=this.detailsLength;f<h;)d=f++,d=this.propertyDetails[d],e=d.start+d.change*c,d.isField?d.target[d.propertyName]=e:J.setProperty(d.target,d.propertyName,e)}if(1==b){if(0==this._repeat){this.active=!1;this.toggleVisible?(a=this.target,e=Object.prototype.hasOwnProperty.call(a,"alpha")?J.field(a,"alpha"):J.getProperty(a,"alpha"),a=0==e):a=!1;a&&(a=this.target,e=!1,!Object.prototype.hasOwnProperty.call(a,
"visible")||a.__properties__&&a.__properties__.set_visible?J.setProperty(a,"visible",e):a.visible=e);this.complete(!0);return}null!=this._onRepeat&&(c=this._onRepeat,b=this._onRepeatParams,null==b&&(b=[]),c.apply(c,b));this._reflect&&(this._reverse=!this._reverse);this.startTime=a;this.timeOffset=this.startTime+this._delay;0<this._repeat&&this._repeat--}this.sendChange&&this.change()}},__class__:sc});var Fe=function(){};g["motion.easing.IEasing"]=Fe;Fe.__name__="motion.easing.IEasing";Fe.__isInterface__=
!0;Fe.prototype={calculate:null,ease:null,__class__:Fe};var Mp=function(){};g["motion.easing._Expo.ExpoEaseIn"]=Mp;Mp.__name__="motion.easing._Expo.ExpoEaseIn";Mp.__interfaces__=[Fe];Mp.prototype={calculate:function(a){return 0==a?0:Math.exp(6.931471805599453*(a-1))},ease:function(a,b,c,d){return 0==a?b:c*Math.exp(6.931471805599453*(a/d-1))+b},__class__:Mp};var Np=function(){};g["motion.easing._Expo.ExpoEaseInOut"]=Np;Np.__name__="motion.easing._Expo.ExpoEaseInOut";Np.__interfaces__=[Fe];Np.prototype=
{calculate:function(a){return 0==a?0:1==a?1:1>(a/=.5)?.5*Math.exp(6.931471805599453*(a-1)):.5*(2-Math.exp(-6.931471805599453*--a))},ease:function(a,b,c,d){return 0==a?b:a==d?b+c:1>(a/=d/2)?c/2*Math.exp(6.931471805599453*(a-1))+b:c/2*(2-Math.exp(-6.931471805599453*--a))+b},__class__:Np};var Op=function(){};g["motion.easing._Expo.ExpoEaseOut"]=Op;Op.__name__="motion.easing._Expo.ExpoEaseOut";Op.__interfaces__=[Fe];Op.prototype={calculate:function(a){return 1==a?1:1-Math.exp(-6.931471805599453*a)},ease:function(a,
b,c,d){return a==d?b+c:c*(1-Math.exp(-6.931471805599453*a/d))+b},__class__:Op};var Pp=function(){};g["motion.easing.Expo"]=Pp;Pp.__name__="motion.easing.Expo";var va=function(){};g["motion.Actuate"]=va;va.__name__="motion.Actuate";va.apply=function(a,b,c){va.stop(a,b);null==c&&(c=va.defaultActuator);a=wb.createInstance(c,[a,0,b]);a.apply();return a};va.effects=function(a,b,c){null==c&&(c=!0);return new et(a,b,c)};va.getLibrary=function(a,b){null==b&&(b=!0);null==va.targetLibraries.h.__keys__[a.__id__]&&
b&&va.targetLibraries.set(a,[]);return va.targetLibraries.h[a.__id__]};va.isActive=function(){for(var a=!1,b=va.targetLibraries.iterator();b.hasNext();){b.next();a=!0;break}return a};va.motionPath=function(a,b,c,d){null==d&&(d=!0);return va.tween(a,b,c,d,Qp)};va.pause=function(a){if(N.__implements(a,Rj))a.pause();else{var b=va.getLibrary(a,!1);if(null!=b)for(var c=0;c<b.length;)a=b[c],++c,a.pause()}};va.pauseAll=function(){for(var a=va.targetLibraries.iterator();a.hasNext();)for(var b=a.next(),c=
0;c<b.length;){var d=b[c];++c;d.pause()}};va.reset=function(){for(var a=va.targetLibraries.iterator();a.hasNext();)for(var b=a.next(),c=b.length-1;0<=c;)b[c].stop(null,!1,!1),--c;va.targetLibraries=new ea};va.resume=function(a){if(N.__implements(a,Rj))a.resume();else{var b=va.getLibrary(a,!1);if(null!=b)for(var c=0;c<b.length;)a=b[c],++c,a.resume()}};va.resumeAll=function(){for(var a=va.targetLibraries.iterator();a.hasNext();)for(var b=a.next(),c=0;c<b.length;){var d=b[c];++c;d.resume()}};va.stop=
function(a,b,c,d){null==d&&(d=!0);null==c&&(c=!1);if(null!=a)if(N.__implements(a,Rj))a.stop(null,c,d);else if(a=va.getLibrary(a,!1),null!=a){if("string"==typeof b){var e={};e[b]=null;b=e}else if(b instanceof Array){e={};var f=0;for(b=N.__cast(b,Array);f<b.length;){var h=b[f];++f;e[h]=null}b=e}for(e=a.length-1;0<=e;)a[e].stop(b,c,d),--e}};va.timer=function(a,b){return va.tween(new Rp(0),a,new Rp(1),!1,b)};va.transform=function(a,b,c){null==c&&(c=!0);null==b&&(b=0);return new ft(a,b,c)};va.tween=function(a,
b,c,d,e){null==d&&(d=!0);if(null!=a){if(0<b){null==e&&(e=va.defaultActuator);a=wb.createInstance(e,[a,b,c]);b=va.getLibrary(a.target);if(d){for(d=b.length-1;0<=d;)b[d].stop(a.properties,!1,!1),--d;b=va.getLibrary(a.target)}b.push(a);a.move();return a}return va.apply(a,c,e)}return null};va.unload=function(a){var b=a.target;null!=va.targetLibraries.h.__keys__[b.__id__]&&(G.remove(va.targetLibraries.h[b.__id__],a),0==va.targetLibraries.h[b.__id__].length&&va.targetLibraries.remove(b))};va.update=function(a,
b,c,d,e){null==e&&(e=!0);return va.tween(a,b,{start:c,end:d},e,Sp)};var et=function(a,b,c){this.target=a;this.duration=b;this.overwrite=c};g["motion._Actuate.EffectsOptions"]=et;et.__name__="motion._Actuate.EffectsOptions";et.prototype={duration:null,overwrite:null,target:null,filter:function(a,b){b.filter=a;return va.tween(this.target,this.duration,b,this.overwrite,Tp)},__class__:et};var ft=function(a,b,c){this.target=a;this.duration=b;this.overwrite=c};g["motion._Actuate.TransformOptions"]=ft;ft.__name__=
"motion._Actuate.TransformOptions";ft.prototype={duration:null,overwrite:null,target:null,color:function(a,b,c){null==b&&(b=1);null==a&&(a=0);a={colorValue:a,colorStrength:b};null!=c&&(a.colorAlpha=c);return va.tween(this.target,this.duration,a,this.overwrite,Xm)},sound:function(a,b){var c={};null!=a&&(c.soundVolume=a);null!=b&&(c.soundPan=b);return va.tween(this.target,this.duration,c,this.overwrite,Xm)},__class__:ft};var Rp=function(a){this.progress=a};g["motion._Actuate.TweenTimer"]=Rp;Rp.__name__=
"motion._Actuate.TweenTimer";Rp.prototype={progress:null,__class__:Rp};var ru=function(){this._x=new Wh;this._y=new Wh;this._rotation=null};g["motion.MotionPath"]=ru;ru.__name__="motion.MotionPath";ru.prototype={_rotation:null,_x:null,_y:null,bezier:function(a,b,c,d,e){null==e&&(e=1);return this.bezierN(a,b,[c],[d],e)},bezierN:function(a,b,c,d,e){null==e&&(e=1);this._x.addPath(new Zk(a,c,e));this._y.addPath(new Zk(b,d,e));return this},bezierSpline:function(a,b,c){null==c&&(c=1);this._x.addPath(new Ym(a,
c));this._y.addPath(new Ym(b,c));return this},line:function(a,b,c){null==c&&(c=1);return this.bezierN(a,b,[],[],c)},get_rotation:function(){null==this._rotation&&(this._rotation=new Up(this._x,this._y));return this._rotation},get_x:function(){return this._x},get_y:function(){return this._y},__class__:ru,__properties__:{get_y:"get_y",get_x:"get_x",get_rotation:"get_rotation"}};var Xh=function(){};g["motion.IComponentPath"]=Xh;Xh.__name__="motion.IComponentPath";Xh.__isInterface__=!0;Xh.prototype={get_start:null,
set_start:null,get_end:null,end:null,strength:null,calculate:null,__class__:Xh,__properties__:{get_end:"get_end",set_start:"set_start",get_start:"get_start"}};var Wh=function(){this.paths=[];this.strength=0};g["motion._MotionPath.ComponentPath"]=Wh;Wh.__name__="motion._MotionPath.ComponentPath";Wh.__interfaces__=[Xh];Wh.prototype={strength:null,paths:null,addPath:function(a){0<this.paths.length&&a.set_start(this.paths[this.paths.length-1].get_end());this.paths.push(a);this.strength+=a.strength},calculate:function(a){if(1==
this.paths.length)return this.paths[0].calculate(a);a*=this.strength;for(var b=0,c=this.paths;b<c.length;){var d=c[b];++b;if(a>d.strength)a-=d.strength;else return d.calculate(a/d.strength)}return 0},get_start:function(){return 0<this.paths.length?this.paths[0].get_start():0},set_start:function(a){return 0<this.paths.length?this.paths[0].set_start(a):0},get_end:function(){return 0<this.paths.length?this.paths[this.paths.length-1].get_end():this.get_start()},__class__:Wh,__properties__:{get_end:"get_end",
set_start:"set_start",get_start:"get_start"}};var Zk=function(a,b,c){this._end=a;this.control=b;this.strength=c};g["motion._MotionPath.BezierPath"]=Zk;Zk.__name__="motion._MotionPath.BezierPath";Zk.__interfaces__=[Xh];Zk.prototype={control:null,end:null,strength:null,_start:null,_end:null,calculate:function(a){var b=1-a;switch(this.control.length){case 0:return b*this._start+a*this._end;case 1:return b*b*this._start+2*b*a*this.control[0]+a*a*this._end;case 2:return b*b*b*this._start+3*b*b*a*this.control[0]+
3*b*a*a*this.control[1]+a*a*a*this._end;default:if(1E-7>b)return this._end;a/=b;var c=this.control.length+1;b=Math.pow(b,c);for(var d=b*this._start,e=1;e<c;){var f=e++;b*=a*(c+1-f)/f;d+=b*this.control[f-1]}return d+a/c*b*this._end}},get_start:function(){return this._start},set_start:function(a){return this._start=a},get_end:function(){return this._end},__class__:Zk,__properties__:{get_end:"get_end",set_start:"set_start",get_start:"get_start"}};var Ym=function(a,b){Wh.call(this);this.through=a;this.strength=
b};g["motion._MotionPath.BezierSplinePath"]=Ym;Ym.__name__="motion._MotionPath.BezierSplinePath";Ym.__super__=Wh;Ym.prototype=r(Wh.prototype,{through:null,computeControlPoints:function(a){a=[a].concat(this.through);for(var b=a.length,c=[],d=0;d<b;)d++,c.push([0,0]);var e=c,f=[],h=[],l=[],m=[];f[0]=0;h[0]=2;l[0]=1;m[0]=a[0]+2*a[1];c=1;for(d=b-1;c<d;){var k=c++;f[k]=1;h[k]=4;l[k]=1;m[k]=4*a[k]+2*a[k+1]}f[b-1]=1;h[b-1]=2;l[b-1]=0;m[b-1]=3*a[b-1];c=1;for(d=b;c<d;){k=c++;var g=f[k]/h[k-1];h[k]-=g*l[k-
1];m[k]-=g*m[k-1]}e[b-1][0]=m[b-1]/h[b-1];for(k=b-2;0<=k;)e[k][0]=(m[k]-l[k]*e[k+1][0])/h[k],--k;c=0;for(d=b-1;c<d;)k=c++,e[k][1]=2*a[k+1]-e[k+1][0];e[b-1][1]=.5*(a[b]+e[b-1][0]);e.pop();return e},set_start:function(a){if(0==this.paths.length||1E-7<Math.abs(a-this.get_start())){var b=this.computeControlPoints(a),c=this.strength/b.length;this.strength=0;this.paths.splice(0,this.paths.length);for(var d=0,e=b.length;d<e;){var f=d++;this.addPath(new Zk(this.through[f],b[f],c))}}return Wh.prototype.set_start.call(this,
a)},get_end:function(){return this.through[this.through.length-1]},__class__:Ym});var Up=function(a,b){this.step=.01;this._x=a;this._y=b;this.offset=0;this.set_start(this.calculate(0))};g["motion._MotionPath.RotationPath"]=Up;Up.__name__="motion._MotionPath.RotationPath";Up.__interfaces__=[Xh];Up.prototype={offset:null,strength:null,_start:null,step:null,_x:null,_y:null,calculate:function(a){var b=this._x.calculate(a)-this._x.calculate(a+this.step);a=this._y.calculate(a)-this._y.calculate(a+this.step);
b=180/Math.PI*Math.atan2(a,b);return b=(b+this.offset)%360},get_start:function(){return this._start},set_start:function(a){return this._start},get_end:function(){return this.calculate(1)},__class__:Up,__properties__:{set_start:"set_start",get_start:"get_start",get_end:"get_end"}};var Tp=function(a,b,c){this.filterIndex=-1;sc.call(this,a,b,c);if(N.__instanceof(c.filter,Gd))for(this.filterClass=c.filter,0==a.get_filters().length&&a.set_filters([wb.createInstance(this.filterClass,[])]),b=0,a=a.get_filters();b<
a.length;)c=a[b],++b,N.__instanceof(c,this.filterClass)&&(this.filter=c);else this.filterIndex=c.filter,this.filter=a.get_filters()[this.filterIndex]};g["motion.actuators.FilterActuator"]=Tp;Tp.__name__="motion.actuators.FilterActuator";Tp.__super__=sc;Tp.prototype=r(sc.prototype,{filter:null,filterClass:null,filterIndex:null,apply:function(){for(var a=0,b=J.fields(this.properties);a<b.length;){var c=b[a];++a;"filter"!=c&&J.setProperty(this.filter,c,J.field(this.properties,c))}this.setFilter()},initialize:function(){for(var a,
b,c=0,d=J.fields(this.properties);c<d.length;)a=d[c],++c,"filter"!=a&&(b=this.filter,b=Object.prototype.hasOwnProperty.call(b,a)?J.field(b,a):J.getProperty(b,a),a=new Tg(this.filter,a,b,J.field(this.properties,a)-b,Object.prototype.hasOwnProperty.call(this.filter,"set_"+a)),this.propertyDetails.push(a));this.detailsLength=this.propertyDetails.length;this.initialized=!0},setFilter:function(){var a=this.target.get_filters();if(-1<this.filterIndex)a[this.filterIndex]=this.filter;else for(var b=0,c=a.length;b<
c;){var d=b++;N.__instanceof(a[d],this.filterClass)&&(a[d]=this.filter)}b=this.target;!Object.prototype.hasOwnProperty.call(b,"filters")||b.__properties__&&b.__properties__.set_filters?J.setProperty(b,"filters",a):b.filters=a},update:function(a){sc.prototype.update.call(this,a);this.setFilter()},__class__:Tp});var Sp=function(a,b,c){this.currentParameters=[];this.tweenProperties={};sc.call(this,a,b,c);Object.prototype.hasOwnProperty.call(c,"start")||(this.properties.start=[]);Object.prototype.hasOwnProperty.call(c,
"end")||(this.properties.end=this.properties.start);a=0;for(b=this.properties.start.length;a<b;)c=a++,this.currentParameters.push(this.properties.start[c])};g["motion.actuators.MethodActuator"]=Sp;Sp.__name__="motion.actuators.MethodActuator";Sp.__super__=sc;Sp.prototype=r(sc.prototype,{currentParameters:null,tweenProperties:null,apply:function(){var a=this.target,b=this.properties.end;null==b&&(b=[]);a.apply(a,b)},complete:function(a){null==a&&(a=!0);for(var b=0,c=this.properties.start.length;b<
c;){var d=b++;this.currentParameters[d]=J.field(this.tweenProperties,"param"+d)}b=this.target;c=this.currentParameters;null==c&&(c=[]);b.apply(b,c);sc.prototype.complete.call(this,a)},initialize:function(){for(var a,b,c=0,d=this.properties.start.length;c<d;){var e=c++;a="param"+e;b=this.properties.start[e];this.tweenProperties[a]=b;if("number"==typeof b||"number"==typeof b&&(b|0)===b)a=new Tg(this.tweenProperties,a,b,this.properties.end[e]-b),this.propertyDetails.push(a)}this.detailsLength=this.propertyDetails.length;
this.initialized=!0},update:function(a){sc.prototype.update.call(this,a);if(this.active&&!this.paused){a=0;for(var b=this.properties.start.length;a<b;){var c=a++;this.currentParameters[c]=J.field(this.tweenProperties,"param"+c)}a=this.target;b=this.currentParameters;null==b&&(b=[]);a.apply(a,b)}},__class__:Sp});var Qp=function(a,b,c){sc.call(this,a,b,c)};g["motion.actuators.MotionPathActuator"]=Qp;Qp.__name__="motion.actuators.MotionPathActuator";Qp.__super__=sc;Qp.prototype=r(sc.prototype,{apply:function(){for(var a=
0,b=J.fields(this.properties);a<b.length;){var c=b[a];++a;Object.prototype.hasOwnProperty.call(this.target,c)?this.target[c]=N.__cast(J.field(this.properties,c),Xh).get_end():J.setProperty(this.target,c,N.__cast(J.field(this.properties,c),Xh).get_end())}},initialize:function(){for(var a,b=0,c=J.fields(this.properties);b<c.length;){var d=c[b];++b;a=N.__cast(J.field(this.properties,d),Xh);if(null!=a){var e=!0;Object.prototype.hasOwnProperty.call(this.target,d)?a.set_start(J.field(this.target,d)):(e=
!1,a.set_start(J.getProperty(this.target,d)));a=new ph(this.target,d,a,e);this.propertyDetails.push(a)}}this.detailsLength=this.propertyDetails.length;this.initialized=!0},update:function(a){if(!this.paused){var b=(a-this.timeOffset)/this.duration;1<b&&(b=1);this.initialized||this.initialize();if(this.special){var c=this._reverse?this._ease.calculate(1-b):this._ease.calculate(b);e=0;for(f=this.propertyDetails;e<f.length;){var d=f[e];++e;this._snapping?d.isField?d.target[d.propertyName]=Math.round(N.__cast(d,
ph).path.calculate(c)):J.setProperty(d.target,d.propertyName,Math.round(N.__cast(d,ph).path.calculate(c))):d.isField?d.target[d.propertyName]=N.__cast(d,ph).path.calculate(c):J.setProperty(d.target,d.propertyName,N.__cast(d,ph).path.calculate(c))}}else{c=this._ease.calculate(b);for(var e=0,f=this.propertyDetails;e<f.length;)d=f[e],++e,d.isField?d.target[d.propertyName]=N.__cast(d,ph).path.calculate(c):J.setProperty(d.target,d.propertyName,N.__cast(d,ph).path.calculate(c))}if(1==b){if(0==this._repeat){this.active=
!1;this.toggleVisible?(a=this.target,d=Object.prototype.hasOwnProperty.call(a,"alpha")?J.field(a,"alpha"):J.getProperty(a,"alpha"),a=0==d):a=!1;a&&(a=this.target,d=!1,!Object.prototype.hasOwnProperty.call(a,"visible")||a.__properties__&&a.__properties__.set_visible?J.setProperty(a,"visible",d):a.visible=d);this.complete(!0);return}null!=this._onRepeat&&(d=this._onRepeat,c=this._onRepeatParams,null==c&&(c=[]),d.apply(d,c));this._reflect&&(this._reverse=!this._reverse);this.startTime=a;this.timeOffset=
this.startTime+this._delay;0<this._repeat&&this._repeat--}this.sendChange&&this.change()}},__class__:Qp});var Tg=function(a,b,c,d,e){null==e&&(e=!0);this.target=a;this.propertyName=b;this.start=c;this.change=d;this.isField=e};g["motion.actuators.PropertyDetails"]=Tg;Tg.__name__="motion.actuators.PropertyDetails";Tg.prototype={change:null,isField:null,propertyName:null,start:null,target:null,__class__:Tg};var ph=function(a,b,c,d){null==d&&(d=!0);Tg.call(this,a,b,0,0,d);this.path=c};g["motion.actuators.PropertyPathDetails"]=
ph;ph.__name__="motion.actuators.PropertyPathDetails";ph.__super__=Tg;ph.prototype=r(Tg.prototype,{path:null,__class__:ph});var Xm=function(a,b,c){sc.call(this,a,b,c)};g["motion.actuators.TransformActuator"]=Xm;Xm.__name__="motion.actuators.TransformActuator";Xm.__super__=sc;Xm.prototype=r(sc.prototype,{endColorTransform:null,endSoundTransform:null,tweenColorTransform:null,tweenSoundTransform:null,apply:function(){this.initialize();if(null!=this.endColorTransform){var a=this.target,b;a=b=Object.prototype.hasOwnProperty.call(a,
"transform")?J.field(a,"transform"):J.getProperty(a,"transform");b=this.endColorTransform;!Object.prototype.hasOwnProperty.call(a,"colorTransform")||a.__properties__&&a.__properties__.set_colorTransform?J.setProperty(a,"colorTransform",b):a.colorTransform=b}null!=this.endSoundTransform&&(a=this.target,b=this.endSoundTransform,!Object.prototype.hasOwnProperty.call(a,"soundTransform")||a.__properties__&&a.__properties__.set_soundTransform?J.setProperty(a,"soundTransform",b):a.soundTransform=b)},initialize:function(){Object.prototype.hasOwnProperty.call(this.properties,
"colorValue")&&this.target instanceof ka&&this.initializeColor();(Object.prototype.hasOwnProperty.call(this.properties,"soundVolume")||Object.prototype.hasOwnProperty.call(this.properties,"soundPan"))&&this.initializeSound();this.detailsLength=this.propertyDetails.length;this.initialized=!0},initializeColor:function(){this.endColorTransform=new tc;var a=this.properties.colorValue,b=this.properties.colorStrength;if(1>b){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 e=Object.prototype.hasOwnProperty.call(d,"alpha")?J.field(d,"alpha"):J.getProperty(d,"alpha");this.endColorTransform.alphaMultiplier=e}d=this.target;c=e=Object.prototype.hasOwnProperty.call(d,"transform")?J.field(d,"transform"):J.getProperty(d,"transform");c=e=Object.prototype.hasOwnProperty.call(c,"colorTransform")?
J.field(c,"colorTransform"):J.getProperty(c,"colorTransform");this.tweenColorTransform=new tc;for(b=0;b<a.length;){var f=a[b];++b;e=Object.prototype.hasOwnProperty.call(c,f)?J.field(c,f):J.getProperty(c,f);var h=this.tweenColorTransform;d=this.endColorTransform;d=Object.prototype.hasOwnProperty.call(d,f)?J.field(d,f):J.getProperty(d,f);f=new Tg(h,f,e,d-e);this.propertyDetails.push(f)}},initializeSound:function(){var a=this.target;var b=Object.prototype.hasOwnProperty.call(a,"soundTransform")?J.field(a,
"soundTransform"):J.getProperty(a,"soundTransform");null==b&&(a=this.target,b=new hf,!Object.prototype.hasOwnProperty.call(a,"soundTransform")||a.__properties__&&a.__properties__.set_soundTransform?J.setProperty(a,"soundTransform",b):a.soundTransform=b);a=this.target;var c=b=Object.prototype.hasOwnProperty.call(a,"soundTransform")?J.field(a,"soundTransform"):J.getProperty(a,"soundTransform");a=this.target;this.endSoundTransform=b=Object.prototype.hasOwnProperty.call(a,"soundTransform")?J.field(a,
"soundTransform"):J.getProperty(a,"soundTransform");this.tweenSoundTransform=new hf;Object.prototype.hasOwnProperty.call(this.properties,"soundVolume")&&(this.endSoundTransform.volume=this.properties.soundVolume,this.propertyDetails.push(new Tg(this.tweenSoundTransform,"volume",c.volume,this.endSoundTransform.volume-c.volume)));Object.prototype.hasOwnProperty.call(this.properties,"soundPan")&&(this.endSoundTransform.pan=this.properties.soundPan,this.propertyDetails.push(new Tg(this.tweenSoundTransform,
"pan",c.pan,this.endSoundTransform.pan-c.pan)))},update:function(a){sc.prototype.update.call(this,a);if(null!=this.endColorTransform){var b=this.target;b=a=Object.prototype.hasOwnProperty.call(b,"transform")?J.field(b,"transform"):J.getProperty(b,"transform");a=this.tweenColorTransform;!Object.prototype.hasOwnProperty.call(b,"colorTransform")||b.__properties__&&b.__properties__.set_colorTransform?J.setProperty(b,"colorTransform",a):b.colorTransform=a}null!=this.endSoundTransform&&(b=this.target,a=
this.tweenSoundTransform,!Object.prototype.hasOwnProperty.call(b,"soundTransform")||b.__properties__&&b.__properties__.set_soundTransform?J.setProperty(b,"soundTransform",a):b.soundTransform=a)},__class__:Xm});var Zm=function(){};g["motion.easing._Bounce.BounceEaseIn"]=Zm;Zm.__name__="motion.easing._Bounce.BounceEaseIn";Zm.__interfaces__=[Fe];Zm._ease=function(a,b,c,d){a=d-a;return c-(.36363636363636365>(a/=d)?7.5625*c*a*a:.7272727272727273>a?c*(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>
a?c*(7.5625*(a-=.8181818181818182)*a+.9375):c*(7.5625*(a-=.9545454545454546)*a+.984375))+b};Zm.prototype={calculate:function(a){a=1-a;return 1-(.36363636363636365>(a/=1)?7.5625*a*a:.7272727272727273>a?7.5625*(a-=.5454545454545454)*a+.75:.9090909090909091>a?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375)},ease:function(a,b,c,d){a=d-a;return c-(.36363636363636365>(a/=d)?7.5625*c*a*a:.7272727272727273>a?c*(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?c*(7.5625*
(a-=.8181818181818182)*a+.9375):c*(7.5625*(a-=.9545454545454546)*a+.984375))+b},__class__:Zm};var Vp=function(){};g["motion.easing._Bounce.BounceEaseInOut"]=Vp;Vp.__name__="motion.easing._Bounce.BounceEaseInOut";Vp.__interfaces__=[Fe];Vp.prototype={calculate:function(a){if(.5>a)return a=1-2*a,.5*(1-(.36363636363636365>(a/=1)?7.5625*a*a:.7272727272727273>a?7.5625*(a-=.5454545454545454)*a+.75:.9090909090909091>a?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375));a=2*a-1;
return.5*(.36363636363636365>(a/=1)?7.5625*a*a:.7272727272727273>a?7.5625*(a-=.5454545454545454)*a+.75:.9090909090909091>a?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375)+.5},ease:function(a,b,c,d){if(a<d/2)return a=d-2*a,.5*(c-(.36363636363636365>(a/=d)?7.5625*c*a*a:.7272727272727273>a?c*(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?c*(7.5625*(a-=.8181818181818182)*a+.9375):c*(7.5625*(a-=.9545454545454546)*a+.984375)))+b;a=2*a-d;return.5*(.36363636363636365>
(a/=d)?7.5625*c*a*a:.7272727272727273>a?c*(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?c*(7.5625*(a-=.8181818181818182)*a+.9375):c*(7.5625*(a-=.9545454545454546)*a+.984375))+.5*c+b},__class__:Vp};var $m=function(){};g["motion.easing._Bounce.BounceEaseOut"]=$m;$m.__name__="motion.easing._Bounce.BounceEaseOut";$m.__interfaces__=[Fe];$m._ease=function(a,b,c,d){return.36363636363636365>(a/=d)?7.5625*c*a*a+b:.7272727272727273>a?c*(7.5625*(a-=.5454545454545454)*a+.75)+b:.9090909090909091>a?
c*(7.5625*(a-=.8181818181818182)*a+.9375)+b:c*(7.5625*(a-=.9545454545454546)*a+.984375)+b};$m.prototype={calculate:function(a){return.36363636363636365>(a/=1)?7.5625*a*a:.7272727272727273>a?7.5625*(a-=.5454545454545454)*a+.75:.9090909090909091>a?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375},ease:function(a,b,c,d){return.36363636363636365>(a/=d)?7.5625*c*a*a+b:.7272727272727273>a?c*(7.5625*(a-=.5454545454545454)*a+.75)+b:.9090909090909091>a?c*(7.5625*(a-=.8181818181818182)*
a+.9375)+b:c*(7.5625*(a-=.9545454545454546)*a+.984375)+b},__class__:$m};var Wp=function(){};g["motion.easing.Bounce"]=Wp;Wp.__name__="motion.easing.Bounce";var an=function(a,b){this.a=a;this.p=b};g["motion.easing._Elastic.ElasticEaseIn"]=an;an.__name__="motion.easing._Elastic.ElasticEaseIn";an.__interfaces__=[Fe];an.prototype={a:null,p:null,calculate:function(a){if(0==a)return 0;if(1==a)return 1;if(1>this.a){this.a=1;var b=this.p/4}else b=this.p/(2*Math.PI)*Math.asin(1/this.a);return-(this.a*Math.exp(6.931471805599453*
--a)*Math.sin(2*(a-b)*Math.PI/this.p))},ease:function(a,b,c,d){if(0==a)return b;if(1==(a/=d))return b+c;this.a<Math.abs(c)?(this.a=c,c=this.p/4):c=this.p/(2*Math.PI)*Math.asin(c/this.a);return-(this.a*Math.exp(6.931471805599453*--a)*Math.sin(2*(a*d-c)*Math.PI/this.p))+b},__class__:an};var bn=function(a,b){this.a=a;this.p=b};g["motion.easing._Elastic.ElasticEaseInOut"]=bn;bn.__name__="motion.easing._Elastic.ElasticEaseInOut";bn.__interfaces__=[Fe];bn.prototype={a:null,p:null,calculate:function(a){return 0==
a?0:2==(a/=.5)?1:1>a?-.5*Math.exp(6.931471805599453*--a)*Math.sin(2*(a-.11249999999999999)*Math.PI/.44999999999999996):Math.exp(-6.931471805599453*--a)*Math.sin(2*(a-.11249999999999999)*Math.PI/.44999999999999996)*.5+1},ease:function(a,b,c,d){if(0==a)return b;if(2==(a/=d/2))return b+c;if(this.a<Math.abs(c)){this.a=c;var e=this.p/4}else e=this.p/(2*Math.PI)*Math.asin(c/this.a);return 1>a?-.5*this.a*Math.exp(6.931471805599453*--a)*Math.sin(2*(a*d-e)*Math.PI/this.p)+b:this.a*Math.exp(-6.931471805599453*
--a)*Math.sin(2*(a*d-e)*Math.PI/this.p)*.5+c+b},__class__:bn};var cn=function(a,b){this.a=a;this.p=b};g["motion.easing._Elastic.ElasticEaseOut"]=cn;cn.__name__="motion.easing._Elastic.ElasticEaseOut";cn.__interfaces__=[Fe];cn.prototype={a:null,p:null,calculate:function(a){if(0==a)return 0;if(1==a)return 1;if(1>this.a){this.a=1;var b=this.p/4}else b=this.p/(2*Math.PI)*Math.asin(1/this.a);return this.a*Math.exp(-6.931471805599453*a)*Math.sin(2*(a-b)*Math.PI/this.p)+1},ease:function(a,b,c,d){if(0==a)return b;
if(1==(a/=d))return b+c;if(this.a<Math.abs(c)){this.a=c;var e=this.p/4}else e=this.p/(2*Math.PI)*Math.asin(c/this.a);return this.a*Math.exp(-6.931471805599453*a)*Math.sin(2*(a*d-e)*Math.PI/this.p)+c+b},__class__:cn};var Sj=function(){};g["motion.easing.Elastic"]=Sj;Sj.__name__="motion.easing.Elastic";Sj.easeInWith=function(a,b){return new an(a,b)};Sj.easeInOutWith=function(a,b){return new bn(a,b)};Sj.easeOutWith=function(a,b){return new cn(a,b)};var Xp=function(){};g["motion.easing.Linear"]=Xp;Xp.__name__=
"motion.easing.Linear";Xp.__properties__={get_easeNone:"get_easeNone"};Xp.get_easeNone=function(){return new Yp};var Yp=function(){};g["motion.easing.LinearEaseNone"]=Yp;Yp.__name__="motion.easing.LinearEaseNone";Yp.__interfaces__=[Fe];Yp.prototype={calculate:function(a){return a},ease:function(a,b,c,d){return c*a/d+b},__class__:Yp};var Zp=function(){};g["motion.easing._Quart.QuartEaseIn"]=Zp;Zp.__name__="motion.easing._Quart.QuartEaseIn";Zp.__interfaces__=[Fe];Zp.prototype={calculate:function(a){return a*
a*a*a},ease:function(a,b,c,d){return c*(a/=d)*a*a*a+b},__class__:Zp};var $p=function(){};g["motion.easing._Quart.QuartEaseInOut"]=$p;$p.__name__="motion.easing._Quart.QuartEaseInOut";$p.__interfaces__=[Fe];$p.prototype={calculate:function(a){return 1>(a*=2)?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2)},ease:function(a,b,c,d){return 1>(a/=d/2)?c/2*a*a*a*a+b:-c/2*((a-=2)*a*a*a-2)+b},__class__:$p};var aq=function(){};g["motion.easing._Quart.QuartEaseOut"]=aq;aq.__name__="motion.easing._Quart.QuartEaseOut";aq.__interfaces__=
[Fe];aq.prototype={calculate:function(a){return-(--a*a*a*a-1)},ease:function(a,b,c,d){a=a/d-1;return-c*(a*a*a*a-1)+b},__class__:aq};var rd=function(){};g["motion.easing.Quart"]=rd;rd.__name__="motion.easing.Quart";var Sa=function(){};g["openfl.Lib"]=Sa;Sa.__name__="openfl.Lib";Sa.__properties__={get_current:"get_current",get_application:"get_application"};Sa.as=function(a,b){return N.__instanceof(a,b)?a:null};Sa.attach=function(a){return new Q};Sa.clearInterval=function(a){Sa.__timers.h.hasOwnProperty(a)&&
(Sa.__timers.h[a].stop(),Sa.__timers.remove(a))};Sa.clearTimeout=function(a){Sa.__timers.h.hasOwnProperty(a)&&(Sa.__timers.h[a].stop(),Sa.__timers.remove(a))};Sa.getDefinitionByName=function(a){return null==a?null:g[a]};Sa.getQualifiedClassName=function(a){if(null==a)return null;var b=N.__instanceof(a,Gd)?a:N.getClass(a);return null==b?"boolean"==typeof a||a==Ju?"Bool":"number"==typeof a&&(a|0)===a||a==jh?"Int":"number"==typeof a||a==Ku?"Float":null:b.__name__};Sa.getQualifiedSuperclassName=function(a){if(null==
a)return null;a=N.__instanceof(a,Gd)?a:N.getClass(a);if(null==a)return null;a=a.__super__;return null==a?null:a.__name__};Sa.getTimer=function(){return Ka.getTimer()};Sa.getURL=function(a,b){Sa.navigateToURL(a,b)};Sa.navigateToURL=function(a,b){null==b&&(b="_blank");var c=a.url;if(wb.typeof(a.data)==yc.TObject){for(var d="",e=J.fields(a.data),f=0;f<e.length;){var h=e[f];++f;0<d.length&&(d+="&");var l=encodeURIComponent(h)+"=";h=B.string(J.field(a.data,h));d+=l+encodeURIComponent(h)}c=-1<c.indexOf("?")?
c+("&"+d):c+("?"+d)}Ka.openURL(c,b)};Sa.notImplemented=function(a){var b=a.className+"."+a.methodName;Object.prototype.hasOwnProperty.call(Sa.__sentWarnings.h,b)||(Sa.__sentWarnings.h[b]=!0,Ea.warn(a.methodName+" is not implemented",a))};Sa.preventDefaultTouchMove=function(){window.document.addEventListener("touchmove",function(a){a.preventDefault()},!1)};Sa.sendToURL=function(a){(new le).load(a)};Sa.setInterval=function(a,b,c){var d=++Sa.__lastTimerID;b=new Qb(b);Sa.__timers.h[d]=b;b.run=function(){a.apply(a,
null==c?[]:c)};return d};Sa.setTimeout=function(a,b,c){var d=++Sa.__lastTimerID,e=Sa.__timers;b=Qb.delay(function(){a.apply(a,null==c?[]:c)},b);e.h[d]=b;return d};Sa.trace=function(a){Ub.trace(a,{fileName:"openfl/Lib.hx",lineNumber:565,className:"openfl.Lib",methodName:"trace"})};Sa.get_application=function(){return ic.application};Sa.get_current=function(){null==ic.current&&(ic.current=new Q);return ic.current};var Yh=function(){};g["openfl._Vector.IVector"]=Yh;Yh.__name__="openfl._Vector.IVector";
Yh.__isInterface__=!0;Yh.prototype={get_length:null,set_length:null,fixed:null,concat:null,copy:null,filter:null,get:null,indexOf:null,insertAt:null,iterator:null,join:null,lastIndexOf:null,pop:null,push:null,removeAt:null,reverse:null,set:null,shift:null,slice:null,sort:null,splice:null,toString:null,unshift:null,__class__:Yh,__properties__:{set_length:"set_length",get_length:"get_length"}};var $f=function(a,b,c){null==b&&(b=!1);null==a&&(a=0);null==c&&(c=[]);this.__array=c;0<a&&this.set_length(a);
this.fixed=b};g["openfl._Vector.BoolVector"]=$f;$f.__name__="openfl._Vector.BoolVector";$f.__interfaces__=[Yh];$f.prototype={fixed:null,__array:null,concat:function(a){return null==a?new $f(0,!1,this.__array.slice()):0<a.__array.length?new $f(0,!1,this.__array.concat(a.__array)):new $f(0,!1,this.__array.slice())},copy:function(){return new $f(0,this.fixed,this.__array.slice())},filter:function(a){for(var b=this.fixed,c=[],d=0,e=this.__array;d<e.length;){var f=e[d];++d;a(f)&&c.push(f)}return new $f(0,
b,c)},get:function(a){return a>=this.__array.length?!1:this.__array[a]},indexOf:function(a,b){null==b&&(b=0);for(var c=this.__array.length;b<c;){var d=b++;if(this.__array[d]==a)return d}return-1},insertAt:function(a,b){(!this.fixed||a<this.__array.length)&&this.__array.splice(a,0,b)},iterator:function(){return new pe(this.__array)},join:function(a){null==a&&(a=",");return this.__array.join(a)},lastIndexOf:function(a,b){for(b=null==b||b>=this.__array.length?this.__array.length-1:b;0<=b;){if(this.__array[b]==
a)return b;--b}return-1},pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||a<this.__array.length?this.__array.splice(a,1)[0]:!1},reverse:function(){this.__array.reverse();return this},set:function(a,b){return!this.fixed||a<this.__array.length?this.__array[a]=b:b},shift:function(){return this.fixed?null:this.__array.shift()},slice:function(a,b){null==a&&(a=0);null==b&&(b=16777215);
return new $f(0,!1,this.__array.slice(a,b))},sort:function(a){this.__array.sort(a)},splice:function(a,b){return new $f(0,!1,this.__array.splice(a,b))},toJSON:function(){return this.__array},toString:function(){return null!=this.__array?this.__array.toString():null},unshift:function(a){this.fixed||this.__array.unshift(a)},get_length:function(){return this.__array.length},set_length:function(a){if(!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var c=b++;this.__array[c]=!1}else for(;this.__array.length>
a;)this.__array.pop()}return this.__array.length},__class__:$f,__properties__:{set_length:"set_length",get_length:"get_length"}};var bg=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 e=c.length;d<e;){var f=d++;this.__array[f]=c[f]}}}else null==c&&(c=[]),this.__array=c;0<a&&this.set_length(a);this.fixed=b};g["openfl._Vector.FloatVector"]=bg;bg.__name__="openfl._Vector.FloatVector";bg.__interfaces__=[Yh];bg.prototype={fixed:null,__array:null,
concat:function(a){return null==a?new bg(0,!1,this.__array.slice()):0<a.__array.length?new bg(0,!1,this.__array.concat(a.__array)):new bg(0,!1,this.__array.slice())},copy:function(){return new bg(0,this.fixed,this.__array.slice())},filter:function(a){for(var b=this.fixed,c=[],d=0,e=this.__array;d<e.length;){var f=e[d];++d;a(f)&&c.push(f)}return new bg(0,b,c)},get:function(a){return this.__array[a]},indexOf:function(a,b){null==b&&(b=0);for(var c=this.__array.length;b<c;){var d=b++;if(this.__array[d]==
a)return d}return-1},insertAt:function(a,b){(!this.fixed||a<this.__array.length)&&this.__array.splice(a,0,b)},iterator:function(){return new pe(this.__array)},join:function(a){null==a&&(a=",");return this.__array.join(a)},lastIndexOf:function(a,b){for(b=null==b||b>=this.__array.length?this.__array.length-1:b;0<=b;){if(this.__array[b]==a)return b;--b}return-1},pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||
a<this.__array.length?this.__array.splice(a,1)[0]:0},reverse:function(){this.__array.reverse();return this},set:function(a,b){return!this.fixed||a<this.__array.length?this.__array[a]=b:b},shift:function(){return this.fixed?null:this.__array.shift()},slice:function(a,b){null==a&&(a=0);null==b&&(b=16777215);return new bg(0,!1,this.__array.slice(a,b))},sort:function(a){this.__array.sort(a)},splice:function(a,b){return new bg(0,!1,this.__array.splice(a,b))},toJSON:function(){return this.__array},toString:function(){return null!=
this.__array?this.__array.toString():null},unshift:function(a){this.fixed||this.__array.unshift(a)},get_length:function(){return this.__array.length},set_length:function(a){if(a!=this.__array.length&&!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var c=b++;this.__array[c]=0}else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:bg,__properties__:{set_length:"set_length",get_length:"get_length"}};var cg=function(a,b,c){null==b&&(b=!1);null==a&&
(a=0);null==c&&(c=[]);this.__array=c;0<a&&this.set_length(a);this.fixed=b};g["openfl._Vector.FunctionVector"]=cg;cg.__name__="openfl._Vector.FunctionVector";cg.__interfaces__=[Yh];cg.prototype={fixed:null,__array:null,concat:function(a){return null==a?new cg(0,!1,this.__array.slice()):0<a.__array.length?new cg(0,!1,this.__array.concat(a.__array)):new cg(0,!1,this.__array.slice())},copy:function(){return new cg(0,this.fixed,this.__array.slice())},filter:function(a){for(var b=this.fixed,c=[],d=0,e=
this.__array;d<e.length;){var f=e[d];++d;a(f)&&c.push(f)}return new cg(0,b,c)},get:function(a){return a>=this.__array.length?null:this.__array[a]},indexOf:function(a,b){null==b&&(b=0);for(var c=this.__array.length;b<c;){var d=b++;if(this.__array[d]==a)return d}return-1},insertAt:function(a,b){(!this.fixed||a<this.__array.length)&&this.__array.splice(a,0,b)},iterator:function(){return new pe(this.__array)},join:function(a){null==a&&(a=",");return this.__array.join(a)},lastIndexOf:function(a,b){for(b=
null==b||b>=this.__array.length?this.__array.length-1:b;0<=b;){if(this.__array[b]==a)return b;--b}return-1},pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||a<this.__array.length?this.__array.splice(a,1)[0]:null},reverse:function(){this.__array.reverse();return this},set:function(a,b){return!this.fixed||a<this.__array.length?this.__array[a]=b:b},shift:function(){return this.fixed?
null:this.__array.shift()},slice:function(a,b){null==a&&(a=0);null==b&&(b=16777215);return new cg(0,!1,this.__array.slice(a,b))},sort:function(a){this.__array.sort(a)},splice:function(a,b){return new cg(0,!1,this.__array.splice(a,b))},toJSON:function(){return this.__array},toString:function(){return null!=this.__array?this.__array.toString():null},unshift:function(a){this.fixed||this.__array.unshift(a)},get_length:function(){return this.__array.length},set_length:function(a){if(!this.fixed){var b=
this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var c=b++;this.__array[c]=null}else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:cg,__properties__:{set_length:"set_length",get_length:"get_length"}};var ag=function(a,b,c){null==b&&(b=!1);null==a&&(a=0);null==c&&(c=[]);this.__array=c;0<a&&this.set_length(a);this.fixed=b};g["openfl._Vector.IntVector"]=ag;ag.__name__="openfl._Vector.IntVector";ag.__interfaces__=[Yh];ag.prototype={fixed:null,__array:null,concat:function(a){return null==
a?new ag(0,!1,this.__array.slice()):0<a.__array.length?new ag(0,!1,this.__array.concat(a.__array)):new ag(0,!1,this.__array.slice())},copy:function(){return new ag(0,this.fixed,this.__array.slice())},filter:function(a){for(var b=this.fixed,c=[],d=0,e=this.__array;d<e.length;){var f=e[d];++d;a(f)&&c.push(f)}return new ag(0,b,c)},get:function(a){return this.__array[a]},indexOf:function(a,b){null==b&&(b=0);for(var c=this.__array.length;b<c;){var d=b++;if(this.__array[d]==a)return d}return-1},insertAt:function(a,
b){(!this.fixed||a<this.__array.length)&&this.__array.splice(a,0,b)},iterator:function(){return new pe(this.__array)},join:function(a){null==a&&(a=",");return this.__array.join(a)},lastIndexOf:function(a,b){for(b=null==b||b>=this.__array.length?this.__array.length-1:b;0<=b;){if(this.__array[b]==a)return b;--b}return-1},pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||a<this.__array.length?
this.__array.splice(a,1)[0]:0},reverse:function(){this.__array.reverse();return this},set:function(a,b){return!this.fixed||a<this.__array.length?this.__array[a]=b:b},shift:function(){return this.fixed?null:this.__array.shift()},slice:function(a,b){null==a&&(a=0);null==b&&(b=16777215);return new ag(0,!1,this.__array.slice(a,b))},sort:function(a){this.__array.sort(a)},splice:function(a,b){return new ag(0,!1,this.__array.splice(a,b))},toJSON:function(){return this.__array},toString:function(){return null!=
this.__array?this.__array.toString():null},unshift:function(a){this.fixed||this.__array.unshift(a)},get_length:function(){return this.__array.length},set_length:function(a){if(!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var c=b++;this.__array[c]=0}else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:ag,__properties__:{set_length:"set_length",get_length:"get_length"}};var vf=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 e=c.length;d<e;){var f=d++;this.__array[f]=c[f]}}}else null==c&&(c=[]),this.__array=c;0<a&&this.set_length(a);this.fixed=b};g["openfl._Vector.ObjectVector"]=vf;vf.__name__="openfl._Vector.ObjectVector";vf.__interfaces__=[Yh];vf.prototype={fixed:null,__array:null,concat:function(a){return null==a?new vf(0,!1,this.__array.slice()):0<a.__array.length?new vf(0,!1,this.__array.concat(a.__array)):new vf(0,!1,this.__array.slice())},copy:function(){return new vf(0,
this.fixed,this.__array.slice())},filter:function(a){for(var b=this.fixed,c=[],d=0,e=this.__array;d<e.length;){var f=e[d];++d;a(f)&&c.push(f)}return new vf(0,b,c)},get:function(a){return this.__array[a]},indexOf:function(a,b){null==b&&(b=0);for(var c=this.__array.length;b<c;){var d=b++;if(this.__array[d]==a)return d}return-1},insertAt:function(a,b){(!this.fixed||a<this.__array.length)&&this.__array.splice(a,0,b)},iterator:function(){return new pe(this.__array)},join:function(a){null==a&&(a=",");return this.__array.join(a)},
lastIndexOf:function(a,b){for(b=null==b||b>=this.__array.length?this.__array.length-1:b;0<=b;){if(this.__array[b]==a)return b;--b}return-1},pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||a<this.__array.length?this.__array.splice(a,1)[0]:null},reverse:function(){this.__array.reverse();return this},set:function(a,b){return!this.fixed||a<this.__array.length?this.__array[a]=
b:b},shift:function(){return this.fixed?null:this.__array.shift()},slice:function(a,b){null==a&&(a=0);null==b&&(b=16777215);return new vf(0,!1,this.__array.slice(a,b))},sort:function(a){this.__array.sort(a)},splice:function(a,b){return new vf(0,!1,this.__array.splice(a,b))},toJSON:function(){return this.__array},toString:function(){return null!=this.__array?this.__array.toString():null},unshift:function(a){this.fixed||this.__array.unshift(a)},get_length:function(){return this.__array.length},set_length:function(a){if(!this.fixed){var b=
this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;)b++,this.__array.push(null);else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:vf,__properties__:{set_length:"set_length",get_length:"get_length"}};var rm=function(){nc.call(this);null==ic.application&&(ic.application=this);null==ic.current&&(ic.current=new Q);ic.current.__loaderInfo=Qg.create(null);ic.current.__loaderInfo.content=ic.current};g["openfl.display.Application"]=rm;rm.__name__="openfl.display.Application";
rm.__super__=nc;rm.prototype=r(nc.prototype,{createWindow:function(a){var b=new wk(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(k(this,this.onWindowActivate)),b.onRenderContextLost.add(k(this,this.onRenderContextLost)),b.onRenderContextRestored.add(k(this,this.onRenderContextRestored)),b.onDeactivate.add(k(this,this.onWindowDeactivate)),b.onDropFile.add(k(this,this.onWindowDropFile)),
b.onEnter.add(k(this,this.onWindowEnter)),b.onExpose.add(k(this,this.onWindowExpose)),b.onFocusIn.add(k(this,this.onWindowFocusIn)),b.onFocusOut.add(k(this,this.onWindowFocusOut)),b.onFullscreen.add(k(this,this.onWindowFullscreen)),b.onKeyDown.add(k(this,this.onKeyDown)),b.onKeyUp.add(k(this,this.onKeyUp)),b.onLeave.add(k(this,this.onWindowLeave)),b.onMinimize.add(k(this,this.onWindowMinimize)),b.onMouseDown.add(k(this,this.onMouseDown)),b.onMouseMove.add(k(this,this.onMouseMove)),b.onMouseMoveRelative.add(k(this,
this.onMouseMoveRelative)),b.onMouseUp.add(k(this,this.onMouseUp)),b.onMouseWheel.add(k(this,this.onMouseWheel)),b.onMove.add(k(this,this.onWindowMove)),b.onRender.add(k(this,this.render)),b.onResize.add(k(this,this.onWindowResize)),b.onRestore.add(k(this,this.onWindowRestore)),b.onTextEdit.add(k(this,this.onTextEdit)),b.onTextInput.add(k(this,this.onTextInput)),this.onWindowCreate());this.onCreateWindow.dispatch(b);return b},__class__:rm});var Pd=function(a,b,c){null==c&&(c=!1);ka.call(this);this.__drawableType=
2;this.__bitmapData=a;this.pixelSnapping=b;this.smoothing=c;null==b&&(this.pixelSnapping=1)};g["openfl.display.Bitmap"]=Pd;Pd.__name__="openfl.display.Bitmap";Pd.__super__=ka;Pd.prototype=r(ka.prototype,{pixelSnapping:null,smoothing:null,__image:null,__bitmapData:null,__imageVersion:null,__enterFrame:function(a){null==this.__bitmapData||null==this.__bitmapData.image||this.__bitmapData.image.version==this.__imageVersion||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},__getBounds:function(a,
b){var c=ha.__pool.get();null!=this.__bitmapData?c.setTo(0,0,this.__bitmapData.width,this.__bitmapData.height):c.setTo(0,0,0,0);c.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);ha.__pool.release(c)},__hitTest:function(a,b,c,d,e,f){if(!f.get_visible()||this.__isMask||null==this.__bitmapData||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;this.__getRenderTransform();var h=this.__renderTransform,l=h.a*h.d-h.b*h.c;c=0==l?-h.tx:1/l*(h.c*(h.ty-b)+h.d*(a-h.tx));h=this.__renderTransform;
l=h.a*h.d-h.b*h.c;a=0==l?-h.ty:1/l*(h.a*(b-h.ty)+h.b*(h.tx-a));if(0<c&&0<a&&c<=this.__bitmapData.width&&a<=this.__bitmapData.height){if(null!=this.__scrollRect&&!this.__scrollRect.contains(c,a))return!1;null==d||e||d.push(f);return!0}return!1},__hitTestMask:function(a,b){if(null==this.__bitmapData)return!1;this.__getRenderTransform();var c=this.__renderTransform,d=c.a*c.d-c.b*c.c,e=0==d?-c.tx:1/d*(c.c*(c.ty-b)+c.d*(a-c.tx));c=this.__renderTransform;d=c.a*c.d-c.b*c.c;a=0==d?-c.ty:1/d*(c.a*(b-c.ty)+
c.b*(c.tx-a));return 0<e&&0<a&&e<=this.__bitmapData.width&&a<=this.__bitmapData.height?!0:!1},get_bitmapData:function(){return this.__bitmapData},set_bitmapData:function(a){this.__bitmapData=a;this.smoothing=!1;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());this.__imageVersion=-1;return this.__bitmapData},set_height:function(a){null!=this.__bitmapData?this.set_scaleY(a/this.__bitmapData.height):this.set_scaleY(0);return a},set_width:function(a){null!=this.__bitmapData?this.set_scaleX(a/
this.__bitmapData.width):this.set_scaleX(0);return a},__class__:Pd,__properties__:r(ka.prototype.__properties__,{set_bitmapData:"set_bitmapData",get_bitmapData:"get_bitmapData"})});var xb=function(a,b,c,d){null==d&&(d=-1);null==c&&(c=!0);this.__drawableType=0;this.transparent=c;null==a&&(a=0);null==b&&(b=0);0>a&&(a=0);0>b&&(b=0);this.width=a;this.height=b;this.rect=new ha(0,0,a,b);this.__textureWidth=a;this.__textureHeight=b;0<a&&0<b&&(c?0==(d&-16777216)&&(d=0):d=-16777216|d&16777215,this.image=new Lb(null,
0,0,a,b,d<<8|d>>>24&255),this.image.set_transparent(c),this.readable=this.__isValid=!0);this.__renderTransform=new Aa;this.__worldAlpha=1;this.__worldTransform=new Aa;this.__worldColorTransform=new tc;this.__renderable=!0};g["openfl.display.BitmapData"]=xb;xb.__name__="openfl.display.BitmapData";xb.__interfaces__=[Wa];xb.fromBase64=function(a,b){return null};xb.fromBytes=function(a,b){return null};xb.fromCanvas=function(a,b){null==b&&(b=!0);if(null==a)return null;var c=new xb(0,0,b,0);c.__fromImage(Lb.fromCanvas(a));
c.image.set_transparent(b);return c};xb.fromFile=function(a){return null};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.fromTexture=function(a){if(null==a)return null;var b=new xb(a.__width,a.__height,!0,0);b.readable=!1;b.__texture=a;b.__textureContext=a.__textureContext;b.image=null;return b};xb.loadFromBase64=function(a,b){return Lb.loadFromBase64(a,b).then(function(a){return Ja.withValue(xb.fromImage(a))})};
xb.loadFromBytes=function(a,b){return Lb.loadFromBytes(Mb.toBytes(a)).then(function(a){a=xb.fromImage(a);null!=b&&a.__applyAlpha(b);return Ja.withValue(a)})};xb.loadFromFile=function(a){return Lb.loadFromFile(a).then(function(a){return Ja.withValue(xb.fromImage(a))})};xb.prototype={height:null,image:null,readable:null,rect:null,transparent:null,width:null,__blendMode:null,__drawableType:null,__framebuffer:null,__framebufferContext:null,__indexBuffer:null,__indexBufferContext:null,__indexBufferData:null,
__indexBufferGrid:null,__isMask:null,__isValid:null,__mask:null,__renderable:null,__renderTransform:null,__scrollRect:null,__stencilBuffer:null,__surface:null,__texture:null,__textureContext:null,__textureHeight:null,__textureVersion:null,__textureWidth:null,__transform:null,__uvRect:null,__vertexBuffer:null,__vertexBufferContext:null,__vertexBufferData:null,__vertexBufferGrid:null,__vertexBufferHeight:null,__vertexBufferScaleX:null,__vertexBufferScaleY:null,__vertexBufferWidth:null,__worldAlpha:null,
__worldColorTransform:null,__worldTransform:null,applyFilter:function(a,b,c,d){if(this.readable&&null!=a&&a.readable){a=d.__needSecondBitmapData;var e=d.__preserveObject,f=null;var h=a?new xb(this.width,this.height,!0,0):this;e&&(f=new xb(this.width,this.height,!0,0));d.__preserveObject&&f.copyPixels(this,this.rect,c);b=d.__applyFilter(h,this,b,c);d.__preserveObject&&b.draw(f,null,null);a&&b==h&&(h.image.version=this.image.version,this.image=h.image);this.image.dirty=!0;this.image.version++}},clone:function(){if(this.__isValid)if(this.readable||
null!=this.image)var a=xb.fromImage(this.image.clone(),this.transparent);else a=new xb(0,0,this.transparent,0),a.width=this.width,a.height=this.height,a.__textureWidth=this.__textureWidth,a.__textureHeight=this.__textureHeight,a.rect.copyFrom(this.rect),a.__framebuffer=this.__framebuffer,a.__framebufferContext=this.__framebufferContext,a.__texture=this.__texture,a.__textureContext=this.__textureContext,a.__isValid=!0;else a=new xb(this.width,this.height,this.transparent,0);a.__worldTransform.copyFrom(this.__worldTransform);
a.__renderTransform.copyFrom(this.__renderTransform);return a},colorTransform:function(a,b){this.readable&&this.image.colorTransform(a.__toLimeRectangle(),b.__toLimeColorMatrix())},compare:function(a){if(a==this)return 0;if(null==a)return-1;if(0==this.readable||0==a.readable)return-2;if(this.width!=a.width)return-3;if(this.height!=a.height)return-4;if(null!=this.image&&null!=a.image&&this.image.get_format()==a.image.get_format()){for(var b=this.image.get_data(),c=a.image.get_data(),d=!0,e=0,f=b.length;e<
f;){var h=e++;if(b[h]!=c[h]){d=!1;break}}if(d)return 0}b=null;e=0;for(f=this.height;e<f;){h=e++;for(var l=0,m=this.width;l<m;){var k=l++;c=!1;var g=this.getPixel32(k,h);var n=a.getPixel32(k,h);d=0;if(g!=n){var q=(g>>>16&255)-(n>>>16&255);var p=(g>>>8&255)-(n>>>8&255);var r=(g&255)-(n&255);0>q&&(q*=-1);0>p&&(p*=-1);0>r&&(r*=-1);0==q&&0==p&&0==r?(g=(g>>>24&255)-(n>>>24&255),0!=g&&(d=(d>>>24&255)<<24|16711680|(d>>>8&255)<<8|d&255,d=(d>>>24&255)<<24|(d>>>16&255)<<16|65280|d&255,d=(d>>>24&255)<<24|(d>>>
16&255)<<16|(d>>>8&255)<<8|255,d=(g&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|d&255,c=!0)):(d=(d>>>24&255)<<24|(q&255)<<16|(d>>>8&255)<<8|d&255,d=(d>>>24&255)<<24|(d>>>16&255)<<16|(p&255)<<8|d&255,d=(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|r&255,d=-16777216|(d>>>16&255)<<16|(d>>>8&255)<<8|d&255,c=!0)}c&&(null==b&&(b=new xb(this.width,this.height,this.transparent||a.transparent,0)),b.setPixel32(k,h,d))}}return null==b?0:b},copyChannel:function(a,b,c,d,e){if(this.readable){switch(d){case 1:d=
Kd.RED;break;case 2:d=Kd.GREEN;break;case 4:d=Kd.BLUE;break;case 8:d=Kd.ALPHA;break;default:return}switch(e){case 1:e=Kd.RED;break;case 2:e=Kd.GREEN;break;case 4:e=Kd.BLUE;break;case 8:e=Kd.ALPHA;break;default:return}this.image.copyChannel(a.image,b.__toLimeRectangle(),c.__toLimeVector2(),d,e)}},copyPixels:function(a,b,c,d,e,f){null==f&&(f=!1);this.readable&&null!=a&&(null!=e&&(xb.__tempVector.x=e.x,xb.__tempVector.y=e.y),this.image.copyPixels(a.image,b.__toLimeRectangle(),c.__toLimeVector2(),null!=
d?d.image:null,null!=e?xb.__tempVector:null,f))},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},disposeImage:function(){this.readable=!1},draw:function(a,b,c,d,e,f){null==f&&(f=!1);if(null!=a){a.__update(!1,!0);var h=Aa.__pool.get();h.copyFrom(a.__renderTransform);h.invert();null!=b&&h.concat(b);b=null;null!=e&&(b=Aa.__pool.get(),
b.copyFrom(h),b.invert());var l=new tc;l.__copyFrom(a.__worldColorTransform);l.__invert();if(this.readable||null==Sa.get_current().stage.context3D){if(null!=c){var m=ha.__pool.get(),k=Aa.__pool.get();a.__getBounds(m,k);var g=Math.ceil(m.width),n=Math.ceil(m.height);k.tx=-m.x;k.ty=-m.y;g=new xb(g,n,!0,0);g.draw(a,k);g.colorTransform(g.rect,c);g.__renderTransform.identity();g.__renderTransform.tx=m.x;g.__renderTransform.ty=m.y;g.__renderTransform.concat(a.__renderTransform);g.__worldAlpha=a.__worldAlpha;
g.__worldColorTransform.__copyFrom(a.__worldColorTransform);a=g;ha.__pool.release(m);Aa.__pool.release(k)}ua.convertToCanvas(this.image);c=new Zh(this.image.buffer.__srcContext);c.__allowSmoothing=f;c.__overrideBlendMode=d;c.__worldTransform=h;c.__worldAlpha=1/a.__worldAlpha;c.__worldColorTransform=l;null!=e&&c.__pushMaskRect(e,b);this.__drawCanvas(a,c)}else null==this.__textureContext&&(this.__textureContext=nc.current.__window.context),null!=c&&l.__combine(c),c=new ub(Sa.get_current().stage.context3D,
this),c.__allowSmoothing=f,c.__overrideBlendMode=d,c.__worldTransform=h,c.__worldAlpha=1/a.__worldAlpha,c.__worldColorTransform=l,c.__resize(this.width,this.height),null!=e&&c.__pushMaskRect(e,b),this.__drawGL(a,c);null!=e&&(c.__popMaskRect(),Aa.__pool.release(b));Aa.__pool.release(h)}},drawWithQuality:function(a,b,c,d,e,f,h){null==f&&(f=!1);this.draw(a,b,c,d,e,2!=h&&f)},encode:function(a,b,c){if(!this.readable||null==a)return null;null==c&&(c=new Nb(0));var d=this.image;if(!a.equals(this.rect)){var e=
Aa.__pool.get();e.tx=Math.round(-a.x);e.ty=Math.round(-a.y);a=new xb(Math.ceil(a.width),Math.ceil(a.height),!0,0);a.draw(this,e);d=a.image;Aa.__pool.release(e)}return b instanceof gt?(c.writeBytes(Mb.fromBytes(d.encode(Yi.PNG)),0,0),c):b instanceof bq?(c.writeBytes(Mb.fromBytes(d.encode(Yi.JPEG,N.__cast(b,bq).quality)),0,0),c):null},fillRect:function(a,b){this.__fillRect(a,b,!0)},floodFill:function(a,b,c){this.readable&&this.image.floodFill(a,b,c,1)},generateFilterRect:function(a,b){return a.clone()},
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 ha);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 ha(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 ha);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,e=b.height;if(0!=d&&0!=e){this.__vertexBufferData=new Float32Array(224);var f=b.x,h=b.y,l=this.width-d-f,m=this.height-e-h;b=f/this.width;var k=h/this.height;d/=this.width;e/=this.height;f/=c.get_scaleX();h/=c.get_scaleY();l/=c.get_scaleX();var g=m/c.get_scaleY();m=c.get_width()/c.get_scaleX()-f-l;l=c.get_height()/c.get_scaleY()-h-g;this.__vertexBufferData[0]=f;this.__vertexBufferData[1]=h;this.__vertexBufferData[3]=1*b;this.__vertexBufferData[4]=
1*k;this.__vertexBufferData[15]=h;this.__vertexBufferData[18]=1*k;this.__vertexBufferData[28]=f;this.__vertexBufferData[31]=1*b;this.__vertexBufferData[56]=f+m;this.__vertexBufferData[57]=h;this.__vertexBufferData[59]=1*(b+d);this.__vertexBufferData[60]=1*k;this.__vertexBufferData[70]=f+m;this.__vertexBufferData[73]=1*(b+d);this.__vertexBufferData[84]=this.width;this.__vertexBufferData[85]=h;this.__vertexBufferData[87]=1;this.__vertexBufferData[88]=1*k;this.__vertexBufferData[98]=this.width;this.__vertexBufferData[101]=
1;this.__vertexBufferData[112]=f;this.__vertexBufferData[113]=h+l;this.__vertexBufferData[115]=1*b;this.__vertexBufferData[116]=1*(k+e);this.__vertexBufferData[127]=h+l;this.__vertexBufferData[130]=1*(k+e);this.__vertexBufferData[140]=f+m;this.__vertexBufferData[141]=h+l;this.__vertexBufferData[143]=1*(b+d);this.__vertexBufferData[144]=1*(k+e);this.__vertexBufferData[154]=this.width;this.__vertexBufferData[155]=h+l;this.__vertexBufferData[157]=1;this.__vertexBufferData[158]=1*(k+e);this.__vertexBufferData[168]=
f;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]=f+m;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!=e?(this.__vertexBufferData=new Float32Array(112),h=b.y,m=this.height-e-h,k=h/this.height,e/=this.height,h/=c.get_scaleY(),g=m/c.get_scaleY(),l=c.get_height()/c.get_scaleY()-h-g,c=c.get_width()/c.get_scaleX(),this.__vertexBufferData[0]=c,this.__vertexBufferData[1]=h,this.__vertexBufferData[3]=1,this.__vertexBufferData[4]=1*k,this.__vertexBufferData[15]=h,this.__vertexBufferData[18]=1*k,this.__vertexBufferData[28]=c,this.__vertexBufferData[31]=1,this.__vertexBufferData[56]=c,this.__vertexBufferData[57]=
h+l,this.__vertexBufferData[59]=1,this.__vertexBufferData[60]=1*(k+e),this.__vertexBufferData[71]=h+l,this.__vertexBufferData[74]=1*(k+e),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==e&&0!=d&&(this.__vertexBufferData=new Float32Array(112),f=b.x,l=this.width-d-f,b=f/this.width,d/=this.width,f/=
c.get_scaleX(),l/=c.get_scaleX(),m=c.get_width()/c.get_scaleX()-f-l,c=c.get_height()/c.get_scaleY(),this.__vertexBufferData[0]=f,this.__vertexBufferData[1]=c,this.__vertexBufferData[3]=1*b,this.__vertexBufferData[4]=1,this.__vertexBufferData[15]=c,this.__vertexBufferData[18]=1,this.__vertexBufferData[28]=f,this.__vertexBufferData[31]=1*b,this.__vertexBufferData[56]=f+m,this.__vertexBufferData[57]=c,this.__vertexBufferData[59]=1*(b+d),this.__vertexBufferData[60]=1,this.__vertexBufferData[70]=f+m,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(Rh.toArrayBufferView(this.__vertexBufferData))}return this.__vertexBuffer},getColorBoundsRect:function(a,b,c){null==c&&(c=!0);if(!this.readable)return new ha(0,0,this.width,this.height);a=this.image.getColorBoundsRect(a,b,c,1);return new ha(a.x,a.y,a.width,a.height)},getPixel:function(a,b){return this.readable?
this.image.getPixel(a,b,1):0},getPixel32:function(a,b){return this.readable?this.image.getPixel32(a,b,1):0},getPixels:function(a){if(!this.readable)return null;null==a&&(a=this.rect);a=Mb.fromBytes(this.image.getPixels(a.__toLimeRectangle(),1));a.__endian=0;return a},getSurface:function(){if(!this.readable)return null;null==this.__surface&&(this.__surface=Uu.fromImage(this.image));return this.__surface},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;ua.sync(this.image,!1);null!=this.image&&this.image.version>this.__textureVersion&&(null!=this.__surface&&Vu.flush(this.__surface),a=this.image,Wb.__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},getVector:function(a){a=this.getPixels(a);for(var b=za.toFloat(Mb.get_length(a))/za.toFloat(4)|0,c=fb.toIntVector(null,b,!0),d=0;d<b;){var e=d++;c.set(e,a.readUnsignedInt())}return c},histogram:function(a){a=null!=a?a:new ha(0,0,this.width,this.height);a=this.getPixels(a);for(var b=[],c=[],d=0;256>d;)d++,c.push(0);b.push(c);c=[];for(d=0;256>d;)d++,c.push(0);b.push(c);c=[];for(d=0;256>d;)d++,c.push(0);b.push(c);
c=[];for(d=0;256>d;)d++,c.push(0);b.push(c);d=b;b=0;for(c=Mb.get_length(a);b<c;){var e=b++;++d[e%4][a.readUnsignedByte()]}return d},hitTest:function(a,b,c,d,e){null==e&&(e=1);if(!this.readable)return!1;c instanceof Pd&&(c=N.__cast(c,Pd).__bitmapData);if(c instanceof ab){e=c;c=e.x-a.x|0;var f=e.y-a.y|0;if(this.rect.contains(c,f)){var h=this.getPixel32(c,f);if((h>>24&255)>b)return!0}}else if(c instanceof xb){h=c;null==d?f=c=0:(c=Math.round(d.x-a.x),f=Math.round(d.y-a.y));d=ha.__pool.get();d.setTo(c,
f,h.width,h.height);if(this.rect.intersects(d)){0>c?(d.x=0,d.width=Math.min(h.width+c,this.width)):d.width=Math.min(h.width,this.width-c);0>f?(d.y=0,d.height=Math.min(h.height+f,this.height)):d.height=Math.min(h.height,this.height-f);a=this.getPixels(d);d.x=0>c?-c:0;d.y=0>f?-f:0;f=h.getPixels(d);h=d.width*d.height|0;c=0;for(var l=h;c<l;){c++;h=a.readUnsignedInt();var m=f.readUnsignedInt();if(za.gt(h>>>24&255,b)&&za.gt(m>>>24&255,e))return ha.__pool.release(d),!0}}ha.__pool.release(d)}else if(c instanceof
ha){e=ha.__pool.get();e.copyFrom(c);e.offset(-a.x,-a.y);e.__contract(0,0,this.width,this.height);if(0<e.width&&0<e.height)for(a=this.getPixels(e),h=za.toFloat(Mb.get_length(a))/za.toFloat(4)|0,c=0,l=h;c<l;)if(c++,h=a.readUnsignedInt(),za.gt(h>>>24&255,b))return ha.__pool.release(e),!0;ha.__pool.release(e)}return!1},lock:function(){},merge:function(a,b,c,d,e,f,h){this.readable&&null!=a&&a.readable&&null!=b&&null!=c&&this.image.merge(a.image,b.__toLimeRectangle(),c.__toLimeVector2(),d,e,f,h)},noise:function(a,
b,c,d,e){null==e&&(e=!1);null==d&&(d=7);null==c&&(c=255);null==b&&(b=0);if(this.readable){var f=function(){a=1103515245*a+12345;return(Math.abs(a/65536)|0)%32768};f();c-=b;var h=1==(d&1),l=1==(d&2)>>1,m=1==(d&4)>>2;d=1==(d&8)>>3;for(var k=0,g=this.height;k<g;)for(var n=k++,q=0,p=this.width;q<p;){var r=q++,v=0,A=0,u=0,x=255;e?(v=u=A=b+f()%c,x=255):(h&&(v=b+f()%c),l&&(u=b+f()%c),m&&(A=b+f()%c),d&&(x=b+f()%c));x=(x<<8)+v;x=(x<<8)+u;x=(x<<8)+A;this.setPixel32(r,n,x)}}},paletteMap:function(a,b,c,d,e,f,
h){var l=b.width|0,m=b.height|0;a=a.getPixels(b);b=0;for(var k=m*l;b<k;){var g=b++;var n=a.readUnsignedInt();var q=null==h?n&-16777216:h[n>>24&255];var p=null==d?n&16711680:d[n>>16&255];var r=null==e?n&65280:e[n>>8&255];n=null==f?n&255:f[n&255];p=q+p+r+n;a.position=4*g;a.writeUnsignedInt(p)}a.position=0;d=ha.__pool.get();d.setTo(c.x,c.y,l,m);this.setPixels(d,a);ha.__pool.release(d)},perlinNoise:function(a,b,c,d,e,f,h,l,m){null==l&&(l=!1);null==h&&(h=7);this.readable&&(new Tj(d,c,h,l,.5,e,.15)).fill(this,
a,b,0)},scroll:function(a,b){this.readable&&this.image.scroll(a,b)},setPixel:function(a,b,c){this.readable&&this.image.setPixel(a,b,c,1)},setPixel32:function(a,b,c){this.readable&&this.image.setPixel32(a,b,c,1)},setPixels:function(a,b){if(this.readable&&null!=a){var c=a.width*a.height*4;if(za.toFloat(b.length-b.position)<c)throw u.thrown(new Fc("End of file was encountered.",2030));this.image.setPixels(a.__toLimeRectangle(),Mb.toBytePointer(b),1,Gu.toLimeEndian(b.__endian))}},setVector:function(a,
b){var c=new Nb(0);Mb.set_length(c,4*b.get_length());for(b=b.iterator();b.hasNext();){var d=b.next();c.writeUnsignedInt(d)}c.position=0;this.setPixels(a,c)},threshold:function(a,b,c,d,e,f,h,l){null==l&&(l=!1);null==h&&(h=-1);null==f&&(f=0);return null==a||null==b||null==c||b.x>a.width||b.y>a.height||c.x>this.width||c.y>this.height?0:this.image.threshold(a.image,b.__toLimeRectangle(),c.__toLimeVector2(),d,e,f,h,l,1)},unlock:function(a){},__applyAlpha:function(a){ua.convertToCanvas(this.image);ua.createImageData(this.image);
for(var b=this.image.buffer.data,c=0,d=Mb.get_length(a);c<d;){var e=c++;b[4*e+3]=a.readUnsignedByte()}this.image.version++},__drawCairo:function(a,b){},__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,
e=c.__state.renderToTextureDepthStencil,f=c.__state.renderToTextureAntiAlias,h=c.__state.renderToTextureSurfaceSelector;c.setRenderToTexture(this.getTexture(c),!0);b.__render(a);null!=d?c.setRenderToTexture(d,e,f,h):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"==Sa.get_current().stage.__renderer.__type){c=Sa.get_current().stage.__renderer.__context3D;var d=!this.rect.equals(a),
e=c.__state.renderToTexture,f=c.__state.renderToTextureDepthStencil,h=c.__state.renderToTextureAntiAlias,l=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!=e?c.setRenderToTexture(e,f,h,l):c.setRenderToBackBuffer()}else this.readable&&this.image.fillRect(a.__toLimeRectangle(),b,1)},__fromBase64:function(a,b){a=
Lb.fromBase64(a,b);this.__fromImage(a)},__fromBytes:function(a,b){a=Lb.fromBytes(Mb.toBytes(a));this.__fromImage(a);null!=b&&this.__applyAlpha(b)},__fromFile:function(a){a=Lb.fromFile(a);this.__fromImage(a)},__fromImage:function(a){null!=a&&null!=a.buffer&&(this.image=a,this.width=a.width,this.height=a.height,this.rect=new ha(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=ha.__pool.get();this.rect.__transform(c,
b);a.__expand(c.x,c.y,c.width,c.height);ha.__pool.release(c)},__loadFromBase64:function(a,b){var c=this;return Lb.loadFromBase64(a,b).then(function(a){c.__fromImage(a);return Ja.withValue(c)})},__loadFromBytes:function(a,b){var c=this;return Lb.loadFromBytes(Mb.toBytes(a)).then(function(a){c.__fromImage(a);null!=b&&c.__applyAlpha(b);return Ja.withValue(c)})},__loadFromFile:function(a){var b=this;return Lb.loadFromFile(a).then(function(a){b.__fromImage(a);return Ja.withValue(b)})},__resize:function(a,
b){this.width=a;this.height=b;this.rect.width=a;this.rect.height=b;this.__textureWidth=a;this.__textureHeight=b},__setUVRect:function(a,b,c,d,e){if(null!=this.getVertexBuffer(a)&&(d!=this.__uvRect.width||e!=this.__uvRect.height||b!=this.__uvRect.x||c!=this.__uvRect.y)){null==this.__uvRect&&(this.__uvRect=new ha);this.__uvRect.setTo(b,c,d,e);a=0<this.__textureWidth?b/this.__textureWidth:0;c=0<this.__textureHeight?c/this.__textureHeight:0;b=0<this.__textureWidth?d/this.__textureWidth:0;var f=0<this.__textureHeight?
e/this.__textureHeight:0;this.__vertexBufferData[0]=d;this.__vertexBufferData[1]=e;this.__vertexBufferData[3]=a+b;this.__vertexBufferData[4]=c+f;this.__vertexBufferData[15]=e;this.__vertexBufferData[17]=a;this.__vertexBufferData[18]=c+f;this.__vertexBufferData[28]=d;this.__vertexBufferData[31]=a+b;this.__vertexBufferData[32]=c;this.__vertexBufferData[45]=a;this.__vertexBufferData[46]=c;this.__vertexBuffer.uploadFromTypedArray(Rh.toArrayBufferView(this.__vertexBufferData))}},__sync:function(){ua.sync(this.image,
!1)},__update:function(a,b){this.__updateTransforms()},__updateTransforms:function(a){null==a?this.__worldTransform.identity():this.__worldTransform.copyFrom(a);this.__renderTransform.copyFrom(this.__worldTransform)},__class__:xb};var Ge=function(){L.call(this);this.__allowSmoothing=!0;this.__tempColorTransform=new tc;this.__worldAlpha=1};g["openfl.display.DisplayObjectRenderer"]=Ge;Ge.__name__="openfl.display.DisplayObjectRenderer";Ge.__super__=L;Ge.prototype=r(L.prototype,{__allowSmoothing:null,
__blendMode:null,__cleared:null,__context:null,__overrideBlendMode:null,__roundPixels:null,__stage:null,__tempColorTransform:null,__transparent:null,__type:null,__worldAlpha:null,__worldColorTransform:null,__worldTransform:null,__clear:function(){},__getAlpha:function(a){return a*this.__worldAlpha},__getColorTransform:function(a){return null!=this.__worldColorTransform?(this.__tempColorTransform.__copyFrom(this.__worldColorTransform),this.__tempColorTransform.__combine(a),this.__tempColorTransform):
a},__popMask:function(){},__popMaskObject:function(a,b){},__popMaskRect:function(){},__pushMask:function(a){},__pushMaskObject:function(a,b){},__pushMaskRect:function(a,b){},__render:function(a){},__renderEvent:function(a){if(null!=a.__customRenderEvent&&a.__renderable){a.__customRenderEvent.allowSmoothing=this.__allowSmoothing;a.__customRenderEvent.objectMatrix.copyFrom(a.__renderTransform);a.__customRenderEvent.objectColorTransform.__copyFrom(a.__worldColorTransform);a.__customRenderEvent.renderer=
this;switch(this.__type){case "cairo":a.__customRenderEvent.type="renderCairo";break;case "canvas":a.__customRenderEvent.type="renderCanvas";break;case "dom":a.__customRenderEvent.type=null!=a.stage&&a.__worldVisible?"renderDOM":"clearDOM";break;case "opengl":this.__cleared||this.__clear();this.setShader(a.__worldShader);this.__context3D.__flushGL();a.__customRenderEvent.type="renderOpenGL";break;default:return}this.__setBlendMode(a.__worldBlendMode);this.__pushMaskObject(a);a.dispatchEvent(a.__customRenderEvent);
this.__popMaskObject(a);"opengl"==this.__type&&this.setViewport()}},__resize:function(a,b){},__setBlendMode:function(a){},__shouldCacheHardware:function(a,b){if(null==a)return null;switch(a.__drawableType){case 4:case 5:if(1==b)return!0;b=this.__shouldCacheHardware_DisplayObject(a,b);if(1==b)return!0;if(null!=a.__children){var c=0;for(a=a.__children;c<a.length;){var d=a[c];++c;b=this.__shouldCacheHardware_DisplayObject(d,b);if(1==b)return!0}}return b;case 7:return 1==b?!0:!1;case 9:return!0;default:return this.__shouldCacheHardware_DisplayObject(a,
b)}},__shouldCacheHardware_DisplayObject:function(a,b){return 1==b||null!=a.__filters?!0:0==b||null!=a.__graphics&&!wc.isCompatible(a.__graphics)?!1:null},__updateCacheBitmap:function(a,b){if(null==a)return!1;switch(a.__drawableType){case 7:(null!=a.__filters||"opengl"!=this.__type||null!=a.__cacheBitmap||a.__domRender)&&b&&(a.__renderDirty=!0)}return!1},__class__:Ge});var cq=function(a){Ge.call(this)};g["openfl.display.CairoRenderer"]=cq;cq.__name__="openfl.display.CairoRenderer";cq.__super__=Ge;
cq.prototype=r(Ge.prototype,{cairo:null,__matrix:null,__matrix3:null,applyMatrix:function(a,b){null==b&&(b=this.cairo);this.__matrix.copyFrom(a);this.cairo==b&&null!=this.__worldTransform&&this.__matrix.concat(this.__worldTransform);this.__matrix3.a=this.__matrix.a;this.__matrix3.b=this.__matrix.b;this.__matrix3.c=this.__matrix.c;this.__matrix3.d=this.__matrix.d;this.__roundPixels?(this.__matrix3.tx=Math.round(this.__matrix.tx),this.__matrix3.ty=Math.round(this.__matrix.ty)):(this.__matrix3.tx=this.__matrix.tx,
this.__matrix3.ty=this.__matrix.ty);b.set_matrix(this.__matrix3)},__clear:function(){if(null!=this.cairo&&(this.cairo.identityMatrix(),null!=this.__stage&&this.__stage.__clearBeforeRender)){var a=this.__blendMode;this.__setBlendMode(10);this.cairo.setSourceRGB(this.__stage.__colorSplit[0],this.__stage.__colorSplit[1],this.__stage.__colorSplit[2]);this.cairo.paint();this.__setBlendMode(a)}},__popMask:function(){this.cairo.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.cairo.restore()},__pushMask:function(a){this.cairo.save();this.applyMatrix(a.__renderTransform,this.cairo);this.cairo.newPath();this.__renderDrawableMask(a);this.cairo.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.cairo.save();this.applyMatrix(b,this.cairo);this.cairo.newPath();this.cairo.rectangle(a.x,a.y,a.width,a.height);this.cairo.clip()},__render:function(a){null!=this.cairo&&this.__renderDrawable(a)},__renderDrawable:function(a){if(null!=a)switch(a.__drawableType){case 6:!a.__renderable||0>=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__:cq});var Zh=function(a){this.pixelRatio=1;Ge.call(this);this.context=a;this.__tempMatrix=new Aa;this.__type="canvas"};g["openfl.display.CanvasRenderer"]=Zh;Zh.__name__="openfl.display.CanvasRenderer";Zh.__super__=Ge;Zh.prototype=r(Ge.prototype,{context:null,pixelRatio:null,__isDOM:null,__tempMatrix:null,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:dq.renderDrawable(a,this);break;case 2:$k.renderDrawable(a,this);break;case 3:Zi.renderDrawable(a,this);break;case 4:case 5:eq.renderDrawable(a,this);break;case 6:fq.renderDrawable(a,this);break;case 7:R.renderDrawable(a,
this);break;case 8:Ti.renderDrawable(a,this);break;case 9:pg.renderDrawable(a,this)}},__renderDrawableMask:function(a){if(null!=a)switch(a.__drawableType){case 0:dq.renderDrawableMask(a,this);break;case 2:$k.renderDrawableMask(a,this);break;case 3:Zi.renderDrawableMask(a,this);break;case 4:case 5:eq.renderDrawableMask(a,this);break;case 6:fq.renderDrawableMask(a,this);break;case 7:R.renderDrawableMask(a,this);break;case 8:Ti.renderDrawableMask(a,this);break;case 9:pg.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__:Zh});var Bs={fromInt:function(a){return a},fromString:function(a){switch(a){case "none":return 0;case "round":return 1;case "square":return 2;default:return null}},toInt:function(a){return a},toString:function(a){switch(a){case 0:return"none";case 1:return"round";case 2:return"square";default:return null}}},Pg=function(a){ka.call(this);
this.__drawableType=10;this.__element=a};g["openfl.display.DOMElement"]=Pg;Pg.__name__="openfl.display.DOMElement";Pg.__super__=ka;Pg.prototype=r(ka.prototype,{__active:null,__element:null,__class__:Pg});var al=function(a){this.pixelRatio=1;Ge.call(this);this.element=a;ka.__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 Zh(null);this.__canvasRenderer.__isDOM=!0};g["openfl.display.DOMRenderer"]=al;al.__name__="openfl.display.DOMRenderer";al.__super__=Ge;al.prototype=r(Ge.prototype,{element:null,pixelRatio:null,__canvasRenderer:null,
__clipRects:null,__currentClipRect:null,__numClipRects:null,__transformOriginProperty:null,__transformProperty:null,__vendorPrefix:null,__z:null,applyStyle:function(a,b){null!=a&&null!=b&&(null!=a.__style&&b.parentElement==this.element||this.__initializeElement(a,b),a.__style=b.style,this.__updateClip(a),this.__applyStyle(a,!0,!0,!0))},clearStyle:function(a){null!=a&&a.parentElement==this.element&&this.element.removeChild(a)},__applyStyle:function(a,b,c,d){var e=a.__style;if(b&&a.__renderTransformChanged){b=
a.__renderTransform;var f=this.__roundPixels;null==f&&(f=!1);e.setProperty(this.__transformProperty,f?"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,e.setProperty("z-index",null==a.__worldZ?"null":""+a.__worldZ,null));c&&a.__worldAlphaChanged&&(1>a.__worldAlpha?e.setProperty("opacity",null==a.__worldAlpha?
"null":""+a.__worldAlpha,null):e.removeProperty("opacity"));d&&a.__worldClipChanged&&(null==a.__worldClip?e.removeProperty("clip"):(c=a.__worldClip,e.setProperty("clip","rect("+c.y+"px, "+c.get_right()+"px, "+c.get_bottom()+"px, "+c.x+"px)",null)));a.__getInteractive(null)&&!N.__cast(a,Na).mouseEnabled?e.setProperty("pointer-events","none",null):e.removeProperty("pointer-events")},__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(){0<this.__numClipRects&&(this.__numClipRects--,
this.__currentClipRect=0<this.__numClipRects?this.__clipRects[this.__numClipRects-1]:null)},__pushMask:function(a){this.__pushMaskRect(a.getBounds(a),a.__renderTransform)},__pushMaskObject:function(a,b){null==b&&(b=!0);b&&null!=a.__scrollRect&&this.__pushMaskRect(a.__scrollRect,a.__renderTransform);null!=a.__mask&&this.__pushMask(a.__mask)},__pushMaskRect:function(a,b){this.__numClipRects==this.__clipRects.length&&(this.__clipRects[this.__numClipRects]=new ha);var c=this.__clipRects[this.__numClipRects];
a.__transform(c,b);0<this.__numClipRects&&(a=this.__clipRects[this.__numClipRects-1],c.__contract(a.x,a.y,a.width,a.height));0>c.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:xc.renderDrawable(a,this);break;case 3:qg.renderDrawable(a,
this);break;case 4:case 5:gq.renderDrawable(a,this);break;case 6:hq.renderDrawable(a,this);break;case 7:Ob.renderDrawable(a,this);break;case 8:mh.renderDrawable(a,this);break;case 9:qh.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),qg.renderDrawable(a,this)}},__renderDrawableClear:function(a){if(null!=
a)switch(a.__drawableType){case 2:xc.renderDrawableClear(a,this);break;case 3:qg.renderDrawableClear(a,this);break;case 4:case 5:gq.renderDrawableClear(a,this);break;case 6:hq.renderDrawableClear(a,this);break;case 7:Ob.renderDrawableClear(a,this);break;case 8:mh.renderDrawableClear(a,this);break;case 9:qh.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 ha);var b=ha.__pool.get(),c=Aa.__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);ha.__pool.release(b);Aa.__pool.release(c)}},__class__:al});var We=function(a){this.byteCode=a;this.precisionHint=1;this.__glSourceDirty=!0;this.__numPasses=
1;this.__data=Ru._new(a)};g["openfl.display.Shader"]=We;We.__name__="openfl.display.Shader";We.prototype={byteCode:null,glProgram:null,precisionHint:null,program:null,__alpha:null,__bitmap:null,__colorMultiplier:null,__colorOffset:null,__context:null,__data:null,__glFragmentSource:null,__glSourceDirty:null,__glVertexSource:null,__hasColorTransform:null,__inputBitmapData:null,__isGenerated:null,__matrix:null,__numPasses:null,__paramBool:null,__paramFloat:null,__paramInt:null,__position:null,__textureCoord:null,
__texture:null,__textureSize:null,__clearUseArray:function(){for(var a=0,b=this.__paramBool;a<b.length;){var c=b[a];++a;c.__useArray=!1}a=0;for(b=this.__paramFloat;a<b.length;)c=b[a],++a,c.__useArray=!1;a=0;for(b=this.__paramInt;a<b.length;)c=b[a],++a,c.__useArray=!1},__createGLShader:function(a,b){var c=this.__context.gl,d=c.createShader(b);c.shaderSource(d,a);c.compileShader(d);var e=c.getShaderInfoLog(d),f=c.getShaderParameter(d,c.COMPILE_STATUS);if(null!=e||0==f)b=(0==f?"Error":"Info")+(b==c.VERTEX_SHADER?
" compiling vertex shader":" compiling fragment shader"),b=b+("\n"+e)+("\n"+a),0==f?Ea.error(b,{fileName:"openfl/display/Shader.hx",lineNumber:334,className:"openfl.display.Shader",methodName:"__createGLShader"}):null!=e&&Ea.debug(b,{fileName:"openfl/display/Shader.hx",lineNumber:335,className:"openfl.display.Shader",methodName:"__createGLShader"});return d},__createGLProgram:function(a,b){var c=this.__context.gl;a=this.__createGLShader(a,c.VERTEX_SHADER);var d=this.__createGLShader(b,c.FRAGMENT_SHADER);
b=c.createProgram();for(var e=0,f=this.__paramFloat;e<f.length;){var h=f[e];++e;if(-1<h.name.indexOf("Position")&&ia.startsWith(h.name,"openfl_")){c.bindAttribLocation(b,0,h.name);break}}c.attachShader(b,a);c.attachShader(b,d);c.linkProgram(b);0==c.getProgramParameter(b,c.LINK_STATUS)&&(c="Unable to initialize the shader program\n"+c.getProgramInfoLog(b),Ea.error(c,{fileName:"openfl/display/Shader.hx",lineNumber:368,className:"openfl.display.Shader",methodName:"__createGLProgram"}));return b},__disable:function(){null!=
this.program&&this.__disableGL()},__disableGL:function(){for(var a=this.__context.gl,b=0,c=0,d=this.__inputBitmapData;c<d.length;){var e=d[c];++c;e.__disableGL(this.__context,b);++b}c=0;for(d=this.__paramBool;c<d.length;)b=d[c],++c,b.__disableGL(this.__context);c=0;for(d=this.__paramFloat;c<d.length;)b=d[c],++c,b.__disableGL(this.__context);c=0;for(d=this.__paramInt;c<d.length;)b=d[c],++c,b.__disableGL(this.__context);this.__context.__bindGLArrayBuffer(null);"opengl"==this.__context.__context.type&&
a.disable(a.TEXTURE_2D)},__enable:function(){this.__init();null!=this.program&&this.__enableGL()},__enableGL:function(){for(var a=0,b=this.__context.gl,c=0,d=this.__inputBitmapData;c<d.length;){var e=d[c];++c;b.uniform1i(e.index,a);++a}"opengl"==this.__context.__context.type&&0<a&&b.enable(b.TEXTURE_2D)},__init:function(){null==this.__data&&(this.__data=Ru._new(null));null==this.__glFragmentSource||null==this.__glVertexSource||null!=this.program&&!this.__glSourceDirty||this.__initGL()},__initGL:function(){if(this.__glSourceDirty||
null==this.__paramBool)this.__glSourceDirty=!1,this.program=null,this.__inputBitmapData=[],this.__paramBool=[],this.__paramFloat=[],this.__paramInt=[],this.__processGLData(this.get_glVertexSource(),"attribute"),this.__processGLData(this.get_glVertexSource(),"uniform"),this.__processGLData(this.get_glFragmentSource(),"uniform");if(null!=this.__context&&null==this.program){var a=this.__context.gl,b="#ifdef GL_ES\n\t\t\t\t"+(1==this.precisionHint?"#ifdef GL_FRAGMENT_PRECISION_HIGH\n\t\t\t\tprecision highp float;\n\t\t\t\t#else\n\t\t\t\tprecision mediump float;\n\t\t\t\t#endif":
"precision lowp float;")+"\n\t\t\t\t#endif\n\t\t\t\t",c=b+this.get_glVertexSource();b+=this.get_glFragmentSource();var d=c+b;Object.prototype.hasOwnProperty.call(this.__context.__programs.h,d)?this.program=this.__context.__programs.h[d]:(this.program=this.__context.createProgram(1),this.program.__glProgram=this.__createGLProgram(c,b),this.__context.__programs.h[d]=this.program);if(null!=this.program){this.glProgram=this.program.__glProgram;c=0;for(b=this.__inputBitmapData;c<b.length;)d=b[c],++c,d.index=
d.__isUniform?a.getUniformLocation(this.glProgram,d.name):a.getAttribLocation(this.glProgram,d.name);c=0;for(b=this.__paramBool;c<b.length;)d=b[c],++c,d.index=d.__isUniform?a.getUniformLocation(this.glProgram,d.name):a.getAttribLocation(this.glProgram,d.name);c=0;for(b=this.__paramFloat;c<b.length;)d=b[c],++c,d.index=d.__isUniform?a.getUniformLocation(this.glProgram,d.name):a.getAttribLocation(this.glProgram,d.name);c=0;for(b=this.__paramInt;c<b.length;)d=b[c],++c,d.index=d.__isUniform?a.getUniformLocation(this.glProgram,
d.name):a.getAttribLocation(this.glProgram,d.name)}}},__processGLData:function(a,b){var c=0,d;for(d="uniform"==b?new fa("uniform ([A-Za-z0-9]+) ([A-Za-z0-9_]+)",""):new fa("attribute ([A-Za-z0-9]+) ([A-Za-z0-9_]+)","");d.matchSub(a,c);){var e=d.matched(1);var f=d.matched(2);if(!ia.startsWith(f,"gl_")){c="uniform"==b;if(ia.startsWith(e,"sampler")){e=new iq;e.name=f;e.__isUniform=c;this.__inputBitmapData.push(e);switch(f){case "bitmap":this.__bitmap=e;break;case "openfl_Texture":this.__texture=e}this.__data[f]=
e;this.__isGenerated&&(this[f]=e)}else if(!Object.prototype.hasOwnProperty.call(this.__data,f)||null==J.field(this.__data,f)){switch(e){case "bool":var h=0;break;case "bvec2":h=1;break;case "bvec3":h=2;break;case "bvec4":h=3;break;case "dvec2":case "vec2":h=5;break;case "dvec3":case "vec3":h=6;break;case "dvec4":case "vec4":h=7;break;case "double":case "float":h=4;break;case "mat2":case "mat2x2":h=12;break;case "mat2x3":h=13;break;case "mat2x4":h=14;break;case "mat3x2":h=15;break;case "mat3":case "mat3x3":h=
16;break;case "mat3x4":h=17;break;case "mat4x2":h=18;break;case "mat4x3":h=19;break;case "mat4":case "mat4x4":h=20;break;case "int":case "uint":h=8;break;case "ivec2":case "uvec2":h=9;break;case "ivec3":case "uvec3":h=10;break;case "ivec4":case "uvec4":h=11;break;default:h=null}switch(h){case 1:case 5:case 9:e=2;break;case 2:case 6:case 10:e=3;break;case 3:case 7:case 11:case 12:e=4;break;case 16:e=9;break;case 20:e=16;break;default:e=1}switch(h){case 12:var l=2;break;case 16:l=3;break;case 20:l=
4;break;default:l=1}switch(h){case 0:case 1:case 2:case 3:var m=new bl;m.set_name(f);m.type=h;m.__arrayLength=l;m.__isBool=!0;m.__isUniform=c;m.__length=e;this.__paramBool.push(m);"openfl_HasColorTransform"==f&&(this.__hasColorTransform=m);this.__data[f]=m;this.__isGenerated&&(this[f]=m);break;case 8:case 9:case 10:case 11:m=new bl;m.set_name(f);m.type=h;m.__arrayLength=l;m.__isInt=!0;m.__isUniform=c;m.__length=e;this.__paramInt.push(m);this.__data[f]=m;this.__isGenerated&&(this[f]=m);break;default:m=
new bl;m.set_name(f);m.type=h;m.__arrayLength=l;0<l&&(h=l*l,h=null!=h?new Float32Array(h):null,m.__uniformMatrix=h);m.__isFloat=!0;m.__isUniform=c;m.__length=e;this.__paramFloat.push(m);if(ia.startsWith(f,"openfl_"))switch(f){case "openfl_Alpha":this.__alpha=m;break;case "openfl_ColorMultiplier":this.__colorMultiplier=m;break;case "openfl_ColorOffset":this.__colorOffset=m;break;case "openfl_Matrix":this.__matrix=m;break;case "openfl_Position":this.__position=m;break;case "openfl_TextureCoord":this.__textureCoord=
m;break;case "openfl_TextureSize":this.__textureSize=m}this.__data[f]=m;this.__isGenerated&&(this[f]=m)}}f=d.matchedPos();c=f.pos+f.len}}},__update:function(){null!=this.program&&this.__updateGL()},__updateFromBuffer:function(a,b){null!=this.program&&this.__updateGLFromBuffer(a,b)},__updateGL:function(){for(var a=0,b=0,c=this.__inputBitmapData;b<c.length;){var d=c[b];++b;d.__updateGL(this.__context,a);++a}b=0;for(c=this.__paramBool;b<c.length;)a=c[b],++b,a.__updateGL(this.__context);b=0;for(c=this.__paramFloat;b<
c.length;)a=c[b],++b,a.__updateGL(this.__context);b=0;for(c=this.__paramInt;b<c.length;)a=c[b],++b,a.__updateGL(this.__context)},__updateGLFromBuffer:function(a,b){for(var c=0,d,e,f,h,l,m=0,k=a.inputCount;m<k;)l=m++,d=a.inputRefs[l],e=a.inputs[l],f=a.inputFilter[l],h=a.inputMipFilter[l],l=a.inputWrap[l],null!=e&&(d.__updateGL(this.__context,c,e,f,h,l),++c);m=this.__context.gl;0<a.paramDataLength?(null==a.paramDataBuffer&&(a.paramDataBuffer=m.createBuffer()),this.__context.__bindGLArrayBuffer(a.paramDataBuffer),
cc.bufferData(m,m.ARRAY_BUFFER,a.paramData,m.DYNAMIC_DRAW)):this.__context.__bindGLArrayBuffer(null);e=d=c=0;f=a.paramBoolCount;h=a.paramFloatCount;var g=a.paramData,n=null,q=null,p=null;m=0;for(k=a.paramCount;m<k;){l=m++;var r=!1;if(l<f){var v=a.paramRefs_Bool[c];for(var A=0,u=a.overrideBoolCount;A<u;){var x=A++;if(v.name==a.overrideBoolNames[x]){n=a.overrideBoolValues[x];r=!0;break}}r?v.__updateGL(this.__context,n):v.__updateGLFromBuffer(this.__context,g,a.paramPositions[l],a.paramLengths[l],b);
++c}else if(l<f+h){v=a.paramRefs_Float[d];A=0;for(u=a.overrideFloatCount;A<u;)if(x=A++,v.name==a.overrideFloatNames[x]){q=a.overrideFloatValues[x];r=!0;break}r?v.__updateGL(this.__context,q):v.__updateGLFromBuffer(this.__context,g,a.paramPositions[l],a.paramLengths[l],b);++d}else{v=a.paramRefs_Int[e];A=0;for(u=a.overrideIntCount;A<u;)if(x=A++,v.name==a.overrideIntNames[x]){p=a.overrideIntValues[x];r=!0;break}r?v.__updateGL(this.__context,p):v.__updateGLFromBuffer(this.__context,g,a.paramPositions[l],
a.paramLengths[l],b);++e}}},get_data:function(){(this.__glSourceDirty||null==this.__data)&&this.__init();return this.__data},set_data:function(a){return this.__data=a},get_glFragmentSource:function(){return this.__glFragmentSource},set_glFragmentSource:function(a){a!=this.__glFragmentSource&&(this.__glSourceDirty=!0);return this.__glFragmentSource=a},get_glVertexSource:function(){return this.__glVertexSource},set_glVertexSource:function(a){a!=this.__glVertexSource&&(this.__glSourceDirty=!0);return this.__glVertexSource=
a},__class__:We,__properties__:{set_glVertexSource:"set_glVertexSource",get_glVertexSource:"get_glVertexSource",set_glFragmentSource:"set_glFragmentSource",get_glFragmentSource:"get_glFragmentSource",set_data:"set_data",get_data:"get_data"}};var jq=function(a){null==this.__glFragmentSource&&(this.__glFragmentSource="varying 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 bool openfl_HasColorTransform;\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\n\t\tif (color.a == 0.0) {\n\n\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t} else if (openfl_HasColorTransform) {\n\n\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\n\t\t\tmat4 colorMultiplier = mat4 (0);\n\t\t\tcolorMultiplier[0][0] = openfl_ColorMultiplierv.x;\n\t\t\tcolorMultiplier[1][1] = openfl_ColorMultiplierv.y;\n\t\t\tcolorMultiplier[2][2] = openfl_ColorMultiplierv.z;\n\t\t\tcolorMultiplier[3][3] = 1.0; // openfl_ColorMultiplierv.w;\n\n\t\t\tcolor = clamp (openfl_ColorOffsetv + (color * colorMultiplier), 0.0, 1.0);\n\n\t\t\tif (color.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}");
We.call(this,a);this.__isGenerated=!0;this.__initGL()};g["openfl.display.DisplayObjectShader"]=jq;jq.__name__="openfl.display.DisplayObjectShader";jq.__super__=We;jq.prototype=r(We.prototype,{openfl_Alpha:null,openfl_ColorMultiplier:null,openfl_ColorOffset:null,openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_HasColorTransform:null,openfl_TextureSize:null,openfl_Texture:null,__class__:jq});var Bb=function(){this.__renderedOnCanvasWhileOnDOM=this.__forceCachedBitmapUpdate=!1;
this.__mouseScrollVCounter=0;Na.call(this);this.__drawableType=7;this.__selectionIndex=this.__caretIndex=-1;this.__displayAsPassword=!1;this.__graphics=new ye(this);this.__textEngine=new nb(this);this.__layoutDirty=!0;this.__offsetY=this.__offsetX=0;this.__mouseWheelEnabled=!0;this.__text="";this.doubleClickEnabled=!0;null==Bb.__defaultTextFormat&&(Bb.__defaultTextFormat=new ib("Times New Roman",12,0,!1,!1,!1,"","",3,0,0,0,0),Bb.__defaultTextFormat.blockIndent=0,Bb.__defaultTextFormat.bullet=!1,Bb.__defaultTextFormat.letterSpacing=
0,Bb.__defaultTextFormat.kerning=!1);this.__textFormat=Bb.__defaultTextFormat.clone();this.__textEngine.textFormatRanges.push(new Xe(this.__textFormat,0,0));this.addEventListener("mouseDown",k(this,this.this_onMouseDown));this.addEventListener("focusIn",k(this,this.this_onFocusIn));this.addEventListener("focusOut",k(this,this.this_onFocusOut));this.addEventListener("keyDown",k(this,this.this_onKeyDown));this.addEventListener("mouseWheel",k(this,this.this_onMouseWheel));this.addEventListener("doubleClick",
k(this,this.this_onDoubleClick))};g["openfl.text.TextField"]=Bb;Bb.__name__="openfl.text.TextField";Bb.__super__=Na;Bb.prototype=r(Na.prototype,{__bounds:null,__caretIndex:null,__cursorTimer:null,__dirty:null,__displayAsPassword:null,__domRender:null,__inputEnabled:null,__isHTML:null,__layoutDirty:null,__mouseScrollVCounter:null,__mouseWheelEnabled:null,__offsetX:null,__offsetY:null,__selectionIndex:null,__showCursor:null,__text:null,__htmlText:null,__textEngine:null,__textFormat:null,__touchPoints:null,
__div:null,__renderedOnCanvasWhileOnDOM:null,__rawHtmlText:null,__forceCachedBitmapUpdate:null,appendText:function(a){null!=a&&""!=a&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__updateText(this.__text+a),this.__selectionIndex=this.__caretIndex=this.__textEngine.textFormatRanges.get(this.__textEngine.textFormatRanges.get_length()-1).end=this.__text.length)},getCharBoundaries:function(a){if(0>a||a>this.__text.length-1)return null;
var b=new ha;return this.__getCharBoundaries(a,b)?b:null},getCharIndexAtPoint:function(a,b){if(2>=a||a>this.get_width()+4||0>=b||b>this.get_height()+4)return-1;this.__updateLayout();a+=this.get_scrollH();b+=this.__scrollY();for(var c=this.__textEngine.layoutGroups.iterator();c.hasNext();){var d=c.next();if(b>=d.offsetY&&b<=d.offsetY+d.height&&a>=d.offsetX&&a<=d.offsetX+d.width){c=b=0;for(var e=d.positions.length;c<e;){var f=c++;b+=d.positions[f];if(a<=d.offsetX+b)return d.startIndex+f}return d.endIndex}}return-1},
getFirstCharInParagraph:function(a){if(0>a||a>this.get_text().length)return-1;if(0==this.__textEngine.lineBreaks.get_length())return 0;for(var b=0,c=this.__textEngine.lineBreaks.get_length();b<c;){var d=b++;if(a<=this.__textEngine.lineBreaks.get(d))return 0==d?0:this.__textEngine.lineBreaks.get(d-1)+1}return this.__textEngine.lineBreaks.get(this.__textEngine.lineBreaks.get_length()-1)+1},getLineIndexAtPoint:function(a,b){this.__updateLayout();if(2>=a||a>this.get_width()+4||0>=b||b>this.get_height()+
4)return-1;b+=this.__scrollY();for(a=this.__textEngine.layoutGroups.iterator();a.hasNext();){var c=a.next();if(b>=c.offsetY&&b<=c.offsetY+c.height)return c.lineIndex}return-1},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 e=d.next();if(e.lineIndex==a)-1==b&&(b=e.startIndex);else if(e.lineIndex==a+1){c=e.startIndex;break}}-1==c&&(c=this.__text.length);return c-b},getLineMetrics:function(a){this.__updateLayout();var b=this.__textEngine.lineAscents.get(a),c=this.__textEngine.lineDescents.get(a),d=this.__textEngine.lineLeadings.get(a),e=this.__textEngine.lineHeights.get(a);a=this.__textEngine.lineWidths.get(a);switch(this.__textFormat.align){case 0:var f=
(this.__textEngine.width-a)/2;break;case 1:case 4:f=this.__textEngine.width-a-2;break;case 2:case 3:case 5:f=2}return new ht(f,a,e,b,c,d)},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},getLineText:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return null;for(var b=-1,c=-1,d=this.__textEngine.layoutGroups.iterator();d.hasNext();){var e=
d.next();if(e.lineIndex==a)-1==b&&(b=e.startIndex);else if(e.lineIndex==a+1){c=e.startIndex;break}}-1==c&&(c=this.__text.length);return this.__textEngine.text.substring(b,c)},getParagraphLength:function(a){if(0>a||a>this.get_text().length)return-1;var b=this.getFirstCharInParagraph(a);if(a>=this.get_text().length)return this.get_text().length-b+1;a=this.__textEngine.getLineBreakIndex(a)+1;0==a&&(a=this.__text.length);return a-b},getTextFormat:function(a,b){null==b&&(b=-1);null==a&&(a=-1);var c=null;
if(a>=this.get_text().length||-1>a||b>this.get_text().length||-1>b)throw u.thrown(new Bj("The supplied index is out of bounds"));-1==a&&(a=0);-1==b&&(b=this.get_text().length);if(a>=b)return new ib;for(var d=this.__textEngine.textFormatRanges.iterator();d.hasNext();){var e=d.next();if(e.start<=a&&e.end>a||e.start<b&&e.end>=b)null==c?c=e.format.clone():(e.format.font!=c.font&&(c.font=null),e.format.size!=c.size&&(c.size=null),e.format.color!=c.color&&(c.color=null),e.format.bold!=c.bold&&(c.bold=null),
e.format.italic!=c.italic&&(c.italic=null),e.format.underline!=c.underline&&(c.underline=null),e.format.url!=c.url&&(c.url=null),e.format.target!=c.target&&(c.target=null),e.format.align!=c.align&&(c.align=null),e.format.leftMargin!=c.leftMargin&&(c.leftMargin=null),e.format.rightMargin!=c.rightMargin&&(c.rightMargin=null),e.format.indent!=c.indent&&(c.indent=null),e.format.leading!=c.leading&&(c.leading=null),e.format.blockIndent!=c.blockIndent&&(c.blockIndent=null),e.format.bullet!=c.bullet&&(c.bullet=
null),e.format.kerning!=c.kerning&&(c.kerning=null),e.format.letterSpacing!=c.letterSpacing&&(c.letterSpacing=null),e.format.tabStops!=c.tabStops&&(c.tabStops=null))}null==c&&(c=new ib);return c},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())},setTextFormat:function(a,b,c){null==c&&(c=-1);null==b&&(b=-1);var d=this.get_text().length;-1==b?(-1==c&&(c=d),b=0):-1==c&&(c=b+1);if(b!=c){if(0>b||0>=c||c<b||b>=d||c>d)throw u.thrown(new Bj);if(0==b&&c==d){this.__textEngine.textFormatRanges.set_length(1);var e=this.__textEngine.textFormatRanges.get(0);e.start=0;e.end=d;e.format.__merge(a)}else{d=0;for(var f;d<this.__textEngine.textFormatRanges.get_length();)if(e=this.__textEngine.textFormatRanges.get(d),e.end<=b)++d;else if(e.start>=
c)break;else if(e.start<=b&&e.end>=c)if(e.start==b&&e.end==c){e.format=e.format.clone();e.format.__merge(a);break}else if(e.start==b)f=new Xe(e.format.clone(),b,c),f.format.__merge(a),this.__textEngine.textFormatRanges.insertAt(d,f),e.start=c,d+=2;else{e.end==c?(f=new Xe(e.format.clone(),b,c),f.format.__merge(a),this.__textEngine.textFormatRanges.insertAt(d+1,f)):(f=new Xe(e.format.clone(),b,c),f.format.__merge(a),this.__textEngine.textFormatRanges.insertAt(d+1,f),f=new Xe(e.format.clone(),c,e.end),
this.__textEngine.textFormatRanges.insertAt(d+2,f));e.end=b;break}else if(e.start>=b&&e.end<=c)e.start==b?(e.format=e.format.clone(),e.format.__merge(a),e.end=c):this.__textEngine.textFormatRanges.removeAt(d);else if(e.start>b&&e.end>b){e.start=c;break}else e.start<b&&e.end<=c?(f=new Xe(e.format.clone(),b,c),f.format.__merge(a),this.__textEngine.textFormatRanges.insertAt(d+1,f),e.end=b,d+=2):(++d,Ea.warn("You found a bug in OpenFL's text code! Please save a copy of your project and contact Joshua Granick (@singmajesty) so we can fix this.",
{fileName:"openfl/text/TextField.hx",lineNumber:1559,className:"openfl.text.TextField",methodName:"setTextFormat"}))}this.__layoutDirty=this.__dirty=!0;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())}},__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=
a<this.__textEngine.numLines-1?this.getLineOffset(a+1):this.__text.length},__caretBeginningOfPreviousLine:function(){var a=this.getLineIndexOfChar(this.__caretIndex);if(0<a){var b=this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex));this.__caretIndex=this.__caretIndex==b?this.getLineOffset(a-1):b}},__caretEndOfLine:function(){var a=this.getLineIndexOfChar(this.__caretIndex);this.__caretIndex=a<this.__textEngine.numLines-1?this.getLineOffset(a+1)-1:this.__text.length},__caretNextCharacter:function(){this.__caretIndex<
this.__text.length&&this.__caretIndex++},__caretNextLine:function(){var a=this.getLineIndexOfChar(this.__caretIndex);a<this.__textEngine.numLines-1&&(this.__caretIndex=this.__getCharIndexOnDifferentLine(this.get_caretIndex(),a+1))},__caretPreviousCharacter:function(){0<this.__caretIndex&&this.__caretIndex--},__caretPreviousLine:function(){var a=this.getLineIndexOfChar(this.__caretIndex);0<a&&(this.__caretIndex=this.__getCharIndexOnDifferentLine(this.get_caretIndex(),a-1))},__disableInput:function(){this.__inputEnabled&&
null!=this.stage&&(this.stage.window.__backend.setTextInputEnabled(!1),this.stage.window.onTextInput.remove(k(this,this.window_onTextInput)),this.stage.window.onKeyDown.remove(k(this,this.window_onKeyDown)),this.__inputEnabled=!1,this.__stopCursorTimer());this.removeEventListener("touchBegin",k(this,this.this_onTouchBegin))},__dispatch:function(a){if(2==a.eventPhase&&"mouseUp"==a.type){var b=this.__getGroup(this.__scrollMouseX(),this.__scrollMouseY(),!0);null!=b&&(b=b.format.url,null!=b&&""!=b&&(ia.startsWith(b,
"event:")?this.dispatchEvent(new Ye("link",!1,!1,G.substr(b,6,null))):Sa.getURL(new Kc(b))))}return Na.prototype.__dispatch.call(this,a)},__enableInput:function(){null!=this.stage&&(this.stage.window.__backend.setTextInputEnabled(!0),this.__inputEnabled||(this.stage.window.__backend.setTextInputEnabled(!0),this.stage.window.onTextInput.has(k(this,this.window_onTextInput))||(this.stage.window.onTextInput.add(k(this,this.window_onTextInput)),this.stage.window.onKeyDown.add(k(this,this.window_onKeyDown))),
this.__inputEnabled=!0,this.__startCursorTimer()),this.addEventListener("touchBegin",k(this,this.this_onTouchBegin)),this.__touchPoints=new Bc)},__getAdvance:function(a){return a},__getBounds:function(a,b){this.__updateLayout();var c=ha.__pool.get();c.copyFrom(this.__textEngine.bounds);b.tx+=this.__offsetX;b.ty+=this.__offsetY;c.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);ha.__pool.release(c)},__getCharBoundaries:function(a,b){if(0>a||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&&a<d.endIndex)try{for(var e=d.offsetX,f=0,h=a-d.startIndex;f<h;){var l=f++;e+=d.positions[l]}b.setTo(e,d.offsetY,d.positions[a-d.startIndex],d.ascent+d.descent);return!0}catch(m){wa.lastError=m}}return!1},__getCharIndexOnDifferentLine:function(a,b){if(0>a||a>this.__text.length||0>b||b>this.__textEngine.numLines-1)return-1;for(var c=null,d=null,e=this.__textEngine.layoutGroups.iterator();e.hasNext();){var f=
e.next();if(a>=f.startIndex&&a<=f.endIndex){c=f.offsetX;for(var h=0,l=a-f.startIndex;h<l;){var m=h++;c+=f.positions[m]}if(null!=d)return this.__getPosition(c,d)}if(f.lineIndex==b){d=f.offsetY+f.height/2;f=0;for(h=this.get_scrollV()-1;f<h;)l=f++,d-=this.__textEngine.lineHeights.get(l);if(null!=c)return this.__getPosition(c,d)}}return-1},__getCursor:function(){var a=this.__getGroup(this.__scrollMouseX(),this.__scrollMouseY(),!0);return null!=a&&""!=a.format.url?"button":this.__textEngine.selectable?
"ibeam":null},__getGroup:function(a,b,c){null==c&&(c=!1);this.__updateLayout();a+=this.get_scrollH();for(var d=0,e=this.get_scrollV()-1;d<e;){var f=d++;b+=this.__textEngine.lineHeights.get(f)}!c&&b>this.__textEngine.textHeight&&(b=this.__textEngine.textHeight);var h=!0;d=0;for(e=this.__textEngine.layoutGroups.get_length();d<e;){f=d++;var l=this.__textEngine.layoutGroups.get(f);f=f<this.__textEngine.layoutGroups.get_length()-1?this.__textEngine.layoutGroups.get(f+1):null;h&&(b<l.offsetY&&(b=l.offsetY),
a<l.offsetX&&(a=l.offsetX),h=!1);if(b>=l.offsetY&&b<=l.offsetY+l.height||!c&&null==f)if(a>=l.offsetX&&a<=l.offsetX+l.width||!c&&(null==f||f.lineIndex!=l.lineIndex))return l}return null},__getPosition:function(a,b){b=this.__getGroup(a,b);if(null==b)return this.__text.length;for(var c=0,d=0,e=b.positions.length;d<e;){var f=d++;c+=b.positions[f];if(a<=b.offsetX+c){if(a<=b.offsetX+(c-b.positions[f])+b.positions[f]/2)return b.startIndex+f;if(b.startIndex+f<b.endIndex)return b.startIndex+f+1;break}}return b.endIndex},
__scrollMouseX:function(){return this.get_scrollH()+this.get_mouseX()},__scrollMouseY:function(){return this.__scrollY()+this.get_mouseY()},__scrollY:function(){for(var a=0,b=0,c=this.get_scrollV()-1;b<c;){var d=b++;a+=this.__textEngine.lineHeights.get(d)}return a},__hitTest:function(a,b,c,d,e,f){if(!f.get_visible()||this.__isMask||e&&!this.mouseEnabled||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;this.__getRenderTransform();this.__updateLayout();c=this.__renderTransform;e=
c.a*c.d-c.b*c.c;var h=0==e?-c.tx:1/e*(c.c*(c.ty-b)+c.d*(a-c.tx));c=this.__renderTransform;e=c.a*c.d-c.b*c.c;return this.__textEngine.bounds.contains(h,0==e?-c.ty:1/e*(c.a*(b-c.ty)+c.b*(c.tx-a)))?(null!=d&&d.push(f),!0):!1},__hitTestMask:function(a,b){this.__getRenderTransform();this.__updateLayout();var c=this.__renderTransform,d=c.a*c.d-c.b*c.c,e=0==d?-c.tx:1/d*(c.c*(c.ty-b)+c.d*(a-c.tx));c=this.__renderTransform;d=c.a*c.d-c.b*c.c;return this.__textEngine.bounds.contains(e,0==d?-c.ty:1/d*(c.a*(b-
c.ty)+c.b*(c.tx-a)))?!0:!1},__replaceSelectedText:function(a,b){null==b&&(b=!0);null==a&&(a="");if(""!=a||this.__selectionIndex!=this.__caretIndex){var c=this.__caretIndex<this.__selectionIndex?this.__caretIndex:this.__selectionIndex,d=this.__caretIndex>this.__selectionIndex?this.__caretIndex:this.__selectionIndex;if(!(c==d&&0<this.__textEngine.maxChars&&this.__text.length==this.__textEngine.maxChars)){c>this.__text.length&&(c=this.__text.length);d>this.__text.length&&(d=this.__text.length);if(d<
c){var e=d;d=c;c=e}0>c&&(c=0);this.__replaceText(c,d,a,b)}}},__replaceText:function(a,b,c,d){if(!(b<a||0>a||b>this.__text.length||null==c)){d&&(c=this.__textEngine.restrictText(c),0<this.__textEngine.maxChars&&(d=this.__textEngine.maxChars-this.__text.length+(b-a),0>=d?c="":d<c.length&&(c=G.substr(c,0,d))));this.__updateText(this.__text.substring(0,a)+c+this.__text.substring(b));d=c.length-(b-a);for(var e=0,f;e<this.__textEngine.textFormatRanges.get_length();)f=this.__textEngine.textFormatRanges.get(e),
a==b?f.start==f.end?0!=f.start?Ea.warn("You found a bug in OpenFL's text code! Please save a copy of your project and contact Joshua Granick (@singmajesty) so we can fix this.",{fileName:"openfl/text/TextField.hx",lineNumber:2086,className:"openfl.text.TextField",methodName:"__replaceText"}):f.end+=d:f.end>=a&&(f.start>=a?(f.start+=d,f.end+=d):f.start<a&&f.end>=b&&(f.end+=d)):f.end>a&&(f.start>b?(f.start+=d,f.end+=d):f.start<=a&&f.end>b?f.end+=d:f.start>=a&&f.end<=b?this.__textEngine.textFormatRanges.splice(e--,
1):f.end>b&&f.start>a&&f.start<=b?(f.start=a,f.end+=d):f.start<a&&f.end>a&&f.end<=b&&(f.end=a)),++e;0==this.__textEngine.textFormatRanges.get_length()?this.__textEngine.textFormatRanges.push(new Xe(this.get_defaultTextFormat().clone(),0,c.length)):a==b&&0<this.__textEngine.textFormatRanges.get(0).start?this.__textEngine.textFormatRanges.unshift(new Xe(this.get_defaultTextFormat().clone(),0,this.__textEngine.textFormatRanges.get(0).start)):a!=b&&this.__textEngine.textFormatRanges.get(this.__textEngine.textFormatRanges.get_length()-
1).end<this.__text.length&&this.__textEngine.textFormatRanges.push(new Xe(this.get_defaultTextFormat().clone(),this.__textEngine.textFormatRanges.get(this.__textEngine.textFormatRanges.get_length()-1).end,this.__text.length));this.__selectionIndex=this.__caretIndex=a+c.length;this.__layoutDirty=this.__dirty=!0;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())}},__startCursorTimer:function(){},__startTextInput:function(){0>this.__caretIndex&&(this.__selectionIndex=this.__caretIndex=
this.__text.length);(ka.__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(){(ka.__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)}},__updateScrollH:function(){this.__updateLayout();if(this.get_textWidth()<=this.get_width()-4)this.set_scrollH(0);else{var a=this.get_scrollH();
if(0==this.__caretIndex||this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex))==this.__caretIndex)a=0;else{var b=ha.__pool.get(),c=!1;this.__caretIndex<this.__text.length&&(c=this.__getCharBoundaries(this.__caretIndex,b));c||(this.__getCharBoundaries(this.__caretIndex-1,b),b.x+=b.width);for(;b.x<a&&0<a;)a-=24;for(;b.x>a+this.get_width()-4;)a+=24;ha.__pool.release(b)}0<a&&1!=this.get_type()&&(b=this.getLineLength(this.getLineIndexOfChar(this.__caretIndex)),this.get_scrollH()+this.get_width()-
4>b&&this.set_scrollH(Math.ceil(b-this.get_width()+4)));0>a?this.set_scrollH(0):a>this.get_maxScrollH()?this.set_scrollH(this.get_maxScrollH()):this.set_scrollH(a)}},__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&&0<this.__caretIndex&&(a=this.getLineIndexOfChar(this.__caretIndex-1)+1);if(a+1<this.get_scrollV())this.set_scrollV(a+1);else if(a+1>this.get_bottomScrollV()){for(var b=
0;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())}},__updateMouseDrag:function(){this.get_mouseX()>this.get_width()-1?this.set_scrollH(this.get_scrollH()+(Math.max(Math.min(.1*(this.get_mouseX()-this.get_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()>this.get_height()-2?this.set_scrollV(Math.min(this.get_scrollV()+Math.max(Math.min(.03*(this.get_mouseY()-this.get_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)},__updateText:function(a){ka.__supportDOM&&this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=this.__text!=a);
this.__textEngine.set_text(a);this.__text=this.__textEngine.text;this.__text.length<this.__caretIndex&&(this.__selectionIndex=this.__caretIndex=this.__text.length);if(!this.__displayAsPassword||ka.__supportDOM&&!this.__renderedOnCanvasWhileOnDOM)this.__textEngine.set_text(this.__text);else{a="";for(var b=0,c=this.get_text().length;b<c;)b++,a+="*";this.__textEngine.set_text(a)}},__updateTransforms:function(a){Na.prototype.__updateTransforms.call(this,a);a=this.__renderTransform;var b=this.__offsetX,
c=this.__offsetY;a.tx=b*a.a+c*a.c+a.tx;a.ty=b*a.b+c*a.d+a.ty},get_antiAliasType:function(){return this.__textEngine.antiAliasType},set_antiAliasType:function(a){return this.__textEngine.antiAliasType=a},get_autoSize:function(){return this.__textEngine.autoSize},set_autoSize:function(a){a!=this.__textEngine.autoSize&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.autoSize=a},get_background:function(){return this.__textEngine.background},
set_background:function(a){a!=this.__textEngine.background&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.background=a},get_backgroundColor:function(){return this.__textEngine.backgroundColor},set_backgroundColor:function(a){a!=this.__textEngine.backgroundColor&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.backgroundColor=a},get_border:function(){return this.__textEngine.border},
set_border:function(a){a!=this.__textEngine.border&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.border=a},get_borderColor:function(){return this.__textEngine.borderColor},set_borderColor:function(a){a!=this.__textEngine.borderColor&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.borderColor=a},get_bottomScrollV:function(){this.__updateLayout();return this.__textEngine.get_bottomScrollV()},
get_caretIndex:function(){return this.__caretIndex},get_defaultTextFormat:function(){return this.__textFormat.clone()},set_defaultTextFormat:function(a){this.__textFormat.__merge(a);this.__dirty=this.__layoutDirty=!0;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return a},get_displayAsPassword:function(){return this.__displayAsPassword},set_displayAsPassword:function(a){a!=this.__displayAsPassword&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=
!0,this.__setParentRenderDirty()),this.__displayAsPassword=a,this.__updateText(this.__text));return a},get_embedFonts:function(){return this.__textEngine.embedFonts},set_embedFonts:function(a){return this.__textEngine.embedFonts=a},get_gridFitType:function(){return this.__textEngine.gridFitType},set_gridFitType:function(a){return this.__textEngine.gridFitType=a},get_height:function(){this.__updateLayout();return this.__textEngine.height*Math.abs(this.get_scaleY())},set_height:function(a){a!=this.__textEngine.height&&
(this.__setTransformDirty(),this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.height=a);return this.__textEngine.height*Math.abs(this.get_scaleY())},get_htmlText:function(){return this.__isHTML?this.__rawHtmlText:this.__text},set_htmlText:function(a){this.__isHTML&&this.__text==a||(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));this.__isHTML=!0;this.__rawHtmlText=
a;a=db.parse(a,this.__textFormat,this.__textEngine.textFormatRanges);if(ka.__supportDOM){1<this.__textEngine.textFormatRanges.get_length()&&this.__textEngine.textFormatRanges.splice(1,this.__textEngine.textFormatRanges.get_length()-1);var b=this.__textEngine.textFormatRanges.get(0);b.format=this.__textFormat;b.start=0;this.__renderedOnCanvasWhileOnDOM?(b.end=a.length,this.__updateText(a)):(b.end=this.__rawHtmlText.length,this.__updateText(this.__rawHtmlText))}else this.__updateText(a);this.__selectionIndex=
this.__caretIndex=0;return a},get_length:function(){return null!=this.__text?this.__text.length:0},get_maxChars:function(){return this.__textEngine.maxChars},set_maxChars:function(a){a!=this.__textEngine.maxChars&&(this.__textEngine.maxChars=a,this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return a},get_maxScrollH:function(){this.__updateLayout();return this.__textEngine.maxScrollH},get_maxScrollV:function(){this.__updateLayout();return this.__textEngine.get_maxScrollV()},
get_mouseWheelEnabled:function(){return this.__mouseWheelEnabled},set_mouseWheelEnabled:function(a){return this.__mouseWheelEnabled=a},get_multiline:function(){return this.__textEngine.multiline},set_multiline:function(a){return this.__textEngine.multiline=a},get_numLines:function(){this.__updateLayout();return this.__textEngine.numLines},get_restrict:function(){return this.__textEngine.restrict},set_restrict:function(a){this.__textEngine.restrict!=a&&(this.__textEngine.set_restrict(a),this.__updateText(this.__text));
return a},get_scrollH:function(){return this.__textEngine.scrollH},set_scrollH:function(a){this.__updateLayout();a>this.__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 W("scroll")));return this.__textEngine.scrollH},get_scrollV:function(){return this.__textEngine.get_scrollV()},set_scrollV:function(a){this.__updateLayout();
if(0<a&&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 W("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_sharpness:function(){return this.__textEngine.sharpness},set_sharpness:function(a){a!=this.__textEngine.sharpness&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.sharpness=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(this.__isHTML||this.__text!=a)this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());else return a;1<this.__textEngine.textFormatRanges.get_length()&&this.__textEngine.textFormatRanges.splice(1,this.__textEngine.textFormatRanges.get_length()-1);var b=this.__textEngine.textFormatRanges.get(0);b.format=this.__textFormat;
b.start=0;b.end=a.length;this.__isHTML=!1;this.__updateText(a);this.__selectionIndex=this.__caretIndex=0;return a},get_textColor:function(){return this.__textFormat.color},set_textColor:function(a){a!=this.__textFormat.color&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));for(var b=this.__textEngine.textFormatRanges.iterator();b.hasNext();)b.next().format.color=a;return this.__textFormat.color=a},get_textWidth:function(){this.__updateLayout();return this.__textEngine.textWidth},
get_textHeight:function(){this.__updateLayout();return this.__textEngine.textHeight},get_type:function(){return this.__textEngine.type},set_type:function(a){a!=this.__textEngine.type&&(1==a?(this.addEventListener("addedToStage",k(this,this.this_onAddedToStage)),this.this_onFocusIn(null),this.__textEngine.__useIntAdvances=!0):(this.removeEventListener("addedToStage",k(this,this.this_onAddedToStage)),this.__stopTextInput(),this.__textEngine.__useIntAdvances=null),this.__layoutDirty=this.__dirty=!0,
this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.type=a},get_width:function(){this.__updateLayout();return this.__textEngine.width*Math.abs(this.__scaleX)},set_width:function(a){a!=this.__textEngine.width&&(this.__setTransformDirty(),this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.width=a);return this.__textEngine.width*Math.abs(this.__scaleX)},get_wordWrap:function(){return this.__textEngine.wordWrap},
set_wordWrap:function(a){a!=this.__textEngine.wordWrap&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.wordWrap=a},get_x:function(){return this.__transform.tx+this.__offsetX},set_x:function(a){a!=this.__transform.tx+this.__offsetX&&this.__setTransformDirty();return this.__transform.tx=a-this.__offsetX},get_y:function(){return this.__transform.ty+this.__offsetY},set_y:function(a){a!=this.__transform.ty+this.__offsetY&&
this.__setTransformDirty();return this.__transform.ty=a-this.__offsetY},stage_onMouseMove:function(a){null!=this.stage&&this.get_selectable()&&0<=this.__selectionIndex&&(this.__updateLayout(),a=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY()),a!=this.__caretIndex&&(this.__caretIndex=a,a=!0,ka.__supportDOM&&(this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=!0),a=!1),a&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()))))},
stage_onMouseUp:function(a){if(null!=this.stage&&(this.stage.removeEventListener("enterFrame",k(this,this.this_onEnterFrame)),this.stage.removeEventListener("mouseMove",k(this,this.stage_onMouseMove)),this.stage.removeEventListener("mouseUp",k(this,this.stage_onMouseUp)),this.stage.get_focus()==this)){this.__getWorldTransform();this.__updateLayout();a=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY());var b=Math.max(this.__selectionIndex,a)|0;this.__selectionIndex=Math.min(this.__selectionIndex,
a)|0;this.__caretIndex=b;this.__inputEnabled&&(this.this_onFocusIn(null),this.__stopCursorTimer(),this.__startCursorTimer(),ka.__supportDOM&&this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=!0))}},stage_onTouchMove:function(a){if(0<this.__textEngine.lineHeights.get_length()&&1==vb.count(this.__touchPoints)){var b=this.__touchPoints.h[a.touchPointID],c=b.reminderY+a.stageY-b.y;this.set_scrollV(this.get_scrollV()-Math.floor(c/this.__textEngine.lineHeights.get(0)));b.reminderY=c%this.__textEngine.lineHeights.get(0);
b.y=a.stageY}},stage_onTouchEnd:function(a){this.stage.removeEventListener("touchMove",k(this,this.stage_onTouchMove));this.stage.removeEventListener("touchEnd",k(this,this.stage_onTouchEnd));this.__touchPoints.remove(a.touchPointID)},this_onAddedToStage:function(a){this.this_onFocusIn(null)},this_onEnterFrame:function(a){this.__updateMouseDrag()},this_onFocusIn:function(a){1==this.get_type()&&null!=this.stage&&this.stage.get_focus()==this&&this.__startTextInput()},this_onFocusOut:function(a){this.__stopCursorTimer();
null!=a.relatedObject&&a.relatedObject instanceof Bb?(null!=this.stage&&(this.stage.window.onTextInput.remove(k(this,this.window_onTextInput)),this.stage.window.onKeyDown.remove(k(this,this.window_onKeyDown))),this.__inputEnabled=!1):this.__stopTextInput();this.__selectionIndex!=this.__caretIndex&&(this.__selectionIndex=this.__caretIndex,this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()))},this_onKeyDown:function(a){this.get_selectable()&&1!=this.get_type()&&
67==a.keyCode&&(a.commandKey||a.ctrlKey)&&this.__caretIndex!=this.__selectionIndex&&Rd.set_text(this.__text.substring(this.__caretIndex,this.__selectionIndex))},this_onMouseDown:function(a){!this.get_selectable()&&1!=this.get_type()||null!=this.__touchPoints&&0<vb.count(this.__touchPoints)||(this.__updateLayout(),this.__selectionIndex=this.__caretIndex=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY()),ka.__supportDOM||(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=
!0,this.__setParentRenderDirty())),this.stage.addEventListener("enterFrame",k(this,this.this_onEnterFrame)),this.stage.addEventListener("mouseMove",k(this,this.stage_onMouseMove)),this.stage.addEventListener("mouseUp",k(this,this.stage_onMouseUp)))},this_onMouseWheel:function(a){this.get_mouseWheelEnabled()&&this.set_scrollV(Math.min(this.get_scrollV()-a.delta,this.get_maxScrollV())|0)},this_onDoubleClick:function(a){if(this.get_selectable()){this.__updateLayout();a="\n.!?, ;:()-_/".split("");var b=
this.__text,c=-1,d=b.length,e=Math.max(this.__caretIndex,1)|0;if(0<b.length&&0<=this.__caretIndex&&d>=this.__caretIndex){for(var f=0;f<a.length;){var h=a[f];++f;var l=b.lastIndexOf(h,e-1);l>c&&(c=l+1);l=b.indexOf(h,e);l<d&&-1!=l&&(d=l)}c!=d&&(this.setSelection(c,d),a=!0,ka.__supportDOM&&(this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=!0),a=!1),a&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())))}}},window_onKeyDown:function(a,b){switch(a){case 8:this.__selectionIndex==
this.__caretIndex&&0<this.__caretIndex&&(this.__selectionIndex=this.__caretIndex-1);this.__selectionIndex!=this.__caretIndex?(this.replaceSelectedText(""),this.__selectionIndex=this.__caretIndex,this.dispatchEvent(new W("change",!0))):(this.__stopCursorTimer(),this.__startCursorTimer());break;case 97:this.get_selectable()&&(mb.get_metaKey(b)||mb.get_ctrlKey(b))&&this.setSelection(0,this.__text.length);break;case 99:(mb.get_metaKey(b)||mb.get_ctrlKey(b))&&this.__caretIndex!=this.__selectionIndex&&
Rd.set_text(this.__text.substring(this.__caretIndex,this.__selectionIndex));break;case 120:(mb.get_metaKey(b)||mb.get_ctrlKey(b))&&this.__caretIndex!=this.__selectionIndex&&(Rd.set_text(this.__text.substring(this.__caretIndex,this.__selectionIndex)),this.replaceSelectedText(""),this.dispatchEvent(new W("change",!0)));break;case 127:this.__selectionIndex==this.__caretIndex&&this.__caretIndex<this.__text.length&&(this.__selectionIndex=this.__caretIndex+1);this.__selectionIndex!=this.__caretIndex?(this.replaceSelectedText(""),
this.__selectionIndex=this.__caretIndex,this.dispatchEvent(new W("change",!0))):(this.__stopCursorTimer(),this.__startCursorTimer());break;case 1073741898:this.get_selectable()&&(mb.get_metaKey(b)||mb.get_ctrlKey(b)?this.__caretIndex=0:this.__caretBeginningOfLine(),mb.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 1073741901:this.get_selectable()&&(mb.get_metaKey(b)||mb.get_ctrlKey(b)?this.__caretIndex=this.__text.length:
this.__caretEndOfLine(),mb.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 1073741903:this.get_selectable()&&(mb.get_metaKey(b)||mb.get_ctrlKey(b)?this.__caretBeginningOfNextLine():this.__caretNextCharacter(),mb.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 1073741904:this.get_selectable()&&(mb.get_metaKey(b)||mb.get_ctrlKey(b)?this.__caretBeginningOfPreviousLine():
this.__caretPreviousCharacter(),mb.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 1073741905:this.get_selectable()&&(mb.get_metaKey(b)||mb.get_ctrlKey(b)?this.__caretIndex=this.__text.length:this.__caretNextLine(),mb.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 1073741906:this.get_selectable()&&(mb.get_metaKey(b)||mb.get_ctrlKey(b)?
this.__caretIndex=0:this.__caretPreviousLine(),mb.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 13:case 1073741912:this.__textEngine.multiline?(a=new Ye("textInput",!0,!0,"\n"),this.dispatchEvent(a),a.isDefaultPrevented()||(this.__replaceSelectedText("\n",!0),this.dispatchEvent(new W("change",!0)))):(this.__stopCursorTimer(),this.__startCursorTimer())}},window_onTextInput:function(a){this.__replaceSelectedText(a,!0);
this.dispatchEvent(new W("change",!0))},this_onTouchBegin:function(a){this.__touchPoints.h[a.touchPointID]={y:a.stageY,reminderY:0};this.stage.addEventListener("touchMove",k(this,this.stage_onTouchMove));this.stage.addEventListener("touchEnd",k(this,this.stage_onTouchEnd))},__class__:Bb,__properties__:r(Na.prototype.__properties__,{set_wordWrap:"set_wordWrap",get_wordWrap:"get_wordWrap",set_type:"set_type",get_type:"get_type",get_textWidth:"get_textWidth",get_textHeight:"get_textHeight",set_textColor:"set_textColor",
get_textColor:"get_textColor",set_text:"set_text",get_text:"get_text",set_sharpness:"set_sharpness",get_sharpness:"get_sharpness",get_selectionEndIndex:"get_selectionEndIndex",get_selectionBeginIndex:"get_selectionBeginIndex",set_selectable:"set_selectable",get_selectable:"get_selectable",set_scrollV:"set_scrollV",get_scrollV:"get_scrollV",set_scrollH:"set_scrollH",get_scrollH:"get_scrollH",set_restrict:"set_restrict",get_restrict:"get_restrict",get_numLines:"get_numLines",set_multiline:"set_multiline",
get_multiline:"get_multiline",set_mouseWheelEnabled:"set_mouseWheelEnabled",get_mouseWheelEnabled:"get_mouseWheelEnabled",get_maxScrollV:"get_maxScrollV",get_maxScrollH:"get_maxScrollH",set_maxChars:"set_maxChars",get_maxChars:"get_maxChars",get_length:"get_length",set_htmlText:"set_htmlText",get_htmlText:"get_htmlText",set_gridFitType:"set_gridFitType",get_gridFitType:"get_gridFitType",set_embedFonts:"set_embedFonts",get_embedFonts:"get_embedFonts",set_displayAsPassword:"set_displayAsPassword",get_displayAsPassword:"get_displayAsPassword",
set_defaultTextFormat:"set_defaultTextFormat",get_defaultTextFormat:"get_defaultTextFormat",get_caretIndex:"get_caretIndex",get_bottomScrollV:"get_bottomScrollV",set_borderColor:"set_borderColor",get_borderColor:"get_borderColor",set_border:"set_border",get_border:"get_border",set_backgroundColor:"set_backgroundColor",get_backgroundColor:"get_backgroundColor",set_background:"set_background",get_background:"get_background",set_autoSize:"set_autoSize",get_autoSize:"get_autoSize",set_antiAliasType:"set_antiAliasType",
get_antiAliasType:"get_antiAliasType"})});var it=function(a,b,c){null==c&&(c=0);null==b&&(b=10);null==a&&(a=10);Bb.call(this);this.set_x(a);this.set_y(b);this.currentFPS=0;this.set_selectable(!1);this.mouseEnabled=!1;this.set_defaultTextFormat(new ib("_sans",12,c));this.set_text("FPS: ");this.currentTime=this.cacheCount=0;this.times=[]};g["openfl.display.FPS"]=it;it.__name__="openfl.display.FPS";it.__super__=Bb;it.prototype=r(Bb.prototype,{currentFPS:null,cacheCount:null,currentTime:null,times:null,
__enterFrame:function(a){this.currentTime+=a;for(this.times.push(this.currentTime);this.times[0]<this.currentTime-1E3;)this.times.shift();a=this.times.length;this.currentFPS=Math.round((a+this.cacheCount)/2);a!=this.cacheCount&&this.set_text("FPS: "+this.currentFPS);this.cacheCount=a},__class__:it});var kq=function(a,b){L.call(this);this.name=a;this.frame=b};g["openfl.display.FrameLabel"]=kq;kq.__name__="openfl.display.FrameLabel";kq.__super__=L;kq.prototype=r(L.prototype,{frame:null,name:null,__class__:kq});
var lq=function(a,b){this.script=a;this.frame=b};g["openfl.display.FrameScript"]=lq;lq.__name__="openfl.display.FrameScript";lq.prototype={frame:null,script:null,__class__:lq};var Cu={fromInt:function(a){return a},fromString:function(a){switch(a){case "linear":return 0;case "radial":return 1;default:return null}},toInt:function(a){return a},toString:function(a){switch(a){case 0:return"linear";case 1:return"radial";default:return null}}},ye=function(a){this.__dirty=!0;this.__owner=a;this.__commands=
new se;this.__positionY=this.__positionX=this.__strokePadding=0;this.__renderTransform=new Aa;this.__usedShaderBuffers=new hb;this.__worldTransform=new Aa;this.__height=this.__width=0;this.__shaderBufferPool=new K(function(){return new mq});this.moveTo(0,0)};g["openfl.display.Graphics"]=ye;ye.__name__="openfl.display.Graphics";ye.prototype={__bounds:null,__commands:null,__dirty:null,__hardwareDirty:null,__height:null,__managed:null,__positionX:null,__positionY:null,__quadBuffer:null,__renderTransform:null,
__shaderBufferPool:null,__softwareDirty:null,__strokePadding:null,__transformDirty:null,__triangleIndexBuffer:null,__triangleIndexBufferCount:null,__triangleIndexBufferData:null,__usedShaderBuffers:null,__vertexBuffer:null,__vertexBufferCount:null,__vertexBufferCountUVT:null,__vertexBufferData:null,__vertexBufferDataUVT:null,__vertexBufferUVT:null,__visible:null,__owner:null,__width:null,__worldTransform:null,__canvas:null,__context:null,__bitmap:null,beginBitmapFill:function(a,b,c,d){null==d&&(d=
!1);null==c&&(c=!0);this.__commands.beginBitmapFill(a,null!=b?b.clone():null,c,d);this.__visible=!0},beginFill:function(a,b){null==b&&(b=1);null==a&&(a=0);this.__commands.beginFill(a&16777215,b);0<b&&(this.__visible=!0)},beginGradientFill:function(a,b,c,d,e,f,h,l){null==l&&(l=0);null==h&&(h=1);null==f&&(f=0);if(null!=b&&0!=b.length){if(null==c){c=[];for(var m=0,k=b.length;m<k;)m++,c.push(1)}if(null==d)for(d=[],m=0,k=b.length;m<k;){var g=m++;d.push(Math.ceil(g/b.length*255))}if(!(c.length<b.length||
d.length<b.length))for(this.__commands.beginGradientFill(a,b,c,d,e,f,h,l),m=0;m<c.length;)if(a=c[m],++m,0<a){this.__visible=!0;break}}},beginShaderFill:function(a,b){null!=a&&(b=this.__shaderBufferPool.get(),this.__usedShaderBuffers.add(b),b.update(a),this.__commands.beginShaderFill(b))},clear:function(){for(var a=this.__usedShaderBuffers.h;null!=a;){var b=a.item;a=a.next;this.__shaderBufferPool.release(b)}this.__usedShaderBuffers.clear();this.__commands.clear();this.__strokePadding=0;null!=this.__bounds&&
(this.set___dirty(!0),this.__transformDirty=!0,this.__bounds=null);this.__visible=!1;this.__positionY=this.__positionX=0;this.moveTo(0,0)},copyFrom:function(a){this.__bounds=null!=a.__bounds?a.__bounds.clone():null;this.__commands=a.__commands.copy();this.set___dirty(!0);this.__strokePadding=a.__strokePadding;this.__positionX=a.__positionX;this.__positionY=a.__positionY;this.__transformDirty=!0;this.__visible=a.__visible},cubicCurveTo:function(a,b,c,d,e,f){this.__inflateBounds(this.__positionX-this.__strokePadding,
this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding);var h=e,l=e;if(!(a<e&&a>this.__positionX||a>e&&a<this.__positionX)||!(c<e&&c>this.__positionX||c>e&&c<this.__positionX)){var m=2*this.__positionX-4*a+2*c,k=a-this.__positionX,g=-this.__positionX+3*a+e-3*c,n=(-m+Math.sqrt(m*m-4*k*g))/(2*g);m=(-m-Math.sqrt(m*m-4*k*g))/(2*g);0<n&&1>n&&(h=this.__calculateBezierCubicPoint(n,this.__positionX,a,c,e));0<m&&1>m&&(l=this.__calculateBezierCubicPoint(m,
this.__positionX,a,c,e))}var q=f,p=f;(b<f&&b>this.__positionX||b>f&&b<this.__positionX)&&(d<f&&d>this.__positionX||d>f&&d<this.__positionX)||(m=2*this.__positionX-4*b+2*d,k=b-this.__positionX,g=-this.__positionX+3*b+f-3*d,n=(-m+Math.sqrt(m*m-4*k*g))/(2*g),m=(-m-Math.sqrt(m*m-4*k*g))/(2*g),0<n&&1>n&&(q=this.__calculateBezierCubicPoint(n,this.__positionX,b,d,f)),0<m&&1>m&&(p=this.__calculateBezierCubicPoint(m,this.__positionX,b,d,f)));this.__inflateBounds(h-this.__strokePadding,q-this.__strokePadding);
this.__inflateBounds(h+this.__strokePadding,q+this.__strokePadding);this.__inflateBounds(l-this.__strokePadding,p-this.__strokePadding);this.__inflateBounds(l+this.__strokePadding,p+this.__strokePadding);this.__positionX=e;this.__positionY=f;this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding);this.__commands.cubicCurveTo(a,b,c,d,e,f);this.set___dirty(!0)},
curveTo:function(a,b,c,d){this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding);var e=a<c&&a>this.__positionX||a>c&&a<this.__positionX?c:this.__calculateBezierQuadPoint((this.__positionX-a)/(this.__positionX-2*a+c),this.__positionX,a,c);var f=b<d&&b>this.__positionY||b>d&&b<this.__positionY?d:this.__calculateBezierQuadPoint((this.__positionY-b)/(this.__positionY-
2*b+d),this.__positionY,b,d);this.__inflateBounds(e-this.__strokePadding,f-this.__strokePadding);this.__inflateBounds(e+this.__strokePadding,f+this.__strokePadding);this.__positionX=c;this.__positionY=d;this.__commands.curveTo(a,b,c,d);this.set___dirty(!0)},drawCircle:function(a,b,c){0>=c||(this.__inflateBounds(a-c-this.__strokePadding,b-c-this.__strokePadding),this.__inflateBounds(a+c+this.__strokePadding,b+c+this.__strokePadding),this.__commands.drawCircle(a,b,c),this.set___dirty(!0))},drawEllipse:function(a,
b,c,d){0>=c||0>=d||(this.__inflateBounds(a-this.__strokePadding,b-this.__strokePadding),this.__inflateBounds(a+c+this.__strokePadding,b+d+this.__strokePadding),this.__commands.drawEllipse(a,b,c,d),this.set___dirty(!0))},drawGraphicsData:function(a){for(a=a.iterator();a.hasNext();){var b=a.next();switch(b.__graphicsDataType){case 0:if(null!=b.fill){var c=b.thickness;isNaN(c)&&(c=null);switch(b.fill.__graphicsFillType){case 0:var d=b.fill;this.lineStyle(c,d.color,d.alpha,b.pixelHinting,b.scaleMode,
b.caps,b.joints,b.miterLimit);break;case 1:d=b.fill;this.lineStyle(c,0,1,b.pixelHinting,b.scaleMode,b.caps,b.joints,b.miterLimit);this.lineGradientStyle(d.type,d.colors,d.alphas,d.ratios,d.matrix,d.spreadMethod,d.interpolationMethod,d.focalPointRatio);break;case 2:d=b.fill,this.lineStyle(c,0,1,b.pixelHinting,b.scaleMode,b.caps,b.joints,b.miterLimit),this.lineBitmapStyle(d.bitmapData,d.matrix,d.repeat,d.smooth)}}else this.lineStyle();break;case 1:d=b;this.beginFill(d.color,d.alpha);break;case 2:d=
b;this.beginGradientFill(d.type,d.colors,d.alphas,d.ratios,d.matrix,d.spreadMethod,d.interpolationMethod,d.focalPointRatio);break;case 3:this.drawPath(b.commands,b.data,b.winding);break;case 4:d=b;this.beginBitmapFill(d.bitmapData,d.matrix,d.repeat,d.smooth);break;case 5:this.endFill();break;case 6:this.drawQuads(b.rects,b.indices,b.transforms);break;case 7:this.drawTriangles(b.vertices,b.indices,b.uvtData,b.culling);break;case 8:this.beginShaderFill(b.shader,b.matrix)}}},drawPath:function(a,b,c){null==
c&&(c=0);var d=0;1==c&&this.__commands.windingNonZero();a=a.iterator();a:for(;a.hasNext();)switch(a.next()){case 1:this.moveTo(b.get(d),b.get(d+1));d+=2;break;case 2:this.lineTo(b.get(d),b.get(d+1));d+=2;break;case 3:this.curveTo(b.get(d),b.get(d+1),b.get(d+2),b.get(d+3));d+=4;break;case 4:this.moveTo(b.get(d+2),b.get(d+3));break a;case 5:this.lineTo(b.get(d+2),b.get(d+3));break a;case 6:this.cubicCurveTo(b.get(d),b.get(d+1),b.get(d+2),b.get(d+3),b.get(d+4),b.get(d+5)),d+=6}},drawQuads:function(a,
b,c){if(null!=a){var d=null!=b,e=!1,f=!1,h=d?b.get_length():Math.floor(a.get_length()/4);if(0!=h){null!=c&&(c.get_length()>=6*h?f=e=!0:c.get_length()>=4*h?e=!0:c.get_length()>=2*h&&(f=!0));for(var l=ha.__pool.get(),m=Aa.__pool.get(),k=Infinity,g=Infinity,n=-Infinity,q=-Infinity,p,r=0;r<h;){var v=r++;p=d?4*b.get(v):4*v;0>p||(l.setTo(0,0,a.get(p+2),a.get(p+3)),0>=l.width||0>=l.height||(e&&f?(p=6*v,m.setTo(c.get(p),c.get(p+1),c.get(p+2),c.get(p+3),c.get(p+4),c.get(p+5))):e?(p=4*v,m.setTo(c.get(p),c.get(p+
1),c.get(p+2),c.get(p+3),l.x,l.y)):f?(p=2*v,m.tx=c.get(p),m.ty=c.get(p+1)):(m.tx=l.x,m.ty=l.y),l.__transform(l,m),k>l.x&&(k=l.x),g>l.y&&(g=l.y),n<l.get_right()&&(n=l.get_right()),q<l.get_bottom()&&(q=l.get_bottom())))}this.__inflateBounds(k,g);this.__inflateBounds(n,q);this.__commands.drawQuads(a,b,c);this.set___dirty(!0);this.__visible=!0;ha.__pool.release(l);Aa.__pool.release(m)}}},drawRect:function(a,b,c,d){if(0!=c||0!=d){var e=0>c?-1:1,f=0>d?-1:1;this.__inflateBounds(a-this.__strokePadding*e,
b-this.__strokePadding*f);this.__inflateBounds(a+c+this.__strokePadding*e,b+d+this.__strokePadding*f);this.__commands.drawRect(a,b,c,d);this.set___dirty(!0)}},drawRoundRect:function(a,b,c,d,e,f){if(0!=c||0!=d){var h=0>c?-1:1,l=0>d?-1:1;this.__inflateBounds(a-this.__strokePadding*h,b-this.__strokePadding*l);this.__inflateBounds(a+c+this.__strokePadding*h,b+d+this.__strokePadding*l);this.__commands.drawRoundRect(a,b,c,d,e,f);this.set___dirty(!0)}},drawRoundRectComplex:function(a,b,c,d,e,f,h,l){if(!(0>=
c||0>=d)){this.__inflateBounds(a-this.__strokePadding,b-this.__strokePadding);this.__inflateBounds(a+c+this.__strokePadding,b+d+this.__strokePadding);var m=a+c,k=b+d;c=c<d?2*c:2*d;e<c||(e=c);f<c||(f=c);h<c||(h=c);l<c||(l=c);c=1-Math.sin(Math.PI/180*45);d=1-Math.tan(Math.PI/180*22.5);var g=l*c,n=l*d;this.moveTo(m,k-l);this.curveTo(m,k-n,m-g,k-g);this.curveTo(m-n,k,m-l,k);g=h*c;n=h*d;this.lineTo(a+h,k);this.curveTo(a+n,k,a+g,k-g);this.curveTo(a,k-n,a,k-h);g=e*c;n=e*d;this.lineTo(a,b+e);this.curveTo(a,
b+n,a+g,b+g);this.curveTo(a+n,b,a+e,b);g=f*c;n=f*d;this.lineTo(m-f,b);this.curveTo(m-n,b,m-g,b+g);this.curveTo(m,b+n,m,b+f);this.lineTo(m,k-l);this.set___dirty(!0)}},drawTriangles:function(a,b,c,d){null==d&&(d=1);if(null!=a&&0!=a.get_length()){var e=a.get_length()/2|0;if(null==b){if(0!=e%3)throw u.thrown(new uk("Not enough vertices to close a triangle."));b=fb.toIntVector(null);for(var f=0,h=e;f<h;){var l=f++;b.push(l)}}null==d&&(d=1);var m=Infinity,k=Infinity,g=-Infinity,n=-Infinity;f=0;for(h=e;f<
h;)l=f++,e=a.get(2*l),l=a.get(2*l+1),m>e&&(m=e),k>l&&(k=l),g<e&&(g=e),n<l&&(n=l);this.__inflateBounds(m,k);this.__inflateBounds(g,n);this.__commands.drawTriangles(a,b,c,d);this.set___dirty(!0);this.__visible=!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,e,f,h,l){null==l&&(l=0);null==h&&(h=1);null==f&&(f=0);this.__commands.lineGradientStyle(a,
b,c,d,e,f,h,l)},lineStyle:function(a,b,c,d,e,f,h,l){null==l&&(l=3);null==e&&(e=2);null==d&&(d=!1);null==c&&(c=1);null==b&&(b=0);null!=a&&(1==h?a>this.__strokePadding&&(this.__strokePadding=Math.ceil(a)):a/2>this.__strokePadding&&(this.__strokePadding=Math.ceil(a/2)));this.__commands.lineStyle(a,b,c,d,e,f,h,l);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)},overrideBlendMode:function(a){null==a&&(a=10);this.__commands.overrideBlendMode(a)},
readGraphicsData:function(a){null==a&&(a=!0);var b=fb.toObjectVector(null);this.__owner.__readGraphicsData(b,a);return b},__calculateBezierCubicPoint:function(a,b,c,d,e){var f=1-a;return b*f*f*f+3*c*a*f*f+3*d*f*a*a+e*a*a*a},__calculateBezierQuadPoint:function(a,b,c,d){var e=1-a;return e*e*b+2*e*a*c+a*a*d},__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=ha.__pool.get();this.__bounds.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);ha.__pool.release(c)}},__hitTest:function(a,b,c,d){if(null==this.__bounds)return!1;var e=d.a*d.d-d.b*d.c,f=0==e?-d.tx:1/e*(d.c*(d.ty-b)+d.d*(a-d.tx));e=d.a*d.d-d.b*d.c;a=0==e?-d.ty:1/e*(d.a*(b-d.ty)+d.b*(d.tx-a));return f>this.__bounds.x&&a>this.__bounds.y&&this.__bounds.contains(f,a)?c?D.hitTest(this,f,a):!0:!1},__inflateBounds:function(a,b){null==this.__bounds?(this.__bounds=new ha(a,b,0,0),
this.__transformDirty=!0):(a<this.__bounds.x&&(this.__bounds.width+=this.__bounds.x-a,this.__bounds.x=a,this.__transformDirty=!0),b<this.__bounds.y&&(this.__bounds.height+=this.__bounds.y-b,this.__bounds.y=b,this.__transformDirty=!0),a>this.__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))},__readGraphicsData:function(a){for(var b=new rg(this.__commands),c=null,d,e=0,f=this.__commands.types;e<f.length;){d=
f[e];++e;switch(d._hx_index){case 4:case 5:case 6:case 7:case 9:case 10:case 17:case 18:null==c&&(c=new cl);break;default:null!=c&&(a.push(c),c=null)}switch(d._hx_index){case 0:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;
b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.BEGIN_BITMAP_FILL;d=b;a.push(new nq(d.buffer.o[d.oPos],d.buffer.o[d.oPos+1],d.buffer.b[d.bPos],d.buffer.b[d.bPos+1]));break;case 1:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;
case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=
1}b.prev=S.BEGIN_FILL;d=b;a.push(new dn(d.buffer.i[d.iPos],1));break;case 2:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=
2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.BEGIN_GRADIENT_FILL;d=b;a.push(new oq(d.buffer.o[d.oPos],d.buffer.ii[d.iiPos],d.buffer.ff[d.ffPos],d.buffer.ii[d.iiPos+1],d.buffer.o[d.oPos+1],d.buffer.o[d.oPos+2],d.buffer.o[d.oPos+3],d.buffer.f[d.fPos]));break;case 3:break;case 4:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;
case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=
1}b.prev=S.CUBIC_CURVE_TO;d=b;c.cubicCurveTo(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+2],d.buffer.f[d.fPos+3],d.buffer.f[d.fPos+4],d.buffer.f[d.fPos+5]);break;case 5:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=
5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.CURVE_TO;d=b;c.curveTo(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+2],d.buffer.f[d.fPos+3]);break;case 6:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=
4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_CIRCLE;
d=b;c.__drawCircle(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+2]);break;case 7:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=
4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_ELLIPSE;d=b;c.__drawEllipse(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+2],d.buffer.f[d.fPos+3]);break;case 9:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=
6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_RECT;d=b;c.__drawRect(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+
2],d.buffer.f[d.fPos+3]);break;case 10:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=
4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_ROUND_RECT;d=b;c.__drawRoundRect(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+2],d.buffer.f[d.fPos+3],d.buffer.f[d.fPos+4],null!=d.buffer.o[d.oPos]?d.buffer.o[d.oPos]:d.buffer.f[d.fPos+4]);break;case 13:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;
case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.END_FILL;a.push(new pq);break;case 14:switch(b.prev._hx_index){case 0:b.oPos+=
2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.LINE_BITMAP_STYLE;c=null;break;case 15:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=
4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.LINE_GRADIENT_STYLE;break;case 16:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=
3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.LINE_STYLE;var h=b;d=new qq(h.buffer.o[h.oPos],h.buffer.b[h.bPos],h.buffer.o[h.oPos+1],h.buffer.o[h.oPos+2],h.buffer.o[h.oPos+3],h.buffer.f[h.fPos+1]);d.fill=new dn(h.buffer.i[h.iPos],
h.buffer.f[h.fPos]);a.push(d);break;case 17:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=
4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.LINE_TO;d=b;c.lineTo(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1]);break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=
4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.MOVE_TO;d=b;c.moveTo(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1]);break;default:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=
2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=d}}null!=c&&
a.push(c)},__update:function(a){if(!(null==this.__bounds||0>=this.__bounds.width||0>=this.__bounds.height)){var b=this.__owner.__renderTransform;if(null!=b){var c=0==b.b?Math.abs(b.a):Math.sqrt(b.a*b.a+b.b*b.b);var d=0==b.c?Math.abs(b.d):Math.sqrt(b.c*b.c+b.d*b.d);null!=a&&(c=0==a.b?c*a.a:c*Math.sqrt(a.a*a.a+a.b*a.b),d=0==a.c?d*a.d:d*Math.sqrt(a.c*a.c+a.d*a.d));a=this.__bounds.width*c;d*=this.__bounds.height;if(1>a||1>d)(1<=this.__width||1<=this.__height)&&this.set___dirty(!0),this.__height=this.__width=
0;else{null!=ye.maxTextureWidth&&a>ye.maxTextureWidth&&(a=ye.maxTextureWidth);null!=ye.maxTextureWidth&&d>ye.maxTextureHeight&&(d=ye.maxTextureHeight);this.__renderTransform.a=a/this.__bounds.width;this.__renderTransform.d=d/this.__bounds.height;c=1/this.__renderTransform.a;var e=1/this.__renderTransform.d;this.__worldTransform.a=c*b.a;this.__worldTransform.b=c*b.b;this.__worldTransform.c=e*b.c;this.__worldTransform.d=e*b.d;e=this.__bounds.x;var f=this.__bounds.y;c=e*b.a+f*b.c+b.tx;b=e*b.b+f*b.d+
b.ty;this.__worldTransform.tx=Math.round(c);this.__worldTransform.ty=Math.round(b);e=this.__worldTransform;f=e.a*e.d-e.b*e.c;this.__renderTransform.tx=0==f?-e.tx:1/f*(e.c*(e.ty-b)+e.d*(c-e.tx));e=this.__worldTransform;f=e.a*e.d-e.b*e.c;this.__renderTransform.ty=0==f?-e.ty:1/f*(e.a*(b-e.ty)+e.b*(e.tx-c));a=Math.ceil(a+1);d=Math.ceil(d+1);a==this.__width&&d==this.__height||this.set___dirty(!0);this.__width=a;this.__height=d}}}},set___dirty:function(a){if(a&&null!=this.__owner){var b=this.__owner;b.__renderDirty||
(b.__renderDirty=!0,b.__setParentRenderDirty())}a&&(this.__hardwareDirty=this.__softwareDirty=!0);return this.__dirty=a},__class__:ye,__properties__:{set___dirty:"set___dirty"}};var $i=function(){};g["openfl.display.IGraphicsFill"]=$i;$i.__name__="openfl.display.IGraphicsFill";$i.__isInterface__=!0;$i.prototype={__graphicsFillType:null,__class__:$i};var sg=function(){};g["openfl.display.IGraphicsData"]=sg;sg.__name__="openfl.display.IGraphicsData";sg.__isInterface__=!0;sg.prototype={__graphicsDataType:null,
__class__:sg};var nq=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!0);this.bitmapData=a;this.matrix=b;this.repeat=c;this.smooth=d;this.__graphicsDataType=4;this.__graphicsFillType=2};g["openfl.display.GraphicsBitmapFill"]=nq;nq.__name__="openfl.display.GraphicsBitmapFill";nq.__interfaces__=[$i,sg];nq.prototype={bitmapData:null,matrix:null,repeat:null,smooth:null,__graphicsDataType:null,__graphicsFillType:null,__class__:nq};var pq=function(){this.__graphicsDataType=5;this.__graphicsFillType=3};g["openfl.display.GraphicsEndFill"]=
pq;pq.__name__="openfl.display.GraphicsEndFill";pq.__interfaces__=[$i,sg];pq.prototype={__graphicsDataType:null,__graphicsFillType:null,__class__:pq};var oq=function(a,b,c,d,e,f,h,l){null==l&&(l=0);null==a&&(a=0);null==f&&(f=0);null==h&&(h=1);this.type=a;this.colors=b;this.alphas=c;this.ratios=d;this.matrix=e;this.spreadMethod=f;this.interpolationMethod=h;this.focalPointRatio=l;this.__graphicsDataType=2;this.__graphicsFillType=1};g["openfl.display.GraphicsGradientFill"]=oq;oq.__name__="openfl.display.GraphicsGradientFill";
oq.__interfaces__=[$i,sg];oq.prototype={alphas:null,colors:null,focalPointRatio:null,interpolationMethod:null,matrix:null,ratios:null,spreadMethod:null,type:null,__graphicsDataType:null,__graphicsFillType:null,__class__:oq};var rq=function(){};g["openfl.display.IGraphicsPath"]=rq;rq.__name__="openfl.display.IGraphicsPath";rq.__isInterface__=!0;var cl=function(a,b,c){null==c&&(c=0);this.commands=a;this.data=b;this.winding=c;this.__graphicsDataType=3};g["openfl.display.GraphicsPath"]=cl;cl.__name__=
"openfl.display.GraphicsPath";cl.__interfaces__=[rq,sg];cl.prototype={commands:null,data:null,winding:null,__graphicsDataType:null,cubicCurveTo:function(a,b,c,d,e,f){null==this.commands&&(this.commands=fb.toIntVector(null));null==this.data&&(this.data=fb.toFloatVector(null));this.commands.push(6);this.data.push(a);this.data.push(b);this.data.push(c);this.data.push(d);this.data.push(e);this.data.push(f)},curveTo:function(a,b,c,d){null==this.commands&&(this.commands=fb.toIntVector(null));null==this.data&&
(this.data=fb.toFloatVector(null));this.commands.push(3);this.data.push(a);this.data.push(b);this.data.push(c);this.data.push(d)},lineTo:function(a,b){null==this.commands&&(this.commands=fb.toIntVector(null));null==this.data&&(this.data=fb.toFloatVector(null));this.commands.push(2);this.data.push(a);this.data.push(b)},moveTo:function(a,b){null==this.commands&&(this.commands=fb.toIntVector(null));null==this.data&&(this.data=fb.toFloatVector(null));this.commands.push(1);this.data.push(a);this.data.push(b)},
wideLineTo:function(a,b){null==this.commands&&(this.commands=fb.toIntVector(null));null==this.data&&(this.data=fb.toFloatVector(null));this.commands.push(2);this.data.push(a);this.data.push(b)},wideMoveTo:function(a,b){null==this.commands&&(this.commands=fb.toIntVector(null));null==this.data&&(this.data=fb.toFloatVector(null));this.commands.push(1);this.data.push(a);this.data.push(b)},__drawCircle:function(a,b,c){this.__drawRoundRect(a-c,b-c,2*c,2*c,2*c,2*c)},__drawEllipse:function(a,b,c,d){this.__drawRoundRect(a,
b,c,d,c,d)},__drawRect:function(a,b,c,d){this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+d);this.lineTo(a,b+d);this.lineTo(a,b)},__drawRoundRect:function(a,b,c,d,e,f){e*=.5;f*=.5;e>c/2&&(e=c/2);f>d/2&&(f=d/2);c=a+c;d=b+d;var h=-e+.7071067811865476*e,l=-e+.41421356237309503*e,m=-f+.7071067811865476*f,k=-f+.41421356237309503*f;this.moveTo(c,d-f);this.curveTo(c,d+k,c+h,d+m);this.curveTo(c+l,d,c-e,d);this.lineTo(a+e,d);this.curveTo(a-l,d,a-h,d+m);this.curveTo(a,d+k,a,d-f);this.lineTo(a,b+f);this.curveTo(a,
b-k,a-h,b-m);this.curveTo(a-l,b,a+e,b);this.lineTo(c-e,b);this.curveTo(c+l,b,c+h,b-m);this.curveTo(c,b-k,c,b+f);this.lineTo(c,d-f)},__class__:cl};var jt=function(a,b,c){this.rects=a;this.indices=b;this.transforms=c;this.__graphicsDataType=6};g["openfl.display.GraphicsQuadPath"]=jt;jt.__name__="openfl.display.GraphicsQuadPath";jt.__interfaces__=[rq,sg];jt.prototype={indices:null,rects:null,transforms:null,__graphicsDataType:null,__class__:jt};var sq=function(a){null==this.__glFragmentSource&&(this.__glFragmentSource=
"varying 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 bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\t\tuniform sampler2D bitmap;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 color = texture2D (bitmap, openfl_TextureCoordv);\n\n\t\tif (color.a == 0.0) {\n\n\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t} else if (openfl_HasColorTransform) {\n\n\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\n\t\t\tmat4 colorMultiplier = mat4 (0);\n\t\t\tcolorMultiplier[0][0] = openfl_ColorMultiplierv.x;\n\t\t\tcolorMultiplier[1][1] = openfl_ColorMultiplierv.y;\n\t\t\tcolorMultiplier[2][2] = openfl_ColorMultiplierv.z;\n\t\t\tcolorMultiplier[3][3] = 1.0; // openfl_ColorMultiplierv.w;\n\n\t\t\tcolor = clamp (openfl_ColorOffsetv + (color * colorMultiplier), 0.0, 1.0);\n\n\t\t\tif (color.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}");
We.call(this,a);this.__isGenerated=!0;this.__initGL()};g["openfl.display.GraphicsShader"]=sq;sq.__name__="openfl.display.GraphicsShader";sq.__super__=We;sq.prototype=r(We.prototype,{openfl_Alpha:null,openfl_ColorMultiplier:null,openfl_ColorOffset:null,openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_HasColorTransform:null,openfl_TextureSize:null,bitmap:null,__class__:sq});var kt=function(a,b){this.shader=a;this.matrix=b;this.__graphicsDataType=8;this.__graphicsFillType=4};g["openfl.display.GraphicsShaderFill"]=
kt;kt.__name__="openfl.display.GraphicsShaderFill";kt.__interfaces__=[$i,sg];kt.prototype={matrix:null,shader:null,__graphicsDataType:null,__graphicsFillType:null,__class__:kt};var dn=function(a,b){null==b&&(b=1);null==a&&(a=0);this.alpha=b;this.color=a;this.__graphicsDataType=1;this.__graphicsFillType=0};g["openfl.display.GraphicsSolidFill"]=dn;dn.__name__="openfl.display.GraphicsSolidFill";dn.__interfaces__=[$i,sg];dn.prototype={alpha:null,color:null,__graphicsDataType:null,__graphicsFillType:null,
__class__:dn};var su=function(){};g["openfl.display.IGraphicsStroke"]=su;su.__name__="openfl.display.IGraphicsStroke";su.__isInterface__=!0;var qq=function(a,b,c,d,e,f,h){null==f&&(f=3);null==e&&(e=2);null==d&&(d=0);null==c&&(c=2);null==b&&(b=!1);null==a&&(a=NaN);this.caps=d;this.fill=h;this.joints=e;this.miterLimit=f;this.pixelHinting=b;this.scaleMode=c;this.thickness=a;this.__graphicsDataType=0};g["openfl.display.GraphicsStroke"]=qq;qq.__name__="openfl.display.GraphicsStroke";qq.__interfaces__=
[su,sg];qq.prototype={caps:null,fill:null,joints:null,miterLimit:null,pixelHinting:null,scaleMode:null,thickness:null,__graphicsDataType:null,__class__:qq};var lt=function(a,b,c,d){null==d&&(d=1);this.vertices=a;this.indices=b;this.uvtData=c;this.culling=d;this.__graphicsDataType=7};g["openfl.display.GraphicsTrianglePath"]=lt;lt.__name__="openfl.display.GraphicsTrianglePath";lt.__interfaces__=[rq,sg];lt.prototype={culling:null,indices:null,uvtData:null,vertices:null,__graphicsDataType:null,__class__:lt};
var en=function(){};g["openfl.display.ITileContainer"]=en;en.__name__="openfl.display.ITileContainer";en.__isInterface__=!0;en.prototype={get_numTiles:null,addTile:null,addTileAt:null,addTiles:null,contains:null,getTileAt:null,getTileIndex:null,removeTile:null,removeTileAt:null,removeTiles:null,setTileIndex:null,sortTiles:null,swapTiles:null,swapTilesAt:null,__class__:en,__properties__:{get_numTiles:"get_numTiles"}};var Du={fromInt:function(a){return a},fromString:function(a){switch(a){case "linearRGB":return 0;
case "rgb":return 1;default:return null}},toInt:function(a){return a},toString:function(a){switch(a){case 0:return"linearRGB";case 1:return"rgb";default:return null}}},bq=function(a){null==a&&(a=80);this.quality=a};g["openfl.display.JPEGEncoderOptions"]=bq;bq.__name__="openfl.display.JPEGEncoderOptions";bq.prototype={quality:null,__class__:bq};var Cs={fromInt:function(a){return a},fromString:function(a){switch(a){case "bevel":return 0;case "miter":return 1;case "round":return 2;default:return null}},
toInt:function(a){return a},toString:function(a){switch(a){case 0:return"bevel";case 1:return"miter";case 2:return"round";default:return null}}},As={fromInt:function(a){return a},fromString:function(a){switch(a){case "horizontal":return 0;case "none":return 1;case "normal":return 2;case "vertical":return 3;default:return null}},toInt:function(a){return a},toString:function(a){switch(a){case 0:return"horizontal";case 1:return"none";case 2:return"normal";case 3:return"vertical";default:return null}}},
Qg=function(){L.call(this);this.applicationDomain=Ff.currentDomain;this.bytesTotal=this.bytesLoaded=0;this.childAllowsParent=!0;this.parameters={}};g["openfl.display.LoaderInfo"]=Qg;Qg.__name__="openfl.display.LoaderInfo";Qg.create=function(a){var b=new Qg;b.uncaughtErrorEvents=new tq;null!=a?b.loader=a:b.url=Qg.__rootURL;return b};Qg.__super__=L;Qg.prototype=r(L.prototype,{applicationDomain:null,bytes:null,bytesLoaded:null,bytesTotal:null,childAllowsParent:null,content:null,contentType:null,frameRate:null,
height:null,loader:null,loaderURL:null,parameters:null,parentAllowsChild:null,sameDomain:null,sharedEvents:null,uncaughtErrorEvents:null,url:null,width:null,__completed:null,__complete:function(){this.__completed||(this.bytesLoaded<this.bytesTotal&&(this.bytesLoaded=this.bytesTotal),this.__update(this.bytesLoaded,this.bytesTotal),this.__completed=!0,this.dispatchEvent(new W("complete")))},__update:function(a,b){this.bytesLoaded=a;this.bytesTotal=b;this.dispatchEvent(new Df("progress",!1,!1,a,b))},
__class__:Qg});var ha=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["openfl.geom.Rectangle"]=ha;ha.__name__="openfl.geom.Rectangle";ha.prototype={height:null,width:null,x:null,y:null,clone:function(){return new ha(this.x,this.y,this.width,this.height)},contains:function(a,b){return a>=this.x&&b>=this.y&&a<this.get_right()?b<this.get_bottom():!1},containsPoint:function(a){return this.contains(a.x,a.y)},containsRect:function(a){return 0>=
a.width||0>=a.height?a.x>this.x&&a.y>this.y&&a.get_right()<this.get_right()?a.get_bottom()<this.get_bottom():!1:a.x>=this.x&&a.y>=this.y&&a.get_right()<=this.get_right()?a.get_bottom()<=this.get_bottom():!1},copyFrom:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height},equals:function(a){return a==this?!0:null!=a&&this.x==a.x&&this.y==a.y&&this.width==a.width?this.height==a.height:!1},inflate:function(a,b){this.x-=a;this.width+=2*a;this.y-=b;this.height+=2*b},inflatePoint:function(a){this.inflate(a.x,
a.y)},intersection:function(a){var b=this.x<a.x?a.x:this.x,c=this.get_right()>a.get_right()?a.get_right():this.get_right();if(c<=b)return new ha;var d=this.y<a.y?a.y:this.y;a=this.get_bottom()>a.get_bottom()?a.get_bottom():this.get_bottom();return a<=d?new ha:new ha(b,d,c-b,a-d)},intersects:function(a){var b=this.x<a.x?a.x:this.x;if((this.get_right()>a.get_right()?a.get_right():this.get_right())<=b)return!1;b=this.y<a.y?a.y:this.y;return(this.get_bottom()>a.get_bottom()?a.get_bottom():this.get_bottom())>
b},isEmpty:function(){return 0>=this.width?!0:0>=this.height},offset:function(a,b){this.x+=a;this.y+=b},offsetPoint:function(a){this.x+=a.x;this.y+=a.y},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},toString:function(){return"(x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},union:function(a){if(0==this.width||0==this.height)return a.clone();if(0==a.width||0==a.height)return this.clone();
var b=this.x>a.x?a.x:this.x,c=this.get_right()<a.get_right()?a.get_right():this.get_right(),d=this.y>a.y?a.y:this.y;a=this.get_bottom()<a.get_bottom()?a.get_bottom():this.get_bottom();return new ha(b,d,c-b,a-d)},__contract:function(a,b,c,d){if(0!=this.width||0!=this.height){var e=0,f=0,h=0,l=0;this.x<a&&(e=a-this.x);this.y<b&&(f=b-this.y);this.get_right()>a+c&&(h=a+c-this.get_right());this.get_bottom()>b+d&&(l=b+d-this.get_bottom());this.x+=e;this.y+=f;this.width+=h-e;this.height+=l-f}},__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 e=this.get_right(),f=this.get_bottom();this.x>a&&(this.x=a,this.width=e-a);this.y>b&&(this.y=b,this.height=f-b);e<a+c&&(this.width=a+c-this.x);f<b+d&&(this.height=b+d-this.y)}},__toLimeRectangle:function(){null==ha.__limeRectangle&&(ha.__limeRectangle=new qd);ha.__limeRectangle.setTo(this.x,this.y,this.width,this.height);return ha.__limeRectangle},__transform:function(a,b){var c=b.a*this.x+b.c*this.y,d=c,
e=b.b*this.x+b.d*this.y,f=e,h=b.a*(this.x+this.width)+b.c*this.y,l=b.b*(this.x+this.width)+b.d*this.y;h<c&&(c=h);l<e&&(e=l);h>d&&(d=h);l>f&&(f=l);h=b.a*(this.x+this.width)+b.c*(this.y+this.height);l=b.b*(this.x+this.width)+b.d*(this.y+this.height);h<c&&(c=h);l<e&&(e=l);h>d&&(d=h);l>f&&(f=l);h=b.a*this.x+b.c*(this.y+this.height);l=b.b*this.x+b.d*(this.y+this.height);h<c&&(c=h);l<e&&(e=l);h>d&&(d=h);l>f&&(f=l);a.setTo(c+b.tx,e+b.ty,d-c,f-e)},get_bottom:function(){return this.y+this.height},set_bottom:function(a){this.height=
a-this.y;return a},get_bottomRight:function(){return new ab(this.x+this.width,this.y+this.height)},set_bottomRight:function(a){this.width=a.x-this.x;this.height=a.y-this.y;return a.clone()},get_left:function(){return this.x},set_left:function(a){this.width-=a-this.x;return this.x=a},get_right:function(){return this.x+this.width},set_right:function(a){this.width=a-this.x;return a},get_size:function(){return new ab(this.width,this.height)},set_size:function(a){this.width=a.x;this.height=a.y;return a.clone()},
get_top:function(){return this.y},set_top:function(a){this.height-=a-this.y;return this.y=a},get_topLeft:function(){return new ab(this.x,this.y)},set_topLeft:function(a){this.x=a.x;this.y=a.y;return a.clone()},__class__:ha,__properties__:{set_topLeft:"set_topLeft",get_topLeft:"get_topLeft",set_top:"set_top",get_top:"get_top",set_size:"set_size",get_size:"get_size",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left",set_bottomRight:"set_bottomRight",get_bottomRight:"get_bottomRight",
set_bottom:"set_bottom",get_bottom:"get_bottom"}};var ub=function(a,b){Ge.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==ye.maxTextureWidth&&(ye.maxTextureWidth=ye.maxTextureHeight=this.__gl.getParameter(this.__gl.MAX_TEXTURE_SIZE));this.__matrix=ra._new();this.__values=[];this.__softwareRenderer=new Zh(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 ha;this.__defaultDisplayShader=new jq;this.__defaultGraphicsShader=new sq;this.__defaultShader=this.__defaultDisplayShader;this.__initShader(this.__defaultShader);this.__scrollRectMasks=new K(function(){return new Og});this.__maskShader=new Uj};g["openfl.display.OpenGLRenderer"]=ub;ub.__name__="openfl.display.OpenGLRenderer";ub.__super__=
Ge;ub.prototype=r(Ge.prototype,{gl:null,__context3D:null,__clipRects:null,__currentDisplayShader:null,__currentGraphicsShader:null,__currentRenderTarget:null,__currentShader:null,__currentShaderBuffer:null,__defaultDisplayShader:null,__defaultGraphicsShader:null,__defaultRenderTarget:null,__defaultShader:null,__displayHeight:null,__displayWidth:null,__flipped:null,__gl:null,__height:null,__maskShader:null,__matrix:null,__maskObjects:null,__numClipRects:null,__offsetX:null,__offsetY:null,__projection:null,
__projectionFlipped:null,__scrollRectMasks:null,__softwareRenderer:null,__stencilReference:null,__tempRect:null,__updatedStencil:null,__upscaled:null,__values:null,__width:null,applyAlpha:function(a){ub.__alphaValue[0]=a*this.__worldAlpha;null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addFloatOverride("openfl_Alpha",ub.__alphaValue):null!=this.__currentShader&&null!=this.__currentShader.__alpha&&(this.__currentShader.__alpha.value=ub.__alphaValue)},applyBitmapData:function(a,b,c){null==
c&&(c=!1);null!=this.__currentShaderBuffer?null!=a&&(ub.__textureSizeValue[0]=a.__textureWidth,ub.__textureSizeValue[1]=a.__textureHeight,this.__currentShaderBuffer.addFloatOverride("openfl_TextureSize",ub.__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?(ub.__textureSizeValue[0]=a.__textureWidth,ub.__textureSizeValue[1]=a.__textureHeight,this.__currentShader.__textureSize.value=ub.__textureSizeValue):this.__currentShader.__textureSize.value=null))},applyColorTransform:function(a){var b=null!=a&&!a.__isDefault(!0);
this.applyHasColorTransform(b);b?(a.__setArrays(ub.__colorMultipliersValue,ub.__colorOffsetsValue),null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addFloatOverride("openfl_ColorMultiplier",ub.__colorMultipliersValue),this.__currentShaderBuffer.addFloatOverride("openfl_ColorOffset",ub.__colorOffsetsValue)):null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=ub.__colorMultipliersValue),null!=this.__currentShader.__colorOffset&&
(this.__currentShader.__colorOffset.value=ub.__colorOffsetsValue))):null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addFloatOverride("openfl_ColorMultiplier",ub.__emptyColorValue),this.__currentShaderBuffer.addFloatOverride("openfl_ColorOffset",ub.__emptyColorValue)):null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=ub.__emptyColorValue),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.value=
ub.__emptyColorValue))},applyHasColorTransform:function(a){ub.__hasColorTransformValue[0]=a;null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addBoolOverride("openfl_HasColorTransform",ub.__hasColorTransformValue):null!=this.__currentShader&&null!=this.__currentShader.__hasColorTransform&&(this.__currentShader.__hasColorTransform.value=ub.__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)},getMatrix:function(a){null!=this.gl?(a=this.__getMatrix(a,1),ra.set(this.__matrix,0,a[0]),ra.set(this.__matrix,1,a[1]),ra.set(this.__matrix,2,a[2]),ra.set(this.__matrix,3,a[3]),ra.set(this.__matrix,4,a[4]),ra.set(this.__matrix,5,a[5]),ra.set(this.__matrix,6,a[6]),ra.set(this.__matrix,7,a[7]),ra.set(this.__matrix,8,a[8]),ra.set(this.__matrix,9,a[9]),ra.set(this.__matrix,10,a[10]),ra.set(this.__matrix,
11,a[11]),ra.set(this.__matrix,12,a[12]),ra.set(this.__matrix,13,a[13]),ra.set(this.__matrix,14,a[14]),ra.set(this.__matrix,15,a[15])):(ra.identity(this.__matrix),ra.set(this.__matrix,0,a.a),ra.set(this.__matrix,1,a.b),ra.set(this.__matrix,4,a.c),ra.set(this.__matrix,5,a.d),ra.set(this.__matrix,12,a.tx),ra.set(this.__matrix,13,a.ty));return this.__matrix},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))},__cleanup:function(){0<this.__stencilReference&&(this.__stencilReference=0,this.__context3D.setStencilActions(),this.__context3D.setStencilReferenceValue(0,0,0));0<this.__numClipRects&&(this.__numClipRects=0,this.__scissorRect())},__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=Aa.__pool.get();c.copyFrom(a);c.concat(this.__worldTransform);
if(0==b||1==b&&0==c.b&&0==c.c&&1.001>c.a&&.999<c.a&&1.001>c.d&&.999<c.d)c.tx=Math.round(c.tx),c.ty=Math.round(c.ty);ra.identity(this.__matrix);ra.set(this.__matrix,0,c.a);ra.set(this.__matrix,1,c.b);ra.set(this.__matrix,4,c.c);ra.set(this.__matrix,5,c.d);ra.set(this.__matrix,12,c.tx);ra.set(this.__matrix,13,c.ty);ra.append(this.__matrix,this.__flipped?this.__projectionFlipped:this.__projection);this.__values[0]=ra.get(this.__matrix,0);this.__values[1]=ra.get(this.__matrix,1);this.__values[2]=ra.get(this.__matrix,
2);this.__values[3]=ra.get(this.__matrix,3);this.__values[4]=ra.get(this.__matrix,4);this.__values[5]=ra.get(this.__matrix,5);this.__values[6]=ra.get(this.__matrix,6);this.__values[7]=ra.get(this.__matrix,7);this.__values[8]=ra.get(this.__matrix,8);this.__values[9]=ra.get(this.__matrix,9);this.__values[10]=ra.get(this.__matrix,10);this.__values[11]=ra.get(this.__matrix,11);this.__values[12]=ra.get(this.__matrix,12);this.__values[13]=ra.get(this.__matrix,13);this.__values[14]=ra.get(this.__matrix,
14);this.__values[15]=ra.get(this.__matrix,15);Aa.__pool.release(c);return this.__values},__initShader:function(a){return null!=a?(null==a.__context&&(a.__context=this.__context3D,a.__init()),a):this.__defaultShader},__initDisplayShader:function(a){return null!=a?(null==a.__context&&(a.__context=this.__context3D,a.__init()),a):this.__defaultDisplayShader},__initGraphicsShader:function(a){return null!=a?(null==a.__context&&(a.__context=this.__context3D,a.__init()),a):this.__defaultGraphicsShader},
__initShaderBuffer:function(a){return null!=a?this.__initGraphicsShader(a.shader):this.__defaultGraphicsShader},__popMask:function(){if(0!=this.__stencilReference){var a=this.__maskObjects.pop();1<this.__stencilReference?(this.__context3D.setStencilActions(2,1,0,0,5),this.__context3D.setStencilReferenceValue(this.__stencilReference,255,255),this.__context3D.setColorMask(!1,!1,!1,!1),this.__renderDrawableMask(a),this.__stencilReference--,this.__context3D.setStencilActions(2,1,5,5,5),this.__context3D.setStencilReferenceValue(this.__stencilReference,
255,0),this.__context3D.setColorMask(!0,!0,!0,!0)):(this.__stencilReference=0,this.__context3D.setStencilActions(),this.__context3D.setStencilReferenceValue(0,0,0))}},__popMaskObject:function(a,b){null==b&&(b=!0);null!=a.__mask&&this.__popMask();b&&null!=a.__scrollRect&&(0!=a.__renderTransform.b||0!=a.__renderTransform.c?(this.__scrollRectMasks.release(this.__maskObjects[this.__maskObjects.length-1]),this.__popMask()):this.__popMaskRect())},__popMaskRect:function(){0<this.__numClipRects&&(this.__numClipRects--,
0<this.__numClipRects?this.__scissorRect(this.__clipRects[this.__numClipRects-1]):this.__scissorRect())},__pushMask:function(a){0==this.__stencilReference&&(this.__context3D.clear(0,0,0,0,0,0,4),this.__updatedStencil=!0);this.__context3D.setStencilActions(2,1,2,5,5);this.__context3D.setStencilReferenceValue(this.__stencilReference,255,255);this.__context3D.setColorMask(!1,!1,!1,!1);this.__renderDrawableMask(a);this.__maskObjects.push(a);this.__stencilReference++;this.__context3D.setStencilActions(2,
1,5,5,5);this.__context3D.setStencilReferenceValue(this.__stencilReference,255,0);this.__context3D.setColorMask(!0,!0,!0,!0)},__pushMaskObject:function(a,b){null==b&&(b=!0);b&&null!=a.__scrollRect&&(0!=a.__renderTransform.b||0!=a.__renderTransform.c?(b=this.__scrollRectMasks.get(),b.get_graphics().clear(),b.get_graphics().beginFill(65280),b.get_graphics().drawRect(a.__scrollRect.x,a.__scrollRect.y,a.__scrollRect.width,a.__scrollRect.height),b.__renderTransform.copyFrom(a.__renderTransform),this.__pushMask(b)):
this.__pushMaskRect(a.__scrollRect,a.__renderTransform));null!=a.__mask&&this.__pushMask(a.__mask)},__pushMaskRect:function(a,b){this.__numClipRects==this.__clipRects.length&&(this.__clipRects[this.__numClipRects]=new ha);var c=Aa.__pool.get();c.copyFrom(b);c.concat(this.__worldTransform);b=this.__clipRects[this.__numClipRects];a.__transform(b,c);0<this.__numClipRects&&(a=this.__clipRects[this.__numClipRects-1],b.__contract(a.x,a.y,a.width,a.height));0>b.height&&(b.height=0);0>b.width&&(b.width=0);
Aa.__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(ub.__scissorRectangle.setTo(this.__offsetX,this.__offsetY,this.__displayWidth,this.__displayHeight),
this.__context3D.setScissorRectangle(ub.__scissorRectangle),this.__upscaled=1!=this.__worldTransform.a||1!=this.__worldTransform.d,this.__renderDrawable(a),0<this.__offsetX||0<this.__offsetY)0<this.__offsetX&&(ub.__scissorRectangle.setTo(0,0,this.__offsetX,this.__height),this.__context3D.setScissorRectangle(ub.__scissorRectangle),this.__context3D.__flushGL(),this.__gl.clearColor(0,0,0,1),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT),ub.__scissorRectangle.setTo(this.__offsetX+this.__displayWidth,0,this.__width,
this.__height),this.__context3D.setScissorRectangle(ub.__scissorRectangle),this.__context3D.__flushGL(),this.__gl.clearColor(0,0,0,1),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT)),0<this.__offsetY&&(ub.__scissorRectangle.setTo(0,0,this.__width,this.__offsetY),this.__context3D.setScissorRectangle(ub.__scissorRectangle),this.__context3D.__flushGL(),this.__gl.clearColor(0,0,0,1),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT),ub.__scissorRectangle.setTo(0,this.__offsetY+this.__displayHeight,this.__width,
this.__height),this.__context3D.setScissorRectangle(ub.__scissorRectangle),this.__context3D.__flushGL(),this.__gl.clearColor(0,0,0,1),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT)),this.__context3D.setScissorRectangle(null)}else{ub.__scissorRectangle.setTo(this.__offsetX,this.__offsetY,this.__displayWidth,this.__displayHeight);this.__context3D.setScissorRectangle(ub.__scissorRectangle);var b=a.__mask,c=a.__scrollRect;a.__mask=null;a.__scrollRect=null;this.__renderDrawable(a);a.__mask=b;a.__scrollRect=
c}this.__context3D.present()},__renderDrawable:function(a){if(null!=a)switch(a.__drawableType){case 0:uq.renderDrawable(a,this);break;case 2:Jf.renderDrawable(a,this);break;case 3:$h.renderDrawable(a,this);break;case 4:case 5:vq.renderDrawable(a,this);break;case 6:wq.renderDrawable(a,this);break;case 7:ai.renderDrawable(a,this);break;case 8:Kf.renderDrawable(a,this);break;case 9:Z.renderDrawable(a,this)}},__renderDrawableMask:function(a){if(null!=a)switch(a.__drawableType){case 0:uq.renderDrawableMask(a,
this);break;case 2:Jf.renderDrawableMask(a,this);break;case 3:$h.renderDrawableMask(a,this);break;case 4:case 5:vq.renderDrawableMask(a,this);break;case 6:wq.renderDrawableMask(a,this);break;case 7:ai.renderDrawableMask(a,this);break;case 8:Kf.renderDrawableMask(a,this);break;case 9:Z.renderDrawableMask(a,this)}},__renderFilterPass:function(a,b,c,d){null==d&&(d=!0);if(null!=a&&null!=b&&null!=this.__defaultRenderTarget){var e=this.__context3D.__state.renderToTexture,f=this.__context3D.__state.renderToTextureDepthStencil,
h=this.__context3D.__state.renderToTextureAntiAlias,l=this.__context3D.__state.renderToTextureSurfaceSelector;this.__context3D.setRenderToTexture(this.__defaultRenderTarget.getTexture(this.__context3D),!1);d&&this.__context3D.clear(0,0,0,0,0,0,1);b=this.__initShader(b);this.setShader(b);this.applyAlpha(1);this.applyBitmapData(a,c);this.applyColorTransform(null);this.applyMatrix(this.__getMatrix(a.__renderTransform,1));this.updateShader();c=a.getVertexBuffer(this.__context3D);null!=b.__position&&this.__context3D.setVertexBufferAt(b.__position.index,
c,0,3);null!=b.__textureCoord&&this.__context3D.setVertexBufferAt(b.__textureCoord.index,c,3,2);a=a.getIndexBuffer(this.__context3D);this.__context3D.drawTriangles(a);null!=e?this.__context3D.setRenderToTexture(e,f,h,l):this.__context3D.setRenderToBackBuffer();this.__clearShader()}},__resize:function(a,b){this.__width=a;this.__height=b;a=null==this.__defaultRenderTarget?this.__stage.stageWidth:this.__defaultRenderTarget.width;b=null==this.__defaultRenderTarget?this.__stage.stageHeight:this.__defaultRenderTarget.height;
if(null==this.__defaultRenderTarget){var c=this.__worldTransform;c=Math.round(0*c.a+0*c.c+c.tx)}else c=0;this.__offsetX=c;null==this.__defaultRenderTarget?(c=this.__worldTransform,c=Math.round(0*c.b+0*c.d+c.ty)):c=0;this.__offsetY=c;null==this.__defaultRenderTarget?(c=this.__worldTransform,c=Math.round(a*c.a+0*c.c+c.tx-this.__offsetX)):c=a;this.__displayWidth=c;null==this.__defaultRenderTarget?(c=this.__worldTransform,c=Math.round(0*c.b+b*c.d+c.ty-this.__offsetY)):c=b;this.__displayHeight=c;ra.createOrtho(this.__projection,
0,this.__displayWidth+2*this.__offsetX,0,this.__displayHeight+2*this.__offsetY,-1E3,1E3);ra.createOrtho(this.__projectionFlipped,0,this.__displayWidth+2*this.__offsetX,this.__displayHeight+2*this.__offsetY,0,-1E3,1E3)},__resumeClipAndMask:function(a){0<this.__stencilReference?(this.__context3D.setStencilActions(2,1,5,5,5),this.__context3D.setStencilReferenceValue(this.__stencilReference,255,0)):(this.__context3D.setStencilActions(),this.__context3D.setStencilReferenceValue(0,0,0));0<this.__numClipRects?
this.__scissorRect(this.__clipRects[this.__numClipRects-1]):this.__scissorRect()},__scissorRect:function(a){if(null!=a){var b=Math.floor(a.x),c=Math.floor(a.y),d=0<a.width?Math.ceil(a.get_right())-b:0;a=0<a.height?Math.ceil(a.get_bottom())-c:0;0>d&&(d=0);0>a&&(a=0);ub.__scissorRectangle.setTo(b,c,d,a);this.__context3D.setScissorRectangle(ub.__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<this.__stencilReference&&(this.__context3D.setStencilActions(),this.__context3D.setStencilReferenceValue(0,0,0));0<this.__numClipRects&&this.__scissorRect()},__updateShaderBuffer:function(a){null!=this.__currentShader&&null!=this.__currentShaderBuffer&&this.__currentShader.__updateFromBuffer(this.__currentShaderBuffer,a)},__class__:ub});var gt=function(a){null==a&&(a=!1);this.fastCompression=a};g["openfl.display.PNGEncoderOptions"]=gt;
gt.__name__="openfl.display.PNGEncoderOptions";gt.prototype={fastCompression:null,__class__:gt};var jo=function(a,b,c){this.name=a;this.labels=b;this.numFrames=c};g["openfl.display.Scene"]=jo;jo.__name__="openfl.display.Scene";jo.prototype={labels:null,name:null,numFrames:null,__class__:jo};var Ru={_new:function(a){return{}}},iq=function(){this.channels=0;this.filter=5;this.index=this.height=0;this.mipFilter=2;this.wrap=this.width=0};g["openfl.display.ShaderInput"]=iq;iq.__name__="openfl.display.ShaderInput";
iq.prototype={channels:null,filter:null,height:null,index:null,input:null,mipFilter:null,name:null,width:null,wrap:null,__isUniform:null,__disableGL:function(a,b){a.setTextureAt(b,null)},__updateGL:function(a,b,c,d,e,f){c=null!=c?c:this.input;d=null!=d?d:this.filter;e=null!=e?e:this.mipFilter;f=null!=f?f:this.wrap;null!=c?(a.setTextureAt(b,c.getTexture(a)),a.setSamplerStateAt(b,f,d,e)):a.setTextureAt(b,null)},__class__:iq};var bl=function(){this.index=0};g["openfl.display.ShaderParameter"]=bl;bl.__name__=
"openfl.display.ShaderParameter";bl.prototype={index:null,name:null,type:null,value:null,__arrayLength:null,__internal:null,__isBool:null,__isFloat:null,__isInt:null,__isUniform:null,__length:null,__uniformMatrix:null,__useArray:null,__disableGL:function(a){a=a.gl;if(!this.__isUniform)for(var b=0,c=this.__arrayLength;b<c;){var d=b++;a.disableVertexAttribArray(this.index+d)}},__updateGL:function(a,b){a=a.gl;b=null!=b?b:this.value;var c=this.__isBool?b:null,d=this.__isFloat?b:null,e=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,e[0]);break;case 9:a.uniform2i(this.index,e[0],e[1]);break;case 10:a.uniform3i(this.index,e[0],e[1],e[2]);break;case 11:a.uniform4i(this.index,e[0],e[1],e[2],e[3]);break;case 12:this.__uniformMatrix[0]=d[0];this.__uniformMatrix[1]=d[1];this.__uniformMatrix[2]=d[2];this.__uniformMatrix[3]=d[3];cc.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];cc.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],cc.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;cc.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;cc.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,cc.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}else if(this.__useArray||null!=b&&b.length!=this.__length)for(f=0,h=this.__arrayLength;f<h;)l=f++,a.enableVertexAttribArray(this.index+l);else{for(var f=0,h=this.__arrayLength;f<h;){var l=f++;a.disableVertexAttribArray(this.index+l)}if(null!=b)switch(this.type){case 0:a.vertexAttrib1f(this.index,c[0]?1:0);break;case 1:a.vertexAttrib2f(this.index,c[0]?1:0,c[1]?1:0);break;case 2:a.vertexAttrib3f(this.index,c[0]?1:0,c[1]?1:0,c[2]?1:0);break;
case 3:a.vertexAttrib4f(this.index,c[0]?1:0,c[1]?1:0,c[2]?1:0,c[3]?1:0);break;case 4:a.vertexAttrib1f(this.index,d[0]);break;case 5:a.vertexAttrib2f(this.index,d[0],d[1]);break;case 6:a.vertexAttrib3f(this.index,d[0],d[1],d[2]);break;case 7:a.vertexAttrib4f(this.index,d[0],d[1],d[2],d[3]);break;case 8:a.vertexAttrib1f(this.index,e[0]);break;case 9:a.vertexAttrib2f(this.index,e[0],e[1]);break;case 10:a.vertexAttrib3f(this.index,e[0],e[1],e[2]);break;case 11:a.vertexAttrib4f(this.index,e[0],e[1],e[2],
e[3]);break;case 12:a.vertexAttrib2f(this.index+0,d[0],d[1]);a.vertexAttrib2f(this.index+1,d[2],d[3]);break;case 16:a.vertexAttrib3f(this.index+0,d[0],d[1],d[2]);a.vertexAttrib3f(this.index+1,d[3],d[4],d[5]);a.vertexAttrib3f(this.index+2,d[6],d[7],d[8]);break;case 20:a.vertexAttrib4f(this.index+0,d[0],d[1],d[2],d[3]),a.vertexAttrib4f(this.index+1,d[4],d[5],d[6],d[7]),a.vertexAttrib4f(this.index+2,d[8],d[9],d[10],d[11]),a.vertexAttrib4f(this.index+3,d[12],d[13],d[14],d[15])}else switch(this.type){case 0:case 4:case 8:a.vertexAttrib1f(this.index,
0);break;case 1:case 5:case 9:a.vertexAttrib2f(this.index,0,0);break;case 2:case 6:case 10:a.vertexAttrib3f(this.index,0,0,0);break;case 3:case 7:case 11:a.vertexAttrib4f(this.index,0,0,0,0);break;case 12:a.vertexAttrib2f(this.index+0,0,0);a.vertexAttrib2f(this.index+1,0,0);break;case 16:a.vertexAttrib3f(this.index+0,0,0,0);a.vertexAttrib3f(this.index+1,0,0,0);a.vertexAttrib3f(this.index+2,0,0,0);break;case 20:a.vertexAttrib4f(this.index+0,0,0,0,0),a.vertexAttrib4f(this.index+1,0,0,0,0),a.vertexAttrib4f(this.index+
2,0,0,0,0),a.vertexAttrib4f(this.index+3,0,0,0,0)}}},__updateGLFromBuffer:function(a,b,c,d,e){a=a.gl;if(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];cc.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];cc.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],cc.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);f=0;for(h=this.__arrayLength;f<h;)l=f++,a.enableVertexAttribArray(this.index+l);if(0<d)for(f=0,h=this.__arrayLength;f<h;)l=f++,a.vertexAttribPointer(this.index+l,this.__length,b,!1,4*this.__length,
4*(c+e*this.__length+l*this.__arrayLength))}else{for(var f=0,h=this.__arrayLength;f<h;){var l=f++;a.disableVertexAttribArray(this.index+l)}if(0<d)switch(this.type){case 0:case 4:case 8:a.vertexAttrib1f(this.index,b[c]);break;case 1:case 5:case 9:a.vertexAttrib2f(this.index,b[c],b[c+1]);break;case 2:case 6:case 10:a.vertexAttrib3f(this.index,b[c],b[c+1],b[c+2]);break;case 3:case 7:case 11:a.vertexAttrib4f(this.index,b[c],b[c+1],b[c+2],b[c+3]);break;case 12:a.vertexAttrib2f(this.index+0,b[c],b[c+1]);
a.vertexAttrib2f(this.index+1,b[c+2],b[c+2+1]);break;case 16:a.vertexAttrib3f(this.index+0,b[c],b[c+1],b[c+2]);a.vertexAttrib3f(this.index+1,b[c+3],b[c+3+1],b[c+3+2]);a.vertexAttrib3f(this.index+2,b[c+6],b[c+6+1],b[c+6+2]);break;case 20:a.vertexAttrib4f(this.index+0,b[c],b[c+1],b[c+2],b[c+3]),a.vertexAttrib4f(this.index+1,b[c+4],b[c+4+1],b[c+4+2],b[c+4+3]),a.vertexAttrib4f(this.index+2,b[c+8],b[c+8+1],b[c+8+2],b[c+8+3]),a.vertexAttrib4f(this.index+3,b[c+12],b[c+12+1],b[c+12+2],b[c+12+3])}else switch(this.type){case 0:case 4:case 8:a.vertexAttrib1f(this.index,
0);break;case 1:case 5:case 9:a.vertexAttrib2f(this.index,0,0);break;case 2:case 6:case 10:a.vertexAttrib3f(this.index,0,0,0);break;case 3:case 7:case 11:a.vertexAttrib4f(this.index,0,0,0,0);break;case 12:a.vertexAttrib2f(this.index+0,0,0);a.vertexAttrib2f(this.index+1,0,0);break;case 16:a.vertexAttrib3f(this.index+0,0,0,0);a.vertexAttrib3f(this.index+1,0,0,0);a.vertexAttrib3f(this.index+2,0,0,0);break;case 20:a.vertexAttrib4f(this.index+0,0,0,0,0),a.vertexAttrib4f(this.index+1,0,0,0,0),a.vertexAttrib4f(this.index+
2,0,0,0,0),a.vertexAttrib4f(this.index+3,0,0,0,0)}}},set_name:function(a){this.__internal=ia.startsWith(a,"openfl_");return this.name=a},__class__:bl,__properties__:{set_name:"set_name"}};var Og=function(){ka.call(this);this.__drawableType=3};g["openfl.display.Shape"]=Og;Og.__name__="openfl.display.Shape";Og.__super__=ka;Og.prototype=r(ka.prototype,{get_graphics:function(){null==this.__graphics&&(this.__graphics=new ye(this));return this.__graphics},__class__:Og,__properties__:r(ka.prototype.__properties__,
{get_graphics:"get_graphics"})});var bi=function(a,b,c,d){Na.call(this);this.__drawableType=6;this.enabled=!0;this.trackAsMenu=!1;this.useHandCursor=!0;this.__upState=null!=a?a:new ka;this.__overState=b;this.__downState=c;this.set_hitTestState(null!=d?d:new ka);this.addEventListener("mouseDown",k(this,this.__this_onMouseDown));this.addEventListener("mouseOut",k(this,this.__this_onMouseOut));this.addEventListener("mouseOver",k(this,this.__this_onMouseOver));this.addEventListener("mouseUp",k(this,this.__this_onMouseUp));
this.__tabEnabled=!0;this.set___currentState(this.__upState);null!=bi.__constructor&&(a=bi.__constructor,bi.__constructor=null,a(this))};g["openfl.display.SimpleButton"]=bi;bi.__name__="openfl.display.SimpleButton";bi.__super__=Na;bi.prototype=r(Na.prototype,{enabled:null,trackAsMenu:null,useHandCursor:null,__currentState:null,__downState:null,__hitTestState:null,__ignoreEvent:null,__overState:null,__previousStates:null,__soundTransform:null,__upState:null,__getBounds:function(a,b){Na.prototype.__getBounds.call(this,
a,b);var c=Aa.__pool.get(),d=this.__currentState.__transform;c.a=d.a*b.a+d.b*b.c;c.b=d.a*b.b+d.b*b.d;c.c=d.c*b.a+d.d*b.c;c.d=d.c*b.b+d.d*b.d;c.tx=d.tx*b.a+d.ty*b.c+b.tx;c.ty=d.tx*b.b+d.ty*b.d+b.ty;this.__currentState.__getBounds(a,c);Aa.__pool.release(c)},__getRenderBounds:function(a,b){if(null!=this.__scrollRect)Na.prototype.__getRenderBounds.call(this,a,b);else{Na.prototype.__getBounds.call(this,a,b);var c=Aa.__pool.get(),d=this.__currentState.__transform;c.a=d.a*b.a+d.b*b.c;c.b=d.a*b.b+d.b*b.d;
c.c=d.c*b.a+d.d*b.c;c.d=d.c*b.b+d.d*b.d;c.tx=d.tx*b.a+d.ty*b.c+b.tx;c.ty=d.tx*b.b+d.ty*b.d+b.ty;this.__currentState.__getRenderBounds(a,c);Aa.__pool.release(c)}},__getCursor:function(){return this.useHandCursor&&!this.__ignoreEvent&&this.enabled?"button":null},__hitTest:function(a,b,c,d,e,f){var h=!1;null!=this.get_hitTestState()?this.get_hitTestState().__hitTest(a,b,c,d,e,f)&&(null!=d&&(0==d.length?d[0]=f:d[d.length-1]=f),h=!e||this.mouseEnabled):null!=this.__currentState&&(!f.get_visible()||this.__isMask||
e&&!this.mouseEnabled||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b)?h=!1:this.__currentState.__hitTest(a,b,c,d,e,f)&&(h=e));if(null!=d)for(;1<d.length&&d[d.length-1]==d[d.length-2];)d.pop();return h},__hitTestMask:function(a,b){var c=!1;this.__currentState.__hitTestMask(a,b)&&(c=!0);return c},__setStageReference:function(a){Na.prototype.__setStageReference.call(this,a);null!=this.__currentState&&this.__currentState.__setStageReference(a);null!=this.get_hitTestState()&&this.get_hitTestState()!=
this.__currentState&&this.get_hitTestState().__setStageReference(a)},__setTransformDirty:function(){Na.prototype.__setTransformDirty.call(this);null!=this.__currentState&&this.__currentState.__setTransformDirty();null!=this.get_hitTestState()&&this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__setTransformDirty()},__update:function(a,b){Na.prototype.__update.call(this,a,b);b&&(null!=this.__currentState&&this.__currentState.__update(a,!0),null!=this.get_hitTestState()&&this.get_hitTestState()!=
this.__currentState&&this.get_hitTestState().__update(a,!0))},__updateTransforms:function(a){Na.prototype.__updateTransforms.call(this,a);null!=this.__currentState&&this.__currentState.__updateTransforms();null!=this.get_hitTestState()&&this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__updateTransforms()},get_downState:function(){return this.__downState},set_downState:function(a){null!=this.__downState&&this.__currentState==this.__downState&&this.set___currentState(this.__downState);
return this.__downState=a},get_hitTestState:function(){return this.__hitTestState},set_hitTestState:function(a){null!=this.__hitTestState&&this.__hitTestState!=a&&this.__hitTestState!=this.get_downState()&&this.__hitTestState!=this.get_upState()&&this.__hitTestState!=this.get_overState()&&(this.__hitTestState.__renderParent=null);null!=a&&(a.__renderParent=this,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));return this.__hitTestState=a},get_overState:function(){return this.__overState},
set_overState:function(a){null!=this.__overState&&this.__currentState==this.__overState&&this.set___currentState(a);return this.__overState=a},get_soundTransform:function(){null==this.__soundTransform&&(this.__soundTransform=new hf);return new hf(this.__soundTransform.volume,this.__soundTransform.pan)},set_soundTransform:function(a){this.__soundTransform=new hf(a.volume,a.pan);return a},get_upState:function(){return this.__upState},set_upState:function(a){null!=this.__upState&&this.__currentState==
this.__upState&&this.set___currentState(a);return this.__upState=a},set___currentState:function(a){null!=this.__currentState&&this.__currentState!=this.get_hitTestState()&&(this.__currentState.__renderParent=null);null!=a&&null!=a.parent&&a.parent.removeChild(a);ka.__supportDOM&&null==this.__previousStates&&(this.__previousStates=fb.toObjectVector(null));if(a!=this.__currentState){if(ka.__supportDOM){null!=this.__currentState&&(this.__currentState.__setStageReference(null),this.__previousStates.push(this.__currentState));
var b=this.__previousStates.indexOf(a,0);-1<b&&this.__previousStates.splice(b,1)}null!=a&&(a.__renderParent=this,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())}return this.__currentState=a},__this_onMouseDown:function(a){this.enabled&&this.set___currentState(this.get_downState())},__this_onMouseOut:function(a){this.__ignoreEvent=!1;this.get_upState()!=this.__currentState&&this.set___currentState(this.get_upState())},
__this_onMouseOver:function(a){a.buttonDown&&(this.__ignoreEvent=!0);this.get_overState()!=this.__currentState&&null!=this.get_overState()&&!this.__ignoreEvent&&this.enabled&&this.set___currentState(this.get_overState())},__this_onMouseUp:function(a){this.__ignoreEvent=!1;this.enabled&&null!=this.get_overState()?this.set___currentState(this.get_overState()):this.set___currentState(this.get_upState())},__class__:bi,__properties__:r(Na.prototype.__properties__,{set___currentState:"set___currentState",
set_upState:"set_upState",get_upState:"get_upState",set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform",set_overState:"set_overState",get_overState:"get_overState",set_hitTestState:"set_hitTestState",get_hitTestState:"get_hitTestState",set_downState:"set_downState",get_downState:"get_downState"})});var Vt={fromInt:function(a){return a},fromString:function(a){switch(a){case "pad":return 0;case "reflect":return 1;case "repeat":return 2;default:return null}},toInt:function(a){return a},
toString:function(a){switch(a){case 0:return"pad";case 1:return"reflect";case 2:return"repeat";default:return null}}},dl=function(a,b){jb.call(this);this.__drawableType=5;this.set_name(null);this.__color=-1;this.__colorSplit=[255,255,255];this.__colorString="#FFFFFF";this.__contentsScaleFactor=1;this.__deltaTime=this.__currentTabOrderIndex=0;this.__displayState=2;this.__logicalHeight=this.__logicalWidth=this.__lastClickTime=this.__mouseY=this.__mouseX=0;this.__displayMatrix=new Aa;this.__displayRect=
new ha;this.__renderDirty=!0;this.stage3Ds=fb.toObjectVector(null);this.stage3Ds.push(new Vj(this));this.stage3Ds.push(new Vj(this));this.stage3Ds.push(new Vj(this));this.stage3Ds.push(new Vj(this));this.stage=this;this.align=6;this.allowsFullScreenInteractive=this.allowsFullScreen=!0;this.__quality=1;this.__scaleMode=2;this.showDefaultContextMenu=!0;this.softKeyboardRect=new ha;this.stageFocusRect=!0;this.__macKeyboard=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent)||
/Mac/.test(navigator.platform);this.__clearBeforeRender=!0;this.__forceRender=!1;this.__stack=[];this.__rollOutStack=[];this.__mouseOutStack=[];this.__touchData=new Bc;this.application=a.application;this.window=a;this.set_color(b);this.__contentsScaleFactor=a.__scale;this.__wasFullscreen=a.__fullscreen;this.__resize();null==Sa.get_current().stage&&this.stage.addChild(Sa.get_current())};g["openfl.display.Stage"]=dl;dl.__name__="openfl.display.Stage";dl.__interfaces__=[bb];dl.__super__=jb;dl.prototype=
r(jb.prototype,{align:null,allowsFullScreen:null,allowsFullScreenInteractive:null,application:null,context3D:null,showDefaultContextMenu:null,softKeyboardRect:null,stage3Ds:null,stageFocusRect:null,stageHeight:null,stageWidth:null,window:null,__cacheFocus:null,__clearBeforeRender:null,__color:null,__colorSplit:null,__colorString:null,__contentsScaleFactor:null,__currentTabOrderIndex:null,__deltaTime:null,__dirty:null,__displayMatrix:null,__displayRect:null,__displayState:null,__dragBounds:null,__dragObject:null,
__dragOffsetX:null,__dragOffsetY:null,__focus:null,__forceRender:null,__fullscreen:null,__fullScreenSourceRect:null,__invalidated:null,__lastClickTime:null,__logicalWidth:null,__logicalHeight:null,__macKeyboard:null,__mouseDownLeft:null,__mouseDownMiddle:null,__mouseDownRight:null,__mouseOutStack:null,__mouseOverTarget:null,__mouseX:null,__mouseY:null,__pendingMouseEvent:null,__pendingMouseX:null,__pendingMouseY:null,__quality:null,__renderer:null,__rendering:null,__rollOutStack:null,__scaleMode:null,
__stack:null,__touchData:null,__transparent:null,__wasDirty:null,__wasFullscreen:null,__primaryTouch:null,invalidate:function(){this.__renderDirty=this.__invalidated=!0},localToGlobal:function(a){return a.clone()},__broadcastEvent:function(a){if(Object.prototype.hasOwnProperty.call(ka.__broadcastEvents.h,a.type))for(var b=ka.__broadcastEvents.h[a.type],c=0;c<b.length;){var d=b[c];++c;if(d.stage==this||null==d.stage)try{d.__dispatch(a)}catch(e){wa.lastError=e,d=u.caught(e).unwrap(),this.__handleError(d)}}},
__createRenderer:function(){var a=1;1<this.window.__scale&&(a=this.window.devicePixelRatio||1);var b=this.window.__width*this.window.__scale|0,c=this.window.__height*this.window.__scale|0;switch(this.window.context.type){case "canvas":this.__renderer=new Zh(this.window.context.canvas2D);N.__cast(this.__renderer,Zh).pixelRatio=a;break;case "dom":this.__renderer=new al(this.window.context.dom);N.__cast(this.__renderer,al).pixelRatio=a;break;case "opengl":case "opengles":case "webgl":this.context3D=
new Sb(this),this.context3D.configureBackBuffer(b,c,0,!0,!0,!0),this.context3D.present(),this.__renderer=new ub(this.context3D)}null!=this.__renderer&&(a=this.get_quality(),this.__renderer.__allowSmoothing=2!=a,this.__renderer.__worldTransform=this.__displayMatrix,this.__renderer.__stage=this,this.__renderer.__resize(b,c))},__dispatchEvent:function(a){try{return jb.prototype.__dispatchEvent.call(this,a)}catch(b){return wa.lastError=b,a=u.caught(b).unwrap(),this.__handleError(a),!1}},__dispatchPendingMouseEvent:function(){this.__pendingMouseEvent&&
(this.__onMouse("mouseMove",this.__pendingMouseX,this.__pendingMouseY,0),this.__pendingMouseEvent=!1)},__dispatchStack:function(a,b){try{var c=b.length;if(0==c){a.eventPhase=2;var d=a.target;d.__dispatch(a)}else{a.eventPhase=1;a.target=b[b.length-1];for(var e=0,f=c-1;e<f;){var h=e++;b[h].__dispatch(a);if(a.__isCanceled)return}a.eventPhase=2;d=a.target;d.__dispatch(a);if(!a.__isCanceled&&a.bubbles)for(a.eventPhase=3,h=c-2;0<=h;){b[h].__dispatch(a);if(a.__isCanceled)break;--h}}}catch(l){wa.lastError=
l,a=u.caught(l).unwrap(),this.__handleError(a)}},__dispatchTarget:function(a,b){try{return a.__dispatchEvent(b)}catch(c){return wa.lastError=c,a=u.caught(c).unwrap(),this.__handleError(a),!1}},__drag:function(a){var b=this.__dragObject.parent;if(null!=b){b=b.__getWorldTransform();var c=b.a*b.d-b.b*b.c;if(0==c)a.x=-b.tx,a.y=-b.ty;else{var d=1/c*(b.c*(b.ty-a.y)+b.d*(a.x-b.tx));a.y=1/c*(b.a*(a.y-b.ty)+b.b*(b.tx-a.x));a.x=d}}b=a.x+this.__dragOffsetX;a=a.y+this.__dragOffsetY;null!=this.__dragBounds&&(b<
this.__dragBounds.x?b=this.__dragBounds.x:b>this.__dragBounds.get_right()&&(b=this.__dragBounds.get_right()),a<this.__dragBounds.y?a=this.__dragBounds.y:a>this.__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 el("uncaughtError",!0,!0,a);try{Sa.get_current().__loaderInfo.uncaughtErrorEvents.dispatchEvent(b)}catch(d){wa.lastError=
d}if(!b.__preventDefault){b=Cf.toString(Cf.exceptionStack());console.log(b);b=B.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=Cf.toString(Cf.callStack());console.log(c)}}catch(d){wa.lastError=d}throw a;}},__onKey:function(a,b,c){this.__dispatchPendingMouseEvent();eb.__altKey=mb.get_altKey(c);eb.__commandKey=mb.get_metaKey(c);eb.__ctrlKey=mb.get_ctrlKey(c);eb.__shiftKey=mb.get_shiftKey(c);
var d=[];null==this.__focus?this.__getInteractive(d):this.__focus.__getInteractive(d);if(0<d.length){switch(b){case 1073741908:case 1073741909:case 1073741910:case 1073741911:case 1073741912:case 1073741913:case 1073741914:case 1073741915:case 1073741916:case 1073741917:case 1073741918:case 1073741919:case 1073741920:case 1073741921:case 1073741922:case 1073741923:case 1073742044:var e=3;break;case 1073742048:case 1073742049:case 1073742050:case 1073742051:e=1;break;case 1073742052:case 1073742053:case 1073742054:case 1073742055:e=
2;break;default:e=0}switch(b){case 8:b=8;break;case 9:b=9;break;case 13:b=13;break;case 27:b=27;break;case 32:b=32;break;case 33:b=49;break;case 34:b=222;break;case 35:b=51;break;case 36:b=52;break;case 37:b=53;break;case 38:b=55;break;case 39:b=222;break;case 40:b=57;break;case 41:b=48;break;case 42:b=56;break;case 44:b=188;break;case 45:b=189;break;case 46:b=190;break;case 47:b=191;break;case 48:b=48;break;case 49:b=49;break;case 50:b=50;break;case 51:b=51;break;case 52:b=52;break;case 53:b=53;
break;case 54:b=54;break;case 55:b=55;break;case 56:b=56;break;case 57:b=57;break;case 58:b=186;break;case 59:b=186;break;case 60:b=60;break;case 61:b=187;break;case 62:b=190;break;case 63:b=191;break;case 64:b=50;break;case 91:b=219;break;case 92:b=220;break;case 93:b=221;break;case 94:b=54;break;case 95:b=189;break;case 96:b=192;break;case 97:b=65;break;case 98:b=66;break;case 99:b=67;break;case 100:b=68;break;case 101:b=69;break;case 102:b=70;break;case 103:b=71;break;case 104:b=72;break;case 105:b=
73;break;case 106:b=74;break;case 107:b=75;break;case 108:b=76;break;case 109:b=77;break;case 110:b=78;break;case 111:b=79;break;case 112:b=80;break;case 113:b=81;break;case 114:b=82;break;case 115:b=83;break;case 116:b=84;break;case 117:b=85;break;case 118:b=86;break;case 119:b=87;break;case 120:b=88;break;case 121:b=89;break;case 122:b=90;break;case 127:b=46;break;case 1073741881:b=20;break;case 1073741882:b=112;break;case 1073741883:b=113;break;case 1073741884:b=114;break;case 1073741885:b=115;
break;case 1073741886:b=116;break;case 1073741887:b=117;break;case 1073741888:b=118;break;case 1073741889:b=119;break;case 1073741890:b=120;break;case 1073741891:b=121;break;case 1073741892:b=122;break;case 1073741893:b=123;break;case 1073741894:b=301;break;case 1073741895:b=145;break;case 1073741896:b=19;break;case 1073741897:b=45;break;case 1073741898:b=36;break;case 1073741899:b=33;break;case 1073741901:b=35;break;case 1073741902:b=34;break;case 1073741903:b=39;break;case 1073741904:b=37;break;
case 1073741905:b=40;break;case 1073741906:b=38;break;case 1073741907:b=144;break;case 1073741908:b=111;break;case 1073741909:b=106;break;case 1073741910:b=109;break;case 1073741911:b=107;break;case 1073741912:b=13;break;case 1073741913:b=97;break;case 1073741914:b=98;break;case 1073741915:b=99;break;case 1073741916:b=100;break;case 1073741917:b=101;break;case 1073741918:b=102;break;case 1073741919:b=103;break;case 1073741920:b=104;break;case 1073741921:b=105;break;case 1073741922:b=96;break;case 1073741923:b=
110;break;case 1073741925:b=302;break;case 1073741928:b=124;break;case 1073741929:b=125;break;case 1073741930:b=126;break;case 1073741982:b=13;break;case 1073742044:b=110;break;case 1073742048:b=17;break;case 1073742049:b=16;break;case 1073742050:b=18;break;case 1073742051:b=15;break;case 1073742052:b=17;break;case 1073742053:b=16;break;case 1073742054:b=18;break;case 1073742055:b=15}var f=pa.__getCharCode(b,mb.get_shiftKey(c));if("keyUp"==a&&(32==b||13==b)&&this.__focus instanceof F){var h=N.__cast(this.__focus,
F);if(h.get_buttonMode()&&1==h.focusRect){var l=ab.__pool.get(),m=ab.__pool.get();m.x=this.__mouseX;m.y=this.__mouseY;h=eb.__create("click",0,this.__mouseX,this.__mouseY,h.__globalToLocal(m,l),h);this.__dispatchStack(h,d);ab.__pool.release(m);ab.__pool.release(l)}}e=new Ii(a,!0,!0,f,b,e,this.__macKeyboard?mb.get_ctrlKey(c)||mb.get_metaKey(c):mb.get_ctrlKey(c),mb.get_altKey(c),mb.get_shiftKey(c),mb.get_ctrlKey(c),mb.get_metaKey(c));d.reverse();this.__dispatchStack(e,d);if(e.__preventDefault)"keyDown"==
a?this.window.onKeyDown.cancel():this.window.onKeyUp.cancel();else if("keyDown"==a&&9==b){d=[];this.__tabTest(d);b=-1;a=null;e=mb.get_shiftKey(c)?-1:1;if(1<d.length){Hd.sort(d,function(a,b){return a.get_tabIndex()-b.get_tabIndex()});if(-1!=d[d.length-1].get_tabIndex())for(l=0;l<d.length;){if(-1<d[l].get_tabIndex()){0<l&&d.splice(0,l);break}++l}if(null!=this.get_focus()){l=this.get_focus();for(f=d.indexOf(l);-1==f&&null!=l;){b=l.parent;if(null!=b&&b.get_tabChildren()){l=b.getChildIndex(l);if(-1==l){l=
b;continue}for(l+=e;mb.get_shiftKey(c)?0<=l:l<b.get_numChildren();){m=b.getChildAt(l);if(m instanceof Na&&(f=N.__cast(m,Na),f=d.indexOf(f),-1!=f)){e=0;break}l+=e}}else mb.get_shiftKey(c)&&(f=d.indexOf(b),-1!=f&&(e=0));l=b}b=0>f?0:f+e}else b=this.__currentTabOrderIndex}else 1==d.length&&(a=d[0],this.get_focus()==a&&(a=null));f=0<=b&&b<d.length;1==d.length||0==d.length&&null!=this.get_focus()?b=0:1<d.length&&(0>b&&(b+=d.length),b%=d.length,a=d[b],a==this.get_focus()&&(b+=e,0>b&&(b+=d.length),b%=d.length,
a=d[b]));e=null;null!=this.get_focus()&&(e=new tg("keyFocusChange",!0,!0,a,mb.get_shiftKey(c),0),d=[],this.get_focus().__getInteractive(d),d.reverse(),this.__dispatchStack(e,d),e.isDefaultPrevented()&&this.window.onKeyDown.cancel());null!=e&&e.isDefaultPrevented()||(this.__currentTabOrderIndex=b,null!=a&&this.set_focus(a),f&&this.window.onKeyDown.cancel())}}},__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 e=this;var f=function(b){e.__onLimeWindowDropFile(a,b)};a.onDropFile.add(f);var h=this;a.onEnter.add(function(){h.__onLimeWindowEnter(a)});var l=this;a.onExpose.add(function(){l.__onLimeWindowExpose(a)});var m=this;a.onFocusIn.add(function(){m.__onLimeWindowFocusIn(a)});var g=this;a.onFocusOut.add(function(){g.__onLimeWindowFocusOut(a)});var q=this;a.onFullscreen.add(function(){q.__onLimeWindowFullscreen(a)});var n=
this;f=function(b,c){n.__onLimeKeyDown(a,b,c)};a.onKeyDown.add(f);var p=this;f=function(b,c){p.__onLimeKeyUp(a,b,c)};a.onKeyUp.add(f);var r=this;a.onLeave.add(function(){r.__onLimeWindowLeave(a)});var v=this;a.onMinimize.add(function(){v.__onLimeWindowMinimize(a)});var u=this;f=function(b,c,d){u.__onLimeMouseDown(a,b,c,d)};a.onMouseDown.add(f);var A=this;f=function(b,c){A.__onLimeMouseMove(a,b,c)};a.onMouseMove.add(f);var x=this;f=function(b,c){x.__onLimeMouseMoveRelative(a,b,c)};a.onMouseMoveRelative.add(f);
var z=this;f=function(b,c,d){z.__onLimeMouseUp(a,b,c,d)};a.onMouseUp.add(f);var w=this;f=function(b,c,d){w.__onLimeMouseWheel(a,b,c,d)};a.onMouseWheel.add(f);var U=this;f=function(b,c){U.__onLimeWindowMove(a,b,c)};a.onMove.add(f);a.onRender.add(k(this,this.__onLimeRender));a.onRenderContextLost.add(k(this,this.__onLimeRenderContextLost));a.onRenderContextRestored.add(k(this,this.__onLimeRenderContextRestored));var X=this;f=function(b,c){X.__onLimeWindowResize(a,b,c)};a.onResize.add(f);var B=this;
a.onRestore.add(function(){B.__onLimeWindowRestore(a)});var P=this;f=function(b,c,d){P.__onLimeTextEdit(a,b,c,d)};a.onTextEdit.add(f);var F=this;f=function(b){F.__onLimeTextInput(a,b)};a.onTextInput.add(f);this.__onLimeWindowCreate(a)}},__onLimeGamepadAxisMove:function(a,b,c){try{Jb.__onGamepadAxisMove(a,b,c)}catch(d){wa.lastError=d,a=u.caught(d).unwrap(),this.__handleError(a)}},__onLimeGamepadButtonDown:function(a,b){try{Jb.__onGamepadButtonDown(a,b)}catch(c){wa.lastError=c,a=u.caught(c).unwrap(),
this.__handleError(a)}},__onLimeGamepadButtonUp:function(a,b){try{Jb.__onGamepadButtonUp(a,b)}catch(c){wa.lastError=c,a=u.caught(c).unwrap(),this.__handleError(a)}},__onLimeGamepadConnect:function(a){try{Jb.__onGamepadConnect(a)}catch(h){wa.lastError=h;var b=u.caught(h).unwrap();this.__handleError(b)}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 e=this;b=function(b){e.__onLimeGamepadButtonUp(a,
b)};a.onButtonUp.add(b);var f=this;a.onDisconnect.add(function(){f.__onLimeGamepadDisconnect(a)})},__onLimeGamepadDisconnect:function(a){try{Jb.__onGamepadDisconnect(a)}catch(b){wa.lastError=b,a=u.caught(b).unwrap(),this.__handleError(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 W("deactivate"),
this.__broadcastEvent(a))},__onLimeMouseDown:function(a,b,c,d){if(null!=this.window&&this.window==a){this.__dispatchPendingMouseEvent();switch(d){case 1:var e="middleMouseDown";break;case 2:e="rightMouseDown";break;default:e="mouseDown"}this.__onMouse(e,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 e="middleMouseUp";break;case 2:e="rightMouseUp";break;default:e="mouseUp"}this.__onMouse(e,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==Hf.PIXELS?this.__onMouseWheel(b*
a.__scale|0,c*a.__scale|0,d):this.__onMouseWheel(b|0,c|0,d))},__onLimeRender:function(a){if(!this.__rendering){this.__rendering=!0;this.__broadcastEvent(new W("enterFrame"));this.__broadcastEvent(new W("frameConstructed"));this.__broadcastEvent(new W("exitFrame"));this.__renderable=!0;this.__enterFrame(this.__deltaTime);this.__deltaTime=0;a=null!=this.__renderer&&(this.__renderDirty||this.__forceRender);if(this.__invalidated&&a){this.__invalidated=!1;var b=new W("render");this.__broadcastEvent(b)}this.__update(!1,
!0);if(null!=this.__renderer){if(null!=this.context3D){for(b=this.stage3Ds.iterator();b.hasNext();){var c=b.next();this.context3D.__renderStage3D(c)}this.context3D.__present&&(a=!0)}a?(null==this.context3D&&this.__renderer.__clear(),this.__renderer.__render(this)):null==this.context3D&&this.window.onRender.cancel();null!=this.context3D&&(this.context3D.__present?(this.__renderer.__cleared||this.__renderer.__clear(),this.context3D.__present=!1,this.context3D.__cleared=!1):this.window.onRender.cancel());
this.__renderer.__cleared=!1}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 Ye("textInput",!0,!0,b);0<c.length?(c.reverse(),this.__dispatchStack(b,c)):this.__dispatchEvent(b);b.isDefaultPrevented()&&a.onTextInput.cancel()}},__onLimeTouchCancel:function(a){var b=this.__primaryTouch==a;b&&(this.__primaryTouch=null);this.__onTouch("touchEnd",a,b)},__onLimeTouchMove:function(a){this.__onTouch("touchMove",a,this.__primaryTouch==a)},__onLimeTouchEnd:function(a){var b=this.__primaryTouch==a;b&&(this.__primaryTouch=null);this.__onTouch("touchEnd",a,b)},__onLimeTouchStart:function(a){null==
this.__primaryTouch&&(this.__primaryTouch=a);this.__onTouch("touchBegin",a,this.__primaryTouch==a)},__onLimeUpdate:function(a){this.__deltaTime=a;this.__dispatchPendingMouseEvent()},__onLimeWindowActivate:function(a){},__onLimeWindowClose:function(a){this.window==a&&(this.window=null);this.__primaryTouch=null;a=new W("deactivate");this.__broadcastEvent(a)},__onLimeWindowCreate:function(a){null!=this.window&&this.window==a&&null!=a.context&&this.__createRenderer()},__onLimeWindowDeactivate:function(a){},
__onLimeWindowDropFile:function(a,b){},__onLimeWindowEnter:function(a){},__onLimeWindowExpose:function(a){null!=this.window&&this.window==a&&(this.__renderDirty=!0)},__onLimeWindowFocusIn:function(a){null!=this.window&&this.window==a&&(this.__renderDirty=!0,a=new W("activate"),this.__broadcastEvent(a),this.set_focus(this.__cacheFocus))},__onLimeWindowFocusOut:function(a){null!=this.window&&this.window==a&&(this.__primaryTouch=null,a=new W("deactivate"),this.__broadcastEvent(a),a=this.get_focus(),
this.set_focus(null),this.__cacheFocus=a,eb.__altKey=!1,eb.__commandKey=!1,eb.__ctrlKey=!1,eb.__shiftKey=!1)},__onLimeWindowFullscreen:function(a){null!=this.window&&this.window==a&&(this.__resize(),this.__wasFullscreen||(this.__wasFullscreen=!0,2==this.__displayState&&(this.__displayState=1),this.__dispatchEvent(new gh("fullScreen",!1,!1,!0,!0))))},__onLimeWindowLeave:function(a){null==this.window||this.window!=a||eb.__buttonDown||(this.__dispatchPendingMouseEvent(),a=new W("mouseLeave"),this.__dispatchEvent(a))},
__onLimeWindowMinimize:function(a){},__onLimeWindowMove:function(a,b,c){},__onLimeWindowResize:function(a,b,c){null!=this.window&&this.window==a&&(this.__resize(),this.__wasFullscreen&&!a.__fullscreen&&(this.__wasFullscreen=!1,this.__displayState=2,this.__dispatchEvent(new gh("fullScreen",!1,!1,!1,!0))))},__onLimeWindowRestore:function(a){null!=this.window&&this.window==a&&this.__wasFullscreen&&!a.__fullscreen&&(this.__wasFullscreen=!1,this.__displayState=2,this.__dispatchEvent(new gh("fullScreen",
!1,!1,!1,!0)))},__onMouse:function(a,b,c,d){if(!(2<d)){var e=ab.__pool.get();e.setTo(b,c);b=this.__displayMatrix;c=b.a*b.d-b.b*b.c;if(0==c)e.x=-b.tx,e.y=-b.ty;else{var f=1/c*(b.c*(b.ty-e.y)+b.d*(e.x-b.tx));e.y=1/c*(b.a*(e.y-b.ty)+b.b*(b.tx-e.x));e.x=f}this.__mouseX=e.x;this.__mouseY=e.y;b=[];this.__hitTest(this.__mouseX,this.__mouseY,!0,b,!0,this)?f=b[b.length-1]:(f=this,b=[this]);null==f&&(f=this);var h=null;switch(a){case "middleMouseDown":this.__mouseDownMiddle=f;break;case "middleMouseUp":this.__mouseDownMiddle==
f&&(h="middleClick");this.__mouseDownMiddle=null;break;case "mouseDown":null!=this.get_focus()?this.get_focus()!=f&&(c=new tg("mouseFocusChange",!0,!0,f,!1,0),this.get_focus().dispatchEvent(c),c.isDefaultPrevented()||(f.__allowMouseFocus()?this.set_focus(f):this.set_focus(null))):f.__allowMouseFocus()?this.set_focus(f):this.set_focus(null);this.__mouseDownLeft=f;eb.__buttonDown=!0;break;case "mouseUp":if(null!=this.__mouseDownLeft){eb.__buttonDown=!1;if(this.__mouseDownLeft==f)h="click";else{var l=
eb.__create("releaseOutside",1,this.__mouseX,this.__mouseY,new ab(this.__mouseX,this.__mouseY),this);this.__mouseDownLeft.dispatchEvent(l)}this.__mouseDownLeft=null}break;case "rightMouseDown":this.__mouseDownRight=f;break;case "rightMouseUp":this.__mouseDownRight==f&&(h="rightClick"),this.__mouseDownRight=null}c=ab.__pool.get();l=eb.__create(a,d,this.__mouseX,this.__mouseY,f.__globalToLocal(e,c),f);this.__dispatchStack(l,b);null!=h&&(l=eb.__create(h,d,this.__mouseX,this.__mouseY,f.__globalToLocal(e,
c),f),this.__dispatchStack(l,b),"mouseUp"==a&&J.field(f,"doubleClickEnabled")&&(a=Sa.getTimer(),500>a-this.__lastClickTime?(l=eb.__create("doubleClick",d,this.__mouseX,this.__mouseY,f.__globalToLocal(e,c),f),this.__dispatchStack(l,b),this.__lastClickTime=0):this.__lastClickTime=a));if("auto"==me.__cursor&&!me.__hidden){l=null;if(null!=this.__mouseDownLeft)l=this.__mouseDownLeft.__getCursor();else for(a=0;a<b.length;)if(l=b[a],++a,l=l.__getCursor(),null!=l&&null!=this.window){this.window.set_cursor(Lf.toLimeCursor(l));
break}null==l&&null!=this.window&&this.window.set_cursor(sb.ARROW)}f!=this.__mouseOverTarget&&null!=this.__mouseOverTarget&&(l=eb.__create("mouseOut",d,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(e,c),this.__mouseOverTarget),this.__dispatchStack(l,this.__mouseOutStack));for(a=0;a<this.__rollOutStack.length;)h=this.__rollOutStack[a],-1==b.indexOf(h)?(G.remove(this.__rollOutStack,h),l=eb.__create("rollOut",d,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(e,
c),h),l.bubbles=!1,this.__dispatchTarget(h,l)):++a;for(a=0;a<b.length;)h=b[a],++a,-1==this.__rollOutStack.indexOf(h)&&null!=this.__mouseOverTarget&&(h.hasEventListener("rollOver")&&(l=eb.__create("rollOver",d,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(e,c),h),l.bubbles=!1,this.__dispatchTarget(h,l)),(h.hasEventListener("rollOut")||h.hasEventListener("rollOver"))&&this.__rollOutStack.push(h));f!=this.__mouseOverTarget&&(null!=f&&(l=eb.__create("mouseOver",d,this.__mouseX,this.__mouseY,
f.__globalToLocal(e,c),f),this.__dispatchStack(l,b)),this.__mouseOverTarget=f,this.__mouseOutStack=b);null!=this.__dragObject&&(this.__drag(e),d=null,this.__mouseOverTarget==this.__dragObject?(f=this.__dragObject.mouseEnabled,a=this.__dragObject.mouseChildren,this.__dragObject.mouseEnabled=!1,this.__dragObject.mouseChildren=!1,b=[],this.__hitTest(this.__mouseX,this.__mouseY,!0,b,!0,this)&&(d=b[b.length-1]),this.__dragObject.mouseEnabled=f,this.__dragObject.mouseChildren=a):this.__mouseOverTarget!=
this&&(d=this.__mouseOverTarget),this.__dragObject.dropTarget=d);ab.__pool.release(e);ab.__pool.release(c)}},__onMouseWheel:function(a,b,c){var d=this.__mouseX,e=this.__mouseY;a=[];if(this.__hitTest(this.__mouseX,this.__mouseY,!0,a,!0,this))var f=a[a.length-1];else f=this,a=[this];null==f&&(f=this);c=ab.__pool.get();c.setTo(d,e);d=this.__displayMatrix;e=d.a*d.d-d.b*d.c;if(0==e)c.x=-d.tx,c.y=-d.ty;else{var h=1/e*(d.c*(d.ty-c.y)+d.d*(c.x-d.tx));c.y=1/e*(d.a*(c.y-d.ty)+d.b*(d.tx-c.x));c.x=h}b|=0;b=eb.__create("mouseWheel",
0,this.__mouseX,this.__mouseY,f.__globalToLocal(c,c),f,b);b.cancelable=!0;this.__dispatchStack(b,a);b.isDefaultPrevented()&&this.window.onMouseWheel.cancel();ab.__pool.release(c)},__onTouch:function(a,b,c){var d=ab.__pool.get();d.setTo(Math.round(b.x*this.window.__width*this.window.__scale),Math.round(b.y*this.window.__height*this.window.__scale));var e=this.__displayMatrix,f=e.a*e.d-e.b*e.c;if(0==f)d.x=-e.tx,d.y=-e.ty;else{var h=1/f*(e.c*(e.ty-d.y)+e.d*(d.x-e.tx));d.y=1/f*(e.a*(d.y-e.ty)+e.b*(e.tx-
d.x));d.x=h}e=d.x;f=d.y;h=[];if(this.__hitTest(e,f,!1,h,!0,this))var l=h[h.length-1];else l=this,h=[this];null==l&&(l=this);var m=b.id;if(this.__touchData.h.hasOwnProperty(m))var k=this.__touchData.h[m];else k=Wj.__pool.get(),k.reset(),k.touch=b,this.__touchData.h[m]=k;var g=null,n=!1;switch(a){case "touchBegin":k.touchDownTarget=l;break;case "touchEnd":k.touchDownTarget==l&&(g="touchTap"),k.touchDownTarget=null,n=!0}var q=ab.__pool.get();a=xd.__create(a,null,e,f,l.__globalToLocal(d,q),l);a.touchPointID=
m;a.isPrimaryTouchPoint=c;a.pressure=b.pressure;this.__dispatchStack(a,h);null!=g&&(a=xd.__create(g,null,e,f,l.__globalToLocal(d,q),l),a.touchPointID=m,a.isPrimaryTouchPoint=c,a.pressure=b.pressure,this.__dispatchStack(a,h));g=k.touchOverTarget;l!=g&&null!=g&&(a=xd.__create("touchOut",null,e,f,g.__globalToLocal(d,q),g),a.touchPointID=m,a.isPrimaryTouchPoint=c,a.pressure=b.pressure,this.__dispatchTarget(g,a));for(var p=k.rollOutStack,r,v=0;v<p.length;)r=p[v],-1==h.indexOf(r)?(G.remove(p,r),a=xd.__create("touchRollOut",
null,e,f,g.__globalToLocal(d,q),g),a.touchPointID=m,a.isPrimaryTouchPoint=c,a.bubbles=!1,a.pressure=b.pressure,this.__dispatchTarget(r,a)):++v;for(v=0;v<h.length;)r=h[v],++v,-1==p.indexOf(r)&&(r.hasEventListener("touchRollOver")&&(a=xd.__create("touchRollOver",null,e,f,g.__globalToLocal(d,q),r),a.touchPointID=m,a.isPrimaryTouchPoint=c,a.bubbles=!1,a.pressure=b.pressure,this.__dispatchTarget(r,a)),r.hasEventListener("touchRollOut")&&p.push(r));l!=g&&(null!=l&&(a=xd.__create("touchOver",null,e,f,l.__globalToLocal(d,
q),l),a.touchPointID=m,a.isPrimaryTouchPoint=c,a.bubbles=!0,a.pressure=b.pressure,this.__dispatchTarget(l,a)),k.touchOverTarget=l);ab.__pool.release(d);ab.__pool.release(q);n&&(this.__touchData.remove(m),k.reset(),Wj.__pool.release(k))},__registerLimeModule:function(a){a.onCreateWindow.add(k(this,this.__onLimeCreateWindow));a.onUpdate.add(k(this,this.__onLimeUpdate));a.onExit.add(k(this,this.__onLimeModuleExit),!1,0);for(a=dd.devices.iterator();a.hasNext();){var b=a.next();this.__onLimeGamepadConnect(b)}dd.onConnect.add(k(this,
this.__onLimeGamepadConnect));Qc.onStart.add(k(this,this.__onLimeTouchStart));Qc.onMove.add(k(this,this.__onLimeTouchMove));Qc.onEnd.add(k(this,this.__onLimeTouchEnd));Qc.onCancel.add(k(this,this.__onLimeTouchCancel))},__resize:function(){var a=this.stageWidth,b=this.stageHeight,c=this.window.__width*this.window.__scale|0,d=this.window.__height*this.window.__scale|0;this.__logicalWidth=c;this.__logicalHeight=d;this.__displayMatrix.identity();if(null!=this.get_fullScreenSourceRect()&&this.window.__fullscreen){this.stageWidth=
this.get_fullScreenSourceRect().width|0;this.stageHeight=this.get_fullScreenSourceRect().height|0;var e=c/this.stageWidth,f=d/this.stageHeight;this.__displayMatrix.translate(-this.get_fullScreenSourceRect().x,-this.get_fullScreenSourceRect().y);this.__displayMatrix.scale(e,f);this.__displayRect.setTo(this.get_fullScreenSourceRect().get_left(),this.get_fullScreenSourceRect().get_right(),this.get_fullScreenSourceRect().get_top(),this.get_fullScreenSourceRect().get_bottom())}else{if(0==this.__logicalWidth&&
0==this.__logicalHeight)this.stageWidth=c,this.stageHeight=d;else{this.stageWidth=this.__logicalWidth;this.stageHeight=this.__logicalHeight;e=Math.min(c/this.stageWidth,d/this.stageHeight);f=Math.round((c-this.stageWidth*e)/2);var h=Math.round((d-this.stageHeight*e)/2);this.__displayMatrix.scale(e,e);this.__displayMatrix.translate(f,h)}this.__displayRect.setTo(0,0,this.stageWidth,this.stageHeight)}null!=this.context3D&&this.context3D.configureBackBuffer(c,d,0,!0,!0,!0);for(e=this.stage3Ds.iterator();e.hasNext();)e.next().__resize(c,
d);null!=this.__renderer&&this.__renderer.__resize(c,d);if(this.stageWidth!=a||this.stageHeight!=b)this.__renderDirty=!0,this.__setTransformDirty(),a=new W("resize"),this.__dispatchEvent(a)},__setLogicalSize:function(a,b){this.__logicalWidth=a;this.__logicalHeight=b;this.__resize()},__startDrag:function(a,b,c){if(null==c)this.__dragBounds=null;else{this.__dragBounds=new ha;var d=c.get_right(),e=c.get_bottom();this.__dragBounds.x=d<c.x?d:c.x;this.__dragBounds.y=e<c.y?e:c.y;this.__dragBounds.width=
Math.abs(c.width);this.__dragBounds.height=Math.abs(c.height)}this.__dragObject=a;null!=this.__dragObject&&(b?this.__dragOffsetY=this.__dragOffsetX=0:(a=ab.__pool.get(),a.setTo(this.get_mouseX(),this.get_mouseY()),b=this.__dragObject.parent,null!=b&&(b=b.__getWorldTransform(),c=b.a*b.d-b.b*b.c,0==c?(a.x=-b.tx,a.y=-b.ty):(d=1/c*(b.c*(b.ty-a.y)+b.d*(a.x-b.tx)),a.y=1/c*(b.a*(a.y-b.ty)+b.b*(b.tx-a.x)),a.x=d)),this.__dragOffsetX=this.__dragObject.get_x()-a.x,this.__dragOffsetY=this.__dragObject.get_y()-
a.y,ab.__pool.release(a)))},__stopDrag:function(a){this.__dragObject=this.__dragBounds=null},__unregisterLimeModule:function(a){a.onCreateWindow.remove(k(this,this.__onLimeCreateWindow));a.onUpdate.remove(k(this,this.__onLimeUpdate));a.onExit.remove(k(this,this.__onLimeModuleExit));dd.onConnect.remove(k(this,this.__onLimeGamepadConnect));Qc.onStart.remove(k(this,this.__onLimeTouchStart));Qc.onMove.remove(k(this,this.__onLimeTouchMove));Qc.onEnd.remove(k(this,this.__onLimeTouchEnd));Qc.onCancel.remove(k(this,
this.__onLimeTouchCancel))},__update:function(a,b){a?this.__transformDirty&&(jb.prototype.__update.call(this,!0,b),b&&(this.__transformDirty=!1)):this.__transformDirty||this.__renderDirty?(jb.prototype.__update.call(this,!1,b),b&&ka.__supportDOM&&(this.__wasDirty=!0)):!this.__renderDirty&&this.__wasDirty&&(jb.prototype.__update.call(this,!1,b),b&&(this.__wasDirty=!1))},get_color:function(){return this.__color},set_color:function(a){null==a?(this.__transparent=!0,a=0):this.__transparent=!1;this.__color!=
a&&(this.__colorSplit[0]=((a&16711680)>>>16)/255,this.__colorSplit[1]=((a&65280)>>>8)/255,this.__colorSplit[2]=(a&255)/255,this.__colorString="#"+ia.hex(a&16777215,6),this.__renderDirty=!0,this.__color=-16777216|a&16777215);return a},get_contentsScaleFactor:function(){return this.__contentsScaleFactor},get_displayState:function(){return this.__displayState},set_displayState:function(a){null!=this.window&&(2==a?this.window.__fullscreen&&this.window.set_fullscreen(!1):this.window.__fullscreen||this.window.set_fullscreen(!0));
return this.__displayState=a},get_focus:function(){return this.__focus},set_focus:function(a){if(a!=this.__focus){var b=this.__focus;this.__cacheFocus=this.__focus=a;if(null!=b){var c=new tg("focusOut",!0,!1,a,!1,0),d=[];b.__getInteractive(d);d.reverse();this.__dispatchStack(c,d)}null!=a&&(c=new tg("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},set_frameRate:function(a){return null!=
this.window?this.window.__backend.setFrameRate(a):a},get_fullScreenHeight:function(){return Math.ceil(this.window.get_display().currentMode.height*this.window.__scale)},get_fullScreenSourceRect:function(){return null==this.__fullScreenSourceRect?null:this.__fullScreenSourceRect.clone()},set_fullScreenSourceRect:function(a){null==a?null!=this.__fullScreenSourceRect&&(this.__fullScreenSourceRect=null,this.__resize()):a.equals(this.__fullScreenSourceRect)||(this.__fullScreenSourceRect=a.clone(),this.__resize());
return a},get_fullScreenWidth:function(){return Math.ceil(this.window.get_display().currentMode.width*this.window.__scale)},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_quality:function(a){this.__quality=a;if(null!=this.__renderer){var b=this.get_quality();this.__renderer.__allowSmoothing=2!=b}return a},set_rotation:function(a){return 0},get_scaleMode:function(){return this.__scaleMode},
set_scaleMode:function(a){return this.__scaleMode=a},set_scaleX:function(a){return 0},set_scaleY:function(a){return 0},get_tabEnabled:function(){return!1},set_tabEnabled:function(a){throw u.thrown(new Oc("Error: The Stage class does not implement this property or method."));},get_tabIndex:function(){return-1},set_tabIndex:function(a){throw u.thrown(new Oc("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__:dl,__properties__:r(jb.prototype.__properties__,{set_scaleMode:"set_scaleMode",get_scaleMode:"get_scaleMode",set_quality:"set_quality",get_quality:"get_quality",get_fullScreenWidth:"get_fullScreenWidth",set_fullScreenSourceRect:"set_fullScreenSourceRect",get_fullScreenSourceRect:"get_fullScreenSourceRect",get_fullScreenHeight:"get_fullScreenHeight",set_frameRate:"set_frameRate",get_frameRate:"get_frameRate",set_focus:"set_focus",get_focus:"get_focus",
set_displayState:"set_displayState",get_displayState:"get_displayState",get_contentsScaleFactor:"get_contentsScaleFactor",set_color:"set_color",get_color:"get_color"})});var Vj=function(a){L.call(this);this.__stage=a;this.__height=0;this.__projectionTransform=new Bd;this.__renderTransform=new Bd;this.__y=this.__x=this.__width=0;this.visible=!0;0<a.stageWidth&&0<a.stageHeight&&this.__resize(a.stageWidth,a.stageHeight)};g["openfl.display.Stage3D"]=Vj;Vj.__name__="openfl.display.Stage3D";Vj.__super__=
L;Vj.prototype=r(L.prototype,{context3D:null,visible:null,__contextLost:null,__contextRequested:null,__height:null,__indexBuffer:null,__projectionTransform:null,__renderTransform:null,__stage:null,__vertexBuffer:null,__width:null,__x:null,__y:null,__canvas:null,__renderContext:null,__style:null,__webgl:null,requestContext3D:function(a,b){this.__contextLost?this.__contextRequested=!0:null!=this.context3D?(this.__contextRequested=!0,Qb.delay(k(this,this.__dispatchCreate),1)):this.__contextRequested||
(this.__contextRequested=!0,Qb.delay(k(this,this.__createContext),1))},requestContext3DMatchingProfiles:function(a){this.requestContext3D()},__createContext:function(){var a=this.__stage,b=a.__renderer;if("cairo"==b.__type||"canvas"==b.__type)this.__dispatchError();else if("opengl"==b.__type)this.context3D=new Sb(a,a.context3D.__contextState,this),this.__dispatchCreate();else if("dom"==b.__type){this.__canvas=window.document.createElement("canvas");this.__canvas.width=a.stageWidth;this.__canvas.height=
a.stageHeight;var c=b.__context.attributes;a=Object.prototype.hasOwnProperty.call(c,"background")&&null==c.background;b=Object.prototype.hasOwnProperty.call(c,"colorDepth")?c.colorDepth:32;c=Object.prototype.hasOwnProperty.call(c,"antialiasing")&&0<c.antialiasing;this.__webgl=kp.getContextWebGL(this.__canvas,{alpha:a||16<b,antialias:c,depth:!0,premultipliedAlpha:!0,stencil:!0,preserveDrawingBuffer:!1});this.__dispatchError()}},__dispatchError:function(){this.__contextRequested=!1;this.dispatchEvent(new qe("error",
!1,!1,"Context3D not available"))},__dispatchCreate:function(){this.__contextRequested&&(this.__contextRequested=!1,this.dispatchEvent(new W("context3DCreate")))},__lostContext:function(){this.__contextLost=!0;null!=this.context3D&&(this.context3D.__dispose(),this.__contextRequested=!0)},__resize:function(a,b){if(a!=this.__width||b!=this.__height)null!=this.__canvas&&(this.__canvas.width=a,this.__canvas.height=b),this.__projectionTransform.copyRawDataFrom(fb.toFloatVector(null,null,null,[2/(0<a?a:
1),0,0,0,0,-2/(0<b?b:1),0,0,0,0,-.001,0,-1,1,0,1])),this.__renderTransform.identity(),this.__renderTransform.appendTranslation(this.__x,this.__y,0),this.__renderTransform.append(this.__projectionTransform),this.__width=a,this.__height=b},__restoreContext:function(){this.__contextLost=!1;this.__createContext()},get_x:function(){return this.__x},set_x:function(a){if(this.__x==a)return a;this.__x=a;this.__renderTransform.identity();this.__renderTransform.appendTranslation(this.__x,this.__y,0);this.__renderTransform.append(this.__projectionTransform);
return a},get_y:function(){return this.__y},set_y:function(a){if(this.__y==a)return a;this.__y=a;this.__renderTransform.identity();this.__renderTransform.appendTranslation(this.__x,this.__y,0);this.__renderTransform.append(this.__projectionTransform);return a},__class__:Vj,__properties__:{set_y:"set_y",get_y:"get_y",set_x:"set_x",get_x:"get_x"}});var aj=function(a,b,c,d,e,f,h,l){null==l&&(l=0);null==h&&(h=0);null==f&&(f=0);null==e&&(e=1);null==d&&(d=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);
this.__id=a;this.__matrix=new Aa;0!=b&&this.set_x(b);0!=c&&this.set_y(c);1!=d&&this.set_scaleX(d);1!=e&&this.set_scaleY(e);0!=f&&this.set_rotation(f);this.__dirty=!0;this.__length=0;this.__originX=h;this.__originY=l;this.__alpha=1;this.__blendMode=null;this.__visible=!0};g["openfl.display.Tile"]=aj;aj.__name__="openfl.display.Tile";aj.prototype={data:null,parent:null,__alpha:null,__blendMode:null,__colorTransform:null,__dirty:null,__id:null,__length:null,__matrix:null,__originX:null,__originY:null,
__rect:null,__rotation:null,__rotationCosine:null,__rotationSine:null,__scaleX:null,__scaleY:null,__shader:null,__tileset:null,__visible:null,clone:function(){var a=new aj(this.__id);a.__alpha=this.__alpha;a.__blendMode=this.__blendMode;a.__originX=this.__originX;a.__originY=this.__originY;null!=this.__rect&&(a.__rect=this.__rect.clone());a.set_matrix(this.__matrix.clone());a.__shader=this.__shader;a.set_tileset(this.__tileset);null!=this.__colorTransform&&(a.__colorTransform=this.__colorTransform.__clone());
return a},getBounds:function(a){var b=new ha;this.__findTileRect(b);var c=Aa.__pool.get();if(null!=a&&a!=this){c.copyFrom(this.__getWorldTransform());var d=Aa.__pool.get();d.copyFrom(a.__getWorldTransform());d.invert();c.concat(d);Aa.__pool.release(d)}else c.identity();this.__getBounds(b,c);Aa.__pool.release(c);return b},__getBounds:function(a,b){a.__transform(a,b)},hitTestTile:function(a){if(null!=a&&null!=a.parent&&null!=this.parent){var b=this.getBounds(this);a=a.getBounds(this);return b.intersects(a)}return!1},
invalidate:function(){this.__setRenderDirty()},__findTileRect:function(a){if(null==this.get_tileset())if(null!=this.parent){var b=this.parent.__findTileset();null==b?a.setTo(0,0,0,0):(b=b.getRect(this.get_id()),null==b?a.setTo(0,0,0,0):a.copyFrom(b))}else a.setTo(0,0,0,0);else a.copyFrom(this.get_tileset().getRect(this.get_id()));a.x=0;a.y=0},__findTileset:function(){return null!=this.get_tileset()?this.get_tileset():this.parent instanceof fn?this.parent.get_tileset():null==this.parent?null:this.parent.__findTileset()},
__getWorldTransform:function(){var a=this.get_matrix().clone();null!=this.parent&&a.concat(this.parent.__getWorldTransform());return a},__setRenderDirty:function(){this.__dirty||(this.__dirty=!0,null!=this.parent&&this.parent.__setRenderDirty())},get_alpha:function(){return this.__alpha},set_alpha:function(a){a!=this.__alpha&&(this.__alpha=a,this.__setRenderDirty());return a},get_blendMode:function(){return this.__blendMode},set_blendMode:function(a){a!=this.__blendMode&&(this.__blendMode=a,this.__setRenderDirty());
return a},get_colorTransform:function(){return this.__colorTransform},set_colorTransform:function(a){a!=this.__colorTransform&&(this.__colorTransform=a,this.__setRenderDirty());return a},get_height:function(){var a=ha.__pool.get();this.__findTileRect(a);this.__getBounds(a,this.get_matrix());var b=a.height;ha.__pool.release(a);return b},set_height:function(a){var b=ha.__pool.get();this.__findTileRect(b);0!=b.height&&this.set_scaleY(a/b.height);ha.__pool.release(b);return a},get_id:function(){return this.__id},
set_id:function(a){a!=this.__id&&(this.__id=a,this.__setRenderDirty());return a},get_matrix:function(){return this.__matrix},set_matrix:function(a){a!=this.__matrix&&(this.__scaleY=this.__scaleX=this.__rotation=null,this.__matrix=a,this.__setRenderDirty());return a},get_originX:function(){return this.__originX},set_originX:function(a){a!=this.__originX&&(this.__originX=a,this.__setRenderDirty());return a},get_originY:function(){return this.__originY},set_originY:function(a){a!=this.__originY&&(this.__originY=
a,this.__setRenderDirty());return a},get_rect:function(){return this.__rect},set_rect:function(a){a!=this.__rect&&(this.__rect=a,this.__setRenderDirty());return a},get_rotation:function(){if(null==this.__rotation)if(0==this.__matrix.b&&0==this.__matrix.c)this.__rotationSine=this.__rotation=0,this.__rotationCosine=1;else{var a=Math.atan2(this.__matrix.d,this.__matrix.c)-Math.PI/2;this.__rotation=180/Math.PI*a;this.__rotationSine=Math.sin(a);this.__rotationCosine=Math.cos(a)}return this.__rotation},
set_rotation:function(a){if(a!=this.__rotation){this.__rotation=a;var b=Math.PI/180*a;this.__rotationSine=Math.sin(b);this.__rotationCosine=Math.cos(b);b=this.get_scaleX();var c=this.get_scaleY();this.__matrix.a=this.__rotationCosine*b;this.__matrix.b=this.__rotationSine*b;this.__matrix.c=-this.__rotationSine*c;this.__matrix.d=this.__rotationCosine*c;this.__setRenderDirty()}return a},get_scaleX:function(){null==this.__scaleX&&(0==this.get_matrix().b?this.__scaleX=this.__matrix.a:this.__scaleX=Math.sqrt(this.__matrix.a*
this.__matrix.a+this.__matrix.b*this.__matrix.b));return this.__scaleX},set_scaleX:function(a){if(a!=this.__scaleX){this.__scaleX=a;if(0==this.__matrix.b)this.__matrix.a=a;else{this.get_rotation();var b=this.__rotationSine*a;this.__matrix.a=this.__rotationCosine*a;this.__matrix.b=b}this.__setRenderDirty()}return a},get_scaleY:function(){null==this.__scaleY&&(this.__scaleY=0==this.__matrix.c?this.get_matrix().d:Math.sqrt(this.__matrix.c*this.__matrix.c+this.__matrix.d*this.__matrix.d));return this.__scaleY},
set_scaleY:function(a){if(a!=this.__scaleY){this.__scaleY=a;if(0==this.__matrix.c)this.__matrix.d=a;else{this.get_rotation();var b=this.__rotationCosine*a;this.__matrix.c=-this.__rotationSine*a;this.__matrix.d=b}this.__setRenderDirty()}return a},get_shader:function(){return this.__shader},set_shader:function(a){a!=this.__shader&&(this.__shader=a,this.__setRenderDirty());return a},get_tileset:function(){return this.__tileset},set_tileset:function(a){a!=this.__tileset&&(this.__tileset=a,this.__setRenderDirty());
return a},get_visible:function(){return this.__visible},set_visible:function(a){a!=this.__visible&&(this.__visible=a,this.__setRenderDirty());return a},get_width:function(){var a=ha.__pool.get();this.__findTileRect(a);this.__getBounds(a,this.get_matrix());var b=a.width;ha.__pool.release(a);return b},set_width:function(a){var b=ha.__pool.get();this.__findTileRect(b);0!=b.width&&this.set_scaleX(a/b.width);ha.__pool.release(b);return a},get_x:function(){return this.__matrix.tx},set_x:function(a){a!=
this.__matrix.tx&&(this.__matrix.tx=a,this.__setRenderDirty());return a},get_y:function(){return this.__matrix.ty},set_y:function(a){a!=this.__matrix.ty&&(this.__matrix.ty=a,this.__setRenderDirty());return a},__class__:aj,__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_tileset:"set_tileset",get_tileset:"get_tileset",set_shader:"set_shader",get_shader:"get_shader",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_rect:"set_rect",get_rect:"get_rect",set_originY:"set_originY",get_originY:"get_originY",set_originX:"set_originX",get_originX:"get_originX",set_matrix:"set_matrix",get_matrix:"get_matrix",set_id:"set_id",get_id:"get_id",set_height:"set_height",get_height:"get_height",set_colorTransform:"set_colorTransform",get_colorTransform:"get_colorTransform",set_blendMode:"set_blendMode",
get_blendMode:"get_blendMode",set_alpha:"set_alpha",get_alpha:"get_alpha"}};var fl=function(a,b,c,d,e,f,h){null==h&&(h=0);null==f&&(f=0);null==e&&(e=0);null==d&&(d=1);null==c&&(c=1);null==b&&(b=0);null==a&&(a=0);aj.call(this,-1,a,b,c,d,e,f,h);this.__tiles=[];this.__length=0};g["openfl.display.TileContainer"]=fl;fl.__name__="openfl.display.TileContainer";fl.__interfaces__=[en];fl.__super__=aj;fl.prototype=r(aj.prototype,{__tiles:null,addTile:function(a){if(null==a)return null;a.parent==this&&(G.remove(this.__tiles,
a),this.__length--);this.__tiles[this.get_numTiles()]=a;a.parent=this;this.__length++;this.__setRenderDirty();return a},addTileAt:function(a,b){if(null==a)return null;a.parent==this&&(G.remove(this.__tiles,a),this.__length--);this.__tiles.splice(b,0,a);a.parent=this;this.__length++;this.__setRenderDirty();return a},addTiles:function(a){for(var b=0;b<a.length;){var c=a[b];++b;this.addTile(c)}return a},clone:function(){for(var a=new fl,b=0,c=this.__tiles;b<c.length;){var d=c[b];++b;a.addTile(d.clone())}return a},
contains:function(a){return-1<this.__tiles.indexOf(a)},getBounds:function(a){for(var b=new ha,c,d=0,e=this.__tiles;d<e.length;)c=e[d],++d,c=c.getBounds(a),b.__expand(c.x,c.y,c.width,c.height);return b},getTileAt:function(a){return 0<=a&&a<this.get_numTiles()?this.__tiles[a]:null},getTileIndex:function(a){for(var b=0,c=this.__tiles.length;b<c;){var d=b++;if(this.__tiles[d]==a)return d}return-1},removeTile:function(a){null!=a&&a.parent==this&&(a.parent=null,G.remove(this.__tiles,a),this.__length--,
this.__setRenderDirty());return a},removeTileAt:function(a){return 0<=a&&a<this.get_numTiles()?this.removeTile(this.__tiles[a]):null},removeTiles:function(a,b){null==b&&(b=2147483647);null==a&&(a=0);0>a&&(a=0);b>this.__tiles.length-1&&(b=this.__tiles.length-1);a=this.__tiles.splice(a,b-a+1);for(b=0;b<a.length;){var c=a[b];++b;c.parent=null}this.__length=this.__tiles.length;this.__setRenderDirty()},setTileIndex:function(a,b){0<=b&&b<=this.get_numTiles()&&a.parent==this&&(G.remove(this.__tiles,a),this.__tiles.splice(b,
0,a),this.__setRenderDirty())},sortTiles:function(a){this.__tiles.sort(a);this.__setRenderDirty()},swapTiles:function(a,b){if(a.parent==this&&b.parent==this){var c=this.__tiles.indexOf(a),d=this.__tiles.indexOf(b);this.__tiles[c]=b;this.__tiles[d]=a;this.__setRenderDirty()}},swapTilesAt:function(a,b){var c=this.__tiles[a];this.__tiles[a]=this.__tiles[b];this.__tiles[b]=c;this.__setRenderDirty()},get_numTiles:function(){return this.__length},get_height:function(){for(var a=ha.__pool.get(),b,c=0,d=
this.__tiles;c<d.length;)b=d[c],++c,b=b.getBounds(this),a.__expand(b.x,b.y,b.width,b.height);this.__getBounds(a,this.get_matrix());c=a.height;ha.__pool.release(a);return c},set_height:function(a){for(var b=ha.__pool.get(),c,d=0,e=this.__tiles;d<e.length;)c=e[d],++d,c=c.getBounds(this),b.__expand(c.x,c.y,c.width,c.height);0!=b.height&&this.set_scaleY(a/b.height);ha.__pool.release(b);return a},get_width:function(){for(var a=ha.__pool.get(),b,c=0,d=this.__tiles;c<d.length;)b=d[c],++c,b=b.getBounds(this),
a.__expand(b.x,b.y,b.width,b.height);this.__getBounds(a,this.get_matrix());c=a.width;ha.__pool.release(a);return c},set_width:function(a){for(var b=ha.__pool.get(),c,d=0,e=this.__tiles;d<e.length;)c=e[d],++d,c=c.getBounds(this),b.__expand(c.x,c.y,c.width,c.height);0!=b.width&&this.set_scaleX(a/b.width);ha.__pool.release(b);return a},__class__:fl,__properties__:r(aj.prototype.__properties__,{get_numTiles:"get_numTiles"})});var fn=function(a,b,c,d){null==d&&(d=!0);ka.call(this);this.__drawableType=
9;this.__tileset=c;this.smoothing=d;this.tileColorTransformEnabled=this.tileBlendModeEnabled=this.tileAlphaEnabled=!0;this.__group=new fl;this.__group.set_tileset(c);this.__width=a;this.__height=b};g["openfl.display.Tilemap"]=fn;fn.__name__="openfl.display.Tilemap";fn.__interfaces__=[en];fn.__super__=ka;fn.prototype=r(ka.prototype,{tileAlphaEnabled:null,tileBlendModeEnabled:null,tileColorTransformEnabled:null,smoothing:null,__group:null,__tileset:null,__buffer:null,__bufferDirty:null,__height:null,
__width:null,addTile:function(a){return this.__group.addTile(a)},addTileAt:function(a,b){return this.__group.addTileAt(a,b)},addTiles:function(a){return this.__group.addTiles(a)},contains:function(a){return this.__group.contains(a)},getTileAt:function(a){return this.__group.getTileAt(a)},getTileIndex:function(a){return this.__group.getTileIndex(a)},getTiles:function(){return this.__group.clone()},removeTile:function(a){return this.__group.removeTile(a)},removeTileAt:function(a){return this.__group.removeTileAt(a)},
removeTiles:function(a,b){null==b&&(b=2147483647);null==a&&(a=0);this.__group.removeTiles(a,b)},setTileIndex:function(a,b){this.__group.setTileIndex(a,b)},setTiles:function(a){for(var b=0,c=this.__group.__tiles;b<c.length;){var d=c[b];++b;this.removeTile(d)}b=0;for(c=a.__tiles;b<c.length;)d=c[b],++b,this.addTile(d)},sortTiles:function(a){this.__group.sortTiles(a)},swapTiles:function(a,b){this.__group.swapTiles(a,b)},swapTilesAt:function(a,b){this.__group.swapTilesAt(a,b)},__enterFrame:function(a){this.__group.__dirty&&
!this.__renderDirty&&(this.__renderDirty=!0,this.__setParentRenderDirty())},__getBounds:function(a,b){var c=ha.__pool.get();c.setTo(0,0,this.__width,this.__height);c.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);ha.__pool.release(c)},__hitTest:function(a,b,c,d,e,f){if(!f.get_visible()||this.__isMask||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;this.__getRenderTransform();var h=this.__renderTransform,l=h.a*h.d-h.b*h.c;c=0==l?-h.tx:1/l*(h.c*(h.ty-b)+h.d*(a-h.tx));h=this.__renderTransform;
l=h.a*h.d-h.b*h.c;a=0==l?-h.ty:1/l*(h.a*(b-h.ty)+h.b*(h.tx-a));return 0<c&&0<a&&c<=this.__width&&a<=this.__height?(null==d||e||d.push(f),!0):!1},__renderFlash:function(){},get_height:function(){return this.__height*Math.abs(this.get_scaleY())},set_height:function(a){this.__height=a|0;return this.__height*Math.abs(this.get_scaleY())},get_numTiles:function(){return this.__group.__length},get_tileset:function(){return this.__tileset},set_tileset:function(a){a!=this.__tileset&&(this.__tileset=a,this.__group.set_tileset(a),
this.__group.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return a},get_width:function(){return this.__width*Math.abs(this.__scaleX)},set_width:function(a){this.__width=a|0;return this.__width*Math.abs(this.__scaleX)},__class__:fn,__properties__:r(ka.prototype.__properties__,{set_tileset:"set_tileset",get_tileset:"get_tileset",get_numTiles:"get_numTiles"})});var mt=function(a,b){this.__bitmapData=a;this.rectData=fb.toFloatVector(null);this.__data=[];if(null!=
b)for(a=0;a<b.length;){var c=b[a];++a;this.addRect(c)}};g["openfl.display.Tileset"]=mt;mt.__name__="openfl.display.Tileset";mt.prototype={rectData:null,__bitmapData:null,__data:null,addRect:function(a){if(null==a)return-1;this.rectData.push(a.x);this.rectData.push(a.y);this.rectData.push(a.width);this.rectData.push(a.height);a=new xq(a);a.__update(this.__bitmapData);this.__data.push(a);return this.__data.length-1},clone:function(){for(var a=new mt(this.__bitmapData,null),b=ha.__pool.get(),c=0,d=this.__data;c<
d.length;){var e=d[c];++c;b.setTo(e.x,e.y,e.width,e.height);a.addRect(b)}ha.__pool.release(b);return a},hasRect:function(a){for(var b=0,c=this.__data;b<c.length;){var d=c[b];++b;if(a.x==d.x&&a.y==d.y&&a.width==d.width&&a.height==d.height)return!0}return!1},getRect:function(a){return a<this.__data.length&&0<=a?new ha(this.__data[a].x,this.__data[a].y,this.__data[a].width,this.__data[a].height):null},getRectID:function(a){for(var b,c=0,d=this.__data.length;c<d;){var e=c++;b=this.__data[e];if(a.x==b.x&&
a.y==b.y&&a.width==b.width&&a.height==b.height)return e}return null},get_bitmapData:function(){return this.__bitmapData},set_bitmapData:function(a){this.__bitmapData=a;for(var b=0,c=this.__data;b<c.length;){var d=c[b];++b;d.__update(this.__bitmapData)}return a},get_numRects:function(){return this.__data.length},__class__:mt,__properties__:{get_numRects:"get_numRects",set_bitmapData:"set_bitmapData",get_bitmapData:"get_bitmapData"}};var xq=function(a){null!=a&&(this.x=a.x|0,this.y=a.y|0,this.width=
a.width|0,this.height=a.height|0)};g["openfl.display._Tileset.TileData"]=xq;xq.__name__="openfl.display._Tileset.TileData";xq.prototype={height:null,width:null,x:null,y:null,__bitmapData:null,__uvHeight:null,__uvWidth:null,__uvX:null,__uvY:null,__update:function(a){if(null!=a){var b=a.width;a=a.height;this.__uvX=this.x/b;this.__uvY=this.y/a;this.__uvWidth=(this.x+this.width)/b;this.__uvHeight=(this.y+this.height)/a}},__class__:xq};var gn=function(){this.__totalFrames=this.__framesLoaded=1;this.__currentLabels=
[];this.__currentFrame=1;this.__lastFrameUpdate=this.__lastFrameScriptEval=-1};g["openfl.display.Timeline"]=gn;gn.__name__="openfl.display.Timeline";gn.prototype={frameRate:null,scenes:null,scripts:null,__currentFrame:null,__currentFrameLabel:null,__currentLabel:null,__currentLabels:null,__currentScene:null,__frameScripts:null,__framesLoaded:null,__frameTime:null,__isPlaying:null,__lastFrameScriptEval:null,__lastFrameUpdate:null,__scope:null,__timeElapsed:null,__totalFrames:null,attachMovieClip:function(a){},
enterFrame:function(a){},__addFrameScript:function(a,b){0>a||(a+=1,null!=b?(null==this.__frameScripts&&(this.__frameScripts=new Bc),this.__frameScripts.h[a]=function(a){b()}):null!=this.__frameScripts&&this.__frameScripts.remove(a))},__attachMovieClip:function(a){this.__scope=a;this.__framesLoaded=this.__totalFrames=0;if(null!=this.scenes&&0<this.scenes.length){for(var b=0,c=this.scenes;b<c.length;){var d=c[b];++b;this.__totalFrames+=d.numFrames;this.__framesLoaded+=d.numFrames;null!=d.labels&&(this.__currentLabels=
this.__currentLabels.concat(d.labels))}this.__currentScene=this.scenes[0]}if(null!=this.scripts&&0<this.scripts.length)for(this.__frameScripts=new Bc,b=0,c=this.scripts;b<c.length;)d=c[b],++b,this.__frameScripts.h[d.frame]=d.script;this.attachMovieClip(a)},__enterFrame:function(a){if(this.__isPlaying){a=this.__getNextFrame(a);if(this.__lastFrameScriptEval==a)return;if(null!=this.__frameScripts){if(a<this.__currentFrame){if(!this.__evaluateFrameScripts(this.__totalFrames))return;this.__currentFrame=
1}if(!this.__evaluateFrameScripts(a))return}else this.__currentFrame=a}this.__updateSymbol(this.__currentFrame)},__evaluateFrameScripts:function(a){if(null==this.__frameScripts)return!0;var b=this.__currentFrame;for(a+=1;b<a;){var c=b++;if(c!=this.__lastFrameScriptEval&&(this.__currentFrame=this.__lastFrameScriptEval=c,this.__frameScripts.h.hasOwnProperty(c)&&(this.__updateSymbol(c),(0,this.__frameScripts.h[c])(this.__scope),this.__currentFrame!=c)||!this.__isPlaying))return!1}return!0},__getNextFrame:function(a){null!=
this.frameRate?(this.__timeElapsed+=a,a=this.__currentFrame+Math.floor(this.__timeElapsed/this.__frameTime),1>a&&(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)},
__gotoAndPlay:function(a,b){this.__play();this.__goto(this.__resolveFrameReference(a))},__gotoAndStop:function(a,b){this.__stop();this.__goto(this.__resolveFrameReference(a))},__nextFrame:function(){this.__stop();this.__goto(this.__currentFrame+1)},__nextScene:function(){},__play:function(){this.__isPlaying||2>this.__totalFrames||(this.__isPlaying=!0,null!=this.frameRate&&(this.__frameTime=1E3/this.frameRate|0,this.__timeElapsed=0))},__prevFrame:function(){this.__stop();this.__goto(this.__currentFrame-
1)},__prevScene:function(){},__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<c.length;){var d=c[b];++b;if(d.name==a)return d.frame}throw u.thrown(new uk("Error #2109: Frame label "+a+" not found in scene."));}throw u.thrown("Invalid type for frame "+a.__name__);},__updateFrameLabel:function(){this.__currentFrameLabel=this.__currentLabel=null;for(var a=0,b=this.__currentLabels;a<
b.length;){var c=b[a];++a;if(c.frame<this.__currentFrame)this.__currentLabel=c.name;else if(c.frame==this.__currentFrame)this.__currentFrameLabel=this.__currentLabel=c.name;else break}},__updateSymbol:function(a){this.__currentFrame!=this.__lastFrameUpdate&&(this.__updateFrameLabel(),this.enterFrame(a),this.__lastFrameUpdate=this.__currentFrame)},__class__:gn};var wk=function(a,b){vk.call(this,a,b);this.stage=new dl(this,Object.prototype.hasOwnProperty.call(b.context,"background")?b.context.background:
16777215);if(Object.prototype.hasOwnProperty.call(b,"parameters"))try{this.stage.get_loaderInfo().parameters=b.parameters}catch(c){wa.lastError=c}Object.prototype.hasOwnProperty.call(b,"resizable")&&!b.resizable&&this.stage.__setLogicalSize(b.width,b.height);a.addModule(this.stage)};g["openfl.display.Window"]=wk;wk.__name__="openfl.display.Window";wk.__super__=vk;wk.prototype=r(vk.prototype,{__class__:wk});var gl=function(a,b,c,d,e,f,h){null==h&&(h=.05);null==f&&(f=!1);this.stitch=f;this.stitch_threshold=
h;this.octaves=b;this.channels=c;this.grayscale=d;this.calculateOctaves(e)};g["openfl.display._internal.AbstractNoise"]=gl;gl.__name__="openfl.display._internal.AbstractNoise";gl.prototype={octaves:null,stitch:null,stitch_threshold:null,channels:null,grayscale:null,octaves_frequencies:null,octaves_persistences:null,persistence_max:null,fill:function(a,b,c,d){},stitching:function(a,b,c,d,e,f,h,l){var m=b>>16&255,k=b>>8&255;b&=255;if(h-e<c){var g=a.getPixel32(h-c,d),n=g>>8&255,q=g&255;e=(h-c)/e;m=this.mixI(g>>
16&255,m,e);k=this.mixI(n,k,e);b=this.mixI(q,b,e)}l-f<d&&(g=a.getPixel32(c,l-d),n=g>>8&255,q=g&255,e=(l-d)/f,m=this.mixI(g>>16&255,m,e),k=this.mixI(n,k,e),b=this.mixI(q,b,e));return-16777216|m<<16|k<<8|b},color:function(a,b,c){var d=0,e=0,f=0;null!=a&&(d=this.noiseToColor(a));null!=b&&(e=this.noiseToColor(b));null!=c&&(f=this.noiseToColor(c));return-16777216|d<<16|e<<8|f},noiseToColor:function(a){return 128*(a*this.persistence_max+1)|0},fade:function(a){return a*a*a*(a*(6*a-15)+10)},mixI:function(a,
b,c){return(1-c)*a+c*b|0},mix:function(a,b,c){return(1-c)*a+c*b},fastfloor:function(a){return 0<a?a|0:a-1|0},dot2d:function(a,b,c){return a[0]*b+a[1]*c},dot:function(a,b,c,d){return a[0]*b+a[1]*c+a[2]*d},calculateOctaves:function(a){this.octaves_frequencies=[];this.octaves_persistences=[];for(var b=this.persistence_max=0,c=this.octaves;b<c;){var d=b++;var e=Math.pow(2,d);d=Math.pow(a,d);this.persistence_max+=d;this.octaves_frequencies.push(e);this.octaves_persistences.push(d)}this.persistence_max=
1/this.persistence_max},__class__:gl};var yq=function(){};g["openfl.display._internal.CairoBitmap"]=yq;yq.__name__="openfl.display._internal.CairoBitmap";yq.render=function(a,b){if(a.__renderable){var c=b.__getAlpha(a.__worldAlpha);if(0<c&&null!=a.__bitmapData&&a.__bitmapData.__isValid){var d=b.cairo;b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);b.applyMatrix(a.__renderTransform,d);var e=a.__bitmapData.getSurface();null!=e&&(e=Ys.createForSurface(e),Ys.set_filter(e,b.__allowSmoothing&&
a.smoothing?1:3),d.set_source(e),1==c?d.paint():d.paintWithAlpha(c));b.__popMaskObject(a);b.__setBlendMode(10)}}};yq.renderDrawable=function(a,b){};yq.renderDrawableMask=function(a,b){b.cairo.rectangle(0,0,a.get_width(),a.get_height())};var tu=function(){};g["openfl.display._internal.CairoBitmapData"]=tu;tu.__name__="openfl.display._internal.CairoBitmapData";tu.renderDrawable=function(a,b){};tu.renderDrawableMask=function(a,b){};var zq=function(){};g["openfl.display._internal.CairoDisplayObject"]=
zq;zq.__name__="openfl.display._internal.CairoDisplayObject";zq.render=function(a,b){};zq.renderDrawable=function(a,b){};zq.renderDrawableMask=function(a,b){};var uu=function(){};g["openfl.display._internal.CairoDisplayObjectContainer"]=uu;uu.__name__="openfl.display._internal.CairoDisplayObjectContainer";uu.renderDrawable=function(a,b){};uu.renderDrawableMask=function(a,b){};var Aq=function(){};g["openfl.display._internal.CairoGraphics"]=Aq;Aq.__name__="openfl.display._internal.CairoGraphics";Aq.hitTest=
function(a,b,c){return!1};Aq.render=function(a,b){};Aq.renderMask=function(a,b){};var Bq=function(){};g["openfl.display._internal.CairoShape"]=Bq;Bq.__name__="openfl.display._internal.CairoShape";Bq.render=function(a,b){};Bq.renderDrawable=function(a,b){};Bq.renderDrawableMask=function(a,b){};var vu=function(){};g["openfl.display._internal.CairoSimpleButton"]=vu;vu.__name__="openfl.display._internal.CairoSimpleButton";vu.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))};vu.renderDrawableMask=function(a,b){b.__renderDrawableMask(a.__currentState)};var Cq=function(){};g["openfl.display._internal.CairoTextField"]=Cq;Cq.__name__="openfl.display._internal.CairoTextField";Cq.render=function(a,b,c){};Cq.renderDrawable=function(a,b){};Cq.renderDrawableMask=function(a,b){};var Xj=function(){};g["openfl.display._internal.CairoTilemap"]=Xj;Xj.__name__="openfl.display._internal.CairoTilemap";
Xj.render=function(a,b){if(a.__renderable&&0!=a.__group.__tiles.length){var c=b.__getAlpha(a.__worldAlpha);if(!(0>=c)){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var d=ha.__pool.get();d.setTo(0,0,a.__width,a.__height);b.__pushMaskRect(d,a.__renderTransform);Xj.renderTileContainer(a.__group,b,a.__renderTransform,a.__tileset,b.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,c,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,null,d,new Qj);b.__popMaskRect();b.__popMaskObject(a);ha.__pool.release(d)}}};
Xj.renderTileContainer=function(a,b,c,d,e,f,h,l,m,k,g,n,q,p){var t=b.cairo,r=Aa.__pool.get();a=a.__tiles;for(var v,u,O,x,z=null,w=0;w<a.length;)if(v=a[w],++w,r.setTo(1,0,0,1,-v.get_originX(),-v.get_originY()),r.concat(v.get_matrix()),r.concat(c),u=null!=v.get_tileset()?v.get_tileset():d,O=v.get_alpha()*h,(x=v.get_visible())&&!(0>=O))if(f||(O=1),l&&(z=null!=v.__blendMode?v.__blendMode:m),0<v.__length)Xj.renderTileContainer(v,b,r,u,e,f,O,l,z,k,g,n,q,p);else if(null!=u){x=v.get_id();if(-1==x){if(v=v.__rect,
null==v||0>=v.width||0>=v.height)continue}else{v=u.__data[x];if(null==v)continue;q.setTo(v.x,v.y,v.width,v.height);v=q}u=u.__bitmapData;null!=u&&(u!=k&&(g=u.getSurface(),n=Ys.createForSurface(g),Ys.set_filter(n,e?1:3),t.set_source(n),k=u),l&&b.__setBlendMode(z),b.applyMatrix(r,t),p.tx=v.x,p.ty=v.y,Ys.set_matrix(n,p),t.set_source(n),t.save(),t.newPath(),t.rectangle(0,0,v.width,v.height),t.clip(),1==O?t.paint():t.paintWithAlpha(O),t.restore())}Aa.__pool.release(r)};Xj.renderDrawable=function(a,b){};
Xj.renderDrawableMask=function(a,b){};var $k=function(){};g["openfl.display._internal.CanvasBitmap"]=$k;$k.__name__="openfl.display._internal.CanvasBitmap";$k.render=function(a,b){if(a.__renderable){var c=b.__getAlpha(a.__worldAlpha);if(0<c&&null!=a.__bitmapData&&a.__bitmapData.__isValid&&a.__bitmapData.readable){var d=b.context;b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a,!1);ua.convertToCanvas(a.__bitmapData.image);d.globalAlpha=c;c=a.__scrollRect;b.setTransform(a.__renderTransform,
d);b.__allowSmoothing&&a.smoothing||(d.imageSmoothingEnabled=!1);null==c?d.drawImage(a.__bitmapData.image.get_src(),0,0,a.__bitmapData.image.width,a.__bitmapData.image.height):d.drawImage(a.__bitmapData.image.get_src(),c.x,c.y,c.width,c.height,c.x,c.y,c.width,c.height);b.__allowSmoothing&&a.smoothing||(d.imageSmoothingEnabled=!0);b.__popMaskObject(a,!1)}}};$k.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||(A=b.__getAlpha(a.__worldAlpha),0>=A))){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);u=b.context;b.setTransform(a.__renderTransform,u);var c=a.opaqueBackground;u.fillStyle="rgb("+(c>>>16&255)+","+(c>>>8&255)+","+(c&255)+")";u.fillRect(0,0,a.get_width(),a.get_height());b.__popMaskObject(a)}if(null!=
a.__graphics&&a.__renderable&&(A=b.__getAlpha(a.__worldAlpha),!(0>=A))){var d=a.__graphics;if(null!=d){D.render(d,b);var e=d.__width,f=d.__height;c=d.__canvas;if(null!=c&&d.__visible&&1<=e&&1<=f){var h=d.__worldTransform;u=b.context;x=a.__scrollRect;var l=a.__worldScale9Grid;if(null==x||0<x.width&&0<x.height){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);u.globalAlpha=A;if(null!=l&&0==h.b&&0==h.c){u.setTransform(1,0,0,1,h.tx,h.ty);var m=d.__bounds,k=d.__renderTransform.a,g=d.__renderTransform.d,
n=h.a,q=h.d;h=Math.max(1,Math.round(l.x*k));d=Math.round(l.y*g);A=Math.max(1,Math.round((m.get_right()-l.get_right())*k));x=Math.round((m.get_bottom()-l.get_bottom())*g);k=Math.round(l.width*k);g=Math.round(l.height*g);var p=Math.round(l.x*n),r=Math.round(l.y*q),v=Math.round((m.get_right()-l.get_right())*n);l=Math.round((m.get_bottom()-l.get_bottom())*q);m=Math.round(e*n)-p-v;n=Math.round(f*q)-r-l;b.applySmoothing(u,!1);0!=k&&0!=g?(u.drawImage(c,0,0,h,d,0,0,p,r),u.drawImage(c,h,0,k,d,p,0,m,r),u.drawImage(c,
h+k,0,A,d,p+m,0,v,r),u.drawImage(c,0,d,h,g,0,r,p,n),u.drawImage(c,h,d,k,g,p,r,m,n),u.drawImage(c,h+k,d,A,g,p+m,r,v,n),u.drawImage(c,0,d+g,h,x,0,r+n,p,l),u.drawImage(c,h,d+g,k,x,p,r+n,m,l),u.drawImage(c,h+k,d+g,A,x,p+m,r+n,v,l)):0==k&&0!=g?(f=p+m+v,u.drawImage(c,0,0,e,d,0,0,f,r),u.drawImage(c,0,d,e,g,0,r,f,n),u.drawImage(c,0,d+g,e,x,0,r+n,f,l)):0==g&&0!=k&&(e=r+n+l,u.drawImage(c,0,0,h,f,0,0,p,e),u.drawImage(c,h,0,k,f,p,0,m,e),u.drawImage(c,h+k,0,A,f,p+m,0,v,e))}else b.setTransform(h,u),b.__isDOM&&
(l=1/b.pixelRatio,u.scale(l,l)),u.drawImage(c,0,0,e,f);b.__popMaskObject(a)}}}}}a.__renderable&&(A=b.__getAlpha(a.__worldAlpha),0<A&&null!=a.__bitmapData&&a.__bitmapData.__isValid&&a.__bitmapData.readable&&(u=b.context,b.__setBlendMode(a.__worldBlendMode),b.__pushMaskObject(a,!1),ua.convertToCanvas(a.__bitmapData.image),u.globalAlpha=A,x=a.__scrollRect,b.setTransform(a.__renderTransform,u),b.__allowSmoothing&&a.smoothing||(u.imageSmoothingEnabled=!1),null==x?u.drawImage(a.__bitmapData.image.get_src(),
0,0,a.__bitmapData.image.width,a.__bitmapData.image.height):u.drawImage(a.__bitmapData.image.get_src(),x.x,x.y,x.width,x.height,x.x,x.y,x.width,x.height),b.__allowSmoothing&&a.smoothing||(u.imageSmoothingEnabled=!0),b.__popMaskObject(a,!1)))}else if(c=a.__cacheBitmap,c.__renderable){var A=b.__getAlpha(c.__worldAlpha);if(0<A&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable){var u=b.context;b.__setBlendMode(c.__worldBlendMode);b.__pushMaskObject(c,!1);ua.convertToCanvas(c.__bitmapData.image);
u.globalAlpha=A;var x=c.__scrollRect;b.setTransform(c.__renderTransform,u);b.__allowSmoothing&&c.smoothing||(u.imageSmoothingEnabled=!1);null==x?u.drawImage(c.__bitmapData.image.get_src(),0,0,c.__bitmapData.image.width,c.__bitmapData.image.height):u.drawImage(c.__bitmapData.image.get_src(),x.x,x.y,x.width,x.height,x.x,x.y,x.width,x.height);b.__allowSmoothing&&c.smoothing||(u.imageSmoothingEnabled=!0);b.__popMaskObject(c,!1)}}b.__renderEvent(a)};$k.renderDrawableMask=function(a,b){b.context.rect(0,
0,a.get_width(),a.get_height())};var dq=function(){};g["openfl.display._internal.CanvasBitmapData"]=dq;dq.__name__="openfl.display._internal.CanvasBitmapData";dq.renderDrawable=function(a,b){if(a.readable){var c=a.image;c.type==hd.DATA&&ua.convertToCanvas(c);var d=b.context;d.globalAlpha=1;b.setTransform(a.__renderTransform,d);d.drawImage(c.get_src(),0,0,c.width,c.height)}};dq.renderDrawableMask=function(a,b){};var Zi=function(){};g["openfl.display._internal.CanvasDisplayObject"]=Zi;Zi.__name__="openfl.display._internal.CanvasDisplayObject";
Zi.render=function(a,b){if((null!=a.opaqueBackground||null!=a.__graphics)&&a.__renderable){var c=b.__getAlpha(a.__worldAlpha);if(!(0>=c)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var d=b.context;b.setTransform(a.__renderTransform,d);var e=a.opaqueBackground;d.fillStyle="rgb("+(e>>>16&255)+","+(e>>>8&255)+","+(e&255)+")";d.fillRect(0,0,a.get_width(),a.get_height());b.__popMaskObject(a)}if(null!=
a.__graphics&&a.__renderable&&(c=b.__getAlpha(a.__worldAlpha),!(0>=c))){var f=a.__graphics;if(null!=f){D.render(f,b);var h=f.__width,l=f.__height;e=f.__canvas;if(null!=e&&f.__visible&&1<=h&&1<=l){var m=f.__worldTransform;d=b.context;var k=a.__scrollRect,g=a.__worldScale9Grid;if(null==k||0<k.width&&0<k.height){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);d.globalAlpha=c;if(null!=g&&0==m.b&&0==m.c){d.setTransform(1,0,0,1,m.tx,m.ty);var n=f.__bounds,q=f.__renderTransform.a,p=f.__renderTransform.d,
r=m.a,v=m.d;m=Math.max(1,Math.round(g.x*q));f=Math.round(g.y*p);c=Math.max(1,Math.round((n.get_right()-g.get_right())*q));k=Math.round((n.get_bottom()-g.get_bottom())*p);q=Math.round(g.width*q);p=Math.round(g.height*p);var A=Math.round(g.x*r),u=Math.round(g.y*v),x=Math.round((n.get_right()-g.get_right())*r);g=Math.round((n.get_bottom()-g.get_bottom())*v);n=Math.round(h*r)-A-x;r=Math.round(l*v)-u-g;b.applySmoothing(d,!1);0!=q&&0!=p?(d.drawImage(e,0,0,m,f,0,0,A,u),d.drawImage(e,m,0,q,f,A,0,n,u),d.drawImage(e,
m+q,0,c,f,A+n,0,x,u),d.drawImage(e,0,f,m,p,0,u,A,r),d.drawImage(e,m,f,q,p,A,u,n,r),d.drawImage(e,m+q,f,c,p,A+n,u,x,r),d.drawImage(e,0,f+p,m,k,0,u+r,A,g),d.drawImage(e,m,f+p,q,k,A,u+r,n,g),d.drawImage(e,m+q,f+p,c,k,A+n,u+r,x,g)):0==q&&0!=p?(l=A+n+x,d.drawImage(e,0,0,h,f,0,0,l,u),d.drawImage(e,0,f,h,p,0,u,l,r),d.drawImage(e,0,f+p,h,k,0,u+r,l,g)):0==p&&0!=q&&(h=u+r+g,d.drawImage(e,0,0,m,l,0,0,A,h),d.drawImage(e,m,0,q,l,A,0,n,h),d.drawImage(e,m+q,0,c,l,A+n,0,x,h))}else b.setTransform(m,d),b.__isDOM&&
(g=1/b.pixelRatio,d.scale(g,g)),d.drawImage(e,0,0,h,l);b.__popMaskObject(a)}}}}}}};Zi.renderDrawable=function(a,b){if(null==a.get_mask()||0<a.get_mask().get_width()&&0<a.get_mask().get_height())if(b.__updateCacheBitmap(a,!1),null!=a.__cacheBitmap&&!a.__isCacheBitmapRender){var c=a.__cacheBitmap;if(c.__renderable){var d=b.__getAlpha(c.__worldAlpha);if(0<d&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable){var e=b.context;b.__setBlendMode(c.__worldBlendMode);b.__pushMaskObject(c,
!1);ua.convertToCanvas(c.__bitmapData.image);e.globalAlpha=d;var f=c.__scrollRect;b.setTransform(c.__renderTransform,e);b.__allowSmoothing&&c.smoothing||(e.imageSmoothingEnabled=!1);null==f?e.drawImage(c.__bitmapData.image.get_src(),0,0,c.__bitmapData.image.width,c.__bitmapData.image.height):e.drawImage(c.__bitmapData.image.get_src(),f.x,f.y,f.width,f.height,f.x,f.y,f.width,f.height);b.__allowSmoothing&&c.smoothing||(e.imageSmoothingEnabled=!0);b.__popMaskObject(c,!1)}}}else if(!(null==a.opaqueBackground&&
null==a.__graphics||!a.__renderable||(d=b.__getAlpha(a.__worldAlpha),0>=d||(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()&&(b.__setBlendMode(a.__worldBlendMode),b.__pushMaskObject(a),e=b.context,b.setTransform(a.__renderTransform,e),c=a.opaqueBackground,e.fillStyle="rgb("+(c>>>16&255)+","+(c>>>8&255)+","+(c&255)+")",e.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 h=
a.__graphics;if(null!=h){D.render(h,b);var l=h.__width,m=h.__height;c=h.__canvas;if(null!=c&&h.__visible&&1<=l&&1<=m){var k=h.__worldTransform;e=b.context;f=a.__scrollRect;var g=a.__worldScale9Grid;if(null==f||0<f.width&&0<f.height){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);e.globalAlpha=d;if(null!=g&&0==k.b&&0==k.c){e.setTransform(1,0,0,1,k.tx,k.ty);var n=h.__bounds,q=h.__renderTransform.a,p=h.__renderTransform.d,r=k.a,v=k.d;k=Math.max(1,Math.round(g.x*q));h=Math.round(g.y*p);d=
Math.max(1,Math.round((n.get_right()-g.get_right())*q));f=Math.round((n.get_bottom()-g.get_bottom())*p);q=Math.round(g.width*q);p=Math.round(g.height*p);var A=Math.round(g.x*r),u=Math.round(g.y*v),x=Math.round((n.get_right()-g.get_right())*r);g=Math.round((n.get_bottom()-g.get_bottom())*v);n=Math.round(l*r)-A-x;r=Math.round(m*v)-u-g;b.applySmoothing(e,!1);0!=q&&0!=p?(e.drawImage(c,0,0,k,h,0,0,A,u),e.drawImage(c,k,0,q,h,A,0,n,u),e.drawImage(c,k+q,0,d,h,A+n,0,x,u),e.drawImage(c,0,h,k,p,0,u,A,r),e.drawImage(c,
k,h,q,p,A,u,n,r),e.drawImage(c,k+q,h,d,p,A+n,u,x,r),e.drawImage(c,0,h+p,k,f,0,u+r,A,g),e.drawImage(c,k,h+p,q,f,A,u+r,n,g),e.drawImage(c,k+q,h+p,d,f,A+n,u+r,x,g)):0==q&&0!=p?(m=A+n+x,e.drawImage(c,0,0,l,h,0,0,m,u),e.drawImage(c,0,h,l,p,0,u,m,r),e.drawImage(c,0,h+p,l,f,0,u+r,m,g)):0==p&&0!=q&&(l=u+r+g,e.drawImage(c,0,0,k,m,0,0,A,l),e.drawImage(c,k,0,q,m,A,0,n,l),e.drawImage(c,k+q,0,d,m,A+n,0,x,l))}else b.setTransform(k,e),b.__isDOM&&(g=1/b.pixelRatio,e.scale(g,g)),e.drawImage(c,0,0,l,m);b.__popMaskObject(a)}}}}b.__renderEvent(a)};
Zi.renderDrawableMask=function(a,b){null!=a.__graphics&&D.renderMask(a.__graphics,b)};var eq=function(){};g["openfl.display._internal.CanvasDisplayObjectContainer"]=eq;eq.__name__="openfl.display._internal.CanvasDisplayObjectContainer";eq.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||null!=a.get_mask()&&(0>=a.get_mask().get_width()||0>=a.get_mask().get_height()))&&
(Zi.renderDrawable(a,b),null==a.__cacheBitmap||a.__isCacheBitmapRender)){b.__pushMaskObject(a);if(null!=b.__stage){c=0;for(d=a.__children;c<d.length;){var e=d[c];++c;b.__renderDrawable(e);e.__renderDirty=!1}a.__renderDirty=!1}else for(c=0,d=a.__children;c<d.length;)e=d[c],++c,b.__renderDrawable(e);b.__popMaskObject(a)}};eq.renderDrawableMask=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);null!=a.__graphics&&
D.renderMask(a.__graphics,b);c=0;for(a=a.__children;c<a.length;)d=a[c],++c,b.__renderDrawableMask(d)};var se=function(){null==se.empty?(this.types=[],this.b=[],this.i=[],this.f=[],this.o=[],this.ff=[],this.ii=[],this.copyOnWrite=!0):this.clear()};g["openfl.display._internal.DrawCommandBuffer"]=se;se.__name__="openfl.display._internal.DrawCommandBuffer";se.prototype={types:null,b:null,copyOnWrite:null,f:null,ff:null,i:null,ii:null,o:null,append:function(a){if(0==this.get_length())return this.types=
a.types,this.b=a.b,this.i=a.i,this.f=a.f,this.o=a.o,this.ff=a.ff,this.ii=a.ii,this.copyOnWrite=a.copyOnWrite=!0,a;for(var b=new rg(a),c=0,d=a.types;c<d.length;){var e=d[c];++c;switch(e._hx_index){case 0:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=
4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.BEGIN_BITMAP_FILL;e=b;this.beginBitmapFill(e.buffer.o[e.oPos],e.buffer.o[e.oPos+1],e.buffer.b[e.bPos],e.buffer.b[e.bPos+1]);break;case 1:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;
case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=
1;break;case 20:b.oPos+=1}b.prev=S.BEGIN_FILL;e=b;this.beginFill(e.buffer.i[e.iPos],e.buffer.f[e.fPos]);break;case 2:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=
2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.BEGIN_GRADIENT_FILL;e=b;this.beginGradientFill(e.buffer.o[e.oPos],e.buffer.ii[e.iiPos],e.buffer.ff[e.ffPos],e.buffer.ii[e.iiPos+1],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2],e.buffer.o[e.oPos+3],e.buffer.f[e.fPos]);break;case 3:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;
case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=
1;break;case 20:b.oPos+=1}b.prev=S.BEGIN_SHADER_FILL;e=b;this.beginShaderFill(e.buffer.o[e.oPos]);break;case 4:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=
2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.CUBIC_CURVE_TO;e=b;this.cubicCurveTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3],e.buffer.f[e.fPos+4],e.buffer.f[e.fPos+5]);break;case 5:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=
2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.CURVE_TO;e=
b;this.curveTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3]);break;case 6:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=
2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_CIRCLE;e=b;this.drawCircle(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2]);break;case 7:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=
6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_ELLIPSE;e=b;this.drawEllipse(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+
2],e.buffer.f[e.fPos+3]);break;case 8:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=
4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_QUADS;e=b;this.drawQuads(e.buffer.o[e.oPos],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2]);break;case 9:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;
case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_RECT;e=b;this.drawRect(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3]);break;case 10:switch(b.prev._hx_index){case 0:b.oPos+=
2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_ROUND_RECT;e=b;this.drawRoundRect(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3],e.buffer.f[e.fPos+4],e.buffer.o[e.oPos]);break;case 12:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=
3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_TRIANGLES;e=b;this.drawTriangles(e.buffer.o[e.oPos],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2],e.buffer.o[e.oPos+3]);break;case 13:switch(b.prev._hx_index){case 0:b.oPos+=
2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.END_FILL;this.endFill();break;case 14:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=
4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.LINE_BITMAP_STYLE;e=b;this.lineBitmapStyle(e.buffer.o[e.oPos],e.buffer.o[e.oPos+1],e.buffer.b[e.bPos],e.buffer.b[e.bPos+1]);break;case 15:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=
6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.LINE_GRADIENT_STYLE;e=b;this.lineGradientStyle(e.buffer.o[e.oPos],e.buffer.ii[e.iiPos],
e.buffer.ff[e.ffPos],e.buffer.ii[e.iiPos+1],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2],e.buffer.o[e.oPos+3],e.buffer.f[e.fPos]);break;case 16:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;
case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.LINE_STYLE;e=b;this.lineStyle(e.buffer.o[e.oPos],e.buffer.i[e.iPos],e.buffer.f[e.fPos],e.buffer.b[e.bPos],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2],e.buffer.o[e.oPos+3],e.buffer.f[e.fPos+1]);break;case 17:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;
case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=
1;break;case 20:b.oPos+=1}b.prev=S.LINE_TO;e=b;this.lineTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1]);break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=
2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.MOVE_TO;e=b;this.moveTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1]);break;case 20:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=
4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.OVERRIDE_MATRIX;e=b;this.overrideMatrix(e.buffer.o[e.oPos]);break;case 21:switch(b.prev._hx_index){case 0:b.oPos+=
2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.WINDING_EVEN_ODD;this.windingEvenOdd();break;case 22:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=
2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.WINDING_NON_ZERO;this.windingNonZero()}}b.destroy();return a},beginBitmapFill:function(a,b,c,d){this.prepareWrite();this.types.push(S.BEGIN_BITMAP_FILL);this.o.push(a);this.o.push(b);this.b.push(c);this.b.push(d)},beginFill:function(a,b){this.prepareWrite();this.types.push(S.BEGIN_FILL);
this.i.push(a);this.f.push(b)},beginGradientFill:function(a,b,c,d,e,f,h,l){this.prepareWrite();this.types.push(S.BEGIN_GRADIENT_FILL);this.o.push(a);this.ii.push(b);this.ff.push(c);this.ii.push(d);this.o.push(e);this.o.push(f);this.o.push(h);this.f.push(l)},beginShaderFill:function(a){this.prepareWrite();this.types.push(S.BEGIN_SHADER_FILL);this.o.push(a)},clear:function(){this.types=se.empty.types;this.b=se.empty.b;this.i=se.empty.i;this.f=se.empty.f;this.o=se.empty.o;this.ff=se.empty.ff;this.ii=
se.empty.ii;this.copyOnWrite=!0},copy:function(){var a=new se;a.append(this);return a},cubicCurveTo:function(a,b,c,d,e,f){this.prepareWrite();this.types.push(S.CUBIC_CURVE_TO);this.f.push(a);this.f.push(b);this.f.push(c);this.f.push(d);this.f.push(e);this.f.push(f)},curveTo:function(a,b,c,d){this.prepareWrite();this.types.push(S.CURVE_TO);this.f.push(a);this.f.push(b);this.f.push(c);this.f.push(d)},destroy:function(){this.clear();this.ii=this.ff=this.o=this.f=this.i=this.b=this.types=null},drawCircle:function(a,
b,c){this.prepareWrite();this.types.push(S.DRAW_CIRCLE);this.f.push(a);this.f.push(b);this.f.push(c)},drawEllipse:function(a,b,c,d){this.prepareWrite();this.types.push(S.DRAW_ELLIPSE);this.f.push(a);this.f.push(b);this.f.push(c);this.f.push(d)},drawQuads:function(a,b,c){this.prepareWrite();this.types.push(S.DRAW_QUADS);this.o.push(a);this.o.push(b);this.o.push(c)},drawRect:function(a,b,c,d){this.prepareWrite();this.types.push(S.DRAW_RECT);this.f.push(a);this.f.push(b);this.f.push(c);this.f.push(d)},
drawRoundRect:function(a,b,c,d,e,f){this.prepareWrite();this.types.push(S.DRAW_ROUND_RECT);this.f.push(a);this.f.push(b);this.f.push(c);this.f.push(d);this.f.push(e);this.o.push(f)},drawTriangles:function(a,b,c,d){this.prepareWrite();this.types.push(S.DRAW_TRIANGLES);this.o.push(a);this.o.push(b);this.o.push(c);this.o.push(d)},endFill:function(){this.prepareWrite();this.types.push(S.END_FILL)},lineBitmapStyle:function(a,b,c,d){this.prepareWrite();this.types.push(S.LINE_BITMAP_STYLE);this.o.push(a);
this.o.push(b);this.b.push(c);this.b.push(d)},lineGradientStyle:function(a,b,c,d,e,f,h,l){this.prepareWrite();this.types.push(S.LINE_GRADIENT_STYLE);this.o.push(a);this.ii.push(b);this.ff.push(c);this.ii.push(d);this.o.push(e);this.o.push(f);this.o.push(h);this.f.push(l)},lineStyle:function(a,b,c,d,e,f,h,l){this.prepareWrite();this.types.push(S.LINE_STYLE);this.o.push(a);this.i.push(b);this.f.push(c);this.b.push(d);this.o.push(e);this.o.push(f);this.o.push(h);this.f.push(l)},lineTo:function(a,b){this.prepareWrite();
this.types.push(S.LINE_TO);this.f.push(a);this.f.push(b)},moveTo:function(a,b){this.prepareWrite();this.types.push(S.MOVE_TO);this.f.push(a);this.f.push(b)},prepareWrite:function(){this.copyOnWrite&&(this.types=this.types.slice(),this.b=this.b.slice(),this.i=this.i.slice(),this.f=this.f.slice(),this.o=this.o.slice(),this.ff=this.ff.slice(),this.ii=this.ii.slice(),this.copyOnWrite=!1)},overrideBlendMode:function(a){this.prepareWrite();this.types.push(S.OVERRIDE_BLEND_MODE);this.o.push(a)},overrideMatrix:function(a){this.prepareWrite();
this.types.push(S.OVERRIDE_MATRIX);this.o.push(a)},windingEvenOdd:function(){this.prepareWrite();this.types.push(S.WINDING_EVEN_ODD)},windingNonZero:function(){this.prepareWrite();this.types.push(S.WINDING_NON_ZERO)},get_length:function(){return this.types.length},__class__:se,__properties__:{get_length:"get_length"}};var D=function(){};g["openfl.display._internal.CanvasGraphics"]=D;D.__name__="openfl.display._internal.CanvasGraphics";D.closePath=function(a){null==a&&(a=!1);null!=D.context.strokeStyle&&
(a||D.context.closePath(),D.context.stroke(),a&&D.context.closePath(),D.context.beginPath())};D.createBitmapFill=function(a,b,c){ua.convertToCanvas(a.image);D.setSmoothing(c);return D.context.createPattern(a.image.get_src(),b?"repeat":"no-repeat")};D.createGradientPattern=function(a,b,c,d,e,f,h,l){f=null;h=!1;null==e&&(e=Aa.__pool.get(),e.identity(),h=!0);switch(a){case 0:f=D.context.createLinearGradient(-819.2,0,819.2,0);D.pendingMatrix=e.clone();D.inversePendingMatrix=e.clone();D.inversePendingMatrix.invert();
break;case 1:1<l?l=1:-1>l&&(l=-1),f=D.context.createRadialGradient(819.2*l,0,0,0,0,819.2),D.pendingMatrix=e.clone(),D.inversePendingMatrix=e.clone(),D.inversePendingMatrix.invert()}for(var m,k,g,n=0,q=b.length;n<q;)g=n++,m=b[g],a=c[g],l=(m&16711680)>>>16,k=(m&65280)>>>8,m&=255,g=d[g]/255,0>g&&(g=0),1<g&&(g=1),f.addColorStop(g,"rgba("+l+", "+k+", "+m+", "+a+")");h&&Aa.__pool.release(e);return f};D.createTempPatternCanvas=function(a,b,c,d){var e=window.document.createElement("canvas"),f=e.getContext("2d");
e.width=c;e.height=d;a=a.image.get_src();f.fillStyle=f.createPattern(a,b?"repeat":"no-repeat");f.beginPath();f.moveTo(0,0);f.lineTo(0,d);f.lineTo(c,d);f.lineTo(c,0);f.lineTo(0,0);f.closePath();D.hitTesting||f.fill(D.windingRule);return e};D.drawRoundRect=function(a,b,c,d,e,f){null==f&&(f=e);e*=.5;f*=.5;e>c/2&&(e=c/2);f>d/2&&(f=d/2);c=a+c;d=b+d;var h=-e+.7071067811865476*e,l=-e+.41421356237309503*e,m=-f+.7071067811865476*f,k=-f+.41421356237309503*f;D.context.moveTo(c,d-f);D.context.quadraticCurveTo(c,
d+k,c+h,d+m);D.context.quadraticCurveTo(c+l,d,c-e,d);D.context.lineTo(a+e,d);D.context.quadraticCurveTo(a-l,d,a-h,d+m);D.context.quadraticCurveTo(a,d+k,a,d-f);D.context.lineTo(a,b+f);D.context.quadraticCurveTo(a,b-k,a-h,b-m);D.context.quadraticCurveTo(a-l,b,a+e,b);D.context.lineTo(c-e,b);D.context.quadraticCurveTo(c+l,b,c+h,b-m);D.context.quadraticCurveTo(c,b-k,c,b+f);D.context.lineTo(c,d-f)};D.endFill=function(){D.context.beginPath();D.playCommands(D.fillCommands,!1);D.fillCommands.clear()};D.endStroke=
function(){D.context.beginPath();D.playCommands(D.strokeCommands,!0);D.context.closePath();D.strokeCommands.clear()};D.hitTest=function(a,b,c){D.bounds=a.__bounds;D.graphics=a;if(0==a.__commands.get_length()||null==D.bounds||0>=D.bounds.width||0>=D.bounds.height)return!1;D.hitTesting=!0;var d=a.__renderTransform,e=b*d.b+c*d.d+d.ty;b=b*d.a+c*d.c+d.tx-(D.bounds.x*d.a+D.bounds.y*d.c+d.tx);c=e-(D.bounds.x*d.b+D.bounds.y*d.d+d.ty);e=a.__canvas;var f=a.__context;a.__canvas=D.hitTestCanvas;a.__context=D.hitTestContext;
D.context=a.__context;D.context.setTransform(d.a,d.b,d.c,d.d,d.tx,d.ty);D.fillCommands.clear();D.strokeCommands.clear();D.hasFill=!1;D.hasStroke=!1;D.bitmapFill=null;D.bitmapRepeat=!1;D.windingRule="evenodd";d=new rg(a.__commands);for(var h=0,l=a.__commands.types;h<l.length;){var m=l[h];++h;switch(m._hx_index){case 0:case 1:case 2:case 3:D.endFill();if(D.hasFill&&D.context.isPointInPath(b,c,D.windingRule))return d.destroy(),a.__canvas=e,a.__context=f,!0;D.endStroke();if(D.hasStroke&&D.context.isPointInStroke(b,
c))return d.destroy(),a.__canvas=e,a.__context=f,!0;if(m==S.BEGIN_BITMAP_FILL){switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=
2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.BEGIN_BITMAP_FILL;m=d;D.fillCommands.beginBitmapFill(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1]);D.strokeCommands.beginBitmapFill(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1])}else if(m==S.BEGIN_GRADIENT_FILL){switch(d.prev._hx_index){case 0:d.oPos+=
2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=
2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.BEGIN_GRADIENT_FILL;m=d;D.fillCommands.beginGradientFill(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos]);D.strokeCommands.beginGradientFill(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos])}else if(m==S.BEGIN_SHADER_FILL){switch(d.prev._hx_index){case 0:d.oPos+=
2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=
2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.BEGIN_SHADER_FILL;m=d;D.fillCommands.beginShaderFill(m.buffer.o[m.oPos]);D.strokeCommands.beginShaderFill(m.buffer.o[m.oPos])}else{switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=
5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.BEGIN_FILL;m=d;D.fillCommands.beginFill(m.buffer.i[m.iPos],1);D.strokeCommands.beginFill(m.buffer.i[m.iPos],1)}break;case 4:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=
4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.CUBIC_CURVE_TO;
m=d;D.fillCommands.cubicCurveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.f[m.fPos+5]);D.strokeCommands.cubicCurveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.f[m.fPos+5]);break;case 5:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=
6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.CURVE_TO;m=d;D.fillCommands.curveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+
2],m.buffer.f[m.fPos+3]);D.strokeCommands.curveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);break;case 6:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=
4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.DRAW_CIRCLE;m=d;D.fillCommands.drawCircle(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2]);D.strokeCommands.drawCircle(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2]);break;case 7:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=
2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;
break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.DRAW_ELLIPSE;m=d;D.fillCommands.drawEllipse(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);D.strokeCommands.drawEllipse(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);break;case 9:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;
case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.DRAW_RECT;m=d;D.fillCommands.drawRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+
2],m.buffer.f[m.fPos+3]);D.strokeCommands.drawRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);break;case 10:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=
4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.DRAW_ROUND_RECT;m=d;D.fillCommands.drawRoundRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.o[m.oPos]);D.strokeCommands.drawRoundRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+
2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.o[m.oPos]);break;case 13:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=
2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.END_FILL;D.endFill();if(D.hasFill&&D.context.isPointInPath(b,c,D.windingRule))return d.destroy(),a.__canvas=e,a.__context=f,!0;D.endStroke();if(D.hasStroke&&D.context.isPointInStroke(b,c))return d.destroy(),a.__canvas=e,a.__context=f,!0;D.hasFill=!1;D.bitmapFill=null;break;case 14:switch(d.prev._hx_index){case 0:d.oPos+=
2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=
2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.LINE_BITMAP_STYLE;m=d;D.strokeCommands.lineBitmapStyle(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1]);break;case 15:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=
4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.LINE_GRADIENT_STYLE;m=d;D.strokeCommands.lineGradientStyle(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+
3],m.buffer.f[m.fPos]);break;case 16:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=
4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.LINE_STYLE;m=d;D.strokeCommands.lineStyle(m.buffer.o[m.oPos],m.buffer.i[m.iPos],1,m.buffer.b[m.bPos],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos+1]);break;case 17:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;
case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.LINE_TO;m=d;D.fillCommands.lineTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+
1]);D.strokeCommands.lineTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]);break;case 18:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=
2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=S.MOVE_TO;m=d;D.fillCommands.moveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]);D.strokeCommands.moveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]);break;case 21:D.windingRule="evenodd";break;case 22:D.windingRule="nonzero";break;default:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;
case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=
1}d.prev=m}}h=!1;0<D.fillCommands.get_length()&&D.endFill();D.hasFill&&D.context.isPointInPath(b,c,D.windingRule)&&(h=!0);0<D.strokeCommands.get_length()&&D.endStroke();D.hasStroke&&D.context.isPointInStroke(b,c)&&(h=!0);d.destroy();a.__canvas=e;a.__context=f;return h};D.isCCW=function(a,b,c,d,e,f){return 0>(c-a)*(f-b)-(d-b)*(e-a)};D.normalizeUVT=function(a,b){null==b&&(b=!1);for(var c=-Infinity,d,e=a.get_length(),f=1,h=e+1;f<h;)d=f++,b&&0==d%3||(d=a.get(d-1),c<d&&(c=d));if(!b)return{max:c,uvt:a};
var l=fb.toFloatVector(null);f=1;for(h=e+1;f<h;)d=f++,b&&0==d%3||l.push(a.get(d-1));return{max:c,uvt:l}};D.playCommands=function(a,b){null==b&&(b=!1);D.bounds=D.graphics.__bounds;var c=D.bounds.x,d=D.bounds.y,e=0,f=0,h=!1,l=0,m=0,k=!1;D.windingRule="evenodd";D.setSmoothing(!0);var g=!1,n=new rg(a),q,p,r,v=null,u=null,x=0,z=a.types;a:for(;x<z.length;){var w=z[x];++x;switch(w._hx_index){case 0:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=
4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.BEGIN_BITMAP_FILL;
var U=n;D.bitmapFill=U.buffer.o[U.oPos];D.context.fillStyle=D.createBitmapFill(U.buffer.o[U.oPos],U.buffer.b[U.bPos],U.buffer.b[U.bPos+1]);D.hasFill=!0;null!=U.buffer.o[U.oPos+1]?(D.pendingMatrix=U.buffer.o[U.oPos+1],D.inversePendingMatrix=U.buffer.o[U.oPos+1].clone(),D.inversePendingMatrix.invert()):(D.pendingMatrix=null,D.inversePendingMatrix=null);break;case 1:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=
1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.BEGIN_FILL;var X=n;if(.005>X.buffer.f[X.fPos])D.hasFill=
!1;else{if(1==X.buffer.f[X.fPos]){var B=ia.hex(X.buffer.i[X.iPos]&16777215,6);D.context.fillStyle="#"+B}else{var P=(X.buffer.i[X.iPos]&16711680)>>>16;var F=(X.buffer.i[X.iPos]&65280)>>>8;var Ha=X.buffer.i[X.iPos]&255;D.context.fillStyle="rgba("+P+", "+F+", "+Ha+", "+X.buffer.f[X.fPos]+")"}D.bitmapFill=null;D.setSmoothing(!0);D.hasFill=!0}break;case 2:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=
1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.BEGIN_GRADIENT_FILL;var G=n;D.context.fillStyle=D.createGradientPattern(G.buffer.o[G.oPos],
G.buffer.ii[G.iiPos],G.buffer.ff[G.ffPos],G.buffer.ii[G.iiPos+1],G.buffer.o[G.oPos+1],G.buffer.o[G.oPos+2],G.buffer.o[G.oPos+3],G.buffer.f[G.fPos]);D.bitmapFill=null;D.setSmoothing(!0);D.hasFill=!0;break;case 3:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=
4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.BEGIN_SHADER_FILL;var C=n,H=C.buffer.o[C.oPos];0<H.inputCount&&(D.bitmapFill=H.inputs[0],D.context.fillStyle=D.createBitmapFill(D.bitmapFill,0!=H.inputWrap[0],5!=H.inputFilter[0]),D.hasFill=!0,
D.pendingMatrix=null,D.inversePendingMatrix=null);break;case 4:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;
n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.CUBIC_CURVE_TO;var y=n;g=!0;D.context.bezierCurveTo(y.buffer.f[y.fPos]-c,y.buffer.f[y.fPos+1]-d,y.buffer.f[y.fPos+2]-c,y.buffer.f[y.fPos+3]-d,y.buffer.f[y.fPos+4]-c,y.buffer.f[y.fPos+5]-d);break;case 5:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;
n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.CURVE_TO;var J=n;g=!0;D.context.quadraticCurveTo(J.buffer.f[J.fPos]-
c,J.buffer.f[J.fPos+1]-d,J.buffer.f[J.fPos+2]-c,J.buffer.f[J.fPos+3]-d);break;case 6:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;
n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.DRAW_CIRCLE;var I=n;g=!0;D.context.moveTo(I.buffer.f[I.fPos]-c+I.buffer.f[I.fPos+2],I.buffer.f[I.fPos+1]-d);D.context.arc(I.buffer.f[I.fPos]-c,I.buffer.f[I.fPos+1]-d,I.buffer.f[I.fPos+2],0,2*Math.PI,!0);break;case 7:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=
4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.DRAW_ELLIPSE;
var L=n;g=!0;var Y=L.buffer.f[L.fPos];var N=L.buffer.f[L.fPos+1];var Q=L.buffer.f[L.fPos+2];var T=L.buffer.f[L.fPos+3];Y-=c;N-=d;var Wa=Q/2*.5522848;var E=T/2*.5522848;var V=Y+Q;var R=N+T;var W=Y+Q/2;var M=N+T/2;D.context.moveTo(Y,M);D.context.bezierCurveTo(Y,M-E,W-Wa,N,W,N);D.context.bezierCurveTo(W+Wa,N,V,M-E,V,M);D.context.bezierCurveTo(V,M+E,W+Wa,R,W,R);D.context.bezierCurveTo(W-Wa,R,Y,M+E,Y,M);break;case 8:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;
case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=
1}n.prev=S.DRAW_QUADS;var K=n,aa=K.buffer.o[K.oPos],ba=K.buffer.o[K.oPos+1],Z=K.buffer.o[K.oPos+2],ff=null!=ba,fa=!1,ea=!1,ja=ff?ba.get_length():Math.floor(aa.get_length()/4);if(0==ja)return;null!=Z&&(Z.get_length()>=6*ja?ea=fa=!0:Z.get_length()>=4*ja?fa=!0:Z.get_length()>=2*ja&&(ea=!0));var ca=ha.__pool.get(),ka=Aa.__pool.get(),la=D.graphics.__renderTransform;D.context.save();for(var na=0,Ed=ja;na<Ed;){var oa=na++;var pa=ff?4*ba.get(oa):4*oa;if(!(0>pa||(ca.setTo(aa.get(pa),aa.get(pa+1),aa.get(pa+
2),aa.get(pa+3)),0>=ca.width||0>=ca.height))){if(fa&&ea){var ma=6*oa;ka.setTo(Z.get(ma),Z.get(ma+1),Z.get(ma+2),Z.get(ma+3),Z.get(ma+4),Z.get(ma+5))}else fa?(ma=4*oa,ka.setTo(Z.get(ma),Z.get(ma+1),Z.get(ma+2),Z.get(ma+3),ca.x,ca.y)):ea?(ma=2*oa,ka.tx=Z.get(ma),ka.ty=Z.get(ma+1)):(ka.tx=ca.x,ka.ty=ca.y);ka.tx+=e-c;ka.ty+=f-d;ka.concat(la);D.context.setTransform(ka.a,ka.b,ka.c,ka.d,ka.tx,ka.ty);null!=D.bitmapFill?D.context.drawImage(D.bitmapFill.image.get_src(),ca.x,ca.y,ca.width,ca.height,0,0,ca.width,
ca.height):D.context.fillRect(0,0,ca.width,ca.height)}}ha.__pool.release(ca);Aa.__pool.release(ka);D.context.restore();break;case 9:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=
2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.DRAW_RECT;var da=n;var ra=!1;if(null!=D.bitmapFill&&!D.hitTesting){var qa=r=p=q=0;var ta=!0;if(null!=D.pendingMatrix)if(0!=D.pendingMatrix.b||0!=D.pendingMatrix.c)ta=!1;else{null==v&&(v=ab.__pool.get());null==u&&(u=ab.__pool.get());v.setTo(da.buffer.f[da.fPos],da.buffer.f[da.fPos+
1]);var sa=D.inversePendingMatrix,ua=v.x,xf=v.y;v.x=ua*sa.a+xf*sa.c+sa.tx;v.y=ua*sa.b+xf*sa.d+sa.ty;u.setTo(da.buffer.f[da.fPos]+da.buffer.f[da.fPos+2],da.buffer.f[da.fPos+1]+da.buffer.f[da.fPos+3]);var Ba=D.inversePendingMatrix,Tb=u.x,ya=u.y;u.x=Tb*Ba.a+ya*Ba.c+Ba.tx;u.y=Tb*Ba.b+ya*Ba.d+Ba.ty;q=v.y;qa=v.x;r=u.y;p=u.x}else q=da.buffer.f[da.fPos+1],qa=da.buffer.f[da.fPos],r=da.buffer.f[da.fPos+1]+da.buffer.f[da.fPos+3],p=da.buffer.f[da.fPos]+da.buffer.f[da.fPos+2];ta&&0<=q&&0<=qa&&p<=D.bitmapFill.width&&
r<=D.bitmapFill.height&&(ra=!0,D.hitTesting||D.context.drawImage(D.bitmapFill.image.get_src(),qa,q,p-qa,r-q,da.buffer.f[da.fPos]-c,da.buffer.f[da.fPos+1]-d,da.buffer.f[da.fPos+2],da.buffer.f[da.fPos+3]))}ra||(g=!0,D.context.rect(da.buffer.f[da.fPos]-c,da.buffer.f[da.fPos+1]-d,da.buffer.f[da.fPos+2],da.buffer.f[da.fPos+3]));break;case 10:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;
break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.DRAW_ROUND_RECT;var Hc=n;g=!0;D.drawRoundRect(Hc.buffer.f[Hc.fPos]-
c,Hc.buffer.f[Hc.fPos+1]-d,Hc.buffer.f[Hc.fPos+2],Hc.buffer.f[Hc.fPos+3],Hc.buffer.f[Hc.fPos+4],Hc.buffer.o[Hc.oPos]);break;case 12:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=
2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.DRAW_TRIANGLES;var va=n,rc=va.buffer.o[va.oPos],rb=va.buffer.o[va.oPos+1],wa=va.buffer.o[va.oPos+2],za=null,bb=null==D.bitmapFill;if(bb&&null!=wa)break a;if(!bb){if(null==wa){wa=fb.toFloatVector(null);for(var Ca=0,Da=rc.get_length()/2|0;Ca<Da;){var kc=Ca++;wa.push(rc.get(2*
kc)-c/D.bitmapFill.width);wa.push(rc.get(2*kc+1)-d/D.bitmapFill.height)}}var Ga=wa.get_length()!=rc.get_length(),Fa=D.normalizeUVT(wa,Ga),Na=Fa.max;wa=Fa.uvt;za=1<Na?D.createTempPatternCanvas(D.bitmapFill,D.bitmapRepeat,D.bounds.width|0,D.bounds.height|0):D.createTempPatternCanvas(D.bitmapFill,D.bitmapRepeat,D.bitmapFill.width,D.bitmapFill.height)}for(var Ea=0,La=rb.get_length(),Ia,Ka,Ma,Ib,Oa,Pa,Xa,Qa,Ra,Ab,Sa,Ta,Ua,Va,Ya,cb,db,hb,Za,$a,hc,jb,ib,kb,mb,ob,pb,qb;Ea<La;){Ia=Ea;Ka=Ea+1;Ma=Ea+2;Ib=2*
rb.get(Ia);Oa=2*rb.get(Ia)+1;Pa=2*rb.get(Ka);Xa=2*rb.get(Ka)+1;Qa=2*rb.get(Ma);Ra=2*rb.get(Ma)+1;Ab=rc.get(Ib)-c;Sa=rc.get(Oa)-d;Ta=rc.get(Pa)-c;Ua=rc.get(Xa)-d;Va=rc.get(Qa)-c;Ya=rc.get(Ra)-d;switch(va.buffer.o[va.oPos+3]){case 0:if(0>(Ta-Ab)*(Ya-Sa)-(Ua-Sa)*(Va-Ab)){Ea+=3;continue}break;case 2:if(!(0>(Ta-Ab)*(Ya-Sa)-(Ua-Sa)*(Va-Ab))){Ea+=3;continue}}bb?(D.context.beginPath(),D.context.moveTo(Ab,Sa),D.context.lineTo(Ta,Ua),D.context.lineTo(Va,Ya),D.context.closePath(),D.hitTesting||D.context.fill(D.windingRule),
Ea+=3):(cb=wa.get(Ib)*za.width,hb=wa.get(Pa)*za.width,$a=wa.get(Qa)*za.width,db=wa.get(Oa)*za.height,Za=wa.get(Xa)*za.height,hc=wa.get(Ra)*za.height,jb=cb*(hc-Za)-hb*hc+$a*Za+(hb-$a)*db,0==jb?(Ea+=3,D.context.restore()):(D.context.save(),D.context.beginPath(),D.context.moveTo(Ab,Sa),D.context.lineTo(Ta,Ua),D.context.lineTo(Va,Ya),D.context.closePath(),D.context.clip(),ib=-(db*(Va-Ta)-Za*Va+hc*Ta+(Za-hc)*Ab)/jb,kb=(Za*Ya+db*(Ua-Ya)-hc*Ua+(hc-Za)*Sa)/jb,mb=(cb*(Va-Ta)-hb*Va+$a*Ta+(hb-$a)*Ab)/jb,ob=
-(hb*Ya+cb*(Ua-Ya)-$a*Ua+($a-hb)*Sa)/jb,pb=(cb*(hc*Ta-Za*Va)+db*(hb*Va-$a*Ta)+($a*Za-hb*hc)*Ab)/jb,qb=(cb*(hc*Ua-Za*Ya)+db*(hb*Ya-$a*Ua)+($a*Za-hb*hc)*Sa)/jb,D.context.transform(ib,kb,mb,ob,pb,qb),D.context.drawImage(za,0,0,za.width,za.height),D.context.restore(),Ea+=3))}break;case 14:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;
case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.LINE_BITMAP_STYLE;var nb=n;b&&D.hasStroke&&D.closePath();D.context.moveTo(e-c,f-d);D.context.strokeStyle=D.createBitmapFill(nb.buffer.o[nb.oPos],
nb.buffer.b[nb.bPos],nb.buffer.b[nb.bPos+1]);D.hasStroke=!0;break;case 15:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;
n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.LINE_GRADIENT_STYLE;var eb=n;b&&D.hasStroke&&D.closePath();D.context.moveTo(e-c,f-d);D.context.strokeStyle=D.createGradientPattern(eb.buffer.o[eb.oPos],eb.buffer.ii[eb.iiPos],eb.buffer.ff[eb.ffPos],eb.buffer.ii[eb.iiPos+1],eb.buffer.o[eb.oPos+1],eb.buffer.o[eb.oPos+2],eb.buffer.o[eb.oPos+3],eb.buffer.f[eb.fPos]);D.setSmoothing(!0);
D.hasStroke=!0;break;case 16:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;
n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.LINE_STYLE;var Ja=n;b&&D.hasStroke&&D.closePath(!0);D.context.moveTo(e-c,f-d);if(null==Ja.buffer.o[Ja.oPos])D.hasStroke=!1;else{D.context.lineWidth=0<Ja.buffer.o[Ja.oPos]?Ja.buffer.o[Ja.oPos]:1;var sb=null==Ja.buffer.o[Ja.oPos+3]?"round":(null==Ja.buffer.o[Ja.oPos+3]?"null":Cs.toString(Ja.buffer.o[Ja.oPos+3])).toLowerCase();D.context.lineJoin=sb;var tb=null==Ja.buffer.o[Ja.oPos+
2]?"round":0==Ja.buffer.o[Ja.oPos+2]?"butt":(null==Ja.buffer.o[Ja.oPos+2]?"null":Bs.toString(Ja.buffer.o[Ja.oPos+2])).toLowerCase();D.context.lineCap=tb;D.context.miterLimit=Ja.buffer.f[Ja.fPos+1];if(1==Ja.buffer.f[Ja.fPos]){var ub=ia.hex(Ja.buffer.i[Ja.iPos]&16777215,6);D.context.strokeStyle="#"+ub}else P=(Ja.buffer.i[Ja.iPos]&16711680)>>>16,F=(Ja.buffer.i[Ja.iPos]&65280)>>>8,Ha=Ja.buffer.i[Ja.iPos]&255,D.context.strokeStyle="rgba("+P+", "+F+", "+Ha+", "+Ja.buffer.f[Ja.fPos]+")";D.setSmoothing(!0);
D.hasStroke=!0}break;case 17:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;
n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.LINE_TO;var lb=n;g=!0;D.context.lineTo(lb.buffer.f[lb.fPos]-c,lb.buffer.f[lb.fPos+1]-d);e=lb.buffer.f[lb.fPos];f=lb.buffer.f[lb.fPos+1];e==l&&f==m&&(h=!0);break;case 18:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=
4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=S.MOVE_TO;var gb=n;D.context.moveTo(gb.buffer.f[gb.fPos]-c,gb.buffer.f[gb.fPos+1]-d);e=gb.buffer.f[gb.fPos];
f=gb.buffer.f[gb.fPos+1];k&&gb.buffer.f[gb.fPos]!=l&&gb.buffer.f[gb.fPos+1]!=m&&(h=!0);l=gb.buffer.f[gb.fPos];m=gb.buffer.f[gb.fPos+1];k=!0;break;case 21:D.windingRule="evenodd";break;case 22:D.windingRule="nonzero";break;default:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=
3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=w}}null!=v&&ab.__pool.release(v);null!=u&&ab.__pool.release(u);n.destroy();if(g){if(b&&D.hasStroke){if(D.hasFill){if(e!=l||f!=m)D.context.lineTo(l-c,m-d),h=!0;h&&D.closePath(!0)}else h&&
e==l&&f==m&&D.closePath(!0);D.hitTesting||D.context.stroke()}b||!D.hasFill&&null==D.bitmapFill||(D.context.translate(-D.bounds.x,-D.bounds.y),null!=D.pendingMatrix?(D.context.transform(D.pendingMatrix.a,D.pendingMatrix.b,D.pendingMatrix.c,D.pendingMatrix.d,D.pendingMatrix.tx,D.pendingMatrix.ty),D.hitTesting||D.context.fill(D.windingRule),D.context.transform(D.inversePendingMatrix.a,D.inversePendingMatrix.b,D.inversePendingMatrix.c,D.inversePendingMatrix.d,D.inversePendingMatrix.tx,D.inversePendingMatrix.ty)):
D.hitTesting||D.context.fill(D.windingRule),D.context.translate(D.bounds.x,D.bounds.y),D.context.closePath())}};D.render=function(a,b){a.__update(b.__worldTransform);if(a.__softwareDirty){D.hitTesting=!1;D.graphics=a;D.allowSmoothing=b.__allowSmoothing;D.worldAlpha=b.__getAlpha(a.__owner.__worldAlpha);D.bounds=a.__bounds;var c=a.__width,d=a.__height;if(!a.__visible||0==a.__commands.get_length()||null==D.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"));D.context=a.__context;var e=a.__renderTransform,f=a.__canvas,h=b.pixelRatio,l=c*h|0,m=d*h|0;b.__setBlendModeContext(D.context,10);b.__isDOM?(f.width==l&&f.height==m?D.context.clearRect(0,0,l,m):(f.width=l,f.height=m,f.style.width=c+"px",f.style.height=d+"px"),c=a.__renderTransform,D.context.setTransform(c.a*h,c.b*h,c.c*h,c.d*h,c.tx*h,c.ty*h)):(f.width==l&&f.height==m?(D.context.closePath(),D.context.setTransform(1,0,
0,1,0,0),D.context.clearRect(0,0,l,m)):(f.width=c,f.height=d),D.context.setTransform(e.a,e.b,e.c,e.d,e.tx,e.ty));D.fillCommands.clear();D.strokeCommands.clear();D.hasFill=!1;D.hasStroke=!1;D.bitmapFill=null;h=D.bitmapRepeat=!1;d=c=0;D.windingRule="evenodd";e=new rg(a.__commands);f=0;for(l=a.__commands.types;f<l.length;)switch(m=l[f],++f,m._hx_index){case 0:case 1:case 2:case 3:D.endFill();D.endStroke();if(m==S.BEGIN_BITMAP_FILL){switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=
1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;
break;case 20:e.oPos+=1}e.prev=S.BEGIN_BITMAP_FILL;m=e;D.fillCommands.beginBitmapFill(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1]);D.strokeCommands.beginBitmapFill(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1])}else if(m==S.BEGIN_GRADIENT_FILL){switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;
break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.BEGIN_GRADIENT_FILL;m=e;D.fillCommands.beginGradientFill(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],
m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos]);D.strokeCommands.beginGradientFill(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos])}else if(m==S.BEGIN_SHADER_FILL){switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;
break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.BEGIN_SHADER_FILL;m=e;D.fillCommands.beginShaderFill(m.buffer.o[m.oPos]);
D.strokeCommands.beginShaderFill(m.buffer.o[m.oPos])}else{switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=
1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.BEGIN_FILL;m=e;D.fillCommands.beginFill(m.buffer.i[m.iPos],m.buffer.f[m.fPos]);D.strokeCommands.beginFill(m.buffer.i[m.iPos],m.buffer.f[m.fPos])}break;case 4:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=
6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.CUBIC_CURVE_TO;m=e;D.fillCommands.cubicCurveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+
1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.f[m.fPos+5]);h?D.strokeCommands.cubicCurveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.f[m.fPos+5]):(c=m.buffer.f[m.fPos+4],d=m.buffer.f[m.fPos+5]);break;case 5:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=
4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.CURVE_TO;m=e;D.fillCommands.curveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+
3]);h?D.strokeCommands.curveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]):(c=m.buffer.f[m.fPos+2],d=m.buffer.f[m.fPos+3]);break;case 6:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=
1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.DRAW_CIRCLE;m=e;D.fillCommands.drawCircle(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2]);h&&D.strokeCommands.drawCircle(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2]);break;case 7:switch(e.prev._hx_index){case 0:e.oPos+=
2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=
2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.DRAW_ELLIPSE;m=e;D.fillCommands.drawEllipse(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);h&&D.strokeCommands.drawEllipse(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);break;case 8:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;
case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.DRAW_QUADS;m=e;D.fillCommands.drawQuads(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+
2]);break;case 9:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=
2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.DRAW_RECT;m=e;D.fillCommands.drawRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);h&&D.strokeCommands.drawRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);break;case 10:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=
1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.DRAW_ROUND_RECT;m=e;D.fillCommands.drawRoundRect(m.buffer.f[m.fPos],
m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.o[m.oPos]);h&&D.strokeCommands.drawRoundRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.o[m.oPos]);break;case 12:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=
3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.DRAW_TRIANGLES;m=e;D.fillCommands.drawTriangles(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+
3]);break;case 13:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;
e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.END_FILL;D.endFill();D.endStroke();h=D.hasFill=!1;D.bitmapFill=null;d=c=0;break;case 14:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=
4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.LINE_BITMAP_STYLE;m=e;h||0==c&&0==d||(D.strokeCommands.moveTo(c,d),d=c=0);h=!0;D.strokeCommands.lineBitmapStyle(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1]);
break;case 15:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=
2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.LINE_GRADIENT_STYLE;m=e;h||0==c&&0==d||(D.strokeCommands.moveTo(c,d),d=c=0);h=!0;D.strokeCommands.lineGradientStyle(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos]);break;case 16:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;
case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=
1}e.prev=S.LINE_STYLE;m=e;h||null==m.buffer.o[m.oPos]||0==c&&0==d||(D.strokeCommands.moveTo(c,d),d=c=0);h=null!=m.buffer.o[m.oPos];D.strokeCommands.lineStyle(m.buffer.o[m.oPos],m.buffer.i[m.iPos],m.buffer.f[m.fPos],m.buffer.b[m.bPos],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos+1]);break;case 17:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;
case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.LINE_TO;m=e;D.fillCommands.lineTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+
1]);h?D.strokeCommands.lineTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]):(c=m.buffer.f[m.fPos],d=m.buffer.f[m.fPos+1]);break;case 18:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=
2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.MOVE_TO;m=e;D.fillCommands.moveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]);h?D.strokeCommands.moveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]):(c=m.buffer.f[m.fPos],d=m.buffer.f[m.fPos+1]);break;case 19:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=
1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;
break;case 20:e.oPos+=1}e.prev=S.OVERRIDE_BLEND_MODE;m=e;b.__setBlendModeContext(D.context,m.buffer.o[m.oPos]);break;case 21:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=
2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.WINDING_EVEN_ODD;D.fillCommands.windingEvenOdd();D.windingRule="evenodd";break;case 22:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;
case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=S.WINDING_NON_ZERO;D.fillCommands.windingNonZero();D.windingRule="nonzero";break;default:switch(e.prev._hx_index){case 0:e.oPos+=
2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=
2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=m}0<D.fillCommands.get_length()&&D.endFill();0<D.strokeCommands.get_length()&&D.endStroke();e.destroy();a.__bitmap=xb.fromCanvas(a.__canvas)}a.__softwareDirty=!1;a.set___dirty(!1)}};D.renderMask=function(a,b){if(0!=a.__commands.get_length()){D.context=b.context;b=new rg(a.__commands);var c=0;for(a=a.__commands.types;c<a.length;){var d=a[c];++c;switch(d._hx_index){case 4:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=
1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;
break;case 20:b.oPos+=1}b.prev=S.CUBIC_CURVE_TO;d=b;D.context.bezierCurveTo(d.buffer.f[d.fPos]-0,d.buffer.f[d.fPos+1]-0,d.buffer.f[d.fPos+2]-0,d.buffer.f[d.fPos+3]-0,d.buffer.f[d.fPos+4]-0,d.buffer.f[d.fPos+5]-0);break;case 5:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=
3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.CURVE_TO;d=b;D.context.quadraticCurveTo(d.buffer.f[d.fPos]-0,d.buffer.f[d.fPos+1]-0,d.buffer.f[d.fPos+2]-0,d.buffer.f[d.fPos+3]-0);break;case 6:switch(b.prev._hx_index){case 0:b.oPos+=
2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_CIRCLE;d=b;D.context.arc(d.buffer.f[d.fPos]-0,d.buffer.f[d.fPos+1]-0,d.buffer.f[d.fPos+2],0,2*Math.PI,!0);break;case 7:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=
5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_ELLIPSE;var e=b;d=e.buffer.f[e.fPos];var f=e.buffer.f[e.fPos+1];var h=e.buffer.f[e.fPos+2];var l=e.buffer.f[e.fPos+3];d-=0;f-=0;e=h/2*.5522848;var m=l/2*.5522848;var k=d+h;var g=f+l;h=d+h/2;l=f+l/2;D.context.moveTo(d,
l);D.context.bezierCurveTo(d,l-m,h-e,f,h,f);D.context.bezierCurveTo(h+e,f,k,l-m,k,l);D.context.bezierCurveTo(k,l+m,h+e,g,h,g);D.context.bezierCurveTo(h-e,g,d,l+m,d,l);break;case 9:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=
5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_RECT;d=b;D.context.beginPath();D.context.rect(d.buffer.f[d.fPos]-0,d.buffer.f[d.fPos+1]-0,d.buffer.f[d.fPos+2],d.buffer.f[d.fPos+3]);D.context.closePath();break;case 10:switch(b.prev._hx_index){case 0:b.oPos+=2;
b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.DRAW_ROUND_RECT;d=b;D.drawRoundRect(d.buffer.f[d.fPos]-0,d.buffer.f[d.fPos+1]-0,d.buffer.f[d.fPos+2],d.buffer.f[d.fPos+3],d.buffer.f[d.fPos+4],d.buffer.o[d.oPos]);break;case 17:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=
3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=S.LINE_TO;d=b;D.context.lineTo(d.buffer.f[d.fPos]-0,d.buffer.f[d.fPos+1]-0);break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=
1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=
1}b.prev=S.MOVE_TO;d=b;D.context.moveTo(d.buffer.f[d.fPos]-0,d.buffer.f[d.fPos+1]-0);break;default:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=
4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=d}}b.destroy()}};D.setSmoothing=function(a){D.allowSmoothing||(a=!1);D.context.imageSmoothingEnabled!=a&&(D.context.imageSmoothingEnabled=a)};var wu=function(){};g["openfl.display._internal.CanvasShape"]=wu;wu.__name__="openfl.display._internal.CanvasShape";wu.render=function(a,b){if(a.__renderable){var c=b.__getAlpha(a.__worldAlpha);
if(!(0>=c)){var d=a.__graphics;if(null!=d){D.render(d,b);var e=d.__width,f=d.__height,h=d.__canvas;if(null!=h&&d.__visible&&1<=e&&1<=f){var l=d.__worldTransform,m=b.context,k=a.__scrollRect,g=a.__worldScale9Grid;if(null==k||0<k.width&&0<k.height){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);m.globalAlpha=c;if(null!=g&&0==l.b&&0==l.c){m.setTransform(1,0,0,1,l.tx,l.ty);var n=d.__bounds,q=d.__renderTransform.a,p=d.__renderTransform.d,r=l.a,v=l.d;l=Math.max(1,Math.round(g.x*q));d=Math.round(g.y*
p);c=Math.max(1,Math.round((n.get_right()-g.get_right())*q));k=Math.round((n.get_bottom()-g.get_bottom())*p);q=Math.round(g.width*q);p=Math.round(g.height*p);var u=Math.round(g.x*r),x=Math.round(g.y*v),z=Math.round((n.get_right()-g.get_right())*r);g=Math.round((n.get_bottom()-g.get_bottom())*v);n=Math.round(e*r)-u-z;r=Math.round(f*v)-x-g;b.applySmoothing(m,!1);0!=q&&0!=p?(m.drawImage(h,0,0,l,d,0,0,u,x),m.drawImage(h,l,0,q,d,u,0,n,x),m.drawImage(h,l+q,0,c,d,u+n,0,z,x),m.drawImage(h,0,d,l,p,0,x,u,r),
m.drawImage(h,l,d,q,p,u,x,n,r),m.drawImage(h,l+q,d,c,p,u+n,x,z,r),m.drawImage(h,0,d+p,l,k,0,x+r,u,g),m.drawImage(h,l,d+p,q,k,u,x+r,n,g),m.drawImage(h,l+q,d+p,c,k,u+n,x+r,z,g)):0==q&&0!=p?(f=u+n+z,m.drawImage(h,0,0,e,d,0,0,f,x),m.drawImage(h,0,d,e,p,0,x,f,r),m.drawImage(h,0,d+p,e,k,0,x+r,f,g)):0==p&&0!=q&&(e=x+r+g,m.drawImage(h,0,0,l,f,0,0,u,e),m.drawImage(h,l,0,q,f,u,0,n,e),m.drawImage(h,l+q,0,c,f,u+n,0,z,e))}else b.setTransform(l,m),b.__isDOM&&(g=1/b.pixelRatio,m.scale(g,g)),m.drawImage(h,0,0,e,
f);b.__popMaskObject(a)}}}}}};var fq=function(){};g["openfl.display._internal.CanvasSimpleButton"]=fq;fq.__name__="openfl.display._internal.CanvasSimpleButton";fq.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))};fq.renderDrawableMask=function(a,b){b.__renderDrawableMask(a.__currentState)};var R=function(){};g["openfl.display._internal.CanvasTextField"]=R;R.__name__=
"openfl.display._internal.CanvasTextField";R.render=function(a,b,c){var d=a.__textEngine,e=!(d.background||d.border),f=e?d.textBounds:d.bounds,h=a.__graphics,l=0;if(a.__dirty){a.__updateLayout();null==h.__bounds&&(h.__bounds=new ha);if(0==a.get_text().length){l=d.bounds.width-4;c=a.get_defaultTextFormat().align;l=3==c?0:4==c?l:l/2;switch(c){case 0:l+=a.get_defaultTextFormat().leftMargin/2;l-=a.get_defaultTextFormat().rightMargin/2;l+=a.get_defaultTextFormat().indent/2;l+=a.get_defaultTextFormat().blockIndent/
2;break;case 2:l+=a.get_defaultTextFormat().leftMargin;l+=a.get_defaultTextFormat().indent;l+=a.get_defaultTextFormat().blockIndent;break;case 3:l+=a.get_defaultTextFormat().leftMargin;l+=a.get_defaultTextFormat().indent;l+=a.get_defaultTextFormat().blockIndent;break;case 4:l-=a.get_defaultTextFormat().rightMargin}e&&(f.y=d.bounds.y,f.x=l)}h.__bounds.copyFrom(f)}h.__update(b.__worldTransform);if(a.__dirty||h.__softwareDirty){var m=h.__width,k=h.__height;if(!(null!=d.text&&""!=d.text||d.background||
d.border||d.__hasFocus||1==d.type&&d.selectable)||(0>=d.width||0>=d.height)&&2!=d.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=h.__context;c=h.__renderTransform;if(b.__isDOM){var g=b.pixelRatio;h.__canvas.width=
m*g|0;h.__canvas.height=k*g|0;h.__canvas.style.width=m+"px";h.__canvas.style.height=k+"px";m=Aa.__pool.get();m.copyFrom(c);m.scale(g,g);b.setTransform(m,R.context);Aa.__pool.release(m)}else h.__canvas.width=m,h.__canvas.height=k,R.context.setTransform(c.a,c.b,c.c,c.d,c.tx,c.ty);null==R.clearRect&&(R.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);R.clearRect&&R.context.clearRect(0,0,h.__canvas.width,h.__canvas.height);if(null!=d.text&&""!=d.text||d.__hasFocus){e=
d.text;h.__context.imageSmoothingEnabled=!b.__allowSmoothing||0==d.antiAliasType&&400==d.sharpness?!1:!0;if(d.border||d.background){R.context.rect(.5,.5,f.width-1,f.height-1);if(d.background){var n=ia.hex(d.backgroundColor&16777215,6);R.context.fillStyle="#"+n;R.context.fill()}d.border&&(R.context.lineWidth=1,n=ia.hex(d.borderColor&16777215,6),R.context.strokeStyle="#"+n,R.context.stroke())}R.context.textBaseline="alphabetic";R.context.textAlign="start";b=-a.get_scrollH();var q=l=0;for(n=a.get_scrollV()-
1;q<n;){var p=q++;l-=d.lineHeights.get(p)}for(c=d.layoutGroups.iterator();c.hasNext();)if(g=c.next(),!(g.lineIndex<a.get_scrollV()-1)){if(g.lineIndex>d.get_bottomScrollV()-1)break;m="#"+ia.hex(g.format.color&16777215,6);R.context.font=nb.getFont(g.format);R.context.fillStyle=m;R.context.fillText(e.substring(g.startIndex,g.endIndex),g.offsetX+b-f.x,g.offsetY+g.ascent+l-f.y);if(-1<a.__caretIndex&&d.selectable)if(a.__selectionIndex==a.__caretIndex){if(a.__showCursor&&g.startIndex<=a.__caretIndex&&g.endIndex>=
a.__caretIndex){q=k=0;for(n=a.__caretIndex-g.startIndex;q<n;){p=q++;if(g.positions.length<=p)break;k+=g.positions[p]}q=0;n=a.get_scrollV();for(p=g.lineIndex+1;n<p;){var r=n++;q+=d.lineHeights.get(r-1)}R.context.beginPath();n=ia.hex(g.format.color&16777215,6);R.context.strokeStyle="#"+n;R.context.moveTo(g.offsetX+k-a.get_scrollH()-f.x,q+2-f.y);R.context.lineWidth=1;R.context.lineTo(g.offsetX+k-a.get_scrollH()-f.x,q+nb.getFormatHeight(a.get_defaultTextFormat())-1-f.y);R.context.stroke();R.context.closePath()}}else if(g.startIndex<=
a.__caretIndex&&g.endIndex>=a.__caretIndex||g.startIndex<=a.__selectionIndex&&g.endIndex>=a.__selectionIndex||g.startIndex>a.__caretIndex&&g.endIndex<a.__selectionIndex||g.startIndex>a.__selectionIndex&&g.endIndex<a.__caretIndex)k=Math.min(a.__selectionIndex,a.__caretIndex)|0,q=Math.max(a.__selectionIndex,a.__caretIndex)|0,g.startIndex>k&&(k=g.startIndex),g.endIndex<q&&(q=g.endIndex),p=a.getCharBoundaries(k),q>=g.endIndex?(n=a.getCharBoundaries(g.endIndex-1),null!=n&&(n.x+=n.width+2)):n=a.getCharBoundaries(q),
null!=p&&null!=n&&(R.context.fillStyle="#000000",R.context.fillRect(p.x+b-f.x,p.y+l,n.x-p.x,g.height),R.context.fillStyle="#FFFFFF",R.context.fillText(e.substring(k,q),b+p.x-f.x,g.offsetY+g.ascent+l));g.format.underline&&(R.context.beginPath(),R.context.strokeStyle=m,R.context.lineWidth=1,m=g.offsetX+b-f.x,k=Math.floor(g.offsetY+l+g.ascent-f.y)+.5,R.context.moveTo(m,k),R.context.lineTo(m+g.width,k),R.context.stroke(),R.context.closePath())}}else{if(d.border||d.background)d.border?R.context.rect(.5,
.5,f.width-1,f.height-1):R.context.rect(0,0,f.width,f.height),d.background&&(n=ia.hex(d.backgroundColor&16777215,6),R.context.fillStyle="#"+n,R.context.fill()),d.border&&(R.context.lineWidth=1,R.context.lineCap="square",n=ia.hex(d.borderColor&16777215,6),R.context.strokeStyle="#"+n,R.context.stroke());if(-1<a.__caretIndex&&d.selectable&&a.__showCursor){b=-a.get_scrollH()+(e?0:l);q=l=0;for(n=a.get_scrollV()-1;q<n;)p=q++,l+=d.lineHeights.get(p);R.context.beginPath();n=ia.hex(a.get_defaultTextFormat().color&
16777215,6);R.context.strokeStyle="#"+n;R.context.moveTo(b+2.5,l+2.5);R.context.lineWidth=1;R.context.lineTo(b+2.5,l+nb.getFormatHeight(a.get_defaultTextFormat())-1);R.context.stroke();R.context.closePath()}}h.__bitmap=xb.fromCanvas(a.__graphics.__canvas);h.__visible=!0;a.__dirty=!1;h.__softwareDirty=!1;h.set___dirty(!1)}}};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(db.parse(a.__text,a.__textFormat,a.__textEngine.textFormatRanges)),a.__dirty=!0,a.__layoutDirty=!0,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));if(null==a.get_mask()||0<a.get_mask().get_width()&&0<a.get_mask().get_height())if(b.__updateCacheBitmap(a,a.__dirty),null==a.__cacheBitmap||a.__isCacheBitmapRender){var c=a.__textEngine,d=!(c.background||c.border),e=d?c.textBounds:c.bounds,f=a.__graphics,h=0;if(a.__dirty){a.__updateLayout();null==f.__bounds&&(f.__bounds=
new ha);if(0==a.get_text().length){var l=c.bounds.width-4,m=a.get_defaultTextFormat().align;h=3==m?0:4==m?l:l/2;switch(m){case 0:h+=a.get_defaultTextFormat().leftMargin/2;h-=a.get_defaultTextFormat().rightMargin/2;h+=a.get_defaultTextFormat().indent/2;h+=a.get_defaultTextFormat().blockIndent/2;break;case 2:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent;h+=a.get_defaultTextFormat().blockIndent;break;case 3:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent;
h+=a.get_defaultTextFormat().blockIndent;break;case 4:h-=a.get_defaultTextFormat().rightMargin}d&&(e.y=c.bounds.y,e.x=h)}f.__bounds.copyFrom(e)}f.__update(b.__worldTransform);if(a.__dirty||f.__softwareDirty)if(m=f.__width,l=f.__height,!(null!=c.text&&""!=c.text||c.background||c.border||c.__hasFocus||1==c.type&&c.selectable)||(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=f.__context;var k=f.__renderTransform;if(b.__isDOM){var g=b.pixelRatio;f.__canvas.width=m*g|0;f.__canvas.height=l*g|0;f.__canvas.style.width=m+"px";f.__canvas.style.height=l+"px";m=Aa.__pool.get();m.copyFrom(k);m.scale(g,g);b.setTransform(m,R.context);Aa.__pool.release(m)}else f.__canvas.width=m,f.__canvas.height=l,R.context.setTransform(k.a,
k.b,k.c,k.d,k.tx,k.ty);null==R.clearRect&&(R.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);R.clearRect&&R.context.clearRect(0,0,f.__canvas.width,f.__canvas.height);if(null!=c.text&&""!=c.text||c.__hasFocus){m=c.text;f.__context.imageSmoothingEnabled=!b.__allowSmoothing||0==c.antiAliasType&&400==c.sharpness?!1:!0;if(c.border||c.background){R.context.rect(.5,.5,e.width-1,e.height-1);if(c.background){var n=ia.hex(c.backgroundColor&16777215,6);R.context.fillStyle=
"#"+n;R.context.fill()}c.border&&(R.context.lineWidth=1,n=ia.hex(c.borderColor&16777215,6),R.context.strokeStyle="#"+n,R.context.stroke())}R.context.textBaseline="alphabetic";R.context.textAlign="start";l=-a.get_scrollH();var q=d=0;for(n=a.get_scrollV()-1;q<n;){var p=q++;d-=c.lineHeights.get(p)}var r;for(h=c.layoutGroups.iterator();h.hasNext();)if(g=h.next(),!(g.lineIndex<a.get_scrollV()-1)){if(g.lineIndex>c.get_bottomScrollV()-1)break;k="#"+ia.hex(g.format.color&16777215,6);R.context.font=nb.getFont(g.format);
R.context.fillStyle=k;R.context.fillText(m.substring(g.startIndex,g.endIndex),g.offsetX+l-e.x,g.offsetY+g.ascent+d-e.y);if(-1<a.__caretIndex&&c.selectable)if(a.__selectionIndex==a.__caretIndex){if(a.__showCursor&&g.startIndex<=a.__caretIndex&&g.endIndex>=a.__caretIndex){q=r=0;for(n=a.__caretIndex-g.startIndex;q<n;){p=q++;if(g.positions.length<=p)break;r+=g.positions[p]}q=0;n=a.get_scrollV();for(p=g.lineIndex+1;n<p;){var v=n++;q+=c.lineHeights.get(v-1)}R.context.beginPath();n=ia.hex(g.format.color&
16777215,6);R.context.strokeStyle="#"+n;R.context.moveTo(g.offsetX+r-a.get_scrollH()-e.x,q+2-e.y);R.context.lineWidth=1;R.context.lineTo(g.offsetX+r-a.get_scrollH()-e.x,q+nb.getFormatHeight(a.get_defaultTextFormat())-1-e.y);R.context.stroke();R.context.closePath()}}else if(g.startIndex<=a.__caretIndex&&g.endIndex>=a.__caretIndex||g.startIndex<=a.__selectionIndex&&g.endIndex>=a.__selectionIndex||g.startIndex>a.__caretIndex&&g.endIndex<a.__selectionIndex||g.startIndex>a.__selectionIndex&&g.endIndex<
a.__caretIndex)r=Math.min(a.__selectionIndex,a.__caretIndex)|0,q=Math.max(a.__selectionIndex,a.__caretIndex)|0,g.startIndex>r&&(r=g.startIndex),g.endIndex<q&&(q=g.endIndex),p=a.getCharBoundaries(r),q>=g.endIndex?(n=a.getCharBoundaries(g.endIndex-1),null!=n&&(n.x+=n.width+2)):n=a.getCharBoundaries(q),null!=p&&null!=n&&(R.context.fillStyle="#000000",R.context.fillRect(p.x+l-e.x,p.y+d,n.x-p.x,g.height),R.context.fillStyle="#FFFFFF",R.context.fillText(m.substring(r,q),l+p.x-e.x,g.offsetY+g.ascent+d));
g.format.underline&&(R.context.beginPath(),R.context.strokeStyle=k,R.context.lineWidth=1,k=g.offsetX+l-e.x,r=Math.floor(g.offsetY+d+g.ascent-e.y)+.5,R.context.moveTo(k,r),R.context.lineTo(k+g.width,r),R.context.stroke(),R.context.closePath())}}else{if(c.border||c.background)c.border?R.context.rect(.5,.5,e.width-1,e.height-1):R.context.rect(0,0,e.width,e.height),c.background&&(n=ia.hex(c.backgroundColor&16777215,6),R.context.fillStyle="#"+n,R.context.fill()),c.border&&(R.context.lineWidth=1,R.context.lineCap=
"square",n=ia.hex(c.borderColor&16777215,6),R.context.strokeStyle="#"+n,R.context.stroke());if(-1<a.__caretIndex&&c.selectable&&a.__showCursor){l=-a.get_scrollH()+(d?0:h);q=d=0;for(n=a.get_scrollV()-1;q<n;)p=q++,d+=c.lineHeights.get(p);R.context.beginPath();n=ia.hex(a.get_defaultTextFormat().color&16777215,6);R.context.strokeStyle="#"+n;R.context.moveTo(l+2.5,d+2.5);R.context.lineWidth=1;R.context.lineTo(l+2.5,d+nb.getFormatHeight(a.get_defaultTextFormat())-1);R.context.stroke();R.context.closePath()}}f.__bitmap=
xb.fromCanvas(a.__graphics.__canvas);f.__visible=!0;a.__dirty=!1;f.__softwareDirty=!1;f.set___dirty(!1)}d=!1;0==a.__textEngine.antiAliasType&&1==a.__textEngine.gridFitType&&(d=b.context.imageSmoothingEnabled)&&(b.context.imageSmoothingEnabled=!1);if((null!=a.opaqueBackground||null!=a.__graphics)&&a.__renderable&&(e=b.__getAlpha(a.__worldAlpha),!(0>=e)&&(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()&&(b.__setBlendMode(a.__worldBlendMode),b.__pushMaskObject(a),
c=b.context,b.setTransform(a.__renderTransform,c),k=a.opaqueBackground,c.fillStyle="rgb("+(k>>>16&255)+","+(k>>>8&255)+","+(k&255)+")",c.fillRect(0,0,a.get_width(),a.get_height()),b.__popMaskObject(a)),null!=a.__graphics&&a.__renderable&&(e=b.__getAlpha(a.__worldAlpha),!(0>=e)&&(f=a.__graphics,null!=f&&(D.render(f,b),m=f.__width,l=f.__height,h=f.__canvas,null!=h&&f.__visible&&1<=m&&1<=l&&(k=f.__worldTransform,c=b.context,r=a.__scrollRect,g=a.__worldScale9Grid,null==r||0<r.width&&0<r.height))))))){b.__setBlendMode(a.__worldBlendMode);
b.__pushMaskObject(a);c.globalAlpha=e;if(null!=g&&0==k.b&&0==k.c){c.setTransform(1,0,0,1,k.tx,k.ty);e=f.__bounds;n=f.__renderTransform.a;var u=f.__renderTransform.d;p=k.a;v=k.d;f=Math.max(1,Math.round(g.x*n));k=Math.round(g.y*u);r=Math.max(1,Math.round((e.get_right()-g.get_right())*n));q=Math.round((e.get_bottom()-g.get_bottom())*u);n=Math.round(g.width*n);u=Math.round(g.height*u);var x=Math.round(g.x*p),z=Math.round(g.y*v),w=Math.round((e.get_right()-g.get_right())*p);e=Math.round((e.get_bottom()-
g.get_bottom())*v);g=Math.round(m*p)-x-w;p=Math.round(l*v)-z-e;b.applySmoothing(c,!1);0!=n&&0!=u?(c.drawImage(h,0,0,f,k,0,0,x,z),c.drawImage(h,f,0,n,k,x,0,g,z),c.drawImage(h,f+n,0,r,k,x+g,0,w,z),c.drawImage(h,0,k,f,u,0,z,x,p),c.drawImage(h,f,k,n,u,x,z,g,p),c.drawImage(h,f+n,k,r,u,x+g,z,w,p),c.drawImage(h,0,k+u,f,q,0,z+p,x,e),c.drawImage(h,f,k+u,n,q,x,z+p,g,e),c.drawImage(h,f+n,k+u,r,q,x+g,z+p,w,e)):0==n&&0!=u?(f=x+g+w,c.drawImage(h,0,0,m,k,0,0,f,z),c.drawImage(h,0,k,m,u,0,z,f,p),c.drawImage(h,0,k+
u,m,q,0,z+p,f,e)):0==u&&0!=n&&(e=z+p+e,c.drawImage(h,0,0,f,l,0,0,x,e),c.drawImage(h,f,0,n,l,x,0,g,e),c.drawImage(h,f+n,0,r,l,x+g,0,w,e))}else b.setTransform(k,c),b.__isDOM&&(e=1/b.pixelRatio,c.scale(e,e)),c.drawImage(h,0,0,m,l);b.__popMaskObject(a)}d&&(b.context.imageSmoothingEnabled=!0)}else a=a.__cacheBitmap,a.__renderable&&(e=b.__getAlpha(a.__worldAlpha),0<e&&null!=a.__bitmapData&&a.__bitmapData.__isValid&&a.__bitmapData.readable&&(c=b.context,b.__setBlendMode(a.__worldBlendMode),b.__pushMaskObject(a,
!1),ua.convertToCanvas(a.__bitmapData.image),c.globalAlpha=e,r=a.__scrollRect,b.setTransform(a.__renderTransform,c),b.__allowSmoothing&&a.smoothing||(c.imageSmoothingEnabled=!1),null==r?c.drawImage(a.__bitmapData.image.get_src(),0,0,a.__bitmapData.image.width,a.__bitmapData.image.height):c.drawImage(a.__bitmapData.image.get_src(),r.x,r.y,r.width,r.height,r.x,r.y,r.width,r.height),b.__allowSmoothing&&a.smoothing||(c.imageSmoothingEnabled=!0),b.__popMaskObject(a,!1)))};R.renderDrawableMask=function(a,
b){Zi.renderDrawableMask(a,b)};var pg=function(){};g["openfl.display._internal.CanvasTilemap"]=pg;pg.__name__="openfl.display._internal.CanvasTilemap";pg.render=function(a,b){if(a.__renderable&&0!=a.__group.__tiles.length){var c=b.__getAlpha(a.__worldAlpha);if(!(0>=c)){var d=b.context;b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var e=ha.__pool.get();e.setTo(0,0,a.__width,a.__height);b.__pushMaskRect(e,a.__renderTransform);b.__allowSmoothing&&a.smoothing||(d.imageSmoothingEnabled=!1);
pg.renderTileContainer(a.__group,b,a.__renderTransform,a.__tileset,b.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,c,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,e);b.__allowSmoothing&&a.smoothing||(d.imageSmoothingEnabled=!0);b.__popMaskRect();b.__popMaskObject(a);ha.__pool.release(e)}}};pg.renderTileContainer=function(a,b,c,d,e,f,h,l,m,k,g,n){var q=b.context,t=b.__roundPixels,p=Aa.__pool.get(),r=a.__tiles,v,u=null,x=0;for(a=a.__length;x<a;){var z=x++;var w=r[z];p.setTo(1,0,0,1,-w.get_originX(),
-w.get_originY());p.concat(w.get_matrix());p.concat(c);t&&(p.tx=Math.round(p.tx),p.ty=Math.round(p.ty));var U=null!=w.get_tileset()?w.get_tileset():d;z=w.get_alpha()*h;if((v=w.get_visible())&&!(0>=z))if(f||(z=1),l&&(u=null!=w.__blendMode?w.__blendMode:m),0<w.__length)pg.renderTileContainer(w,b,p,U,e,f,z,l,u,k,g,n);else if(null!=U){v=w.get_id();if(-1==v){if(w=w.__rect,null==w||0>=w.width||0>=w.height)continue}else{w=U.__data[v];if(null==w)continue;n.setTo(w.x,w.y,w.width,w.height);w=n}U=U.__bitmapData;
null!=U&&(U!=k&&(null==U.image.buffer.__srcImage&&ua.convertToCanvas(U.image),g=U.image.get_src(),k=U),q.globalAlpha=z,l&&b.__setBlendMode(u),b.setTransform(p,q),q.drawImage(g,w.x,w.y,w.width,w.height,0,0,w.width,w.height))}}Aa.__pool.release(p)};pg.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||(u=b.__getAlpha(a.__worldAlpha),0>=u))){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&
0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);x=b.context;b.setTransform(a.__renderTransform,x);var c=a.opaqueBackground;x.fillStyle="rgb("+(c>>>16&255)+","+(c>>>8&255)+","+(c&255)+")";x.fillRect(0,0,a.get_width(),a.get_height());b.__popMaskObject(a)}if(null!=a.__graphics&&a.__renderable&&(u=b.__getAlpha(a.__worldAlpha),!(0>=u))){var d=a.__graphics;if(null!=d){D.render(d,b);var e=d.__width,f=d.__height;c=d.__canvas;if(null!=c&&d.__visible&&1<=e&&1<=
f){var h=d.__worldTransform;x=b.context;w=a.__scrollRect;var l=a.__worldScale9Grid;if(null==w||0<w.width&&0<w.height){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);x.globalAlpha=u;if(null!=l&&0==h.b&&0==h.c){x.setTransform(1,0,0,1,h.tx,h.ty);var m=d.__bounds,k=d.__renderTransform.a,g=d.__renderTransform.d,n=h.a,q=h.d;h=Math.max(1,Math.round(l.x*k));d=Math.round(l.y*g);u=Math.max(1,Math.round((m.get_right()-l.get_right())*k));w=Math.round((m.get_bottom()-l.get_bottom())*g);k=Math.round(l.width*
k);g=Math.round(l.height*g);var p=Math.round(l.x*n),r=Math.round(l.y*q),v=Math.round((m.get_right()-l.get_right())*n);l=Math.round((m.get_bottom()-l.get_bottom())*q);m=Math.round(e*n)-p-v;n=Math.round(f*q)-r-l;b.applySmoothing(x,!1);0!=k&&0!=g?(x.drawImage(c,0,0,h,d,0,0,p,r),x.drawImage(c,h,0,k,d,p,0,m,r),x.drawImage(c,h+k,0,u,d,p+m,0,v,r),x.drawImage(c,0,d,h,g,0,r,p,n),x.drawImage(c,h,d,k,g,p,r,m,n),x.drawImage(c,h+k,d,u,g,p+m,r,v,n),x.drawImage(c,0,d+g,h,w,0,r+n,p,l),x.drawImage(c,h,d+g,k,w,p,r+
n,m,l),x.drawImage(c,h+k,d+g,u,w,p+m,r+n,v,l)):0==k&&0!=g?(f=p+m+v,x.drawImage(c,0,0,e,d,0,0,f,r),x.drawImage(c,0,d,e,g,0,r,f,n),x.drawImage(c,0,d+g,e,w,0,r+n,f,l)):0==g&&0!=k&&(e=r+n+l,x.drawImage(c,0,0,h,f,0,0,p,e),x.drawImage(c,h,0,k,f,p,0,m,e),x.drawImage(c,h+k,0,u,f,p+m,0,v,e))}else b.setTransform(h,x),b.__isDOM&&(l=1/b.pixelRatio,x.scale(l,l)),x.drawImage(c,0,0,e,f);b.__popMaskObject(a)}}}}}a.__renderable&&0!=a.__group.__tiles.length&&(u=b.__getAlpha(a.__worldAlpha),0>=u||(x=b.context,b.__setBlendMode(a.__worldBlendMode),
b.__pushMaskObject(a),c=ha.__pool.get(),c.setTo(0,0,a.__width,a.__height),b.__pushMaskRect(c,a.__renderTransform),b.__allowSmoothing&&a.smoothing||(x.imageSmoothingEnabled=!1),pg.renderTileContainer(a.__group,b,a.__renderTransform,a.__tileset,b.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,u,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,c),b.__allowSmoothing&&a.smoothing||(x.imageSmoothingEnabled=!0),b.__popMaskRect(),b.__popMaskObject(a),ha.__pool.release(c)))}else if(c=a.__cacheBitmap,
c.__renderable){var u=b.__getAlpha(c.__worldAlpha);if(0<u&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable){var x=b.context;b.__setBlendMode(c.__worldBlendMode);b.__pushMaskObject(c,!1);ua.convertToCanvas(c.__bitmapData.image);x.globalAlpha=u;var w=c.__scrollRect;b.setTransform(c.__renderTransform,x);b.__allowSmoothing&&c.smoothing||(x.imageSmoothingEnabled=!1);null==w?x.drawImage(c.__bitmapData.image.get_src(),0,0,c.__bitmapData.image.width,c.__bitmapData.image.height):x.drawImage(c.__bitmapData.image.get_src(),
w.x,w.y,w.width,w.height,w.x,w.y,w.width,w.height);b.__allowSmoothing&&c.smoothing||(x.imageSmoothingEnabled=!0);b.__popMaskObject(c,!1)}}b.__renderEvent(a)};pg.renderDrawableMask=function(a,b){};var Ti=function(){};g["openfl.display._internal.CanvasVideo"]=Ti;Ti.__name__="openfl.display._internal.CanvasVideo";Ti.render=function(a,b){if(a.__renderable&&null!=a.__stream){var c=b.__getAlpha(a.__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 e=a.smoothing;b.setTransform(a.__worldTransform,d);e||(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);e||(d.imageSmoothingEnabled=!0);b.__popMaskObject(a)}}}};Ti.renderDrawable=function(a,b){Ti.render(a,b);b.__renderEvent(a)};Ti.renderDrawableMask=function(a,b){};var Jf=function(){};g["openfl.display._internal.Context3DBitmap"]=
Jf;Jf.__name__="openfl.display._internal.Context3DBitmap";Jf.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 e=a.__bitmapData.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,e,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,e,3,2);d=a.__bitmapData.getIndexBuffer(c);c.drawTriangles(d);b.__clearShader();b.__popMaskObject(a)}};Jf.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<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var c=b.__context3D,d=ha.__pool.get();d.setTo(0,0,a.get_width(),a.get_height());b.__pushMaskRect(d,a.__renderTransform);var e=a.opaqueBackground;c.clear((e>>>16&255)/255,(e>>>8&255)/255,(e&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);ha.__pool.release(d)}null!=a.__graphics&&
ug.render(a,b)}Jf.render(a,b)}else Jf.render(a.__cacheBitmap,b);b.__renderEvent(a)};Jf.renderDrawableMask=function(a,b){Jf.renderMask(a,b)};Jf.renderMask=function(a,b){if(null!=a.__bitmapData&&a.__bitmapData.__isValid){var c=b.__context3D,d=b.__maskShader;b.setShader(d);b.applyBitmapData(Uj.opaqueBitmapData,!0);b.applyMatrix(b.__getMatrix(a.__renderTransform,a.pixelSnapping));b.updateShader();var e=a.__bitmapData.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,e,0,3);
null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,e,3,2);a=a.__bitmapData.getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()}};var uq=function(){};g["openfl.display._internal.Context3DBitmapData"]=uq;uq.__name__="openfl.display._internal.Context3DBitmapData";uq.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 e=a.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,e,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,e,3,2);a=a.getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()};uq.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 e=a.getVertexBuffer(c);
null!=d.__position&&c.setVertexBufferAt(d.__position.index,e,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,e,3,2);a=a.getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()};var bj=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"]=bj;bj.__name__="openfl.display._internal.Context3DBuffer";bj.prototype={dataPerVertex:null,elementCount:null,elementType:null,
indexBufferData:null,indexBuffers:null,indexCount:null,vertexBuffer:null,vertexBufferData:null,vertexCount:null,context3D:null,drawElements:function(a,b){null==b&&(b=-1);if(0!=this.indexCount&&0!=this.vertexCount&&0==this.elementType._hx_index)if(-1==b&&(b=2*this.elementCount),10922>a&&10922>b-a)this.context3D.drawTriangles(this.indexBuffers[0],a,2*b);else for(var c=a+b;a<c;){var d=Math.floor(a/10922);b=Math.min(c-a,10922)|0;if(0>=b)break;this.context3D.drawTriangles(this.indexBuffers[d],3*(a-10922*
d),2*b);a+=b}},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(Rh.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,e=null,f=null,h=null;this.vertexBufferData=b=null!=b?new Float32Array(b):null!=c?new Float32Array(c):null!=d?new Float32Array(d.__array):null!=e?new Float32Array(e):null!=f?null==h?new Float32Array(f,0):new Float32Array(f,0,h):null}else b>this.vertexBufferData.length&&(a=this.vertexBufferData,h=f=e=d=c=null,this.vertexBufferData=b=null!=b?new Float32Array(b):null!=
c?new Float32Array(c):null!=d?new Float32Array(d.__array):null!=e?new Float32Array(e):null!=f?null==h?new Float32Array(f,0):new Float32Array(f,0,h):null,this.vertexBufferData.set(a))},__class__:bj};var cj=P["openfl.display._internal.Context3DElementType"]={__ename__:"openfl.display._internal.Context3DElementType",__constructs__:null,QUADS:{_hx_name:"QUADS",_hx_index:0,__enum__:"openfl.display._internal.Context3DElementType",toString:v},TRIANGLES:{_hx_name:"TRIANGLES",_hx_index:1,__enum__:"openfl.display._internal.Context3DElementType",
toString:v},TRIANGLE_INDICES:{_hx_name:"TRIANGLE_INDICES",_hx_index:2,__enum__:"openfl.display._internal.Context3DElementType",toString:v}};cj.__constructs__=[cj.QUADS,cj.TRIANGLES,cj.TRIANGLE_INDICES];cj.__empty_constructs__=[cj.QUADS,cj.TRIANGLES,cj.TRIANGLE_INDICES];var $h=function(){};g["openfl.display._internal.Context3DDisplayObject"]=$h;$h.__name__="openfl.display._internal.Context3DDisplayObject";$h.render=function(a,b){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=
a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var c=b.__context3D,d=ha.__pool.get();d.setTo(0,0,a.get_width(),a.get_height());b.__pushMaskRect(d,a.__renderTransform);var e=a.opaqueBackground;c.clear((e>>>16&255)/255,(e>>>8&255)/255,(e&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);ha.__pool.release(d)}null!=a.__graphics&&ug.render(a,b)}};$h.renderDrawable=function(a,b){b.__updateCacheBitmap(a,
!1);if(null!=a.__cacheBitmap&&!a.__isCacheBitmapRender)Jf.render(a.__cacheBitmap,b);else if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var c=b.__context3D,d=ha.__pool.get();d.setTo(0,0,a.get_width(),a.get_height());b.__pushMaskRect(d,a.__renderTransform);var e=a.opaqueBackground;c.clear((e>>>16&255)/255,(e>>>
8&255)/255,(e&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);ha.__pool.release(d)}null!=a.__graphics&&ug.render(a,b)}b.__renderEvent(a)};$h.renderDrawableMask=function(a,b){null!=a.__graphics&&ug.renderMask(a,b)};$h.renderMask=function(a,b){if(null!=a.opaqueBackground||null!=a.__graphics)null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&a.get_height(),null!=a.__graphics&&ug.renderMask(a,b)};var vq=function(){};g["openfl.display._internal.Context3DDisplayObjectContainer"]=
vq;vq.__name__="openfl.display._internal.Context3DDisplayObjectContainer";vq.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)&&($h.renderDrawable(a,b),null==a.__cacheBitmap||a.__isCacheBitmapRender)){if(0<a.__children.length)if(b.__pushMaskObject(a),null!=b.__stage){c=0;for(d=a.__children;c<d.length;){var e=d[c];++c;b.__renderDrawable(e);e.__renderDirty=
!1}a.__renderDirty=!1}else for(c=0,d=a.__children;c<d.length;)e=d[c],++c,b.__renderDrawable(e);0<a.__children.length&&b.__popMaskObject(a)}};vq.renderDrawableMask=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);null!=a.__graphics&&ug.renderMask(a,b);c=0;for(a=a.__children;c<a.length;)d=a[c],++c,b.__renderDrawableMask(d)};var Aa=function(a,b,c,d,e,f){null==f&&(f=0);null==e&&(e=0);null==d&&(d=1);null==
c&&(c=0);null==b&&(b=0);null==a&&(a=1);this.a=a;this.b=b;this.c=c;this.d=d;this.tx=e;this.ty=f};g["openfl.geom.Matrix"]=Aa;Aa.__name__="openfl.geom.Matrix";Aa.prototype={a:null,b:null,c:null,d:null,tx:null,ty:null,__array:null,clone:function(){return new Aa(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a*a.a+this.b*a.c;this.b=this.a*a.b+this.b*a.d;this.a=b;b=this.c*a.a+this.d*a.c;this.d=this.c*a.b+this.d*a.d;this.c=b;b=this.tx*a.a+this.ty*a.c+a.tx;this.ty=this.tx*a.b+
this.ty*a.d+a.ty;this.tx=b},copyColumnFrom:function(a,b){if(2<a)throw u.thrown("Column "+a+" out of bounds (2)");0==a?(this.a=b.x,this.b=b.y):1==a?(this.c=b.x,this.d=b.y):(this.tx=b.x,this.ty=b.y)},copyColumnTo:function(a,b){if(2<a)throw u.thrown("Column "+a+" out of bounds (2)");0==a?(b.x=this.a,b.y=this.b,b.z=0):1==a?(b.x=this.c,b.y=this.d,b.z=0):(b.x=this.tx,b.y=this.ty,b.z=1)},copyFrom:function(a){this.a=a.a;this.b=a.b;this.c=a.c;this.d=a.d;this.tx=a.tx;this.ty=a.ty},copyRowFrom:function(a,b){if(2<
a)throw u.thrown("Row "+a+" out of bounds (2)");0==a?(this.a=b.x,this.c=b.y,this.tx=b.z):1==a&&(this.b=b.x,this.d=b.y,this.ty=b.z)},copyRowTo:function(a,b){if(2<a)throw u.thrown("Row "+a+" out of bounds (2)");0==a?(b.x=this.a,b.y=this.c,b.z=this.tx):1==a?(b.x=this.b,b.y=this.d,b.z=this.ty):b.setTo(0,0,1)},createBox:function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);if(0!=c){var f=Math.cos(c);c=Math.sin(c);this.a=f*a;this.b=c*b;this.c=-c*a;this.d=f*b}else this.a=a,this.c=this.b=0,this.d=
b;this.tx=d;this.ty=e},createGradientBox:function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);this.a=a/1638.4;this.d=b/1638.4;if(0!=c){var f=Math.cos(c);c=Math.sin(c);this.b=c*this.d;this.c=-c*this.a;this.a*=f;this.d*=f}else this.c=this.b=0;this.tx=d+a/2;this.ty=e+b/2},deltaTransformPoint:function(a){return new ab(a.x*this.a+a.y*this.c,a.x*this.b+a.y*this.d)},equals:function(a){return null!=a&&this.tx==a.tx&&this.ty==a.ty&&this.a==a.a&&this.b==a.b&&this.c==a.c?this.d==a.d:!1},identity:function(){this.a=
1;this.c=this.b=0;this.d=1;this.ty=this.tx=0},invert:function(){var a=this.a*this.d-this.b*this.c;if(0==a)this.a=this.b=this.c=this.d=0,this.tx=-this.tx,this.ty=-this.ty;else{a=1/a;var b=this.d*a;this.d=this.a*a;this.a=b;this.b*=-a;this.c*=-a;a=-this.a*this.tx-this.c*this.ty;this.ty=-this.b*this.tx-this.d*this.ty;this.tx=a}return this},rotate:function(a){var b=Math.cos(a);a=Math.sin(a);var c=this.a*b-this.b*a;this.b=this.a*a+this.b*b;this.a=c;c=this.c*b-this.d*a;this.d=this.c*a+this.d*b;this.c=c;
c=this.tx*b-this.ty*a;this.ty=this.tx*a+this.ty*b;this.tx=c},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b},setRotation:function(a,b){null==b&&(b=1);this.a=Math.cos(a)*b;this.c=Math.sin(a)*b;this.b=-this.c;this.d=this.a},setTo:function(a,b,c,d,e,f){this.a=a;this.b=b;this.c=c;this.d=d;this.tx=e;this.ty=f},to3DString:function(a){null==a&&(a=!1);return a?"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+(this.tx|0)+", "+(this.ty|0)+
", 0, 1)":"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+this.tx+", "+this.ty+", 0, 1)"},toMozString:function(){return"matrix("+this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+"px, "+this.ty+"px)"},toString:function(){return"matrix("+this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+", "+this.ty+")"},transformPoint:function(a){return new ab(a.x*this.a+a.y*this.c+this.tx,a.x*this.b+a.y*this.d+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b},
toArray:function(a){null==a&&(a=!1);null==this.__array&&(this.__array=new Float32Array(9));a?(this.__array[0]=this.a,this.__array[1]=this.b,this.__array[2]=0,this.__array[3]=this.c,this.__array[4]=this.d,this.__array[5]=0,this.__array[6]=this.tx,this.__array[7]=this.ty):(this.__array[0]=this.a,this.__array[1]=this.c,this.__array[2]=this.tx,this.__array[3]=this.b,this.__array[4]=this.d,this.__array[5]=this.ty,this.__array[6]=0,this.__array[7]=0);this.__array[8]=1;return this.__array},__cleanValues:function(){this.a=
Math.round(1E3*this.a)/1E3;this.b=Math.round(1E3*this.b)/1E3;this.c=Math.round(1E3*this.c)/1E3;this.d=Math.round(1E3*this.d)/1E3;this.tx=Math.round(10*this.tx)/10;this.ty=Math.round(10*this.ty)/10},__toMatrix3:function(){Aa.__matrix3.setTo(this.a,this.b,this.c,this.d,this.tx,this.ty);return Aa.__matrix3},__transformInversePoint:function(a){var b=this.a*this.d-this.b*this.c;if(0==b)a.x=-this.tx,a.y=-this.ty;else{var c=1/b*(this.c*(this.ty-a.y)+this.d*(a.x-this.tx));a.y=1/b*(this.a*(a.y-this.ty)+this.b*
(this.tx-a.x));a.x=c}},__transformInverseX:function(a,b){var c=this.a*this.d-this.b*this.c;return 0==c?-this.tx:1/c*(this.c*(this.ty-b)+this.d*(a-this.tx))},__transformInverseY:function(a,b){var c=this.a*this.d-this.b*this.c;return 0==c?-this.ty:1/c*(this.a*(b-this.ty)+this.b*(this.tx-a))},__transformPoint:function(a){var b=a.x,c=a.y;a.x=b*this.a+c*this.c+this.tx;a.y=b*this.b+c*this.d+this.ty},__transformX:function(a,b){return a*this.a+b*this.c+this.tx},__transformY:function(a,b){return a*this.b+
b*this.d+this.ty},__translateTransformed:function(a,b){this.tx=a*this.a+b*this.c+this.tx;this.ty=a*this.b+b*this.d+this.ty},__class__:Aa};var tc=function(a,b,c,d,e,f,h,l){null==l&&(l=0);null==h&&(h=0);null==f&&(f=0);null==e&&(e=0);null==d&&(d=1);null==c&&(c=1);null==b&&(b=1);null==a&&(a=1);this.redMultiplier=a;this.greenMultiplier=b;this.blueMultiplier=c;this.alphaMultiplier=d;this.redOffset=e;this.greenOffset=f;this.blueOffset=h;this.alphaOffset=l};g["openfl.geom.ColorTransform"]=tc;tc.__name__=
"openfl.geom.ColorTransform";tc.prototype={alphaMultiplier:null,alphaOffset:null,blueMultiplier:null,blueOffset:null,greenMultiplier:null,greenOffset:null,redMultiplier:null,redOffset:null,concat:function(a){this.redOffset=a.redOffset*this.redMultiplier+this.redOffset;this.greenOffset=a.greenOffset*this.greenMultiplier+this.greenOffset;this.blueOffset=a.blueOffset*this.blueMultiplier+this.blueOffset;this.alphaOffset=a.alphaOffset*this.alphaMultiplier+this.alphaOffset;this.redMultiplier*=a.redMultiplier;
this.greenMultiplier*=a.greenMultiplier;this.blueMultiplier*=a.blueMultiplier;this.alphaMultiplier*=a.alphaMultiplier},toString:function(){return"(redMultiplier="+this.redMultiplier+", greenMultiplier="+this.greenMultiplier+", blueMultiplier="+this.blueMultiplier+", alphaMultiplier="+this.alphaMultiplier+", redOffset="+this.redOffset+", greenOffset="+this.greenOffset+", blueOffset="+this.blueOffset+", alphaOffset="+this.alphaOffset+")"},__clone:function(){return new tc(this.redMultiplier,this.greenMultiplier,
this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset)},__copyFrom:function(a){this.redMultiplier=a.redMultiplier;this.greenMultiplier=a.greenMultiplier;this.blueMultiplier=a.blueMultiplier;this.alphaMultiplier=a.alphaMultiplier;this.redOffset=a.redOffset;this.greenOffset=a.greenOffset;this.blueOffset=a.blueOffset;this.alphaOffset=a.alphaOffset},__combine:function(a){this.redMultiplier*=a.redMultiplier;this.greenMultiplier*=a.greenMultiplier;this.blueMultiplier*=
a.blueMultiplier;this.alphaMultiplier*=a.alphaMultiplier;this.redOffset+=a.redOffset;this.greenOffset+=a.greenOffset;this.blueOffset+=a.blueOffset;this.alphaOffset+=a.alphaOffset},__identity:function(){this.alphaMultiplier=this.blueMultiplier=this.greenMultiplier=this.redMultiplier=1;this.alphaOffset=this.blueOffset=this.greenOffset=this.redOffset=0},__invert:function(){this.redMultiplier=0!=this.redMultiplier?1/this.redMultiplier:1;this.greenMultiplier=0!=this.greenMultiplier?1/this.greenMultiplier:
1;this.blueMultiplier=0!=this.blueMultiplier?1/this.blueMultiplier:1;this.alphaMultiplier=0!=this.alphaMultiplier?1/this.alphaMultiplier:1;this.redOffset=-this.redOffset;this.greenOffset=-this.greenOffset;this.blueOffset=-this.blueOffset;this.alphaOffset=-this.alphaOffset},__equals:function(a,b){return null==a||this.redMultiplier!=a.redMultiplier||this.greenMultiplier!=a.greenMultiplier||this.blueMultiplier!=a.blueMultiplier||!b&&this.alphaMultiplier!=a.alphaMultiplier||this.redOffset!=a.redOffset||
this.greenOffset!=a.greenOffset||this.blueOffset!=a.blueOffset?!1:this.alphaOffset==a.alphaOffset},__isDefault:function(a){return a?1==this.redMultiplier&&1==this.greenMultiplier&&1==this.blueMultiplier&&0==this.redOffset&&0==this.greenOffset&&0==this.blueOffset?0==this.alphaOffset:!1:1==this.redMultiplier&&1==this.greenMultiplier&&1==this.blueMultiplier&&1==this.alphaMultiplier&&0==this.redOffset&&0==this.greenOffset&&0==this.blueOffset?0==this.alphaOffset:!1},__setArrays:function(a,b){a[0]=this.redMultiplier;
a[1]=this.greenMultiplier;a[2]=this.blueMultiplier;a[3]=this.alphaMultiplier;b[0]=this.redOffset;b[1]=this.greenOffset;b[2]=this.blueOffset;b[3]=this.alphaOffset},get_color:function(){return(this.redOffset|0)<<16|(this.greenOffset|0)<<8|this.blueOffset|0},set_color:function(a){this.redOffset=a>>16&255;this.greenOffset=a>>8&255;this.blueOffset=a&255;this.blueMultiplier=this.greenMultiplier=this.redMultiplier=0;return this.get_color()},__toLimeColorMatrix:function(){null==tc.__limeColorMatrix&&(tc.__limeColorMatrix=
new Float32Array(20));tc.__limeColorMatrix[0]=this.redMultiplier;tc.__limeColorMatrix[4]=this.redOffset/255;tc.__limeColorMatrix[6]=this.greenMultiplier;tc.__limeColorMatrix[9]=this.greenOffset/255;tc.__limeColorMatrix[12]=this.blueMultiplier;tc.__limeColorMatrix[14]=this.blueOffset/255;tc.__limeColorMatrix[18]=this.alphaMultiplier;tc.__limeColorMatrix[19]=this.alphaOffset/255;return tc.__limeColorMatrix},__class__:tc,__properties__:{set_color:"set_color",get_color:"get_color"}};var wc=function(){};
g["openfl.display._internal.Context3DGraphics"]=wc;wc.__name__="openfl.display._internal.Context3DGraphics";wc.buildBuffer=function(a,b){var c,d=c=0,e=0,f=new rg(a.__commands);b=b.__context3D;for(var h=ha.__pool.get(),l=Aa.__pool.get(),m=null,k=0,g=a.__commands.types;k<g.length;){var n=g[k];++k;switch(n._hx_index){case 0: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=S.BEGIN_BITMAP_FILL;m=f;m=m.buffer.o[m.oPos];break;case 1:m=null;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;break;case 3: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=S.BEGIN_SHADER_FILL;m=f;n=m.buffer.o[m.oPos];m=null;if(null!=n)for(var q=0,p=n.inputCount;q<p;){var r=q++;if("bitmap"==n.inputRefs[r].name){m=n.inputs[r];break}}break;case 8:if(null!=m){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=S.DRAW_QUADS;p=f;n=p.buffer.o[p.oPos];q=p.buffer.o[p.oPos+
1];p=p.buffer.o[p.oPos+2];r=null!=q;var v=!1,u=!1,x=r?q.get_length():Math.floor(n.get_length()/4);if(0==x)return;null!=p&&(p.get_length()>=6*x?u=v=!0:p.get_length()>=4*x?v=!0:p.get_length()>=2*x&&(u=!0));null==a.__quadBuffer?a.__quadBuffer=new bj(b,cj.QUADS,x,4):a.__quadBuffer.resize(c+x,4);for(var w,z,U,X,B,P,F,D,Ha,G,C,H,y,J,I=a.__quadBuffer.vertexBufferData,L=m.width,Y=m.height,N=0,Q=x;N<Q;)X=N++,w=16*(c+X),z=r?4*q.get(X):4*X,0>z||(h.setTo(n.get(z),n.get(z+1),n.get(z+2),n.get(z+3)),z=h.width,U=
h.height,0>=z||0>=U||(v&&u?(X*=6,l.setTo(p.get(X),p.get(X+1),p.get(X+2),p.get(X+3),p.get(X+4),p.get(X+5))):v?(X*=4,l.setTo(p.get(X),p.get(X+1),p.get(X+2),p.get(X+3),h.x,h.y)):u?(X*=2,l.tx=p.get(X),l.ty=p.get(X+1)):(l.tx=h.x,l.ty=h.y),X=h.x/L,B=h.y/Y,P=h.get_right()/L,F=h.get_bottom()/Y,D=0*l.a+0*l.c+l.tx,Ha=0*l.b+0*l.d+l.ty,G=z*l.a+0*l.c+l.tx,C=z*l.b+0*l.d+l.ty,H=0*l.a+U*l.c+l.tx,y=0*l.b+U*l.d+l.ty,J=z*l.a+U*l.c+l.tx,z=z*l.b+U*l.d+l.ty,I[w]=D,I[w+1]=Ha,I[w+2]=X,I[w+3]=B,I[w+4]=G,I[w+4+1]=C,I[w+4+
2]=P,I[w+4+3]=B,I[w+8]=H,I[w+8+1]=y,I[w+8+2]=X,I[w+8+3]=F,I[w+12]=J,I[w+12+1]=z,I[w+12+2]=P,I[w+12+3]=F));c+=x}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=S.DRAW_TRIANGLES;p=f;n=p.buffer.o[p.oPos];q=p.buffer.o[p.oPos+1];p=p.buffer.o[p.oPos+2];r=null!=q;x=Math.floor(n.get_length()/2);v=r?q.get_length():x;w=(x=(u=null!=p)&&p.get_length()>=3*x)?4:2;I=x?3:2;L=w+2;Y=x?e:d;wc.resizeVertexBuffer(a,x,Y+v*L);N=x?a.__vertexBufferDataUVT:
a.__vertexBufferData;U=0;for(X=v;U<X;)B=U++,Q=Y+B*L,z=r?2*q.get(B):2*B,B=r?q.get(B)*I:B*I,x?(P=p.get(B+2),N[Q]=n.get(z)/P,N[Q+1]=n.get(z+1)/P,N[Q+2]=0,N[Q+3]=1/P):(N[Q]=n.get(z),N[Q+1]=n.get(z+1)),N[Q+w]=u?p.get(B):0,N[Q+w+1]=u?p.get(B+1):0;x?e+=v*L:d+=v*L;break;case 13:m=null;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<c&&a.__quadBuffer.flushVertexBufferData();if(0<d){c=a.__vertexBuffer;if(null==c||d>a.__vertexBufferCount)c=
b.createVertexBuffer(d,4,0),a.__vertexBuffer=c,a.__vertexBufferCount=d;c.uploadFromTypedArray(Rh.toArrayBufferView(a.__vertexBufferData))}if(0<e){c=a.__vertexBufferUVT;if(null==c||e>a.__vertexBufferCountUVT)c=b.createVertexBuffer(e,6,0),a.__vertexBufferUVT=c,a.__vertexBufferCountUVT=e;c.uploadFromTypedArray(Rh.toArrayBufferView(a.__vertexBufferDataUVT))}ha.__pool.release(h);Aa.__pool.release(l)};wc.isCompatible=function(a){if(null!=a.__owner.__worldScale9Grid)return!1;var b=new rg(a.__commands),c=
!1,d=!1,e=!1,f=0;for(a=a.__commands.types;f<a.length;){var h=a[f];++f;switch(h._hx_index){case 0:d=!0;e=c=!1;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;
break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h;break;case 1:d=!1;c=!0;e=!1;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;
case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h;break;case 3:c=d=!1;e=!0;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;
b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h;break;case 8:if(d||e){switch(b.prev._hx_index){case 0:b.oPos+=
2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h}else return b.destroy(),!1;break;case 9:if(c){switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;
case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h}else return b.destroy(),!1;break;case 12:if(d||e){switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=
4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h}else return b.destroy(),!1;break;case 13:e=c=d=!1;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=
4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h;
break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=
2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h;break;case 19:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=
2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h;break;default:return b.destroy(),!1}}b.destroy();return!0};wc.render=function(a,b){if(a.__visible&&0!=a.__commands.get_length())if(null!=a.__bitmap&&!a.__dirty||!wc.isCompatible(a)){var c=b.__softwareRenderer.__worldTransform;b.__softwareRenderer.__worldTransform=b.__worldTransform;
D.render(a,b.__softwareRenderer);b.__softwareRenderer.__worldTransform=c}else{a.__bitmap=null;a.__update(b.__worldTransform);var d=a.__width,e=a.__height;if(null!=a.__bounds&&1<=d&&1<=e){(a.__hardwareDirty||null==a.__quadBuffer&&null==a.__vertexBuffer&&null==a.__vertexBufferUVT)&&wc.buildBuffer(a,b);c=new rg(a.__commands);for(var f=b.__context3D,h=Aa.__pool.get(),l=null,m=null,k=!1,g=!1,n=null,q=0,p=0,r=0,v=0,u=0,x=a.__commands.types;u<x.length;)switch(d=x[u],++u,d._hx_index){case 0: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=S.BEGIN_BITMAP_FILL;g=c;m=g.buffer.o[g.oPos];k=g.buffer.b[g.bPos];g=g.buffer.b[g.bPos+1];n=l=null;break;case 1: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=S.BEGIN_FILL;m=c;n=(m.buffer.i[m.iPos]|0)&16777215|(255*m.buffer.f[m.fPos]|0)<<24;m=l=null;break;case 3: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=S.BEGIN_SHADER_FILL;p=c;
l=p.buffer.o[p.oPos];p=0;m=null==l||null==l.shader||null==l.shader.__bitmap?null:l.shader.__bitmap.input;n=null;break;case 8: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=S.DRAW_QUADS;var w=c;d=w.buffer.o[w.oPos];w=w.buffer.o[w.oPos+1];d=null!=w?w.get_length():Math.floor(d.get_length()/4);var z=b.__getMatrix(a.__owner.__renderTransform,1);null==l||wc.maskRender?(w=wc.maskRender?b.__maskShader:b.__initGraphicsShader(null),b.setShader(w),
b.applyMatrix(z),b.applyBitmapData(m,g,k),b.applyAlpha(a.__owner.__worldAlpha),b.applyColorTransform(a.__owner.__worldColorTransform),b.updateShader()):(w=b.__initShaderBuffer(l),b.__setShaderBuffer(l),b.applyMatrix(z),b.applyBitmapData(m,!1,k),b.applyAlpha(a.__owner.__worldAlpha),b.applyColorTransform(a.__owner.__worldColorTransform));for(z=q+d;q<z;){d=Math.min(z-q,f.__quadIndexBufferElements)|0;if(0>=d)break;null==l||wc.maskRender||b.__updateShaderBuffer(p);null!=w.__position&&f.setVertexBufferAt(w.__position.index,
a.__quadBuffer.vertexBuffer,16*q,2);null!=w.__textureCoord&&f.setVertexBufferAt(w.__textureCoord.index,a.__quadBuffer.vertexBuffer,16*q+2,2);f.drawTriangles(f.__quadIndexBuffer,0,2*d);p+=4*d;q+=d}b.__clearShader()}break;case 9:if(null!=n){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=S.DRAW_RECT;var U=c;w=U.buffer.f[U.fPos];z=U.buffer.f[U.fPos+1];d=U.buffer.f[U.fPos+2];e=U.buffer.f[U.fPos+3];U=n;wc.tempColorTransform.redOffset=U>>>16&255;wc.tempColorTransform.greenOffset=
U>>>8&255;wc.tempColorTransform.blueOffset=U&255;wc.tempColorTransform.__combine(a.__owner.__worldColorTransform);h.identity();h.scale(d,e);h.tx=w;h.ty=z;h.concat(a.__owner.__renderTransform);d=wc.maskRender?b.__maskShader:b.__initGraphicsShader(null);b.setShader(d);b.applyMatrix(b.__getMatrix(h,1));b.applyBitmapData(wc.blankBitmapData,!0,k);b.applyAlpha((U>>>24&255)/255*a.__owner.__worldAlpha);b.applyColorTransform(wc.tempColorTransform);b.updateShader();w=wc.blankBitmapData.getVertexBuffer(f);null!=
d.__position&&f.setVertexBufferAt(d.__position.index,w,0,3);null!=d.__textureCoord&&f.setVertexBufferAt(d.__textureCoord.index,w,3,2);d=wc.blankBitmapData.getIndexBuffer(f);f.drawTriangles(d);p+=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=S.DRAW_TRIANGLES;e=c;w=e.buffer.o[e.oPos+1];z=e.buffer.o[e.oPos+2];d=e.buffer.o[e.oPos+3];U=null!=w;e=Math.floor(e.buffer.o[e.oPos].get_length()/2);w=U?w.get_length():e;U=
(z=null!=z&&z.get_length()>=3*e)?4:2;e=U+2;var X=z?a.__vertexBufferUVT:a.__vertexBuffer,B=z?v:r,P=b.__getMatrix(a.__owner.__renderTransform,1);if(null==l||wc.maskRender){var F=wc.maskRender?b.__maskShader:b.__initGraphicsShader(null);b.setShader(F);b.applyMatrix(P);b.applyBitmapData(m,g,k);b.applyAlpha(a.__owner.__worldAlpha);b.applyColorTransform(a.__owner.__worldColorTransform);b.updateShader()}else F=b.__initShaderBuffer(l),b.__setShaderBuffer(l),b.applyMatrix(P),b.applyBitmapData(m,!1,k),b.applyAlpha(1),
b.applyColorTransform(null),b.__updateShaderBuffer(p);null!=F.__position&&f.setVertexBufferAt(F.__position.index,X,B,z?4:2);null!=F.__textureCoord&&f.setVertexBufferAt(F.__textureCoord.index,X,B+U,2);switch(d){case 0:f.setCulling(0);break;case 1:f.setCulling(3);break;case 2:f.setCulling(1)}f.__drawTriangles(0,w);p+=w;z?v+=e*w:r+=e*w;switch(d){case 1:case 2:f.setCulling(0)}b.__clearShader();break;case 13:l=n=m=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;f.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=S.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=S.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}Aa.__pool.release(h)}a.__hardwareDirty=!1;a.set___dirty(!1)}};wc.renderMask=function(a,
b){wc.maskRender=!0;wc.render(a,b);wc.maskRender=!1};wc.resizeIndexBuffer=function(a,b,c){if(!b){var d=b?null:a.__triangleIndexBufferData,e=null;if(null==d){var f=e=null,h=null,l=null,m=null;e=c=null!=c?new Uint16Array(c):null!=e?new Uint16Array(e):null!=f?new Uint16Array(f.__array):null!=h?new Uint16Array(h):null!=l?null==m?new Uint16Array(l,0):new Uint16Array(l,0,m):null}else c>d.length&&(m=l=h=f=e=null,e=c=null!=c?new Uint16Array(c):null!=e?new Uint16Array(e):null!=f?new Uint16Array(f.__array):
null!=h?new Uint16Array(h):null!=l?null==m?new Uint16Array(l,0):new Uint16Array(l,0,m):null,e.set(d));null==e||b||(a.__triangleIndexBufferData=e)}};wc.resizeVertexBuffer=function(a,b,c){var d=b?a.__vertexBufferDataUVT:a.__vertexBufferData,e=null;if(null==d){var f=e=null,h=null,l=null,m=null;e=c=null!=c?new Float32Array(c):null!=e?new Float32Array(e):null!=f?new Float32Array(f.__array):null!=h?new Float32Array(h):null!=l?null==m?new Float32Array(l,0):new Float32Array(l,0,m):null}else c>d.length&&(m=
l=h=f=e=null,e=c=null!=c?new Float32Array(c):null!=e?new Float32Array(e):null!=f?new Float32Array(f.__array):null!=h?new Float32Array(h):null!=l?null==m?new Float32Array(l,0):new Float32Array(l,0,m):null,e.set(d));null!=e&&(b?a.__vertexBufferDataUVT=e:a.__vertexBufferData=e)};var Uj=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}");We.call(this);this.__isGenerated=!0;this.__initGL()};g["openfl.display._internal.Context3DMaskShader"]=Uj;Uj.__name__="openfl.display._internal.Context3DMaskShader";
Uj.__super__=We;Uj.prototype=r(We.prototype,{openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_Texture:null,__class__:Uj});var ug=function(){};g["openfl.display._internal.Context3DShape"]=ug;ug.__name__="openfl.display._internal.Context3DShape";ug.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)){var c=a.__graphics;if(null!=c){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);wc.render(c,b);if(null!=c.__bitmap&&c.__visible){var d=b.__context3D,e=b.__initDisplayShader(a.__worldShader);
b.setShader(e);b.applyBitmapData(c.__bitmap,!0);b.applyMatrix(b.__getMatrix(c.__worldTransform,1));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();var f=c.__bitmap.getVertexBuffer(d);null!=e.__position&&d.setVertexBufferAt(e.__position.index,f,0,3);null!=e.__textureCoord&&d.setVertexBufferAt(e.__textureCoord.index,f,3,2);c=c.__bitmap.getIndexBuffer(d);d.drawTriangles(c);b.__clearShader()}b.__popMaskObject(a)}}};ug.renderMask=function(a,b){var c=a.__graphics;
if(null!=c&&(wc.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 e=c.__bitmap.getVertexBuffer(a);null!=d.__position&&a.setVertexBufferAt(d.__position.index,e,0,3);null!=d.__textureCoord&&a.setVertexBufferAt(d.__textureCoord.index,e,3,2);c=c.__bitmap.getIndexBuffer(a);a.drawTriangles(c);b.__clearShader()}};var wq=function(){};g["openfl.display._internal.Context3DSimpleButton"]=
wq;wq.__name__="openfl.display._internal.Context3DSimpleButton";wq.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))};wq.renderDrawableMask=function(a,b){null!=a.__currentState&&b.__renderDrawableMask(a.__currentState)};var ai=function(){};g["openfl.display._internal.Context3DTextField"]=ai;ai.__name__="openfl.display._internal.Context3DTextField";ai.render=function(a,
b){var c=b.__softwareRenderer;b=a.__textEngine;var d=!(b.background||b.border),e=d?b.textBounds:b.bounds,f=a.__graphics,h=0;if(a.__dirty){a.__updateLayout();null==f.__bounds&&(f.__bounds=new ha);if(0==a.get_text().length){h=b.bounds.width-4;var l=a.get_defaultTextFormat().align;h=3==l?0:4==l?h:h/2;switch(l){case 0:h+=a.get_defaultTextFormat().leftMargin/2;h-=a.get_defaultTextFormat().rightMargin/2;h+=a.get_defaultTextFormat().indent/2;h+=a.get_defaultTextFormat().blockIndent/2;break;case 2:h+=a.get_defaultTextFormat().leftMargin;
h+=a.get_defaultTextFormat().indent;h+=a.get_defaultTextFormat().blockIndent;break;case 3:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent;h+=a.get_defaultTextFormat().blockIndent;break;case 4:h-=a.get_defaultTextFormat().rightMargin}d&&(e.y=b.bounds.y,e.x=h)}f.__bounds.copyFrom(e)}f.__update(c.__worldTransform);if(a.__dirty||f.__softwareDirty){var m=f.__width,k=f.__height;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=f.__context;l=f.__renderTransform;if(c.__isDOM){var g=c.pixelRatio;f.__canvas.width=m*g|0;f.__canvas.height=k*g|0;f.__canvas.style.width=m+
"px";f.__canvas.style.height=k+"px";m=Aa.__pool.get();m.copyFrom(l);m.scale(g,g);c.setTransform(m,R.context);Aa.__pool.release(m)}else f.__canvas.width=m,f.__canvas.height=k,R.context.setTransform(l.a,l.b,l.c,l.d,l.tx,l.ty);null==R.clearRect&&(R.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);R.clearRect&&R.context.clearRect(0,0,f.__canvas.width,f.__canvas.height);if(null!=b.text&&""!=b.text||b.__hasFocus){d=b.text;f.__context.imageSmoothingEnabled=!c.__allowSmoothing||
0==b.antiAliasType&&400==b.sharpness?!1:!0;if(b.border||b.background){R.context.rect(.5,.5,e.width-1,e.height-1);if(b.background){var n=ia.hex(b.backgroundColor&16777215,6);R.context.fillStyle="#"+n;R.context.fill()}b.border&&(R.context.lineWidth=1,n=ia.hex(b.borderColor&16777215,6),R.context.strokeStyle="#"+n,R.context.stroke())}R.context.textBaseline="alphabetic";R.context.textAlign="start";c=-a.get_scrollH();var q=h=0;for(n=a.get_scrollV()-1;q<n;){var p=q++;h-=b.lineHeights.get(p)}for(l=b.layoutGroups.iterator();l.hasNext();)if(g=
l.next(),!(g.lineIndex<a.get_scrollV()-1)){if(g.lineIndex>b.get_bottomScrollV()-1)break;m="#"+ia.hex(g.format.color&16777215,6);R.context.font=nb.getFont(g.format);R.context.fillStyle=m;R.context.fillText(d.substring(g.startIndex,g.endIndex),g.offsetX+c-e.x,g.offsetY+g.ascent+h-e.y);if(-1<a.__caretIndex&&b.selectable)if(a.__selectionIndex==a.__caretIndex){if(a.__showCursor&&g.startIndex<=a.__caretIndex&&g.endIndex>=a.__caretIndex){q=k=0;for(n=a.__caretIndex-g.startIndex;q<n;){p=q++;if(g.positions.length<=
p)break;k+=g.positions[p]}q=0;n=a.get_scrollV();for(p=g.lineIndex+1;n<p;){var r=n++;q+=b.lineHeights.get(r-1)}R.context.beginPath();n=ia.hex(g.format.color&16777215,6);R.context.strokeStyle="#"+n;R.context.moveTo(g.offsetX+k-a.get_scrollH()-e.x,q+2-e.y);R.context.lineWidth=1;R.context.lineTo(g.offsetX+k-a.get_scrollH()-e.x,q+nb.getFormatHeight(a.get_defaultTextFormat())-1-e.y);R.context.stroke();R.context.closePath()}}else if(g.startIndex<=a.__caretIndex&&g.endIndex>=a.__caretIndex||g.startIndex<=
a.__selectionIndex&&g.endIndex>=a.__selectionIndex||g.startIndex>a.__caretIndex&&g.endIndex<a.__selectionIndex||g.startIndex>a.__selectionIndex&&g.endIndex<a.__caretIndex)k=Math.min(a.__selectionIndex,a.__caretIndex)|0,q=Math.max(a.__selectionIndex,a.__caretIndex)|0,g.startIndex>k&&(k=g.startIndex),g.endIndex<q&&(q=g.endIndex),p=a.getCharBoundaries(k),q>=g.endIndex?(n=a.getCharBoundaries(g.endIndex-1),null!=n&&(n.x+=n.width+2)):n=a.getCharBoundaries(q),null!=p&&null!=n&&(R.context.fillStyle="#000000",
R.context.fillRect(p.x+c-e.x,p.y+h,n.x-p.x,g.height),R.context.fillStyle="#FFFFFF",R.context.fillText(d.substring(k,q),c+p.x-e.x,g.offsetY+g.ascent+h));g.format.underline&&(R.context.beginPath(),R.context.strokeStyle=m,R.context.lineWidth=1,m=g.offsetX+c-e.x,k=Math.floor(g.offsetY+h+g.ascent-e.y)+.5,R.context.moveTo(m,k),R.context.lineTo(m+g.width,k),R.context.stroke(),R.context.closePath())}}else{if(b.border||b.background)b.border?R.context.rect(.5,.5,e.width-1,e.height-1):R.context.rect(0,0,e.width,
e.height),b.background&&(n=ia.hex(b.backgroundColor&16777215,6),R.context.fillStyle="#"+n,R.context.fill()),b.border&&(R.context.lineWidth=1,R.context.lineCap="square",n=ia.hex(b.borderColor&16777215,6),R.context.strokeStyle="#"+n,R.context.stroke());if(-1<a.__caretIndex&&b.selectable&&a.__showCursor){c=-a.get_scrollH()+(d?0:h);q=h=0;for(n=a.get_scrollV()-1;q<n;)p=q++,h+=b.lineHeights.get(p);R.context.beginPath();n=ia.hex(a.get_defaultTextFormat().color&16777215,6);R.context.strokeStyle="#"+n;R.context.moveTo(c+
2.5,h+2.5);R.context.lineWidth=1;R.context.lineTo(c+2.5,h+nb.getFormatHeight(a.get_defaultTextFormat())-1);R.context.stroke();R.context.closePath()}}f.__bitmap=xb.fromCanvas(a.__graphics.__canvas);f.__visible=!0;a.__dirty=!1;f.__softwareDirty=!1;f.set___dirty(!1)}}a.__graphics.__hardwareDirty=!1};ai.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(ai.render(a,b),!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=
a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var c=b.__context3D,d=ha.__pool.get();d.setTo(0,0,a.get_width(),a.get_height());b.__pushMaskRect(d,a.__renderTransform);var e=a.opaqueBackground;c.clear((e>>>16&255)/255,(e>>>8&255)/255,(e&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);ha.__pool.release(d)}null!=a.__graphics&&ug.render(a,b)}}else Jf.render(a.__cacheBitmap,b);b.__renderEvent(a)};ai.renderDrawableMask=
function(a,b){ai.renderMask(a,b);$h.renderDrawableMask(a,b)};ai.renderMask=function(a,b){var c=b.__softwareRenderer;b=a.__textEngine;var d=!(b.background||b.border),e=d?b.textBounds:b.bounds,f=a.__graphics,h=0;if(a.__dirty){a.__updateLayout();null==f.__bounds&&(f.__bounds=new ha);if(0==a.get_text().length){h=b.bounds.width-4;var l=a.get_defaultTextFormat().align;h=3==l?0:4==l?h:h/2;switch(l){case 0:h+=a.get_defaultTextFormat().leftMargin/2;h-=a.get_defaultTextFormat().rightMargin/2;h+=a.get_defaultTextFormat().indent/
2;h+=a.get_defaultTextFormat().blockIndent/2;break;case 2:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent;h+=a.get_defaultTextFormat().blockIndent;break;case 3:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent;h+=a.get_defaultTextFormat().blockIndent;break;case 4:h-=a.get_defaultTextFormat().rightMargin}d&&(e.y=b.bounds.y,e.x=h)}f.__bounds.copyFrom(e)}f.__update(c.__worldTransform);if(a.__dirty||f.__softwareDirty){var m=f.__width,k=f.__height;
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=f.__context;l=f.__renderTransform;if(c.__isDOM){var g=
c.pixelRatio;f.__canvas.width=m*g|0;f.__canvas.height=k*g|0;f.__canvas.style.width=m+"px";f.__canvas.style.height=k+"px";m=Aa.__pool.get();m.copyFrom(l);m.scale(g,g);c.setTransform(m,R.context);Aa.__pool.release(m)}else f.__canvas.width=m,f.__canvas.height=k,R.context.setTransform(l.a,l.b,l.c,l.d,l.tx,l.ty);null==R.clearRect&&(R.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);R.clearRect&&R.context.clearRect(0,0,f.__canvas.width,f.__canvas.height);if(null!=b.text&&
""!=b.text||b.__hasFocus){d=b.text;f.__context.imageSmoothingEnabled=!c.__allowSmoothing||0==b.antiAliasType&&400==b.sharpness?!1:!0;if(b.border||b.background){R.context.rect(.5,.5,e.width-1,e.height-1);if(b.background){var n=ia.hex(b.backgroundColor&16777215,6);R.context.fillStyle="#"+n;R.context.fill()}b.border&&(R.context.lineWidth=1,n=ia.hex(b.borderColor&16777215,6),R.context.strokeStyle="#"+n,R.context.stroke())}R.context.textBaseline="alphabetic";R.context.textAlign="start";c=-a.get_scrollH();
var q=h=0;for(n=a.get_scrollV()-1;q<n;){var p=q++;h-=b.lineHeights.get(p)}for(l=b.layoutGroups.iterator();l.hasNext();)if(g=l.next(),!(g.lineIndex<a.get_scrollV()-1)){if(g.lineIndex>b.get_bottomScrollV()-1)break;m="#"+ia.hex(g.format.color&16777215,6);R.context.font=nb.getFont(g.format);R.context.fillStyle=m;R.context.fillText(d.substring(g.startIndex,g.endIndex),g.offsetX+c-e.x,g.offsetY+g.ascent+h-e.y);if(-1<a.__caretIndex&&b.selectable)if(a.__selectionIndex==a.__caretIndex){if(a.__showCursor&&
g.startIndex<=a.__caretIndex&&g.endIndex>=a.__caretIndex){q=k=0;for(n=a.__caretIndex-g.startIndex;q<n;){p=q++;if(g.positions.length<=p)break;k+=g.positions[p]}q=0;n=a.get_scrollV();for(p=g.lineIndex+1;n<p;){var r=n++;q+=b.lineHeights.get(r-1)}R.context.beginPath();n=ia.hex(g.format.color&16777215,6);R.context.strokeStyle="#"+n;R.context.moveTo(g.offsetX+k-a.get_scrollH()-e.x,q+2-e.y);R.context.lineWidth=1;R.context.lineTo(g.offsetX+k-a.get_scrollH()-e.x,q+nb.getFormatHeight(a.get_defaultTextFormat())-
1-e.y);R.context.stroke();R.context.closePath()}}else if(g.startIndex<=a.__caretIndex&&g.endIndex>=a.__caretIndex||g.startIndex<=a.__selectionIndex&&g.endIndex>=a.__selectionIndex||g.startIndex>a.__caretIndex&&g.endIndex<a.__selectionIndex||g.startIndex>a.__selectionIndex&&g.endIndex<a.__caretIndex)k=Math.min(a.__selectionIndex,a.__caretIndex)|0,q=Math.max(a.__selectionIndex,a.__caretIndex)|0,g.startIndex>k&&(k=g.startIndex),g.endIndex<q&&(q=g.endIndex),p=a.getCharBoundaries(k),q>=g.endIndex?(n=a.getCharBoundaries(g.endIndex-
1),null!=n&&(n.x+=n.width+2)):n=a.getCharBoundaries(q),null!=p&&null!=n&&(R.context.fillStyle="#000000",R.context.fillRect(p.x+c-e.x,p.y+h,n.x-p.x,g.height),R.context.fillStyle="#FFFFFF",R.context.fillText(d.substring(k,q),c+p.x-e.x,g.offsetY+g.ascent+h));g.format.underline&&(R.context.beginPath(),R.context.strokeStyle=m,R.context.lineWidth=1,m=g.offsetX+c-e.x,k=Math.floor(g.offsetY+h+g.ascent-e.y)+.5,R.context.moveTo(m,k),R.context.lineTo(m+g.width,k),R.context.stroke(),R.context.closePath())}}else{if(b.border||
b.background)b.border?R.context.rect(.5,.5,e.width-1,e.height-1):R.context.rect(0,0,e.width,e.height),b.background&&(n=ia.hex(b.backgroundColor&16777215,6),R.context.fillStyle="#"+n,R.context.fill()),b.border&&(R.context.lineWidth=1,R.context.lineCap="square",n=ia.hex(b.borderColor&16777215,6),R.context.strokeStyle="#"+n,R.context.stroke());if(-1<a.__caretIndex&&b.selectable&&a.__showCursor){c=-a.get_scrollH()+(d?0:h);q=h=0;for(n=a.get_scrollV()-1;q<n;)p=q++,h+=b.lineHeights.get(p);R.context.beginPath();
n=ia.hex(a.get_defaultTextFormat().color&16777215,6);R.context.strokeStyle="#"+n;R.context.moveTo(c+2.5,h+2.5);R.context.lineWidth=1;R.context.lineTo(c+2.5,h+nb.getFormatHeight(a.get_defaultTextFormat())-1);R.context.stroke();R.context.closePath()}}f.__bitmap=xb.fromCanvas(a.__graphics.__canvas);f.__visible=!0;a.__dirty=!1;f.__softwareDirty=!1;f.set___dirty(!1)}}a.__graphics.__hardwareDirty=!1};var Z=function(){};g["openfl.display._internal.Context3DTilemap"]=Z;Z.__name__="openfl.display._internal.Context3DTilemap";
Z.buildBuffer=function(a,b){if(!a.__renderable||0==a.__group.__tiles.length||0>=a.__worldAlpha)a.__group.__dirty=!1;else{Z.numTiles=0;Z.vertexBufferData=null!=a.__buffer?a.__buffer.vertexBufferData:null;Z.vertexDataPosition=0;var c=ha.__pool.get(),d=Aa.__pool.get(),e=Aa.__pool.get();Z.dataPerVertex=4;a.tileAlphaEnabled&&Z.dataPerVertex++;a.tileColorTransformEnabled&&(Z.dataPerVertex+=8);Z.buildBufferTileContainer(a,a.__group,b,e,a.__tileset,a.tileAlphaEnabled,a.__worldAlpha,a.tileColorTransformEnabled,
a.__worldColorTransform,null,c,d);a.__buffer.flushVertexBufferData();ha.__pool.release(c);Aa.__pool.release(d);Aa.__pool.release(e)}};Z.buildBufferTileContainer=function(a,b,c,d,e,f,h,l,m,g,k,n,q){null==q&&(q=!0);var t=Aa.__pool.get(),p=c.__roundPixels,r=b.__tiles,v=null;v=function(a){a=a.__tiles;for(var b=0,c=0;c<a.length;){var d=a[c];++c;0<d.__length?b+=v(d):++b}return b};q&&Z.resizeBuffer(a,Z.numTiles+v(b));q=null;for(var u,x,w,z,U,X,B,P,F,D,Ha=f?5:4,G=0;G<r.length;){var O=r[G];++G;t.setTo(1,0,
0,1,-O.get_originX(),-O.get_originY());t.concat(O.get_matrix());t.concat(d);p&&(t.tx=Math.round(t.tx),t.ty=Math.round(t.ty));var C=null!=O.get_tileset()?O.get_tileset():e;var H=O.get_alpha()*h;var y=O.get_visible();O.__dirty=!1;if(y&&!(0>=H))if(l&&(null!=O.get_colorTransform()?null==m?q=O.get_colorTransform():(null==Z.cacheColorTransform&&(Z.cacheColorTransform=new tc),q=Z.cacheColorTransform,q.redMultiplier=m.redMultiplier*O.get_colorTransform().redMultiplier,q.greenMultiplier=m.greenMultiplier*
O.get_colorTransform().greenMultiplier,q.blueMultiplier=m.blueMultiplier*O.get_colorTransform().blueMultiplier,q.alphaMultiplier=m.alphaMultiplier*O.get_colorTransform().alphaMultiplier,q.redOffset=m.redOffset+O.get_colorTransform().redOffset,q.greenOffset=m.greenOffset+O.get_colorTransform().greenOffset,q.blueOffset=m.blueOffset+O.get_colorTransform().blueOffset,q.alphaOffset=m.alphaOffset+O.get_colorTransform().alphaOffset):q=m),f||(H=1),0<O.__length)Z.buildBufferTileContainer(a,O,c,t,C,f,H,l,q,
g,k,n,!1);else if(null!=C&&(y=O.get_id(),u=C.__bitmapData,null!=u)){if(-1==y){x=O.__rect;if(null==x||0>=x.width||0>=x.height)continue;O=x.x/u.width;C=x.y/u.height;y=x.get_right()/u.width;z=x.get_bottom()/u.height}else{u=C.__data[y];if(null==u)continue;k.setTo(u.x,u.y,u.width,u.height);x=k;O=u.__uvX;C=u.__uvY;y=u.__uvWidth;z=u.__uvHeight}u=x.width;w=x.height;x=0*t.a+0*t.c+t.tx;U=0*t.b+0*t.d+t.ty;X=u*t.a+0*t.c+t.tx;B=u*t.b+0*t.d+t.ty;P=0*t.a+w*t.c+t.tx;F=0*t.b+w*t.d+t.ty;D=u*t.a+w*t.c+t.tx;w=u*t.b+
w*t.d+t.ty;u=Z.vertexDataPosition;Z.vertexBufferData[u]=x;Z.vertexBufferData[u+1]=U;Z.vertexBufferData[u+2]=O;Z.vertexBufferData[u+3]=C;Z.vertexBufferData[u+Z.dataPerVertex]=X;Z.vertexBufferData[u+Z.dataPerVertex+1]=B;Z.vertexBufferData[u+Z.dataPerVertex+2]=y;Z.vertexBufferData[u+Z.dataPerVertex+3]=C;Z.vertexBufferData[u+2*Z.dataPerVertex]=P;Z.vertexBufferData[u+2*Z.dataPerVertex+1]=F;Z.vertexBufferData[u+2*Z.dataPerVertex+2]=O;Z.vertexBufferData[u+2*Z.dataPerVertex+3]=z;Z.vertexBufferData[u+3*Z.dataPerVertex]=
D;Z.vertexBufferData[u+3*Z.dataPerVertex+1]=w;Z.vertexBufferData[u+3*Z.dataPerVertex+2]=y;Z.vertexBufferData[u+3*Z.dataPerVertex+3]=z;f&&(Z.vertexBufferData[u+0*Z.dataPerVertex+4]=H,Z.vertexBufferData[u+Z.dataPerVertex+4]=H,Z.vertexBufferData[u+2*Z.dataPerVertex+4]=H,Z.vertexBufferData[u+3*Z.dataPerVertex+4]=H);if(l)if(null!=q)for(H=0;4>H;)O=H++,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha]=q.redMultiplier,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+1]=q.greenMultiplier,Z.vertexBufferData[u+Z.dataPerVertex*
O+Ha+2]=q.blueMultiplier,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+3]=q.alphaMultiplier,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+4]=q.redOffset,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+5]=q.greenOffset,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+6]=q.blueOffset,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+7]=q.alphaOffset;else for(H=0;4>H;)O=H++,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha]=1,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+1]=1,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+2]=1,Z.vertexBufferData[u+
Z.dataPerVertex*O+Ha+3]=1,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+4]=0,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+5]=0,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+6]=0,Z.vertexBufferData[u+Z.dataPerVertex*O+Ha+7]=0;Z.vertexDataPosition+=4*Z.dataPerVertex}}b.__dirty=!1;Aa.__pool.release(t)};Z.flush=function(a,b,c){null==Z.currentShader&&(Z.currentShader=b.__defaultDisplayShader);if(Z.bufferPosition>Z.lastFlushedPosition&&null!=Z.currentBitmapData&&null!=Z.currentShader){var d=b.__initDisplayShader(Z.currentShader);
b.setShader(d);b.applyBitmapData(Z.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 e=Z.lastFlushedPosition*Z.dataPerVertex*4,f;Z.lastFlushedPosition<Z.bufferPosition;){f=Math.min(Z.bufferPosition-
Z.lastFlushedPosition,Z.context.__quadIndexBufferElements)|0;if(0>=f)break;null!=d.__position&&Z.context.setVertexBufferAt(d.__position.index,c,e,2);null!=d.__textureCoord&&Z.context.setVertexBufferAt(d.__textureCoord.index,c,e+2,2);a.tileAlphaEnabled&&null!=d.__alpha&&Z.context.setVertexBufferAt(d.__alpha.index,c,e+4,1);if(a.tileColorTransformEnabled){var h=a.tileAlphaEnabled?5:4;null!=d.__colorMultiplier&&Z.context.setVertexBufferAt(d.__colorMultiplier.index,c,e+h,4);null!=d.__colorOffset&&Z.context.setVertexBufferAt(d.__colorOffset.index,
c,e+h+4,4)}Z.context.drawTriangles(Z.context.__quadIndexBuffer,0,2*f);Z.lastFlushedPosition+=f}b.__clearShader()}Z.lastUsedBitmapData=Z.currentBitmapData;Z.lastUsedShader=Z.currentShader};Z.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&&(Z.context=b.__context3D,Z.buildBuffer(a,b),0!=Z.numTiles)){Z.bufferPosition=0;Z.lastFlushedPosition=0;Z.lastUsedBitmapData=null;Z.lastUsedShader=null;Z.currentBitmapData=null;Z.currentShader=null;Z.currentBlendMode=a.__worldBlendMode;a.tileBlendModeEnabled||
b.__setBlendMode(Z.currentBlendMode);b.__pushMaskObject(a);var c=ha.__pool.get();c.setTo(0,0,a.__width,a.__height);b.__pushMaskRect(c,a.__renderTransform);Z.renderTileContainer(a,b,a.__group,a.__worldShader,a.__tileset,a.__worldAlpha,a.tileBlendModeEnabled,Z.currentBlendMode,null);Z.flush(a,b,Z.currentBlendMode);b.__popMaskRect();b.__popMaskObject(a);ha.__pool.release(c)}};Z.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<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var c=b.__context3D,d=ha.__pool.get();d.setTo(0,0,a.get_width(),a.get_height());b.__pushMaskRect(d,a.__renderTransform);var e=a.opaqueBackground;c.clear((e>>>16&255)/255,(e>>>8&255)/255,(e&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);ha.__pool.release(d)}null!=a.__graphics&&ug.render(a,
b)}Z.render(a,b)}else Jf.render(a.__cacheBitmap,b);b.__renderEvent(a)};Z.renderDrawableMask=function(a,b){if(null!=a.opaqueBackground||null!=a.__graphics)null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&a.get_height(),null!=a.__graphics&&ug.renderMask(a,b);Z.renderMask(a,b)};Z.renderTileContainer=function(a,b,c,d,e,f,h,l,m){c=c.__tiles;for(var g,k,n,q,p=null,r,v=0;v<c.length;)if(g=c[v],++v,k=null!=g.get_tileset()?g.get_tileset():e,n=g.get_alpha()*f,(q=g.get_visible())&&!(0>=n))if(q=
null!=g.get_shader()?g.get_shader():d,h&&(p=null!=g.__blendMode?g.__blendMode:l),0<g.__length)Z.renderTileContainer(a,b,g,q,k,n,h,p,m);else if(null!=k&&(r=g.get_id(),n=k.__bitmapData,null!=n)){if(-1==r){if(g=g.__rect,null==g||0>=g.width||0>=g.height)continue}else if(g=k.__data[r],null==g)continue;(q!=Z.currentShader||n!=Z.currentBitmapData&&null!=Z.currentBitmapData||Z.currentBlendMode!=p)&&Z.flush(a,b,Z.currentBlendMode);Z.currentBitmapData=n;Z.currentShader=q;Z.currentBlendMode=p;Z.bufferPosition++}};
Z.renderMask=function(a,b){};Z.resizeBuffer=function(a,b){Z.numTiles=b;null==a.__buffer?a.__buffer=new bj(Z.context,cj.QUADS,Z.numTiles,Z.dataPerVertex):a.__buffer.resize(Z.numTiles,Z.dataPerVertex);Z.vertexBufferData=a.__buffer.vertexBufferData};var Kf=function(){};g["openfl.display._internal.Context3DVideo"]=Kf;Kf.__name__="openfl.display._internal.Context3DVideo";Kf.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 e=b.__initDisplayShader(a.__worldShader);b.setShader(e);b.applyBitmapData(null,!0,!1);b.applyMatrix(b.__getMatrix(a.__renderTransform,1));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);null!=e.__textureSize&&(Kf.__textureSizeValue[0]=null!=a.__stream?a.__stream.__video.videoWidth:0,Kf.__textureSizeValue[1]=null!=a.__stream?a.__stream.__video.videoHeight:0,e.__textureSize.value=Kf.__textureSizeValue);
b.updateShader();c.setTextureAt(0,a.__getTexture(c));c.__flushGLTextures();d.uniform1i(e.__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!=e.__position&&c.setVertexBufferAt(e.__position.index,d,0,3);null!=e.__textureCoord&&c.setVertexBufferAt(e.__textureCoord.index,
d,3,2);e=a.__getIndexBuffer(c);c.drawTriangles(e);b.__clearShader();b.__popMaskObject(a)}}};Kf.renderDrawable=function(a,b){Kf.render(a,b);b.__renderEvent(a)};Kf.renderDrawableMask=function(a,b){Kf.renderMask(a,b)};Kf.renderMask=function(a,b){if(null!=a.__stream&&null!=a.__stream.__video){var c=b.__context3D,d=b.__maskShader;b.setShader(d);b.applyBitmapData(Uj.opaqueBitmapData,!0);b.applyMatrix(b.__getMatrix(a.__renderTransform,1));b.updateShader();var e=a.__getVertexBuffer(c);null!=d.__position&&
c.setVertexBufferAt(d.__position.index,e,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,e,3,2);a=a.__getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()}};var xc=function(){};g["openfl.display._internal.DOMBitmap"]=xc;xc.__name__="openfl.display._internal.DOMBitmap";xc.clear=function(a,b){null!=a.__cacheBitmap&&xc.clear(a.__cacheBitmap,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)};xc.render=function(a,b){null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=a.__bitmapData&&a.__bitmapData.__isValid&&a.__bitmapData.readable?(b.__pushMaskObject(a),null!=a.__bitmapData.image.buffer.__srcImage?xc.renderImage(a,b):xc.renderCanvas(a,b),b.__popMaskObject(a)):xc.clear(a,b)};xc.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&&(ua.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)};xc.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender)null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=a.__bitmapData&&a.__bitmapData.__isValid&&a.__bitmapData.readable?(b.__pushMaskObject(a),null!=a.__bitmapData.image.buffer.__srcImage?xc.renderImage(a,b):xc.renderCanvas(a,b),b.__popMaskObject(a)):xc.clear(a,b);else{b.__renderDrawableClear(a);a.__cacheBitmap.stage=a.stage;var 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?xc.renderImage(c,b):xc.renderCanvas(c,b),b.__popMaskObject(c)):xc.clear(c,b)}b.__renderEvent(a)};xc.renderDrawableClear=function(a,b){xc.clear(a,b)};xc.renderImage=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null);null==a.__image&&(a.__image=window.document.createElement("img"),a.__image.crossOrigin="Anonymous",
a.__image.src=a.__bitmapData.image.buffer.__srcImage.src,a.__image.alt=J.field(a,"alt"),b.__initializeElement(a,a.__image));b.__updateClip(a);b.__applyStyle(a,!0,!0,!0)};var qg=function(){};g["openfl.display._internal.DOMDisplayObject"]=qg;qg.__name__="openfl.display._internal.DOMDisplayObject";qg.clear=function(a,b){null!=a.__cacheBitmap&&xc.clear(a.__cacheBitmap,b);vg.clear(a,b)};qg.render=function(a,b){null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&a.get_height();var c=a.__graphics;
if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=c){D.render(c,b.__canvasRenderer);if(c.__softwareDirty||a.__worldAlphaChanged||a.__canvas!=c.__canvas)null!=c.__canvas?a.__canvas!=c.__canvas&&(null!=a.__canvas&&b.element.removeChild(a.__canvas),a.__canvas=c.__canvas,a.__context=c.__context,b.__initializeElement(a,a.__canvas)):vg.clear(a,b);if(null!=a.__canvas){b.__pushMaskObject(a);var d=a.__renderTransform;a.__renderTransform=c.__worldTransform;c.__transformDirty&&(c.__transformDirty=!1,
a.__renderTransformChanged=!0);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0);a.__renderTransform=d;b.__popMaskObject(a)}}else vg.clear(a,b)};qg.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&a.get_height();var c=a.__graphics;if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=c){D.render(c,b.__canvasRenderer);if(c.__softwareDirty||a.__worldAlphaChanged||a.__canvas!=
c.__canvas)null!=c.__canvas?a.__canvas!=c.__canvas&&(null!=a.__canvas&&b.element.removeChild(a.__canvas),a.__canvas=c.__canvas,a.__context=c.__context,b.__initializeElement(a,a.__canvas)):vg.clear(a,b);if(null!=a.__canvas){b.__pushMaskObject(a);var d=a.__renderTransform;a.__renderTransform=c.__worldTransform;c.__transformDirty&&(c.__transformDirty=!1,a.__renderTransformChanged=!0);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0);a.__renderTransform=d;b.__popMaskObject(a)}}else vg.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?xc.renderImage(c,b):xc.renderCanvas(c,b),b.__popMaskObject(c)):xc.clear(c,b);b.__renderEvent(a)};qg.renderDrawableClear=function(a,b){qg.clear(a,b)};var gq=function(){};g["openfl.display._internal.DOMDisplayObjectContainer"]=gq;gq.__name__="openfl.display._internal.DOMDisplayObjectContainer";
gq.renderDrawable=function(a,b){for(var c=a.__removedChildren.iterator();c.hasNext();){var d=c.next();null==d.stage&&b.__renderDrawable(d)}for(c=a.__removedChildren.iterator();c.hasNext();)d=c.next(),null==d.stage&&d.__cleanup();a.__removedChildren.set_length(0);qg.renderDrawable(a,b);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){b.__pushMaskObject(a);if(null!=b.__stage){c=0;for(d=a.__children;c<d.length;){var e=d[c];++c;b.__renderDrawable(e);e.__renderDirty=!1}a.__renderDirty=!1}else for(c=
0,d=a.__children;c<d.length;)e=d[c],++c,b.__renderDrawable(e);b.__popMaskObject(a)}};gq.renderDrawableClear=function(a,b){for(var c=a.__removedChildren.iterator();c.hasNext();){var d=c.next();null==d.stage&&b.__renderDrawableClear(d)}for(c=a.__removedChildren.iterator();c.hasNext();)d=c.next(),null==d.stage&&d.__cleanup();a.__removedChildren.set_length(0);c=0;for(a=a.__children;c<a.length;)d=a[c],++c,b.__renderDrawableClear(d)};var vg=function(){};g["openfl.display._internal.DOMShape"]=vg;vg.__name__=
"openfl.display._internal.DOMShape";vg.clear=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};vg.render=function(a,b){var c=a.__graphics;if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=c){D.render(c,b.__canvasRenderer);if(c.__softwareDirty||a.__worldAlphaChanged||a.__canvas!=c.__canvas)null!=c.__canvas?a.__canvas!=c.__canvas&&(null!=a.__canvas&&b.element.removeChild(a.__canvas),a.__canvas=c.__canvas,a.__context=c.__context,b.__initializeElement(a,
a.__canvas)):vg.clear(a,b);if(null!=a.__canvas){b.__pushMaskObject(a);var d=a.__renderTransform;a.__renderTransform=c.__worldTransform;c.__transformDirty&&(c.__transformDirty=!1,a.__renderTransformChanged=!0);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0);a.__renderTransform=d;b.__popMaskObject(a)}}else vg.clear(a,b)};var hq=function(){};g["openfl.display._internal.DOMSimpleButton"]=hq;hq.__name__="openfl.display._internal.DOMSimpleButton";hq.renderDrawable=function(a,b){b.__pushMaskObject(a);for(var c=
a.__previousStates.iterator();c.hasNext();){var d=c.next();b.__renderDrawable(d)}a.__previousStates.set_length(0);null!=a.__currentState&&(a.__currentState.stage!=a.stage&&a.__currentState.__setStageReference(a.stage),b.__renderDrawable(a.__currentState));b.__popMaskObject(a);b.__renderEvent(a)};hq.renderDrawableClear=function(a,b){qg.renderDrawableClear(a,b)};var Ob=function(){};g["openfl.display._internal.DOMTextField"]=Ob;Ob.__name__="openfl.display._internal.DOMTextField";Ob.clear=function(a,
b){null!=a.__cacheBitmap&&xc.clear(a.__cacheBitmap,b);null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null,a.__style=null)};Ob.measureText=function(a){var b=a.__textEngine,c=a.__div;null==c&&(c=window.document.createElement("div"),c.innerHTML=b.text.replace(/\n/g,"<br>"),c.style.setProperty("font",nb.getFont(a.__textFormat),null),c.style.setProperty("pointer-events","none",null),c.style.position="absolute",c.style.top="110%",window.document.body.appendChild(c));b.__measuredWidth=c.clientWidth;
null==a.__div&&(c.style.width=B.string(b.width-4)+"px");b.__measuredHeight=c.clientHeight;null==a.__div&&window.document.body.removeChild(c)};Ob.render=function(a,b){var c=a.__textEngine;if(null!=a.stage&&a.__worldVisible&&a.__renderable){if(a.__dirty||a.__renderTransformChanged||null==a.__div)if(""!=c.text||c.background||c.border||1==c.type){null==a.__div&&(a.__div=window.document.createElement("div"),b.__initializeElement(a,a.__div),a.__style.setProperty("outline","1px solid transparent",null),
a.__div.addEventListener("input",function(b){b.preventDefault();a.get_htmlText()!=a.__div.innerHTML&&(a.set_htmlText(a.__div.innerHTML),a.__dirty=!1,a.dispatchEvent(new Ye("textInput",!1,!1,a.get_htmlText())))},!0));c.wordWrap?a.__style.setProperty("word-wrap","break-word",null):a.__style.setProperty("white-space","nowrap",null);a.__style.setProperty("overflow","hidden",null);c.selectable?(a.__style.setProperty("cursor","text",null),a.__style.setProperty("-webkit-user-select","text",null),a.__style.setProperty("-moz-user-select",
"text",null),a.__style.setProperty("-ms-user-select","text",null),a.__style.setProperty("-o-user-select","text",null)):a.__style.setProperty("cursor","inherit",null);a.__div.contentEditable=1==c.type;var d=a.__style;c.background?d.setProperty("background-color","#"+ia.hex(c.backgroundColor&16777215,6),null):d.removeProperty("background-color");var e=c.width,f=c.height,h=1,l=a.__textFormat.size,m=l,g=a.__renderTransform;if(1!=g.a||1!=g.d)g.a==g.d?(h=g.a,g.a=g.d=1):g.a>g.d?(h=g.a,g.d/=g.a,g.a=1):(h=
g.d,g.a/=g.d,g.d=1),m*=h,e=Math.ceil(e*h),f=Math.ceil(f*h);a.__textFormat.size=m;g=c.text;var k=0;if(a.__isHTML){for(var n=g;Ob.__regexFont.match(n);){n=Ob.__regexFont.matched(0);var q="";Ob.__regexFace.match(n)&&(q+="font-family:'"+Ob.__getAttributeMatch(Ob.__regexFace)+"';");Ob.__regexColor.match(n)&&(q+="color:#"+Ob.__getAttributeMatch(Ob.__regexColor)+";");if(Ob.__regexSize.match(n)){k=Ob.__getAttributeMatch(Ob.__regexSize);var p=G.cca(k,0);k=parseFloat(k)*h;q+="font-size:"+(43==p||45==p?m+k:
k)+"px;"}g=ia.replace(g,n,"<span style='"+q+"'>");n=Ob.__regexFont.matchedRight()}g=g.replace(Ob.__regexCloseFont.r,"</span>")}else g=ia.htmlEscape(g);g=ia.replace(g,"<p ","<p style='margin-top:0; margin-bottom:0;' ");h=a.__textFormat.leading;a.__textFormat.leading+=k|0;m=/\r\n/g;g=g.replace(m,"<br>");a.__div.innerHTML=g;m=/\n/g;g=a.__div.innerHTML.replace(m,"<br>");a.__div.innerHTML=g;m=/\r/g;g=a.__div.innerHTML.replace(m,"<br>");a.__div.innerHTML=g;d.setProperty("font",nb.getFont(a.__textFormat),
null);a.__textFormat.size=l;a.__textFormat.leading=h;d.setProperty("top","1px",null);c.border?(d.setProperty("border","solid 1px #"+ia.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("color","#"+ia.hex(a.__textFormat.color&16777215,6),null);d.setProperty("width",e+"px",null);d.setProperty("height",f+"px",null);switch(a.__textFormat.align){case 0:d.setProperty("text-align",
"center",null);break;case 4:d.setProperty("text-align","right",null);break;default:d.setProperty("text-align","left",null)}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,!1),b.__roundPixels=c)}else Ob.clear(a,b)};Ob.renderDrawable=function(a,b){a.__domRender=!0;b.__updateCacheBitmap(a,a.__forceCachedBitmapUpdate);a.__forceCachedBitmapUpdate=!1;a.__domRender=!1;if(null==a.__cacheBitmap||
a.__isCacheBitmapRender){a.__renderedOnCanvasWhileOnDOM&&(a.__renderedOnCanvasWhileOnDOM=!1,a.__isHTML&&null!=a.__rawHtmlText&&(a.__updateText(a.__rawHtmlText),a.__dirty=!0,a.__layoutDirty=!0,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty())));var c=a.__textEngine;if(null!=a.stage&&a.__worldVisible&&a.__renderable){if(a.__dirty||a.__renderTransformChanged||null==a.__div)if(""!=c.text||c.background||c.border||1==c.type){null==a.__div&&(a.__div=window.document.createElement("div"),b.__initializeElement(a,
a.__div),a.__style.setProperty("outline","1px solid transparent",null),a.__div.addEventListener("input",function(b){b.preventDefault();a.get_htmlText()!=a.__div.innerHTML&&(a.set_htmlText(a.__div.innerHTML),a.__dirty=!1,a.dispatchEvent(new Ye("textInput",!1,!1,a.get_htmlText())))},!0));c.wordWrap?a.__style.setProperty("word-wrap","break-word",null):a.__style.setProperty("white-space","nowrap",null);a.__style.setProperty("overflow","hidden",null);c.selectable?(a.__style.setProperty("cursor","text",
null),a.__style.setProperty("-webkit-user-select","text",null),a.__style.setProperty("-moz-user-select","text",null),a.__style.setProperty("-ms-user-select","text",null),a.__style.setProperty("-o-user-select","text",null)):a.__style.setProperty("cursor","inherit",null);a.__div.contentEditable=1==c.type;var d=a.__style;c.background?d.setProperty("background-color","#"+ia.hex(c.backgroundColor&16777215,6),null):d.removeProperty("background-color");var e=c.width,f=c.height,h=1,l=a.__textFormat.size,
m=l,g=a.__renderTransform;if(1!=g.a||1!=g.d)g.a==g.d?(h=g.a,g.a=g.d=1):g.a>g.d?(h=g.a,g.d/=g.a,g.a=1):(h=g.d,g.a/=g.d,g.d=1),m*=h,e=Math.ceil(e*h),f=Math.ceil(f*h);a.__textFormat.size=m;g=c.text;var k=0;if(a.__isHTML){for(var n=g;Ob.__regexFont.match(n);){n=Ob.__regexFont.matched(0);var q="";Ob.__regexFace.match(n)&&(q+="font-family:'"+Ob.__getAttributeMatch(Ob.__regexFace)+"';");Ob.__regexColor.match(n)&&(q+="color:#"+Ob.__getAttributeMatch(Ob.__regexColor)+";");if(Ob.__regexSize.match(n)){k=Ob.__getAttributeMatch(Ob.__regexSize);
var p=G.cca(k,0);k=parseFloat(k)*h;q+="font-size:"+(43==p||45==p?m+k:k)+"px;"}g=ia.replace(g,n,"<span style='"+q+"'>");n=Ob.__regexFont.matchedRight()}g=g.replace(Ob.__regexCloseFont.r,"</span>")}else g=ia.htmlEscape(g);g=ia.replace(g,"<p ","<p style='margin-top:0; margin-bottom:0;' ");h=a.__textFormat.leading;a.__textFormat.leading+=k|0;m=/\r\n/g;g=g.replace(m,"<br>");a.__div.innerHTML=g;m=/\n/g;g=a.__div.innerHTML.replace(m,"<br>");a.__div.innerHTML=g;m=/\r/g;g=a.__div.innerHTML.replace(m,"<br>");
a.__div.innerHTML=g;d.setProperty("font",nb.getFont(a.__textFormat),null);a.__textFormat.size=l;a.__textFormat.leading=h;d.setProperty("top","1px",null);c.border?(d.setProperty("border","solid 1px #"+ia.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("color","#"+ia.hex(a.__textFormat.color&16777215,6),null);d.setProperty("width",e+"px",
null);d.setProperty("height",f+"px",null);switch(a.__textFormat.align){case 0:d.setProperty("text-align","center",null);break;case 4:d.setProperty("text-align","right",null);break;default:d.setProperty("text-align","left",null)}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,!1),b.__roundPixels=c)}else Ob.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?xc.renderImage(c,b):xc.renderCanvas(c,b),b.__popMaskObject(c)):xc.clear(c,b);b.__renderEvent(a)};Ob.renderDrawableClear=function(a,b){Ob.clear(a,b)};Ob.__getAttributeMatch=function(a){return null!=a.matched(2)?a.matched(2):a.matched(3)};var qh=function(){};g["openfl.display._internal.DOMTilemap"]=
qh;qh.__name__="openfl.display._internal.DOMTilemap";qh.clear=function(a,b){null!=a.__cacheBitmap&&xc.clear(a.__cacheBitmap,b);null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};qh.render=function(a,b){if(null!=a.stage&&a.__worldVisible&&a.__renderable&&0<a.__group.__tiles.length){null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"),b.__initializeElement(a,a.__canvas));a.__canvas.width=a.__width;a.__canvas.height=
a.__height;b.__canvasRenderer.context=a.__context;var c=b.__canvasRenderer;if(a.__renderable&&0!=a.__group.__tiles.length){var d=c.__getAlpha(a.__worldAlpha);if(!(0>=d)){var e=c.context;c.__setBlendMode(a.__worldBlendMode);c.__pushMaskObject(a);var f=ha.__pool.get();f.setTo(0,0,a.__width,a.__height);c.__pushMaskRect(f,a.__renderTransform);c.__allowSmoothing&&a.smoothing||(e.imageSmoothingEnabled=!1);pg.renderTileContainer(a.__group,c,a.__renderTransform,a.__tileset,c.__allowSmoothing&&a.smoothing,
a.tileAlphaEnabled,d,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,f);c.__allowSmoothing&&a.smoothing||(e.imageSmoothingEnabled=!0);c.__popMaskRect();c.__popMaskObject(a);ha.__pool.release(f)}}b.__canvasRenderer.context=null;b.__updateClip(a);b.__applyStyle(a,!0,!1,!0)}else qh.clear(a,b)};qh.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&a.get_height();var c=a.__graphics;
if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=c){D.render(c,b.__canvasRenderer);if(c.__softwareDirty||a.__worldAlphaChanged||a.__canvas!=c.__canvas)null!=c.__canvas?a.__canvas!=c.__canvas&&(null!=a.__canvas&&b.element.removeChild(a.__canvas),a.__canvas=c.__canvas,a.__context=c.__context,b.__initializeElement(a,a.__canvas)):vg.clear(a,b);if(null!=a.__canvas){b.__pushMaskObject(a);var d=a.__renderTransform;a.__renderTransform=c.__worldTransform;c.__transformDirty&&(c.__transformDirty=!1,
a.__renderTransformChanged=!0);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0);a.__renderTransform=d;b.__popMaskObject(a)}}else vg.clear(a,b);if(null!=a.stage&&a.__worldVisible&&a.__renderable&&0<a.__group.__tiles.length){null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"),b.__initializeElement(a,a.__canvas));a.__canvas.width=a.__width;a.__canvas.height=a.__height;b.__canvasRenderer.context=a.__context;c=b.__canvasRenderer;if(a.__renderable&&
0!=a.__group.__tiles.length&&(d=c.__getAlpha(a.__worldAlpha),!(0>=d))){var e=c.context;c.__setBlendMode(a.__worldBlendMode);c.__pushMaskObject(a);var f=ha.__pool.get();f.setTo(0,0,a.__width,a.__height);c.__pushMaskRect(f,a.__renderTransform);c.__allowSmoothing&&a.smoothing||(e.imageSmoothingEnabled=!1);pg.renderTileContainer(a.__group,c,a.__renderTransform,a.__tileset,c.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,d,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,f);c.__allowSmoothing&&a.smoothing||
(e.imageSmoothingEnabled=!0);c.__popMaskRect();c.__popMaskObject(a);ha.__pool.release(f)}b.__canvasRenderer.context=null;b.__updateClip(a);b.__applyStyle(a,!0,!1,!0)}else qh.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?xc.renderImage(c,b):xc.renderCanvas(c,b),b.__popMaskObject(c)):
xc.clear(c,b);b.__renderEvent(a)};qh.renderDrawableClear=function(a,b){qh.clear(a,b)};var mh=function(){};g["openfl.display._internal.DOMVideo"]=mh;mh.__name__="openfl.display._internal.DOMVideo";mh.clear=function(a,b){a.__active&&(b.element.removeChild(a.__stream.__video),a.__active=!1)};mh.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)):mh.clear(a,b)};mh.renderDrawable=function(a,b){mh.render(a,b);b.__renderEvent(a)};mh.renderDrawableClear=function(a,b){qg.renderDrawableClear(a,b)};var rg=function(a){this.buffer=a;this.bPos=this.iPos=this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos=0;this.prev=S.UNKNOWN};g["openfl.display._internal.DrawCommandReader"]=rg;rg.__name__="openfl.display._internal.DrawCommandReader";rg.prototype=
{buffer:null,bPos:null,iiPos:null,iPos:null,ffPos:null,fPos:null,oPos:null,prev:null,tsPos:null,advance:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=
1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}},bool:function(a){return this.buffer.b[this.bPos+a]},destroy:function(){this.buffer=null;this.reset()},fArr:function(a){return this.buffer.ff[this.ffPos+a]},float:function(a){return this.buffer.f[this.fPos+
a]},iArr:function(a){return this.buffer.ii[this.iiPos+a]},int:function(a){return this.buffer.i[this.iPos+a]},obj:function(a){return this.buffer.o[this.oPos+a]},readBeginBitmapFill:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=
3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.BEGIN_BITMAP_FILL;return this},readBeginFill:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=
2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=
1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.BEGIN_FILL;return this},readBeginGradientFill:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;
break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.BEGIN_GRADIENT_FILL;return this},readBeginShaderFill:function(){switch(this.prev._hx_index){case 0:this.oPos+=
2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=
4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.BEGIN_SHADER_FILL;return this},readCubicCurveTo:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=
4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.CUBIC_CURVE_TO;return this},readCurveTo:function(){switch(this.prev._hx_index){case 0:this.oPos+=
2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=
4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.CURVE_TO;return this},readDrawCircle:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=
4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.DRAW_CIRCLE;return this},readDrawEllipse:function(){switch(this.prev._hx_index){case 0:this.oPos+=
2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=
4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.DRAW_ELLIPSE;return this},readDrawQuads:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=
4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.DRAW_QUADS;return this},readDrawRect:function(){switch(this.prev._hx_index){case 0:this.oPos+=
2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=
4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.DRAW_RECT;return this},readDrawRoundRect:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=
4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.DRAW_ROUND_RECT;return this},readDrawTriangles:function(){switch(this.prev._hx_index){case 0:this.oPos+=
2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=
4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.DRAW_TRIANGLES;return this},readEndFill:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=
4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.END_FILL;return this},readLineBitmapStyle:function(){switch(this.prev._hx_index){case 0:this.oPos+=
2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=
4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.LINE_BITMAP_STYLE;return this},readLineGradientStyle:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;
case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.LINE_GRADIENT_STYLE;return this},readLineStyle:function(){switch(this.prev._hx_index){case 0:this.oPos+=
2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=
4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.LINE_STYLE;return this},readLineTo:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=
4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.LINE_TO;return this},readMoveTo:function(){switch(this.prev._hx_index){case 0:this.oPos+=
2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=
4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.MOVE_TO;return this},readOverrideBlendMode:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=
4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.OVERRIDE_BLEND_MODE;return this},readOverrideMatrix:function(){switch(this.prev._hx_index){case 0:this.oPos+=
2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=
4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.OVERRIDE_MATRIX;return this},readWindingEvenOdd:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=
4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.WINDING_EVEN_ODD;return this},readWindingNonZero:function(){switch(this.prev._hx_index){case 0:this.oPos+=
2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=
4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=S.WINDING_NON_ZERO;return this},reset:function(){this.bPos=this.iPos=this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos=0},skip:function(a){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=
6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=a},__class__:rg};
var S=P["openfl.display._internal.DrawCommandType"]={__ename__:"openfl.display._internal.DrawCommandType",__constructs__:null,BEGIN_BITMAP_FILL:{_hx_name:"BEGIN_BITMAP_FILL",_hx_index:0,__enum__:"openfl.display._internal.DrawCommandType",toString:v},BEGIN_FILL:{_hx_name:"BEGIN_FILL",_hx_index:1,__enum__:"openfl.display._internal.DrawCommandType",toString:v},BEGIN_GRADIENT_FILL:{_hx_name:"BEGIN_GRADIENT_FILL",_hx_index:2,__enum__:"openfl.display._internal.DrawCommandType",toString:v},BEGIN_SHADER_FILL:{_hx_name:"BEGIN_SHADER_FILL",
_hx_index:3,__enum__:"openfl.display._internal.DrawCommandType",toString:v},CUBIC_CURVE_TO:{_hx_name:"CUBIC_CURVE_TO",_hx_index:4,__enum__:"openfl.display._internal.DrawCommandType",toString:v},CURVE_TO:{_hx_name:"CURVE_TO",_hx_index:5,__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_CIRCLE:{_hx_name:"DRAW_CIRCLE",_hx_index:6,__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_ELLIPSE:{_hx_name:"DRAW_ELLIPSE",_hx_index:7,__enum__:"openfl.display._internal.DrawCommandType",
toString:v},DRAW_QUADS:{_hx_name:"DRAW_QUADS",_hx_index:8,__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_RECT:{_hx_name:"DRAW_RECT",_hx_index:9,__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_ROUND_RECT:{_hx_name:"DRAW_ROUND_RECT",_hx_index:10,__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_TILES:{_hx_name:"DRAW_TILES",_hx_index:11,__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_TRIANGLES:{_hx_name:"DRAW_TRIANGLES",
_hx_index:12,__enum__:"openfl.display._internal.DrawCommandType",toString:v},END_FILL:{_hx_name:"END_FILL",_hx_index:13,__enum__:"openfl.display._internal.DrawCommandType",toString:v},LINE_BITMAP_STYLE:{_hx_name:"LINE_BITMAP_STYLE",_hx_index:14,__enum__:"openfl.display._internal.DrawCommandType",toString:v},LINE_GRADIENT_STYLE:{_hx_name:"LINE_GRADIENT_STYLE",_hx_index:15,__enum__:"openfl.display._internal.DrawCommandType",toString:v},LINE_STYLE:{_hx_name:"LINE_STYLE",_hx_index:16,__enum__:"openfl.display._internal.DrawCommandType",
toString:v},LINE_TO:{_hx_name:"LINE_TO",_hx_index:17,__enum__:"openfl.display._internal.DrawCommandType",toString:v},MOVE_TO:{_hx_name:"MOVE_TO",_hx_index:18,__enum__:"openfl.display._internal.DrawCommandType",toString:v},OVERRIDE_BLEND_MODE:{_hx_name:"OVERRIDE_BLEND_MODE",_hx_index:19,__enum__:"openfl.display._internal.DrawCommandType",toString:v},OVERRIDE_MATRIX:{_hx_name:"OVERRIDE_MATRIX",_hx_index:20,__enum__:"openfl.display._internal.DrawCommandType",toString:v},WINDING_EVEN_ODD:{_hx_name:"WINDING_EVEN_ODD",
_hx_index:21,__enum__:"openfl.display._internal.DrawCommandType",toString:v},WINDING_NON_ZERO:{_hx_name:"WINDING_NON_ZERO",_hx_index:22,__enum__:"openfl.display._internal.DrawCommandType",toString:v},UNKNOWN:{_hx_name:"UNKNOWN",_hx_index:23,__enum__:"openfl.display._internal.DrawCommandType",toString:v}};S.__constructs__=[S.BEGIN_BITMAP_FILL,S.BEGIN_FILL,S.BEGIN_GRADIENT_FILL,S.BEGIN_SHADER_FILL,S.CUBIC_CURVE_TO,S.CURVE_TO,S.DRAW_CIRCLE,S.DRAW_ELLIPSE,S.DRAW_QUADS,S.DRAW_RECT,S.DRAW_ROUND_RECT,S.DRAW_TILES,
S.DRAW_TRIANGLES,S.END_FILL,S.LINE_BITMAP_STYLE,S.LINE_GRADIENT_STYLE,S.LINE_STYLE,S.LINE_TO,S.MOVE_TO,S.OVERRIDE_BLEND_MODE,S.OVERRIDE_MATRIX,S.WINDING_EVEN_ODD,S.WINDING_NON_ZERO,S.UNKNOWN];S.__empty_constructs__=[S.BEGIN_BITMAP_FILL,S.BEGIN_FILL,S.BEGIN_GRADIENT_FILL,S.BEGIN_SHADER_FILL,S.CUBIC_CURVE_TO,S.CURVE_TO,S.DRAW_CIRCLE,S.DRAW_ELLIPSE,S.DRAW_QUADS,S.DRAW_RECT,S.DRAW_ROUND_RECT,S.DRAW_TILES,S.DRAW_TRIANGLES,S.END_FILL,S.LINE_BITMAP_STYLE,S.LINE_GRADIENT_STYLE,S.LINE_STYLE,S.LINE_TO,S.MOVE_TO,
S.OVERRIDE_BLEND_MODE,S.OVERRIDE_MATRIX,S.WINDING_EVEN_ODD,S.WINDING_NON_ZERO,S.UNKNOWN];var dj=function(){};g["openfl.display._internal.FlashRenderer"]=dj;dj.__name__="openfl.display._internal.FlashRenderer";dj.register=function(a){null==dj.instances&&(dj.instances=Yu.toObjectMap(null,!0),Sa.get_current().stage.addEventListener("enterFrame",dj.render,!1,-2147483648));dj.instances.set(a,!0)};dj.render=function(a){for(a=dj.instances.keys();a.hasNext();)a.next().__renderFlash()};var nt=function(){};
g["openfl.display._internal.IDisplayObject"]=nt;nt.__name__="openfl.display._internal.IDisplayObject";nt.__isInterface__=!0;nt.prototype={__renderFlash:null,__class__:nt};var ab=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};g["openfl.geom.Point"]=ab;ab.__name__="openfl.geom.Point";ab.distance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)};ab.interpolate=function(a,b,c){return new ab(b.x+c*(a.x-b.x),b.y+c*(a.y-b.y))};ab.polar=function(a,b){return new ab(a*Math.cos(b),
a*Math.sin(b))};ab.prototype={x:null,y:null,add:function(a){return new ab(a.x+this.x,a.y+this.y)},clone:function(){return new ab(this.x,this.y)},copyFrom:function(a){this.x=a.x;this.y=a.y},equals:function(a){return null!=a&&a.x==this.x?a.y==this.y:!1},normalize:function(a){if(0!=this.x||0!=this.y)a/=Math.sqrt(this.x*this.x+this.y*this.y),this.x*=a,this.y*=a},offset:function(a,b){this.x+=a;this.y+=b},setTo:function(a,b){this.x=a;this.y=b},subtract:function(a){return new ab(this.x-a.x,this.y-a.y)},
toString:function(){return"(x="+this.x+", y="+this.y+")"},__toLimeVector2:function(){null==ab.__limeVector2&&(ab.__limeVector2=new id);var a=ab.__limeVector2;a.x=this.x;a.y=this.y;return ab.__limeVector2},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},__class__:ab,__properties__:{get_length:"get_length"}};var Yj=function(){};g["openfl.display._internal.FlashTilemap"]=Yj;Yj.__name__="openfl.display._internal.FlashTilemap";Yj.render=function(a){};Yj.renderTileContainer=function(a,
b,c,d,e,f,h,l,m,g,k,n){};var Tj=function(a,b,c,d,e,f,h){null==h&&(h=.05);null==f&&(f=!1);gl.call(this,a,b,c,d,e,f,h);this.p_perm=[];for(b=0;512>b;)c=b++,this.p_perm[c]=Tj.P[c&255];this.base_factor=.03125;this.setSeed(a)};g["openfl.display._internal.PerlinNoise"]=Tj;Tj.__name__="openfl.display._internal.PerlinNoise";Tj.__super__=gl;Tj.prototype=r(gl.prototype,{p_perm:null,x_offset:null,y_offset:null,z_offset:null,base_factor:null,fill:function(a,b,c,d){var e=a.width,f=a.height,h=this.octaves,l=this.octaves_frequencies,
m=this.octaves_persistences,g=1==(1&this.channels),k=2==(2&this.channels),n=4==(4&this.channels),q=0;g&&++q;k&&++q;n&&++q;var p=this.grayscale,r=this.stitch_threshold*e|0,v=this.stitch_threshold*f|0,u=b*this.base_factor+this.x_offset;c=c*this.base_factor+this.y_offset;d=d*this.base_factor+this.z_offset;for(var x=0;x<f;){var w=x++;b=u;for(var z=0,U=e;z<U;){for(var X=z++,B=0,P=0,F=0,D=0,Ha=h;D<Ha;){var G=D++,C=l[G];G=m[G];B+=this.noise(b*C,c*C,d*C)*G;p||(1<q&&(P+=this.noise((b+1)*C,(c+1)*C,d*C)*G),
2<q&&(F+=this.noise((b+2)*C,(c+2)*C,d*C)*G))}D=0;p?D=this.color(B,B,B):g&&k&&n?D=this.color(B,P,F):g&&k?D=this.color(B,P,null):g&&n?D=this.color(B,null,P):k&&n?D=this.color(null,B,P):g?D=this.color(B,null,null):k?D=this.color(null,B,null):n&&(D=this.color(null,null,B));this.stitch&&(D=this.stitching(a,D,X,w,r,v,e,f));a.setPixel32(X,w,D);b+=this.base_factor}c+=this.base_factor}},noise:function(a,b,c){var d=a-a%1,e=b-b%1,f=c-c%1;a-=d;b-=e;c-=f;var h=(d|0)&255,l=(e|0)&255,m=(f|0)&255;f=this.fade(a);
e=this.fade(b);d=this.fade(c);var g=this.p_perm[h]+l,k=this.p_perm[g]+m;g=this.p_perm[g+1]+m;l=this.p_perm[h+1]+l;h=this.p_perm[l]+m;var n=this.p_perm[l+1]+m,q=a-1,p=b-1,r=c-1,v=this.p_perm[n+1]&15;m=(0==(v&1)?8>v?q:p:8>v?-q:-p)+(0==(v&2)?4>v?p:12==v?q:r:4>v?-p:14==v?-q:-r);v=this.p_perm[g+1]&15;l=(0==(v&1)?8>v?a:p:8>v?-a:-p)+(0==(v&2)?4>v?p:12==v?a:r:4>v?-p:14==v?-a:-r);v=this.p_perm[h+1]&15;var u=(0==(v&1)?8>v?q:b:8>v?-q:-b)+(0==(v&2)?4>v?b:12==v?q:r:4>v?-b:14==v?-q:-r);v=this.p_perm[k+1]&15;r=
(0==(v&1)?8>v?a:b:8>v?-a:-b)+(0==(v&2)?4>v?b:12==v?a:r:4>v?-b:14==v?-a:-r);v=this.p_perm[n]&15;n=(0==(v&1)?8>v?q:p:8>v?-q:-p)+(0==(v&2)?4>v?p:12==v?q:c:4>v?-p:14==v?-q:-c);v=this.p_perm[g]&15;g=(0==(v&1)?8>v?a:p:8>v?-a:-p)+(0==(v&2)?4>v?p:12==v?a:c:4>v?-p:14==v?-a:-c);v=this.p_perm[h]&15;h=(0==(v&1)?8>v?q:b:8>v?-q:-b)+(0==(v&2)?4>v?b:12==v?q:c:4>v?-b:14==v?-q:-c);v=this.p_perm[k]&15;a=(0==(v&1)?8>v?a:b:8>v?-a:-b)+(0==(v&2)?4>v?b:12==v?a:c:4>v?-b:14==v?-a:-c);r+=f*(u-r);a+=f*(h-a);a+=e*(g+f*(n-g)-
a);return a+d*(r+e*(l+f*(m-l)-r)-a)},setSeed:function(a){this.x_offset=a=16807*a%2147483647|0;this.y_offset=a=16807*a%2147483647|0;this.z_offset=16807*a%2147483647|0},__class__:Tj});var Zj=function(a,b,c,d,e,f,h){null==h&&(h=!1);null==f&&(f=!1);null==e&&(e=!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=e;this.centroid=f;this.textureAlpha=h};g["openfl.display._internal.SamplerState"]=Zj;Zj.__name__="openfl.display._internal.SamplerState";
Zj.prototype={centroid:null,filter:null,ignoreSampler:null,lodBias:null,mipfilter:null,mipmapGenerated:null,textureAlpha:null,wrap:null,clone:function(){var a=new Zj(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__:Zj};var mq=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"]=mq;mq.__name__="openfl.display._internal.ShaderBuffer";mq.prototype={inputCount:null,inputRefs:null,inputFilter:null,inputMipFilter:null,inputs:null,inputWrap:null,overrideBoolCount:null,overrideBoolNames:null,overrideBoolValues:null,overrideFloatCount:null,overrideFloatNames:null,overrideFloatValues:null,overrideIntCount:null,overrideIntNames:null,overrideIntValues:null,paramBoolCount:null,
paramCount:null,paramData:null,paramDataBuffer:null,paramDataLength:null,paramFloatCount:null,paramIntCount:null,paramLengths:null,paramPositions:null,paramRefs_Bool:null,paramRefs_Float:null,paramRefs_Int:null,paramTypes:null,shader:null,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++},addIntOverride:function(a,b){this.overrideIntNames[this.overrideIntCount]=a;this.overrideIntValues[this.overrideIntCount]=b;this.overrideIntCount++},clearOverride:function(){this.overrideBoolCount=this.overrideFloatCount=this.overrideIntCount=0},update:function(a){this.paramIntCount=this.paramFloatCount=this.paramDataLength=this.paramCount=this.paramBoolCount=this.overrideBoolCount=this.overrideFloatCount=this.overrideIntCount=this.inputCount=0;this.shader=null;if(null!=
a){a.__init();this.inputCount=a.__inputBitmapData.length;for(var b,c=0,d=this.inputCount;c<d;){var e=c++;b=a.__inputBitmapData[e];this.inputs[e]=b.input;this.inputFilter[e]=b.filter;this.inputMipFilter[e]=b.mipFilter;this.inputRefs[e]=b;this.inputWrap[e]=b.wrap}b=a.__paramBool.length;var f=a.__paramFloat.length,h=a.__paramInt.length;this.paramCount=b+f+h;this.paramBoolCount=b;this.paramFloatCount=f;this.paramIntCount=h;var l=0;c=0;for(d=b;c<d;){e=c++;var m=a.__paramBool[e];this.paramPositions[l]=
this.paramDataLength;var g=null!=m.value?m.value.length:0;this.paramLengths[l]=g;this.paramDataLength+=g;this.paramTypes[l]=0;this.paramRefs_Bool[e]=m;++l}c=0;for(d=f;c<d;)e=c++,m=a.__paramFloat[e],this.paramPositions[l]=this.paramDataLength,g=null!=m.value?m.value.length:0,this.paramLengths[l]=g,this.paramDataLength+=g,this.paramTypes[l]=1,this.paramRefs_Float[e]=m,++l;c=0;for(d=h;c<d;)e=c++,m=a.__paramInt[e],this.paramPositions[l]=this.paramDataLength,g=null!=m.value?m.value.length:0,this.paramLengths[l]=
g,this.paramDataLength+=g,this.paramTypes[l]=2,this.paramRefs_Int[e]=m,++l;if(0<this.paramDataLength)if(null==this.paramData){c=this.paramDataLength;var k=m=l=h=d=null;this.paramData=c=null!=c?new Float32Array(c):null!=d?new Float32Array(d):null!=h?new Float32Array(h.__array):null!=l?new Float32Array(l):null!=m?null==k?new Float32Array(m,0):new Float32Array(m,0,k):null}else this.paramDataLength>this.paramData.length&&(c=this.paramDataLength,k=m=l=h=d=null,c=null!=c?new Float32Array(c):null!=d?new Float32Array(d):
null!=h?new Float32Array(h.__array):null!=l?new Float32Array(l):null!=m?null==k?new Float32Array(m,0):new Float32Array(m,0,k):null,c.set(this.paramData),this.paramData=c);c=k=m=l=h=0;for(d=this.paramCount;c<d;)if(e=c++,g=this.paramLengths[e],e<b){e=this.paramRefs_Bool[h];++h;for(var n=0;n<g;){var q=n++;this.paramData[k]=e.value[q]?1:0;++k}}else if(e<b+f)for(e=this.paramRefs_Float[l],++l,n=0;n<g;)q=n++,this.paramData[k]=e.value[q],++k;else for(e=this.paramRefs_Int[m],++m,n=0;n<g;)q=n++,this.paramData[k]=
e.value[q],++k;this.shader=a}},__class__:mq};var Sb=function(a,b,c){this.profile=3;this.driverInfo="OpenGL (Direct blitting)";this.backBufferHeight=this.backBufferWidth=0;L.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 hn);this.__state=new hn;var d;this.__vertexConstants=new Float32Array(512);this.__fragmentConstants=new Float32Array(512);var e=null;a=[1,1,1,1];var f=
d=c=b=null;this.__positionScale=a=null!=e?new Float32Array(e):null!=a?new Float32Array(a):null!=b?new Float32Array(b.__array):null!=c?new Float32Array(c):null!=d?null==f?new Float32Array(d,0):new Float32Array(d,0,f):null;this.__programs=new da;-1==Sb.__glMaxViewportDims&&(Sb.__glMaxViewportDims=this.gl.getParameter(this.gl.MAX_VIEWPORT_DIMS));this.maxBackBufferHeight=this.maxBackBufferWidth=Sb.__glMaxViewportDims;-1==Sb.__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?(Sb.__glTextureMaxAnisotropy=a.TEXTURE_MAX_ANISOTROPY_EXT,Sb.__glMaxTextureMaxAnisotropy=this.gl.getParameter(a.MAX_TEXTURE_MAX_ANISOTROPY_EXT)):(Sb.__glTextureMaxAnisotropy=0,Sb.__glMaxTextureMaxAnisotropy=
0));-1==Sb.__glDepthStencil&&(Sb.__glDepthStencil=this.gl.DEPTH_STENCIL);-1==Sb.__glMemoryTotalAvailable&&(a=this.gl.getExtension("NVX_gpu_memory_info"),null!=a&&(Sb.__glMemoryTotalAvailable=a.GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX,Sb.__glMemoryCurrentAvailable=a.GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX));null==Sb.__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),
Sb.__driverInfo="OpenGL Vendor="+a+" Version="+b+" Renderer="+c+" GLSL="+d);this.driverInfo=Sb.__driverInfo;this.__quadIndexBufferElements=16383;e=this.__quadIndexBufferCount=6*this.__quadIndexBufferElements;f=d=c=b=a=null;a=null!=e?new Uint16Array(e):null!=a?new Uint16Array(a):null!=b?new Uint16Array(b.__array):null!=c?new Uint16Array(c):null!=d?null==f?new Uint16Array(d,0):new Uint16Array(d,0,f):null;d=c=b=0;for(f=this.__quadIndexBufferElements;d<f;)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)};g["openfl.display3D.Context3D"]=Sb;Sb.__name__="openfl.display3D.Context3D";Sb.__super__=L;Sb.prototype=r(L.prototype,{backBufferHeight:null,backBufferWidth:null,driverInfo:null,maxBackBufferHeight:null,maxBackBufferWidth:null,profile:null,gl:null,__backBufferAntiAlias:null,__backBufferTexture:null,__backBufferWantsBestResolution:null,__backBufferWantsBestResolutionOnBrowserZoom:null,
__cleared:null,__context:null,__contextState:null,__renderStage3DProgram:null,__enableErrorChecking:null,__fragmentConstants:null,__frontBufferTexture:null,__positionScale:null,__present:null,__programs:null,__quadIndexBuffer:null,__quadIndexBufferCount:null,__quadIndexBufferElements:null,__stage:null,__stage3D:null,__state:null,__vertexConstants:null,clear:function(a,b,c,d,e,f,h){null==h&&(h=7);null==f&&(f=0);null==e&&(e=1);null==d&&(d=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.__flushGLFramebuffer();
this.__flushGLViewport();var l=0;if(0!=(h&1)){null==this.__state.renderToTexture&&(this.__stage.context3D!=this||this.__stage.__renderer.__cleared||(this.__stage.__renderer.__cleared=!0),this.__cleared=!0);l|=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!=(h&2)&&(l|=this.gl.DEPTH_BUFFER_BIT,1!=this.__contextState.depthMask&&(this.gl.depthMask(!0),this.__contextState.depthMask=!0),this.gl.clearDepth(e));0!=(h&4)&&(l|=this.gl.STENCIL_BUFFER_BIT,255!=this.__contextState.stencilWriteMask&&(this.gl.stencilMask(255),this.__contextState.stencilWriteMask=255),this.gl.clearStencil(f),this.__contextState.stencilWriteMask=255);0!=l&&(this.__setGLScissorTest(!1),this.gl.clear(l))},configureBackBuffer:function(a,
b,c,d,e,f){null==f&&(f=!1);null==e&&(e=!1);null==d&&(d=!0);if(null==this.__stage3D)this.backBufferWidth=a,this.backBufferHeight=b,this.__backBufferAntiAlias=c,this.__state.backBufferEnableDepthAndStencil=d,this.__backBufferWantsBestResolution=e,this.__backBufferWantsBestResolutionOnBrowserZoom=f;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 h=fb.toFloatVector(null,null,null,[a,b,0,1,1,0,b,0,0,1,a,0,0,1,0,0,0,0,0,0]);this.__stage3D.__vertexBuffer.uploadFromVector(h,0,20);null==this.__stage3D.__indexBuffer&&(this.__stage3D.__indexBuffer=this.createIndexBuffer(6),h=fb.toIntVector(null,null,null,[0,1,2,2,1,3]),this.__stage3D.__indexBuffer.uploadFromVector(h,
0,6))}this.backBufferWidth=a;this.backBufferHeight=b;this.__backBufferAntiAlias=c;this.__state.backBufferEnableDepthAndStencil=d;this.__backBufferWantsBestResolution=e;this.__backBufferWantsBestResolutionOnBrowserZoom=f;this.__state.__primaryGLFramebuffer=this.__backBufferTexture.__getGLFramebuffer(d,c,0);this.__frontBufferTexture.__getGLFramebuffer(d,c,0)}},createCubeTexture:function(a,b,c,d){null==d&&(d=0);return new hl(this,a,b,c,d)},createIndexBuffer:function(a,b){null==b&&(b=1);return new ot(this,
a,b)},createProgram:function(a){null==a&&(a=0);return new pt(this,a)},createRectangleTexture:function(a,b,c,d){return new jn(this,a,b,kn.toString(c),d)},createTexture:function(a,b,c,d,e){null==e&&(e=0);return new ak(this,a,b,c,d,e)},createVertexBuffer:function(a,b,c){null==c&&(c=1);return new qt(this,a,b,xu.toString(c))},createVideoTexture:function(){return new Dq(this)},dispose:function(a){this.gl=null;this.__dispose()},drawToBitmapData:function(a,b,c){if(null!=a)if(b=null!=b?b.__toLimeRectangle():
new qd(0,0,this.backBufferWidth,this.backBufferHeight),c=null!=c?c.__toLimeVector2():new id,this.__stage.context3D==this){if(null!=this.__stage.window){if(null!=this.__stage3D){var d=-this.__stage3D.get_x()|0,e=-this.__stage3D.get_y()|0;c.x=d;c.y=e}e=this.__stage.window.readPixels();a.image.copyPixels(e,b,c)}}else if(null!=this.__backBufferTexture){d=this.__state.renderToTexture;this.setRenderToBackBuffer();this.__flushGLFramebuffer();this.__flushGLViewport();e=this.backBufferWidth*this.backBufferHeight*
4;var f=e=null!=e?new Uint8Array(e):null;e=this.gl;e.readPixels(0,0,this.backBufferWidth,this.backBufferHeight,this.__backBufferTexture.__format,this.gl.UNSIGNED_BYTE,f);e=new Lb(new mg(f,this.backBufferWidth,this.backBufferHeight,32,2));a.image.copyPixels(e,b,c);null!=d&&this.setRenderToTexture(d,this.__state.renderToTextureDepthStencil,this.__state.renderToTextureAntiAlias,this.__state.renderToTextureSurfaceSelector)}},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;b<c;){var d=
b++;null==this.__state.samplerStates[d]?this.__state.samplerStates[d]=a.__samplerStates[d].clone():this.__state.samplerStates[d].copyFrom(a.__samplerStates[d])}},setProgramConstantsFromByteArray:function(a,b,c,d,e){if(0!=c&&null!=this.__state.program&&(null==this.__state.program||1!=this.__state.program.__format)){-1==c&&(c=(Mb.get_length(d)>>>2)-e);var f=(a=1==a)?this.__vertexConstants:this.__fragmentConstants,h=Mb.toBytes(d),l=0;d=Mb.get_length(d);null==l&&(l=0);d=null==l?new Float32Array(h.b.bufferValue):
null==d?new Float32Array(h.b.bufferValue,l):new Float32Array(h.b.bufferValue,l,d);h=4*b;e=za.toFloat(e)/za.toFloat(4)|0;l=0;for(var m=4*c;l<m;){var g=l++;f[h+g]=d[e+g]}null!=this.__state.program&&this.__state.program.__markDirty(a,b,c)}},setProgramConstantsFromMatrix:function(a,b,c,d){null==d&&(d=!1);if(null!=this.__state.program&&1==this.__state.program.__format)this.__flushGLProgram(),a=new Float32Array(16),a[0]=c.rawData.get(0),a[1]=c.rawData.get(1),a[2]=c.rawData.get(2),a[3]=c.rawData.get(3),
a[4]=c.rawData.get(4),a[5]=c.rawData.get(5),a[6]=c.rawData.get(6),a[7]=c.rawData.get(7),a[8]=c.rawData.get(8),a[9]=c.rawData.get(9),a[10]=c.rawData.get(10),a[11]=c.rawData.get(11),a[12]=c.rawData.get(12),a[13]=c.rawData.get(13),a[14]=c.rawData.get(14),a[15]=c.rawData.get(15),cc.uniformMatrix4fv(this.gl,b,d,a);else{var e=(a=1==a)?this.__vertexConstants:this.__fragmentConstants;c=c.rawData;var f=4*b;d?(e[f++]=c.get(0),e[f++]=c.get(4),e[f++]=c.get(8),e[f++]=c.get(12),e[f++]=c.get(1),e[f++]=c.get(5),
e[f++]=c.get(9),e[f++]=c.get(13),e[f++]=c.get(2),e[f++]=c.get(6),e[f++]=c.get(10),e[f++]=c.get(14),e[f++]=c.get(3),e[f++]=c.get(7),e[f++]=c.get(11)):(e[f++]=c.get(0),e[f++]=c.get(1),e[f++]=c.get(2),e[f++]=c.get(3),e[f++]=c.get(4),e[f++]=c.get(5),e[f++]=c.get(6),e[f++]=c.get(7),e[f++]=c.get(8),e[f++]=c.get(9),e[f++]=c.get(10),e[f++]=c.get(11),e[f++]=c.get(12),e[f++]=c.get(13),e[f++]=c.get(14));e[f++]=c.get(15);null!=this.__state.program&&this.__state.program.__markDirty(a,b,4)}},setProgramConstantsFromVector:function(a,
b,c,d){null==d&&(d=-1);if(0!=d&&(null==this.__state.program||1!=this.__state.program.__format)){-1==d&&(d=c.get_length()>>2);for(var e=(a=1==a)?this.__vertexConstants:this.__fragmentConstants,f=0,h=4*b,l=0,m=d;l<m;)l++,e[h++]=c.get(f++),e[h++]=c.get(f++),e[h++]=c.get(f++),e[h++]=c.get(f++);null!=this.__state.program&&this.__state.program.__markDirty(a,b,d)}},setRenderToBackBuffer:function(){this.__state.renderToTexture=null},setRenderToTexture:function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null==
b&&(b=!1);this.__state.renderToTexture=a;this.__state.renderToTextureDepthStencil=b;this.__state.renderToTextureAntiAlias=c;this.__state.renderToTextureSurfaceSelector=d},setSamplerStateAt:function(a,b,c,d){null==this.__state.samplerStates[a]&&(this.__state.samplerStates[a]=new Zj);a=this.__state.samplerStates[a];a.wrap=b;a.filter=c;a.mipfilter=d},setScissorRectangle:function(a){null!=a?(this.__state.scissorEnabled=!0,this.__state.scissorRectangle.copyFrom(a)):this.__state.scissorEnabled=!1},setStencilActions:function(a,
b,c,d,e){null==e&&(e=5);null==d&&(d=5);null==c&&(c=5);null==b&&(b=0);null==a&&(a=2);this.__state.stencilTriangleFace=a;this.__state.stencilCompareMode=b;this.__state.stencilPass=c;this.__state.stencilDepthFail=d;this.__state.stencilFail=e},setStencilReferenceValue:function(a,b,c){null==c&&(c=255);null==b&&(b=255);this.__state.stencilReferenceValue=a;this.__state.stencilReadMask=b;this.__state.stencilWriteMask=c},setTextureAt:function(a,b){this.__state.textures[a]=b},setVertexBufferAt:function(a,b,
c,d){null==d&&(d=4);null==c&&(c=0);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 u.thrown(new Oc);}},__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},__flushGLColor:function(){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},__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 u.thrown(new Oc);}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 u.thrown(new Oc);}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 u.thrown(new Fc("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;null==
this.__state.renderToTexture&&null==this.__stage3D&&(b=(this.__stage.window.__height*this.__stage.window.__scale|0)-(this.__state.scissorRectangle.height|0)-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,e=this.__state.textures.length;d<e;){var f=d++;b=this.__state.textures[f];c=this.__state.samplerStates[f];null==c&&(this.__state.samplerStates[f]=new Zj,c=this.__state.samplerStates[f]);this.gl.activeTexture(this.gl.TEXTURE0+a);null!=b?(b.__textureTarget==this.gl.TEXTURE_2D?this.__bindGLTexture2D(b.__getTexture()):this.__bindGLTextureCubeMap(b.__getTexture()),this.__contextState.textures[f]=b,b.__setSamplerState(c)):this.__bindGLTexture2D(null);
null!=this.__state.program&&0==this.__state.program.__format&&c.textureAlpha&&(this.gl.activeTexture(this.gl.TEXTURE0+a+4),null!=b&&null!=b.__alphaTexture?(b.__alphaTexture.__textureTarget==this.gl.TEXTURE_2D?this.__bindGLTexture2D(b.__alphaTexture.__getTexture()):this.__bindGLTextureCubeMap(b.__alphaTexture.__getTexture()),b.__alphaTexture.__setSamplerState(c),this.gl.uniform1i(this.__state.program.__agalAlphaSamplerEnabled[a].location,1)):(this.__bindGLTexture2D(null),null!=this.__state.program.__agalAlphaSamplerEnabled[a]&&
this.gl.uniform1i(this.__state.program.__agalAlphaSamplerEnabled[a].location,0)));++a}},__flushGLViewport:function(){if(null==this.__state.renderToTexture)if(this.__stage.context3D==this){var a=null==this.__stage3D?0:this.__stage3D.get_x()|0,b=this.__stage.window.__height*this.__stage.window.__scale-this.backBufferHeight-(null==this.__stage3D?0:this.__stage3D.get_y())|0;this.gl.viewport(a,b,this.backBufferWidth,this.backBufferHeight)}else this.gl.viewport(0,0,this.backBufferWidth,this.backBufferHeight);
else b=a=0,this.__state.renderToTexture instanceof ak?(b=this.__state.renderToTexture,a=b.__width,b=b.__height):this.__state.renderToTexture instanceof jn?(b=this.__state.renderToTexture,a=b.__width,b=b.__height):this.__state.renderToTexture instanceof hl&&(b=this.__state.renderToTexture,b=a=b.__size),this.gl.viewport(0,0,a,b)},__getGLBlend:function(a){switch(a){case 0:return this.gl.DST_ALPHA;case 1:return this.gl.DST_COLOR;case 2:return this.gl.ONE;case 3:return this.gl.ONE_MINUS_DST_ALPHA;case 4:return this.gl.ONE_MINUS_DST_COLOR;
case 5:return this.gl.ONE_MINUS_SRC_ALPHA;case 6:return this.gl.ONE_MINUS_SRC_COLOR;case 7:return this.gl.SRC_ALPHA;case 8:return this.gl.SRC_COLOR;case 9:return this.gl.ZERO;default:throw u.thrown(new Oc);}},__getGLCompareMode:function(a){switch(a){case 0:return this.gl.ALWAYS;case 1:return this.gl.EQUAL;case 2:return this.gl.GREATER;case 3:return this.gl.GEQUAL;case 4:return this.gl.LESS;case 5:return this.gl.LEQUAL;case 6:return this.gl.NEVER;case 7:return this.gl.NOTEQUAL;default:return this.gl.EQUAL}},
__getGLStencilAction:function(a){switch(a){case 0:return this.gl.DECR;case 1:return this.gl.DECR_WRAP;case 2:return this.gl.INCR;case 3:return this.gl.INCR_WRAP;case 4:return this.gl.INVERT;case 5:return this.gl.KEEP;case 6:return this.gl.REPLACE;case 7:return this.gl.ZERO;default:return this.gl.KEEP}},__getGLTriangleFace:function(a){switch(a){case 0:return this.gl.BACK;case 1:return this.gl.FRONT;case 2:return this.gl.FRONT_AND_BACK;case 3:return this.gl.NONE;default:return this.gl.FRONT_AND_BACK}},
__renderStage3D:function(a){var b=a.context3D;if(null!=b&&b!=this&&null!=b.__frontBufferTexture&&a.visible&&0<this.backBufferHeight&&0<this.backBufferWidth){if(null==this.__renderStage3DProgram){var c=new T;c.assemble(yu.toString(1),"m44 op, va0, vc0\nmov v0, va1");var d=new T;d.assemble(yu.toString(0),"tex ft1, v0, fs0 <2d,nearest,nomip>\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)},get_enableErrorChecking:function(){return this.__enableErrorChecking},set_enableErrorChecking:function(a){return this.__enableErrorChecking=a},get_totalGPUMemory:function(){if(-1!=Sb.__glMemoryCurrentAvailable){var a=this.gl.getParameter(Sb.__glMemoryCurrentAvailable),b=this.gl.getParameter(Sb.__glMemoryTotalAvailable);if(0<b)return 1024*(b-a)}return 0},__class__:Sb,__properties__:{get_totalGPUMemory:"get_totalGPUMemory",
set_enableErrorChecking:"set_enableErrorChecking",get_enableErrorChecking:"get_enableErrorChecking"}});var xu={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}}},yu={fromString:function(a){switch(a){case "fragment":return 0;case "vertex":return 1;default:return null}},toString:function(a){switch(a){case 0:return"fragment";case 1:return"vertex";
default:return null}}},kn={fromString:function(a){switch(a){case "bgrPacked565":return 0;case "bgra":return 1;case "bgraPacked4444":return 2;case "compressed":return 3;case "compressedAlpha":return 4;case "rgbaHalfFloat":return 5;default:return null}},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}}},ot=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"]=ot;ot.__name__="openfl.display3D.IndexBuffer3D";ot.prototype={__context:null,__id:null,__memoryUsage:null,__numIndices:null,__tempUInt16Array:null,__usage:null,dispose:function(){this.__context.gl.deleteBuffer(this.__id)},uploadFromByteArray:function(a,b,c,d){b+=2*c;a=Mb.toArrayBuffer(a);null==b&&(b=0);d=null!=a?null==d?new Uint16Array(a,b):new Uint16Array(a,
b,d):null;this.uploadFromTypedArray(d)},uploadFromTypedArray:function(a,b){null!=a&&(b=this.__context.gl,this.__context.__bindGLElementArrayBuffer(this.__id),cc.bufferData(b,b.ELEMENT_ARRAY_BUFFER,a,this.__usage))},uploadFromVector:function(a,b,c){if(null!=a){var d=b+c,e=this.__tempUInt16Array;if(null==this.__tempUInt16Array||this.__tempUInt16Array.length<c)this.__tempUInt16Array=null!=c?new Uint16Array(c):null,null!=e&&this.__tempUInt16Array.set(e);for(c=b;c<d;)e=c++,this.__tempUInt16Array[e-b]=
a.get(e);this.uploadFromTypedArray(this.__tempUInt16Array)}},__class__:ot};var pt=function(a,b){this.__context=a;this.__format=b;0==this.__format?(this.__agalSamplerUsageMask=0,this.__agalUniforms=new hb,this.__agalSamplerUniforms=new hb,this.__agalAlphaSamplerUniforms=new hb,this.__agalAlphaSamplerEnabled=[]):(this.__glslAttribNames=[],this.__glslAttribTypes=[],this.__glslSamplerNames=[],this.__glslUniformLocations=[],this.__glslUniformNames=[],this.__glslUniformTypes=[]);this.__samplerStates=[]};
g["openfl.display3D.Program3D"]=pt;pt.__name__="openfl.display3D.Program3D";pt.prototype={__agalAlphaSamplerEnabled:null,__agalAlphaSamplerUniforms:null,__agalFragmentUniformMap:null,__agalPositionScale:null,__agalSamplerUniforms:null,__agalSamplerUsageMask:null,__agalUniforms:null,__agalVertexUniformMap:null,__context:null,__format:null,__glFragmentShader:null,__glFragmentSource:null,__glProgram:null,__glslAttribNames:null,__glslAttribTypes:null,__glslSamplerNames:null,__glslUniformLocations:null,
__glslUniformNames:null,__glslUniformTypes:null,__glVertexShader:null,__glVertexSource:null,__samplerStates:null,dispose:function(){this.__deleteShaders()},getAttributeIndex:function(a){if(0==this.__format)return ia.startsWith(a,"va")?B.parseInt(a.substring(2)):-1;for(var b=0,c=this.__glslAttribNames.length;b<c;){var d=b++;if(this.__glslAttribNames[d]==a)return d}return-1},getConstantIndex:function(a){if(0==this.__format)return ia.startsWith(a,"vc")?B.parseInt(a.substring(2)):ia.startsWith(a,"fc")?
B.parseInt(a.substring(2)):-1;for(var b=0,c=this.__glslUniformNames.length;b<c;){var d=b++;if(this.__glslUniformNames[d]==a)return this.__glslUniformLocations[d]}return-1},upload:function(a,b){if(0==this.__format){var c=[];a=ne.convertToGLSL(a,null);b=ne.convertToGLSL(b,c);5==Ea.level&&(Ea.info(a,{fileName:"openfl/display3D/Program3D.hx",lineNumber:399,className:"openfl.display3D.Program3D",methodName:"upload"}),Ea.info(b,{fileName:"openfl/display3D/Program3D.hx",lineNumber:400,className:"openfl.display3D.Program3D",
methodName:"upload"}));this.__deleteShaders();this.__uploadFromGLSL(a,b);this.__buildAGALUniformList();b=0;for(a=c.length;b<a;){var d=b++;this.__samplerStates[d]=c[d]}}},uploadSources:function(a,b){if(1==this.__format){var c="#ifdef GL_ES\n\t\t\t#ifdef GL_FRAGMENT_PRECISION_HIGH\n\t\t\tprecision highp float;\n\t\t\t#else\n\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t#endif\n\t\t\t"+a,d="#ifdef GL_ES\n\t\t\t#ifdef GL_FRAGMENT_PRECISION_HIGH\n\t\t\tprecision highp float;\n\t\t\t#else\n\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t#endif\n\t\t\t"+
b;if(c!=this.__glVertexSource||d!=this.__glFragmentSource){this.__processGLSLData(a,"attribute");this.__processGLSLData(a,"uniform");this.__processGLSLData(b,"uniform");this.__deleteShaders();this.__uploadFromGLSL(c,d);var e=this.__glslSamplerNames;d=this.__glslAttribNames;var f=this.__glslAttribTypes;a=this.__glslUniformNames;this.__glslSamplerNames=[];this.__glslAttribNames=[];this.__glslAttribTypes=[];this.__glslUniformLocations=[];b=this.__context.gl;for(c=0;c<e.length;){var h=e[c];++c;var l=
b.getUniformLocation(this.__glProgram,h);this.__glslSamplerNames[l]=h}c=0;for(e=d.length;c<e;)h=c++,l=b.getAttribLocation(this.__glProgram,d[h]),this.__glslAttribNames[l]=d[h],this.__glslAttribTypes[l]=f[h];c=0;for(e=a.length;c<e;)h=c++,d=b.getUniformLocation(this.__glProgram,a[h]),this.__glslUniformLocations[h]=d}}},__buildAGALUniformList:function(){if(1!=this.__format){var a=this.__context.gl;this.__agalUniforms.clear();this.__agalSamplerUniforms.clear();this.__agalAlphaSamplerUniforms.clear();
this.__agalAlphaSamplerEnabled=[];this.__agalSamplerUsageMask=0;var b=a.getProgramParameter(this.__glProgram,a.ACTIVE_UNIFORMS);for(var c=new hb,d=new hb,e=0;e<b;){var f=e++,h=a.getActiveUniform(this.__glProgram,f),l=h.name,m=h.size,g=h.type;h=new Eq(this.__context);h.name=l;h.size=m;h.type=g;h.location=a.getUniformLocation(this.__glProgram,h.name);l=h.name.indexOf("[");0<=l&&(h.name=h.name.substring(0,l));switch(h.type){case 35674:h.regCount=2;break;case 35675:h.regCount=3;break;case 35676:h.regCount=
4;break;default:h.regCount=1}h.regCount*=h.size;this.__agalUniforms.add(h);if("vcPositionScale"==h.name)this.__agalPositionScale=h;else if(ia.startsWith(h.name,"vc"))h.regIndex=B.parseInt(h.name.substring(2)),h.regData=this.__context.__vertexConstants,c.add(h);else if(ia.startsWith(h.name,"fc"))h.regIndex=B.parseInt(h.name.substring(2)),h.regData=this.__context.__fragmentConstants,d.add(h);else if(ia.startsWith(h.name,"sampler")&&-1==h.name.indexOf("alpha"))for(h.regIndex=B.parseInt(h.name.substring(7)),
this.__agalSamplerUniforms.add(h),l=0,m=h.regCount;l<m;)g=l++,this.__agalSamplerUsageMask|=1<<h.regIndex+g;else ia.startsWith(h.name,"sampler")&&ia.endsWith(h.name,"_alpha")?(l=h.name.indexOf("_")-7,h.regIndex=B.parseInt(h.name.substring(7,7+l))+4,this.__agalAlphaSamplerUniforms.add(h)):ia.startsWith(h.name,"sampler")&&ia.endsWith(h.name,"_alphaEnabled")&&(h.regIndex=B.parseInt(h.name.substring(7)),this.__agalAlphaSamplerEnabled[h.regIndex]=h);5==Ea.level&&Ea.verbose(""+f+" name:"+h.name+" type:"+
h.type+" size:"+h.size+" location:"+B.string(h.location),{fileName:"openfl/display3D/Program3D.hx",lineNumber:577,className:"openfl.display3D.Program3D",methodName:"__buildAGALUniformList"})}this.__agalVertexUniformMap=new ln(vb.array(c));this.__agalFragmentUniformMap=new ln(vb.array(d))}},__deleteShaders:function(){var a=this.__context.gl;null!=this.__glProgram&&(this.__glProgram=null);null!=this.__glVertexShader&&(a.deleteShader(this.__glVertexShader),this.__glVertexShader=null);null!=this.__glFragmentShader&&
(a.deleteShader(this.__glFragmentShader),this.__glFragmentShader=null)},__disable:function(){},__enable:function(){var a=this.__context.gl;a.useProgram(this.__glProgram);if(0==this.__format){this.__agalVertexUniformMap.markAllDirty();this.__agalFragmentUniformMap.markAllDirty();for(var b=this.__agalSamplerUniforms.h;null!=b;){var c=b.item;b=b.next;if(1==c.regCount)a.uniform1i(c.location,c.regIndex);else throw u.thrown(new Oc("!!! TODO: uniform location on webgl"));}for(b=this.__agalAlphaSamplerUniforms.h;null!=
b;)if(c=b.item,b=b.next,1==c.regCount)a.uniform1i(c.location,c.regIndex);else throw u.thrown(new Oc("!!! TODO: uniform location on webgl"));}},__flush:function(){0==this.__format&&(this.__agalVertexUniformMap.flush(),this.__agalFragmentUniformMap.flush())},__getSamplerState:function(a){return this.__samplerStates[a]},__markDirty:function(a,b,c){1!=this.__format&&(a?this.__agalVertexUniformMap.markDirty(b,c):this.__agalFragmentUniformMap.markDirty(b,c))},__processGLSLData:function(a,b){var c=0,d;for(d=
"uniform"==b?new fa("uniform ([A-Za-z0-9]+) ([A-Za-z0-9_]+)",""):new fa("attribute ([A-Za-z0-9]+) ([A-Za-z0-9_]+)","");d.matchSub(a,c);){var e=d.matched(1);var f=d.matched(2);if(!ia.startsWith(f,"gl_")){if(ia.startsWith(e,"sampler"))this.__glslSamplerNames.push(f);else{switch(e){case "bool":c=0;break;case "bvec2":c=1;break;case "bvec3":c=2;break;case "bvec4":c=3;break;case "dvec2":case "vec2":c=5;break;case "dvec3":case "vec3":c=6;break;case "dvec4":case "vec4":c=7;break;case "double":case "float":c=
4;break;case "mat2":case "mat2x2":c=12;break;case "mat2x3":c=13;break;case "mat2x4":c=14;break;case "mat3x2":c=15;break;case "mat3":case "mat3x3":c=16;break;case "mat3x4":c=17;break;case "mat4x2":c=18;break;case "mat4x3":c=19;break;case "mat4":case "mat4x4":c=20;break;case "int":case "uint":c=8;break;case "ivec2":case "uvec2":c=9;break;case "ivec3":case "uvec3":c=10;break;case "ivec4":case "uvec4":c=11;break;default:c=null}"uniform"==b?(this.__glslUniformNames.push(f),this.__glslUniformTypes.push(c)):
(this.__glslAttribNames.push(f),this.__glslAttribTypes.push(c))}f=d.matchedPos();c=f.pos+f.len}}},__setPositionScale:function(a){1!=this.__format&&null!=this.__agalPositionScale&&this.__context.gl.uniform4fv(this.__agalPositionScale.location,a)},__setSamplerState:function(a,b){this.__samplerStates[a]=b},__uploadFromGLSL:function(a,b){var c=this.__context.gl;this.__glVertexSource=a;this.__glFragmentSource=b;this.__glVertexShader=c.createShader(c.VERTEX_SHADER);c.shaderSource(this.__glVertexShader,
a);c.compileShader(this.__glVertexShader);if(0==c.getShaderParameter(this.__glVertexShader,c.COMPILE_STATUS)){var d="Error compiling vertex shader\n"+c.getShaderInfoLog(this.__glVertexShader);Ea.error(d+("\n"+a),{fileName:"openfl/display3D/Program3D.hx",lineNumber:869,className:"openfl.display3D.Program3D",methodName:"__uploadFromGLSL"})}this.__glFragmentShader=c.createShader(c.FRAGMENT_SHADER);c.shaderSource(this.__glFragmentShader,b);c.compileShader(this.__glFragmentShader);0==c.getShaderParameter(this.__glFragmentShader,
c.COMPILE_STATUS)&&(d="Error compiling fragment shader\n"+c.getShaderInfoLog(this.__glFragmentShader),Ea.error(d+("\n"+b),{fileName:"openfl/display3D/Program3D.hx",lineNumber:881,className:"openfl.display3D.Program3D",methodName:"__uploadFromGLSL"}));this.__glProgram=c.createProgram();if(0==this.__format)for(b=0;16>b;){var e=b++;d="va"+e;-1!=a.indexOf(" "+d)&&c.bindAttribLocation(this.__glProgram,e,d)}else for(b=0,a=this.__glslAttribNames;b<a.length;)if(d=a[b],++b,-1<d.indexOf("Position")&&ia.startsWith(d,
"openfl_")){c.bindAttribLocation(this.__glProgram,0,d);break}c.attachShader(this.__glProgram,this.__glVertexShader);c.attachShader(this.__glProgram,this.__glFragmentShader);c.linkProgram(this.__glProgram);0==c.getProgramParameter(this.__glProgram,c.LINK_STATUS)&&(d="Unable to initialize the shader program\n"+c.getProgramInfoLog(this.__glProgram),Ea.error(d,{fileName:"openfl/display3D/Program3D.hx",lineNumber:922,className:"openfl.display3D.Program3D",methodName:"__uploadFromGLSL"}))},__class__:pt};
var Eq=function(a){this.context=a;this.isDirty=!0;this.regDataPointer=new og(null,0)};g["openfl.display3D.Uniform"]=Eq;Eq.__name__="openfl.display3D.Uniform";Eq.prototype={name:null,location:null,type:null,size:null,regData:null,regIndex:null,regCount:null,isDirty:null,context:null,regDataPointer:null,flush:function(){var a=this.context.gl,b=4*this.regIndex;switch(this.type){case 35664:Pu.uniform2fv(a,this.location,this.regData.subarray(b,b+2*this.regCount));break;case 35665:var c=this.location;b=
this.regData.subarray(b,b+3*this.regCount);var d=null;null!=d?a.uniform3fv(c,b,d,null):a.uniform3fv(c,b);break;case 35666:c=this.location;b=this.regData.subarray(b,b+4*this.regCount);d=null;null!=d?a.uniform4fv(c,b,d,null):a.uniform4fv(c,b);break;case 35674:cc.uniformMatrix2fv(a,this.location,!1,this.regData.subarray(b,b+4*this.size));break;case 35675:cc.uniformMatrix3fv(a,this.location,!1,this.regData.subarray(b,b+9*this.size));break;case 35676:cc.uniformMatrix4fv(a,this.location,!1,this.regData.subarray(b,
b+16*this.size));break;default:c=this.location,b=this.regData.subarray(b,b+4*this.regCount),d=null,null!=d?a.uniform4fv(c,b,d,null):a.uniform4fv(c,b)}},__getUniformRegisters:function(a,b){return this.regData.subarray(a,a+b)},__class__:Eq};var ln=function(a){this.__uniforms=a;this.__uniforms.sort(function(a,b){return J.compare(a.regIndex,b.regIndex)});var b=0;a=0;for(var c=this.__uniforms;a<c.length;){var d=c[a];++a;d.regIndex+d.regCount>b&&(b=d.regIndex+d.regCount)}this.__registerLookup=fb.toObjectVector(null,
b);a=0;for(c=this.__uniforms;a<c.length;){d=c[a];++a;b=0;for(var e=d.regCount;b<e;){var f=b++;this.__registerLookup.set(d.regIndex+f,d)}}this.__anyDirty=this.__allDirty=!0};g["openfl.display3D.UniformMap"]=ln;ln.__name__="openfl.display3D.UniformMap";ln.prototype={__allDirty:null,__anyDirty:null,__registerLookup:null,__uniforms:null,flush:function(){if(this.__anyDirty){for(var a=0,b=this.__uniforms;a<b.length;){var c=b[a];++a;if(this.__allDirty||c.isDirty)c.flush(),c.isDirty=!1}this.__anyDirty=this.__allDirty=
!1}},markAllDirty:function(){this.__anyDirty=this.__allDirty=!0},markDirty:function(a,b){if(!this.__allDirty)for(b=a+b,b>this.__registerLookup.get_length()&&(b=this.__registerLookup.get_length());a<b;){var c=this.__registerLookup.get(a);null!=c?(this.__anyDirty=c.isDirty=!0,a=c.regIndex+c.regCount):++a}},__class__:ln};var qt=function(a,b,c,d){this.__context=a;this.__numVertices=b;this.__vertexSize=c;a=this.__context.gl;this.__id=a.createBuffer();this.__stride=4*this.__vertexSize;this.__usage=0==xu.fromString(d)?
a.DYNAMIC_DRAW:a.STATIC_DRAW};g["openfl.display3D.VertexBuffer3D"]=qt;qt.__name__="openfl.display3D.VertexBuffer3D";qt.prototype={__context:null,__data:null,__id:null,__memoryUsage:null,__numVertices:null,__stride:null,__tempFloat32Array:null,__usage:null,__vertexSize:null,dispose:function(){this.__context.gl.deleteBuffer(this.__id)},uploadFromByteArray:function(a,b,c,d){b+=c*this.__stride;d*=this.__vertexSize;a=Mb.toArrayBuffer(a);null==b&&(b=0);a=null!=a?null==d?new Float32Array(a,b):new Float32Array(a,
b,d):null;this.uploadFromTypedArray(Rh.toArrayBufferView(a))},uploadFromTypedArray:function(a,b){null!=a&&(b=this.__context.gl,this.__context.__bindGLArrayBuffer(this.__id),cc.bufferData(b,b.ARRAY_BUFFER,a,this.__usage))},uploadFromVector:function(a,b,c){if(null!=a){b*=this.__vertexSize;var d=c*this.__vertexSize;c=b+d;var e=this.__tempFloat32Array;if(null==this.__tempFloat32Array||this.__tempFloat32Array.length<d)this.__tempFloat32Array=null!=d?new Float32Array(d):null,null!=e&&this.__tempFloat32Array.set(e);
for(d=b;d<c;)e=d++,this.__tempFloat32Array[e-b]=a.get(e);this.uploadFromTypedArray(Rh.toArrayBufferView(this.__tempFloat32Array))}},__class__:qt};var ne=function(){};g["openfl.display3D._internal.AGALConverter"]=ne;ne.__name__="openfl.display3D._internal.AGALConverter";ne.prefixFromType=function(a,b){switch(a){case 0:return"va";case 1:return b==Mf.VERTEX?"vc":"fc";case 2:return b==Mf.VERTEX?"vt":"ft";case 3:return"output_";case 4:return"v";case 5:return"sampler";default:throw u.thrown(new Oc("Invalid data!"));
}};ne.readUInt64=function(a){var b=a.readInt();a=a.readInt();return new zb(a,b)};ne.convertToGLSL=function(a,b){a.position=0;a.__endian=1;var c=a.readByte()&255;if(176==c)return a.readUTF();if(160!=c)throw u.thrown(new Oc("Magic value must be 0xA0, may not be AGAL"));var d=a.readInt();if(1!=d)throw u.thrown(new Oc("Version must be 1"));if(161!=(a.readByte()&255))throw u.thrown(new Oc("Shader type ID must be 0xA1"));c=0==(a.readByte()&255)?Mf.VERTEX:Mf.FRAGMENT;for(var e=new Fq,f="";;){d=a.position;
if(!za.gt(Mb.get_length(a),d))break;var h=a.readInt();d=a.readUnsignedInt();var l=ne.readUInt64(a),m=ne.readUInt64(a);d=il.parse(d,c);l=bk.parse(l,c,d.mask);var g=bk.parse(m,c,d.mask);f+="\t";switch(h){case 0:f+=B.string(d.toGLSL()+" = "+l.toGLSL()+"; // mov");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);break;case 1:f+=B.string(d.toGLSL()+" = "+l.toGLSL()+" + "+g.toGLSL()+"; // add");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 2:f+=B.string(d.toGLSL()+" = "+l.toGLSL()+
" - "+g.toGLSL()+"; // sub");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 3:f+=B.string(d.toGLSL()+" = "+l.toGLSL()+" * "+g.toGLSL()+"; // mul");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 4:f+=B.string(d.toGLSL()+" = "+l.toGLSL()+" / "+g.toGLSL()+"; // div");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 5:f=-1<l.toGLSL().indexOf(".")?f+B.string(d.toGLSL()+" = 1.0 / "+l.toGLSL()+"; // rcp"):f+
B.string(d.toGLSL()+" = vec4(1) / "+l.toGLSL()+"; // rcp");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);break;case 6:f+=B.string(d.toGLSL()+" = min("+l.toGLSL()+", "+g.toGLSL()+"); // min");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 7:f+=B.string(d.toGLSL()+" = max("+l.toGLSL()+", "+g.toGLSL()+"); // max");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 8:f+=B.string(d.toGLSL()+" = fract("+l.toGLSL()+"); // frc");e.addDR(d,ta.VECTOR_4);
e.addSR(l,ta.VECTOR_4);break;case 9:f+=B.string(d.toGLSL()+" = sqrt("+l.toGLSL()+"); // sqrt");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);break;case 10:f+=B.string(d.toGLSL()+" = inversesqrt("+l.toGLSL()+"); // rsq");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);break;case 11:f+=B.string(d.toGLSL()+" = pow("+l.toGLSL()+", "+g.toGLSL()+"); // pow");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 12:f+=B.string(d.toGLSL()+" = log2("+l.toGLSL()+"); // log");e.addDR(d,
ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);break;case 13:f+=B.string(d.toGLSL()+" = exp2("+l.toGLSL()+"); // exp");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);break;case 14:f+=B.string(d.toGLSL()+" = normalize("+l.toGLSL()+"); // normalize");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);break;case 15:f+=B.string(d.toGLSL()+" = sin("+l.toGLSL()+"); // sin");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);break;case 16:f+=B.string(d.toGLSL()+" = cos("+l.toGLSL()+"); // cos");e.addDR(d,ta.VECTOR_4);e.addSR(l,
ta.VECTOR_4);break;case 17:l.sourceMask=g.sourceMask=7;f+=B.string(d.toGLSL()+" = cross(vec3("+l.toGLSL()+"), vec3("+g.toGLSL()+")); // crs");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 18:l.sourceMask=g.sourceMask=7;f+=B.string(d.toGLSL()+" = vec4(dot(vec3("+l.toGLSL()+"), vec3("+g.toGLSL()+")))"+d.getWriteMask()+"; // dp3");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 19:l.sourceMask=g.sourceMask=15;f+=B.string(d.toGLSL()+" = vec4(dot(vec4("+
l.toGLSL()+"), vec4("+g.toGLSL()+")))"+d.getWriteMask()+"; // dp4");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 20:f+=B.string(d.toGLSL()+" = abs("+l.toGLSL()+"); // abs");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);break;case 21:f+=B.string(d.toGLSL()+" = -"+l.toGLSL()+"; // neg");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);break;case 22:f+=B.string(d.toGLSL()+" = clamp("+l.toGLSL()+", 0.0, 1.0); // saturate");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);
break;case 23:h=e.getRegisterUsage(g);h!=ta.VECTOR_4&&h!=ta.VECTOR_4_ARRAY?(f+=B.string(d.toGLSL()+" = "+l.toGLSL()+" * mat3("+g.toGLSL(!1)+"); // m33"),e.addDR(d,ta.VECTOR_4),e.addSR(l,ta.VECTOR_4),e.addSR(g,ta.MATRIX_4_4)):(l.sourceMask=g.sourceMask=7,f+=B.string(d.toGLSL()+" = vec3(dot("+l.toGLSL(!0)+","+g.toGLSL(!0,0)+"), dot("+l.toGLSL(!0)+","+g.toGLSL(!0,1)+"),dot("+l.toGLSL(!0)+","+g.toGLSL(!0,2)+")); // m33"),e.addDR(d,ta.VECTOR_4),e.addSR(l,ta.VECTOR_4),e.addSR(g,ta.VECTOR_4,0),e.addSR(g,
ta.VECTOR_4,1),e.addSR(g,ta.VECTOR_4,2));break;case 24:h=e.getRegisterUsage(g);h!=ta.VECTOR_4&&h!=ta.VECTOR_4_ARRAY?(f+=B.string(d.toGLSL()+" = "+l.toGLSL()+" * "+g.toGLSL(!1)+"; // m44"),e.addDR(d,ta.VECTOR_4),e.addSR(l,ta.VECTOR_4),e.addSR(g,ta.MATRIX_4_4)):(l.sourceMask=g.sourceMask=15,f+=B.string(d.toGLSL()+" = vec4(dot("+l.toGLSL(!0)+","+g.toGLSL(!0,0)+"), dot("+l.toGLSL(!0)+","+g.toGLSL(!0,1)+"), dot("+l.toGLSL(!0)+","+g.toGLSL(!0,2)+"), dot("+l.toGLSL(!0)+","+g.toGLSL(!0,3)+")); // m44"),e.addDR(d,
ta.VECTOR_4),e.addSR(l,ta.VECTOR_4),e.addSR(g,ta.VECTOR_4,0),e.addSR(g,ta.VECTOR_4,1),e.addSR(g,ta.VECTOR_4,2),e.addSR(g,ta.VECTOR_4,3));break;case 25:d.mask&=7;h=e.getRegisterUsage(g);h!=ta.VECTOR_4&&h!=ta.VECTOR_4_ARRAY?(f+=B.string(d.toGLSL()+" = "+l.toGLSL()+" * "+g.toGLSL(!1)+"; // m34"),e.addDR(d,ta.VECTOR_4),e.addSR(l,ta.VECTOR_4),e.addSR(g,ta.MATRIX_4_4)):(l.sourceMask=g.sourceMask=15,f+=B.string(d.toGLSL()+" = vec3(dot("+l.toGLSL(!0)+","+g.toGLSL(!0,0)+"), dot("+l.toGLSL(!0)+","+g.toGLSL(!0,
1)+"),dot("+l.toGLSL(!0)+","+g.toGLSL(!0,2)+")); // m34"),e.addDR(d,ta.VECTOR_4),e.addSR(l,ta.VECTOR_4),e.addSR(g,ta.VECTOR_4,0),e.addSR(g,ta.VECTOR_4,1),e.addSR(g,ta.VECTOR_4,2));break;case 39:l.sourceMask=15;f+=B.string("if (any(lessThan("+l.toGLSL()+", vec4(0)))) discard;");e.addSR(l,ta.VECTOR_4);break;case 40:g=jl.parse(m,c);switch(g.d){case 0:2==g.t?(l.sourceMask=3,e.addSaR(g,ta.SAMPLER_2D_ALPHA),f+=B.string("if ("+g.toGLSL()+"_alphaEnabled) {\n"),f+=B.string("\t\t"+d.toGLSL()+" = vec4(texture2D("+
g.toGLSL()+", "+l.toGLSL()+").xyz, texture2D("+g.toGLSL()+"_alpha, "+l.toGLSL()+").x); // tex + alpha\n"),f+="\t} else {\n",f+=B.string("\t\t"+d.toGLSL()+" = texture2D("+g.toGLSL()+", "+l.toGLSL()+"); // tex\n"),f+="\t}"):(l.sourceMask=3,e.addSaR(g,ta.SAMPLER_2D),f+=B.string(d.toGLSL()+" = texture2D("+g.toGLSL()+", "+l.toGLSL()+"); // tex"));break;case 1:2==g.t?(l.sourceMask=7,e.addSaR(g,ta.SAMPLER_CUBE_ALPHA),f+=B.string("if ("+g.toGLSL()+"_alphaEnabled) {\n"),f+=B.string("\t\t"+d.toGLSL()+" = vec4(textureCube("+
g.toGLSL()+", "+l.toGLSL()+").xyz, textureCube("+g.toGLSL()+"_alpha, "+l.toGLSL()+").x); // tex + alpha\n"),f+="\t} else {\n",f+=B.string("\t\t"+d.toGLSL()+" = textureCube("+g.toGLSL()+", "+l.toGLSL()+"); // tex"),f+="\t}"):(l.sourceMask=7,f+=B.string(d.toGLSL()+" = textureCube("+g.toGLSL()+", "+l.toGLSL()+"); // tex"),e.addSaR(g,ta.SAMPLER_CUBE))}e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);null!=b&&(b[g.n]=g.toSamplerState());break;case 41:l.sourceMask=g.sourceMask=15;f+=B.string(d.toGLSL()+" = vec4(greaterThanEqual("+
l.toGLSL()+", "+g.toGLSL()+"))"+d.getWriteMask()+"; // ste");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 42:l.sourceMask=g.sourceMask=15;f+=B.string(d.toGLSL()+" = vec4(lessThan("+l.toGLSL()+", "+g.toGLSL()+"))"+d.getWriteMask()+"; // slt");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 44:l.sourceMask=g.sourceMask=15;f+=B.string(d.toGLSL()+" = vec4(equal("+l.toGLSL()+", "+g.toGLSL()+"))"+d.getWriteMask()+"; // seq");e.addDR(d,ta.VECTOR_4);
e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;case 45:l.sourceMask=g.sourceMask=15;f+=B.string(d.toGLSL()+" = vec4(notEqual("+l.toGLSL()+", "+g.toGLSL()+"))"+d.getWriteMask()+"; // sne");e.addDR(d,ta.VECTOR_4);e.addSR(l,ta.VECTOR_4);e.addSR(g,ta.VECTOR_4);break;default:throw u.thrown(new Oc("Opcode "+h));}f+="\n"}null==ne.limitedProfile&&(d=q.context.getParameter(7938),ne.limitedProfile=-1<d.indexOf("OpenGL ES")||-1<d.indexOf("WebGL"));a=""+B.string("// AGAL "+(c==Mf.VERTEX?"vertex":"fragment")+
" shader\n");a=ne.limitedProfile?a+"#version 100\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n":a+"#version 120\n";a+=B.string(e.toGLSL(!1));c==Mf.VERTEX&&(a+="uniform vec4 vcPositionScale;\n");a=a+"void main() {\n"+B.string(e.toGLSL(!0));a+=B.string(f);c==Mf.VERTEX&&(a+="\tgl_Position *= vcPositionScale;\n");return a+"}\n"};var il=function(){};g["openfl.display3D._internal._AGALConverter.DestRegister"]=il;il.__name__="openfl.display3D._internal._AGALConverter.DestRegister";
il.parse=function(a,b){var c=new il;c.programType=b;c.type=a>>>24&15;c.mask=a>>>16&15;c.n=a&65535;return c};il.prototype={mask:null,n:null,programType:null,type:null,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==Mf.VERTEX?"gl_Position":"gl_FragColor":ne.prefixFromType(this.type,this.programType)+this.n;a&&15!=this.mask&&(b+=
this.getWriteMask());return b},__class__:il};var Mf=P["openfl.display3D._internal._AGALConverter.ProgramType"]={__ename__:"openfl.display3D._internal._AGALConverter.ProgramType",__constructs__:null,VERTEX:{_hx_name:"VERTEX",_hx_index:0,__enum__:"openfl.display3D._internal._AGALConverter.ProgramType",toString:v},FRAGMENT:{_hx_name:"FRAGMENT",_hx_index:1,__enum__:"openfl.display3D._internal._AGALConverter.ProgramType",toString:v}};Mf.__constructs__=[Mf.VERTEX,Mf.FRAGMENT];Mf.__empty_constructs__=[Mf.VERTEX,
Mf.FRAGMENT];var Fq=function(){this.mEntries=[]};g["openfl.display3D._internal.RegisterMap"]=Fq;Fq.__name__="openfl.display3D._internal.RegisterMap";Fq.prototype={mEntries:null,add:function(a,b,c,d){for(var e=0,f=this.mEntries;e<f.length;){var h=f[e];++e;if(h.type==a&&h.name==b&&h.number==c){if(h.usage!=d)throw u.thrown(new Oc("Cannot use register in multiple ways yet (mat4/vec4)"));return}}h=new rt;h.type=a;h.name=b;h.number=c;h.usage=d;this.mEntries.push(h)},addDR:function(a,b){this.add(a.type,
a.toGLSL(!1),a.n,b)},addSaR:function(a,b){this.add(a.type,a.toGLSL(),a.n,b)},addSR:function(a,b,c){null==c&&(c=0);0!=a.d?(this.add(a.itype,ne.prefixFromType(a.itype,a.programType)+a.n,a.n,ta.VECTOR_4),this.add(a.type,ne.prefixFromType(a.type,a.programType)+a.o,a.o,ta.VECTOR_4_ARRAY)):this.add(a.type,a.toGLSL(!1,c),a.n+c,b)},getRegisterUsage:function(a){return 0!=a.d?ta.VECTOR_4_ARRAY:this.getUsage(a.type,a.toGLSL(!1),a.n)},getUsage:function(a,b,c){for(var d=0,e=this.mEntries;d<e.length;){var f=e[d];
++d;if(f.type==a&&f.name==b&&f.number==c)return f.usage}return ta.UNUSED},toGLSL:function(a){this.mEntries.sort(function(a,b){return a.number-b.number});this.mEntries.sort(function(a,b){return N.__cast(a.type,jh)-N.__cast(b.type,jh)});for(var b="",c=0,d=this.mEntries.length;c<d;){var e=c++;e=this.mEntries[e];if(!(a&&2!=e.type||!a&&2==e.type)&&3!=e.type){switch(e.type){case 0:b+="attribute ";break;case 1:b+="uniform ";break;case 2:b+="\t";break;case 3:break;case 4:b+="varying ";break;case 5:b+="uniform ";
break;default:throw u.thrown(new Oc);}switch(e.usage._hx_index){case 0:Ea.info("Missing switch patten: RegisterUsage.UNUSED",{fileName:"openfl/display3D/_internal/AGALConverter.hx",lineNumber:750,className:"openfl.display3D._internal.RegisterMap",methodName:"toGLSL"});break;case 1:b+="vec4 ";break;case 2:b+="mat4 ";break;case 3:b+="sampler2D ";break;case 5:b+="samplerCube ";break;case 7:b+="vec4 "}e.usage==ta.SAMPLER_2D_ALPHA?(b+="sampler2D ",b+=B.string(e.name),b+=";\n",b+="uniform ",b+="sampler2D ",
b+=B.string(e.name+"_alpha"),b+=";\n",b+="uniform ",b+="bool ",b+=B.string(e.name+"_alphaEnabled")):e.usage==ta.SAMPLER_CUBE_ALPHA?(b+="samplerCube ",b+=B.string(e.name),b+=";\n",b+="uniform ",b+="samplerCube ",b+=B.string(e.name+"_alpha"),b+=";\n",b+="uniform ",b+="bool ",b+=B.string(e.name+"_alphaEnabled")):b=e.usage==ta.VECTOR_4_ARRAY?b+B.string(e.name+"[128]"):b+B.string(e.name);b+=";\n"}}return b},__class__:Fq};var rt=function(){};g["openfl.display3D._internal._AGALConverter.RegisterMapEntry"]=
rt;rt.__name__="openfl.display3D._internal._AGALConverter.RegisterMapEntry";rt.prototype={name:null,number:null,type:null,usage:null,__class__:rt};var ta=P["openfl.display3D._internal._AGALConverter.RegisterUsage"]={__ename__:"openfl.display3D._internal._AGALConverter.RegisterUsage",__constructs__:null,UNUSED:{_hx_name:"UNUSED",_hx_index:0,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v},VECTOR_4:{_hx_name:"VECTOR_4",_hx_index:1,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",
toString:v},MATRIX_4_4:{_hx_name:"MATRIX_4_4",_hx_index:2,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v},SAMPLER_2D:{_hx_name:"SAMPLER_2D",_hx_index:3,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v},SAMPLER_2D_ALPHA:{_hx_name:"SAMPLER_2D_ALPHA",_hx_index:4,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v},SAMPLER_CUBE:{_hx_name:"SAMPLER_CUBE",_hx_index:5,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",
toString:v},SAMPLER_CUBE_ALPHA:{_hx_name:"SAMPLER_CUBE_ALPHA",_hx_index:6,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v},VECTOR_4_ARRAY:{_hx_name:"VECTOR_4_ARRAY",_hx_index:7,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v}};ta.__constructs__=[ta.UNUSED,ta.VECTOR_4,ta.MATRIX_4_4,ta.SAMPLER_2D,ta.SAMPLER_2D_ALPHA,ta.SAMPLER_CUBE,ta.SAMPLER_CUBE_ALPHA,ta.VECTOR_4_ARRAY];ta.__empty_constructs__=[ta.UNUSED,ta.VECTOR_4,ta.MATRIX_4_4,ta.SAMPLER_2D,
ta.SAMPLER_2D_ALPHA,ta.SAMPLER_CUBE,ta.SAMPLER_CUBE_ALPHA,ta.VECTOR_4_ARRAY];var jl=function(){};g["openfl.display3D._internal._AGALConverter.SamplerRegister"]=jl;jl.__name__="openfl.display3D._internal._AGALConverter.SamplerRegister";jl.parse=function(a,b){var c=new jl;c.programType=b;b=60;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>31,a.high>>b-32);b=b.low&15;c.f=b;b=56;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>
31,a.high>>b-32);b=b.low&15;c.m=b;b=52;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>31,a.high>>b-32);b=b.low&15;c.w=b;b=48;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>31,a.high>>b-32);b=b.low&15;c.s=b;b=44;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>31,a.high>>b-32);b=b.low&15;c.d=b;b=40;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>
31,a.high>>b-32);b=b.low&15;c.t=b;b=32;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>31,a.high>>b-32);b=b.low&15;c.type=b;b=16;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>31,a.high>>b-32);b=b.low&255;c.b=b;b=a.low&65535;c.n=b;return c};jl.prototype={b:null,d:null,f:null,m:null,n:null,programType:null,s:null,t:null,type:null,w:null,toGLSL:function(){return ne.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 u.thrown(new Oc);}switch(this.m){case 0:var b=2;break;case 1:b=1;break;case 2:b=0;break;default:throw u.thrown(new Oc);}switch(this.w){case 0:var c=0;break;case 1:c=2;break;default:throw u.thrown(new Oc);}return new Zj(c,a,b,(this.b<<24>>24)/8,4==(this.s&4),1==(this.s&1),2==this.t)},__class__:jl};var bk=function(){};g["openfl.display3D._internal._AGALConverter.SourceRegister"]=bk;bk.__name__="openfl.display3D._internal._AGALConverter.SourceRegister";bk.parse=
function(a,b,c){var d=new bk;d.programType=b;b=63;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>31,a.high>>b-32);b=b.low&1;d.d=b;b=48;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>31,a.high>>b-32);b=b.low&3;d.q=b;b=40;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>31,a.high>>b-32);b=b.low&15;d.itype=b;b=32;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>
b):new zb(a.high>>31,a.high>>b-32);b=b.low&15;d.type=b;b=24;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(a.high>>31,a.high>>b-32);b=b.low&255;d.s=b;b=16;b=0==b?new zb(a.high,a.low):32>b?new zb(a.high>>b,a.high<<32-b|a.low>>>b):new zb(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};bk.prototype={d:null,itype:null,n:null,o:null,programType:null,q:null,s:null,sourceMask:null,type:null,toGLSL:function(a,b){null==b&&(b=0);null==
a&&(a=!0);if(3==this.type)return this.programType==Mf.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=ne.prefixFromType(this.type,this.programType);if(0==this.d)c+=this.n+b;else{c+=this.o;var e="";switch(this.q){case 0:e="x";break;case 1:e="y";break;case 2:e="z";break;case 3:e="w"}e=ne.prefixFromType(this.itype,this.programType)+this.n+"."+e;c+="[ int("+e+") +"+b+"]"}a&&""!=d&&(c+="."+d);return c},__class__:bk};var mn=function(a,b){this.version=0;a.position=b;var c=a.readUTFBytes(3);
a.position=b;if("ATF"!=c)throw u.thrown(new Oc("ATF signature not found"));255==a.b[b+6]?(this.version=a.b[b+7],a.position=b+8,c=this.__readUInt32(a)):(this.version=0,a.position=b+3,c=this.__readUInt24(a));if(za.gt(N.__cast(b+c,jh),Mb.get_length(a)))throw u.thrown(new Oc("ATF length exceeds byte array length"));this.data=a};g["openfl.display3D._internal.ATFReader"]=mn;mn.__name__="openfl.display3D._internal.ATFReader";mn.prototype={atfFormat:null,cubeMap:null,data:null,height:null,mipCount:null,version:null,
width:null,readHeader:function(a,b,c){var d=this.data.readUnsignedByte(),e=d>>>7;if(!c&&0!=e)throw u.thrown(new Oc("ATF Cube map not expected"));if(c&&1!=e)throw u.thrown(new Oc("ATF Cube map expected"));this.cubeMap=c;this.atfFormat=d&127;3!=this.atfFormat&&5!=this.atfFormat&&Ea.warn("Only ATF block compressed textures without JPEG-XR+LZMA are supported",{fileName:"openfl/display3D/_internal/ATFReader.hx",lineNumber:96,className:"openfl.display3D._internal.ATFReader",methodName:"readHeader"});this.width=
1<<this.data.readUnsignedByte();this.height=1<<this.data.readUnsignedByte();if(this.width!=a||this.height!=b)throw u.thrown(new Oc("ATF width and height dont match"));this.mipCount=this.data.readUnsignedByte();return 5==this.atfFormat},readTextures:function(a){for(var b=3>this.version?3:4,c=0,d=this.cubeMap?6:1;c<d;)for(var e=c++,f=0,h=this.mipCount;f<h;)for(var l=f++,m=0,g=b;m<g;){var k=m++,n=0==this.version?this.__readUInt24(this.data):this.__readUInt32(this.data);if(za.gt(this.data.position+n,
Mb.get_length(this.data)))throw u.thrown(new Oc("Block length exceeds ATF file length"));if(za.gt(n,0)){var q=new Qa(new ArrayBuffer(n)),p=this.data,r=Mb.fromBytes(q),v=0,x=n;null==x&&(x=0);null==v&&(v=0);p.readBytes(r,v,x);a(e,l,k,this.width>>l,this.height>>l,n,q)}}},__readUInt24:function(a){var b=a.readUnsignedByte()<<16;b|=a.readUnsignedByte()<<8;return b|=a.readUnsignedByte()},__readUInt32:function(a){var b=a.readUnsignedByte()<<24;b|=a.readUnsignedByte()<<16;b|=a.readUnsignedByte()<<8;return b|=
a.readUnsignedByte()},__class__:mn};var hn=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 ha;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"]=hn;hn.__name__="openfl.display3D._internal.Context3DState";hn.prototype={backBufferEnableDepthAndStencil:null,blendDestinationAlphaFactor:null,blendSourceAlphaFactor:null,blendDestinationRGBFactor:null,blendSourceRGBFactor:null,colorMaskRed:null,colorMaskGreen:null,colorMaskBlue:null,colorMaskAlpha:null,
culling:null,depthCompareMode:null,depthMask:null,program:null,renderToTexture:null,renderToTextureAntiAlias:null,renderToTextureDepthStencil:null,renderToTextureSurfaceSelector:null,samplerStates:null,scissorEnabled:null,scissorRectangle:null,stencilCompareMode:null,stencilDepthFail:null,stencilFail:null,stencilPass:null,stencilReadMask:null,stencilReferenceValue:null,stencilTriangleFace:null,stencilWriteMask:null,textures:null,shader:null,__currentGLArrayBuffer:null,__currentGLElementArrayBuffer:null,
__currentGLFramebuffer:null,__currentGLTexture2D:null,__currentGLTextureCubeMap:null,__enableGLBlend:null,__enableGLCullFace:null,__enableGLDepthTest:null,__enableGLScissorTest:null,__enableGLStencilTest:null,__frontFaceGLCCW:null,__glBlendEquation:null,__primaryGLFramebuffer:null,__rttDepthGLRenderbuffer:null,__rttGLFramebuffer:null,__rttGLRenderbuffer:null,__rttStencilGLRenderbuffer:null,__class__:hn};var Wb=function(a){L.call(this);this.__context=a;var b=this.__context.gl;this.__textureID=b.createTexture();
this.__textureContext=this.__context.__context;if(null==Wb.__supportsBGRA){Wb.__textureInternalFormat=b.RGBA;Wb.__supportsBGRA=!1;Wb.__textureFormat=b.RGBA;Wb.__compressedFormats=new Bc;Wb.__compressedFormatsAlpha=new Bc;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;Wb.__compressedFormats.h[0]=d;d=a.COMPRESSED_RGBA_S3TC_DXT5_EXT;Wb.__compressedFormatsAlpha.h[0]=
d}null!=c&&(d=c.COMPRESSED_RGB_ETC1_WEBGL,Wb.__compressedFormats.h[2]=d,d=c.COMPRESSED_RGB_ETC1_WEBGL,Wb.__compressedFormatsAlpha.h[2]=d);null!=b&&(d=b.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,Wb.__compressedFormats.h[1]=d,d=b.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG,Wb.__compressedFormatsAlpha.h[1]=d)}this.__internalFormat=Wb.__textureInternalFormat;this.__format=Wb.__textureFormat};g["openfl.display3D.textures.TextureBase"]=Wb;Wb.__name__="openfl.display3D.textures.TextureBase";Wb.__super__=L;Wb.prototype=r(L.prototype,
{__alphaTexture:null,__context:null,__format:null,__glDepthRenderbuffer:null,__glFramebuffer:null,__glStencilRenderbuffer:null,__height:null,__internalFormat:null,__optimizeForRenderToTexture:null,__samplerState:null,__streamingLevels:null,__textureContext:null,__textureID:null,__textureTarget:null,__width:null,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&&Ea.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!=Sb.__glDepthStencil?(this.__glStencilRenderbuffer=this.__glDepthRenderbuffer=b.createRenderbuffer(),b.bindRenderbuffer(b.RENDERBUFFER,this.__glDepthRenderbuffer),b.renderbufferStorage(b.RENDERBUFFER,Sb.__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&&Ea.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},__getImage:function(a){var b=a.image;if(!a.__isValid||null==b)return null;ua.sync(b,!1);a=this.__context.gl;b.type==hd.DATA||b.get_premultiplied()?
!b.get_premultiplied()&&b.get_transparent()&&(a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),b=b.clone(),b.set_premultiplied(!0)):a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1);0!=b.get_format()&&(b=b.clone(),b.set_format(0),b.buffer.premultiplied=!0);return b},__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 u.thrown(new Fc("wrap bad enum"));}var e=5==a.filter?b.NEAREST:b.LINEAR;switch(a.mipfilter){case 0:var f=5==a.filter?b.NEAREST_MIPMAP_LINEAR:b.LINEAR_MIPMAP_LINEAR;break;case 1:f=5==a.filter?b.NEAREST_MIPMAP_NEAREST:b.LINEAR_MIPMAP_NEAREST;break;case 2:f=5==a.filter?b.NEAREST:
b.LINEAR;break;default:throw u.thrown(new Fc("mipfiter bad enum"));}b.texParameteri(this.__textureTarget,b.TEXTURE_MIN_FILTER,f);b.texParameteri(this.__textureTarget,b.TEXTURE_MAG_FILTER,e);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=Wb.__textureInternalFormat,d=Wb.__textureFormat;this.__context.__bindGLTexture2D(this.__textureID);a.type==hd.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==hd.DATA?cc.texImage2D(b,b.TEXTURE_2D,0,c,a.buffer.width,a.buffer.height,0,d,b.UNSIGNED_BYTE,a.get_data()):cc.texImage2D(b,b.TEXTURE_2D,0,c,d,b.UNSIGNED_BYTE,a.get_src());
this.__context.__bindGLTexture2D(null)}},__class__:Wb});var hl=function(a,b,c,d,e){Wb.call(this,a);this.__width=this.__height=this.__size=b;this.__optimizeForRenderToTexture=d;this.__streamingLevels=e;this.__textureTarget=this.__context.gl.TEXTURE_CUBE_MAP;this.__uploadedSides=0};g["openfl.display3D.textures.CubeTexture"]=hl;hl.__name__="openfl.display3D.textures.CubeTexture";hl.__super__=Wb;hl.prototype=r(Wb.prototype,{__framebufferSurface:null,__size:null,__uploadedSides:null,uploadCompressedTextureFromByteArray:function(a,
b,c){null==c&&(c=!1);var d=this;c?Qb.delay(function(){d.__uploadCompressedTextureFromByteArray(a,b);var c=new W("textureReady");d.dispatchEvent(c)},1):this.__uploadCompressedTextureFromByteArray(a,b)},uploadFromBitmapData:function(a,b,c,d){null==c&&(c=0);if(null!=a&&(d=this.__size>>c,0!=d&&(a=this.__getImage(a),null!=a)))if(0==c&&null!=a.buffer&&null==a.buffer.data&&null!=a.buffer.get_src()){var e=this.__context.gl;d=this.__size>>c;0!=d&&(d=this.__sideToTarget(b),this.__context.__bindGLTextureCubeMap(this.__textureID),
cc.texImage2D(e,d,c,this.__internalFormat,this.__format,e.UNSIGNED_BYTE,a.buffer.get_src()),this.__context.__bindGLTextureCubeMap(null),this.__uploadedSides|=1<<b)}else this.uploadFromTypedArray(a.get_data(),b,c)},uploadFromByteArray:function(a,b,c,d){null==d&&(d=0);0==b?this.uploadFromTypedArray(a.b,c,d):(a=Mb.toArrayBuffer(a),null==b&&(b=0),b=null!=a?new Uint8Array(a,b):null,this.uploadFromTypedArray(b,c,d))},uploadFromTypedArray:function(a,b,c){null==c&&(c=0);if(null!=a){var d=this.__context.gl,
e=this.__size>>c;if(0!=e){var f=this.__sideToTarget(b);this.__context.__bindGLTextureCubeMap(this.__textureID);cc.texImage2D(d,f,c,this.__internalFormat,e,e,0,this.__format,d.UNSIGNED_BYTE,a);this.__context.__bindGLTextureCubeMap(null);this.__uploadedSides|=1<<b}}},__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 e=d.checkFramebufferStatus(d.FRAMEBUFFER);e!=d.FRAMEBUFFER_COMPLETE&&Ea.error("Error: Context3D.setRenderToTexture status:"+e+" width:"+this.__width+" height:"+this.__height,{fileName:"openfl/display3D/textures/CubeTexture.hx",lineNumber:278,className:"openfl.display3D.textures.CubeTexture",methodName:"__getGLFramebuffer"})}return Wb.prototype.__getGLFramebuffer.call(this,
a,b,c)},__setSamplerState:function(a){if(Wb.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!=Sb.__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>Sb.__glMaxTextureMaxAnisotropy&&(a=Sb.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_CUBE_MAP,Sb.__glTextureMaxAnisotropy,
a)}return!0}return!1},__sideToTarget:function(a){var b=this.__context.gl;switch(a){case 0:return b.TEXTURE_CUBE_MAP_POSITIVE_X;case 1:return b.TEXTURE_CUBE_MAP_NEGATIVE_X;case 2:return b.TEXTURE_CUBE_MAP_POSITIVE_Y;case 3:return b.TEXTURE_CUBE_MAP_NEGATIVE_Y;case 4:return b.TEXTURE_CUBE_MAP_POSITIVE_Z;case 5:return b.TEXTURE_CUBE_MAP_NEGATIVE_Z;default:throw u.thrown(new Oc);}},__uploadCompressedTextureFromByteArray:function(a,b){var c=this;a=new mn(a,b);var d=a.readHeader(this.__size,this.__size,
!0),e=this.__context.gl;this.__context.__bindGLTextureCubeMap(this.__textureID);var f=!1;a.readTextures(function(a,b,h,l,m,g,k){var n=d?Wb.__compressedFormatsAlpha.h[h]:Wb.__compressedFormats.h[h];if(0!=n)if(f=!0,a=c.__sideToTarget(a),c.__format=n,c.__internalFormat=n,d&&2==h){g=g/2|0;var q=h=null,p=null,t=null,r=k.b.buffer,v=0;null==v&&(v=0);h=null!=h?new Uint8Array(h):null!=q?new Uint8Array(q):null!=p?new Uint8Array(p.__array):null!=t?new Uint8Array(t):null!=r?null==g?new Uint8Array(r,v):new Uint8Array(r,
v,g):null;cc.compressedTexImage2D(e,a,b,c.__internalFormat,l,m,0,h);var u=new hl(c.__context,c.__size,3,c.__optimizeForRenderToTexture,c.__streamingLevels);u.__format=n;u.__internalFormat=n;c.__context.__bindGLTextureCubeMap(u.__textureID);t=p=q=h=null;r=k.b.buffer;v=g;null==v&&(v=0);h=null!=h?new Uint8Array(h):null!=q?new Uint8Array(q):null!=p?new Uint8Array(p.__array):null!=t?new Uint8Array(t):null!=r?null==g?new Uint8Array(r,v):new Uint8Array(r,v,g):null;cc.compressedTexImage2D(e,a,b,u.__internalFormat,
l,m,0,h);c.__alphaTexture=u}else t=p=q=h=null,r=k.b.buffer,v=0,null==v&&(v=0),h=null!=h?new Uint8Array(h):null!=q?new Uint8Array(q):null!=p?new Uint8Array(p.__array):null!=t?new Uint8Array(t):null!=r?null==g?new Uint8Array(r,v):new Uint8Array(r,v,g):null,cc.compressedTexImage2D(e,a,b,c.__internalFormat,l,m,0,h)});if(!f){a=this.__size*this.__size*4;var h=b=null,l=null,m=null,g=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):null!=
m?null==g?new Uint8Array(m,0):new Uint8Array(m,0,g):null;cc.texImage2D(e,this.__sideToTarget(0),0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a);a=this.__size*this.__size*4;g=m=l=h=b=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):null!=m?null==g?new Uint8Array(m,0):new Uint8Array(m,0,g):null;cc.texImage2D(e,this.__sideToTarget(1),0,this.__internalFormat,this.__size,this.__size,0,this.__format,
e.UNSIGNED_BYTE,a);a=this.__size*this.__size*4;g=m=l=h=b=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):null!=m?null==g?new Uint8Array(m,0):new Uint8Array(m,0,g):null;cc.texImage2D(e,this.__sideToTarget(2),0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a);a=this.__size*this.__size*4;g=m=l=h=b=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):
null!=m?null==g?new Uint8Array(m,0):new Uint8Array(m,0,g):null;cc.texImage2D(e,this.__sideToTarget(3),0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a);a=this.__size*this.__size*4;g=m=l=h=b=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):null!=m?null==g?new Uint8Array(m,0):new Uint8Array(m,0,g):null;cc.texImage2D(e,this.__sideToTarget(4),0,this.__internalFormat,this.__size,this.__size,0,this.__format,
e.UNSIGNED_BYTE,a);a=this.__size*this.__size*4;g=m=l=h=b=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):null!=m?null==g?new Uint8Array(m,0):new Uint8Array(m,0,g):null;cc.texImage2D(e,this.__sideToTarget(5),0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a)}this.__context.__bindGLTextureCubeMap(null)},__class__:hl});var jn=function(a,b,c,d,e){Wb.call(this,a);this.__width=b;this.__height=c;this.__optimizeForRenderToTexture=
e;this.__textureTarget=this.__context.gl.TEXTURE_2D;this.uploadFromTypedArray(null);e&&this.__getGLFramebuffer(!0,0,0)};g["openfl.display3D.textures.RectangleTexture"]=jn;jn.__name__="openfl.display3D.textures.RectangleTexture";jn.__super__=Wb;jn.prototype=r(Wb.prototype,{uploadFromBitmapData:function(a){if(null!=a&&(a=this.__getImage(a),null!=a))if(null!=a.buffer&&null==a.buffer.data&&null!=a.buffer.get_src()){var b=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);cc.texImage2D(b,
this.__textureTarget,0,this.__internalFormat,this.__format,b.UNSIGNED_BYTE,a.buffer.get_src());this.__context.__bindGLTexture2D(null)}else this.uploadFromTypedArray(a.get_data())},uploadFromByteArray:function(a,b){0==b?this.uploadFromTypedArray(a.b):(a=Mb.toArrayBuffer(a),null==b&&(b=0),b=null!=a?new Uint8Array(a,b):null,this.uploadFromTypedArray(b))},uploadFromTypedArray:function(a){var b=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);cc.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(Wb.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;if(0!=Sb.__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>Sb.__glMaxTextureMaxAnisotropy&&(a=Sb.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_2D,Sb.__glTextureMaxAnisotropy,a)}return!0}return!1},
__class__:jn});var ak=function(a,b,c,d,e,f){Wb.call(this,a);this.__width=b;this.__height=c;this.__optimizeForRenderToTexture=e;this.__streamingLevels=f;a=this.__context.gl;this.__textureTarget=a.TEXTURE_2D;this.__context.__bindGLTexture2D(this.__textureID);cc.texImage2D(a,this.__textureTarget,0,this.__internalFormat,this.__width,this.__height,0,this.__format,a.UNSIGNED_BYTE,null);this.__context.__bindGLTexture2D(null);e&&this.__getGLFramebuffer(!0,0,0)};g["openfl.display3D.textures.Texture"]=ak;ak.__name__=
"openfl.display3D.textures.Texture";ak.__super__=Wb;ak.prototype=r(Wb.prototype,{uploadCompressedTextureFromByteArray:function(a,b,c){null==c&&(c=!1);var d=this;c?Qb.delay(function(){d.__uploadCompressedTextureFromByteArray(a,b);var c=new W("textureReady");d.dispatchEvent(c)},1):this.__uploadCompressedTextureFromByteArray(a,b)},uploadFromBitmapData:function(a,b,c){null==b&&(b=0);if(null!=a){c=this.__width>>b;var d=this.__height>>b;if(0!=c||0!=d){0==c&&(c=1);0==d&&(d=1);if(a.width!=c||a.height!=d)c=
new xb(c,d,!0,0),c.draw(a),a=c;a=this.__getImage(a);if(null!=a)if(0==b&&null!=a.buffer&&null==a.buffer.data&&null!=a.buffer.get_src()){var e=this.__context.gl;c=this.__width>>b;d=this.__height>>b;if(0!=c||0!=d)this.__context.__bindGLTexture2D(this.__textureID),cc.texImage2D(e,this.__textureTarget,b,this.__internalFormat,this.__format,e.UNSIGNED_BYTE,a.buffer.get_src()),this.__context.__bindGLTexture2D(null)}else this.uploadFromTypedArray(a.get_data(),b)}}},uploadFromByteArray:function(a,b,c){null==
c&&(c=0);0==b?this.uploadFromTypedArray(a.b,c):(a=Mb.toArrayBuffer(a),null==b&&(b=0),b=null!=a?new Uint8Array(a,b):null,this.uploadFromTypedArray(b,c))},uploadFromTypedArray:function(a,b){null==b&&(b=0);if(null!=a){var c=this.__context.gl,d=this.__width>>b,e=this.__height>>b;if(0!=d||0!=e)0==d&&(d=1),0==e&&(e=1),this.__context.__bindGLTexture2D(this.__textureID),cc.texImage2D(c,this.__textureTarget,b,this.__internalFormat,d,e,0,this.__format,c.UNSIGNED_BYTE,a),this.__context.__bindGLTexture2D(null)}},
__setSamplerState:function(a){if(Wb.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!=Sb.__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>Sb.__glMaxTextureMaxAnisotropy&&(a=Sb.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_2D,Sb.__glTextureMaxAnisotropy,a)}return!0}return!1},
__uploadCompressedTextureFromByteArray:function(a,b){var c=this;a=new mn(a,b);var d=a.readHeader(this.__width,this.__height,!1),e=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);var f=!1;a.readTextures(function(a,b,m,g,k,n,q){a=d?Wb.__compressedFormatsAlpha.h[m]:Wb.__compressedFormats.h[m];if(0!=a)if(f=!0,c.__format=a,c.__internalFormat=a,d&&2==m){n=n/2|0;var h=m=null,l=null,p=null,t=q.b.buffer,r=0;null==r&&(r=0);m=null!=m?new Uint8Array(m):null!=h?new Uint8Array(h):null!=l?new Uint8Array(l.__array):
null!=p?new Uint8Array(p):null!=t?null==n?new Uint8Array(t,r):new Uint8Array(t,r,n):null;cc.compressedTexImage2D(e,c.__textureTarget,b,c.__internalFormat,g,k,0,m);var v=new ak(c.__context,c.__width,c.__height,3,c.__optimizeForRenderToTexture,c.__streamingLevels);v.__format=a;v.__internalFormat=a;c.__context.__bindGLTexture2D(v.__textureID);p=l=h=m=null;t=q.b.buffer;r=n;null==r&&(r=0);m=null!=m?new Uint8Array(m):null!=h?new Uint8Array(h):null!=l?new Uint8Array(l.__array):null!=p?new Uint8Array(p):
null!=t?null==n?new Uint8Array(t,r):new Uint8Array(t,r,n):null;cc.compressedTexImage2D(e,v.__textureTarget,b,v.__internalFormat,g,k,0,m);c.__alphaTexture=v}else p=l=h=m=null,t=q.b.buffer,r=0,null==r&&(r=0),m=null!=m?new Uint8Array(m):null!=h?new Uint8Array(h):null!=l?new Uint8Array(l.__array):null!=p?new Uint8Array(p):null!=t?null==n?new Uint8Array(t,r):new Uint8Array(t,r,n):null,cc.compressedTexImage2D(e,c.__textureTarget,b,c.__internalFormat,g,k,0,m)});f||(a=this.__width*this.__height*4,a=null!=
a?new Uint8Array(a):null,cc.texImage2D(e,this.__textureTarget,0,this.__internalFormat,this.__width,this.__height,0,this.__format,e.UNSIGNED_BYTE,a));this.__context.__bindGLTexture2D(null)},__class__:ak});var Dq=function(a){Wb.call(this,a);this.__textureTarget=this.__context.gl.TEXTURE_2D};g["openfl.display3D.textures.VideoTexture"]=Dq;Dq.__name__="openfl.display3D.textures.VideoTexture";Dq.__super__=Wb;Dq.prototype=r(Wb.prototype,{videoHeight:null,videoWidth:null,__cacheTime:null,__netStream:null,
attachNetStream:function(a){var b=this;null!=this.__netStream&&this.__netStream.__video.removeEventListener("canplay",k(this,this.__onCanPlay),!1);this.__cacheTime=-1;this.__netStream=a;null!=this.__netStream&&(2<=this.__netStream.__video.readyState?Qb.delay(function(){b.__textureReady()},0):this.__netStream.__video.addEventListener("canplay",k(this,this.__onCanPlay),!1))},dispose:function(){null!=this.__netStream&&null!=this.__netStream.__video&&this.__netStream.__video.removeEventListener("timeupdate",
k(this,this.__onTimeUpdate));Wb.prototype.dispose.call(this)},__onCanPlay:function(a){this.__netStream.__video.addEventListener("timeupdate",k(this,this.__onTimeUpdate));this.__textureReady()},__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);cc.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 W("textureReady");this.dispatchEvent(a)},__class__:Dq});var Fc=function(a,b){null==b&&(b=0);null==a&&(a="");this.message=a;this.errorID=b;this.name=
"Error"};g["openfl.errors.Error"]=Fc;Fc.__name__="openfl.errors.Error";Fc.prototype={errorID:null,message:null,name:null,getStackTrace:function(){return Cf.toString(Cf.exceptionStack())},toString:function(){return null!=this.message?this.message:"Error"},__class__:Fc};var uk=function(a){null==a&&(a="");Fc.call(this,a);this.name="ArgumentError"};g["openfl.errors.ArgumentError"]=uk;uk.__name__="openfl.errors.ArgumentError";uk.__super__=Fc;uk.prototype=r(Fc.prototype,{__class__:uk});var kl=function(a){null==
a&&(a="");Fc.call(this,a);this.name="IOError"};g["openfl.errors.IOError"]=kl;kl.__name__="openfl.errors.IOError";kl.__super__=Fc;kl.prototype=r(Fc.prototype,{__class__:kl});var ci=function(a,b){kl.call(this,"End of file was encountered");this.name="EOFError";this.errorID=2030};g["openfl.errors.EOFError"]=ci;ci.__name__="openfl.errors.EOFError";ci.__super__=kl;ci.prototype=r(kl.prototype,{__class__:ci});var Oc=function(a){null==a&&(a="");Fc.call(this,a,0);this.name="IllegalOperationError"};g["openfl.errors.IllegalOperationError"]=
Oc;Oc.__name__="openfl.errors.IllegalOperationError";Oc.__super__=Fc;Oc.prototype=r(Fc.prototype,{__class__:Oc});var Bj=function(a){null==a&&(a="");Fc.call(this,a,0);this.name="RangeError"};g["openfl.errors.RangeError"]=Bj;Bj.__name__="openfl.errors.RangeError";Bj.__super__=Fc;Bj.prototype=r(Fc.prototype,{__class__:Bj});var qm=function(a){null==a&&(a="");Fc.call(this,a,0);this.name="TypeError"};g["openfl.errors.TypeError"]=qm;qm.__name__="openfl.errors.TypeError";qm.__super__=Fc;qm.prototype=r(Fc.prototype,
{__class__:qm});var di=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!1);null==b&&(b=!1);W.call(this,a,b,c);this.activating=d};g["openfl.events.ActivityEvent"]=di;di.__name__="openfl.events.ActivityEvent";di.__super__=W;di.prototype=r(W.prototype,{activating:null,clone:function(){var a=new di(this.type,this.bubbles,this.cancelable,this.activating);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("ActivityEvent",
["type","bubbles","cancelable","activating"])},__init:function(){W.prototype.__init.call(this);this.activating=!1},__class__:di});var Ye=function(a,b,c,d){null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);W.call(this,a,b,c);this.text=d};g["openfl.events.TextEvent"]=Ye;Ye.__name__="openfl.events.TextEvent";Ye.__super__=W;Ye.prototype=r(W.prototype,{text:null,clone:function(){var a=new Ye(this.type,this.bubbles,this.cancelable,this.text);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=
this.eventPhase;return a},toString:function(){return this.__formatToString("TextEvent",["type","bubbles","cancelable","text"])},__init:function(){W.prototype.__init.call(this);this.text=""},__class__:Ye});var qe=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);Ye.call(this,a,b,c,d);this.errorID=e};g["openfl.events.ErrorEvent"]=qe;qe.__name__="openfl.events.ErrorEvent";qe.__super__=Ye;qe.prototype=r(Ye.prototype,{errorID:null,clone:function(){var a=new qe(this.type,
this.bubbles,this.cancelable,this.text,this.errorID);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("ErrorEvent",["type","bubbles","cancelable","text","errorID"])},__init:function(){Ye.prototype.__init.call(this);this.errorID=0},__class__:qe});var pm=function(a){this.active=!1;this.reset(a)};g["openfl.events._EventDispatcher.DispatchIterator"]=pm;pm.__name__="openfl.events._EventDispatcher.DispatchIterator";
pm.prototype={active:null,index:null,isCopy:null,list:null,copy:function(){this.isCopy||(this.list=this.list.slice(),this.isCopy=!0)},hasNext:function(){return this.index<this.list.length},next:function(){return this.list[this.index++]},remove:function(a,b){if(this.active)if(this.isCopy){b=this.index;for(var c=this.list.length;b<c;){var d=b++;if(this.list[d]==a){this.list.splice(d,1);break}}}else b<this.index&&this.index--},reset:function(a){this.list=a;this.isCopy=!1;this.index=0},start:function(){this.active=
!0},stop:function(){this.active=!1},__class__:pm};var om=function(a,b,c){this.callback=a;this.useCapture=b;this.priority=c};g["openfl.events._EventDispatcher.Listener"]=om;om.__name__="openfl.events._EventDispatcher.Listener";om.prototype={callback:null,priority:null,useCapture:null,match:function(a,b){return this.callback==a?this.useCapture==b:!1},__class__:om};var tg=function(a,b,c,d,e,f){null==f&&(f=0);null==e&&(e=!1);null==c&&(c=!1);null==b&&(b=!1);W.call(this,a,b,c);this.keyCode=f;this.shiftKey=
e;this.relatedObject=d};g["openfl.events.FocusEvent"]=tg;tg.__name__="openfl.events.FocusEvent";tg.__super__=W;tg.prototype=r(W.prototype,{keyCode:null,relatedObject:null,shiftKey:null,clone:function(){var a=new tg(this.type,this.bubbles,this.cancelable,this.relatedObject,this.shiftKey,this.keyCode);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("FocusEvent","type bubbles cancelable relatedObject shiftKey keyCode".split(" "))},
__init:function(){W.prototype.__init.call(this);this.keyCode=0;this.shiftKey=!1;this.relatedObject=null},__class__:tg});var gh=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=!1);null==c&&(c=!1);null==b&&(b=!1);di.call(this,a,b,c);this.fullScreen=d;this.interactive=e};g["openfl.events.FullScreenEvent"]=gh;gh.__name__="openfl.events.FullScreenEvent";gh.__super__=di;gh.prototype=r(di.prototype,{fullScreen:null,interactive:null,clone:function(){var a=new gh(this.type,this.bubbles,this.cancelable,this.fullScreen,
this.interactive);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("FullscreenEvent",["type","bubbles","cancelable","fullscreen","interactive"])},__init:function(){di.prototype.__init.call(this);this.interactive=this.fullScreen=!1},__class__:gh});var rh=function(a,b,c,d){null==c&&(c=!1);null==b&&(b=!0);W.call(this,a,b,c);this.device=d};g["openfl.events.GameInputEvent"]=rh;rh.__name__="openfl.events.GameInputEvent";
rh.__super__=W;rh.prototype=r(W.prototype,{device:null,clone:function(){var a=new rh(this.type,this.bubbles,this.cancelable,this.device);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("GameInputEvent",["type","bubbles","cancelable","device"])},__init:function(){W.prototype.__init.call(this);this.device=null},__class__:rh});var Mj=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);null==
b&&(b=!1);this.status=d;this.redirected=e;W.call(this,a,b,c)};g["openfl.events.HTTPStatusEvent"]=Mj;Mj.__name__="openfl.events.HTTPStatusEvent";Mj.__super__=W;Mj.prototype=r(W.prototype,{redirected:null,responseHeaders:null,responseURL:null,status:null,clone:function(){var a=new Mj(this.type,this.bubbles,this.cancelable,this.status,this.redirected);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("HTTPStatusEvent",
["type","bubbles","cancelable","status","redirected"])},__init:function(){W.prototype.__init.call(this);this.status=0;this.redirected=!1},__class__:Mj});var eg=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d="");null==c&&(c=!1);null==b&&(b=!0);qe.call(this,a,b,c,d,e)};g["openfl.events.IOErrorEvent"]=eg;eg.__name__="openfl.events.IOErrorEvent";eg.__super__=qe;eg.prototype=r(qe.prototype,{clone:function(){var a=new eg(this.type,this.bubbles,this.cancelable,this.text,this.errorID);a.target=this.target;
a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("IOErrorEvent",["type","bubbles","cancelable","text","errorID"])},__class__:eg});var Ii=function(a,b,c,d,e,f,h,l,m,g,k){null==k&&(k=!1);null==g&&(g=!1);null==m&&(m=!1);null==l&&(l=!1);null==h&&(h=!1);null==e&&(e=0);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!1);W.call(this,a,b,c);this.charCode=d;this.keyCode=e;this.keyLocation=null!=f?f:0;this.ctrlKey=h;this.altKey=l;this.shiftKey=
m;this.controlKey=g;this.commandKey=k};g["openfl.events.KeyboardEvent"]=Ii;Ii.__name__="openfl.events.KeyboardEvent";Ii.__super__=W;Ii.prototype=r(W.prototype,{altKey:null,charCode:null,commandKey:null,controlKey:null,ctrlKey:null,keyCode:null,keyLocation:null,shiftKey:null,clone:function(){var a=new Ii(this.type,this.bubbles,this.cancelable,this.charCode,this.keyCode,this.keyLocation,this.ctrlKey,this.altKey,this.shiftKey,this.controlKey,this.commandKey);a.target=this.target;a.currentTarget=this.currentTarget;
a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("KeyboardEvent","type bubbles cancelable charCode keyCode keyLocation ctrlKey altKey shiftKey".split(" "))},__init:function(){W.prototype.__init.call(this);this.keyLocation=this.keyCode=this.charCode=0;this.commandKey=this.controlKey=this.shiftKey=this.altKey=this.ctrlKey=!1},__class__:Ii});var eb=function(a,b,c,d,e,f,h,l,m,g,k,n,q){null==q&&(q=0);null==n&&(n=!1);null==k&&(k=0);null==g&&(g=!1);null==m&&(m=!1);
null==l&&(l=!1);null==h&&(h=!1);null==e&&(e=0);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!0);W.call(this,a,b,c);this.shiftKey=m;this.altKey=l;this.ctrlKey=h;this.bubbles=b;this.relatedObject=f;this.delta=k;this.localX=d;this.localY=e;this.buttonDown=g;this.commandKey=n;this.clickCount=q;this.isRelatedObjectInaccessible=!1;this.stageY=this.stageX=NaN};g["openfl.events.MouseEvent"]=eb;eb.__name__="openfl.events.MouseEvent";eb.__create=function(a,b,c,d,e,f,h){null==h&&(h=0);a=new eb(a,!0,!1,e.x,e.y,
null,eb.__ctrlKey,eb.__altKey,eb.__shiftKey,eb.__buttonDown,h,eb.__commandKey);a.stageX=c;a.stageY=d;a.target=f;return a};eb.__super__=W;eb.prototype=r(W.prototype,{altKey:null,buttonDown:null,commandKey:null,clickCount:null,ctrlKey:null,delta:null,isRelatedObjectInaccessible:null,localX:null,localY:null,relatedObject:null,shiftKey:null,stageX:null,stageY:null,clone:function(){var a=new eb(this.type,this.bubbles,this.cancelable,this.localX,this.localY,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,
this.buttonDown,this.delta,this.commandKey,this.clickCount);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("MouseEvent","type bubbles cancelable localX localY relatedObject ctrlKey altKey shiftKey buttonDown delta".split(" "))},updateAfterEvent:function(){},__init:function(){W.prototype.__init.call(this);this.bubbles=this.ctrlKey=this.altKey=this.shiftKey=!1;this.relatedObject=null;this.localY=this.localX=
this.delta=0;this.commandKey=this.buttonDown=!1;this.clickCount=0;this.isRelatedObjectInaccessible=!1;this.stageY=this.stageX=NaN},__class__:eb});var ck=function(a,b,c,d){null==c&&(c=!1);null==b&&(b=!1);this.info=d;W.call(this,a,b,c)};g["openfl.events.NetStatusEvent"]=ck;ck.__name__="openfl.events.NetStatusEvent";ck.__super__=W;ck.prototype=r(W.prototype,{info:null,clone:function(){var a=new ck(this.type,this.bubbles,this.cancelable,this.info);a.target=this.target;a.currentTarget=this.currentTarget;
a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("NetStatusEvent",["type","bubbles","cancelable","info"])},__init:function(){W.prototype.__init.call(this);this.info=null},__class__:ck});var Df=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!1);W.call(this,a,b,c);this.bytesLoaded=d;this.bytesTotal=e};g["openfl.events.ProgressEvent"]=Df;Df.__name__="openfl.events.ProgressEvent";Df.__super__=W;Df.prototype=r(W.prototype,{bytesLoaded:null,
bytesTotal:null,clone:function(){var a=new Df(this.type,this.bubbles,this.cancelable,this.bytesLoaded,this.bytesTotal);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("ProgressEvent",["type","bubbles","cancelable","bytesLoaded","bytesTotal"])},__init:function(){W.prototype.__init.call(this);this.bytesTotal=this.bytesLoaded=0},__class__:Df});var Hg=function(a,b,c,d,e,f){null==f&&(f=!0);null==c&&(c=!1);null==
b&&(b=!1);W.call(this,a,b,c);this.objectMatrix=d;this.objectColorTransform=e;this.allowSmoothing=f};g["openfl.events.RenderEvent"]=Hg;Hg.__name__="openfl.events.RenderEvent";Hg.__super__=W;Hg.prototype=r(W.prototype,{allowSmoothing:null,objectColorTransform:null,objectMatrix:null,renderer:null,clone:function(){var a=new Hg(this.type,this.bubbles,this.cancelable,this.objectMatrix.clone(),this.objectColorTransform.__clone(),this.allowSmoothing);a.target=this.target;a.currentTarget=this.currentTarget;
a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("RenderEvent",["type","bubbles","cancelable"])},__init:function(){W.prototype.__init.call(this);this.objectColorTransform=this.objectMatrix=null;this.allowSmoothing=!1;this.renderer=null},__class__:Hg});var Uk=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);qe.call(this,a,b,c,d,e)};g["openfl.events.SecurityErrorEvent"]=Uk;Uk.__name__="openfl.events.SecurityErrorEvent";Uk.__super__=
qe;Uk.prototype=r(qe.prototype,{clone:function(){var a=new Uk(this.type,this.bubbles,this.cancelable,this.text,this.errorID);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("SecurityErrorEvent",["type","bubbles","cancelable","text","errorID"])},__class__:Uk});var ei=function(a,b,c){null==c&&(c=!1);null==b&&(b=!1);W.call(this,a,b,c)};g["openfl.events.TimerEvent"]=ei;ei.__name__="openfl.events.TimerEvent";
ei.__super__=W;ei.prototype=r(W.prototype,{clone:function(){var a=new ei(this.type,this.bubbles,this.cancelable);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("TimerEvent",["type","bubbles","cancelable"])},updateAfterEvent:function(){},__class__:ei});var xd=function(a,b,c,d,e,f,h,l,m,g,k,n,q,p,r,v,u,x,w,z){null==v&&(v=!1);null==r&&(r=!1);null==p&&(p=!1);null==q&&(q=!1);null==n&&(n=!1);null==g&&(g=0);
null==m&&(m=0);null==l&&(l=0);null==h&&(h=0);null==f&&(f=0);null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!0);W.call(this,a,b,c);this.touchPointID=d;this.isPrimaryTouchPoint=e;this.localX=f;this.localY=h;this.sizeX=l;this.sizeY=m;this.pressure=g;this.relatedObject=k;this.ctrlKey=n;this.altKey=q;this.shiftKey=p;this.commandKey=r;this.controlKey=v;this.stageY=this.stageX=NaN};g["openfl.events.TouchEvent"]=xd;xd.__name__="openfl.events.TouchEvent";xd.__create=function(a,b,c,d,e,f){a=new xd(a,
!0,!1,0,!0,e.x,e.y,1,1,1);a.stageX=c;a.stageY=d;a.target=f;return a};xd.__super__=W;xd.prototype=r(W.prototype,{altKey:null,commandKey:null,controlKey:null,ctrlKey:null,delta:null,isPrimaryTouchPoint:null,localX:null,localY:null,pressure:null,relatedObject:null,shiftKey:null,sizeX:null,sizeY:null,stageX:null,stageY:null,touchPointID:null,clone:function(){var a=new xd(this.type,this.bubbles,this.cancelable,this.touchPointID,this.isPrimaryTouchPoint,this.localX,this.localY,this.sizeX,this.sizeY,this.pressure,
this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.commandKey,this.controlKey);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("TouchEvent","type bubbles cancelable touchPointID isPrimaryTouchPoint localX localY sizeX sizeY pressure relatedObject ctrlKey altKey shiftKey commandKey controlKey".split(" "))},updateAfterEvent:function(){},__init:function(){W.prototype.__init.call(this);this.touchPointID=
0;this.isPrimaryTouchPoint=!1;this.pressure=this.sizeY=this.sizeX=this.localY=this.localX=0;this.relatedObject=null;this.controlKey=this.commandKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.stageY=this.stageX=NaN},__class__:xd});var el=function(a,b,c,d){null==c&&(c=!0);null==b&&(b=!0);qe.call(this,a,b,c);this.error=d};g["openfl.events.UncaughtErrorEvent"]=el;el.__name__="openfl.events.UncaughtErrorEvent";el.__super__=qe;el.prototype=r(qe.prototype,{error:null,clone:function(){var a=new el(this.type,
this.bubbles,this.cancelable,this.error);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("UncaughtErrorEvent",["type","bubbles","cancelable","error"])},__init:function(){qe.prototype.__init.call(this);this.error=null},__class__:el});var tq=function(){L.call(this)};g["openfl.events.UncaughtErrorEvents"]=tq;tq.__name__="openfl.events.UncaughtErrorEvents";tq.__super__=L;tq.prototype=r(L.prototype,{__class__:tq});
var lc=function(){};g["openfl.external.ExternalInterface"]=lc;lc.__name__="openfl.external.ExternalInterface";lc.__properties__={get_objectID:"get_objectID"};lc.addCallback=function(a,b){null!=ic.application.__window.element&&(ic.application.__window.element[a]=b)};lc.call=function(a,b,c,d,e,f){if(!(new fa("^\\(.+\\)$","")).match(a)){var h=a.split(".").slice(0,-1).join(".");0<h.length&&(a+=".bind("+h+")")}try{var l=eval(a)}catch(m){return wa.lastError=m,null}return wb.typeof(l)!=yc.TFunction?null:
null==b?l():null==c?l(b):null==d?l(b,c):null==e?l(b,c,d):null==f?l(b,c,d,e):l(b,c,d,e,f)};lc.get_objectID=function(){return null!=ic.application&&null!=ic.application.__window&&null!=ic.application.__window.element?ic.application.__window.element.id:null};var Ld=function(){this.__leftExtension=this.__bottomExtension=0;this.__needSecondBitmapData=!0;this.__numShaderPasses=0;this.__preserveObject=!1;this.__rightExtension=0;this.__shaderBlendMode=10;this.__topExtension=0;this.__smooth=!0};g["openfl.filters.BitmapFilter"]=
Ld;Ld.__name__="openfl.filters.BitmapFilter";Ld.prototype={__bottomExtension:null,__leftExtension:null,__needSecondBitmapData:null,__numShaderPasses:null,__preserveObject:null,__renderDirty:null,__rightExtension:null,__shaderBlendMode:null,__smooth:null,__topExtension:null,clone:function(){return new Ld},__applyFilter:function(a,b,c,d){return b},__initShader:function(a,b,c){return null},__class__:Ld};var gc=function(a){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\tgl_FragColor = texture2D (openfl_Texture, openfl_TextureCoordv);\n\n\t\t}");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}");We.call(this,a);this.__isGenerated=!0;this.__initGL()};g["openfl.filters.BitmapFilterShader"]=gc;gc.__name__="openfl.filters.BitmapFilterShader";
gc.__super__=We;gc.prototype=r(We.prototype,{openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_TextureSize:null,openfl_Texture:null,__class__:gc});var Gq=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="uniform sampler2D openfl_Texture;\n\n\t\tvarying vec2 vBlurCoords[7];\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 sum = vec4(0.0);\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[0]) * 0.00443;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[1]) * 0.05399;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[2]) * 0.24197;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[3]) * 0.39894;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[4]) * 0.24197;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[5]) * 0.05399;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[6]) * 0.00443;\n\n\t\t\tgl_FragColor = sum;\n\n\t\t}");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tuniform mat4 openfl_Matrix;\n\n\t\tuniform vec2 uRadius;\n\t\tvarying vec2 vBlurCoords[7];\n\t\tuniform vec2 uTextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t\tvec2 r = uRadius / uTextureSize;\n\t\t\tvBlurCoords[0] = openfl_TextureCoord - r;\n\t\t\tvBlurCoords[1] = openfl_TextureCoord - r * 0.75;\n\t\t\tvBlurCoords[2] = openfl_TextureCoord - r * 0.5;\n\t\t\tvBlurCoords[3] = openfl_TextureCoord;\n\t\t\tvBlurCoords[4] = openfl_TextureCoord + r * 0.5;\n\t\t\tvBlurCoords[5] = openfl_TextureCoord + r * 0.75;\n\t\t\tvBlurCoords[6] = openfl_TextureCoord + r;\n\n\t\t}");
gc.call(this);this.uRadius.value=[0,0];this.__isGenerated=!0;this.__initGL()};g["openfl.filters._BlurFilter.BlurShader"]=Gq;Gq.__name__="openfl.filters._BlurFilter.BlurShader";Gq.__super__=gc;Gq.prototype=r(gc.prototype,{__update:function(){this.uTextureSize.value=[this.__texture.input.width,this.__texture.input.height];gc.prototype.__update.call(this)},uRadius:null,uTextureSize:null,__class__:Gq});var Ug=function(a,b,c){null==c&&(c=1);null==b&&(b=4);null==a&&(a=4);Ld.call(this);this.set_blurX(a);
this.set_blurY(b);this.set_quality(c);this.__needSecondBitmapData=!0;this.__preserveObject=!1;this.__renderDirty=!0};g["openfl.filters.BlurFilter"]=Ug;Ug.__name__="openfl.filters.BlurFilter";Ug.__super__=Ld;Ug.prototype=r(Ld.prototype,{__blurX:null,__blurY:null,__horizontalPasses:null,__quality:null,__verticalPasses:null,clone:function(){return new Ug(this.__blurX,this.__blurY,this.__quality)},__applyFilter:function(a,b,c,d){(new Date).getTime();c=Ga.gaussianBlur(a.image,b.image,c.__toLimeRectangle(),
d.__toLimeVector2(),this.__blurX,this.__blurY,this.__quality);(new Date).getTime();return c==a.image?a:b},__initShader:function(a,b,c){b<this.__horizontalPasses?(a=Math.pow(.5,b>>1),Ug.__blurShader.uRadius.value[0]=this.get_blurX()*a,Ug.__blurShader.uRadius.value[1]=0):(a=Math.pow(.5,b-this.__horizontalPasses>>1),Ug.__blurShader.uRadius.value[0]=0,Ug.__blurShader.uRadius.value[1]=this.get_blurY()*a);return Ug.__blurShader},get_blurX:function(){return this.__blurX},set_blurX:function(a){a!=this.__blurX&&
(this.__blurX=a,this.__renderDirty=!0,this.__rightExtension=this.__leftExtension=0<a?Math.ceil(a):0);return a},get_blurY:function(){return this.__blurY},set_blurY:function(a){a!=this.__blurY&&(this.__blurY=a,this.__renderDirty=!0,this.__bottomExtension=this.__topExtension=0<a?Math.ceil(a):0);return a},get_quality:function(){return this.__quality},set_quality:function(a){this.__horizontalPasses=0>=this.__blurX?0:Math.round(a/4*this.__blurX)+1;this.__verticalPasses=0>=this.__blurY?0:Math.round(a/4*
this.__blurY)+1;this.__numShaderPasses=this.__horizontalPasses+this.__verticalPasses;a!=this.__quality&&(this.__renderDirty=!0);return this.__quality=a},__class__:Ug,__properties__:{set_quality:"set_quality",get_quality:"get_quality",set_blurY:"set_blurY",get_blurY:"get_blurY",set_blurX:"set_blurX",get_blurX:"get_blurX"}});var nn=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\t\tuniform sampler2D openfl_Texture;\n\n\t\tuniform mat4 uMultipliers;\n\t\tuniform vec4 uOffsets;\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\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t\t} else {\n\n\t\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\t\t\t\tcolor = uOffsets + color * uMultipliers;\n\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a, color.a);\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\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\n\t\t}");gc.call(this);this.uMultipliers.value=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.uOffsets.value=[0,0,0,0];this.__isGenerated=
!0;this.__initGL()};g["openfl.filters._ColorMatrixFilter.ColorMatrixShader"]=nn;nn.__name__="openfl.filters._ColorMatrixFilter.ColorMatrixShader";nn.__super__=gc;nn.prototype=r(gc.prototype,{init:function(a){var b=this.uMultipliers.value,c=this.uOffsets.value;b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];b[4]=a[5];b[5]=a[6];b[6]=a[7];b[7]=a[8];b[8]=a[10];b[9]=a[11];b[10]=a[12];b[11]=a[13];b[12]=a[15];b[13]=a[16];b[14]=a[17];b[15]=a[18];c[0]=a[4]/255;c[1]=a[9]/255;c[2]=a[14]/255;c[3]=a[19]/255},uMultipliers:null,
uOffsets:null,__class__:nn});var ej=function(a){Ld.call(this);this.set_matrix(a);this.__numShaderPasses=1;this.__needSecondBitmapData=!1};g["openfl.filters.ColorMatrixFilter"]=ej;ej.__name__="openfl.filters.ColorMatrixFilter";ej.__super__=Ld;ej.prototype=r(Ld.prototype,{__matrix:null,clone:function(){return new ej(this.__matrix)},__applyFilter:function(a,b,c,d){var e=b.image,f=a.image;ua.convertToData(e);ua.convertToData(f);var h=e.get_data(),l=f.get_data(),m=d.x-c.x|0;d=d.y-c.y|0;b=4*b.width;var g=
4*a.width,k=e.buffer.format,n=f.buffer.format;e=e.buffer.premultiplied;f=f.buffer.premultiplied;for(var q=0,p=0,r,v,u=c.y|0,x=c.height|0;u<x;)for(var w=u++,z=c.x|0,U=c.width|0;z<U;){v=z++;r=w*b+4*v;v=(w+m)*g+4*(v+d);var X=k,B=e;null==B&&(B=!1);null==X&&(X=0);switch(X){case 0:q=(h[r]&255)<<24|(h[r+1]&255)<<16|(h[r+2]&255)<<8|h[r+3]&255;break;case 1:q=(h[r+1]&255)<<24|(h[r+2]&255)<<16|(h[r+3]&255)<<8|h[r]&255;break;case 2:q=(h[r+2]&255)<<24|(h[r+1]&255)<<16|(h[r]&255)<<8|h[r+3]&255}B&&0!=(q&255)&&255!=
(q&255)&&(I.unmult=255/(q&255),q=(I.__clamp[Math.round((q>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((q>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((q>>>8&255)*I.unmult)]&255)<<8|q&255);0==(q&255)?p=0:(p=((Math.max(0,Math.min(this.__matrix[0]*(q>>>24&255)+this.__matrix[1]*(q>>>16&255)+this.__matrix[2]*(q>>>8&255)+this.__matrix[3]*(q&255)+this.__matrix[4],255))|0)&255)<<24|(p>>>16&255)<<16|(p>>>8&255)<<8|p&255,p=(p>>>24&255)<<24|((Math.max(0,Math.min(this.__matrix[5]*(q>>>24&255)+
this.__matrix[6]*(q>>>16&255)+this.__matrix[7]*(q>>>8&255)+this.__matrix[8]*(q&255)+this.__matrix[9],255))|0)&255)<<16|(p>>>8&255)<<8|p&255,p=(p>>>24&255)<<24|(p>>>16&255)<<16|((Math.max(0,Math.min(this.__matrix[10]*(q>>>24&255)+this.__matrix[11]*(q>>>16&255)+this.__matrix[12]*(q>>>8&255)+this.__matrix[13]*(q&255)+this.__matrix[14],255))|0)&255)<<8|p&255,p=(p>>>24&255)<<24|(p>>>16&255)<<16|(p>>>8&255)<<8|(Math.max(0,Math.min(this.__matrix[15]*(q>>>24&255)+this.__matrix[16]*(q>>>16&255)+this.__matrix[17]*
(q>>>8&255)+this.__matrix[18]*(q&255)+this.__matrix[19],255))|0)&255);r=n;X=f;null==X&&(X=!1);null==r&&(r=0);X&&(0==(p&255)?0!=p&&(p=0):255!=(p&255)&&(I.a16=I.__alpha16[p&255],p=((p>>>24&255)*I.a16>>16&255)<<24|((p>>>16&255)*I.a16>>16&255)<<16|((p>>>8&255)*I.a16>>16&255)<<8|p&255));switch(r){case 0:l[v]=p>>>24&255;l[v+1]=p>>>16&255;l[v+2]=p>>>8&255;l[v+3]=p&255;break;case 1:l[v]=p&255;l[v+1]=p>>>24&255;l[v+2]=p>>>16&255;l[v+3]=p>>>8&255;break;case 2:l[v]=p>>>8&255,l[v+1]=p>>>16&255,l[v+2]=p>>>24&
255,l[v+3]=p&255}}a.image.dirty=!0;return a},__initShader:function(a,b,c){ej.__colorMatrixShader.init(this.get_matrix());return ej.__colorMatrixShader},get_matrix:function(){return this.__matrix},set_matrix:function(a){null==a&&(a=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);return this.__matrix=a},__class__:ej,__properties__:{set_matrix:"set_matrix",get_matrix:"get_matrix"}});var Hq=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 vBlurCoords[9];\n\n\t\tuniform sampler2D openfl_Texture;\n\n\t\tuniform float uBias;\n\t\tuniform mat3 uConvoMatrix;\n\t\tuniform float uDivisor;\n\t\tuniform bool uPreserveAlpha;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 tc = texture2D (openfl_Texture, vBlurCoords[4]);\n\t\t\tvec4 c = vec4 (0.0);\n\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[0]) * uConvoMatrix[0][0];\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[1]) * uConvoMatrix[0][1];\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[2]) * uConvoMatrix[0][2];\n\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[3]) * uConvoMatrix[1][0];\n\t\t\tc += tc * uConvoMatrix[1][1];\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[5]) * uConvoMatrix[1][2];\n\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[6]) * uConvoMatrix[2][0];\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[7]) * uConvoMatrix[2][1];\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[8]) * uConvoMatrix[2][2];\n\n\t\t\tif (uDivisor > 0.0) {\n\n\t\t\t\tc /= vec4 (uDivisor, uDivisor, uDivisor, uDivisor);\n\n\t\t\t}\n\n\t\t\tc += vec4 (uBias, uBias, uBias, uBias);\n\n\t\t\tif (uPreserveAlpha) {\n\n\t\t\t\tc.a = tc.a;\n\n\t\t\t}\n\n\t\t\tgl_FragColor = c;\n\n\t\t}");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying vec2 vBlurCoords[9];\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\tvec2 r = vec2 (1.0, 1.0) / openfl_TextureSize;\n\t\t\tvec2 t = openfl_TextureCoord;\n\n\t\t\tvBlurCoords[0] = t + r * vec2 (-1.0, -1.0);\n\t\t\tvBlurCoords[1] = t + r * vec2 (0.0, -1.0);\n\t\t\tvBlurCoords[2] = t + r * vec2 (1.0, -1.0);\n\n\t\t\tvBlurCoords[3] = t + r * vec2 (-1.0, 0.0);\n\t\t\tvBlurCoords[4] = t;\n\t\t\tvBlurCoords[5] = t + r * vec2 (1.0, 0.0);\n\n\t\t\tvBlurCoords[6] = t + r * vec2 (-1.0, 1.0);\n\t\t\tvBlurCoords[7] = t + r * vec2 (0.0, 1.0);\n\t\t\tvBlurCoords[8] = t + r * vec2 (1.0, 1.0);\n\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}");
gc.call(this);this.uDivisor.value=[1];this.uBias.value=[0];this.uPreserveAlpha.value=[!0];this.__isGenerated=!0;this.__initGL()};g["openfl.filters._ConvolutionFilter.ConvolutionShader"]=Hq;Hq.__name__="openfl.filters._ConvolutionFilter.ConvolutionShader";Hq.__super__=gc;Hq.prototype=r(gc.prototype,{uBias:null,uConvoMatrix:null,uDivisor:null,uPreserveAlpha:null,__class__:Hq});var sh=function(a,b,c,d,e,f,h,l,m){null==m&&(m=0);null==l&&(l=0);null==h&&(h=!0);null==f&&(f=!0);null==e&&(e=0);null==d&&(d=
1);null==b&&(b=0);null==a&&(a=0);Ld.call(this);this.matrixX=a;this.matrixY=b;this.__matrix=c;this.divisor=d;this.bias=e;this.preserveAlpha=f;this.clamp=h;this.color=l;this.alpha=m;this.__numShaderPasses=1};g["openfl.filters.ConvolutionFilter"]=sh;sh.__name__="openfl.filters.ConvolutionFilter";sh.__super__=Ld;sh.prototype=r(Ld.prototype,{alpha:null,bias:null,clamp:null,color:null,divisor:null,matrixX:null,matrixY:null,preserveAlpha:null,__matrix:null,clone:function(){return new sh(this.matrixX,this.matrixY,
this.__matrix,this.divisor,this.bias,this.preserveAlpha,this.clamp,this.color,this.alpha)},__initShader:function(a,b,c){sh.__convolutionShader.uConvoMatrix.value=this.get_matrix();sh.__convolutionShader.uDivisor.value[0]=this.divisor;sh.__convolutionShader.uBias.value[0]=this.bias;sh.__convolutionShader.uPreserveAlpha.value[0]=this.preserveAlpha;return sh.__convolutionShader},get_matrix:function(){return this.__matrix},set_matrix:function(a){null==a&&(a=[0,0,0,0,1,0,0,0,0]);if(9!=a.length)throw u.thrown("Only a 3x3 matrix is supported");
return this.__matrix=a},__class__:sh,__properties__:{set_matrix:"set_matrix",get_matrix:"get_matrix"}});var Iq=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="\n\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform sampler2D mapTexture;\n\n\t\tuniform mat4 openfl_Matrix;\n\n\t\tuniform vec4 uOffsets;\n\t\tuniform mat4 uDisplacements;\n\n\t\tvarying vec2 openfl_TextureCoordV;\n\t\tvarying vec2 mapTextureCoords;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 map_color = texture2D(mapTexture, mapTextureCoords);\n\t\t\tvec4 map_color_mod = map_color - uOffsets;\n\n\t\t\tmap_color_mod = map_color_mod * vec4(map_color.w, map_color.w, 1.0, 1.0);\n\n\t\t\tvec4 displacements_multiplied = map_color_mod * uDisplacements;\n\t\t\tvec4 result = vec4(openfl_TextureCoordV.x, openfl_TextureCoordV.y, 0.0, 1.0) + displacements_multiplied;\n\n\t\t\tgl_FragColor = texture2D(openfl_Texture, vec2(result));\n\n\t\t}\n\n\t");
null==this.__glVertexSource&&(this.__glVertexSource="\n\n\t\tuniform mat4 openfl_Matrix;\n\n\t\tuniform vec2 mapTextureCoordsOffset;\n\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying vec2 openfl_TextureCoordV;\n\n\t\tvarying vec2 mapTextureCoords;\n\n\t\tvoid main(void) {\n\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t\topenfl_TextureCoordV = openfl_TextureCoord;\n\t\t\tmapTextureCoords = openfl_TextureCoord - mapTextureCoordsOffset;\n\n\t\t}\n\n\t");
gc.call(this);this.__isGenerated=!0;this.__initGL()};g["openfl.filters._DisplacementMapFilter.DisplacementMapShader"]=Iq;Iq.__name__="openfl.filters._DisplacementMapFilter.DisplacementMapShader";Iq.__super__=gc;Iq.prototype=r(gc.prototype,{mapTextureCoordsOffset:null,mapTexture:null,uOffsets:null,uDisplacements:null,__class__:Iq});var $b=function(a,b,c,d,e,f,h,l,m){null==m&&(m=0);null==l&&(l=0);null==h&&(h="wrap");null==f&&(f=0);null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);Ld.call(this);this.__mapBitmap=
a;this.__mapPoint=null!=b?b:new ab;this.__componentX=c;this.__componentY=d;this.__scaleX=e;this.__scaleY=f;this.__mode=h;this.__color=l;this.__alpha=m;this.__needSecondBitmapData=!0;this.__preserveObject=!1;this.__renderDirty=!0;this.__numShaderPasses=1};g["openfl.filters.DisplacementMapFilter"]=$b;$b.__name__="openfl.filters.DisplacementMapFilter";$b.__super__=Ld;$b.prototype=r(Ld.prototype,{__alpha:null,__color:null,__componentX:null,__componentY:null,__mapBitmap:null,__mapPoint:null,__mode:null,
__scaleX:null,__scaleY:null,clone:function(){return new $b(this.__mapBitmap,this.__mapPoint.clone(),this.__componentX,this.__componentY,this.__scaleX,this.__scaleY,this.__mode,this.__color,this.__alpha)},__applyFilter:function(a,b,c,d){this.__updateMapMatrix();ua.convertToData(a.image);ua.convertToData(b.image);ua.convertToData(this.__mapBitmap.image);Ga.displaceMap(a.image,b.image,this.__mapBitmap.image,new id(this.__mapPoint.x/this.__mapBitmap.width,this.__mapPoint.y/this.__mapBitmap.height),new jc($b.__matrixData[0],
$b.__matrixData[4],$b.__matrixData[8],$b.__matrixData[12]),new jc($b.__matrixData[1],$b.__matrixData[5],$b.__matrixData[9],$b.__matrixData[13]),this.__smooth);return a},__initShader:function(a,b,c){this.__updateMapMatrix();$b.__displacementMapShader.uOffsets.value=$b.__offset;$b.__displacementMapShader.uDisplacements.value=$b.__matrixData;a=this.get_mapPoint().x/this.__mapBitmap.width;b=this.get_mapPoint().y/this.__mapBitmap.height;$b.__displacementMapShader.mapTextureCoordsOffset.value=[a,b];$b.__displacementMapShader.mapTexture.input=
this.__mapBitmap;return $b.__displacementMapShader},__updateMapMatrix:function(){var a=this.__mapBitmap.width,b=this.__mapBitmap.height;$b.__matrixData[0]=0;$b.__matrixData[1]=0;$b.__matrixData[2]=0;$b.__matrixData[3]=0;$b.__matrixData[4]=0;$b.__matrixData[5]=0;$b.__matrixData[6]=0;$b.__matrixData[7]=0;$b.__matrixData[8]=0;$b.__matrixData[9]=0;$b.__matrixData[10]=0;$b.__matrixData[11]=0;$b.__matrixData[12]=0;$b.__matrixData[13]=0;$b.__matrixData[14]=0;$b.__matrixData[15]=0;var c=1==this.__componentX?
0:2==this.__componentX?1:4==this.__componentX?2:3;var d=1==this.__componentY?0:2==this.__componentY?1:4==this.__componentY?2:3;$b.__matrixData[4*c]=1*this.__scaleX/a;$b.__matrixData[4*d+1]=1*this.__scaleY/b},get_alpha:function(){return this.__alpha},set_alpha:function(a){a!=this.__alpha&&(this.__renderDirty=!0);return this.__alpha=a},get_componentX:function(){return this.__componentX},set_componentX:function(a){a!=this.__componentX&&(this.__renderDirty=!0);return this.__componentX=a},get_componentY:function(){return this.__componentY},
set_componentY:function(a){a!=this.__componentY&&(this.__renderDirty=!0);return this.__componentY=a},get_color:function(){return this.__color},set_color:function(a){a!=this.__color&&(this.__renderDirty=!0);return this.__color=a},get_scaleX:function(){return this.__scaleX},set_scaleX:function(a){a!=this.__scaleX&&(this.__renderDirty=!0);return this.__scaleX=a},get_scaleY:function(){return this.__scaleY},set_scaleY:function(a){a!=this.__scaleY&&(this.__renderDirty=!0);return this.__scaleY=a},get_mapBitmap:function(){return this.__mapBitmap},
set_mapBitmap:function(a){a!=this.__mapBitmap&&(this.__renderDirty=!0);return this.__mapBitmap=a},get_mapPoint:function(){return this.__mapPoint},set_mapPoint:function(a){a!=this.__mapPoint&&(this.__renderDirty=!0);return this.__mapPoint=a},get_mode:function(){return this.__mode},set_mode:function(a){a!=this.__mode&&(this.__renderDirty=!0);return this.__mode=a},__class__:$b,__properties__:{set_scaleY:"set_scaleY",get_scaleY:"get_scaleY",set_scaleX:"set_scaleX",get_scaleX:"get_scaleX",set_mode:"set_mode",
get_mode:"get_mode",set_mapPoint:"set_mapPoint",get_mapPoint:"get_mapPoint",set_mapBitmap:"set_mapBitmap",get_mapBitmap:"get_mapBitmap",set_componentY:"set_componentY",get_componentY:"get_componentY",set_componentX:"set_componentX",get_componentX:"get_componentX",set_color:"set_color",get_color:"get_color",set_alpha:"set_alpha",get_alpha:"get_alpha"}});var Jq=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform sampler2D sourceBitmap;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tgl_FragColor = texture2D(openfl_Texture, textureCoords.zw);\n\t\t}\n\t");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\t\tuniform vec2 offset;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\ttextureCoords = vec4(openfl_TextureCoord, openfl_TextureCoord - offset / openfl_TextureSize);\n\t\t}\n\t");gc.call(this);this.offset.value=[0,0];this.__isGenerated=
!0;this.__initGL()};g["openfl.filters._DropShadowFilter.HideShader"]=Jq;Jq.__name__="openfl.filters._DropShadowFilter.HideShader";Jq.__super__=gc;Jq.prototype=r(gc.prototype,{offset:null,sourceBitmap:null,__class__:Jq});var fj=function(a,b,c,d,e,f,h,l,m,g,k){null==k&&(k=!1);null==g&&(g=!1);null==m&&(m=!1);null==l&&(l=1);null==h&&(h=1);null==f&&(f=4);null==e&&(e=4);null==d&&(d=1);null==c&&(c=0);null==b&&(b=45);null==a&&(a=4);Ld.call(this);this.__offsetY=this.__offsetX=0;this.__distance=a;this.__angle=
b;this.__color=c;this.__alpha=d;this.__blurX=e;this.__blurY=f;this.__strength=h;this.__quality=l;this.__inner=m;this.__knockout=g;this.__hideObject=k;this.__updateSize();this.__renderDirty=this.__preserveObject=this.__needSecondBitmapData=!0};g["openfl.filters.DropShadowFilter"]=fj;fj.__name__="openfl.filters.DropShadowFilter";fj.__super__=Ld;fj.prototype=r(Ld.prototype,{__alpha:null,__angle:null,__blurX:null,__blurY:null,__color:null,__distance:null,__hideObject:null,__horizontalPasses:null,__inner:null,
__knockout:null,__offsetX:null,__offsetY:null,__quality:null,__strength:null,__verticalPasses:null,clone:function(){return new fj(this.__distance,this.__angle,this.__color,this.__alpha,this.__blurX,this.__blurY,this.__strength,this.__quality,this.__inner,this.__knockout,this.__hideObject)},__applyFilter:function(a,b,c,d){var e=this.__color>>16&255,f=this.__color>>8&255,h=this.__color&255;d=new ab(d.x+this.__offsetX,d.y+this.__offsetY);c=Ga.gaussianBlur(a.image,b.image,c.__toLimeRectangle(),d.__toLimeVector2(),
this.__blurX,this.__blurY,this.__quality,this.__strength);c.colorTransform(c.get_rect(),(new tc(0,0,0,this.__alpha,e,f,h,0)).__toLimeColorMatrix());return c==a.image?a:b},__initShader:function(a,b,c){if(this.__inner&&0==b)return sd.__invertAlphaShader;a=b-(this.__inner?1:0);b=this.__horizontalPasses+this.__verticalPasses;if(a<b){var d=sd.__blurAlphaShader;a<this.__horizontalPasses?(c=.5*Math.pow(.5,a>>1),d.uRadius.value[0]=this.get_blurX()*c,d.uRadius.value[1]=0):(c=.5*Math.pow(.5,a-this.__horizontalPasses>>
1),d.uRadius.value[0]=0,d.uRadius.value[1]=this.get_blurY()*c);d.uColor.value[0]=(this.get_color()>>16&255)/255;d.uColor.value[1]=(this.get_color()>>8&255)/255;d.uColor.value[2]=(this.get_color()&255)/255;d.uColor.value[3]=this.get_alpha();d.uStrength.value[0]=a==b-1?this.__strength:1;return d}if(this.__inner){if(this.__knockout||this.__hideObject)return d=sd.__innerCombineKnockoutShader,d.sourceBitmap.input=c,d.offset.value[0]=this.__offsetX,d.offset.value[1]=this.__offsetY,d;d=sd.__innerCombineShader}else{if(this.__knockout)return d=
sd.__combineKnockoutShader,d.sourceBitmap.input=c,d.offset.value[0]=this.__offsetX,d.offset.value[1]=this.__offsetY,d;if(this.__hideObject)return d=fj.__hideShader,d.sourceBitmap.input=c,d.offset.value[0]=this.__offsetX,d.offset.value[1]=this.__offsetY,d;d=sd.__combineShader}d.sourceBitmap.input=c;d.offset.value[0]=this.__offsetX;d.offset.value[1]=this.__offsetY;return d},__updateSize:function(){this.__offsetX=this.__distance*Math.cos(this.__angle*Math.PI/180)|0;this.__offsetY=this.__distance*Math.sin(this.__angle*
Math.PI/180)|0;this.__topExtension=Math.ceil((0>this.__offsetY?-this.__offsetY:0)+this.__blurY);this.__bottomExtension=Math.ceil((0<this.__offsetY?this.__offsetY:0)+this.__blurY);this.__leftExtension=Math.ceil((0>this.__offsetX?-this.__offsetX:0)+this.__blurX);this.__rightExtension=Math.ceil((0<this.__offsetX?this.__offsetX:0)+this.__blurX);this.__calculateNumShaderPasses()},__calculateNumShaderPasses:function(){this.__horizontalPasses=0>=this.__blurX?0:Math.round(this.__quality/4*this.__blurX)+1;
this.__verticalPasses=0>=this.__blurY?0:Math.round(this.__quality/4*this.__blurY)+1;this.__numShaderPasses=this.__horizontalPasses+this.__verticalPasses+(this.__inner?2:1)},get_alpha:function(){return this.__alpha},set_alpha:function(a){a!=this.__alpha&&(this.__renderDirty=!0);return this.__alpha=a},get_angle:function(){return this.__angle},set_angle:function(a){a!=this.__angle&&(this.__angle=a,this.__renderDirty=!0,this.__updateSize());return a},get_blurX:function(){return this.__blurX},set_blurX:function(a){a!=
this.__blurX&&(this.__blurX=a,this.__renderDirty=!0,this.__updateSize());return a},get_blurY:function(){return this.__blurY},set_blurY:function(a){a!=this.__blurY&&(this.__blurY=a,this.__renderDirty=!0,this.__updateSize());return a},get_color:function(){return this.__color},set_color:function(a){a!=this.__color&&(this.__renderDirty=!0);return this.__color=a},get_distance:function(){return this.__distance},set_distance:function(a){a!=this.__distance&&(this.__distance=a,this.__renderDirty=!0,this.__updateSize());
return a},get_hideObject:function(){return this.__hideObject},set_hideObject:function(a){a!=this.__hideObject&&(this.__renderDirty=!0);return this.__hideObject=a},get_inner:function(){return this.__inner},set_inner:function(a){a!=this.__inner&&(this.__renderDirty=!0);return this.__inner=a},get_knockout:function(){return this.__knockout},set_knockout:function(a){a!=this.__knockout&&(this.__renderDirty=!0);return this.__knockout=a},get_quality:function(){return this.__quality},set_quality:function(a){a!=
this.__quality&&(this.__renderDirty=!0);return this.__quality=a},get_strength:function(){return this.__strength},set_strength:function(a){a!=this.__strength&&(this.__renderDirty=!0);return this.__strength=a},__class__:fj,__properties__:{set_strength:"set_strength",get_strength:"get_strength",set_quality:"set_quality",get_quality:"get_quality",set_knockout:"set_knockout",get_knockout:"get_knockout",set_inner:"set_inner",get_inner:"get_inner",set_hideObject:"set_hideObject",get_hideObject:"get_hideObject",
set_distance:"set_distance",get_distance:"get_distance",set_color:"set_color",get_color:"get_color",set_blurY:"set_blurY",get_blurY:"get_blurY",set_blurX:"set_blurX",get_blurX:"get_blurX",set_angle:"set_angle",get_angle:"get_angle",set_alpha:"set_alpha",get_alpha:"get_alpha"}});var Kq=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform vec4 uColor;\n\t\tuniform float uStrength;\n\t\tvarying vec2 vTexCoord;\n\t\tvarying vec2 vBlurCoords[6];\n\n\t\tvoid main(void)\n\t\t{\n            vec4 texel = texture2D(openfl_Texture, vTexCoord);\n\n            vec3 contributions = vec3(0.00443, 0.05399, 0.24197);\n            vec3 top = vec3(\n                texture2D(openfl_Texture, vBlurCoords[0]).a,\n                texture2D(openfl_Texture, vBlurCoords[1]).a,\n                texture2D(openfl_Texture, vBlurCoords[2]).a\n            );\n            vec3 bottom = vec3(\n                texture2D(openfl_Texture, vBlurCoords[3]).a,\n                texture2D(openfl_Texture, vBlurCoords[4]).a,\n                texture2D(openfl_Texture, vBlurCoords[5]).a\n            );\n\n            float a = texel.a * 0.39894;\n\t\t\ta += dot(top, contributions.xyz);\n            a += dot(bottom, contributions.zyx);\n\n\t\t\tgl_FragColor = uColor * clamp(a * uStrength, 0.0, 1.0);\n\t\t}\n\t");
null==this.__glVertexSource&&(this.__glVertexSource="\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tuniform vec2 uRadius;\n\t\tvarying vec2 vTexCoord;\n\t\tvarying vec2 vBlurCoords[6];\n\n\t\tvoid main(void) {\n\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\tvTexCoord = openfl_TextureCoord;\n\n\t\t\tvec3 offset = vec3(0.5, 0.75, 1.0);\n\t\t\tvec2 r = uRadius / openfl_TextureSize;\n\t\t\tvBlurCoords[0] = openfl_TextureCoord - r * offset.z;\n\t\t\tvBlurCoords[1] = openfl_TextureCoord - r * offset.y;\n\t\t\tvBlurCoords[2] = openfl_TextureCoord - r * offset.x;\n\t\t\tvBlurCoords[3] = openfl_TextureCoord + r * offset.x;\n\t\t\tvBlurCoords[4] = openfl_TextureCoord + r * offset.y;\n\t\t\tvBlurCoords[5] = openfl_TextureCoord + r * offset.z;\n\t\t}\n\t");
gc.call(this);this.uRadius.value=[0,0];this.uColor.value=[0,0,0,0];this.uStrength.value=[1];this.__isGenerated=!0;this.__initGL()};g["openfl.filters._GlowFilter.BlurAlphaShader"]=Kq;Kq.__name__="openfl.filters._GlowFilter.BlurAlphaShader";Kq.__super__=gc;Kq.prototype=r(gc.prototype,{uRadius:null,uColor:null,uStrength:null,__class__:Kq});var Lq=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform sampler2D sourceBitmap;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tvec4 src = texture2D(sourceBitmap, textureCoords.xy);\n\t\t\tvec4 glow = texture2D(openfl_Texture, textureCoords.zw);\n\n\t\t\tgl_FragColor = glow * (1.0 - src.a);\n\t\t}\n\t");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\t\tuniform vec2 offset;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\ttextureCoords = vec4(openfl_TextureCoord, openfl_TextureCoord - offset / openfl_TextureSize);\n\t\t}\n\t");gc.call(this);this.offset.value=[0,0];this.__isGenerated=
!0;this.__initGL()};g["openfl.filters._GlowFilter.CombineKnockoutShader"]=Lq;Lq.__name__="openfl.filters._GlowFilter.CombineKnockoutShader";Lq.__super__=gc;Lq.prototype=r(gc.prototype,{offset:null,sourceBitmap:null,__class__:Lq});var Mq=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform sampler2D sourceBitmap;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tvec4 src = texture2D(sourceBitmap, textureCoords.xy);\n\t\t\tvec4 glow = texture2D(openfl_Texture, textureCoords.zw);\n\n\t\t\tgl_FragColor = src + glow * (1.0 - src.a);\n\t\t}\n\t");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\t\tuniform vec2 offset;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\ttextureCoords = vec4(openfl_TextureCoord, openfl_TextureCoord - offset / openfl_TextureSize);\n\t\t}\n\t");gc.call(this);this.offset.value=[0,0];this.__isGenerated=
!0;this.__initGL()};g["openfl.filters._GlowFilter.CombineShader"]=Mq;Mq.__name__="openfl.filters._GlowFilter.CombineShader";Mq.__super__=gc;Mq.prototype=r(gc.prototype,{offset:null,sourceBitmap:null,__class__:Mq});var Nq=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform sampler2D sourceBitmap;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tvec4 src = texture2D(sourceBitmap, textureCoords.xy);\n\t\t\tvec4 glow = texture2D(openfl_Texture, textureCoords.zw);\n\n\t\t\tgl_FragColor = glow * src.a;\n\t\t}\n\t");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\t\tuniform vec2 offset;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\ttextureCoords = vec4(openfl_TextureCoord, openfl_TextureCoord - offset / openfl_TextureSize);\n\t\t}\n\t");gc.call(this);this.offset.value=[0,0];this.__isGenerated=
!0;this.__initGL()};g["openfl.filters._GlowFilter.InnerCombineKnockoutShader"]=Nq;Nq.__name__="openfl.filters._GlowFilter.InnerCombineKnockoutShader";Nq.__super__=gc;Nq.prototype=r(gc.prototype,{offset:null,sourceBitmap:null,__class__:Nq});var Oq=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform sampler2D sourceBitmap;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tvec4 src = texture2D(sourceBitmap, textureCoords.xy);\n\t\t\tvec4 glow = texture2D(openfl_Texture, textureCoords.zw);\n\n\t\t\tgl_FragColor = vec4((src.rgb * (1.0 - glow.a)) + (glow.rgb * src.a), src.a);\n\t\t}\n\t");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\t\tuniform vec2 offset;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\ttextureCoords = vec4(openfl_TextureCoord, openfl_TextureCoord - offset / openfl_TextureSize);\n\t\t}\n\t");gc.call(this);this.offset.value=[0,0];this.__isGenerated=
!0;this.__initGL()};g["openfl.filters._GlowFilter.InnerCombineShader"]=Oq;Oq.__name__="openfl.filters._GlowFilter.InnerCombineShader";Oq.__super__=gc;Oq.prototype=r(gc.prototype,{offset:null,sourceBitmap:null,__class__:Oq});var Pq=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="\n\t\tuniform sampler2D openfl_Texture;\n\t\tvarying vec2 vTexCoord;\n\n\t\tvoid main(void) {\n\t\t\tvec4 texel = texture2D(openfl_Texture, vTexCoord);\n\t\t\tgl_FragColor = vec4(texel.rgb, 1.0 - texel.a);\n\t\t}\n\t");
null==this.__glVertexSource&&(this.__glVertexSource="\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tuniform mat4 openfl_Matrix;\n\t\tvarying vec2 vTexCoord;\n\n\t\tvoid main(void) {\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\tvTexCoord = openfl_TextureCoord;\n\t\t}\n\t");gc.call(this);this.__isGenerated=!0;this.__initGL()};g["openfl.filters._GlowFilter.InvertAlphaShader"]=Pq;Pq.__name__="openfl.filters._GlowFilter.InvertAlphaShader";Pq.__super__=
gc;Pq.prototype=r(gc.prototype,{__class__:Pq});var sd=function(a,b,c,d,e,f,h,l){null==l&&(l=!1);null==h&&(h=!1);null==f&&(f=1);null==e&&(e=2);null==d&&(d=6);null==c&&(c=6);null==b&&(b=1);null==a&&(a=16711680);Ld.call(this);this.__color=a;this.__alpha=b;this.__blurX=c;this.__blurY=d;this.__strength=e;this.__inner=h;this.__knockout=l;this.__quality=f;this.__updateSize();this.__renderDirty=this.__preserveObject=this.__needSecondBitmapData=!0};g["openfl.filters.GlowFilter"]=sd;sd.__name__="openfl.filters.GlowFilter";
sd.__super__=Ld;sd.prototype=r(Ld.prototype,{__alpha:null,__blurX:null,__blurY:null,__color:null,__horizontalPasses:null,__inner:null,__knockout:null,__quality:null,__strength:null,__verticalPasses:null,clone:function(){return new sd(this.__color,this.__alpha,this.__blurX,this.__blurY,this.__strength,this.__quality,this.__inner,this.__knockout)},__applyFilter:function(a,b,c,d){var e=this.__color>>16&255,f=this.__color>>8&255,h=this.__color&255;c=Ga.gaussianBlur(a.image,b.image,c.__toLimeRectangle(),
d.__toLimeVector2(),this.__blurX,this.__blurY,this.__quality,this.__strength);c.colorTransform(c.get_rect(),(new tc(0,0,0,this.__alpha,e,f,h,0)).__toLimeColorMatrix());return c==a.image?a:b},__initShader:function(a,b,c){if(this.__inner&&0==b)return sd.__invertAlphaShader;a=b-(this.__inner?1:0);b=this.__horizontalPasses+this.__verticalPasses;if(a<b){var d=sd.__blurAlphaShader;a<this.__horizontalPasses?(c=.5*Math.pow(.5,a>>1),d.uRadius.value[0]=this.get_blurX()*c,d.uRadius.value[1]=0):(c=.5*Math.pow(.5,
a-this.__horizontalPasses>>1),d.uRadius.value[0]=0,d.uRadius.value[1]=this.get_blurY()*c);d.uColor.value[0]=(this.get_color()>>16&255)/255;d.uColor.value[1]=(this.get_color()>>8&255)/255;d.uColor.value[2]=(this.get_color()&255)/255;d.uColor.value[3]=this.get_alpha();d.uStrength.value[0]=a==b-1?this.__strength:1;return d}if(this.__inner){if(this.__knockout)return d=sd.__innerCombineKnockoutShader,d.sourceBitmap.input=c,d.offset.value[0]=0,d.offset.value[1]=0,d;d=sd.__innerCombineShader}else{if(this.__knockout)return d=
sd.__combineKnockoutShader,d.sourceBitmap.input=c,d.offset.value[0]=0,d.offset.value[1]=0,d;d=sd.__combineShader}d.sourceBitmap.input=c;d.offset.value[0]=0;d.offset.value[1]=0;return d},__updateSize:function(){this.__rightExtension=this.__leftExtension=0<this.__blurX?Math.ceil(1.5*this.__blurX):0;this.__bottomExtension=this.__topExtension=0<this.__blurY?Math.ceil(1.5*this.__blurY):0;this.__calculateNumShaderPasses()},__calculateNumShaderPasses:function(){this.__horizontalPasses=0>=this.__blurX?0:
Math.round(this.__quality/4*this.__blurX)+1;this.__verticalPasses=0>=this.__blurY?0:Math.round(this.__quality/4*this.__blurY)+1;this.__numShaderPasses=this.__horizontalPasses+this.__verticalPasses+(this.__inner?2:1)},get_alpha:function(){return this.__alpha},set_alpha:function(a){a!=this.__alpha&&(this.__renderDirty=!0);return this.__alpha=a},get_blurX:function(){return this.__blurX},set_blurX:function(a){a!=this.__blurX&&(this.__blurX=a,this.__renderDirty=!0,this.__updateSize());return a},get_blurY:function(){return this.__blurY},
set_blurY:function(a){a!=this.__blurY&&(this.__blurY=a,this.__renderDirty=!0,this.__updateSize());return a},get_color:function(){return this.__color},set_color:function(a){a!=this.__color&&(this.__renderDirty=!0);return this.__color=a},get_inner:function(){return this.__inner},set_inner:function(a){a!=this.__inner&&(this.__renderDirty=!0,this.__calculateNumShaderPasses());return this.__inner=a},get_knockout:function(){return this.__knockout},set_knockout:function(a){a!=this.__knockout&&(this.__renderDirty=
!0,this.__calculateNumShaderPasses());return this.__knockout=a},get_quality:function(){return this.__quality},set_quality:function(a){a!=this.__quality&&(this.__renderDirty=!0,this.__calculateNumShaderPasses());return this.__quality=a},get_strength:function(){return this.__strength},set_strength:function(a){a!=this.__strength&&(this.__renderDirty=!0);return this.__strength=a},__class__:sd,__properties__:{set_strength:"set_strength",get_strength:"get_strength",set_quality:"set_quality",get_quality:"get_quality",
set_knockout:"set_knockout",get_knockout:"get_knockout",set_inner:"set_inner",get_inner:"get_inner",set_color:"set_color",get_color:"get_color",set_blurY:"set_blurY",get_blurY:"get_blurY",set_blurX:"set_blurX",get_blurX:"get_blurX",set_alpha:"set_alpha",get_alpha:"get_alpha"}});var Bd=function(a){null!=a&&16==a.get_length()?this.rawData=a.concat(null):this.rawData=fb.toFloatVector(null,null,null,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};g["openfl.geom.Matrix3D"]=Bd;Bd.__name__="openfl.geom.Matrix3D";Bd.create2D=
function(a,b,c,d){null==d&&(d=0);null==c&&(c=1);var e=d*Math.PI/180;d=Math.cos(e);e=Math.sin(e);return new Bd(fb.toFloatVector(null,null,null,[d*c,-e*c,0,0,e*c,d*c,0,0,0,0,1,0,a,b,0,1]))};Bd.createABCD=function(a,b,c,d,e,f){return new Bd(fb.toFloatVector(null,null,null,[a,b,0,0,c,d,0,0,0,0,1,0,e,f,0,1]))};Bd.createOrtho=function(a,b,c,d,e,f){var h=1/(b-a),l=1/(d-c),m=1/(f-e);return new Bd(fb.toFloatVector(null,null,null,[2*h,0,0,0,0,2*l,0,0,0,0,-2*m,0,-(a+b)*h,-(c+d)*l,-(e+f)*m,1]))};Bd.interpolate=
function(a,b,c){for(var d=new Bd,e=0;16>e;){var f=e++;d.rawData.set(f,a.rawData.get(f)+(b.rawData.get(f)-a.rawData.get(f))*c)}return d};Bd.__getAxisRotation=function(a,b,c,d){var e=new Bd;a=new Rc(a,b,c);d=Math.PI/180*-d;c=Math.cos(d);d=Math.sin(d);b=1-c;e.rawData.set(0,c+a.x*a.x*b);e.rawData.set(5,c+a.y*a.y*b);e.rawData.set(10,c+a.z*a.z*b);c=a.x*a.y*b;var f=a.z*d;e.rawData.set(4,c+f);e.rawData.set(1,c-f);c=a.x*a.z*b;f=a.y*d;e.rawData.set(8,c-f);e.rawData.set(2,c+f);c=a.y*a.z*b;f=a.x*d;e.rawData.set(9,
c+f);e.rawData.set(6,c-f);return e};Bd.prototype={rawData:null,append:function(a){var b=this.rawData.get(0),c=this.rawData.get(4),d=this.rawData.get(8),e=this.rawData.get(12),f=this.rawData.get(1),h=this.rawData.get(5),l=this.rawData.get(9),m=this.rawData.get(13),g=this.rawData.get(2),k=this.rawData.get(6),n=this.rawData.get(10),q=this.rawData.get(14),p=this.rawData.get(3),r=this.rawData.get(7),v=this.rawData.get(11),u=this.rawData.get(15),x=a.rawData.get(0),w=a.rawData.get(4),z=a.rawData.get(8),
U=a.rawData.get(12),X=a.rawData.get(1),B=a.rawData.get(5),P=a.rawData.get(9),F=a.rawData.get(13),D=a.rawData.get(2),Ha=a.rawData.get(6),G=a.rawData.get(10),C=a.rawData.get(14),H=a.rawData.get(3),y=a.rawData.get(7),I=a.rawData.get(11);a=a.rawData.get(15);this.rawData.set(0,b*x+f*w+g*z+p*U);this.rawData.set(1,b*X+f*B+g*P+p*F);this.rawData.set(2,b*D+f*Ha+g*G+p*C);this.rawData.set(3,b*H+f*y+g*I+p*a);this.rawData.set(4,c*x+h*w+k*z+r*U);this.rawData.set(5,c*X+h*B+k*P+r*F);this.rawData.set(6,c*D+h*Ha+k*
G+r*C);this.rawData.set(7,c*H+h*y+k*I+r*a);this.rawData.set(8,d*x+l*w+n*z+v*U);this.rawData.set(9,d*X+l*B+n*P+v*F);this.rawData.set(10,d*D+l*Ha+n*G+v*C);this.rawData.set(11,d*H+l*y+n*I+v*a);this.rawData.set(12,e*x+m*w+q*z+u*U);this.rawData.set(13,e*X+m*B+q*P+u*F);this.rawData.set(14,e*D+m*Ha+q*G+u*C);this.rawData.set(15,e*H+m*y+q*I+u*a)},appendRotation:function(a,b,c){var d=0,e=d,f=e;null!=c&&(f=c.x,e=c.y,d=c.z);c=a*Math.PI/180;a=Math.cos(c);c=Math.sin(c);var h=b.x,l=b.y;b=b.z;var m=h*h,g=l*l,k=b*
b,n=m+g+k;if(0!=n){var q=Math.sqrt(n);h/=q;l/=q;b/=q;m/=n;g/=n;k/=n}n=1-a;q=new Bd;var p=q.rawData;p.set(0,m+(g+k)*a);p.set(1,h*l*n+b*c);p.set(2,h*b*n-l*c);p.set(4,h*l*n-b*c);p.set(5,g+(m+k)*a);p.set(6,l*b*n+h*c);p.set(8,h*b*n+l*c);p.set(9,l*b*n-h*c);p.set(10,k+(m+g)*a);p.set(12,(f*(g+k)-h*(e*l+d*b))*n+(e*b-d*l)*c);p.set(13,(e*(m+k)-l*(f*h+d*b))*n+(d*h-f*b)*c);p.set(14,(d*(m+g)-b*(f*h+e*l))*n+(f*l-e*h)*c);this.append(q)},appendScale:function(a,b,c){this.append(new Bd(fb.toFloatVector(null,null,null,
[a,0,0,0,0,b,0,0,0,0,c,0,0,0,0,1])))},appendTranslation:function(a,b,c){var d=this.rawData;d.set(12,d.get(12)+a);d=this.rawData;d.set(13,d.get(13)+b);d=this.rawData;d.set(14,d.get(14)+c)},clone:function(){return new Bd(this.rawData.copy())},copyColumnFrom:function(a,b){switch(a){case 0:this.rawData.set(0,b.x);this.rawData.set(1,b.y);this.rawData.set(2,b.z);this.rawData.set(3,b.w);break;case 1:this.rawData.set(4,b.x);this.rawData.set(5,b.y);this.rawData.set(6,b.z);this.rawData.set(7,b.w);break;case 2:this.rawData.set(8,
b.x);this.rawData.set(9,b.y);this.rawData.set(10,b.z);this.rawData.set(11,b.w);break;case 3:this.rawData.set(12,b.x),this.rawData.set(13,b.y),this.rawData.set(14,b.z),this.rawData.set(15,b.w)}},copyColumnTo:function(a,b){switch(a){case 0:b.x=this.rawData.get(0);b.y=this.rawData.get(1);b.z=this.rawData.get(2);b.w=this.rawData.get(3);break;case 1:b.x=this.rawData.get(4);b.y=this.rawData.get(5);b.z=this.rawData.get(6);b.w=this.rawData.get(7);break;case 2:b.x=this.rawData.get(8);b.y=this.rawData.get(9);
b.z=this.rawData.get(10);b.w=this.rawData.get(11);break;case 3:b.x=this.rawData.get(12),b.y=this.rawData.get(13),b.z=this.rawData.get(14),b.w=this.rawData.get(15)}},copyFrom:function(a){this.rawData=a.rawData.copy()},copyRawDataFrom:function(a,b,c){null==c&&(c=!1);null==b&&(b=0);c&&this.transpose();for(var d=0,e=a.get_length()-b;d<e;){var f=d++;this.rawData.set(f,a.get(f+b))}c&&this.transpose()},copyRawDataTo:function(a,b,c){null==c&&(c=!1);null==b&&(b=0);c&&this.transpose();for(var d=0,e=this.rawData.get_length();d<
e;){var f=d++;a.set(f+b,this.rawData.get(f))}c&&this.transpose()},copyRowFrom:function(a,b){switch(a){case 0:this.rawData.set(0,b.x);this.rawData.set(4,b.y);this.rawData.set(8,b.z);this.rawData.set(12,b.w);break;case 1:this.rawData.set(1,b.x);this.rawData.set(5,b.y);this.rawData.set(9,b.z);this.rawData.set(13,b.w);break;case 2:this.rawData.set(2,b.x);this.rawData.set(6,b.y);this.rawData.set(10,b.z);this.rawData.set(14,b.w);break;case 3:this.rawData.set(3,b.x),this.rawData.set(7,b.y),this.rawData.set(11,
b.z),this.rawData.set(15,b.w)}},copyRowTo:function(a,b){switch(a){case 0:b.x=this.rawData.get(0);b.y=this.rawData.get(4);b.z=this.rawData.get(8);b.w=this.rawData.get(12);break;case 1:b.x=this.rawData.get(1);b.y=this.rawData.get(5);b.z=this.rawData.get(9);b.w=this.rawData.get(13);break;case 2:b.x=this.rawData.get(2);b.y=this.rawData.get(6);b.z=this.rawData.get(10);b.w=this.rawData.get(14);break;case 3:b.x=this.rawData.get(3),b.y=this.rawData.get(7),b.z=this.rawData.get(11),b.w=this.rawData.get(15)}},
copyToMatrix3D:function(a){a.rawData=this.rawData.copy()},decompose:function(a){null==a&&(a=1);var b=fb.toObjectVector(null),c=this.clone().rawData.copy(),d=new Rc(c.get(12),c.get(13),c.get(14));c.set(12,0);c.set(13,0);c.set(14,0);var e=new Rc;e.x=Math.sqrt(c.get(0)*c.get(0)+c.get(1)*c.get(1)+c.get(2)*c.get(2));e.y=Math.sqrt(c.get(4)*c.get(4)+c.get(5)*c.get(5)+c.get(6)*c.get(6));e.z=Math.sqrt(c.get(8)*c.get(8)+c.get(9)*c.get(9)+c.get(10)*c.get(10));0>c.get(0)*(c.get(5)*c.get(10)-c.get(6)*c.get(9))-
c.get(1)*(c.get(4)*c.get(10)-c.get(6)*c.get(8))+c.get(2)*(c.get(4)*c.get(9)-c.get(5)*c.get(8))&&(e.z=-e.z);var f=c;f.set(0,f.get(0)/e.x);f=c;f.set(1,f.get(1)/e.x);f=c;f.set(2,f.get(2)/e.x);f=c;f.set(4,f.get(4)/e.y);f=c;f.set(5,f.get(5)/e.y);f=c;f.set(6,f.get(6)/e.y);f=c;f.set(8,f.get(8)/e.z);f=c;f.set(9,f.get(9)/e.z);f=c;f.set(10,f.get(10)/e.z);f=new Rc;switch(a){case 0:f.w=Math.acos((c.get(0)+c.get(5)+c.get(10)-1)/2);a=Math.sqrt((c.get(6)-c.get(9))*(c.get(6)-c.get(9))+(c.get(8)-c.get(2))*(c.get(8)-
c.get(2))+(c.get(1)-c.get(4))*(c.get(1)-c.get(4)));0!=a?(f.x=(c.get(6)-c.get(9))/a,f.y=(c.get(8)-c.get(2))/a,f.z=(c.get(1)-c.get(4))/a):f.x=f.y=f.z=0;break;case 1:f.y=Math.asin(-c.get(2));1!=c.get(2)&&-1!=c.get(2)?(f.x=Math.atan2(c.get(6),c.get(10)),f.z=Math.atan2(c.get(1),c.get(0))):(f.z=0,f.x=Math.atan2(c.get(4),c.get(5)));break;case 2:a=c.get(0)+c.get(5)+c.get(10),0<a?(f.w=Math.sqrt(1+a)/2,f.x=(c.get(6)-c.get(9))/(4*f.w),f.y=(c.get(8)-c.get(2))/(4*f.w),f.z=(c.get(1)-c.get(4))/(4*f.w)):c.get(0)>
c.get(5)&&c.get(0)>c.get(10)?(f.x=Math.sqrt(1+c.get(0)-c.get(5)-c.get(10))/2,f.w=(c.get(6)-c.get(9))/(4*f.x),f.y=(c.get(1)+c.get(4))/(4*f.x),f.z=(c.get(8)+c.get(2))/(4*f.x)):c.get(5)>c.get(10)?(f.y=Math.sqrt(1+c.get(5)-c.get(0)-c.get(10))/2,f.x=(c.get(1)+c.get(4))/(4*f.y),f.w=(c.get(8)-c.get(2))/(4*f.y),f.z=(c.get(6)+c.get(9))/(4*f.y)):(f.z=Math.sqrt(1+c.get(10)-c.get(0)-c.get(5))/2,f.x=(c.get(8)+c.get(2))/(4*f.z),f.y=(c.get(6)+c.get(9))/(4*f.z),f.w=(c.get(1)-c.get(4))/(4*f.z))}b.push(d);b.push(f);
b.push(e);return b},deltaTransformVector:function(a){var b=a.x,c=a.y;a=a.z;return new Rc(b*this.rawData.get(0)+c*this.rawData.get(4)+a*this.rawData.get(8),b*this.rawData.get(1)+c*this.rawData.get(5)+a*this.rawData.get(9),b*this.rawData.get(2)+c*this.rawData.get(6)+a*this.rawData.get(10),b*this.rawData.get(3)+c*this.rawData.get(7)+a*this.rawData.get(11))},identity:function(){this.rawData=fb.toFloatVector(null,null,null,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])},interpolateTo:function(a,b){for(var c=0;16>
c;){var d=c++;this.rawData.set(d,this.rawData.get(d)+(a.rawData.get(d)-this.rawData.get(d))*b)}},invert:function(){var a=this.get_determinant(),b=1E-11<Math.abs(a);if(b){a=1/a;var c=this.rawData.get(0),d=this.rawData.get(4),e=this.rawData.get(8),f=this.rawData.get(12),h=this.rawData.get(1),l=this.rawData.get(5),m=this.rawData.get(9),g=this.rawData.get(13),k=this.rawData.get(2),n=this.rawData.get(6),q=this.rawData.get(10),p=this.rawData.get(14),r=this.rawData.get(3),v=this.rawData.get(7),u=this.rawData.get(11),
x=this.rawData.get(15);this.rawData.set(0,a*(l*(q*x-p*u)-m*(n*x-p*v)+g*(n*u-q*v)));this.rawData.set(1,-a*(h*(q*x-p*u)-m*(k*x-p*r)+g*(k*u-q*r)));this.rawData.set(2,a*(h*(n*x-p*v)-l*(k*x-p*r)+g*(k*v-n*r)));this.rawData.set(3,-a*(h*(n*u-q*v)-l*(k*u-q*r)+m*(k*v-n*r)));this.rawData.set(4,-a*(d*(q*x-p*u)-e*(n*x-p*v)+f*(n*u-q*v)));this.rawData.set(5,a*(c*(q*x-p*u)-e*(k*x-p*r)+f*(k*u-q*r)));this.rawData.set(6,-a*(c*(n*x-p*v)-d*(k*x-p*r)+f*(k*v-n*r)));this.rawData.set(7,a*(c*(n*u-q*v)-d*(k*u-q*r)+e*(k*v-n*
r)));this.rawData.set(8,a*(d*(m*x-g*u)-e*(l*x-g*v)+f*(l*u-m*v)));this.rawData.set(9,-a*(c*(m*x-g*u)-e*(h*x-g*r)+f*(h*u-m*r)));this.rawData.set(10,a*(c*(l*x-g*v)-d*(h*x-g*r)+f*(h*v-l*r)));this.rawData.set(11,-a*(c*(l*u-m*v)-d*(h*u-m*r)+e*(h*v-l*r)));this.rawData.set(12,-a*(d*(m*p-g*q)-e*(l*p-g*n)+f*(l*q-m*n)));this.rawData.set(13,a*(c*(m*p-g*q)-e*(h*p-g*k)+f*(h*q-m*k)));this.rawData.set(14,-a*(c*(l*p-g*n)-d*(h*p-g*k)+f*(h*n-l*k)));this.rawData.set(15,a*(c*(l*q-m*n)-d*(h*q-m*k)+e*(h*n-l*k)))}return b},
pointAt:function(a,b,c){null==b&&(b=new Rc(0,0,-1));null==c&&(c=new Rc(0,-1,0));b=b.subtract(a);c=c.clone();b.normalize();c.normalize();var d=b.clone();d.scaleBy(c.dotProduct(b));c=c.subtract(d);0<c.get_length()?c.normalize():c=0!=b.x?new Rc(-b.y,b.x,0):new Rc(1,0,0);d=c.crossProduct(b);d.normalize();this.rawData.set(0,d.x);this.rawData.set(4,d.y);this.rawData.set(8,d.z);this.rawData.set(12,0);this.rawData.set(1,c.x);this.rawData.set(5,c.y);this.rawData.set(9,c.z);this.rawData.set(13,0);this.rawData.set(2,
b.x);this.rawData.set(6,b.y);this.rawData.set(10,b.z);this.rawData.set(14,0);this.rawData.set(3,a.x);this.rawData.set(7,a.y);this.rawData.set(11,a.z);this.rawData.set(15,1)},prepend:function(a){var b=a.rawData.get(0),c=a.rawData.get(4),d=a.rawData.get(8),e=a.rawData.get(12),f=a.rawData.get(1),h=a.rawData.get(5),l=a.rawData.get(9),m=a.rawData.get(13),g=a.rawData.get(2),k=a.rawData.get(6),n=a.rawData.get(10),q=a.rawData.get(14),p=a.rawData.get(3),r=a.rawData.get(7),v=a.rawData.get(11);a=a.rawData.get(15);
var u=this.rawData.get(0),x=this.rawData.get(4),w=this.rawData.get(8),z=this.rawData.get(12),U=this.rawData.get(1),X=this.rawData.get(5),B=this.rawData.get(9),P=this.rawData.get(13),F=this.rawData.get(2),D=this.rawData.get(6),Ha=this.rawData.get(10),G=this.rawData.get(14),C=this.rawData.get(3),H=this.rawData.get(7),y=this.rawData.get(11),I=this.rawData.get(15);this.rawData.set(0,b*u+f*x+g*w+p*z);this.rawData.set(1,b*U+f*X+g*B+p*P);this.rawData.set(2,b*F+f*D+g*Ha+p*G);this.rawData.set(3,b*C+f*H+g*
y+p*I);this.rawData.set(4,c*u+h*x+k*w+r*z);this.rawData.set(5,c*U+h*X+k*B+r*P);this.rawData.set(6,c*F+h*D+k*Ha+r*G);this.rawData.set(7,c*C+h*H+k*y+r*I);this.rawData.set(8,d*u+l*x+n*w+v*z);this.rawData.set(9,d*U+l*X+n*B+v*P);this.rawData.set(10,d*F+l*D+n*Ha+v*G);this.rawData.set(11,d*C+l*H+n*y+v*I);this.rawData.set(12,e*u+m*x+q*w+a*z);this.rawData.set(13,e*U+m*X+q*B+a*P);this.rawData.set(14,e*F+m*D+q*Ha+a*G);this.rawData.set(15,e*C+m*H+q*y+a*I)},prependRotation:function(a,b,c){var d=0,e=d,f=e;null!=
c&&(f=c.x,e=c.y,d=c.z);c=a*Math.PI/180;a=Math.cos(c);c=Math.sin(c);var h=b.x,l=b.y;b=b.z;var m=h*h,g=l*l,k=b*b,n=m+g+k;if(0!=n){var q=Math.sqrt(n);h/=q;l/=q;b/=q;m/=n;g/=n;k/=n}n=1-a;q=new Bd;var p=q.rawData;p.set(0,m+(g+k)*a);p.set(1,h*l*n+b*c);p.set(2,h*b*n-l*c);p.set(4,h*l*n-b*c);p.set(5,g+(m+k)*a);p.set(6,l*b*n+h*c);p.set(8,h*b*n+l*c);p.set(9,l*b*n-h*c);p.set(10,k+(m+g)*a);p.set(12,(f*(g+k)-h*(e*l+d*b))*n+(e*b-d*l)*c);p.set(13,(e*(m+k)-l*(f*h+d*b))*n+(d*h-f*b)*c);p.set(14,(d*(m+g)-b*(f*h+e*l))*
n+(f*l-e*h)*c);this.prepend(q)},prependScale:function(a,b,c){this.prepend(new Bd(fb.toFloatVector(null,null,null,[a,0,0,0,0,b,0,0,0,0,c,0,0,0,0,1])))},prependTranslation:function(a,b,c){var d=new Bd;d.set_position(new Rc(a,b,c));this.prepend(d)},recompose:function(a,b){null==b&&(b=1);if(3>a.get_length()||0==a.get(2).x||0==a.get(2).y||0==a.get(2).z)return!1;this.identity();var c=[];c[0]=c[1]=c[2]=a.get(2).x;c[4]=c[5]=c[6]=a.get(2).y;c[8]=c[9]=c[10]=a.get(2).z;if(1==b){b=Math.cos(a.get(1).x);var d=
Math.cos(a.get(1).y),e=Math.cos(a.get(1).z),f=Math.sin(a.get(1).x),h=Math.sin(a.get(1).y),l=Math.sin(a.get(1).z);this.rawData.set(0,d*e*c[0]);this.rawData.set(1,d*l*c[1]);this.rawData.set(2,-h*c[2]);this.rawData.set(3,0);this.rawData.set(4,(f*h*e-b*l)*c[4]);this.rawData.set(5,(f*h*l+b*e)*c[5]);this.rawData.set(6,f*d*c[6]);this.rawData.set(7,0);this.rawData.set(8,(b*h*e+f*l)*c[8]);this.rawData.set(9,(b*h*l-f*e)*c[9]);this.rawData.set(10,b*d*c[10])}else d=a.get(1).x,e=a.get(1).y,f=a.get(1).z,h=a.get(1).w,
0==b&&(d*=Math.sin(h/2),e*=Math.sin(h/2),f*=Math.sin(h/2),h=Math.cos(h/2)),this.rawData.set(0,(1-2*e*e-2*f*f)*c[0]),this.rawData.set(1,(2*d*e+2*h*f)*c[1]),this.rawData.set(2,(2*d*f-2*h*e)*c[2]),this.rawData.set(3,0),this.rawData.set(4,(2*d*e-2*h*f)*c[4]),this.rawData.set(5,(1-2*d*d-2*f*f)*c[5]),this.rawData.set(6,(2*e*f+2*h*d)*c[6]),this.rawData.set(7,0),this.rawData.set(8,(2*d*f+2*h*e)*c[8]),this.rawData.set(9,(2*e*f-2*h*d)*c[9]),this.rawData.set(10,(1-2*d*d-2*e*e)*c[10]);this.rawData.set(11,0);
this.rawData.set(12,a.get(0).x);this.rawData.set(13,a.get(0).y);this.rawData.set(14,a.get(0).z);this.rawData.set(15,1);0==a.get(2).x&&this.rawData.set(0,1E-15);0==a.get(2).y&&this.rawData.set(5,1E-15);0==a.get(2).z&&this.rawData.set(10,1E-15);return!(0==a.get(2).x||0==a.get(2).y||0==a.get(2).y)},transformVector:function(a){var b=a.x,c=a.y;a=a.z;return new Rc(b*this.rawData.get(0)+c*this.rawData.get(4)+a*this.rawData.get(8)+this.rawData.get(12),b*this.rawData.get(1)+c*this.rawData.get(5)+a*this.rawData.get(9)+
this.rawData.get(13),b*this.rawData.get(2)+c*this.rawData.get(6)+a*this.rawData.get(10)+this.rawData.get(14),b*this.rawData.get(3)+c*this.rawData.get(7)+a*this.rawData.get(11)+this.rawData.get(15))},transformVectors:function(a,b){for(var c=0,d,e,f;c+3<=a.get_length();)d=a.get(c),e=a.get(c+1),f=a.get(c+2),b.set(c,d*this.rawData.get(0)+e*this.rawData.get(4)+f*this.rawData.get(8)+this.rawData.get(12)),b.set(c+1,d*this.rawData.get(1)+e*this.rawData.get(5)+f*this.rawData.get(9)+this.rawData.get(13)),b.set(c+
2,d*this.rawData.get(2)+e*this.rawData.get(6)+f*this.rawData.get(10)+this.rawData.get(14)),c+=3},transpose:function(){var a=this.rawData.copy();this.rawData.set(1,a.get(4));this.rawData.set(2,a.get(8));this.rawData.set(3,a.get(12));this.rawData.set(4,a.get(1));this.rawData.set(6,a.get(9));this.rawData.set(7,a.get(13));this.rawData.set(8,a.get(2));this.rawData.set(9,a.get(6));this.rawData.set(11,a.get(14));this.rawData.set(12,a.get(3));this.rawData.set(13,a.get(7));this.rawData.set(14,a.get(11))},
get_determinant:function(){return(this.rawData.get(0)*this.rawData.get(5)-this.rawData.get(4)*this.rawData.get(1))*(this.rawData.get(10)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(11))-(this.rawData.get(0)*this.rawData.get(9)-this.rawData.get(8)*this.rawData.get(1))*(this.rawData.get(6)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(7))+(this.rawData.get(0)*this.rawData.get(13)-this.rawData.get(12)*this.rawData.get(1))*(this.rawData.get(6)*this.rawData.get(11)-this.rawData.get(10)*
this.rawData.get(7))+(this.rawData.get(4)*this.rawData.get(9)-this.rawData.get(8)*this.rawData.get(5))*(this.rawData.get(2)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(3))-(this.rawData.get(4)*this.rawData.get(13)-this.rawData.get(12)*this.rawData.get(5))*(this.rawData.get(2)*this.rawData.get(11)-this.rawData.get(10)*this.rawData.get(3))+(this.rawData.get(8)*this.rawData.get(13)-this.rawData.get(12)*this.rawData.get(9))*(this.rawData.get(2)*this.rawData.get(7)-this.rawData.get(6)*this.rawData.get(3))},
get_position:function(){return new Rc(this.rawData.get(12),this.rawData.get(13),this.rawData.get(14))},set_position:function(a){this.rawData.set(12,a.x);this.rawData.set(13,a.y);this.rawData.set(14,a.z);return a},__class__:Bd,__properties__:{set_position:"set_position",get_position:"get_position",get_determinant:"get_determinant"}};var io=function(a){this.__colorTransform=new tc;this.concatenatedColorTransform=new tc;this.pixelBounds=new ha;this.__displayObject=a;this.__hasMatrix=!0};g["openfl.geom.Transform"]=
io;io.__name__="openfl.geom.Transform";io.prototype={concatenatedColorTransform:null,pixelBounds:null,__colorTransform:null,__displayObject:null,__hasMatrix:null,__hasMatrix3D:null,get_colorTransform:function(){return this.__colorTransform.__clone()},set_colorTransform:function(a){this.__colorTransform.__equals(a,!1)||(this.__colorTransform.__copyFrom(a),null!=a&&this.__displayObject.set_alpha(a.alphaMultiplier),a=this.__displayObject,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));
return this.__colorTransform},get_concatenatedMatrix:function(){return this.__hasMatrix?this.__displayObject.__getWorldTransform().clone():null},get_matrix:function(){return this.__hasMatrix?this.__displayObject.__transform.clone():null},set_matrix:function(a){if(null==a)return this.__hasMatrix=!1,null;this.__hasMatrix=!0;this.__hasMatrix3D=!1;null!=this.__displayObject&&this.__setTransform(a.a,a.b,a.c,a.d,a.tx,a.ty);return a},get_matrix3D:function(){if(this.__hasMatrix3D){var a=this.__displayObject.__transform;
return new Bd(fb.toFloatVector(null,null,null,[a.a,a.b,0,0,a.c,a.d,0,0,0,0,1,0,a.tx,a.ty,0,1]))}return null},set_matrix3D:function(a){if(null==a)return this.__hasMatrix3D=!1,null;this.__hasMatrix=!1;this.__hasMatrix3D=!0;this.__setTransform(a.rawData.get(0),a.rawData.get(1),a.rawData.get(5),a.rawData.get(6),a.rawData.get(12),a.rawData.get(13));return a},__setTransform:function(a,b,c,d,e,f){if(null!=this.__displayObject){var h=this.__displayObject.__transform;if(h.a!=a||h.b!=b||h.c!=c||h.d!=d||h.tx!=
e||h.ty!=f){var l=0==b?a:Math.sqrt(a*a+b*b);var m=0==c?d:Math.sqrt(c*c+d*d);this.__displayObject.__scaleX=l;this.__displayObject.__scaleY=m;l=180/Math.PI*Math.atan2(d,c)-90;l!=this.__displayObject.__rotation&&(this.__displayObject.__rotation=l,l*=Math.PI/180,this.__displayObject.__rotationSine=Math.sin(l),this.__displayObject.__rotationCosine=Math.cos(l));h.a=a;h.b=b;h.c=c;h.d=d;h.tx=e;h.ty=f;this.__displayObject.__setTransformDirty()}}},__class__:io,__properties__:{set_matrix3D:"set_matrix3D",get_matrix3D:"get_matrix3D",
set_matrix:"set_matrix",get_matrix:"get_matrix",get_concatenatedMatrix:"get_concatenatedMatrix",set_colorTransform:"set_colorTransform",get_colorTransform:"get_colorTransform"}};var Rc=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["openfl.geom.Vector3D"]=Rc;Rc.__name__="openfl.geom.Vector3D";Rc.__properties__={get_Z_AXIS:"get_Z_AXIS",get_Y_AXIS:"get_Y_AXIS",get_X_AXIS:"get_X_AXIS"};Rc.angleBetween=function(a,b){var c=a.get_length(),
d=b.get_length();a=a.dotProduct(b);0!=c&&(a/=c);0!=d&&(a/=d);return Math.acos(a)};Rc.distance=function(a,b){var c=b.x-a.x,d=b.y-a.y;a=b.z-a.z;return Math.sqrt(c*c+d*d+a*a)};Rc.get_X_AXIS=function(){return new Rc(1,0,0)};Rc.get_Y_AXIS=function(){return new Rc(0,1,0)};Rc.get_Z_AXIS=function(){return new Rc(0,0,1)};Rc.prototype={w:null,x:null,y:null,z:null,add:function(a){return new Rc(this.x+a.x,this.y+a.y,this.z+a.z)},clone:function(){return new Rc(this.x,this.y,this.z,this.w)},copyFrom:function(a){this.x=
a.x;this.y=a.y;this.z=a.z},crossProduct:function(a){return new Rc(this.y*a.z-this.z*a.y,this.z*a.x-this.x*a.z,this.x*a.y-this.y*a.x,1)},decrementBy:function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z},dotProduct:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},equals:function(a,b){null==b&&(b=!1);return this.x==a.x&&this.y==a.y&&this.z==a.z?b?this.w==a.w:!0:!1},incrementBy:function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z},nearEquals:function(a,b,c){null==c&&(c=!1);return Math.abs(this.x-a.x)<b&&Math.abs(this.y-
a.y)<b&&Math.abs(this.z-a.z)<b?c?Math.abs(this.w-a.w)<b:!0:!1},negate:function(){this.x*=-1;this.y*=-1;this.z*=-1},normalize:function(){var a=this.get_length();0!=a&&(this.x/=a,this.y/=a,this.z/=a);return a},project:function(){this.x/=this.w;this.y/=this.w;this.z/=this.w},scaleBy:function(a){this.x*=a;this.y*=a;this.z*=a},setTo:function(a,b,c){this.x=a;this.y=b;this.z=c},subtract:function(a){return new Rc(this.x-a.x,this.y-a.y,this.z-a.z)},toString:function(){return"Vector3D("+this.x+", "+this.y+
", "+this.z+")"},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},get_lengthSquared:function(){return this.x*this.x+this.y*this.y+this.z*this.z},__class__:Rc,__properties__:{get_lengthSquared:"get_lengthSquared",get_length:"get_length"}};var st=function(){};g["openfl.media.ID3Info"]=st;st.__name__="openfl.media.ID3Info";st.prototype={album:null,artist:null,comment:null,genre:null,songName:null,track:null,year:null,__class__:st};var jf=function(a,b){L.call(this,this);
this.bytesTotal=this.bytesLoaded=0;this.isBuffering=!1;this.url=null;null!=a&&this.load(a,b)};g["openfl.media.Sound"]=jf;jf.__name__="openfl.media.Sound";jf.fromAudioBuffer=function(a){var b=new jf;b.__buffer=a;return b};jf.fromFile=function(a){return jf.fromAudioBuffer(vc.fromFile(a))};jf.loadFromFile=function(a){return vc.loadFromFile(a).then(function(a){return Ja.withValue(jf.fromAudioBuffer(a))})};jf.loadFromFiles=function(a){return vc.loadFromFiles(a).then(function(a){return Ja.withValue(jf.fromAudioBuffer(a))})};
jf.__super__=L;jf.prototype=r(L.prototype,{bytesLoaded:null,bytesTotal:null,isBuffering:null,url:null,__buffer:null,close:function(){null!=this.__buffer&&(this.__buffer.dispose(),this.__buffer=null)},load:function(a,b){var c=this;this.url=a.url;a=oa.getLibrary("default");if(null!=a&&Object.prototype.hasOwnProperty.call(a.cachedAudioBuffers.h,this.url))this.AudioBuffer_onURLLoad(a.cachedAudioBuffers.h[this.url]);else vc.loadFromFile(this.url).onComplete(k(this,this.AudioBuffer_onURLLoad)).onError(function(a){c.AudioBuffer_onURLLoad(null)})},
loadCompressedDataFromByteArray:function(a,b){if(null==a||0>=b)this.dispatchEvent(new eg("ioError"));else{if(za.gt(a.position,0)||za.gt(Mb.get_length(a),b)){var c=b;null==c&&(c=0);var d=new Nb(c),e=a.position;c=b;null==c&&(c=0);null==e&&(e=0);d.writeBytes(a,e,c);a=d}this.__buffer=vc.fromBytes(Mb.toBytes(a));null==this.__buffer?this.dispatchEvent(new eg("ioError")):this.dispatchEvent(new W("complete"))}},loadPCMFromByteArray:function(a,b,c,d,e){null==e&&(e=44100);null==d&&(d=!0);null==c&&(c="float");
if(null==a)this.dispatchEvent(new eg("ioError"));else{c="float"==c?32:16;d=d?2:1;b=c/8*d*b|0;if(za.gt(a.position,0)||za.gt(Mb.get_length(a),b)){var f=b;null==f&&(f=0);var h=new Nb(f),l=a.position;f=b;null==f&&(f=0);null==l&&(l=0);h.writeBytes(a,l,f);a=h}b=new vc;b.bitsPerSample=c;b.channels=d;a=Mb.toArrayBuffer(a);a=null!=a?new Uint8Array(a,0):null;b.data=a;b.sampleRate=e|0;this.__buffer=b;this.dispatchEvent(new W("complete"))}},play:function(a,b,c){null==b&&(b=0);null==a&&(a=0);if(null==this.__buffer||
32<=Vc.__soundChannels.length)return null;c=null==c?new hf:c.clone();var d=Vc.__soundTransform.pan+c.pan;1<d&&(d=1);-1>d&&(d=-1);var e=Vc.__soundTransform.volume*c.volume,f=new xp(this.__buffer);f.offset=a|0;1<b&&f.set_loops(b-1);f.set_gain(e);a=f.get_position();a.x=d;a.z=-1*Math.sqrt(1-Math.pow(d,2));f.set_position(a);return new Qq(f,c)},get_id3:function(){return new st},get_length:function(){return null!=this.__buffer?1E3*this.__buffer.get_src().duration()|0:0},AudioBuffer_onURLLoad:function(a){null==
a?this.dispatchEvent(new eg("ioError")):(this.__buffer=a,this.dispatchEvent(new W("complete")))},__class__:jf,__properties__:{get_length:"get_length",get_id3:"get_id3"}});var Qq=function(a,b){L.call(this,this);this.rightPeak=this.leftPeak=1;this.__soundTransform=null!=b?b:new hf;null!=a&&(this.__source=a,this.__source.onComplete.add(k(this,this.source_onComplete)),this.__isValid=!0,this.__source.play());Vc.__registerSoundChannel(this)};g["openfl.media.SoundChannel"]=Qq;Qq.__name__="openfl.media.SoundChannel";
Qq.__super__=L;Qq.prototype=r(L.prototype,{leftPeak:null,rightPeak:null,__isValid:null,__soundTransform:null,__source:null,stop:function(){Vc.__unregisterSoundChannel(this);this.__isValid&&(this.__source.stop(),this.__dispose())},__dispose:function(){this.__isValid&&(this.__source.onComplete.remove(k(this,this.source_onComplete)),this.__source.dispose(),this.__source=null,this.__isValid=!1)},__updateTransform:function(){this.set_soundTransform(this.get_soundTransform())},get_position:function(){return this.__isValid?
this.__source.get_currentTime()+this.__source.offset:0},set_position:function(a){if(!this.__isValid)return 0;this.__source.set_currentTime((a|0)-this.__source.offset);return a},get_soundTransform:function(){return this.__soundTransform.clone()},set_soundTransform:function(a){if(null!=a){this.__soundTransform.pan=a.pan;this.__soundTransform.volume=a.volume;var b=Vc.__soundTransform.pan+this.__soundTransform.pan;-1>b&&(b=-1);1<b&&(b=1);var c=Vc.__soundTransform.volume*this.__soundTransform.volume;this.__isValid&&
(this.__source.set_gain(c),c=this.__source.get_position(),c.x=b,c.z=-1*Math.sqrt(1-Math.pow(b,2)),this.__source.set_position(c))}return a},source_onComplete:function(){Vc.__unregisterSoundChannel(this);this.__dispose();this.dispatchEvent(new W("soundComplete"))},__class__:Qq,__properties__:{set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform",set_position:"set_position",get_position:"get_position"}});var zu=function(a,b){null==b&&(b=!1);null==a&&(a=1E3);this.bufferTime=
a;this.checkPolicyFile=b};g["openfl.media.SoundLoaderContext"]=zu;zu.__name__="openfl.media.SoundLoaderContext";zu.prototype={bufferTime:null,checkPolicyFile:null,__class__:zu};var hf=function(a,b){null==b&&(b=0);null==a&&(a=1);this.volume=a;this.pan=b;this.rightToRight=this.rightToLeft=this.leftToRight=this.leftToLeft=0};g["openfl.media.SoundTransform"]=hf;hf.__name__="openfl.media.SoundTransform";hf.prototype={leftToLeft:null,leftToRight:null,pan:null,rightToLeft:null,rightToRight:null,volume:null,
clone:function(){return new hf(this.volume,this.pan)},__class__:hf};var Vc=function(){};g["openfl.media.SoundMixer"]=Vc;Vc.__name__="openfl.media.SoundMixer";Vc.__properties__={set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform"};Vc.areSoundsInaccessible=function(){return!1};Vc.stopAll=function(){for(var a=0,b=Vc.__soundChannels;a<b.length;){var c=b[a];++a;c.stop()}};Vc.__registerSoundChannel=function(a){Vc.__soundChannels.push(a)};Vc.__unregisterSoundChannel=function(a){G.remove(Vc.__soundChannels,
a)};Vc.get_soundTransform=function(){return Vc.__soundTransform};Vc.set_soundTransform=function(a){Vc.__soundTransform=a.clone();for(var b=0,c=Vc.__soundChannels;b<c.length;){var d=c[b];++b;d.__updateTransform()}return a};var Lj=function(){L.call(this)};g["openfl.net.NetConnection"]=Lj;Lj.__name__="openfl.net.NetConnection";Lj.__super__=L;Lj.prototype=r(L.prototype,{connect:function(a,b,c,d,e,f){if(null!=a)throw u.thrown('Error: Can only connect in "HTTP streaming" mode');this.dispatchEvent(new ck("netStatus",
!1,!0,{code:"NetConnection.Connect.Success"}))},__class__:Lj});var Mm=function(a,b){L.call(this);this.__connection=a;this.__soundTransform=new hf;this.__video=window.document.createElement("video");this.__video.setAttribute("playsinline","");this.__video.setAttribute("webkit-playsinline","");this.__video.setAttribute("crossorigin","anonymous");this.__video.addEventListener("error",k(this,this.video_onError),!1);this.__video.addEventListener("waiting",k(this,this.video_onWaiting),!1);this.__video.addEventListener("ended",
k(this,this.video_onEnd),!1);this.__video.addEventListener("pause",k(this,this.video_onPause),!1);this.__video.addEventListener("seeking",k(this,this.video_onSeeking),!1);this.__video.addEventListener("playing",k(this,this.video_onPlaying),!1);this.__video.addEventListener("timeupdate",k(this,this.video_onTimeUpdate),!1);this.__video.addEventListener("loadstart",k(this,this.video_onLoadStart),!1);this.__video.addEventListener("stalled",k(this,this.video_onStalled),!1);this.__video.addEventListener("durationchanged",
k(this,this.video_onDurationChanged),!1);this.__video.addEventListener("canplay",k(this,this.video_onCanPlay),!1);this.__video.addEventListener("canplaythrough",k(this,this.video_onCanPlayThrough),!1);this.__video.addEventListener("loadedmetadata",k(this,this.video_onLoadMetaData),!1)};g["openfl.net.NetStream"]=Mm;Mm.__name__="openfl.net.NetStream";Mm.__super__=L;Mm.prototype=r(L.prototype,{audioCodec:null,bufferLength:null,bufferTime:null,bytesLoaded:null,bytesTotal:null,checkPolicyFile:null,client:null,
currentFPS:null,decodedFrames:null,liveDelay:null,objectEncoding:null,time:null,videoCode:null,__closed:null,__connection:null,__soundTransform:null,__timer:null,__video:null,close:function(){null!=this.__video&&(this.__closed=!0,this.__video.pause(),this.__video.src="",this.time=0)},dispose:function(){this.close();this.__video=null},pause:function(){null!=this.__video&&this.__video.pause()},play:function(a,b,c,d,e,f){null!=this.__video&&(this.__video.volume=Vc.__soundTransform.volume*this.__soundTransform.volume,
"string"==typeof a?this.__video.src=a:this.__video.srcObject=a,this.__video.play())},requestVideoStatus:function(){var a=this;null!=this.__video&&(null==this.__timer&&(this.__timer=new Qb(1)),this.__timer.run=function(){a.__video.paused?a.__playStatus("NetStream.Play.pause"):a.__playStatus("NetStream.Play.playing");a.__timer.stop()})},resume:function(){null!=this.__video&&this.__video.play()},seek:function(a){null!=this.__video&&(0>a?a=0:a>this.__video.duration&&(a=this.__video.duration),this.__dispatchStatus("NetStream.SeekStart.Notify"),
this.__video.currentTime=a)},togglePause:function(){null!=this.__video&&(this.__video.paused?this.__video.play():this.__video.pause())},__dispatchStatus:function(a){a=new ck("netStatus",!1,!1,{code:a});this.__connection.dispatchEvent(a);this.dispatchEvent(a)},__playStatus:function(a){if(null!=this.__video&&null!=this.client)try{var b=this.client.onPlayStatus;b({code:a,duration:this.__video.duration,position:this.__video.currentTime,speed:this.__video.playbackRate,start:this.__video.startTime})}catch(c){wa.lastError=
c}},video_onCanPlay:function(a){this.__playStatus("NetStream.Play.canplay")},video_onCanPlayThrough:function(a){this.__playStatus("NetStream.Play.canplaythrough")},video_onDurationChanged:function(a){this.__playStatus("NetStream.Play.durationchanged")},video_onEnd:function(a){this.__dispatchStatus("NetStream.Play.Stop");this.__dispatchStatus("NetStream.Play.Complete");this.__playStatus("NetStream.Play.Complete")},video_onError:function(a){this.__dispatchStatus("NetStream.Play.Stop");this.__playStatus("NetStream.Play.error")},
video_onLoadMetaData:function(a){if(null!=this.__video&&null!=this.client)try{var b=this.client.onMetaData;b({width:this.__video.videoWidth,height:this.__video.videoHeight,duration:this.__video.duration})}catch(c){wa.lastError=c}},video_onLoadStart:function(a){this.__playStatus("NetStream.Play.loadstart")},video_onPause:function(a){this.__playStatus("NetStream.Play.pause")},video_onPlaying:function(a){this.__dispatchStatus("NetStream.Play.Start");this.__playStatus("NetStream.Play.playing")},video_onSeeking:function(a){this.__playStatus("NetStream.Play.seeking");
this.__dispatchStatus("NetStream.Seek.Complete")},video_onStalled:function(a){this.__playStatus("NetStream.Play.stalled")},video_onTimeUpdate:function(a){null!=this.__video&&(this.time=this.__video.currentTime,this.__playStatus("NetStream.Play.timeupdate"))},video_onWaiting:function(a){this.__playStatus("NetStream.Play.waiting")},get_soundTransform:function(){return this.__soundTransform.clone()},set_soundTransform:function(a){null!=a&&(this.__soundTransform.pan=a.pan,this.__soundTransform.volume=
a.volume,null!=this.__video&&(this.__video.volume=Vc.__soundTransform.volume*this.__soundTransform.volume));return a},get_speed:function(){return null!=this.__video?this.__video.playbackRate:1},set_speed:function(a){return null!=this.__video?this.__video.playbackRate=a:a},__class__:Mm,__properties__:{set_speed:"set_speed",get_speed:"get_speed",set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform"}});var Cd=function(){L.call(this);this.client=this;this.objectEncoding=Cd.defaultObjectEncoding};
g["openfl.net.SharedObject"]=Cd;Cd.__name__="openfl.net.SharedObject";Cd.getLocal=function(a,b,c){c=" ~%&\\;:\"',<>?#".split("");var d=!0;if(null==a||""==a)d=!1;else for(var e=0;e<c.length;){var f=c[e];++e;if(-1<a.indexOf(f)){d=!1;break}}if(!d)throw u.thrown(new Fc("Error #2134: Cannot create SharedObject."));null==Cd.__sharedObjects&&(Cd.__sharedObjects=new da,null!=nc.current&&nc.current.onExit.add(Cd.application_onExit));c=b+"/"+a;if(!Object.prototype.hasOwnProperty.call(Cd.__sharedObjects.h,c)){d=
null;try{var h=Qh.getLocalStorage();null==b&&(null!=h&&(d=h.getItem(window.location.href+":"+a),h.removeItem(window.location.href+":"+a)),b=window.location.pathname);null!=h&&null==d&&(d=h.getItem(b+":"+a))}catch(m){wa.lastError=m}h=new Cd;h.data={};h.__localPath=b;h.__name=a;if(null!=d&&""!=d)try{var l=new je(d);l.setResolver({resolveEnum:wb.resolveEnum,resolveClass:Cd.__resolveClass});h.data=l.unserialize()}catch(m){wa.lastError=m}Cd.__sharedObjects.h[c]=h}return Cd.__sharedObjects.h[c]};Cd.getRemote=
function(a,b,c,d){ic.notImplemented({fileName:"openfl/net/SharedObject.hx",lineNumber:808,className:"openfl.net.SharedObject",methodName:"getRemote"});return null};Cd.__getPath=function(a,b){a=Ka.get_applicationStorageDirectory()+"/"+a+"/";b=ia.replace(b,"//","/");b=ia.replace(b,"//","/");ia.startsWith(b,"/")&&(b=G.substr(b,1,null));ia.endsWith(b,"/")&&(b=b.substring(0,b.length-1));if(-1<b.indexOf("/")){var c=b.split("/");b="";for(var d=0,e=c.length-1;d<e;){var f=d++;b+="#"+c[f]+"/"}b+=c[c.length-
1]}return a+b+".sol"};Cd.__mkdir=function(a){};Cd.__resolveClass=function(a){return null!=a?(ia.startsWith(a,"neash.")&&(a=ia.replace(a,"neash.","openfl.")),ia.startsWith(a,"native.")&&(a=ia.replace(a,"native.","openfl.")),ia.startsWith(a,"flash.")&&(a=ia.replace(a,"flash.","openfl.")),ia.startsWith(a,"openfl._v2.")&&(a=ia.replace(a,"openfl._v2.","openfl.")),ia.startsWith(a,"openfl._legacy.")&&(a=ia.replace(a,"openfl._legacy.","openfl.")),g[a]):null};Cd.application_onExit=function(a){a=Cd.__sharedObjects.h;
for(var b=Object.keys(a),c=b.length,d=0;d<c;)a[b[d++]].flush()};Cd.__super__=L;Cd.prototype=r(L.prototype,{client:null,data:null,fps:null,objectEncoding:null,__localPath:null,__name:null,clear:function(){this.data={};try{var a=Qh.getLocalStorage();null!=a&&a.removeItem(this.__localPath+":"+this.__name)}catch(b){wa.lastError=b}},close:function(){},connect:function(a,b){ic.notImplemented({fileName:"openfl/net/SharedObject.hx",lineNumber:392,className:"openfl.net.SharedObject",methodName:"connect"})},
flush:function(a){if(0==J.fields(this.data).length)return 0;a=Yd.run(this.data);try{var b=Qh.getLocalStorage();null!=b&&(b.removeItem(this.__localPath+":"+this.__name),b.setItem(this.__localPath+":"+this.__name,a))}catch(c){return wa.lastError=c,1}return 0},send:function(a){ic.notImplemented({fileName:"openfl/net/SharedObject.hx",lineNumber:824,className:"openfl.net.SharedObject",methodName:"send"})},setDirty:function(a){},setProperty:function(a,b){null!=this.data&&(this.data[a]=b)},get_size:function(){try{var a=
Yd.run(this.data);return Qa.ofString(a).length}catch(b){return wa.lastError=b,0}},__class__:Cd,__properties__:{get_size:"get_size"}});var Kc=function(a){null!=a&&(this.url=a);this.contentType=null;this.followRedirects=gj.followRedirects;this.idleTimeout=0<gj.idleTimeout?gj.idleTimeout:3E4;this.manageCookies=gj.manageCookies;this.method="GET";this.requestHeaders=[];this.userAgent=gj.userAgent};g["openfl.net.URLRequest"]=Kc;Kc.__name__="openfl.net.URLRequest";Kc.prototype={contentType:null,data:null,
followRedirects:null,idleTimeout:null,manageCookies:null,method:null,requestHeaders:null,url:null,userAgent:null,__class__:Kc};var gj=function(){};g["openfl.net.URLRequestDefaults"]=gj;gj.__name__="openfl.net.URLRequestDefaults";var Pm=function(a,b){null==b&&(b="");null==a&&(a="");this.name=a;this.value=b};g["openfl.net.URLRequestHeader"]=Pm;Pm.__name__="openfl.net.URLRequestHeader";Pm.prototype={name:null,value:null,__class__:Pm};var Su={_new:function(a){var b={};null!=a&&Su.decode(b,a);return b},
decode:function(a,b){for(var c=J.fields(a),d=0;d<c.length;){var e=c[d];++d;J.deleteField(a,e)}c=b.split(";").join("&").split("&");for(d=0;d<c.length;)if(e=c[d],++d,b=e.indexOf("="),0<b){var f=G.substr(e,0,b);f=decodeURIComponent(f.split("+").join(" "));e=G.substr(e,b+1,null);a[f]=decodeURIComponent(e.split("+").join(" "))}else 0!=b&&(a[decodeURIComponent(e.split("+").join(" "))]="")},toString:function(a){for(var b=[],c=J.fields(a),d=0;d<c.length;){var e=c[d];++d;var f=J.field(a,e);if(-1<e.indexOf("[]")&&
f instanceof Array){e=encodeURIComponent(e);var h=[];for(f=M(f);f.hasNext();){var l=f.next();h.push(encodeURIComponent(l))}h=h.join("&"+e+"=");b.push(e+"="+h)}else b.push(encodeURIComponent(e)+"="+encodeURIComponent(f))}return b.join("&")}},Ff=function(a){this.parentDomain=null!=a?a:Ff.currentDomain};g["openfl.system.ApplicationDomain"]=Ff;Ff.__name__="openfl.system.ApplicationDomain";Ff.prototype={parentDomain:null,getDefinition:function(a){return g[a]},hasDefinition:function(a){return null!=g[a]},
__class__:Ff};var Hb=function(){};g["openfl.system.Capabilities"]=Hb;Hb.__name__="openfl.system.Capabilities";Hb.__properties__={get_version:"get_version",get_screenResolutionY:"get_screenResolutionY",get_screenResolutionX:"get_screenResolutionX",get_screenDPI:"get_screenDPI",get_pixelAspectRatio:"get_pixelAspectRatio",get_os:"get_os",get_manufacturer:"get_manufacturer",get_language:"get_language",get_cpuArchitecture:"get_cpuArchitecture"};Hb.hasMultiChannelAudio=function(a){return!1};Hb.get_cpuArchitecture=
function(){return"x86"};Hb.get_language=function(){var a=Ee.get_language(Ee.get_currentLocale());if(null!=a)switch(a=a.toLowerCase(),a){case "cs":case "da":case "de":case "en":case "es":case "fi":case "fr":case "hu":case "it":case "ja":case "ko":case "nb":case "nl":case "pl":case "pt":case "ru":case "sv":case "tr":return a;case "zh":a=Ee.get_region(Ee.get_currentLocale());if(null!=a)switch(a.toUpperCase()){case "HANT":case "TW":return"zh-TW"}return"zh-CN";default:return"xu"}return"en"};Hb.get_manufacturer=
function(){var a=Ka.get_platformName();return"OpenFL"+(null!=a?" "+a:"")};Hb.get_os=function(){var a=Ka.get_platformLabel();return null!=a?a:""};Hb.get_pixelAspectRatio=function(){return 1};Hb.get_screenDPI=function(){var a=null!=ic.application?ic.application.__window:null,b=72;null!=a&&(b*=a.__scale);return b};Hb.get_screenResolutionX=function(){var a=ic.current.stage,b=0;if(null==a)return 0;if(null!=a.window){var c=a.window.get_display();null!=c&&(b=Math.ceil(c.currentMode.width*a.window.__scale))}return 0<
b?b:a.stageWidth};Hb.get_screenResolutionY=function(){var a=ic.current.stage,b=0;if(null==a)return 0;if(null!=a.window){var c=a.window.get_display();null!=c&&(b=Math.ceil(c.currentMode.height*a.window.__scale))}return 0<b?b:a.stageHeight};Hb.get_version=function(){return"WEB "+(ia.replace("9.1.0",".",",")+",0")};var Sh=function(a,b,c){null==a&&(a=!1);this.checkPolicyFile=a;this.securityDomain=c;this.applicationDomain=b;this.allowLoadBytesCodeExecution=this.allowCodeImport=!0};g["openfl.system.LoaderContext"]=
Sh;Sh.__name__="openfl.system.LoaderContext";Sh.prototype={allowCodeImport:null,allowLoadBytesCodeExecution:null,applicationDomain:null,checkPolicyFile:null,securityDomain:null,__class__:Sh};var on=function(){};g["openfl.system.SecurityDomain"]=on;on.__name__="openfl.system.SecurityDomain";on.prototype={__class__:on};var pn=function(){ka.call(this);this.__graphics=new ye(this)};g["openfl.text.StaticText"]=pn;pn.__name__="openfl.text.StaticText";pn.__super__=ka;pn.prototype=r(ka.prototype,{text:null,
__class__:pn});var Hu={fromString:function(a){switch(a){case "dynamic":return 0;case "input":return 1;default:return null}},toString:function(a){switch(a){case 0:return"dynamic";case 1:return"input";default:return null}}},ib=function(a,b,c,d,e,f,h,l,m,g,k,n,q){this.font=a;this.size=b;this.color=c;this.bold=d;this.italic=e;this.underline=f;this.url=h;this.target=l;this.align=m;this.leftMargin=g;this.rightMargin=k;this.indent=n;this.leading=q};g["openfl.text.TextFormat"]=ib;ib.__name__="openfl.text.TextFormat";
ib.prototype={align:null,blockIndent:null,bold:null,bullet:null,color:null,font:null,indent:null,italic:null,kerning:null,leading:null,leftMargin:null,letterSpacing:null,rightMargin:null,size:null,tabStops:null,target:null,underline:null,url:null,__ascent:null,__descent:null,__cacheKey:null,clone:function(){var a=new ib(this.font,this.size,this.color,this.bold,this.italic,this.underline,this.url,this.target);a.align=this.align;a.leftMargin=this.leftMargin;a.rightMargin=this.rightMargin;a.indent=this.indent;
a.leading=this.leading;a.blockIndent=this.blockIndent;a.bullet=this.bullet;a.kerning=this.kerning;a.letterSpacing=this.letterSpacing;a.tabStops=this.tabStops;a.__ascent=this.__ascent;a.__descent=this.__descent;a.__cacheKey=this.__toCacheKey();return a},__merge:function(a){null!=a.font&&(this.font=a.font);null!=a.size&&(this.size=a.size);null!=a.color&&(this.color=a.color);null!=a.bold&&(this.bold=a.bold);null!=a.italic&&(this.italic=a.italic);null!=a.underline&&(this.underline=a.underline);null!=
a.url&&(this.url=a.url);null!=a.target&&(this.target=a.target);null!=a.align&&(this.align=a.align);null!=a.leftMargin&&(this.leftMargin=a.leftMargin);null!=a.rightMargin&&(this.rightMargin=a.rightMargin);null!=a.indent&&(this.indent=a.indent);null!=a.leading&&(this.leading=a.leading);null!=a.blockIndent&&(this.blockIndent=a.blockIndent);null!=a.bullet&&(this.bullet=a.bullet);null!=a.kerning&&(this.kerning=a.kerning);null!=a.letterSpacing&&(this.letterSpacing=a.letterSpacing);null!=a.tabStops&&(this.tabStops=
a.tabStops);null!=a.__ascent&&(this.__ascent=a.__ascent);null!=a.__descent&&(this.__descent=a.__descent);this.__toCacheKey()},__toCacheKey:function(){return this.__cacheKey=""+this.font+this.size+B.string(this.bold)+B.string(this.italic)},__class__:ib};var Oj={fromString:function(a){switch(a){case "center":return 0;case "end":return 1;case "justify":return 2;case "left":return 3;case "right":return 4;case "start":return 5;default:return null}},toString:function(a){switch(a){case 0:return"center";
case 1:return"end";case 2:return"justify";case 3:return"left";case 4:return"right";case 5:return"start";default:return null}}},ht=function(a,b,c,d,e,f){this.x=a;this.width=b;this.height=c;this.ascent=d;this.descent=e;this.leading=f};g["openfl.text.TextLineMetrics"]=ht;ht.__name__="openfl.text.TextLineMetrics";ht.prototype={ascent:null,descent:null,height:null,leading:null,width:null,x:null,__class__:ht};var qn=function(a,b){this.__collisions=[];this.__wordMap=new Bc;this.set(a,b)};g["openfl.text._internal.CacheMeasurement"]=
qn;qn.__name__="openfl.text._internal.CacheMeasurement";qn.prototype={__collisions:null,__wordMap:null,hash:null,set:function(a,b){this.__addCollision(a,b)},get:function(a){return 1<this.__collisions.length?this.__wordMap.h[this.__collisions.indexOf(a)]:this.__wordMap.h[0]},__addCollision:function(a,b){if(!this.exists(a)){var c=this.__wordMap;a=this.__collisions.push(a)-1;c.h[a]=b}},exists:function(a){return 0==this.__collisions.length?!1:-1<this.__collisions.indexOf(a)},__class__:qn};var tt=function(a,
b,c){this.glyph=a;this.advance=b;this.offset=null!=c?c:new id};g["openfl.text._internal.GlyphPosition"]=tt;tt.__name__="openfl.text._internal.GlyphPosition";tt.prototype={advance:null,glyph:null,offset:null,__class__:tt};var db=function(){};g["openfl.text._internal.HTMLParser"]=db;db.__name__="openfl.text._internal.HTMLParser";db.parse=function(a,b,c){a=a.replace(db.__regexBreakTag.r,"\n");a=a.replace(db.__regexEntities[5].r," ");var d=a.split("<");if(1==d.length)a=ia.htmlUnescape(a.replace(db.__regexHTMLTag.r,
"")),1<c.get_length()&&c.splice(1,c.get_length()-1),c=c.get(0),c.format=b,c.start=0,c.end=a.length;else{c.splice(0,c.get_length());a="";for(var e,f=[b.clone()],h=[],l=!1,m=0;m<d.length;)if(e=d[m],++m,""!=e){var g="/"==G.substr(e,0,1),k=e.indexOf(">"),n=k+1,q=e.indexOf(" ");q=e.substring(g?1:0,-1<q&&q<k?q:k);if(g)0==h.length||q.toLowerCase()!=h[h.length-1].toLowerCase()?Ea.info("Invalid HTML, unexpected closing tag ignored: "+q,{fileName:"openfl/text/_internal/HTMLParser.hx",lineNumber:83,className:"openfl.text._internal.HTMLParser",
methodName:"parse"}):(h.pop(),f.pop(),g=f[f.length-1].clone(),"p"==q.toLowerCase()&&0<c.get_length()&&(a+="\n",l=!0),n<e.length&&(e=ia.htmlUnescape(G.substr(e,n,null)),c.push(new Xe(g,a.length,a.length+e.length)),a+=e,l=!1));else if(g=f[f.length-1].clone(),-1<k){switch(q.toLowerCase()){case "a":db.__regexHref.match(e)&&(g.url=db.__getAttributeMatch(db.__regexHref));break;case "b":g.bold=!0;break;case "em":case "i":g.italic=!0;break;case "font":db.__regexFace.match(e)&&(g.font=db.__getAttributeMatch(db.__regexFace));
db.__regexColor.match(e)&&(g.color=B.parseInt("0x"+db.__getAttributeMatch(db.__regexColor)));if(db.__regexSize.match(e)){k=db.__getAttributeMatch(db.__regexSize);var p=G.cca(k,0);g.size=43==p||45==p?(2<=f.length?f[f.length-2]:b).size+B.parseInt(k):B.parseInt(k)}break;case "p":0<c.get_length()&&!l&&(a+="\n");db.__regexAlign.match(e)&&(k=db.__getAttributeMatch(db.__regexAlign).toLowerCase(),g.align=Oj.fromString(k));db.__regexStyle.match(e)&&db.applyStyle(db.__regexStyle,g);break;case "span":db.__regexStyle.match(e)&&
db.applyStyle(db.__regexStyle,g);break;case "textformat":db.__regexBlockIndent.match(e)&&(g.blockIndent=B.parseInt(db.__getAttributeMatch(db.__regexBlockIndent)));db.__regexIndent.match(e)&&(g.indent=B.parseInt(db.__getAttributeMatch(db.__regexIndent)));db.__regexLeading.match(e)&&(g.leading=B.parseInt(db.__getAttributeMatch(db.__regexLeading)));db.__regexLeftMargin.match(e)&&(g.leftMargin=B.parseInt(db.__getAttributeMatch(db.__regexLeftMargin)));db.__regexRightMargin.match(e)&&(g.rightMargin=B.parseInt(db.__getAttributeMatch(db.__regexRightMargin)));
if(db.__regexTabStops.match(e)){k=db.__getAttributeMatch(db.__regexTabStops).split(" ");p=[];for(var r=0;r<k.length;){var v=k[r];++r;p.push(B.parseInt(v))}g.tabStops=p}break;case "u":g.underline=!0}f.push(g);h.push(q);n<e.length&&(e=ia.htmlUnescape(e.substring(n)),c.push(new Xe(g,a.length,a.length+e.length)),a+=e,l=!1)}else e=ia.htmlUnescape(e),c.push(new Xe(g,a.length,a.length+e.length)),a+=e,l=!1}0==c.get_length()&&c.push(new Xe(f[0],0,0))}return a};db.applyStyle=function(a,b){a=db.__getAttributeMatch(a);
a=db.__parseStyle(a);for(var c=0,d=J.fields(a);c<d.length;){var e=d[c];++c;switch(e){case "color":b.color=B.parseInt("0x"+B.string(B.parseInt(J.field(a,e))));break;case "font-family":b.font=J.field(a,e);break;case "font-size":b.size=B.parseInt(J.field(a,e));break;case "font-style":b.italic="italic"==J.field(a,e);break;case "font-weight":b.bold="bold"==J.field(a,e)||700<=B.parseInt(J.field(a,e));break;case "line-height":b.leading=B.parseInt(J.field(a,e));break;case "margin-left":b.leftMargin=B.parseInt(J.field(a,
e));break;case "margin-right":b.rightMargin=B.parseInt(J.field(a,e));break;case "text-align":b.align=Oj.fromString(N.__cast(J.field(a,e),String).toLowerCase());break;case "text-decoration":b.underline="underline"==J.field(a,e);break;case "text-indent":b.indent=B.parseInt(J.field(a,e))}}};db.__parseStyle=function(a){for(var b={},c=a.split(";"),d=0;d<c.length;){a=c[d];++d;var e=a.indexOf(":");if(-1<e){var f=ia.trim(a.substring(0,e));a=ia.trim(a.substring(e+1));b[f.toLowerCase()]=a.toLowerCase()}}return b};
db.__getAttributeMatch=function(a){return null!=a.matched(2)?a.matched(2):a.matched(3)};var ll=function(){this.__shortWordMap=new da;this.__longWordMap=new da};g["openfl.text._internal.ShapeCache"]=ll;ll.__name__="openfl.text._internal.ShapeCache";ll.hashFunction=function(a){for(var b=0,c,d=0,e=a.length;d<e;)c=d++,c=G.cca(a,c),b=(b<<5)-b+c,b|=0;return b};ll.prototype={__shortWordMap:null,__longWordMap:null,cache:function(a,b,c){a=a.format.__cacheKey;return 15<c.length?this.__cacheLongWord(c,a,b):
this.__cacheShortWord(c,a,b)},__cacheShortWord:function(a,b,c){if(Object.prototype.hasOwnProperty.call(this.__shortWordMap.h,b)){var d=this.__shortWordMap.h[b];if(Object.prototype.hasOwnProperty.call(d.h,a))return d.h[a];var e=c();d.h[a]=e}else d=new da,e=c(),d.h[a]=e,this.__shortWordMap.h[b]=d;return c()},__cacheLongWord:function(a,b,c){var d=ll.hashFunction(a);if(Object.prototype.hasOwnProperty.call(this.__longWordMap.h,b)){var e=this.__longWordMap.h[b];if(e.h.hasOwnProperty(d)){var f=e.h[d];if(f.exists(a))return f.get(a);
f.set(a,c())}else f=new qn(a,c()),e.h[d]=f}else e=new Bc,f=new qn(a,c()),f.hash=d,e.h[d]=f,this.__longWordMap.h[b]=e;return c()},__class__:ll};var nb=function(a){this.__shapeCache=new ll;this.textField=a;this.height=this.width=100;this.set_text("");this.bounds=new ha(0,0,0,0);this.textBounds=new ha(0,0,0,0);this.type=0;this.autoSize=2;this.embedFonts=!1;this.selectable=!0;this.borderColor=0;this.border=!1;this.backgroundColor=16777215;this.background=!1;this.gridFitType=1;this.maxChars=0;this.multiline=
!1;this.numLines=1;this.scrollH=this.sharpness=0;this.set_scrollV(1);this.wordWrap=!1;this.lineAscents=fb.toFloatVector(null);this.lineBreaks=fb.toIntVector(null);this.lineDescents=fb.toFloatVector(null);this.lineLeadings=fb.toFloatVector(null);this.lineHeights=fb.toFloatVector(null);this.lineWidths=fb.toFloatVector(null);this.layoutGroups=fb.toObjectVector(null);this.textFormatRanges=fb.toObjectVector(null);null==nb.__context&&(nb.__context=window.document.createElement("canvas").getContext("2d"))};
g["openfl.text._internal.TextEngine"]=nb;nb.__name__="openfl.text._internal.TextEngine";nb.findFont=function(a){return Xa.__fontByName.h[a]};nb.findFontVariant=function(a){var b=a.font,c=a.bold;a=a.italic;null==b&&(b="_serif");var d=ia.replace(ia.replace(b," Normal","")," Regular","");return c&&a&&Object.prototype.hasOwnProperty.call(Xa.__fontByName.h,d+" Bold Italic")?nb.findFont(d+" Bold Italic"):c&&Object.prototype.hasOwnProperty.call(Xa.__fontByName.h,d+" Bold")?nb.findFont(d+" Bold"):a&&Object.prototype.hasOwnProperty.call(Xa.__fontByName.h,
d+" Italic")?nb.findFont(d+" Italic"):nb.findFont(b)};nb.getFormatHeight=function(a){nb.__context.font=nb.getFont(a);var b=nb.getFontInstance(a);if(null!=a.__ascent){var c=a.size*a.__ascent;b=a.size*a.__descent}else null!=b&&0!=b.unitsPerEM?(c=b.ascender/b.unitsPerEM*a.size,b=Math.abs(b.descender/b.unitsPerEM*a.size)):(c=a.size,b=.185*a.size);return c+b+a.leading};nb.getFont=function(a){var b=a.font,c=a.bold,d=a.italic;null==b&&(b="_serif");var e=ia.replace(ia.replace(b," Normal","")," Regular","");
c&&d&&Object.prototype.hasOwnProperty.call(Xa.__fontByName.h,e+" Bold Italic")?(b=e+" Bold Italic",d=c=!1):c&&Object.prototype.hasOwnProperty.call(Xa.__fontByName.h,e+" Bold")?(b=e+" Bold",c=!1):d&&Object.prototype.hasOwnProperty.call(Xa.__fontByName.h,e+" Italic")?(b=e+" Italic",d=!1):(c&&(-1<b.indexOf(" Bold ")||ia.endsWith(b," Bold"))&&(c=!1),d&&(-1<b.indexOf(" Italic ")||ia.endsWith(b," Italic"))&&(d=!1));c=(d?"italic ":"normal ")+"normal "+(c?"bold ":"normal ");c+=a.size+"px";c+="/"+(a.leading+
a.size+3)+"px ";switch(b){case "_sans":a="sans-serif";break;case "_serif":a="serif";break;case "_typewriter":a="monospace";break;default:a="'"+b.replace(/^[\s'"]+(.*)[\s'"]+$/,"$1")+"'"}return c+=""+a};nb.getFontInstance=function(a){return nb.findFontVariant(a)};nb.prototype={antiAliasType:null,autoSize:null,background:null,backgroundColor:null,border:null,borderColor:null,bottomScrollV:null,bounds:null,caretIndex:null,embedFonts:null,gridFitType:null,height:null,layoutGroups:null,lineAscents:null,
lineBreaks:null,lineDescents:null,lineLeadings:null,lineHeights:null,lineWidths:null,maxChars:null,maxScrollH:null,maxScrollV:null,multiline:null,numLines:null,restrict:null,scrollH:null,scrollV:null,selectable:null,sharpness:null,text:null,textBounds:null,textHeight:null,textFormatRanges:null,textWidth:null,type:null,width:null,wordWrap:null,textField:null,__cursorTimer:null,__hasFocus:null,__isKeyDown:null,__measuredHeight:null,__measuredWidth:null,__restrictRegexp:null,__selectionStart:null,__shapeCache:null,
__showCursor:null,__textFormat:null,__textLayout:null,__texture:null,__useIntAdvances:null,__cairoFont:null,__font:null,createRestrictRegexp:function(a){var b="",c=[];0<(new fa("\\^(.-.|.)","gu")).map(a,function(a){b+=a.matched(1);return""}).length&&c.push("[^"+a+"]");0<b.length&&c.push("["+b+"]");return new fa("("+c.join("|")+")","g")},getBounds:function(){var a=this.border?1:0;this.bounds.width=this.width+a;this.bounds.height=this.height+a;for(var b=a=this.width,c=this.layoutGroups.iterator();c.hasNext();){var d=
c.next();d.offsetX<a&&(a=d.offsetX);d.offsetY<b&&(b=d.offsetY)}a>=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+4),Math.min(1.185*this.textHeight+4,this.bounds.height+4))},getLine:function(a){return 0>a||a>this.lineBreaks.get_length()+1?null:0==this.lineBreaks.get_length()?this.text:this.text.substring(0<a?this.lineBreaks.get(a-1):0,this.lineBreaks.get(a))},getLineBreaks:function(){this.lineBreaks.set_length(0);
for(var a=-1,b;a<this.text.length;)if(b=this.text.indexOf("\n",a+1),a=this.text.indexOf("\r",a+1),a=-1==a?b:-1==b?a:a<b?a:b,-1<a)this.lineBreaks.push(a);else break},getLineBreakIndex:function(a){null==a&&(a=0);for(var b=this.lineBreaks.iterator();b.hasNext();){var c=b.next();if(c>=a)return c}return-1},getLineMeasurements:function(){this.lineAscents.set_length(0);this.lineDescents.set_length(0);this.lineLeadings.set_length(0);this.lineHeights.set_length(0);this.lineWidths.set_length(0);var a=0,b=0,
c=null,d=0,e=0,f;this.textHeight=this.textWidth=0;this.numLines=1;this.maxScrollH=0;for(var h=this.layoutGroups.iterator();h.hasNext();){for(f=h.next();f.lineIndex>this.numLines-1;)this.lineAscents.push(a),this.lineDescents.push(b),this.lineLeadings.push(null!=c?c:0),this.lineHeights.push(d),this.lineWidths.push(e),b=a=0,c=null,e=d=0,this.numLines++;a=Math.max(a,f.ascent);b=Math.max(b,f.descent);c=null==c?f.leading:Math.max(c,f.leading)|0;d=Math.max(d,f.height);e=f.offsetX-2+f.width;e>this.textWidth&&
(this.textWidth=e);f=Math.ceil(f.offsetY-2+f.ascent+f.descent);f>this.textHeight&&(this.textHeight=f)}0==this.textHeight&&null!=this.textField&&1==this.textField.get_type()&&(a=this.textField.__textFormat,b=nb.getFontInstance(a),null!=a.__ascent?(h=a.size*a.__ascent,f=a.size*a.__descent):null!=b&&0!=b.unitsPerEM?(h=b.ascender/b.unitsPerEM*a.size,f=Math.abs(b.descender/b.unitsPerEM*a.size)):(h=a.size,f=.185*a.size),c=a.leading,a=h,b=f,this.textHeight=f=Math.ceil(h+f));this.lineAscents.push(a);this.lineDescents.push(b);
this.lineLeadings.push(null!=c?c:0);this.lineHeights.push(d);this.lineWidths.push(e);1==this.numLines&&0<c&&(this.textHeight+=c);0<this.layoutGroups.get_length()&&(h=this.layoutGroups.get(this.layoutGroups.get_length()-1),null!=h&&h.startIndex==h.endIndex&&this.textField.get_caretIndex()!=h.startIndex&&(this.textHeight-=d));if(2!=this.autoSize)switch(this.autoSize){case 0:case 1:case 3:this.wordWrap||(this.width=this.textWidth+4),this.height=this.textHeight+4,this.bottomScrollV=this.numLines}this.maxScrollH=
this.textWidth>this.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,e=Bb.__defaultTextFormat.clone(),f=0,h=0,l=0,m=0,g=3,k=0,n=0,q=0,p=0,r=!0,v=null,u=null,x=0,w=0,z=0,U=-2,X=-1,B=this.text.indexOf(" "),P=0,F=P<this.lineBreaks.get_length()?this.lineBreaks.get(P):-1,D=0,Ha=0,C=0,H=0,y=function(b,d,e){return a.__shapeCache.cache(c,
function(){var c=[];if(null==a.__useIntAdvances){var f=new fa("Trident/7.0","");a.__useIntAdvances=f.match(E.navigator.userAgent)}if(a.__useIntAdvances){var h=0;f=d;for(var l=e;f<l;){var m=f++;m=nb.__context.measureText(b.substring(d,m+1)).width;c.push(m-h);h=m}}else for(f=d,l=e;f<l;)m=f++,m<b.length-1?(h=nb.__context.measureText(b.charAt(m+1)).width,h=nb.__context.measureText(G.substr(b,m,2)).width-h):h=nb.__context.measureText(b.charAt(m)).width,c.push(h);return c},b.substring(d,e))},I=function(a){for(var b=
0,c=0;c<a.length;){var d=a[c];++c;b+=d}return b},J=function(){return 2+q+k+(r?n:0)},L=function(){return a.width-2-p-J()},Y=function(b,d){null==v||v.startIndex!=v.endIndex?(v=new Rq(c.format,b,d),a.layoutGroups.push(v)):(v.format=c.format,v.startIndex=b,v.endIndex=d)},N=function(){null!=e.__ascent?(h=e.size*e.__ascent,m=e.size*e.__descent):null!=d&&0!=d.unitsPerEM?(h=d.ascender/d.unitsPerEM*e.size,m=Math.abs(d.descender/d.unitsPerEM*e.size)):(h=e.size,m=.185*e.size);f=e.leading;w=Math.ceil(h+m+f);
w>z&&(z=w);h>l&&(l=h)},Q=function(){r=!0;g=null!=e.align?e.align:3;k=null!=e.blockIndent?e.blockIndent:0;n=null!=e.indent?e.indent:0;q=null!=e.leftMargin?e.leftMargin:0;p=null!=e.rightMargin?e.rightMargin:0},T=function(){return b<a.textFormatRanges.get_length()-1?(b+=1,c=a.textFormatRanges.get(b),e.__merge(c.format),nb.__context.font=nb.getFont(e),d=nb.getFontInstance(e),!0):!1},Wa=function(d,e){if(d>=e)u=[],x=0;else if(e<=c.end)u=y(a.text,d,e),x=I(u);else{var f=d;d=c.end;var h=0;u=[];for(x=0;;)if(f!=
d&&(f=y(a.text,f,d),u=u.concat(f)),d!=e){if(!T()){Ea.warn("You found a bug in OpenFL's text code! Please save a copy of your project and contact Joshua Granick (@singmajesty) so we can fix this.",{fileName:"openfl/text/_internal/TextEngine.hx",lineNumber:1092,className:"openfl.text._internal.TextEngine",methodName:"getLayoutGroups"});break}f=d;d=e<c.end?e:c.end;++h}else{x=I(u);break}b-=h+1;T()}},V=function(b){if(b<=c.end){u=y(a.text,C,b);x=I(u);Y(C,b);v.positions=u;var d=D,e=J();v.offsetX=d+e;v.ascent=
h;v.descent=m;v.leading=f;v.lineIndex=H;v.offsetY=Ha+2;v.width=x;v.height=w;D+=x;b==c.end&&(v=null,T(),N())}else for(;;){var l=b<c.end?b:c.end;C!=l&&(u=y(a.text,C,l),x=I(u),Y(C,l),v.positions=u,d=D,e=J(),v.offsetX=d+e,v.ascent=h,v.descent=m,v.leading=f,v.lineIndex=H,v.offsetY=Ha+2,v.width=x,v.height=w,D+=x,C=l);l==c.end&&(v=null);if(l==b)break;if(!T()){Ea.warn("You found a bug in OpenFL's text code! Please save a copy of your project and contact Joshua Granick (@singmajesty) so we can fix this.",
{fileName:"openfl/text/_internal/TextEngine.hx",lineNumber:1180,className:"openfl.text._internal.TextEngine",methodName:"getLayoutGroups"});break}N()}C=b},fb=function(){N();for(var b=a.layoutGroups.get_length();-1<--b;){var c=a.layoutGroups.get(b);if(c.lineIndex<H)break;c.lineIndex>H||(c.ascent=l,c.height=z)}Ha+=z;z=l=0;H+=1;D=0;r=!1},W=function(b){if(4<=a.width&&a.wordWrap){var c=u,d,e,f;for(d=I(c);0<c.length&&D+d>L();){for(f=d=e=0;D+f<L();){var h=c[d];0==h?(++d,++e):(f+=h,++d)}if(d==e)d=e+1;else for(;1<
d&&D+f>L();)--d,0<d-e?(Wa(C,C+d-e),f=x):(d=1,e=0,Wa(C,C+1),f=0);c=C+d-e;V(c);fb();Wa(c,b);c=u;d=x}}V(b)};T();Q();N();for(var R,M=this.text.length+1;C<M;)if(-1<F&&(-1==B||F<B))C<=F?(Wa(C,F),W(F),v=null):null!=v&&v.startIndex!=v.endIndex&&(v.endIndex==B&&(v.width-=v.positions[v.positions.length-1]),v=null),fb(),c.end==F&&(T(),N()),C=F+1,X=F,++P,F=P<this.lineBreaks.get_length()?this.lineBreaks.get(P):-1,Q();else if(-1<B)for(null!=v&&v.startIndex!=v.endIndex&&(v=null),R=!1;C<this.text.length;){var S=
-1;-1==B?S=F:(S=B+1,-1<F&&F<S&&(S=F));-1==S&&(S=this.text.length);Wa(C,S);if(2==g){if(0<u.length&&C==U){C+=1;var K=u.shift();x-=K;D+=K}0<u.length&&S==B+1&&(--S,K=u.pop(),x-=K)}this.wordWrap&&D+x>L()&&(R=!0,0<u.length&&S==B+1&&D+x-u[u.length-1]<=L()&&(R=!1));if(R){2!=g&&(null!=v||0<this.layoutGroups.get_length())&&(R=v,null==R&&(R=this.layoutGroups.get(this.layoutGroups.get_length()-1)),R.width-=R.positions[R.positions.length-1],R.endIndex--);R=this.layoutGroups.get_length()-1;for(K=0;;){v=this.layoutGroups.get(R);
if(0<R&&v.startIndex>U)++K;else break;--R}C==U+1&&fb();D=0;if(0<K){R=this.layoutGroups.get(this.layoutGroups.get_length()-K).offsetX;K=this.layoutGroups.get_length()-K;for(var Z=this.layoutGroups.get_length();K<Z;){var aa=K++;v=this.layoutGroups.get(aa);v.offsetX-=R;v.offsetY=Ha+2;v.lineIndex=H;D+=v.width}}W(S);R=!1}else null!=v&&C==B&&U!=B-1?(2!=g&&(v.endIndex=B,v.positions=v.positions.concat(u),v.width+=x),D+=x,C=S):(null==v||2==g?W(S):(K=S<c.end?S:c.end,K<S&&(u=y(this.text,C,K),x=I(u)),v.endIndex=
K,v.positions=v.positions.concat(u),v.width+=x,D+=x,K==c.end&&(v=null,T(),N(),C=K,K!=S&&V(S)),F==S&&++S,C=S),S==this.text.length&&fb());S=this.text.indexOf(" ",C);F==U&&(v.endIndex=F,0>F-v.startIndex-v.positions.length&&v.positions.push(0),C=F+1);U=B;B=S;if(-1<F&&F<=C&&(B>F||-1==B)||C>this.text.length)break}else C<this.text.length&&(Wa(C,this.text.length),W(this.text.length),fb()),C+=1;X==C-2&&-1<X&&(Y(C-1,C-1),v.positions=[],v.ascent=h,v.descent=m,v.leading=f,v.lineIndex=H,v.offsetX=J(),v.offsetY=
Ha+2,v.width=0,U="input"==Hu.toString(this.type)?w:0,v.height=U)}},restrictText:function(a){if(null==a)return a;null!=this.__restrictRegexp&&(a=this.__restrictRegexp.split(a).join(""));return a},setTextAlignment:function(){for(var a=-1,b=0,c,d,e=!1,f=0,h=this.layoutGroups.get_length();f<h;){var l=f++;c=this.layoutGroups.get(l);if(c.lineIndex!=a)switch(a=c.lineIndex,b=this.width-4-c.format.rightMargin,c.format.align){case 0:b=this.lineWidths.get(a)<b?Math.round((b-this.lineWidths.get(a))/2):0;break;
case 2:if(this.lineWidths.get(a)<b){d=1;for(var m=l+1,g=this.layoutGroups.get_length();m<g;){var k=m++;if(this.layoutGroups.get(k).lineIndex==a)0!=k&&32!=G.cca(this.text,this.layoutGroups.get(k).startIndex-1)||++d;else break}if(1<d&&(c=this.layoutGroups.get(l+d-1),m=G.cca(this.text,c.endIndex),c.endIndex<this.text.length&&10!=m&&13!=m)){b=(b-this.lineWidths.get(a))/(d-1);e=!0;m=1;do this.layoutGroups.get(l+m).offsetX+=b*m;while(++m<d)}}b=0;break;case 4:b=this.lineWidths.get(a)<b?Math.round(b-this.lineWidths.get(a)):
0;break;default:b=0}0<b&&(c.offsetX+=b)}e&&this.getLineMeasurements()},trimText:function(a){if(null==a)return a;0<this.maxChars&&a.length>this.maxChars&&(a=G.substr(a,0,this.maxChars));return a},update:function(){null==this.text||0==this.textFormatRanges.get_length()?(this.lineAscents.set_length(0),this.lineBreaks.set_length(0),this.lineDescents.set_length(0),this.lineLeadings.set_length(0),this.lineHeights.set_length(0),this.lineWidths.set_length(0),this.layoutGroups.set_length(0),this.textHeight=
this.textWidth=0,this.numLines=1,this.maxScrollH=0,this.bottomScrollV=this.maxScrollV=1):(this.getLineBreaks(),this.getLayoutGroups(),this.getLineMeasurements(),this.setTextAlignment());this.getBounds()},get_bottomScrollV:function(){if(1==this.numLines||null==this.lineHeights)return 1;for(var a=this.lineHeights.get_length(),b=this.lineLeadings.get_length()==a?-this.lineLeadings.get(a-1):0,c=(0<this.get_scrollV()?this.get_scrollV():1)-1,d=this.lineHeights.get_length();c<d;){var e=c++,f=this.lineHeights.get(e);
b+=f;if(b>this.height-4){a=e+(0<=b-this.height?0:1);break}}return a<this.get_scrollV()?this.get_scrollV():a},get_maxScrollV:function(){if(1==this.numLines||null==this.lineHeights)return 1;for(var a=this.numLines-1,b=0;0<=a;){b+=this.lineHeights.get(a);if(b>this.height-4){a+=0>b-this.height?1:2;break}--a}return 1>a?1:a},set_restrict:function(a){if(this.restrict==a)return this.restrict;this.restrict=a;this.__restrictRegexp=null==this.restrict||0==this.restrict.length?null:this.createRestrictRegexp(a);
return this.restrict},get_scrollV:function(){if(1==this.numLines||null==this.lineHeights)return 1;var a=this.get_maxScrollV();return this.scrollV>a?a-1:this.scrollV},set_scrollV:function(a){1>a&&(a=1);return this.scrollV=a},set_text:function(a){return this.text=a},__class__:nb,__properties__:{set_text:"set_text",set_scrollV:"set_scrollV",get_scrollV:"get_scrollV",set_restrict:"set_restrict",get_maxScrollV:"get_maxScrollV",get_bottomScrollV:"get_bottomScrollV"}};var Xe=function(a,b,c){this.format=
a;this.start=b;this.end=c};g["openfl.text._internal.TextFormatRange"]=Xe;Xe.__name__="openfl.text._internal.TextFormatRange";Xe.prototype={end:null,format:null,start:null,__class__:Xe};var td=function(a,b,c,d,e,f){null==f&&(f="en");null==e&&(e="Zyyy");null==d&&(d=4);null==c&&(c=12);null==a&&(a="");this.letterSpacing=0;this.set_text(a);this.set_font(b);this.set_size(c);this.__direction=d;this.__script=e;this.__language=f;this.positions=[];this.__dirty=!0;this.__create(this.__direction,this.__script,
this.__language)};g["openfl.text._internal.TextLayout"]=td;td.__name__="openfl.text._internal.TextLayout";td.prototype={autoHint:null,font:null,glyphs:null,letterSpacing:null,positions:null,size:null,text:null,__buffer:null,__direction:null,__dirty:null,__handle:null,__language:null,__script:null,__font:null,__hbBuffer:null,__hbFont:null,__create:function(a,b,c){4==c.length&&(this.__hbBuffer=Wu._new(),Qu._new(c))},__position:function(){this.positions=[]},get_positions:function(){this.__dirty&&(this.__dirty=
!1,this.__position());return this.positions},get_direction:function(){return this.__direction},set_direction:function(a){if(a==this.__direction)return a;this.__direction=a;this.__dirty=!0;return a},set_font:function(a){if(a==this.font)return a;this.font=a;this.__dirty=!0;return a},get_glyphs:function(){for(var a=[],b=0,c=this.get_positions();b<c.length;){var d=c[b];++b;a.push(d.glyph)}return a},get_language:function(){return this.__language},set_language:function(a){if(a==this.__language)return a;
this.__language=a;this.__dirty=!0;return a},get_script:function(){return this.__script},set_script:function(a){if(a==this.__script)return a;this.__script=a;this.__dirty=!0;return a},set_size:function(a){if(a==this.size)return a;this.size=a;this.__dirty=!0;return a},set_text:function(a){if(a==this.text)return a;this.text=a;this.__dirty=!0;return a},__class__:td,__properties__:{set_text:"set_text",set_size:"set_size",set_script:"set_script",get_script:"get_script",get_positions:"get_positions",set_language:"set_language",
get_language:"get_language",get_glyphs:"get_glyphs",set_font:"set_font",set_direction:"set_direction",get_direction:"get_direction"}};var Rq=function(a,b,c){this.format=a;this.startIndex=b;this.endIndex=c};g["openfl.text._internal.TextLayoutGroup"]=Rq;Rq.__name__="openfl.text._internal.TextLayoutGroup";Rq.prototype={ascent:null,descent:null,endIndex:null,format:null,height:null,leading:null,lineIndex:null,offsetX:null,offsetY:null,positions:null,startIndex:null,width:null,getAdvance:function(a){return this.positions[a]},
__class__:Rq};var Jb=function(){L.call(this);Jb.__instances.push(this)};g["openfl.ui.GameInput"]=Jb;Jb.__name__="openfl.ui.GameInput";Jb.getDeviceAt=function(a){return 0<=a&&a<Jb.__deviceList.length?Jb.__deviceList[a]:null};Jb.__getDevice=function(a){if(null==a)return null;if(null==Jb.__devices.h.__keys__[a.__id__]){var b=Cc.__getDeviceData(),c=b[a.id].id;b=Cc.__getDeviceData();b=new Sq(c,b[a.id].id);Jb.__deviceList.push(b);Jb.__devices.set(a,b);Jb.numDevices=Jb.__deviceList.length}return Jb.__devices.h[a.__id__]};
Jb.__onGamepadAxisMove=function(a,b,c){a=Jb.__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 Nf(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 W("change"))}};Jb.__onGamepadButtonDown=function(a,
b){a=Jb.__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 Nf(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 W("change"))}};Jb.__onGamepadButtonUp=function(a,b){a=Jb.__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 Nf(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 W("change"))}};Jb.__onGamepadConnect=function(a){a=Jb.__getDevice(a);if(null!=a)for(var b=0,c=Jb.__instances;b<c.length;){var d=c[b];++b;d.dispatchEvent(new rh("deviceAdded",!0,!1,a))}};
Jb.__onGamepadDisconnect=function(a){var b=Jb.__devices.h[a.__id__];if(null!=b){null!=Jb.__devices.h.__keys__[a.__id__]&&(G.remove(Jb.__deviceList,Jb.__devices.h[a.__id__]),Jb.__devices.remove(a));Jb.numDevices=Jb.__deviceList.length;a=0;for(var c=Jb.__instances;a<c.length;){var d=c[a];++a;d.dispatchEvent(new rh("deviceRemoved",!0,!1,b))}}};Jb.__super__=L;Jb.prototype=r(L.prototype,{addEventListener:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);L.prototype.addEventListener.call(this,
a,b,c,d,e);if("deviceAdded"==a)for(a=0,b=Jb.__deviceList;a<b.length;)c=b[a],++a,this.dispatchEvent(new rh("deviceAdded",!0,!1,c))},__class__:Jb});var Nf=function(a,b,c,d,e){null==e&&(e=0);L.call(this);this.device=a;this.id=b;this.minValue=c;this.maxValue=d;this.value=e};g["openfl.ui.GameInputControl"]=Nf;Nf.__name__="openfl.ui.GameInputControl";Nf.__super__=L;Nf.prototype=r(L.prototype,{device:null,id:null,maxValue:null,minValue:null,value:null,__class__:Nf});var Sq=function(a,b){this.__controls=
[];this.__button=new Bc;this.__axis=new Bc;this.id=a;this.name=b;a=new Nf(this,"AXIS_0",-1,1);this.__axis.h[0]=a;this.__controls.push(a);a=new Nf(this,"AXIS_1",-1,1);this.__axis.h[1]=a;this.__controls.push(a);a=new Nf(this,"AXIS_2",-1,1);this.__axis.h[2]=a;this.__controls.push(a);a=new Nf(this,"AXIS_3",-1,1);this.__axis.h[3]=a;this.__controls.push(a);a=new Nf(this,"AXIS_4",-1,1);this.__axis.h[4]=a;this.__controls.push(a);a=new Nf(this,"AXIS_5",-1,1);this.__axis.h[5]=a;this.__controls.push(a);for(b=
0;15>b;){var c=b++;a=new Nf(this,"BUTTON_"+c,0,1);this.__button.h[c]=a;this.__controls.push(a)}};g["openfl.ui.GameInputDevice"]=Sq;Sq.__name__="openfl.ui.GameInputDevice";Sq.prototype={enabled:null,id:null,name:null,sampleInterval:null,__axis:null,__button:null,__controls:null,__gamepad:null,getCachedSamples:function(a,b){return 0},getControlAt:function(a){return 0<=a&&a<this.__controls.length?this.__controls[a]:null},startCachingSamples:function(a,b){},stopCachingSamples:function(){},get_numControls:function(){return this.__controls.length},
__class__:Sq,__properties__:{get_numControls:"get_numControls"}};var pa=function(){};g["openfl.ui.Keyboard"]=pa;pa.__name__="openfl.ui.Keyboard";pa.isAccessible=function(){return!1};pa.__convertKeyCode=function(a){switch(a){case 8:return 8;case 9:return 9;case 13:return 13;case 27:return 27;case 32:return 32;case 33:return 49;case 34:return 222;case 35:return 51;case 36:return 52;case 37:return 53;case 38:return 55;case 39:return 222;case 40:return 57;case 41:return 48;case 42:return 56;case 44:return 188;
case 45:return 189;case 46:return 190;case 47:return 191;case 48:return 48;case 49:return 49;case 50:return 50;case 51:return 51;case 52:return 52;case 53:return 53;case 54:return 54;case 55:return 55;case 56:return 56;case 57:return 57;case 58:return 186;case 59:return 186;case 60:return 60;case 61:return 187;case 62:return 190;case 63:return 191;case 64:return 50;case 91:return 219;case 92:return 220;case 93:return 221;case 94:return 54;case 95:return 189;case 96:return 192;case 97:return 65;case 98:return 66;
case 99:return 67;case 100:return 68;case 101:return 69;case 102:return 70;case 103:return 71;case 104:return 72;case 105:return 73;case 106:return 74;case 107:return 75;case 108:return 76;case 109:return 77;case 110:return 78;case 111:return 79;case 112:return 80;case 113:return 81;case 114:return 82;case 115:return 83;case 116:return 84;case 117:return 85;case 118:return 86;case 119:return 87;case 120:return 88;case 121:return 89;case 122:return 90;case 127:return 46;case 1073741881:return 20;case 1073741882:return 112;
case 1073741883:return 113;case 1073741884:return 114;case 1073741885:return 115;case 1073741886:return 116;case 1073741887:return 117;case 1073741888:return 118;case 1073741889:return 119;case 1073741890:return 120;case 1073741891:return 121;case 1073741892:return 122;case 1073741893:return 123;case 1073741894:return 301;case 1073741895:return 145;case 1073741896:return 19;case 1073741897:return 45;case 1073741898:return 36;case 1073741899:return 33;case 1073741901:return 35;case 1073741902:return 34;
case 1073741903:return 39;case 1073741904:return 37;case 1073741905:return 40;case 1073741906:return 38;case 1073741907:return 144;case 1073741908:return 111;case 1073741909:return 106;case 1073741910:return 109;case 1073741911:return 107;case 1073741912:return 13;case 1073741913:return 97;case 1073741914:return 98;case 1073741915:return 99;case 1073741916:return 100;case 1073741917:return 101;case 1073741918:return 102;case 1073741919:return 103;case 1073741920:return 104;case 1073741921:return 105;
case 1073741922:return 96;case 1073741923:return 110;case 1073741925:return 302;case 1073741928:return 124;case 1073741929:return 125;case 1073741930:return 126;case 1073741982:return 13;case 1073742044:return 110;case 1073742048:return 17;case 1073742049:return 16;case 1073742050:return 18;case 1073742051:return 15;case 1073742052:return 17;case 1073742053:return 16;case 1073742054:return 18;case 1073742055:return 15;default:return a}};pa.__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};pa.__getKeyLocation=function(a){switch(a){case 1073741908:case 1073741909:case 1073741910:case 1073741911:case 1073741912:case 1073741913:case 1073741914:case 1073741915:case 1073741916:case 1073741917:case 1073741918:case 1073741919:case 1073741920:case 1073741921:case 1073741922:case 1073741923:case 1073742044:return 3;
case 1073742048:case 1073742049:case 1073742050:case 1073742051:return 1;case 1073742052:case 1073742053:case 1073742054:case 1073742055:return 2;default:return 0}};var me=function(){};g["openfl.ui.Mouse"]=me;me.__name__="openfl.ui.Mouse";me.__properties__={set_cursor:"set_cursor",get_cursor:"get_cursor"};me.hide=function(){me.__hidden=!0;for(var a=0,b=nc.current.__windows;a<b.length;){var c=b[a];++a;c.set_cursor(null)}};me.show=function(){me.__hidden=!1;var a=me.__cursor;me.__cursor=null;me.set_cursor(a)};
me.get_cursor=function(){return me.__cursor};me.set_cursor=function(a){null==a&&(a="auto");var b=null;switch(a){case "arrow":b=sb.ARROW;break;case "button":b=sb.POINTER;break;case "crosshair":b=sb.CROSSHAIR;break;case "custom":b=sb.CUSTOM;break;case "hand":b=sb.MOVE;break;case "ibeam":b=sb.TEXT;break;case "resize_nesw":b=sb.RESIZE_NESW;break;case "resize_ns":b=sb.RESIZE_NS;break;case "resize_nwse":b=sb.RESIZE_NWSE;break;case "resize_we":b=sb.RESIZE_WE;break;case "wait":b=sb.WAIT;break;case "waitarrow":b=
sb.WAIT_ARROW}if(null!=b&&!me.__hidden)for(var c=0,d=nc.current.__windows;c<d.length;){var e=d[c];++c;e.set_cursor(b)}return me.__cursor=a};var Lf={fromLimeCursor:function(a){switch(a._hx_index){case 0:return"arrow";case 1:return"crosshair";case 2:return"auto";case 3:return"hand";case 4:return"button";case 5:return"resize_nesw";case 6:return"resize_ns";case 7:return"resize_nwse";case 8:return"resize_we";case 9:return"ibeam";case 10:return"wait";case 11:return"waitarrow";case 12:return"custom"}},toLimeCursor:function(a){switch(a){case "arrow":return sb.ARROW;
case "auto":return sb.DEFAULT;case "button":return sb.POINTER;case "crosshair":return sb.CROSSHAIR;case "custom":return sb.CUSTOM;case "hand":return sb.MOVE;case "ibeam":return sb.TEXT;case "resize_nesw":return sb.RESIZE_NESW;case "resize_ns":return sb.RESIZE_NS;case "resize_nwse":return sb.RESIZE_NWSE;case "resize_we":return sb.RESIZE_WE;case "wait":return sb.WAIT;case "waitarrow":return sb.WAIT_ARROW;default:return sb.DEFAULT}}},T=function(a){null==a&&(a=!1);this.debugEnabled=a;T.initialized||T.init()};
g["openfl.utils.AGALMiniAssembler"]=T;T.__name__="openfl.utils.AGALMiniAssembler";T.init=function(){T.initialized=!0;var a=T.OPMAP,b=new Xb("mov",2,0,0);a.h.mov=b;a=T.OPMAP;b=new Xb("add",3,1,0);a.h.add=b;a=T.OPMAP;b=new Xb("sub",3,2,0);a.h.sub=b;a=T.OPMAP;b=new Xb("mul",3,3,0);a.h.mul=b;a=T.OPMAP;b=new Xb("div",3,4,0);a.h.div=b;a=T.OPMAP;b=new Xb("rcp",2,5,0);a.h.rcp=b;a=T.OPMAP;b=new Xb("min",3,6,0);a.h.min=b;a=T.OPMAP;b=new Xb("max",3,7,0);a.h.max=b;a=T.OPMAP;b=new Xb("frc",2,8,0);a.h.frc=b;a=
T.OPMAP;b=new Xb("sqt",2,9,0);a.h.sqt=b;a=T.OPMAP;b=new Xb("rsq",2,10,0);a.h.rsq=b;a=T.OPMAP;b=new Xb("pow",3,11,0);a.h.pow=b;a=T.OPMAP;b=new Xb("log",2,12,0);a.h.log=b;a=T.OPMAP;b=new Xb("exp",2,13,0);a.h.exp=b;a=T.OPMAP;b=new Xb("nrm",2,14,0);a.h.nrm=b;a=T.OPMAP;b=new Xb("sin",2,15,0);a.h.sin=b;a=T.OPMAP;b=new Xb("cos",2,16,0);a.h.cos=b;a=T.OPMAP;b=new Xb("crs",3,17,0);a.h.crs=b;a=T.OPMAP;b=new Xb("dp3",3,18,0);a.h.dp3=b;a=T.OPMAP;b=new Xb("dp4",3,19,0);a.h.dp4=b;a=T.OPMAP;b=new Xb("abs",2,20,0);
a.h.abs=b;a=T.OPMAP;b=new Xb("neg",2,21,0);a.h.neg=b;a=T.OPMAP;b=new Xb("sat",2,22,0);a.h.sat=b;a=T.OPMAP;b=new Xb("m33",3,23,16);a.h.m33=b;a=T.OPMAP;b=new Xb("m44",3,24,16);a.h.m44=b;a=T.OPMAP;b=new Xb("m34",3,25,16);a.h.m34=b;a=T.OPMAP;b=new Xb("ddx",2,26,288);a.h.ddx=b;a=T.OPMAP;b=new Xb("ddy",2,27,288);a.h.ddy=b;a=T.OPMAP;b=new Xb("ife",2,28,897);a.h.ife=b;a=T.OPMAP;b=new Xb("ine",2,29,897);a.h.ine=b;a=T.OPMAP;b=new Xb("ifg",2,30,897);a.h.ifg=b;a=T.OPMAP;b=new Xb("ifl",2,31,897);a.h.ifl=b;a=T.OPMAP;
b=new Xb("els",0,32,1921);a.h.els=b;a=T.OPMAP;b=new Xb("eif",0,33,1409);a.h.eif=b;a=T.OPMAP;b=new Xb("kil",1,39,160);a.h.kil=b;a=T.OPMAP;b=new Xb("tex",3,40,40);a.h.tex=b;a=T.OPMAP;b=new Xb("sge",3,41,0);a.h.sge=b;a=T.OPMAP;b=new Xb("slt",3,42,0);a.h.slt=b;a=T.OPMAP;b=new Xb("sgn",2,43,0);a.h.sgn=b;a=T.OPMAP;b=new Xb("seq",3,44,0);a.h.seq=b;a=T.OPMAP;b=new Xb("sne",3,45,0);a.h.sne=b;a=T.SAMPLEMAP;b=new Gc("rgba",8,0);a.h.rgba=b;a=T.SAMPLEMAP;b=new Gc("compressed",8,1);a.h.compressed=b;a=T.SAMPLEMAP;
b=new Gc("compressedalpha",8,2);a.h.compressedalpha=b;a=T.SAMPLEMAP;b=new Gc("dxt1",8,1);a.h.dxt1=b;a=T.SAMPLEMAP;b=new Gc("dxt5",8,2);a.h.dxt5=b;a=T.SAMPLEMAP;b=new Gc("video",8,3);a.h.video=b;a=T.SAMPLEMAP;b=new Gc("2d",12,0);a.h["2d"]=b;a=T.SAMPLEMAP;b=new Gc("3d",12,2);a.h["3d"]=b;a=T.SAMPLEMAP;b=new Gc("cube",12,1);a.h.cube=b;a=T.SAMPLEMAP;b=new Gc("mipnearest",24,1);a.h.mipnearest=b;a=T.SAMPLEMAP;b=new Gc("miplinear",24,2);a.h.miplinear=b;a=T.SAMPLEMAP;b=new Gc("mipnone",24,0);a.h.mipnone=b;
a=T.SAMPLEMAP;b=new Gc("nomip",24,0);a.h.nomip=b;a=T.SAMPLEMAP;b=new Gc("nearest",28,0);a.h.nearest=b;a=T.SAMPLEMAP;b=new Gc("linear",28,1);a.h.linear=b;a=T.SAMPLEMAP;b=new Gc("anisotropic2x",28,2);a.h.anisotropic2x=b;a=T.SAMPLEMAP;b=new Gc("anisotropic4x",28,3);a.h.anisotropic4x=b;a=T.SAMPLEMAP;b=new Gc("anisotropic8x",28,4);a.h.anisotropic8x=b;a=T.SAMPLEMAP;b=new Gc("anisotropic16x",28,5);a.h.anisotropic16x=b;a=T.SAMPLEMAP;b=new Gc("centroid",16,1);a.h.centroid=b;a=T.SAMPLEMAP;b=new Gc("single",
16,2);a.h.single=b;a=T.SAMPLEMAP;b=new Gc("ignoresampler",16,4);a.h.ignoresampler=b;a=T.SAMPLEMAP;b=new Gc("repeat",20,1);a.h.repeat=b;a=T.SAMPLEMAP;b=new Gc("wrap",20,1);a.h.wrap=b;a=T.SAMPLEMAP;b=new Gc("clamp",20,0);a.h.clamp=b;a=T.SAMPLEMAP;b=new Gc("clamp_u_repeat_v",20,2);a.h.clamp_u_repeat_v=b;a=T.SAMPLEMAP;b=new Gc("repeat_u_clamp_v",20,3);a.h.repeat_u_clamp_v=b};T.prototype={agalcode:null,error:null,verbose:null,debugEnabled:null,assemble2:function(a,b,c,d){c=this.assemble("vertex",c,b);
b=this.assemble("fragment",d,b);a=a.createProgram();a.upload(c,b);return a},assemble:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=1);var e=Sa.getTimer();this.agalcode=new Nb(0);this.error="";var f=!1;"fragment"==a?f=!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(f?1:0);this.initregmap(c,d);a=ia.replace(b,"\r","\n").split("\n");
b=0;d=a.length;for(var h=new fa("<.*>","g"),l=new fa("([\\w\\.\\-\\+]+)","gi"),m=new fa("^\\w{3}","ig"),g=new fa("vc\\[([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw](\\+\\d{1,3})?)?\\](\\.[xyzw]{1,4})?|([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw]{1,4})?","gi"),k=new fa("\\[.*\\]","ig"),n=new fa("^\\b[A-Za-z]{1,3}","ig"),q=new fa("\\d+",""),p=new fa("(\\.[xyzw]{1,4})",""),v=new fa("[A-Za-z]{1,3}","ig"),r=new fa("(\\.[xyzw]{1,1})",""),u=new fa("\\+\\d{1,3}","ig"),x=0;x<d&&""==this.error;){var w=ia.trim(a[x]),
z=w.indexOf("//");-1!=z&&(w=G.substr(w,0,z));var U=h.match(w)?h.matchedPos().pos:-1;z=null;-1!=U&&(z=this.match(G.substr(w,U,null),l),w=G.substr(w,0,U));var X=null;m.match(w)&&(U=m.matched(0),X=T.OPMAP.h[U]);if(null==X)3<=w.length&&Ea.warn("warning: bad line "+x+": "+a[x],{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:262,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});else if(this.debugEnabled&&Ea.info(X,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:272,className:"openfl.utils.AGALMiniAssembler",
methodName:"assemble"}),null==X)3<=w.length&&Ea.warn("warning: bad line "+x+": "+a[x],{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:279,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});else{w=G.substr(w,w.indexOf(X.name)+X.name.length,null);if(0!=(X.flags&256)&&2>c){this.error="error: opcode requires version 2.";break}if(0!=(X.flags&64)&&f){this.error="error: opcode is only allowed in vertex programs.";break}if(0!=(X.flags&32)&&!f){this.error="error: opcode is only allowed in fragment programs.";
break}this.verbose&&Ea.info("emit opcode="+B.string(X),{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:308,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});this.agalcode.writeUnsignedInt(X.emitCode);++b;if(4096<b){this.error="error: too many opcodes. maximum is 4096.";break}var P=this.match(w,g);if(P.length!=X.numRegister){this.error="error: wrong number of operands. found "+P.length+" but expected "+X.numRegister+".";break}var F=!1,D=160;w=0;for(U=P.length;w<U;){var C=
w++,Ha=!1,H=this.match(P[C],k);0<H.length&&(P[C]=ia.replace(P[C],H[0],"0"),this.verbose&&Ea.info("IS REL",{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:344,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),Ha=!0);var y=this.match(P[C],n);if(0==y.length){this.error="error: could not parse operand "+C+" ("+P[C]+").";F=!0;break}var I=T.REGMAP.h[y[0]];this.debugEnabled&&Ea.info(I,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:363,className:"openfl.utils.AGALMiniAssembler",
methodName:"assemble"});if(null==I){this.error="error: could not find register name for operand "+C+" ("+P[C]+").";F=!0;break}if(f){if(0==(I.flags&32)){this.error="error: register operand "+C+" ("+P[C]+") only allowed in vertex programs.";F=!0;break}if(Ha){this.error="error: register operand "+C+" ("+P[C]+") relative adressing not allowed in fragment programs.";F=!0;break}}else if(0==(I.flags&64)){this.error="error: register operand "+C+" ("+P[C]+") only allowed in fragment programs.";F=!0;break}P[C]=
G.substr(P[C],P[C].indexOf(I.name)+I.name.length,null);var J=Ha?this.match(H[0],q):this.match(P[C],q);y=0;0<J.length&&(y=B.parseInt(J[0]));if(za.gt(y,I.range)){w=I.range+1;this.error="error: register operand "+C+" ("+P[C]+") index exceeds limit of "+(null==w?"null":B.string(za.toFloat(w)))+".";F=!0;break}var L=this.match(P[C],p),Y=0==C&&0==(X.flags&128),N=2==C&&0!=(X.flags&8),Q=0,R=0,S=0;if(Y&&Ha){this.error="error: relative can not be destination";F=!0;break}if(0<L.length){for(var Wa=J=0,K=L[0].length,
E=1;E<K;)Wa=G.cca(L[0],E)-120,za.gt(Wa,2)&&(Wa=3),J=Y?J|1<<Wa:J|Wa<<(E-1<<1),++E;if(!Y)for(;4>=E;)J|=Wa<<(E-1<<1),++E}else J=Y?15:228;if(Ha){L=this.match(H[0],v);Q=T.REGMAP.h[L[0]];if(null==Q){this.error="error: bad index register";F=!0;break}Q=Q.emitCode;Wa=this.match(H[0],r);if(0==Wa.length){this.error="error: bad index register select";F=!0;break}R=G.cca(Wa[0],1)-120;za.gt(R,2)&&(R=3);H=this.match(H[0],u);0<H.length&&(S=B.parseInt(H[0]));if(0>S||255<S){this.error="error: index offset "+S+" out of bounds. [0..255]";
F=!0;break}this.verbose&&Ea.info("RELATIVE: type="+Q+"=="+L[0]+" sel="+(null==R?"null":B.string(za.toFloat(R)))+"=="+Wa[0]+" idx="+(null==y?"null":B.string(za.toFloat(y)))+" offset="+S,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:518,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})}this.verbose&&Ea.info("  emit argcode="+B.string(I)+"["+(null==y?"null":B.string(za.toFloat(y)))+"]["+J+"]",{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:525,className:"openfl.utils.AGALMiniAssembler",
methodName:"assemble"});if(Y)this.agalcode.writeShort(y),this.agalcode.writeByte(J),this.agalcode.writeByte(I.emitCode),D-=32;else{if(N){this.verbose&&Ea.info("  emit sampler",{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:541,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});C=5;H=Ha=0;for(I=null==z?0:z.length;H<I;)J=H++,this.verbose&&Ea.info("    opt: "+z[J],{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:552,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),
Y=T.SAMPLEMAP.h[z[J]],null==Y?(Ha=parseFloat(z[J]),this.verbose&&Ea.info("    bias: "+Ha,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:565,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})):(16!=Y.flag&&(C&=~(15<<Y.flag)),C|=Y.mask<<Y.flag);this.agalcode.writeShort(y);this.agalcode.writeByte(8*Ha|0);this.agalcode.writeByte(0);this.agalcode.writeUnsignedInt(C);this.verbose&&Ea.info("    bits: "+(C-5),{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:586,className:"openfl.utils.AGALMiniAssembler",
methodName:"assemble"})}else 0==C&&(this.agalcode.writeUnsignedInt(0),D-=32),this.agalcode.writeShort(y),this.agalcode.writeByte(S),this.agalcode.writeByte(J),this.agalcode.writeByte(I.emitCode),this.agalcode.writeByte(Q),this.agalcode.writeShort(Ha?R|32768:0);D-=64}}for(w=0;w<D;)this.agalcode.writeByte(0),w+=8;if(F)break}++x}""!=this.error&&(this.error+="\n  at line "+x+" "+a[x],Mb.set_length(this.agalcode,0),Ea.info(this.error,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:631,className:"openfl.utils.AGALMiniAssembler",
methodName:"assemble"}));if(this.debugEnabled){c="generated bytecode:";f=Mb.get_length(this.agalcode);w=0;for(U=f;w<U;)f=w++,0==f%16&&(c+="\n"),0==f%4&&(c+=" "),f=ia.hex(this.agalcode.b[f],2),2>f.length&&(f="0"+f),c+=f;Ea.info(c,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:662,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})}this.verbose&&Ea.info("AGALMiniAssembler.assemble time: "+(Sa.getTimer()-e)/1E3+"s",{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:667,
className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});return this.agalcode},initregmap:function(a,b){var c=T.REGMAP,d=new mf("va","vertex attribute",0,b?1024:1==a||2==a?7:15,66);c.h.va=d;c=T.REGMAP;d=new mf("vc","vertex constant",1,b?1024:1==a?127:249,66);c.h.vc=d;c=T.REGMAP;d=new mf("vt","vertex temporary",2,b?1024:1==a?7:25,67);c.h.vt=d;c=T.REGMAP;d=new mf("vo","vertex output",3,b?1024:0,65);c.h.vo=d;c=T.REGMAP;d=new mf("vi","varying",4,b?1024:1==a?7:9,99);c.h.vi=d;c=T.REGMAP;d=new mf("fc",
"fragment constant",1,b?1024:1==a?27:2==a?63:199,34);c.h.fc=d;c=T.REGMAP;d=new mf("ft","fragment temporary",2,b?1024:1==a?7:25,35);c.h.ft=d;c=T.REGMAP;d=new mf("fs","texture sampler",5,b?1024:7,34);c.h.fs=d;c=T.REGMAP;d=new mf("fo","fragment output",3,b?1024:1==a?0:3,33);c.h.fo=d;c=T.REGMAP;d=new mf("fd","fragment depth output",6,b?1024:1==a?-1:0,33);c.h.fd=d;c=T.REGMAP;d=new mf("iid","instance id",7,b?1024:0,66);c.h.iid=d;d=T.REGMAP.h.vo;T.REGMAP.h.op=d;d=T.REGMAP.h.vi;T.REGMAP.h.i=d;d=T.REGMAP.h.vi;
T.REGMAP.h.v=d;d=T.REGMAP.h.fo;T.REGMAP.h.oc=d;d=T.REGMAP.h.fd;T.REGMAP.h.od=d;d=T.REGMAP.h.vi;T.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__:T};var Xb=function(a,b,c,d){this.name=a;this.numRegister=b;this.emitCode=c;this.flags=d};g["openfl.utils._AGALMiniAssembler.OpCode"]=Xb;Xb.__name__="openfl.utils._AGALMiniAssembler.OpCode";Xb.prototype={emitCode:null,flags:null,name:null,numRegister:null,toString:function(){return'[OpCode name="'+
this.name+'", numRegister='+this.numRegister+", emitCode="+this.emitCode+", flags="+this.flags+"]"},__class__:Xb};var mf=function(a,b,c,d,e){this.name=a;this.longName=b;this.emitCode=c;this.range=d;this.flags=e};g["openfl.utils._AGALMiniAssembler.Register"]=mf;mf.__name__="openfl.utils._AGALMiniAssembler.Register";mf.prototype={emitCode:null,name:null,longName:null,flags:null,range:null,toString:function(){return'[Register name="'+this.name+'", longName="'+this.longName+'", emitCode='+(null==this.emitCode?
"null":B.string(za.toFloat(this.emitCode)))+", range="+(null==this.range?"null":B.string(za.toFloat(this.range)))+", flags="+(null==this.flags?"null":B.string(za.toFloat(this.flags)))+"]"},__class__:mf};var Gc=function(a,b,c){this.name=a;this.flag=b;this.mask=c};g["openfl.utils._AGALMiniAssembler.Sampler"]=Gc;Gc.__name__="openfl.utils._AGALMiniAssembler.Sampler";Gc.prototype={flag:null,mask:null,name:null,toString:function(){return'[Sampler name="'+this.name+'", flag="'+(null==this.flag?"null":B.string(za.toFloat(this.flag)))+
'", mask='+(null==this.mask?"null":B.string(za.toFloat(this.mask)))+"]"},__class__:Gc};var Tq=function(){};g["openfl.utils.IAssetCache"]=Tq;Tq.__name__="openfl.utils.IAssetCache";Tq.__isInterface__=!0;Tq.prototype={get_enabled:null,set_enabled:null,clear:null,getBitmapData:null,getFont:null,getSound:null,hasBitmapData:null,hasFont:null,hasSound:null,removeBitmapData:null,removeFont:null,removeSound:null,setBitmapData:null,setFont:null,setSound:null,__class__:Tq,__properties__:{set_enabled:"set_enabled",
get_enabled:"get_enabled"}};var Uq=function(){this.__enabled=!0;this.bitmapData=new da;this.font=new da;this.sound=new da};g["openfl.utils.AssetCache"]=Uq;Uq.__name__="openfl.utils.AssetCache";Uq.__interfaces__=[Tq];Uq.prototype={bitmapData:null,font:null,sound:null,__enabled:null,clear:function(a){if(null==a)this.bitmapData=new da,this.font=new da,this.sound=new da;else{var b=this.bitmapData.h;b=Object.keys(b);for(var c=b.length,d=0;d<c;){var e=b[d++];ia.startsWith(e,a)&&this.removeBitmapData(e)}b=
this.font.h;b=Object.keys(b);c=b.length;for(d=0;d<c;)e=b[d++],ia.startsWith(e,a)&&this.removeFont(e);b=this.sound.h;b=Object.keys(b);c=b.length;for(d=0;d<c;)e=b[d++],ia.startsWith(e,a)&&this.removeSound(e)}},getBitmapData:function(a){return this.bitmapData.h[a]},getFont:function(a){return this.font.h[a]},getSound:function(a){return this.sound.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)},removeBitmapData:function(a){var b=oa.cache.image;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];b=this.bitmapData;return Object.prototype.hasOwnProperty.call(b.h,a)?(delete b.h[a],!0):!1},removeFont:function(a){var b=oa.cache.font;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];b=this.font;return Object.prototype.hasOwnProperty.call(b.h,a)?(delete b.h[a],!0):!1},removeSound:function(a){var b=
oa.cache.audio;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];b=this.sound;return Object.prototype.hasOwnProperty.call(b.h,a)?(delete b.h[a],!0):!1},setBitmapData:function(a,b){this.bitmapData.h[a]=b},setFont:function(a,b){this.font.h[a]=b},setSound:function(a,b){this.sound.h[a]=b},get_enabled:function(){return this.__enabled},set_enabled:function(a){return this.__enabled=a},__class__:Uq,__properties__:{set_enabled:"set_enabled",get_enabled:"get_enabled"}};var zc=function(){Vb.call(this)};
g["openfl.utils.AssetLibrary"]=zc;zc.__name__="openfl.utils.AssetLibrary";zc.fromBytes=function(a,b){return zc.fromManifest(Dc.fromBytes(Mb.toLimeBytes(a),b))};zc.fromFile=function(a,b){return zc.fromManifest(Dc.fromFile(a,b))};zc.fromManifest=function(a){a=Vb.fromManifest(a);if(null!=a){if(a instanceof zc)return a;var b=new zc;b.__proxy=a;return b}return null};zc.loadFromBytes=function(a,b){return Dc.loadFromBytes(Mb.toLimeBytes(a),b).then(function(a){return zc.loadFromManifest(a)})};zc.loadFromFile=
function(a,b){return Dc.loadFromFile(a,b).then(function(a){return zc.loadFromManifest(a)})};zc.loadFromManifest=function(a){a=zc.fromManifest(a);return null!=a?a.load().then(function(a){return Ja.withValue(a)}):Ja.withError("Could not load asset manifest")};zc.__super__=Vb;zc.prototype=r(Vb.prototype,{__proxy:null,exists:function(a,b){return null!=this.__proxy?this.__proxy.exists(a,b):Vb.prototype.exists.call(this,a,b)},getAsset:function(a,b){return null!=this.__proxy?this.__proxy.getAsset(a,b):Vb.prototype.getAsset.call(this,
a,b)},getAudioBuffer:function(a){return null!=this.__proxy?this.__proxy.getAudioBuffer(a):Vb.prototype.getAudioBuffer.call(this,a)},getBytes:function(a){return null!=this.__proxy?this.__proxy.getBytes(a):Vb.prototype.getBytes.call(this,a)},getFont:function(a){return null!=this.__proxy?this.__proxy.getFont(a):Vb.prototype.getFont.call(this,a)},getImage:function(a){return null!=this.__proxy?this.__proxy.getImage(a):Vb.prototype.getImage.call(this,a)},getMovieClip:function(a){return null},getPath:function(a){return null!=
this.__proxy?this.__proxy.getPath(a):Vb.prototype.getPath.call(this,a)},getText:function(a){return null!=this.__proxy?this.__proxy.getText(a):Vb.prototype.getText.call(this,a)},isLocal:function(a,b){return null!=this.__proxy?this.__proxy.isLocal(a,b):Vb.prototype.isLocal.call(this,a,b)},list:function(a){return null!=this.__proxy?this.__proxy.list(a):Vb.prototype.list.call(this,a)},loadAsset:function(a,b){return null!=this.__proxy?this.__proxy.loadAsset(a,b):Vb.prototype.loadAsset.call(this,a,b)},
load:function(){return null!=this.__proxy?this.__proxy.load():Vb.prototype.load.call(this)},loadAudioBuffer:function(a){return null!=this.__proxy?this.__proxy.loadAudioBuffer(a):Vb.prototype.loadAudioBuffer.call(this,a)},loadBytes:function(a){return null!=this.__proxy?this.__proxy.loadBytes(a):Vb.prototype.loadBytes.call(this,a)},loadFont:function(a){return null!=this.__proxy?this.__proxy.loadFont(a):Vb.prototype.loadFont.call(this,a)},loadImage:function(a){return null!=this.__proxy?this.__proxy.loadImage(a):
Vb.prototype.loadImage.call(this,a)},loadMovieClip:function(a){return Ja.withValue(this.getMovieClip(a))},loadText:function(a){return null!=this.__proxy?this.__proxy.loadText(a):Vb.prototype.loadText.call(this,a)},unload:function(){null!=this.__proxy?this.__proxy.unload():Vb.prototype.unload.call(this)},__class__:zc});var na=function(){};g["openfl.utils.Assets"]=na;na.__name__="openfl.utils.Assets";na.addEventListener=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);oa.onChange.has(na.LimeAssets_onChange)||
oa.onChange.add(na.LimeAssets_onChange);na.dispatcher.addEventListener(a,b,c,d,e)};na.dispatchEvent=function(a){return na.dispatcher.dispatchEvent(a)};na.exists=function(a,b){return oa.exists(a,b)};na.getBitmapData=function(a,b){null==b&&(b=!0);if(b&&na.cache.get_enabled()&&na.cache.hasBitmapData(a)){var c=na.cache.getBitmapData(a);if(na.isValidBitmapData(c))return c}c=oa.getImage(a,!1);return null!=c?(c=xb.fromImage(c),b&&na.cache.get_enabled()&&na.cache.setBitmapData(a,c),c):null};na.getBytes=function(a){return Mb.fromLimeBytes(oa.getBytes(a))};
na.getFont=function(a,b){null==b&&(b=!0);if(b&&na.cache.get_enabled()&&na.cache.hasFont(a))return na.cache.getFont(a);var c=oa.getFont(a,!1);if(null!=c){var d=new Xa;d.__fromLimeFont(c);b&&na.cache.get_enabled()&&na.cache.setFont(a,d);return d}return new Xa};na.getLibrary=function(a){return oa.getLibrary(a)};na.getMovieClip=function(a){var b=a.substring(0,a.indexOf(":")),c=G.substr(a,a.indexOf(":")+1,null),d=na.getLibrary(b);if(null!=d){if(d instanceof zc&&d.exists(c,"MOVIE_CLIP")){if(d.isLocal(c,
"MOVIE_CLIP"))return d.getMovieClip(c);Ea.error('MovieClip asset "'+a+'" exists, but only asynchronously',{fileName:"openfl/utils/Assets.hx",lineNumber:211,className:"openfl.utils.Assets",methodName:"getMovieClip"});return null}Ea.error('There is no MovieClip asset with an ID of "'+a+'"',{fileName:"openfl/utils/Assets.hx",lineNumber:217,className:"openfl.utils.Assets",methodName:"getMovieClip"})}else Ea.error('There is no asset library named "'+b+'"',{fileName:"openfl/utils/Assets.hx",lineNumber:221,
className:"openfl.utils.Assets",methodName:"getMovieClip"});return null};na.getMusic=function(a,b){null==b&&(b=!0);return na.getSound(a,b)};na.getPath=function(a){return oa.getPath(a)};na.getSound=function(a,b){null==b&&(b=!0);if(b&&na.cache.get_enabled()&&na.cache.hasSound(a)){var c=na.cache.getSound(a);if(na.isValidSound(c))return c}c=oa.getAudioBuffer(a,!1);return null!=c?(c=jf.fromAudioBuffer(c),b&&na.cache.get_enabled()&&na.cache.setSound(a,c),c):null};na.getText=function(a){return oa.getText(a)};
na.hasEventListener=function(a){return na.dispatcher.hasEventListener(a)};na.hasLibrary=function(a){return oa.hasLibrary(a)};na.isLocal=function(a,b,c){null==c&&(c=!0);if(c&&na.cache.get_enabled()&&(("IMAGE"==b||null==b)&&na.cache.hasBitmapData(a)||("FONT"==b||null==b)&&na.cache.hasFont(a)||("SOUND"==b||"MUSIC"==b||null==b)&&na.cache.hasSound(a)))return!0;c=a.substring(0,a.indexOf(":"));a=G.substr(a,a.indexOf(":")+1,null);c=na.getLibrary(c);return null!=c?c.isLocal(a,b):!1};na.isValidBitmapData=function(a){return null!=
a&&null!=a.image};na.isValidSound=function(a){return!0};na.list=function(a){return oa.list(a)};na.loadBitmapData=function(a,b){null==b&&(b=!0);null==b&&(b=!0);var c=new nd;if(b&&na.cache.get_enabled()&&na.cache.hasBitmapData(a)){var d=na.cache.getBitmapData(a);if(na.isValidBitmapData(d))return c.complete(d),c.future}oa.loadImage(a,!1).onComplete(function(d){null!=d?(d=xb.fromImage(d),b&&na.cache.get_enabled()&&na.cache.setBitmapData(a,d),c.complete(d)):c.error('[Assets] Could not load Image "'+a+
'"')}).onError(k(c,c.error)).onProgress(k(c,c.progress));return c.future};na.loadBytes=function(a){var b=new nd;a=oa.loadBytes(a);a.onComplete(function(a){b.complete(Mb.fromLimeBytes(a))});a.onProgress(function(a,d){b.progress(a,d)});a.onError(function(a){b.error(a)});return b.future};na.loadFont=function(a,b){null==b&&(b=!0);null==b&&(b=!0);var c=new nd;if(b&&na.cache.get_enabled()&&na.cache.hasFont(a))return c.complete(na.cache.getFont(a)),c.future;oa.loadFont(a).onComplete(function(d){var e=new Xa;
e.__fromLimeFont(d);b&&na.cache.get_enabled()&&na.cache.setFont(a,e);c.complete(e)}).onError(k(c,c.error)).onProgress(k(c,c.progress));return c.future};na.loadLibrary=function(a){return oa.loadLibrary(a).then(function(b){var c=null;null!=b&&(b instanceof zc?c=b:(c=new zc,c.__proxy=b,oa.registerLibrary(a,c)));return Ja.withValue(c)})};na.loadMusic=function(a,b){null==b&&(b=!0);null==b&&(b=!0);return new Ja(function(){return na.getMusic(a,b)})};na.loadMovieClip=function(a){var b=new nd,c=a.substring(0,
a.indexOf(":")),d=G.substr(a,a.indexOf(":")+1,null),e=na.getLibrary(c);if(null!=e){if(e instanceof zc&&e.exists(d,"MOVIE_CLIP"))return b.completeWith(e.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};na.loadSound=function(a,b){null==b&&(b=!0);null==b&&(b=!0);var c=new nd;oa.loadAudioBuffer(a,b).onComplete(function(d){null!=d?(d=jf.fromAudioBuffer(d),b&&na.cache.get_enabled()&&
na.cache.setSound(a,d),c.complete(d)):c.error('[Assets] Could not load Sound "'+a+'"')}).onError(k(c,c.error)).onProgress(k(c,c.progress));return c.future};na.loadText=function(a){return oa.loadText(a)};na.registerLibrary=function(a,b){oa.registerLibrary(a,b)};na.removeEventListener=function(a,b,c){null==c&&(c=!1);na.dispatcher.removeEventListener(a,b,c)};na.resolveClass=function(a){return g[a]};na.resolveEnum=function(a){return P[a]};na.unloadLibrary=function(a){oa.unloadLibrary(a)};na.LimeAssets_onChange=
function(){na.dispatchEvent(new W("change"))};var Mb={__properties__:{set_position:"set_position",get_position:"get_position",set_length:"set_length",get_length:"get_length",get_bytesAvailable:"get_bytesAvailable",set_defaultObjectEncoding:"set_defaultObjectEncoding",get_defaultObjectEncoding:"get_defaultObjectEncoding",set_defaultEndian:"set_defaultEndian",get_defaultEndian:"get_defaultEndian"},_new:function(a){null==a&&(a=0);return new Nb(a)},clear:function(a){a.clear()},compress:function(a,b){a.compress(b)},
deflate:function(a){a.deflate()},fromArrayBuffer:function(a){return null==a?null:Nb.fromBytes(Qa.ofData(a))},fromBytes:function(a){return null==a?null:a instanceof Nb?a:Nb.fromBytes(a)},fromBytesData:function(a){return null==a?null:Nb.fromBytes(Qa.ofData(a))},fromFile:function(a){return Mb.fromLimeBytes(Sd.fromFile(a))},fromLimeBytes:function(a){return Mb.fromBytes(a)},get:function(a,b){return a.b[b]},inflate:function(a){a.inflate()},loadFromBytes:function(a){return Sd.loadFromBytes(a).then(function(a){a=
Mb.fromLimeBytes(a);return Ja.withValue(a)})},loadFromFile:function(a){return Sd.loadFromFile(a).then(function(a){a=Mb.fromLimeBytes(a);return Ja.withValue(a)})},readBoolean:function(a){return a.readBoolean()},readByte:function(a){return a.readByte()},readBytes:function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);a.readBytes(b,c,d)},readDouble:function(a){return a.readDouble()},readFloat:function(a){return a.readFloat()},readInt:function(a){return a.readInt()},readMultiByte:function(a,b,c){return a.readMultiByte(b,
c)},readObject:function(a){return a.readObject()},readShort:function(a){return a.readShort()},readUTF:function(a){return a.readUTF()},readUTFBytes:function(a,b){return a.readUTFBytes(b)},readUnsignedByte:function(a){return a.readUnsignedByte()},readUnsignedInt:function(a){return a.readUnsignedInt()},readUnsignedShort:function(a){return a.readUnsignedShort()},set:function(a,b,c){a.__resize(b+1);a.b[b]=c&255;return c},toArrayBuffer:function(a){return a.b.bufferValue},toBytePointer:function(a){Xu.set(Mb.__bytePointer,
a,null,null,a.position);return Mb.__bytePointer},toBytes:function(a){return a},toBytesData:function(a){return a.b.bufferValue},toLimeBytes:function(a){return a},toString:function(a){return a.toString()},uncompress:function(a,b){a.uncompress(b)},writeBoolean:function(a,b){a.writeBoolean(b)},writeByte:function(a,b){a.writeByte(b)},writeBytes:function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);a.writeBytes(b,c,d)},writeDouble:function(a,b){a.writeDouble(b)},writeFloat:function(a,b){a.writeFloat(b)},writeInt:function(a,
b){a.writeInt(b)},writeMultiByte:function(a,b,c){a.writeMultiByte(b,c)},writeObject:function(a,b){a.writeObject(b)},writeShort:function(a,b){a.writeShort(b)},writeUTF:function(a,b){a.writeUTF(b)},writeUTFBytes:function(a,b){a.writeUTFBytes(b)},writeUnsignedInt:function(a,b){a.writeUnsignedInt(b)},get_bytesAvailable:function(a){return a.length-a.position},get_defaultEndian:function(){null==Nb.__defaultEndian&&(Ka.get_endianness()==If.LITTLE_ENDIAN?Nb.__defaultEndian=1:Nb.__defaultEndian=0);return Nb.__defaultEndian},
set_defaultEndian:function(a){return Nb.__defaultEndian=a},get_defaultObjectEncoding:function(){return Nb.defaultObjectEncoding},set_defaultObjectEncoding:function(a){return Nb.defaultObjectEncoding=a},get_endian:function(a){return a.__endian},set_endian:function(a,b){return a.__endian=b},get_length:function(a){return null==a?0:a.length},set_length:function(a,b){0<b&&(a.__resize(b),b<a.position&&(a.position=b));return a.length=b},get_objectEncoding:function(a){return a.objectEncoding},set_objectEncoding:function(a,
b){return a.objectEncoding=b},get_position:function(a){return a.position},set_position:function(a,b){return a.position=b}},Vq=function(){};g["openfl.utils.IDataOutput"]=Vq;Vq.__name__="openfl.utils.IDataOutput";Vq.__isInterface__=!0;Vq.prototype={get_endian:null,set_endian:null,objectEncoding:null,writeBoolean:null,writeByte:null,writeBytes:null,writeDouble:null,writeFloat:null,writeInt:null,writeMultiByte:null,writeObject:null,writeShort:null,writeUnsignedInt:null,writeUTF:null,writeUTFBytes:null,
__class__:Vq,__properties__:{set_endian:"set_endian",get_endian:"get_endian"}};var Wq=function(){};g["openfl.utils.IDataInput"]=Wq;Wq.__name__="openfl.utils.IDataInput";Wq.__isInterface__=!0;Wq.prototype={get_bytesAvailable:null,get_endian:null,set_endian:null,objectEncoding:null,readBoolean:null,readByte:null,readBytes:null,readDouble:null,readFloat:null,readInt:null,readMultiByte:null,readObject:null,readShort:null,readUnsignedByte:null,readUnsignedInt:null,readUnsignedShort:null,readUTF:null,readUTFBytes:null,
__class__:Wq,__properties__:{set_endian:"set_endian",get_endian:"get_endian",get_bytesAvailable:"get_bytesAvailable"}};var Nb=function(a){null==a&&(a=0);var b=new Qa(new ArrayBuffer(a));Qa.call(this,b.b.buffer);this.__length=a;null==Nb.__defaultEndian&&(Ka.get_endianness()==If.LITTLE_ENDIAN?Nb.__defaultEndian=1:Nb.__defaultEndian=0);this.__endian=Nb.__defaultEndian;this.objectEncoding=Nb.defaultObjectEncoding;this.position=0};g["openfl.utils.ByteArrayData"]=Nb;Nb.__name__="openfl.utils.ByteArrayData";
Nb.__interfaces__=[Vq,Wq];Nb.__properties__={set_defaultEndian:"set_defaultEndian",get_defaultEndian:"get_defaultEndian"};Nb.fromBytes=function(a){var b=new Nb;b.__fromBytes(a);return b};Nb.get_defaultEndian=function(){null==Nb.__defaultEndian&&(Ka.get_endianness()==If.LITTLE_ENDIAN?Nb.__defaultEndian=1:Nb.__defaultEndian=0);return Nb.__defaultEndian};Nb.set_defaultEndian=function(a){return Nb.__defaultEndian=a};Nb.__super__=Qa;Nb.prototype=r(Qa.prototype,{objectEncoding:null,position:null,__endian:null,
__length:null,clear:function(){this.position=this.length=0},compress:function(a){null==a&&(a=2);if(this.__length>this.length){var b=this.length;this.length=this.__length;var c=new Qa(new ArrayBuffer(b));c.blit(0,this,0,b);this.b=c.b;this.__length=c.length;this.data=c.data;this.length=b}switch(a){case 0:a=Sd.compress(this,Ve.DEFLATE);break;case 1:a=Sd.compress(this,Ve.LZMA);break;default:a=Sd.compress(this,Ve.ZLIB)}null!=a&&(this.b=a.b,this.__length=a.length,this.data=a.data,this.position=this.length=
this.__length)},deflate:function(){this.compress(0)},inflate:function(){this.uncompress(0)},readBoolean:function(){if(this.position<this.length)return 0!=this.b[this.position++];throw u.thrown(new ci);},readByte:function(){var a=this.readUnsignedByte();return 0!=(a&128)?a-256:a},readBytes:function(a,b,c){null==c&&(c=0);null==b&&(b=0);0==c&&(c=this.length-this.position);if(this.position+c>this.length)throw u.thrown(new ci);a.length<b+c&&a.__resize(b+c);a.blit(b,this,this.position,c);this.position+=
c},readDouble:function(){if(1==this.__endian){if(this.position+8>this.length)throw u.thrown(new ci);this.position+=8;return this.getDouble(this.position-8)}var a=this.readInt(),b=this.readInt();return Id.i64ToDouble(b,a)},readFloat:function(){if(1==this.__endian){if(this.position+4>this.length)throw u.thrown(new ci);this.position+=4;return this.getFloat(this.position-4)}return Id.i32ToFloat(this.readInt())},readInt:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte(),c=this.readUnsignedByte(),
d=this.readUnsignedByte();return 1==this.__endian?d<<24|c<<16|b<<8|a:a<<24|b<<16|c<<8|d},readMultiByte:function(a,b){return this.readUTFBytes(a)},readObject:function(){switch(this.objectEncoding){case 10:var a=this.readUTF();return je.run(a);case 12:return a=this.readUTF(),JSON.parse(a);default:return null}},readShort:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte();a=1==this.__endian?b<<8|a:a<<8|b;return 0!=(a&32768)?a-65536:a},readUnsignedByte:function(){if(this.position<this.length)return this.b[this.position++];
throw u.thrown(new ci);},readUnsignedInt:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte(),c=this.readUnsignedByte(),d=this.readUnsignedByte();return 1==this.__endian?d<<24|c<<16|b<<8|a:a<<24|b<<16|c<<8|d},readUnsignedShort:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte();return 1==this.__endian?(b<<8)+a:a<<8|b},readUTF:function(){var a=this.readUnsignedShort();return this.readUTFBytes(a)},readUTFBytes:function(a){if(this.position+a>this.length)throw u.thrown(new ci);
this.position+=a;return this.getString(this.position-a,a)},uncompress:function(a){null==a&&(a=2);if(this.__length>this.length){var b=this.length;this.length=this.__length;var c=new Qa(new ArrayBuffer(b));c.blit(0,this,0,b);this.b=c.b;this.__length=c.length;this.data=c.data;this.length=b}switch(a){case 0:a=Sd.decompress(this,Ve.DEFLATE);break;case 1:a=Sd.decompress(this,Ve.LZMA);break;default:a=Sd.decompress(this,Ve.ZLIB)}null!=a&&(this.b=a.b,this.__length=a.length,this.data=a.data,this.length=this.__length);
this.position=0},writeBoolean:function(a){this.writeByte(a?1:0)},writeByte:function(a){this.__resize(this.position+1);this.b[this.position++]=a&255},writeBytes:function(a,b,c){null==c&&(c=0);null==b&&(b=0);0!=Mb.get_length(a)&&(0==c&&(c=Mb.get_length(a)-b),this.__resize(this.position+c),this.blit(this.position,a,b,c),this.position+=c)},writeDouble:function(a){a=Id.doubleToI64(a);1==this.__endian?(this.writeInt(a.low),this.writeInt(a.high)):(this.writeInt(a.high),this.writeInt(a.low))},writeFloat:function(a){1==
this.__endian?(this.__resize(this.position+4),this.setFloat(this.position,a),this.position+=4):(a=Id.floatToI32(a),this.writeInt(a))},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)},writeMultiByte:function(a,b){this.writeUTFBytes(a)},
writeObject:function(a){switch(this.objectEncoding){case 10:a=Yd.run(a);this.writeUTF(a);break;case 12:a=JSON.stringify(a),this.writeUTF(a)}},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)},writeUTF:function(a){a=Qa.ofString(a);this.writeShort(a.length);this.writeBytes(Mb.fromBytes(a))},writeUTFBytes:function(a){a=
Qa.ofString(a);this.writeBytes(Mb.fromBytes(a))},__fromBytes:function(a){this.b=a.b;this.__length=a.length;this.data=a.data;this.length=a.length},__resize:function(a){if(a>this.__length){var b=new Qa(new ArrayBuffer(3*(a+1)>>1));if(0<this.__length){var c=this.length;this.length=this.__length;b.blit(0,this,0,this.__length);this.length=c}this.b=b.b;this.__length=b.length;this.data=b.data}this.length<a&&(this.length=a)},__setData:function(a){this.b=a.b;this.__length=a.length;this.data=a.data},get_bytesAvailable:function(){return this.length-
this.position},get_endian:function(){return this.__endian},set_endian:function(a){return this.__endian=a},__class__:Nb,__properties__:{set_endian:"set_endian",get_endian:"get_endian",get_bytesAvailable:"get_bytesAvailable"}});var Yu={exists:function(a,b){return a.exists(b)},get:function(a,b){return a.get(b)},keyValueIterator:function(a){return a.keyValueIterator()},remove:function(a,b){return a.remove(b)},set:function(a,b,c){a.set(b,c);return c},iterator:function(a){return a.keys()},each:function(a){return a.iterator()},
toStringMap:function(a,b){return new da},toIntMap:function(a,b){return new Bc},toFloatMap:function(a,b){return new ml},toEnumValueMapMap:function(a,b){return new Fm},toObjectMap:function(a,b){return new ea},toUtilsObjectMap:function(a,b){return new nl},toClassMap:function(a,b){return new ol},fromStringMap:function(a){return a},fromIntMap:function(a){return a},fromFloatMap:function(a){return a},fromObjectMap:function(a){return a},fromUtilsObjectMap:function(a){return a},fromClassMap:function(a){return a}},
ol=function(){this.types=new da;this.values=new da};g["openfl.utils._Dictionary.ClassMap"]=ol;ol.__name__="openfl.utils._Dictionary.ClassMap";ol.__interfaces__=[ca];ol.prototype={types:null,values:null,clear:function(){this.types.h=Object.create(null);this.values.h=Object.create(null)},copy:function(){for(var a=new ol,b=this.keys();b.hasNext();){var c=b.next();a.set(c,this.get(c))}return a},exists:function(a){return Object.prototype.hasOwnProperty.call(this.types.h,a.__name__)},get:function(a){return this.values.h[a.__name__]},
keyValueIterator:function(){return new Fi(this)},keys:function(){return new zm(this.types.h)},iterator:function(){return new zm(this.values.h)},remove:function(a){a=a.__name__;var b=this.types;Object.prototype.hasOwnProperty.call(b.h,a)?(delete b.h[a],b=!0):b=!1;if(b)return!0;b=this.values;return Object.prototype.hasOwnProperty.call(b.h,a)?(delete b.h[a],!0):!1},set:function(a,b){var c=a.__name__;this.types.h[c]=a;this.values.h[c]=b},toString:function(){return da.stringify(this.values.h)},__class__:ol};
var ml=function(){this.floatKeys=[];this.values=[]};g["openfl.utils._Dictionary.FloatMap"]=ml;ml.__name__="openfl.utils._Dictionary.FloatMap";ml.__interfaces__=[ca];ml.prototype={floatKeys:null,values:null,clear:function(){this.floatKeys=[];this.values=[]},copy:function(){for(var a=new ml,b=this.keys();b.hasNext();){var c=b.next();a.set(c,this.get(c))}return a},exists:function(a){return-1<this.indexOf(a)},get:function(a){a=this.indexOf(a);return-1<a?this.values[a]:null},keyValueIterator:function(){return new Fi(this)},
keys:function(){return new pe(this.floatKeys.slice())},iterator:function(){return new pe(this.values.slice())},remove:function(a){a=this.indexOf(a);return-1<a?(this.floatKeys.splice(a,1),this.values.splice(a,1),!0):!1},set:function(a,b){this.insertSorted(a,b)},indexOf:function(a){var b=this.floatKeys.length,c=0,d=b-1;if(0==b)return-1;for(;c<d;){b=Math.floor((c+d)/2);if(this.floatKeys[b]==a)return b;this.floatKeys[b]>a?d=b-1:c=b+1}return this.floatKeys[c]==a?c:-1},insertSorted:function(a,b){var c=
this.floatKeys.length,d=0,e=c-1;if(0==c)this.floatKeys.push(a),this.values.push(b);else{for(;d<e;){c=Math.floor((d+e)/2);if(this.floatKeys[c]==a){this.values[c]=b;return}this.floatKeys[c]>a?e=c-1:d=c+1}this.floatKeys[d]>a?(this.floatKeys.splice(d,0,a),this.values.splice(d,0,b)):this.floatKeys[d]<a?(this.floatKeys.splice(d+1,0,a),this.values.splice(d+1,0,b)):this.values[d]=b}},toString:function(){return this.values.toString()},__class__:ml};var nl=function(){this.map=new ea};g["openfl.utils._Dictionary.UtilsObjectMap"]=
nl;nl.__name__="openfl.utils._Dictionary.UtilsObjectMap";nl.__interfaces__=[ca];nl.prototype={map:null,clear:function(){this.map.h={__keys__:{}}},copy:function(){for(var a=new nl,b=this.keys();b.hasNext();){var c=b.next();a.set(c,this.get(c))}return a},exists:function(a){return null!=this.map.h.__keys__[a.__id__]},get:function(a){return this.map.h[a.__id__]},keyValueIterator:function(){return new Fi(this)},keys:function(){return this.map.keys()},iterator:function(){return this.map.iterator()},remove:function(a){return this.map.remove(a)},
set:function(a,b){this.map.set(a,b)},toString:function(){return this.map.toString()},__class__:nl};var Gu={fromLimeEndian:function(a){switch(a._hx_index){case 0:return 1;case 1:return 0}},fromString:function(a){switch(a){case "bigEndian":return 0;case "littleEndian":return 1;default:return null}},toLimeEndian:function(a){switch(a){case 0:return If.BIG_ENDIAN;case 1:return If.LITTLE_ENDIAN;default:return null}},toString:function(a){switch(a){case 0:return"bigEndian";case 1:return"littleEndian";default:return null}}},
Xq=function(){};g["haxe.lang.Iterator"]=Xq;Xq.__name__="haxe.lang.Iterator";Xq.__isInterface__=!0;Xq.prototype={hasNext:null,next:null,__class__:Xq};var Yq=function(){};g["haxe.lang.Iterable"]=Yq;Yq.__name__="haxe.lang.Iterable";Yq.__isInterface__=!0;Yq.prototype={iterator:null,__class__:Yq};var Ck=function(a,b){null==b&&(b=0);if(isNaN(a)||0>a)throw u.thrown(new Fc("The delay specified is negative or not a finite number"));L.call(this);this.__delay=a;this.__repeatCount=b;this.running=!1;this.currentCount=
0};g["openfl.utils.Timer"]=Ck;Ck.__name__="openfl.utils.Timer";Ck.__super__=L;Ck.prototype=r(L.prototype,{currentCount:null,running:null,__delay:null,__repeatCount:null,__timer:null,__timerID:null,reset:function(){this.running&&this.stop();this.currentCount=0},start:function(){this.running||(this.running=!0,this.__timerID=window.setInterval(k(this,this.timer_onTimer),this.__delay|0))},stop:function(){this.running=!1;null!=this.__timerID&&(window.clearInterval(this.__timerID),this.__timerID=null)},
get_delay:function(){return this.__delay},set_delay:function(a){this.__delay=a;this.running&&(this.stop(),this.start());return this.__delay},get_repeatCount:function(){return this.__repeatCount},set_repeatCount:function(a){this.running&&0!=a&&a<=this.currentCount&&this.stop();return this.__repeatCount=a},timer_onTimer:function(){this.currentCount++;0<this.__repeatCount&&this.currentCount>=this.__repeatCount?(this.stop(),this.dispatchEvent(new ei("timer")),this.dispatchEvent(new ei("timerComplete"))):
this.dispatchEvent(new ei("timer"))},__class__:Ck,__properties__:{set_repeatCount:"set_repeatCount",get_repeatCount:"get_repeatCount",set_delay:"set_delay",get_delay:"get_delay"}});var ic=function(){};g["openfl.utils._internal.Lib"]=ic;ic.__name__="openfl.utils._internal.Lib";ic.notImplemented=function(a){var b=a.className+"."+a.methodName;Object.prototype.hasOwnProperty.call(ic.__sentWarnings.h,b)||(ic.__sentWarnings.h[b]=!0,Ea.warn(a.methodName+" is not implemented",a))};var Wj=function(){this.rollOutStack=
[]};g["openfl.utils._internal.TouchData"]=Wj;Wj.__name__="openfl.utils._internal.TouchData";Wj.prototype={rollOutStack:null,touch:null,touchDownTarget:null,touchOverTarget:null,reset:function(){this.touchOverTarget=this.touchDownTarget=this.touch=null;this.rollOutStack.splice(0,this.rollOutStack.length)},__class__:Wj};var He=function(a,b,c){W.call(this,a);this.instance=b;this.instanceType=c};g["org.swiftsuspenders.InjectionEvent"]=He;He.__name__="org.swiftsuspenders.InjectionEvent";He.__super__=W;
He.prototype=r(W.prototype,{instance:null,instanceType:null,clone:function(){return new He(this.type,this.instance,this.instanceType)},__class__:He});var Ie=function(){this.providerMappings=new da;this.blockParentFallbackProvider=!1;this._mappings=new da;this._mappingsInProcess=new da;this._managedObjects=new da;this._reflector=new Zq(new Ze);this._classDescriptor=new ut(this._reflector,Ie.INJECTION_POINTS_CACHE);this.set_applicationDomain(Ff.currentDomain);L.call(this)};g["org.swiftsuspenders.Injector"]=
Ie;Ie.__name__="org.swiftsuspenders.Injector";Ie.initBaseTypeMappingIds=function(a){for(var b=[],c=0,d=a.length;c<d;){var e=c++;b.push(a[e].__name__+"|")}return b};Ie.purgeInjectionPointsCache=function(){Ie.INJECTION_POINTS_CACHE=new da};Ie.__super__=L;Ie.prototype=r(L.prototype,{parentInjector:null,applicationDomain:null,fallbackProvider:null,blockParentFallbackProvider:null,_classDescriptor:null,_mappings:null,_mappingsInProcess:null,_managedObjects:null,_reflector:null,providerMappings:null,get_parentInjector:function(){return this.parentInjector},
set_parentInjector:function(a){this.parentInjector=a;return this.get_parentInjector()},get_applicationDomain:function(){return this.applicationDomain},set_applicationDomain:function(a){this.applicationDomain=null!=a?a:Ff.currentDomain;return this.get_applicationDomain()},get_fallbackProvider:function(){return this.fallbackProvider},set_fallbackProvider:function(a){return this.fallbackProvider=a},get_blockParentFallbackProvider:function(){return this.blockParentFallbackProvider},set_blockParentFallbackProvider:function(a){return this.blockParentFallbackProvider=
a},map:function(a,b){null==b&&(b="");var c=a.__name__+"|"+b;return Object.prototype.hasOwnProperty.call(this._mappings.h,c)?this._mappings.h[c]:this.createMapping(a,b,c)},unmap:function(a,b){null==b&&(b="");var c=a.__name__+"|"+b,d=this._mappings.h[c];if(null!=d&&d.get_isSealed())throw u.thrown(new Qd("Can't unmap a sealed mapping"));if(null==d)throw u.thrown(new Qd("Error while removing an injector mapping: No mapping defined for dependency "+c));d.getProvider().destroy();d=this._mappings;Object.prototype.hasOwnProperty.call(d.h,
c)&&delete d.h[c];d=this.providerMappings;Object.prototype.hasOwnProperty.call(d.h,c)&&delete d.h[c];this.hasEventListener(Lc.POST_MAPPING_REMOVE)&&this.dispatchEvent(new Lc(Lc.POST_MAPPING_REMOVE,a,b,null))},satisfies:function(a,b){null==b&&(b="");return null!=this.getProvider(a.__name__+"|"+b,!0)},satisfiesDirectly:function(a,b){null==b&&(b="");return this.hasDirectMapping(a,b)?!0:null!=this.getDefaultProvider(a.__name__+"|"+b,!1)},getMapping:function(a,b){null==b&&(b="");a=a.__name__+"|"+b;b=this._mappings.h[a];
if(null==b)throw u.thrown(new Nj("Error while retrieving an injector mapping: No mapping defined for dependency "+a));return b},hasManagedInstance:function(a){var b=this._managedObjects;a=Kb.instanceID(a);return Object.prototype.hasOwnProperty.call(b.h,a)},injectInto:function(a){var b=N.getClass(a);this.applyInjectionPoints(a,b,this._classDescriptor.getDescription(b))},getInstance:function(a,b,c){null==b&&(b="");b=a.__name__+"|"+b;var d=null!=this.getProvider(b)?this.getProvider(b):this.getDefaultProvider(b,
!0);if(null!=d)return a=this._classDescriptor.getDescription(a).ctor,null!=a?d.apply(c,this,a.injectParameters):d.apply(c,this,null);c=null!=this.get_fallbackProvider()?"the fallbackProvider, '"+B.string(this.get_fallbackProvider())+"', was unable to fulfill this request.":"the injector has no fallbackProvider.";throw u.thrown(new Nj("No mapping found for request "+b+" and "+c));},getOrCreateNewInstance:function(a){return this.satisfies(a)?this.getInstance(a):this.instantiateUnmapped(a)},instantiateUnmapped:function(a){if(!this.canBeInstantiated(a))throw u.thrown(new rn("Can't instantiate interface "+
a.__name__));var b=this._classDescriptor.getDescription(a),c=b.ctor.createInstance(a,this);this.hasEventListener(He.POST_INSTANTIATE)&&this.dispatchEvent(new He(He.POST_INSTANTIATE,c,a));this.applyInjectionPoints(c,a,b);return c},destroyInstance:function(a){var b=this._managedObjects,c=Kb.clearInstanceID(a);Object.prototype.hasOwnProperty.call(b.h,c)&&delete b.h[c];b=N.getClass(a);for(c=this.getTypeDescription(b).preDestroyMethods;null!=c;)c.applyInjection(a,b,this),c=N.__cast(c.next,Vk)},teardown:function(){var a=
this._mappings.h,b=a,c=Object.keys(a);a=c.length;for(var d=0;d<a;)b[c[d++]].getProvider().destroy();b=[];c=a=this._managedObjects.h;a=Object.keys(a);d=a.length;for(var e=0;e<d;){var f=c[a[e++]];f&&b.push(f)}for(;0<b.length;)this.destroyInstance(b.pop());b=J.fields(this.providerMappings);for(c=0;c<b.length;)a=b[c],++c,d=this.providerMappings,Object.prototype.hasOwnProperty.call(d.h,a)&&delete d.h[a];this._mappings=new da;this._mappingsInProcess=new da;this._managedObjects=new da;this.set_fallbackProvider(null);
this.set_blockParentFallbackProvider(!1)},createChildInjector:function(a){var b=new Ie;null!=a?b.set_applicationDomain(a):b.set_applicationDomain(this.get_applicationDomain());b.set_parentInjector(this);return b},addTypeDescription:function(a,b){this._classDescriptor.addDescription(a,b)},getTypeDescription:function(a){return this._reflector.describeInjections(a)},hasMapping:function(a,b){null==b&&(b="");return null!=this.getProvider(a.__name__+"|"+b)},hasDirectMapping:function(a,b){null==b&&(b="");
return Object.prototype.hasOwnProperty.call(this._mappings.h,a.__name__+"|"+b)},canBeInstantiated:function(a){return null!=this._classDescriptor.getDescription(a).ctor},getProvider:function(a,b){null==b&&(b=!0);for(var c=null,d=this;null!=d;){var e=d.providerMappings.h[a];if(null!=e){if(e instanceof sn){c=e;d=d.get_parentInjector();continue}if(e instanceof tn&&d!=this){d=d.get_parentInjector();continue}return e}d=d.get_parentInjector()}return null!=c?c:b?this.getDefaultProvider(a,!0):null},getDefaultProvider:function(a,
b){return-1<Ie._baseTypes.indexOf(a)?null:null!=this.get_fallbackProvider()&&this.get_fallbackProvider().prepareNextRequest(a)?this.get_fallbackProvider():b&&this.get_blockParentFallbackProvider()&&null!=this.get_parentInjector()?this.get_parentInjector().getDefaultProvider(a,b):null},createMapping:function(a,b,c){if(this._mappingsInProcess.h[c])throw u.thrown(new Qd("Can't change a mapping from inside a listener to it's creation event"));this._mappingsInProcess.h[c]=!0;this.hasEventListener(Lc.PRE_MAPPING_CREATE)&&
this.dispatchEvent(new Lc(Lc.PRE_MAPPING_CREATE,a,b,null));var d=new $q(this,a,b,c);this._mappings.h[c]=d;var e=d.seal();this.hasEventListener(Lc.POST_MAPPING_CREATE)&&this.dispatchEvent(new Lc(Lc.POST_MAPPING_CREATE,a,b,d));a=this._mappingsInProcess;Object.prototype.hasOwnProperty.call(a.h,c)&&delete a.h[c];d.unseal(e);return d},applyInjectionPoints:function(a,b,c){var d=c.injectionPoints;for(this.hasEventListener(He.PRE_CONSTRUCT)&&this.dispatchEvent(new He(He.PRE_CONSTRUCT,a,b));null!=d;)d.applyInjection(a,
b,this),d=d.next;null!=c.preDestroyMethods&&(c=this._managedObjects,d=Kb.instanceID(a),c.h[d]=a);this.hasEventListener(He.POST_CONSTRUCT)&&this.dispatchEvent(new He(He.POST_CONSTRUCT,a,b))},__class__:Ie,__properties__:{set_blockParentFallbackProvider:"set_blockParentFallbackProvider",get_blockParentFallbackProvider:"get_blockParentFallbackProvider",set_fallbackProvider:"set_fallbackProvider",get_fallbackProvider:"get_fallbackProvider",set_applicationDomain:"set_applicationDomain",get_applicationDomain:"get_applicationDomain",
set_parentInjector:"set_parentInjector",get_parentInjector:"get_parentInjector"}});var vt=function(){};g["org.swiftsuspenders.InjectorMacro"]=vt;vt.__name__="org.swiftsuspenders.InjectorMacro";vt.prototype={__class__:vt};var fi=function(){};g["org.swiftsuspenders.dependencyproviders.DependencyProvider"]=fi;fi.__name__="org.swiftsuspenders.dependencyproviders.DependencyProvider";fi.__isInterface__=!0;fi.prototype={apply:null,destroy:null,__class__:fi};var un=function(a){this._responseType=a};g["org.swiftsuspenders.dependencyproviders.ClassProvider"]=
un;un.__name__="org.swiftsuspenders.dependencyproviders.ClassProvider";un.__interfaces__=[fi];un.prototype={_responseType:null,apply:function(a,b,c){return b.instantiateUnmapped(this._responseType)},destroy:function(){},__class__:un};var ar=function(){};g["org.swiftsuspenders.dependencyproviders.FallbackDependencyProvider"]=ar;ar.__name__="org.swiftsuspenders.dependencyproviders.FallbackDependencyProvider";ar.__isInterface__=!0;ar.__interfaces__=[fi];ar.prototype={prepareNextRequest:null,__class__:ar};
var Vg=function(a){this.provider=a};g["org.swiftsuspenders.dependencyproviders.ForwardingProvider"]=Vg;Vg.__name__="org.swiftsuspenders.dependencyproviders.ForwardingProvider";Vg.__interfaces__=[fi];Vg.prototype={provider:null,apply:function(a,b,c){return this.provider.apply(a,b,c)},destroy:function(){this.provider.destroy()},__class__:Vg};var br=function(a,b){this.provider=b;this.injector=a};g["org.swiftsuspenders.dependencyproviders.InjectorUsingProvider"]=br;br.__name__="org.swiftsuspenders.dependencyproviders.InjectorUsingProvider";
br.__super__=Vg;br.prototype=r(Vg.prototype,{injector:null,apply:function(a,b,c){return this.provider.apply(a,this.injector,c)},__class__:br});var tn=function(a){this.provider=a};g["org.swiftsuspenders.dependencyproviders.LocalOnlyProvider"]=tn;tn.__name__="org.swiftsuspenders.dependencyproviders.LocalOnlyProvider";tn.__super__=Vg;tn.prototype=r(Vg.prototype,{__class__:tn});var cr=function(a,b){this._responseType=a;this._creatingInjector=b};g["org.swiftsuspenders.dependencyproviders.SingletonProvider"]=
cr;cr.__name__="org.swiftsuspenders.dependencyproviders.SingletonProvider";cr.__interfaces__=[fi];cr.prototype={_responseType:null,_creatingInjector:null,_response:null,_destroyed:null,apply:function(a,b,c){null==this._response&&(this._response=this.createResponse(this._creatingInjector));return this._response},createResponse:function(a){if(this._destroyed)throw u.thrown(new Qd("Forbidden usage of unmapped singleton provider for type "+this._responseType.__name__));return a.instantiateUnmapped(this._responseType)},
destroy:function(){this._destroyed=!0;null!=this._response&&null!=this._creatingInjector&&this._creatingInjector.hasManagedInstance(this._response)&&this._creatingInjector.destroyInstance(this._response);this._response=this._creatingInjector=null},__class__:cr};var sn=function(a){this.provider=a};g["org.swiftsuspenders.dependencyproviders.SoftDependencyProvider"]=sn;sn.__name__="org.swiftsuspenders.dependencyproviders.SoftDependencyProvider";sn.__super__=Vg;sn.prototype=r(Vg.prototype,{__class__:sn});
var dr=function(a,b){this._value=a;this._creatingInjector=b};g["org.swiftsuspenders.dependencyproviders.ValueProvider"]=dr;dr.__name__="org.swiftsuspenders.dependencyproviders.ValueProvider";dr.__interfaces__=[fi];dr.prototype={_value:null,_creatingInjector:null,apply:function(a,b,c){return this._value},destroy:function(){null!=this._value&&null!=this._creatingInjector&&this._creatingInjector.hasManagedInstance(this._value)&&this._creatingInjector.destroyInstance(this._value);this._value=this._creatingInjector=
null},__class__:dr};var Qd=function(a,b){null==b&&(b=0);null==a&&(a="");Ub.trace(["Error: ",a,b],{fileName:"org/swiftsuspenders/errors/InjectorError.hx",lineNumber:13,className:"org.swiftsuspenders.errors.InjectorError",methodName:"new"})};g["org.swiftsuspenders.errors.InjectorError"]=Qd;Qd.__name__="org.swiftsuspenders.errors.InjectorError";Qd.prototype={__class__:Qd};var rn=function(a,b){null==b&&(b=0);null==a&&(a="");Qd.call(this,a,b)};g["org.swiftsuspenders.errors.InjectorInterfaceConstructionError"]=
rn;rn.__name__="org.swiftsuspenders.errors.InjectorInterfaceConstructionError";rn.__super__=Qd;rn.prototype=r(Qd.prototype,{__class__:rn});var Nj=function(a,b){null==b&&(b=0);null==a&&(a="");Qd.call(this,a,b)};g["org.swiftsuspenders.errors.InjectorMissingMappingError"]=Nj;Nj.__name__="org.swiftsuspenders.errors.InjectorMissingMappingError";Nj.__super__=Qd;Nj.prototype=r(Qd.prototype,{__class__:Nj});var er=function(){};g["org.swiftsuspenders.mapping.UnsealedMapping"]=er;er.__name__="org.swiftsuspenders.mapping.UnsealedMapping";
er.__isInterface__=!0;er.prototype={seal:null,__class__:er};var fr=function(){};g["org.swiftsuspenders.mapping.ProviderlessMapping"]=fr;fr.__name__="org.swiftsuspenders.mapping.ProviderlessMapping";fr.__isInterface__=!0;fr.prototype={toType:null,toValue:null,toSingleton:null,asSingleton:null,toProvider:null,seal:null,__class__:fr};var $q=function(a,b,c,d){this._creatingInjector=a;this._type=b;this._name=c;this._mappingId=d;this._defaultProviderSet=!0;this.mapProvider(new un(b))};g["org.swiftsuspenders.mapping.InjectionMapping"]=
$q;$q.__name__="org.swiftsuspenders.mapping.InjectionMapping";$q.__interfaces__=[er,fr];$q.prototype={_type:null,_name:null,_mappingId:null,_creatingInjector:null,_defaultProviderSet:null,_overridingInjector:null,_soft:null,_local:null,_sealed:null,_sealKey:null,asSingleton:function(a){null==a&&(a=!1);this.toSingleton(this._type,a);return this},toType:function(a){this.toProvider(new un(a));return this},toSingleton:function(a,b){null==b&&(b=!1);this.toProvider(new cr(a,this._creatingInjector));b&&
this._creatingInjector.getInstance(this._type,this._name);return this},toValue:function(a,b,c){null==c&&(c=!1);null==b&&(b=!1);this.toProvider(new dr(a,c?this._creatingInjector:null));b&&this._creatingInjector.injectInto(a);return this},toProvider:function(a){this._sealed&&this.throwSealedError();this.hasProvider()&&null!=a&&!this._defaultProviderSet&&this._creatingInjector.hasEventListener(Lc.MAPPING_OVERRIDE)&&this._creatingInjector.dispatchEvent(new Lc(Lc.MAPPING_OVERRIDE,this._type,this._name,
this));this.dispatchPreChangeEvent();this._defaultProviderSet=!1;this.mapProvider(a);this.dispatchPostChangeEvent();return this},toProviderOf:function(a,b){null==b&&(b="");a=this._creatingInjector.getMapping(a,b).getProvider();this.toProvider(a);return this},softly:function(){this._sealed&&this.throwSealedError();if(!this._soft){var a=this.getProvider();this.dispatchPreChangeEvent();this._soft=!0;this.mapProvider(a);this.dispatchPostChangeEvent()}return this},locally:function(){this._sealed&&this.throwSealedError();
if(this._local)return this;var a=this.getProvider();this.dispatchPreChangeEvent();this._local=!0;this.mapProvider(a);this.dispatchPostChangeEvent();return this},seal:function(){if(this._sealed)throw u.thrown(new Qd("Mapping is already sealed."));this._sealed=!0;return this._sealKey={}},unseal:function(a){if(!this._sealed)throw u.thrown(new Qd("Can't unseal a non-sealed mapping."));if(a!=this._sealKey)throw u.thrown(new Qd("Can't unseal mapping without the correct key."));this._sealed=!1;this._sealKey=
null;return this},isSealed:null,get_isSealed:function(){return this._sealed},hasProvider:function(){return null==this._creatingInjector.providerMappings.h[this._mappingId]?!1:!0},getProvider:function(){for(var a=this._creatingInjector.providerMappings.h[this._mappingId];a instanceof Vg;)a=N.__cast(a,Vg).provider;return a},setInjector:function(a){this._sealed&&this.throwSealedError();if(a==this._overridingInjector)return this;var b=this.getProvider();this._overridingInjector=a;this.mapProvider(b);
return this},mapProvider:function(a){this._soft&&(a=new sn(a));this._local&&(a=new tn(a));null!=this._overridingInjector&&(a=new br(this._overridingInjector,a));this._creatingInjector.providerMappings.h[this._mappingId]=a},throwSealedError:function(){throw u.thrown(new Qd("Can't change a sealed mapping"));},dispatchPreChangeEvent:function(){this._creatingInjector.hasEventListener(Lc.PRE_MAPPING_CHANGE)&&this._creatingInjector.dispatchEvent(new Lc(Lc.PRE_MAPPING_CHANGE,this._type,this._name,this))},
dispatchPostChangeEvent:function(){this._creatingInjector.hasEventListener(Lc.POST_MAPPING_CHANGE)&&this._creatingInjector.dispatchEvent(new Lc(Lc.POST_MAPPING_CHANGE,this._type,this._name,this))},__class__:$q,__properties__:{get_isSealed:"get_isSealed"}};var Lc=function(a,b,c,d){W.call(this,a);this.mappedType=b;this.mappedName=c;this.mapping=d};g["org.swiftsuspenders.mapping.MappingEvent"]=Lc;Lc.__name__="org.swiftsuspenders.mapping.MappingEvent";Lc.__super__=W;Lc.prototype=r(W.prototype,{mappedType:null,
mappedName:null,mapping:null,clone:function(){return new Lc(this.type,this.mappedType,this.mappedName,this.mapping)},__class__:Lc});var vn=function(){};g["org.swiftsuspenders.reflection.Reflector"]=vn;vn.__name__="org.swiftsuspenders.reflection.Reflector";vn.__isInterface__=!0;vn.prototype={getClass:null,getFQCN:null,typeImplements:null,describeInjections:null,__class__:vn};var Ze=function(){Ze.addToWhitelist("flash.events.EventDispatcher");Ze.addToWhitelist("openfl.events.EventDispatcher");Ze.addToWhitelist("msignal.Signal0")};
g["org.swiftsuspenders.reflection.DescribeTypeRTTIReflector"]=Ze;Ze.__name__="org.swiftsuspenders.reflection.DescribeTypeRTTIReflector";Ze.__interfaces__=[vn];Ze.addToWhitelist=function(a){Ze.whitelist.h[a]=!0};Ze.removeFromWhitelist=function(a){Ze.whitelist.h[a]=!1};Ze.prototype={_currentFactoryXML:null,_currentFactoryXMLFast:null,constructorElem:null,rtti:null,extendPath:null,extendDescribeTypeReflector:null,extendTypeDescription:null,getClass:function(a){return a instanceof z?z:a instanceof Array?
Array:a.__class__},getFQCN:function(a,b){null==b&&(b=!1);if("string"==typeof a){if(!b&&-1==a.indexOf("::"))return b=a.lastIndexOf("."),-1==b?a:a.substring(0,b)+"::"+a.substring(b+1)}else a=a.__name__;return 1==b?a.split("::").join("."):a},typeImplements:function(a,b){return this.classExtendsOrImplements(a,b)},classExtendsOrImplements:function(a,b){var c=null;if(N.__instanceof(a,Gd))c=N.__cast(a,Gd);else if("string"==typeof a)try{var d=N.__cast(a,String);c=g[d]}catch(e){throw wa.lastError=e,b=u.caught(e).unwrap(),
u.thrown("The class name "+B.string(a)+" is not valid because of "+B.string(b)+"\n"+B.string(b.getStackTrace()));}if(null==c)throw u.thrown("The parameter classOrClassName must be a Class or fully qualified class name.");a=Object.create(c.prototype);return N.__instanceof(a,b)},describeInjections:function(a){if(null==a)return null;null==this.extendDescribeTypeReflector&&(this.extendDescribeTypeReflector=new Ze);this.rtti=a.__rtti;null==this.rtti&&(this.isInterface(a),this.inWhitelist(a));if(null!=
this.rtti){var b=this._currentFactoryXML=z.parse(this.rtti).firstElement();if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==b.nodeType?"null":V.toString(b.nodeType)));this._currentFactoryXMLFast=b;for(b=this._currentFactoryXMLFast.elements();b.hasNext();){var c=b.next();if(c.nodeType==z.Document)var d="Document";else{if(c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));d=c.nodeName}"new"==
d&&(this.constructorElem=c);if(c.nodeType==z.Document)d="Document";else{if(c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));d=c.nodeName}"extends"==d&&(this.extendPath=ba.resolve(c,"path"),this.extendTypeDescription=this.extendDescribeTypeReflector.describeInjections(g[this.extendPath]))}}b=new Oa(!1);this.addCtorInjectionPoint(b,a);this.addFieldInjectionPoints(b,a);this.addMethodInjectionPoints(b,a);this.addPostConstructMethodPoints(b,
a);this.addPreDestroyMethodPoints(b,a);this.extendTypeDescription=this.extendPath=this.rtti=this.constructorElem=this._currentFactoryXMLFast=this._currentFactoryXML=null;return b},inWhitelist:function(a){return Object.prototype.hasOwnProperty.call(Ze.whitelist.h,a.__name__)},isInterface:function(a){a=a.__name__.split(".");var b=a[a.length-1];if(1>=b.length)return!1;a=new fa("(I)([A-Z])","");b=G.substr(b,0,2);return a.match(b)?!0:!1},addCtorInjectionPoint:function(a,b){if(null==this.constructorElem)a.ctor=
new Qm;else{b=ba.resolve(aa.resolve(this.constructorElem,"f"),"a").split(":");for(var c=this.parametersFromXml(this.constructorElem),d=0,e=0,f=b.length;e<f;){var h=e++;0!=b[h].indexOf("?")&&++d}a.ctor=new Wi(c,d,null)}},parametersFromXml:function(a){var b=[],c=a.firstElement();if(c.nodeType!=z.Document&&c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));a=0;for(c=c.children;a<c.length;){var d=c[a++];if(d.nodeType==
z.Element){if(d.nodeType!=z.Document&&d.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==d.nodeType?"null":V.toString(d.nodeType)));b.push(ba.resolve(d,"path")+"|")}}b.pop();return b},addFieldInjectionPoints:function(a,b){var c=Hm.getFields(b),d=J.fields(c);null!=this.extendTypeDescription&&(a.injectionPoints=this.extendTypeDescription.injectionPoints);for(var e=0,f=d.length;e<f;){var h=e++;h=d[h];var l=c[h],m="";if(Object.prototype.hasOwnProperty.call(l,"inject")){var g=!1,k;l=l.inject;
if(null!=l)for(var n=0,q=l.length;n<q;){var p=n++;var v=l[p];p=k=null;null!=v&&(v=v.split("="),p=v[0],1<v.length&&(k=v[1]));"optional"==p&&(g="true"==k.toLowerCase());"name"==p&&(m=k)}m=this.getMappingId(h,b)+"|"+m;l=new da;a.addInjectionPoint(new Rm(m,h,g,l))}}},getMappingId:function(a,b){if(null==this._currentFactoryXMLFast)return Ub.trace("metadata missing for "+b.__name__+"\nClasses with injectables must implement DescribedType",{fileName:"org/swiftsuspenders/reflection/DescribeTypeRTTIReflector.hx",
lineNumber:318,className:"org.swiftsuspenders.reflection.DescribeTypeRTTIReflector",methodName:"getMappingId"}),a;b="";for(var c=this._currentFactoryXMLFast.elements();c.hasNext();){var d=c.next();if(d.nodeType==z.Document)var e="Document";else{if(d.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==d.nodeType?"null":V.toString(d.nodeType)));e=d.nodeName}if(e==a){a=d.firstElement();if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+
(null==a.nodeType?"null":V.toString(a.nodeType)));ja.resolve(a,"path")&&(b=ba.resolve(a,"path"));break}}return b},addMethodInjectionPoints:function(a,b){},addPostConstructMethodPoints:function(a,b){b=this.gatherOrderedInjectionPointsForTag(Sm,"PostConstruct",b);for(var c=0,d=b.length;c<d;){var e=c++;a.addInjectionPoint(b[e])}},addPreDestroyMethodPoints:function(a,b){b=this.gatherOrderedInjectionPointsForTag(Vk,"PreDestroy",b);if(0!=b.length){a.preDestroyMethods=b[0];a.preDestroyMethods.last=b[0];
for(var c=0,d=b.length;c<d;){var e=c++;a.preDestroyMethods.last.next=b[e];a.preDestroyMethods.last=b[e]}}},gatherOrderedInjectionPointsForTag:function(a,b,c){var d=[];c=Hm.getFields(c);for(var e=J.fields(c),f=[],h=0;h<e.length;){var l=e[h];++h;var m=J.getProperty(c,l);if(J.fields(m)[0].toLowerCase()==b.toLowerCase()){f.push(l);var g=this._currentFactoryXML;if(g.nodeType!=z.Document&&g.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==g.nodeType?"null":
V.toString(g.nodeType)));m=0;for(g=g.children;m<g.length;){var k=g[m++];if(k.nodeType==z.Element){if(k.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==k.nodeType?"null":V.toString(k.nodeType)));if(k.nodeName==l){if(k.nodeType!=z.Document&&k.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==k.nodeType?"null":V.toString(k.nodeType)));for(var n=ba.resolve(aa.resolve(k,"f"),"a").split(":"),q=0,p=0,v=n.length;p<v;){var r=p++;0!=n[r].indexOf("?")&&++q}--q;
n=this.parametersFromXml(k);if(k.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==k.nodeType?"null":V.toString(k.nodeType)));k=wb.createInstance(a,[k.nodeName,n,q,1073741823]);d.push(k)}}}}}return d},__class__:Ze};var Zq=function(a){this.fallbackReflector=a};g["org.swiftsuspenders.reflection.MacroTypeReflector"]=Zq;Zq.__name__="org.swiftsuspenders.reflection.MacroTypeReflector";Zq.__interfaces__=[vn];Zq.prototype={fallbackReflector:null,describeInjections:function(a){var b=
J.field(a,"__TYPE_DESC");if(null==b){if(null!=this.fallbackReflector)return this.fallbackReflector.describeInjections(a);throw u.thrown("Couldn't find type description on class: "+a.__name__+"\n\tMake sure class implements DescribedType");}return b},getClass:function(a){return N.getClass(a)},getFQCN:function(a,b){null==b&&(b=!1);if("string"==typeof a){if(!b&&-1==a.indexOf("::"))return b=a.lastIndexOf("."),-1==b?a:a.substring(0,b)+"::"+a.substring(b+1)}else a=a.__name__;return 1==b?a.split("::").join("."):
a},typeImplements:function(a,b){return this.classExtendsOrImplements(a,b)},classExtendsOrImplements:function(a,b){var c=null;if(N.__instanceof(a,Gd))c=N.__cast(a,Gd);else if("string"==typeof a)try{var d=N.__cast(a,String);c=g[d]}catch(e){throw wa.lastError=e,b=u.caught(e).unwrap(),u.thrown("The class name "+B.string(a)+" is not valid because of "+B.string(b)+"\n"+B.string(b.getStackTrace()));}if(null==c)throw u.thrown("The parameter classOrClassName must be a Class or fully qualified class name.");
a=Object.create(c.prototype);return N.__instanceof(a,b)},__class__:Zq};var gi=function(a,b,c,d){nh.call(this,a,b,c,!1,null);this.order=d};g["org.swiftsuspenders.typedescriptions.OrderedInjectionPoint"]=gi;gi.__name__="org.swiftsuspenders.typedescriptions.OrderedInjectionPoint";gi.__super__=nh;gi.prototype=r(nh.prototype,{order:null,__class__:gi});var Sm=function(a,b,c,d){gi.call(this,a,b,c,d)};g["org.swiftsuspenders.typedescriptions.PostConstructInjectionPoint"]=Sm;Sm.__name__="org.swiftsuspenders.typedescriptions.PostConstructInjectionPoint";
Sm.__super__=gi;Sm.prototype=r(gi.prototype,{__class__:Sm});var Vk=function(a,b,c,d){gi.call(this,a,b,c,d)};g["org.swiftsuspenders.typedescriptions.PreDestroyInjectionPoint"]=Vk;Vk.__name__="org.swiftsuspenders.typedescriptions.PreDestroyInjectionPoint";Vk.__super__=gi;Vk.prototype=r(gi.prototype,{__class__:Vk});var Rm=function(a,b,c,d){this._propertyName=b;this._mappingId=a;this._optional=c;this.injectParameters=d};g["org.swiftsuspenders.typedescriptions.PropertyInjectionPoint"]=Rm;Rm.__name__="org.swiftsuspenders.typedescriptions.PropertyInjectionPoint";
Rm.__super__=Wk;Rm.prototype=r(Wk.prototype,{_propertyName:null,_mappingId:null,_optional:null,applyInjection:function(a,b,c){var d=c.getProvider(this._mappingId);if(null==d){if(this._optional)return;a=N.getClass(a).__name__;throw u.thrown(new Nj('Injector is missing a mapping to handle injection into property "'+this._propertyName+'" of object "'+a+'" with type "'+b.__name__+'". Target dependency: "'+this._mappingId+'"'));}J.setProperty(a,this._propertyName,d.apply(b,c,this.injectParameters))},__class__:Rm});
var wg=function(){};g["org.swiftsuspenders.utils.CallProxy"]=wg;wg.__name__="org.swiftsuspenders.utils.CallProxy";wg.hasField=function(a,b){var c=N.__instanceof(a,Gd)?wb.getInstanceFields(a):J.fields(a);for(var d=0,e=c.length;d<e;){var f=d++;if(c[f]==b)return!0}return"undefined"!==typeof J.getProperty(a,b)?!0:!1};wg.prototype={__class__:wg};var ut=function(a,b){this._descriptionsCache=b;this._reflector=a};g["org.swiftsuspenders.utils.TypeDescriptor"]=ut;ut.__name__="org.swiftsuspenders.utils.TypeDescriptor";
ut.prototype={_descriptionsCache:null,_reflector:null,getDescription:function(a){var b=Kb.classID(a);if(null==this._descriptionsCache.h[b]){var c=this._descriptionsCache;a=this._reflector.describeInjections(a);c.h[b]=a}return this._descriptionsCache.h[b]},addDescription:function(a,b){var c=this._descriptionsCache;a=Kb.classID(a);c.h[a]=b},__class__:ut};var Kb=function(){};g["org.swiftsuspenders.utils.UID"]=Kb;Kb.__name__="org.swiftsuspenders.utils.UID";Kb.create=function(a){var b=Kb.classID(a),c=
Math.floor(255*Math.random()),d="";null!=a&&(d=b);return d+"-"+c};Kb.classID=function(a){var b="";N.__instanceof(a,Gd)?b=a.__name__:null!=N.getClass(a)&&(b=N.getClass(a).__name__);return b};Kb.instanceID=function(a){null==Kb.classRefs.h.__keys__[a.__id__]&&Kb.classRefs.set(a,"id"+Kb.count++);return Kb.classRefs.h[a.__id__]};Kb.clearInstanceID=function(a){var b=Kb.classRefs.h[a.__id__];return null!=b?(Kb.classRefs.remove(a),b):""};var gr=function(){};g["robotlegs.bender.extensions.commandCenter.api.ICommand"]=
gr;gr.__name__="robotlegs.bender.extensions.commandCenter.api.ICommand";gr.__isInterface__=!0;gr.prototype={execute:null,__class__:gr};var nf=function(){};g["robotlegs.bender.bundles.mvcs.Command"]=nf;nf.__name__="robotlegs.bender.bundles.mvcs.Command";nf.__interfaces__=[gr,$d];nf.prototype={execute:function(){},__class__:nf};var hr=function(){};g["robotlegs.bender.extensions.mediatorMap.api.IMediator"]=hr;hr.__name__="robotlegs.bender.extensions.mediatorMap.api.IMediator";hr.__isInterface__=!0;hr.prototype=
{initialize:null,destroy:null,__class__:hr};var Va=function(){};g["robotlegs.bender.extensions.localEventMap.api.IEventMap"]=Va;Va.__name__="robotlegs.bender.extensions.localEventMap.api.IEventMap";Va.__isInterface__=!0;Va.prototype={mapListener:null,unmapListener:null,unmapListeners:null,suspend:null,resume:null,__class__:Va};var Da=function(){};g["robotlegs.bender.bundles.mvcs.Mediator"]=Da;Da.__name__="robotlegs.bender.bundles.mvcs.Mediator";Da.__interfaces__=[hr,$d];Da.prototype={eventMap:null,
eventDispatcher:null,viewComponent:null,initialize:function(){},destroy:function(){},postDestroy:function(){this.eventMap.unmapListeners()},addViewListener:function(a,b,c){this.eventMap.mapListener(N.__cast(this.viewComponent,Y),a,b,c)},addContextListener:function(a,b,c){this.eventMap.mapListener(this.eventDispatcher,a,b,c)},removeViewListener:function(a,b,c){this.eventMap.unmapListener(N.__cast(this.viewComponent,Y),a,b,c)},removeContextListener:function(a,b,c){this.eventMap.unmapListener(this.eventDispatcher,
a,b,c)},dispatch:function(a){this.eventDispatcher.hasEventListener(a.type)&&this.eventDispatcher.dispatchEvent(a)},__class__:Da};var ir=function(a,b){this.values=a;this.classes=b};g["robotlegs.bender.extensions.commandCenter.api.CommandPayload"]=ir;ir.__name__="robotlegs.bender.extensions.commandCenter.api.CommandPayload";ir.prototype={values:null,get_values:function(){return this.values},classes:null,get_classes:function(){return this.classes},length:null,get_length:function(){return null!=this.get_classes()?
this.get_classes().length:0},addPayload:function(a,b){null!=this.get_values()?this.get_values().push(a):this.values=[a];null!=this.get_classes()?this.get_classes().push(b):this.classes=[b];return this},hasPayload:function(){return 0<this.get_values().length},payloadInjectable:function(){return null!=this.get_values()&&null!=this.get_classes()?0<this.get_values().length&&this.get_classes().length==this.get_values().length?!0:!1:!1},__class__:ir,__properties__:{get_length:"get_length",get_classes:"get_classes",
get_values:"get_values"}};var jr=function(){};g["robotlegs.bender.extensions.commandCenter.api.ICommandExecutor"]=jr;jr.__name__="robotlegs.bender.extensions.commandCenter.api.ICommandExecutor";jr.__isInterface__=!0;jr.prototype={executeCommand:null,executeCommands:null,__class__:jr};var kr=function(){};g["robotlegs.bender.extensions.commandCenter.api.ICommandMapping"]=kr;kr.__name__="robotlegs.bender.extensions.commandCenter.api.ICommandMapping";kr.__isInterface__=!0;kr.prototype={get_commandClass:null,
get_executeMethod:null,get_guards:null,get_hooks:null,get_fireOnce:null,get_payloadInjectionEnabled:null,commandClass:null,executeMethod:null,guards:null,hooks:null,fireOnce:null,payloadInjectionEnabled:null,setExecuteMethod:null,addGuards:null,addHooks:null,setFireOnce:null,setPayloadInjectionEnabled:null,__class__:kr,__properties__:{get_payloadInjectionEnabled:"get_payloadInjectionEnabled",get_fireOnce:"get_fireOnce",get_hooks:"get_hooks",get_guards:"get_guards",get_executeMethod:"get_executeMethod",
get_commandClass:"get_commandClass"}};var lr=function(){};g["robotlegs.bender.extensions.commandCenter.api.ICommandMappingList"]=lr;lr.__name__="robotlegs.bender.extensions.commandCenter.api.ICommandMappingList";lr.__isInterface__=!0;lr.prototype={withSortFunction:null,getList:null,addMapping:null,removeMapping:null,removeMappingFor:null,removeAllMappings:null,__class__:lr};var pl=function(){};g["robotlegs.bender.extensions.commandCenter.api.ICommandTrigger"]=pl;pl.__name__="robotlegs.bender.extensions.commandCenter.api.ICommandTrigger";
pl.__isInterface__=!0;pl.prototype={activate:null,deactivate:null,__class__:pl};var mr=function(){};g["robotlegs.bender.extensions.commandCenter.dsl.ICommandConfigurator"]=mr;mr.__name__="robotlegs.bender.extensions.commandCenter.dsl.ICommandConfigurator";mr.__isInterface__=!0;mr.prototype={withExecuteMethod:null,withGuards:null,withHooks:null,once:null,withPayloadInjection:null,__class__:mr};var nr=function(){};g["robotlegs.bender.extensions.commandCenter.dsl.ICommandMapper"]=nr;nr.__name__="robotlegs.bender.extensions.commandCenter.dsl.ICommandMapper";
nr.__isInterface__=!0;nr.prototype={toCommand:null,__class__:nr};var or=function(){};g["robotlegs.bender.extensions.commandCenter.dsl.ICommandUnmapper"]=or;or.__name__="robotlegs.bender.extensions.commandCenter.dsl.ICommandUnmapper";or.__isInterface__=!0;or.prototype={fromCommand:null,fromAll:null,__class__:or};var ql=function(a,b,c){this._injector=a.createChild();this._removeMapping=b;this._handleResult=c};g["robotlegs.bender.extensions.commandCenter.impl.CommandExecutor"]=ql;ql.__name__="robotlegs.bender.extensions.commandCenter.impl.CommandExecutor";
ql.__interfaces__=[jr];ql.prototype={_injector:null,_removeMapping:null,_handleResult:null,executeCommands:function(a,b){for(var c=0,d=a.length;c<d;){var e=c++;this.executeCommand(a[e],b)}},executeCommand:function(a,b){var c=null!=b&&b.hasPayload(),d=b.payloadInjectable()&&a.get_payloadInjectionEnabled(),e=null;d&&this.mapPayload(b);if(0==a.get_guards().length||pr.call(a.get_guards(),this._injector)){var f=a.get_commandClass();a.get_fireOnce()&&null!=this._removeMapping&&this._removeMapping(a);e=
this._injector.getOrCreateNewInstance(f);0<a.get_hooks().length&&(this._injector.map(f).toValue(e),qr.call(a.get_hooks(),this._injector),this._injector.unmap(f))}d&&this.unmapPayload(b);null!=e&&null!=a.get_executeMethod()&&(d=J.getProperty(e,a.get_executeMethod()),b=c&&0<d.length?d.apply(e,b.get_values()):d.apply(e,[]),null!=this._handleResult&&this._handleResult(b,e,a))},mapPayload:function(a){for(var b=a.get_length();za.gt(b--,0);)this._injector.map(a.get_classes()[b]).toValue(a.get_values()[b])},
unmapPayload:function(a){for(var b=a.get_length();za.gt(b--,0);)this._injector.unmap(a.get_classes()[b])},__class__:ql};var wn=function(a){this._mappings=a};g["robotlegs.bender.extensions.commandCenter.impl.CommandMapper"]=wn;wn.__name__="robotlegs.bender.extensions.commandCenter.impl.CommandMapper";wn.__interfaces__=[mr,or,nr];wn.prototype={_mappings:null,_mapping:null,toCommand:function(a){this._mapping=new xn(a);this._mappings.addMapping(this._mapping);return this},fromCommand:function(a){this._mappings.removeMappingFor(a)},
fromAll:function(){this._mappings.removeAllMappings()},once:function(a){null==a&&(a=!0);this._mapping.setFireOnce(a);return this},withGuards:function(a,b){this._mapping.addGuards(a,b);return this},withHooks:function(a,b){this._mapping.addHooks(a,b);return this},withExecuteMethod:function(a){this._mapping.setExecuteMethod(a);return this},withPayloadInjection:function(a){null==a&&(a=!0);this._mapping.setPayloadInjectionEnabled(a);return this},__class__:wn};var xn=function(a){this._payloadInjectionEnabled=
!0;this._fireOnce=!1;this._hooks=[];this._guards=[];this._executeMethod="execute";this._commandClass=a};g["robotlegs.bender.extensions.commandCenter.impl.CommandMapping"]=xn;xn.__name__="robotlegs.bender.extensions.commandCenter.impl.CommandMapping";xn.__interfaces__=[kr];xn.prototype={_commandClass:null,commandClass:null,get_commandClass:function(){return this._commandClass},_executeMethod:null,executeMethod:null,get_executeMethod:function(){return this._executeMethod},_guards:null,guards:null,get_guards:function(){return this._guards},
_hooks:null,hooks:null,get_hooks:function(){return this._hooks},_fireOnce:null,fireOnce:null,get_fireOnce:function(){return this._fireOnce},_payloadInjectionEnabled:null,payloadInjectionEnabled:null,get_payloadInjectionEnabled:function(){return this._payloadInjectionEnabled},setExecuteMethod:function(a){this._executeMethod=a;return this},addGuards:function(a,b){if(null!=a)for(var c=0,d=a.length;c<d;){var e=c++;this._guards.push(a[e])}null!=b&&this._guards.push(b);return this},addHooks:function(a,
b){if(null!=a)for(var c=0,d=a.length;c<d;){var e=c++;this._hooks.push(a[e])}null!=b&&this._hooks.push(b);return this},setFireOnce:function(a){this._fireOnce=a;return this},setPayloadInjectionEnabled:function(a){this._payloadInjectionEnabled=a;return this},toString:function(){return"Command "+B.string(this._commandClass)},__class__:xn,__properties__:{get_payloadInjectionEnabled:"get_payloadInjectionEnabled",get_fireOnce:"get_fireOnce",get_hooks:"get_hooks",get_guards:"get_guards",get_executeMethod:"get_executeMethod",
get_commandClass:"get_commandClass"}};var rl=function(a,b,c){this._sorted=!1;this._mappings=[];this._mappingsByCommand=new da;this._trigger=a;this._processors=b;this._logger=c};g["robotlegs.bender.extensions.commandCenter.impl.CommandMappingList"]=rl;rl.__name__="robotlegs.bender.extensions.commandCenter.impl.CommandMappingList";rl.__interfaces__=[lr];rl.prototype={_mappingsByCommand:null,_mappings:null,_trigger:null,_processors:null,_logger:null,_compareFunction:null,_sorted:null,getList:function(){this._sorted||
this.sortMappings();return this._mappings.concat([])},withSortFunction:function(a){this._sorted=!1;this._compareFunction=a;return this},addMapping:function(a){this._sorted=!1;this.applyProcessors(a);var b=this._mappingsByCommand,c=Kb.instanceID(a.get_commandClass());b=b.h[c];null!=b?this.overwriteMapping(b,a):(this.storeMapping(a),1==this._mappings.length&&this._trigger.activate())},removeMapping:function(a){var b=this._mappingsByCommand,c=Kb.clearInstanceID(a.get_commandClass());b.h[c]&&(this.deleteMapping(a),
0==this._mappings.length&&this._trigger.deactivate())},removeMappingFor:function(a){var b=this._mappingsByCommand;a=Kb.instanceID(a);b=b.h[a];null!=b&&this.removeMapping(b)},removeAllMappings:function(){if(0<this._mappings.length){for(var a=this._mappings.concat([]),b=a.length;0<b--;)this.deleteMapping(a[b]);this._trigger.deactivate()}},storeMapping:function(a){var b=this._mappingsByCommand,c=Kb.instanceID(a.get_commandClass());b.h[c]=a;this._mappings.push(a);null!=this._logger&&this._logger.debug("{0} mapped to {1}",
[this._trigger,a])},deleteMapping:function(a){var b=this._mappingsByCommand,c=Kb.clearInstanceID(a.get_commandClass());Object.prototype.hasOwnProperty.call(b.h,c)&&delete b.h[c];this._mappings.splice(this._mappings.indexOf(a),1);null!=this._logger&&this._logger.debug("{0} unmapped from {1}",[this._trigger,a])},overwriteMapping:function(a,b){null!=this._logger&&this._logger.warn('{0} already mapped to {1}\nIf you have overridden this mapping intentionally you can use "unmap()" prior to your replacement mapping in order to avoid seeing this message.\n',
[this._trigger,a]);this.deleteMapping(a);this.storeMapping(b)},sortMappings:function(){this._sorted=!0},applyProcessors:function(a){for(var b=0,c=this._processors;b<c.length;){var d=c[b];++b;d(a)}},__class__:rl};var rr=function(a,b){this._triggers=new da;this._keyFactory=a;this._triggerFactory=b};g["robotlegs.bender.extensions.commandCenter.impl.CommandTriggerMap"]=rr;rr.__name__="robotlegs.bender.extensions.commandCenter.impl.CommandTriggerMap";rr.prototype={_triggers:null,_keyFactory:null,_triggerFactory:null,
getTrigger:function(a){var b=this.getKey(a);"string"==typeof b==0&&(b=Kb.instanceID(b));if(null==this._triggers.h[b]){var c=this._triggers;a=this.createTrigger(a);c.h[b]=a}return this._triggers.h[b]},removeTrigger:function(a){return this.destroyTrigger(this.getKey(a))},getKey:function(a){return this._keyFactory.apply(null,a)},createTrigger:function(a){return this._triggerFactory.apply(null,a)},destroyTrigger:function(a){a=Kb.clearInstanceID(a);var b=this._triggers.h[a];if(null!=b){b.deactivate();
var c=this._triggers;Object.prototype.hasOwnProperty.call(c.h,a)&&delete c.h[a]}return b},__class__:rr};var sr=function(){};g["robotlegs.bender.extensions.commandCenter.impl.NullCommandTrigger"]=sr;sr.__name__="robotlegs.bender.extensions.commandCenter.impl.NullCommandTrigger";sr.__interfaces__=[pl];sr.prototype={activate:function(){},deactivate:function(){},__class__:sr};var sl=function(){};g["robotlegs.bender.framework.api.IConfig"]=sl;sl.__name__="robotlegs.bender.framework.api.IConfig";sl.__isInterface__=
!0;sl.prototype={configure:null,__class__:sl};var wf=function(a){this.view=a};g["robotlegs.bender.extensions.contextView.ContextView"]=wf;wf.__name__="robotlegs.bender.extensions.contextView.ContextView";wf.__interfaces__=[sl];wf.prototype={view:null,configure:function(){},__class__:wf};var be=function(){};g["robotlegs.bender.framework.api.IExtension"]=be;be.__name__="robotlegs.bender.framework.api.IExtension";be.__isInterface__=!0;be.prototype={extend:null,__class__:be};var no=function(){};g["robotlegs.bender.extensions.contextView.ContextViewExtension"]=
no;no.__name__="robotlegs.bender.extensions.contextView.ContextViewExtension";no.__interfaces__=[be];no.prototype={_injector:null,_logger:null,extend:function(a){this._injector=a.get_injector();this._logger=a.getLogger(this);a.beforeInitializing(k(this,this.beforeInitializing));a.addConfigHandler(wt.call(wf),k(this,this.handleContextView))},handleContextView:function(a){this._injector.hasDirectMapping(wf)?this._logger.warn("A contextView has already been installed, ignoring {0}",[a.view]):(this._logger.debug("Mapping {0} as contextView",
[a.view]),this._injector.map(wf).toValue(a))},beforeInitializing:function(){this._injector.hasDirectMapping(wf)||this._logger.error("A ContextView must be installed if you install the ContextViewExtension.")},__class__:no};var ce=function(){};g["robotlegs.bender.extensions.viewManager.api.IViewManager"]=ce;ce.__name__="robotlegs.bender.extensions.viewManager.api.IViewManager";ce.__isInterface__=!0;ce.__interfaces__=[Y];ce.prototype={get_containers:null,containers:null,addContainer:null,removeContainer:null,
addViewHandler:null,removeViewHandler:null,removeAllHandlers:null,__class__:ce,__properties__:{get_containers:"get_containers"}};var Gh=function(){};g["robotlegs.bender.extensions.contextView.ContextViewListenerConfig"]=Gh;Gh.__name__="robotlegs.bender.extensions.contextView.ContextViewListenerConfig";Gh.__interfaces__=[sl,$d];Gh.prototype={contextView:null,viewManager:null,configure:function(){this.viewManager.addContainer(this.contextView.view)},__class__:Gh};var vo=function(){};g["robotlegs.bender.extensions.contextView.StageSyncExtension"]=
vo;vo.__name__="robotlegs.bender.extensions.contextView.StageSyncExtension";vo.__interfaces__=[be];vo.prototype={_context:null,_contextView:null,_logger:null,extend:function(a){this._context=a;this._logger=a.getLogger(this);this._context.addConfigHandler(wt.call(wf),k(this,this.handleContextView))},handleContextView:function(a){null!=this._contextView?this._logger.warn("A contextView has already been installed, ignoring {0}",[a.view]):(this._contextView=a.view,null!=this._contextView.stage?this.initializeContext():
(this._logger.debug("Context view is not yet on stage. Waiting..."),this._contextView.addEventListener("addedToStage",k(this,this.onAddedToStage))))},onAddedToStage:function(a){this._contextView.removeEventListener("addedToStage",k(this,this.onAddedToStage));this.initializeContext()},initializeContext:function(){this._logger.debug("Context view is now on stage. Initializing context...");this._context.initialize();this._contextView.addEventListener("removedFromStage",k(this,this.onRemovedFromStage))},
onRemovedFromStage:function(a){this._logger.debug("Context view has left the stage. Destroying context...");this._contextView.removeEventListener("removedFromStage",k(this,this.onRemovedFromStage));this._context.destroy()},__class__:vo};var po=function(){};g["robotlegs.bender.extensions.directCommandMap.DirectCommandMapExtension"]=po;po.__name__="robotlegs.bender.extensions.directCommandMap.DirectCommandMapExtension";po.__interfaces__=[be];po.prototype={extend:function(a){a.get_injector().map(dk).toType(tr)},
__class__:po};var yn=function(){};g["robotlegs.bender.extensions.directCommandMap.api.IDirectCommandMapper"]=yn;yn.__name__="robotlegs.bender.extensions.directCommandMap.api.IDirectCommandMapper";yn.__isInterface__=!0;yn.prototype={map:null,execute:null,__class__:yn};var dk=function(){};g["robotlegs.bender.extensions.directCommandMap.api.IDirectCommandMap"]=dk;dk.__name__="robotlegs.bender.extensions.directCommandMap.api.IDirectCommandMap";dk.__isInterface__=!0;dk.__interfaces__=[yn];dk.prototype=
{detain:null,release:null,addMappingProcessor:null,__class__:dk};var zn=function(){};g["robotlegs.bender.extensions.directCommandMap.dsl.IDirectCommandConfigurator"]=zn;zn.__name__="robotlegs.bender.extensions.directCommandMap.dsl.IDirectCommandConfigurator";zn.__isInterface__=!0;zn.__interfaces__=[yn];zn.prototype={withExecuteMethod:null,withGuards:null,withHooks:null,withPayloadInjection:null,__class__:zn};var tr=function(a){this._mappingProcessors=[];this._context=a;var b=a.get_injector().createChild();
b.map(dk).toValue(this);this._mappings=new rl(new sr,this._mappingProcessors,a.getLogger(this));this._executor=new ql(b,(x=this._mappings,k(x,x.removeMapping)))};g["robotlegs.bender.extensions.directCommandMap.impl.DirectCommandMap"]=tr;tr.__name__="robotlegs.bender.extensions.directCommandMap.impl.DirectCommandMap";tr.__interfaces__=[dk];tr.prototype={_mappingProcessors:null,_context:null,_executor:null,_mappings:null,map:function(a){return new An(this._executor,this._mappings,a)},detain:function(a){this._context.detain(a)},
release:function(a){this._context.release(a)},execute:function(a){this._executor.executeCommands(this._mappings.getList(),a)},addMappingProcessor:function(a){-1==this._mappingProcessors.indexOf(a)&&this._mappingProcessors.push(a);return this},__class__:tr};var An=function(a,b,c){this._executor=a;this._mappings=b;this._mapping=new xn(c);this._mapping.setFireOnce(!0);this._mappings.addMapping(this._mapping)};g["robotlegs.bender.extensions.directCommandMap.impl.DirectCommandMapper"]=An;An.__name__="robotlegs.bender.extensions.directCommandMap.impl.DirectCommandMapper";
An.__interfaces__=[zn];An.prototype={_mappings:null,_mapping:null,_executor:null,withExecuteMethod:function(a){this._mapping.setExecuteMethod(a);return this},withGuards:function(a,b){this._mapping.addGuards(a,b);return this},withHooks:function(a,b){this._mapping.addHooks(a,b);return this},withPayloadInjection:function(a){null==a&&(a=!0);this._mapping.setPayloadInjectionEnabled(a);return this},execute:function(a){this._executor.executeCommands(this._mappings.getList(),a)},map:function(a){return new An(this._executor,
this._mappings,a)},__class__:An};var mo=function(){};g["robotlegs.bender.extensions.enhancedLogging.InjectableLoggerExtension"]=mo;mo.__name__="robotlegs.bender.extensions.enhancedLogging.InjectableLoggerExtension";mo.__interfaces__=[be];mo.prototype={extend:function(a){a.get_injector().map(Bn).toProvider(new ur(a))},__class__:mo};var ko=function(){};g["robotlegs.bender.extensions.enhancedLogging.TraceLoggingExtension"]=ko;ko.__name__="robotlegs.bender.extensions.enhancedLogging.TraceLoggingExtension";
ko.__interfaces__=[be];ko.prototype={extend:function(a){a.addLogTarget(new vr(a))},__class__:ko};var wr=function(){};g["robotlegs.bender.extensions.enhancedLogging.impl.LogMessageParser"]=wr;wr.__name__="robotlegs.bender.extensions.enhancedLogging.impl.LogMessageParser";wr.prototype={parseMessage:function(a,b){if(null!=b)for(var c=0,d=b.length;c<d;){var e=c++;a=a.split("{"+e+"}").join(b[e])}return a},__class__:wr};var ur=function(a){this._context=a};g["robotlegs.bender.extensions.enhancedLogging.impl.LoggerProvider"]=
ur;ur.__name__="robotlegs.bender.extensions.enhancedLogging.impl.LoggerProvider";ur.__interfaces__=[fi];ur.prototype={_context:null,apply:function(a,b,c){return this._context.getLogger(a)},destroy:function(){},__class__:ur};var tl=function(){};g["robotlegs.bender.framework.api.ILogTarget"]=tl;tl.__name__="robotlegs.bender.framework.api.ILogTarget";tl.__isInterface__=!0;tl.prototype={log:null,__class__:tl};var vr=function(a){this._messageParser=new wr;this._context=a};g["robotlegs.bender.extensions.enhancedLogging.impl.TraceLogTarget"]=
vr;vr.__name__="robotlegs.bender.extensions.enhancedLogging.impl.TraceLogTarget";vr.__interfaces__=[tl];vr.prototype={_messageParser:null,_context:null,log:function(a,b,c,d,e){a=N.getClass(a).__name__;a=a.split(".");a=a[a.length-1];Ub.trace(c+" "+B.string(hi.NAME[b])+" "+a+":  "+this._messageParser.parseMessage(d,e),{fileName:"robotlegs/bender/extensions/enhancedLogging/impl/TraceLogTarget.hx",lineNumber:50,className:"robotlegs.bender.extensions.enhancedLogging.impl.TraceLogTarget",methodName:"log"})},
__class__:vr};var qo=function(){};g["robotlegs.bender.extensions.eventCommandMap.EventCommandMapExtension"]=qo;qo.__name__="robotlegs.bender.extensions.eventCommandMap.EventCommandMapExtension";qo.__interfaces__=[be];qo.prototype={extend:function(a){a.get_injector().map(Cn).toSingleton(ul)},__class__:qo};var Cn=function(){};g["robotlegs.bender.extensions.eventCommandMap.api.IEventCommandMap"]=Cn;Cn.__name__="robotlegs.bender.extensions.eventCommandMap.api.IEventCommandMap";Cn.__isInterface__=!0;Cn.prototype=
{map:null,unmap:null,addMappingProcessor:null,__class__:Cn};var Wg=function(){};g["robotlegs.bender.framework.api.IContext"]=Wg;Wg.__name__="robotlegs.bender.framework.api.IContext";Wg.__isInterface__=!0;Wg.__interfaces__=[Y];Wg.prototype={get_injector:null,get_logLevel:null,set_logLevel:null,get_state:null,get_uninitialized:null,get_initialized:null,get_active:null,get_suspended:null,get_destroyed:null,injector:null,state:null,uninitialized:null,initialized:null,active:null,suspended:null,destroyed:null,
install:null,configure:null,addChild:null,removeChild:null,addConfigHandler:null,getLogger:null,addLogTarget:null,detain:null,release:null,initialize:null,suspend:null,resume:null,destroy:null,beforeInitializing:null,whenInitializing:null,afterInitializing:null,beforeSuspending:null,whenSuspending:null,afterSuspending:null,beforeResuming:null,whenResuming:null,afterResuming:null,beforeDestroying:null,whenDestroying:null,afterDestroying:null,__class__:Wg,__properties__:{get_destroyed:"get_destroyed",
get_suspended:"get_suspended",get_active:"get_active",get_initialized:"get_initialized",get_uninitialized:"get_uninitialized",get_state:"get_state",set_logLevel:"set_logLevel",get_logLevel:"get_logLevel",get_injector:"get_injector"}};var ul=function(a,b){this._mappingProcessors=[];this._injector=a.get_injector();this._logger=a.getLogger(this);this._dispatcher=b;this._triggerMap=new rr(k(this,this.getKey),k(this,this.createTrigger))};g["robotlegs.bender.extensions.eventCommandMap.impl.EventCommandMap"]=
ul;ul.__name__="robotlegs.bender.extensions.eventCommandMap.impl.EventCommandMap";ul.__interfaces__=[Cn,$d];ul.prototype={_mappingProcessors:null,_injector:null,_dispatcher:null,_triggerMap:null,_logger:null,map:function(a,b){return this.getTrigger(a,b).createMapper()},unmap:function(a,b){return this.getTrigger(a,b).createMapper()},addMappingProcessor:function(a){-1==this._mappingProcessors.indexOf(a)&&this._mappingProcessors.push(a);return this},getKey:function(a,b){return a+B.string(b)},getTrigger:function(a,
b){return N.__cast(this._triggerMap.getTrigger([a,b]),Dn)},createTrigger:function(a,b){return new Dn(this._injector,this._dispatcher,a,b,this._mappingProcessors,this._logger)},__class__:ul};var Dn=function(a,b,c,d,e,f){this._dispatcher=b;this._type=c;this._eventClass=d;this._mappings=new rl(this,e,f);this._executor=new ql(a,(x=this._mappings,k(x,x.removeMapping)))};g["robotlegs.bender.extensions.eventCommandMap.impl.EventCommandTrigger"]=Dn;Dn.__name__="robotlegs.bender.extensions.eventCommandMap.impl.EventCommandTrigger";
Dn.__interfaces__=[pl];Dn.prototype={_dispatcher:null,_type:null,_eventClass:null,_mappings:null,_executor:null,createMapper:function(){return new wn(this._mappings)},activate:function(){this._dispatcher.addEventListener(this._type,k(this,this.eventHandler))},deactivate:function(){this._dispatcher.removeEventListener(this._type,k(this,this.eventHandler))},toString:function(){return B.string(this._eventClass)+" with selector '"+this._type+"'"},eventHandler:function(a){var b=N.getClass(a);if(b!=this._eventClass&&
null!=this._eventClass)if(this._eventClass==W)b=this._eventClass;else return;this._executor.executeCommands(this._mappings.getList(),new ir([a],[b]))},__class__:Dn};var oo=function(a){this._eventDispatcher=null!=a?a:new L};g["robotlegs.bender.extensions.eventDispatcher.EventDispatcherExtension"]=oo;oo.__name__="robotlegs.bender.extensions.eventDispatcher.EventDispatcherExtension";oo.__interfaces__=[be];oo.prototype={_context:null,_eventDispatcher:null,_lifecycleRelay:null,extend:function(a){this._context=
a;this._context.get_injector().map(Y).toValue(this._eventDispatcher);this._context.beforeInitializing(k(this,this.configureLifecycleEventRelay));this._context.afterDestroying(k(this,this.destroyLifecycleEventRelay))},configureLifecycleEventRelay:function(){this._lifecycleRelay=new En(this._context,this._eventDispatcher)},destroyLifecycleEventRelay:function(){this._lifecycleRelay.destroy()},__class__:oo};var xt=function(a,b,c){this._active=!1;this._source=a;this._destination=b;this._types=null!=c?
c:[]};g["robotlegs.bender.extensions.eventDispatcher.impl.EventRelay"]=xt;xt.__name__="robotlegs.bender.extensions.eventDispatcher.impl.EventRelay";xt.prototype={_source:null,_destination:null,_types:null,_active:null,start:function(){this._active||(this._active=!0,this.addListeners());return this},stop:function(){this._active&&(this._active=!1,this.removeListeners());return this},addType:function(a){this._types.push(a);this._active&&this.addListener(a)},removeType:function(a){var b=this._types.indexOf(a);
-1<b&&(this._types.splice(b,1),this.removeListener(a))},removeListener:function(a){this._source.removeEventListener(a,(x=this._destination,k(x,x.dispatchEvent)))},addListener:function(a){this._source.addEventListener(a,(x=this._destination,k(x,x.dispatchEvent)))},addListeners:function(){for(var a=0,b=this._types;a<b.length;){var c=b[a];++a;this.addListener(c)}},removeListeners:function(){for(var a=0,b=this._types;a<b.length;){var c=b[a];++a;this.removeListener(c)}},__class__:xt};var Za=function(a,
b){W.call(this,a);this._error=b};g["robotlegs.bender.framework.api.LifecycleEvent"]=Za;Za.__name__="robotlegs.bender.framework.api.LifecycleEvent";Za.__super__=W;Za.prototype=r(W.prototype,{_error:null,error:null,clone:function(){return new Za(this.type,this.error)},__class__:Za});var En=function(a,b){this._relay=(new xt(a,b,En.TYPES)).start()};g["robotlegs.bender.extensions.eventDispatcher.impl.LifecycleEventRelay"]=En;En.__name__="robotlegs.bender.extensions.eventDispatcher.impl.LifecycleEventRelay";
En.prototype={_relay:null,destroy:function(){this._relay.stop();this._relay=null},__class__:En};var ro=function(){};g["robotlegs.bender.extensions.localEventMap.LocalEventMapExtension"]=ro;ro.__name__="robotlegs.bender.extensions.localEventMap.LocalEventMapExtension";ro.__interfaces__=[be];ro.prototype={extend:function(a){a.get_injector().map(Va).toType(vl)},__class__:ro};var vl=function(){this._suspended=!1;this._suspendedListeners=[];this._listeners=[]};g["robotlegs.bender.extensions.localEventMap.impl.EventMap"]=
vl;vl.__name__="robotlegs.bender.extensions.localEventMap.impl.EventMap";vl.__interfaces__=[Va,$d];vl.prototype={_listeners:null,_suspendedListeners:null,_suspended:null,mapListener:function(a,b,c,d,e,f,h){null==h&&(h=!0);null==f&&(f=0);null==e&&(e=!1);var l=this;null==d&&(d=W);for(var m=this._suspended?this._suspendedListeners:this._listeners,g,k=m.length;0<k--;)if(g=m[k],g.equalTo(a,b,c,d,e))return;k=d==W?c:function(a){l.routeEventToListener(a,c,d)};g=new yt(a,b,c,d,k,e);m.push(g);this._suspended||
a.addEventListener(b,k,e,f,h)},unmapListener:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=W);for(var f=this._suspended?this._suspendedListeners:this._listeners,h=f.length;0<h--;){var l=f[h];if(l.equalTo(a,b,c,d,e)){this._suspended||a.removeEventListener(b,l.callback,e);f.splice(h,1);break}}},unmapListeners:function(){for(var a=this._suspended?this._suspendedListeners:this._listeners,b,c;;){b=a.pop();if(null==b)break;this._suspended||(c=b.dispatcher,c.removeEventListener(b.eventString,b.callback,
b.useCapture))}},suspend:function(){if(!this._suspended){this._suspended=!0;for(var a,b;;){a=this._listeners.pop();if(null==a)break;b=a.dispatcher;b.removeEventListener(a.eventString,a.callback,a.useCapture);this._suspendedListeners.push(a)}}},resume:function(){if(this._suspended){this._suspended=!1;for(var a,b;;){a=this._suspendedListeners.pop();if(null==a)break;b=a.dispatcher;b.addEventListener(a.eventString,a.callback,a.useCapture);this._listeners.push(a)}}},routeEventToListener:function(a,b,c){N.__instanceof(a,
c)&&b(a)},__class__:vl};var yt=function(a,b,c,d,e,f){this.useCapture=!1;this.dispatcher=a;this.eventString=b;this.listener=c;this.eventClass=d;this.callback=e;this.useCapture=f};g["robotlegs.bender.extensions.localEventMap.impl.EventMapConfig"]=yt;yt.__name__="robotlegs.bender.extensions.localEventMap.impl.EventMapConfig";yt.prototype={dispatcher:null,eventString:null,listener:null,eventClass:null,callback:null,useCapture:null,equalTo:function(a,b,c,d,e){return this.eventString==b&&this.eventClass==
d&&this.dispatcher==a&&this.listener==c?this.useCapture==e:!1},__class__:yt};var ek=function(){};g["robotlegs.bender.framework.api.IMatcher"]=ek;ek.__name__="robotlegs.bender.framework.api.IMatcher";ek.__isInterface__=!0;ek.prototype={matches:null,__class__:ek};var Fn=function(){};g["robotlegs.bender.extensions.matching.ITypeFilter"]=Fn;Fn.__name__="robotlegs.bender.extensions.matching.ITypeFilter";Fn.__isInterface__=!0;Fn.__interfaces__=[ek];Fn.prototype={get_allOfTypes:null,get_anyOfTypes:null,
get_noneOfTypes:null,get_descriptor:null,allOfTypes:null,anyOfTypes:null,noneOfTypes:null,descriptor:null,__class__:Fn,__properties__:{get_descriptor:"get_descriptor",get_noneOfTypes:"get_noneOfTypes",get_anyOfTypes:"get_anyOfTypes",get_allOfTypes:"get_allOfTypes"}};var Gn=function(){};g["robotlegs.bender.extensions.matching.ITypeMatcher"]=Gn;Gn.__name__="robotlegs.bender.extensions.matching.ITypeMatcher";Gn.__isInterface__=!0;Gn.prototype={createTypeFilter:null,__class__:Gn};var Hn=function(){};
g["robotlegs.bender.extensions.matching.ITypeMatcherFactory"]=Hn;Hn.__name__="robotlegs.bender.extensions.matching.ITypeMatcherFactory";Hn.__isInterface__=!0;Hn.__interfaces__=[Gn];Hn.prototype={clone:null,__class__:Hn};var wt=function(){};g["robotlegs.bender.extensions.matching.InstanceOfType"]=wt;wt.__name__="robotlegs.bender.extensions.matching.InstanceOfType";wt.call=function(a){return new xr(a)};var xr=function(a){this._type=a};g["robotlegs.bender.extensions.matching.InstanceOfMatcher"]=xr;xr.__name__=
"robotlegs.bender.extensions.matching.InstanceOfMatcher";xr.__interfaces__=[ek];xr.prototype={_type:null,matches:function(a){return N.__instanceof(a,this._type)},__class__:xr};var yr=function(a,b,c){if(null==a||null==b||null==c)throw u.thrown("TypeFilter parameters can not be null");this.allOfTypes=a;this.anyOfTypes=b;this.noneOfTypes=c};g["robotlegs.bender.extensions.matching.TypeFilter"]=yr;yr.__name__="robotlegs.bender.extensions.matching.TypeFilter";yr.__interfaces__=[Fn];yr.prototype={allOfTypes:null,
get_allOfTypes:function(){return this.allOfTypes},anyOfTypes:null,get_anyOfTypes:function(){return this.anyOfTypes},noneOfTypes:null,get_noneOfTypes:function(){return this.noneOfTypes},descriptor:null,get_descriptor:function(){null==this.descriptor&&(this.descriptor=this.createDescriptor());return this.descriptor},matches:function(a){for(var b=this.get_allOfTypes().length;za.gt(b--,0);)if(!N.__instanceof(a,this.get_allOfTypes()[b]))return!1;for(b=this.get_noneOfTypes().length;za.gt(b--,0);)if(N.__instanceof(a,
this.get_noneOfTypes()[b]))return!1;if(0==this.get_anyOfTypes().length&&(0<this.get_allOfTypes().length||0<this.get_noneOfTypes().length))return!0;for(b=this.get_anyOfTypes().length;za.gt(b--,0);)if(N.__instanceof(a,this.get_anyOfTypes()[b]))return!0;return!1},alphabetiseCaseInsensitiveFCQNs:function(a){for(var b,c=[],d=0,e=a.length;d<e;)b=d++,b=a[b].__name__,c[c.length]=b;c.sort(k(this,this.stringSort));return c},createDescriptor:function(){var a=this.alphabetiseCaseInsensitiveFCQNs(this.get_allOfTypes()),
b=this.alphabetiseCaseInsensitiveFCQNs(this.get_anyOfTypes()),c=this.alphabetiseCaseInsensitiveFCQNs(this.get_noneOfTypes());return"all of: "+a.toString()+", any of: "+b.toString()+", none of: "+c.toString()},stringSort:function(a,b){return a<b?1:-1},__class__:yr,__properties__:{get_descriptor:"get_descriptor",get_noneOfTypes:"get_noneOfTypes",get_anyOfTypes:"get_anyOfTypes",get_allOfTypes:"get_allOfTypes"}};var hj=function(){this._noneOfTypes=[];this._anyOfTypes=[];this._allOfTypes=[]};g["robotlegs.bender.extensions.matching.TypeMatcher"]=
hj;hj.__name__="robotlegs.bender.extensions.matching.TypeMatcher";hj.__interfaces__=[Hn,Gn];hj.prototype={_allOfTypes:null,_anyOfTypes:null,_noneOfTypes:null,_typeFilter:null,allOf:function(a){this.pushAddedTypesTo(a,this._allOfTypes);return this},anyOf:function(a){this.pushAddedTypesTo(a,this._anyOfTypes);return this},noneOf:function(a){this.pushAddedTypesTo(a,this._noneOfTypes);return this},createTypeFilter:function(){null==this._typeFilter&&(this._typeFilter=this.buildTypeFilter());return this._typeFilter},
lock:function(){this.createTypeFilter();return this},clone:function(){return(new hj).allOf(this._allOfTypes).anyOf(this._anyOfTypes).noneOf(this._noneOfTypes)},buildTypeFilter:function(){if(0==this._allOfTypes.length&&0==this._anyOfTypes.length&&0==this._noneOfTypes.length)throw u.thrown(new ii(ii.EMPTY_MATCHER));return new yr(this._allOfTypes,this._anyOfTypes,this._noneOfTypes)},pushAddedTypesTo:function(a,b){null!=this._typeFilter&&this.throwSealedMatcherError();this.pushValuesToClassVector(a,b)},
throwSealedMatcherError:function(){throw u.thrown(new ii(ii.SEALED_MATCHER));},pushValuesToClassVector:function(a,b){var c=a[0]instanceof Array;if(1==a.length&&c)for(a=N.__cast(a[0],Array),c=0;c<a.length;){var d=a[c];++c;b.push(d)}else for(c=0;c<a.length;)d=a[c],++c,b.push(d)},__class__:hj};var $e=function(a,b){null==b&&(b=0);null==a&&(a="");this.message=a;this.errorID=b;this.name="Error"};g["robotlegs.errors.Error"]=$e;$e.__name__="robotlegs.errors.Error";$e.prototype={errorID:null,message:null,
name:null,getStackTrace:function(){return Cf.toString(Cf.exceptionStack())},toString:function(){return null!=this.message?this.message:"Error"},__class__:$e};var ii=function(a){$e.call(this,a)};g["robotlegs.bender.extensions.matching.TypeMatcherError"]=ii;ii.__name__="robotlegs.bender.extensions.matching.TypeMatcherError";ii.__super__=$e;ii.prototype=r($e.prototype,{__class__:ii});var so=function(){};g["robotlegs.bender.extensions.mediatorMap.MediatorMapExtension"]=so;so.__name__="robotlegs.bender.extensions.mediatorMap.MediatorMapExtension";
so.__interfaces__=[be];so.prototype={_injector:null,_mediatorMap:null,_viewManager:null,extend:function(a){a.beforeInitializing(k(this,this.beforeInitializing)).beforeDestroying(k(this,this.beforeDestroying)).whenDestroying(k(this,this.whenDestroying));this._injector=a.get_injector();this._injector.map(ji).toSingleton(wl)},beforeInitializing:function(){this._mediatorMap=this._injector.getInstance(ji);this._injector.satisfiesDirectly(ce)&&(this._viewManager=this._injector.getInstance(ce),this._viewManager.addViewHandler(this._mediatorMap))},
beforeDestroying:function(){this._mediatorMap.unmediateAll();this._injector.satisfiesDirectly(ce)&&(this._viewManager=this._injector.getInstance(ce),this._viewManager.removeViewHandler(this._mediatorMap))},whenDestroying:function(){this._injector.satisfiesDirectly(ji)&&this._injector.unmap(ji)},__class__:so};var ji=function(){};g["robotlegs.bender.extensions.mediatorMap.api.IMediatorMap"]=ji;ji.__name__="robotlegs.bender.extensions.mediatorMap.api.IMediatorMap";ji.__isInterface__=!0;ji.prototype=
{mapMatcher:null,map:null,unmapMatcher:null,unmap:null,mediate:null,unmediate:null,unmediateAll:null,__class__:ji};var In=function(){};g["robotlegs.bender.extensions.mediatorMap.api.IMediatorMapping"]=In;In.__name__="robotlegs.bender.extensions.mediatorMap.api.IMediatorMapping";In.__isInterface__=!0;In.prototype={get_matcher:null,get_mediatorClass:null,get_guards:null,get_hooks:null,get_autoRemoveEnabled:null,matcher:null,mediatorClass:null,guards:null,hooks:null,autoRemoveEnabled:null,__class__:In,
__properties__:{get_autoRemoveEnabled:"get_autoRemoveEnabled",get_hooks:"get_hooks",get_guards:"get_guards",get_mediatorClass:"get_mediatorClass",get_matcher:"get_matcher"}};var zr=function(){};g["robotlegs.bender.extensions.mediatorMap.dsl.IMediatorConfigurator"]=zr;zr.__name__="robotlegs.bender.extensions.mediatorMap.dsl.IMediatorConfigurator";zr.__isInterface__=!0;zr.prototype={withGuards:null,withHooks:null,autoRemove:null,__class__:zr};var Ar=function(){};g["robotlegs.bender.extensions.mediatorMap.dsl.IMediatorMapper"]=
Ar;Ar.__name__="robotlegs.bender.extensions.mediatorMap.dsl.IMediatorMapper";Ar.__isInterface__=!0;Ar.prototype={toMediator:null,__class__:Ar};var Jn=function(){};g["robotlegs.bender.extensions.mediatorMap.dsl.IMediatorUnmapper"]=Jn;Jn.__name__="robotlegs.bender.extensions.mediatorMap.dsl.IMediatorUnmapper";Jn.__isInterface__=!0;Jn.prototype={fromMediator:null,fromAll:null,__class__:Jn};var zt=function(a,b){this._items=new da;this._mediators=new da;this._injector=a;this._manager=null!=b?b:new ki(this)};
g["robotlegs.bender.extensions.mediatorMap.impl.MediatorFactory"]=zt;zt.__name__="robotlegs.bender.extensions.mediatorMap.impl.MediatorFactory";zt.prototype={_mediators:null,_items:null,_injector:null,_manager:null,getMediator:function(a,b){a=Kb.instanceID(a);return null!=this._mediators.h[a]?this._mediators.h[a].h[b.__id__]:null},createMediators:function(a,b,c){for(var d=[],e,f=0;f<c.length;){var h=c[f];++f;e=this.getMediator(a,h);null==e&&(this.mapTypeForFilterBinding(h.matcher,b,a),e=this.createMediator(a,
h),this.unmapTypeForFilterBinding(h.matcher,b,a));null!=e&&d.push(e)}return d},removeMediators:function(a){a=Kb.clearInstanceID(a);this._removeMediators(a)},_removeMediators:function(a){var b=this._mediators.h[a];if(null!=b){for(var c=b.keys();c.hasNext();){var d=c.next();this._manager.removeMediator(b.h[d.__id__],this._items.h[a],N.__cast(d,In))}b=this._mediators;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];b=this._items;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a]}},
removeAllMediators:function(){for(var a=Object.keys(this._mediators.h),b=a.length,c=0;c<b;){var d=a[c++];this._removeMediators(d)}},createMediator:function(a,b){var c=this.getMediator(a,b);if(null!=c)return c;if(0==b.get_guards().length||pr.call(b.get_guards(),this._injector)){var d=b.get_mediatorClass();c=this._injector.instantiateUnmapped(d);0<b.get_hooks().length&&(this._injector.map(d).toValue(c),qr.call(b.get_hooks(),this._injector),this._injector.unmap(d));this.addMediator(c,a,b)}return c},
addMediator:function(a,b,c){var d=Kb.instanceID(b);if(null==this._mediators.h[d]){var e=this._mediators,f=new ea;e.h[d]=f;this._items.h[d]=b}this._mediators.h[d].set(c,a);this._manager.addMediator(a,b,c)},mapTypeForFilterBinding:function(a,b,c){var d=0;for(a=this.requiredTypesFor(a,b);d<a.length;)b=a[d],++d,this._injector.map(b).toValue(c)},unmapTypeForFilterBinding:function(a,b,c){c=0;for(a=this.requiredTypesFor(a,b);c<a.length;)b=a[c],++c,this._injector.satisfiesDirectly(b)&&this._injector.unmap(b)},
requiredTypesFor:function(a,b){a=a.get_allOfTypes().concat(a.get_anyOfTypes());-1==a.indexOf(b)&&a.push(b);return a},__class__:zt};var ki=function(a){this._factory=a};g["robotlegs.bender.extensions.mediatorMap.impl.MediatorManager"]=ki;ki.__name__="robotlegs.bender.extensions.mediatorMap.impl.MediatorManager";ki.prototype={_factory:null,addMediator:function(a,b,c){var d=null;b instanceof L&&(d=N.__cast(b,L));null!=d&&c.get_autoRemoveEnabled()&&d.addEventListener("removedFromStage",k(this,this.onRemovedFromStage));
this.itemInitialized(b)?this.initializeMediator(a,b):(a=new At(k(this,this.initializeMediator),this._factory,d,a,b,c),d.addEventListener(ki.CREATION_COMPLETE,k(a,a.creationComplete)))},removeMediator:function(a,b,c){b instanceof L&&N.__cast(b,L).removeEventListener("removedFromStage",k(this,this.onRemovedFromStage));this.itemInitialized(b)&&this.destroyMediator(a)},onRemovedFromStage:function(a){this._factory.removeMediators(a.target)},itemInitialized:function(a){return ki.flexAvailable&&N.__instanceof(a,
ki.UIComponentClass)&&!wg.hasField(a,"initialized")?!1:!0},initializeMediator:function(a,b){wg.hasField(a,"preInitialize")&&a.preInitialize();wg.hasField(a,"viewComponent")&&(a.viewComponent=b);wg.hasField(a,"initialize")&&a.initialize();wg.hasField(a,"postInitialize")&&a.postInitialize()},destroyMediator:function(a){wg.hasField(a,"preDestroy")&&a.preDestroy();wg.hasField(a,"destroy")&&a.destroy();wg.hasField(a,"viewComponent")&&(a.viewComponent=null);wg.hasField(a,"postDestroy")&&a.postDestroy()},
__class__:ki};var At=function(a,b,c,d,e,f){this.initializeMediator=a;this._factory=b;this.mapping=f;this.item=e;this.mediator=d;this.eventDispatcher=c};g["robotlegs.bender.extensions.mediatorMap.impl.MediatorManagerAddMediator"]=At;At.__name__="robotlegs.bender.extensions.mediatorMap.impl.MediatorManagerAddMediator";At.prototype={eventDispatcher:null,mediator:null,item:null,mapping:null,_factory:null,initializeMediator:null,creationComplete:function(a){this.eventDispatcher.removeEventListener(ki.CREATION_COMPLETE,
k(this,this.creationComplete));this._factory.getMediator(this.item,this.mapping)==this.mediator&&this.initializeMediator(this.mediator,this.item)},__class__:At};var li=function(){};g["robotlegs.bender.extensions.viewManager.api.IViewHandler"]=li;li.__name__="robotlegs.bender.extensions.viewManager.api.IViewHandler";li.__isInterface__=!0;li.prototype={handleView:null,__class__:li};var wl=function(a){this.NULL_UNMAPPER=new Br;this._mappers=new da;this._logger=a.getLogger(this);this._factory=new zt(a.get_injector());
this._viewHandler=new Cr(this._factory)};g["robotlegs.bender.extensions.mediatorMap.impl.MediatorMap"]=wl;wl.__name__="robotlegs.bender.extensions.mediatorMap.impl.MediatorMap";wl.__interfaces__=[li,ji,$d];wl.prototype={_mappers:null,_logger:null,_factory:null,_viewHandler:null,NULL_UNMAPPER:null,mapMatcher:function(a){var b=a.createTypeFilter().get_descriptor(),c=this._mappers.h[b];null==c&&(c=this.createMapper(a),this._mappers.h[b]=c);return c},map:function(a){return this.mapMatcher((new hj).allOf([a]))},
unmapMatcher:function(a){a=a.createTypeFilter().get_descriptor();a=this._mappers.h[a];return null!=a?a:this.NULL_UNMAPPER},unmap:function(a){return this.unmapMatcher((new hj).allOf([a]))},handleView:function(a,b){this._viewHandler.handleView(a,b)},mediate:function(a){this._viewHandler.handleItem(a,N.getClass(a))},unmediate:function(a){this._factory.removeMediators(a)},unmediateAll:function(){this._factory.removeAllMediators()},createMapper:function(a){return new Dr(a.createTypeFilter(),this._viewHandler,
this._logger)},__class__:wl};var Dr=function(a,b,c){this._mappings=new da;this._typeFilter=a;this._handler=b;this._logger=c};g["robotlegs.bender.extensions.mediatorMap.impl.MediatorMapper"]=Dr;Dr.__name__="robotlegs.bender.extensions.mediatorMap.impl.MediatorMapper";Dr.__interfaces__=[Jn,Ar];Dr.prototype={_mappings:null,_typeFilter:null,_handler:null,_logger:null,toMediator:function(a){var b=this._mappings,c=Kb.classID(a);b=b.h[c];return null!=b?this.overwriteMapping(b):this.createMapping(a)},fromMediator:function(a){var b=
this._mappings;a=Kb.classID(a);b=b.h[a];null!=b&&this.deleteMapping(b)},fromAll:function(){for(var a=this._mappings.h,b=Object.keys(a),c=b.length,d=0;d<c;){var e=a[b[d++]];this.deleteMapping(e)}},createMapping:function(a){var b=new Er(this._typeFilter,a);this._handler.addMapping(b);var c=this._mappings;a=Kb.classID(a);c.h[a]=b;null!=this._logger&&this._logger.debug("{0} mapped to {1}",[this._typeFilter,b]);return b},deleteMapping:function(a){this._handler.removeMapping(a);var b=this._mappings,c=Kb.classID(a.get_mediatorClass());
Object.prototype.hasOwnProperty.call(b.h,c)&&delete b.h[c];null!=this._logger&&this._logger.debug("{0} unmapped from {1}",[this._typeFilter,a])},overwriteMapping:function(a){if(null!=this._logger){var b=this._logger,c=this._typeFilter.get_descriptor(),d=a.get_mediatorClass();b.warn('{0} already mapped to {1}\nIf you have overridden this mapping intentionally you can use "unmap()" prior to your replacement mapping in order to avoid seeing this message.\n',[c,d.__name__])}this.deleteMapping(a);return this.createMapping(a.get_mediatorClass())},
__class__:Dr};var Er=function(a,b){this.autoRemoveEnabled=!0;this.hooks=[];this.guards=[];this.matcher=a;this.mediatorClass=b};g["robotlegs.bender.extensions.mediatorMap.impl.MediatorMapping"]=Er;Er.__name__="robotlegs.bender.extensions.mediatorMap.impl.MediatorMapping";Er.__interfaces__=[zr,In];Er.prototype={matcher:null,get_matcher:function(){return this.matcher},mediatorClass:null,get_mediatorClass:function(){return this.mediatorClass},guards:null,get_guards:function(){return this.guards},hooks:null,
get_hooks:function(){return this.hooks},autoRemoveEnabled:null,get_autoRemoveEnabled:function(){return this.autoRemoveEnabled},withGuards:function(a,b){if(null!=a)for(var c=0,d=a.length;c<d;){var e=c++;this.get_guards().push(a[e])}null!=b&&this.get_guards().push(b);return this},withHooks:function(a,b){if(null!=a)for(var c=0,d=a.length;c<d;){var e=c++;this.get_hooks().push(a[e])}null!=b&&this.get_hooks().push(b);return this},autoRemove:function(a){null==a&&(a=!0);this.autoRemoveEnabled=a;return this},
__class__:Er,__properties__:{get_autoRemoveEnabled:"get_autoRemoveEnabled",get_hooks:"get_hooks",get_guards:"get_guards",get_mediatorClass:"get_mediatorClass",get_matcher:"get_matcher"}};var Cr=function(a){this._knownMappings=new da;this._mappings=[];this._factory=a};g["robotlegs.bender.extensions.mediatorMap.impl.MediatorViewHandler"]=Cr;Cr.__name__="robotlegs.bender.extensions.mediatorMap.impl.MediatorViewHandler";Cr.__interfaces__=[li];Cr.prototype={_mappings:null,_knownMappings:null,_factory:null,
addMapping:function(a){-1<this._mappings.indexOf(a)||(this._mappings.push(a),this.flushCache())},removeMapping:function(a){a=this._mappings.indexOf(a);-1!=a&&(this._mappings.splice(a,1),this.flushCache())},handleView:function(a,b){var c=this.getInterestedMappingsFor(a,b);null!=c&&this._factory.createMediators(a,b,c)},handleItem:function(a,b){var c=this.getInterestedMappingsFor(a,b);null!=c&&this._factory.createMediators(a,b,c)},flushCache:function(){this._knownMappings=new da},getInterestedMappingsFor:function(a,
b){b=Kb.classID(b);if(Object.prototype.hasOwnProperty.call(this._knownMappings.h,b)&&0==this._knownMappings.h[b].length)return null;if(!Object.prototype.hasOwnProperty.call(this._knownMappings.h,b)){this._knownMappings.h[b]=[];for(var c=0,d=this._mappings.length;c<d;){var e=c++;e=this._mappings[e];e.get_matcher().matches(a)&&this._knownMappings.h[b].push(e)}if(0==this._knownMappings.h[b].length)return null}return this._knownMappings.h[b]},__class__:Cr};var Br=function(){};g["robotlegs.bender.extensions.mediatorMap.impl.NullMediatorUnmapper"]=
Br;Br.__name__="robotlegs.bender.extensions.mediatorMap.impl.NullMediatorUnmapper";Br.__interfaces__=[Jn];Br.prototype={fromMediator:function(a){},fromAll:function(){},__class__:Br};var sm=function(){};g["robotlegs.bender.extensions.signalCommandMap.SignalCommandMapExtension"]=sm;sm.__name__="robotlegs.bender.extensions.signalCommandMap.SignalCommandMapExtension";sm.__interfaces__=[be];sm.prototype={_uid:null,extend:function(a){a.get_injector().hasMapping(fk)||a.get_injector().map(fk).toSingleton(xl)},
toString:function(){null==this._uid&&(this._uid=Bt.create(sm));return this._uid},__class__:sm};var fk=function(){};g["robotlegs.bender.extensions.signalCommandMap.api.ISignalCommandMap"]=fk;fk.__name__="robotlegs.bender.extensions.signalCommandMap.api.ISignalCommandMap";fk.__isInterface__=!0;fk.prototype={map:null,unmap:null,addMappingProcessor:null,__class__:fk};var xl=function(a){this._mappingProcessors=[];this._injector=a.get_injector();this._logger=a.getLogger(this);this._triggerMap=new rr(k(this,
this.getKey),k(this,this.createTrigger));a.get_injector().map(Kn).asSingleton();a.get_injector().getInstance(Kn).dispatch()};g["robotlegs.bender.extensions.signalCommandMap.impl.SignalCommandMap"]=xl;xl.__name__="robotlegs.bender.extensions.signalCommandMap.impl.SignalCommandMap";xl.__interfaces__=[fk,$d];xl.prototype={_mappingProcessors:null,_injector:null,_triggerMap:null,_logger:null,map:function(a){return this.getTrigger(a).createMapper()},unmap:function(a){return this.getTrigger(a).createMapper()},
addMappingProcessor:function(a){-1==this._mappingProcessors.indexOf(a)&&this._mappingProcessors.push(a);return this},getTrigger:function(a){return N.__cast(this._triggerMap.getTrigger([a]),Ln)},getKey:function(a){return""+B.string(a)},createTrigger:function(a){return new Ln(this._injector,a,this._mappingProcessors)},__class__:xl};var Ln=function(a,b,c,d){this._injector=a;this._signalClass=b;this._mappings=new rl(this,c,d);this._executor=new ql(a,(x=this._mappings,k(x,x.removeMapping)))};g["robotlegs.bender.extensions.signalCommandMap.impl.SignalCommandTrigger"]=
Ln;Ln.__name__="robotlegs.bender.extensions.signalCommandMap.impl.SignalCommandTrigger";Ln.__interfaces__=[pl];Ln.prototype={_signalClass:null,_signal:null,_injector:null,_mappings:null,_executor:null,createMapper:function(){return new wn(this._mappings)},activate:function(){var a=this;this._injector.hasMapping(this._signalClass)||this._injector.map(this._signalClass).asSingleton();this._signal=this._injector.getInstance(this._signalClass);this._signal instanceof ya?this._signal.add(function(){a.routePayloadToCommands([])}):
this._signal instanceof pb?this._signal.add(function(b){J.makeVarArgs(k(a,a.routePayloadToCommands))(b)}):this._signal instanceof Je&&this._signal.add(function(b,c){J.makeVarArgs(k(a,a.routePayloadToCommands))(b,c)})},deactivate:function(){},toString:function(){return this._signalClass.__name__},routePayloadToCommands:function(a){a=new ir(a,null);this._executor.executeCommands(this._mappings.getList(),a)},__class__:Ln};var xg=y.BaseSignal=function(a){null==a&&(a=!1);this.defaultCallbackProps=0;this.requiresSort=
!1;this.toTrigger=[];this.callbacks=[];this.mute=!1;this._fireOnAdd=a};g["signals.BaseSignal"]=xg;xg.__name__="signals.BaseSignal";xg.prototype={numListeners:null,hasListeners:null,_fireOnAdd:null,mute:null,currentCallback:null,callbacks:null,toTrigger:null,requiresSort:null,defaultCallbackProps:null,sortPriority:function(){this.requiresSort&&(this.callbacks.sort(k(this,this.sortCallbacks)),this.requiresSort=!1)},dispatchCallbacks:function(){for(var a=0;a<this.callbacks.length;){var b=this.callbacks[a];
0>b.repeat||b.callCount<=b.repeat?this.toTrigger.push(b):b.remove=!0;b.callCount++;++a}for(a=this.callbacks.length-1;0<=a;)b=this.callbacks[a],1==b.remove&&this.callbacks.splice(a,1),--a;b=0;for(a=this.toTrigger.length;b<a;){var c=b++;null!=this.toTrigger[c]&&this.toTrigger[c].dispatchMethod(this.toTrigger[c].callback,this.toTrigger[c])}this.toTrigger=[]},dispatchCallback:function(a,b){throw u.thrown("implement in override");},dispatchCallback1:function(a,b){throw u.thrown("implement in override");
},dispatchCallback2:function(a,b){throw u.thrown("implement in override");},dispatchCallback3:function(a,b){throw u.thrown("implement in override");},dispatchCheck:function(a,b){try{this.dispatchCallback(a,b)}catch(c){if(wa.lastError=c,"Invalid call"==u.caught(c).unwrap())return}b.dispatchMethod=k(this,this.dispatchCallback)},dispatchCheck1:function(a,b){try{this.dispatchCallback1(a,b)}catch(c){if(wa.lastError=c,"Invalid call"==u.caught(c).unwrap()){this.dispatchCallback(a,b);return}}b.dispatchMethod=
k(this,this.dispatchCallback1)},dispatchCheck2:function(a,b){try{this.dispatchCallback2(a,b)}catch(c){if(wa.lastError=c,"Invalid call"==u.caught(c).unwrap()){this.dispatchCheck1(a,b);return}}b.dispatchMethod=k(this,this.dispatchCallback2)},dispatchCheck3:function(a,b){try{this.dispatchCallback3(a,b)}catch(c){if(wa.lastError=c,"Invalid call"==u.caught(c).unwrap()){this.dispatchCheck2(a,b);return}}b.dispatchMethod=k(this,this.dispatchCallback3)},sortCallbacks:function(a,b){return a.priority>b.priority?
-1:a.priority<b.priority?1:0},get_numListeners:function(){return this.callbacks.length},get_hasListeners:function(){return 0<this.get_numListeners()},add:function(a,b,c,d){null==c&&(c=0);null==b&&(b=!1);0==b&&0==c&&null==d||console.warn("\nWARNING: fireOnce, priority and fireOnAdd params will be removed from 'Signals' in a future release\nInstead use daisy chain methods, eg: obj.add(callback).repeat(5).priority(1000).fireOnAdd();");var e=this.getNumParams(a),f=-1;1==b&&(f=0);this.currentCallback=
{params:e,callback:a,callCount:0,repeat:f,priority:c,remove:!1};0==e?this.currentCallback.dispatchMethod=k(this,this.dispatchCheck):1==e?this.currentCallback.dispatchMethod=k(this,this.dispatchCheck1):2==e?this.currentCallback.dispatchMethod=k(this,this.dispatchCheck2):3==e&&(this.currentCallback.dispatchMethod=k(this,this.dispatchCheck3));this.callbacks.push(this.currentCallback);0!=c&&(this.requiresSort=!0);1!=d&&1!=this._fireOnAdd||this.currentCallback.dispatchMethod(a,this.currentCallback);return this},
getNumParams:function(a){a=J.getProperty(a,"length");return null!=a?a:this.defaultCallbackProps},priority:function(a){if(null==this.currentCallback)return this;this.currentCallback.priority=a;this.requiresSort=!0;return this},repeat:function(a){null==a&&(a=-1);if(null==this.currentCallback)return this;this.currentCallback.repeat=a;return this},fireOnAdd:function(){null!=this.currentCallback&&(this.currentCallback.callCount++,this.currentCallback.dispatchMethod(this.currentCallback.callback,this.currentCallback))},
remove:function(a){null==a&&(a=!1);if(1==a)this.callbacks=[];else for(var b=0;b<this.callbacks.length;)this.callbacks[b].callback==a?this.callbacks.splice(b,1):++b},__class__:xg,__properties__:{get_hasListeners:"get_hasListeners",get_numListeners:"get_numListeners"}};var ya=y.Signal=function(a){null==a&&(a=!1);xg.call(this,a)};g["signals.Signal"]=ya;ya.__name__="signals.Signal";ya.__super__=xg;ya.prototype=r(xg.prototype,{dispatch:function(){if(!this.mute){this.requiresSort&&(this.callbacks.sort(k(this,
this.sortCallbacks)),this.requiresSort=!1);for(var a=0;a<this.callbacks.length;){var b=this.callbacks[a];0>b.repeat||b.callCount<=b.repeat?this.toTrigger.push(b):b.remove=!0;b.callCount++;++a}for(a=this.callbacks.length-1;0<=a;)b=this.callbacks[a],1==b.remove&&this.callbacks.splice(a,1),--a;b=0;for(a=this.toTrigger.length;b<a;){var c=b++;null!=this.toTrigger[c]&&this.toTrigger[c].dispatchMethod(this.toTrigger[c].callback,this.toTrigger[c])}this.toTrigger=[]}},dispatchCallback:function(a,b){a()},dispatchCallback1:function(a,
b){throw u.thrown("Use Signal 1");},dispatchCallback2:function(a,b){throw u.thrown("Use Signal 2");},dispatchCallback3:function(a,b){throw u.thrown("Use Signal 3");},__class__:ya});var Kn=function(){ya.call(this)};g["robotlegs.bender.extensions.signalCommandMap.impl.signals.AppSetupCompleteSignal"]=Kn;Kn.__name__="robotlegs.bender.extensions.signalCommandMap.impl.signals.AppSetupCompleteSignal";Kn.__super__=ya;Kn.prototype=r(ya.prototype,{__class__:Kn});var uo=function(){};g["robotlegs.bender.extensions.viewManager.StageCrawlerExtension"]=
uo;uo.__name__="robotlegs.bender.extensions.viewManager.StageCrawlerExtension";uo.__interfaces__=[be];uo.prototype={_logger:null,_injector:null,_containerRegistry:null,extend:function(a){this._injector=a.get_injector();this._logger=a.getLogger(this);a.afterInitializing(k(this,this.afterInitializing))},afterInitializing:function(){this._containerRegistry=this._injector.getInstance(mi);this._injector.hasDirectMapping(ce)?this.scanViewManagedContainers():this.scanContextView()},scanViewManagedContainers:function(){this._logger.debug("ViewManager is installed. Checking for managed containers...");
for(var a=0,b=this._injector.getInstance(ce).get_containers();a<b.length;){var c=b[a];++a;null!=c.stage&&this.scanContainer(c)}},scanContextView:function(){this._logger.debug("ViewManager is not installed. Checking the ContextView...");var a=this._injector.getInstance(wf);null!=a.view.stage&&this.scanContainer(a.view)},scanContainer:function(a){var b=this._containerRegistry.getBinding(a);this._logger.debug("StageCrawler scanning container {0} ...",[a]);(new Ct(b)).scan(a);this._logger.debug("StageCrawler finished scanning {0}",
[a])},__class__:uo};var Ig=function(){};g["robotlegs.bender.extensions.viewManager.StageObserverExtension"]=Ig;Ig.__name__="robotlegs.bender.extensions.viewManager.StageObserverExtension";Ig.__interfaces__=[be];Ig.prototype={_injector:null,_logger:null,extend:function(a){a.whenInitializing(k(this,this.whenInitializing));a.whenDestroying(k(this,this.whenDestroying));Ig._installCount++;this._injector=a.get_injector();this._logger=a.getLogger(this)},whenInitializing:function(){if(null==Ig._stageObserver){var a=
this._injector.getInstance(mi);this._logger.debug("Creating genuine StageObserver Singleton");Ig._stageObserver=new Dt(a)}},whenDestroying:function(){Ig._installCount--;0==Ig._installCount&&(this._logger.debug("Destroying genuine StageObserver Singleton"),Ig._stageObserver.destroy(),Ig._stageObserver=null)},__class__:Ig};var Dj=function(){};g["robotlegs.bender.extensions.viewManager.ViewManagerExtension"]=Dj;Dj.__name__="robotlegs.bender.extensions.viewManager.ViewManagerExtension";Dj.__interfaces__=
[be];Dj.prototype={_injector:null,_viewManager:null,extend:function(a){a.whenInitializing(k(this,this.whenInitializing));a.whenDestroying(k(this,this.whenDestroying));this._injector=a.get_injector();null==Dj._containerRegistry&&(Dj._containerRegistry=new mi);this._injector.map(mi).toValue(Dj._containerRegistry);this._injector.map(ce).toSingleton(gk)},whenInitializing:function(){this._viewManager=this._injector.getInstance(ce)},whenDestroying:function(){this._viewManager.removeAllHandlers();this._injector.unmap(ce);
this._injector.unmap(mi)},__class__:Dj};var hk=function(a){this._handlers=[];this._container=a;L.call(this,null)};g["robotlegs.bender.extensions.viewManager.impl.ContainerBinding"]=hk;hk.__name__="robotlegs.bender.extensions.viewManager.impl.ContainerBinding";hk.__super__=L;hk.prototype=r(L.prototype,{_parent:null,get_parent:function(){return this._parent},set_parent:function(a){return this._parent=a},_container:null,container:null,get_container:function(){return this._container},_handlers:null,addHandler:function(a){-1<
this._handlers.indexOf(a)||this._handlers.push(a)},removeHandler:function(a){a=this._handlers.indexOf(a);-1<a&&(this._handlers.splice(a,1),0==this._handlers.length&&this.dispatchEvent(new ni(ni.BINDING_EMPTY)))},handleView:function(a,b){for(var c=0,d=this._handlers.length;c<d;){var e=c++;N.__cast(this._handlers[e],li).handleView(a,b)}},__class__:hk,__properties__:{get_container:"get_container",set_parent:"set_parent",get_parent:"get_parent"}});var ni=function(a){W.call(this,a)};g["robotlegs.bender.extensions.viewManager.impl.ContainerBindingEvent"]=
ni;ni.__name__="robotlegs.bender.extensions.viewManager.impl.ContainerBindingEvent";ni.__super__=W;ni.prototype=r(W.prototype,{clone:function(){return new ni(this.type)},__class__:ni});var mi=function(a){this._bindingByContainer=new ea;this.rootBindings=[];this.bindings=[];L.call(this,a)};g["robotlegs.bender.extensions.viewManager.impl.ContainerRegistry"]=mi;mi.__name__="robotlegs.bender.extensions.viewManager.impl.ContainerRegistry";mi.__super__=L;mi.prototype=r(L.prototype,{bindings:null,get_bindings:function(){return this.bindings},
rootBindings:null,get_rootBindings:function(){return this.rootBindings},_bindingByContainer:null,addContainer:function(a){null==this._bindingByContainer.h.__keys__[a.__id__]&&this._bindingByContainer.set(a,this.createBinding(a));return this._bindingByContainer.h[a.__id__]},removeContainer:function(a){a=this._bindingByContainer.h[a.__id__];null!=a&&this.removeBinding(a);return a},findParentBinding:function(a){for(a=a.parent;null!=a;){var b=this._bindingByContainer.h[a.__id__];if(null!=b)return b;a=
a.parent}return null},getBinding:function(a){return this._bindingByContainer.h[a.__id__]},createBinding:function(a){var b=new hk(a);this.get_bindings().push(b);b.addEventListener(ni.BINDING_EMPTY,k(this,this.onBindingEmpty));b.set_parent(this.findParentBinding(a));null==b.get_parent()&&this.addRootBinding(b);for(var c=this._bindingByContainer.iterator();c.hasNext();){var d=c.next();null!=d.get_container()&&a.contains(d.get_container())&&(null==d.get_parent()?(this.removeRootBinding(N.__cast(d,hk)),
d.set_parent(b)):a.contains(d.get_parent().get_container())&&d.set_parent(b))}this.dispatchEvent(new Td(Td.CONTAINER_ADD,b.get_container()));return b},removeBinding:function(a){this._bindingByContainer.remove(a.get_container());var b=this.get_bindings().indexOf(a);this.get_bindings().splice(b,1);a.removeEventListener(ni.BINDING_EMPTY,k(this,this.onBindingEmpty));null==a.get_parent()&&this.removeRootBinding(a);for(b=this._bindingByContainer.iterator();b.hasNext();){var c=b.next();c.get_parent()==a&&
(c.set_parent(a.get_parent()),null==c.get_parent()&&this.addRootBinding(N.__cast(c,hk)))}this.dispatchEvent(new Td(Td.CONTAINER_REMOVE,a.get_container()))},addRootBinding:function(a){this.get_rootBindings().push(a);this.dispatchEvent(new Td(Td.ROOT_CONTAINER_ADD,a.get_container()))},removeRootBinding:function(a){var b=this.get_rootBindings().indexOf(a);this.get_rootBindings().splice(b,1);this.dispatchEvent(new Td(Td.ROOT_CONTAINER_REMOVE,a.get_container()))},onBindingEmpty:function(a){this.removeBinding(N.__cast(a.target,
hk))},__class__:mi,__properties__:{get_rootBindings:"get_rootBindings",get_bindings:"get_bindings"}});var Td=function(a,b){W.call(this,a);this.container=b};g["robotlegs.bender.extensions.viewManager.impl.ContainerRegistryEvent"]=Td;Td.__name__="robotlegs.bender.extensions.viewManager.impl.ContainerRegistryEvent";Td.__super__=W;Td.prototype=r(W.prototype,{container:null,clone:function(){return new Td(this.type,this.container)},__class__:Td});var Ct=function(a){this._binding=a};g["robotlegs.bender.extensions.viewManager.impl.StageCrawler"]=
Ct;Ct.__name__="robotlegs.bender.extensions.viewManager.impl.StageCrawler";Ct.prototype={_binding:null,scan:function(a){this.scanContainer(a)},scanContainer:function(a){this.processView(a);for(var b=0,c=a.get_numChildren();b<c;){var d=b++;d=a.getChildAt(d);d instanceof jb?this.scanContainer(N.__cast(d,jb)):this.processView(d)}},processView:function(a){this._binding.handleView(a,N.getClass(a))},__class__:Ct};var Dt=function(a){this._filter=new fa("^mx\\.|^spark\\.|^flash\\.","");this._registry=a;this._registry.addEventListener(Td.ROOT_CONTAINER_ADD,
k(this,this.onRootContainerAdd));this._registry.addEventListener(Td.ROOT_CONTAINER_REMOVE,k(this,this.onRootContainerRemove));a=0;for(var b=this._registry.get_rootBindings();a<b.length;){var c=b[a];++a;this.addRootListener(c.get_container())}};g["robotlegs.bender.extensions.viewManager.impl.StageObserver"]=Dt;Dt.__name__="robotlegs.bender.extensions.viewManager.impl.StageObserver";Dt.prototype={_filter:null,_registry:null,destroy:function(){this._registry.removeEventListener(Td.ROOT_CONTAINER_ADD,
k(this,this.onRootContainerAdd));this._registry.removeEventListener(Td.ROOT_CONTAINER_REMOVE,k(this,this.onRootContainerRemove));for(var a=0,b=this._registry.get_rootBindings();a<b.length;){var c=b[a];++a;this.removeRootListener(c.get_container())}},onRootContainerAdd:function(a){this.addRootListener(a.container)},onRootContainerRemove:function(a){this.removeRootListener(a.container)},addRootListener:function(a){a.addEventListener("addedToStage",k(this,this.onViewAddedToStage),!0);a.addEventListener("addedToStage",
k(this,this.onContainerRootAddedToStage))},onViewAddedToStage:function(a){a=N.__cast(a.target,ka);this.addView(a)},onContainerRootAddedToStage:function(a){a=N.__cast(a.target,jb);a.removeEventListener("addedToStage",k(this,this.onContainerRootAddedToStage));var b=N.getClass(a),c=this._registry.getBinding(a);null!=c&&c.handleView(a,b)},removeRootListener:function(a){a.removeEventListener("addedToStage",k(this,this.onViewAddedToStage),!0);a.removeEventListener("addedToStage",k(this,this.onContainerRootAddedToStage))},
addView:function(a){var b=N.getClass(a).__name__;if(!this._filter.match(b)){b=N.getClass(a);for(var c=this._registry.findParentBinding(a);null!=c;)c.handleView(a,b),c=c.get_parent()}},__class__:Dt};var gk=function(a){this._handlers=[];this.containers=[];this._registry=a;L.call(this)};g["robotlegs.bender.extensions.viewManager.impl.ViewManager"]=gk;gk.__name__="robotlegs.bender.extensions.viewManager.impl.ViewManager";gk.__interfaces__=[$d,ce];gk.__super__=L;gk.prototype=r(L.prototype,{containers:null,
get_containers:function(){return this.containers},_handlers:null,_registry:null,addContainer:function(a){if(0!=this.validContainer(a)){this.get_containers().push(a);for(var b=0,c=this._handlers;b<c.length;){var d=c[b];++b;this._registry.addContainer(a).addHandler(d)}this.dispatchEvent(new Ke(Ke.CONTAINER_ADD,a))}},removeContainer:function(a){var b=this.get_containers().indexOf(a);if(-1!=b){this.get_containers().splice(b,1);b=this._registry.getBinding(a);for(var c=0,d=this._handlers;c<d.length;){var e=
d[c];++c;b.removeHandler(e)}this.dispatchEvent(new Ke(Ke.CONTAINER_REMOVE,a))}},addViewHandler:function(a){if(-1==this._handlers.indexOf(a)){this._handlers.push(a);for(var b=0,c=this.get_containers();b<c.length;){var d=c[b];++b;this._registry.addContainer(d).addHandler(a)}this.dispatchEvent(new Ke(Ke.HANDLER_ADD,null,a))}},removeViewHandler:function(a){var b=this._handlers.indexOf(a);if(-1!=b){this._handlers.splice(b,1);b=0;for(var c=this.get_containers();b<c.length;){var d=c[b];++b;this._registry.getBinding(d).removeHandler(a)}this.dispatchEvent(new Ke(Ke.HANDLER_REMOVE,
null,a))}},removeAllHandlers:function(){for(var a=0,b=this.get_containers();a<b.length;){var c=b[a];++a;c=this._registry.getBinding(c);for(var d=0,e=this._handlers;d<e.length;){var f=e[d];++d;c.removeHandler(f)}}},validContainer:function(a){for(var b=0,c=this.get_containers();b<c.length;){var d=c[b];++b;if(a==d)return!1;if(d.contains(a)||a.contains(d))throw u.thrown("Containers can not be nested");}return!0},__class__:gk,__properties__:{get_containers:"get_containers"}});var Ke=function(a,b,c){W.call(this,
a);this.container=b;this.handler=c};g["robotlegs.bender.extensions.viewManager.impl.ViewManagerEvent"]=Ke;Ke.__name__="robotlegs.bender.extensions.viewManager.impl.ViewManagerEvent";Ke.__super__=W;Ke.prototype=r(W.prototype,{container:null,handler:null,clone:function(){return new Ke(this.type,this.container,this.handler)},__class__:Ke});var to=function(){};g["robotlegs.bender.extensions.viewProcessorMap.ViewProcessorMapExtension"]=to;to.__name__="robotlegs.bender.extensions.viewProcessorMap.ViewProcessorMapExtension";
to.__interfaces__=[be];to.prototype={_injector:null,_viewProcessorMap:null,_viewManager:null,_viewProcessorFactory:null,extend:function(a){a.beforeInitializing(k(this,this.beforeInitializing));a.beforeDestroying(k(this,this.beforeDestroying));a.whenDestroying(k(this,this.whenDestroying));this._injector=a.get_injector();this._injector.map(oi).toValue(new Fr(this._injector.createChild()));this._injector.map(ij).toSingleton(yl)},beforeInitializing:function(){this._viewProcessorMap=this._injector.getInstance(ij);
this._viewProcessorFactory=this._injector.getInstance(oi);this._injector.satisfiesDirectly(ce)&&(this._viewManager=this._injector.getInstance(ce),this._viewManager.addViewHandler(N.__cast(this._viewProcessorMap,li)))},beforeDestroying:function(){this._viewProcessorFactory.runAllUnprocessors();this._injector.satisfiesDirectly(ce)&&(this._viewManager=this._injector.getInstance(ce),this._viewManager.removeViewHandler(N.__cast(this._viewProcessorMap,li)))},whenDestroying:function(){this._injector.satisfiesDirectly(ij)&&
this._injector.unmap(ij);this._injector.satisfiesDirectly(oi)&&this._injector.unmap(oi)},__class__:to};var ij=function(){};g["robotlegs.bender.extensions.viewProcessorMap.api.IViewProcessorMap"]=ij;ij.__name__="robotlegs.bender.extensions.viewProcessorMap.api.IViewProcessorMap";ij.__isInterface__=!0;ij.prototype={mapMatcher:null,map:null,unmapMatcher:null,unmap:null,process:null,unprocess:null,__class__:ij};var Gr=function(a){$e.call(this,a)};g["robotlegs.bender.extensions.viewProcessorMap.api.ViewProcessorMapError"]=
Gr;Gr.__name__="robotlegs.bender.extensions.viewProcessorMap.api.ViewProcessorMapError";Gr.__super__=$e;Gr.prototype=r($e.prototype,{__class__:Gr});var Hr=function(){};g["robotlegs.bender.extensions.viewProcessorMap.dsl.IViewProcessorMapper"]=Hr;Hr.__name__="robotlegs.bender.extensions.viewProcessorMap.dsl.IViewProcessorMapper";Hr.__isInterface__=!0;Hr.prototype={toProcess:null,toInjection:null,toNoProcess:null,__class__:Hr};var Ir=function(){};g["robotlegs.bender.extensions.viewProcessorMap.dsl.IViewProcessorMapping"]=
Ir;Ir.__name__="robotlegs.bender.extensions.viewProcessorMap.dsl.IViewProcessorMapping";Ir.__isInterface__=!0;Ir.prototype={get_matcher:null,get_processor:null,set_processor:null,get_processorClass:null,get_guards:null,get_hooks:null,matcher:null,processorClass:null,guards:null,hooks:null,__class__:Ir,__properties__:{get_hooks:"get_hooks",get_guards:"get_guards",get_processorClass:"get_processorClass",set_processor:"set_processor",get_processor:"get_processor",get_matcher:"get_matcher"}};var Jr=function(){};
g["robotlegs.bender.extensions.viewProcessorMap.dsl.IViewProcessorMappingConfig"]=Jr;Jr.__name__="robotlegs.bender.extensions.viewProcessorMap.dsl.IViewProcessorMappingConfig";Jr.__isInterface__=!0;Jr.prototype={withGuards:null,withHooks:null,__class__:Jr};var Mn=function(){};g["robotlegs.bender.extensions.viewProcessorMap.dsl.IViewProcessorUnmapper"]=Mn;Mn.__name__="robotlegs.bender.extensions.viewProcessorMap.dsl.IViewProcessorUnmapper";Mn.__isInterface__=!0;Mn.prototype={fromProcess:null,fromNoProcess:null,
fromInjection:null,fromAll:null,__class__:Mn};var oi=function(){};g["robotlegs.bender.extensions.viewProcessorMap.impl.IViewProcessorFactory"]=oi;oi.__name__="robotlegs.bender.extensions.viewProcessorMap.impl.IViewProcessorFactory";oi.__isInterface__=!0;oi.prototype={runProcessors:null,runUnprocessors:null,runAllUnprocessors:null,__class__:oi};var Nn=function(){};g["robotlegs.bender.extensions.viewProcessorMap.impl.IViewProcessorViewHandler"]=Nn;Nn.__name__="robotlegs.bender.extensions.viewProcessorMap.impl.IViewProcessorViewHandler";
Nn.__isInterface__=!0;Nn.prototype={addMapping:null,removeMapping:null,processItem:null,unprocessItem:null,__class__:Nn};var Kr=function(){};g["robotlegs.bender.extensions.viewProcessorMap.impl.NullProcessor"]=Kr;Kr.__name__="robotlegs.bender.extensions.viewProcessorMap.impl.NullProcessor";Kr.prototype={process:function(a,b,c){},unprocess:function(a,b,c){},__class__:Kr};var Lr=function(){};g["robotlegs.bender.extensions.viewProcessorMap.impl.NullViewProcessorUnmapper"]=Lr;Lr.__name__="robotlegs.bender.extensions.viewProcessorMap.impl.NullViewProcessorUnmapper";
Lr.__interfaces__=[Mn];Lr.prototype={fromProcess:function(a){},fromAll:function(){},fromNoProcess:function(){},fromInjection:function(){},__class__:Lr};var Mr=function(){this._injectedObjects=new da};g["robotlegs.bender.extensions.viewProcessorMap.impl.ViewInjectionProcessor"]=Mr;Mr.__name__="robotlegs.bender.extensions.viewProcessorMap.impl.ViewInjectionProcessor";Mr.prototype={_injectedObjects:null,process:function(a,b,c){b=this._injectedObjects;var d=Kb.instanceID(a);b.h[d]||this.injectAndRemember(a,
c)},unprocess:function(a,b,c){},injectAndRemember:function(a,b){b.injectInto(a);b=this._injectedObjects;var c=Kb.instanceID(a);b.h[c]=a},__class__:Mr};var Fr=function(a){this._listenersByView=new da;this._injector=a};g["robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorFactory"]=Fr;Fr.__name__="robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorFactory";Fr.__interfaces__=[oi];Fr.prototype={_injector:null,_listenersByView:null,runProcessors:function(a,b,c){this.createRemovedListener(a,
b,c);for(var d,e=0;e<c.length;){var f=c[e];++e;d=f.matcher;this.mapTypeForFilterBinding(d,b,a);this.runProcess(a,b,f);this.unmapTypeForFilterBinding(d,b,a)}},runUnprocessors:function(a,b,c){for(var d=0;d<c.length;){var e=c[d];++d;null==e.processor&&(e.processor=this.createProcessor(e.processorClass));e.processor.unprocess(a,b,this._injector)}},runAllUnprocessors:function(){for(var a=this._listenersByView.h,b=Object.keys(a),c=b.length,d=0;d<c;){var e=a[b[d++]];e=N.__cast(e,Array);for(var f=0,h=e.length;f<
h;){var l=f++;if(J.isFunction(e[l]))(0,e[l])(null)}}},runProcess:function(a,b,c){pr.call(c.get_guards(),this._injector)&&(null==c.get_processor()&&c.set_processor(this.createProcessor(c.get_processorClass())),qr.call(c.get_hooks(),this._injector),c.get_processor().process(a,b,this._injector))},createProcessor:function(a){0==this._injector.hasMapping(a)&&this._injector.map(a).asSingleton();try{return this._injector.getInstance(a)}catch(b){wa.lastError=b;if(u.caught(b).unwrap()instanceof rn)throw a=
"The view processor "+B.string(a)+" has not been mapped in the injector, and it is not possible to instantiate an interface. Please map a concrete type against this interface.",u.thrown(new Gr(a));throw b;}},mapTypeForFilterBinding:function(a,b,c){b=this.requiredTypesFor(a,b);for(var d=0;d<b.length;)a=b[d],++d,this._injector.map(a).toValue(c)},unmapTypeForFilterBinding:function(a,b,c){b=this.requiredTypesFor(a,b);for(c=0;c<b.length;)a=b[c],++c,this._injector.hasDirectMapping(a)&&this._injector.unmap(a)},
requiredTypesFor:function(a,b){a=a.get_allOfTypes().concat(a.get_anyOfTypes());-1==a.indexOf(b)&&a.push(b);return a},createRemovedListener:function(a,b,c){(new Et).init(this._listenersByView,k(this,this.runUnprocessors),k(this,this.removeHandlerFromView),a,b,c)},removeHandlerFromView:function(a,b){var c=this._listenersByView;var d=Kb.instanceID(a);c.h[d]?(c=this._listenersByView,d=Kb.instanceID(a),d=0<c.h[d].length):d=!1;d&&(c=this._listenersByView,d=Kb.instanceID(a),b=c.h[d].indexOf(b),c=this._listenersByView,
d=Kb.instanceID(a),c.h[d].splice(b,1),c=this._listenersByView,d=Kb.instanceID(a),0==c.h[d].length&&(c=this._listenersByView,d=Kb.instanceID(a),a=c,Object.prototype.hasOwnProperty.call(a.h,d)&&delete a.h[d]))},__class__:Fr};var Et=function(){};g["robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorFactoryCreateRemovedListener"]=Et;Et.__name__="robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorFactoryCreateRemovedListener";Et.prototype={_listenersByView:null,view:null,type:null,
processorMappings:null,runUnprocessors:null,removeHandlerFromView:null,init:function(a,b,c,d,e,f){this.removeHandlerFromView=c;this.runUnprocessors=b;this.processorMappings=f;this.type=e;this.view=d;this._listenersByView=a;d instanceof ka&&(b=Kb.instanceID(d),null==a.h[b]&&(b=Kb.instanceID(d),a.h[b]=[]),b=Kb.instanceID(d),a.h[b].push(k(this,this.handler)),N.__cast(d,ka).addEventListener("removedFromStage",k(this,this.handler),!1,0,!0))},handler:function(a){this.runUnprocessors(this.view,this.type,
this.processorMappings);N.__cast(this.view,ka).removeEventListener("removedFromStage",k(this,this.handler));this.removeHandlerFromView(this.view,k(this,this.handler))},__class__:Et};var yl=function(a,b){this.NULL_UNMAPPER=new Lr;this._mappers=new da;this._handler=null!=b?b:new Nr(a)};g["robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorMap"]=yl;yl.__name__="robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorMap";yl.__interfaces__=[li,ij,$d];yl.prototype={_mappers:null,_handler:null,
NULL_UNMAPPER:null,mapMatcher:function(a){var b=this._mappers,c=a.createTypeFilter().get_descriptor();if(null==b.h[c]){b=this._mappers;c=a.createTypeFilter().get_descriptor();var d=this.createMapper(a);b.h[c]=d}b=this._mappers;c=a.createTypeFilter().get_descriptor();return b.h[c]},map:function(a){a=(new hj).allOf([a]);return this.mapMatcher(a)},unmapMatcher:function(a){var b=this._mappers,c=a.createTypeFilter().get_descriptor();return null!=b.h[c]?(b=this._mappers,c=a.createTypeFilter().get_descriptor(),
b.h[c]):this.NULL_UNMAPPER},unmap:function(a){a=(new hj).allOf([a]);return this.unmapMatcher(a)},process:function(a){var b=N.getClass(a);this._handler.processItem(a,b)},unprocess:function(a){var b=N.getClass(a);this._handler.unprocessItem(a,b)},handleView:function(a,b){this._handler.processItem(a,b)},createMapper:function(a){return new Or(a.createTypeFilter(),this._handler)},__class__:yl};var Or=function(a,b,c){this._mappings=new da;this._handler=b;this._matcher=a;this._logger=c};g["robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorMapper"]=
Or;Or.__name__="robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorMapper";Or.__interfaces__=[Mn,Hr];Or.prototype={_mappings:null,_handler:null,_matcher:null,_logger:null,toProcess:function(a){var b=this._mappings.h[a];return null!=b?this.overwriteMapping(b,a):this.createMapping(a)},toInjection:function(){return this.toProcess(Mr)},toNoProcess:function(){return this.toProcess(Kr)},fromProcess:function(a){a=this._mappings.h[a];null!=a&&this.deleteMapping(a)},fromAll:function(){for(var a=
this._mappings.h,b=Object.keys(a),c=b.length,d=0;d<c;){var e=a[b[d++]];this.fromProcess(e)}},fromNoProcess:function(){this.fromProcess(Kr)},fromInjection:function(){this.fromProcess(Mr)},createMapping:function(a){var b=new Pr(this._matcher,a);this._handler.addMapping(b);this._mappings.h[a]=b;null!=this._logger&&this._logger.debug("{0} mapped to {1}",[this._matcher,b]);return b},deleteMapping:function(a){this._handler.removeMapping(a);var b=this._mappings,c=a.get_processor();Object.prototype.hasOwnProperty.call(b.h,
c)&&delete b.h[c];null!=this._logger&&this._logger.debug("{0} unmapped from {1}",[this._matcher,a])},overwriteMapping:function(a,b){null!=this._logger&&this._logger.warn('{0} is already mapped to {1}.\nIf you have overridden this mapping intentionally you can use "unmap()" prior to your replacement mapping in order to avoid seeing this message.\n',[this._matcher,a]);this.deleteMapping(a);return this.createMapping(b)},__class__:Or};var Pr=function(a,b){this._hooks=[];this._guards=[];this._matcher=
a;this.setProcessor(b)};g["robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorMapping"]=Pr;Pr.__name__="robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorMapping";Pr.__interfaces__=[Jr,Ir];Pr.prototype={_matcher:null,matcher:null,get_matcher:function(){return this._matcher},_processor:null,get_processor:function(){return this._processor},set_processor:function(a){return this._processor=a},_processorClass:null,processorClass:null,get_processorClass:function(){return this._processorClass},
_guards:null,guards:null,get_guards:function(){return this._guards},_hooks:null,hooks:null,get_hooks:function(){return this._hooks},withGuards:function(a,b){if(null!=a)for(var c=0,d=a.length;c<d;){var e=c++;this._guards.push(a[e])}null!=b&&this._guards.push(b);return this},withHooks:function(a,b){if(null!=a)for(var c=0,d=a.length;c<d;){var e=c++;this._hooks.push(a[e])}null!=b&&this._hooks.push(b);return this},toString:function(){return"Processor "+B.string(this._processor)},setProcessor:function(a){N.__instanceof(a,
Gd)?this._processorClass=N.__cast(a,Gd):(this._processor=a,this._processorClass=N.getClass(this._processor))},__class__:Pr,__properties__:{get_hooks:"get_hooks",get_guards:"get_guards",get_processorClass:"get_processorClass",set_processor:"set_processor",get_processor:"get_processor",get_matcher:"get_matcher"}};var Nr=function(a){this._knownMappings=new da;this._mappings=[];this._factory=a};g["robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorViewHandler"]=Nr;Nr.__name__="robotlegs.bender.extensions.viewProcessorMap.impl.ViewProcessorViewHandler";
Nr.__interfaces__=[Nn];Nr.prototype={_mappings:null,_knownMappings:null,_factory:null,addMapping:function(a){-1<this._mappings.indexOf(a)||(this._mappings.push(a),this.flushCache())},removeMapping:function(a){a=this._mappings.indexOf(a);-1!=a&&(this._mappings.splice(a,1),this.flushCache())},processItem:function(a,b){var c=this.getInterestedMappingsFor(a,b);null!=c&&this._factory.runProcessors(a,b,c)},unprocessItem:function(a,b){var c=this.getInterestedMappingsFor(a,b);null!=c&&this._factory.runUnprocessors(a,
b,c)},flushCache:function(){this._knownMappings=new da},getInterestedMappingsFor:function(a,b){var c=Kb.classID(b);if(0==this._knownMappings.h[c])return null;if(null==this._knownMappings.h[c]){this._knownMappings.h[c]=!1;for(var d=0,e=this._mappings;d<e.length;)b=e[d],++d,b.matcher.matches(a)&&(null==this._knownMappings.h[c]&&(this._knownMappings.h[c]=[]),this._knownMappings.h[c].push(b));if(0==this._knownMappings.h[c])return null}return N.__cast(this._knownMappings.h[c],Array)},__class__:Nr};var ik=
function(){};g["robotlegs.bender.extensions.vigilance.MetadataChecker"]=ik;ik.__name__="robotlegs.bender.extensions.vigilance.MetadataChecker";ik.__interfaces__=[$d];ik.prototype={context:null,check:function(){if(null==this.context)throw u.thrown(new On('It looks like custom metadata is being ignored by your compiler. If you\'re compiling with the Flash IDE you need to open your "Publish Settings" and select "Publish SWC". See: https://github.com/robotlegs/robotlegs-framework/wiki/Common-Problems'));
},__class__:ik};var lo=function(){this._messageParser=new wr};g["robotlegs.bender.extensions.vigilance.VigilanceExtension"]=lo;lo.__name__="robotlegs.bender.extensions.vigilance.VigilanceExtension";lo.__interfaces__=[tl,be];lo.prototype={_messageParser:null,extend:function(a){a.get_injector().instantiateUnmapped(ik).check();a.addLogTarget(this);a.get_injector().addEventListener(Lc.MAPPING_OVERRIDE,k(this,this.mappingOverrideHandler))},log:function(a,b,c,d,e){za.gte(hi.WARN,b)&&new On(this._messageParser.parseMessage(d,
e))},mappingOverrideHandler:function(a){new Qd("Injector mapping override for type "+B.string(a.mappedType)+" with name "+a.mappedName)},__class__:lo};var On=function(a){$e.call(this,a)};g["robotlegs.bender.extensions.vigilance.VigilantError"]=On;On.__name__="robotlegs.bender.extensions.vigilance.VigilantError";On.__super__=$e;On.prototype=r($e.prototype,{__class__:On});var Au=function(){};g["robotlegs.bender.framework.api.IBundle"]=Au;Au.__name__="robotlegs.bender.framework.api.IBundle";Au.__isInterface__=
!0;Au.__interfaces__=[be];var jj=function(){};g["robotlegs.bender.framework.api.IInjector"]=jj;jj.__name__="robotlegs.bender.framework.api.IInjector";jj.__isInterface__=!0;jj.__interfaces__=[Y];jj.prototype={get_parent:null,set_parent:null,get_applicationDomain:null,set_applicationDomain:null,get_fallbackProvider:null,set_fallbackProvider:null,get_blockParentFallbackProvider:null,set_blockParentFallbackProvider:null,applicationDomain:null,addTypeDescription:null,getTypeDescription:null,hasMapping:null,
hasDirectMapping:null,map:null,unmap:null,satisfies:null,satisfiesDirectly:null,getMapping:null,injectInto:null,getInstance:null,getOrCreateNewInstance:null,instantiateUnmapped:null,destroyInstance:null,teardown:null,createChild:null,__class__:jj,__properties__:{set_blockParentFallbackProvider:"set_blockParentFallbackProvider",get_blockParentFallbackProvider:"get_blockParentFallbackProvider",set_fallbackProvider:"set_fallbackProvider",get_fallbackProvider:"get_fallbackProvider",set_applicationDomain:"set_applicationDomain",
get_applicationDomain:"get_applicationDomain",set_parent:"set_parent",get_parent:"get_parent"}};var Pn=function(){};g["robotlegs.bender.framework.api.ILifecycle"]=Pn;Pn.__name__="robotlegs.bender.framework.api.ILifecycle";Pn.__isInterface__=!0;Pn.__interfaces__=[Y];Pn.prototype={get_state:null,get_target:null,get_uninitialized:null,get_initialized:null,get_active:null,get_suspended:null,get_destroyed:null,initialize:null,suspend:null,resume:null,destroy:null,beforeInitializing:null,whenInitializing:null,
afterInitializing:null,beforeSuspending:null,whenSuspending:null,afterSuspending:null,beforeResuming:null,whenResuming:null,afterResuming:null,beforeDestroying:null,whenDestroying:null,afterDestroying:null,__class__:Pn};var Bn=function(){};g["robotlegs.bender.framework.api.ILogger"]=Bn;Bn.__name__="robotlegs.bender.framework.api.ILogger";Bn.__isInterface__=!0;Bn.prototype={debug:null,info:null,warn:null,error:null,fatal:null,__class__:Bn};var Xg=function(a){$e.call(this,a)};g["robotlegs.bender.framework.api.LifecycleError"]=
Xg;Xg.__name__="robotlegs.bender.framework.api.LifecycleError";Xg.__super__=$e;Xg.prototype=r($e.prototype,{__class__:Xg});var Pc=function(){};g["robotlegs.bender.framework.api.LifecycleState"]=Pc;Pc.__name__="robotlegs.bender.framework.api.LifecycleState";var hi=function(){};g["robotlegs.bender.framework.api.LogLevel"]=hi;hi.__name__="robotlegs.bender.framework.api.LogLevel";var th=function(a,b){W.call(this,a);this._instance=b};g["robotlegs.bender.framework.api.PinEvent"]=th;th.__name__="robotlegs.bender.framework.api.PinEvent";
th.__super__=W;th.prototype=r(W.prototype,{_instance:null,instance:null,clone:function(){return new th(this.type,this._instance)},__class__:th});var qr=function(){};g["robotlegs.bender.framework.impl.ApplyHooks"]=qr;qr.__name__="robotlegs.bender.framework.impl.ApplyHooks";qr.call=function(a,b){for(var c=0;c<a.length;){var d=a[c];++c;J.isFunction(d)?d():(N.__instanceof(d,Gd)&&(d=null!=b?b.instantiateUnmapped(N.__cast(d,Gd)):wb.createInstance(d,[])),d.hook())}};var Qr=function(){};g["robotlegs.bender.framework.impl.ClassMatcher"]=
Qr;Qr.__name__="robotlegs.bender.framework.impl.ClassMatcher";Qr.__interfaces__=[ek];Qr.prototype={matches:function(a){return N.__instanceof(a,Gd)},__class__:Qr};var Gt=function(a){this._initialized=!1;this._queue=[];this._configs=new da;this._objectProcessor=new Ft;this._context=a;this._injector=a.get_injector();this._logger=a.getLogger(this);this.addConfigHandler(new Qr,k(this,this.handleClass));this.addConfigHandler(new Rr,k(this,this.handleObject));a.addEventListener(Za.INITIALIZE,k(this,this.initialize),
!1,-100)};g["robotlegs.bender.framework.impl.ConfigManager"]=Gt;Gt.__name__="robotlegs.bender.framework.impl.ConfigManager";Gt.prototype={_objectProcessor:null,_configs:null,_queue:null,_injector:null,_logger:null,_initialized:null,_context:null,addConfig:function(a){if(null!=a){N.__instanceof(a,Gd)||J.setProperty(a,"constructor",N.getClass(a));var b=Kb.instanceID(a);null==this._configs.h[b]&&(this._configs.h[b]=!0,this._objectProcessor.processObject(a))}},addConfigHandler:function(a,b){this._objectProcessor.addObjectHandler(a,
b)},destroy:function(){this._context.removeEventListener(Za.INITIALIZE,k(this,this.initialize));this._objectProcessor.removeAllHandlers();this._queue=[];for(var a=this._configs.h,b=Object.keys(a),c=b.length,d=0;d<c;){var e=a[b[d++]],f=this._configs;e=Kb.clearInstanceID(e);Object.prototype.hasOwnProperty.call(f.h,e)&&delete f.h[e]}},initialize:function(a){0==this._initialized&&(this._initialized=!0,this.processQueue())},handleClass:function(a){this._initialized?(this._logger.debug("Already initialized. Instantiating config class {0}",
[a]),this.processClass(a)):(this._logger.debug("Not yet initialized. Queuing config class {0}",[a]),this._queue.push(a))},handleObject:function(a){this._initialized?(this._logger.debug("Already initialized. Injecting into config object {0}",[a]),this.processObject(a)):(this._logger.debug("Not yet initialized. Queuing config object {0}",[a]),this._queue.push(a))},processQueue:function(){for(var a=0,b=this._queue;a<b.length;){var c=b[a];++a;if(N.__instanceof(c,Gd))this._logger.debug("Now initializing. Instantiating config class {0}",
[c.__name__]),this.processClass(N.__cast(c,Gd));else{var d=N.getClass(c);this._logger.debug("Now initializing. Injecting into config object {0}",[d.__name__]);this.processObject(c)}}this._queue=[]},processClass:function(a){this.processObject(this._injector.getOrCreateNewInstance(a),!1)},processObject:function(a,b){null==b&&(b=!0);null!=a&&(b&&this._injector.injectInto(a),a=k(a,a.configure),null!=a&&a())},__class__:Gt};var xk=function(){this._children=[];this._logManager=new Sr;this._uid=Kb.create(xk);
this._injector=new kj;this.setup();L.call(this)};g["robotlegs.bender.framework.impl.Context"]=xk;xk.__name__="robotlegs.bender.framework.impl.Context";xk.__interfaces__=[Wg];xk.__super__=L;xk.prototype=r(L.prototype,{_injector:null,injector:null,get_injector:function(){return this._injector},get_logLevel:function(){return this._logManager.get_logLevel()},set_logLevel:function(a){this._logManager.set_logLevel(a);return a},state:null,get_state:function(){return this._lifecycle.get_state()},uninitialized:null,
get_uninitialized:function(){return this._lifecycle.get_uninitialized()},initialized:null,get_initialized:function(){return this._lifecycle.get_initialized()},active:null,get_active:function(){return this._lifecycle.get_active()},suspended:null,get_suspended:function(){return this._lifecycle.get_suspended()},destroyed:null,get_destroyed:function(){return this._lifecycle.get_destroyed()},_uid:null,_logManager:null,_children:null,_pin:null,_lifecycle:null,_configManager:null,_extensionInstaller:null,
_logger:null,initialize:function(a){this._lifecycle.initialize(a)},suspend:function(a){this._lifecycle.suspend(a)},resume:function(a){this._lifecycle.resume(a)},destroy:function(a){this._lifecycle.destroy(a)},beforeInitializing:function(a){this._lifecycle.beforeInitializing(a);return this},whenInitializing:function(a){this._lifecycle.whenInitializing(a);return this},afterInitializing:function(a){this._lifecycle.afterInitializing(a);return this},beforeSuspending:function(a){this._lifecycle.beforeSuspending(a);
return this},whenSuspending:function(a){this._lifecycle.whenSuspending(a);return this},afterSuspending:function(a){this._lifecycle.afterSuspending(a);return this},beforeResuming:function(a){this._lifecycle.beforeResuming(a);return this},whenResuming:function(a){this._lifecycle.whenResuming(a);return this},afterResuming:function(a){this._lifecycle.afterResuming(a);return this},beforeDestroying:function(a){this._lifecycle.beforeDestroying(a);return this},whenDestroying:function(a){this._lifecycle.whenDestroying(a);
return this},afterDestroying:function(a){this._lifecycle.afterDestroying(a);return this},install:function(a,b,c,d,e,f,h,l,m,g){this._extensionInstaller.install(a);this._extensionInstaller.install(b);this._extensionInstaller.install(c);this._extensionInstaller.install(d);this._extensionInstaller.install(e);this._extensionInstaller.install(f);this._extensionInstaller.install(h);this._extensionInstaller.install(l);this._extensionInstaller.install(m);this._extensionInstaller.install(g);return this},configure:function(a,
b,c,d,e,f,h,l,m,g){this._configManager.addConfig(a);this._configManager.addConfig(b);this._configManager.addConfig(c);this._configManager.addConfig(d);this._configManager.addConfig(e);this._configManager.addConfig(f);this._configManager.addConfig(h);this._configManager.addConfig(l);this._configManager.addConfig(m);this._configManager.addConfig(g);return this},addChild:function(a){-1==this._children.indexOf(a)&&(this._logger.info("Adding child context {0}",[a]),a.get_uninitialized()&&this._logger.warn("Child context {0} must be uninitialized",
[a]),null!=a.get_injector().get_parent()&&this._logger.warn("Child context {0} must not have a parent Injector",[a]),this._children.push(a),a.get_injector().set_parent(this.get_injector()),a.addEventListener(Za.POST_DESTROY,k(this,this.onChildDestroy)));return this},removeChild:function(a){var b=this._children.indexOf(a);-1<b?(this._logger.info("Removing child context {0}",[a]),this._children.splice(b,1),a.get_injector().set_parent(null),a.removeEventListener(Za.POST_DESTROY,k(this,this.onChildDestroy))):
this._logger.warn("Child context {0} must be a child of {1}",[a,this]);return this},addConfigHandler:function(a,b){this._configManager.addConfigHandler(a,b);return this},getLogger:function(a){return this._logManager.getLogger(a)},addLogTarget:function(a){this._logManager.addLogTarget(a);return this},detain:function(a){if(a instanceof Array)for(var b=0;b<a.length;){var c=a[b];++b;this._pin.detain(c)}else this._pin.detain(a);return this},release:function(a){if(a instanceof Array)for(var b=0;b<a.length;){var c=
a[b];++b;this._pin.release(c)}else this._pin.release(a);return this},toString:function(){return this._uid},setup:function(){this._injector.map(jj).toValue(this._injector);this._injector.map(Wg).toValue(this);this._logger=this._logManager.getLogger(this);this._pin=new Ht(this);this._lifecycle=new Tr(this);this._configManager=new Gt(this);this._extensionInstaller=new It(this);this.beforeInitializing(k(this,this.beforeInitializingCallback));this.afterInitializing(k(this,this.afterInitializingCallback));
this.beforeDestroying(k(this,this.beforeDestroyingCallback));this.afterDestroying(k(this,this.afterDestroyingCallback))},beforeInitializingCallback:function(){this._logger.info("Initializing...")},afterInitializingCallback:function(){this._logger.info("Initialize complete")},beforeDestroyingCallback:function(){this._logger.info("Destroying...")},afterDestroyingCallback:function(){this._extensionInstaller.destroy();this._configManager.destroy();this._pin.releaseAll();this._injector.teardown();this.removeChildren();
this._logger.info("Destroy complete");this._logManager.removeAllTargets()},onChildDestroy:function(a){this.removeChild(N.__cast(a.target,Wg))},removeChildren:function(){for(var a=0,b=this._children;a<b.length;){var c=b[a];++a;this.removeChild(c)}this._children=[]},__class__:xk,__properties__:{get_destroyed:"get_destroyed",get_suspended:"get_suspended",get_active:"get_active",get_initialized:"get_initialized",get_uninitialized:"get_uninitialized",get_state:"get_state",set_logLevel:"set_logLevel",get_logLevel:"get_logLevel",
get_injector:"get_injector"}});var It=function(a){this._classes=new ea;this._context=a;this._logger=this._context.getLogger(this)};g["robotlegs.bender.framework.impl.ExtensionInstaller"]=It;It.__name__="robotlegs.bender.framework.impl.ExtensionInstaller";It.prototype={_classes:null,_context:null,_logger:null,install:function(a){if(null!=a)if(N.__instanceof(a,Gd)){if(1!=this._classes.h[a.__id__]){a=wb.createInstance(a,[]);var b=N.getClass(a);1!=this._classes.h[b.__id__]&&(this._classes.set(b,!0),this._logger.debug("Installing extension {0}",
[b.__name__]),null!=a.extend&&a.extend(this._context))}}else b=N.getClass(a),1!=this._classes.h[b.__id__]&&(this._classes.set(b,!0),this._logger.debug("Installing extension {0}",[b.__name__]),null!=a.extend&&a.extend(this._context))},installClass:function(a){if(1!=this._classes.h[a.__id__]){a=wb.createInstance(a,[]);var b=N.getClass(a);1!=this._classes.h[b.__id__]&&(this._classes.set(b,!0),this._logger.debug("Installing extension {0}",[b.__name__]),null!=a.extend&&a.extend(this._context))}},installInstance:function(a){var b=
N.getClass(a);1!=this._classes.h[b.__id__]&&(this._classes.set(b,!0),this._logger.debug("Installing extension {0}",[b.__name__]),null!=a.extend&&a.extend(this._context))},destroy:function(){for(var a=this._classes.keys();a.hasNext();){var b=a.next();this._classes.remove(b)}},__class__:It};var pr=function(){};g["robotlegs.bender.framework.impl.GuardsApprove"]=pr;pr.__name__="robotlegs.bender.framework.impl.GuardsApprove";pr.call=function(a,b){for(var c=0;c<a.length;){var d=a[c];++c;if(J.isFunction(d)){if(0==
d())return!1}else{if(N.__instanceof(d,Gd)){var e=d;d=null!=b?b.instantiateUnmapped(e):wb.createInstance(d,[])}if(null!=d&&0==d.approve())return!1}}return!0};var Tr=function(a){this._reversePriority=0;this._reversedEventTypes=new da;this._state=Pc.UNINITIALIZED;this._target=a;N.__implements(a,Y)?this._dispatcher=N.__cast(a,Y):this._dispatcher=new L(this);this.configureTransitions()};g["robotlegs.bender.framework.impl.Lifecycle"]=Tr;Tr.__name__="robotlegs.bender.framework.impl.Lifecycle";Tr.__interfaces__=
[Pn];Tr.prototype={_state:null,state:null,get_state:function(){return this._state},_target:null,target:null,get_target:function(){return this._target},uninitialized:null,get_uninitialized:function(){return this._state==Pc.UNINITIALIZED},initialized:null,get_initialized:function(){return this._state!=Pc.UNINITIALIZED?this._state!=Pc.INITIALIZING:!1},active:null,get_active:function(){return this._state==Pc.ACTIVE},suspended:null,get_suspended:function(){return this._state==Pc.SUSPENDED},destroyed:null,
get_destroyed:function(){return this._state==Pc.DESTROYED},_reversedEventTypes:null,_reversePriority:null,_initialize:null,_suspend:null,_resume:null,_destroy:null,_dispatcher:null,initialize:function(a){this._initialize.enter(a)},suspend:function(a){this._suspend.enter(a)},resume:function(a){this._resume.enter(a)},destroy:function(a){this._destroy.enter(a)},beforeInitializing:function(a){this.get_uninitialized()||this.reportError(Xg.LATE_HANDLER_ERROR_MESSAGE);this._initialize.addBeforeHandler(a);
return this},whenInitializing:function(a){this.get_initialized()&&this.reportError(Xg.LATE_HANDLER_ERROR_MESSAGE);this.addEventListener(Za.INITIALIZE,this.createSyncLifecycleListener(a,!0));return this},afterInitializing:function(a){this.get_initialized()&&this.reportError(Xg.LATE_HANDLER_ERROR_MESSAGE);this.addEventListener(Za.POST_INITIALIZE,this.createSyncLifecycleListener(a,!0));return this},beforeSuspending:function(a){this._suspend.addBeforeHandler(a);return this},whenSuspending:function(a){this.addEventListener(Za.SUSPEND,
this.createSyncLifecycleListener(a));return this},afterSuspending:function(a){this.addEventListener(Za.POST_SUSPEND,this.createSyncLifecycleListener(a));return this},beforeResuming:function(a){this._resume.addBeforeHandler(a);return this},whenResuming:function(a){this.addEventListener(Za.RESUME,this.createSyncLifecycleListener(a));return this},afterResuming:function(a){this.addEventListener(Za.POST_RESUME,this.createSyncLifecycleListener(a));return this},beforeDestroying:function(a){this._destroy.addBeforeHandler(a);
return this},whenDestroying:function(a){this.addEventListener(Za.DESTROY,this.createSyncLifecycleListener(a,!0));return this},afterDestroying:function(a){this.addEventListener(Za.POST_DESTROY,this.createSyncLifecycleListener(a,!0));return this},addEventListener:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);d=this.flipPriority(a,d);this._dispatcher.addEventListener(a,b,c,d,e)},removeEventListener:function(a,b,c){null==c&&(c=!1);this._dispatcher.removeEventListener(a,b,c)},dispatchEvent:function(a){return this._dispatcher.dispatchEvent(a)},
hasEventListener:function(a){return this._dispatcher.hasEventListener(a)},willTrigger:function(a){return this._dispatcher.willTrigger(a)},setCurrentState:function(a){this._state!=a&&(this._state=a,this.dispatchEvent(new Za(Za.STATE_CHANGE)))},addReversedEventTypes:function(a){for(var b=0,c=a.length;b<c;){var d=b++;this._reversedEventTypes.h[a[d]]=!0}},configureTransitions:function(){this._initialize=(new zl(Za.PRE_INITIALIZE,this)).fromStates([Pc.UNINITIALIZED]).toStates(Pc.INITIALIZING,Pc.ACTIVE).withEvents(Za.PRE_INITIALIZE,
Za.INITIALIZE,Za.POST_INITIALIZE);this._suspend=(new zl(Za.PRE_SUSPEND,this)).fromStates([Pc.ACTIVE]).toStates(Pc.SUSPENDING,Pc.SUSPENDED).withEvents(Za.PRE_SUSPEND,Za.SUSPEND,Za.POST_SUSPEND).inReverse();this._resume=(new zl(Za.PRE_RESUME,this)).fromStates([Pc.SUSPENDED]).toStates(Pc.RESUMING,Pc.ACTIVE).withEvents(Za.PRE_RESUME,Za.RESUME,Za.POST_RESUME);this._destroy=(new zl(Za.PRE_DESTROY,this)).fromStates([Pc.SUSPENDED,Pc.ACTIVE]).toStates(Pc.DESTROYING,Pc.DESTROYED).withEvents(Za.PRE_DESTROY,
Za.DESTROY,Za.POST_DESTROY).inReverse()},flipPriority:function(a,b){return 0==b&&this._reversedEventTypes.h[a]?this._reversePriority++:b},createSyncLifecycleListener:function(a,b){null==b&&(b=!1);var c=J.getProperty(a,"length");if(1<c)throw u.thrown(new Xg(Xg.SYNC_HANDLER_ARG_MISMATCH));return(new Jt).init(a,b,c)},reportError:function(a){a=new Xg(a);if(this.hasEventListener(Za.ERROR))a=new Za(Za.ERROR,a),this.dispatchEvent(a);else throw u.thrown(a);},__class__:Tr,__properties__:{get_destroyed:"get_destroyed",
get_suspended:"get_suspended",get_active:"get_active",get_initialized:"get_initialized",get_uninitialized:"get_uninitialized",get_target:"get_target",get_state:"get_state"}};var Jt=function(){};g["robotlegs.bender.framework.impl.SyncLifecycleListener"]=Jt;Jt.__name__="robotlegs.bender.framework.impl.SyncLifecycleListener";Jt.prototype={once:null,handler:null,init:function(a,b,c){this.handler=a;this.once=b;return 1==c?k(this,this.createSyncLifecycleListenerFunction):k(this,this.createSyncLifecycleListenerFunction2)},
createSyncLifecycleListenerFunction:function(a){this.once&&N.__cast(a.target,Y).removeEventListener(a.type,k(this,this.createSyncLifecycleListenerFunction));this.handler(a.type)},createSyncLifecycleListenerFunction2:function(a){this.once&&N.__cast(a.target,Y).removeEventListener(a.type,k(this,this.createSyncLifecycleListenerFunction2));this.handler()},__class__:Jt};var zl=function(a,b){this._reverse=!1;this._callbacks=[];this._dispatcher=new Kt;this._fromStates=[];this._name=a;this._lifecycle=b};
g["robotlegs.bender.framework.impl.LifecycleTransition"]=zl;zl.__name__="robotlegs.bender.framework.impl.LifecycleTransition";zl.prototype={_fromStates:null,_dispatcher:null,_callbacks:null,_name:null,_lifecycle:null,_transitionState:null,_finalState:null,_preTransitionEvent:null,_transitionEvent:null,_postTransitionEvent:null,_reverse:null,fromStates:function(a){for(var b=0;b<a.length;){var c=a[b];++b;this._fromStates.push(c)}return this},toStates:function(a,b){this._transitionState=a;this._finalState=
b;return this},withEvents:function(a,b,c){this._preTransitionEvent=a;this._transitionEvent=b;this._postTransitionEvent=c;this._reverse&&this._lifecycle.addReversedEventTypes([a,b,c]);return this},inReverse:function(){this._reverse=!0;this._lifecycle.addReversedEventTypes([this._preTransitionEvent,this._transitionEvent,this._postTransitionEvent]);return this},addBeforeHandler:function(a){this._dispatcher.addMessageHandler(this._name,a);return this},enter:function(a){var b=this;if(this._lifecycle.get_state()==
this._finalState)null!=a&&Ur.call(a,null,this._name);else if(this._lifecycle.get_state()==this._transitionState)null!=a&&this._callbacks.push(a);else if(this.invalidTransition())null!=a&&this.reportError("Invalid transition",[a]);else{var c=this._lifecycle.get_state();null!=a&&this._callbacks.push(a);this.setState(this._transitionState);this._dispatcher.dispatchMessage(this._name,function(a){if(a)b.setState(c),b.reportError(a,b._callbacks);else{b.dispatch(b._preTransitionEvent);b.dispatch(b._transitionEvent);
b.setState(b._finalState);a=b._callbacks.concat([]);b._callbacks=[];for(var d=0;d<a.length;){var f=a[d];++d;Ur.call(f,null,b._name)}b.dispatch(b._postTransitionEvent)}},this._reverse)}},invalidTransition:function(){return 0<this._fromStates.length?-1==this._fromStates.indexOf(this._lifecycle.get_state()):!1},setState:function(a){null!=a&&""!=a&&this._lifecycle.setCurrentState(a)},dispatch:function(a){null!=a&&""!=a&&this._lifecycle.hasEventListener(a)&&this._lifecycle.dispatchEvent(new Za(a))},reportError:function(a,
b){if(this._lifecycle.hasEventListener(Za.ERROR)){var c=new Za(Za.ERROR,a);this._lifecycle.dispatchEvent(c);if(null!=b)for(c=0;c<b.length;){var d=b[c];++c;null!=d&&Ur.call(d,a,this._name)}}else throw u.thrown(a);},__class__:zl};var Sr=function(){this._targets=[];this._logLevel=hi.INFO};g["robotlegs.bender.framework.impl.LogManager"]=Sr;Sr.__name__="robotlegs.bender.framework.impl.LogManager";Sr.__interfaces__=[tl];Sr.prototype={_logLevel:null,get_logLevel:function(){return this._logLevel},set_logLevel:function(a){return this._logLevel=
a},_targets:null,getLogger:function(a){return new Vr(a,this)},addLogTarget:function(a){this._targets.push(a)},log:function(a,b,c,d,e){if(!za.gt(b,this._logLevel))for(var f=0,h=this._targets;f<h.length;){var l=h[f];++f;l.log(a,b,c,d,e)}},removeAllTargets:function(){this._targets=[]},__class__:Sr,__properties__:{set_logLevel:"set_logLevel",get_logLevel:"get_logLevel"}};var Vr=function(a,b){this._source=a;this._target=b};g["robotlegs.bender.framework.impl.Logger"]=Vr;Vr.__name__="robotlegs.bender.framework.impl.Logger";
Vr.__interfaces__=[Bn];Vr.prototype={_source:null,_target:null,debug:function(a,b){this._target.log(this._source,32,(new Date).getTime()/1E3,a,b)},info:function(a,b){this._target.log(this._source,16,(new Date).getTime()/1E3,a,b)},warn:function(a,b){this._target.log(this._source,8,(new Date).getTime()/1E3,a,b)},error:function(a,b){this._target.log(this._source,4,(new Date).getTime()/1E3,a,b)},fatal:function(a,b){this._target.log(this._source,2,(new Date).getTime()/1E3,a,b)},__class__:Vr};var Kt=function(){this._handlers=
new da};g["robotlegs.bender.framework.impl.MessageDispatcher"]=Kt;Kt.__name__="robotlegs.bender.framework.impl.MessageDispatcher";Kt.prototype={_handlers:null,addMessageHandler:function(a,b){var c=this._handlers.h[a];b=new Wr(b);null!=c?-1==c.indexOf(b)&&c.push(b):this._handlers.h[a]=[b]},hasMessageHandler:function(a){return null!=this._handlers.h[a]},removeMessageHandler:function(a,b){var c=this._handlers.h[a];b=null!=c?c.indexOf(b):-1;-1!=b&&(c.splice(b,1),0==c.length&&(c=this._handlers,Object.prototype.hasOwnProperty.call(c.h,
a)&&delete c.h[a]))},dispatchMessage:function(a,b,c){null==c&&(c=!1);var d=this._handlers.h[a];b=new Wr(b);null!=d?(d=d.concat([]),c&&d.reverse(),(new Lt(a,d,b)).run()):null!=b&&b.call(null,null)},__class__:Kt};var Lt=function(a,b,c){this._message=a;this._handlers=b;this._callback=c};g["robotlegs.bender.framework.impl.MessageRunner"]=Lt;Lt.__name__="robotlegs.bender.framework.impl.MessageRunner";Lt.prototype={_message:null,_handlers:null,_callback:null,run:function(){this.next()},next:function(){for(var a=
this,b;;){b=this._handlers.pop();if(null==b)break;if(0==b.length)b.call(null,null);else if(1==b.length)b.call(this._message,null);else{if(2==b.length){b.call(this._message,function(b){return function(c,e){b[0]||(b[0]=!0,c||0==a._handlers.length?null!=a._callback&&a._callback.call(c,a._message):a.next())}}([!1]));return}throw u.thrown("Bad handler signature");}}null!=this._callback&&this._callback.call(null,this._message)},__class__:Lt};var Wr=function(a){this.length=0;var b=null;try{b=a,this.call=
function(a,c){b()},this.length=0}catch(e){wa.lastError=e;var c=null;try{c=a,this.call=function(a,b){c(a)},this.length=1}catch(f){var d=null;try{d=a,this.call=function(a,b){d(a,b)},this.length=2}catch(h){throw u.thrown("Bad handler signature");}}}};g["robotlegs.bender.framework.impl.Callback"]=Wr;Wr.__name__="robotlegs.bender.framework.impl.Callback";Wr.prototype={call:null,length:null,__class__:Wr};var Mt=function(a,b){this._matcher=a;this._handler=b};g["robotlegs.bender.framework.impl.ObjectHandler"]=
Mt;Mt.__name__="robotlegs.bender.framework.impl.ObjectHandler";Mt.prototype={_matcher:null,_handler:null,handle:function(a){this._matcher.matches(a)&&this._handler(a)},__class__:Mt};var Rr=function(){};g["robotlegs.bender.framework.impl.ObjectMatcher"]=Rr;Rr.__name__="robotlegs.bender.framework.impl.ObjectMatcher";Rr.__interfaces__=[ek];Rr.prototype={matches:function(a){return 0==N.__instanceof(a,Gd)},__class__:Rr};var Ft=function(){this._handlers=[]};g["robotlegs.bender.framework.impl.ObjectProcessor"]=
Ft;Ft.__name__="robotlegs.bender.framework.impl.ObjectProcessor";Ft.prototype={_handlers:null,addObjectHandler:function(a,b){this._handlers.push(new Mt(a,b))},processObject:function(a){for(var b=0,c=this._handlers;b<c.length;){var d=c[b];++b;d.handle(a)}},removeAllHandlers:function(){this._handlers=[]},__class__:Ft};var Ht=function(a){this._instances=new da;this._dispatcher=a};g["robotlegs.bender.framework.impl.Pin"]=Ht;Ht.__name__="robotlegs.bender.framework.impl.Pin";Ht.prototype={_instances:null,
_dispatcher:null,detain:function(a){null==this._instances.h[a]&&(this._instances.h[a]=!0,this._dispatcher.dispatchEvent(new th(th.DETAIN,a)))},release:function(a){if(this._instances.h[a]){var b=this._instances;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];this._dispatcher.dispatchEvent(new th(th.RELEASE,a))}},releaseAll:function(){for(var a=this._instances.h,b=Object.keys(a),c=b.length,d=0;d<c;){var e=a[b[d++]];this.release(e)}},__class__:Ht};var kj=function(){Ie.call(this)};g["robotlegs.bender.framework.impl.RobotlegsInjector"]=
kj;kj.__name__="robotlegs.bender.framework.impl.RobotlegsInjector";kj.__interfaces__=[jj];kj.__super__=Ie;kj.prototype=r(Ie.prototype,{set_parent:function(a){this.set_parentInjector(N.__cast(a,kj));return N.__cast(a,jj)},get_parent:function(){return N.__cast(this.get_parentInjector(),kj)},createChild:function(a){var b=new kj;null!=a?b.set_applicationDomain(a):b.set_applicationDomain(this.get_applicationDomain());b.set_parent(this);return b},__class__:kj,__properties__:r(Ie.prototype.__properties__,
{set_parent:"set_parent",get_parent:"get_parent"})});var Ur=function(){};g["robotlegs.bender.framework.impl.SafelyCallBack"]=Ur;Ur.__name__="robotlegs.bender.framework.impl.SafelyCallBack";Ur.call=function(a,b,c){a(b,c)};var Bt=function(){};g["robotlegs.bender.framework.impl.UID"]=Bt;Bt.__name__="robotlegs.bender.framework.impl.UID";Bt.create=function(a){return Kb.create(a)};Bt.classID=function(a){return Kb.classID(a)};var Jg=function(a,b,c,d){this.coursePath=this.jackdawVersion=this.reloadToId=null;
yk.call(this);Jg.self=this;null!=a&&H.set_absoluteCoursePath(a);sa.initialize(b,c,d);this.licence.set_visible(!1);this.watermark.set_visible(!1);this.moduleEnd.set_visible(!1);this.startButton.set_visible(!1);this.header=new Al;this.addChild(this.header);this.menu=this.addChild(new Yg);this.startScreen=this.addChild(new yg);this.demoScreen=this.addChild(new lj)};g["room.Room"]=Jg;Jg.__name__="room.Room";Jg.__super__=yk;Jg.prototype=r(yk.prototype,{coursePath:null,jackdawVersion:null,reloadToId:null,
echo:null,header:null,startScreen:null,demoScreen:null,menu:null,initialize:function(){null!=this.coursePath?H.set_absoluteCoursePath(this.coursePath):H.insideApp||(this.stage.set_scaleMode(3),this.stage.align=5);this.set_scrollRect(new ha(0,0,1070,650));this.alignModuleEnd();this.initializeButtons()},initializeButtons:function(){this.HelpBtn.set_visible(!1);this.HelpBtn.addEventListener("mouseDown",k(this,this.HelpHandler));this.PrintableDocumentsBtn.set_visible(!1);this.PrintableDocumentsBtn.addEventListener("mouseDown",
k(this,this.PrintHandler));this.GlossaryBtn.set_visible(!1);this.GlossaryBtn.addEventListener("mouseDown",k(this,this.GlossaryHandler))},destroy:function(){},HelpHandler:function(a){a=new Kc(H.absoluteCoursePath+"docs/help.htm");Sa.getURL(a)},PrintHandler:function(a){a=new Kc(H.absoluteCoursePath+"docs/Printable_documents.htm");Sa.getURL(a)},GlossaryHandler:function(a){a=new Kc(H.absoluteCoursePath+"docs/glossary.htm");Sa.getURL(a)},alignModuleEnd:function(){this.moduleEnd.set_x(1070-this.moduleEnd.get_width()-
66.00863664404689);this.moduleEnd.set_y(650-this.moduleEnd.get_height())},removeIntro:function(){0<this.introHolder.get_numChildren()&&this.introHolder.removeChildAt(0)},setupLicenceLabel:function(a,b,c,d){this.licence.set_visible(!0);this.licence.bg.set_visible(!1);this.licence.bg.set_visible(!0);this.licence.label.set_htmlText("<a href=''>Course ready</a>")},__class__:Jg});var hh=function(){};g["room.RoomConfig"]=hh;hh.__name__="room.RoomConfig";hh.__interfaces__=[sl,$d];hh.prototype={injector:null,
mediatorMap:null,commandMap:null,contextView:null,configure:function(){this.injector.map(gb).asSingleton();this.injector.map(gd).asSingleton();this.injector.map(Xi).asSingleton();this.injector.map(up).asSingleton();this.injector.map(ad);this.injector.map(Le);this.injector.map(mj).asSingleton();this.injector.map(Bl).asSingleton();this.injector.map(Cl).asSingleton();this.injector.map(Dl).asSingleton();this.injector.map(El).asSingleton();this.injector.map(pi).asSingleton();this.injector.map(nj).asSingleton();
this.injector.map(Of).asSingleton();this.injector.map(Fl).asSingleton();this.injector.map(qi).asSingleton();this.injector.map(Pf).asSingleton();this.injector.map(jk).asSingleton();this.injector.map(de).asSingleton();this.injector.map(Qf).asSingleton();this.injector.map(kk).asSingleton();this.injector.map(Rf).asSingleton();this.injector.map(Gl).asSingleton();this.injector.map(Hl).asSingleton();this.injector.map(Il).asSingleton();this.injector.map(Jl).asSingleton();this.injector.map(Kl).asSingleton();
this.injector.map(Qn).asSingleton();this.injector.map(Rn).asSingleton();this.injector.map(Ll).asSingleton();this.injector.map(te).asSingleton();this.injector.map(oj).asSingleton();this.injector.map(pj).asSingleton();this.injector.map(qj).asSingleton();this.injector.map(Md).asSingleton();this.injector.map(Ml).asSingleton();this.injector.map(rj).asSingleton();this.injector.map(lk).asSingleton();this.injector.map(zg).asSingleton();this.injector.map(of).asSingleton();this.injector.map(Sf).asSingleton();
this.injector.map(oe).asSingleton();this.injector.map(ee).asSingleton();this.injector.map(Nl).asSingleton();this.injector.map(mk).asSingleton();this.injector.map(Ag).asSingleton();this.injector.map(Tf).asSingleton();this.injector.map(Ol).asSingleton();this.injector.map(Pl).asSingleton();this.injector.map(Ql).asSingleton();this.injector.map(Rl).asSingleton();this.injector.map(sj).asSingleton();this.injector.map(Sl).asSingleton();this.injector.map(tj).asSingleton();this.injector.map(af).asSingleton();
this.injector.map(nk).asSingleton();this.injector.map(ok).asSingleton();this.injector.map(uh).asSingleton();this.injector.map(Tl).asSingleton();this.mediatorMap.map(Qe).toMediator(bf);this.mediatorMap.map(Sn).toMediator(ud);this.mediatorMap.map(ed).toMediator(pf);this.mediatorMap.map(Ul).toMediator(qf);this.mediatorMap.map(Ra).toMediator(rf);this.mediatorMap.map(vh).toMediator(wh);this.mediatorMap.map(Vl).toMediator(Bg);this.mediatorMap.map(qa).toMediator(xh);this.mediatorMap.map(Wl).toMediator(yh);
this.mediatorMap.map(Xl).toMediator(cf);this.mediatorMap.map(Al).toMediator(ue);this.mediatorMap.map(uj).toMediator(Uf);this.mediatorMap.map(Yl).toMediator(Vf);this.mediatorMap.map(Yb).toMediator(Cg);this.mediatorMap.map(pk).toMediator(Sc);this.mediatorMap.map(Zl).toMediator(zh);this.mediatorMap.map(ri).toMediator(si);this.mediatorMap.map(Tn).toMediator(Dd);this.mediatorMap.map(Un).toMediator(ld);this.mediatorMap.map($l).toMediator(ti);this.mediatorMap.map(am).toMediator(ui);this.mediatorMap.map(um).toMediator(Wf);
this.mediatorMap.map(vi).toMediator(Dg);this.mediatorMap.map(Yg).toMediator(Me);this.mediatorMap.map(Zg).toMediator(Ne);this.mediatorMap.map(Vn).toMediator(vd);this.mediatorMap.map(bm).toMediator(df);this.mediatorMap.map(Wc).toMediator(wi);this.mediatorMap.map(cm).toMediator(Xf);this.mediatorMap.map(dm).toMediator(Yf);this.mediatorMap.map(Lo).toMediator(Ah);this.mediatorMap.map(Mo).toMediator(Ah);this.mediatorMap.map($g).toMediator(ah);this.mediatorMap.map(Jg).toMediator(Xc);this.mediatorMap.map(Oo).toMediator(Ah);
this.mediatorMap.map(Ro).toMediator(Ah);this.mediatorMap.map(vm).toMediator(ve);this.mediatorMap.map(em).toMediator(ef);this.mediatorMap.map(xi).toMediator(yi);this.mediatorMap.map(oc).toMediator(we);this.mediatorMap.map(fm).toMediator(bh);this.mediatorMap.map(gm).toMediator(ch);this.mediatorMap.map(hm).toMediator(Bh);this.mediatorMap.map(yg).toMediator(Eg);this.mediatorMap.map(lj).toMediator(Ch);this.mediatorMap.map(im).toMediator(md);this.mediatorMap.map(Ak).toMediator(xe);this.mediatorMap.map(Wn).toMediator(bd);
this.mediatorMap.map(wm).toMediator(zi);this.mediatorMap.map(xm).toMediator(Fg);this.mediatorMap.map(vj).toMediator(sf);this.mediatorMap.map(Ai).toMediator(Dh);this.commandMap.map(mj).toCommand(wj);this.commandMap.map(pi).toCommand(qk);this.commandMap.map(Jl).toCommand(dh);this.commandMap.map(Ml).toCommand(xj);this.commandMap.map(rj).toCommand(yj);this.commandMap.map(oe).toCommand(tf);this.commandMap.map(Kl).toCommand(zj);this.commandMap.map(Il).toCommand(Bi)},__class__:hh};var pb=y.Signal1=function(){xg.call(this);
this.defaultCallbackProps=1};g["signals.Signal1"]=pb;pb.__name__="signals.Signal1";pb.__super__=xg;pb.prototype=r(xg.prototype,{value:null,dispatch:function(a){this.requiresSort&&(this.callbacks.sort(k(this,this.sortCallbacks)),this.requiresSort=!1);this.value=a;for(var b=0;b<this.callbacks.length;)a=this.callbacks[b],0>a.repeat||a.callCount<=a.repeat?this.toTrigger.push(a):a.remove=!0,a.callCount++,++b;for(b=this.callbacks.length-1;0<=b;)a=this.callbacks[b],1==a.remove&&this.callbacks.splice(b,1),
--b;a=0;for(b=this.toTrigger.length;a<b;){var c=a++;null!=this.toTrigger[c]&&this.toTrigger[c].dispatchMethod(this.toTrigger[c].callback,this.toTrigger[c])}this.toTrigger=[];this.value=null},dispatchCallback:function(a,b){a()},dispatchCallback1:function(a,b){a(this.value)},dispatchCallback2:function(a,b){throw u.thrown("Use Signal 2");},dispatchCallback3:function(a,b){throw u.thrown("Use Signal 3");},__class__:pb});var oe=function(){pb.call(this)};g["room.signals.SetScreenIndexSignal"]=oe;oe.__name__=
"room.signals.SetScreenIndexSignal";oe.__super__=pb;oe.prototype=r(pb.prototype,{__class__:oe});var Md=function(){pb.call(this)};g["room.signals.PrintDebugSignal"]=Md;Md.__name__="room.signals.PrintDebugSignal";Md.__super__=pb;Md.prototype=r(pb.prototype,{__class__:Md});var gb=function(){this._screenIndex=this._mainScreenIndex=this._templateStartIndex=-1;this.visitedScreens=[];this.notBuildYet=!0;this.delayTimerOn=!1};g["room.models.State"]=gb;gb.__name__="room.models.State";gb.__interfaces__=[$d];
gb.prototype={setScreenIndexSignal:null,printDebugSignal:null,screenNode:null,mainScreenIndex:null,hideTitleAndContent:null,mainScreenID:null,delayTimerOn:null,notBuildYet:null,muteNarrator:null,version:null,visitedScreens:null,signals:null,_screenIndex:null,_mainScreenIndex:null,_templateStartIndex:null,_screenNode:null,_nextScreenButtonPos:null,_selectedTag:null,_signals:null,get_screenIndex:function(){return this._screenIndex},set_screenIndex:function(a){this.setScreenIndex(a);return this._screenIndex},
setScreenIndex:function(a,b){null==b&&(b=!1);if(a!=this._screenIndex||b)this._screenIndex=a,0>=this._screenIndex&&(this._screenIndex=0),a=H.xmlData.screensList,this._screenIndex>=a.get_length()-1&&(this._screenIndex=a.get_length()-1),null!=this._screenNode&&this._screenNode.get_signals().get_destroy().remove(k(this,this.onDestroyScreenNode)),this._screenNode=H.xmlData.screensList.get(this._screenIndex),this._screenNode.get_signals().get_destroy().add(k(this,this.onDestroyScreenNode)),this.get_signals().get_changeScreenIndex().dispatch()},
onDestroyScreenNode:function(a){a=N.__cast(this.get_screenNode(),Ae);if(a==this.get_screenNode()){var b=this.get_screenIndex()<H.xmlData.screensList.get_length()?this.get_screenIndex():this.get_screenIndex()-1;this.setScreenIndexSignal.dispatch(new Nd(b,a.isMainScreen?"reset":"initScreen"))}},get_screenNode:function(){return this._screenNode},get_templateStartIndex:function(){return this._templateStartIndex},set_templateStartIndex:function(a){this.setTemplateStartIndex(a);return this._templateStartIndex},
setTemplateStartIndex:function(a,b){null==b&&(b=!1);if(a!=this._templateStartIndex||b)this._templateStartIndex=a,this.get_signals().get_changeTemplateStartIndex().dispatch()},get_mainScreenIndex:function(){return this._mainScreenIndex},setMainScreenIndex:function(a,b){null==b&&(b=!1);if(a!=this._mainScreenIndex||b)this._mainScreenIndex=a,this.updateLessonLocation(),this.setTemplateStartIndex(this._mainScreenIndex,b),this.get_signals().get_changeMainScreenIndex().dispatch()},updateLessonLocation:function(){H.xmlData.settings.lessonLocationNew&&
B.parseInt(this.mainScreenID)>B.parseInt(sa.getNewLessonLocation())?sa.setLessonLocation(this._mainScreenIndex,this.mainScreenID):this._mainScreenIndex>sa.getLessonLocation()&&sa.setLessonLocation(this._mainScreenIndex)},nextScreen:function(){this.setScreenIndexSignal.dispatch(new Nd(this.get_screenIndex()+1,""))},prevScreen:function(){this.setScreenIndexSignal.dispatch(new Nd(this.get_screenIndex()-1,""))},prevMainScreen:function(){var a=H.xmlData.menu.getItem(this.get_screenNode().get_menuIndex()-
1);null!=a&&this.setScreenIndexSignal.dispatch(new Nd(H.xmlData.screensList.getIndex(ba.resolve(a,"item_url")),""))},nextMainScreen:function(){var a=H.xmlData.menu.getItem(this.get_screenNode().get_menuIndex()+1);null!=a&&(a=H.xmlData.screensList.getIndex(ba.resolve(a,"item_url")),this.setScreenIndexSignal.dispatch(new Nd(a,"")))},isScreenAvailable:function(a){a=H.xmlData.screensList.getIndex(a);return-1<this.visitedScreens.indexOf(a)},set_hideTitleAndContent:function(a){a!=this.hideTitleAndContent&&
(this.hideTitleAndContent=a,this.get_signals().get_changeHideTitleAndContent().dispatch());return this.hideTitleAndContent},set_muteNarrator:function(a){a!=this.muteNarrator&&(this.muteNarrator=a,this.get_signals().get_changeMuteNarrator().dispatch());return this.muteNarrator},set_version:function(a){a!=this.version&&(this.version=a,this.get_signals().get_changeVersion().dispatch());return this.version},get_nextScreenButtonPos:function(){return this._nextScreenButtonPos},set_nextScreenButtonPos:function(a){null!=
this._nextScreenButtonPos&&this._nextScreenButtonPos.equals(a)||(this._nextScreenButtonPos=a,this.get_signals().get_changeNextScreenButtonPos().dispatch());return this._nextScreenButtonPos},get_signals:function(){null==this._signals&&(this._signals=new Xr);return this._signals},__class__:gb,__properties__:{get_signals:"get_signals",set_nextScreenButtonPos:"set_nextScreenButtonPos",get_nextScreenButtonPos:"get_nextScreenButtonPos",set_version:"set_version",set_muteNarrator:"set_muteNarrator",set_hideTitleAndContent:"set_hideTitleAndContent",
get_mainScreenIndex:"get_mainScreenIndex",set_templateStartIndex:"set_templateStartIndex",get_templateStartIndex:"get_templateStartIndex",get_screenNode:"get_screenNode",set_screenIndex:"set_screenIndex",get_screenIndex:"get_screenIndex"}};var Bl=function(){pb.call(this)};g["room.signals.AutoNarratorReadySignal"]=Bl;Bl.__name__="room.signals.AutoNarratorReadySignal";Bl.__super__=pb;Bl.prototype=r(pb.prototype,{__class__:Bl});var wj=function(){};g["room.commands.AutoNarratorCommand"]=wj;wj.__name__=
"room.commands.AutoNarratorCommand";wj.__interfaces__=[$d];wj.prototype={state:null,autoNarratorReadySignal:null,_loader:null,_contentNode:null,execute:function(a){this._contentNode=0==a?this.state.get_screenNode().contentNode:N.__cast(a,Gj);var b=H.xmlData.settings.get_voice().toLowerCase();-1=="nova shimmer echo onyx fable alloy".split(" ").indexOf(b)&&(b="fable");H.insideJackDaw||0==a?(a=new Kc(H.getApiUrl("/jackdaw/polly")),a.method="POST",a.data={courseId:H.courseId,moduleId:H.moduleId,text:ec.pollyTags(this._contentNode.value),
voice:b},this._loader=new le,this._loader.addEventListener("complete",k(this,this.autoNarratorLoadedHandler)),this._loader.addEventListener("ioError",k(this,this.autoNarratorIOErrorHandler)),this._loader.load(a)):(a=ec.htmlEntityDecode(ec.stripTags(ec.pollyTags(this._contentNode.value)+b)),b=this.autoNarratorReadySignal,a=this.crc32(a),b.dispatch("sound/auto_narrator/"+(null==a?"null":B.string(za.toFloat(a)))+".mp3"))},crc32:function(a){var b=Qa.ofString(a);a=b.b.bufferValue;var c=-1,d=0;for(b=b.length;d<
b;){var e=d++;e=(c^a.bytes[e])&255;e=e>>>1^-(e&1)&-306674912;e=e>>>1^-(e&1)&-306674912;e=e>>>1^-(e&1)&-306674912;e=e>>>1^-(e&1)&-306674912;e=e>>>1^-(e&1)&-306674912;e=e>>>1^-(e&1)&-306674912;e=e>>>1^-(e&1)&-306674912;e=e>>>1^-(e&1)&-306674912;c=c>>>8^e}return c^-1},autoNarratorLoadedHandler:function(a){this.autoNarratorReadySignal.dispatch(N.__cast(this._loader.data,String))},autoNarratorIOErrorHandler:function(a){this.autoNarratorReadySignal.dispatch(null)},__class__:wj};var qk=function(){};g["room.commands.CloseRoomCommand"]=
qk;qk.__name__="room.commands.CloseRoomCommand";qk.__super__=nf;qk.prototype=r(nf.prototype,{contextView:null,execute:function(){kf.play("thozi_daClick.mp3");lc.available&&lc.call("closeThis")},__class__:qk});var rj=function(a){ya.call(this,a)};g["room.signals.RestoreProgressSignal"]=rj;rj.__name__="room.signals.RestoreProgressSignal";rj.__super__=ya;rj.prototype=r(ya.prototype,{__class__:rj});var jk=function(a){ya.call(this,a)};g["room.signals.HideLoadingSignal"]=jk;jk.__name__="room.signals.HideLoadingSignal";
jk.__super__=ya;jk.prototype=r(ya.prototype,{__class__:jk});var Rl=function(a){ya.call(this,a)};g["room.signals.ShowStartSignal"]=Rl;Rl.__name__="room.signals.ShowStartSignal";Rl.__super__=ya;Rl.prototype=r(ya.prototype,{__class__:Rl});var Bi=function(){};g["room.commands.LoadScormCommand"]=Bi;Bi.__name__="room.commands.LoadScormCommand";Bi.__super__=nf;Bi.prototype=r(nf.prototype,{restoreProgressSignal:null,hideLoadingSignal:null,showStartSignal:null,execute:function(){sa.getInterface().get_signals().get_loaded().add(k(this,
this.onSCORMLoaded)).repeat(0);sa.load()},onSCORMLoaded:function(a){a||eh.SCORMLoadError();this.hideLoadingSignal.dispatch();a=!Uc.get_autoPlay()||Uc.get_fullScreenAPI()&&yb.isMobile();lc.available&&!a&&(a=lc.call("IframeAutoplayDenied"));lc.available&&lc.call("gainFocus");!H.insideApp&&a?this.showStartSignal.dispatch():this.restoreProgressSignal.dispatch()},__class__:Bi});var Fl=function(a){ya.call(this,a)};g["room.signals.ExitSignal"]=Fl;Fl.__name__="room.signals.ExitSignal";Fl.__super__=ya;Fl.prototype=
r(ya.prototype,{__class__:Fl});var Je=y.Signal2=function(){xg.call(this);this.defaultCallbackProps=2};g["signals.Signal2"]=Je;Je.__name__="signals.Signal2";Je.__super__=xg;Je.prototype=r(xg.prototype,{value1:null,value2:null,dispatch:function(a,b){this.requiresSort&&(this.callbacks.sort(k(this,this.sortCallbacks)),this.requiresSort=!1);this.value1=a;this.value2=b;for(b=0;b<this.callbacks.length;)a=this.callbacks[b],0>a.repeat||a.callCount<=a.repeat?this.toTrigger.push(a):a.remove=!0,a.callCount++,
++b;for(b=this.callbacks.length-1;0<=b;)a=this.callbacks[b],1==a.remove&&this.callbacks.splice(b,1),--b;a=0;for(b=this.toTrigger.length;a<b;){var c=a++;null!=this.toTrigger[c]&&this.toTrigger[c].dispatchMethod(this.toTrigger[c].callback,this.toTrigger[c])}this.toTrigger=[]},dispatchCallback:function(a,b){a()},dispatchCallback1:function(a,b){a(this.value1)},dispatchCallback2:function(a,b){a(this.value1,this.value2)},dispatchCallback3:function(a,b){throw u.thrown("Use Signal 3");},__class__:Je});var Ql=
function(){Je.call(this)};g["room.signals.ShowLoadingSignal"]=Ql;Ql.__name__="room.signals.ShowLoadingSignal";Ql.__super__=Je;Ql.prototype=r(Je.prototype,{__class__:Ql});var Hl=function(){Je.call(this)};g["room.signals.LoadingProgressSignal"]=Hl;Hl.__name__="room.signals.LoadingProgressSignal";Hl.__super__=Je;Hl.prototype=r(Je.prototype,{__class__:Hl});var kk=function(a){ya.call(this,a)};g["room.signals.InitMenuSignal"]=kk;kk.__name__="room.signals.InitMenuSignal";kk.__super__=ya;kk.prototype=r(ya.prototype,
{__class__:kk});var dh=function(){};g["room.commands.LoadVideosCommand"]=dh;dh.__name__="room.commands.LoadVideosCommand";dh.__interfaces__=[$d];dh.prototype={exitSignal:null,showLoadingSignal:null,loadingProgressSignal:null,hideLoadingSignal:null,initMenuSignal:null,videos:null,loadIndex:null,videoLoader:null,execute:function(a){this.videos=a;this.loadIndex=0;this.showLoadingSignal.dispatch("Loading videos...",this.loadIndex+1+" / "+a.length);this.videoLoader=new le;this.videoLoader.addEventListener("complete",
k(this,this.onVideoLoaded));this.videoLoader.addEventListener("ioError",k(this,this.onVideoLoaded));this.loadVideo();this.exitSignal.add(k(this,this.onCancel)).repeat(0)},onVideoLoaded:function(a){this.loadIndex<this.videos.length-1?(this.loadIndex++,this.loadingProgressSignal.dispatch(this.loadIndex/this.videos.length,this.loadIndex+1+" / "+this.videos.length),this.loadVideo()):(this.hideLoadingSignal.dispatch(),this.initMenuSignal.dispatch())},loadVideo:function(){this.videoLoader.load(new Kc(H.absoluteCoursePath+
this.videos[this.loadIndex]))},onCancel:function(){try{this.videoLoader.close()}catch(a){wa.lastError=a}},__class__:dh};var uh=function(a){ya.call(this,a)};g["room.signals.XmlLoadedSignal"]=uh;uh.__name__="room.signals.XmlLoadedSignal";uh.__super__=ya;uh.prototype=r(ya.prototype,{__class__:uh});var zj=function(){};g["room.commands.LoadXmlCommand"]=zj;zj.__name__="room.commands.LoadXmlCommand";zj.__super__=nf;zj.prototype=r(nf.prototype,{xmlLoadedSignal:null,loader:null,execute:function(){this.loader=
new le;this.loader.addEventListener("complete",k(this,this.xmlLoadedHandler));this.loader.addEventListener("ioError",k(this,this.xmlIOErrorHandler));this.loader.load(new Kc(H.absoluteCoursePath+"xml/information.xml"))},xmlLoadedHandler:function(a){a=z.parse(this.loader.data);if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));H.xmlData=new Wd(a);this.xmlLoadedSignal.dispatch()},xmlIOErrorHandler:function(a){eh.XMLLoadError(a.text)},
__class__:zj});var xj=function(){};g["room.commands.ResetScreenCommand"]=xj;xj.__name__="room.commands.ResetScreenCommand";xj.__super__=nf;xj.prototype=r(nf.prototype,{state:null,setScreenIndexSignal:null,execute:function(){var a=H.xmlData.screensList;a=this.state.get_screenNode().isMainScreen?this.state.get_screenIndex():a.getIndex(B.string(lb.getMainId(this.state.get_screenNode().screen_id)));this.setScreenIndexSignal.dispatch(new Nd(a,"reset"))},__class__:xj});var yj=function(){};g["room.commands.RestoreProgressCommand"]=
yj;yj.__name__="room.commands.RestoreProgressCommand";yj.__super__=nf;yj.prototype=r(nf.prototype,{state:null,setScreenIndexSignal:null,execute:function(){var a=H.insideJackDaw?0:this.getLessonLocation(),b=H.xmlData.screensList;0<a?(b.restoreVisitedScreens(this.state.visitedScreens,a,!H.insideJackDaw&&!sa.isAuthorized()&&H.xmlData.isDemo()),this.restoreLastScreen()):(this.state.notBuildYet=!1,this.state.visitedScreens=[0],null!=Jg.self.reloadToId?(a=b.getIndex(B.string(lb.getMainId(Jg.self.reloadToId))),
this.setScreenIndexSignal.dispatch(new Nd(a,""))):this.setScreenIndexSignal.dispatch(new Nd(0,"")))},getLessonLocation:function(){var a=H.xmlData.screensList;if(H.xmlData.settings.lessonLocationNew){var b=sa.getNewLessonLocation();0<B.parseInt(b)?(a=a.getIndex(B.string(lb.getMainId(b))),0>a&&sa.setLessonLocation(0,"1")):a=sa.getLessonLocation()}else a=sa.getLessonLocation();return a},restoreLastScreen:function(){this.state.notBuildYet=!1;this.state.visitedScreens.length==H.xmlData.screensList.get_numMainScreens()&&
"passed"==sa.getLessonStatus()?this.setScreenIndexSignal.dispatch(new Nd(0,"")):this.setScreenIndexSignal.dispatch(new Nd(this.state.visitedScreens[this.state.visitedScreens.length-1],""))},__class__:yj});var de=function(a){ya.call(this,a)};g["room.signals.HideTextSignal"]=de;de.__name__="room.signals.HideTextSignal";de.__super__=ya;de.prototype=r(ya.prototype,{__class__:de});var Pf=function(a){ya.call(this,a)};g["room.signals.HideContentSignal"]=Pf;Pf.__name__="room.signals.HideContentSignal";Pf.__super__=
ya;Pf.prototype=r(ya.prototype,{__class__:Pf});var of=function(a){ya.call(this,a)};g["room.signals.ScreenIndexChangedSignal"]=of;of.__name__="room.signals.ScreenIndexChangedSignal";of.__super__=ya;of.prototype=r(ya.prototype,{__class__:of});var Tf=function(){pb.call(this)};g["room.signals.ShowContentSignal"]=Tf;Tf.__name__="room.signals.ShowContentSignal";Tf.__super__=pb;Tf.prototype=r(pb.prototype,{__class__:Tf});var Ol=function(a){ya.call(this,a)};g["room.signals.EnableTranscriptSignal"]=Ol;Ol.__name__=
"room.signals.EnableTranscriptSignal";Ol.__super__=ya;Ol.prototype=r(ya.prototype,{__class__:Ol});var Pl=function(a){ya.call(this,a)};g["room.signals.ShowDemoScreenSignal"]=Pl;Pl.__name__="room.signals.ShowDemoScreenSignal";Pl.__super__=ya;Pl.prototype=r(ya.prototype,{__class__:Pl});var tf=function(){};g["room.commands.SetScreenIndexCommand"]=tf;tf.__name__="room.commands.SetScreenIndexCommand";tf.__interfaces__=[$d];tf.prototype={printDebugSignal:null,state:null,hideTextSignal:null,hideContentSignal:null,
screenIndexChangedSignal:null,showContentSignal:null,enableTranscriptSignal:null,showDemoScreenSignal:null,execute:function(a){var b=a.index,c=a.get_initScreen();a=a.get_reset();if((this.state.get_screenIndex()!=b||c||a)&&!this.state.notBuildYet){var d=H.xmlData.screensList,e=d.get(b);if(!H.insideJackDaw&&!sa.isAuthorized()&&H.xmlData.isDemo()&&e.isMainScreen&&5<B.parseInt(e.screen_id))this.showDemoScreenSignal.dispatch();else{this.hideTextSignal.dispatch();e=d.get(b);var f=e.isMainScreen,h=e.get_mainId();
this.state.mainScreenID=B.string(h);f?(f=b,-1==this.state.visitedScreens.indexOf(b)&&this.state.visitedScreens.push(b)):f=d.getIndex(B.string(lb.getMainId(e.screen_id)));h=this.state.get_mainScreenIndex()!=f;var l=!h&&e.template!=this.state.get_screenNode().template;this.state.setScreenIndex(b,c||a);h||l||a?(this.hideContentSignal.dispatch(),h||a?this.state.setMainScreenIndex(f,a):l&&this.state.set_templateStartIndex(b)):this.showContentSignal.dispatch(c);"QuizScreen"!=Eb.toString(e.template)&&b!=
d.get_length()-1||this.enableTranscriptSignal.dispatch();this.screenIndexChangedSignal.dispatch()}}},__class__:tf};var mc=function(){var a=this;Tb.call(this);null!=mc.instance&&mc.instance.close();mc.instance=this;null!=this.stage?this.addedToStageHandler():this.addEventListener("addedToStage",k(this,this.addedToStageHandler));this.titleField.mouseEnabled=!1;this.closeButton.set_visible(!mc.hideClose);this.closeButton.stop();this.closeButton.set_buttonMode(!0);this.closeButton.mouseChildren=!1;this.closeButton.addEventListener("mouseOver",
k(this,this.closeRollOverHandler));this.closeButton.addEventListener("mouseOut",k(this,this.closeRollOutHandler));this.closeButton.addEventListener("click",k(this,this.closeClickHandler));0<mc.autoClose&&Qb.delay(function(){a.closeClickHandler()},mc.autoClose);this.closeButton.addFrameScript(this.closeButton.get_currentLabels()[0].frame-1,(x=this.closeButton,k(x,x.stop)));this.closeButton.addFrameScript(this.closeButton.get_currentLabels()[1].frame-1,(x=this.closeButton,k(x,x.stop)));mc.draggable&&
(this.dragArea.set_buttonMode(!0),this.dragArea.addEventListener("mouseDown",k(this,this.dragAreaDownHandler)));this.addEventListener("removedFromStage",k(this,this.removeFromStageHandler))};g["room.display.Alert"]=mc;mc.__name__="room.display.Alert";mc.show=function(a,b){var c=null!=mc.instance?mc.instance:new mc;c.titleField.set_htmlText("<b>"+a+"</b>");c.textField.set_htmlText(b);Jg.self.stage.addChild(c.overlay);Jg.self.stage.addChild(c);c.set_alpha(c.overlay.set_alpha(0));va.tween(c,.5,{alpha:1});
va.tween(c.overlay,.5,{alpha:1});return c};mc.showStock=function(a){return mc.show(mc.stock[a],mc.stock[a+1])};mc.__super__=Tb;mc.prototype=r(Tb.prototype,{sceneX:null,sceneY:null,sceneOriginX:null,sceneOriginY:null,removeFromStageHandler:function(a){this.removeEventListener("removedFromStage",k(this,this.removeFromStageHandler));this.stage.removeEventListener("resize",k(this,this.stageResizeHandler));this.stage.removeEventListener("mouseUp",k(this,this.stageMouseUpHandler));this.stage.removeEventListener("mouseMove",
k(this,this.stageMouseMoveHandler))},close:function(){this.parent.removeChild(this.overlay);this.parent.removeChild(this);if(null!=mc.onClose)mc.onClose();mc.onClose=null},centerOn:function(a,b){this.set_x(a-this.get_width()/2);this.set_y(b-this.get_height()/2)},closeClickHandler:function(a){va.tween(this,.5,{alpha:0}).onComplete(k(this,this.close));va.tween(this.overlay,.5,{alpha:0})},dragAreaDownHandler:function(a){this.startDrag();this.stage.addEventListener("mouseUp",k(this,this.stageMouseUpHandler));
this.stage.addEventListener("mouseMove",k(this,this.stageMouseMoveHandler))},stageMouseMoveHandler:function(a){this.stageResizeHandler();a.updateAfterEvent()},stageMouseUpHandler:function(a){this.stopDrag();this.stage.removeEventListener("mouseUp",k(this,this.stageMouseUpHandler));this.stage.removeEventListener("mouseMove",k(this,this.stageMouseMoveHandler))},closeRollOverHandler:function(a){this.closeButton.gotoAndPlay(this.closeButton.get_currentLabels()[0].frame)},closeRollOutHandler:function(a){this.closeButton.gotoAndPlay(this.closeButton.get_currentLabels()[1].frame)},
addedToStageHandler:function(a){this.removeEventListener("addedToStage",k(this,this.addedToStageHandler));this.stage.addEventListener("resize",k(this,this.stageResizeHandler),!1,0,!0);this.stageResizeHandler();this.centerOn(535,325)},stageResizeHandler:function(a){this.sceneX=(this.stage.stageWidth-1070)/2;this.sceneY=(this.stage.stageHeight-650)/2;this.sceneOriginX=-this.sceneX;this.sceneOriginY=-this.sceneY;this.overlay.set_x(this.sceneOriginX);this.overlay.set_y(this.sceneOriginY);this.overlay.set_width(this.stage.stageWidth);
this.overlay.set_height(this.stage.stageHeight)},__class__:mc});var lj=function(){F.call(this);this.plainBG=new F;this.plainBG.get_graphics().beginFill(15987699);this.plainBG.get_graphics().drawRect(0,0,1070,650);this.plainBG.get_graphics().endFill();this.addChild(this.plainBG);this.demoTitle=new Bb;this.demoTitle.set_embedFonts(!0);this.demoTitle.set_autoSize(0);this.demoTitle.set_antiAliasType(0);this.demoTitle.set_selectable(!1);this.demoTitle.set_wordWrap(!0);this.demoTitle.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Light.ttf").name,
51,4276545,!1,!1,!1,null,null,0));this.demoTitle.set_width(700);this.demoTitle.set_x(185);this.demoTitle.set_text("Demo version");this.demoTitle.set_y(250);this.addChild(this.demoTitle);this.demoText=new Bb;this.demoText.set_embedFonts(!0);this.demoText.set_autoSize(0);this.demoText.set_antiAliasType(0);this.demoText.set_selectable(!1);this.demoText.set_wordWrap(!0);this.demoText.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Light.ttf").name,21,4276545,!1,!1,!1,null,null,0));this.demoText.set_width(600);
this.demoText.set_x(235);this.demoText.set_htmlText('This elearning is currently in demo mode.</br>If a client, contact <font color="#0000ff"><a href="mailto:support@openelms.com" target="_blank" >support@openelms.com</a></font> to unlock the learning.');this.demoText.set_y(310);this.addChild(this.demoText)};g["room.display.DemoScreen"]=lj;lj.__name__="room.display.DemoScreen";lj.__super__=F;lj.prototype=r(F.prototype,{plainBG:null,demoTitle:null,demoText:null,__class__:lj});var uj=function(a){F.call(this);
this.imageNode=a;this.mouseChildren=!1;this.addEventListener("removedFromStage",k(this,this.onRemovedFromStage))};g["room.display.Image"]=uj;uj.__name__="room.display.Image";uj.__super__=F;uj.prototype=r(F.prototype,{imageNode:null,loader:null,path:null,originalWidth:null,originalHeight:null,onRemovedFromStage:function(a){null!=this.loader&&this.loader.unload()},addOrRemoveLabel:function(){var a=this.getChildByName("image-label");""!=this.imageNode.text?(null==a&&(a=new ge,a.set_name("image-label"),
this.addChild(a)),a.txt.set_textColor(this.imageNode.textColor),a.txt.set_autoSize(0),a.txt.set_multiline(!1),a.txt.set_wordWrap(!1),a.txt.set_text(this.imageNode.text),a.set_x(this.imageNode.width/2),a.set_y(this.imageNode.height/2-a.get_height()/2)):null!=a&&this.removeChild(a)},__class__:uj});var Ci=function(a,b,c){F.call(this);this._path=a;this._width=b;this._height=c;(new fa("\\.html$","i")).match(a)?this._loader=new Ef:this._loader=new Jd;this.addChild(this._loader);this._req=new Kc;this.load()};
g["room.display.LoaderImage"]=Ci;Ci.__name__="room.display.LoaderImage";Ci.__super__=F;Ci.prototype=r(F.prototype,{_path:null,_loader:null,_req:null,_width:null,_height:null,load:function(){this._req.url=H.absoluteCoursePath+this._path;this._loader.contentLoaderInfo.addEventListener("progress",k(this,this.loader_ProgressHandler));this._loader.contentLoaderInfo.addEventListener("complete",k(this,this.loader_completeHandler));this._loader.contentLoaderInfo.addEventListener("ioError",k(this,this.loader_ioHanler));
this._loader.addEventListener("ioError",k(this,this.loader_ioHanler));this.addEventListener("removedFromStage",k(this,this.onRemovedFromStage));this._loader.load(this._req)},onRemovedFromStage:function(a){this.removeEventListener("removedFromStage",k(this,this.onRemovedFromStage));this._loader.contentLoaderInfo.removeEventListener("progress",k(this,this.loader_ProgressHandler));this._loader.contentLoaderInfo.removeEventListener("complete",k(this,this.loader_completeHandler));this._loader.contentLoaderInfo.removeEventListener("ioError",
k(this,this.loader_ioHanler));this._loader.removeEventListener("ioError",k(this,this.loader_ioHanler))},loader_ioHanler:function(a){},loader_ProgressHandler:function(a){},loader_completeHandler:function(a){this.dispatchEvent(new W("image_load"))},__class__:Ci});var Zl=function(a){Q.call(this);this.loadingWhat=a;this.preloader=new Yr;this.preloader.set_x(535);this.preloader.set_y(325);this.addChild(this.preloader)};g["room.display.LoadingScreen"]=Zl;Zl.__name__="room.display.LoadingScreen";Zl.__super__=
Q;Zl.prototype=r(Q.prototype,{loadingWhat:null,preloader:null,init:function(){N.__cast(this.preloader.getChildByName("loadingWhat"),Bb).set_text(this.loadingWhat)},setProgress:function(a,b){this.preloader.setProgress(100*a)},__class__:Zl});var vi=function(a,b){null==b&&(b=!1);this._fade=!0;this.autoPlay=!1;F.call(this);this.narratorNode=a;this.autoPlay=b;this.set_alpha(0);this._fade=H.xmlData.settings.get_fadeNarrator();this.videoUI=new Zr;this.addChild(this.videoUI)};g["room.display.Narrator"]=vi;
vi.__name__="room.display.Narrator";vi.__super__=F;vi.prototype=r(F.prototype,{narratorNode:null,autoPlay:null,videoUI:null,_fade:null,show:function(a){if(this._fade)va.tween(this,1,{alpha:1}).onComplete(a);else this.set_alpha(1),null!=a&&a()},hide:function(a){if(this._fade)va.tween(this,.3,{alpha:0}).onComplete(a);else this.set_alpha(0),null!=a&&a()},hideAndRemove:function(){var a=this;this.hide(function(){a.parent.removeChild(a)})},__class__:vi});var Yr=function(){Q.call(this);var a=new F;a.get_graphics().beginFill(15987699);
a.get_graphics().drawRect(0,0,1070,650);a.get_graphics().endFill();a.set_x(-535);a.set_y(-325);this.addChild(a);a=new F;var b=new zf('<svg xmlns="http://www.w3.org/2000/svg" height="250" width="250" viewBox="0 0 250 250"><path style="fill:#f79420;fill-opacity:1;stroke-width:1.26238763" d="m 244.06926,150.81563 -28.52998,-17.79964 c 0.2525,-2.65104 0.37873,-5.17581 0.37873,-7.82682 0,-2.65106 -0.12625,-5.30203 -0.37873,-7.95305 l 28.52998,-17.799633 c 1.89359,-1.26244 2.77725,-3.660957 2.14606,-5.807016 l -4.54461,-14.138759 c -0.75742,-2.14606 -2.77725,-3.660919 -5.17578,-3.408462 l -33.57953,2.272308 c -2.77726,-4.544577 -5.80699,-8.836696 -9.34167,-12.75011 l 12.62388,-31.180989 c 0.88367,-2.146059 0.12624,-4.544577 -1.64111,-5.933226 l -11.99269,-8.710486 c -1.89358,-1.388611 -4.41835,-1.262363 -6.18569,0.252495 l -25.75273,21.586882 c -4.79708,-2.019888 -9.84664,-3.660956 -15.02242,-4.923358 L 137.39743,4.1261663 C 136.89249,1.8538589 134.87266,0.339 132.47413,0.339 h -14.89619 c -2.27229,0 -4.29212,1.5148589 -4.92333,3.7871663 L 104.44909,36.695766 C 99.273314,37.83192 94.223759,39.473027 89.426682,41.619124 L 63.673958,20.032242 c -1.767344,-1.514858 -4.292121,-1.514858 -6.185705,-0.252495 l -11.992689,8.710448 c -1.893583,1.38865 -2.524776,3.787205 -1.641103,5.933226 L 56.478343,65.604448 C 53.0699,69.517862 49.91393,73.809981 47.136672,78.354558 L 13.557137,76.08225 C 11.28484,75.956191 9.1387801,77.344652 8.3813466,79.490712 L 3.8367491,93.503261 c -0.7574335,2.146021 0.1262478,4.544577 2.1460605,5.806941 L 34.512788,117.10988 c -0.252457,2.65101 -0.378725,5.17577 -0.378725,7.82678 0,2.65106 0.126211,5.30204 0.378725,7.82684 L 5.9828096,150.56313 c -1.8935838,1.2624 -2.7772576,3.66097 -2.1460605,5.80703 l 4.5445975,14.13875 c 0.7574335,2.14602 2.7772534,3.66088 5.1757904,3.40846 l 33.579535,-2.27231 c 2.777258,4.54458 5.806988,8.83671 9.341671,12.75012 l -12.623882,31.18099 c -0.883673,2.14602 -0.126248,4.54457 1.641103,5.93318 l 11.992689,8.71052 c 1.893584,1.38858 4.418361,1.26237 6.185705,-0.25211 l 25.752724,-21.58684 c 4.797077,2.01981 9.846632,3.66092 15.022408,4.92332 l 8.20552,32.5696 c 0.50496,2.2723 2.52479,3.78716 4.92333,3.78716 h 14.89619 c 2.27229,0 4.29212,-1.51486 4.9233,-3.78716 l 8.20554,-32.5696 c 5.17578,-1.13615 10.22534,-2.77726 15.02242,-4.92332 l 25.75273,21.58684 c 1.76734,1.51486 4.29211,1.51486 6.18569,0.25211 l 11.99269,-8.71052 c 1.89359,-1.38861 2.52478,-3.78716 1.64111,-5.93318 l -12.62388,-31.18099 c 3.40844,-3.91341 6.56441,-8.20554 9.34167,-12.75012 l 33.57953,2.27231 c 2.27229,0.12606 4.41836,-1.26244 5.17578,-3.40846 l 4.54461,-13.8863 c 0.63119,-2.27226 -0.12625,-4.54462 -2.14606,-5.80698 z m -119.04324,31.05479 c -31.433461,0 -56.807461,-25.37405 -56.807461,-56.80746 0,-31.433489 25.374,-56.807499 56.807461,-56.807499 31.43348,0 56.80748,25.37401 56.80748,56.807499 0,31.43341 -25.374,56.80746 -56.80748,56.80746 z" id="gearBig" /></svg>'),
c=new F;b.render(c.get_graphics(),-250,-250,500,500);c.set_x(0);c.set_y(214);a.addChild(c);va.tween(c,1,{rotation:36}).ease(Xp.get_easeNone()).repeat();b=new zf('<svg xmlns="http://www.w3.org/2000/svg" width="182" height="182" viewBox="0 0 182 182"><path style="fill:#74bf44;fill-opacity:1;stroke-width:1.2581811" id="gearSmall" d="M 172.34138,123.7127 147.05195,99.304033 c 0.37746,-2.768042 0.62909,-5.536085 0.62909,-8.304053 0,-2.768005 -0.25163,-5.53601 -0.62909,-8.303978 l 25.28943,-24.408776 c 1.63565,-1.635638 2.0131,-4.151989 0.88073,-6.039243 l -7.42326,-12.833448 c -1.13238,-2.013081 -3.5229,-2.893832 -5.66181,-2.264735 l -33.84507,9.687999 c -4.27781,-3.397102 -9.18472,-6.290934 -14.34325,-8.304015 L 103.39307,4.4370457 C 102.88982,2.1723107 100.87672,0.6625 98.486179,0.6625 H 83.639645 c -2.264731,0 -4.277816,1.5098107 -4.906906,3.7745457 L 70.17711,38.533784 c -5.158546,2.013081 -10.065454,4.906913 -14.343255,8.304015 L 21.988788,37.1498 c -2.264724,-0.629097 -4.529457,0.377556 -5.661821,2.264735 L 8.9037019,52.247983 C 7.771346,54.261064 8.1488013,56.777415 9.7844343,58.287226 L 35.073862,82.696002 c -0.377455,2.767968 -0.629091,5.535973 -0.629091,8.303978 0,2.767968 0.251626,5.536011 0.629091,8.304053 L 9.658613,123.7127 c -1.6356334,1.63567 -2.0130888,4.15202 -0.8807231,6.03927 l 7.4232651,12.8335 c 1.132356,2.01311 3.522909,2.89383 5.661811,2.26473 l 33.845058,-9.68801 c 4.277821,3.39712 9.184728,6.29091 14.343263,8.30399 l 8.55564,34.09677 c 0.503267,2.26474 2.516351,3.77455 4.906899,3.77455 h 14.84653 c 2.264724,0 4.277814,-1.50981 4.906904,-3.77455 l 8.55564,-34.09677 c 5.15852,-2.01308 10.06542,-4.90687 14.34326,-8.30399 l 33.84506,9.68801 c 2.26473,0.6291 4.52945,-0.37759 5.6618,-2.26473 l 7.42328,-12.8335 c 1.25818,-1.88725 0.88073,-4.4036 -0.75492,-6.03927 z M 91.0629,119.05748 c -15.60143,0 -28.183246,-12.58183 -28.183246,-28.183327 0,-15.601415 12.581816,-28.183246 28.183246,-28.183246 15.60145,0 28.18326,12.581831 28.18326,28.183246 0,15.601497 -12.70764,28.183327 -28.18326,28.183327 z" /></svg>');
c=new F;b.render(c.get_graphics(),-182,-182,364,364);c.set_x(320);c.set_y(0);a.addChild(c);va.tween(c,1,{rotation:-60}).ease(Xp.get_easeNone()).repeat();a.set_x(215);a.set_y(175);a.set_scaleX(a.set_scaleY(.75));this.addChild(a);this.loadingWhat=new Bb;this.loadingWhat.set_embedFonts(!0);this.loadingWhat.set_autoSize(0);this.loadingWhat.set_antiAliasType(0);this.loadingWhat.set_selectable(!1);this.loadingWhat.set_wordWrap(!0);this.loadingWhat.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Light.ttf").name,
36,4276545,!1,!1,!1,null,null,0));this.loadingWhat.set_width(700);this.loadingWhat.set_x(-350);this.loadingWhat.set_y(-40);this.loadingWhat.set_text("");this.loadingWhat.set_name("loadingWhat");this.addChild(this.loadingWhat);a=new F;a.get_graphics().beginFill(16777215,0);a.get_graphics().lineStyle(1.5,5066061);a.get_graphics().drawRoundRect(0,8,168,14,14);a.get_graphics().endFill();this.addChild(a);this.bar=new F;this.addChild(this.bar);a.set_x(this.bar.set_x(-84));a.set_y(this.bar.set_y(10))};g["room.display.Preloader"]=
Yr;Yr.__name__="room.display.Preloader";Yr.__super__=Q;Yr.prototype=r(Q.prototype,{loadingWhat:null,perc:null,bar:null,setProgress:function(a){va.update(k(this,this.drawProgress),2,[this.bar.get_width()/1.6],[a])},drawProgress:function(a){this.bar.get_graphics().clear();this.bar.get_graphics().beginFill(5066061);this.bar.get_graphics().drawRoundRect(4,11,1.6*a,8,8);this.bar.get_graphics().endFill()},__class__:Yr});var cd=function(){this._rendered=!1;this.rect=new ha;Pg.call(this,window.document.createElement("div"));
this.addEventListener("addedToStage",k(this,this.onAddedToStage));H.insideJackDaw?this.initializeJackdaw():H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0)};g["room.display.RoomDOMElement"]=cd;cd.__name__="room.display.RoomDOMElement";cd.__super__=Pg;cd.prototype=r(Pg.prototype,{rect:null,doubleClickEnabled:null,_rendered:null,onRender:function(a){this.render();this.update()},render:function(a){null==a&&(a=!1);if(!this._rendered||a)this.__element.addEventListener("touchend",k(this,
this.handleTouchEvent)),Db.set(this,Ya.wrapTagName(this.getJackdawTagName())),this.updateInnerHtml(),this._rendered=!0;this.rect.setTo(this.__element.offsetLeft,this.__element.offsetTop,this.__element.offsetWidth,this.__element.offsetHeight)},updateInnerHtml:function(){this.__element.innerHTML=this.getInnerHtml();H.insideJackDaw&&this.updateJackdawLabel()},update:function(){},getInnerHtml:function(){return""},onAddedToStage:function(a){this.removeEventListener("addedToStage",k(this,this.onAddedToStage));
this.addEventListener("renderDOM",k(this,this.onRender));this.addEventListener("removedFromStage",k(this,this.onRemovedFromStage))},onRemovedFromStage:function(a){this.removeEventListener("removedFromStage",k(this,this.onRemovedFromStage));this.removeEventListener("renderDOM",k(this,this.onRender));this._rendered&&(this._rendered=!1,Db.remove(this),this.__element.removeEventListener("touchend",k(this,this.handleTouchEvent)))},handleTouchEvent:function(a){if("A"==a.target.tagName){var b=a.target.getAttribute("href");
a=a.target.getAttribute("target");window.open(b,a)}},initializeJackdaw:function(){Ya.options.onUpdate.add(k(this,this.updateJackdawLabel));this._rendered&&this.updateInnerHtml()},updateJackdawLabel:function(){Ya.options.get_previewMode()||null==this.getJackdawTagName()?Fb.clearLabel(this):Fb.drawLabel(this,this.getJackdawTagName())},getJackdawTagName:function(){return null},__allowMouseFocus:function(){return!1},__hitTest:function(a,b,c,d,e,f){if(this._rendered){if(!f.__visible||this.__isMask||null!=
this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;if(this.__hitTestRect(a,b,c,this.__getRenderTransform()))return null!=d&&d.push(f),!0}return!1},__hitTestRect:function(a,b,c,d){if(null==this.rect)return!1;var e=d.a*d.d-d.b*d.c;c=0==e?-d.tx:1/e*(d.c*(d.ty-b)+d.d*(a-d.tx));e=d.a*d.d-d.b*d.c;a=0==e?-d.ty:1/e*(d.a*(b-d.ty)+d.b*(d.tx-a));return c>this.rect.x&&a>this.rect.y&&this.rect.contains(c,a)?!0:!1},__getBounds:function(a,b){var c=ha.__pool.get();this.rect.__transform(c,b);a.__expand(c.x,
c.y,c.width,c.height);ha.__pool.release(c)},__class__:cd});var fm=function(a){F.call(this);this.quizNode=a;this.feedback=this.addChild(new Xn)};g["room.display.ScreenQuiz"]=fm;fm.__name__="room.display.ScreenQuiz";fm.__super__=F;fm.prototype=r(F.prototype,{quizNode:null,answers:null,feedback:null,updatePosition:function(){null!=this.answers&&(this.answers.set_x(this.quizNode.x),this.answers.set_y(this.quizNode.y))},setAnswers:function(a){null!=this.answers&&this.removeChild(this.answers);this.answers=
a;this.updatePosition();this.addChild(this.answers)},showFeedback:function(a,b){this.setChildIndex(this.feedback,this.get_numChildren()-1);this.feedback.show(a,b)},hideFeedback:function(){this.feedback.hide()},__class__:fm});var yg=function(){F.call(this);this.plainBG=new F;this.plainBG.get_graphics().beginFill(15987699);this.plainBG.get_graphics().drawRect(0,0,1070,650);this.plainBG.get_graphics().endFill();this.addChild(this.plainBG);this.introText=new Bb;this.introText.set_embedFonts(!0);this.introText.set_autoSize(0);
this.introText.set_antiAliasType(0);this.introText.set_selectable(!1);this.introText.set_wordWrap(!0);this.introText.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Light.ttf").name,36,4276545,!1,!1,!1,null,null,0));this.introText.set_width(700);this.introText.set_x(185);this.introText.set_text(yb.isMobile()?yg.INTRO_TEXT_MOBILE:yg.INTRO_TEXT);this.introText.set_y(-19.5*this.introText.get_numLines()+325);this.addChild(this.introText)};g["room.display.StartScreen"]=yg;yg.__name__="room.display.StartScreen";
yg.__super__=F;yg.prototype=r(F.prototype,{plainBG:null,introText:null,__class__:yg});var fh=function(a){F.call(this);this.data=a;this.set_name(a.get_name());this.set_visible(!1);this.set_buttonMode(!0)};g["room.display.buttons.BaseNavButton"]=fh;fh.__name__="room.display.buttons.BaseNavButton";fh.__super__=F;fh.prototype=r(F.prototype,{data:null,button:null,initialize:function(){this.setPosition();this.addButton()},setPosition:function(){Hh.globalToLocal(this.parent,new ab(this.data.x,this.data.y));
this.set_x(this.data.x);this.set_y(this.data.y)},addButton:function(){this.removeButton();this.set_button(this.addChild(this.data.get_button()))},removeButton:function(){null!=this.button&&(this.removeChild(this.button),this.set_button(null))},set_button:function(a){this.button!=a&&(this.button=a,this.button instanceof Ji&&(this.mouseChildren=!yb.isMobile()));return this.button},__class__:fh,__properties__:r(F.prototype.__properties__,{set_button:"set_button"})});var Xl=function(a){fh.call(this,a)};
g["room.display.buttons.FormsNextButton"]=Xl;Xl.__name__="room.display.buttons.FormsNextButton";Xl.__super__=fh;Xl.prototype=r(fh.prototype,{fallbackMode:null,initialize:function(){this.fallbackMode?fh.prototype.initialize.call(this):(this.removeButton(),this.setPosition())},addYesButton:function(){this.removeButton();var a=new Ta(Ta.YES);this.set_button(this.addChild(a.get_button()))},addNextButton:function(){this.removeButton();fh.prototype.addButton.call(this)},__class__:Xl});var em=function(a){fh.call(this,
a)};g["room.display.buttons.ScreenNavButton"]=em;em.__name__="room.display.buttons.ScreenNavButton";em.__super__=fh;em.prototype=r(fh.prototype,{__class__:em});var Al=function(){F.call(this);var a=1,b=32*a|0,c=40*a|0,d=24*a|0;Pb.isMobile()&&(a=1.5,d=b);b=(c-d)/2;this.sectionTitle=new gm(a);this.sectionTitle.set_x(25);this.addChild(this.sectionTitle);this.logo=new F;this.logo.set_x(10);this.logo.set_y(5);this.addChild(this.logo);this.closeButton=new F;this.closeButton.addChild(la.hitBoxSprite(c,c,
-c/2,-c/2));this.closeButton.addChild(la.addSymbol('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="25.02,21.49 19.54,16 25.02,10.51 21.49,6.98 16,12.46 10.51,6.98 6.98,10.51 12.46,16 6.98,21.49 10.51,25.02 16,19.54 21.49,25.02 "/></svg>',16777215,1,1.2*d|0,1.2*d|0));this.closeButton.set_x(1060-c/2);this.closeButton.set_y(1.25*d/2);this.addChild(this.closeButton);this.addDelimiter(1015);this.toggleNarrator=
new F;this.toggleNarrator.set_x(this.closeButton.get_x()-50-c/2);this.toggleNarrator.set_y(-17+12*a);this.toggleNarrator.addChild(la.hitBoxSprite(c,c));var e=new zf('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z" /></svg>'),
f=new F;e.render(f.get_graphics(),b,b,d,d);f.set_name("soundOn");this.toggleNarrator.addChild(f);e=new zf('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.53C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z" /></svg>');
f=new F;e.render(f.get_graphics(),b,b,d,d);f.set_name("soundOff");this.toggleNarrator.addChild(f);this.addChild(this.toggleNarrator);this.addDelimiter(965);this.toggleContentBtn=new F;this.toggleContentBtn.set_x(this.toggleNarrator.get_x()-28-c/2);this.toggleContentBtn.set_y(-17+12*a);this.toggleContentBtn.addChild(la.hitBoxSprite(c,c));e=new zf('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z" /></svg>');
f=new F;e.render(f.get_graphics(),b,b,d,d);f.set_name("hide");this.toggleContentBtn.addChild(f);e=new zf('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" /></svg>');
f=new F;e.render(f.get_graphics(),b,b,d,d);f.set_name("show");this.toggleContentBtn.addChild(f);this.addChild(this.toggleContentBtn);this.addDelimiter(915);this.refreshBtn=new F;this.refreshBtn.set_x(this.toggleContentBtn.get_x()-30-c/2);this.refreshBtn.set_y(-17+12*a);this.refreshBtn.addChild(la.hitBoxSprite(c,c));this.refreshBtn.set_name("refreshBtn");e=new zf('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z" /></svg>');
f=new F;e.render(f.get_graphics(),b,b,d,d);this.refreshBtn.addChild(f);this.addChild(this.refreshBtn);this.addDelimiter(865);this.openTranscriptBtn=new F;this.openTranscriptBtn.set_x(this.refreshBtn.get_x()-30-c/2);this.openTranscriptBtn.set_y(-17+12*a);this.openTranscriptBtn.addChild(la.hitBoxSprite(c,c));this.openTranscriptBtn.set_name("openTranscriptBtn");e=new zf('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m7.91 18.2h8.52v-1.59h-8.52zm0-4.5h8.52v-1.59h-8.52zm-2.62 9q-0.635 0-1.11-0.476-0.476-0.476-0.476-1.11v-18q0-0.635 0.476-1.11 0.476-0.476 1.11-0.476h9.56l5.8 5.8v13.8q0 0.635-0.476 1.11-0.476 0.476-1.11 0.476zm8.76-14.7v-4.92h-8.76v18h13.8v-13zm-8.76-4.92v4.92-4.92 18z" stroke-width=".0265"/></svg>');
f=new F;e.render(f.get_graphics(),b,b,d,d);this.openTranscriptBtn.addChild(f);this.addChild(this.openTranscriptBtn);this.addDelimiter(815);this.progress=new $r;this.progress.set_scaleY(a);this.progress.set_x(this.refreshBtn.get_x()-185-50);this.progress.set_y(-4*a+4);this.addChild(this.progress)};g["room.display.header.Header"]=Al;Al.__name__="room.display.header.Header";Al.__super__=F;Al.prototype=r(F.prototype,{sectionTitle:null,closeButton:null,toggleNarrator:null,toggleContentBtn:null,openTranscriptBtn:null,
printBtn:null,refreshBtn:null,fastMenuBtn:null,logo:null,progress:null,addDelimiter:function(a){var b=new F;b.get_graphics().beginFill(16777215,.25);b.get_graphics().drawRect(0,8,1,14);b.get_graphics().endFill();b.set_x(a);this.addChild(b)},setProgress:function(a){this.progress.setProgress(a)},__class__:Al});var $r=function(){this.prevValue=0;this.maxRadius=4;this.minRadius=1.5;F.call(this);this.get_graphics().clear();this.get_graphics().beginFill(16777215,0);this.get_graphics().lineStyle(1.5,16777215);
this.get_graphics().drawRoundRect(0,8,168,14,14);this.get_graphics().endFill();this.progressSprite=new F;this.addChild(this.progressSprite)};g["room.display.header.LessonProgress"]=$r;$r.__name__="room.display.header.LessonProgress";$r.__super__=F;$r.prototype=r(F.prototype,{minRadius:null,maxRadius:null,progressSprite:null,prevValue:null,setProgress:function(a){va.update(k(this,this.drawProgress),2,[this.prevValue],[a]);this.prevValue=a;this.set_visible(!0)},drawProgress:function(a){this.progressSprite.get_graphics().clear();
this.progressSprite.get_graphics().beginFill(16777215);this.progressSprite.get_graphics().drawRoundRect(4,11,1.6*a,8,8);this.progressSprite.get_graphics().endFill()},__class__:$r});var Yn=function(){F.call(this);var a=new zf('<svg viewBox="0 0 340 106" xmlns="http://www.w3.org/2000/svg"><rect width="340" height="104" style="fill-opacity:0"/><g style="fill:#8c8c8c;fill-opacity:1;stroke:none"><path d="m36.8 31.1c-2.4-1.3-5.3-1.9-8.7-1.9s-6.3 0.6-8.7 1.9-4.2 3.1-5.5 5.5-1.9 5.4-1.9 8.8v33.5c0 3.4 0.6 6.3 1.9 8.7s3.1 4.3 5.5 5.6 5.3 1.9 8.7 1.9 6.3-0.6 8.7-1.9 4.2-3.1 5.5-5.6c1.3-2.4 1.9-5.3 1.9-8.7v-33.4c0-3.4-0.6-6.4-1.9-8.8-1.2-2.5-3.1-4.3-5.5-5.6zm-1 48.1c0 1.6-0.3 3-0.9 4.2s-1.5 2-2.6 2.6-2.5 0.9-4.1 0.9-3-0.3-4.1-0.9-2-1.5-2.6-2.6c-0.6-1.2-0.9-2.5-0.9-4.2v-34c0-1.6 0.3-3 0.9-4.2s1.5-2 2.6-2.6 2.5-0.9 4.1-0.9 3 0.3 4.1 0.9 2 1.5 2.6 2.6c0.6 1.2 0.9 2.5 0.9 4.2z"/><path d="m76.7 31.7c-2.1-1.2-4.7-1.7-7.8-1.7h-16.8v64.6h8.4v-25h8.3c3 0 5.6-0.6 7.7-1.7s3.8-2.8 4.9-5 1.7-4.8 1.7-7.8v-10.4c0-3.1-0.6-5.8-1.7-8-0.9-2.2-2.6-3.9-4.7-5zm-2 23c0 1.4-0.2 2.6-0.7 3.6-0.4 1-1.1 1.8-1.9 2.3s-1.8 0.8-3 0.8h-8.4v-23.5h8.4c1.2 0 2.2 0.3 3 0.8s1.5 1.3 1.9 2.4c0.4 1 0.7 2.3 0.7 3.7z"/><polygon points="99.5 94.5 119 94.5 119 86.5 99.5 86.5 99.5 66.4 116 66.4 116 58.4 99.5 58.4 99.5 37.9 119 37.9 119 29.9 99.5 29.9 95.5 29.9 91.1 29.9 91.1 94.5 95.5 94.5"/><polygon points="125 94.4 134 94.4 134 50.2 150 94.4 157 94.4 157 29.9 149 29.9 149 75.6 133 29.9 125 29.9"/><polygon points="222 94.5 241 94.5 241 86.5 222 86.5 222 29.9 214 29.9 214 94.5 219 94.5"/><polygon points="266 83.9 271 83.9 281 50.9 281 94.5 289 94.5 289 29.9 282 29.9 268 70.5 255 29.9 248 29.9 248 94.5 256 94.5 256 52.5"/><path d="m327 66.3c-1.1-2-2.4-3.5-4-4.6s-3.6-2.2-6.2-3.3c-0.1-0.1-0.3-0.1-0.5-0.2s-0.3-0.1-0.5-0.2l-1.2-0.6c-2-0.9-3.6-1.7-4.8-2.4s-2.1-1.6-2.9-2.7-1.2-2.5-1.2-4.1v-4c0-2.2 0.6-3.9 1.8-5.1s3-1.8 5.4-1.8c2.2 0 3.9 0.6 5 1.9 1.2 1.2 1.7 3 1.7 5.4v3h8.4v-3.4c0-3.2-0.6-6-1.8-8.2-1.2-2.3-2.9-4-5.2-5.2s-5-1.8-8.3-1.8-6.2 0.6-8.5 1.7c-2.3 1.2-4.1 2.8-5.3 5.1-1.2 2.2-1.8 5-1.8 8.1v4.1c0 3.2 0.6 5.9 1.8 8s2.7 3.7 4.4 4.9 4 2.4 6.7 3.6l0.6 0.3c0.1 0 0.1 0.1 0.2 0.1s0.1 0 0.2 0.1c2 0.9 3.6 1.7 4.8 2.4s2.1 1.6 2.9 2.7 1.2 2.4 1.2 4v5.6c0 2.4-0.6 4.2-1.8 5.4s-3 1.9-5.2 1.9c-2.3 0-4.1-0.6-5.4-1.9s-1.9-3.1-1.9-5.4v-2.9h-8.4v3.2c0 3.3 0.6 6 1.8 8.3s3 4 5.3 5.2 5.2 1.8 8.6 1.8c3.3 0 6.1-0.6 8.4-1.8s4.1-2.9 5.3-5.2 1.8-5 1.8-8.3v-5.9c0.3-3.2-0.3-5.8-1.4-7.8z"/></g><path d="m192 71.5v0.3c0 1.5-0.4 2.7-1.3 3.5-0.8 0.8-2 1.2-3.6 1.2-1.7 0-3-0.6-3.9-1.7s-1.4-2.7-1.4-4.6v-4.7h17.1v-10.7c0-2.8-0.5-5.2-1.4-7.1-1-2-2.3-3.5-4.2-4.5-1.8-1-4-1.5-6.6-1.5-2.5 0-4.7 0.6-6.5 1.7s-3.2 2.7-4.1 4.9c-1 2.1-1.4 4.7-1.4 7.7v14c0 2.8 0.5 5.3 1.5 7.3s2.4 3.5 4.2 4.6 4.1 1.6 6.7 1.6c3.8 0 6.8-1 8.8-3 2.1-2 3.1-4.9 3.1-8.6v-0.3h-7zm-8.8-21.4c0.9-1.2 2.1-1.8 3.6-1.8 1.6 0 2.9 0.6 3.7 1.7 0.9 1.1 1.3 2.8 1.3 4.9v4.4h-10v-3.9c0.1-2.3 0.6-4 1.4-5.3z" style="fill:#878787;"/><path d="m196 12.6-3.5 2c-1.5 0.9-2.7 2-3.6 3.3-2.7 3.7-3.1 8.7-0.7 12.9l3.5-2c5.6-3.3 7.6-10.6 4.3-16.2z" style="fill:#6c6c6c;"/><rect x="168" y="30.6" width="36.9" height="6.7" fill="#828282"/><path d="m189 17.9c-1.2-2.7-3.2-5-5.9-6.6l-4.2-2.4c-3.9 6.8-1.6 15.5 5.2 19.5l4.2 2.4c-2.4-4.2-2-9.3 0.7-12.9z" style="fill:#828282;"/><rect x="168" y="88.1" width="36.9" height="6.7" style="fill:#828282;"/></svg>'),
b=new F;a.render(b.get_graphics());b.set_scaleY(b.set_scaleX(.35));b.set_x(56);b.set_y(-5);b.set_buttonMode(!0);this.addChild(b);b.addEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.openLink))};g["room.display.header.OpenelmsAIWatermark"]=Yn;Yn.__name__="room.display.header.OpenelmsAIWatermark";Yn.__super__=F;Yn.prototype=r(F.prototype,{openLink:function(a){Sa.getURL(new Kc("https://openelms.com/"),"_blank")},show:function(a){null==a&&(a=!0);this.set_visible(a);a&&J.getProperty(this.parent,
"menuOpen")?va.tween(this,1,{y:600}).ease(rd.easeOut):va.tween(this,1,{y:660}).ease(rd.easeOut)},__class__:Yn});var gm=function(a){null==a&&(a=1);this.hideEase=rd.easeOut;this.showEase=Sj.easeOut;this.animationSpeed=1.5;this.bgColor=null;F.call(this);this.bg=new F;this.addChild(this.bg);a*=18;this.titleField=new Bb;this.titleField.set_y(5);a=new ib(na.getFont("fonts/Roboto/Roboto-Medium.ttf").name,a|0,16777215);a.align=3;this.titleField.set_embedFonts(!0);this.titleField.set_antiAliasType(0);this.titleField.set_selectable(!1);
this.titleField.set_defaultTextFormat(a);this.titleField.set_autoSize(1);this.titleField.setTextFormat(a);this.titleField.set_width(690);this.addChild(this.titleField);this.initX=this.titleField.get_x()};g["room.display.header.SectionTitle"]=gm;gm.__name__="room.display.header.SectionTitle";gm.__super__=F;gm.prototype=r(F.prototype,{bg:null,bgColor:null,titleField:null,_title:null,initX:null,animationSpeed:null,showEase:null,hideEase:null,get_title:function(){return this._title},set_title:function(a){this._title!=
a&&(this._title=a,this.hide());return a},show:function(a){null==a&&(a=!1);this.set_visible(!0);va.tween(this.titleField,a?0:this.animationSpeed,{x:this.initX}).ease(this.showEase)},hide:function(a){a=Hh.globalToLocal(this,new ab(-this.titleField.get_width(),0));va.tween(this.titleField,0,{x:a.x}).ease(this.hideEase).onComplete(k(this,this.hideComplete))},hideComplete:function(){this.set_visible(!1);this.titleField.set_htmlText(null!=this._title?this._title:"");this.drawBg();null!=this._title&&""!=
this._title&&this.show()},drawBg:function(){this.bg.get_graphics().clear();var a=null==this.bgColor?3762093:this.bgColor;this.bg.get_graphics().beginFill(a);this.bg.get_graphics().drawRect(-1E3,0,4400,this.titleField.get_textHeight()+10);this.bg.get_graphics().endFill()},setBgColor:function(a){this.bgColor=a;this.drawBg()},__class__:gm,__properties__:r(F.prototype.__properties__,{set_title:"set_title",get_title:"get_title"})});var Zn=function(){F.call(this);var a=new F;a.get_graphics().beginFill(16763904,
0);a.get_graphics().drawCircle(30,30,30);a.get_graphics().endFill();a.set_x(-30);a.set_y(-30);this.addChild(a);a=new zf('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;" d="m 8.6997589,31.931176 c -0.5809558,0 -1.1619108,-0.222397 -1.604436,-0.664922 -0.8873187,-0.887319 -0.8873187,-2.323822 0,-3.208872 L 19.152422,16.000283 7.0953229,3.9431849 c -0.8873187,-0.887319 -0.8873187,-2.3238225 0,-3.2088722 0.8873187,-0.88731889 2.3238223,-0.88731889 3.2088711,0 L 25.570166,16.000283 10.304194,31.266254 c -0.4425238,0.442525 -1.0234796,0.664922 -1.6044351,0.664922 z" id="arrow" /></svg>');
this.svgSprite=new F;a.render(this.svgSprite.get_graphics(),-16,-16,32,32);this.svgSprite.set_scaleX(this.svgSprite.set_scaleY(.8));this.addChild(this.svgSprite);this.useHandCursor=!0;this.addEventListener("mouseOver",k(this,this.mouseOver));this.addEventListener("mouseOut",k(this,this.mouseOut));this.addEventListener("mouseDown",k(this,this.mouseDown))};g["room.display.menu.ArrowButton"]=Zn;Zn.__name__="room.display.menu.ArrowButton";Zn.__super__=F;Zn.prototype=r(F.prototype,{svgSprite:null,mouseOver:function(a){va.tween(this.svgSprite,
.25,{scaleX:1,scaleY:1}).ease(rd.easeOut)},mouseOut:function(a){va.tween(this.svgSprite,.25,{scaleX:.8,scaleY:.8}).ease(rd.easeOut)},mouseDown:function(a){va.tween(this.svgSprite,.5,{scaleX:.8,scaleY:.8}).ease(Wp.easeOut)},__class__:Zn});var Yg=function(){this.menuOpen=!1;F.call(this);this.menuButtonSetup();this.overlay=new F;this.overlay.get_graphics().beginFill(0);this.overlay.get_graphics().drawRect(0,0,1070,650);this.overlay.get_graphics().endFill();this.overlay.set_alpha(0);this.overlay.set_visible(!1);
this.addChild(this.overlay);this.courseTitle=new Bb;this.courseTitle.set_embedFonts(!0);this.courseTitle.set_autoSize(2);this.courseTitle.set_antiAliasType(0);this.courseTitle.set_selectable(!1);this.courseTitle.set_wordWrap(!1);this.courseTitle.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Light.ttf").name,34,16777215));this.courseTitle.set_width(800);this.courseTitle.set_x(100);this.courseTitle.set_y(100);this.courseTitle.set_text("");this.courseTitle.set_visible(!1);this.addChild(this.courseTitle);
this.menuItemsGroup=new F;this.menuItemsGroup.set_visible(!1);this.addChild(this.menuItemsGroup);this.pageInator=new as;this.pageInator.set_x(868);this.pageInator.set_y(85);this.pageInator.set_visible(!1);this.addChild(this.pageInator);this.watermark=new Yn;this.watermark.set_y(660);this.watermark.set_x(420);this.addChild(this.watermark);this.logo=new jm;this.logo.set_y(660);this.logo.set_x(370);this.addChild(this.logo)};g["room.display.menu.Menu"]=Yg;Yg.__name__="room.display.menu.Menu";Yg.__super__=
F;Yg.prototype=r(F.prototype,{menuButton:null,menuButtonBg:null,menuButtonlabel:null,overlay:null,courseTitle:null,titleX:null,menuItemsGroup:null,pageInator:null,menuOpen:null,watermark:null,logo:null,showOverlay:function(a){var b=this;if(this.menuOpen=a)this.overlay.set_visible(!0),va.tween(this.overlay,.5,{alpha:.75}).ease(rd.easeOut);else va.tween(this.overlay,.5,{alpha:0}).ease(rd.easeOut).onComplete(function(){b.overlay.set_visible(!1)})},showMenuButton:function(a){a?va.tween(this.menuButton,
1,{y:610}).ease(rd.easeOut):va.tween(this.menuButton,1,{y:660}).ease(rd.easeOut);H.get_showSecondMenu()||null==H.xmlData.settings.menuLogo||"null"==H.xmlData.settings.menuLogo||""==H.xmlData.settings.menuLogo?this.watermark.show(!a):this.logo.show(!a)},showTitle:function(a){var b=this;if(a)this.courseTitle.set_x(this.titleX-100),this.courseTitle.set_alpha(0),this.courseTitle.set_visible(!0),va.tween(this.courseTitle,.6,{x:this.titleX,alpha:1}).ease(rd.easeOut);else va.tween(this.courseTitle,.6,{x:this.titleX-
100,alpha:0}).ease(rd.easeOut).onComplete(function(){b.courseTitle.set_visible(!1)})},menuButtonSetup:function(){this.menuButton=new F;this.addChild(this.menuButton);this.menuButtonBg=this.menuButton.addChild(new F);this.menuButtonBg.get_graphics().beginFill(0);this.menuButtonBg.get_graphics().lineStyle(2,16777215);this.menuButtonBg.get_graphics().drawRoundRect(0,0,140,60,26,26);this.menuButtonBg.get_graphics().endFill();this.menuButtonBg.set_alpha(.4);this.menuButtonlabel=this.menuButton.addChild(new Bb);
this.menuButtonlabel.set_embedFonts(!0);this.menuButtonlabel.set_autoSize(0);this.menuButtonlabel.set_antiAliasType(0);this.menuButtonlabel.set_selectable(!1);this.menuButtonlabel.set_wordWrap(!1);this.menuButtonlabel.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Medium.ttf").name,14,16777215,!1,!1,!1,null,null,0));this.menuButtonlabel.set_width(100);this.menuButtonlabel.set_x(20);this.menuButtonlabel.set_text("M E N U");this.menuButtonlabel.set_y(12);this.menuButton.set_x(465);this.menuButton.set_y(660);
this.menuButton.addEventListener("mouseOver",k(this,this.menuButtonOver));this.menuButton.addEventListener("mouseOut",k(this,this.menuButtonOut));this.menuButton.addEventListener("mouseDown",k(this,this.menuButtonDown));this.menuButton.addEventListener("mouseUp",k(this,this.menuButtonUp))},menuButtonOver:function(a){this.menuButtonBg.set_alpha(.7)},menuButtonOut:function(a){this.menuButtonBg.set_alpha(.4);this.menuButtonBg.get_graphics().clear();this.menuButtonBg.get_graphics().beginFill(0);this.menuButtonBg.get_graphics().lineStyle(2,
16777215);this.menuButtonBg.get_graphics().drawRoundRect(0,0,140,60,26,26);this.menuButtonBg.get_graphics().endFill()},menuButtonDown:function(a){this.menuButtonBg.set_alpha(.7);this.menuButtonBg.get_graphics().clear();this.menuButtonBg.get_graphics().beginFill(0);this.menuButtonBg.get_graphics().lineStyle(3,16777215);this.menuButtonBg.get_graphics().drawRoundRect(0,0,140,60,26,26);this.menuButtonBg.get_graphics().endFill()},menuButtonUp:function(a){this.menuButtonOut()},__class__:Yg});var Zg=function(a,
b){null==b&&(b=0);this.status=0;F.call(this);this.item=a;this.title=this.item.get_title();this._index=b;this.background=new F;this.addChild(this.background);this.number=new Bb;this.number.mouseEnabled=!1;this.number.set_embedFonts(!0);this.number.set_autoSize(2);this.number.set_antiAliasType(0);this.number.set_selectable(!1);this.number.set_wordWrap(!1);this.addChild(this.number);this.label=new Bb;this.label.mouseEnabled=!1;this.label.set_embedFonts(!0);this.label.set_autoSize(0);this.label.set_antiAliasType(0);
this.label.set_selectable(!1);this.label.set_wordWrap(!0);this.label.set_width(120);for(this.label.set_text(this.title);3<this.label.get_numLines();)this.title=this.title.substring(0,this.title.lastIndexOf(" "))+"...",this.label.set_text(this.title);this.addChild(this.label);H.insideJackDaw&&(this.duplicateBtn=new F,this.duplicateBtn.addChild(la.roundRect(24,24,5,16777215,.8,-12,-12)),this.duplicateBtn.addChild(la.addSymbol('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32px" height="32px" viewBox="0 0 32 32" version="1.1"><g id="surface1"><path style=" stroke:none;fill-rule:nonzero;fill:rgb(67,68,66);fill-opacity:1;" d="M 18 28 L 6 28 L 6 12 L 10 12 L 10 8 L 5 8 C 3.351562 8 2 9.351562 2 11 L 2 29 C 2 30.648438 3.351562 32 5 32 L 19 32 C 20.648438 32 22 30.648438 22 29 L 22 26 L 18 26 Z M 18 28 "/><path style=" stroke:none;fill-rule:nonzero;fill:rgb(88,172,218);fill-opacity:1;" d="M 29.101562 5.101562 L 24.851562 0.851562 C 24.300781 0.300781 23.550781 0 22.75 0 L 15 0 C 13.351562 0 12 1.351562 12 3 L 12 21 C 12 22.648438 13.351562 24 15 24 L 27 24 C 28.648438 24 30 22.648438 30 21 L 30 7.25 C 30 6.449219 29.699219 5.699219 29.101562 5.101562 Z M 29.101562 5.101562 "/></g></svg>',
21760,1,24,24)),this.duplicateBtn.set_x(12),this.duplicateBtn.set_y(12),this.duplicateBtn.set_visible(!1),this.duplicateBtn.set_buttonMode(!0),this.addChild(this.duplicateBtn),this.moveBtn=new F,this.moveBtn.addChild(la.roundRect(24,24,5,16777215,.8,-12,-12)),this.moveBtn.addChild(la.addSymbol('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32px" height="32px" viewBox="0 0 32 32" version="1.1"><g id="surface1"><path style=" stroke:none;fill-rule:nonzero;fill:rgb(88,172,218);fill-opacity:1;" d="M 17.398438 0.601562 C 16.601562 -0.199219 15.351562 -0.199219 14.550781 0.601562 L 10.550781 4.601562 C 10 5.148438 9.800781 6.050781 10.101562 6.800781 C 10.398438 7.550781 11.199219 8 12 8 L 14 8 L 14 14 L 8 14 L 8 12 C 8 11.199219 7.5 10.449219 6.75 10.148438 C 6 9.851562 5.148438 10 4.550781 10.601562 L 0.550781 14.601562 C -0.25 15.398438 -0.25 16.648438 0.550781 17.449219 L 4.550781 21.449219 C 5.101562 22 6 22.199219 6.75 21.898438 C 7.5 21.601562 8 20.800781 8 20 L 8 18 L 14 18 L 14 24 L 12 24 C 11.199219 24 10.449219 24.5 10.148438 25.25 C 9.851562 26 10 26.851562 10.601562 27.449219 L 14.601562 31.449219 C 15.398438 32.25 16.648438 32.25 17.449219 31.449219 L 21.449219 27.449219 C 22 26.898438 22.199219 26 21.898438 25.25 C 21.601562 24.5 20.800781 24 20 24 L 18 24 L 18 18 L 24 18 L 24 20 C 24 20.800781 24.5 21.550781 25.25 21.851562 C 26 22.148438 26.851562 22 27.449219 21.398438 L 31.449219 17.398438 C 32.25 16.601562 32.25 15.351562 31.449219 14.550781 L 27.449219 10.550781 C 26.898438 10 26 9.800781 25.25 10.101562 C 24.5 10.449219 24 11.199219 24 12 L 24 14 L 18 14 L 18 8 L 20 8 C 20.800781 8 21.550781 7.5 21.851562 6.75 C 22.148438 6 22 5.148438 21.398438 4.550781 Z M 17.398438 0.601562 "/></g></svg>',
16777215,1,24,24)),this.moveBtn.set_x(75),this.moveBtn.set_y(12),this.moveBtn.set_visible(!1),this.moveBtn.set_buttonMode(!0),this.addChild(this.moveBtn),this.deleteBtn=new F,this.deleteBtn.addChild(la.roundRect(24,24,5,16777215,.8,-12,-12)),this.deleteBtn.addChild(la.addSymbol('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32px" height="32px" viewBox="0 0 32 32" version="1.1"><g id="surface1"><path style=" stroke:none;fill-rule:nonzero;fill:rgb(193,77,51);fill-opacity:1;" d="M 18.949219 16.148438 L 23.050781 12.050781 C 23.851562 11.25 23.851562 9.898438 23.050781 9.101562 C 22.25 8.300781 20.898438 8.300781 20.101562 9.101562 L 16 13.199219 L 11.898438 9.101562 C 11.101562 8.300781 9.75 8.300781 8.949219 9.101562 C 8.148438 9.898438 8.148438 11.25 8.949219 12.050781 L 13.050781 16.148438 L 8.949219 20.25 C 8.148438 21.050781 8.148438 22.398438 8.949219 23.199219 C 9.75 24 11.101562 24 11.898438 23.199219 L 16 19.101562 L 20.101562 23.199219 C 20.898438 24 22.25 24 23.050781 23.199219 C 23.851562 22.398438 23.851562 21.050781 23.050781 20.25 Z M 18.949219 16.148438 "/><path style=" stroke:none;fill-rule:nonzero;fill:rgb(67,68,66);fill-opacity:1;" d="M 27.449219 0 L 4.550781 0 C 2.050781 0 0 2.050781 0 4.550781 L 0 27.449219 C 0 29.949219 2.050781 32 4.550781 32 L 27.398438 32 C 29.898438 32 31.949219 29.949219 31.949219 27.449219 L 31.949219 4.550781 C 32 2.050781 29.949219 0 27.449219 0 Z M 28.550781 27.449219 C 28.550781 28.101562 28.050781 28.601562 27.398438 28.601562 L 4.550781 28.601562 C 3.898438 28.601562 3.398438 28.101562 3.398438 27.449219 L 3.398438 4.75 C 3.449219 4.050781 4 3.5 4.699219 3.5 L 27.300781 3.5 C 28 3.5 28.550781 4.050781 28.550781 4.75 Z M 28.550781 27.449219 "/></g></svg>',
16777215,1,24,24)),this.deleteBtn.set_x(138),this.deleteBtn.set_y(12),this.deleteBtn.set_visible(!1),this.deleteBtn.set_buttonMode(!0),this.addChild(this.deleteBtn));a=new F;a.mouseEnabled=!1;a.get_graphics().beginFill(0,0);a.get_graphics().drawRoundRect(0,0,150,100,10,10);a.get_graphics().endFill();this.addChild(a);this.myShadow=new F;this.myShadow.mouseEnabled=!1;this.myShadow.get_graphics().beginFill(0,0);this.myShadow.get_graphics().lineStyle(0,0,.1);this.myShadow.get_graphics().drawRoundRect(0,
0,150,100,10,10);this.myShadow.get_graphics().endFill();this.myShadow.get_graphics().beginFill(0,0);this.myShadow.get_graphics().lineStyle(2,0,.1);this.myShadow.get_graphics().drawRoundRect(0,0,150,100,10,10);this.myShadow.get_graphics().endFill();this.myShadow.get_graphics().beginFill(0,0);this.myShadow.get_graphics().lineStyle(4,0,.1);this.myShadow.get_graphics().drawRoundRect(0,0,150,100,10,10);this.myShadow.get_graphics().endFill();this.myShadow.get_graphics().beginFill(0,0);this.myShadow.get_graphics().lineStyle(6,
0,.1);this.myShadow.get_graphics().drawRoundRect(0,0,150,100,10,10);this.myShadow.get_graphics().endFill();this.myShadow.get_graphics().beginFill(0,0);this.myShadow.get_graphics().lineStyle(8,0,.1);this.myShadow.get_graphics().drawRoundRect(0,0,150,100,10,10);this.myShadow.get_graphics().endFill();this.myShadow.set_alpha(0);this.myShadow.set_mask(a);this.addChild(this.myShadow);this.drawItem()};g["room.display.menu.MenuItem"]=Zg;Zg.__name__="room.display.menu.MenuItem";Zg.__super__=F;Zg.prototype=
r(F.prototype,{status:null,item:null,background:null,myShadow:null,duplicateBtn:null,moveBtn:null,deleteBtn:null,label:null,title:null,number:null,isDragging:null,position:null,_index:null,drawItem:function(){var a=4868682,b=8092539,c=5526612;1==this.status?(a=15987699,b=0,c=14277081):2==this.status&&(a=16226087,b=16777215,c=16434582);this.background.get_graphics().clear();this.background.get_graphics().beginFill(a);this.background.get_graphics().drawRoundRect(0,0,150,100,10,10);this.background.get_graphics().endFill();
this.number.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Bold.ttf").name,30,c,!1,!1,!1,null,null,4));this.number.set_width(45);this.number.set_height(30);this.number.set_x(100);this.number.set_y(69);this.number.set_visible(!0);this.set_index(this._index);this.label.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Medium.ttf").name,14,b,!1,!1,!1,null,null,0));this.label.set_width(120);this.label.set_height(20);this.label.set_x(15);this.label.set_text(this.title);this.label.set_y(50-
8.5*this.label.get_numLines());this.label.set_visible(!0)},mouseOver:function(){0!=this.status&&(va.tween(this.myShadow,.25,{alpha:.8}).ease(rd.easeOut),H.insideJackDaw&&(this.duplicateBtn.set_visible(!0),this.moveBtn.set_visible(!0),this.deleteBtn.set_visible(!0)))},mouseOut:function(){0!=this.status&&(va.tween(this.myShadow,.25,{alpha:0}).ease(rd.easeOut),H.insideJackDaw&&(this.duplicateBtn.set_visible(!1),this.moveBtn.set_visible(!1),this.deleteBtn.set_visible(!1)))},startDragging:function(){this.isDragging=
!0;this.position=new ab(this.get_x(),this.get_y());this.parent.addChild(this);this.startDrag(!1)},stopDragging:function(){this.stopDrag();this.isDragging=!1},get_index:function(){return this._index},set_index:function(a){this._index=a;this.number.set_text(B.string(this._index+1));return this._index},set_status:function(a){this.status=a;null!=this.item&&this.drawItem();return this.status},__class__:Zg,__properties__:r(F.prototype.__properties__,{set_index:"set_index",get_index:"get_index",set_status:"set_status"})});
var jm=function(){F.call(this);this.imageContainer=new F;this.imageContainer.set_buttonMode(!0);this.addChild(this.imageContainer);this.imageContainer.addEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.openLink))};g["room.display.menu.MenuLogo"]=jm;jm.__name__="room.display.menu.MenuLogo";jm.__super__=F;jm.prototype=r(F.prototype,{imagePath:null,url2open:null,imageContainer:null,onLogoError:function(a){var b=a.target;b.removeEventListener("complete",k(this,this.onLogoLoaded));b.removeEventListener("ioError",
k(this,this.onLogoError));Ub.trace("onLogoError: "+a.text,{fileName:"Source/room/display/menu/MenuLogo.hx",lineNumber:51,className:"room.display.menu.MenuLogo",methodName:"onLogoError"})},onLogoLoaded:function(a){a=a.target;a.removeEventListener("complete",k(this,this.onLogoLoaded));a.removeEventListener("ioError",k(this,this.onLogoError));this.updateSize()},updateSize:function(){var a=5.5<this.imageContainer.get_width()/this.imageContainer.get_height()?330/this.imageContainer.get_width():60/this.imageContainer.get_height();
this.imageContainer.set_scaleX(this.imageContainer.set_scaleY(a));this.imageContainer.set_x(.5*(330-this.imageContainer.get_width()));this.imageContainer.set_y(.5*(60-this.imageContainer.get_height()))},set_imagePath:function(a){if(this.imagePath!=a){this.imagePath=a;var b=this.imageContainer.getChildByName("logoLoader");null!=b&&(this.imageContainer.removeChild(b),this.imageContainer.set_scaleX(this.imageContainer.set_scaleY(1)));if(""!=this.imagePath&&null!=this.imagePath){b=new Kc(H.absoluteCoursePath+
a);var c=new Jd;c.set_name("logoLoader");c.contentLoaderInfo.addEventListener("complete",k(this,this.onLogoLoaded));c.contentLoaderInfo.addEventListener("ioError",k(this,this.onLogoError));c.load(b,new Sh(!1,Ff.currentDomain,null));this.imageContainer.addChild(c)}}return a},openLink:function(a){null!=this.url2open&&""!=this.url2open&&"null"!=this.url2open&&Sa.getURL(new Kc(this.url2open),"_blank")},show:function(a){null==a&&(a=!0);this.set_visible(a);a&&J.getProperty(this.parent,"menuOpen")?va.tween(this,
1,{y:564}).ease(rd.easeOut):va.tween(this,1,{y:660}).ease(rd.easeOut)},__class__:jm,__properties__:r(F.prototype.__properties__,{set_imagePath:"set_imagePath"})});var as=function(){var a=this;F.call(this);this.text=new Bb;this.text.set_embedFonts(!0);this.text.set_autoSize(2);this.text.set_antiAliasType(0);this.text.set_selectable(!1);this.text.set_wordWrap(!1);this.text.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Medium.ttf").name,18,16777215,!1,!1,!1,null,null,0));this.text.set_width(70);
this.text.set_height(20);this.text.set_x(31);this.text.set_y(6);this.text.set_text("1 / 1");this.addChild(this.text);this.right=new Zn;this.right.set_x(116);this.right.set_y(16);this.addChild(this.right);this.left=new Zn;this.left.set_x(16);this.left.set_y(16);this.left.set_rotation(180);this.addChild(this.left);this.right.addEventListener(yb.isMobile()?"mouseDown":"click",function(b){a.dispatchEvent(new W("PageRight"))});this.left.addEventListener(yb.isMobile()?"mouseDown":"click",function(b){a.dispatchEvent(new W("PageLeft"))})};
g["room.display.menu.PageInator"]=as;as.__name__="room.display.menu.PageInator";as.__super__=F;as.prototype=r(F.prototype,{left:null,right:null,text:null,page:null,pagesTotal:null,showMe:function(a){var b=this;if(a)this.set_visible(!0),this.set_alpha(0),this.set_y(65),va.tween(this,.3,{alpha:1,y:85}).ease(rd.easeOut);else va.tween(this,.3,{alpha:0,y:65}).ease(rd.easeOut).onComplete(function(){b.set_visible(!1)})},__class__:as});var dm=function(){this.animDone=!0;this.color=5066061;F.call(this);this.bg=
this.addChild(new F);this.titleField=this.addChild(new Bb);this.titleField.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Light.ttf").name,26,16777215));this.titleField.set_x(450);this.titleField.set_y(365);this.titleField.set_width(260);this.titleField.set_autoSize(1);this.titleField.set_selectable(!1);this.titleField.mouseEnabled=!1;this.titleField.set_embedFonts(!0);this.titleField.set_text("Add comment");this.titleField.set_visible(!1);var a=new ib(na.getFont("fonts/Roboto/Roboto-Regular.ttf").name,
14,4276545);a.leading=4;this.inputField=this.addChild(new qc(5));this.inputField.set_x(450);this.inputField.set_y(410);this.inputField.tf.set_wordWrap(!0);this.inputField.set_bgColor(16777215);this.inputField.set_bgAlpha(1);this.inputField.set_padding(5);this.inputField.set_selectable(!1);this.inputField.set_editable(!0);this.inputField.tf.set_multiline(!0);this.inputField.tff=a;this.inputField.set_width(350);this.inputField.set_placeholder("Type your comment here...");this.inputField.set_borderThickness(1);
this.inputField.set_borderColor(3355443);this.inputField.set_borderRadius(5);this.inputField.set_visible(!1);this.set_visible(!1)};g["room.display.quiz.CommentBoxView"]=dm;dm.__name__="room.display.quiz.CommentBoxView";dm.__super__=F;dm.prototype=r(F.prototype,{inputField:null,titleField:null,color:null,bg:null,animDone:null,show:function(){var a=this;this.animDone=!1;this.titleField.set_alpha(this.inputField.set_alpha(0));this.titleField.set_x(470);this.inputField.set_y(430);this.titleField.set_visible(this.inputField.set_visible(!0));
va.tween(this.titleField,.3,{alpha:1,x:450}).delay(.3);va.tween(this.inputField,.5,{alpha:1,y:410}).delay(.4);va.update(k(this,this.drawBackground),.5,[64,64,0],[420,255,1]).onComplete(function(){a.animDone=!0})},hide:function(a){null==a&&(a=!1);var b=this;a?(this.bg.get_graphics().clear(),this.titleField.set_visible(this.inputField.set_visible(!1)),this.animDone=!0,this.inputField.set_text("")):(this.animDone=!1,va.tween(this.titleField,.2,{alpha:0,x:470}).onComplete(function(){b.titleField.set_visible(!1);
b.titleField.set_alpha(1)}),va.tween(this.inputField,.2,{alpha:0,y:430}).onComplete(function(){b.inputField.set_visible(!1);b.inputField.set_alpha(1)}),va.update(k(this,this.drawBackground),.2,[420,255,1],[64,64,0]).onComplete(function(){b.animDone=!0;b.bg.get_graphics().clear()}))},drawBackground:function(a,b,c){this.bg.get_graphics().clear();this.bg.get_graphics().beginFill(this.color);this.bg.get_graphics().drawRoundRect(834-(a-6*c),589-(b-6*c),a,b,64+6*c);this.bg.get_graphics().endFill()},__class__:dm});
var vh=function(a,b){qc.call(this);this.answer=a;this.set_text(null==b?a.data.text:b);this.set_selectable(!1);this.tff=new ib(na.getFont("fonts/Roboto/Roboto-Regular.ttf").name,18,4276545);this.tf.set_embedFonts(!0);this.set_padding(5);this.set_borderRadius(20)};g["room.display.quiz.DragDropAnswer"]=vh;vh.__name__="room.display.quiz.DragDropAnswer";vh.__super__=qc;vh.prototype=r(qc.prototype,{answer:null,__class__:vh});var Xn=function(){F.call(this);this.overlay=this.addChild(new F);this.overlay.get_graphics().beginFill(16777215,
0);this.overlay.get_graphics().drawRect(0,0,1070,650);this.overlay.get_graphics().endFill();this.bg=this.addChild(new F);this.textField=this.addChild(new Bb);this.textField.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Regular.ttf").name,18,16777215));this.textField.set_x(658);this.textField.set_width(300);this.textField.set_autoSize(1);this.textField.set_selectable(!1);this.textField.set_wordWrap(!0);this.textField.mouseEnabled=!1;this.textField.set_embedFonts(!0);var a=24;Pb.isMobile()&&
(a=32);this.closeBtn=this.addChild(la.closeBtn(a,40));this.closeBtn.set_x(948);this.set_visible(!1)};g["room.display.quiz.FeedbackView"]=Xn;Xn.__name__="room.display.quiz.FeedbackView";Xn.__super__=F;Xn.prototype=r(F.prototype,{textField:null,bg:null,closeBtn:null,overlay:null,color:null,closeCallback:null,show:function(a,b,c){null==c&&(c=.5);this.color=b;this.textField.set_htmlText(a);this.textField.set_y(508-21*this.textField.get_numLines());this.set_visible(!0);this.textField.set_alpha(0);this.closeBtn.set_visible(!1);
this.overlay.set_visible(!1);0<c?(va.tween(this.textField,.3,{alpha:1}).delay(.3),va.update(k(this,this.drawBackground),.5,[130,64,0],[370,110+21*this.textField.get_numLines(),1])):(this.textField.set_alpha(1),this.drawBackground(370,110+21*this.textField.get_numLines(),1))},showWithClose:function(a,b,c,d){this.show(a,b,c);this.closeCallback=d;this.closeBtn.set_y(this.textField.get_y());this.closeBtn.addEventListener("click",k(this,this.onClose));this.overlay.addEventListener("click",k(this,this.onClose));
this.closeBtn.set_visible(!0);this.overlay.set_visible(!0)},hide:function(){this.set_visible(!1)},onClose:function(a){this.closeBtn.removeEventListener("click",k(this,this.onClose));this.overlay.removeEventListener("click",k(this,this.onClose));null!=this.closeCallback&&this.closeCallback(a)},drawBackground:function(a,b,c){this.bg.get_graphics().clear();this.bg.get_graphics().beginFill(this.color);this.bg.get_graphics().drawRoundRect(990-(a-6*c),589-(b-6*c),a,b,64+6*c);this.bg.get_graphics().endFill()},
__class__:Xn});var Wl=function(a){F.call(this);this.model=a;null==this.inputField&&(this.inputField=new yp,this.inputField.set_width(450),this.inputField.set_placeholder("type your text here"),this.inputField.set_borderThickness(1),a=na.getFont("fonts/Roboto/Roboto-Regular.ttf").name,this.inputField.tff=new ib(a,18,4276545),this.inputField.tf.set_embedFonts(!0),this.inputField.set_padding(5),this.inputField.set_borderRadius(20),this.addChild(this.inputField))};g["room.display.quiz.FillTheBlank"]=
Wl;Wl.__name__="room.display.quiz.FillTheBlank";Wl.__super__=F;Wl.prototype=r(F.prototype,{model:null,inputField:null,showAnswers:function(){this.inputField.freeze();this.model.get_correct()?this.inputField.set_bgColor(65280):this.inputField.set_bgColor(16711680);this.inputField.set_bgAlpha(.7);for(var a=0,b=this.model.answers.length;a<b;){var c=a++,d=this.model.answers[c],e=new qc;e.set_width(450);e.set_text(d.data.text);e.set_y((c+1)*(this.inputField.get_height()+15));e.set_borderThickness(1);e.set_editable(!1);
e.tff=new ib(na.getFont("fonts/Roboto/Roboto-Regular.ttf").name,18,4276545);e.tf.set_embedFonts(!0);e.set_padding(5);e.set_borderRadius(20);this.addChild(e)}},__class__:Wl});var ri=function(a){F.call(this);this.model=a;this.left=[];this.right=[];for(var b=0,c=a.answers.length;b<c;){var d=b++;d=a.answers[d];var e=new vh(d);this.left.push(e);d=new vh(d,d.data.match);this.right.push(d)}this.left=fg.shuffle(this.left);this.right=fg.shuffle(this.right);this.drawAnswers()};g["room.display.quiz.MatchingDragDrop"]=
ri;ri.__name__="room.display.quiz.MatchingDragDrop";ri.__super__=F;ri.prototype=r(F.prototype,{model:null,left:null,right:null,drawAnswers:function(){for(;0<this.get_numChildren();)this.removeChildAt(0);for(var a=0,b=this.left.length;a<b;){var c=a++,d=this.left[c];d.set_editable(!1);d.set_buttonMode(!0);d.mouseChildren=!1;d.set_width(200);d.set_x(null!=d.answer.matchRight?30:0);d.set_y(c*ri.SIZE);d.set_borderThickness(1);d.set_borderRadius(20);d.set_bgColor(14540253);d.set_bgAlpha(1);this.addChild(d);
d=this.right[c];d.set_editable(!1);d.set_buttonMode(!0);d.mouseChildren=!1;d.set_width(200);d.set_x(null!=d.answer.matchLeft?220:250);d.set_y(c*ri.SIZE);d.set_borderThickness(1);d.set_borderRadius(20);d.set_bgColor(14540253);d.set_bgAlpha(1);this.addChild(d)}},__class__:ri});var $l=function(a){this.checkboxes=[];F.call(this);this.model=a};g["room.display.quiz.MultipleChoice"]=$l;$l.__name__="room.display.quiz.MultipleChoice";$l.__super__=F;$l.prototype=r(F.prototype,{model:null,checkboxes:null,removeCheckBoxes:function(){for(;0<
this.checkboxes.length;)this.removeChild(this.checkboxes.splice(0,1)[0])},addCheckBoxes:function(){0<this.model.answers.length&&this.addNextCheckBox(0)},addNextCheckBox:function(a){var b=Wc.factory(this.model.answers[a],a);this.checkboxes.push(b);this.addChild(b);this.dispatchEvent(new W("enterFrame"));a<this.model.answers.length-1&&this.addNextCheckBox(a+1)},__class__:$l});var Wc=function(a,b,c,d){null==d&&(d="assets/checkbox");null==c&&(c=21);ie.call(this,a.data.text,c,a.get_textFormat());this.model=
a;this.index=b;this.assets=d;this.set_name("checkbox_"+b)};g["room.display.quiz.QuizCheckBox"]=Wc;Wc.__name__="room.display.quiz.QuizCheckBox";Wc.factory=function(a,b){var c="inline"==a.question.data.get_type()?"MC"==a.question.data.qType?$n:ao:bo;return wb.createInstance(c,[a,b])};Wc.__super__=ie;Wc.prototype=r(ie.prototype,{model:null,index:null,__class__:Wc});var ao=function(a,b){var c=28;Pb.isMobile()&&(c=48);Wc.call(this,a,b,c)};g["room.display.quiz.QuizCheckBox1"]=ao;ao.__name__="room.display.quiz.QuizCheckBox1";
ao.__super__=Wc;ao.prototype=r(Wc.prototype,{initialize:function(){if(!this._built){Wc.prototype.initialize.call(this);this.titleField.set_width(475);this.titleField.set_wordWrap(!0);this.titleField.mouseEnabled=!1;this.doSetTextFormat();var a=this.model.question.settings.get_columns();if(0<a){this.titleField.set_width((475-(this.titleField.get_x()+20)*a)/a);var b=null;0<this.index&&(b=this.parent.getChildByName("checkbox_"+(this.index-1)),null!=b&&b.initialize());1==this.index%a?(this.set_x(null!=
b?b.get_x()+b.get_width()+20:0),this.set_y(null!=b?b.get_y():0)):(this.set_x(0),this.set_y(null!=b?b.get_y()+Math.max(b.get_height()+8,this._size):0))}}},set_selected:function(a){Wc.prototype.set_selected.call(this,a);return this.model.set_selected(a)},__class__:ao});var bo=function(a,b){this.normalTF=new ib(na.getFont("fonts/Roboto/Roboto-Regular.ttf").name,18,4276545);this.boldTF=new ib(na.getFont("fonts/Roboto/Roboto-Bold.ttf").name,18,4276545);this.surveyStyle="survey"==a.question.settings.typeString;
Wc.call(this,a,b,66);this.model=a};g["room.display.quiz.QuizCheckBox2"]=bo;bo.__name__="room.display.quiz.QuizCheckBox2";bo.__super__=Wc;bo.prototype=r(Wc.prototype,{cbNormal:null,cbOver:null,cbDown:null,cbSelectedDown:null,cbChecked:null,cbCheckedOver:null,cbCorrect:null,cbIncorrect:null,surveyStyle:null,originalTitle:null,isTruncated:null,normalTF:null,boldTF:null,focusBox:null,initialize:function(){if(!this._built){this._built=!0;var a=Math.ceil(.25*this.model.question.answers.length),b=Math.ceil(this.model.question.answers.length/
a),c=(850-H.quizPicOffsetX)/a-115,d=this.index%b;this.set_x((850-H.quizPicOffsetX)/a*Math.floor(this.index/b));this.set_y(81*d);this.cbNormal=la.checkBox("cbox-empty",this.surveyStyle?this.index:null);this.cbOver=la.checkBox("cbox-empty-over",this.surveyStyle?this.index:null);this.cbDown=la.checkBox("cbox-empty-down",this.surveyStyle?this.index:null);this.cbSelectedDown=la.checkBox("cbox-checked-down",this.surveyStyle?this.index:null);this.cbChecked=la.checkBox("cbox-checked",this.surveyStyle?this.index:
null);this.cbCheckedOver=la.checkBox("cbox-checked-over",this.surveyStyle?this.index:null);this.cbCorrect=la.checkBox("cbox-correct");this.cbIncorrect=la.checkBox("cbox-incorrect");this.cbNormal.set_x(this.cbOver.set_x(this.cbDown.set_x(this.cbSelectedDown.set_x(this.cbChecked.set_x(this.cbCheckedOver.set_x(this.cbCorrect.set_x(this.cbIncorrect.set_x(53))))))));this.cbNormal.set_y(this.cbOver.set_y(this.cbDown.set_y(this.cbSelectedDown.set_y(this.cbChecked.set_y(this.cbCheckedOver.set_y(this.cbCorrect.set_y(this.cbIncorrect.set_y(33))))))));
this.cbChecked.set_alpha(this.cbOver.set_alpha(this.cbCorrect.set_alpha(this.cbIncorrect.set_alpha(this.cbDown.set_alpha(this.cbSelectedDown.set_alpha(this.cbCheckedOver.set_alpha(0)))))));this.titleField=new Bb;this.titleField.set_x(115);this.titleField.set_width(c);this.titleField.set_autoSize(1);this.titleField.set_selectable(!1);this.titleField.set_wordWrap(!0);this.titleField.mouseEnabled=!1;this.titleField.set_defaultTextFormat(this.normalTF);this.titleField.set_embedFonts(!0);this.titleField.set_text(this._title);
if(!ec.hasTags(this._title)&&2<this.titleField.get_numLines())for(this.originalTitle=this._title,this.isTruncated=!0,this._title+="...";2<this.titleField.get_numLines();)this._title=G.substr(this._title,0,this._title.length-4)+"...",this.titleField.set_text(this._title);this.titleField.set_y((this._size-21*this.titleField.get_numLines())/2);this.addChild(this.cbNormal);this.addChild(this.cbOver);this.addChild(this.cbDown);this.addChild(this.cbSelectedDown);this.addChild(this.cbChecked);this.addChild(this.cbCheckedOver);
this.addChild(this.cbCorrect);this.addChild(this.cbIncorrect);a=new F;a.get_graphics().beginFill(0,0);c=this.surveyStyle?66:115+c;a.get_graphics().drawRect(0,0,c,66);a.get_graphics().endFill();a.set_x(this.surveyStyle?20:0);this.addChild(a);this.focusBox=new F;this.focusBox.get_graphics().lineStyle(2,6653896);this.focusBox.get_graphics().drawRoundRect(a.get_x()+10,a.get_y()-10,a.get_width()+10,a.get_height()+20,20,20);this.addChild(this.focusBox);this.focusBox.set_visible(!1);this.surveyStyle||this.addChild(this.titleField);
this.surveyStyle&&(this.set_x(150*this.index),this.set_y(0));this.enabled&&this.__enable()}},setTitle2:function(a,b){null==b&&(b=!1);this.titleField.set_htmlText(a);this.titleField.setTextFormat(b?this.boldTF:this.normalTF)},set_focused:function(a){this.focusBox.set_visible(a);return this._focused=a},displayState:function(){this.cbNormal.set_alpha(this.cbChecked.set_alpha(this.cbOver.set_alpha(this.cbCorrect.set_alpha(this.cbIncorrect.set_alpha(this.cbDown.set_alpha(this.cbSelectedDown.set_alpha(this.cbCheckedOver.set_alpha(0))))))));
switch(this._state){case "answered":this.cbChecked.set_alpha(1);this.setTitle2(this._title,!0);break;case "correct":this.cbCorrect.set_alpha(1);this.setTitle2(this._title,!0);break;case "down-empty":this.cbDown.set_alpha(1);this.setTitle2(this._title,!0);break;case "down-selected":this.cbSelectedDown.set_alpha(1);this.setTitle2(this._title,!0);break;case "incorrect":this.cbIncorrect.set_alpha(1);this.setTitle2(this._title);break;case "initial":this.cbNormal.set_alpha(1);this.setTitle2(this._title);
break;case "over":this.cbOver.set_alpha(1);this.setTitle2(this._title);break;case "over-selected":this.cbCheckedOver.set_alpha(1),this.setTitle2(this._title,!0)}},set_selected:function(a){Wc.prototype.set_selected.call(this,a);return this.model.set_selected(a)},__class__:bo});var $g=function(a){this.questionFontSize=24;F.call(this);this.model=a;this.surveyStyle="LKS"==a.data.qType;this.questionField=new Bb;this.questionField.set_embedFonts(!0);this.questionField.set_autoSize(1);this.questionField.set_antiAliasType(0);
this.questionField.set_selectable(!1);this.questionField.set_wordWrap(!0);this.questionField.set_y(0);this.addChild(this.questionField);this.titleField=new Bb;this.titleField.set_embedFonts(!0);this.titleField.set_autoSize(1);this.titleField.set_antiAliasType(0);this.titleField.set_selectable(!1);this.titleField.set_y(0);this.addChild(this.titleField);this.titleField.set_visible(!1);this.commentField=new Bb;this.addChild(this.commentField)};g["room.display.quiz.QuizQuestion"]=$g;$g.__name__="room.display.quiz.QuizQuestion";
$g.createAnswers=function(a){switch(a.data.qType){case "FB":return new Wl(a);case "LKS":return new am(a);case "MDD":return new ri(a);case "SDD":return new xi(a);case "WB":return new Ai(a);default:if("TEXT"!=a.data.qType)return new $l(a)}return null};$g.__super__=F;$g.prototype=r(F.prototype,{model:null,answers:null,questionCont:null,questionField:null,titleField:null,commentField:null,questionText:null,questionFontSize:null,surveyStyle:null,isTruncated:null,update:function(){this.questionField.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Regular.ttf").name,
this.questionFontSize,0,!1,!1,!1,"","",this.surveyStyle?0:3));this.titleField.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Black.ttf").name,this.questionFontSize,0,!1,!1,!1,"","",this.surveyStyle?0:3));var a=4;""!=this.model.data.title&&(this.titleField.set_text(this.model.data.title),this.questionField.set_y(32),this.titleField.set_visible(!0),--a);this.isTruncated=!1;this.questionText=this.model.data.get_text().replace(/\n\n/g,"\n");this.questionField.set_width(860-H.quizPicOffsetX);
this.questionField.set_x(H.quizOffsetX+H.quizPicOffsetX);this.questionField.set_text(this.questionText);if(this.questionField.get_numLines()>a){for(this.questionField.set_text(this.questionField.get_text()+"...");this.questionField.get_numLines()>a;)this.questionField.set_text(G.substr(this.questionField.get_text(),0,this.questionField.get_length()-4)+"...");this.isTruncated=!0}this.titleField.set_width(860-H.quizPicOffsetX);this.titleField.set_x(H.quizOffsetX+H.quizPicOffsetX);null!=this.answers&&
this.removeChild(this.answers);this.answers=$g.createAnswers(this.model);null!=this.answers&&(this.answers.set_x(this.surveyStyle?180:this.questionField.get_x()),this.answers.set_y(this.questionField.get_y()+this.questionField.get_numLines()*(this.questionFontSize+3)+40),this.addChild(this.answers));a=Math.ceil(this.model.answers.length/Math.ceil(.25*this.model.answers.length));this.set_y((650-((""!=this.model.data.title?Math.ceil(1.3333333333333333*this.questionFontSize):0)+this.questionField.get_numLines()*
(this.questionFontSize+3)+40+(this.surveyStyle?150:81*a)))/2);520<this.get_height()&&14<this.questionFontSize&&(this.questionFontSize--,this.update())},__class__:$g});var $n=function(a,b){var c=28;Pb.isMobile()&&(c=48);Wc.call(this,a,b,c,"assets/radio")};g["room.display.quiz.QuizRadioButton"]=$n;$n.__name__="room.display.quiz.QuizRadioButton";$n.__super__=Wc;$n.prototype=r(Wc.prototype,{initialize:function(){if(!this._built){Wc.prototype.initialize.call(this);this.titleField.set_width(475);this.titleField.set_wordWrap(!0);
this.titleField.mouseEnabled=!1;this.doSetTextFormat();var a=this.model.question.settings.get_columns();if(0<a){this.titleField.set_width((475-(this.titleField.get_x()+20)*a)/a);var b=null;0<this.index&&(b=this.parent.getChildByName("checkbox_"+(this.index-1)),null!=b&&b.initialize());1==this.index%a?(this.set_x(null!=b?b.get_x()+b.get_width()+20:0),this.set_y(null!=b?b.get_y():0)):(this.set_x(0),this.set_y(null!=b?b.get_y()+Math.max(b.get_height()+8,this._size):0))}}},set_selected:function(a){Wc.prototype.set_selected.call(this,
a);return this.model.set_selected(a)},__class__:$n});var cm=function(){Q.call(this);this.set_x(535);this.set_y(325);this.set_visible(!1);this.timeTextFormat=new ib(na.getFont("fonts/Roboto/Roboto-Black.ttf").name,18,16225312,!1,!1,!1,null,null,0);this.timeField=new Bb;this.timeField.set_autoSize(0);this.timeField.set_antiAliasType(0);this.timeField.set_wordWrap(!0);this.timeField.set_width(300);this.timeField.set_height(25);this.timeField.set_x(-150);this.timeField.set_selectable(!1);this.timeField.set_defaultTextFormat(this.timeTextFormat);
this.timeField.set_embedFonts(!0);this.addChild(this.timeField);this.ratioTextFormat=new ib(na.getFont("fonts/Roboto/Roboto-Black.ttf").name,16,4276545,!1,!1,!1,null,null,0);this.ratioField=new Bb;this.ratioField.set_autoSize(0);this.ratioField.set_antiAliasType(0);this.ratioField.set_wordWrap(!0);this.ratioField.set_width(300);this.ratioField.set_height(20);this.ratioField.set_x(-150);this.ratioField.set_selectable(!1);this.ratioField.set_defaultTextFormat(this.ratioTextFormat);this.ratioField.set_embedFonts(!0);
this.addChild(this.ratioField);this.issueField=new Bb;this.issueField.set_autoSize(0);this.issueField.set_antiAliasType(0);this.issueField.set_width(700);this.issueField.set_x(-350);this.issueField.set_selectable(!1);this.issueField.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Light.ttf").name,36,4276545,!1,!1,!1,null,null,0));this.issueField.set_embedFonts(!0);this.addChild(this.issueField)};g["room.display.quiz.QuizReportView"]=cm;cm.__name__="room.display.quiz.QuizReportView";cm.__super__=
Q;cm.prototype=r(Q.prototype,{timeTextFormat:null,timeField:null,ratioTextFormat:null,ratioField:null,issueField:null,init:function(){this.set_visible(!0)},__class__:cm});var bm=function(){Q.call(this);this.set_visible(!1);this.image=new Q;this.addChild(this.image);this.plainBG=new F;this.plainBG.get_graphics().beginFill(15987699);this.plainBG.get_graphics().drawRect(0,0,1070,650);this.plainBG.get_graphics().endFill();this.addChild(this.plainBG);this.questionsHolder=new Q;this.addChild(this.questionsHolder);
this.intro=new Q;var a=new F;a.get_graphics().beginFill(15987699);a.get_graphics().drawRect(0,0,1070,650);a.get_graphics().endFill();a.set_x(-535);a.set_y(-325);this.intro.addChild(a);this.intro.set_x(535);this.intro.set_y(325);this.addChild(this.intro);a=this.drawPartCircle(16777215);a.set_x(1070);a.set_y(30);a.set_rotation(-270);this.addChild(a);this.totalProgress=this.drawPartCircle(14474460);this.totalProgress.set_x(1070);this.totalProgress.set_y(30);this.totalProgress.set_rotation(-180);this.addChild(this.totalProgress);
this.incorrectProgress=this.drawPartCircle(16730920);this.incorrectProgress.set_x(1070);this.incorrectProgress.set_y(30);this.incorrectProgress.set_rotation(-180);this.addChild(this.incorrectProgress);this.correctProgress=this.drawPartCircle(6205229);this.correctProgress.set_x(1070);this.correctProgress.set_y(30);this.correctProgress.set_rotation(-180);this.addChild(this.correctProgress);a=new F;a.get_graphics().beginFill(15987699);a.get_graphics().drawCircle(0,0,87);a.get_graphics().endFill();a.set_x(1070);
a.set_y(30);this.addChild(a);this.progressField=new Bb;this.progressField.set_x(1E3);this.progressField.set_y(54);this.progressField.set_width(68);this.progressField.set_height(21);this.progressField.set_selectable(!1);this.progressField.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Black.ttf").name,14,4276545,!1,!1,!1,null,null,0));this.progressField.set_embedFonts(!0);this.progressField.set_text("0 / 0");this.addChild(this.progressField);this.timeField=new Bb;this.timeField.set_x(900);
this.timeField.set_y(54);this.timeField.set_width(68);this.timeField.set_height(21);this.timeField.set_selectable(!1);this.timeField.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Black.ttf").name,14,4276545,!1,!1,!1,null,null,0));this.timeField.set_embedFonts(!0);this.addChild(this.timeField);this.commentBox=this.addChild(new dm);this.feedback=this.addChild(new Xn);this.report=this.addChild(new cm)};g["room.display.quiz.QuizView"]=bm;bm.__name__="room.display.quiz.QuizView";bm.__super__=
Q;bm.prototype=r(Q.prototype,{intro:null,report:null,questionsHolder:null,feedback:null,image:null,introText:null,timeField:null,progressField:null,plainBG:null,correctProgress:null,incorrectProgress:null,totalProgress:null,commentBox:null,init:function(){this.set_visible(!0);this.set_x(0);this.set_y(0)},setUpIntro:function(a){var b=this;this.introText=new Bb;this.introText.set_embedFonts(!0);this.introText.set_autoSize(0);this.introText.set_antiAliasType(0);this.introText.set_selectable(!1);this.introText.set_wordWrap(!0);
this.introText.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Light.ttf").name,36,4276545,!1,!1,!1,null,null,0));this.introText.set_width(700);this.introText.set_x(-350);this.introText.set_text(Oe.removeTags(a));this.intro.addChild(this.introText);a=this.intro.addChild(Jc.drawButton('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m 28.035,15.995 -3.04,3.04 v 0 l -6.07,6.07 -3.04,-3.04 3.93,-3.93 H 3.965 v -4.29 h 15.84 l -3.91,-3.9099997 3.04,-3.0400005 6.07,6.0700002 v 0 z" id="arrow2" /></svg>'));
a.set_x(-65);var c=39*this.introText.get_numLines();this.introText.set_y(-.5*(c+70));a.set_y(this.introText.get_y()+c+33+4);a.addEventListener(Pb.isMobile()?"mouseDown":"click",function(a){kf.play("thozi_daClick.mp3");b.intro.dispatchEvent(new W("complete"))})},drawPartCircle:function(a){var b=new F;b.get_graphics().beginFill(a);b.get_graphics().moveTo(0,105);b.get_graphics().lineTo(0,0);b.get_graphics().lineTo(105,0);a=Math.PI/180;for(var c=1;90>c;){var d=c++,e=105*Math.cos(a*d);d=105*Math.sin(a*
d);b.get_graphics().lineTo(e,d)}b.get_graphics().lineTo(0,105);b.get_graphics().endFill();return b},setTimeRemaining:function(a){var b=a/3600|0;this.timeField.set_text(Gb.formatTime(0<b?b:null,(a/60|0)%60,a%60))},__class__:bm});var xi=function(a){F.call(this);this.model=a;this.answers=[];for(var b=0,c=a.answers.length;b<c;){var d=b++;d=new vh(a.answers[d]);d.set_editable(!1);d.set_buttonMode(!0);d.mouseChildren=!1;d.set_width(450);d.set_borderThickness(1);d.set_borderRadius(20);d.set_bgColor(14540253);
d.set_bgAlpha(1);d.tff=new ib(na.getFont("fonts/Roboto/Roboto-Regular.ttf").name,18,4276545);d.tf.set_embedFonts(!0);d.set_padding(5);this.addChild(d);this.answers.push(d)}this.answers=fg.shuffle(this.answers)};g["room.display.quiz.SequenceDragDrop"]=xi;xi.__name__="room.display.quiz.SequenceDragDrop";xi.__super__=F;xi.prototype=r(F.prototype,{model:null,answers:null,currentDrag:null,drawAnswers:function(){for(var a=0,b=this.answers.length;a<b;){var c=a++,d=this.answers[c];d!=this.currentDrag&&(d.set_x(0),
d.set_y(c*xi.SIZE))}},startDragging:function(a){this.currentDrag=a;this.addChild(this.currentDrag);this.currentDrag.startDrag()},stopDragging:function(){this.currentDrag.stopDrag();this.currentDrag=null;this.drawAnswers()},handleDragging:function(){var a=this.answers.indexOf(this.currentDrag);if(this.currentDrag.get_y()>a*xi.SIZE)for(var b=this.answers.length-1;b>a;){if(this.currentDrag.get_y()>this.answers[b].get_y()+this.answers[b].get_height()/2){var c=this.answers[b];this.answers[b]=this.currentDrag;
this.answers[a]=c;break}--b}else{c=0;for(var d=a+1;c<d;)if(b=c++,this.currentDrag.get_y()<this.answers[b].get_y()+this.answers[b].get_height()/2){c=this.answers[b];this.answers[b]=this.currentDrag;this.answers[a]=c;break}}this.drawAnswers()},__class__:xi});var am=function(a){this.checkboxes=[];F.call(this);this.model=a;this.commentLabel=new Bb;this.commentLabel.set_embedFonts(!0);this.commentLabel.set_antiAliasType(0);this.commentLabel.set_selectable(!1);this.commentLabel.set_defaultTextFormat(new ib(na.getFont("fonts/Roboto/Roboto-Regular.ttf").name,
18,0,!1,!1,!1,"","",0));this.commentLabel.set_width(710);this.commentLabel.set_x(0);this.commentLabel.set_text("");this.commentLabel.set_y(90);this.addChild(this.commentLabel)};g["room.display.quiz.Survey"]=am;am.__name__="room.display.quiz.Survey";am.__super__=F;am.prototype=r(F.prototype,{model:null,checkboxes:null,commentLabel:null,tmpLabel:null,addChoiceSelector:function(){var a=Wc.factory(this.model.answers[0],0);a.addEventListener("over_cb",k(this,this.signalLabel));a.addEventListener("out_cb",
k(this,this.signalLabel));a.addEventListener("selected_cb",k(this,this.signalLabel));this.checkboxes.push(a);this.addChild(a);a=Wc.factory(this.model.answers[1],1);a.addEventListener("over_cb",k(this,this.signalLabel));a.addEventListener("out_cb",k(this,this.signalLabel));a.addEventListener("selected_cb",k(this,this.signalLabel));this.checkboxes.push(a);this.addChild(a);a=Wc.factory(this.model.answers[2],2);a.addEventListener("over_cb",k(this,this.signalLabel));a.addEventListener("out_cb",k(this,
this.signalLabel));a.addEventListener("selected_cb",k(this,this.signalLabel));this.checkboxes.push(a);this.addChild(a);a=Wc.factory(this.model.answers[3],3);a.addEventListener("over_cb",k(this,this.signalLabel));a.addEventListener("out_cb",k(this,this.signalLabel));a.addEventListener("selected_cb",k(this,this.signalLabel));this.checkboxes.push(a);this.addChild(a);a=Wc.factory(this.model.answers[4],4);a.addEventListener("over_cb",k(this,this.signalLabel));a.addEventListener("out_cb",k(this,this.signalLabel));
a.addEventListener("selected_cb",k(this,this.signalLabel));this.checkboxes.push(a);this.addChild(a);this.dispatchEvent(new W("enterFrame"))},signalLabel:function(a){var b=a.currentTarget;"selected_cb"==a.type?b.get_selected()?this.commentLabel.set_text(this.tmpLabel=""):this.commentLabel.set_text(this.tmpLabel=b.get_title()):"over_cb"==a.type?(this.tmpLabel=this.commentLabel.get_text(),this.commentLabel.set_text(b.get_title())):this.commentLabel.set_text(this.tmpLabel)},removeChoiceSelector:function(){for(;0<
this.checkboxes.length;)this.checkboxes[0].removeEventListener("over_cb",k(this,this.signalLabel)),this.checkboxes[0].removeEventListener("out_cb",k(this,this.signalLabel)),this.checkboxes[0].removeEventListener("selected_cb",k(this,this.signalLabel)),this.removeChild(this.checkboxes.splice(0,1)[0])},__class__:am});var Ai=function(a){F.call(this);this.model=a;this.addDropArea();this.addAnswers()};g["room.display.quiz.WordBank"]=Ai;Ai.__name__="room.display.quiz.WordBank";Ai.__super__=F;Ai.prototype=
r(F.prototype,{model:null,dropArea:null,answers:null,normalTF:null,boldTF:null,addDropArea:function(){this.dropArea=new qc;this.dropArea.set_text("");this.dropArea.set_width(450);this.dropArea.set_borderThickness(1);this.dropArea.set_editable(!1);this.dropArea.set_placeholder("Drag and drop here an answer from below");var a=na.getFont("fonts/Roboto/Roboto-Regular.ttf").name;this.dropArea.tff=new ib(a,18,4276545);this.dropArea.tf.set_embedFonts(!0);this.dropArea.set_padding(5);this.addChild(this.dropArea)},
addAnswers:function(){this.answers=[];for(var a=0,b=this.model.answers.length;a<b;){var c=a++,d=this.model.answers[c].data,e=new qc;e.set_editable(!1);e.set_buttonMode(!0);e.mouseChildren=!1;e.set_text(d.text);e.set_width(450);e.set_y((c+1)*Ai.SIZE);e.set_borderThickness(1);e.set_borderRadius(20);e.set_bgColor(14540253);e.set_bgAlpha(1);e.tff=new ib(na.getFont("fonts/Roboto/Roboto-Regular.ttf").name,18,4276545);e.tf.set_embedFonts(!0);e.tf.mouseEnabled=!1;e.set_padding(5);this.addChild(e);this.answers.push(e)}},
showCorrect:function(){this.model.get_correct()?this.dropArea.set_bgColor(65280):this.dropArea.set_bgColor(16711680);this.dropArea.set_bgAlpha(.7)},__class__:Ai});var km=function(a){cd.call(this);this.set_contentNode(a)};g["room.display.screen_navigator.ContentElement"]=km;km.__name__="room.display.screen_navigator.ContentElement";km.__super__=cd;km.prototype=r(cd.prototype,{contentNode:null,set_contentNode:function(a){null!=this.contentNode&&a.get_signals().get_change().remove(k(this,this.onContentNodeChange));
this.contentNode=a;this.onContentNodeChange(a);H.insideJackDaw&&a.get_signals().get_change().add(k(this,this.onContentNodeChange));return this.contentNode},getInnerHtml:function(){var a=this.contentNode.value;a=(new fa("<font([^>]+)>","ig")).map(a,function(a){var b=a.matched(0);a=a.matched(1);var c=new fa("size\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");if(c.match(a)){var d=null!=c.matched(2)?2:3;d=parseFloat(c.matched(d));if(7<d&&!(new fa("style\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i")).match(a))return b.replace(c.r,
'style="font-size:'+d+'px"')}return b});var b=["width:"+this.contentNode.width+"px","height:"+this.contentNode.height+"px","padding: "+this.contentNode.padding+"px","overflow-y: "+(this.contentNode.scroll?"auto":"hidden"),"opacity: "+this.contentNode.alpha];if(this.contentNode.hasBackground){var c=Ng.toRGB(this.contentNode.bgColor);b.push("background: rgba("+c[0]+", "+c[1]+", "+c[2]+", "+this.contentNode.bgAlpha+")")}0<this.contentNode.borderSize&&(c=Ng.toRGB(this.contentNode.borderColor),b.push("border: "+
this.contentNode.borderSize+"px solid rgba("+c[0]+", "+c[1]+", "+c[2]+", "+this.contentNode.borderAlpha));return'<div class="content-element" style="'+b.join("; ")+'">'+a+"</div>"},initializeJackdaw:function(){cd.prototype.initializeJackdaw.call(this);null!=this.contentNode&&this.contentNode.get_signals().get_change().add(k(this,this.onContentNodeChange))},updateJackdawLabel:function(){if(0<this.contentNode.width&&0<this.contentNode.height)if(cd.prototype.updateJackdawLabel.call(this),!Ya.options.get_previewMode()&&
this.contentNode.validAutoNarrator()){var a=Fb.drawDOMLabel(this,"+auto narrator","jackdaw-label-left");a.style.top="15px";a.style.fontSize="10px"}else Fb.clearDOMLabel(this,"jackdaw-label-left");else Fb.clearDOMLabel(this,"jackdaw-label-left"),Fb.clearLabel(this)},getJackdawTagName:function(){var a=this.contentNode.get_fast();if(a.nodeType==z.Document)a="Document";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));
a=a.nodeName}if("Content"==kb.getSingleName(a)){a=this.contentNode.get_fast();if(a.nodeType==z.Document)return"Document";if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a.nodeName}return"Content"},onContentNodeChange:function(a){var b=this;this.set_x(this.contentNode.x);this.set_y(this.contentNode.y);this._rendered&&(this.updateInnerHtml(),this.update());(!H.insideJackDaw||Ya.options.get_previewMode())&&
0<this.contentNode.get_delay()?(this.set_visible(!1),Qb.delay(function(){b.set_visible(!0)},1E3*this.contentNode.get_delay())):this.set_visible(!0)},onRemovedFromStage:function(a){cd.prototype.onRemovedFromStage.call(this,a);this.contentNode.get_signals().get_change().remove(k(this,this.onContentNodeChange))},__class__:km,__properties__:r(cd.prototype.__properties__,{set_contentNode:"set_contentNode"})});var im=function(){F.call(this)};g["room.display.screen_navigator.ContentHolder"]=im;im.__name__=
"room.display.screen_navigator.ContentHolder";im.__super__=F;im.prototype=r(F.prototype,{__class__:im});var Ul=function(){Og.call(this)};g["room.display.screen_navigator.ContentMask"]=Ul;Ul.__name__="room.display.screen_navigator.ContentMask";Ul.__super__=Og;Ul.prototype=r(Og.prototype,{__class__:Ul});var co=function(a){cd.call(this);this.set_iframeNode(a)};g["room.display.screen_navigator.EmbedElement"]=co;co.__name__="room.display.screen_navigator.EmbedElement";co.__super__=cd;co.prototype=r(cd.prototype,
{iframeNode:null,set_iframeNode:function(a){null!=this.iframeNode&&a.get_signals().get_change().remove(k(this,this.onIframeNodeChange));this.iframeNode=a;this.onIframeNodeChange(a);H.insideJackDaw&&a.get_signals().get_change().add(k(this,this.onIframeNodeChange));return this.iframeNode},getInnerHtml:function(){var a=["opacity: "+this.iframeNode.alpha];null!=this.iframeNode.width&&a.push("width:"+this.iframeNode.width+"px");null!=this.iframeNode.height&&a.push("height:"+this.iframeNode.height+"px");
if(0<this.iframeNode.borderSize){var b=Ng.toRGB(this.iframeNode.borderColor);a.push("border: "+this.iframeNode.borderSize+"px solid rgba("+b[0]+", "+b[1]+", "+b[2]+", "+this.iframeNode.borderAlpha)}return'<iframe src="'+this.iframeNode.src+'"\n                        class="embed-element"\n                        style="'+a.join("; ")+"; "+this.iframeNode.style+'"\n                        loading="'+this.iframeNode.loading+'"\n                        frameborder="'+this.iframeNode.frameborder+'"\n                        allow="'+
this.iframeNode.allow+'" '+(this.iframeNode.allowfullscreen?"allowfullscreen":"")+">\n                </iframe>"},initializeJackdaw:function(){cd.prototype.initializeJackdaw.call(this);null!=this.iframeNode&&this.iframeNode.get_signals().get_change().add(k(this,this.onIframeNodeChange))},updateJackdawLabel:function(){this.__element.firstElementChild.removeEventListener("load",k(this,this.onLoad));this.__element.firstElementChild.addEventListener("load",k(this,this.onLoad));0<this.iframeNode.width&&
0<this.iframeNode.height?cd.prototype.updateJackdawLabel.call(this):Fb.clearLabel(this)},onLoad:function(a){var b=N.__cast(a.target,HTMLElement).offsetWidth;a=N.__cast(a.target,HTMLElement).offsetHeight;null!=this.iframeNode.width&&null!=this.iframeNode.height||this.iframeNode.updateSize(b,a)},getJackdawTagName:function(){var a=this.iframeNode.get_fast();if(a.nodeType==z.Document)a="Document";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?
"null":V.toString(a.nodeType)));a=a.nodeName}if("iframe"==kb.getSingleName(a)){a=this.iframeNode.get_fast();if(a.nodeType==z.Document)return"Document";if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a.nodeName}return"iframe"},onIframeNodeChange:function(a){var b=this;this.set_x(this.iframeNode.x);this.set_y(this.iframeNode.y);this._rendered&&(this.updateInnerHtml(),this.update());(!H.insideJackDaw||Ya.options.get_previewMode())&&
0<this.iframeNode.get_delay()?(this.set_visible(!1),Qb.delay(function(){b.set_visible(!0)},1E3*this.iframeNode.get_delay())):this.set_visible(!0)},onRemovedFromStage:function(a){cd.prototype.onRemovedFromStage.call(this,a);this.iframeNode.get_signals().get_change().remove(k(this,this.onIframeNodeChange))},__class__:co,__properties__:r(cd.prototype.__properties__,{set_iframeNode:"set_iframeNode"})});var Vl=function(){F.call(this)};g["room.display.screen_navigator.EmbedHolder"]=Vl;Vl.__name__="room.display.screen_navigator.EmbedHolder";
Vl.__super__=F;Vl.prototype=r(F.prototype,{__class__:Vl});var Yl=function(){F.call(this)};g["room.display.screen_navigator.ImageHolder"]=Yl;Yl.__name__="room.display.screen_navigator.ImageHolder";Yl.__super__=F;Yl.prototype=r(F.prototype,{__class__:Yl});var hm=function(a){zk.call(this);this.data=a};g["room.display.screen_navigator.SmallContentField"]=hm;hm.__name__="room.display.screen_navigator.SmallContentField";hm.__super__=zk;hm.prototype=r(zk.prototype,{data:null,bg:null,renderBackground:function(a,
b){null==b&&(b=1);null!=this.bg&&(this.removeChild(this.bg),this.bg=null,null!=a&&(this.bg=new F,this.bg.set_name("bg"),this.bg.get_graphics().clear(),this.bg.get_graphics().beginFill(a,b),this.bg.get_graphics().drawRect(-20,-20,this.txt.get_width()+40,this.txt.get_height()+40),this.bg.get_graphics().endFill(),this.addChildAt(this.bg,0)))},__class__:hm});var Nt=function(){Q.call(this)};g["room.display.screens.Blocks3DScreen"]=Nt;Nt.__name__="room.display.screens.Blocks3DScreen";Nt.__super__=Q;Nt.prototype=
r(Q.prototype,{__class__:Nt});var Ot=function(){Q.call(this)};g["room.display.screens.Blocks3D_V2_Screen"]=Ot;Ot.__name__="room.display.screens.Blocks3D_V2_Screen";Ot.__super__=Q;Ot.prototype=r(Q.prototype,{__class__:Ot});var Sn=function(){Q.call(this)};g["room.display.screens.BookScreen"]=Sn;Sn.__name__="room.display.screens.BookScreen";Sn.__super__=Q;Sn.prototype=r(Q.prototype,{__class__:Sn});var pk=function(){Q.call(this)};g["room.display.screens.Loader_3"]=pk;pk.__name__="room.display.screens.Loader_3";
pk.__super__=Q;pk.prototype=r(Q.prototype,{__class__:pk});var Tn=function(){Q.call(this)};g["room.display.screens.MultiButton"]=Tn;Tn.__name__="room.display.screens.MultiButton";Tn.__super__=Q;Tn.prototype=r(Q.prototype,{__class__:Tn});var Un=function(){Q.call(this)};g["room.display.screens.MultiButton2"]=Un;Un.__name__="room.display.screens.MultiButton2";Un.__super__=Q;Un.prototype=r(Q.prototype,{__class__:Un});var Vn=function(){Q.call(this)};g["room.display.screens.QuizScreen"]=Vn;Vn.__name__="room.display.screens.QuizScreen";
Vn.__super__=Q;Vn.prototype=r(Q.prototype,{init:function(){this.addChild(new bm)},__class__:Vn});var Wn=function(){Q.call(this)};g["room.display.screens.Universal"]=Wn;Wn.__name__="room.display.screens.Universal";Wn.__super__=Q;Wn.prototype=r(Q.prototype,{__class__:Wn});var vj=function(){};g["room.display.video.IVideoPlayer"]=vj;vj.__name__="room.display.video.IVideoPlayer";vj.__isInterface__=!0;vj.prototype={videoNode:null,showImmediately:null,initialize:null,destroy:null,show:null,playAgain:null,
pause:null,__class__:vj};var Zr=function(){F.call(this);this.playBtn=Jc.getButton("video/play",!0);this.playBtn.set_x(80);this.playBtn.set_y(62);this.addChild(this.playBtn);this.pauseBtn=Jc.getButton("video/pause",!0);this.pauseBtn.set_x(80);this.pauseBtn.set_y(62);this.addChild(this.pauseBtn);this.rewindBtn=Jc.getButton("video/rewind",!0);this.rewindBtn.set_x(80);this.rewindBtn.set_y(62);this.addChild(this.rewindBtn);this.seekBar=new F;this.seekBar.addChild(new Pd(na.getBitmapData("assets/video/seekBar.png")));
this.addChild(this.seekBar);this.progressBar=new F;this.progressBar.addChild(new Pd(na.getBitmapData("assets/video/progressBar.png")));this.addChild(this.progressBar);this.timeLabel=new Bb;this.timeLabel.set_autoSize(1);var a=new ib("Arial",8,16777215);a.align=3;this.timeLabel.set_defaultTextFormat(a);this.timeLabel.setTextFormat(a);this.addChild(this.timeLabel)};g["room.display.video.VideoUI"]=Zr;Zr.__name__="room.display.video.VideoUI";Zr.__super__=F;Zr.prototype=r(F.prototype,{playBtn:null,pauseBtn:null,
rewindBtn:null,seekBar:null,progressBar:null,timeLabel:null,__class__:Zr});var eo=function(a,b){null==b&&(b=!1);this.ignoreRoomClick=!0;this.showImmediately=!1;this.videoNode=a;this.showImmediately=b;cd.call(this);this.set_visible(!1)};g["room.display.video.VideojsPlayer"]=eo;eo.__name__="room.display.video.VideojsPlayer";eo.__interfaces__=[vj];eo.__super__=cd;eo.prototype=r(cd.prototype,{videoNode:null,showImmediately:null,videoUrl:null,videoWidth:null,videoHeight:null,videoId:null,videojs:null,
videoOptions:null,ignoreRoomClick:null,onAddedToStage:function(a){cd.prototype.onAddedToStage.call(this,a);H.insideJackDaw&&this.__element.addEventListener("click",k(this,this.onClick),!0)},onRemovedFromStage:function(a){H.insideJackDaw&&this.__element.removeEventListener("click",k(this,this.onClick),!0);cd.prototype.onRemovedFromStage.call(this,a)},onClick:function(a){var b=a.target;(-1<b.className.split(" ").indexOf("vjs-tech")||-1<b.className.split(" ").indexOf("vjs-iframe-blocker"))&&null!=this.videojs&&
!this.videojs.paused()?this.videojs.pause():-1==b.className.split(" ").indexOf("vjs-big-play-button")&&-1==b.parentNode.className.split(" ").indexOf("vjs-big-play-button")&&-1==b.className.split(" ").indexOf("vjs-control")&&-1==b.parentNode.className.split(" ").indexOf("vjs-control")&&((-1<b.className.split(" ").indexOf("vjs-poster")&&null==this.videojs||this.videojs.paused())&&a.stopImmediatePropagation(),this.dispatchMouseEvent(a))},initialize:function(){this.onVideoNodeChange(this.videoNode);this.showImmediately&&
this.show()},destroy:function(){null!=this.videojs&&(this.videojs.dispose(),this.videojs=null);this.videoNode.get_signals().get_change().remove(k(this,this.onVideoNodeChange));this.set_visible(!1)},show:function(){this.render();this.set_visible(!0)},playAgain:function(){this.videojs.currentTime(0);this.videojs.play()},pause:function(){this.videojs.pause()},update:function(){cd.prototype.update.call(this);this._rendered&&null==this.videojs&&this.get_visible()&&(this.videoUrl=this.videoNode.path,this.videojs=
lc.call("videojs",this.get_videoId(),this.get_videoOptions()))},getInnerHtml:function(){var a=['id="'+this.get_videoId()+'"','class="video-js vjs-default-skin vjs-big-play-centered vjs-show-big-play-button-on-pause"',"controls","playsinline",'preload="auto"','width="'+this.get_videoWidth()+'"',"height="+this.get_videoHeight()];this.videoNode.autostart&&a.push("autoplay");a="<video "+a.join(" ")+">";this.videoNode.isEmbed()||(a+='<source src="'+this.videoNode.path+'" type="'+this.videoNode.parseType()+
'" />');return a+"</video>"},initializeJackdaw:function(){cd.prototype.initializeJackdaw.call(this);this.videoNode.get_signals().get_change().add(k(this,this.onVideoNodeChange))},dispatchMouseEvent:function(a){this.ignoreRoomClick=!1;this.dispatchEvent(new eb("click",!0,!1,J.field(a,"offsetX"),J.field(a,"offsetY")));this.ignoreRoomClick=!0},getJackdawTagName:function(){var a=this.videoNode.get_fast();if(a.nodeType==z.Document)return"Document";if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+
(null==a.nodeType?"null":V.toString(a.nodeType)));return a.nodeName},onVideoNodeChange:function(a){this.set_x(this.videoNode.x);this.set_y(this.videoNode.y);this.set_alpha(this.videoNode.alpha);this._rendered&&(this.videoUrl!=this.videoNode.path?(null!=this.videojs&&(this.videojs.dispose(),this.videojs=null),this.updateInnerHtml()):this.videojs.dimensions(this.get_videoWidth(),this.get_videoHeight()),this.update())},get_videoWidth:function(){return null==this.videoNode.width?null!=this.videoNode.height?
16*this.videoNode.height/9:560:this.videoNode.width},get_videoHeight:function(){return null==this.videoNode.height?9*this.get_videoWidth()/16:this.videoNode.height},get_videoId:function(){var a=this.videoNode.get_fast();if(a.nodeType==z.Document)a="Document";else{if(a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.nodeName}return"videojs-"+a},get_videoOptions:function(){var a={controlBar:{fullscreenToggle:this.videoNode.allowFullscreen,
pictureInPictureToggle:this.videoNode.allowPictureInPicture},userActions:{doubleClick:this.videoNode.allowFullscreen}};this.videoNode.isEmbed()&&(this.videoNode.isYoutube()?(a.youtube={customVars:{origin:window.location.origin}},a.techOrder=["youtube"],a.sources=[{type:"video/youtube",src:this.videoNode.path}]):this.videoNode.isVimeo()&&(a.techOrder=["vimeo"],a.sources=[{type:"video/vimeo",src:this.videoNode.path}]));return a},__class__:eo,__properties__:r(cd.prototype.__properties__,{get_videoOptions:"get_videoOptions",
get_videoId:"get_videoId",get_videoHeight:"get_videoHeight",get_videoWidth:"get_videoWidth"})});var bs=function(a,b,c){W.call(this,a,b,c)};g["room.events.NavigatorEvent"]=bs;bs.__name__="room.events.NavigatorEvent";bs.__super__=W;bs.prototype=r(W.prototype,{__class__:bs});var Cl=function(a){ya.call(this,a)};g["room.signals.BackgroundLoadedSignal"]=Cl;Cl.__name__="room.signals.BackgroundLoadedSignal";Cl.__super__=ya;Cl.prototype=r(ya.prototype,{__class__:Cl});var Sf=function(a){ya.call(this,a)};g["room.signals.ScreenCreatedSignal"]=
Sf;Sf.__name__="room.signals.ScreenCreatedSignal";Sf.__super__=ya;Sf.prototype=r(ya.prototype,{__class__:Sf});var bf=function(){};g["room.mediators.BackgroundImagesMediator"]=bf;bf.__name__="room.mediators.BackgroundImagesMediator";bf.__super__=Da;bf.prototype=r(Da.prototype,{view:null,state:null,backgroundLoadedSignal:null,hideContentSignal:null,screenCreatedSignal:null,screenIndexChangedSignal:null,loadedImage:null,loader:null,context:null,screenNode:null,mainScreenNode:null,createdMainId:null,
initialize:function(){this.loader=new Jd;this.loader.contentLoaderInfo.addEventListener("complete",k(this,this.loaderCompleteHandler));this.loader.contentLoaderInfo.addEventListener("ioError",k(this,this.loader_ioHanler));this.loader.contentLoaderInfo.addEventListener("httpStatus",k(this,this.httpStatusHandler));this.view.addChild(this.loader);this.screenCreatedSignal.add(k(this,this.onScreenCreated));this.screenIndexChangedSignal.add(k(this,this.onScreenIndexChanged));this.hideContentSignal.add(k(this,
this.onHideContent));this.state.get_signals().get_changeScreenIndex().add(k(this,this.onChangeScreenIndex))},destroy:function(){this.screenCreatedSignal.remove(k(this,this.onScreenCreated));this.screenIndexChangedSignal.remove(k(this,this.onScreenIndexChanged));this.hideContentSignal.remove(k(this,this.onHideContent));this.state.get_signals().get_changeScreenIndex().remove(k(this,this.onChangeScreenIndex));try{this.loader.close()}catch(a){wa.lastError=a}va.stop(this.loader)},onChangeBackground:function(a){a=
this.screenNode.get_background();""==a&&(a=H.xmlData.screensList.find(B.string(this.screenNode.get_mainId())).get_background());this.loadImage(a)},httpStatusHandler:function(a){},loader_ioHanler:function(a){va.tween(this.loader,.5,{alpha:0}).onComplete(k(this,this.proceed))},proceed:function(){this.backgroundLoadedSignal.dispatch()},loadImage:function(a){null!=a&&""!=a&&-1==a.indexOf(".swf")?a!=this.loadedImage?(this.loadedImage=a,this.loader.close(),this.loader.load(new Kc(H.absoluteCoursePath+a),
new Sh(!1,this.view.get_loaderInfo().applicationDomain))):(this.loader.set_visible(!0),this.loader.set_alpha(1),this.proceed()):(this.loader.set_visible(!1),this.loader.set_alpha(0),this.proceed())},loaderCompleteHandler:function(a){this.loader.set_alpha(0);this.loader.set_visible(!0);a=this.loader.content;var b=a.get_width()/a.get_height();if(1070/650<b){var c=650;var d=650*b}else d=1070,c=1070/b;a.set_width(d);a.set_height(c);1070<d?this.loader.set_x(-(d-1070)/2):this.loader.set_x(0);650<c?this.loader.set_y(-(c-
650)/2):this.loader.set_y(0);va.tween(this.loader,.5,{alpha:1}).onComplete(k(this,this.proceed))},onHideContent:function(){this.loader.set_visible(!1);this.loader.set_alpha(0)},onScreenCreated:function(){this.createdMainId=B.string(this.state.get_screenNode().get_mainId());this.loadImage(this.state.get_screenNode().get_background())},onScreenIndexChanged:function(){if(B.string(this.state.get_screenNode().get_mainId())==this.createdMainId){var a=""!=this.state.get_screenNode().get_background()?this.state.get_screenNode().get_background():
H.xmlData.screensList.find(B.string(this.state.get_screenNode().get_mainId())).get_background();this.loadImage(a)}},onChangeScreenIndex:function(){null!=this.screenNode&&(this.screenNode.get_signals().get_change().remove(k(this,this.onChangeBackground)),null!=this.get_mainScreenNode()&&this.get_mainScreenNode().get_signals().get_change().remove(k(this,this.onChangeBackground)));this.screenNode=this.state.get_screenNode();this.screenNode.get_signals().get_change().add(k(this,this.onChangeBackground));
this.get_mainScreenNode().get_signals().get_change().add(k(this,this.onChangeBackground))},get_mainScreenNode:function(){return H.xmlData.screensList.find(B.string(this.screenNode.get_mainId()))},__class__:bf,__properties__:{get_mainScreenNode:"get_mainScreenNode"}});var Ch=function(){};g["room.mediators.DemoScreenMediator"]=Ch;Ch.__name__="room.mediators.DemoScreenMediator";Ch.__super__=Da;Ch.prototype=r(Da.prototype,{view:null,showDemoScreenSignal:null,initialize:function(){this.showDemoScreenSignal.add(k(this,
this.onShowDemo));this.view.set_visible(!1)},destroy:function(){this.showDemoScreenSignal.remove(k(this,this.onShowDemo))},onShowDemo:function(){this.view.set_visible(!0)},__class__:Ch});var xh=function(){this.haveToShow=!1;this.textIndex=-1;this.adverts=[]};g["room.mediators.FreeVersionAdMediator"]=xh;xh.__name__="room.mediators.FreeVersionAdMediator";xh.__super__=Da;xh.prototype=r(Da.prototype,{view:null,state:null,loader:null,adverts:null,showTimer:null,textIndex:null,haveToShow:null,initialize:function(){this.view.set_visible(!1);
this.state.get_signals().get_changeVersion().add(k(this,this.onChangeVersion))},destroy:function(){if(null!=this.loader)try{this.loader.close()}catch(a){wa.lastError=a}null!=this.showTimer&&(this.showTimer.stop(),this.showTimer.removeEventListener("timer",k(this,this.showNextLine)));this.state.get_signals().get_changeVersion().remove(k(this,this.onChangeVersion))},onChangeVersion:function(){"TRIAL"==this.state.version&&(this.loader=new le(new Kc("//www.openelms.org/xml/jackdaw/3D_wheel/data.xml")),
this.loader.addEventListener("complete",k(this,this.onRemoteDataLoaded)),this.loader.addEventListener("ioError",k(this,this.loadLocalData)))},loadLocalData:function(a){},localDataError:function(a){},onRemoteDataLoaded:function(a){a=z.parse(this.loader.data);this.buildTexts(a)},buildTexts:function(a){if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));if(ma.resolve(a,"ads_for_free_version")){for(a=aa.resolve(a,"ads_for_free_version").elements();a.hasNext();){var b=
a.next(),c=this.adverts;if(b.nodeType==z.Document||b.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":V.toString(b.nodeType)));c.push(b.nodeValue)}this.startShowTimer();this.view.set_visible(!0)}},startShowTimer:function(){this.showNextLine();this.showTimer=new Ck(15E3,0);this.showTimer.addEventListener("timer",k(this,this.showNextLine));this.showTimer.start()},showNextLine:function(a){if(1==this.view.txt.get_alpha())va.tween(this.view.txt,1,{alpha:0}).onComplete(k(this,
this.onPrevLineHidden));else this.onPrevLineHidden()},onPrevLineHidden:function(){this.textIndex++;this.textIndex>this.adverts.length-1&&(this.textIndex=0);this.view.txt.set_htmlText(this.adverts[this.textIndex]);va.tween(this.view.txt,1,{alpha:1})},__class__:xh});var Ml=function(a){ya.call(this,a)};g["room.signals.ResetScreenSignal"]=Ml;Ml.__name__="room.signals.ResetScreenSignal";Ml.__super__=ya;Ml.prototype=r(ya.prototype,{__class__:Ml});var pi=function(a){ya.call(this,a)};g["room.signals.CloseRoomSignal"]=
pi;pi.__name__="room.signals.CloseRoomSignal";pi.__super__=ya;pi.prototype=r(ya.prototype,{__class__:pi});var pj=function(a){ya.call(this,a)};g["room.signals.PlayAgainSignal"]=pj;pj.__name__="room.signals.PlayAgainSignal";pj.__super__=ya;pj.prototype=r(ya.prototype,{__class__:pj});var ue=function(){};g["room.mediators.HeaderMediator"]=ue;ue.__name__="room.mediators.HeaderMediator";ue.__super__=Da;ue.prototype=r(Da.prototype,{view:null,state:null,xmlLoadedSignal:null,resetScreenSignal:null,closeRoomSignal:null,
playAgainSignal:null,printer:null,enableTranscriptSignal:null,screenIndexChangedSignal:null,initialize:function(){this.xmlLoadedSignal.add(k(this,this.onXmlLoaded));this.state.get_signals().get_changeMainScreenIndex().add(k(this,this.onChangeMainScreenIndex));this.state.get_signals().get_changeMuteNarrator().add(k(this,this.onChangeHideNarrator));this.screenIndexChangedSignal.add(k(this,this.onChangeScreenIndex));this.enableTranscriptSignal.add(k(this,this.enableTranscriptButton));this.view.refreshBtn.set_visible(!1);
this.view.toggleNarrator.set_visible(!1);this.view.closeButton.set_visible(!1);this.view.toggleContentBtn.set_visible(!1);this.view.progress.set_visible(!1);this.view.sectionTitle.set_visible(!1);this.view.closeButton.set_buttonMode(!0);this.view.closeButton.addEventListener("mouseDown",k(this,this.HomeHandler));this.view.toggleNarrator.set_buttonMode(!0);this.view.toggleNarrator.getChildByName("soundOff").set_visible(!1);this.view.toggleNarrator.addEventListener("mouseDown",k(this,this.toggleNarratorHandler));
this.view.toggleContentBtn.set_buttonMode(!0);this.view.toggleContentBtn.addEventListener("mouseDown",k(this,this.toggleContentHandler));this.view.refreshBtn.addEventListener("mouseDown",k(this,this.refreshHandler));this.view.refreshBtn.set_buttonMode(!0);this.view.openTranscriptBtn.set_alpha(.25);H.insideJackDaw&&this.enableTranscriptButton();sa.getInterface().get_signals().get_offlineData().add(k(this,this.onOfflineData))},destroy:function(){this.xmlLoadedSignal.remove(k(this,this.onXmlLoaded));
this.state.get_signals().get_changeMainScreenIndex().remove(k(this,this.onChangeMainScreenIndex));this.state.get_signals().get_changeMuteNarrator().remove(k(this,this.onChangeHideNarrator));this.screenIndexChangedSignal.remove(k(this,this.onChangeScreenIndex));this.enableTranscriptSignal.remove(k(this,this.enableTranscriptButton));this.view.openTranscriptBtn.removeEventListener("mouseDown",k(this,this.openTranscriptHandler));null!=H.xmlData&&null!=H.xmlData.settings&&H.xmlData.settings.get_signals().get_change().remove(k(this,
this.onChangeSettings));sa.getInterface().get_signals().get_offlineData().remove(k(this,this.onOfflineData))},onXmlLoaded:function(){H.xmlData.settings.get_signals().get_change().add(k(this,this.onChangeSettings)).fireOnAdd()},onChangeScreenIndex:function(){var a=Math.ceil(100*((this.state.get_screenIndex()+1)/H.xmlData.screensList.get_length()));this.view.setProgress(a)},onChangeSettings:function(a){a=this.view.logo.getChildByName("logoLoader");null!=a&&(this.view.logo.removeChild(a),this.updateHeight());
if(!Gb.isEmpty(H.xmlData.settings.get_logo())){a=new Kc(H.absoluteCoursePath+H.xmlData.settings.get_logo());var b=new Jd;b.set_name("logoLoader");b.contentLoaderInfo.addEventListener("complete",k(this,this.onLogoLoaded));b.contentLoaderInfo.addEventListener("ioError",k(this,this.onLogoError));b.load(a,new Sh(!1,Ff.currentDomain,null));this.view.logo.addChild(b)}},onLogoError:function(a){var b=a.target;b.removeEventListener("complete",k(this,this.onLogoLoaded));b.removeEventListener("ioError",k(this,
this.onLogoError));Ub.trace("onLogoError: "+a.text,{fileName:"Source/room/mediators/HeaderMediator.hx",lineNumber:132,className:"room.mediators.HeaderMediator",methodName:"onLogoError"})},onLogoLoaded:function(a){a=a.target;a.removeEventListener("complete",k(this,this.onLogoLoaded));a.removeEventListener("ioError",k(this,this.onLogoError));this.updateHeight()},updateHeight:function(){var a=(this.view.sectionTitle.titleField.get_height()-10)/this.view.logo.get_height();this.view.logo.set_scaleX(this.view.logo.set_scaleY(a));
this.view.sectionTitle.set_x(this.view.logo.get_width()+24)},onChangeMainScreenIndex:function(){this.view.refreshBtn.set_visible(H.xmlData.settings.showRefreshBtn);this.view.toggleNarrator.set_visible(H.xmlData.settings.showToggleNarratorBtn);this.view.closeButton.set_visible(H.xmlData.settings.showHomeBtn);this.view.toggleContentBtn.set_visible(H.xmlData.settings.get_showTextToggleButton());var a=H.xmlData.settings.hideTitleAndContent;this.onToggleContent(a);this.state.set_hideTitleAndContent(a)},
onChangeHideNarrator:function(){this.view.toggleNarrator.getChildByName("soundOn").set_visible(!this.state.muteNarrator);this.view.toggleNarrator.getChildByName("soundOff").set_visible(this.state.muteNarrator)},HomeHandler:function(a){H.insideJackDaw||this.closeRoomSignal.dispatch()},toggleNarratorHandler:function(a){this.state.set_muteNarrator(!this.state.muteNarrator)},toggleContentHandler:function(a){this.state.set_hideTitleAndContent(!this.state.hideTitleAndContent);this.onToggleContent(this.state.hideTitleAndContent)},
openTranscriptHandler:function(a){a=H.insideJackDaw?"?var="+window.btoa(H.getCourseTitle()):"";window.open("script.html"+a,"transcript")},enableTranscriptButton:function(){this.view.openTranscriptBtn.set_alpha(1);this.view.openTranscriptBtn.set_buttonMode(!0);this.view.openTranscriptBtn.addEventListener("mouseDown",k(this,this.openTranscriptHandler))},onToggleContent:function(a){this.view.toggleContentBtn.getChildByName("show").set_visible(a);this.view.toggleContentBtn.getChildByName("hide").set_visible(!a)},
refreshHandler:function(a){null==this.state.get_screenNode().quizesNode&&("reset_screen"==H.xmlData.settings.refreshBtnFunc?this.resetScreenSignal.dispatch():this.playAgainSignal.dispatch())},onOfflineData:function(a){},__class__:ue});var te=function(){pb.call(this)};g["room.signals.NavigateToSignal"]=te;te.__name__="room.signals.NavigateToSignal";te.__super__=pb;te.prototype=r(pb.prototype,{__class__:te});var zg=function(a){ya.call(this,a)};g["room.signals.RevealContentSignal"]=zg;zg.__name__="room.signals.RevealContentSignal";
zg.__super__=ya;zg.prototype=r(ya.prototype,{__class__:zg});var Qf=function(a){ya.call(this,a)};g["room.signals.HideTitleContentImagesSignal"]=Qf;Qf.__name__="room.signals.HideTitleContentImagesSignal";Qf.__super__=ya;Qf.prototype=r(ya.prototype,{__class__:Qf});var Uf=function(){this._showTimer=null};g["room.mediators.ImageMediator"]=Uf;Uf.__name__="room.mediators.ImageMediator";Uf.__super__=Da;Uf.prototype=r(Da.prototype,{view:null,state:null,navigateToSignal:null,revealContentSignal:null,hideTitleContentImagesSignal:null,
_showTimer:null,initialize:function(){this.revealContentSignal.add(k(this,this.onRevealContent));this.hideTitleContentImagesSignal.add(k(this,this.onHideTitleContentImages));this.view.imageNode.get_signals().get_change().add(k(this,this.onChangeImageNode));this.onChangeImageNode(this.view.imageNode);this.addViewListener("click",k(this,this.onClick));this.addViewListener("mouseOver",k(this,this.onMouseOver));H.insideJackDaw?this.initializeJackdaw():H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0);
this.view.set_visible(!1);this.state.get_screenNode().templateNode.get_isMultiButton()||this.show()},destroy:function(){this.destroyTimer();this.revealContentSignal.remove(k(this,this.onRevealContent));this.hideTitleContentImagesSignal.remove(k(this,this.onHideTitleContentImages));this.view.imageNode.get_signals().get_change().remove(k(this,this.onChangeImageNode));Db.remove(this.view)},initializeJackdaw:function(){this.view.mouseEnabled=!0;this.view.mouseChildren=this.view.loader instanceof Ef&&
N.__cast(this.view.loader,Ef).renderAsDOMElement;var a=this.view,b=this.view.imageNode.get_fast();if(b.nodeType==z.Document)b="Document";else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.nodeName}Db.set(a,Ya.wrapTagName(b));Ya.options.onUpdate.add(k(this,this.updateJackdawLabel))},updateJackdawLabel:function(){if(Ya.options.get_previewMode())Fb.clearLabel(this.view);else{var a=new ha(-this.view.imageNode.padding,
-this.view.imageNode.padding,this.view.imageNode.width+2*this.view.imageNode.padding,this.view.imageNode.height+2*this.view.imageNode.padding),b=this.view,c=this.view.imageNode.get_fast();if(c.nodeType==z.Document)c="Document";else{if(c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));c=c.nodeName}Fb.drawLabel(b,c,Fb.scaleBounds(a,this.view),16777215,16777215,0)}},onRevealContent:function(){this.show()},onHideTitleContentImages:function(){this.hide()},
onChangeImageNode:function(a){var b=this;this.view.imageNode.get_path()!=this.view.path?(this.view.path=this.view.imageNode.get_path(),this.view.loader=tp.load(this.view.imageNode,function(a){b.updateFromNode()},null,this.view.loader),null==this.view.loader.parent&&this.view.addChild(this.view.loader)):this.updateFromNode()},updateFromNode:function(){if(null!=this.view.loader)if(this.view.originalWidth=this.view.loader.contentLoaderInfo.width,this.view.originalHeight=this.view.loader.contentLoaderInfo.height,
null!=this.view.imageNode.width||null!=this.view.imageNode.height){null!=this.view.imageNode.width?(this.view.loader.set_scaleX(this.view.imageNode.width/this.view.loader.contentLoaderInfo.width),null==this.view.imageNode.height||this.view.imageNode.isMovie&&!this.view.imageNode.swfStageSizing?this.view.loader.set_scaleY(this.view.loader.get_scaleX()):this.view.loader.set_scaleY(this.view.imageNode.height/this.view.loader.contentLoaderInfo.height)):(this.view.loader.set_scaleY(this.view.imageNode.height/
this.view.loader.contentLoaderInfo.height),this.view.loader.set_scaleX(this.view.loader.get_scaleY()));var a=null==this.view.imageNode.width?this.view.originalWidth*this.view.loader.get_scaleX():this.view.imageNode.width,b=null==this.view.imageNode.height?this.view.originalHeight*this.view.loader.get_scaleY():this.view.imageNode.height;this.view.imageNode.updateSize(a,b)}else this.view.imageNode.updateSize(this.view.originalWidth,this.view.originalHeight);null!=this.view.imageNode.x&&null!=this.view.imageNode.y?
(this.view.set_x(this.view.imageNode.x),this.view.set_y(this.view.imageNode.y)):null!=this.view.parent&&(a=Hh.globalToLocal(this.view.parent,new ab(535-this.view.loader.get_width()/2,325-this.view.loader.get_height()/2)),this.view.imageNode.setPosition(null==this.view.imageNode.x?a.x:this.view.imageNode.x,null==this.view.imageNode.y?a.y:this.view.imageNode.y));this.view.set_alpha(this.view.imageNode.alpha);null!=this.view.loader&&null!=this.view.loader.content&&(this.view.loader.content.alt=this.view.imageNode.alt);
this.view.addOrRemoveLabel();Oe.drawBorder(this.view,this.view.imageNode);if(H.insideJackDaw){a=this.view;b=this.view.imageNode.get_fast();if(b.nodeType==z.Document)b="Document";else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.nodeName}a=Db.set(a,Ya.wrapTagName(b));null!=this.view.loader?(a.setField("jackdaw_node_width",this.view.loader.get_scaleX()*this.view.loader.contentLoaderInfo.width),a.setField("jackdaw_node_height",
this.view.loader.get_scaleY()*this.view.loader.contentLoaderInfo.height)):(a.setField("jackdaw_node_width",this.view.imageNode.width),a.setField("jackdaw_node_height",this.view.imageNode.height));this.updateJackdawLabel()}},onClick:function(a){if(!this.view.imageNode.isButton||H.insideJackDaw&&!Ya.options.get_previewMode()&&!a.ctrlKey)a.target==this.view.loader&&(a.stopPropagation(),this.view.dispatchEvent(a.clone()));else{a.stopPropagation();a=this.view.imageNode.targetId;var b=this.view.imageNode.onClick;
if(""!=b){var c=kg.getInstance();c.addEventListener("complete",k(this,this.evaluatorCompleteHandler),!1,0,!0);c.addEventListener("error",k(this,this.evaluatorErrorHandler),!1,0,!0);var d=Eh.getInstance().getAll();d.targetId=a;c.eval(b,d)}else kf.play("thozi_daClick.mp3"),this.navigateToTargetId(a)}},onMouseOver:function(a){this.view.set_buttonMode(this.view.imageNode.isButton&&(!H.insideJackDaw||Ya.options.get_previewMode()||a.ctrlKey))},evaluatorCompleteHandler:function(a){a=N.__cast(a.target,kg);
Eh.getInstance().setAll(a.get_data());a.get_data().targetId&&this.navigateToTargetId(a.get_data().targetId)},evaluatorErrorHandler:function(a){Ub.trace(a.toString(),{fileName:"Source/room/mediators/ImageMediator.hx",lineNumber:231,className:"room.mediators.ImageMediator",methodName:"evaluatorErrorHandler"})},navigateToTargetId:function(a){this.navigateToSignal.dispatch(a)},show:function(){var a=this,b=function(){a.view.set_visible(!0);a._showTimer=null};(!H.insideJackDaw||Ya.options.get_previewMode())&&
0<this.view.imageNode.get_delay()?this._showTimer=Qb.delay(b,1E3*this.view.imageNode.get_delay()):b()},hide:function(){this.view.set_visible(!1);this.destroyTimer()},destroyTimer:function(){null!=this._showTimer&&(this._showTimer.stop(),this._showTimer=null)},__class__:Uf});var zh=function(){};g["room.mediators.LoadingScreenMediator"]=zh;zh.__name__="room.mediators.LoadingScreenMediator";zh.__super__=Da;zh.prototype=r(Da.prototype,{view:null,state:null,initialize:function(){this.view.init()},__class__:zh});
var mk=function(){pb.call(this)};g["room.signals.SetupNarratorSignal"]=mk;mk.__name__="room.signals.SetupNarratorSignal";mk.__super__=pb;mk.prototype=r(pb.prototype,{__class__:mk});var Wf=function(){};g["room.mediators.NarratorContainerMediator"]=Wf;Wf.__name__="room.mediators.NarratorContainerMediator";Wf.__super__=Da;Wf.prototype=r(Da.prototype,{view:null,state:null,hideTextSignal:null,screenIndexChangedSignal:null,setupNarratorSignal:null,initialize:function(){this.hideTextSignal.add(k(this,this.onHideText));
this.screenIndexChangedSignal.add(k(this,this.onScreenIndexChanged));this.setupNarratorSignal.add(k(this,this.onSetupNarrator))},destroy:function(){this.hideTextSignal.remove(k(this,this.onHideText));this.screenIndexChangedSignal.remove(k(this,this.onScreenIndexChanged));this.setupNarratorSignal.remove(k(this,this.onSetupNarrator))},onScreenChange:function(a){a instanceof Ae&&this.addNarrators(!0)},onHideText:function(){this.removeNarrators();null!=this.state.get_screenNode()&&H.insideJackDaw&&this.state.get_screenNode().get_signals().get_change().remove(k(this,
this.onScreenChange))},onScreenIndexChanged:function(){null!=this.state.get_screenNode()&&(this.addNarrators(),H.insideJackDaw&&this.state.get_screenNode().get_signals().get_change().add(k(this,this.onScreenChange)))},onSetupNarrator:function(a){a=new vi(a,!0);this.view.addChild(a)},addNarrators:function(a){null==a&&(a=!1);if(H.xmlData.video.get_fileVisible())for(var b=0,c=this.state.get_screenNode().narratorNodes.length;b<c;){var d=b++;d=this.state.get_screenNode().narratorNodes[d];if(!Gb.isEmpty(d.get_path())&&
null==this.findNarrator(d)){var e=new vi(d,a);d.get_signals().get_destroy().add(k(this,this.onDestroyNarratorNode)).repeat(0);this.view.addChild(e)}}},onDestroyNarratorNode:function(a){a=N.__cast(a,Mi);a=this.findNarrator(a);null!=a&&this.removeChild(a)},findNarrator:function(a){for(var b=0,c=this.view.get_numChildren();b<c;){var d=b++;d=this.view.getChildAt(d);if(d instanceof vi&&d.narratorNode==a)return d}return null},removeNarrators:function(){for(;0<this.view.get_numChildren();){var a=this.view.getChildAt(0);
this.removeChild(a)}},removeChild:function(a){a instanceof vi&&a.narratorNode.get_signals().get_destroy().remove(!0);this.view.removeChild(a)},__class__:Wf});var mj=function(){pb.call(this)};g["room.signals.AutoNarratorSignal"]=mj;mj.__name__="room.signals.AutoNarratorSignal";mj.__super__=pb;mj.prototype=r(pb.prototype,{__class__:mj});var qj=function(a){ya.call(this,a)};g["room.signals.PlayNarratorSignal"]=qj;qj.__name__="room.signals.PlayNarratorSignal";qj.__super__=ya;qj.prototype=r(ya.prototype,
{__class__:qj});var tj=function(a){ya.call(this,a)};g["room.signals.StopAndHideNarratorSignal"]=tj;tj.__name__="room.signals.StopAndHideNarratorSignal";tj.__super__=ya;tj.prototype=r(ya.prototype,{__class__:tj});var oj=function(a){ya.call(this,a)};g["room.signals.PauseNarratorSignal"]=oj;oj.__name__="room.signals.PauseNarratorSignal";oj.__super__=ya;oj.prototype=r(ya.prototype,{__class__:oj});var lk=function(a){ya.call(this,a)};g["room.signals.ResumeNarratorSignal"]=lk;lk.__name__="room.signals.ResumeNarratorSignal";
lk.__super__=ya;lk.prototype=r(ya.prototype,{__class__:lk});var af=function(){pb.call(this)};g["room.signals.SyncSignal"]=af;af.__name__="room.signals.SyncSignal";af.__super__=pb;af.prototype=r(pb.prototype,{__class__:af});var ad=function(){this.mediaPlayer=new Zf};g["room.services.NarratorPlayer"]=ad;ad.__name__="room.services.NarratorPlayer";ad.__interfaces__=[$d];ad.prototype={state:null,autoNarratorSignal:null,playNarratorSignal:null,playAgainSignal:null,stopAndHideNarratorSignal:null,pauseNarratorSignal:null,
resumeNarratorSignal:null,syncSignal:null,mediaPlayer:null,video:null,_path:null,_videoName:null,initialize:function(){this.mediaPlayer.set_controlButtonsEnabled(!1);this.mediaPlayer.progressBarAlwaysOn=!1;this.mediaPlayer.addEventListener("LOADING_ERROR",k(this,this.cantLoadNarrator));this.playNarratorSignal.add(k(this,this.onPlayNarrator));this.playAgainSignal.add(k(this,this.onPlayAgain));this.stopAndHideNarratorSignal.add(k(this,this.onStopAndHide));this.pauseNarratorSignal.add(k(this,this.pause));
this.resumeNarratorSignal.add(k(this,this.resume));this.state.get_signals().get_changeMuteNarrator().add(k(this,this.onChangeMuteNarrator))},destroy:function(){this.pause();this.unload();this.playNarratorSignal.remove(k(this,this.onPlayNarrator));this.playAgainSignal.remove(k(this,this.onPlayAgain));this.pauseNarratorSignal.remove(k(this,this.pause));this.resumeNarratorSignal.remove(k(this,this.resume));this.stopAndHideNarratorSignal.remove(k(this,this.onStopAndHide));this.mediaPlayer.get_signals().removeAll();
this.state.get_signals().get_changeMuteNarrator().remove(k(this,this.onChangeMuteNarrator))},toggleButtons:function(a){this.mediaPlayer.set_controlButtonsEnabled(a)},onPlayNarrator:function(){this.onPlayAgain()},cantLoadNarrator:function(a){this.autoNarratorSignal.dispatch(!1)},onPlayAgain:function(){this.resume()},onStopAndHide:function(){this.unload()},pause:function(){this.mediaPlayer.get_isStopped()||this.mediaPlayer.pause()},unload:function(){this.mediaPlayer.close();this._path=null},load:function(a){this._path=
a;this.doLoad()},doLoad:function(){var a=this.get_streamMediaPath();null!=this._path&&(a=H.absoluteCoursePath+this._path);this.destroyVideo();Zf.isAudio(a)?this.mediaPlayer.playAudio(a):(this.initializeVideo(),this.mediaPlayer.playVideo(a,this._videoName,!1,!0));this.onChangeMuteNarrator();Uc.get_autoPlay()||this.mediaPlayer.pause()},initializeVideo:function(){this.video=new np;this.mediaPlayer.set_video(this.video)},destroyVideo:function(){null!=this.video&&(null!=this.video.parent&&this.video.parent.removeChild(this.video),
this.video=null,this.mediaPlayer.set_video(null))},seek:function(a){this.mediaPlayer.seek(a)},resume:function(){this.mediaPlayer.resume()},onChangeMuteNarrator:function(){this.state.muteNarrator?this.mediaPlayer.mute():this.mediaPlayer.unmute()},streamMediaPath:null,get_streamMediaPath:function(){switch(H.xmlData.video.server){case "localfms":return"rtmp:/vod/";case "wmb":return"rtmp://jtipv83qk.rtmphost.com/eos/"}return null},__class__:ad,__properties__:{get_streamMediaPath:"get_streamMediaPath"}};
var Le=function(){this._startPos=0;this.enabled=!0;this.mediaPlayer=new Zf};g["room.services.NarratorViewPlayer"]=Le;Le.__name__="room.services.NarratorViewPlayer";Le.__super__=ad;Le.prototype=r(ad.prototype,{view:null,enabled:null,_startPos:null,_stopPos:null,_syncPos:null,initialize:function(){if(null==this.view)throw u.thrown("NarratorViewPlayer.view must be set");this.mediaPlayer.playBtn=this.view.videoUI.playBtn;this.mediaPlayer.pauseBtn=this.view.videoUI.pauseBtn;this.mediaPlayer.rewindBtn=
this.view.videoUI.rewindBtn;this.mediaPlayer.seekBar=this.view.videoUI.seekBar;this.mediaPlayer.set_progressBar(this.view.videoUI.progressBar);this.mediaPlayer.set_timeLabel(this.view.videoUI.timeLabel);this.mediaPlayer.set_controlButtonsEnabled(!0);this.mediaPlayer.get_signals().get_videoLoaded().add(k(this,this.onVideoLoaded));this.mediaPlayer.get_signals().get_videoError().add(k(this,this.onVideoError));ad.prototype.initialize.call(this);this.view.narratorNode.get_signals().get_change().add(k(this,
this.onChangeNarrator))},destroy:function(){this.mediaPlayer.removeEventListener("playProgress",k(this,this.onVideoPlayProgress));ad.prototype.destroy.call(this);this.view.narratorNode.get_signals().get_change().remove(k(this,this.onChangeNarrator))},onChangeNarrator:function(a){a=this.view.narratorNode;null!=this.mediaPlayer.get_video()&&this.mediaPlayer.setVideoSize(a.width,a.height);this.view.set_x(a.x);this.view.set_y(a.y);this.view.videoUI.set_alpha(a.alpha);this.mirror();Oe.drawBorder(this.view,
a);this._startPos=this.view.narratorNode.start;this._stopPos=this.view.narratorNode.stop;this._syncPos=this.view.narratorNode.syncPos;this.enabled&&this.reload()},onVideoLoaded:function(){this.mirror();if(null!=this.mediaPlayer.get_videoInfo()){var a=this.view.narratorNode;if(null==a.width||null==a.height){var b=a.width,c=a.height,d=this.mediaPlayer.get_videoInfo().width,e=this.mediaPlayer.get_videoInfo().height;this.video.fixTransparency&&(e/=2);null==a.width&&null==a.height?(b=d,c=e):null==a.width?
b=c/e*d:null==a.height&&(c=b/d*e);a.updateSize(null==a.width?b:a.width,null==a.height?c:a.height)}null!=a.x&&null!=a.y||null==this.view.parent||(b=new ab((1070-a.width)/2,(650-a.height)/2),a.setPosition(null==a.x?b.x:a.x,null==a.y?b.y:a.y))}this.enabled||this.unload()},mirror:function(){null!=this.mediaPlayer.get_video()&&(this.view.narratorNode.mirror?(this.mediaPlayer.get_video().set_scaleX(-1),this.mediaPlayer.get_video().set_x(this.mediaPlayer.videoWidth)):(this.mediaPlayer.get_video().set_scaleX(1),
this.mediaPlayer.get_video().set_x(0)))},onVideoError:function(){Zf.isWebM(this._path)&&(this.view.narratorNode.setPlayMp4(),this.reload(this.view.autoPlay))},onStopAndHide:function(){ad.prototype.onStopAndHide.call(this);this.view.hide()},reload:function(a){null==a&&(a=!0);if(Gb.isEmpty(this.view.narratorNode.playPath))this.onStopAndHide();else this.view.narratorNode.playPath!=this._path&&this.loadNarrator(a)},loadNarrator:function(a){this.setNarratorPath(this.view.narratorNode.playPath);this.doLoad();
this.onChangeNarrator(this.view.narratorNode);a&&this.resume()},setNarratorPath:function(a){this._videoName=H.xmlData.video.name;this._path=null;null!=a&&""!=a&&(this._path=a,this._videoName=null)},initializeVideo:function(){ad.prototype.initializeVideo.call(this);this.view.videoUI.addChildAt(this.video,0);null!=this.view.narratorNode.width&&null!=this.view.narratorNode.height&&this.mediaPlayer.setVideoSize(this.view.narratorNode.width,this.view.narratorNode.height)},pause:function(){ad.prototype.pause.call(this);
va.stop(this.view)},resume:function(){var a=this;this.enabled&&(this.seek(0),this.mediaPlayer.hasEventListener("playProgress")||this.mediaPlayer.addEventListener("playProgress",k(this,this.onVideoPlayProgress)),this.mediaPlayer.get_hasVideo()&&1>this.view.get_alpha()?this.view.show(function(){a.doResume()}):this.doResume())},doResume:function(){ad.prototype.resume.call(this)},onVideoPlayProgress:function(a){a=this.mediaPlayer.get_hasSound()?this.mediaPlayer.get_soundPosition()/1E3:this.mediaPlayer.get_videoPosition();
this.checkNotifyPos(a);this.checkStopPos(a)},checkStopPos:function(a){null!=this._stopPos&&a>=this._stopPos&&(this.mediaPlayer.pause(),this.mediaPlayer.removeEventListener("playProgress",k(this,this.onVideoPlayProgress)))},checkNotifyPos:function(a){if(null!=this._syncPos)for(var b=Object.keys(this._syncPos.h),c=b.length,d=0;d<c;){var e=b[d++];if(!(a<this._syncPos.h[e])){a=this._syncPos;Object.prototype.hasOwnProperty.call(a.h,e)&&delete a.h[e];this.syncSignal.dispatch(e);break}}},set_enabled:function(a){this.enabled!=
a&&(this.enabled=a,this.toggleButtons(this.enabled),this.enabled?this.reload():(this.pause(),this.unload()));return this.enabled},__class__:Le,__properties__:r(ad.prototype.__properties__,{set_enabled:"set_enabled"})});var Dg=function(){this._fade=!0};g["room.mediators.NarratorMediator"]=Dg;Dg.__name__="room.mediators.NarratorMediator";Dg.__super__=Da;Dg.prototype=r(Da.prototype,{view:null,state:null,screenIndexChangedSignal:null,narratorPlayer:null,_fade:null,_autoPlay:null,initialize:function(){this.narratorPlayer.view=
this.view;this.narratorPlayer.initialize();this.narratorPlayer.reload(this.view.autoPlay);this.view.mouseEnabled=this.view.mouseChildren=!1;this.view.narratorNode.get_signals().get_change().add(k(this,this.onChangeNarrator));this.state.get_screenNode().contentNode.get_signals().get_change().add(k(this,this.onChangeNarrator));H.insideJackDaw?this.initializeJackdaw():H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0)},initializeJackdaw:function(){var a=this;this.view.mouseEnabled=this.view.mouseChildren=
!0;var b=this.view,c=this.view.narratorNode.get_fast();if(c.nodeType==z.Document)c="Document";else{if(c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));c=c.nodeName}Db.set(b,Ya.wrapTagName(c));Ya.options.onUpdate.add(function(){a.onJackdawOptionsUpdated(!0)});this.onJackdawOptionsUpdated(!1);this.view.set_alpha(1)},destroy:function(){this.narratorPlayer.destroy();this.view.narratorNode.get_signals().get_change().remove(k(this,
this.onChangeNarrator));this.state.get_screenNode().contentNode.get_signals().get_change().remove(k(this,this.onChangeNarrator));Db.remove(this.view)},onJackdawOptionsUpdated:function(a){this.updateJackdawLabel();this.narratorPlayer.enabled&&(this.narratorPlayer.toggleButtons(!Ya.options.get_previewMode()),a&&Ya.options.get_previewMode()&&this.narratorPlayer.resume())},updateJackdawLabel:function(){if(Ya.options.get_previewMode())Fb.clearLabel(this.view);else{var a=new ha(-this.view.narratorNode.padding,
-this.view.narratorNode.padding,this.view.narratorNode.width+2*this.view.narratorNode.padding,this.view.narratorNode.height+2*this.view.narratorNode.padding),b=this.view,c=this.view.narratorNode.get_fast();if(c.nodeType==z.Document)c="Document";else{if(c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));c=c.nodeName}Fb.drawLabel(b,c,Fb.scaleBounds(a,this.view));this.updateAutoNarratorLabel()}},updateAutoNarratorLabel:function(){Fb.getBoundsDisplay(this.view)},
onChangeNarrator:function(){H.insideJackDaw&&this.updateJackdawLabel()},__class__:Dg});var Jl=function(){pb.call(this)};g["room.signals.LoadVideosSignal"]=Jl;Jl.__name__="room.signals.LoadVideosSignal";Jl.__super__=pb;Jl.prototype=r(pb.prototype,{__class__:Jl});var Kl=function(a){ya.call(this,a)};g["room.signals.LoadXmlSignal"]=Kl;Kl.__name__="room.signals.LoadXmlSignal";Kl.__super__=ya;Kl.prototype=r(ya.prototype,{__class__:Kl});var Tl=function(a){ya.call(this,a)};g["room.signals.NavigationUpdatedSignal"]=
Tl;Tl.__name__="room.signals.NavigationUpdatedSignal";Tl.__super__=ya;Tl.prototype=r(ya.prototype,{__class__:Tl});var Xc=function(){};g["room.mediators.RoomMediator"]=Xc;Xc.__name__="room.mediators.RoomMediator";Xc.__super__=Da;Xc.prototype=r(Da.prototype,{view:null,state:null,initMenuSignal:null,restoreProgressSignal:null,pauseNarratorSignal:null,resumeNarratorSignal:null,loadVideosSignal:null,showLoadingSignal:null,loadingProgressSignal:null,hideLoadingSignal:null,exitSignal:null,loadXmlSignal:null,
xmlLoadedSignal:null,navigationUpdatedSignal:null,printDebugSignal:null,navigateToSignal:null,quizManager:null,networkInfo:null,loadingScreen:null,introLoader:null,undoEvents:null,liveUndo:null,offlineAlert:null,menu:null,initialize:function(){var a=H.messageProxy;null!=a&&(a.addEventListener("jackdaw.initialize",k(this,this.onInitialize)),a.addEventListener("update_options",k(this,this.onUpdateOptions)),a.addEventListener("update_xml",k(this,this.onUpdateXml)),a.addEventListener("insert_main_screen",
k(this,this.onInsertNode)),a.addEventListener("insert_sub_screen",k(this,this.onInsertNode)),a.addEventListener("insert_question",k(this,this.onInsertNode)),a.addEventListener("insert_answer",k(this,this.onInsertNode)),a.addEventListener("remove_main_screen",k(this,this.onRemoveNode)),a.addEventListener("remove_sub_screen",k(this,this.onRemoveNode)),a.addEventListener("remove_answer",k(this,this.onRemoveNode)),a.addEventListener("remove_question",k(this,this.onRemoveNode)),a.addEventListener("remove_quiz",
k(this,this.onRemoveNode)),a.addEventListener("next_screen",k(this,this.onNavigateTo)),a.addEventListener("next_main_screen",k(this,this.onNavigateTo)),a.addEventListener("screen",k(this,this.onNavigateTo)),a.addEventListener("question",k(this,this.onNavigateTo)),a.addEventListener("prev_question",k(this,this.onNavigateTo)),a.addEventListener("next_question",k(this,this.onNavigateTo)),a.addEventListener("APPPause",k(this,this.pauseHandler)),a.addEventListener("APPResume",k(this,this.resumeHandler)));
this.postEvent(new Mc("room.initialize",{gitVersion:"5d9412adbe1fdf2c90235f89a3088c70d33a2993"}));this.view.initialize();this.xmlLoadedSignal.add(k(this,this.onXmlLoaded));this.showLoadingSignal.add(k(this,this.onShowLoading));this.loadingProgressSignal.add(k(this,this.onLoadingProgress));this.hideLoadingSignal.add(k(this,this.removeLoadingScreen));this.printDebugSignal.add(k(this,this.onPrintDebug));this.state.get_signals().get_changeVersion().add(k(this,this.onChangeVersion));this.state.get_signals().get_changeScreenIndex().add(k(this,
this.onChangeScreenIndex));this.quizManager.get_signals().get_beforeChangeData().add(k(this,this.onBeforeChangeQuizData));this.quizManager.get_signals().get_changeData().add(k(this,this.onChangeQuizData));this.quizManager.quiz.get_signals().get_changeQuestionIndex().add(k(this,this.onChangeQuestionIndex));this.networkInfo.networkChange.add(k(this,this.onNetworkChange));this.view.stage.addEventListener("keyUp",k(this,this.onKeyUp));this.view.stage.addEventListener("keyDown",k(this,this.onKeyDown));
window.addEventListener("resize",k(this,this.onResizeWindow));this.onResizeWindow();this.loadXmlSignal.dispatch()},destroy:function(){this.exitSignal.dispatch();var a=H.messageProxy;null!=a&&a.destroy();this.view.destroy();this.xmlLoadedSignal.remove(k(this,this.onXmlLoaded));this.showLoadingSignal.remove(k(this,this.onShowLoading));this.loadingProgressSignal.remove(k(this,this.onLoadingProgress));this.hideLoadingSignal.remove(k(this,this.removeLoadingScreen));this.printDebugSignal.remove(k(this,
this.onPrintDebug));this.state.get_signals().get_changeVersion().remove(k(this,this.onChangeVersion));this.state.get_signals().get_changeScreenIndex().remove(k(this,this.onChangeScreenIndex));this.quizManager.get_signals().get_beforeChangeData().remove(k(this,this.onBeforeChangeQuizData));this.quizManager.get_signals().get_changeData().remove(k(this,this.onChangeQuizData));this.quizManager.quiz.get_signals().get_changeQuestionIndex().remove(k(this,this.onChangeQuestionIndex));this.networkInfo.networkChange.remove(k(this,
this.onNetworkChange));this.view.stage.removeEventListener("keyUp",k(this,this.onKeyUp));this.view.stage.removeEventListener("keyDown",k(this,this.onKeyDown));window.removeEventListener("resize",k(this,this.onResizeWindow));null!=H.xmlData&&H.xmlData.get_signals().get_change().remove(k(this,this.onChangeInfoXml));null!=this.quizManager.dataQuizes&&this.quizManager.dataQuizes.get_signals().get_change().remove(k(this,this.onChangeQuizes))},onResizeWindow:function(){var a=Math.min(window.innerWidth/
1070,window.innerHeight/650);this.view.get_root().set_scaleX(this.view.get_root().set_scaleY(a));this.view.stage.window.__scale=!H.insideJackDaw&&2<window.devicePixelRatio?a:1},pauseHandler:function(a){this.pauseNarratorSignal.dispatch();this.showLoadingSignal.dispatch("PAUSED","...");H.messageProxy.postMessage({type:"APPPaused"})},resumeHandler:function(a){this.pauseNarratorSignal.dispatch();this.showLoadingSignal.dispatch("REFRESHING USER DATA","...");var b=sa.getInterface();b.get_signals().get_loaded().add(k(this,
this.onSCORMReload)).repeat(0);a instanceof Hi?b instanceof Gg&&null!=a.get_data()&&""!=a.get_data()&&a.get_data()!=N.__cast(b,Gg).get_apiUrl()?N.__cast(b,Gg).set_apiUrl(a.get_data()):sa.load():sa.load()},onSCORMReload:function(a){this.removeLoadingScreen();a||eh.SCORMLoadError();this.needsRestore()?this.restoreProgressSignal.dispatch():this.resumeNarratorSignal.dispatch()},needsRestore:function(){return H.xmlData.settings.lessonLocationNew&&0<B.parseInt(sa.getNewLessonLocation())?!this.state.isScreenAvailable(sa.getNewLessonLocation()):
sa.getLessonLocation()!=this.state.get_screenIndex()},onXmlLoaded:function(){H.xmlData.get_signals().get_change().add(k(this,this.onChangeInfoXml));this.setVersion();this.setupLicence();"Desktop"==Hb.playerType||H.insideJackDaw||!H.xmlData.intro.get_showIntro()?this.introCompleteHandler():this.showIntro()},setVersion:function(){"FREE"==this.view.jackdawVersion?this.state.set_version("FREE"):this.state.set_version(H.xmlData.get_version())},setupLicence:function(){var a=H.xmlData.scorm.scorm_format,
b=H.xmlData.scorm.xmlversion,c=Yc.extractClientName(b);b=B.parseInt(Yc.extractLicences(b));var d=H.xmlData.screenIdSum==H.xmlData.scorm.scorm_2004/H.xmlData.get_multiplier();this.view.setupLicenceLabel(c,b,a,d)},onChangeVersion:function(){"TRIAL"==this.state.version&&(this.view.watermark.set_visible(!0),this.view.watermark.set_alpha(.5))},onChangeScreenIndex:function(){this.postEvent(new Mc("room.change_screen_index",this.state.get_screenNode().screen_id))},onChangeQuestionIndex:function(){null!=
this.quizManager.source&&this.postEvent(new Mc("room.change_question_index",[this.quizManager.quiz.currentQuestion.data.get_id(),this.quizManager.quiz.questionIndex]))},onNetworkChange:function(){var a=this.view.parent.get_loaderInfo().url;a=(new fa("^(cdv)?file://","")).match(a)||(new fa("^https?://localhost","")).match(a);this.networkInfo.isConnected()?(null!=this.offlineAlert&&this.offlineAlert.close(),sa.commit()):a||(this.offlineAlert=eh.Offline())},onUpdateOptions:function(a){Ya.options.update(a.data)},
onInitialize:function(a){H.insideJackDaw||(H.set_insideJackDaw(!0),H.sessionId=J.field(a.data,"sessionId"),this.addViewListener("click",k(this,this.onRoomClick)),this.onResizeWindow(),window.document.addEventListener("click",k(this,this.onDocumentClick)),this.view.stage.window.element.className+=" inside-jackdaw",this.quizManager.loadSource(H.get_quizXmlPath()))},onUninitialize:function(a){this.removeViewListener("click",k(this,this.onRoomClick));window.document.removeEventListener("click",k(this,
this.onDocumentClick));this.view.destroy()},onRoomClick:function(a){a.stopPropagation();a.preventDefault();a=a.target;if(1!=J.field(a,"ignoreRoomClick")){var b=Db.get(a);null!=b&&null!=b.field("jackdaw_tag_name")||null==a.parent||(a=a.parent,b=Db.get(a));if(null==b)this.postEvent(new Mc("room.deselect_tag"));else{var c=new kb(b.field("jackdaw_tag_name"));a=new ws(c.toString(),Zc.merge(c.getProps(a),Ya.getProps(b)),b.hasField("jackdaw_node_id")?b.field("jackdaw_node_id"):null);this.postEvent(new Mc("room.select_tag",
a))}}},onDocumentClick:function(a){"BODY"==N.__cast(a.target,Element).tagName.toUpperCase()&&this.postEvent(new Mc("room.deselect_tag"))},onUpdateXml:function(a){var b=a.getXml();if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));var c=b.nodeName;switch(c){case "Question":case "Quiz":case "introduction":case "navigation":case "settings":case "variables":case "video":var d=Ic.createUndo(a);switch(c){case "Question":this.updateQuestion(a,
d);break;case "Quiz":this.updateQuiz(a,d);break;case "introduction":d.setXml(bc.print(H.xmlData.intro.get_xml()));H.xmlData.intro.replaceXml(b);this.changeInfoXml(d);break;case "navigation":if(null==a.getNodeIds())d.setXml(bc.print(H.xmlData.navigation.get_xml())),H.xmlData.navigation.replaceXml(b);else{var e=H.xmlData.screensList.findAll(a.getNodeIds());d.setXml(bc.print(e[0].navigationNode.get_xml()));e[0].navigationNode.replaceXml(b);this.navigationUpdatedSignal.dispatch()}this.changeInfoXml(d);
break;case "settings":d.setXml(bc.print(H.xmlData.settings.get_xml()));H.xmlData.settings.replaceXml(b);this.changeInfoXml(d);break;case "variables":if(null!=H.xmlData.variables)d.setXml(bc.print(H.xmlData.variables.get_xml())),H.xmlData.variables.replaceXml(b);else{d.setXml("");if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==b.nodeType?"null":V.toString(b.nodeType)));H.xmlData.variables=new ym(b)}this.changeInfoXml(d);break;case "video":d.setXml(bc.print(H.xmlData.video.get_xml())),
H.xmlData.video.replaceXml(b),this.changeInfoXml(d)}break;default:this.undoEvents=[];var f=!1;e=null!=a.getNodeIds()?H.xmlData.screensList.findAll(a.getNodeIds()):[this.state.get_screenNode()];for(var h=0;h<e.length;){var l=e[h];++h;d=Ic.createUndo(a);if(kb.isMultipleTag(c)){var m=kb.getMultipleTagIndex(c);c=kb.getSingleName(c);switch(c){case "Content":d.setXml(bc.print(l.additionalContent[m-1].get_xml()));l.additionalContent[m-1].replaceXml(b);break;case "Image":d.setXml(bc.print(l.imageNodes[m].get_xml()));
l.imageNodes[m].replaceXml(b);break;case "Narrator":d.setXml(bc.print(l.narratorNodes[m].get_xml()));l.narratorNodes[m].replaceXml(b);break;case "Video":d.setXml(bc.print(l.videoNodes[m].get_xml()));l.videoNodes[m].replaceXml(b);break;case "iframe":d.setXml(bc.print(l.iframeNodes[m].get_xml()));l.iframeNodes[m].replaceXml(b);break;case "input":d.setXml(bc.print(l.inputNodes[m].get_xml())),l.inputNodes[m].replaceXml(b),f=!0}}else switch(c){case "Background":m=l.isMainScreen?l:H.xmlData.screensList.find(B.string(l.get_mainId()));
if(l.isMainScreen||""!=m.get_background()){if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));if(null!=b.children[0]){if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));m=bc.print(b.children[0])}else m="";l.set_background(m)}else{if(b.nodeType!=z.Document&&b.nodeType!=
z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));if(null!=b.children[0]){if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));l=bc.print(b.children[0])}else l="";m.set_background(l)}break;case "Content":d.setXml(bc.print(l.contentNode.get_xml()));l.contentNode.replaceXml(b);break;case "Flash":(l.isMainScreen?
l:H.xmlData.screensList.find(B.string(l.get_mainId()))).replaceFlash(b);break;case "Image":d.setXml(bc.print(l.imageNode.get_xml()));l.imageNode.replaceXml(b);break;case "Narrator":d.setXml(bc.print(l.narratorNode.get_xml()));l.narratorNode.replaceXml(b);break;case "Quizes":d.setXml(bc.print(l.quizesNode.get_xml()));l.quizesNode.replaceXml(b);break;case "Section":l=l.isMainScreen?l:H.xmlData.screensList.find(B.string(l.get_mainId()));if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+
(null==b.nodeType?"null":V.toString(b.nodeType)));m=b.children[0];if(m.nodeType==z.Document||m.nodeType==z.Element)throw u.thrown("Bad node type, unexpected "+(null==m.nodeType?"null":V.toString(m.nodeType)));l.setSectionTitle(m.nodeValue);break;case "Video":d.setXml(bc.print(l.videoNode.get_xml()));l.videoNode.replaceXml(b);break;case "iframe":d.setXml(bc.print(l.iframeNodes[0].get_xml()));l.iframeNodes[0].replaceXml(b);break;case "input":d.setXml(bc.print(l.inputNodes[0].get_xml()));l.inputNodes[0].replaceXml(b);
f=!0;break;case "screen":d.setXml(bc.print(l.get_xml()));l.replaceXml(b);break;case "thumbnail":m=new da;if(b.nodeType!=z.Document&&b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));var g=bc.print(b.children[0]);m.h.thumbnail=g;H.xmlData.menu.updateItems(l.screen_id,m)}this.undoEvents.push(d)}this.changeInfoXml(this.undoEvents);f&&this.changeQuizXml();this.undoEvents=null}},updateQuiz:function(a,b){var c=
a.getXml(),d=c.get("Type"),e=null!=a.getNodeIds()?a.getNodeIds()[0]:c.get("identifier");a=null;"inline"==d?null!=this.state.get_screenNode().quizesNode&&0<this.state.get_screenNode().quizesNode.quizNodes.length&&(a=1==this.state.get_screenNode().quizesNode.quizNodes.length?this.state.get_screenNode().quizesNode.quizNodes[0]:vb.find(this.state.get_screenNode().quizesNode.quizNodes,function(a){return a.get_id()==e})):a=this.quizManager.getQuiz(d,e);null!=a&&(b.setXml(bc.print(a.get_xml())),a.replaceXml(c),
this.changeInfoXml(b))},updateQuestion:function(a,b){var c=a.getXml(),d=c.get("QuestionType"),e=null!=a.getNodeIds()?a.getNodeIds()[0]:null;a=null;"inline"==d?null!=this.state.get_screenNode().quizesNode&&0<this.state.get_screenNode().quizesNode.quizNodes.length&&(d=1==this.state.get_screenNode().quizesNode.quizNodes.length?this.state.get_screenNode().quizesNode.quizNodes[0]:vb.find(this.state.get_screenNode().quizesNode.quizNodes,function(a){return a.get_id()==e}),a=d.questions[0]):(d=this.quizManager.getQuiz(d,
e),null!=d&&(a=d.getQuestion(c.get("QuestionID"))),null==a&&(a=this.quizManager.quiz.currentQuestion.data));null!=a&&(b.setXml(bc.print(a.get_xml())),a.replaceXml(c),this.changeInfoXml(b))},onChangeInfoXml:function(a){null==this.undoEvents&&this.changeInfoXml()},changeInfoXml:function(a){if(null!=a){a instanceof Array||(a=[a]);var b=[];for(a=M(a);a.hasNext();){var c=a.next();c.isLive?(null==this.liveUndo&&(this.liveUndo=c),c=null):null!=this.liveUndo&&(c=this.liveUndo,this.liveUndo=null,c.isLive=
!1);b.push(c)}a=vb.filter(b,function(a){return null!=a})}this.postEvent(new Mc("room.change_info_xml",bc.print(H.xmlData.get_xml()),a))},onBeforeChangeQuizData:function(a){null!=this.quizManager.dataQuizes&&this.quizManager.dataQuizes.get_signals().get_change().remove(k(this,this.onChangeQuizes))},onChangeQuizData:function(){null!=this.quizManager.source&&(this.changeQuizXml(),this.quizManager.dataQuizes.get_signals().get_change().add(k(this,this.onChangeQuizes)))},onChangeQuizes:function(){null==
this.undoEvents&&this.changeQuizXml()},changeQuizXml:function(a){null==a||a instanceof Array||(a=[a]);this.postEvent(new Mc("room.change_quiz_xml",bc.print(this.quizManager.dataQuizes.get_xml()),a))},postEvent:function(a){H.messageProxy.postEvent(a)},onInsertNode:function(a){this.undoEvents=[];switch(a.type){case "insert_answer":var b=this.quizManager.quiz.currentQuestion.data.answers.length+1;var c=a.dataArr[0];"number"==typeof c&&(c|0)===c&&1<a.dataArr.length?(c=a.dataArr[0],0<=c&&(b=c),c=a.dataArr[1]):
c=a.data;c=z.parse(c);if(c.nodeType!=z.Document&&c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));b=this.quizManager.quiz.currentQuestion.data.addAnswer(c.children[0],b);this.undoEvents.push(Ic.createUndo(a,b));this.changeQuizXml(this.undoEvents);break;case "insert_question":b=this.quizManager.quiz.questionIndex+1;c=a.dataArr[0];"number"==typeof c&&(c|0)===c&&1<a.dataArr.length?(c=a.dataArr[0],0<=c&&(b=
c),c=a.dataArr[1]):c=a.data;c=z.parse(c);if(c.nodeType!=z.Document&&c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));b=this.quizManager.addQuestion(c.children[0],b);this.undoEvents.push(Ic.createUndo(a,b));this.changeQuizXml(this.undoEvents);break;case "insert_main_screen":case "insert_sub_screen":b=this.state.get_screenNode().get_index()+1,c=a.dataArr[0],"number"==typeof c&&(c|0)===c&&1<a.dataArr.length?
(c=a.dataArr[0],0<=c&&(b=c),c=a.dataArr[1]):c=a.dataArr,b=H.xmlData.screensList.add(c,b,"insert_main_screen"==a.type),this.undoEvents.push(Ic.createUndo(a,b)),this.changeInfoXml(this.undoEvents)}this.undoEvents=null},onRemoveNode:function(a){this.undoEvents=[];switch(a.type){case "remove_answer":var b=this.quizManager.quiz.currentQuestion.data.removeAnswer(a.data);this.undoEvents.push(Ic.createUndo(a,b));this.changeQuizXml(this.undoEvents);break;case "remove_question":b=this.quizManager.dataQuizes.quizNodes[0].removeQuestion(a.data);
this.undoEvents.push(Ic.createUndo(a,b));this.changeQuizXml(this.undoEvents);break;case "remove_quiz":b=vb.find(this.state.get_screenNode().quizesNode.quizNodes,function(b){return b.get_id()==a.data});null!=b&&(b.remove(),this.changeInfoXml(this.undoEvents));break;case "remove_main_screen":case "remove_sub_screen":b=H.xmlData.screensList.remove(a.data,"remove_main_screen"==a.type),this.undoEvents.push(Ic.createUndo(a,b)),this.changeInfoXml(this.undoEvents)}this.undoEvents=null},onNavigateTo:function(a){switch(a.type){case "next_main_screen":this.navigateToSignal.dispatch("skip");
break;case "next_question":a=this.quizManager.quiz.questionIndex+1;a>=this.quizManager.quiz.questions.length?this.navigateToSignal.dispatch("skip"):this.quizManager.quiz.setQuestionIndex(a);break;case "next_screen":this.navigateToSignal.dispatch("next");break;case "prev_question":a=this.quizManager.quiz.questionIndex-1;0>a?this.navigateToSignal.dispatch("back"):this.quizManager.quiz.setQuestionIndex(a);break;case "question":this.quizManager.setCurrentQuestion(a.data);break;case "screen":this.navigateToSignal.dispatch(a.data)}},
showIntro:function(){this.introCompleteHandler()},introLoadedHandler:function(a){a=this.introLoader.content;this.view.introHolder.addChild(a);a.addEventListener("complete",k(this,this.introCompleteHandler));var b=J.field(a,"setData");J.isFunction(b)&&b.apply(a,[H.xmlData.intro.get_fast()])},introCompleteHandler:function(a){this.view.removeIntro();a=[];H.xmlData.settings.preloader&&(a=H.xmlData.screensList.getNarratorVideos());0<a.length?this.loadVideosSignal.dispatch(a):this.initMenuSignal.dispatch()},
onShowLoading:function(a,b){null==this.loadingScreen&&(this.loadingScreen=new Zl(a),this.view.addChild(this.loadingScreen))},onLoadingProgress:function(a,b){null!=this.loadingScreen?this.loadingScreen.setProgress(a,b):Ub.trace("RoomMediator::onLoadingProgress called, but loadingScreen is null",{fileName:"Source/room/mediators/RoomMediator.hx",lineNumber:866,className:"room.mediators.RoomMediator",methodName:"onLoadingProgress"})},removeLoadingScreen:function(){null!=this.loadingScreen&&(this.view.removeChild(this.loadingScreen),
this.loadingScreen=null)},onKeyUp:function(a){H.insideJackDaw&&a.bubbles&&this.postEvent(Mc.fromKeyboardEvent(a));27==a.keyCode&&0<this.view.introHolder.get_numChildren()&&this.introCompleteHandler();if(!H.insideJackDaw)if(this.state.get_screenNode().template==Eb.fromInt(1)){var b=J.getProperty(this.view,"screenNavigator");b=J.getProperty(b,"__children");b=J.getProperty(b[0],"__children");b=J.getProperty(b[0],"intro");J.getProperty(b,"__visible")&&37==a.keyCode&&this.navigateToSignal.dispatch("back")}else this.state.get_screenNode().isMainScreen&&
37==a.keyCode&&this.navigateToSignal.dispatch("back")},onKeyDown:function(a){H.insideJackDaw&&a.bubbles&&this.postEvent(Mc.fromKeyboardEvent(a));a.ctrlKey&&a.shiftKey&&191==a.keyCode&&this.printDebugSignal.dispatch("5d9412adbe1fdf2c90235f89a3088c70d33a2993")},onPrintDebug:function(a){if(!Object.prototype.hasOwnProperty.call(this.view,"echo")){var b=new Bb;b.set_textColor(16711680);b.set_background(!0);b.set_backgroundColor(16777215);b.set_x(10);b.set_y(40);b.set_wordWrap(!0);b.set_multiline(!0);b.set_autoSize(1);
b.set_width(300);b.set_height(50);this.view.echo=this.view.addChild(b)}10<this.view.echo.get_numLines()&&this.view.echo.set_text("");b=this.view.echo;b.set_text(b.get_text()+(a+"\n"));this.view.echo.set_scrollV(this.view.echo.get_maxScrollV())},__class__:Xc});var bh=function(){};g["room.mediators.ScreenQuizMediator"]=bh;bh.__name__="room.mediators.ScreenQuizMediator";bh.__super__=Da;bh.prototype=r(Da.prototype,{view:null,state:null,quizManager:null,answers:null,initialize:function(){this.quizManager.quiz.get_signals().get_changeQuestionIndex().add(k(this,
this.onChangeQuestionIndex));this.quizManager.quiz.setQuestionIndex(0);H.insideJackDaw?(this.view.quizNode.get_signals().get_change().add(k(this,this.onChange)),this.initializeJackdaw()):H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0)},destroy:function(){Ya.options.onUpdate.remove(k(this,this.updateJackdawLabel));this.quizManager.quiz.get_signals().get_changeQuestionIndex().remove(k(this,this.onChangeQuestionIndex));this.view.quizNode.get_signals().get_change().remove(k(this,this.onChange));
null!=this.quizManager.quiz.currentQuestion&&this.quizManager.quiz.currentQuestion.get_signals().get_submit().remove(k(this,this.onSubmitQuestion))},onChange:function(a){if(a instanceof Ni)this.view.updatePosition();else this.onChangeQuestionIndex()},onChangeQuestionIndex:function(){if(null!=this.quizManager.quiz.currentQuestion){var a=$g.createAnswers(this.quizManager.quiz.currentQuestion);H.insideJackDaw&&(null!=this.view.answers&&Db.remove(this.view.answers),this.setJackdawMeta(a));this.view.setAnswers(a);
this.quizManager.quiz.currentQuestion.get_signals().get_submit().add(k(this,this.onSubmitQuestion))}H.insideJackDaw&&this.updateJackdawLabel()},onSubmitQuestion:function(){this.view.feedback.hide();var a=this.quizManager.quiz.currentQuestion.getFeedbackAnswer();null!=a&&0<a.data.feedback.length&&this.view.feedback.show(a.data.feedback,this.quizManager.quiz.currentQuestion.getFeedbackColor());var b="s"+this.state.get_screenNode().screen_id+"_"+this.quizManager.quiz.currentQuestion.data.get_id();sa.sendInteraction2(b,
B.string(a.get_correct()),"t",a.get_correct()?"correct":"wrong",B.string(a.data.score),"true-false",a.question.data.get_text())},initializeJackdaw:function(){null!=this.view.answers&&this.setJackdawMeta(this.view.answers);Ya.options.onUpdate.add(k(this,this.updateJackdawLabel))},setJackdawMeta:function(a){var b=this.view.quizNode.get_fast();if(b.nodeType==z.Document)b="Document";else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));
b=b.nodeName}Db.set(a,Ya.wrapTagName(b)).setField("jackdaw_node_id",this.view.quizNode.get_id())},updateJackdawLabel:function(){var a=this.view.answers;Ya.options.get_previewMode()?(Fb.clearLabel(a),a.mouseChildren=!0):(Fb.drawLabel(a,"Form",null,16777215,0,0),a.mouseChildren=!1)},__class__:bh});var ch=function(){};g["room.mediators.SectionTitleMediator"]=ch;ch.__name__="room.mediators.SectionTitleMediator";ch.__super__=Da;ch.prototype=r(Da.prototype,{view:null,state:null,xmlLoadedSignal:null,mainScreenNode:null,
initialize:function(){this.view.mouseChildren=!1;this.view.hide(!0);this.xmlLoadedSignal.add(k(this,this.onXmlLoaded));this.state.get_signals().get_changeMainScreenIndex().add(k(this,this.onChangeMainScreen));H.insideJackDaw?this.initializeJackdaw():H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0)},initializeJackdaw:function(){Db.set(this.view,Ya.wrapTagName("Section"));this.view.mouseChildren=!1},destroy:function(){this.xmlLoadedSignal.remove(k(this,this.onXmlLoaded));this.state.get_signals().get_changeMainScreenIndex().remove(k(this,
this.onChangeMainScreen));null!=H.xmlData&&null!=H.xmlData.settings&&H.xmlData.settings.get_signals().get_change().remove(k(this,this.onChangeSettings));Db.remove(this.view)},onXmlLoaded:function(){H.xmlData.settings.get_signals().get_change().add(k(this,this.onChangeSettings)).fireOnAdd()},onChangeMainScreen:function(){null!=this.mainScreenNode&&this.mainScreenNode.get_signals().get_change().remove(k(this,this.onChangeSection));this.mainScreenNode=this.state.get_screenNode();this.mainScreenNode.get_signals().get_change().add(k(this,
this.onChangeSection));this.view.set_visible(!0);this.onChangeSection(this.mainScreenNode);H.insideJackDaw&&Db.get(this.view).setField("jackdaw_node_id",this.mainScreenNode.screen_id)},onChangeSettings:function(a){this.view.setBgColor(H.xmlData.settings.get_titleColor())},onChangeSection:function(a){this.view.set_title(this.mainScreenNode.get_sectionTitle())},__class__:ch});var Eg=function(){};g["room.mediators.StartScreenMediator"]=Eg;Eg.__name__="room.mediators.StartScreenMediator";Eg.__super__=
Da;Eg.prototype=r(Da.prototype,{view:null,showStartSignal:null,restoreProgressSignal:null,closeRoomSignal:null,initialize:function(){this.showStartSignal.add(k(this,this.onShowStart));this.view.set_visible(!1);this.view.set_buttonMode(!0);this.closeRoomSignal.add(k(this,this.showCloseScreen));this.addViewListener(Pb.isMobile()?"mouseDown":"click",k(this,this.onClick))},destroy:function(){this.showStartSignal.remove(k(this,this.onShowStart));this.removeViewListener(Pb.isMobile()?"mouseDown":"click",
k(this,this.onClick))},onShowStart:function(){this.view.set_visible(!0)},onClick:function(a){kf.play("thozi_daClick.mp3");Pb.isMobile()&&Qb.delay(k(this,this.requestFullScreen),0);this.view.set_visible(!1);this.restoreProgressSignal.dispatch()},requestFullScreen:function(){lc.call("setFullScreen")},showCloseScreen:function(){this.closeRoomSignal.remove(k(this,this.showCloseScreen));this.view.introText.set_text(yg.CLOSE_TEXT);this.view.set_visible(!0)},__class__:Eg});var zi=function(){};g["room.mediators.VariablesMediator"]=
zi;zi.__name__="room.mediators.VariablesMediator";zi.__super__=Da;zi.prototype=r(Da.prototype,{view:null,_variables:null,initialize:function(){this.view.set_visible(!1)},destroy:function(){},onThumbsLoaded:function(a){this._variables=Eh.getInstance();0<this._variables.get_count()&&(this._variables.get_signals().get_change().add(k(this,this.updateText)),this.updateText(),this.view.set_visible(!0))},updateText:function(){this.view.txt.set_text(this._variables.toString())},__class__:zi});var Fg=function(){this.videoNodes=
[]};g["room.mediators.VideoContainerMediator"]=Fg;Fg.__name__="room.mediators.VideoContainerMediator";Fg.__super__=Da;Fg.prototype=r(Da.prototype,{view:null,state:null,hideTextSignal:null,screenIndexChangedSignal:null,videoNodes:null,initialize:function(){this.hideTextSignal.add(k(this,this.onHideText));this.screenIndexChangedSignal.add(k(this,this.onScreenIndexChanged))},onScreenChange:function(a){this.addVideos(!0)},destroy:function(){this.hideTextSignal.remove(k(this,this.onHideText));this.screenIndexChangedSignal.remove(k(this,
this.onScreenIndexChanged))},onScreenIndexChanged:function(){null!=this.state.get_screenNode()&&(this.addVideos(),H.insideJackDaw&&this.state.get_screenNode().get_signals().get_change().add(k(this,this.onScreenChange)))},onHideText:function(){this.removeVideos();null!=this.state.get_screenNode()&&H.insideJackDaw&&this.state.get_screenNode().get_signals().get_change().remove(k(this,this.onScreenChange))},addVideos:function(a){null==a&&(a=!1);for(var b=0,c=this.state.get_screenNode().videoNodes.length;b<
c;){var d=b++;d=this.state.get_screenNode().videoNodes[d];if(null!=d&&""!=d.path&&-1==this.videoNodes.indexOf(d)){d.get_signals().get_destroy().add(k(this,this.onDestroyVideoNode)).repeat(0);var e=new eo(d,a);this.view.addChild(e);this.videoNodes.push(d)}}},onDestroyVideoNode:function(a){a=N.__cast(a,Hk);this.unloadVideo(a);G.remove(this.videoNodes,a)},unloadVideo:function(a){a=this.findVideoPlayer(a);null!=a&&(a.videoNode.get_signals().get_destroy().remove(!0),this.view.removeChild(a))},findVideoPlayer:function(a){for(var b=
0,c=this.view.get_numChildren();b<c;){var d=b++;d=this.view.getChildAt(d);if(N.__implements(d,vj)&&d.videoNode==a)return d}return null},removeVideos:function(){for(;0<this.view.get_numChildren();){var a=this.view.getChildAt(0);N.__implements(a,vj)&&a.videoNode.get_signals().get_destroy().remove(!0);this.view.removeChild(a)}this.videoNodes=[]},__class__:Fg});var ee=function(a){ya.call(this,a)};g["room.signals.SetTitleAndContentSignal"]=ee;ee.__name__="room.signals.SetTitleAndContentSignal";ee.__super__=
ya;ee.prototype=r(ya.prototype,{__class__:ee});var sf=function(){};g["room.mediators.VideoPlayerMediator"]=sf;sf.__name__="room.mediators.VideoPlayerMediator";sf.__super__=Da;sf.prototype=r(Da.prototype,{view:null,state:null,setTitleAndContent:null,revealContentSignal:null,playAgainSignal:null,pauseNarratorSignal:null,currentScreenId:null,initialize:function(){this.view.initialize();this.setTitleAndContent.add(k(this,this.onSetTitleAndContent));this.revealContentSignal.add(k(this,this.onRevealContent));
this.playAgainSignal.add(k(this,this.onPlayAgain));this.pauseNarratorSignal.add(k(this,this.onPauseNarrator))},destroy:function(){this.setTitleAndContent.remove(k(this,this.onSetTitleAndContent));this.revealContentSignal.remove(k(this,this.onRevealContent));this.playAgainSignal.remove(k(this,this.onPlayAgain));this.pauseNarratorSignal.remove(k(this,this.onPauseNarrator));this.view.destroy()},onSetTitleAndContent:function(){this.state.get_screenNode().templateNode.get_isMultiButton()||this.view.show()},
onRevealContent:function(){this.currentScreenId!=this.state.get_screenNode().screen_id&&(this.view.show(),this.currentScreenId=this.state.get_screenNode().screen_id)},onPlayAgain:function(){this.view.playAgain()},onPauseNarrator:function(){this.view.pause()},__class__:sf});var qi=function(){pb.call(this)};g["room.signals.HideButtonsSignal"]=qi;qi.__name__="room.signals.HideButtonsSignal";qi.__super__=pb;qi.prototype=r(pb.prototype,{__class__:qi});var Ag=function(){pb.call(this)};g["room.signals.ShowButtonsSignal"]=
Ag;Ag.__name__="room.signals.ShowButtonsSignal";Ag.__super__=pb;Ag.prototype=r(pb.prototype,{__class__:Ag});var wd=function(){};g["room.mediators.buttons.BaseNavButtonMediator"]=wd;wd.__name__="room.mediators.buttons.BaseNavButtonMediator";wd.__super__=Da;wd.prototype=r(Da.prototype,{printDebugSignal:null,hideTextSignal:null,hideButtonsSignal:null,showButtonsSignal:null,navigateToSignal:null,_view:null,clickEvent:null,initialize:function(){this._view=this.viewComponent;this._view.initialize();this.addViewListener(Pb.isMobile()?
"mouseDown":"click",k(this,this.clickHandler));this.hideTextSignal.add(k(this,this.onHideText));this.hideButtonsSignal.add(k(this,this.onHideButtons));this.showButtonsSignal.add(k(this,this.onShowButtons))},destroy:function(){this.removeViewListener(Pb.isMobile()?"mouseDown":"click",k(this,this.clickHandler));this.hideTextSignal.remove(k(this,this.onHideText));this.hideButtonsSignal.remove(k(this,this.onHideButtons));this.showButtonsSignal.remove(k(this,this.onShowButtons))},clickHandler:function(a){kf.play("thozi_daClick.mp3");
null!=this._view.data.questionID&&0<this._view.data.questionID.length&&sa.sendInteraction2(this._view.data.questionID,"true","checkbox");null!=this._view.data.addResources&&0<this._view.data.addResources.length&&sa.learningRes(!0,this._view.data.addResources);null!=this._view.data.removeResources&&0<this._view.data.removeResources.length&&sa.learningRes(!1,this._view.data.removeResources);this.navigateToSignal.dispatch(this._view.data.command)},onHideText:function(){this._view.data.isNext&&this._view.set_visible(!1)},
onHideButtons:function(a){(null==a||-1<a.indexOf(this._view.get_name()))&&this.hide()},onShowButtons:function(a){(null==a||-1<a.indexOf(this._view.get_name()))&&this.show()},show:function(){this._view.set_visible(!0)},hide:function(){this._view.set_visible(!1)},__class__:wd});var Ah=function(){};g["room.mediators.buttons.ButtonMediator"]=Ah;Ah.__name__="room.mediators.buttons.ButtonMediator";Ah.__super__=Da;Ah.prototype=r(Da.prototype,{_view:null,initialize:function(){this._view=this.viewComponent;
this.viewComponent.stop();this.viewComponent.mouseChildren=!1;this.addMouseListeners()},addMouseListeners:function(){this.viewComponent.buttonMode=!0;this.addViewListener("mouseOver",k(this,this.rollOverHandler));this.addViewListener("mouseOut",k(this,this.rollOutHandler));this.addViewListener("mouseUp",k(this,this.mouseUpHandler));this.addViewListener("mouseDown",k(this,this.mouseDownHandler))},rollOverHandler:function(a){this.viewComponent.gotoAndStop(this._view.get_currentLabels()[1].frame+1)},
rollOutHandler:function(a){this.viewComponent.gotoAndStop(this._view.get_currentLabels()[0].frame+1)},mouseDownHandler:function(a){this.viewComponent.gotoAndStop(this._view.get_currentLabels()[2].frame+1)},mouseUpHandler:function(a){this.viewComponent.gotoAndStop(this._view.get_currentLabels()[1].frame+1)},__class__:Ah});var cf=function(){};g["room.mediators.buttons.FormsNextButtonMediator"]=cf;cf.__name__="room.mediators.buttons.FormsNextButtonMediator";cf.__super__=wd;cf.prototype=r(wd.prototype,
{view:null,quizManager:null,initialize:function(){this.setFallbackMode();wd.prototype.initialize.call(this);this.quizManager.quiz.get_signals().get_changeQuestionIndex().add(k(this,this.onChangeQuestionIndex));H.insideJackDaw?this.initializeJackdaw():H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0)},destroy:function(){null!=this.quizManager.quiz.currentQuestion&&(this.quizManager.quiz.currentQuestion.get_signals().get_setCompleted().remove(k(this,this.onSetCompleted)),this.quizManager.quiz.currentQuestion.get_signals().get_submit().remove(k(this,
this.onSubmit)));this.quizManager.quiz.get_signals().get_changeQuestionIndex().remove(k(this,this.onChangeQuestionIndex));Ya.options.onUpdate.remove(k(this,this.onJackdawOptionsUpdate));wd.prototype.destroy.call(this)},onChangeQuestionIndex:function(){null!=this.quizManager.quiz.currentQuestion&&(this.quizManager.quiz.currentQuestion.get_signals().get_setCompleted().add(k(this,this.onSetCompleted)),this.quizManager.quiz.currentQuestion.get_signals().get_submit().add(k(this,this.onSubmit)))},onSetCompleted:function(){this.quizManager.quiz.currentQuestion.completed?
this.view.addYesButton():this.view.removeButton()},onSubmit:function(){this.view.addNextButton()},clickHandler:function(a){this.view.fallbackMode||"yes"!=this.view.button.get_name()?wd.prototype.clickHandler.call(this,a):this.quizManager.quiz.currentQuestion.set_submitted(!0)},setFallbackMode:function(){var a=H.insideJackDaw&&!Ya.options.get_previewMode();this.view.fallbackMode=a},initializeJackdaw:function(){Ya.options.onUpdate.add(k(this,this.onJackdawOptionsUpdate))},onJackdawOptionsUpdate:function(){this.setFallbackMode();
this.view.initialize()},__class__:cf});var ef=function(){this._showTimer=null};g["room.mediators.buttons.ScreenNavButtonMediator"]=ef;ef.__name__="room.mediators.buttons.ScreenNavButtonMediator";ef.__super__=wd;ef.prototype=r(wd.prototype,{view:null,state:null,_showTimer:null,initialize:function(){wd.prototype.initialize.call(this);this.view.stage.addEventListener("keyDown",k(this,this.keyDownHandler));this.view.stage.addEventListener("keyUp",k(this,this.keyUpHandler))},destroy:function(){wd.prototype.destroy.call(this);
this.destroyTimer();this.view.stage.removeEventListener("keyDown",k(this,this.keyDownHandler));this.view.stage.removeEventListener("keyUp",k(this,this.keyUpHandler))},keyDownHandler:function(a){(a.shiftKey&&a.ctrlKey||this.view.get_visible())&&!H.insideJackDaw&&(this.view.data.isPrev&&37==a.keyCode||this.view.data.isNext&&39==a.keyCode)&&this.view.dispatchEvent(new eb("mouseDown"))},keyUpHandler:function(a){(a.shiftKey&&a.ctrlKey||this.view.get_visible())&&!H.insideJackDaw&&(this.view.data.isPrev&&
37==a.keyCode||this.view.data.isNext&&39==a.keyCode?(this.view.dispatchEvent(new eb("rollOut")),this.view.dispatchEvent(new eb("click"))):37==a.keyCode&&this.state.get_screenNode().isMainScreen&&this.navigateToSignal.dispatch("back"))},show:function(){var a=this,b=function(){a.doShow();a._showTimer=null};(!H.insideJackDaw||Ya.options.get_previewMode())&&0<this.view.data.getDelay()?this._showTimer=Qb.delay(b,1E3*this.view.data.getDelay()):this.doShow()},doShow:function(){wd.prototype.show.call(this)},
hide:function(){this.destroyTimer();wd.prototype.hide.call(this)},destroyTimer:function(){null!=this._showTimer&&(this._showTimer.stop(),this._showTimer=null)},__class__:ef});var Dl=function(a){ya.call(this,a)};g["room.signals.ButtonsReadySignal"]=Dl;Dl.__name__="room.signals.ButtonsReadySignal";Dl.__super__=ya;Dl.prototype=r(ya.prototype,{__class__:Dl});var we=function(){};g["room.mediators.buttons.ScreenNavButtonsHolderMediator"]=we;we.__name__="room.mediators.buttons.ScreenNavButtonsHolderMediator";
we.__super__=Da;we.prototype=r(Da.prototype,{printDebugSignal:null,view:null,state:null,screenIndexChangedSignal:null,buttonsReadySignal:null,hideTextSignal:null,hideContentSignal:null,showButtonsSignal:null,navigationUpdatedSignal:null,_buttons:null,_navNode:null,initialize:function(){this.navigationUpdatedSignal.add(k(this,this.onUpdateNavigation));this.screenIndexChangedSignal.add(k(this,this.onScreenIndexChanged));this.hideTextSignal.add(k(this,this.onHideText));this.hideContentSignal.add(k(this,
this.onHideText))},destroy:function(){this.navigationUpdatedSignal.remove(k(this,this.onUpdateNavigation));this.screenIndexChangedSignal.remove(k(this,this.onScreenIndexChanged));this.hideTextSignal.remove(k(this,this.onHideText));this.hideContentSignal.remove(k(this,this.onHideText))},onUpdateNavigation:function(){this.removeButtons();this.createButtons();for(var a=Object.keys(this._buttons.h),b=a.length,c=0;c<b;){var d=a[c++];this._buttons.h[d].set_visible(!0)}},onScreenIndexChanged:function(){var a=
this;this.createButtons();Qb.delay(function(){a.buttonsReadySignal.dispatch()},0)},onAddScreens:function(a){this.createButtons();this.showButtonsSignal.dispatch(null)},onHideText:function(){this.removeButtons();this.view.dispatchEvent(new W("enterFrame"))},createButtons:function(){var a=this.state.get_screenNode().get_navigation().buttons.h;a=Object.keys(a);for(var b=a.length,c=0;c<b;){var d=a[c++],e=this.state.get_screenNode().get_navigation().buttons.h[d];Object.prototype.hasOwnProperty.call(this._buttons.h,
d)||!e.get_visible()||this.state.get_screenNode().isMainScreen&&e.isPrev||this.state.get_screenNode().isLastScreen()&&e.isNext||(e=this.state.get_screenNode().hasForms()&&e.isNext?new Xl(e):new em(e),this.view.addChild(e),"next"==e.get_name()?(e.set_y(586),e.set_x(967)):"prev"==e.get_name()?(e.set_y(586),e.set_x(69)):"yes"==e.get_name()?(e.set_y(506),e.set_x(967)):"no"==e.get_name()&&(e.set_y(586),e.set_x(967)),this._buttons.h[d]=e)}null!=this._navNode&&this._navNode.get_signals().get_change().remove(k(this,
this.onChangeNavigation));this._navNode=this.state.get_screenNode().get_navigation();this._navNode.get_signals().get_change().add(k(this,this.onChangeNavigation))},removeButtons:function(){null!=this._navNode&&(this._navNode.get_signals().get_change().remove(k(this,this.onChangeNavigation)),this._navNode=null);null==this._buttons&&(this._buttons=new da,H.xmlData.screensList.get_signals().get_add().add(k(this,this.onAddScreens)));for(var a=Object.keys(this._buttons.h),b=a.length,c=0;c<b;){var d=a[c++];
this.view.removeChild(this._buttons.h[d]);var e=this._buttons;Object.prototype.hasOwnProperty.call(e.h,d)&&delete e.h[d]}},onChangeNavigation:function(a){this.removeButtons();this.createButtons();a=Object.keys(this._buttons.h);for(var b=a.length,c=0;c<b;){var d=a[c++];this._buttons.h[d].set_visible(!0)}},__class__:we});var El=function(a){ya.call(this,a)};g["room.signals.CloseMenuSignal"]=El;El.__name__="room.signals.CloseMenuSignal";El.__super__=ya;El.prototype=r(ya.prototype,{__class__:El});var Qn=
function(a){ya.call(this,a)};g["room.signals.MenuItemStartDragSignal"]=Qn;Qn.__name__="room.signals.MenuItemStartDragSignal";Qn.__super__=ya;Qn.prototype=r(ya.prototype,{__class__:Qn});var Rn=function(a){ya.call(this,a)};g["room.signals.MenuItemStopDragSignal"]=Rn;Rn.__name__="room.signals.MenuItemStopDragSignal";Rn.__super__=ya;Rn.prototype=r(ya.prototype,{__class__:Rn});var Ll=function(){pb.call(this)};g["room.signals.MenuItemDragSignal"]=Ll;Ll.__name__="room.signals.MenuItemDragSignal";Ll.__super__=
pb;Ll.prototype=r(pb.prototype,{__class__:Ll});var Ne=function(){this.eventsDisabled=!1};g["room.mediators.menu.MenuItemMediator"]=Ne;Ne.__name__="room.mediators.menu.MenuItemMediator";Ne.__super__=Da;Ne.prototype=r(Da.prototype,{view:null,screenIndexChangedSignal:null,setScreenIndexSignal:null,closeMenuSignal:null,startDragSignal:null,stopDragSignal:null,dragSignal:null,state:null,eventsDisabled:null,initialize:function(){this.view.addEventListener("mouseOver",k(this,this.mouseOver));this.view.addEventListener("mouseOut",
k(this,this.mouseOut));this.screenIndexChangedSignal.add(k(this,this.screenIndexChanged)).fireOnAdd();1==this.view.status?this.view.background.addEventListener(yb.isMobile()?"mouseDown":"click",k(this,this.menuItemClicked)):2==this.view.status&&this.view.background.addEventListener(yb.isMobile()?"mouseDown":"click",k(this,this.closeMenu));H.insideJackDaw&&(this.view.duplicateBtn.addEventListener("click",k(this,this.onDuplicate)),this.view.moveBtn.addEventListener("mouseDown",k(this,this.onMouseDownDrag)),
this.view.deleteBtn.addEventListener("click",k(this,this.onDelete)),this.startDragSignal.add(k(this,this.onStartDrag)),this.stopDragSignal.add(k(this,this.onStopDrag)))},destroy:function(){this.view.background.removeEventListener(yb.isMobile()?"mouseDown":"click",k(this,this.menuItemClicked));this.view.background.removeEventListener(yb.isMobile()?"mouseDown":"click",k(this,this.closeMenu));this.view.removeEventListener("mouseOver",k(this,this.mouseOver));this.view.removeEventListener("mouseOut",k(this,
this.mouseOut));this.screenIndexChangedSignal.add(k(this,this.screenIndexChanged));H.insideJackDaw&&(this.view.duplicateBtn.removeEventListener("click",k(this,this.onDuplicate)),this.view.moveBtn.removeEventListener("mouseDown",k(this,this.onMouseDownDrag)),this.view.deleteBtn.removeEventListener("click",k(this,this.onDelete)),this.startDragSignal.remove(k(this,this.onStartDrag)),this.stopDragSignal.remove(k(this,this.onStopDrag)))},menuItemClicked:function(a){this.setScreenIndexSignal.dispatch(new Nd(this.view.item.get_index(),
""));this.closeMenu()},closeMenu:function(a){this.closeMenuSignal.dispatch()},mouseOver:function(a){this.eventsDisabled||this.view.mouseOver()},mouseOut:function(a){this.eventsDisabled||this.view.mouseOut()},screenIndexChanged:function(){var a=this.state.visitedScreens.length;if(H.insideJackDaw||H.xmlData.settings.get_menuUnlocked())a=1E5;this.view.set_status(this.view.get_index()+1>a?0:this.view.item.get_id()==this.state.mainScreenID?2:1)},onDuplicate:function(a){a.stopImmediatePropagation();H.messageProxy.postEvent(new Mc("room.duplicate_screen",
this.view.item.get_id()))},onMouseDownDrag:function(a){a.stopImmediatePropagation();this.view.startDragging();this.view.stage.addEventListener("mouseUp",k(this,this.onMouseUpDrag));this.view.stage.addEventListener("mouseMove",k(this,this.onMouseMoveDrag));this.startDragSignal.dispatch()},onMouseUpDrag:function(a){this.view.stopDragging();va.tween(this.view,1,{x:this.view.position.x,y:this.view.position.y});this.view.stage.removeEventListener("mouseUp",k(this,this.onMouseUpDrag));this.view.stage.removeEventListener("mouseMove",
k(this,this.onMouseMoveDrag));this.stopDragSignal.dispatch();a=B.string(this.view.get_index()+1);this.view.item.get_id()!=a&&H.xmlData.screensList.move(this.view.item.get_id(),a)},onMouseMoveDrag:function(a){this.dragSignal.dispatch(this.view)},onStartDrag:function(){this.eventsDisabled=!0},onStopDrag:function(){this.eventsDisabled=!1},onDelete:function(a){a.stopImmediatePropagation();H.messageProxy.postEvent(new Mc("room.delete_screen",this.view.item.get_id()))},__class__:Ne});var Il=function(a){ya.call(this,
a)};g["room.signals.LoadScormSignal"]=Il;Il.__name__="room.signals.LoadScormSignal";Il.__super__=ya;Il.prototype=r(ya.prototype,{__class__:Il});var Me=function(){this.menuItems=[]};g["room.mediators.menu.MenuMediator"]=Me;Me.__name__="room.mediators.menu.MenuMediator";Me.__super__=Da;Me.prototype=r(Da.prototype,{view:null,state:null,initMenuSignal:null,closeMenuSignal:null,loadScormSignal:null,xmlLoadedSignal:null,screenIndexChangedSignal:null,itemDragSignal:null,naviScreens:null,menuItemCols:null,
menuItemRows:null,leftOffset:null,topOffset:null,currentPage:null,totalPages:null,menuItems:null,initialize:function(){this.view.set_visible(!1);this.initMenuSignal.add(k(this,this.onInitMenu)).repeat(0);this.closeMenuSignal.add(k(this,this.onCloseMenu));this.xmlLoadedSignal.add(k(this,this.onXmlLoaded));this.screenIndexChangedSignal.add(k(this,this.onScreenIndexChanged));this.view.menuButton.addEventListener(yb.isMobile()?"mouseDown":"click",k(this,this.openMenu));this.view.overlay.addEventListener(yb.isMobile()?
"mouseDown":"click",k(this,this.closeMenu));this.view.pageInator.addEventListener("PageRight",k(this,this.swapPage));this.view.pageInator.addEventListener("PageLeft",k(this,this.swapPage))},destroy:function(){this.initMenuSignal.remove(k(this,this.onInitMenu));this.closeMenuSignal.remove(k(this,this.onCloseMenu));this.xmlLoadedSignal.remove(k(this,this.onXmlLoaded));this.screenIndexChangedSignal.remove(k(this,this.onScreenIndexChanged));this.view.menuButton.removeEventListener(yb.isMobile()?"mouseDown":
"click",k(this,this.openMenu));this.view.overlay.removeEventListener(yb.isMobile()?"mouseDown":"click",k(this,this.closeMenu));H.insideJackDaw&&(H.xmlData.screensList.get_signals().get_add().remove(k(this,this.onAddRemoveScreens)),H.xmlData.screensList.get_signals().get_remove().remove(k(this,this.onAddRemoveScreens)),H.xmlData.screensList.get_signals().get_move().remove(k(this,this.onMoveScreen)),H.xmlData.settings.get_signals().get_change().remove(k(this,this.onChangeSettings)),this.itemDragSignal.remove(k(this,
this.onItemDrag)))},onChangeSettings:function(a){this.initMenuLogo()},onInitMenu:function(){this.view.set_visible(!0);this.view.showMenuButton(!0);this.view.courseTitle.set_text(H.getCourseTitle());this.loadScormSignal.dispatch()},onCloseMenu:function(){this.closeMenu()},openMenu:function(a){kf.play("thozi_daClick.mp3");this.view.showOverlay(!0);this.view.showMenuButton(!1);this.setMenuData();this.showMenuItems(!0);this.view.showTitle(!0);1<this.totalPages&&this.view.pageInator.showMe(!0)},closeMenu:function(a){kf.play("thozi_daClick.mp3");
this.view.showOverlay(!1);this.view.showMenuButton(!0);this.showMenuItems(!1);this.view.showTitle(!1);1<this.totalPages&&this.view.pageInator.showMe(!1)},onXmlLoaded:function(){H.insideJackDaw?this.initializeJackdaw():H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0);this.initMenuLogo()},initMenuLogo:function(){H.get_showSecondMenu()||null==H.xmlData.settings.menuLogo||"null"==H.xmlData.settings.menuLogo||""==H.xmlData.settings.menuLogo?(this.view.watermark.show(!0),this.view.logo.show(!1)):
(this.view.logo.set_imagePath(H.xmlData.settings.menuLogo),this.view.logo.url2open=H.xmlData.settings.menuLogoUrl,this.view.logo.show(!0),this.view.watermark.show(!1))},initializeJackdaw:function(){H.xmlData.settings.get_signals().get_change().add(k(this,this.onChangeSettings));H.xmlData.screensList.get_signals().get_add().add(k(this,this.onAddRemoveScreens));H.xmlData.screensList.get_signals().get_remove().add(k(this,this.onAddRemoveScreens));H.xmlData.screensList.get_signals().get_move().add(k(this,
this.onMoveScreen));this.itemDragSignal.add(k(this,this.onItemDrag))},onAddRemoveScreens:function(a){this.setMenuData();this.view.menuItemsGroup.get_visible()&&this.showMenuItems(!0)},onMoveScreen:function(a){this.setMenuData();this.view.menuItemsGroup.get_visible()&&this.showMenuItems(!0)},onScreenIndexChanged:function(){this.updatePage();this.view.menuItemsGroup.get_visible()&&this.showMenuItems(!0)},swapPage:function(a){"PageRight"==a.type?this.currentPage<this.totalPages-1&&this.currentPage++:
0<this.currentPage&&this.currentPage--;this.updatePaginatorText();va.tween(this.view.menuItemsGroup,1,{x:-1070*this.currentPage}).ease(rd.easeOut)},updatePaginatorText:function(){this.view.pageInator.text.set_text(this.currentPage+1+" / "+this.totalPages)},setMenuData:function(){this.naviScreens=H.xmlData.screensList.getMainScreens(H.insideJackDaw);this.totalPages=Math.ceil(this.naviScreens.length/24);this.menuItemCols=20<this.naviScreens.length?6:5;this.menuItemRows=20<this.naviScreens.length?4:
Math.ceil(this.naviScreens.length/this.menuItemCols);this.leftOffset=Math.round(.5*(1080-160*this.menuItemCols));this.view.titleX=this.leftOffset;this.topOffset=Math.round(.5*(650-110*this.menuItemRows))+30;this.view.courseTitle.set_y(this.topOffset-50);this.updatePage()},updatePage:function(){this.currentPage=Math.floor((B.parseInt(this.state.mainScreenID)-1)/24);this.updatePaginatorText();this.view.menuItemsGroup.set_x(-1070*this.currentPage)},showMenuItems:function(a){var b=this;if(a)this.createItems(),
this.orderItems(),this.view.menuItemsGroup.set_visible(!0),this.view.menuItemsGroup.set_alpha(0),this.view.menuItemsGroup.set_y(50),va.tween(this.view.menuItemsGroup,.7,{alpha:1,y:0}).ease(rd.easeOut);else va.tween(this.view.menuItemsGroup,.5,{alpha:0,y:50}).ease(rd.easeOut).onComplete(function(){b.view.menuItemsGroup.set_visible(!1)})},createItems:function(){for(;0<this.menuItems.length;)this.view.menuItemsGroup.removeChild(this.menuItems.splice(0,1)[0]);for(var a=0,b=this.naviScreens;a<b.length;){var c=
b[a],d=a++;c=this.view.menuItemsGroup.addChild(new Zg(c,d));this.menuItems.push(c)}},orderItems:function(){for(var a=0,b=this.menuItems;a<b.length;){var c=b[a],d=a++,e=new ab(d%24%this.menuItemCols*160+this.leftOffset+1070*Math.floor(d/24),110*Math.floor(d%24/this.menuItemCols)+this.topOffset);c.isDragging?c.position=e:(c.set_x(e.x),c.set_y(e.y));c.set_index(d)}},onItemDrag:function(a){var b=Math.floor(this.menuItems.length/this.menuItemCols)+1;b=Math.min(Math.floor((a.get_y()-this.topOffset)/110),
b-1);var c=Math.min(Math.floor((a.get_x()-this.leftOffset)/160),this.menuItemCols-1);b=b*this.menuItemCols+c;c=this.menuItems;a=this.menuItems.splice(this.menuItems.indexOf(a),1)[0];c.splice(b,0,a);this.orderItems()},__class__:Me});var Yf=function(){this.boxOpen=!1};g["room.mediators.quiz.CommentBoxMediator"]=Yf;Yf.__name__="room.mediators.quiz.CommentBoxMediator";Yf.__super__=Da;Yf.prototype=r(Da.prototype,{view:null,state:null,quizManager:null,printDebugSignal:null,stopAndHideNarratorSignal:null,
openBoxButton:null,closeBoxButton:null,boxOpen:null,initialize:function(){this.buildView();this.openBoxButton.addEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.openCommentBox));this.closeBoxButton.addEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.closeCommentBox));this.stopAndHideNarratorSignal.add(k(this,this.onChangeQuestion))},destroy:function(){this.openBoxButton.removeEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.openCommentBox));this.closeBoxButton.removeEventListener(Pb.isMobile()?
"mouseDown":"click",k(this,this.closeCommentBox))},openCommentBox:function(a){!this.boxOpen&&this.view.animDone&&(this.boxOpen=!0,this.view.show(),this.openBoxButton.set_visible(!1),this.closeBoxButton.set_visible(!0))},closeCommentBox:function(a){this.boxOpen&&this.view.animDone&&(this.boxOpen=!1,this.view.hide(),this.openBoxButton.set_visible(!0),this.closeBoxButton.set_visible(!1),this.view.inputField.set_text(Oe.removeTags(this.view.inputField.get_text())))},onChangeQuestion:function(){this.view.hide(!0);
this.boxOpen=!1;this.openBoxButton.set_visible(!0);this.closeBoxButton.set_visible(!1)},buildView:function(){this.openBoxButton=this.view.addChild(Jc.drawButton('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M25.2,3H6.6c-3.4,0-6,2.7-6,6v9.4c0,3.4,2.7,6,6,6h7.3l9.5,6.7v-6.7h2c3.4,0,6-2.7,6-6V9C31.2,5.7,28.6,3,25.2,3z M9.6,15.9 c-1.1,0-2-0.8-2-2s0.8-2,2-2s2,0.8,2,2S10.7,15.9,9.6,15.9z M16,15.9c-1.1,0-2-0.8-2-2s0.8-2,2-2s2,0.8,2,2S17,15.9,16,15.9z M22.3,15.9c-1.1,0-2-0.8-2-2s0.8-2,2-2c1.1,0,2,0.8,2,2S23.4,15.9,22.3,15.9z"/></svg>',
!1,!0));this.closeBoxButton=this.view.addChild(Jc.drawButton('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="27.67,10.7 24.13,7.16 13.53,17.77 7.87,12.11 4.33,15.65 9.99,21.3 9.99,21.3 13.53,24.84 17.06,21.3 17.06,21.3 "/></svg>',!0,!0));this.closeBoxButton.set_visible(!1);this.openBoxButton.set_x(this.closeBoxButton.set_x(770));this.openBoxButton.set_y(this.closeBoxButton.set_y(525))},__class__:Yf});
var wi=function(){};g["room.mediators.quiz.QuizCheckBoxMediator"]=wi;wi.__name__="room.mediators.quiz.QuizCheckBoxMediator";wi.__super__=Da;wi.prototype=r(Da.prototype,{view:null,initialize:function(){this.view.initialize();this.view.model.get_signals().get_select().add(k(this,this.onSelect));this.view.model.get_signals().get_focus().add(k(this,this.onFocus));this.view.model.question.get_signals().get_setCompleted().add(k(this,this.onSetCompletedQuestion));this.view.model.question.get_signals().get_submit().add(k(this,
this.onSubmitQuestion));Be.destroyHandler(this.view);1==J.field(this.view,"isTruncated")&&Be.createHandler(this.view,k(this,this.showAnswerTooltip),k(this,this.hideAnswerTooltip))},destroy:function(){this.view.model.get_signals().get_select().remove(k(this,this.onSelect));this.view.model.get_signals().get_focus().remove(k(this,this.onFocus));this.view.model.question.get_signals().get_setCompleted().remove(k(this,this.onSetCompletedQuestion));this.view.model.question.get_signals().get_submit().remove(k(this,
this.onSubmitQuestion));Be.destroyHandler(this.view.titleField)},onSelect:function(){this.view.set_selected(this.view.model.selected)},onFocus:function(){this.view.set_focused(this.view.model.focused)},onSetCompletedQuestion:function(){this.view.mouseEnabled=this.view.mouseChildren=!0},onSubmitQuestion:function(){this.view.mouseEnabled=this.view.mouseChildren=!1;this.view.model.question.settings.get_showAnswers()&&"skillscan"!=this.view.model.question.settings.typeString&&"task"!=this.view.model.question.settings.typeString&&
(this.view.model.data.get_correct()?this.view.setState("correct"):this.view.model.selected&&this.view.setState("incorrect"))},showAnswerTooltip:function(a){this.view.model.question.get_signals().get_showFullText().dispatch(J.field(this.view,"originalTitle"))},hideAnswerTooltip:function(a){this.view.model.question.get_signals().get_hideFullText().dispatch()},__class__:wi});var lm=function(){};g["room.mediators.quiz.QuizIndicatorMediator"]=lm;lm.__name__="room.mediators.quiz.QuizIndicatorMediator";
lm.__super__=Da;lm.prototype=r(Da.prototype,{initialize:function(){this.viewComponent.stop()},__class__:lm});var Sl=function(){pb.call(this)};g["room.signals.StartQuizIntroSignal"]=Sl;Sl.__name__="room.signals.StartQuizIntroSignal";Sl.__super__=pb;Sl.prototype=r(pb.prototype,{__class__:Sl});var Di=function(){};g["room.mediators.quiz.QuizIntroMediator"]=Di;Di.__name__="room.mediators.quiz.QuizIntroMediator";Di.__super__=Da;Di.prototype=r(Da.prototype,{view:null,startQuizIntroSignal:null,initialize:function(){this.startQuizIntroSignal.add(k(this,
this.onStartQuizIntro))},destroy:function(){this.startQuizIntroSignal.remove(k(this,this.onStartQuizIntro))},onStartQuizIntro:function(a){null==a&&(a=!1);a&&(this.view.set_rotation(-90),this.view.set_alpha(0),this.view.set_scaleX(this.view.set_scaleY(0)));this.view.set_visible(!0);va.tween(this.view,1,{rotation:0,alpha:1,scaleX:1,scaleY:1}).onComplete(k(this,this.startComplete))},startComplete:function(){this.view.dispatchEvent(new W("complete"))},__class__:Di});var Nl=function(){Je.call(this)};g["room.signals.SetQuizProgressSignal"]=
Nl;Nl.__name__="room.signals.SetQuizProgressSignal";Nl.__super__=Je;Nl.prototype=r(Je.prototype,{__class__:Nl});var df=function(){this._currentQuestionImage=null;this.focusedAnswer=-1};g["room.mediators.quiz.QuizMediator"]=df;df.__name__="room.mediators.quiz.QuizMediator";df.__super__=Da;df.prototype=r(Da.prototype,{view:null,state:null,quizManager:null,startQuizIntroSignal:null,setQuizProgressSignal:null,setupNarratorSignal:null,stopAndHideNarratorSignal:null,focusedAnswer:null,submit:null,next:null,
_currentQuestion:null,_currentQuestionImage:null,_imageLoader:null,introMessage:null,initialize:function(){this.view.init();this.submit=this.view.addChild(Jc.drawButton('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="27.67,10.7 24.13,7.16 13.53,17.77 7.87,12.11 4.33,15.65 9.99,21.3 9.99,21.3 13.53,24.84 17.06,21.3 17.06,21.3 "/></svg>'));this.next=this.view.addChild(Jc.drawButton('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m 28.035,15.995 -3.04,3.04 v 0 l -6.07,6.07 -3.04,-3.04 3.93,-3.93 H 3.965 v -4.29 h 15.84 l -3.91,-3.9099997 3.04,-3.0400005 6.07,6.0700002 v 0 z" id="arrow2" /></svg>'));
this.submit.set_x(this.next.set_x(860));this.submit.set_y(this.next.set_y(525));this.submit.set_visible(this.next.set_visible(!1));this.next.addEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.nextClickHandler));this.submit.addEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.submitClickHandler));this.view.intro.addEventListener("complete",k(this,this.introCompleteHandler));this.changeChildrenVisibility(!1,[this.view.intro]);this.quizManager.get_signals().get_changeData().add(k(this,
this.onChangeData));this.quizManager.quiz.get_signals().get_sendQuestion().add(k(this,this.onSendQuestion));this.quizManager.quiz.get_signals().get_changeQuestionIndex().add(k(this,this.onChangeQuestionIndex));this.quizManager.quiz.get_signals().get_start().add(k(this,this.onStart));this.quizManager.quiz.get_signals().get_tick().add(k(this,this.onTick));this.quizManager.quiz.get_signals().get_maxTimeExpired().add(k(this,this.onMaxTimeExpired));this.quizManager.quiz.get_signals().get_finish().add(k(this,
this.onFinish));this.view.stage.addEventListener("keyUp",k(this,this.onKeyUp))},destroy:function(){this.quizManager.get_signals().get_changeData().remove(k(this,this.onChangeData));this.quizManager.quiz.get_signals().get_sendQuestion().remove(k(this,this.onSendQuestion));this.quizManager.quiz.get_signals().get_changeQuestionIndex().remove(k(this,this.onChangeQuestionIndex));this.quizManager.quiz.get_signals().get_start().remove(k(this,this.onStart));this.quizManager.quiz.get_signals().get_tick().remove(k(this,
this.onTick));this.quizManager.quiz.get_signals().get_maxTimeExpired().remove(k(this,this.onMaxTimeExpired));this.quizManager.quiz.get_signals().get_finish().remove(k(this,this.onFinish));this.view.stage.removeEventListener("keyUp",k(this,this.onKeyUp))},onKeyUp:function(a){if(this.view.intro.get_visible())a=Oe.removeTags(this.introMessage)+" Press Shift + any key to continue.",lc.available&&lc.call("srSpeak",a),this.introCompleteHandler();else if(this.view.report.get_visible()){a=this.view.report.issueField.get_text()+
" "+this.view.report.ratioField.get_text()+" Press Shift + any key to continue.";lc.available&&lc.call("srSpeak",a);a=J.getProperty(this.view.report,"__children");for(var b=0;b<a.length;){var c=a[b];++b;1==J.getProperty(c,"visible")&&c.dispatchEvent(new W(Pb.isMobile()?"mouseDown":"click"))}}else this.quizManager.quiz.currentQuestion.submitted?39==a.keyCode&&this.next.get_visible()&&this.nextClickHandler():38==a.keyCode?this.setFocusedAnswer(this.focusedAnswer-1):40==a.keyCode?this.setFocusedAnswer(this.focusedAnswer+
1):32==a.keyCode&&null!=this.quizManager.quiz.currentQuestion.answers[this.focusedAnswer]?this.quizManager.quiz.currentQuestion.answers[this.focusedAnswer].set_selected(!this.quizManager.quiz.currentQuestion.answers[this.focusedAnswer].selected):39==a.keyCode&&this.submit.get_visible()&&this.submitClickHandler()},setFocusedAnswer:function(a){var b=this.quizManager.quiz.currentQuestion.answers;this.focusedAnswer!=a&&(null!=b[this.focusedAnswer]&&b[this.focusedAnswer].set_focused(!1),this.focusedAnswer=
0>a?b.length-1:a>=b.length?0:a,b[this.focusedAnswer].set_focused(!0))},onChangeData:function(){this.removeQuestion();this.changeChildrenVisibility(!1,[this.view.intro]);this.view.incorrectProgress.set_rotation(-180);this.view.correctProgress.set_rotation(-180);null!=this.quizManager.get_settingsNode()&&this.quizManager.startQuiz()},onSendQuestion:function(){this.quizManager.quiz.currentQuestion.set_comment(this.view.commentBox.inputField.get_text());this.stopAndHideNarratorSignal.dispatch();for(var a=
this.quizManager.quiz.currentQuestion,b=null,c=0,d=a.answers;c<d.length;){var e=d[c];++c;e.selected&&(b=e)}c=new Date;d=c.getTime();e=sa.get_beginDate().getTime();d=sa.getFormattedTime(d-e);e=B.string(a.data.get_id());var f="";null!=b&&(f=B.string(b.data.score),"0"==f&&"skillscan"==a.data.get_type()&&0<b.data.taskSeverity&&(f=B.string(b.data.taskSeverity)));var h=a.comment;if(!this.quizManager.get_settingsNode().loadsQuizAtScreenLevel){null!=a.lastAnswer&&""!=a.lastAnswer.data.resources?sa.learningRes(!0,
a.lastAnswer.data.resources):""!=a.data.resources&&sa.learningRes(!a.get_correct(),a.data.resources);var l=a.data.hasCommentBox&&"Type your comment here..."!=h&&0<h.length,m=a.get_correct()?"correct":"wrong",g="correct"==m?"t":"f";"TEXT"==a.data.qType?0<h.length&&sa.sendInteraction([G.dateStr(c),e,a.data.get_text(),"fill-in","text",h,"neutral",f,d]):"LKS"==a.data.qType?(g=b.data.text,sa.sendInteraction([G.dateStr(c),e,a.data.get_text(),"likert","text",g,"neutral",f,d])):"MR"==a.data.qType||"MC"==
a.data.qType?(g=b.data.text+(l?"@COMMENT:"+h:""),sa.sendInteraction([G.dateStr(c),e,a.data.get_text(),"choice","t",g,m,f,d])):(sa.sendInteraction([G.dateStr(c),e,a.data.get_text(),"true-false","t",g,m,f,d]),l&&sa.sendInteraction([G.dateStr(c),e,a.data.get_text(),"fill-in","text",h,"neutral",f,d]))}},onChangeQuestionIndex:function(){this.view.feedback.hide();null!=this._currentQuestion&&(this._currentQuestion.get_signals().get_change().remove(k(this,this.onChangeQuestion)),this._currentQuestion.get_signals().get_selectAnswer().remove(k(this,
this.onSelectAnswer)),this._currentQuestion.get_signals().get_setCompleted().remove(k(this,this.onCompleteQuestion)),this._currentQuestion.get_signals().get_submit().remove(k(this,this.onSubmitQuestion)),this._currentQuestion.get_signals().get_showFullText().remove(k(this,this.onShowFullText)),this._currentQuestion.get_signals().get_hideFullText().remove(k(this,this.onHideFullText)));this._currentQuestion=this.quizManager.quiz.currentQuestion;this._currentQuestion.get_signals().get_change().add(k(this,
this.onChangeQuestion));this._currentQuestion.get_signals().get_selectAnswer().add(k(this,this.onSelectAnswer));this._currentQuestion.get_signals().get_setCompleted().add(k(this,this.onCompleteQuestion));this._currentQuestion.get_signals().get_submit().add(k(this,this.onSubmitQuestion));this._currentQuestion.get_signals().get_showFullText().add(k(this,this.onShowFullText));this._currentQuestion.get_signals().get_hideFullText().add(k(this,this.onHideFullText));this.unloadQuestionImage();this.onChangeQuestion();
this.removeQuestion();this.view.questionsHolder.dispatchEvent(new W("enterFrame"));this.view.questionsHolder.addChild(new $g(this._currentQuestion))},onStart:function(){kf.play("thozi_daClick.mp3");if(this.isQuizAvailable()){var a=""==this.quizManager.get_settingsNode().get_introText()?this.state.get_screenNode().contentNode.value:this.quizManager.get_settingsNode().get_introText();a=(new fa("\\w{2,}","g")).match(a.replace(/<[^>]*>/g,""));this.quizManager.get_settingsNode().showIntro&&(!H.insideJackDaw||
Ya.options.get_previewMode())&&a?this.showIntro():this.introCompleteHandler()}else this.showQuizFailed()},isQuizAvailable:function(){return 0!=sa.getMaxQuizFails()?sa.getQuizFails()<sa.getMaxQuizFails():!0},introCompleteHandler:function(a){this.view.intro.set_visible(!1);this.isQuizAvailable()?(a=[this.view.report,this.view.intro],this.quizManager.get_settingsNode().get_showAnswers()&&this.quizManager.quiz.hasExamQuestions()||(a=a.concat([this.view.correctProgress,this.view.incorrectProgress])),this.changeChildrenVisibility(!0,
a),this.view.progressField.set_text("1 / "+this.quizManager.quiz.questions.length),this.view.timeField.set_visible(0<this.quizManager.quiz.settings.maxTimeAllowed),this.view.setTimeRemaining(this.quizManager.quiz.settings.maxTimeAllowed),this.quizManager.quiz.startQuestions()):this.state.get_screenNode().isLastScreen()||this.state.nextScreen()},showIntro:function(){this.introMessage=null==this.quizManager.get_settingsNode().get_introText()||""==this.quizManager.get_settingsNode().get_introText()?
this.state.get_screenNode().contentNode.value:this.quizManager.get_settingsNode().get_introText();this.view.setUpIntro(this.introMessage);this.view.intro.set_scaleX(this.view.intro.set_scaleY(.01));this.view.intro.set_alpha(.01);this.view.intro.set_rotation(0);va.tween(this.view.intro,1,{scaleX:1,scaleY:1,alpha:1,rotation:0}).onComplete(k(this,this.waitForIntroToClose))},waitForIntroToClose:function(){},showQuizFailed:function(){this.view.setUpIntro("You have reached the maximum number of quiz attempts. The quiz is now locked.")},
onTick:function(a){this.view.setTimeRemaining(this.quizManager.quiz.settings.maxTimeAllowed-a)},onMaxTimeExpired:function(){if(!H.insideJackDaw)this.onFinish()},onFinish:function(){H.quizPicOffsetX=0;this.view.plainBG.set_x(H.quizPicOffsetX);this.unloadQuestionImage();this.changeChildrenVisibility(!1,[this.view.plainBG,this.view.report])},onChangeQuestion:function(){null!=this._currentQuestion.data.get_image()?(this.loadQuestionImage(this._currentQuestion.data.get_image()),H.quizPicOffsetX=H.quizPicWidth,
this.view.plainBG.set_x(H.quizPicOffsetX),H.quizOffsetX=55):(H.quizPicOffsetX=0,this.view.plainBG.set_x(H.quizPicOffsetX),H.quizOffsetX=90);this.quizManager.get_settingsNode().get_showAnswers()||this.quizManager.get_settingsNode().get_showFeedback()&&"skillscan"!=this.quizManager.get_settingsNode().typeString&&("task"!=this.quizManager.get_settingsNode().typeString||this.quizManager.get_settingsNode().get_showFeedback())?(this.next.set_visible(!1),this.submit.set_visible(this._currentQuestion.completed)):
(this.submit.set_visible(!1),this.next.set_visible(this._currentQuestion.completed));this._currentQuestion.data.hasCommentBox?(this.view.commentBox.set_visible(!0),this.stopAndHideNarratorSignal.dispatch()):this.view.commentBox.set_visible(!1);lc.available&&lc.call("srSpeak",this.quizManager.quiz.currentQuestion.data.title+" "+this.quizManager.quiz.currentQuestion.data.get_text()+" Use Shift + UP, DOWN keys to navigate thru answers, Shift + SPACE key to select the answer, Shift + RIGHT key to submit the answer.")},
onSelectAnswer:function(){"WB"==this._currentQuestion.data.qType&&this.next.set_visible(!0)},onCompleteQuestion:function(){"WB"==this._currentQuestion.data.qType||"survey"==this.quizManager.get_settingsNode().typeString||!this.quizManager.get_settingsNode().get_showAnswers()&&!this.quizManager.get_settingsNode().get_showFeedback()||"skillscan"==this.quizManager.get_settingsNode().typeString||"task"==this.quizManager.get_settingsNode().typeString&&!this.quizManager.get_settingsNode().get_showFeedback()?
(this.next.set_visible(this._currentQuestion.completed),this.submit.set_visible(!1)):(this.submit.set_visible(this._currentQuestion.completed),this.next.set_visible(!1))},onSubmitQuestion:function(){this.submit.set_visible(!1);this.next.set_upState(la.buttonSprite("button-up",'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m 28.035,15.995 -3.04,3.04 v 0 l -6.07,6.07 -3.04,-3.04 3.93,-3.93 H 3.965 v -4.29 h 15.84 l -3.91,-3.9099997 3.04,-3.0400005 6.07,6.0700002 v 0 z" id="arrow2" /></svg>'));
this.next.set_overState(la.buttonSprite("button-over",'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m 28.035,15.995 -3.04,3.04 v 0 l -6.07,6.07 -3.04,-3.04 3.93,-3.93 H 3.965 v -4.29 h 15.84 l -3.91,-3.9099997 3.04,-3.0400005 6.07,6.0700002 v 0 z" id="arrow2" /></svg>'));this.next.set_downState(la.buttonSprite("button-down",'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m 28.035,15.995 -3.04,3.04 v 0 l -6.07,6.07 -3.04,-3.04 3.93,-3.93 H 3.965 v -4.29 h 15.84 l -3.91,-3.9099997 3.04,-3.0400005 6.07,6.0700002 v 0 z" id="arrow2" /></svg>'));
this.next.set_visible(!0);this.quizManager.get_settingsNode().get_showFeedback()&&this.showFeedback();var a=(this.quizManager.quiz.correctCount+this.quizManager.quiz.incorrectCount)/this.quizManager.quiz.questions.length;this.view.totalProgress.set_visible(!1);this.view.incorrectProgress.set_visible(!1);this.view.correctProgress.set_visible(!1);if(this.quizManager.get_settingsNode().get_hideProgressRatio())this.view.totalProgress.set_visible(!0),va.tween(this.view.totalProgress,1.5,{rotation:-1*(180+
90*a)}).smartRotation();else{this.view.incorrectProgress.set_visible(!0);this.view.correctProgress.set_visible(!0);var b=this.quizManager.quiz.correctCount/this.quizManager.quiz.questions.length;va.tween(this.view.incorrectProgress,1.5,{rotation:-1*(180+90*a)}).smartRotation();va.tween(this.view.correctProgress,1.5,{rotation:-1*(180+90*b)}).smartRotation()}},showFeedback:function(){this.view.feedback.set_visible(!1);var a=this._currentQuestion.getFeedbackAnswer();null!=a&&(0<a.data.feedback.length&&
(this.view.feedback.show(a.data.feedback,this._currentQuestion.getFeedbackColor()),this.next.set_upState(la.buttonSprite("button-up",'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m 28.035,15.995 -3.04,3.04 v 0 l -6.07,6.07 -3.04,-3.04 3.93,-3.93 H 3.965 v -4.29 h 15.84 l -3.91,-3.9099997 3.04,-3.0400005 6.07,6.0700002 v 0 z" id="arrow2" /></svg>',!0)),this.next.set_overState(la.buttonSprite("button-over",
'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m 28.035,15.995 -3.04,3.04 v 0 l -6.07,6.07 -3.04,-3.04 3.93,-3.93 H 3.965 v -4.29 h 15.84 l -3.91,-3.9099997 3.04,-3.0400005 6.07,6.0700002 v 0 z" id="arrow2" /></svg>',!0)),this.next.set_downState(la.buttonSprite("button-down",'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m 28.035,15.995 -3.04,3.04 v 0 l -6.07,6.07 -3.04,-3.04 3.93,-3.93 H 3.965 v -4.29 h 15.84 l -3.91,-3.9099997 3.04,-3.0400005 6.07,6.0700002 v 0 z" id="arrow2" /></svg>',
!0))),null!=a.data.get_narrator()&&this.setupNarratorSignal.dispatch(a.data.get_narrator()))},onShowFullText:function(a){this.view.feedback.show(a,4276545,0)},onHideFullText:function(){this.view.feedback.hide()},nextClickHandler:function(a){kf.play("thozi_daClick.mp3");this._currentQuestion.set_submitted(!0);this._currentQuestion.completed||"FB"!=this._currentQuestion.data.qType&&"WB"!=this._currentQuestion.data.qType?(this.view.progressField.set_text(Math.min(this.quizManager.quiz.questionIndex+
2,this.quizManager.quiz.questions.length)+" / "+this.quizManager.quiz.questions.length),this.quizManager.quiz.nextQuestion()):this._currentQuestion.set_completed(!0)},submitClickHandler:function(a){kf.play("thozi_daClick.mp3");this._currentQuestion.set_submitted(!0)},loadQuestionImage:function(a){a!=this._currentQuestionImage?(this.unloadQuestionImage(),this._currentQuestionImage=a,null!=a&&""!=ec.trim(a)&&(this._imageLoader=new Jd,this._imageLoader.contentLoaderInfo.addEventListener("complete",k(this,
this.loaderCompleteHandler)),this._imageLoader.load(new Kc(H.absoluteCoursePath+a)),null==this._imageLoader.parent&&this.view.image.addChild(this._imageLoader))):this.loaderCompleteHandler()},loaderCompleteHandler:function(a){this._imageLoader.set_scaleX(this._imageLoader.set_scaleY(1));this._imageLoader.set_x(this._imageLoader.set_y(0));if(650!=this._imageLoader.get_height()||this._imageLoader.get_width()!=H.quizPicWidth){a=650/H.quizPicWidth;var b=this._imageLoader.get_height()/this._imageLoader.get_width();
switch(this._currentQuestion.data.get_imageFit()){case "contain":a=a>b?H.quizPicWidth/this._imageLoader.get_width():650/this._imageLoader.get_height();this._imageLoader.set_scaleX(this._imageLoader.set_scaleY(a));break;case "fill":this._imageLoader.set_scaleX(H.quizPicWidth/this._imageLoader.get_width());this._imageLoader.set_scaleY(650/this._imageLoader.get_height());break;case "none":break;default:a=a<b?H.quizPicWidth/this._imageLoader.get_width():650/this._imageLoader.get_height(),this._imageLoader.set_scaleX(this._imageLoader.set_scaleY(a))}this._imageLoader.set_y(.5*
(650-this._imageLoader.get_height()));this._imageLoader.set_x(.5*(H.quizPicWidth-this._imageLoader.get_width()))}this._imageLoader.set_alpha(0);va.tween(this._imageLoader,.3,{alpha:1})},unloadQuestionImage:function(){null!=this._imageLoader&&(this._imageLoader.contentLoaderInfo.removeEventListener("complete",k(this,this.loaderCompleteHandler)),this._imageLoader.unloadAndStop(!0),this._currentQuestionImage=this._imageLoader=null)},removeQuestion:function(){for(;0<this.view.questionsHolder.get_numChildren();)this.view.questionsHolder.removeChildAt(0)},
changeChildrenVisibility:function(a,b){null==b&&(b=[]);for(var c=0,d=this.view.get_numChildren();c<d;){var e=c++;e=this.view.getChildAt(e);-1==b.indexOf(e)&&e.set_visible(a)}},__class__:df});var ah=function(){};g["room.mediators.quiz.QuizQuestionMediator"]=ah;ah.__name__="room.mediators.quiz.QuizQuestionMediator";ah.__super__=Da;ah.prototype=r(Da.prototype,{view:null,state:null,setupNarratorSignal:null,initialize:function(){null!=this.view.model.data.narrator&&this.setupNarratorSignal.dispatch(this.view.model.data.narrator);
this.view.model.get_signals().get_change().add(k(this,this.onChangeNode));this.onChangeNode();this.view.commentField.addEventListener("change",k(this,this.commentChangeHandler));"TEXT"==this.view.model.data.qType&&this.view.stage.set_focus(this.view.commentField);H.insideJackDaw?this.initializeJackdaw():H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0)},initializeJackdaw:function(){var a=this.view.questionField,b=this.view.model.data.get_fast();if(b.nodeType==z.Document)b="Document";
else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.nodeName}Db.set(a,Ya.wrapTagName(b)).setField("jackdaw_node_id",this.view.model.data.get_id());Ya.options.onUpdate.add(k(this,this.updateJackdawLabel))},destroy:function(){this.view.commentField.removeEventListener("change",k(this,this.commentChangeHandler));this.view.model.get_signals().get_change().remove(k(this,this.onChangeNode));Be.destroyHandler(this.view.questionField);
Ya.options.onUpdate.remove(k(this,this.updateJackdawLabel));Db.remove(this.view)},updateJackdawLabel:function(){if(Ya.options.get_previewMode())Fb.clearLabel(this.view.questionField);else{var a=this.view.questionField.getBounds(this.view.questionField),b=this.view.questionField,c=this.view.model.data.get_fast();if(c.nodeType==z.Document)c="Document";else{if(c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));c=c.nodeName}Fb.drawLabel(b,
c,a,10066329)}},onChangeNode:function(){this.view.update();Be.destroyHandler(this.view.questionField);this.view.isTruncated&&Be.createHandler(this.view.questionField,k(this,this.showQuestionTooltip),k(this,this.hideQuestionTooltip));H.insideJackDaw&&this.updateJackdawLabel()},showQuestionTooltip:function(a){N.__cast(a.currentTarget,Bb);this.view.model.get_signals().get_showFullText().dispatch(this.view.model.data.get_text())},hideQuestionTooltip:function(a){this.view.model.get_signals().get_hideFullText().dispatch()},
commentChangeHandler:function(a){this.view.model.set_comment(this.view.commentField.get_text())},__class__:ah});var Gl=function(a){ya.call(this,a)};g["room.signals.LessonCompleteSignal"]=Gl;Gl.__name__="room.signals.LessonCompleteSignal";Gl.__super__=ya;Gl.prototype=r(ya.prototype,{__class__:Gl});var Xf=function(){};g["room.mediators.quiz.QuizReportMediator"]=Xf;Xf.__name__="room.mediators.quiz.QuizReportMediator";Xf.__super__=Da;Xf.prototype=r(Da.prototype,{view:null,state:null,quizManager:null,
printDebugSignal:null,lessonCompleteSignal:null,_retake:null,_continue:null,_printSert:null,_ratioText:null,initialize:function(){this.buildView();this.view.set_visible(!1);this._retake.set_visible(!1);this._continue.set_visible(!1);this._printSert.set_visible(!1);var a=this.state.get_screenNode().quizesNode.settingsNode;this._continue.addEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.reportResultHandler));this._retake.addEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.reportResultHandler));
this.quizManager.quiz.get_signals().get_maxTimeExpired().add(k(this,this.onMaxTimeExpired));this.quizManager.quiz.get_signals().get_finish().add(k(this,this.onFinish));this._ratioText=a.ratio},destroy:function(){this._continue.removeEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.reportResultHandler));this._retake.removeEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.reportResultHandler));this.quizManager.quiz.get_signals().get_finish().remove(k(this,this.onFinish))},reportResultHandler:function(a){kf.play("thozi_daClick.mp3");
a.currentTarget==this._retake?(this.quizManager.get_signals().get_changeData().dispatch(),this.view.set_visible(!1)):a.currentTarget==this._continue&&(sa.completeLesson(),this.lessonCompleteSignal.dispatch(),this.quizManager.unload())},onMaxTimeExpired:function(){this.onFinish();this.view.timeField.set_text("TIME IS OVER");this.view.timeField.setTextFormat(this.view.timeTextFormat);this.view.timeField.set_visible(!0)},onFinish:function(){this.view.timeField.set_visible(!1);if(this.quizManager.quiz.hasExamQuestions()){var a=
this.quizManager.quiz.getRatio(),b=this.quizManager.get_settingsNode().get_passMark();a<b&&sa.submitQuizFail();this.quizManager.get_settingsNode().get_showResults()?(100==a?(this.setIssuesText(this.quizManager.get_settingsNode().get_issuesLevel1()),this.view.ratioTextFormat.color=6205229):a>=b?(this.setIssuesText(this.quizManager.get_settingsNode().get_issuesLevel2()),this.view.ratioTextFormat.color=6205229):a<.5*b?(this.setIssuesText(this.quizManager.get_settingsNode().get_issuesLevel4()),this.view.ratioTextFormat.color=
16730920):(this.setIssuesText(this.quizManager.get_settingsNode().get_issuesLevel3()),this.view.ratioTextFormat.color=16225312),this.view.ratioField.set_text(this._ratioText.toUpperCase()+" "+a+"%"),this.view.ratioField.setTextFormat(this.view.ratioTextFormat),this.view.ratioField.set_visible(!0),a<b?(this._retake.set_visible(!0),this._continue.set_visible(!1)):(this.view.ratioTextFormat.color=6205229,this.view.ratioField.setTextFormat(this.view.ratioTextFormat),this._retake.set_visible(!1),this._continue.set_visible(!0),
this.quizManager.get_settingsNode().showCertificate&&(this._printSert.set_visible(!0),this._printSert.addEventListener(Pb.isMobile()?"mouseDown":"click",k(this,this.printSertificate)),this._continue.set_x(370)))):(this.view.ratioField.set_visible(!1),this.setIssuesText(this.quizManager.get_settingsNode().issuesLevel5),this._continue.set_visible(!0));this.view.set_visible(!0);sa.sendScore(a)}else this.quizManager.get_settingsNode().get_showResults()&&"skillscan"==this.quizManager.quiz.get_type()?this.setIssuesText("You produced a score of: "+
this.quizManager.quiz.getSkillScanScore()+"%"):this.setIssuesText(this.quizManager.get_settingsNode().retakeTest),this.view.ratioField.set_visible(!1),this._retake.set_visible(!1),this._continue.set_visible(!0),this.view.set_visible(!0);this.centerVertically()},setIssuesText:function(a){this.view.issueField.set_text(a);a=this.view.issueField.get_width();a=800>a?a:1.5/Math.ceil(a/800)*a;this.view.issueField.set_wordWrap(!0);this.view.issueField.set_width(a);this.view.issueField.set_x(-.5*a);this.view.issueField.set_autoSize(0);
this.view.issueField.set_visible(!0)},centerVertically:function(){var a=39*this.view.issueField.get_numLines(),b=this.view.ratioField.get_visible()?36:0,c=this._printSert.get_visible()?80:0;c=-.5*(a+b+18+66+c);this.view.timeField.set_y(c-this.view.timeField.get_height()-20);this.view.issueField.set_y(c);this.view.ratioField.set_y(c+a+10);this._retake.set_y(c+a+b+18+33);this._continue.set_y(this._retake.get_y());this._printSert.set_y(this._retake.get_y()+66+14)},printSertificate:function(a){a=new Jo;
var b=H.xmlData.scorm.course_name;a.course_txt.set_text(b);b="You have participated in the "+b+" \ne-learning programme and achieved a score of "+this.quizManager.quiz.getRatio()+"%";a.conclusion_txt.set_text(b);a.set_scaleX(a.set_scaleY(.95))},buildView:function(){this._retake=Jc.drawTextButton("R E T A K E");this._retake.set_name("retake");this._retake.set_x(0);this.view.addChild(this._retake);this._continue=Jc.drawTextButton("C O N T I N U E");this._continue.set_name("yes");this._continue.set_x(0);
this.view.addChild(this._continue);this._printSert=Jc.drawTextButton("PRINT SERTIFICATE");this._printSert.set_name("printSert");this._printSert.set_x(0);this.view.addChild(this._printSert)},__class__:Xf});var Ei=function(){};g["room.mediators.quiz.QuizometerMediator"]=Ei;Ei.__name__="room.mediators.quiz.QuizometerMediator";Ei.__super__=Da;Ei.prototype=r(Da.prototype,{view:null,setQuizProgressSignal:null,initialize:function(){this.setQuizProgressSignal.add(k(this,this.onSetQuizProgress))},destroy:function(){this.setQuizProgressSignal.remove(k(this,
this.onSetQuizProgress))},onSetQuizProgress:function(a,b){va.tween(this.view.bar,.5,{scaleX:a/b}).delay(.5)},__class__:Ei});var wh=function(){};g["room.mediators.quiz.answers.DragDropAnswerMediator"]=wh;wh.__name__="room.mediators.quiz.answers.DragDropAnswerMediator";wh.__super__=Da;wh.prototype=r(Da.prototype,{view:null,quizManager:null,initialize:function(){this.view.answer.question.get_signals().get_submit().add(k(this,this.onSubmitQuestion))},destroy:function(){this.view.answer.question.get_signals().get_submit().remove(k(this,
this.onSubmitQuestion))},onSubmitQuestion:function(){this.view.mouseEnabled=this.view.mouseChildren=!1;this.quizManager.get_settingsNode().get_showAnswers()&&(this.view.answer.get_correct()?this.view.set_bgColor(65280):this.view.set_bgColor(16711680))},__class__:wh});var yh=function(){};g["room.mediators.quiz.answers.FillTheBlankMediator"]=yh;yh.__name__="room.mediators.quiz.answers.FillTheBlankMediator";yh.__super__=Da;yh.prototype=r(Da.prototype,{view:null,quizManager:null,initialize:function(){this.view.inputField.addEventListener("textInput",
k(this,this.fillBlankChangeHandler));this.view.stage.addEventListener("keyDown",k(this,this.onKeyDown));this.view.model.get_signals().get_submit().add(k(this,this.onSubmit))},destroy:function(){this.view.inputField.removeEventListener("textInput",k(this,this.fillBlankChangeHandler));this.view.stage.removeEventListener("keyDown",k(this,this.onKeyDown));this.view.model.get_signals().get_submit().remove(k(this,this.onSubmit))},onSubmit:function(){this.quizManager.get_settingsNode().get_showAnswers()&&
this.view.showAnswers()},fillBlankChangeHandler:function(a){this.view.model.set_textAnswer(this.view.inputField.get_text());this.view.model.set_completed(!Gb.isEmpty(this.view.model.textAnswer))},onKeyDown:function(a){this.view.inputField.hasFocus()&&13==a.keyCode&&(a.preventDefault(),this.view.model.set_submitted(!0),this.view.stage.set_focus(null))},__class__:yh});var si=function(){};g["room.mediators.quiz.answers.MatchingDragDropMediator"]=si;si.__name__="room.mediators.quiz.answers.MatchingDragDropMediator";
si.__super__=Da;si.prototype=r(Da.prototype,{view:null,_currentDrag:null,_originalPos:null,initialize:function(){for(var a=0,b=this.view.model.answers.length;a<b;){var c=a++;this.view.model.answers[c].get_signals().get_match().add(k(this,this.onMatch));this.view.model.answers[c].get_signals().get_unmatch().add(k(this,this.onUnmatch))}a=0;for(b=this.view.left.length;a<b;)c=a++,this.view.left[c].addEventListener("mouseDown",k(this,this.onOptionDown)),this.view.right[c].addEventListener("mouseDown",
k(this,this.onOptionDown))},destroy:function(){for(var a=0,b=this.view.model.answers.length;a<b;){var c=a++;this.view.model.answers[c].get_signals().get_match().remove(k(this,this.onMatch));this.view.model.answers[c].get_signals().get_unmatch().remove(k(this,this.onUnmatch))}a=0;for(b=this.view.right.length;a<b;)c=a++,this.view.left[c].removeEventListener("mouseDown",k(this,this.onOptionDown)),this.view.right[c].removeEventListener("mouseDown",k(this,this.onOptionDown))},onMatch:function(a,b){for(var c=
-1,d=-1,e=0,f=this.view.left.length;e<f;){var h=e++;if(a==this.view.left[h].answer){c=h;break}}e=0;for(f=this.view.right.length;e<f;)if(h=e++,b==this.view.right[h].answer){d=h;break}-1<c&&-1<d&&(a==this._currentDrag.answer?(a=this.view.left[c],this.view.left[c]=this.view.left[d],this.view.left[d]=a):(a=this.view.right[d],this.view.right[d]=this.view.right[c],this.view.right[c]=a),this.view.drawAnswers())},onUnmatch:function(a,b){},onOptionDown:function(a){this._currentDrag=a.currentTarget;this._originalPos=
new ab(this._currentDrag.get_x(),this._currentDrag.get_y());this.view.addChild(this._currentDrag);a=this.view.globalToLocal(this.view.parent.localToGlobal(new ab(0,0)));a=new ha(a.x-120,a.y-20,this.view.parent.get_width()-30,this.view.parent.get_height()+40);this._currentDrag.startDrag(!1,a);this.view.stage.addEventListener("mouseUp",k(this,this.onMouseUp))},onMouseUp:function(a){this.view.stage.removeEventListener("mouseUp",k(this,this.onMouseUp));this._currentDrag.stopDrag();a=-1<this.view.left.indexOf(this._currentDrag);
if(this._currentDrag.dropTarget instanceof vh){var b=N.__cast(this._currentDrag.dropTarget,vh),c=-1<this.view.left.indexOf(b);if(a!=c){a?this._currentDrag.answer.set_matchRight(b.answer):b.answer.set_matchRight(this._currentDrag.answer);return}}this._currentDrag.set_x(this._originalPos.x);this._currentDrag.set_y(this._originalPos.y)},__class__:si});var ti=function(){};g["room.mediators.quiz.answers.MultipleChoiceMediator"]=ti;ti.__name__="room.mediators.quiz.answers.MultipleChoiceMediator";ti.__super__=
Da;ti.prototype=r(Da.prototype,{view:null,initialize:function(){this.view.addCheckBoxes()},destroy:function(){},__class__:ti});var yi=function(){};g["room.mediators.quiz.answers.SequenceDragDropMediator"]=yi;yi.__name__="room.mediators.quiz.answers.SequenceDragDropMediator";yi.__super__=Da;yi.prototype=r(Da.prototype,{view:null,initialize:function(){for(var a=0,b=this.view.answers.length;a<b;){var c=a++;this.view.answers[c].answer.set_index(c);this.view.answers[c].addEventListener("mouseDown",k(this,
this.onOptionDown))}this.view.drawAnswers()},destroy:function(){for(var a=0,b=this.view.answers.length;a<b;){var c=a++;this.view.answers[c].removeEventListener("mouseDown",k(this,this.onOptionDown))}},onOptionDown:function(a){this.view.startDragging(a.currentTarget);this.view.stage.addEventListener("mouseUp",k(this,this.onMouseUp));this.view.stage.addEventListener("mouseMove",k(this,this.onMouseMove))},onMouseUp:function(a){this.view.stage.removeEventListener("mouseUp",k(this,this.onMouseUp));this.view.stage.removeEventListener("mouseMove",
k(this,this.onMouseMove));this.view.stopDragging();a=0;for(var b=this.view.answers.length;a<b;){var c=a++;this.view.answers[c].answer.set_index(c)}},onMouseMove:function(a){this.view.handleDragging()},__class__:yi});var ui=function(){};g["room.mediators.quiz.answers.SurveyMediator"]=ui;ui.__name__="room.mediators.quiz.answers.SurveyMediator";ui.__super__=Da;ui.prototype=r(Da.prototype,{view:null,initialize:function(){this.view.addChoiceSelector()},destroy:function(){this.view.removeChoiceSelector()},
__class__:ui});var Dh=function(){};g["room.mediators.quiz.answers.WordBankMediator"]=Dh;Dh.__name__="room.mediators.quiz.answers.WordBankMediator";Dh.__super__=Da;Dh.prototype=r(Da.prototype,{view:null,quizManager:null,_currentAnswer:null,_originalPos:null,initialize:function(){this.view.model.get_signals().get_setCompleted().add(k(this,this.onComplete));for(var a=0,b=this.view.answers.length;a<b;){var c=a++;this.view.model.answers[c].get_signals().get_select().add(k(this,this.onSelectAnswer));this.view.answers[c].addEventListener("mouseDown",
k(this,this.onAnswerDown))}},destroy:function(){this.view.model.get_signals().get_setCompleted().remove(k(this,this.onComplete));for(var a=0,b=this.view.answers.length;a<b;){var c=a++;this.view.model.answers[c].get_signals().get_select().remove(k(this,this.onSelectAnswer));this.view.answers[c].removeEventListener("mouseDown",k(this,this.onAnswerDown))}},onAnswerDown:function(a){this._currentAnswer=a.currentTarget;this._originalPos=new ab(this._currentAnswer.get_x(),this._currentAnswer.get_y());this._currentAnswer.startDrag();
this.view.stage.addEventListener("mouseUp",k(this,this.onMouseUp))},onMouseUp:function(a){this.view.stage.removeEventListener("mouseUp",k(this,this.onMouseUp));this._currentAnswer.stopDrag();this.view.get_mouseX()>=this.view.dropArea.get_x()&&this.view.get_mouseX()<=this.view.dropArea.get_x()+this.view.dropArea.get_width()&&this.view.get_mouseY()>=this.view.dropArea.get_y()&&this.view.get_mouseY()<=this.view.dropArea.get_y()+this.view.dropArea.get_height()?(a=this.view.answers.indexOf(this._currentAnswer),
-1<a&&this.view.model.answers[a].set_selected(!0)):(this._currentAnswer.set_x(this._originalPos.x),this._currentAnswer.set_y(this._originalPos.y))},onSelectAnswer:function(){var a=0;this.view.dropArea.set_text("");for(var b=0,c=this.view.answers.length;b<c;){var d=b++;this.view.model.answers[d].selected?(this.view.dropArea.set_text(this.view.model.answers[d].data.text),this.view.answers[d].set_visible(!1)):(this.view.answers[d].set_visible(!0),this.view.answers[d].set_x(0),this.view.answers[d].set_y((a+
1)*Ai.SIZE),++a)}},onComplete:function(){this.quizManager.get_settingsNode().get_showAnswers()?this.view.showCorrect():this.quizManager.quiz.nextQuestion()},__class__:Dh});var uf=function(){this._bg=null};g["room.mediators.screen_navigator.ContentWrapperMediator"]=uf;uf.__name__="room.mediators.screen_navigator.ContentWrapperMediator";uf.__super__=Da;uf.prototype=r(Da.prototype,{_view:null,_contentField:null,_value:null,_bg:null,_dropShadow:null,initialize:function(){this._view=J.field(this,"view");
this._contentField=J.field(this._view,"contentField");this._dropShadow=new fj;this._dropShadow.set_distance(0);this._dropShadow.set_angle(45);this._dropShadow.set_color(6710886);this._dropShadow.set_alpha(1);this._dropShadow.set_blurX(4);this._dropShadow.set_blurY(4);this._dropShadow.set_strength(1);this._dropShadow.set_quality(15);this._dropShadow.set_inner(!1);this._dropShadow.set_knockout(!1);this._dropShadow.set_hideObject(!1);this._contentField.set_multiline(this._contentField.set_wordWrap(!0));
this._contentField.set_autoSize(1)},setBackground:function(a){this._bg=Oe.drawBackground(this._view,a,this._contentField);null!=this._bg&&this._view.swapChildren(this._contentField,this._bg)},get_width:function(){return this._contentField.get_width()},set_width:function(a){this._contentField.get_width()!=a&&this._contentField.set_width(a);return a},get_height:function(){return this._contentField.get_height()},set_height:function(a){this._contentField.get_height()!=a&&this._contentField.set_height(a);
return a},get_text:function(){return this._contentField.get_text()},set_text:function(a){return a},get_htmlText:function(){return this._contentField.get_htmlText()},set_htmlText:function(a){this._value!=a&&(this._value=a,this._contentField.set_htmlText(a));return a},__class__:uf,__properties__:{set_htmlText:"set_htmlText",get_htmlText:"get_htmlText",set_text:"set_text",get_text:"get_text",set_height:"set_height",get_height:"get_height",set_width:"set_width",get_width:"get_width"}});var ok=function(a){ya.call(this,
a)};g["room.signals.UpdateContentMaskSignal"]=ok;ok.__name__="room.signals.UpdateContentMaskSignal";ok.__super__=ya;ok.prototype=r(ya.prototype,{__class__:ok});var nk=function(a){ya.call(this,a)};g["room.signals.UnsetContentSignal"]=nk;nk.__name__="room.signals.UnsetContentSignal";nk.__super__=ya;nk.prototype=r(ya.prototype,{__class__:nk});var rf=function(){this._bg=null};g["room.mediators.screen_navigator.ContentFieldMediator"]=rf;rf.__name__="room.mediators.screen_navigator.ContentFieldMediator";
rf.__super__=uf;rf.prototype=r(uf.prototype,{view:null,state:null,playNarratorSignal:null,updateContentMaskSignal:null,setTitleAndContentSignal:null,unsetContentSignal:null,initialize:function(){uf.prototype.initialize.call(this);this.view.mouseEnabled=!0;H.insideJackDaw?this.initializeJackdaw():H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0);this.view.set_mask(null);this.setTitleAndContentSignal.add(k(this,this.onSetTitleAndContent));this.unsetContentSignal.add(k(this,this.onUnsetContent))},
destroy:function(){uf.prototype.destroy.call(this);this.setTitleAndContentSignal.remove(k(this,this.onSetTitleAndContent));this.unsetContentSignal.remove(k(this,this.onUnsetContent));null!=this.state.get_screenNode()&&null!=this.state.get_screenNode().contentNode&&this.state.get_screenNode().contentNode.get_signals().get_change().remove(k(this,this.onChangeContentNode));Ya.options.onUpdate.remove(k(this,this.onUpdateJackdawOptions));Db.remove(this.view)},initializeJackdaw:function(){this.view.mouseChildren=
Ya.options.get_previewMode();Db.set(this.view,Ya.wrapTagName("Content"));Ya.options.onUpdate.add(k(this,this.onUpdateJackdawOptions))},onSetTitleAndContent:function(){var a=this;this.state.get_screenNode().contentNode.get_signals().get_change().add(k(this,this.onChangeContentNode));this.updateFromNode(!1);var b=!H.insideJackDaw||Ya.options.get_previewMode()?1E3*this.state.get_screenNode().contentNode.get_delay():0;this.view.set_visible(!1);Qb.delay(function(){a._contentField.get_height()<a.state.get_screenNode().contentNode.height?
(a.updateHeight(),a.setBackground(a.state.get_screenNode().contentNode),Qb.delay(function(){a.updateContentMaskSignal.dispatch();a.playNarratorSignal.dispatch()},0)):(a.updateContentMaskSignal.dispatch(),a.playNarratorSignal.dispatch());a.view.set_visible(!0);H.insideJackDaw&&a.updateJackdaw()},b)},updateJackdaw:function(){var a=Db.get(this.view);a.setField("jackdaw_node_width",this.state.get_screenNode().contentNode.width);0<this.state.get_screenNode().contentNode.height&&a.setField("jackdaw_node_height",
this.state.get_screenNode().contentNode.height);a.setField("jackdaw_node_has_background",this.state.get_screenNode().contentNode.hasBackground)},onChangeContentNode:function(a){this.updateFromNode(!0);this.updateContentMaskSignal.dispatch()},updateFromNode:function(a){this.set_width(this.state.get_screenNode().contentNode.width);this.view.set_alpha(this.state.get_screenNode().contentNode.alpha);this._contentField.set_autoSize(1);this.set_htmlText(this.state.get_screenNode().contentNode.value);a&&
this._contentField.get_height()<this.state.get_screenNode().contentNode.height&&this.updateHeight();this.setBackground(this.state.get_screenNode().contentNode);a&&H.insideJackDaw&&this.updateJackdaw()},updateHeight:function(){this._contentField.set_autoSize(2);this._contentField.set_height(Math.max(this._contentField.get_height(),this.state.get_screenNode().contentNode.height))},onUnsetContent:function(){this.set_htmlText("")},onUpdateJackdawOptions:function(){this.view.mouseChildren=Ya.options.get_previewMode()},
__class__:rf});var sj=function(a){ya.call(this,a)};g["room.signals.ShowTitleAndContentSignal"]=sj;sj.__name__="room.signals.ShowTitleAndContentSignal";sj.__super__=ya;sj.prototype=r(ya.prototype,{__class__:sj});var nj=function(a){ya.call(this,a)};g["room.signals.ContentMaskUpdatedSignal"]=nj;nj.__name__="room.signals.ContentMaskUpdatedSignal";nj.__super__=ya;nj.prototype=r(ya.prototype,{__class__:nj});var md=function(){this._playAutoNarrator=!1};g["room.mediators.screen_navigator.ContentHolderMediator"]=
md;md.__name__="room.mediators.screen_navigator.ContentHolderMediator";md.__super__=Da;md.prototype=r(Da.prototype,{view:null,state:null,hideTextSignal:null,hideContentSignal:null,setTitleAndContentSignal:null,revealContentSignal:null,hideTitleContentImagesSignal:null,showTitleAndContentSignal:null,unsetContentSignal:null,xmlLoadedSignal:null,autoNarratorSignal:null,autoNarratorReadySignal:null,playNarratorSignal:null,narratorPlayer:null,updateContentMaskSignal:null,contentMaskUpdatedSignal:null,
_content:null,_autoNarratorVoice:null,_autoNarratorPath:null,_playAutoNarrator:null,_prevContent:null,initialize:function(){var a=this;this.view.set_visible(!1);this.hideTextSignal.add(k(this,this.onHideText));this.hideContentSignal.add(k(this,this.onHideText));this.setTitleAndContentSignal.add(k(this,this.updateAll));this.revealContentSignal.add(k(this,this.onRevealContent));this.hideTitleContentImagesSignal.add(k(this,this.onHideTitleContentImages));this.showTitleAndContentSignal.add(k(this,this.onShowTitleAndContent));
this.unsetContentSignal.add(k(this,this.onUnsetContent));this.state.get_signals().get_changeHideTitleAndContent().add(k(this,this.onChangeHideTitleAndContent));this.narratorPlayer.initialize();this.autoNarratorReadySignal.add(k(this,this.onAutoNarratorReady));this.playNarratorSignal.add(k(this,this.onPlayNarrator));null==H.xmlData?this.xmlLoadedSignal.add(function(){H.xmlData.settings.get_signals().get_change().add(k(a,a.onChangeSettings))}).repeat(0):H.xmlData.settings.get_signals().get_change().add(k(this,
this.onChangeSettings));Ya.options.onUpdate.add(k(this,this.onUpdateJackdawOptions))},destroy:function(){this.hideTextSignal.remove(k(this,this.onHideText));this.hideContentSignal.remove(k(this,this.onHideText));this.setTitleAndContentSignal.remove(k(this,this.updateAll));this.revealContentSignal.remove(k(this,this.onRevealContent));this.hideTitleContentImagesSignal.remove(k(this,this.onHideTitleContentImages));this.showTitleAndContentSignal.remove(k(this,this.onShowTitleAndContent));this.unsetContentSignal.remove(k(this,
this.onUnsetContent));this.state.get_signals().get_changeHideTitleAndContent().remove(k(this,this.onChangeHideTitleAndContent));this.updateContentMaskSignal.remove(k(this,this.onUpdateContentMask));Ya.options.onUpdate.remove(k(this,this.onUpdateJackdawOptions));null!=H.xmlData&&null!=H.xmlData.settings&&H.xmlData.settings.get_signals().get_change().remove(k(this,this.onChangeSettings));this.autoNarratorReadySignal.remove(k(this,this.onAutoNarratorReady));this.playNarratorSignal.remove(k(this,this.onPlayNarrator));
this.narratorPlayer.destroy()},onHideText:function(){H.insideJackDaw&&null!=this.state.get_screenNode()&&this.state.get_screenNode().get_signals().get_change().remove(k(this,this.onChangeScreenNode));this.view.set_visible(!1);for(var a=new Hg("renderCanvas"),b=0,c=this.view.get_numChildren();b<c;){var d=b++;this.view.getChildAt(d).dispatchEvent(a)}},onRevealContent:function(){this.view.set_visible(!this.state.hideTitleAndContent)},onChangeScreenNode:function(a){a instanceof Ae?12!=this.state.get_screenNode().template&&
14!=this.state.get_screenNode().template&&this.updateAll():a==this.state.get_screenNode().contentNode&&this._prevContent!=this.state.get_screenNode().contentNode.value&&(this._prevContent=this.state.get_screenNode().contentNode.value,this.reloadAutoNarrator())},updateAll:function(){var a=this;this.removeAdditional();this.view.dispatchEvent(new W("enterFrame"));null==this._content?(this._content=new km(this.state.get_screenNode().contentNode),this.updateContentMaskSignal.add(k(this,this.onUpdateContentMask))):
this._content.set_contentNode(this.state.get_screenNode().contentNode);this.view.addChild(this._content);this.createAdditional();H.insideJackDaw&&this.state.get_screenNode().get_signals().get_change().add(k(this,this.onChangeScreenNode));this.state.get_screenNode().templateNode.get_isMultiButton()||this.view.set_visible(!this.state.hideTitleAndContent);this._playAutoNarrator=!1;this.reloadAutoNarrator();var b=!H.insideJackDaw||Ya.options.get_previewMode()?1E3*this.state.get_screenNode().contentNode.get_delay():
0;Qb.delay(function(){a.updateContentMaskSignal.dispatch();a.playNarratorSignal.dispatch()},b)},removeAdditional:function(){for(;1<this.view.get_numChildren();)this.view.removeChildAt(1)},createAdditional:function(){if(12!=this.state.get_screenNode().template&&14!=this.state.get_screenNode().template)for(var a,b=0,c=this.state.get_screenNode().additionalContent;b<c.length;)a=c[b],++b,a=new km(a),this.view.addChild(a)},onChangeHideTitleAndContent:function(){this.view.set_visible(!this.state.hideTitleAndContent)},
onHideTitleContentImages:function(){this.view.set_visible(!1)},onShowTitleAndContent:function(){this.view.set_visible(!0)},onUnsetContent:function(){this.view.set_visible(!1)},onUpdateContentMask:function(){this.contentMaskUpdatedSignal.dispatch()},onPlayNarrator:function(){this._playAutoNarrator=!0},reloadAutoNarrator:function(){this.narratorPlayer.pause();this.narratorPlayer.unload();this.state.get_screenNode().contentNode.validAutoNarrator()&&(this._autoNarratorVoice=H.xmlData.settings.get_voice(),
this.autoNarratorSignal.dispatch(this.state.get_screenNode().contentNode))},onAutoNarratorReady:function(a){Gb.isEmpty(a)?this._autoNarratorPath=null:(this._autoNarratorPath=a,this.narratorPlayer.load(this._autoNarratorPath),this._playAutoNarrator&&this.narratorPlayer.resume())},onChangeSettings:function(a){H.xmlData.settings.get_voice()!=this._autoNarratorVoice&&this.reloadAutoNarrator()},onUpdateJackdawOptions:function(){Ya.options.get_previewMode()&&this.narratorPlayer.resume()},__class__:md});
var qf=function(){};g["room.mediators.screen_navigator.ContentMaskMediator"]=qf;qf.__name__="room.mediators.screen_navigator.ContentMaskMediator";qf.__super__=Da;qf.prototype=r(Da.prototype,{view:null,hideTextSignal:null,hideContentSignal:null,updateContentMaskSignal:null,contentMaskUpdatedSignal:null,state:null,initialize:function(){this.hideTextSignal.add(k(this,this.onHideText));this.hideContentSignal.add(k(this,this.onHideText));this.updateContentMaskSignal.add(k(this,this.onUpdateContentMask))},
destroy:function(){this.hideTextSignal.remove(k(this,this.onHideText));this.hideContentSignal.remove(k(this,this.onHideText));this.updateContentMaskSignal.remove(k(this,this.onUpdateContentMask))},onHideText:function(){this.view.set_visible(!1)},onUpdateContentMask:function(){var a=this.state.get_screenNode().contentNode.width,b=this.state.get_screenNode().contentNode.height;this.view.set_x(-(this.state.get_screenNode().contentNode.padding+this.state.get_screenNode().contentNode.borderSize/2));this.view.set_y(-(this.state.get_screenNode().contentNode.padding+
this.state.get_screenNode().contentNode.borderSize/2));a+=2*this.state.get_screenNode().contentNode.padding+this.state.get_screenNode().contentNode.borderSize;b+=2*this.state.get_screenNode().contentNode.padding+this.state.get_screenNode().contentNode.borderSize;this.view.get_graphics().clear();this.view.get_graphics().beginFill(0);this.view.get_graphics().drawRect(0,0,a,b);this.view.get_graphics().endFill();this.contentMaskUpdatedSignal.dispatch()},__class__:qf});var pf=function(){};g["room.mediators.screen_navigator.ContentMediator"]=
pf;pf.__name__="room.mediators.screen_navigator.ContentMediator";pf.__super__=Da;pf.prototype=r(Da.prototype,{view:null,hideTextSignal:null,hideContentSignal:null,contentMaskUpdatedSignal:null,revealContentSignal:null,state:null,contentMask:null,scrollBarController:null,initialize:function(){this.contentMask=new Ul;this.view.addChild(this.contentMask);this.hideTextSignal.add(k(this,this.onHideText));this.hideContentSignal.add(k(this,this.onHideText));this.contentMaskUpdatedSignal.add(k(this,this.onContentMaskUpdated));
this.revealContentSignal.add(k(this,this.onRevealContent));H.insideJackDaw?this.initializeJackdaw():H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0)},initializeJackdaw:function(){Ya.options.onUpdate.add(k(this,this.updateJackdawLabel))},destroy:function(){this.hideTextSignal.remove(k(this,this.onHideText));this.hideContentSignal.remove(k(this,this.onHideText));this.contentMaskUpdatedSignal.remove(k(this,this.onContentMaskUpdated));this.revealContentSignal.remove(k(this,this.onRevealContent))},
onHideText:function(){this.view.contentField.set_mask(null)},onContentMaskUpdated:function(){this.view.set_x(this.state.get_screenNode().contentNode.x);this.view.set_y(this.state.get_screenNode().contentNode.y);H.insideJackDaw&&this.updateJackdawLabel();null!=this.scrollBarController&&this.destroyScrollBar();0<this.view.contentField.contentField.get_text().length&&this.view.contentField.get_height()>1.1*this.contentMask.get_height()&&this.createScrollBar();this.state.get_screenNode().templateNode.get_isMultiButton()||
this.setAccessibilityProps()},updateJackdawLabel:function(){if(Ya.options.get_previewMode())Fb.clearLabel(this.view);else{var a=this.state.get_screenNode().contentNode.width+2*this.state.get_screenNode().contentNode.padding,b=this.state.get_screenNode().contentNode.height+2*this.state.get_screenNode().contentNode.padding;a=new ha(-this.state.get_screenNode().contentNode.padding,-this.state.get_screenNode().contentNode.padding,a,b);Fb.drawLabel(this.view,"Content",Fb.scaleBounds(a,this.view))}},setAccessibilityProps:function(){},
createScrollBar:function(){this.contentMask.set_visible(!0);this.view.contentField.set_mask(this.contentMask);this.view.scrollBar.track.set_height(this.contentMask.get_height()-2*this.view.scrollBar.track.get_y());this.view.scrollBar.down.set_y(this.view.scrollBar.track.get_y()+this.view.scrollBar.track.get_height()+(this.view.scrollBar.track.get_y()-this.view.scrollBar.up.get_height()));this.view.scrollBar.thumb.set_visible(this.view.scrollBar.track.get_height()>this.view.scrollBar.thumb.get_height());
this.view.scrollBar.set_x(this.contentMask.get_x()+this.contentMask.get_width()+5);this.view.scrollBar.set_y(this.contentMask.get_y()+.5*(this.contentMask.get_height()-this.view.scrollBar.get_height()));this.view.scrollBar.set_visible(!0);this.scrollBarController=new rk(this.view.contentField,this.contentMask,"vertical",this.view.scrollBar.thumb,this.view.scrollBar.track);this.scrollBarController.set_targetBounds(new ha(this.view.contentField.get_x(),this.view.contentField.get_y(),this.view.contentField.get_width(),
this.view.contentField.get_height()));this.scrollBarController.set_targetDragBounds(new ha(this.view.contentField.get_x(),this.view.contentField.get_y(),this.contentMask.get_width(),this.contentMask.get_height()));this.scrollBarController.set_upArrow(this.view.scrollBar.up);this.scrollBarController.set_downArrow(this.view.scrollBar.down);this.scrollBarController.initialize()},destroyScrollBar:function(){this.contentMask.set_visible(!1);this.view.scrollBar.set_visible(!1);this.view.contentField.set_mask(null);
this.scrollBarController.destroy();this.scrollBarController=null},onRevealContent:function(){this.setAccessibilityProps()},__class__:pf});var Bg=function(){this.iframeNodes=[]};g["room.mediators.screen_navigator.EmbedHolderMediator"]=Bg;Bg.__name__="room.mediators.screen_navigator.EmbedHolderMediator";Bg.__super__=Da;Bg.prototype=r(Da.prototype,{view:null,state:null,hideTextSignal:null,setTitleAndContentSignal:null,iframeNodes:null,initialize:function(){this.hideTextSignal.add(k(this,this.onHideText));
this.setTitleAndContentSignal.add(k(this,this.onSetTitleAndContent))},destroy:function(){this.hideTextSignal.remove(k(this,this.onHideText));this.setTitleAndContentSignal.remove(k(this,this.onSetTitleAndContent))},onHideText:function(){this.unloadEmbeds()},onSetTitleAndContent:function(){this.addEmbeds()},addEmbeds:function(){this.loadEmbeds()},unloadEmbeds:function(){null!=this.state.get_screenNode()&&this.state.get_screenNode().get_signals().get_change().remove(k(this,this.onChange));if(null!=this.iframeNodes&&
0<this.iframeNodes.length)for(var a=0,b=this.iframeNodes;a<b.length;){var c=b[a];++a;this.unloadEmbed(c)}this.iframeNodes=[];this.view.dispatchEvent(new W("enterFrame"))},unloadEmbed:function(a){a=this.findEmbed(a);null!=a&&this.view.removeChild(a)},loadEmbeds:function(){for(var a=0,b=this.state.get_screenNode().iframeNodes;a<b.length;){var c=b[a];++a;if(null!=c.src&&""!=c.src&&-1==this.iframeNodes.indexOf(c)){c.get_signals().get_destroy().add(k(this,this.onDestroyIframeNode));var d=new co(c);this.view.addChild(d);
this.iframeNodes.push(c)}}this.state.get_screenNode().get_signals().get_change().add(k(this,this.onChange))},onDestroyIframeNode:function(a){a=N.__cast(a,Gk);this.unloadEmbed(a);G.remove(this.iframeNodes,a)},findEmbed:function(a){for(var b=0,c=this.view.get_numChildren();b<c;){var d=b++;d=this.view.getChildAt(d);if(d instanceof co&&d.iframeNode==a)return d}return null},onChange:function(a){a instanceof Ae&&this.addEmbeds()},__class__:Bg});var Vf=function(){this.imageNodes=[]};g["room.mediators.screen_navigator.ImageHolderMediator"]=
Vf;Vf.__name__="room.mediators.screen_navigator.ImageHolderMediator";Vf.__super__=Da;Vf.prototype=r(Da.prototype,{view:null,state:null,hideTextSignal:null,setTitleAndContentSignal:null,syncSignal:null,imageNodes:null,imageLoadIndex:null,initialize:function(){this.hideTextSignal.add(k(this,this.onHideText));this.setTitleAndContentSignal.add(k(this,this.onSetTitleAndContent));this.syncSignal.add(k(this,this.onSync))},destroy:function(){this.hideTextSignal.remove(k(this,this.onHideText));this.setTitleAndContentSignal.remove(k(this,
this.onSetTitleAndContent));this.syncSignal.remove(k(this,this.onSync))},onHideText:function(){this.unloadImages()},onSetTitleAndContent:function(){this.addImages()},addImages:function(){this.state.get_screenNode().templateNode.get_isMultiImage()&&this.loadImages()},unloadImages:function(){null!=this.state.get_screenNode()&&this.state.get_screenNode().get_signals().get_change().remove(k(this,this.onChange));if(null!=this.imageNodes&&0<this.imageNodes.length)for(var a=0,b=this.imageNodes;a<b.length;){var c=
b[a];++a;this.unloadImage(c)}this.imageNodes=[];this.view.dispatchEvent(new W("enterFrame"))},unloadImage:function(a){a=this.findImage(a);null!=a&&this.view.removeChild(a)},loadImages:function(){for(var a=0,b=this.state.get_screenNode().imageNodes;a<b.length;){var c=b[a];++a;if(null!=c.get_path()&&""!=c.get_path()&&-1==this.imageNodes.indexOf(c)){c.get_signals().get_destroy().add(k(this,this.onDestroyImageNode));var d=new uj(c);this.view.addChild(d);this.imageNodes.push(c)}}this.state.get_screenNode().get_signals().get_change().add(k(this,
this.onChange))},onDestroyImageNode:function(a){a=N.__cast(a,Mg);this.unloadImage(a);G.remove(this.imageNodes,a)},findImage:function(a){for(var b=0,c=this.view.get_numChildren();b<c;){var d=b++;d=this.view.getChildAt(d);if(d instanceof uj&&d.imageNode==a)return d}return null},onSync:function(a){for(var b=0,c=this.view.get_numChildren();b<c;){var d=b++;d=this.view.getChildAt(d);if(d instanceof uj&&"Flash"==d.imageNode.imageName)try{N.__cast(d.loader.content,Q).gotoAndStop(a)}catch(e){wa.lastError=
e,d=u.caught(e).unwrap(),Ub.trace(d.toString(),{fileName:"Source/room/mediators/screen_navigator/ImageHolderMediator.hx",lineNumber:131,className:"room.mediators.screen_navigator.ImageHolderMediator",methodName:"onSync"})}}},onChange:function(a){a instanceof Ae&&this.addImages()},__class__:Vf});var Of=function(){pb.call(this)};g["room.signals.CreateInputSignal"]=Of;Of.__name__="room.signals.CreateInputSignal";Of.__super__=pb;Of.prototype=r(pb.prototype,{__class__:Of});var Cg=function(){this.screenQuizes=
[];this.inputNodeManagers=[]};g["room.mediators.screen_navigator.InputHolderMediator"]=Cg;Cg.__name__="room.mediators.screen_navigator.InputHolderMediator";Cg.__super__=Da;Cg.prototype=r(Da.prototype,{state:null,createInputSignal:null,hideTextSignal:null,quizManager:null,inputNodeManagers:null,screenQuizes:null,initialize:function(){this.createInputSignal.add(k(this,this.onCreateInput));this.hideTextSignal.add(k(this,this.onHideText));this.quizManager.quiz.get_signals().get_start().add(k(this,this.onStartQuiz))},
destroy:function(){this.createInputSignal.remove(k(this,this.onCreateInput));this.hideTextSignal.remove(k(this,this.onHideText));this.quizManager.quiz.get_signals().get_start().remove(k(this,this.onStartQuiz))},onCreateInput:function(a){var b=this;a.get_signals().get_destroy().add(function(a){b.onDestroyInputNode(a)});this.inputNodeManagers.push(new $a(a,this.quizManager));var c=a.get_control();"text"==a.get_type()?(this.viewComponent.addChild(c),$a.topInput==a&&(this.viewComponent.stage.focus=c)):
(null==c.parent&&this.viewComponent.addChild(c),$a.topInput==a&&(this.viewComponent.stage.focus=null))},onDestroyInputNode:function(a){var b=vb.find(this.inputNodeManagers,function(b){return b.inputNode==a});null!=b&&G.remove(this.inputNodeManagers,b);N.__cast(a.get_control(),ka).parent.removeChild(a.get_control())},onStartQuiz:function(){var a=this;if("inline"==this.quizManager.quiz.get_type()){var b=this.quizManager.getQuiz("inline");b.get_signals().get_destroy().add(function(b){a.onDestroyQuizNode(b)});
b=new fm(b);this.screenQuizes.push(b);this.viewComponent.addChild(b)}},onDestroyQuizNode:function(a){var b=vb.find(this.screenQuizes,function(b){return b.quizNode==a});null!=b&&this.removeQuiz(b)},removeQuiz:function(a){G.remove(this.screenQuizes,a);a.parent.removeChild(a)},onHideText:function(){for(var a=0,b=this.screenQuizes.slice();a<b.length;){var c=b[a];++a;this.removeQuiz(c)}},__class__:Cg});var Rf=function(a){ya.call(this,a)};g["room.signals.InitScreenSignal"]=Rf;Rf.__name__="room.signals.InitScreenSignal";
Rf.__super__=ya;Rf.prototype=r(ya.prototype,{__class__:Rf});var ve=function(){};g["room.mediators.screen_navigator.ScreenNavigatorMediator"]=ve;ve.__name__="room.mediators.screen_navigator.ScreenNavigatorMediator";ve.__super__=Da;ve.prototype=r(Da.prototype,{view:null,state:null,hideContentSignal:null,setTitleAndContentSignal:null,lessonCompleteSignal:null,initScreenSignal:null,backgroundLoadedSignal:null,closeRoomSignal:null,setScreenIndexSignal:null,delayTimer:null,currentScreen:null,initialize:function(){this.buildView();
this.view.stage.addEventListener("keyDown",k(this,this.keyDownHandler));this.hideContentSignal.add(k(this,this.onHideContent));this.backgroundLoadedSignal.add(k(this,this.onBackgroundLoaded));this.state.get_signals().get_changeTemplateStartIndex().add(k(this,this.onChangeTemplateStartIndex))},destroy:function(){this.view.stage.removeEventListener("keyDown",k(this,this.keyDownHandler));this.hideContentSignal.remove(k(this,this.onHideContent));this.backgroundLoadedSignal.remove(k(this,this.onBackgroundLoaded));
this.state.get_signals().get_changeTemplateStartIndex().remove(k(this,this.onChangeTemplateStartIndex))},buildView:function(){var a=new Ak;a.set_x(56);a.set_y(71);this.view.addChild(a);this.view.addChild(new Vl);this.view.addChild(new Yl);this.view.addChild(new im)},keyDownHandler:function(a){9!=a.keyCode||H.insideJackDaw?33==a.keyCode?this.setScreenIndexSignal.dispatch(new Nd(0,"")):88==a.keyCode&&a.ctrlKey&&!H.insideJackDaw?this.closeRoomSignal.dispatch():83==a.keyCode&&a.ctrlKey?(this.state.set_muteNarrator(!this.state.muteNarrator),
a.preventDefault()):80==a.keyCode&&a.ctrlKey&&!H.insideJackDaw?(a.preventDefault(),lc.available&&lc.call("printSlide")):46==a.keyCode&&a.ctrlKey&&a.shiftKey&&sa.setLessonLocation(0,"1",H.xmlData.settings.lessonLocationNew):(a.preventDefault(),lc.available&&lc.call("srSpeak","Control + X to Close the course, Control + P to print current slide, Control + S to toggle narrator audio, Page Up to return to start, Shift + Right Arrow key to move forward, Shift + Left Arrow key to step back, "+Math.floor(10*
Math.random())))},onHideContent:function(){H.insideJackDaw&&this.state.get_screenNode().get_signals().get_change().remove(k(this,this.onChangeNode));null!=this.currentScreen&&(this.view.removeChild(this.currentScreen),this.view.dispatchEvent(new W("enterFrame")));this.currentScreen=null},onChangeTemplateStartIndex:function(){this.currentScreen=this.createNextScreen();H.insideJackDaw&&this.state.get_screenNode().get_signals().get_change().add(k(this,this.onChangeNode));this.onChangeNode(this.state.get_screenNode())},
onChangeNode:function(a){"QuizScreen"==Eb.toString(this.state.get_screenNode().template)?this.view.set_x(this.view.set_y(0)):(this.view.set_x(this.state.get_screenNode().x),this.view.set_y(this.state.get_screenNode().y))},createNextScreen:function(){var a=Eb.toString(this.state.get_screenNode().template);if(null==a||""==a)a="Screen";-1==a.indexOf(".")&&(a="room.display.screens."+a);a=wb.createInstance(g[a],[]);2==this.state.get_screenNode().template?this.view.addChildAt(a,4):this.view.addChildAt(a,
0);return a},onBackgroundLoaded:function(){this.state.get_screenNode().isMainScreen&&(this.initScreenSignal.dispatch(),this.state.get_screenNode().isFinishScreen()&&!this.state.get_screenNode().hasForms()&&(sa.completeLesson(),this.lessonCompleteSignal.dispatch()))},__class__:ve});var Fh=function(){};g["room.mediators.screen_navigator.ScrollBarMediator"]=Fh;Fh.__name__="room.mediators.screen_navigator.ScrollBarMediator";Fh.__super__=Da;Fh.prototype=r(Da.prototype,{view:null,hideTextSignal:null,hideContentSignal:null,
initialize:function(){this.view.set_visible(!1);this.view.up.set_buttonMode(this.view.down.set_buttonMode(this.view.track.set_buttonMode(this.view.thumb.set_buttonMode(!0))));this.hideTextSignal.add(k(this,this.onHideText));this.hideContentSignal.add(k(this,this.onHideText))},destroy:function(){this.hideTextSignal.remove(k(this,this.onHideText));this.hideContentSignal.remove(k(this,this.onHideText))},onHideText:function(){this.view.set_visible(!1)},onHideContent:function(){this.view.set_visible(!1)},
__class__:Fh});var Bh=function(){};g["room.mediators.screen_navigator.SmallContentFieldMediator"]=Bh;Bh.__name__="room.mediators.screen_navigator.SmallContentFieldMediator";Bh.__super__=Da;Bh.prototype=r(Da.prototype,{view:null,showTitleAndContentSignal:null,initialize:function(){this.view.set_visible(!1);this.view.mouseEnabled=!0;this.showTitleAndContentSignal.add(k(this,this.onShowTitleAndContent));H.insideJackDaw?this.initializeJackdaw():H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0);
this.onChangeData(this.view.data);this.view.data.get_signals().get_change().add(k(this,this.onChangeData))},initializeJackdaw:function(){this.view.mouseChildren=Ya.options.get_previewMode();Ya.options.onUpdate.add(k(this,this.updateJackdawLabel));Ya.options.onUpdate.add(k(this,this.onUpdateJackdawOptions));var a=this.view,b=this.view.data.get_fast();if(b.nodeType==z.Document)b="Document";else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":
V.toString(b.nodeType)));b=b.nodeName}Db.set(a,Ya.wrapTagName(b))},destroy:function(){this.showTitleAndContentSignal.remove(k(this,this.onShowTitleAndContent));this.view.data.get_signals().get_change().remove(k(this,this.onChangeData));Ya.options.onUpdate.remove(k(this,this.onUpdateJackdawOptions));Db.remove(this.view)},onShowTitleAndContent:function(){var a=this,b=!H.insideJackDaw||Ya.options.get_previewMode()?1E3*this.view.data.get_delay():0;Qb.delay(function(){a.view.set_visible(!0)},b)},onChangeData:function(a){this.view.set_x(this.view.data.x);
this.view.set_y(this.view.data.y);this.view.txt.set_width(this.view.data.width);this.view.txt.set_height(this.view.data.height);this.view.txt.set_htmlText(this.view.data.value);this.view.set_alpha(this.view.data.alpha);a=Oe.drawBackground(this.view,this.view.data,this.view.txt);null!=a&&this.view.swapChildren(this.view.txt,a);H.insideJackDaw&&(a=Db.get(this.view),a.setField("jackdaw_node_width",this.view.txt.get_width()),a.setField("jackdaw_node_height",this.view.txt.get_height()),a.setField("jackdaw_node_has_background",
this.view.data.hasBackground),this.updateJackdawLabel())},updateJackdawLabel:function(){if(Ya.options.get_previewMode())Fb.clearLabel(this.view);else{var a=new ha(-this.view.data.padding,-this.view.data.padding,this.view.data.width+2*this.view.data.padding,this.view.data.height+2*this.view.data.padding),b=this.view,c=this.view.data.get_fast();if(c.nodeType==z.Document)c="Document";else{if(c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));
c=c.nodeName}Fb.drawLabel(b,c,Fb.scaleBounds(a,this.view))}},onUpdateJackdawOptions:function(){this.view.mouseChildren=Ya.options.get_previewMode()},__class__:Bh});var xe=function(){this._bg=null};g["room.mediators.screen_navigator.TitleFieldMediator"]=xe;xe.__name__="room.mediators.screen_navigator.TitleFieldMediator";xe.__super__=uf;xe.prototype=r(uf.prototype,{view:null,state:null,hideTextSignal:null,hideContentSignal:null,hideTitleContentImagesSignal:null,setTitleAndContentSignal:null,revealContentSignal:null,
showTitleAndContentSignal:null,unsetContentSignal:null,initialize:function(){uf.prototype.initialize.call(this);this.view.mouseEnabled=!1;this.view.mouseChildren=!1;this.hideTextSignal.add(k(this,this.onHideText));this.hideContentSignal.add(k(this,this.onHideText));this.hideTitleContentImagesSignal.add(k(this,this.onHideTitleContentImages));this.setTitleAndContentSignal.add(k(this,this.onSetTitleAndContent));this.revealContentSignal.add(k(this,this.onRevealContent));this.showTitleAndContentSignal.add(k(this,
this.onShowTitleAndContent));this.unsetContentSignal.add(k(this,this.onUnsetContent));this.state.get_signals().get_changeHideTitleAndContent().add(k(this,this.onChangeHideTitleAndContent))},destroy:function(){uf.prototype.destroy.call(this);this.hideTextSignal.remove(k(this,this.onHideText));this.hideContentSignal.remove(k(this,this.onHideText));this.hideTitleContentImagesSignal.remove(k(this,this.onHideTitleContentImages));this.setTitleAndContentSignal.remove(k(this,this.onSetTitleAndContent));this.revealContentSignal.remove(k(this,
this.onRevealContent));this.showTitleAndContentSignal.remove(k(this,this.onShowTitleAndContent));this.unsetContentSignal.remove(k(this,this.onUnsetContent));this.state.get_signals().get_changeHideTitleAndContent().remove(k(this,this.onChangeHideTitleAndContent))},onHideText:function(){this.view.set_visible(!1)},onSetTitleAndContent:function(){this.update(this.state.get_screenNode().titleNode);this.state.get_screenNode().templateNode.get_isMultiButton()||this.view.set_visible(!this.state.hideTitleAndContent)},
update:function(a){this.view.set_x(a.x);this.view.set_y(a.y);this.set_width(a.width);this.set_height(a.height);this.set_htmlText(a.value);this.setBackground(a)},onRevealContent:function(){this.view.set_visible(!this.state.hideTitleAndContent)},onChangeHideTitleAndContent:function(){this.view.set_visible(!this.state.hideTitleAndContent)},onHideTitleContentImages:function(){this.view.set_visible(!1)},onShowTitleAndContent:function(){this.view.set_visible(!0)},onUnsetContent:function(){this.set_htmlText("");
this.view.set_visible(!1)},__class__:xe});var ob=function(){this._lastFrames=[]};g["room.mediators.screens.ScreenMediator"]=ob;ob.__name__="room.mediators.screens.ScreenMediator";ob.__super__=Da;ob.prototype=r(Da.prototype,{printDebugSignal:null,state:null,initScreenSignal:null,navigateToSignal:null,setScreenIndexSignal:null,showContentSignal:null,syncSignal:null,setTitleAndContentSignal:null,screenCreatedSignal:null,createInputSignal:null,quizManager:null,data:null,subData:null,loader:null,_lastFrames:null,
_atEnd:null,_playbackStopped:null,initialize:function(){var a=this;this.data=this.state.get_screenNode();this.subData=H.xmlData.screensList.getSubScreens(this.data.screen_id);this.initScreenSignal.add(k(this,this.init)).repeat(0);this.navigateToSignal.add(k(this,this.onNavigateTo));this.syncSignal.add(k(this,this.onSync));this.showContentSignal.add(k(this,this.onShowContent));Qb.delay(function(){a.screenCreatedSignal.dispatch();a.onShowContent()},0);H.insideJackDaw?this.initializeJackdaw():H.onInsideJackDaw.add(k(this,
this.initializeJackdaw)).repeat(0)},initializeJackdaw:function(){H.xmlData.get_signals().get_change().add(k(this,this.onChangeInfoXml))},destroy:function(){this.initScreenSignal.remove(k(this,this.init));this.navigateToSignal.remove(k(this,this.onNavigateTo));this.syncSignal.remove(k(this,this.onSync));this.showContentSignal.remove(k(this,this.onShowContent));var a=null!=this.loader&&!(this.loader instanceof Tm);a=a&&!(this.loader instanceof Ef);!a||Pb.isIOS()&&this.data.hasFlash||this.loader.unloadAndStop();
$a.removeAll();H.insideJackDaw&&(this.state.get_screenNode().get_signals().get_change().remove(k(this,this.onScreenChange)),H.xmlData.get_signals().get_change().remove(k(this,this.onChangeInfoXml)))},init:function(){},slideRoomAnim:function(){this.data.get_slideRoom()&&(this.data.get_inAlpha()?(va.tween(this.viewComponent,.5,{alpha:.05,x:-this.viewComponent.width}).reverse(),va.tween(this.viewComponent.parent.contentField,.5,{alpha:.05,x:-this.viewComponent.width}).reverse(),va.tween(this.viewComponent.parent.titleField,
.5,{alpha:.05,x:-this.viewComponent.width,onComplete:k(this,this.onAnimCompleteHandler),onCompleteParams:[]}).reverse()):(va.tween(this.viewComponent,.5,{x:-this.viewComponent.width}).reverse(),va.tween(this.viewComponent.parent.contentField,.5,{x:-this.viewComponent.width}).reverse(),va.tween(this.viewComponent.parent.titleField,.5,{x:-this.viewComponent.width,onComplete:k(this,this.onAnimCompleteHandler),onCompleteParams:[]}).reverse()))},onAnimCompleteHandler:function(){this.viewComponent.dispatchEvent(new W("intro_anim_complete"))},
onSync:function(a){null!=this.get_contentMovie()&&this.get_contentMovie().gotoAndStop(a)},onShowContent:function(a){null==a&&(a=!1);(a||4!=this.state.get_screenNode().template&&13!=this.state.get_screenNode().template&&6!=this.state.get_screenNode().template&&5!=this.state.get_screenNode().template&&15!=this.state.get_screenNode().template&&7!=this.state.get_screenNode().template)&&this.setTitleAndContentSignal.dispatch()},onNavigateTo:function(a){switch(a.toLowerCase()){case "back":this.state.prevMainScreen();
break;case "next":this.gotoNext();break;case "prev":this.gotoPrev();break;case "skip":this.state.nextMainScreen();break;case "submit":sa.submitAssessment();break;default:var b=this.getIndexFromId(a);-1<b?this.setScreenIndex(b):(a=-1<a.indexOf("://")?a:"http://"+a,Sa.navigateToURL(new Kc(a)))}},gotoNext:function(){$a.submitAll();$a.removeAll();this.state.nextScreen()},gotoPrev:function(){$a.submitAll();$a.removeAll();this.state.prevScreen()},getIndexFromId:function(a){if(a==this.data.screen_id)return this.state.get_mainScreenIndex();
for(var b=0,c=this.subData.length;b<c;){var d=b++;if(this.subData[d].screen_id==a)return this.state.get_mainScreenIndex()+d+1}return H.xmlData.screensList.getIndex(a)},setScreenIndex:function(a){this.setScreenIndexSignal.dispatch(new Nd(a,""))},updateFrameProps:function(a){null==a&&(a=5);var b=this.get_contentMovie().get_currentFrame();this._lastFrames.unshift(b);this._playbackStopped=this._lastFrames.length>=a&&this._lastFrames[a-1]==b;this._atEnd=b==this.get_contentMovie().get_totalFrames()},onScreenChange:function(a){a instanceof
Ae&&this.recreateInputs()},recreateInputs:function(){$a.removeAll(!0);this.createInputsFromNodes()},createInputs:function(a){null==a&&(a=!1);this.recreateInputs();this.createInputsFromContentMovie(a);H.insideJackDaw&&this.state.get_screenNode().get_signals().get_change().add(k(this,this.onScreenChange))},createInputsFromNodes:function(){for(var a=0,b=this.state.get_screenNode().inputNodes;a<b.length;){var c=b[a];++a;this.createInputSignal.dispatch(c)}this.state.get_screenNode().hasForms()&&(this.quizManager.init(),
this.quizManager.setSettings(this.state.get_screenNode().quizesNode),this.quizManager.setData(this.state.get_screenNode().quizesNode),this.quizManager.startQuiz("inline"))},createInputsFromContentMovie:function(a){null==a&&(a=!1);if(!(null==this.loader||N.__cast(this.loader,Ef).get_contentMovie()instanceof Jj))for(var b,c=0,d=this.getContentMovieChildren();c<d.length;)if(b=d[c],++c,null!=b&&null!=b.name&&""!=b.name){var e=null,f=N.__cast(this.loader,Ef).iframe.contentWindow,h=this.getCjsClass(f,"Text");
if(N.__instanceof(b,h))e=he.fromTextField(b,null,a);else{h=this.getCjsLibClass(f,"flcontrolsCheckBox");var l=this.getCjsLibClass(f,"myLibcontrolsCheckBox");f=this.getCjsLibClass(f,"flcontrolsRadioButton");N.__instanceof(b,h)||N.__instanceof(b,l)?e=he.fromCheckbox(b):N.__instanceof(b,f)&&(e=he.fromRadioButton(b))}null!=e&&null==$a.find(e.get_name(),e.get_type())&&this.createInputSignal.dispatch(e)}},getCjsClass:function(a,b){return J.field(a.createjs,b)},getCjsLibClass:function(a,b){var c=a.lib;null==
c&&(c=a.AdobeAn.compositions[Object.keys(a.AdobeAn.compositions)[0]].getLibrary());return J.field(c,b)},_contentMovie:null,contentMovie:null,get_contentMovie:function(){null==this._contentMovie&&(this._contentMovie=null==this.loader?null:N.__cast(this.loader,Ef).get_contentMovie());return this._contentMovie},getContentMovieChildren:function(){for(var a=[],b=0,c=this.get_contentMovie().get_numChildren();b<c;){var d=b++;d=this.get_contentMovie().getChildAt(d);a.push(d)}return a},contentMoviePath:null,
get_contentMoviePath:function(){var a=H.absoluteCoursePath+this.data.get_contentMoviePath();return a+="?rootX="+this.data.x+"&rootY="+this.data.y},onChangeInfoXml:function(a){this.subData=H.xmlData.screensList.getSubScreens(this.data.screen_id)},__class__:ob,__properties__:{get_contentMoviePath:"get_contentMoviePath",get_contentMovie:"get_contentMovie"}});var Ac=function(){this._lastFrames=[];this._buttons=[]};g["room.mediators.screens.BaseMultiButtonMediator"]=Ac;Ac.__name__="room.mediators.screens.BaseMultiButtonMediator";
Ac.__super__=ob;Ac.prototype=r(ob.prototype,{revealContentSignal:null,hideTitleContentImagesSignal:null,_view:null,_frameLabels:null,_buttons:null,_scormQuestionShowMiliseconds:null,initialize:function(){this._view=J.field(this,"view");ob.prototype.initialize.call(this)},destroy:function(){ob.prototype.destroy.call(this);this.cleanListeners();this.clean()},onShowContent:function(a){(!this.state.get_screenNode().isMainScreen||null!=this.loader&&this.loader.get_visible())&&ob.prototype.onShowContent.call(this)},
clean:function(){this.hideTitleContentImagesSignal.dispatch();null!=this.get_contentMovie()&&this.loader.removeEventListener("jsFrameConstructed",k(this,this.contentMovieEnterFrameHandler))},init:function(){ob.prototype.init.call(this);this.loadContentMovie()},loadContentMovie:function(){null!=this.loader&&(this.cleanListeners(),this._view.removeChild(this.loader));this.loader=Vi.load(this.get_contentMoviePath(),k(this,this.contentMovieCompleteHandler),k(this,this.contentMovieIOErrorHandler));this._view.addChild(this.loader)},
contentMovieCompleteHandler:function(a){var b=this;a.set_x(a.get_x()-this.data.x);a.set_y(a.get_y()-this.data.y);this.get_contentMovie().setPosition(this.data.x,this.data.y);this.collectFrameLabels();Qb.delay(function(){b.setTitleAndContentSignal.dispatch();b.watchContentMoviePlayhead()},0)},contentMovieIOErrorHandler:function(a){Ub.trace(">MultiButton.as>contentMovieIOErrorHandler>"+a.text,{fileName:"Source/room/mediators/screens/BaseMultiButtonMediator.hx",lineNumber:112,className:"room.mediators.screens.BaseMultiButtonMediator",
methodName:"contentMovieIOErrorHandler"})},collectFrameLabels:function(){this._frameLabels=[];for(var a=0,b=this.get_contentMovie().get_currentLabels();a<b.length;){var c=b[a];++a;this._frameLabels.push(c.name)}},watchContentMoviePlayhead:function(){this.loader.addEventListener("jsFrameConstructed",k(this,this.contentMovieEnterFrameHandler))},contentMovieEnterFrameHandler:function(a){null!=this.get_contentMovie()&&(this.updateFrameProps(),this._playbackStopped?this.revealContentSignal.dispatch():
(a=this._frameLabels.indexOf(this.get_contentMovie().get_currentLabel()),-1!=a&&this.setScreenIndexSignal.dispatch(new Nd(this.state.get_templateStartIndex()+a,"")),this.collectButtons()))},collectButtons:function(){if(!(0<this._buttons.length)){$a.setTopInput(null);for(var a=!1,b,c=0,d=this.getContentMovieChildren();c<d.length;){b=d[c];++c;var e=this.getChildTarget(b);if(null!=e&&"step"==G.substr(e,0,4)){this.identifyButton(b);if(-1<e.indexOf("_")){var f=e.split("_");f.shift();if(5<=f.length)for(;5<=
f.length;){e=f.splice(0,5);var h=this.scanForTextField(e[2]);null!=h&&this.createInputSignal.dispatch(he.fromTextField(h,e[0]))}}else a||"submit"!=e&&"step"!=G.substr(e,0,4)||(this.createInputs("submit"!=e),a=!0);this._buttons.push(b)}}}},cleanListeners:function(){for(var a=0,b=this._buttons;a<b.length;){var c=b[a];++a;c.removeEventListener(Pb.isMobile()?"mouseDown":"click",this.identifyHandler(c))}this._buttons=[]},identifyButton:function(a){a.addEventListener(Pb.isMobile()?"mouseDown":"click",this.identifyHandler(a))},
identifyHandler:function(a){a=this.getChildTarget(a);-1<a.indexOf("instance")?a=k(this,this.noNameButtonClickHandler):-1<a.indexOf("_")?(this._scormQuestionShowMiliseconds=(new Date).getTime(),a=k(this,this.scormButtonClickHandler)):a=k(this,this.stepButtonClickHandler);return a},noNameButtonClickHandler:function(a){this.get_contentMovie().play();this.hideTitleContentImagesSignal.dispatch()},scormButtonClickHandler:function(a){a=this.getChildTarget(a.target);var b=a.split("_")[0];this.scormCall(a);
this.jumpToFrameLabel(b)},stepButtonClickHandler:function(a){a=this.getChildTarget(a.target);this.jumpToFrameLabel(a)},jumpToFrameLabel:function(a){if(-1==this._frameLabels.indexOf(a))this.navigateToSignal.dispatch(this.getCommand(a));else{$a.removeAll();this.cleanListeners();this.get_contentMovie().gotoAndStop(a);a=null;for(var b=0,c=this.get_contentMovie().get_numChildren();b<c;){var d=b++;d=this.get_contentMovie().getChildAt(d);var e=this.getChildTarget(d);if(null!=e&&"step"==G.substr(e,0,4)){a=
d;break}}null==a?(this.hideTitleContentImagesSignal.dispatch(),this.get_contentMovie().play()):this.revealContentSignal.dispatch()}},getCommand:function(a){switch(a.toLowerCase()){case "stepnext":return"skip";case "stepprevious":return"back";case "stepsubmit":return"submit"}return a},scormCall:function(a){a=a.split("_");a.push(this.state.get_screenNode().getQuestionText());$a.submitParts(a)},scanForTextField:function(a){for(var b=0,c=this.get_contentMovie().get_numChildren();b<c;){var d=b++;d=this.get_contentMovie().getChildAt(d);
try{var e=d}catch(f){wa.lastError=f,e=d}if(null!=e&&e.name==a)return e}return null},getChildTarget:function(a){return a.goto},__class__:Ac});var ud=function(){this._lastFrames=[]};g["room.mediators.screens.BookScreenMediator"]=ud;ud.__name__="room.mediators.screens.BookScreenMediator";ud.__super__=ob;ud.prototype=r(ob.prototype,{view:null,screenIndexChangedSignal:null,showButtonsSignal:null,book:null,destroy:function(){ob.prototype.destroy.call(this);this.screenIndexChangedSignal.remove(k(this,this.onScreenIndexChanged));
for(var a=0,b=this.subData;a<b.length;){var c=b[a];++a;c.get_signals().get_change().remove(k(this,this.onChangePage));null!=c.imageNode&&c.imageNode.get_signals().get_change().remove(k(this,this.onChangePage));null!=c.contentNode&&c.contentNode.get_signals().get_change().remove(k(this,this.onChangePage));null!=c.videoNode&&c.videoNode.get_signals().get_change().remove(k(this,this.onChangePage))}null!=this.view.stage&&this.view.stage.removeEventListener("pageChange",k(this,this.onPageChange));null!=
this.book&&(this.book.destroy(),this.book=null);null!=this.loader&&this.loader.unloadAndStop()},init:function(){ob.prototype.init.call(this);this.screenIndexChangedSignal.add(k(this,this.onScreenIndexChanged));this.loader=new Tm;this.loader.contentLoaderInfo.addEventListener("init",k(this,this.completeHandler));this.loader.addEventListener("ioError",k(this,this.loader_ioErrorHandler));this.loader.load(new Kc(H.absoluteCoursePath+"Book.swf"),new Sh(!1,Ff.currentDomain,null));null!=this.view.stage&&
(this.view.stage.addEventListener("bookLoaded",k(this,this.onBookLoaded)),this.view.stage.addEventListener("pageChange",k(this,this.onPageChange)));this.view.set_visible(!0)},completeHandler:function(a){this.removeLoaderEventListeners();this.book=this.loader.content;this.book.insideJackDaw=H.insideJackDaw;this.book.setCoursePath(H.absoluteCoursePath);this.view.addChild(this.book)},loader_ioErrorHandler:function(a){Ub.trace("Error loading Book.swf",{fileName:"Source/room/mediators/screens/BookScreenMediator.hx",
lineNumber:90,className:"room.mediators.screens.BookScreenMediator",methodName:"loader_ioErrorHandler"});this.removeLoaderEventListeners();this.showButtonsSignal.dispatch(null)},removeLoaderEventListeners:function(){this.loader.contentLoaderInfo.removeEventListener("init",k(this,this.completeHandler));this.loader.removeEventListener("ioError",k(this,this.loader_ioErrorHandler))},onBookLoaded:function(a){this.view.stage.removeEventListener("bookLoaded",k(this,this.onBookLoaded));this.setBookXMLData()},
setBookXMLData:function(){var a=z.parse("<flipbook/>");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));var b=a.children[0];b.set("width","700");b.set("height","500");b.set("proportion","0.7");b.set("boarder","5");b.set("middleboarder","0.5");b.set("boardercolor","0x000000");b.set("title","Features Book");b.set("load","3");b.set("bitmapsmoothing","true");b.set("doubleclick","true");
b.set("resizeswf","true");b.set("reverse","false");a=z.parse("<alert/>");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));b.addChild(a.children[0]);a=z.parse("<shadows/>");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));var c=a.children[0];a=z.parse('<inner src="0"/>');
if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));c.addChild(a.children[0]);a=z.parse('<curveglow src="0"/>');if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));c.addChild(a.children[0]);a=z.parse('<pageshadow src="0"/>');if(a.nodeType!=z.Document&&a.nodeType!=
z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));c.addChild(a.children[0]);a=z.parse('<innerpageshadow src="0"/>');if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));c.addChild(a.children[0]);b.addChild(c);c=0;for(var d=this.subData;c<d.length;){var e=d[c];++c;a=z.parse("<page/>");if(a.nodeType!=z.Document&&
a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];null!=e.videoNode&&""!=e.videoNode.path?(a.set("type","video"),a.set("src",H.absoluteCoursePath+e.imageNode.get_path()),a.set("videosrc",H.absoluteCoursePath+e.videoNode.path),e.videoNode.get_signals().get_change().add(k(this,this.onChangePage))):null!=e.contentNode&&""!=e.contentNode.value?(a.set("type","content"),null!=e.imageNode&&""!=e.imageNode.get_path()?
(a.set("src",H.absoluteCoursePath+e.imageNode.get_path()),e.imageNode.get_signals().get_change().add(k(this,this.onChangePage))):a.set("src",""),a.set("width",B.string(e.contentNode.width)),a.set("height",B.string(e.contentNode.height)),a.addChild(z.createPCData(e.contentNode.value)),e.contentNode.get_signals().get_change().add(k(this,this.onChangePage))):null!=e.imageNode&&""!=e.imageNode.get_path()?(a.set("src",H.absoluteCoursePath+e.imageNode.get_path()),e.imageNode.get_signals().get_change().add(k(this,
this.onChangePage))):a.set("src","");e.get_signals().get_change().add(k(this,this.onChangePage));b.addChild(a)}this.book.setData(b)},onChangePage:function(a){this.setBookXMLData()},onPageChange:function(a){this.setScreenIndexSignal.dispatch(new Nd(this.state.get_mainScreenIndex()+(Math.max(this.book.getFlipBookCurrentPage()+1,0)|0),""));this.state.get_screenIndex()==this.state.get_mainScreenIndex()&&this.setTitleAndContentSignal.dispatch()},onScreenIndexChanged:function(){var a=this;if(null!=this.book){var b=
this.state.get_screenIndex()-this.state.get_mainScreenIndex()-1;this.book.getFlipBookCurrentPage()!=b?this.book.gotoPage(b):(b=this.book.getFlipBookPages().length,this.book.getFlipBookCurrentPage()>=b-1&&Qb.delay(function(){a.showButtonsSignal.dispatch(null)},0))}},__class__:ud});var Sc=function(){this.waitTillEnd=!1;this.fresh=!0;this._lastFrames=[]};g["room.mediators.screens.Loader_3Mediator"]=Sc;Sc.__name__="room.mediators.screens.Loader_3Mediator";Sc.__super__=ob;Sc.prototype=r(ob.prototype,{view:null,
hideTitleContentImagesSignal:null,hideButtonsSignal:null,showButtonsSignal:null,loaderData:null,index:null,fresh:null,req:null,FrameLabelExist:null,waitTillEnd:null,labels:null,destroy:function(){ob.prototype.destroy.call(this);null!=this.loader&&this.loader.hasEventListener("enterFrame")&&this.loader.removeEventListener("enterFrame",k(this,this.loader_enterFrameHandler));if(null!=this.loaderData)for(var a=0,b=this.loaderData.length;a<b;){var c=a++;this.loaderData[c]instanceof Ci&&this.loaderData[c].parent&&
this.view.removeChild(this.loaderData[c])}},gotoNext:function(){var a=this;this.hideButtonsSignal.dispatch(null);this.loaderData[this.index]instanceof Ci||this.hideTitleContentImagesSignal.dispatch();this.index++;this.index>=this.loaderData.length&&this.state.get_screenNode().get_contentMovieNode().isMovie&&this.get_contentMovie().get_currentFrame()<this.get_contentMovie().get_totalFrames()?(this.waitTillEnd=!0,this.FrameLabelExist=!1,this.loader.addEventListener("enterFrame",k(this,this.loader_enterFrameHandler)),
this.get_contentMovie().play()):ob.prototype.gotoNext.call(this);this.index<this.loaderData.length&&(this.state.get_screenNode().get_contentMovieNode().isMovie?((this.FrameLabelExist=this.checkLabelExist())&&this.loader.addEventListener("enterFrame",k(this,this.loader_enterFrameHandler)),this.get_contentMovie().play()):Qb.delay(function(){a.showContent()},100))},showContent:function(){this.setTitleAndContentSignal.dispatch();this.showNextImage();this.hidePrevImage();this.showButtonsSignal.dispatch(null)},
showNextImage:function(){if(this.loaderData[this.index]instanceof Ci){var a=this.loaderData[this.index];this.view.addChild(a);var b=new ab(0<a.get_width()?a.get_width():1E3,0<a.get_height()?a.get_height():1E3);b=a.parent.globalToLocal(new ab(-b.x,-b.y));var c=new ab(a.get_x(),a.get_y()),d=this.view.localToGlobal(c);if(0>d.x||0>d.y||1070<d.x||650<d.y)c.x=0,c.y=0;a.set_x(b.x);a.set_y(b.y);Qb.delay(function(){va.tween(a,Sc.DURATION,{x:c.x,y:c.y})},0)}},hidePrevImage:function(){if(1<this.index){if(this.loaderData[this.index-
1]instanceof Ci){var a=this.loaderData[this.index-1].parent.globalToLocal(new ab(1070,650));va.tween(this.loaderData[this.index-1],Sc.DURATION,{x:a.x,y:a.y})}}else 1==this.index&&null!=this.loader.parent&&(a=this.loader.parent.globalToLocal(new ab(1070,650)),va.tween(this.loader,Sc.DURATION,{x:a.x,y:a.y}))},init:function(){this.hideTitleContentImagesSignal.dispatch();this.index=-1;this.loader=new Jd;this.req=new Kc;this.fillData()},fillData:function(){var a=this;this.loaderData=[];this.index=0;this.loaderData.push(this.data);
if(null!=this.subData)for(var b=0,c=this.subData;b<c.length;){var d=c[b];++b;if(null!=d.imageNode&&null!=d.imageNode.get_path()&&""!=d.imageNode.get_path()){var e=new Ci(d.imageNode.get_path(),d.imageNode.width|0,d.imageNode.height|0);e.set_x(d.imageNode.x);e.set_y(d.imageNode.y);this.loaderData.push(e)}else this.loaderData.push(d)}null!=this.data.imageNode&&null!=this.data.imageNode.get_path()&&""!=this.data.imageNode.get_path()?(b=H.absoluteCoursePath,c=this.data.imageNode.get_path(),this.req.url=
b+c,this.view.addChildAt(this.loader,0),this.loader.contentLoaderInfo.addEventListener("progress",k(this,this.loader_progreeHandler),!1,0,!0),this.loader.contentLoaderInfo.addEventListener("complete",k(this,this.loader_completeHandler),!1,0,!0),this.loader.load(this.req)):Qb.delay(function(){a.showContent()},100)},loader_progreeHandler:function(a){},loader_completeHandler:function(a){this.loader.set_x(this.data.imageNode.x);this.loader.set_y(this.data.imageNode.y);this.showContent()},loader_enterFrameHandler:function(a){this.FrameLabelExist?
this.get_contentMovie().get_currentLabel()==B.string("step"+this.index)&&(this.showContent(),this.loader.removeEventListener("enterFrame",k(this,this.loader_enterFrameHandler)),this.FrameLabelExist=!1):this.get_contentMovie().get_currentFrame()==this.get_contentMovie().get_totalFrames()&&(this.loader.removeEventListener("enterFrame",k(this,this.loader_enterFrameHandler)),this.waitTillEnd?(this.waitTillEnd=!1,this.navigateToSignal.dispatch("skip")):this.showContent())},checkLabelExist:function(){for(var a=
!1,b=0,c=this.labels.length;b<c;){var d=b++;this.labels[d].name==B.string("step"+this.index)&&(a=!0)}return a},__class__:Sc});var ld=function(){this._buttonsClicked=[];Ac.call(this)};g["room.mediators.screens.MultiButton2Mediator"]=ld;ld.__name__="room.mediators.screens.MultiButton2Mediator";ld.__super__=Ac;ld.prototype=r(Ac.prototype,{view:null,showButtonsSignal:null,buttonsReadySignal:null,_buttonsClicked:null,initialize:function(){Ac.prototype.initialize.call(this);this.buttonsReadySignal.add(k(this,
this.onButtonsReady))},destroy:function(){Ac.prototype.destroy.call(this);this.buttonsReadySignal.remove(k(this,this.onButtonsReady))},gotoNext:function(){this.state.nextMainScreen()},jumpToFrameLabel:function(a){var b=this._frameLabels.indexOf(a);if(-1==b)this.navigateToSignal.dispatch(this.getCommand(a));else{this.get_contentMovie().gotoAndStop(a);a=null;for(var c=0,d=this.get_contentMovie().get_numChildren();c<d;){var e=c++;e=this.get_contentMovie().getChildAt(e);var f=this.getChildTarget(e);if(null!=
f&&"step"==G.substr(f,0,4)){a=e;break}}null==a?(this.hideTitleContentImagesSignal.dispatch(),this.loader.addEventListener("jsFrameConstructed",k(this,this.contentMovieEnterFrameHandler)),this.get_contentMovie().play()):(this.setScreenIndexSignal.dispatch(new Nd(this.state.get_mainScreenIndex()+b,"")),this.revealContentSignal.dispatch())}},cleanListeners:function(){Ac.prototype.cleanListeners.call(this);this._buttonsClicked=[]},identifyButton:function(a){var b=this;a.addEventListener("click",function(c){-1==
b._buttonsClicked.indexOf(a)&&b._buttonsClicked.push(a);b.identifyHandler(a)(c)})},onButtonsReady:function(){0<this._buttons.length&&this._buttonsClicked.length>=this._buttons.length&&this.showButtonsSignal.dispatch(null)},contentMovieEnterFrameHandler:function(a){null!=this.get_contentMovie()&&(this.updateFrameProps(),this._playbackStopped?(this.collectButtons(),0<this._buttons.length&&(this.revealContentSignal.dispatch(),this.loader.removeEventListener("jsFrameConstructed",k(this,this.contentMovieEnterFrameHandler)),
this.onButtonsReady())):(this.hideTitleContentImagesSignal.dispatch(),a=this._frameLabels.indexOf(this.get_contentMovie().get_currentLabel()),-1<a&&this.setScreenIndexSignal.dispatch(new Nd(this.state.get_mainScreenIndex()+a,""))))},__class__:ld});var Dd=function(){Ac.call(this)};g["room.mediators.screens.MultiButtonMediator"]=Dd;Dd.__name__="room.mediators.screens.MultiButtonMediator";Dd.__super__=Ac;Dd.prototype=r(Ac.prototype,{view:null,collectFrameLabels:function(){this._frameLabels=[];for(var a=
0,b=this.get_contentMovie().get_currentLabels();a<b.length;){var c=b[a];++a;"step"==c.name.substr(0,4)&&this._frameLabels.push(c.name)}},__class__:Dd});var vd=function(){this._lastFrames=[]};g["room.mediators.screens.QuizScreenMediator"]=vd;vd.__name__="room.mediators.screens.QuizScreenMediator";vd.__super__=ob;vd.prototype=r(ob.prototype,{view:null,closeRoomSignal:null,hideTitleContentImagesSignal:null,contentMaskUpdatedSignal:null,init:function(){ob.prototype.init.call(this);this.view.init();this.slideRoomAnim();
this.contentMaskUpdatedSignal.add(k(this,this.hideDefaultContentHolder));this.quizManager.init();this.quizManager.get_signals().get_changeSettings().add(k(this,this.onChangeSettings)).repeat(0);this.quizManager.get_signals().get_unload().add(k(this,this.quizCompleteHandler)).repeat(0);this.quizManager.setSettings(this.state.get_screenNode().quizesNode);this.hideDefaultContentHolder()},destroy:function(){ob.prototype.destroy.call(this);this.contentMaskUpdatedSignal.remove(k(this,this.hideDefaultContentHolder));
this.quizManager.get_signals().get_changeSettings().remove(k(this,this.onChangeSettings));this.quizManager.get_signals().get_unload().remove(k(this,this.quizCompleteHandler))},onChangeSettings:function(){this.quizManager.get_settingsNode().loadsQuizAtScreenLevel?this.quizManager.setData(this.state.get_screenNode().quizesNode):null!=this.quizManager.dataQuizes?this.quizManager.startQuiz():this.quizManager.loadSource(H.get_quizXmlPath())},quizCompleteHandler:function(){var a=this,b=this.state.get_screenNode().isLastScreen(),
c=b||this.quizManager.get_settingsNode().get_submitComplete();this.quizManager.get_settingsNode().loadsQuizAtScreenLevel&&!c||sa.commit(function(d){d&&c&&(sa.submitAssessment(),b&&a.closeRoomSignal.dispatch())});b||this.state.nextScreen()},hideDefaultContentHolder:function(){this.hideTitleContentImagesSignal.dispatch()},__class__:vd});var bd=function(){this._lastFrames=[]};g["room.mediators.screens.UniversalMediator"]=bd;bd.__name__="room.mediators.screens.UniversalMediator";bd.__super__=ob;bd.prototype=
r(ob.prototype,{view:null,hideTitleContentImagesSignal:null,showTitleAndContentSignal:null,hideButtonsSignal:null,showButtonsSignal:null,index:null,labels:null,frameLabelExists:null,showButtonsOnly:null,waitTillEnd:null,prevLabel:null,imageHolder:null,destroy:function(){null!=this.loader&&this.loader.hasEventListener("jsFrameConstructed")&&this.loader.removeEventListener("jsFrameConstructed",k(this,this.loader_enterFrameHandler));ob.prototype.destroy.call(this)},gotoNext:function(){var a=this;this.hideButtonsSignal.dispatch(null);
this.hideTitleContentImagesSignal.dispatch();if(this.index==this.subData.length){var b=null==this.get_contentMovie()||this.get_contentMovie().get_currentFrame()==this.get_contentMovie().get_totalFrames();4==this.data.template&&this.data.get_contentMovieNode().isMovie&&this.data.get_contentMovieNode().waitTillEnd&&!b?(this.waitTillEnd=!0,this.frameLabelExists=!1,this.loader.addEventListener("jsFrameConstructed",k(this,this.loader_enterFrameHandler)),this.get_contentMovie().play()):ob.prototype.gotoNext.call(this)}else this.index++,
ob.prototype.gotoNext.call(this),null!=this.loader&&this.data.get_contentMovieNode().isMovie?(this.frameLabelExists=-1<this.getLabelIndex(this.get_stepFrameLabel()),this.loader.addEventListener("jsFrameConstructed",k(this,this.loader_enterFrameHandler)),4!=this.data.template&&this.frameLabelExists?this.get_contentMovie().gotoAndStop(this.get_stepFrameLabel()):this.get_contentMovie().play()):Qb.delay(function(){a.showContent()},0)},gotoPrev:function(){var a=this;this.hideButtonsSignal.dispatch(null);
this.hideTitleContentImagesSignal.dispatch();this.index--;ob.prototype.gotoPrev.call(this);if(this.data.get_contentMovieNode().isMovie)if(this.frameLabelExists=-1<this.getLabelIndex(this.get_stepFrameLabel()))4==this.data.template?(this.loader.addEventListener("jsFrameConstructed",k(this,this.loader_enterFrameHandler)),this.get_contentMovie().gotoAndPlay(this.get_stepFrameLabel())):this.gotoCurrentStep();else throw u.thrown("Backward navigation not supported in loaded movie");else Qb.delay(function(){a.showContent()},
0)},gotoCurrentStep:function(){var a=this;this.get_contentMovie().gotoAndStop(this.get_stepFrameLabel());Qb.delay(function(){a.showContent()},0)},showContent:function(a,b){null==b&&(b=!0);null==a&&(a=!0);this.setTitleAndContentSignal.dispatch();a&&this.createInputs();b&&this.showButtonsSignal.dispatch(null)},init:function(){var a=this;this.index=0;""!=this.data.get_contentMovieNode().get_path()?this.load():Qb.delay(function(){a.showContent()},0)},unload:function(){null!=this.loader.parent&&this.loader.parent.removeChild(this.loader);
this.loader.unload();this.loader=null},load:function(){this.loader=Vi.load(this.get_contentMoviePath(),k(this,this.loader_completeHandler),k(this,this.loader_errorHandler));this.view.addChildAt(this.loader,0)},loader_errorHandler:function(a){this.unload();1==this.data.get_contentMovieNode().get_format()?(this.data.get_contentMovieNode().set_format(0),this.load()):G.substr(this.data.get_contentMoviePath(),-34,null)==G.substr("animated_book_business/animated_book_business.swf",-34,null)?(this.data.get_contentMovieNode().set_path("animated_book_business/animated_book_business.swf"),
this.load()):(Ub.trace("Failed loading screen animation: "+a.text,{fileName:"Source/room/mediators/screens/UniversalMediator.hx",lineNumber:202,className:"room.mediators.screens.UniversalMediator",methodName:"loader_errorHandler"}),this.showContent(!1,!0))},loader_completeHandler:function(a){a.set_x(this.data.get_contentMovieNode().x);a.set_y(this.data.get_contentMovieNode().y);this.data.get_contentMovieNode().isMovie&&null!=this.get_contentMovie()?(a.set_x(a.get_x()-this.data.x),a.set_y(a.get_y()-
this.data.y),this.get_contentMovie().setPosition(this.state.get_screenNode().x,this.state.get_screenNode().y),this.labels=this.get_contentMovie().get_currentLabels(),a.addEventListener("jsFrameConstructed",k(this,this.loader_enterFrameHandler)),a=this.get_contentMovie(),Object.prototype.hasOwnProperty.call(a,"pathPrefix")&&(this.get_contentMovie().pathPrefix=H.absoluteCoursePath,a=this.get_contentMovie(),J.field(this.get_contentMovie(),"init").apply(a,[])),this.frameLabelExists=-1<this.getLabelIndex(this.get_stepFrameLabel()),
1==this.get_contentMovie().get_currentFrame()&&this.get_contentMovie().gotoAndPlay(1)):this.showContent(!1)},getLabelIndex:function(a){if(null!=this.labels)for(var b=0,c=this.labels.length;b<c;){var d=b++;if(this.labels[d].name==a)return d}return-1},loader_enterFrameHandler:function(a){if(null!=this.get_contentMovie()){this.updateFrameProps();if(null!=this.get_contentMovie().get_currentFrameLabel()&&""!=this.get_contentMovie().get_currentFrameLabel()&&this.prevLabel!=this.get_contentMovie().get_currentFrameLabel()){this.prevLabel=
this.get_contentMovie().get_currentFrameLabel();a=0;for(var b=this.get_contentMovie().get_numChildren();a<b;){var c=a++;if("imageHolder"==this.get_contentMovie().getChildAt(c).name){this.imageHolder=N.__cast(this.get_contentMovie().getChildAt(c),createjs.MovieClip);break}}null!=this.imageHolder&&null!=this.subData[this.index-1]&&null!=this.subData[this.index-1].get_contentMovieNode()&&(this.get_contentMovie().stop(),this.loader.removeEventListener("jsFrameConstructed",k(this,this.loader_enterFrameHandler)),
a=new Jd,a.contentLoaderInfo.addEventListener("complete",k(this,this.internalComplete),!1,0,!0),a.load(new Kc(H.absoluteCoursePath+this.subData[this.index-1].get_contentMovieNode().get_path())))}if(this.frameLabelExists)this.get_contentMovie().get_currentLabel()==this.get_stepFrameLabel()?(this.showContent(!0,!1),this.frameLabelExists=!1,this.showButtonsOnly=!0):this.getLabelIndex(this.get_contentMovie().get_currentLabel())>this.getLabelIndex(this.get_stepFrameLabel())&&this.gotoCurrentStep();else if(this._atEnd||
this._playbackStopped)this.loader.removeEventListener("jsFrameConstructed",k(this,this.loader_enterFrameHandler)),this._atEnd&&this.waitTillEnd?(this.waitTillEnd=!1,this.navigateToSignal.dispatch("skip")):this.showButtonsOnly?(this.showButtonsOnly=!1,this.showButtonsSignal.dispatch(null)):this.showContent()}},internalComplete:function(a){N.__cast(a.target,Qg).loader.contentLoaderInfo.removeEventListener("complete",k(this,this.internalComplete));this.loader.addEventListener("jsFrameConstructed",k(this,
this.loader_enterFrameHandler));this.imageHolder.getBounds();this.showTitleAndContentSignal.dispatch();this.setScreenIndexSignal.dispatch(new Nd(this.state.get_mainScreenIndex()+this.index,""));this.get_contentMovie().play()},setScreenIndex:function(a){var b=this,c=this.state.get_mainScreenIndex();this.setScreenIndexSignal.dispatch(new Nd(a,""));c==this.state.get_mainScreenIndex()&&(this.index=a-c,this.data.get_contentMovieNode().isMovie&&(this.frameLabelExists=-1<this.getLabelIndex(this.get_stepFrameLabel()),
null!=this.get_contentMovie()&&this.get_contentMovie().gotoAndStop(this.get_stepFrameLabel())),Qb.delay(function(){b.showContent()},0))},stepFrameLabel:null,get_stepFrameLabel:function(){return"step"+this.index},__class__:bd,__properties__:r(ob.prototype.__properties__,{get_stepFrameLabel:"get_stepFrameLabel"})});var H=function(){};g["room.models.Globals"]=H;H.__name__="room.models.Globals";H.__properties__={get_showSecondMenu:"get_showSecondMenu",set_insideJackDaw:"set_insideJackDaw",get_quizXmlPath:"get_quizXmlPath",
set_absoluteCoursePath:"set_absoluteCoursePath"};H.getApiUrl=function(a){a=H.apiPath+a;H.insideJackDaw&&!Gb.isEmpty(H.sessionId)&&(a+="?PHPSESSID="+H.sessionId);return a};H.getCourseTitle=function(){return H.xmlData.scorm.course_name};H.set_absoluteCoursePath=function(a){a=""!=a?ec.trim(a,"/")+"/":"";H.parseDocumentUrl(a);return H.absoluteCoursePath=a};H.get_quizXmlPath=function(){return H.absoluteCoursePath+"quizXML.xml"};H.showStageInfo=function(){Ub.trace("---------------------------------------------------",
{fileName:"Source/room/models/Globals.hx",lineNumber:56,className:"room.models.Globals",methodName:"showStageInfo"});Ub.trace("stage.mouseX / mouseY: "+Sa.get_current().stage.get_mouseX()+" "+Sa.get_current().stage.get_mouseY(),{fileName:"Source/room/models/Globals.hx",lineNumber:57,className:"room.models.Globals",methodName:"showStageInfo"});Ub.trace("stageWidth / stageHeight: "+Sa.get_current().stage.stageWidth+" "+Sa.get_current().stage.stageHeight,{fileName:"Source/room/models/Globals.hx",lineNumber:58,
className:"room.models.Globals",methodName:"showStageInfo"});Ub.trace("screenResolutionX/Y: "+Hb.get_screenResolutionX()+" "+Hb.get_screenResolutionY(),{fileName:"Source/room/models/Globals.hx",lineNumber:59,className:"room.models.Globals",methodName:"showStageInfo"});Ub.trace("pixelAspectRatio / screenDPI: "+Hb.get_pixelAspectRatio()+" "+Hb.get_screenDPI(),{fileName:"Source/room/models/Globals.hx",lineNumber:60,className:"room.models.Globals",methodName:"showStageInfo"});Ub.trace("---------------------------------------------------",
{fileName:"Source/room/models/Globals.hx",lineNumber:61,className:"room.models.Globals",methodName:"showStageInfo"})};H.set_insideJackDaw=function(a){H.insideJackDaw!=a&&(H.insideJackDaw=a,H.onInsideJackDaw.dispatch());return H.insideJackDaw};H.get_showSecondMenu=function(){return H.xmlData.settings.get_showSecondMenu()};H.parseDocumentUrl=function(a){var b=new fa("/(\\d+)/moddata/scorm/(\\d+)/","i");b.match(a)&&(H.courseId=b.matched(1),H.moduleId=b.matched(2));-1<a.indexOf("app/")?H.apiPath=a.split("app/")[0]+
"api/index.php":-1<a.indexOf("scorm/")?H.apiPath=a.split("scorm/")[0]+"api/index.php":-1<a.indexOf("scormdata/")&&(H.apiPath=a.split("scormdata/")[0]+"api/index.php")};var Nd=function(a,b){this.initScreen=this.fromBackground=this.reset=!1;this.index=a;this.options=b};g["room.models.SetScreenIndexParams"]=Nd;Nd.__name__="room.models.SetScreenIndexParams";Nd.prototype={index:null,options:null,initScreen:null,get_initScreen:function(){return-1<this.options.indexOf("initScreen")},fromBackground:null,
get_fromBackground:function(){return-1<this.options.indexOf("fromBackground")},reset:null,get_reset:function(){return-1<this.options.indexOf("reset")},__class__:Nd,__properties__:{get_reset:"get_reset",get_fromBackground:"get_fromBackground",get_initScreen:"get_initScreen"}};var Eh=function(){this._count=0;this._variables=new da;if(sa.loaded())this.onSCORMLoaded(!0);else sa.getInterface().get_signals().get_loaded().add(k(this,this.onSCORMLoaded)).repeat(0)};g["room.models.Variables"]=Eh;Eh.__name__=
"room.models.Variables";Eh.getInstance=function(){null==Eh._instance&&(Eh._instance=new Eh);return Eh._instance};Eh.prototype={_variables:null,_count:null,_signals:null,onSCORMLoaded:function(a){if(null!=H.xmlData.variables)for(a=H.xmlData.variables.get_elements();a.hasNext();){var b=a.next();if(b.nodeType==z.Document)var c="Document";else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));c=b.nodeName}b=sa.getVariable(c,
parseFloat(qb.get_innerData(b)));this._variables.h[c]=b;this._count++}},getAll:function(){for(var a={},b=Object.keys(this._variables.h),c=b.length,d=0;d<c;){var e=b[d++];a[e]=this._variables.h[e]}return a},setAll:function(a){for(var b=Object.keys(this._variables.h),c=b.length,d=0;d<c;){var e=b[d++],f=J.field(a,e);this._variables.h[e]=f;sa.setVariable(e,f)}this.get_signals().get_change().dispatch()},toString:function(){for(var a=[],b=Object.keys(this._variables.h),c=b.length,d=0;d<c;){var e=b[d++];
a.push(e+":"+this._variables.h[e])}return a.join(", ")},count:null,get_count:function(){return this._count},signals:null,get_signals:function(){null==this._signals&&(this._signals=new cs);return this._signals},__class__:Eh,__properties__:{get_signals:"get_signals",get_count:"get_count"}};var Js=function(){this.questions=[];this.init()};g["room.models.quiz.Quiz"]=Js;Js.__name__="room.models.quiz.Quiz";Js.prototype={settings:null,questions:null,questionIndex:null,currentQuestion:null,correctCount:null,
incorrectCount:null,_type:null,_timer:null,_timerCount:null,_startTimeStamp:null,_signals:null,init:function(){this.questionIndex=-1;this.set_correctCount(this.set_incorrectCount(0))},get_type:function(){return this._type},set_type:function(a){return this._type=a},set_correctCount:function(a){a!=this.correctCount&&(this.correctCount=a,this.get_signals().get_changeCorrectCount().dispatch());return this.correctCount},set_incorrectCount:function(a){a!=this.incorrectCount&&(this.incorrectCount=a,this.get_signals().get_changeIncorrectCount().dispatch());
return this.incorrectCount},getRatio:function(){for(var a=0,b=0,c=this.questions;b<c.length;){var d=c[b];++b;d.get_correct()&&++a}return Math.round(a/this.questions.length*100)},addQuestion:function(a,b){null==b&&(b=-1);this.questions.splice(b,0,a);b<=this.questionIndex&&this.questionIndex++},removeQuestion:function(a){var b=!1;a==this.currentQuestion&&(b=this.questionIndex+1<this.questions.length,this.setQuestionIndex(b?this.questionIndex+1:this.questionIndex-1));a.get_signals().removeAll();G.remove(this.questions,
a);b&&this.questionIndex--},reset:function(a){this._type=a;this.questionIndex=-1;for(this.currentQuestion=null;0<this.questions.length;)this.removeQuestion(this.questions[0])},start:function(a){this.settings=a;if(!H.insideJackDaw&&(this.settings.get_random()&&(this.questions=zs.shuffle(this.questions)),0<this.settings.get_numberQuestionsUsed())){var b=[],c=[];a=0;for(var d=this.questions.length;a<d;){var e=a++;"always"==this.questions[e].data.include?b.push(this.questions[e]):c.push(this.questions[e])}this.questions=
b.concat(c.slice(0,this.settings.get_numberQuestionsUsed()-b.length))}a=0;for(d=this.questions;a<d.length;)b=d[a],++a,b.get_signals().get_submit().add(k(this,this.onSubmitQuestion));this.init();this.get_signals().get_start().dispatch()},startQuestions:function(){this.setQuestionIndex(0);!H.insideJackDaw&&0<this.settings.maxTimeAllowed&&(this._timer=new Qb(1E3),this._timer.run=k(this,this.tick),this._timerCount=0,this._startTimeStamp=(new Date).getTime()/1E3)},tick:function(){this._timerCount=Math.round((new Date).getTime()/
1E3-this._startTimeStamp);this._timerCount>=this.settings.maxTimeAllowed?(this._timer.stop(),this.get_signals().get_maxTimeExpired().dispatch()):this.get_signals().get_tick().dispatch(this._timerCount)},setQuestionIndex:function(a){this.questionIndex!=a&&(a>=this.questions.length?this.finish():(this.questionIndex=a,this.currentQuestion=this.questions[this.questionIndex],this.get_signals().get_changeQuestionIndex().dispatch()))},prevQuestion:function(){-1<this.questionIndex&&this.get_signals().get_sendQuestion().dispatch();
this.setQuestionIndex(this.questionIndex-1)},nextQuestion:function(){-1<this.questionIndex&&this.get_signals().get_sendQuestion().dispatch();var a=null!=this.questions[this.questionIndex].lastAnswer&&""!=this.questions[this.questionIndex].lastAnswer.data.actionByID?this.findQuestionIndex(this.questions[this.questionIndex].lastAnswer.data.actionByID):-1;-1<a?this.setQuestionIndex(a):this.setQuestionIndex(this.questionIndex+1)},prevQuestionIndex:function(){var a=this.questionIndex-1;return 0<=a?a:this.questions.length-
1},nextQuestionIndex:function(){var a=this.questionIndex+1;return a<this.questions.length?a:0},findQuestionIndex:function(a){for(var b=0,c=this.questions.length;b<c;){var d=b++;if(this.questions[d].data.get_id()==a)return d}return-1},hasExamQuestions:function(){for(var a=0,b=this.questions.length;a<b;){var c=a++;if("exam"==this.questions[c].data.get_type()||""==this.questions[c].data.get_type()&&"exam"==this.get_type())return!0}return!1},getSkillScanScore:function(){for(var a=0,b=0,c=this.questions;b<
c.length;){var d=c[b];++b;var e=0,f=0,h=0;for(d=d.answers;h<d.length;){var l=d[h];++h;l.selected&&(f=l.data.score);e=Math.max(e,l.data.score)}a+=100*f/e}return Math.round(a/this.questions.length)},onSubmitQuestion:function(){if("exam"==this.currentQuestion.data.get_type()||""==this.currentQuestion.data.get_type()&&"exam"==this.get_type())this.currentQuestion.get_correct()?this.set_correctCount(this.correctCount+1):this.set_incorrectCount(this.incorrectCount+1)},finish:function(){null!=this._timer&&
this._timer.stop();this.get_signals().get_finish().dispatch()},signals:null,get_signals:function(){null==this._signals&&(this._signals=new ds);return this._signals},__class__:Js,__properties__:{get_signals:"get_signals",set_incorrectCount:"set_incorrectCount",set_correctCount:"set_correctCount",set_type:"set_type",get_type:"get_type"}};var Pt=function(a,b){this.index=-1;this.data=a;this.question=b;this.set_focused(!1)};g["room.models.quiz.QuizAnswer"]=Pt;Pt.__name__="room.models.quiz.QuizAnswer";
Pt.prototype={data:null,question:null,textFormat:null,selected:null,focused:null,correct:null,matchRight:null,matchLeft:null,index:null,_signals:null,get_textFormat:function(){return this.question.textFormat},set_selected:function(a){if(this.selected!=a){if(this.selected=a)this.question.set_lastAnswer(this);else if(this.question.lastAnswer==this){a=null;for(var b=0,c=this.question.answers;b<c.length;){var d=c[b];++b;d.selected&&(a=d)}this.question.set_lastAnswer(a)}else this.question.checkCompleted();
this.get_signals().get_select().dispatch()}return this.selected},set_matchRight:function(a){if(this.matchRight!=a){var b=this.matchRight;this.matchRight=a;null!=b&&null!=b.matchLeft&&(b.set_matchLeft(null),null==a&&this.get_signals().get_unmatch().dispatch(this,b));null!=a&&a.matchLeft!=this&&(a.set_matchLeft(this),this.get_signals().get_match().dispatch(this,this.matchRight));this.question.checkCompleted()}return this.matchRight},set_matchLeft:function(a){if(this.matchLeft!=a){var b=this.matchLeft;
this.matchLeft=a;null!=b&&null!=b.matchRight&&(b.set_matchRight(null),null==a&&this.get_signals().get_unmatch().dispatch(b,this));null!=a&&a.matchRight!=this&&(a.set_matchRight(this),this.get_signals().get_match().dispatch(this.matchLeft,this));this.question.checkCompleted()}return this.matchLeft},get_correct:function(){return"MDD"==this.question.data.qType?this.matchRight==this:"SDD"==this.question.data.qType?this.index==this.question.answers.indexOf(this):this.data.get_correct()},set_index:function(a){this.index!=
a&&(this.index=a);return this.index},set_focused:function(a){this.focused!=a&&(this.focused=a,this.get_signals().get_focus().dispatch());this.focused&&lc.available&&lc.call("srSpeak",this.data.text);return this.focused},signals:null,get_signals:function(){null==this._signals&&(this._signals=new es);return this._signals},__class__:Pt,__properties__:{get_signals:"get_signals",set_index:"set_index",set_matchLeft:"set_matchLeft",set_matchRight:"set_matchRight",get_correct:"get_correct",set_focused:"set_focused",
set_selected:"set_selected",get_textFormat:"get_textFormat"}};var vp=function(a){this._correct=null;this.completed=this.submitted=!1;this.comment="";this.settings=a};g["room.models.quiz.QuizQuestion"]=vp;vp.__name__="room.models.quiz.QuizQuestion";vp.prototype={settings:null,data:null,textFormat:null,totalCorrect:null,answers:null,lastAnswer:null,textAnswer:null,comment:null,completed:null,submitted:null,_correct:null,_signals:null,setData:function(a){null!=this.data&&this.data.get_signals().get_change().remove(k(this,
this.onChangeData));this.data=a;this.data.get_signals().get_change().add(k(this,this.onChangeData));this.onChangeData(this.data)},onChangeData:function(a){this.answers=[];a=0;for(var b=this.data.answers;a<b.length;){var c=b[a];++a;c=new Pt(c,this);this.answers.push(c)}this.get_signals().get_change().dispatch();"SDD"!=this.data.qType||this.completed||this.set_completed(!0)},get_totalCorrect:function(){if("TF"==this.data.qType)return 1;if("MDD"==this.data.qType||"SDD"==this.data.qType)return this.data.answers.length;
for(var a=0,b=0,c=this.data.answers;b<c.length;){var d=c[b];++b;d.get_correct()&&++a}return a},get_correct:function(){null==this._correct&&this.checkCompleted();return this._correct},set_lastAnswer:function(a){a!=this.lastAnswer&&(null!=this.lastAnswer&&this.hasOneAnswer()&&this.lastAnswer.set_selected(!1),this.lastAnswer=a,null!=this.lastAnswer&&this.get_signals().get_selectAnswer().dispatch(),this.hasOneAnswer()?(this._correct=null!=this.lastAnswer&&this.lastAnswer.get_correct(),this.set_completed(null!=
this.lastAnswer)):this.checkCompleted());return this.lastAnswer},set_textAnswer:function(a){this.textAnswer=a;for(var b=!1,c=0,d=this.answers;c<d.length;){var e=d[c];++c;var f=/[.,!?:;#$%\-\s]+/g;e.data.text.toLowerCase().replace(f,"")==a.toLowerCase().replace(f,"")?(e.set_selected(!0),b=!0):e.set_selected(!1)}this._correct=b;this.get_signals().get_changeTextAnswer().dispatch();return this.textAnswer},set_comment:function(a){this.comment=a;"TEXT"==this.data.qType&&(this.completed||this.set_completed(!0));
return this.comment},set_completed:function(a){a!=this.completed&&(this.completed=a,this.get_signals().get_setCompleted().dispatch());return this.completed},set_submitted:function(a){a!=this.submitted&&(this.submitted=a,this.get_signals().get_submit().dispatch());return this.submitted},checkCompleted:function(){var a=0,b=0;if("MDD"==this.data.qType){var c=0;for(var d=this.answers;c<d.length;){var e=d[c];++c;null!=e.matchRight&&(e.get_correct()?++a:++b)}}else for(c=0,d=this.answers;c<d.length;)if(e=
d[c],++c,e.selected||"SDD"==this.data.qType)1==e.get_correct()?++a:0==e.get_correct()&&++b;c=a+b;"task"==this.data.get_type()||"skillscan"==this.data.get_type()||"inline"==this.data.get_type()?(this._correct=this.get_totalCorrect()==a&&0!=this.get_totalCorrect()&&0==b,this.set_completed(c==(0==this.get_totalCorrect()?1:this.get_totalCorrect()))):"exam"==this.data.get_type()&&(this._correct=this.get_totalCorrect()==a&&0==b,this.set_completed(this.get_totalCorrect()==c||0==this.get_totalCorrect()));
this.set_completed(0<c)},hasOneAnswer:function(){return"FB"!=this.data.qType&&"WB"!=this.data.qType&&"MC"!=this.data.qType&&"TF"!=this.data.qType?"LKS"==this.data.qType:!0},getFeedbackAnswer:function(){var a=null;if("MR"==this.data.qType)for(var b=0,c=this.answers;b<c.length;){var d=c[b];++b;if(d.get_correct()==this.get_correct()){a=d;break}}else a=this.lastAnswer;return a},getFeedbackColor:function(){switch(this.settings.get_showAnswers()?this.get_correct()?1:2:0){case 1:return 6205229;case 2:return 16730920;
default:return 4276545}},signals:null,get_signals:function(){null==this._signals&&(this._signals=new fs);return this._signals},__class__:vp,__properties__:{get_signals:"get_signals",set_submitted:"set_submitted",set_completed:"set_completed",set_comment:"set_comment",set_textAnswer:"set_textAnswer",set_lastAnswer:"set_lastAnswer",get_correct:"get_correct",get_totalCorrect:"get_totalCorrect"}};var eh=function(){throw u.thrown("Cannot create an instance of class Alerts, it's a static utility class");
};g["room.services.Alerts"]=eh;eh.__name__="room.services.Alerts";eh.XMLLoadError=function(a){return mc.show("Error loading configuration file.",a)};eh.SCORMLoadError=function(){return mc.show("Failed connecting web server","The course was opened with the latest data recorded on the app. It will sync the data when the course is completed using this app.")};eh.Offline=function(){var a=mc.show(eh.TITLE_OFFLINE,"You are offline. You must go back online to continue.");a.closeButton.set_visible(!1);return a};
eh.prototype={__class__:eh};var $a=function(a,b){this.inputNode=a;this.quizManager=b;a.get_signals().get_change().add(k(this,this.onChangeInputNode));switch(a.get_type()){case "checkbox":this.createCheckbox(a);break;case "radio":this.createRadioButton(a);break;case "text":this.createTextField(a)}H.insideJackDaw?(this.updateQuizQuestion(),this.initializeJackdaw()):H.onInsideJackDaw.add(k(this,this.initializeJackdaw)).repeat(0)};g["room.services.InputNodeManager"]=$a;$a.__name__="room.services.InputNodeManager";
$a.init=function(){$a.textFields=[];$a.checkboxes=[];$a.radioButtons=[];$a.topInput=null};$a.find=function(a,b){var c=Object.create(null);c.text=$a.textFields;c.checkbox=$a.checkboxes;c.radio=$a.radioButtons;return vb.find(c[b],function(b){return a==b.get_name()})};$a.setTopInput=function(a){if(null==a)$a.topInput=null;else if(null==$a.topInput||a.y<$a.topInput.y||a.y==$a.topInput.y&&a.x<$a.topInput.x)$a.topInput=a};$a.removeAll=function(a){null==a&&(a=!1);for(var b=0,c=$a.textFields.slice();b<c.length;){var d=
c[b];++b;a&&null!=d.get_source()||(d.destroy(),G.remove($a.textFields,d))}b=0;for(c=$a.checkboxes.slice();b<c.length;)d=c[b],++b,a&&null!=d.get_source()||(d.destroy(),G.remove($a.checkboxes,d));b=0;for(c=$a.radioButtons.slice();b<c.length;)d=c[b],++b,a&&null!=d.get_source()||(d.destroy(),G.remove($a.radioButtons,d));$a.topInput=null};$a.submitAll=function(){for(var a=0,b=$a.textFields;a<b.length;){var c=b[a];++a;$a.submitTextField(c.get_control(),c.get_questionID())}a=0;for(b=$a.checkboxes;a<b.length;)c=
b[a],++a,$a.submitCheckbox(c.get_control(),c.get_questionID());a=0;for(b=$a.radioButtons;a<b.length;)c=b[a],++a,$a.submitRadioButton(c.get_control(),c.get_questionID())};$a.submitParts=function(a){a.shift();if(5<=a.length)for(;5<=a.length;){var b=a.shift(),c=a.shift(),d=a.shift(),e=a.shift(),f=a.shift(),h="";0<a.length&&(h=a.shift());var l=$a.find(d,"text");null!=l?$a.submitTextField(l.get_control(),b,c,e,f):sa.sendInteraction2(b,d,c,e,f,null,h)}else 1==a.length&&"submit"==a[0]&&$a.submitAll()};$a.submitTextField=
function(a,b,c,d,e,f){a=N.__cast(a,Bb);Gb.isEmpty(b)&&(b=a.get_name());null==c&&(c="text");a=a.get_text();sa.sendInteraction2(b,a,c,d,e,f)};$a.submitCheckbox=function(a,b,c){Gb.isEmpty(b)&&(b=J.getProperty(a,"name"));null==c&&(c="checkbox");a=J.getProperty(a,"checked");sa.sendInteraction2(b,a?"true":"false",c)};$a.submitRadioButton=function(a,b,c){Gb.isEmpty(b)&&(b=J.getProperty(a,"name"));null==c&&(c="checkbox");(a=J.getProperty(a,"checked"))&&sa.sendInteraction2(b,a?"true":"false",c)};$a.prototype=
{inputNode:null,quizManager:null,oldQuestionID:null,onChangeInputNode:function(){null==this.inputNode.get_source()&&(this.inputNode.updateControl(),H.insideJackDaw&&(this.updateQuizQuestion(),this.updateJackdawLabel()))},updateQuizQuestion:function(){if(null==this.inputNode.get_source()&&!Gb.isEmpty(this.inputNode.get_questionID())&&this.inputNode.get_questionID()!=this.oldQuestionID){var a=ze.TYPE_STRINGS[1],b=this.inputNode.get_questionID();a=this.quizManager.getOrCreateQuiz(a,"INPUTNODES").getOrCreateQuestion({id:null!=
this.oldQuestionID?this.oldQuestionID:b,title:"true/false",type:a,text:this.inputNode.get_label(),qType:"TF",answers:fc.TASK_ANSWERS(["true","false"])});null!=this.oldQuestionID&&a.set_id(b);this.oldQuestionID=b;this.inputNode.set_questionID(b)}},createTextField:function(a){var b=a.get_control();this.setTextFieldStyle(b,a);if(H.insideJackDaw)N.__cast(b,Bb).set_selectable(!1);else{var c=Gb.isEmpty(a.get_questionID())?"":this.getInputValue(a.get_questionID());this.setTextFieldValue(b,c);$a.setTopInput(a)}$a.textFields.push(a)},
setTextFieldValue:function(a,b){J.setProperty(a,"text",b)},createCheckbox:function(a){var b=a.get_control();if(H.insideJackDaw)N.__cast(b,ie).disable();else{var c=!Gb.isEmpty(a.get_questionID())&&"true"==this.getInputValue(a.get_questionID());this.setCheckboxChecked(b,c);$a.setTopInput(a)}$a.checkboxes.push(a)},setCheckboxChecked:function(a,b){Object.prototype.hasOwnProperty.call(a,"checkClick")?a.checkClick(b):J.setProperty(a,"checked",b)},createRadioButton:function(a){var b=a.get_control();if(H.insideJackDaw)N.__cast(b,
ie).disable();else{var c=!Gb.isEmpty(a.get_questionID())&&"true"==this.getInputValue(a.get_questionID());this.setRadioValue(b,c);$a.setTopInput(a)}$a.radioButtons.push(a)},setRadioValue:function(a,b){Object.prototype.hasOwnProperty.call(a,"checkClick")?a.checkClick(b):J.setProperty(a,"checked",b)},getInputValue:function(a){a=sa.getInteraction(a);return null!=a?a.value:""},setTextFieldStyle:function(a,b){if(null!=b.get_source()){var c=b.parent;null!=c&&(a.set_x(c.x+b.x),a.set_y(c.y+b.y))}a.set_width(null!=
b.get_width()?b.get_width():100);a.set_height(null!=b.get_height()?b.get_height():18);a.set_border(0<b.borderSize);a.set_borderColor(b.borderColor);a.setTextFormat(b.getTextFormat())},initializeJackdaw:function(){if(null==this.inputNode.get_source()){var a=this.inputNode.get_control(),b=this.inputNode.get_fast();if(b.nodeType==z.Document)b="Document";else{if(b.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":V.toString(b.nodeType)));b=b.nodeName}Db.set(a,
Ya.wrapTagName(b));Ya.options.onUpdate.add(k(this,this.updateJackdawLabel));this.updateJackdawLabel()}},updateJackdawLabel:function(){if(null==this.inputNode.get_source())if(Ya.options.get_previewMode())Fb.clearLabel(this.inputNode.get_control());else{if(null!=this.inputNode.get_width()&&null!=this.inputNode.get_height())var a=Fb.scaleBounds(new ha(0,0,this.inputNode.get_width(),this.inputNode.get_height()),this.inputNode.get_control());else a=Fb.getBounds(this.inputNode.get_control()),a.width+=40/
N.__cast(this.inputNode.get_control(),ka).get_scaleX();var b=this.inputNode.get_control(),c=this.inputNode.get_fast();if(c.nodeType==z.Document)c="Document";else{if(c.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element but found "+(null==c.nodeType?"null":V.toString(c.nodeType)));c=c.nodeName}Fb.drawLabel(b,c,a)}},__class__:$a};var Zf=function(){this._pendingVideoCommands=[];this._pendingSoundCommands=[];this._playProgress=this._downloadProgress=NaN;this._buttonsIsSetup=this._mouseOverVideo=
!1;this.progressBarAlwaysOn=!0;this.keepAspectRatio=this.controlButtonsEnabled=!1;L.call(this);this.soundController=new pp;this.soundController.get_signals().get_load().add(k(this,this.onSoundLoaded));this.soundController.get_signals().get_error().add(k(this,this.onSoundLoadError));this.videoController=new qp;this.videoController.get_signals().get_load().add(k(this,this.onVideoLoaded));this.videoController.get_signals().get_play().add(k(this,this.onVideoPlay));this.videoController.get_signals().get_pause().add(k(this,
this.onVideoPause));this.videoController.get_signals().get_stop().add(k(this,this.onVideoStopped));this.videoController.get_signals().get_error().add(k(this,this.onVideoError))};g["room.services.MediaPlayer"]=Zf;Zf.__name__="room.services.MediaPlayer";Zf.isAudio=function(a){return-1<a.indexOf(".ogg")||-1<a.indexOf(".mp3")?!0:-1<a.indexOf(".aac")};Zf.isWebM=function(a){return(new fa("\\.webm$","i")).match(a)};Zf.__super__=L;Zf.prototype=r(L.prototype,{soundController:null,videoController:null,playBtn:null,
pauseBtn:null,rewindBtn:null,seekBar:null,keepAspectRatio:null,controlButtonsEnabled:null,progressBarAlwaysOn:null,_buttonsIsSetup:null,_mouseOverVideo:null,_video:null,_playProgress:null,_downloadProgress:null,_pendingSoundCommands:null,_pendingVideoCommands:null,_soundListener:null,_videoListener:null,_signals:null,get_video:function(){return this._video},set_video:function(a){this._video=a;this.videoController.set_video(this._video);this.addVideoMouse();return this._video},onSoundLoaded:function(){this.executePendingCommands(this._pendingSoundCommands);
this.dispatchEvent(new W("pendingSoundCommandsExecuted"));this.get_signals().get_soundLoaded().dispatch()},onSoundLoadError:function(a){this.dispatchEvent(new W("LOADING_ERROR"))},onVideoLoaded:function(){var a=1,b=this.get_video().fixTransparency?this.videoController.get_videoInfo().height/2:this.videoController.get_videoInfo().height;null==this.videoWidth&&(null!=this.videoHeight&&(a=this.videoHeight/b),this.set_videoWidth(this.videoController.get_videoInfo().width*a));null==this.videoHeight&&(a=
this.videoWidth/this.videoController.get_videoInfo().width,this.set_videoHeight(this.videoController.get_videoInfo().height*a));this.setVideoSize(this.videoWidth,this.videoHeight);this.executePendingCommands(this._pendingVideoCommands);this.dispatchEvent(new W("pendingVideoCommandsExecuted"));this.controlButtonsEnabled&&!this._buttonsIsSetup&&(this.setupButtons(),Uc.get_autoPlay()&&this.videoController.get_autoPlay()||this.playBtn.set_visible(!this.videoController.get_isPlaying()));this.get_signals().get_videoLoaded().dispatch()},
executePendingCommands:function(a){for(;0<a.length;)a.splice(0,1)[0]()},onVideoStopped:function(){this._buttonsIsSetup&&(this.rewindBtn.set_visible(!0),this.playBtn.set_visible(!1),this.pauseBtn.set_visible(!1),this.progressBar.set_width(0))},onVideoError:function(a){this.videoController.unload();this._pendingSoundCommands=[];this._pendingVideoCommands=[];this.removeVideoListener();this._downloadProgress=this._playProgress=NaN;this.get_signals().get_videoError().dispatch()},setVideoSize:function(a,
b){this.set_videoWidth(a);this.set_videoHeight(b);this.playBtn.set_x(this.videoWidth/2);this.playBtn.set_y(this.videoHeight/2);this.pauseBtn.set_x(this.videoWidth/2);this.pauseBtn.set_y(this.videoHeight/2);this.rewindBtn.set_x(this.videoWidth/2);this.rewindBtn.set_y(this.videoHeight/2);this.seekBar.set_x(0);this.seekBar.set_y(this.videoHeight-.5);this.seekBar.set_width(this.videoWidth);this.progressBar.set_x(0);this.progressBar.set_y(this.seekBar.get_y());this.progressBar.set_width(0);this.videoController.get_isLoaded()&&
this.updateProgressBar();this.timeLabel.set_y(this.progressBar.get_y()+(this.progressBar.get_height()-this.timeLabel.get_height())/2);this.get_signals().get_videoSizeChange().dispatch(this.videoWidth,this.videoHeight)},videoWidth:null,set_videoWidth:function(a){this.get_video().set_width(this.videoWidth=a);if(this.keepAspectRatio){var b=this.get_aspectRatio();b=!isNaN(b)}else b=!1;b&&(this.keepAspectRatio=!1,this.set_videoHeight(this.get_video().get_width()/this.get_aspectRatio()),this.keepAspectRatio=
!0);return a},videoHeight:null,set_videoHeight:function(a){this.get_video().set_height(this.videoHeight=a);if(this.keepAspectRatio){var b=this.get_aspectRatio();b=!isNaN(b)}else b=!1;b&&(this.keepAspectRatio=!1,this.set_videoWidth(this.get_video().get_height()*this.get_aspectRatio()),this.keepAspectRatio=!0);return a},aspectRatio:null,get_aspectRatio:function(){return this.videoWidth/this.videoHeight},playVideo:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!1);var e=Zf.isWebM(a);this.get_video().set_fixTransparency(!e&&
d||e&&!Uc.get_WebMAlpha());!e||!this.get_video().fixTransparency&&Uc.get_WebM()||(a=a.replace(/\.webm$/i,".mp4"));this.videoController.set_autoPlay(c);this.clearVideo();this.videoController.load(a,b);this.destroyButtons();this.removeSoundListener();this.removeVideoListener();this.addVideoListener();this.controlButtonsEnabled&&(this.hideButtons(),"always"==H.xmlData.video.showProgress||this.progressBarAlwaysOn||this.hideProgress())},clearVideo:function(){null!=this.get_video()&&this.get_video().clear()},
removeSoundListener:function(){null!=this._soundListener&&(this._soundListener.stop(),this._soundListener=null)},addSoundListener:function(){this._soundListener=new Qb(1E3);this._soundListener.run=k(this,this.watchSoundProgress)},removeVideoListener:function(){null!=this._videoListener&&(this._videoListener.stop(),this._videoListener=null)},addVideoListener:function(){this._videoListener=new Qb(40);this._videoListener.run=k(this,this.videoEnterFrameHandler)},playAudio:function(a,b){null==b&&(b=!1);
this.clearVideo();this.soundController.set_autoPlay(b);this.soundController.load(a);this.destroyButtons();this.removeVideoListener();this.removeSoundListener();this.addSoundListener();this.controlButtonsEnabled&&(this.hideButtons(),this.hideProgress())},mute:function(){this.soundController.get_hasMedia()&&this.muteAudio();this.videoController.get_hasMedia()&&this.muteVideo()},unmute:function(){this.soundController.get_hasMedia()&&this.unmuteAudio();this.videoController.get_hasMedia()&&this.unmuteVideo()},
watchSoundProgress:function(){try{var a=isNaN(this._playProgress)?"":Lh.toFixed(this._playProgress,3);this._playProgress=this.soundController.get_position()/this.soundController.get_length();var b=Lh.toFixed(this._playProgress,3);a!=b&&this.dispatchEvent(new Df("playProgress",!1,!1,this.soundController.get_position(),this.soundController.get_length()))}catch(c){a=u.caught(c),Ub.trace("error watching sound progress: "+B.string(a),{fileName:"Source/room/services/MediaPlayer.hx",lineNumber:339,className:"room.services.MediaPlayer",
methodName:"watchSoundProgress"}),this.removeSoundListener()}},watchPlayProgress:function(){if(this.videoController.get_isLoaded()){var a=isNaN(this._playProgress)?"":Lh.toFixed(this._playProgress,3);this._playProgress=this.videoController.get_position()/this.videoController.get_length();var b=Lh.toFixed(this._playProgress,3);a!=b&&this.dispatchEvent(new Df("playProgress",!1,!1,1E3*this.videoController.get_position(),1E3*this.videoController.get_length()))}},watchDownloadProgress:function(){if(this.videoController.get_isLoaded()){var a=
isNaN(this._downloadProgress)?"":Lh.toFixed(this._downloadProgress,3);this._downloadProgress=this.videoController.get_ns().bytesTotal/this.videoController.get_ns().bytesLoaded;var b=Lh.toFixed(this._downloadProgress,3);a!=b&&this.dispatchEvent(new Df("progress",!1,!1,this.videoController.get_ns().bytesLoaded,this.videoController.get_ns().bytesTotal))}},watchStreamProgress:function(){if(this.videoController.get_isLoaded()){var a=Math.min(this.videoController.get_length(),this.videoController.get_ns().time+
this.videoController.get_ns().bufferLength),b=Lh.toFixed(this._downloadProgress,3);this._downloadProgress=a/this.videoController.get_length();var c=Lh.toFixed(this._downloadProgress,3);b!=c&&this.dispatchEvent(new Df("progress",!1,!1,1E3*a,1E3*this.videoController.get_length()))}},pause:function(){this.soundController.get_hasMedia()&&this.pauseAudio();this.videoController.get_hasMedia()&&this.pauseVideo()},pauseAudio:function(){if(this.soundController.get_isLoaded())this.soundController.pause();else{var a=
this;this._pendingSoundCommands.push(function(){a.pauseAudio()})}},pauseVideo:function(){if(this.videoController.get_isLoaded())this.videoController.pause();else{var a=this;this._pendingVideoCommands.push(function(){a.pauseVideo()})}},muteAudio:function(){if(this.soundController.get_isLoaded())this.soundController.mute();else{var a=this;this._pendingSoundCommands.push(function(){a.muteAudio()})}},muteVideo:function(){if(this.videoController.get_isLoaded())this.videoController.mute();else{var a=this;
this._pendingVideoCommands.push(function(){a.muteVideo()})}},unmuteAudio:function(){if(this.soundController.get_isLoaded())this.soundController.unmute();else{var a=this;this._pendingSoundCommands.push(function(){a.unmuteAudio()})}},unmuteVideo:function(){if(this.videoController.get_isLoaded())this.videoController.unmute();else{var a=this;this._pendingVideoCommands.push(function(){a.unmuteVideo()})}},resume:function(){this.soundController.get_hasMedia()&&this.resumeAudio();this.videoController.get_hasMedia()&&
this.resumeVideo()},resumeAudio:function(){if(this.soundController.get_isLoaded())this.soundController.play();else{var a=this;this._pendingSoundCommands.push(function(){a.resumeAudio()})}},resumeVideo:function(){if(this.videoController.get_isLoaded())this.videoController.play();else{var a=this;this._pendingVideoCommands.push(function(){a.resumeVideo()})}},togglePause:function(){this.soundController.get_hasMedia();this.videoController.get_hasMedia()&&this.togglePauseVideo()},togglePauseVideo:function(){if(this.videoController.get_isLoaded())this.videoController.togglePause();
else{var a=this;this._pendingVideoCommands.push(function(){a.togglePauseVideo()})}},seek:function(a){this.soundController.get_hasMedia()?this.seekSound(a):this.seekVideo(a)},seekSound:function(a){if(this.soundController.get_isLoaded())this.soundController.seek(a);else{var b=this;this._pendingSoundCommands.push(function(){b.seekSound(a)})}},seekVideo:function(a){if(this.videoController.get_isLoaded())this.videoController.seek(a);else{var b=this;this._pendingVideoCommands.push(function(){b.seekVideo(a)})}},
close:function(){this.soundController.get_hasMedia()&&this.soundController.unload();this.videoController.get_hasMedia()&&this.videoController.unload();this._pendingSoundCommands=[];this._pendingVideoCommands=[];this.removeSoundListener();this.removeVideoListener();this.destroyButtons();this._downloadProgress=this._playProgress=NaN},closed:null,get_closed:function(){return this.soundController.get_hasMedia()?!this.videoController.get_hasMedia():!0},videoEnterFrameHandler:function(){this.videoController.get_isLoaded()||
this.get_video().clear();this.videoController.get_isStream()?this.watchStreamProgress():this.watchDownloadProgress();this.watchPlayProgress();this._buttonsIsSetup&&this.updateProgressBar()},set_controlButtonsEnabled:function(a){if(a){if(this.videoController.get_isLoaded()||this.soundController.get_isLoaded())this.setupButtons(),this.showButtons()}else this.destroyButtons(),this.controlButtonsEnabled&&(this.hideButtons(),this.hideProgress());return this.controlButtonsEnabled=a},setupButtons:function(){this._buttonsIsSetup=
!0;this.playBtn.addEventListener("click",k(this,this.onClickPlay));this.pauseBtn.addEventListener("click",k(this,this.onClickPause));this.rewindBtn.addEventListener("click",k(this,this.onClickRewind));this.seekBar.addEventListener("click",k(this,this.onClickSeek));this.progressBar.mouseEnabled=!1;this.timeLabel.mouseEnabled=!1;this.addVideoMouse()},destroyButtons:function(){this._buttonsIsSetup&&(this.playBtn.removeEventListener("click",k(this,this.onClickPlay)),this.pauseBtn.removeEventListener("click",
k(this,this.onClickPause)),this.rewindBtn.removeEventListener("click",k(this,this.onClickRewind)),this.seekBar.removeEventListener("click",k(this,this.onClickSeek)));this.controlButtonsEnabled&&(this.progressBar.mouseEnabled=!0,this.timeLabel.mouseEnabled=!0);this.removeVideoMouse();this._buttonsIsSetup=!1},showButtons:function(){this.rewindBtn.set_visible(!this.videoController.get_isPlaying());this.pauseBtn.set_visible(this.videoController.get_isPlaying())},hideButtons:function(){this.playBtn.set_visible(!1);
this.pauseBtn.set_visible(!1);this.rewindBtn.set_visible(!1)},hideProgress:function(){this.seekBar.set_visible(!1);this.progressBar.set_visible(!1);this.timeLabel.set_visible(!1)},addVideoMouse:function(){null!=this.get_video()&&null!=this.get_video().parent&&(this.get_video().parent.addEventListener("mouseOut",k(this,this.onVideoOut)),this.get_video().parent.addEventListener("mouseOver",k(this,this.onVideoOver)))},removeVideoMouse:function(){null!=this.get_video()&&null!=this.get_video().parent&&
(this.get_video().parent.removeEventListener("mouseOut",k(this,this.onVideoOut)),this.get_video().parent.removeEventListener("mouseOver",k(this,this.onVideoOver)))},onClickRewind:function(a){this.rewindBtn.set_visible(!1);this.videoController.get_hasMedia()&&this.videoController.rewind();this.soundController.get_hasMedia()&&this.soundController.rewind()},onClickSeek:function(a){a=a.localX*this.seekBar.get_scaleX()/this.seekBar.get_width();this.videoController.get_hasMedia()&&this.videoController.seek(a*
this.videoController.get_length());this.soundController.get_hasMedia()&&this.soundController.seek(a*this.soundController.get_length())},onVideoOver:function(a){this._mouseOverVideo=!0;this.pauseBtn.set_visible(this.videoController.get_isPlaying());"always"!=H.xmlData.video.showProgress&&(a=0<this.videoController.get_length(),this.seekBar.set_visible(a),this.progressBar.set_visible(a),this.timeLabel.set_visible(a))},onVideoOut:function(a){this._mouseOverVideo=!1;this.pauseBtn.set_visible(!1);"always"!=
H.xmlData.video.showProgress&&(this.seekBar.set_visible(!1),this.progressBar.set_visible(!1),this.timeLabel.set_visible(!1))},onClickPlay:function(a){this.resume()},onClickPause:function(a){this.pause()},onVideoPlay:function(){if(this._buttonsIsSetup&&(this.rewindBtn.set_visible(!1),this.playBtn.set_visible(!1),this.pauseBtn.set_visible(this._mouseOverVideo),"always"!=H.xmlData.video.showProgress)){var a=this._mouseOverVideo&&0<this.videoController.get_length();this.seekBar.set_visible(a);this.progressBar.set_visible(a);
this.timeLabel.set_visible(a)}},onVideoPause:function(){this._buttonsIsSetup&&(this.rewindBtn.set_visible(!1),this.playBtn.set_visible(!0),this.pauseBtn.set_visible(!1))},updateProgressBar:function(){if(null!=this.videoController.get_position()&&0<this.videoController.get_length()){this.progressBar.set_width(this.videoController.get_position()/this.videoController.get_length()*Math.abs(this.get_video().get_width()));var a=3600<=this.videoController.get_length();this.timeLabel.set_text(Ng.formatTime(this.videoController.get_position()|
0,a)+" / "+Ng.formatTime(this.videoController.get_length()|0,a))}},hasSound:null,get_hasSound:function(){return this.soundController.get_hasMedia()},hasVideo:null,get_hasVideo:function(){return this.videoController.get_hasMedia()},isStopped:null,get_isStopped:function(){var a=!1;this.videoController.get_hasMedia()&&!this.videoController.get_isPlaying()?a=!0:this.soundController.get_hasMedia()&&!this.soundController.get_isPlaying()&&(a=!0);return a},videoPosition:null,get_videoPosition:function(){return this.videoController.get_position()},
videoInfo:null,get_videoInfo:function(){return this.videoController.get_videoInfo()},soundPosition:null,get_soundPosition:function(){return this.soundController.get_position()},progressBar:null,set_progressBar:function(a){a.set_width(0);return this.progressBar=a},timeLabel:null,set_timeLabel:function(a){a.set_text("");return this.timeLabel=a},signals:null,get_signals:function(){null==this._signals&&(this._signals=new gs);return this._signals},__class__:Zf,__properties__:{get_signals:"get_signals",
set_timeLabel:"set_timeLabel",set_progressBar:"set_progressBar",get_soundPosition:"get_soundPosition",get_videoInfo:"get_videoInfo",get_videoPosition:"get_videoPosition",get_isStopped:"get_isStopped",get_hasVideo:"get_hasVideo",get_hasSound:"get_hasSound",get_closed:"get_closed",get_aspectRatio:"get_aspectRatio",set_videoHeight:"set_videoHeight",set_videoWidth:"set_videoWidth",set_video:"set_video",get_video:"get_video",set_controlButtonsEnabled:"set_controlButtonsEnabled"}});var rk=function(a,b,
c,d,e,f,h){null==h&&(h=20);null==f&&(f=!0);null==c&&(c="vertical");this._thumbOriginalBounds=new ha;this._thumbDragBounds=new ha;this._thumbBounds=new ha;this._thumbInitPosition=new ab;this._mouseInitPosition=new ab;this.tweenDuration=.2;this.repeatInterval=10;this.initialRepeatInterval=500;this.lineSize=20;L.call(this);this.lineSize=h;this._direction=c;this._scaleThumb=f;this._target=a;this._thumb=d;this.assignPropStrings();this.set_targetBounds(this._target.getBounds(null!=this._target.parent?this._target.parent:
this._target));this.set_targetDragBounds(b);null!=this._target.stage?this.targetAddedToStageHandler():this._target.addEventListener("addedToStage",k(this,this.targetAddedToStageHandler));null!=this._thumb&&(this._thumbOriginalBounds=this._thumb.getBounds(null!=this._thumb.parent?this._thumb.parent:this._thumb),this._thumbBounds=this._thumbOriginalBounds.clone(),e instanceof ka?this._thumbDragBounds=e.getBounds(null!=this._thumb.parent?this._thumb.parent:this._thumb):e instanceof ha?this._thumbDragBounds=
e.clone():Ub.trace("thumbDragBounds param must be a DisplayObject or Rectangle",{fileName:"Source/room/services/ScrollBarController.hx",lineNumber:87,className:"room.services.ScrollBarController",methodName:"new"}),J.getProperty(this._thumbBounds,this._propSize)>=J.getProperty(e,this._propSize)&&J.setProperty(this._thumbBounds,this._propSize,0),null!=this._thumb.stage?this.thumbAddedToStageHandler():this._thumb.addEventListener("addedToStage",k(this,this.thumbAddedToStageHandler)))};g["room.services.ScrollBarController"]=
rk;rk.__name__="room.services.ScrollBarController";rk.__super__=L;rk.prototype=r(L.prototype,{lineSize:null,initialRepeatInterval:null,repeatInterval:null,tweenDuration:null,_direction:null,_scaleThumb:null,_target:null,_thumb:null,_stage:null,_propPosition:null,_propSize:null,_scrollRatio:null,_scrollOffset:null,_mouseInitPosition:null,_thumbInitPosition:null,_thumbBounds:null,_thumbDragBounds:null,_thumbOriginalBounds:null,_repeatTimer:null,targetBounds:null,set_targetBounds:function(a){a instanceof
ha?this.targetBounds=a:Ub.trace("targetBounds param must be a Rectangle",{fileName:"Source/room/services/ScrollBarController.hx",lineNumber:109,className:"room.services.ScrollBarController",methodName:"set_targetBounds"});this.checkDestroy();return this.targetBounds},targetDragBounds:null,set_targetDragBounds:function(a){a instanceof ka?this.targetDragBounds=a.getBounds(null!=this._target.parent?this._target.parent:this._target):a instanceof ha?this.targetDragBounds=a.clone():Ub.trace("scrollBounds param must be a DisplayObject or Rectangle",
{fileName:"Source/room/services/ScrollBarController.hx",lineNumber:124,className:"room.services.ScrollBarController",methodName:"set_targetDragBounds"});this.checkDestroy();return this.targetDragBounds},direction:null,get_direction:function(){return this._direction},scaleThumb:null,get_scaleThumb:function(){return this._scaleThumb},maxOffset:null,get_maxOffset:function(){return Math.abs(J.getProperty(this.targetBounds,this._propSize)-J.getProperty(this.targetDragBounds,this._propSize))},maxThumbOffset:null,
get_maxThumbOffset:function(){return Math.abs(J.getProperty(this._thumbDragBounds,this._propSize)-J.getProperty(this._thumbBounds,this._propSize))},get_scrollRatio:function(){return this._scrollRatio},set_scrollRatio:function(a){0>a?a=0:1<a&&(a=1);if(this._scrollRatio!=a){this._scrollRatio=a;var b=J.getProperty(this._thumbDragBounds,this._propPosition),c=J.getProperty(this.targetDragBounds,this._propPosition),d=J.getProperty(this.targetBounds,this._propPosition);J.setProperty(this._thumbBounds,this._propPosition,
b+this.get_maxThumbOffset()*this._scrollRatio);J.setProperty(this.targetBounds,this._propPosition,c-this.get_maxOffset()*this._scrollRatio);this._scrollOffset=Math.abs(c-d);this.updateFromBounds()}return a},get_scrollOffset:function(){return this._scrollOffset},set_scrollOffset:function(a){if(this._scrollOffset!=a){var b=this.get_scrollRatio()+(this._scrollOffset-a)/(J.getProperty(this.targetBounds,this._propSize)-J.getProperty(this.targetDragBounds,this._propSize));va.tween(this,this.tweenDuration,
{scrollRatio:b})}return a},upArrow:null,set_upArrow:function(a){null!=this.upArrow&&this.upArrow.removeEventListener("mouseDown",k(this,this.upMouseDownHandler));this.upArrow=a;null!=this.upArrow&&this.upArrow.addEventListener("mouseDown",k(this,this.upMouseDownHandler));return this.upArrow},downArrow:null,set_downArrow:function(a){null!=this.downArrow&&this.downArrow.removeEventListener("mouseDown",k(this,this.downMouseDownHandler));this.downArrow=a;null!=this.downArrow&&this.downArrow.addEventListener("mouseDown",
k(this,this.downMouseDownHandler));return this.downArrow},checkDestroy:function(){J.getProperty(this.targetBounds,this._propSize)<=J.getProperty(this.targetDragBounds,this._propSize)&&this.destroy()},destroy:function(){null!=this.upArrow&&this.upArrow.removeEventListener("mouseDown",k(this,this.upMouseDownHandler));null!=this.downArrow&&this.downArrow.removeEventListener("mouseDown",k(this,this.downMouseDownHandler));null!=this._thumb&&this._thumb.removeEventListener("mouseDown",k(this,this.thumbMouseDownHandler));
null!=this._stage&&(this._stage.removeEventListener("mouseUp",k(this,this.stageMouseUpHandler)),this._stage.removeEventListener("mouseMove",k(this,this.stageMouseMoveHandler)),this._stage.removeEventListener("mouseWheel",k(this,this.stageMouseWheelHandler)),this._stage.removeEventListener("mouseDown",k(this,this.stageMouseDownHandler)));this._thumb=this._target=this._stage=null;this.set_upArrow(null);this.set_downArrow(null)},initialize:function(){this.set_scrollRatio(0)},updateFromBounds:function(){J.setProperty(this._target,
this._propPosition,J.getProperty(this.targetBounds,this._propPosition));null!=this._thumb&&J.setProperty(this._thumb,this._propPosition,J.getProperty(this._thumbBounds,this._propPosition))},assignPropStrings:function(){"vertical"==this._direction?(this._propPosition="y",this._propSize="height"):(this._propPosition="x",this._propSize="width")},targetAddedToStageHandler:function(a){this.removeEventListener("addedToStage",k(this,this.targetAddedToStageHandler));this._target.addEventListener("removedFromStage",
k(this,this.targetRemovedFromStage));this._stage=this._target.stage;this._target.stage.addEventListener("mouseWheel",k(this,this.stageMouseWheelHandler));this._target.stage.addEventListener("mouseDown",k(this,this.stageMouseDownHandler))},targetRemovedFromStage:function(a){null!=this._target&&(this._target.removeEventListener("removedFromStage",k(this,this.targetRemovedFromStage)),null!=this._target.stage&&(this._target.stage.removeEventListener("mouseWheel",k(this,this.stageMouseWheelHandler)),this._target.stage.removeEventListener("mouseDown",
k(this,this.stageMouseDownHandler))))},thumbAddedToStageHandler:function(a){this.removeEventListener("addedToStage",k(this,this.thumbAddedToStageHandler));this._thumb.addEventListener("removedFromStage",k(this,this.thumbRemovedFromStage));this._stage=this._thumb.stage;this._thumb.addEventListener("mouseDown",k(this,this.thumbMouseDownHandler))},thumbRemovedFromStage:function(a){null!=this._thumb&&(this._thumb.removeEventListener("removedFromStage",k(this,this.thumbRemovedFromStage)),this._thumb.removeEventListener("mouseDown",
k(this,this.thumbMouseDownHandler)))},upMouseDownHandler:function(a){var b=this;this.set_scrollOffset(this.get_scrollOffset()+this.lineSize);null!=this._repeatTimer&&this._repeatTimer.stop();this._repeatTimer=Qb.delay(function(){b.upMouseDownHandler()},null!=a?this.initialRepeatInterval:this.repeatInterval);this.upArrow.stage.addEventListener("mouseUp",k(this,this.stageMouseUpHandler))},downMouseDownHandler:function(a){var b=this;this.set_scrollOffset(this.get_scrollOffset()-this.lineSize);null!=
this._repeatTimer&&this._repeatTimer.stop();this._repeatTimer=Qb.delay(function(){b.downMouseDownHandler()},null!=a?this.initialRepeatInterval:this.repeatInterval);this.downArrow.stage.addEventListener("mouseUp",k(this,this.stageMouseUpHandler))},stageMouseDownHandler:function(a){if(this._thumbDragBounds.contains(this._thumb.parent.get_mouseX(),this._thumb.parent.get_mouseY())&&(null==this._thumb||!this._thumb.hitTestPoint(this._thumb.parent.get_mouseX(),this._thumb.parent.get_mouseY()))){a=J.getProperty(this._thumbDragBounds,
this._propPosition)+J.getProperty(this._thumbDragBounds,this._propSize)-J.getProperty(this._thumbBounds,this._propSize);var b=J.getProperty(this._thumb.parent,"mouse"+this._propPosition.toUpperCase())-J.getProperty(this._thumbBounds,this._propSize)/2;b<J.getProperty(this._thumbDragBounds,this._propPosition)?b=J.getProperty(this._thumbDragBounds,this._propPosition):b>a&&(b=a);a=(b-J.getProperty(this._thumbDragBounds,this._propPosition))/(a-J.getProperty(this._thumbDragBounds,this._propPosition));va.tween(this,
this.tweenDuration,{scrollRatio:a});J.setProperty(this._thumbBounds,this._propPosition,J.getProperty(this._thumb.parent,"mouse"+this._propPosition.toUpperCase())-J.getProperty(this._thumbBounds,this._propSize)/2);this.thumbMouseDownHandler()}},stageMouseWheelHandler:function(a){this.targetDragBounds.contains(this._target.parent.get_mouseX(),this._target.parent.get_mouseY())&&this.set_scrollOffset(this.get_scrollOffset()+this.lineSize*a.delta)},thumbMouseDownHandler:function(a){this._thumbInitPosition.x=
this._thumbBounds.x;this._thumbInitPosition.y=this._thumbBounds.y;this._mouseInitPosition.x=this._thumb.parent.get_mouseX();this._mouseInitPosition.y=this._thumb.parent.get_mouseY();this._thumb.stage.addEventListener("mouseUp",k(this,this.stageMouseUpHandler));this._thumb.stage.addEventListener("mouseMove",k(this,this.stageMouseMoveHandler))},stageMouseMoveHandler:function(a){a=J.getProperty(this._thumbDragBounds,this._propPosition)+J.getProperty(this._thumbDragBounds,this._propSize)-J.getProperty(this._thumbBounds,
this._propSize);var b=new ab(this._thumb.parent.get_mouseX()-this._mouseInitPosition.x,this._thumb.parent.get_mouseY()-this._mouseInitPosition.y);a=(J.getProperty(this._thumbInitPosition,this._propPosition)+J.getProperty(b,this._propPosition)-J.getProperty(this._thumbDragBounds,this._propPosition))/(a-J.getProperty(this._thumbDragBounds,this._propPosition));va.tween(this,this.tweenDuration,{scrollRatio:a})},stageMouseUpHandler:function(a){null!=this._repeatTimer&&this._repeatTimer.stop();this._thumb.stage.removeEventListener("mouseUp",
k(this,this.stageMouseUpHandler));this._thumb.stage.removeEventListener("mouseMove",k(this,this.stageMouseMoveHandler))},__class__:rk,__properties__:{set_downArrow:"set_downArrow",set_upArrow:"set_upArrow",set_scrollOffset:"set_scrollOffset",get_scrollOffset:"get_scrollOffset",set_scrollRatio:"set_scrollRatio",get_scrollRatio:"get_scrollRatio",get_maxThumbOffset:"get_maxThumbOffset",get_maxOffset:"get_maxOffset",get_scaleThumb:"get_scaleThumb",get_direction:"get_direction",set_targetDragBounds:"set_targetDragBounds",
set_targetBounds:"set_targetBounds"}});var Yc=function(){};g["room.services.Security"]=Yc;Yc.__name__="room.services.Security";Yc.extractSecurityNumber=function(a){for(var b="",c=0,d=a.length;c<d;){var e=c++;e=a.charAt(e);Yc.isNumberChar(e)&&(b+=e)}return B.parseInt(b)};Yc.extractLicences=function(a){var b="";a=a.split("");b+=Yc.securityTransformNumber(a[0]);b+=Yc.securityTransformNumber(a[4]);b+=Yc.securityTransformNumber(a[1]);b+=Yc.securityTransformNumber(a[3]);return b+=Yc.securityTransformNumber(a[2])};
Yc.extractClientName=function(a){for(var b="",c=5,d=a.length;c<d;){var e=c++;e=a.charAt(e);b+=Yc.securityTransformLetter(e)}return b};Yc.securityTransformNumber=function(a){var b=Yc.securityInputNumbers.indexOf(a);return-1!=b?Yc.securityOutputNumbers[b]:a};Yc.securityTransformLetter=function(a){var b=Yc.securityInputLetters.indexOf(a);return-1!=b?Yc.securityOutputLetters[b]:a};Yc.securityTransformString=function(a){for(var b="",c=0,d=a.length;c<d;){var e=c++;b+=Yc.securityTransformLetter(a.charAt(e))}return b};
Yc.isNumberChar=function(a){return-1!=Yc.securityOutputNumbers.indexOf(a)};var gs=function(){this._signals=new da};g["room.signals.MediaPlayerSignalSet"]=gs;gs.__name__="room.signals.MediaPlayerSignalSet";gs.__super__=fd;gs.prototype=r(fd.prototype,{soundLoaded:null,get_soundLoaded:function(){return this.getSignal("soundLoaded")},videoLoaded:null,get_videoLoaded:function(){return this.getSignal("videoLoaded")},videoError:null,get_videoError:function(){return this.getSignal("videoError")},videoSizeChange:null,
get_videoSizeChange:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,"videoSizeChange")){var a=this._signals,b=new Je;a.h.videoSizeChange=b}return this._signals.h.videoSizeChange},__class__:gs,__properties__:{get_videoSizeChange:"get_videoSizeChange",get_videoError:"get_videoError",get_videoLoaded:"get_videoLoaded",get_soundLoaded:"get_soundLoaded"}});var Xr=function(){this._signals=new da};g["room.signals.sets.StateSignalSet"]=Xr;Xr.__name__="room.signals.sets.StateSignalSet";
Xr.__super__=fd;Xr.prototype=r(fd.prototype,{changeScreenIndex:null,get_changeScreenIndex:function(){return this.getSignal("changeScreenIndex")},changeTemplateStartIndex:null,get_changeTemplateStartIndex:function(){return this.getSignal("changeTemplateStartIndex")},changeMainScreenIndex:null,get_changeMainScreenIndex:function(){return this.getSignal("changeMainScreenIndex")},changeCanGoBack:null,get_changeCanGoBack:function(){return this.getSignal("changeCanGoBack")},changeCanGoForward:null,get_changeCanGoForward:function(){return this.getSignal("changeCanGoForward")},
changeHideTitleAndContent:null,get_changeHideTitleAndContent:function(){return this.getSignal("changeHideTitleAndContent")},changeMuteNarrator:null,get_changeMuteNarrator:function(){return this.getSignal("changeMuteNarrator")},changeVersion:null,get_changeVersion:function(){return this.getSignal("changeVersion")},changeNextScreenButtonPos:null,get_changeNextScreenButtonPos:function(){return this.getSignal("changeNextScreenButtonPos")},__class__:Xr,__properties__:{get_changeNextScreenButtonPos:"get_changeNextScreenButtonPos",
get_changeVersion:"get_changeVersion",get_changeMuteNarrator:"get_changeMuteNarrator",get_changeHideTitleAndContent:"get_changeHideTitleAndContent",get_changeCanGoForward:"get_changeCanGoForward",get_changeCanGoBack:"get_changeCanGoBack",get_changeMainScreenIndex:"get_changeMainScreenIndex",get_changeTemplateStartIndex:"get_changeTemplateStartIndex",get_changeScreenIndex:"get_changeScreenIndex"}});var cs=function(){this._signals=new da};g["room.signals.sets.VariablesSignalSet"]=cs;cs.__name__="room.signals.sets.VariablesSignalSet";
cs.__super__=fd;cs.prototype=r(fd.prototype,{change:null,get_change:function(){return this.getSignal("change")},__class__:cs,__properties__:{get_change:"get_change"}});var wp=function(){this._signals=new da};g["room.signals.sets.quiz.ManagerSignalSet"]=wp;wp.__name__="room.signals.sets.quiz.ManagerSignalSet";wp.__super__=fd;wp.prototype=r(fd.prototype,{changeSettings:null,get_changeSettings:function(){return this.getSignal("changeSettings")},beforeChangeData:null,get_beforeChangeData:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,
"beforeChangeData")){var a=this._signals,b=new pb;a.h.beforeChangeData=b}return this._signals.h.beforeChangeData},changeData:null,get_changeData:function(){return this.getSignal("changeData")},unload:null,get_unload:function(){return this.getSignal("unload")},__class__:wp,__properties__:{get_unload:"get_unload",get_changeData:"get_changeData",get_beforeChangeData:"get_beforeChangeData",get_changeSettings:"get_changeSettings"}});var es=function(){this._signals=new da};g["room.signals.sets.quiz.QuizAnswerSignalSet"]=
es;es.__name__="room.signals.sets.quiz.QuizAnswerSignalSet";es.__super__=fd;es.prototype=r(fd.prototype,{select:null,get_select:function(){return this.getSignal("select")},match:null,get_match:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,"match")){var a=this._signals,b=new Je;a.h.match=b}return this._signals.h.match},unmatch:null,get_unmatch:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,"unmatch")){var a=this._signals,b=new Je;a.h.unmatch=b}return this._signals.h.unmatch},
finish:null,get_finish:function(){return this.getSignal("finish")},focus:null,get_focus:function(){return this.getSignal("focus")},__class__:es,__properties__:{get_focus:"get_focus",get_finish:"get_finish",get_unmatch:"get_unmatch",get_match:"get_match",get_select:"get_select"}});var fs=function(){this._signals=new da};g["room.signals.sets.quiz.QuizQuestionSignalSet"]=fs;fs.__name__="room.signals.sets.quiz.QuizQuestionSignalSet";fs.__super__=fd;fs.prototype=r(fd.prototype,{change:null,changeTextAnswer:null,
selectAnswer:null,setCompleted:null,submit:null,showFullText:null,hideFullText:null,get_change:function(){return this.getSignal("change")},get_changeTextAnswer:function(){return this.getSignal("changeTextAnswer")},get_selectAnswer:function(){return this.getSignal("selectAnswer")},get_setCompleted:function(){return this.getSignal("setCompleted")},get_submit:function(){return this.getSignal("submit")},get_showFullText:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,"showFullText")){var a=
this._signals,b=new pb;a.h.showFullText=b}return this._signals.h.showFullText},get_hideFullText:function(){return this.getSignal("hideFullText")},__class__:fs,__properties__:{get_hideFullText:"get_hideFullText",get_showFullText:"get_showFullText",get_submit:"get_submit",get_setCompleted:"get_setCompleted",get_selectAnswer:"get_selectAnswer",get_changeTextAnswer:"get_changeTextAnswer",get_change:"get_change"}});var ds=function(){this._signals=new da};g["room.signals.sets.quiz.QuizSignalSet"]=ds;ds.__name__=
"room.signals.sets.quiz.QuizSignalSet";ds.__super__=fd;ds.prototype=r(fd.prototype,{sendQuestion:null,get_sendQuestion:function(){return this.getSignal("sendQuestion")},changeQuestionIndex:null,get_changeQuestionIndex:function(){return this.getSignal("changeQuestionIndex")},changeCorrectCount:null,get_changeCorrectCount:function(){return this.getSignal("changeCorrectCount")},changeIncorrectCount:null,get_changeIncorrectCount:function(){return this.getSignal("changeIncorrectCount")},start:null,get_start:function(){return this.getSignal("start")},
tick:null,get_tick:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,"tick")){var a=this._signals,b=new pb;a.h.tick=b}return this._signals.h.tick},maxTimeExpired:null,get_maxTimeExpired:function(){return this.getSignal("maxTimeExpired")},finish:null,get_finish:function(){return this.getSignal("finish")},__class__:ds,__properties__:{get_finish:"get_finish",get_maxTimeExpired:"get_maxTimeExpired",get_tick:"get_tick",get_start:"get_start",get_changeIncorrectCount:"get_changeIncorrectCount",
get_changeCorrectCount:"get_changeCorrectCount",get_changeQuestionIndex:"get_changeQuestionIndex",get_sendQuestion:"get_sendQuestion"}});var Oe=function(){};g["room.utils.RoomUtil"]=Oe;Oe.__name__="room.utils.RoomUtil";Oe.drawBorder=function(a,b){var c=a.getChildByName(Oe.VAR_BORDER);null!=c&&(a.removeChild(c),c=null);0<b.borderSize&&(c=new F,c.set_name(Oe.VAR_BORDER),c.get_graphics().lineStyle(b.borderSize,b.borderColor),c.get_graphics().beginFill(0,0),b=b.padding,c.get_graphics().drawRect(-b,-b,
a.get_width()+2*b,a.get_height()+2*b),c.get_graphics().endFill(),a.addChild(c));return c};Oe.removeTags=function(a){var b=/<[^>]*>/g;a=a.replace(b,"");b=/&amp;/g;a=a.replace(b,"&");b=/&nbsp;/g;a=a.replace(b," ");b=/&lt;/g;a=a.replace(b,"<");b=/&gt;/g;a=a.replace(b,">");b=/&quot;/g;a=a.replace(b,'"');b=/&apos;/g;return a=a.replace(b,"'")};Oe.drawBackground=function(a,b,c){var d=a.getChildByName(Oe.VAR_BG);null!=d&&(a.removeChild(d),d=null);if(b.hasBackground||0<b.borderSize){d=new F;d.set_name(Oe.VAR_BG);
0<b.borderSize&&d.get_graphics().lineStyle(b.borderSize,b.borderColor);var e=b.hasBackground?b.bgAlpha:0;d.get_graphics().beginFill(b.bgColor,e);b=b.padding;d.get_graphics().drawRect(-b,-b,c.get_width()+2*b,c.get_height()+2*b);d.get_graphics().endFill();a.addChild(d)}return d};var Hh=function(){};g["room.utils.StageUtil"]=Hh;Hh.__name__="room.utils.StageUtil";Hh.registerStage=function(a){if(null!=Hh._stage)throw u.thrown(new Fc("Stage is already registerd"));Hh._stage=a;Hh._stage.set_name("stage")};
Hh.globalToLocal=function(a,b){return(new Aa(1,0,0,1,a.get_x(),a.get_y())).transformPoint(b)};var sa=function(){};g["scorm.SCORM"]=sa;sa.__name__="scorm.SCORM";sa.__properties__={get_beginDate:"get_beginDate"};sa.initialize=function(a,b,c){Zb.get_available()?sa._interface=new Zb(a):sa._interface=null!=a?new fo(a):null!=b?new Gg(b,c,a):new sk(a);sa._beginDate=new Date;sa._interface.set_lastAccess(Af.toUTCString(sa._beginDate))};sa.getInterface=function(){return sa._interface};sa.loaded=function(){return sa._interface.get_loaded()};
sa.load=function(){sa._interface.load()};sa.get_beginDate=function(){return sa._beginDate};sa.getLessonStatus=function(){return sa._interface.get_lessonStatus()};sa.completeLesson=function(){sa._interface.set_lessonStatus("passed")};sa.getLessonLocation=function(){return B.parseInt(sa._interface.get_lessonLocation())};sa.getNewLessonLocation=function(){return sa._interface.get_newLessonLocation()};sa.setLessonLocation=function(a,b,c){null==c&&(c=!0);sa._interface.set_lessonLocation(null==a?"null":
""+a);null!=b&&c&&sa._interface.set_newLessonLocation(b)};sa.getVariable=function(a,b){a=sa._interface.getVariable(a);return isNaN(a)?b:a};sa.setVariable=function(a,b){sa._interface.setVariable(a,b)};sa.isAuthorized=function(){return sa._interface.get_isAuthorized()};sa.submitAssessment=function(){sa._interface.submitAssessment()};sa.submitQuizFail=function(){sa._interface.submitQuizFail()};sa.getInteraction=function(a){a=sa._interface.getInteraction(a);if(null!=a){a=decodeURIComponent(a.split("+").join(" "));
var b=new fa("^\\[([^\\]]+)\\]","");if(b.match(a))return{time:b.matched(1),value:a.replace(b.r,"")}}return null};sa.callRest=function(a,b,c,d){sa._interface.callRest(a,b,c,d)};sa.learningRes=function(a,b){a?sa.callRest("resources/add","POST",{names:b}):sa.callRest("resources/remove","POST",{names:b})};sa.sendInteraction=function(a){for(var b=";",c=0;c<a.length;){var d=a[c];++c;b+=encodeURIComponent(d)+";"}b=b.substring(0,b.length-1);sa._interface.sendInteraction(b)};sa.sendInteraction2=function(a,
b,c,d,e,f,h){null==d&&(d="neutral");null==e&&(e="10");null==f&&(f="text"==c?"fill-in":"true-false");var l=new Date,m=sa.get_beginDate().getTime(),g=l.getTime();m=sa.getFormattedTime(g-m);sa.sendInteraction([G.dateStr(l),a,h,f,c,b,d,e,m])};sa.sendScore=function(a){sa._interface.set_score(a)};sa.commit=function(a){sa._interface.commit(a)};sa.getFormattedTime=function(a){var b=Math.floor(a/1E3),c=Math.floor(b/60);a=Gb.formatTime(Math.floor(c/60)%24,c%60,b%60,a%1E3|0);return a=a.substring(0,a.length-
2)};sa.getStudentName=function(){return sa._interface.get_studentName()};sa.getLessonMode=function(){return sa._interface.get_lessonMode()};sa.getQuizFails=function(){return sa._interface.get_quizFails()};sa.getMaxQuizFails=function(){return sa._interface.get_maxQuizFails()};sa.prototype={__class__:sa};var Ia=function(a){this._loaded=!1;this._scoId=a;this._messageProxy=H.messageProxy;this._messageProxy.addEventListener("SCOLoad",k(this,this.onLoad))};g["scorm.SCORMBase"]=Ia;Ia.__name__="scorm.SCORMBase";
Ia.prototype={loaded:null,signals:null,_scoId:null,_loaded:null,_messageProxy:null,_signals:null,load:function(){throw new u("Abstract SCORMBase::load called");},get_loaded:function(){return this._loaded},postMessage:function(a,b){a={type:a,scoId:this._scoId};null!=b&&(a=Zc.merge(a,b));this._messageProxy.postMessage(a)},onLoad:function(a){this._loaded=a=a.get_data().result;this.get_signals().get_loaded().dispatch(a)},callRest:function(a,b,c,d){var e=this.getRestUrl();null!=e&&(null!=d&&(lc.addCallback("restCallback",
d),d="restCallback"),lc.call("callRest",e+"/"+a,b,c,d))},getRestUrl:function(){try{return lc.call("getRestUrl")}catch(a){return wa.lastError=a,null}},get_lastAccess:function(){return null},set_lastAccess:function(a){return a},get_lessonMode:function(){return"normal"},submitQuizFail:function(){},get_quizFails:function(){return 0},get_maxQuizFails:function(){return 0},get_signals:function(){null==this._signals&&(this._signals=new hs);return this._signals},__class__:Ia,__properties__:{get_signals:"get_signals",
set_lastAccess:"set_lastAccess",get_lastAccess:"get_lastAccess",get_loaded:"get_loaded"}};var tk=function(){};g["scorm.SCORMInterface"]=tk;tk.__name__="scorm.SCORMInterface";tk.__isInterface__=!0;tk.prototype={loaded:null,isAuthorized:null,studentName:null,lessonMode:null,quizFails:null,maxQuizFails:null,signals:null,load:null,get_loaded:null,get_lastAccess:null,set_lastAccess:null,getVariable:null,setVariable:null,get_lessonStatus:null,set_lessonStatus:null,get_lessonLocation:null,set_lessonLocation:null,
get_newLessonLocation:null,set_newLessonLocation:null,get_score:null,set_score:null,get_isAuthorized:null,get_studentName:null,get_lessonMode:null,get_quizFails:null,get_maxQuizFails:null,submitAssessment:null,submitQuizFail:null,getInteraction:null,sendInteraction:null,callRest:null,commit:null,get_signals:null,__class__:tk,__properties__:{get_signals:"get_signals",get_maxQuizFails:"get_maxQuizFails",get_quizFails:"get_quizFails",get_lessonMode:"get_lessonMode",get_studentName:"get_studentName",
get_isAuthorized:"get_isAuthorized",set_score:"set_score",get_score:"get_score",set_newLessonLocation:"set_newLessonLocation",get_newLessonLocation:"get_newLessonLocation",set_lessonLocation:"set_lessonLocation",get_lessonLocation:"get_lessonLocation",set_lessonStatus:"set_lessonStatus",get_lessonStatus:"get_lessonStatus",set_lastAccess:"set_lastAccess",get_lastAccess:"get_lastAccess",get_loaded:"get_loaded"}};var Gg=function(a,b,c){this._offline=!1;Ia.call(this,c);this._apiUrl=a;this._apiAuth=b;
this._so=Cd.getLocal("room_api")};g["scorm.SCORMApi"]=Gg;Gg.__name__="scorm.SCORMApi";Gg.__interfaces__=[tk];Gg.__super__=Ia;Gg.prototype=r(Ia.prototype,{isAuthorized:null,studentName:null,lessonMode:null,quizFails:null,maxQuizFails:null,_apiUrl:null,_apiAuth:null,_offline:null,_so:null,get_apiUrl:function(){return this._apiUrl},set_apiUrl:function(a){this._apiUrl=a;this.load();return a},load:function(){this.commit(k(this,this.doLoad))},doLoad:function(a){a=new Kc(this._apiUrl);a.method="GET";this.addHeaders(a);
var b=new Ui(Gg.TIMEOUT);b.addEventListener("complete",k(this,this.onLoad));b.addEventListener("ioError",k(this,this.onLoadError));b.addEventListener("securityError",k(this,this.onLoadError));b.addEventListener("loaderTimeout",k(this,this.onLoadError));b.addEventListener("httpResponseStatus",k(this,this.onResponseStatus));b.load(a)},onLoad:function(a){this._offline=!1;if(a=N.__cast(a.target,Ui).data){a=JSON.parse(a);if(0<B.parseInt(J.field(a,Ia.RESET)))this.resetStatusScoreVars(),this.set_lessonLocation("0"),
this.set_newLessonLocation("0");else{B.parseInt(J.field(this._so.data,this._esc(Ia.LESSON_LOCATION_NEW)))>B.parseInt(J.field(a,Ia.LESSON_LOCATION_NEW))?this.setDirty(!0):this._so.setProperty(this._esc(Ia.LESSON_LOCATION_NEW),J.field(a,Ia.LESSON_LOCATION_NEW));B.parseInt(J.field(this._so.data,this._esc(Ia.LESSON_LOCATION)))>B.parseInt(J.field(a,Ia.LESSON_LOCATION))?this.setDirty(!0):this._so.setProperty(this._esc(Ia.LESSON_LOCATION),J.field(a,Ia.LESSON_LOCATION));for(var b=0,c=J.fields(a);b<c.length;){var d=
c[b];++b;if(G.substr(d,0,Ia.VARS_NS.length)==Ia.VARS_NS){var e=J.field(this._so.data,this._esc(Ia.VARS_NS));J.isObject(e)||(e={});e[G.substr(d,Ia.VARS_NS.length,null)]=J.field(a,d);this._so.setProperty(this._esc(Ia.VARS_NS),e)}}}this.flush();this._loaded=!0;this.get_signals().get_loaded().dispatch(!0)}else this.onLoadError()},onResponseStatus:function(a){if(a.responseURL!=this._apiUrl)this.onLoadError(a)},onLoadError:function(a){this._offline=!0;this._loaded=!1;this.get_signals().get_loaded().dispatch(!1)},
getVariables:function(){var a=J.field(this._so.data,this._esc(Ia.VARS_NS));null==a&&(a={});return a},getVariable:function(a){return J.field(this.getVariables(),a)},setVariable:function(a,b){if(b!=this.getVariable(a)){var c=J.field(this._so.data,this._esc(Ia.VARS_NS));J.isObject(c)||(c={});c[a]=b;this._so.setProperty(this._esc(Ia.VARS_NS),c);this.setDirty(!0)}},get_lessonLocation:function(){return J.field(this._so.data,this._esc(Ia.LESSON_LOCATION))},set_lessonLocation:function(a){a!=this.get_lessonLocation()&&
(this._so.setProperty(this._esc(Ia.LESSON_LOCATION),a),this.setDirty(!0));return a},get_lessonStatus:function(){return J.field(this._so.data,this._esc(Ia.LESSON_STATUS))},set_lessonStatus:function(a){a!=this.get_lessonStatus()&&(this._so.setProperty(this._esc(Ia.LESSON_STATUS),a),this.setDirty(!0),this.commit());return a},get_newLessonLocation:function(){return J.field(this._so.data,this._esc(Ia.LESSON_LOCATION_NEW))},set_newLessonLocation:function(a){a!=this.get_newLessonLocation()&&(this._so.setProperty(this._esc(Ia.LESSON_LOCATION_NEW),
a),this.setDirty(!0));return a},get_score:function(){return J.field(this._so.data,this._esc(Ia.SCORE))},set_score:function(a){this._so.setProperty(this._esc(Ia.SCORE),a);this.setDirty(!0);return a},get_isAuthorized:function(){return!0},get_studentName:function(){return""},submitAssessment:function(){this.set_lessonStatus("passed")},getInteraction:function(a){return""},sendInteraction:function(a){},commit:function(a){var b=this;this._so.data.changed?this.doCommit(this.getPostData(),function(c){b._offline=
!1;b.resetStatusScoreVars();b.setDirty(!1);null!=a&&a(!0)},function(c){b._offline=!0;b.setDirty(!0);null!=a&&a(!1)}):null!=a&&a(!0)},doCommit:function(a,b,c){var d=new Kc(this._apiUrl);d.method="POST";d.data=a;this.addHeaders(d);a=new Ui(Gg.TIMEOUT);a.addEventListener("complete",b);a.addEventListener("ioError",c);a.addEventListener("loaderTimeout",c);a.addEventListener("securityError",c);a.load(d)},callRest:function(a,b,c,d){a=new Kc(this.getRestUrl()+"/"+a);a.method=b;a.data=c;this.addHeaders(a);
(new Ui(Gg.TIMEOUT)).load(a)},getRestUrl:function(){return this._apiUrl.substring(0,this._apiUrl.lastIndexOf("/scorm/"))},addHeaders:function(a){Gb.isEmpty(this._apiUrl)||a.requestHeaders.push(new Pm("MOBILE_API","1"));Gb.isEmpty(this._apiAuth)||a.requestHeaders.push(new Pm("AUTHENTICATION",this._apiAuth))},resetStatusScoreVars:function(){this._so.data[this._esc(Ia.LESSON_STATUS)]="";this._so.data[this._esc(Ia.SCORE)]=0;J.deleteField(this._so.data,this._esc(Ia.VARS_NS))},setDirty:function(a){this._so.data.changed=
a;this.flush();this._offline&&this.get_signals().get_offlineData().dispatch(a)},getPostData:function(){var a=Su._new();a[this._esc(Ia.LESSON_LOCATION)]=this.get_lessonLocation();a[this._esc(Ia.LESSON_LOCATION_NEW)]=this.get_newLessonLocation();for(var b=this.getVariables(),c=0,d=J.fields(b);c<d.length;){var e=d[c];++c;a[this._esc(Ia.VARS_NS+e)]=J.field(b,e)}null!=this.get_lessonStatus()&&""!=this.get_lessonStatus()&&(a[this._esc(Ia.LESSON_STATUS)]=this.get_lessonStatus());0!=this.get_score()&&(a[this._esc(Ia.SCORE)]=
this.get_score());return a},flush:function(){try{this._so.flush()}catch(a){wa.lastError=a}},_esc:function(a){return a.replace(/\./g,"__")},__class__:Gg,__properties__:r(Ia.prototype.__properties__,{set_apiUrl:"set_apiUrl",get_apiUrl:"get_apiUrl",get_maxQuizFails:"get_maxQuizFails",get_quizFails:"get_quizFails",get_lessonMode:"get_lessonMode",get_studentName:"get_studentName",get_isAuthorized:"get_isAuthorized",set_score:"set_score",get_score:"get_score",set_newLessonLocation:"set_newLessonLocation",
get_newLessonLocation:"get_newLessonLocation",set_lessonStatus:"set_lessonStatus",get_lessonStatus:"get_lessonStatus",set_lessonLocation:"set_lessonLocation",get_lessonLocation:"get_lessonLocation"})});var fo=function(a){Ia.call(this,a);this._messageProxy.addEventListener("SCOCommit",k(this,this.onCommit));this._messageProxy.addEventListener("SCOSubmit",k(this,this.onSubmit));H.insideApp=!0};g["scorm.SCORMApp"]=fo;fo.__name__="scorm.SCORMApp";fo.__interfaces__=[tk];fo.__super__=Ia;fo.prototype=r(Ia.prototype,
{isAuthorized:null,studentName:null,lessonMode:null,quizFails:null,maxQuizFails:null,_flatCmiCache:null,_flatDataCache:null,_onCommitCallback:null,load:function(){this.postMessage("APPLoad")},onLoad:function(a){this._flatCmiCache=a.get_data().flatCmi;this._flatDataCache=a.get_data().flatData;this._loaded=a=J.field(a.get_data(),"result");this.get_signals().get_loaded().dispatch(a)},commit:function(a){this._onCommitCallback=a;this.postMessage("APPCommit",{flatCmi:this._flatCmiCache})},onCommit:function(a){a=
J.field(a.get_data(),"result");null!=this._onCommitCallback&&this._onCommitCallback(a)},onSubmit:function(a){this._flatCmiCache=a.get_data().flatCmi;this._flatDataCache=a.get_data().flatData},getVariables:function(){var a=J.field(this._flatCmiCache,Ia.VARS_NS);null==a&&(a={});return a},getVariable:function(a){return J.field(this.getVariables(),a)},setVariable:function(a,b){if(b!=this.getVariable(a)){var c=J.field(this._flatCmiCache,Ia.VARS_NS);J.isObject(c)||(c={});c[a]=b;this._flatCmiCache[Ia.VARS_NS]=
c}},get_lessonStatus:function(){return J.field(this._flatCmiCache,Ia.LESSON_STATUS)},set_lessonStatus:function(a){a!=this.get_lessonStatus()&&(this._flatCmiCache[Ia.LESSON_STATUS]=a,this.commit());return a},get_lessonLocation:function(){return J.field(this._flatCmiCache,Ia.LESSON_LOCATION)},set_lessonLocation:function(a){a!=this.get_lessonLocation()&&(this._flatCmiCache[Ia.LESSON_LOCATION]=a,this.postMessage("APPSetValue",{name:Ia.LESSON_LOCATION,value:a}));return a},get_newLessonLocation:function(){return J.field(this._flatDataCache,
Ia.LESSON_LOCATION_NEW)},set_newLessonLocation:function(a){a!=this.get_newLessonLocation()&&(this._flatDataCache[Ia.LESSON_LOCATION_NEW]=a,this.postMessage("APPSetData",{name:Ia.LESSON_LOCATION_NEW,value:a}));return a},submitAssessment:function(){this.postMessage("APPSubmit",{close:H.xmlData.settings.closeSubmitted})},getInteraction:function(a){return""},sendInteraction:function(a){},get_score:function(){return J.field(this._flatCmiCache,Ia.SCORE)},set_score:function(a){return this._flatCmiCache[Ia.SCORE]=
a},get_isAuthorized:function(){return!0},get_studentName:function(){return""},__class__:fo,__properties__:r(Ia.prototype.__properties__,{get_maxQuizFails:"get_maxQuizFails",get_quizFails:"get_quizFails",get_lessonMode:"get_lessonMode",get_studentName:"get_studentName",get_isAuthorized:"get_isAuthorized",set_score:"set_score",get_score:"get_score",set_newLessonLocation:"set_newLessonLocation",get_newLessonLocation:"get_newLessonLocation",set_lessonLocation:"set_lessonLocation",get_lessonLocation:"get_lessonLocation",
set_lessonStatus:"set_lessonStatus",get_lessonStatus:"get_lessonStatus"})});var Zb=function(a){Ia.call(this,a)};g["scorm.SCORMJavascript"]=Zb;Zb.__name__="scorm.SCORMJavascript";Zb.__interfaces__=[tk];Zb.__properties__={get_available:"get_available"};Zb.get_available=function(){try{return lc.call("APIOK")}catch(a){return wa.lastError=a,!1}};Zb.doFSCommand=function(a,b,c){return lc.call(Zb.JS_FS_COMMAND,a,b,c)};Zb.__super__=Ia;Zb.prototype=r(Ia.prototype,{isAuthorized:null,studentName:null,lessonMode:null,
quizFails:null,maxQuizFails:null,load:function(){"true"==Zb.doFSCommand("appExtOK")?(H.insideApp=!0,this.postMessage("APPLoad")):(this._loaded=!0,this.get_signals().get_loaded().dispatch(!0))},get_lastAccess:function(){return Zb.doFSCommand("LMSGetValue",Zb.LAST_ACCESS)},set_lastAccess:function(a){Zb.doFSCommand("LMSSetValue",Zb.LAST_ACCESS+","+a);return a},getVariable:function(a){return Zb.doFSCommand("LMSGetValue",Ia.VARS_NS+a)},setVariable:function(a,b){Zb.doFSCommand("LMSSetValue",Ia.VARS_NS+
a+","+b)},get_lessonStatus:function(){return B.string(Zb.doFSCommand("LMSGetValue",Ia.LESSON_STATUS))},set_lessonStatus:function(a){Zb.doFSCommand("MM_cmiSetLessonStatus",G.substr(a,0,1));this.commit();return a},get_lessonLocation:function(){var a=Zb.doFSCommand("LMSGetValue",Ia.LESSON_LOCATION);return B.string(null!=a?a:0)},set_lessonLocation:function(a){Zb.doFSCommand("CMISetLocation",a);return a},get_newLessonLocation:function(){var a=Zb.doFSCommand("LMSGetData",Ia.LESSON_LOCATION_NEW);return B.string(null!=
a?a:0)},set_newLessonLocation:function(a){Zb.doFSCommand("LMSSetData",Ia.LESSON_LOCATION_NEW+","+a);return a},submitAssessment:function(){Zb.doFSCommand("callParent","submitAssessment",H.xmlData.settings.closeSubmitted);this.set_lessonStatus("passed")},submitQuizFail:function(){Zb.doFSCommand("callParent","submitQuizFail")},getInteraction:function(a){return Zb.doFSCommand("MM_cmiGetInteractionInfo",a)},sendInteraction:function(a){Zb.doFSCommand("MM_cmiSendInteractionInfo",a)},commit:function(a){var b=
"true"==Zb.doFSCommand("LMSCommit");null!=a&&a(b)},get_score:function(){return 0},set_score:function(a){Zb.doFSCommand("MM_cmiSendScore",a);return a},get_isAuthorized:function(){return 0<B.string(Zb.doFSCommand("LMSGetValue",Ia.STUDENT_ID)).length},get_studentName:function(){return B.string(Zb.doFSCommand("LMSGetValue",Ia.STUDENT_NAME))},get_lessonMode:function(){return B.string(Zb.doFSCommand("LMSGetValue",Ia.LESSON_MODE))},get_quizFails:function(){var a=Zb.doFSCommand("LMSGetData",Ia.QUIZ_FAILS);
"string"==typeof a&&(a=B.parseInt(null==a?"null":""+a));return null==a?0:a},get_maxQuizFails:function(){var a=Zb.doFSCommand("LMSGetData",Ia.MAX_QUIZ_FAILS);"string"==typeof a&&(a=B.parseInt(null==a?"null":""+a));return null==a?0:a},__class__:Zb,__properties__:r(Ia.prototype.__properties__,{get_maxQuizFails:"get_maxQuizFails",get_quizFails:"get_quizFails",get_lessonMode:"get_lessonMode",get_studentName:"get_studentName",get_isAuthorized:"get_isAuthorized",set_score:"set_score",get_score:"get_score",
set_newLessonLocation:"set_newLessonLocation",get_newLessonLocation:"get_newLessonLocation",set_lessonLocation:"set_lessonLocation",get_lessonLocation:"get_lessonLocation",set_lessonStatus:"set_lessonStatus",get_lessonStatus:"get_lessonStatus"})});var sk=function(a){Ia.call(this,a)};g["scorm.SCORMSharedObject"]=sk;sk.__name__="scorm.SCORMSharedObject";sk.__interfaces__=[tk];sk.__super__=Ia;sk.prototype=r(Ia.prototype,{isAuthorized:null,studentName:null,lessonMode:null,quizFails:null,maxQuizFails:null,
_so:null,load:function(){this._so=Cd.getLocal(sk.SO_NAME);this.get_signals().get_loaded().dispatch(!0)},get_loaded:function(){return null!=this._so},getVariable:function(a){return parseFloat(J.field(this._so.data,a))},setVariable:function(a,b){this._so.data[a]=b;this.flush()},get_lessonStatus:function(){return null},set_lessonStatus:function(a){return a},get_lessonLocation:function(){return this._so.data.lessonLocation},set_lessonLocation:function(a){this._so.data.lessonLocation=a;this.flush();return a},
get_newLessonLocation:function(){return this._so.data.newLessonLocation},set_newLessonLocation:function(a){this._so.data.newLessonLocation=a;this.flush();return a},get_score:function(){return 0},set_score:function(a){return a},get_isAuthorized:function(){return!1},get_studentName:function(){return""},submitAssessment:function(){},getInteraction:function(a){return""},sendInteraction:function(a){},commit:function(a){null!=a&&a(!0)},flush:function(){try{this._so.flush()}catch(a){wa.lastError=a}},__class__:sk,
__properties__:r(Ia.prototype.__properties__,{get_maxQuizFails:"get_maxQuizFails",get_quizFails:"get_quizFails",get_lessonMode:"get_lessonMode",get_studentName:"get_studentName",get_isAuthorized:"get_isAuthorized",set_score:"set_score",get_score:"get_score",set_newLessonLocation:"set_newLessonLocation",get_newLessonLocation:"get_newLessonLocation",set_lessonLocation:"set_lessonLocation",get_lessonLocation:"get_lessonLocation",set_lessonStatus:"set_lessonStatus",get_lessonStatus:"get_lessonStatus"})});
var hs=function(){this._signals=new da};g["scorm.SCORMSignalSet"]=hs;hs.__name__="scorm.SCORMSignalSet";hs.__super__=fd;hs.prototype=r(fd.prototype,{loaded:null,get_loaded:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,"loaded")){var a=this._signals,b=new pb;a.h.loaded=b}return this._signals.h.loaded},offlineData:null,get_offlineData:function(){if(!Object.prototype.hasOwnProperty.call(this._signals.h,"offlineData")){var a=this._signals,b=new pb;a.h.offlineData=b}return this._signals.h.offlineData},
__class__:hs,__properties__:{get_offlineData:"get_offlineData",get_loaded:"get_loaded"}});var Pe=function(){};g["swf.exporters.animate.AnimateSymbol"]=Pe;Pe.__name__="swf.exporters.animate.AnimateSymbol";Pe.prototype={className:null,id:null,__createObject:function(a){return null},__init:function(a){},__initObject:function(a,b){},__class__:Pe};var is=function(){};g["swf.exporters.animate.AnimateBitmapSymbol"]=is;is.__name__="swf.exporters.animate.AnimateBitmapSymbol";is.__super__=Pe;is.prototype=r(Pe.prototype,
{alpha:null,path:null,smooth:null,__createObject:function(a){return new Pd(xb.fromImage(a.getImage(this.path)),1,0!=this.smooth)},__class__:is});var js=function(){};g["swf.exporters.animate.AnimateButtonSymbol"]=js;js.__name__="swf.exporters.animate.AnimateButtonSymbol";js.__super__=Pe;js.prototype=r(Pe.prototype,{downState:null,hitState:null,overState:null,upState:null,library:null,__constructor:function(a){null!=this.downState&&a.set_downState(this.downState.__createObject(this.library));null!=
this.hitState&&a.set_hitTestState(this.hitState.__createObject(this.library));null!=this.overState&&a.set_overState(this.overState.__createObject(this.library));null!=this.upState&&a.set_upState(this.upState.__createObject(this.library))},__createObject:function(a){var b=null;bi.__constructor=k(this,this.__constructor);this.library=a;null!=this.className&&(a=g[this.className],null!=a&&(b=wb.createInstance(a,[])));null==b&&(b=new bi);return b},__init:function(a){bi.__constructor=k(this,this.__constructor);
this.library=a},__initObject:function(a,b){this.library=a;this.__constructor(b)},__class__:js});var ks=function(){};g["swf.exporters.animate.AnimateDynamicTextSymbol"]=ks;ks.__name__="swf.exporters.animate.AnimateDynamicTextSymbol";ks.__super__=Pe;ks.prototype=r(Pe.prototype,{align:null,border:null,color:null,fontHeight:null,fontID:null,fontName:null,height:null,html:null,indent:null,input:null,leading:null,leftMargin:null,multiline:null,password:null,rightMargin:null,selectable:null,text:null,width:null,
wordWrap:null,x:null,y:null,__createObject:function(a){var b=new Bb;b.set_width(this.width);b.set_height(this.height);b.__offsetX=this.x;b.__offsetY=this.y;b.set_multiline(this.multiline);b.set_wordWrap(this.wordWrap);b.set_displayAsPassword(this.password);this.border&&(b.set_border(!0),b.set_background(!0));b.set_selectable(this.selectable);this.input&&b.set_type(1);var c=new ib;null!=this.color&&(c.color=this.color&16777215);c.size=Math.round(this.fontHeight/20);a=a.symbols.h[this.fontID];null!=
a&&(c.__ascent=a.ascent/20/1024,c.__descent=a.descent/20/1024);c.font=this.fontName;var d=!1,e=c.font;if(null==e)d=!0;else switch(e){case "":case "_sans":case "_serif":case "_typewriter":d=!0;break;default:e=0;for(var f=Xa.enumerateFonts();e<f.length;)if(a=f[e],++e,a.name==c.font){d=!0;break}}if(!d){var h=/[^a-zA-Z]+/g;e=0;for(f=Xa.enumerateFonts();e<f.length;)if(a=f[e],++e,G.substr(a.name.replace(h,""),0,this.fontName.length)==this.fontName){c.font=a.name;d=!0;break}}d?b.set_embedFonts(!0):Object.prototype.hasOwnProperty.call(Bb.__missingFontWarning.h,
c.font)||(Bb.__missingFontWarning.h[c.font]=!0,Ea.warn('Could not find required font "'+c.font+'", it has not been embedded',{fileName:"swf/exporters/animate/AnimateDynamicTextSymbol.hx",lineNumber:143,className:"swf.exporters.animate.AnimateDynamicTextSymbol",methodName:"__createObject"}));null!=this.align&&("center"==this.align?c.align=0:"right"==this.align?c.align=4:"justify"==this.align&&(c.align=2),c.leftMargin=this.leftMargin/20|0,c.rightMargin=this.rightMargin/20|0,c.indent=this.indent/20|
0,c.leading=this.leading/20|0);b.set_defaultTextFormat(c);null!=this.text&&(this.html?b.set_htmlText(this.text):b.set_text(this.text));return b},__class__:ks});var ls=function(){};g["swf.exporters.animate.AnimateFontSymbol"]=ls;ls.__name__="swf.exporters.animate.AnimateFontSymbol";ls.__super__=Pe;ls.prototype=r(Pe.prototype,{advances:null,ascent:null,bold:null,codes:null,descent:null,glyphs:null,italic:null,leading:null,name:null,__class__:ls});var Qt=function(){};g["swf.exporters.animate.AnimateFrame"]=
Qt;Qt.__name__="swf.exporters.animate.AnimateFrame";Qt.prototype={label:null,objects:null,script:null,scriptSource:null,__class__:Qt};var Rt=function(){};g["swf.exporters.animate.AnimateFrameObject"]=Rt;Rt.__name__="swf.exporters.animate.AnimateFrameObject";Rt.prototype={blendMode:null,cacheAsBitmap:null,clipDepth:null,colorTransform:null,depth:null,filters:null,id:null,matrix:null,name:null,symbol:null,type:null,visible:null,__class__:Rt};var ac=function(a,b){Vb.call(this);this.id=a;this.instanceID=
null!=b?b:a;this.alphaCheck=new da;this.bitmapClassNames=new da;this.rootPath="";null==ac.instances&&(ac.instances=new da);ac.instances.h[b]=this};g["swf.exporters.animate.AnimateLibrary"]=ac;ac.__name__="swf.exporters.animate.AnimateLibrary";ac.get=function(a){return null==ac.instances?null:ac.instances.h[a]};ac.__super__=zc;ac.prototype=r(zc.prototype,{alphaCheck:null,bitmapClassNames:null,bitmapSymbols:null,frameRate:null,id:null,instanceID:null,preloading:null,root:null,rootPath:null,symbols:null,
symbolsByClassName:null,uuid:null,exists:function(a,b){if(null!=this.symbols){if(""==a&&"MOVIE_CLIP"==b)return!0;if(null==b||"IMAGE"==b||"MOVIE_CLIP"==b)return null!=this.symbolsByClassName?Object.prototype.hasOwnProperty.call(this.symbolsByClassName.h,a):!1}return zc.prototype.exists.call(this,a,b)},getImage:function(a){Object.prototype.hasOwnProperty.call(this.bitmapClassNames.h,a)&&(a=this.bitmapClassNames.h[a]);if(!Object.prototype.hasOwnProperty.call(this.alphaCheck.h,a)){for(var b=0,c=this.bitmapSymbols;b<
c.length;){var d=c[b];++b;if(d.path==a&&null!=d.alpha)return b=zc.prototype.getImage.call(this,a),c=zc.prototype.getImage.call(this,d.alpha),this.__copyChannel(b,c),this.cachedImages.h[a]=b,d=d.alpha,c=this.cachedImages,Object.prototype.hasOwnProperty.call(c.h,d)&&delete c.h[d],this.alphaCheck.h[a]=!0,b}this.alphaCheck.h[a]=!0}return zc.prototype.getImage.call(this,a)},getMovieClip:function(a){if(null==this.symbols)return null;if(""==a)return this.root.__createObject(this);a=this.symbolsByClassName.h[a];
return null!=a&&a instanceof mm?N.__cast(a,mm).__createObject(this):null},isLocal:function(a,b){return!0},load:function(){var a=this;null!=this.id&&(this.preload.h[this.id]=!0);var b=new nd;this.preloading=!0;var c=function(c){a.cachedText.h[a.id]=c;var d=JSON.parse(c);a.frameRate=d.frameRate;var e=d.root;d=d.symbols;var f=null;a.symbols=new Bc;a.symbolsByClassName=new da;a.bitmapSymbols=[];for(var h=0,l=d.length;h<l;){var m=h++;c=d[m];if(null!=c){var g=c.type;switch(g){case 0:m=a.__parseBitmap(c);
a.bitmapSymbols.push(m);null!=m.className&&(a.bitmapClassNames.h[m.className]=m.path);f=m;break;case 1:f=a.__parseButton(c);break;case 2:f=a.__parseDynamicText(c);break;case 3:f=a.__parseFont(c);break;case 4:f=a.__parseShape(c);break;case 5:c=a.__parseSprite(c);m==e&&(a.root=c);f=c;break;case 6:f=a.__parseStaticText(c)}null!=f&&(a.symbols.h[f.id]=f,null!=f.className&&(a.symbolsByClassName.h[f.className]=f))}}a.__load().onProgress(k(b,b.progress)).onError(k(b,b.error)).onComplete(function(c){a.preloading=
!1;b.complete(a)})};if(this.exists(this.id,"TEXT")||this.exists(this.id,"BINARY")){var d=this.paths.h;d=Object.keys(d);for(var e=d.length,f=0;f<e;){var h=d[f++];this.preload.h[h]=!0}d=this.types.h;d=Object.keys(d);e=d.length;for(f=0;f<e;)h=d[f++],"IMAGE"==this.types.h[h]&&(this.preload.h[h]=!0);this.loadText(this.id).onError(k(b,b.error)).onComplete(c)}else{d=this.paths.h;d=Object.keys(d);e=d.length;for(f=0;f<e;)h=d[f++],this.preload.h[h]=!0;d=null;d=Object.prototype.hasOwnProperty.call(this.paths.h,
this.id)?this.paths.h[this.id]:null!=this.rootPath&&""!=this.rootPath?this.rootPath+"/"+this.id:this.id;var l=new le;l.addEventListener("complete",function(a){c(l.data)});l.addEventListener("ioError",function(a){b.error(a)});l.load(new Kc(d))}return b.future},loadImage:function(a){var b=this;Object.prototype.hasOwnProperty.call(this.bitmapClassNames.h,a)&&(a=this.bitmapClassNames.h[a]);if(!this.preloading&&!Object.prototype.hasOwnProperty.call(this.alphaCheck.h,a))for(var c=0,d=this.bitmapSymbols;c<
d.length;){var e=[d[c]];++c;if(e[0].path==a&&null!=e[0].alpha)return c=[new nd],this.__loadImage(a).onError((x=c[0],k(x,x.error))).onComplete(function(c,d){return function(e){b.__loadImage(d[0].alpha).onError((x=c[0],k(x,x.error))).onComplete(function(c,d){return function(f){b.__copyChannel(e,f);b.cachedImages.h[a]=e;f=d[0].alpha;var h=b.cachedImages;Object.prototype.hasOwnProperty.call(h.h,f)&&delete h.h[f];b.alphaCheck.h[a]=!0;c[0].complete(e)}}(c,d))}}(c,e)),c[0].future;this.alphaCheck.h[a]=!0}return zc.prototype.loadImage.call(this,
a)},unload:function(){var a=this.uuid,b=ac.instances;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];if(null!=this.symbols)for(a=0,b=this.bitmapSymbols;a<b.length;){var c=b[a];++a;na.cache.removeBitmapData(c.path)}},__copyChannel:function(a,b){null!=b&&(a.get_transparent()||a.set_transparent(!0),a.copyChannel(b,b.get_rect(),new id,Kd.RED,Kd.ALPHA));a.buffer.premultiplied=!0;a.set_premultiplied(!1)},__fromManifest:function(a){this.rootPath=a.rootPath;zc.prototype.__fromManifest.call(this,
a);this.bytesTotal=0;a=Object.keys(this.paths.h);for(var b=a.length,c=0;c<b;){var d=a[c++];this.bytesTotal+=this.sizes.h[d]}},__load:function(){return zc.prototype.load.call(this)},__loadImage:function(a){return zc.prototype.loadImage.call(this,a)},__parseBitmap:function(a){var b=new is;b.id=a.id;b.className=a.className;b.alpha=a.alpha;b.path=a.path;b.smooth=a.smooth;return b},__parseButton:function(a){var b=new js;b.id=a.id;b.className=a.className;b.downState=this.__parseSprite(a.downState);b.hitState=
this.__parseSprite(a.hitState);b.overState=this.__parseSprite(a.overState);b.upState=this.__parseSprite(a.upState);return b},__parseDynamicText:function(a){var b=new ks;b.id=a.id;b.align=a.align;b.border=a.border;b.color=a.color;b.fontHeight=a.fontHeight;b.fontID=a.fontID;b.fontName=a.fontName;b.html=a.html;b.indent=a.indent;b.input=a.input;b.leading=a.leading;b.leftMargin=a.leftMargin;b.multiline=a.multiline;b.password=a.password;b.rightMargin=a.rightMargin;b.selectable=a.selectable;b.text=a.text;
b.wordWrap=a.wordWrap;b.x=a.rect[0]/20;b.y=a.rect[1]/20;b.width=a.rect[2]/20;b.height=a.rect[3]/20;return b},__parseFilters:function(a){if(null==a)return null;for(var b=[],c=0;c<a.length;){var d=a[c];++c;if(null!=d&&0!=d.length)switch(d[0]){case 0:b.push(Aj.BlurFilter(d[1],d[2],d[3]));break;case 1:b.push(Aj.ColorMatrixFilter(d[1]));break;case 2:b.push(Aj.DropShadowFilter(d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11]));break;case 3:b.push(Aj.GlowFilter(d[1],d[2],d[3],d[4],d[5],d[6],d[7],
d[8]))}}return b},__parseFont:function(a){var b=new ls;b.id=a.id;b.advances=a.advances;b.ascent=a.ascent;b.bold=a.bold;b.codes=a.codes;b.descent=a.descent;b.italic=a.italic;b.leading=a.leading;b.name=a.name;if(Object.prototype.hasOwnProperty.call(a,"glyphs")){b.glyphs=[];for(var c=a.glyphs,d=0,e=c.length;d<e;){var f=d++;a=c[f];if(null!=a){var h=[];b.glyphs[f]=h;for(f=0;f<a.length;)switch(a[f]){case 0:h.push(Tc.BeginBitmapFill(a[f+1],this.__parseMatrix(a[f+2]),a[f+3],a[f+4]));f+=5;break;case 1:h.push(Tc.BeginFill(a[f+
1],a[f+2]));f+=3;break;case 2:h.push(Tc.BeginGradientFill(a[f+1],a[f+2],a[f+3],a[f+4],this.__parseMatrix(a[f+5]),a[f+6],a[f+7],a[f+8]));f+=9;break;case 3:h.push(Tc.LineStyle(null,null,null,null,null,null,null,null));++f;break;case 4:h.push(Tc.CurveTo(a[f+1]/20,a[f+2]/20,a[f+3]/20,a[f+4]/20));f+=5;break;case 5:h.push(Tc.EndFill);++f;break;case 6:h.push(Tc.LineStyle(a[f+1],a[f+2],a[f+3],a[f+4],a[f+5],a[f+6],a[f+7],a[f+8]));f+=9;break;case 7:h.push(Tc.LineTo(a[f+1]/20,a[f+2]/20));f+=3;break;case 8:h.push(Tc.MoveTo(a[f+
1]/20,a[f+2]/20));f+=3;break;default:++f}}}}return b},__parseMatrix:function(a){return null!=a?new Aa(a[0],a[1],a[2],a[3],a[4]/20,a[5]/20):null},__parseShape:function(a){var b=new ms;b.id=a.id;b.commands=[];a=a.commands;for(var c=b.commands,d=0;d<a.length;)switch(a[d]){case 0:c.push(Tc.BeginBitmapFill(a[d+1],this.__parseMatrix(a[d+2]),a[d+3],a[d+4]));d+=5;break;case 1:c.push(Tc.BeginFill(a[d+1],a[d+2]));d+=3;break;case 2:c.push(Tc.BeginGradientFill(a[d+1],a[d+2],a[d+3],a[d+4],this.__parseMatrix(a[d+
5]),a[d+6],a[d+7],a[d+8]));d+=9;break;case 3:c.push(Tc.LineStyle(null,null,null,null,null,null,null,null));++d;break;case 4:c.push(Tc.CurveTo(a[d+1]/20,a[d+2]/20,a[d+3]/20,a[d+4]/20));d+=5;break;case 5:c.push(Tc.EndFill);++d;break;case 6:c.push(Tc.LineStyle(a[d+1],a[d+2],a[d+3],a[d+4],a[d+5],a[d+6],a[d+7],a[d+8]));d+=9;break;case 7:c.push(Tc.LineTo(a[d+1]/20,a[d+2]/20));d+=3;break;case 8:c.push(Tc.MoveTo(a[d+1]/20,a[d+2]/20));d+=3;break;default:++d}return b},__parseSprite:function(a){if(null==a)return null;
var b=new mm;b.id=a.id;b.className=a.className;b.baseClassName=a.baseClassName;b.scale9Grid=null!=a.scale9Grid?new ha(a.scale9Grid[0]/20,a.scale9Grid[1]/20,a.scale9Grid[2]/20,a.scale9Grid[3]/20):null;a=a.frames;for(var c,d,e,f=0;f<a.length;){d=a[f];++f;c=new Qt;c.label=d.label;Object.prototype.hasOwnProperty.call(d,"scriptSource")&&(c.scriptSource=d.scriptSource);d=d.objects;if(null!=d&&0<d.length){c.objects=[];for(var h=0;h<d.length;){var l=d[h];++h;e=new Rt;e.blendMode=l.blendMode;e.cacheAsBitmap=
l.cacheAsBitmap;e.clipDepth=l.clipDepth;e.colorTransform=null!=l.colorTransform?new tc(l.colorTransform[0]/20,l.colorTransform[1]/20,l.colorTransform[2]/20,l.colorTransform[3]/20,l.colorTransform[4]/20,l.colorTransform[5]/20,l.colorTransform[6]/20,l.colorTransform[7]/20):null;e.depth=l.depth;e.filters=this.__parseFilters(l.filters);e.id=l.id;e.matrix=this.__parseMatrix(l.matrix);e.name=l.name;e.symbol=l.symbol;e.type=l.type;e.visible=l.visible;c.objects.push(e)}}b.frames.push(c)}return b},__parseStaticText:function(a){var b=
new ns;b.id=a.id;b.matrix=this.__parseMatrix(a.matrix);b.records=a.records;return b},__pixel:function(a){return a/20},__class__:ac});var Tc=P["swf.exporters.animate.AnimateShapeCommand"]={__ename__:"swf.exporters.animate.AnimateShapeCommand",__constructs__:null,BeginBitmapFill:(x=function(a,b,c,d){return{_hx_index:0,bitmap:a,matrix:b,repeat:c,smooth:d,__enum__:"swf.exporters.animate.AnimateShapeCommand",toString:v}},x._hx_name="BeginBitmapFill",x.__params__=["bitmap","matrix","repeat","smooth"],x),
BeginFill:(x=function(a,b){return{_hx_index:1,color:a,alpha:b,__enum__:"swf.exporters.animate.AnimateShapeCommand",toString:v}},x._hx_name="BeginFill",x.__params__=["color","alpha"],x),BeginGradientFill:(x=function(a,b,c,d,e,f,h,l){return{_hx_index:2,fillType:a,colors:b,alphas:c,ratios:d,matrix:e,spreadMethod:f,interpolationMethod:h,focalPointRatio:l,__enum__:"swf.exporters.animate.AnimateShapeCommand",toString:v}},x._hx_name="BeginGradientFill",x.__params__="fillType colors alphas ratios matrix spreadMethod interpolationMethod focalPointRatio".split(" "),
x),CurveTo:(x=function(a,b,c,d){return{_hx_index:3,controlX:a,controlY:b,anchorX:c,anchorY:d,__enum__:"swf.exporters.animate.AnimateShapeCommand",toString:v}},x._hx_name="CurveTo",x.__params__=["controlX","controlY","anchorX","anchorY"],x),EndFill:{_hx_name:"EndFill",_hx_index:4,__enum__:"swf.exporters.animate.AnimateShapeCommand",toString:v},LineStyle:(x=function(a,b,c,d,e,f,h,l){return{_hx_index:5,thickness:a,color:b,alpha:c,pixelHinting:d,scaleMode:e,caps:f,joints:h,miterLimit:l,__enum__:"swf.exporters.animate.AnimateShapeCommand",
toString:v}},x._hx_name="LineStyle",x.__params__="thickness color alpha pixelHinting scaleMode caps joints miterLimit".split(" "),x),LineTo:(x=function(a,b){return{_hx_index:6,x:a,y:b,__enum__:"swf.exporters.animate.AnimateShapeCommand",toString:v}},x._hx_name="LineTo",x.__params__=["x","y"],x),MoveTo:(x=function(a,b){return{_hx_index:7,x:a,y:b,__enum__:"swf.exporters.animate.AnimateShapeCommand",toString:v}},x._hx_name="MoveTo",x.__params__=["x","y"],x)};Tc.__constructs__=[Tc.BeginBitmapFill,Tc.BeginFill,
Tc.BeginGradientFill,Tc.CurveTo,Tc.EndFill,Tc.LineStyle,Tc.LineTo,Tc.MoveTo];Tc.__empty_constructs__=[Tc.EndFill];var ms=function(){};g["swf.exporters.animate.AnimateShapeSymbol"]=ms;ms.__name__="swf.exporters.animate.AnimateShapeSymbol";ms.__super__=Pe;ms.prototype=r(Pe.prototype,{commands:null,rendered:null,__createObject:function(a){var b=new Og,c=b.get_graphics();if(null!=this.rendered)return c.copyFrom(this.rendered.get_graphics()),b;for(var d=0,e=this.commands;d<e.length;){var f=e[d];++d;switch(f._hx_index){case 0:var h=
f.matrix,l=f.repeat,m=f.smooth;f=a.getImage(a.symbols.h[f.bitmap].path);null!=f&&c.beginBitmapFill(xb.fromImage(f),h,l,m);break;case 1:c.beginFill(f.color,f.alpha);break;case 2:c.beginGradientFill(f.fillType,f.colors,f.alphas,f.ratios,f.matrix,f.spreadMethod,f.interpolationMethod,f.focalPointRatio);break;case 3:c.curveTo(f.controlX,f.controlY,f.anchorX,f.anchorY);break;case 4:c.endFill();break;case 5:h=f.thickness;l=f.color;m=f.alpha;var g=f.pixelHinting,k=f.scaleMode,n=f.caps,q=f.joints;f=f.miterLimit;
null!=h?c.lineStyle(h,l,m,g,k,n,q,f):c.lineStyle();break;case 6:c.lineTo(f.x,f.y);break;case 7:c.moveTo(f.x,f.y)}}this.commands=null;this.rendered=new Og;this.rendered.get_graphics().copyFrom(b.get_graphics());return b},__class__:ms});var mm=function(){this.frames=[]};g["swf.exporters.animate.AnimateSpriteSymbol"]=mm;mm.__name__="swf.exporters.animate.AnimateSpriteSymbol";mm.__super__=Pe;mm.prototype=r(Pe.prototype,{baseClassName:null,frames:null,scale9Grid:null,library:null,__constructor:function(a){var b=
new os(this.library,this);a.set_scale9Grid(this.scale9Grid);a.attachTimeline(b)},__createObject:function(a){Q.__constructor=k(this,this.__constructor);this.library=a;a=null;null!=this.className&&(a=this.className,a=g[a]);null==a&&null!=this.baseClassName&&(a=this.baseClassName,a=g[a]);return null!=a?wb.createInstance(a,[]):new Q},__init:function(a){Q.__constructor=k(this,this.__constructor);this.library=a},__initObject:function(a,b){this.library=a;this.__constructor(b)},__class__:mm});var ns=function(){};
g["swf.exporters.animate.AnimateStaticTextSymbol"]=ns;ns.__name__="swf.exporters.animate.AnimateStaticTextSymbol";ns.__super__=Pe;ns.prototype=r(Pe.prototype,{matrix:null,records:null,rendered:null,__createObject:function(a){var b=new pn,c=b.__graphics;if(null!=this.rendered)return b.text=this.rendered.text,c.copyFrom(this.rendered.__graphics),b;var d="";if(null!=this.records)for(var e=null,f=16777215,h=this.matrix.tx,l=this.matrix.ty,m,g,k=0,n=this.records;k<n.length;){var q=n[k];++k;null!=q.fontID&&
(e=a.symbols.h[q.fontID]);null!=q.offset&&(h=this.matrix.tx+.05*q.offset[0],l=this.matrix.ty+.05*q.offset[1]);null!=q.color&&(f=q.color);if(null!=e){m=q.fontHeight/1024*.05;for(var p=0,v=q.glyphs.length;p<v;){var r=p++;g=q.glyphs[r];d+=String.fromCodePoint(e.codes[g]);var u=0;for(g=e.glyphs[g];u<g.length;){var x=g[u];++u;switch(x._hx_index){case 1:c.beginFill(f&16777215,(f>>24&255)/255);break;case 3:c.curveTo(x.controlX*m+h,x.controlY*m+l,x.anchorX*m+h,x.anchorY*m+l);break;case 4:c.endFill();break;
case 5:var w=x.thickness,z=x.color,U=x.alpha,X=x.pixelHinting,B=x.scaleMode,P=x.caps,F=x.joints;x=x.miterLimit;null!=w?c.lineStyle(w,z,U,X,B,P,F,x):c.lineStyle();break;case 6:c.lineTo(x.x*m+h,x.y*m+l);break;case 7:c.moveTo(x.x*m+h,x.y*m+l)}}h+=.05*q.advances[r]}}}b.text=d;this.records=null;this.rendered=new pn;this.rendered.text=d;this.rendered.__graphics.copyFrom(b.__graphics);return b},__class__:ns});var os=function(a,b){gn.call(this);this.__library=a;this.__symbol=b;this.frameRate=a.frameRate;
a=[];this.scripts=[];for(var c,d=0,e=this.__symbol.frames.length;d<e;)if(c=d++,b=c+1,c=this.__symbol.frames[c],null!=c.label&&a.push(new kq(c.label,b)),null!=c.script)this.scripts.push(new lq(c.script,b));else if(null!=c.scriptSource)try{var f=function(a){return function(b){try{a[0].call(b)}catch(Iu){wa.lastError=Iu;b=u.caught(Iu).unwrap();for(var c="Error evaluating frame script\n "+B.string(b)+"\n",d=Cf.exceptionStack(),e=Array(d.length),f=0,h=d.length;f<h;){var l=f++;e[l]=d[l][2]}Ea.info(c+e.join("\n")+
"\n"+B.string(b.stack)+"\n"+a[0].toString(),{fileName:"swf/exporters/animate/AnimateTimeline.hx",lineNumber:116,className:"swf.exporters.animate.AnimateTimeline",methodName:"new"})}}}([eval("(function(){"+c.scriptSource+"})")]);this.scripts.push(new lq(f,b))}catch(h){wa.lastError=h,null!=this.__symbol.className?Ea.warn('Unable to evaluate frame script source for symbol "'+this.__symbol.className+'" frame '+b+"\n"+c.scriptSource,{fileName:"swf/exporters/animate/AnimateTimeline.hx",lineNumber:137,className:"swf.exporters.animate.AnimateTimeline",
methodName:"new"}):Ea.warn("Unable to evaluate frame script source:\n"+c.scriptSource,{fileName:"swf/exporters/animate/AnimateTimeline.hx",lineNumber:142,className:"swf.exporters.animate.AnimateTimeline",methodName:"new"})}this.scenes=[new jo("",a,this.__symbol.frames.length)]};g["swf.exporters.animate.AnimateTimeline"]=os;os.__name__="swf.exporters.animate.AnimateTimeline";os.__super__=gn;os.prototype=r(gn.prototype,{__activeInstances:null,__activeInstancesByFrameObjectID:null,__currentInstancesByFrameObjectID:null,
__instanceFields:null,__library:null,__movieClip:null,__previousFrame:null,__symbol:null,attachMovieClip:function(a){this.__movieClip=a;if(null==this.__activeInstances){this.__instanceFields=[];this.__previousFrame=-1;this.__activeInstances=[];this.__activeInstancesByFrameObjectID=new Bc;this.__currentInstancesByFrameObjectID=new Bc;for(var b,c,d,e=0,f=this.scenes[0].numFrames;e<f;){var h=e++;a=h+1;b=this.__symbol.frames[h];if(null!=b.objects){h=0;for(var l=b.objects;h<l.length;){var m=l[h];++h;if(0==
m.type&&!this.__activeInstancesByFrameObjectID.h.hasOwnProperty(m.id)){b=null;c=!1;d=0;for(var g=this.__activeInstances;d<g.length;){var k=g[d];++d;if(null!=k.displayObject&&k.characterID==m.symbol&&k.depth==m.depth){b=k;c=!0;break}}null==b&&(d=this.__library.symbols.h[m.symbol],null!=d&&(d=d.__createObject(this.__library),null!=d&&(b=new St(a,m.id,m.symbol,m.depth,d,m.clipDepth))));null!=b&&(this.__activeInstancesByFrameObjectID.h[m.id]=b,c||(this.__activeInstances.push(b),this.__updateDisplayObject(b.displayObject,
m)))}}}}this.__instanceFields=wb.getInstanceFields(N.getClass(this.__movieClip));this.enterFrame(1)}},enterFrame:function(a){if(null!=this.__symbol&&a!=this.__previousFrame){var b=this.__previousFrame<a?-1==this.__previousFrame?0:this.__previousFrame:0;0>=b&&(this.__currentInstancesByFrameObjectID=new Bc);for(var c=a;b<c;){var d=b++;var e=this.__symbol.frames[d];if(null!=e.objects)for(d=0,e=e.objects;d<e.length;){var f=e[d];++d;switch(f.type){case 0:var h=this.__activeInstancesByFrameObjectID.h[f.id];
null!=h&&(this.__currentInstancesByFrameObjectID.h[f.id]=h,this.__updateDisplayObject(h.displayObject,f,!0));break;case 1:h=this.__currentInstancesByFrameObjectID.h[f.id];null!=h&&null!=h.displayObject&&this.__updateDisplayObject(h.displayObject,f);break;case 2:this.__currentInstancesByFrameObjectID.remove(f.id)}}}e=[];f=[];for(b=this.__currentInstancesByFrameObjectID.iterator();b.hasNext();)c=b.next(),-1==e.indexOf(c)&&(e.push(c),0<c.clipDepth&&f.push(c));e.sort(k(this,this.__sortDepths));b=0;for(c=
e.length;b<c;){d=b++;var l=d<this.__movieClip.get_numChildren()?this.__movieClip.getChildAt(d):null;h=e[d];var m=h.depth;h=h.displayObject;l!=h&&this.__movieClip.addChildAt(h,d);l=h;h=!1;for(d=0;d<f.length;){var g=f[d];++d;if(m>g.depth&&m<=g.clipDepth){l.set_mask(g.displayObject);h=!0;break}}0<f.length&&!h&&null!=l.get_mask()&&l.set_mask(null)}if(null!=this.__movieClip.get_scale9Grid())this.__movieClip.get_graphics().clear(),0<e.length&&(b=e[0].displayObject,this.__movieClip.get_graphics().copyFrom(b.get_graphics()));
else for(d=e.length,e=this.__movieClip.get_numChildren();d<e;){l=this.__movieClip.getChildAt(d);b=0;for(c=this.__activeInstances;b<c.length;)h=c[b],++b,h.displayObject==l&&(l instanceof Q&&l.gotoAndPlay(1),this.__movieClip.removeChild(l),--d,--e);++d}this.__updateInstanceFields();this.__previousFrame=a}},__sortDepths:function(a,b){return a.depth-b.depth},__updateDisplayObject:function(a,b,c){null==c&&(c=!1);if(null!=a){null!=b.name&&a.set_name(b.name);null!=b.matrix&&a.get_transform().set_matrix(b.matrix);
null!=b.colorTransform?a.get_transform().set_colorTransform(b.colorTransform):c&&!a.get_transform().get_colorTransform().__isDefault(!1)&&a.get_transform().set_colorTransform(new tc);a.set_transform(a.get_transform());if(null!=b.filters){c=[];for(var d=0,e=b.filters;d<e.length;){var f=e[d];++d;switch(f._hx_index){case 0:c.push(new Ug(f.blurX,f.blurY,f.quality));break;case 1:c.push(new ej(f.matrix));break;case 2:c.push(new fj(f.distance,f.angle,f.color,f.alpha,f.blurX,f.blurY,f.strength,f.quality,
f.inner,f.knockout,f.hideObject));break;case 3:c.push(new sd(f.color,f.alpha,f.blurX,f.blurY,f.strength,f.quality,f.inner,f.knockout))}}a.set_filters(c)}else a.set_filters(null);null!=b.visible&&a.set_visible(b.visible);null!=b.blendMode&&a.set_blendMode(b.blendMode);null!=b.cacheAsBitmap&&a.set_cacheAsBitmap(b.cacheAsBitmap)}},__updateInstanceFields:function(){for(var a=0,b=this.__instanceFields;a<b.length;){var c=b[a];++a;for(var d=0,e=this.__movieClip.get_numChildren();d<e;){var f=d++;f=this.__movieClip.getChildAt(f);
if(f.get_name()==c){this.__movieClip[c]=f;break}}}},__class__:os});var St=function(a,b,c,d,e,f){this.initFrame=a;this.initFrameObjectID=b;this.characterID=c;this.depth=d;this.displayObject=e;this.clipDepth=f};g["swf.exporters.animate._AnimateTimeline.FrameSymbolInstance"]=St;St.__name__="swf.exporters.animate._AnimateTimeline.FrameSymbolInstance";St.prototype={characterID:null,clipDepth:null,depth:null,displayObject:null,initFrame:null,initFrameObjectID:null,__class__:St};var Aj=P["swf.exporters.core.FilterType"]=
{__ename__:"swf.exporters.core.FilterType",__constructs__:null,BlurFilter:(x=function(a,b,c){return{_hx_index:0,blurX:a,blurY:b,quality:c,__enum__:"swf.exporters.core.FilterType",toString:v}},x._hx_name="BlurFilter",x.__params__=["blurX","blurY","quality"],x),ColorMatrixFilter:(x=function(a){return{_hx_index:1,matrix:a,__enum__:"swf.exporters.core.FilterType",toString:v}},x._hx_name="ColorMatrixFilter",x.__params__=["matrix"],x),DropShadowFilter:(x=function(a,b,c,d,e,f,h,l,m,g,k){return{_hx_index:2,
distance:a,angle:b,color:c,alpha:d,blurX:e,blurY:f,strength:h,quality:l,inner:m,knockout:g,hideObject:k,__enum__:"swf.exporters.core.FilterType",toString:v}},x._hx_name="DropShadowFilter",x.__params__="distance angle color alpha blurX blurY strength quality inner knockout hideObject".split(" "),x),GlowFilter:(x=function(a,b,c,d,e,f,h,l){return{_hx_index:3,color:a,alpha:b,blurX:c,blurY:d,strength:e,quality:f,inner:h,knockout:l,__enum__:"swf.exporters.core.FilterType",toString:v}},x._hx_name="GlowFilter",
x.__params__="color alpha blurX blurY strength quality inner knockout".split(" "),x)};Aj.__constructs__=[Aj.BlurFilter,Aj.ColorMatrixFilter,Aj.DropShadowFilter,Aj.GlowFilter];Aj.__empty_constructs__=[];E.$haxeUID|=0;"undefined"!=typeof performance&&"function"==typeof performance.now&&(G.now=performance.now.bind(performance));g.Math=Math;null==String.fromCodePoint&&(String.fromCodePoint=function(a){return 65536>a?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 jh={},Tu={},Ku=Number,Ju=Boolean,Gd={},Lu={};N.__toStr={}.toString;null==ArrayBuffer.prototype.slice&&(ArrayBuffer.prototype.slice=Wt.sliceImpl);gd.__TYPE_DESC=new Oa(!0);Xi.__TYPE_DESC=new Oa(!0);Xi.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);I.__alpha16=
new Uint32Array(256);for(var nm=0;256>nm;){var go=nm++;I.__alpha16[go]=Math.ceil(257.00392156862745*go)}I.__clamp=new Uint8Array(511);for(nm=0;255>nm;)go=nm++,I.__clamp[go]=go;for(nm=255;511>nm;)go=nm++,I.__clamp[go]=255;Uh.available=!1;Uh.enabled=!1;Ea.level=3;"undefined"==typeof console&&(console={});null==console.log&&(console.log=function(){});D.hitTestCanvas=Qh.get_supported()?window.document.createElement("canvas"):null;D.hitTestContext=Qh.get_supported()?D.hitTestCanvas.getContext("2d"):null;
nf.__TYPE_DESC=new Oa(!0);Da.__TYPE_DESC=new Oa(!0);Da.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Da.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Gh.__TYPE_DESC=new Oa(!1);Gh.__TYPE_DESC.addFieldInjection("contextView",wf,null,!1);Gh.__TYPE_DESC.addFieldInjection("viewManager",ce,null,!1);Gh.__TYPE_DESC.setConstructor([],null,0);ul.__TYPE_DESC=new Oa(!1);ul.__TYPE_DESC.setConstructor([Wg,Y],null,2);vl.__TYPE_DESC=new Oa(!1);vl.__TYPE_DESC.setConstructor([],null,0);wl.__TYPE_DESC=
new Oa(!1);wl.__TYPE_DESC.setConstructor([Wg],null,1);xl.__TYPE_DESC=new Oa(!1);xl.__TYPE_DESC.setConstructor([Wg],null,1);Object.defineProperties(xg.prototype,{numListeners:{get:function(){return this.get_numListeners()},set:function(a){return this.set_numListeners(a)}},hasListeners:{get:function(){return this.get_hasListeners()},set:function(a){return this.set_hasListeners(a)}}});gk.__TYPE_DESC=new Oa(!1);gk.__TYPE_DESC.setConstructor([mi],null,1);yl.__TYPE_DESC=new Oa(!1);yl.__TYPE_DESC.setConstructor([oi,
Nn],null,1);ik.__TYPE_DESC=new Oa(!0);ik.__TYPE_DESC.addFieldInjection("context",Wg,null,!0);hh.__TYPE_DESC=new Oa(!0);hh.__TYPE_DESC.addFieldInjection("injector",jj,null,!1);hh.__TYPE_DESC.addFieldInjection("mediatorMap",ji,null,!1);hh.__TYPE_DESC.addFieldInjection("commandMap",fk,null,!1);hh.__TYPE_DESC.addFieldInjection("contextView",wf,null,!1);gb.__TYPE_DESC=new Oa(!1);gb.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);gb.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,
!1);gb.__TYPE_DESC.setConstructor([],null,0);wj.__TYPE_DESC=new Oa(!0);wj.__TYPE_DESC.addFieldInjection("state",gb,null,!1);wj.__TYPE_DESC.addFieldInjection("autoNarratorReadySignal",Bl,null,!1);qk.__TYPE_DESC=new Oa(!0);qk.__TYPE_DESC.addFieldInjection("contextView",wf,null,!1);Bi.__TYPE_DESC=new Oa(!0);Bi.__TYPE_DESC.addFieldInjection("restoreProgressSignal",rj,null,!1);Bi.__TYPE_DESC.addFieldInjection("hideLoadingSignal",jk,null,!1);Bi.__TYPE_DESC.addFieldInjection("showStartSignal",Rl,null,!1);
dh.__TYPE_DESC=new Oa(!0);dh.__TYPE_DESC.addFieldInjection("exitSignal",Fl,null,!1);dh.__TYPE_DESC.addFieldInjection("showLoadingSignal",Ql,null,!1);dh.__TYPE_DESC.addFieldInjection("loadingProgressSignal",Hl,null,!1);dh.__TYPE_DESC.addFieldInjection("hideLoadingSignal",jk,null,!1);dh.__TYPE_DESC.addFieldInjection("initMenuSignal",kk,null,!1);zj.__TYPE_DESC=new Oa(!0);zj.__TYPE_DESC.addFieldInjection("xmlLoadedSignal",uh,null,!1);xj.__TYPE_DESC=new Oa(!0);xj.__TYPE_DESC.addFieldInjection("state",
gb,null,!1);xj.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);yj.__TYPE_DESC=new Oa(!0);yj.__TYPE_DESC.addFieldInjection("state",gb,null,!1);yj.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);tf.__TYPE_DESC=new Oa(!0);tf.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);tf.__TYPE_DESC.addFieldInjection("state",gb,null,!1);tf.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);tf.__TYPE_DESC.addFieldInjection("hideContentSignal",Pf,null,!1);tf.__TYPE_DESC.addFieldInjection("screenIndexChangedSignal",
of,null,!1);tf.__TYPE_DESC.addFieldInjection("showContentSignal",Tf,null,!1);tf.__TYPE_DESC.addFieldInjection("enableTranscriptSignal",Ol,null,!1);tf.__TYPE_DESC.addFieldInjection("showDemoScreenSignal",Pl,null,!1);bf.__TYPE_DESC=new Oa(!0);bf.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);bf.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);bf.__TYPE_DESC.addFieldInjection("view",Qe,null,!1);bf.__TYPE_DESC.addFieldInjection("state",gb,null,!1);bf.__TYPE_DESC.addFieldInjection("backgroundLoadedSignal",
Cl,null,!1);bf.__TYPE_DESC.addFieldInjection("hideContentSignal",Pf,null,!1);bf.__TYPE_DESC.addFieldInjection("screenCreatedSignal",Sf,null,!1);bf.__TYPE_DESC.addFieldInjection("screenIndexChangedSignal",of,null,!1);Ch.__TYPE_DESC=new Oa(!0);Ch.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Ch.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Ch.__TYPE_DESC.addFieldInjection("view",lj,null,!1);Ch.__TYPE_DESC.addFieldInjection("showDemoScreenSignal",Pl,null,!1);xh.__TYPE_DESC=new Oa(!0);
xh.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);xh.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);xh.__TYPE_DESC.addFieldInjection("view",qa,null,!1);xh.__TYPE_DESC.addFieldInjection("state",gb,null,!1);ue.__TYPE_DESC=new Oa(!0);ue.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);ue.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);ue.__TYPE_DESC.addFieldInjection("view",Al,null,!1);ue.__TYPE_DESC.addFieldInjection("state",gb,null,!1);ue.__TYPE_DESC.addFieldInjection("xmlLoadedSignal",
uh,null,!1);ue.__TYPE_DESC.addFieldInjection("resetScreenSignal",Ml,null,!1);ue.__TYPE_DESC.addFieldInjection("closeRoomSignal",pi,null,!1);ue.__TYPE_DESC.addFieldInjection("playAgainSignal",pj,null,!1);ue.__TYPE_DESC.addFieldInjection("printer",Xi,null,!1);ue.__TYPE_DESC.addFieldInjection("enableTranscriptSignal",Ol,null,!1);ue.__TYPE_DESC.addFieldInjection("screenIndexChangedSignal",of,null,!1);Uf.__TYPE_DESC=new Oa(!0);Uf.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Uf.__TYPE_DESC.addFieldInjection("eventDispatcher",
Y,null,!1);Uf.__TYPE_DESC.addFieldInjection("view",uj,null,!1);Uf.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Uf.__TYPE_DESC.addFieldInjection("navigateToSignal",te,null,!1);Uf.__TYPE_DESC.addFieldInjection("revealContentSignal",zg,null,!1);Uf.__TYPE_DESC.addFieldInjection("hideTitleContentImagesSignal",Qf,null,!1);zh.__TYPE_DESC=new Oa(!0);zh.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);zh.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);zh.__TYPE_DESC.addFieldInjection("view",
Zl,null,!1);zh.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Wf.__TYPE_DESC=new Oa(!0);Wf.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Wf.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Wf.__TYPE_DESC.addFieldInjection("view",um,null,!1);Wf.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Wf.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);Wf.__TYPE_DESC.addFieldInjection("screenIndexChangedSignal",of,null,!1);Wf.__TYPE_DESC.addFieldInjection("setupNarratorSignal",
mk,null,!1);ad.__TYPE_DESC=new Oa(!1);ad.__TYPE_DESC.addFieldInjection("state",gb,null,!1);ad.__TYPE_DESC.addFieldInjection("autoNarratorSignal",mj,null,!1);ad.__TYPE_DESC.addFieldInjection("playNarratorSignal",qj,null,!1);ad.__TYPE_DESC.addFieldInjection("playAgainSignal",pj,null,!1);ad.__TYPE_DESC.addFieldInjection("stopAndHideNarratorSignal",tj,null,!1);ad.__TYPE_DESC.addFieldInjection("pauseNarratorSignal",oj,null,!1);ad.__TYPE_DESC.addFieldInjection("resumeNarratorSignal",lk,null,!1);ad.__TYPE_DESC.addFieldInjection("syncSignal",
af,null,!1);ad.__TYPE_DESC.setConstructor([],null,0);Le.__TYPE_DESC=new Oa(!1);Le.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Le.__TYPE_DESC.addFieldInjection("autoNarratorSignal",mj,null,!1);Le.__TYPE_DESC.addFieldInjection("playNarratorSignal",qj,null,!1);Le.__TYPE_DESC.addFieldInjection("playAgainSignal",pj,null,!1);Le.__TYPE_DESC.addFieldInjection("stopAndHideNarratorSignal",tj,null,!1);Le.__TYPE_DESC.addFieldInjection("pauseNarratorSignal",oj,null,!1);Le.__TYPE_DESC.addFieldInjection("resumeNarratorSignal",
lk,null,!1);Le.__TYPE_DESC.addFieldInjection("syncSignal",af,null,!1);Le.__TYPE_DESC.setConstructor([],null,0);Dg.__TYPE_DESC=new Oa(!0);Dg.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Dg.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Dg.__TYPE_DESC.addFieldInjection("view",vi,null,!1);Dg.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Dg.__TYPE_DESC.addFieldInjection("screenIndexChangedSignal",of,null,!1);Dg.__TYPE_DESC.addFieldInjection("narratorPlayer",Le,null,!1);Xc.__TYPE_DESC=
new Oa(!0);Xc.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Xc.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Xc.__TYPE_DESC.addFieldInjection("view",Jg,null,!1);Xc.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Xc.__TYPE_DESC.addFieldInjection("initMenuSignal",kk,null,!1);Xc.__TYPE_DESC.addFieldInjection("restoreProgressSignal",rj,null,!1);Xc.__TYPE_DESC.addFieldInjection("pauseNarratorSignal",oj,null,!1);Xc.__TYPE_DESC.addFieldInjection("resumeNarratorSignal",lk,null,!1);Xc.__TYPE_DESC.addFieldInjection("loadVideosSignal",
Jl,null,!1);Xc.__TYPE_DESC.addFieldInjection("showLoadingSignal",Ql,null,!1);Xc.__TYPE_DESC.addFieldInjection("loadingProgressSignal",Hl,null,!1);Xc.__TYPE_DESC.addFieldInjection("hideLoadingSignal",jk,null,!1);Xc.__TYPE_DESC.addFieldInjection("exitSignal",Fl,null,!1);Xc.__TYPE_DESC.addFieldInjection("loadXmlSignal",Kl,null,!1);Xc.__TYPE_DESC.addFieldInjection("xmlLoadedSignal",uh,null,!1);Xc.__TYPE_DESC.addFieldInjection("navigationUpdatedSignal",Tl,null,!1);Xc.__TYPE_DESC.addFieldInjection("printDebugSignal",
Md,null,!1);Xc.__TYPE_DESC.addFieldInjection("navigateToSignal",te,null,!1);Xc.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);Xc.__TYPE_DESC.addFieldInjection("networkInfo",up,null,!1);bh.__TYPE_DESC=new Oa(!0);bh.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);bh.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);bh.__TYPE_DESC.addFieldInjection("view",fm,null,!1);bh.__TYPE_DESC.addFieldInjection("state",gb,null,!1);bh.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);
ch.__TYPE_DESC=new Oa(!0);ch.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);ch.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);ch.__TYPE_DESC.addFieldInjection("view",gm,null,!1);ch.__TYPE_DESC.addFieldInjection("state",gb,null,!1);ch.__TYPE_DESC.addFieldInjection("xmlLoadedSignal",uh,null,!1);Eg.__TYPE_DESC=new Oa(!0);Eg.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Eg.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Eg.__TYPE_DESC.addFieldInjection("view",yg,null,
!1);Eg.__TYPE_DESC.addFieldInjection("showStartSignal",Rl,null,!1);Eg.__TYPE_DESC.addFieldInjection("restoreProgressSignal",rj,null,!1);Eg.__TYPE_DESC.addFieldInjection("closeRoomSignal",pi,null,!1);zi.__TYPE_DESC=new Oa(!0);zi.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);zi.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);zi.__TYPE_DESC.addFieldInjection("view",wm,null,!1);Fg.__TYPE_DESC=new Oa(!0);Fg.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Fg.__TYPE_DESC.addFieldInjection("eventDispatcher",
Y,null,!1);Fg.__TYPE_DESC.addFieldInjection("view",xm,null,!1);Fg.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Fg.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);Fg.__TYPE_DESC.addFieldInjection("screenIndexChangedSignal",of,null,!1);sf.__TYPE_DESC=new Oa(!0);sf.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);sf.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);sf.__TYPE_DESC.addFieldInjection("view",vj,null,!1);sf.__TYPE_DESC.addFieldInjection("state",gb,null,!1);sf.__TYPE_DESC.addFieldInjection("setTitleAndContent",
ee,null,!1);sf.__TYPE_DESC.addFieldInjection("revealContentSignal",zg,null,!1);sf.__TYPE_DESC.addFieldInjection("playAgainSignal",pj,null,!1);sf.__TYPE_DESC.addFieldInjection("pauseNarratorSignal",oj,null,!1);wd.__TYPE_DESC=new Oa(!0);wd.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);wd.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);wd.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);wd.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);wd.__TYPE_DESC.addFieldInjection("hideButtonsSignal",
qi,null,!1);wd.__TYPE_DESC.addFieldInjection("showButtonsSignal",Ag,null,!1);wd.__TYPE_DESC.addFieldInjection("navigateToSignal",te,null,!1);Ah.__TYPE_DESC=new Oa(!0);Ah.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Ah.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);cf.__TYPE_DESC=new Oa(!0);cf.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);cf.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);cf.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);cf.__TYPE_DESC.addFieldInjection("hideTextSignal",
de,null,!1);cf.__TYPE_DESC.addFieldInjection("hideButtonsSignal",qi,null,!1);cf.__TYPE_DESC.addFieldInjection("showButtonsSignal",Ag,null,!1);cf.__TYPE_DESC.addFieldInjection("navigateToSignal",te,null,!1);cf.__TYPE_DESC.addFieldInjection("view",Xl,null,!1);cf.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);ef.__TYPE_DESC=new Oa(!0);ef.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);ef.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);ef.__TYPE_DESC.addFieldInjection("printDebugSignal",
Md,null,!1);ef.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);ef.__TYPE_DESC.addFieldInjection("hideButtonsSignal",qi,null,!1);ef.__TYPE_DESC.addFieldInjection("showButtonsSignal",Ag,null,!1);ef.__TYPE_DESC.addFieldInjection("navigateToSignal",te,null,!1);ef.__TYPE_DESC.addFieldInjection("view",em,null,!1);ef.__TYPE_DESC.addFieldInjection("state",gb,null,!1);we.__TYPE_DESC=new Oa(!0);we.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);we.__TYPE_DESC.addFieldInjection("eventDispatcher",
Y,null,!1);we.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);we.__TYPE_DESC.addFieldInjection("view",oc,null,!1);we.__TYPE_DESC.addFieldInjection("state",gb,null,!1);we.__TYPE_DESC.addFieldInjection("screenIndexChangedSignal",of,null,!1);we.__TYPE_DESC.addFieldInjection("buttonsReadySignal",Dl,null,!1);we.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);we.__TYPE_DESC.addFieldInjection("hideContentSignal",Pf,null,!1);we.__TYPE_DESC.addFieldInjection("showButtonsSignal",Ag,
null,!1);we.__TYPE_DESC.addFieldInjection("navigationUpdatedSignal",Tl,null,!1);Ne.__TYPE_DESC=new Oa(!0);Ne.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Ne.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Ne.__TYPE_DESC.addFieldInjection("view",Zg,null,!1);Ne.__TYPE_DESC.addFieldInjection("screenIndexChangedSignal",of,null,!1);Ne.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);Ne.__TYPE_DESC.addFieldInjection("closeMenuSignal",El,null,!1);Ne.__TYPE_DESC.addFieldInjection("startDragSignal",
Qn,null,!1);Ne.__TYPE_DESC.addFieldInjection("stopDragSignal",Rn,null,!1);Ne.__TYPE_DESC.addFieldInjection("dragSignal",Ll,null,!1);Ne.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Me.__TYPE_DESC=new Oa(!0);Me.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Me.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Me.__TYPE_DESC.addFieldInjection("view",Yg,null,!1);Me.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Me.__TYPE_DESC.addFieldInjection("initMenuSignal",kk,null,!1);Me.__TYPE_DESC.addFieldInjection("closeMenuSignal",
El,null,!1);Me.__TYPE_DESC.addFieldInjection("loadScormSignal",Il,null,!1);Me.__TYPE_DESC.addFieldInjection("xmlLoadedSignal",uh,null,!1);Me.__TYPE_DESC.addFieldInjection("screenIndexChangedSignal",of,null,!1);Me.__TYPE_DESC.addFieldInjection("itemDragSignal",Ll,null,!1);Yf.__TYPE_DESC=new Oa(!0);Yf.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Yf.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Yf.__TYPE_DESC.addFieldInjection("view",dm,null,!1);Yf.__TYPE_DESC.addFieldInjection("state",
gb,null,!1);Yf.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);Yf.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);Yf.__TYPE_DESC.addFieldInjection("stopAndHideNarratorSignal",tj,null,!1);wi.__TYPE_DESC=new Oa(!0);wi.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);wi.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);wi.__TYPE_DESC.addFieldInjection("view",Wc,null,!1);lm.__TYPE_DESC=new Oa(!0);lm.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);lm.__TYPE_DESC.addFieldInjection("eventDispatcher",
Y,null,!1);Di.__TYPE_DESC=new Oa(!0);Di.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Di.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Di.__TYPE_DESC.addFieldInjection("view",Ko,null,!1);Di.__TYPE_DESC.addFieldInjection("startQuizIntroSignal",Sl,null,!1);df.__TYPE_DESC=new Oa(!0);df.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);df.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);df.__TYPE_DESC.addFieldInjection("view",bm,null,!1);df.__TYPE_DESC.addFieldInjection("state",
gb,null,!1);df.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);df.__TYPE_DESC.addFieldInjection("startQuizIntroSignal",Sl,null,!1);df.__TYPE_DESC.addFieldInjection("setQuizProgressSignal",Nl,null,!1);df.__TYPE_DESC.addFieldInjection("setupNarratorSignal",mk,null,!1);df.__TYPE_DESC.addFieldInjection("stopAndHideNarratorSignal",tj,null,!1);ah.__TYPE_DESC=new Oa(!0);ah.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);ah.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);ah.__TYPE_DESC.addFieldInjection("view",
$g,null,!1);ah.__TYPE_DESC.addFieldInjection("state",gb,null,!1);ah.__TYPE_DESC.addFieldInjection("setupNarratorSignal",mk,null,!1);Xf.__TYPE_DESC=new Oa(!0);Xf.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Xf.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Xf.__TYPE_DESC.addFieldInjection("view",cm,null,!1);Xf.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Xf.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);Xf.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);
Xf.__TYPE_DESC.addFieldInjection("lessonCompleteSignal",Gl,null,!1);Ei.__TYPE_DESC=new Oa(!0);Ei.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Ei.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Ei.__TYPE_DESC.addFieldInjection("view",No,null,!1);Ei.__TYPE_DESC.addFieldInjection("setQuizProgressSignal",Nl,null,!1);wh.__TYPE_DESC=new Oa(!0);wh.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);wh.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);wh.__TYPE_DESC.addFieldInjection("view",
vh,null,!1);wh.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);yh.__TYPE_DESC=new Oa(!0);yh.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);yh.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);yh.__TYPE_DESC.addFieldInjection("view",Wl,null,!1);yh.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);si.__TYPE_DESC=new Oa(!0);si.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);si.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);si.__TYPE_DESC.addFieldInjection("view",
ri,null,!1);ti.__TYPE_DESC=new Oa(!0);ti.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);ti.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);ti.__TYPE_DESC.addFieldInjection("view",$l,null,!1);yi.__TYPE_DESC=new Oa(!0);yi.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);yi.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);yi.__TYPE_DESC.addFieldInjection("view",xi,null,!1);ui.__TYPE_DESC=new Oa(!0);ui.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);ui.__TYPE_DESC.addFieldInjection("eventDispatcher",
Y,null,!1);ui.__TYPE_DESC.addFieldInjection("view",am,null,!1);Dh.__TYPE_DESC=new Oa(!0);Dh.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Dh.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Dh.__TYPE_DESC.addFieldInjection("view",Ai,null,!1);Dh.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);uf.__TYPE_DESC=new Oa(!0);uf.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);uf.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);rf.__TYPE_DESC=new Oa(!0);rf.__TYPE_DESC.addFieldInjection("eventMap",
Va,null,!1);rf.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);rf.__TYPE_DESC.addFieldInjection("view",Ra,null,!1);rf.__TYPE_DESC.addFieldInjection("state",gb,null,!1);rf.__TYPE_DESC.addFieldInjection("playNarratorSignal",qj,null,!1);rf.__TYPE_DESC.addFieldInjection("updateContentMaskSignal",ok,null,!1);rf.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);rf.__TYPE_DESC.addFieldInjection("unsetContentSignal",nk,null,!1);md.__TYPE_DESC=new Oa(!0);md.__TYPE_DESC.addFieldInjection("eventMap",
Va,null,!1);md.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);md.__TYPE_DESC.addFieldInjection("view",im,null,!1);md.__TYPE_DESC.addFieldInjection("state",gb,null,!1);md.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);md.__TYPE_DESC.addFieldInjection("hideContentSignal",Pf,null,!1);md.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);md.__TYPE_DESC.addFieldInjection("revealContentSignal",zg,null,!1);md.__TYPE_DESC.addFieldInjection("hideTitleContentImagesSignal",
Qf,null,!1);md.__TYPE_DESC.addFieldInjection("showTitleAndContentSignal",sj,null,!1);md.__TYPE_DESC.addFieldInjection("unsetContentSignal",nk,null,!1);md.__TYPE_DESC.addFieldInjection("xmlLoadedSignal",uh,null,!1);md.__TYPE_DESC.addFieldInjection("autoNarratorSignal",mj,null,!1);md.__TYPE_DESC.addFieldInjection("autoNarratorReadySignal",Bl,null,!1);md.__TYPE_DESC.addFieldInjection("playNarratorSignal",qj,null,!1);md.__TYPE_DESC.addFieldInjection("narratorPlayer",ad,null,!1);md.__TYPE_DESC.addFieldInjection("updateContentMaskSignal",
ok,null,!1);md.__TYPE_DESC.addFieldInjection("contentMaskUpdatedSignal",nj,null,!1);qf.__TYPE_DESC=new Oa(!0);qf.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);qf.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);qf.__TYPE_DESC.addFieldInjection("view",Ul,null,!1);qf.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);qf.__TYPE_DESC.addFieldInjection("hideContentSignal",Pf,null,!1);qf.__TYPE_DESC.addFieldInjection("updateContentMaskSignal",ok,null,!1);qf.__TYPE_DESC.addFieldInjection("contentMaskUpdatedSignal",
nj,null,!1);qf.__TYPE_DESC.addFieldInjection("state",gb,null,!1);pf.__TYPE_DESC=new Oa(!0);pf.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);pf.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);pf.__TYPE_DESC.addFieldInjection("view",ed,null,!1);pf.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);pf.__TYPE_DESC.addFieldInjection("hideContentSignal",Pf,null,!1);pf.__TYPE_DESC.addFieldInjection("contentMaskUpdatedSignal",nj,null,!1);pf.__TYPE_DESC.addFieldInjection("revealContentSignal",
zg,null,!1);pf.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Bg.__TYPE_DESC=new Oa(!0);Bg.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Bg.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Bg.__TYPE_DESC.addFieldInjection("view",Vl,null,!1);Bg.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Bg.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);Bg.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);Vf.__TYPE_DESC=new Oa(!0);Vf.__TYPE_DESC.addFieldInjection("eventMap",
Va,null,!1);Vf.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Vf.__TYPE_DESC.addFieldInjection("view",Yl,null,!1);Vf.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Vf.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);Vf.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);Vf.__TYPE_DESC.addFieldInjection("syncSignal",af,null,!1);Cg.__TYPE_DESC=new Oa(!0);Cg.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Cg.__TYPE_DESC.addFieldInjection("eventDispatcher",
Y,null,!1);Cg.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Cg.__TYPE_DESC.addFieldInjection("createInputSignal",Of,null,!1);Cg.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);Cg.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);ve.__TYPE_DESC=new Oa(!0);ve.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);ve.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);ve.__TYPE_DESC.addFieldInjection("view",vm,null,!1);ve.__TYPE_DESC.addFieldInjection("state",gb,null,!1);ve.__TYPE_DESC.addFieldInjection("hideContentSignal",
Pf,null,!1);ve.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);ve.__TYPE_DESC.addFieldInjection("lessonCompleteSignal",Gl,null,!1);ve.__TYPE_DESC.addFieldInjection("initScreenSignal",Rf,null,!1);ve.__TYPE_DESC.addFieldInjection("backgroundLoadedSignal",Cl,null,!1);ve.__TYPE_DESC.addFieldInjection("closeRoomSignal",pi,null,!1);ve.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);Fh.__TYPE_DESC=new Oa(!0);Fh.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Fh.__TYPE_DESC.addFieldInjection("eventDispatcher",
Y,null,!1);Fh.__TYPE_DESC.addFieldInjection("view",Po,null,!1);Fh.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);Fh.__TYPE_DESC.addFieldInjection("hideContentSignal",Pf,null,!1);Bh.__TYPE_DESC=new Oa(!0);Bh.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Bh.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Bh.__TYPE_DESC.addFieldInjection("view",hm,null,!1);Bh.__TYPE_DESC.addFieldInjection("showTitleAndContentSignal",sj,null,!1);xe.__TYPE_DESC=new Oa(!0);xe.__TYPE_DESC.addFieldInjection("eventMap",
Va,null,!1);xe.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);xe.__TYPE_DESC.addFieldInjection("view",Ak,null,!1);xe.__TYPE_DESC.addFieldInjection("state",gb,null,!1);xe.__TYPE_DESC.addFieldInjection("hideTextSignal",de,null,!1);xe.__TYPE_DESC.addFieldInjection("hideContentSignal",Pf,null,!1);xe.__TYPE_DESC.addFieldInjection("hideTitleContentImagesSignal",Qf,null,!1);xe.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);xe.__TYPE_DESC.addFieldInjection("revealContentSignal",
zg,null,!1);xe.__TYPE_DESC.addFieldInjection("showTitleAndContentSignal",sj,null,!1);xe.__TYPE_DESC.addFieldInjection("unsetContentSignal",nk,null,!1);ob.__TYPE_DESC=new Oa(!0);ob.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);ob.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);ob.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);ob.__TYPE_DESC.addFieldInjection("state",gb,null,!1);ob.__TYPE_DESC.addFieldInjection("initScreenSignal",Rf,null,!1);ob.__TYPE_DESC.addFieldInjection("navigateToSignal",
te,null,!1);ob.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);ob.__TYPE_DESC.addFieldInjection("showContentSignal",Tf,null,!1);ob.__TYPE_DESC.addFieldInjection("syncSignal",af,null,!1);ob.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);ob.__TYPE_DESC.addFieldInjection("screenCreatedSignal",Sf,null,!1);ob.__TYPE_DESC.addFieldInjection("createInputSignal",Of,null,!1);ob.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);Ac.__TYPE_DESC=new Oa(!1);Ac.__TYPE_DESC.addFieldInjection("eventMap",
Va,null,!1);Ac.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Ac.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);Ac.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Ac.__TYPE_DESC.addFieldInjection("initScreenSignal",Rf,null,!1);Ac.__TYPE_DESC.addFieldInjection("navigateToSignal",te,null,!1);Ac.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);Ac.__TYPE_DESC.addFieldInjection("showContentSignal",Tf,null,!1);Ac.__TYPE_DESC.addFieldInjection("syncSignal",af,
null,!1);Ac.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);Ac.__TYPE_DESC.addFieldInjection("screenCreatedSignal",Sf,null,!1);Ac.__TYPE_DESC.addFieldInjection("createInputSignal",Of,null,!1);Ac.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);Ac.__TYPE_DESC.addFieldInjection("revealContentSignal",zg,null,!1);Ac.__TYPE_DESC.addFieldInjection("hideTitleContentImagesSignal",Qf,null,!1);Ac.__TYPE_DESC.setConstructor([],null,0);ud.__TYPE_DESC=new Oa(!0);ud.__TYPE_DESC.addFieldInjection("eventMap",
Va,null,!1);ud.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);ud.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);ud.__TYPE_DESC.addFieldInjection("state",gb,null,!1);ud.__TYPE_DESC.addFieldInjection("initScreenSignal",Rf,null,!1);ud.__TYPE_DESC.addFieldInjection("navigateToSignal",te,null,!1);ud.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);ud.__TYPE_DESC.addFieldInjection("showContentSignal",Tf,null,!1);ud.__TYPE_DESC.addFieldInjection("syncSignal",af,
null,!1);ud.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);ud.__TYPE_DESC.addFieldInjection("screenCreatedSignal",Sf,null,!1);ud.__TYPE_DESC.addFieldInjection("createInputSignal",Of,null,!1);ud.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);ud.__TYPE_DESC.addFieldInjection("view",Sn,null,!1);ud.__TYPE_DESC.addFieldInjection("screenIndexChangedSignal",of,null,!1);ud.__TYPE_DESC.addFieldInjection("showButtonsSignal",Ag,null,!1);Sc.__TYPE_DESC=new Oa(!0);Sc.__TYPE_DESC.addFieldInjection("eventMap",
Va,null,!1);Sc.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Sc.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);Sc.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Sc.__TYPE_DESC.addFieldInjection("initScreenSignal",Rf,null,!1);Sc.__TYPE_DESC.addFieldInjection("navigateToSignal",te,null,!1);Sc.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);Sc.__TYPE_DESC.addFieldInjection("showContentSignal",Tf,null,!1);Sc.__TYPE_DESC.addFieldInjection("syncSignal",af,
null,!1);Sc.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);Sc.__TYPE_DESC.addFieldInjection("screenCreatedSignal",Sf,null,!1);Sc.__TYPE_DESC.addFieldInjection("createInputSignal",Of,null,!1);Sc.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);Sc.__TYPE_DESC.addFieldInjection("view",pk,null,!1);Sc.__TYPE_DESC.addFieldInjection("hideTitleContentImagesSignal",Qf,null,!1);Sc.__TYPE_DESC.addFieldInjection("hideButtonsSignal",qi,null,!1);Sc.__TYPE_DESC.addFieldInjection("showButtonsSignal",
Ag,null,!1);ld.__TYPE_DESC=new Oa(!0);ld.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);ld.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);ld.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);ld.__TYPE_DESC.addFieldInjection("state",gb,null,!1);ld.__TYPE_DESC.addFieldInjection("initScreenSignal",Rf,null,!1);ld.__TYPE_DESC.addFieldInjection("navigateToSignal",te,null,!1);ld.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);ld.__TYPE_DESC.addFieldInjection("showContentSignal",
Tf,null,!1);ld.__TYPE_DESC.addFieldInjection("syncSignal",af,null,!1);ld.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);ld.__TYPE_DESC.addFieldInjection("screenCreatedSignal",Sf,null,!1);ld.__TYPE_DESC.addFieldInjection("createInputSignal",Of,null,!1);ld.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);ld.__TYPE_DESC.addFieldInjection("revealContentSignal",zg,null,!1);ld.__TYPE_DESC.addFieldInjection("hideTitleContentImagesSignal",Qf,null,!1);ld.__TYPE_DESC.addFieldInjection("view",
Un,null,!1);ld.__TYPE_DESC.addFieldInjection("showButtonsSignal",Ag,null,!1);ld.__TYPE_DESC.addFieldInjection("buttonsReadySignal",Dl,null,!1);Dd.__TYPE_DESC=new Oa(!0);Dd.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);Dd.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);Dd.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);Dd.__TYPE_DESC.addFieldInjection("state",gb,null,!1);Dd.__TYPE_DESC.addFieldInjection("initScreenSignal",Rf,null,!1);Dd.__TYPE_DESC.addFieldInjection("navigateToSignal",
te,null,!1);Dd.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);Dd.__TYPE_DESC.addFieldInjection("showContentSignal",Tf,null,!1);Dd.__TYPE_DESC.addFieldInjection("syncSignal",af,null,!1);Dd.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);Dd.__TYPE_DESC.addFieldInjection("screenCreatedSignal",Sf,null,!1);Dd.__TYPE_DESC.addFieldInjection("createInputSignal",Of,null,!1);Dd.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);Dd.__TYPE_DESC.addFieldInjection("revealContentSignal",
zg,null,!1);Dd.__TYPE_DESC.addFieldInjection("hideTitleContentImagesSignal",Qf,null,!1);Dd.__TYPE_DESC.addFieldInjection("view",Tn,null,!1);vd.__TYPE_DESC=new Oa(!0);vd.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);vd.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);vd.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);vd.__TYPE_DESC.addFieldInjection("state",gb,null,!1);vd.__TYPE_DESC.addFieldInjection("initScreenSignal",Rf,null,!1);vd.__TYPE_DESC.addFieldInjection("navigateToSignal",
te,null,!1);vd.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);vd.__TYPE_DESC.addFieldInjection("showContentSignal",Tf,null,!1);vd.__TYPE_DESC.addFieldInjection("syncSignal",af,null,!1);vd.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);vd.__TYPE_DESC.addFieldInjection("screenCreatedSignal",Sf,null,!1);vd.__TYPE_DESC.addFieldInjection("createInputSignal",Of,null,!1);vd.__TYPE_DESC.addFieldInjection("quizManager",gd,null,!1);vd.__TYPE_DESC.addFieldInjection("view",
Vn,null,!1);vd.__TYPE_DESC.addFieldInjection("closeRoomSignal",pi,null,!1);vd.__TYPE_DESC.addFieldInjection("hideTitleContentImagesSignal",Qf,null,!1);vd.__TYPE_DESC.addFieldInjection("contentMaskUpdatedSignal",nj,null,!1);bd.__TYPE_DESC=new Oa(!0);bd.__TYPE_DESC.addFieldInjection("eventMap",Va,null,!1);bd.__TYPE_DESC.addFieldInjection("eventDispatcher",Y,null,!1);bd.__TYPE_DESC.addFieldInjection("printDebugSignal",Md,null,!1);bd.__TYPE_DESC.addFieldInjection("state",gb,null,!1);bd.__TYPE_DESC.addFieldInjection("initScreenSignal",
Rf,null,!1);bd.__TYPE_DESC.addFieldInjection("navigateToSignal",te,null,!1);bd.__TYPE_DESC.addFieldInjection("setScreenIndexSignal",oe,null,!1);bd.__TYPE_DESC.addFieldInjection("showContentSignal",Tf,null,!1);bd.__TYPE_DESC.addFieldInjection("syncSignal",af,null,!1);bd.__TYPE_DESC.addFieldInjection("setTitleAndContentSignal",ee,null,!1);bd.__TYPE_DESC.addFieldInjection("screenCreatedSignal",Sf,null,!1);bd.__TYPE_DESC.addFieldInjection("createInputSignal",Of,null,!1);bd.__TYPE_DESC.addFieldInjection("quizManager",
gd,null,!1);bd.__TYPE_DESC.addFieldInjection("view",Wn,null,!1);bd.__TYPE_DESC.addFieldInjection("hideTitleContentImagesSignal",Qf,null,!1);bd.__TYPE_DESC.addFieldInjection("showTitleAndContentSignal",sj,null,!1);bd.__TYPE_DESC.addFieldInjection("hideButtonsSignal",qi,null,!1);bd.__TYPE_DESC.addFieldInjection("showButtonsSignal",Ag,null,!1);fb.__meta__={statics:{toNullVector:{SuppressWarnings:["checkstyle:Dynamic"]}}};ka.__meta__={fields:{__cairo:{SuppressWarnings:["checkstyle:Dynamic"]},addEventListener:{SuppressWarnings:["checkstyle:Dynamic"]},
removeEventListener:{SuppressWarnings:["checkstyle:Dynamic"]}}};ka.__broadcastEvents=new da;ka.__instanceCount=0;ka.__tempStack=new K(function(){return fb.toObjectVector(null)},function(a){a.set_length(0)});Ua.DAY_SHORT_NAMES="Sun Mon Tue Wed Thu Fri Sat".split(" ");Ua.DAY_NAMES="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ");Ua.MONTH_SHORT_NAMES="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");Ua.MONTH_NAMES="January February March April May June July August September October November December".split(" ");
Rb.MAX_BITSIZE=32;w.BITSIZE=15;w.UPPESTBIT=32768;w.BITMASK=32767;w.regexSpaces=new fa("\\s+","g");w.regexLeadingZeros=new fa("^0*","g");w.regexBinary=new fa("^0b","");w.regexOctal=new fa("^0o","");w.regexHex=new fa("^0x","");w.regexSign=new fa("^-","");w.regexZero=new fa("^-?(0b|0o|0x)?[0\\s]*$","");w.hexaChars="0123456789abcdef".split("");Xa.__fontByName=new da;Xa.__registeredFonts=[];z.Element=0;z.PCData=1;z.CData=2;z.Comment=3;z.DocType=4;z.ProcessingInstruction=5;z.Document=6;W.ACTIVATE="activate";
W.ADDED="added";W.ADDED_TO_STAGE="addedToStage";W.CANCEL="cancel";W.CHANGE="change";W.CLEAR="clear";W.CLOSE="close";W.COMPLETE="complete";W.CONNECT="connect";W.CONTEXT3D_CREATE="context3DCreate";W.COPY="copy";W.CUT="cut";W.DEACTIVATE="deactivate";W.ENTER_FRAME="enterFrame";W.EXIT_FRAME="exitFrame";W.FRAME_CONSTRUCTED="frameConstructed";W.FRAME_LABEL="frameLabel";W.FULLSCREEN="fullScreen";W.ID3="id3";W.INIT="init";W.MOUSE_LEAVE="mouseLeave";W.OPEN="open";W.PASTE="paste";W.REMOVED="removed";W.REMOVED_FROM_STAGE=
"removedFromStage";W.RENDER="render";W.RESIZE="resize";W.SCROLL="scroll";W.SELECT="select";W.SELECT_ALL="selectAll";W.SOUND_COMPLETE="soundComplete";W.TAB_CHILDREN_CHANGE="tabChildrenChange";W.TAB_ENABLED_CHANGE="tabEnabledChange";W.TAB_INDEX_CHANGE="tabIndexChange";W.TEXTURE_READY="textureReady";W.UNLOAD="unload";yf.XML_LOADED="xmlLoaded";yf.IMAGE_LOADED="imageLoaded";yf.BUTTON_CLICK="buttonClick";yf.READY_TO_DISPLAY="readyToDisplay";yf.IMAGE_CHANGE="imageChange";yf.PAGE_CHANGE="pageChange";yf.PAGE_CLICK=
"pageClick";yf.KILL="kill";yf.ADJUST_VIDEO="adjustVideo";Db._meta=new ea;Db._meta_static_initializer=!0;So.ROOM_WIDTH=1070;So.ROOM_HEIGHT=650;So.RULER_SIZE=10;So.ROOM_BORDER_SIZE=2;kb.SCREENS="screens";kb.SCREEN="screen";kb.SCREEN_ID="screen_id";kb.TEMPLATE="Template";kb.SECTION="Section";kb.IMAGE="Image";kb.TITLE="Title";kb.CONTENT="Content";kb.NARRATOR="Narrator";kb.VIDEO="Video";kb.BACKGROUND="Background";kb.QUESTION="Question";kb.ANSWERS="Answers";kb.ANSWER="Answer";kb.INFORMATION="information";
kb.FLASH="Flash";kb.QUIZ="Quiz";kb.QUIZES="Quizes";kb.SETTINGS="settings";kb.INTRODUCTION="introduction";kb.VIDEO_OPTIONS="video";kb.VARIABLES="variables";kb.THUMBNAIL="thumbnail";kb.NAVIGATION="navigation";kb.BUTTON="button";kb.IFRAME="iframe";kb.INPUT="input";kb.MULTIPLE="_";kb.RE_MULTIPLE="_\\d+$";kb.LEGACY_VIDEO="video";kb.LEGACY_NODE_MAP={};var Zu=kb;kb.LEGACY_NODE_MAP.video="Video";Zu.NodeType_static_initializer=!0;Hi.PAUSE="APPPause";Hi.RESUME="APPResume";Hi.PAUSED="APPPaused";Hi.CLOSE="APPClose";
Ih.NEXT_SCREEN="next_screen";Ih.NEXT_MAIN_SCREEN="next_main_screen";Ih.SCREEN="screen";Ih.QUESTION="question";Ih.PREV_QUESTION="prev_question";Ih.NEXT_QUESTION="next_question";Mc.INITIALIZE="room.initialize";Mc.CHANGE_SCREEN_INDEX="room.change_screen_index";Mc.CHANGE_QUESTION_INDEX="room.change_question_index";Mc.CHANGE_INFO_XML="room.change_info_xml";Mc.CHANGE_QUIZ_XML="room.change_quiz_xml";Mc.SELECT_TAG="room.select_tag";Mc.DESELECT_TAG="room.deselect_tag";Mc.KEY_DOWN="room.key_down";Mc.KEY_UP=
"room.key_up";Mc.DUPLICATE_SCREEN="room.duplicate_screen";Mc.DELETE_SCREEN="room.delete_screen";Ic.INITIALIZE="jackdaw.initialize";Ic.UPDATE_XML="update_xml";Ic.UPDATE_OPTIONS="update_options";Ic.INSERT_MAIN_SCREEN="insert_main_screen";Ic.INSERT_SUB_SCREEN="insert_sub_screen";Ic.INSERT_QUESTION="insert_question";Ic.INSERT_ANSWER="insert_answer";Ic.REMOVE_MAIN_SCREEN="remove_main_screen";Ic.REMOVE_SUB_SCREEN="remove_sub_screen";Ic.REMOVE_QUIZ="remove_quiz";Ic.REMOVE_QUESTION="remove_question";Ic.REMOVE_ANSWER=
"remove_answer";Ic.UNINITIALIZE="uninitialize";Ic.PAUSE="pause";Ic.RESUME="resume";Jc.STATE_OVER="over";Jc.STATE_DOWN="down";Jc.STATE_HIT="hit";hg.ANIMATED_BOOK_BUSINESS="animated_book_business/animated_book_business.swf";Be.KEY_HANDLER="_tooltipHandler";la.BUTTON_UP="button-up";la.BUTTON_OVER="button-over";la.BUTTON_DOWN="button-down";la.BUTTON_HITBOX="button-hitbox";la.CBOX_EMPTY="cbox-empty";la.CBOX_EMPTY_OVER="cbox-empty-over";la.CBOX_EMPTY_DOWN="cbox-empty-down";la.CBOX_CHECKED="cbox-checked";
la.CBOX_CHECKED_OVER="cbox-checked-over";la.CBOX_CHECKED_DOWN="cbox-checked-down";la.CBOX_CORRECT="cbox-correct";la.CBOX_INCORRECT="cbox-incorrect";la.COLOR_WHITE=16777215;la.COLOR_BLACK=0;la.COLOR_ORANGE=16225312;la.COLOR_GREEN=6205229;la.COLOR_RED=16730920;la.COLOR_DARK_GRAY=5066061;la.COLOR_GRAY=8421504;la.COLOR_GRAY2=11184810;la.COLOR_LIGHT_GRAY=14474460;la.COLOR_QUIZ_BG_GRAY=15987699;la.COLOR_TEXT_DARK_GRAY=4276545;la.MENU_NORMAL_FILL=15987699;la.MENU_ACTIVE_FILL=16226087;la.MENU_PASSIVE_FILL=
4868682;la.MENU_NORMAL_TEXT=0;la.MENU_ACTIVE_TEXT=16777215;la.MENU_PASSIVE_TEXT=8092539;la.MENU_NORMAL_NUMB=14277081;la.MENU_ACTIVE_NUMB=16434582;la.MENU_PASSIVE_NUMB=5526612;la.ELEMENT_RADIUS=32;la.SVG_ARROW_ICON='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;" d="m 8.6997589,31.931176 c -0.5809558,0 -1.1619108,-0.222397 -1.604436,-0.664922 -0.8873187,-0.887319 -0.8873187,-2.323822 0,-3.208872 L 19.152422,16.000283 7.0953229,3.9431849 c -0.8873187,-0.887319 -0.8873187,-2.3238225 0,-3.2088722 0.8873187,-0.88731889 2.3238223,-0.88731889 3.2088711,0 L 25.570166,16.000283 10.304194,31.266254 c -0.4425238,0.442525 -1.0234796,0.664922 -1.6044351,0.664922 z" id="arrow" /></svg>';
la.SVG_BIG_GEAR='<svg xmlns="http://www.w3.org/2000/svg" height="250" width="250" viewBox="0 0 250 250"><path style="fill:#f79420;fill-opacity:1;stroke-width:1.26238763" d="m 244.06926,150.81563 -28.52998,-17.79964 c 0.2525,-2.65104 0.37873,-5.17581 0.37873,-7.82682 0,-2.65106 -0.12625,-5.30203 -0.37873,-7.95305 l 28.52998,-17.799633 c 1.89359,-1.26244 2.77725,-3.660957 2.14606,-5.807016 l -4.54461,-14.138759 c -0.75742,-2.14606 -2.77725,-3.660919 -5.17578,-3.408462 l -33.57953,2.272308 c -2.77726,-4.544577 -5.80699,-8.836696 -9.34167,-12.75011 l 12.62388,-31.180989 c 0.88367,-2.146059 0.12624,-4.544577 -1.64111,-5.933226 l -11.99269,-8.710486 c -1.89358,-1.388611 -4.41835,-1.262363 -6.18569,0.252495 l -25.75273,21.586882 c -4.79708,-2.019888 -9.84664,-3.660956 -15.02242,-4.923358 L 137.39743,4.1261663 C 136.89249,1.8538589 134.87266,0.339 132.47413,0.339 h -14.89619 c -2.27229,0 -4.29212,1.5148589 -4.92333,3.7871663 L 104.44909,36.695766 C 99.273314,37.83192 94.223759,39.473027 89.426682,41.619124 L 63.673958,20.032242 c -1.767344,-1.514858 -4.292121,-1.514858 -6.185705,-0.252495 l -11.992689,8.710448 c -1.893583,1.38865 -2.524776,3.787205 -1.641103,5.933226 L 56.478343,65.604448 C 53.0699,69.517862 49.91393,73.809981 47.136672,78.354558 L 13.557137,76.08225 C 11.28484,75.956191 9.1387801,77.344652 8.3813466,79.490712 L 3.8367491,93.503261 c -0.7574335,2.146021 0.1262478,4.544577 2.1460605,5.806941 L 34.512788,117.10988 c -0.252457,2.65101 -0.378725,5.17577 -0.378725,7.82678 0,2.65106 0.126211,5.30204 0.378725,7.82684 L 5.9828096,150.56313 c -1.8935838,1.2624 -2.7772576,3.66097 -2.1460605,5.80703 l 4.5445975,14.13875 c 0.7574335,2.14602 2.7772534,3.66088 5.1757904,3.40846 l 33.579535,-2.27231 c 2.777258,4.54458 5.806988,8.83671 9.341671,12.75012 l -12.623882,31.18099 c -0.883673,2.14602 -0.126248,4.54457 1.641103,5.93318 l 11.992689,8.71052 c 1.893584,1.38858 4.418361,1.26237 6.185705,-0.25211 l 25.752724,-21.58684 c 4.797077,2.01981 9.846632,3.66092 15.022408,4.92332 l 8.20552,32.5696 c 0.50496,2.2723 2.52479,3.78716 4.92333,3.78716 h 14.89619 c 2.27229,0 4.29212,-1.51486 4.9233,-3.78716 l 8.20554,-32.5696 c 5.17578,-1.13615 10.22534,-2.77726 15.02242,-4.92332 l 25.75273,21.58684 c 1.76734,1.51486 4.29211,1.51486 6.18569,0.25211 l 11.99269,-8.71052 c 1.89359,-1.38861 2.52478,-3.78716 1.64111,-5.93318 l -12.62388,-31.18099 c 3.40844,-3.91341 6.56441,-8.20554 9.34167,-12.75012 l 33.57953,2.27231 c 2.27229,0.12606 4.41836,-1.26244 5.17578,-3.40846 l 4.54461,-13.8863 c 0.63119,-2.27226 -0.12625,-4.54462 -2.14606,-5.80698 z m -119.04324,31.05479 c -31.433461,0 -56.807461,-25.37405 -56.807461,-56.80746 0,-31.433489 25.374,-56.807499 56.807461,-56.807499 31.43348,0 56.80748,25.37401 56.80748,56.807499 0,31.43341 -25.374,56.80746 -56.80748,56.80746 z" id="gearBig" /></svg>';
la.SVG_SMALL_GEAR='<svg xmlns="http://www.w3.org/2000/svg" width="182" height="182" viewBox="0 0 182 182"><path style="fill:#74bf44;fill-opacity:1;stroke-width:1.2581811" id="gearSmall" d="M 172.34138,123.7127 147.05195,99.304033 c 0.37746,-2.768042 0.62909,-5.536085 0.62909,-8.304053 0,-2.768005 -0.25163,-5.53601 -0.62909,-8.303978 l 25.28943,-24.408776 c 1.63565,-1.635638 2.0131,-4.151989 0.88073,-6.039243 l -7.42326,-12.833448 c -1.13238,-2.013081 -3.5229,-2.893832 -5.66181,-2.264735 l -33.84507,9.687999 c -4.27781,-3.397102 -9.18472,-6.290934 -14.34325,-8.304015 L 103.39307,4.4370457 C 102.88982,2.1723107 100.87672,0.6625 98.486179,0.6625 H 83.639645 c -2.264731,0 -4.277816,1.5098107 -4.906906,3.7745457 L 70.17711,38.533784 c -5.158546,2.013081 -10.065454,4.906913 -14.343255,8.304015 L 21.988788,37.1498 c -2.264724,-0.629097 -4.529457,0.377556 -5.661821,2.264735 L 8.9037019,52.247983 C 7.771346,54.261064 8.1488013,56.777415 9.7844343,58.287226 L 35.073862,82.696002 c -0.377455,2.767968 -0.629091,5.535973 -0.629091,8.303978 0,2.767968 0.251626,5.536011 0.629091,8.304053 L 9.658613,123.7127 c -1.6356334,1.63567 -2.0130888,4.15202 -0.8807231,6.03927 l 7.4232651,12.8335 c 1.132356,2.01311 3.522909,2.89383 5.661811,2.26473 l 33.845058,-9.68801 c 4.277821,3.39712 9.184728,6.29091 14.343263,8.30399 l 8.55564,34.09677 c 0.503267,2.26474 2.516351,3.77455 4.906899,3.77455 h 14.84653 c 2.264724,0 4.277814,-1.50981 4.906904,-3.77455 l 8.55564,-34.09677 c 5.15852,-2.01308 10.06542,-4.90687 14.34326,-8.30399 l 33.84506,9.68801 c 2.26473,0.6291 4.52945,-0.37759 5.6618,-2.26473 l 7.42328,-12.8335 c 1.25818,-1.88725 0.88073,-4.4036 -0.75492,-6.03927 z M 91.0629,119.05748 c -15.60143,0 -28.183246,-12.58183 -28.183246,-28.183327 0,-15.601415 12.581816,-28.183246 28.183246,-28.183246 15.60145,0 28.18326,12.581831 28.18326,28.183246 0,15.601497 -12.70764,28.183327 -28.18326,28.183327 z" /></svg>';
la.SVG_EYE_OFF_ICON='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" /></svg>';
la.SVG_EYE_ICON='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z" /></svg>';la.SVG_RELOAD_ICON='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z" /></svg>';
la.SVG_SOUND_ICON='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z" /></svg>';la.SVG_SOUND_OFF_ICON='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.53C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z" /></svg>';
la.SVG_TRANSCRIPT_ICON='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m7.91 18.2h8.52v-1.59h-8.52zm0-4.5h8.52v-1.59h-8.52zm-2.62 9q-0.635 0-1.11-0.476-0.476-0.476-0.476-1.11v-18q0-0.635 0.476-1.11 0.476-0.476 1.11-0.476h9.56l5.8 5.8v13.8q0 0.635-0.476 1.11-0.476 0.476-1.11 0.476zm8.76-14.7v-4.92h-8.76v18h13.8v-13zm-8.76-4.92v4.92-4.92 18z" stroke-width=".0265"/></svg>';la.SVG_ARROW_SYMBOL='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m 28.035,15.995 -3.04,3.04 v 0 l -6.07,6.07 -3.04,-3.04 3.93,-3.93 H 3.965 v -4.29 h 15.84 l -3.91,-3.9099997 3.04,-3.0400005 6.07,6.0700002 v 0 z" id="arrow2" /></svg>';
la.SVG_CHECK_SYMBOL='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="27.67,10.7 24.13,7.16 13.53,17.77 7.87,12.11 4.33,15.65 9.99,21.3 9.99,21.3 13.53,24.84 17.06,21.3 17.06,21.3 "/></svg>';la.SVG_X_SYMBOL='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon style="fill:#ffffff;fill-opacity:1;stroke:none" points="25.02,21.49 19.54,16 25.02,10.51 21.49,6.98 16,12.46 10.51,6.98 6.98,10.51 12.46,16 6.98,21.49 10.51,25.02 16,19.54 21.49,25.02 "/></svg>';
la.SVG_DIALOGUE_SYMBOL='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:#ffffff;fill-opacity:1;stroke:none" d="M25.2,3H6.6c-3.4,0-6,2.7-6,6v9.4c0,3.4,2.7,6,6,6h7.3l9.5,6.7v-6.7h2c3.4,0,6-2.7,6-6V9C31.2,5.7,28.6,3,25.2,3z M9.6,15.9 c-1.1,0-2-0.8-2-2s0.8-2,2-2s2,0.8,2,2S10.7,15.9,9.6,15.9z M16,15.9c-1.1,0-2-0.8-2-2s0.8-2,2-2s2,0.8,2,2S17,15.9,16,15.9z M22.3,15.9c-1.1,0-2-0.8-2-2s0.8-2,2-2c1.1,0,2,0.8,2,2S23.4,15.9,22.3,15.9z"/></svg>';la.SVG_AI_LOGO=
'<svg viewBox="0 0 340 106" xmlns="http://www.w3.org/2000/svg"><rect width="340" height="104" style="fill-opacity:0"/><g style="fill:#8c8c8c;fill-opacity:1;stroke:none"><path d="m36.8 31.1c-2.4-1.3-5.3-1.9-8.7-1.9s-6.3 0.6-8.7 1.9-4.2 3.1-5.5 5.5-1.9 5.4-1.9 8.8v33.5c0 3.4 0.6 6.3 1.9 8.7s3.1 4.3 5.5 5.6 5.3 1.9 8.7 1.9 6.3-0.6 8.7-1.9 4.2-3.1 5.5-5.6c1.3-2.4 1.9-5.3 1.9-8.7v-33.4c0-3.4-0.6-6.4-1.9-8.8-1.2-2.5-3.1-4.3-5.5-5.6zm-1 48.1c0 1.6-0.3 3-0.9 4.2s-1.5 2-2.6 2.6-2.5 0.9-4.1 0.9-3-0.3-4.1-0.9-2-1.5-2.6-2.6c-0.6-1.2-0.9-2.5-0.9-4.2v-34c0-1.6 0.3-3 0.9-4.2s1.5-2 2.6-2.6 2.5-0.9 4.1-0.9 3 0.3 4.1 0.9 2 1.5 2.6 2.6c0.6 1.2 0.9 2.5 0.9 4.2z"/><path d="m76.7 31.7c-2.1-1.2-4.7-1.7-7.8-1.7h-16.8v64.6h8.4v-25h8.3c3 0 5.6-0.6 7.7-1.7s3.8-2.8 4.9-5 1.7-4.8 1.7-7.8v-10.4c0-3.1-0.6-5.8-1.7-8-0.9-2.2-2.6-3.9-4.7-5zm-2 23c0 1.4-0.2 2.6-0.7 3.6-0.4 1-1.1 1.8-1.9 2.3s-1.8 0.8-3 0.8h-8.4v-23.5h8.4c1.2 0 2.2 0.3 3 0.8s1.5 1.3 1.9 2.4c0.4 1 0.7 2.3 0.7 3.7z"/><polygon points="99.5 94.5 119 94.5 119 86.5 99.5 86.5 99.5 66.4 116 66.4 116 58.4 99.5 58.4 99.5 37.9 119 37.9 119 29.9 99.5 29.9 95.5 29.9 91.1 29.9 91.1 94.5 95.5 94.5"/><polygon points="125 94.4 134 94.4 134 50.2 150 94.4 157 94.4 157 29.9 149 29.9 149 75.6 133 29.9 125 29.9"/><polygon points="222 94.5 241 94.5 241 86.5 222 86.5 222 29.9 214 29.9 214 94.5 219 94.5"/><polygon points="266 83.9 271 83.9 281 50.9 281 94.5 289 94.5 289 29.9 282 29.9 268 70.5 255 29.9 248 29.9 248 94.5 256 94.5 256 52.5"/><path d="m327 66.3c-1.1-2-2.4-3.5-4-4.6s-3.6-2.2-6.2-3.3c-0.1-0.1-0.3-0.1-0.5-0.2s-0.3-0.1-0.5-0.2l-1.2-0.6c-2-0.9-3.6-1.7-4.8-2.4s-2.1-1.6-2.9-2.7-1.2-2.5-1.2-4.1v-4c0-2.2 0.6-3.9 1.8-5.1s3-1.8 5.4-1.8c2.2 0 3.9 0.6 5 1.9 1.2 1.2 1.7 3 1.7 5.4v3h8.4v-3.4c0-3.2-0.6-6-1.8-8.2-1.2-2.3-2.9-4-5.2-5.2s-5-1.8-8.3-1.8-6.2 0.6-8.5 1.7c-2.3 1.2-4.1 2.8-5.3 5.1-1.2 2.2-1.8 5-1.8 8.1v4.1c0 3.2 0.6 5.9 1.8 8s2.7 3.7 4.4 4.9 4 2.4 6.7 3.6l0.6 0.3c0.1 0 0.1 0.1 0.2 0.1s0.1 0 0.2 0.1c2 0.9 3.6 1.7 4.8 2.4s2.1 1.6 2.9 2.7 1.2 2.4 1.2 4v5.6c0 2.4-0.6 4.2-1.8 5.4s-3 1.9-5.2 1.9c-2.3 0-4.1-0.6-5.4-1.9s-1.9-3.1-1.9-5.4v-2.9h-8.4v3.2c0 3.3 0.6 6 1.8 8.3s3 4 5.3 5.2 5.2 1.8 8.6 1.8c3.3 0 6.1-0.6 8.4-1.8s4.1-2.9 5.3-5.2 1.8-5 1.8-8.3v-5.9c0.3-3.2-0.3-5.8-1.4-7.8z"/></g><path d="m192 71.5v0.3c0 1.5-0.4 2.7-1.3 3.5-0.8 0.8-2 1.2-3.6 1.2-1.7 0-3-0.6-3.9-1.7s-1.4-2.7-1.4-4.6v-4.7h17.1v-10.7c0-2.8-0.5-5.2-1.4-7.1-1-2-2.3-3.5-4.2-4.5-1.8-1-4-1.5-6.6-1.5-2.5 0-4.7 0.6-6.5 1.7s-3.2 2.7-4.1 4.9c-1 2.1-1.4 4.7-1.4 7.7v14c0 2.8 0.5 5.3 1.5 7.3s2.4 3.5 4.2 4.6 4.1 1.6 6.7 1.6c3.8 0 6.8-1 8.8-3 2.1-2 3.1-4.9 3.1-8.6v-0.3h-7zm-8.8-21.4c0.9-1.2 2.1-1.8 3.6-1.8 1.6 0 2.9 0.6 3.7 1.7 0.9 1.1 1.3 2.8 1.3 4.9v4.4h-10v-3.9c0.1-2.3 0.6-4 1.4-5.3z" style="fill:#878787;"/><path d="m196 12.6-3.5 2c-1.5 0.9-2.7 2-3.6 3.3-2.7 3.7-3.1 8.7-0.7 12.9l3.5-2c5.6-3.3 7.6-10.6 4.3-16.2z" style="fill:#6c6c6c;"/><rect x="168" y="30.6" width="36.9" height="6.7" fill="#828282"/><path d="m189 17.9c-1.2-2.7-3.2-5-5.9-6.6l-4.2-2.4c-3.9 6.8-1.6 15.5 5.2 19.5l4.2 2.4c-2.4-4.2-2-9.3 0.7-12.9z" style="fill:#828282;"/><rect x="168" y="88.1" width="36.9" height="6.7" style="fill:#828282;"/></svg>';
la.SVG_DUPLICATE='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32px" height="32px" viewBox="0 0 32 32" version="1.1"><g id="surface1"><path style=" stroke:none;fill-rule:nonzero;fill:rgb(67,68,66);fill-opacity:1;" d="M 18 28 L 6 28 L 6 12 L 10 12 L 10 8 L 5 8 C 3.351562 8 2 9.351562 2 11 L 2 29 C 2 30.648438 3.351562 32 5 32 L 19 32 C 20.648438 32 22 30.648438 22 29 L 22 26 L 18 26 Z M 18 28 "/><path style=" stroke:none;fill-rule:nonzero;fill:rgb(88,172,218);fill-opacity:1;" d="M 29.101562 5.101562 L 24.851562 0.851562 C 24.300781 0.300781 23.550781 0 22.75 0 L 15 0 C 13.351562 0 12 1.351562 12 3 L 12 21 C 12 22.648438 13.351562 24 15 24 L 27 24 C 28.648438 24 30 22.648438 30 21 L 30 7.25 C 30 6.449219 29.699219 5.699219 29.101562 5.101562 Z M 29.101562 5.101562 "/></g></svg>';
la.SVG_MOVE='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32px" height="32px" viewBox="0 0 32 32" version="1.1"><g id="surface1"><path style=" stroke:none;fill-rule:nonzero;fill:rgb(88,172,218);fill-opacity:1;" d="M 17.398438 0.601562 C 16.601562 -0.199219 15.351562 -0.199219 14.550781 0.601562 L 10.550781 4.601562 C 10 5.148438 9.800781 6.050781 10.101562 6.800781 C 10.398438 7.550781 11.199219 8 12 8 L 14 8 L 14 14 L 8 14 L 8 12 C 8 11.199219 7.5 10.449219 6.75 10.148438 C 6 9.851562 5.148438 10 4.550781 10.601562 L 0.550781 14.601562 C -0.25 15.398438 -0.25 16.648438 0.550781 17.449219 L 4.550781 21.449219 C 5.101562 22 6 22.199219 6.75 21.898438 C 7.5 21.601562 8 20.800781 8 20 L 8 18 L 14 18 L 14 24 L 12 24 C 11.199219 24 10.449219 24.5 10.148438 25.25 C 9.851562 26 10 26.851562 10.601562 27.449219 L 14.601562 31.449219 C 15.398438 32.25 16.648438 32.25 17.449219 31.449219 L 21.449219 27.449219 C 22 26.898438 22.199219 26 21.898438 25.25 C 21.601562 24.5 20.800781 24 20 24 L 18 24 L 18 18 L 24 18 L 24 20 C 24 20.800781 24.5 21.550781 25.25 21.851562 C 26 22.148438 26.851562 22 27.449219 21.398438 L 31.449219 17.398438 C 32.25 16.601562 32.25 15.351562 31.449219 14.550781 L 27.449219 10.550781 C 26.898438 10 26 9.800781 25.25 10.101562 C 24.5 10.449219 24 11.199219 24 12 L 24 14 L 18 14 L 18 8 L 20 8 C 20.800781 8 21.550781 7.5 21.851562 6.75 C 22.148438 6 22 5.148438 21.398438 4.550781 Z M 17.398438 0.601562 "/></g></svg>';
la.SVG_REMOVE='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32px" height="32px" viewBox="0 0 32 32" version="1.1"><g id="surface1"><path style=" stroke:none;fill-rule:nonzero;fill:rgb(193,77,51);fill-opacity:1;" d="M 18.949219 16.148438 L 23.050781 12.050781 C 23.851562 11.25 23.851562 9.898438 23.050781 9.101562 C 22.25 8.300781 20.898438 8.300781 20.101562 9.101562 L 16 13.199219 L 11.898438 9.101562 C 11.101562 8.300781 9.75 8.300781 8.949219 9.101562 C 8.148438 9.898438 8.148438 11.25 8.949219 12.050781 L 13.050781 16.148438 L 8.949219 20.25 C 8.148438 21.050781 8.148438 22.398438 8.949219 23.199219 C 9.75 24 11.101562 24 11.898438 23.199219 L 16 19.101562 L 20.101562 23.199219 C 20.898438 24 22.25 24 23.050781 23.199219 C 23.851562 22.398438 23.851562 21.050781 23.050781 20.25 Z M 18.949219 16.148438 "/><path style=" stroke:none;fill-rule:nonzero;fill:rgb(67,68,66);fill-opacity:1;" d="M 27.449219 0 L 4.550781 0 C 2.050781 0 0 2.050781 0 4.550781 L 0 27.449219 C 0 29.949219 2.050781 32 4.550781 32 L 27.398438 32 C 29.898438 32 31.949219 29.949219 31.949219 27.449219 L 31.949219 4.550781 C 32 2.050781 29.949219 0 27.449219 0 Z M 28.550781 27.449219 C 28.550781 28.101562 28.050781 28.601562 27.398438 28.601562 L 4.550781 28.601562 C 3.898438 28.601562 3.398438 28.101562 3.398438 27.449219 L 3.398438 4.75 C 3.449219 4.050781 4 3.5 4.699219 3.5 L 27.300781 3.5 C 28 3.5 28.550781 4.050781 28.550781 4.75 Z M 28.550781 27.449219 "/></g></svg>';
la.SURVEY_CBOX_TONES=[13195609,10448756,8355198,7640431,7842893];Li.DEFAULT_TITLE="Demo version";Li.DEFAULT_TEXT='This elearning is currently in demo mode. If a client, contact <font color="#0000ff"><a href="mailto:support@openelms.com" target="_blank" >support@openelms.com</a></font> to unlock the learning.';Li.DEFAULT_TEXT_IOS='To run this course in full you will need to purchase the non-demo App from your App Store.<br><font color="#0000ff"><a href="https://itunes.apple.com/us/artist/e-learning-wmb/id735297927" target="_blank">Click here to see all e-learning courses currently available.</a></font>';
Li.DEFAULT_TEXT_ANDROID='To run this course in full you will need to purchase the non-demo App from your App Store.<br><font color="#0000ff"><a href="https://play.google.com/store/apps/developer?id=e-Learning+WMB&hl=en_GB" target="_blank">Click here to see all e-learning courses currently available.</a></font>';Wd.MULTIPLIER_TRIAL=19;Wd.MULTIPLIER_STANDARD=17;Wd.MULTIPLIER_LIGHT=13;Wd.MULTIPLIER_FREE=11;Wd.MULTIPLIER_ROOM=12345;Wd.VERSION_FREE="FREE";Wd.VERSION_TRIAL="TRIAL";Wd.VERSION_STANDARD="STANDARD";
Wd.VERSION_LIGHT="LIGHT";Bu.RESET_SCREEN="reset_screen";Bu.PLAY_AGAIN="play_again";Uo.MAX_DEMO_ID=5;Fj.DEFAULT_THUMB="images/thumbs/1.jpg";Fj.DEFAULT_TITLE_COLOR="#0099FF";Fj.DEFAULT_VOICE="Fable";Dk.SHOW_PROGRESS_HOVER="hover";Dk.SHOW_PROGRESS_ALWAYS="always";Gi.escapes=function(a){a=new da;a.h.lt="<";a.h.gt=">";a.h.amp="&";a.h.quot='"';a.h.apos="'";return a}(this);Ta.NEXT=function(a){a=z.parse('<button name="next" />');if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+
(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a}(this);Ta.PREV=function(a){a=z.parse('<button name="prev" visible="false" />');if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&
a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a}(this);Ta.YES=function(a){a=z.parse('<button name="yes" visible="false" />');if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));
return a}(this);Ta.NO=function(a){a=z.parse('<button name="no" visible="false" />');if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a}(this);Ta.SKIP=function(a){a=z.parse('<button name="skip" asset="next" />');if(a.nodeType!=
z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a}(this);Ta.QUIZ=function(a){a=z.parse('<button name="quiz" />');if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==
a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a}(this);Re.NAVIGATION=function(a){a=z.parse("<navigation />");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+
(null==a.nodeType?"null":V.toString(a.nodeType)));return a}(this);Re.NAV_BLOCKS=function(a){a=z.parse("<nav_blocks />");if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":V.toString(a.nodeType)));a=a.children[0];if(a.nodeType!=z.Document&&a.nodeType!=z.Element)throw u.thrown("Invalid nodeType "+(null==a.nodeType?"null":V.toString(a.nodeType)));return a}(this);Ni.ID_INPUT_NODES="INPUTNODES";fc.TYPE_EXAM=
"exam";fc.TYPE_TASK="task";fc.TYPE_SKILLSCAN="skillscan";fc.TYPE_INLINE="inline";fc.TYPE_SURVEY="survey";fc.TYPE_FREE_SURVEY="free_survey";fc.FIT_FILL="fill";fc.FIT_CONTAIN="contain";fc.FIT_COVER="cover";fc.FIT_NONE="none";fc.QTYPE_TEXT="TEXT";fc.QTYPE_TRUE_FALSE="TF";fc.QTYPE_MULTI_CHOICE="MC";fc.QTYPE_MULTI_RESPONSE="MR";fc.QTYPE_FILL_BLANK="FB";fc.QTYPE_WORD_BANK="WB";fc.QTYPE_MATCH_DRAG_DROP="MDD";fc.QTYPE_SEQ_DRAG_DROP="SDD";fc.QTYPE_LIKERT_SCALE="LKS";fc.SKILLSCAN_ANSWERS='<Answers>\n            <Answer AnswerID="1" Correct="0" Score="1" Order="1" TaskSeverity="0" ActionByID="0">\n                <Text>1 - Novice</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n            <Answer AnswerID="2" Correct="0" Score="2" Order="2" TaskSeverity="0" ActionByID="0">\n                <Text>2 - Some Knowledge</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n            <Answer AnswerID="3" Correct="0" Score="3" Order="3" TaskSeverity="0" ActionByID="0">\n                <Text>3 - Good Knowledge</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n            <Answer AnswerID="4" Correct="0" Score="4" Order="4" TaskSeverity="0" ActionByID="0">\n                <Text>4 - Expert</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n        </Answers>';
fc.TRUE_FALSE_ANSWERS='<Answers>\n            <Answer AnswerID="1" Correct="1" Score="1" Order="1" TaskSeverity="0" ActionByID="0">\n                <Text>True</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n            <Answer AnswerID="2" Correct="0" Score="0" Order="2" TaskSeverity="0" ActionByID="0">\n                <Text>False</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n        </Answers>';
fc.FILL_BLANK_ANSWERS='<Answers>\n            <Answer AnswerID="1" Correct="1" Score="1" Order="1" TaskSeverity="0" ActionByID="0">\n                <Text>White</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n            <Answer AnswerID="2" Correct="0" Score="1" Order="2" TaskSeverity="0" ActionByID="0">\n                <Text>Brown</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n        </Answers>';
fc.LIKERT_SCALE_ANSWERS='<Answers>\n            <Answer AnswerID="1" Correct="0" Score="1" Order="1" TaskSeverity="0" ActionByID="0">\n                <Text>Strongly disagree</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n            <Answer AnswerID="2" Correct="0" Score="2" Order="2" TaskSeverity="0" ActionByID="0">\n                <Text>Disagree</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n            <Answer AnswerID="3" Correct="0" Score="3" Order="3" TaskSeverity="0" ActionByID="0">\n                <Text>Neither agree nor disagree</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n            <Answer AnswerID="4" Correct="0" Score="4" Order="4" TaskSeverity="0" ActionByID="0">\n                <Text>Agree</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n            <Answer AnswerID="5" Correct="0" Score="5" Order="5" TaskSeverity="0" ActionByID="0">\n                <Text>Strongly agree</Text>\n                <TaskName/>\n                <TaskDescription/>\n                <Feedback/>\n            </Answer>\n        </Answers>';
ze.TYPE_EXAM=0;ze.TYPE_TASK=1;ze.TYPE_SKILLSCAN=2;ze.TYPE_INLINE=3;ze.TYPE_SURVEY=4;ze.TYPE_FREE_SURVEY=5;ze.TYPE_STRINGS="exam task skillscan inline survey free_survey".split(" ");Ut.CANVAS=0;Ut.WEBGL=1;Ut.PIXI=2;he.TYPE_TEXT="text";he.TYPE_CHECKBOX="checkbox";he.TYPE_RADIO="radio";Eb.QUIZ_SCREEN=1;Eb.FALLING_BLOCKS=2;Eb.FOLDER_SCREEN=3;Eb.LOADER_ANIMATION=4;Eb.LOADER_3=5;Eb.LOADER_2=6;Eb.BOOK=7;Eb.FALLING_BLOCKS_2=8;Eb.MULTI_BUTTON=9;Eb.MULTI_BUTTON_2=10;Eb.MULTI_BUTTON_3=11;Eb.MULTI_CONTENT=12;
Eb.IMAGES_NO_FLASH=13;Eb.SORTABLE_LIST=14;Eb.UNIVERSAL=15;Eb.TEMPLATES=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];Eb.CLASS_NAMES="QuizScreen Blocks3DScreen FolderScreen Universal Loader_3 Loader_2 BookScreen Blocks3D_V2_Screen MultiButton MultiButton2 MultiButton3 MultiContent ImagesNoFlash SortableList Universal".split(" ");Af.DAYS="Sun Mon Tue Wed Thu Fri Sat".split(" ");Af.MONTHS="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");$c.EOF=0;$c.SIZE=1;$c.BEGIN_FILL=10;$c.GRADIENT_FILL=11;$c.END_FILL=
12;$c.LINE_STYLE=20;$c.END_LINE_STYLE=21;$c.MOVE=30;$c.LINE=31;$c.CURVE=32;$c.base64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";$c.scaleModes=[2,1,3,0];$c.capsStyles=[1,0,2];$c.jointStyles=[2,1,0];$c.spreadMethods=[0,2,1];$c.interpolationMethods=[1,0];pc.MOVE=77;pc.MOVER=109;pc.LINE=76;pc.LINER=108;pc.HLINE=72;pc.HLINER=104;pc.VLINE=86;pc.VLINER=118;pc.CUBIC=67;pc.CUBICR=99;pc.SCUBIC=83;pc.SCUBICR=115;pc.QUAD=81;pc.QUADR=113;pc.SQUAD=84;pc.SQUADR=116;pc.ARC=65;pc.ARCR=97;pc.CLOSE=
90;pc.CLOSER=122;pc.UNKNOWN=-1;pc.SEPARATOR=-2;pc.FLOAT=-3;pc.FLOAT_SIGN=-4;pc.FLOAT_DOT=-5;pc.FLOAT_EXP=-6;yd.MOVE=1;yd.DRAW=2;yd.CURVE=3;yd.CUBIC=4;yd.ARC=5;Cb.SIN45=.7071067811865476;Cb.TAN22=.41421356237309503;Cb.mStyleSplit=new fa(";","g");Cb.mStyleValue=new fa("\\s*(.*)\\s*:\\s*(.*)\\s*","");Cb.mTranslateMatch=new fa("translate\\((.*)[, ](.*)\\)","");Cb.mScaleMatch=new fa("scale\\((.*)\\)","");Cb.mMatrixMatch=new fa("matrix\\((.*?)[, ]+(.*?)[, ]+(.*?)[, ]+(.*?)[, ]+(.*?)[, ]+(.*?)\\)","");Cb.mRotationMatch=
new fa("rotate\\(([0-9\\.]+)(\\s+([0-9\\.]+)\\s*[, ]\\s*([0-9\\.]+))?\\)","");Cb.mURLMatch=new fa("url\\(#(.*)\\)","");Cb.mRGBMatch=new fa("rgb\\s*\\(\\s*(\\d+)\\s*(%)?\\s*,\\s*(\\d+)\\s*(%)?\\s*,\\s*(\\d+)\\s*(%)?\\s*\\)","");Cb.defaultFill=Nh.FillSolid(0);Mh.SQRT2=Math.sqrt(2);Yd.USE_CACHE=!1;Yd.USE_ENUM_INDEX=!1;Yd.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";Nc.splitter=new fa('(::[A-Za-z0-9_ ()&|!+=/><*."-]+::|\\$\\$([A-Za-z0-9_-]+)\\()',"");Nc.expr_splitter=new fa('(\\(|\\)|[ \r\n\t]*"[^"]*"[ \r\n\t]*|[!+=/><*.&|-]+)',
"");Nc.expr_trim=new fa("^[ ]*([^ ]+)[ ]*$","");Nc.expr_int=new fa("^[0-9]+$","");Nc.expr_float=new fa("^([+-]?)(?=\\d|,\\d)\\d*(,\\d*)?([Ee]([+-]?\\d+))?$","");Nc.globals={};Nc.hxKeepArrayIterator=new pe([]);je.DEFAULT_RESOLVER=new fp;je.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";Mk.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";Mk.BYTES=Qa.ofString(Mk.CHARS);Id.i64tmp=new zb(0,0);Id.helper=new DataView(new ArrayBuffer(8));ke.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];ke.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];ke.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];ke.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];ke.CODE_LENGTHS_POS=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];Ya.VAR_BOUNDS_DISPLAY="jackdaw_bounds_display";
Ya.VAR_TAG_NAME="jackdaw_tag_name";Ya.VAR_NODE_WIDTH="jackdaw_node_width";Ya.VAR_NODE_HEIGHT="jackdaw_node_height";Ya.VAR_NODE_RESIZABLE="jackdaw_node_resizable";Ya.VAR_NODE_ID="jackdaw_node_id";Ya.VAR_NODE_HAS_BACKGROUND="jackdaw_node_has_background";Ya.options=new Is;Fb.ID_LABEL="jackdaw-label";Ij.MIN_WEBMALPHA_VER=31;Ij.MIN_FLWEBGL_VER=30;yb.IOS_AUTOPLAY_DISABLED_VER=6.1;yb.FIREFOX_MIN_WEBMALPHA_VER=53;Jd.__meta__={fields:{BitmapData_onError:{SuppressWarnings:["checkstyle:Dynamic"]}}};Si.VERTEX_BUFFER_STRIDE=
5;ie.STATE_INITIAL="initial";ie.STATE_OVER="over";ie.STATE_SELECTED="answered";ie.STATE_CORRECT="correct";ie.STATE_INCORRECT="incorrect";ie.STATE_SELECTED_OVER="over-selected";ie.STATE_SELECTED_DOWN="down-selected";ie.STATE_INITIAL_DOWN="down-empty";Sk.FRAME_CONSTRUCTED="jsFrameConstructed";Ui.TIMEOUT="loaderTimeout";kg._currentID=0;kg._evaluatorCache=new Bc;Vi._swfLoaders=new da;Gf.instances=new da;Xi.__meta__={fields:{quizManager:{inject:null}}};kf.CLICK="thozi_daClick.mp3";kf.VOLUME=.7;Fa.OPTION_REVOKE_URL=
1;Fa.activeRequests=0;Fa.requestLimit=17;Fa.requestQueue=new hb;cb.dummyCharacter="\u007f";cb.windowID=0;lg.DICTIONARY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");lg.EXTENDED_DICTIONARY=function(a){a=[];for(var b=0,c=lg.DICTIONARY;b<c.length;){var d=c[b];++b;for(var e=0,f=lg.DICTIONARY;e<f.length;){var h=f[e];++e;a.push(d+h)}}return a}(this);Te.MUL_TABLE=[1,171,205,293,57,373,79,137,241,27,391,357,41,19,283,265,497,469,443,421,25,191,365,349,335,161,155,149,9,278,
269,261,505,245,475,231,449,437,213,415,405,395,193,377,369,361,353,345,169,331,325,319,313,307,301,37,145,285,281,69,271,267,263,259,509,501,493,243,479,118,465,459,113,446,55,435,429,423,209,413,51,403,199,393,97,3,379,375,371,367,363,359,355,351,347,43,85,337,333,165,327,323,5,317,157,311,77,305,303,75,297,294,73,289,287,71,141,279,277,275,68,135,67,133,33,262,260,129,511,507,503,499,495,491,61,121,481,477,237,235,467,232,115,457,227,451,7,445,221,439,218,433,215,427,425,211,419,417,207,411,409,
203,202,401,399,396,197,49,389,387,385,383,95,189,47,187,93,185,23,183,91,181,45,179,89,177,11,175,87,173,345,343,341,339,337,21,167,83,331,329,327,163,81,323,321,319,159,79,315,313,39,155,309,307,153,305,303,151,75,299,149,37,295,147,73,291,145,289,287,143,285,71,141,281,35,279,139,69,275,137,273,17,271,135,269,267,133,265,33,263,131,261,130,259,129,257,1];Te.SHG_TABLE=[0,9,10,11,9,12,10,11,12,9,13,13,10,9,13,13,14,14,14,14,10,13,14,14,14,13,13,13,9,14,14,14,15,14,15,14,15,15,14,15,15,15,14,15,15,
15,15,15,14,15,15,15,15,15,15,12,14,15,15,13,15,15,15,15,16,16,16,15,16,14,16,16,14,16,13,16,16,16,15,16,13,16,15,16,14,9,16,16,16,16,16,16,16,16,16,13,14,16,16,15,16,16,10,16,15,16,14,16,16,14,16,16,14,16,16,14,15,16,16,16,14,15,14,15,13,16,16,15,17,17,17,17,17,17,14,15,17,17,16,16,17,16,15,17,16,17,11,17,16,17,16,17,16,17,17,16,17,17,16,17,17,16,16,17,17,17,16,14,17,17,17,17,15,16,14,16,15,16,13,16,15,16,14,16,15,16,12,16,15,16,17,17,17,17,17,13,16,15,17,17,17,16,15,17,17,17,16,15,17,17,14,16,17,
17,16,17,17,16,15,17,16,14,17,16,15,17,16,17,17,16,17,15,16,17,14,17,16,15,17,16,17,13,17,16,17,17,16,17,14,17,16,17,16,17,16,17,9];q.DEPTH_BUFFER_BIT=256;q.STENCIL_BUFFER_BIT=1024;q.COLOR_BUFFER_BIT=16384;q.POINTS=0;q.LINES=1;q.LINE_LOOP=2;q.LINE_STRIP=3;q.TRIANGLES=4;q.TRIANGLE_STRIP=5;q.TRIANGLE_FAN=6;q.ZERO=0;q.ONE=1;q.SRC_COLOR=768;q.ONE_MINUS_SRC_COLOR=769;q.SRC_ALPHA=770;q.ONE_MINUS_SRC_ALPHA=771;q.DST_ALPHA=772;q.ONE_MINUS_DST_ALPHA=773;q.DST_COLOR=774;q.ONE_MINUS_DST_COLOR=775;q.SRC_ALPHA_SATURATE=
776;q.FUNC_ADD=32774;q.BLEND_EQUATION=32777;q.BLEND_EQUATION_RGB=32777;q.BLEND_EQUATION_ALPHA=34877;q.FUNC_SUBTRACT=32778;q.FUNC_REVERSE_SUBTRACT=32779;q.BLEND_DST_RGB=32968;q.BLEND_SRC_RGB=32969;q.BLEND_DST_ALPHA=32970;q.BLEND_SRC_ALPHA=32971;q.CONSTANT_COLOR=32769;q.ONE_MINUS_CONSTANT_COLOR=32770;q.CONSTANT_ALPHA=32771;q.ONE_MINUS_CONSTANT_ALPHA=32772;q.BLEND_COLOR=32773;q.ARRAY_BUFFER=34962;q.ELEMENT_ARRAY_BUFFER=34963;q.ARRAY_BUFFER_BINDING=34964;q.ELEMENT_ARRAY_BUFFER_BINDING=34965;q.STREAM_DRAW=
35040;q.STATIC_DRAW=35044;q.DYNAMIC_DRAW=35048;q.BUFFER_SIZE=34660;q.BUFFER_USAGE=34661;q.CURRENT_VERTEX_ATTRIB=34342;q.FRONT=1028;q.BACK=1029;q.FRONT_AND_BACK=1032;q.CULL_FACE=2884;q.BLEND=3042;q.DITHER=3024;q.STENCIL_TEST=2960;q.DEPTH_TEST=2929;q.SCISSOR_TEST=3089;q.POLYGON_OFFSET_FILL=32823;q.SAMPLE_ALPHA_TO_COVERAGE=32926;q.SAMPLE_COVERAGE=32928;q.NO_ERROR=0;q.INVALID_ENUM=1280;q.INVALID_VALUE=1281;q.INVALID_OPERATION=1282;q.OUT_OF_MEMORY=1285;q.CW=2304;q.CCW=2305;q.LINE_WIDTH=2849;q.ALIASED_POINT_SIZE_RANGE=
33901;q.ALIASED_LINE_WIDTH_RANGE=33902;q.CULL_FACE_MODE=2885;q.FRONT_FACE=2886;q.DEPTH_RANGE=2928;q.DEPTH_WRITEMASK=2930;q.DEPTH_CLEAR_VALUE=2931;q.DEPTH_FUNC=2932;q.STENCIL_CLEAR_VALUE=2961;q.STENCIL_FUNC=2962;q.STENCIL_FAIL=2964;q.STENCIL_PASS_DEPTH_FAIL=2965;q.STENCIL_PASS_DEPTH_PASS=2966;q.STENCIL_REF=2967;q.STENCIL_VALUE_MASK=2963;q.STENCIL_WRITEMASK=2968;q.STENCIL_BACK_FUNC=34816;q.STENCIL_BACK_FAIL=34817;q.STENCIL_BACK_PASS_DEPTH_FAIL=34818;q.STENCIL_BACK_PASS_DEPTH_PASS=34819;q.STENCIL_BACK_REF=
36003;q.STENCIL_BACK_VALUE_MASK=36004;q.STENCIL_BACK_WRITEMASK=36005;q.VIEWPORT=2978;q.SCISSOR_BOX=3088;q.COLOR_CLEAR_VALUE=3106;q.COLOR_WRITEMASK=3107;q.UNPACK_ALIGNMENT=3317;q.PACK_ALIGNMENT=3333;q.MAX_TEXTURE_SIZE=3379;q.MAX_VIEWPORT_DIMS=3386;q.SUBPIXEL_BITS=3408;q.RED_BITS=3410;q.GREEN_BITS=3411;q.BLUE_BITS=3412;q.ALPHA_BITS=3413;q.DEPTH_BITS=3414;q.STENCIL_BITS=3415;q.POLYGON_OFFSET_UNITS=10752;q.POLYGON_OFFSET_FACTOR=32824;q.TEXTURE_BINDING_2D=32873;q.SAMPLE_BUFFERS=32936;q.SAMPLES=32937;q.SAMPLE_COVERAGE_VALUE=
32938;q.SAMPLE_COVERAGE_INVERT=32939;q.NUM_COMPRESSED_TEXTURE_FORMATS=34466;q.COMPRESSED_TEXTURE_FORMATS=34467;q.DONT_CARE=4352;q.FASTEST=4353;q.NICEST=4354;q.GENERATE_MIPMAP_HINT=33170;q.BYTE=5120;q.UNSIGNED_BYTE=5121;q.SHORT=5122;q.UNSIGNED_SHORT=5123;q.INT=5124;q.UNSIGNED_INT=5125;q.FLOAT=5126;q.DEPTH_COMPONENT=6402;q.ALPHA=6406;q.RGB=6407;q.RGBA=6408;q.LUMINANCE=6409;q.LUMINANCE_ALPHA=6410;q.UNSIGNED_SHORT_4_4_4_4=32819;q.UNSIGNED_SHORT_5_5_5_1=32820;q.UNSIGNED_SHORT_5_6_5=33635;q.FRAGMENT_SHADER=
35632;q.VERTEX_SHADER=35633;q.MAX_VERTEX_ATTRIBS=34921;q.MAX_VERTEX_UNIFORM_VECTORS=36347;q.MAX_VARYING_VECTORS=36348;q.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661;q.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660;q.MAX_TEXTURE_IMAGE_UNITS=34930;q.MAX_FRAGMENT_UNIFORM_VECTORS=36349;q.SHADER_TYPE=35663;q.DELETE_STATUS=35712;q.LINK_STATUS=35714;q.VALIDATE_STATUS=35715;q.ATTACHED_SHADERS=35717;q.ACTIVE_UNIFORMS=35718;q.ACTIVE_ATTRIBUTES=35721;q.SHADING_LANGUAGE_VERSION=35724;q.CURRENT_PROGRAM=35725;q.NEVER=512;q.LESS=
513;q.EQUAL=514;q.LEQUAL=515;q.GREATER=516;q.NOTEQUAL=517;q.GEQUAL=518;q.ALWAYS=519;q.KEEP=7680;q.REPLACE=7681;q.INCR=7682;q.DECR=7683;q.INVERT=5386;q.INCR_WRAP=34055;q.DECR_WRAP=34056;q.VENDOR=7936;q.RENDERER=7937;q.VERSION=7938;q.EXTENSIONS=7939;q.NEAREST=9728;q.LINEAR=9729;q.NEAREST_MIPMAP_NEAREST=9984;q.LINEAR_MIPMAP_NEAREST=9985;q.NEAREST_MIPMAP_LINEAR=9986;q.LINEAR_MIPMAP_LINEAR=9987;q.TEXTURE_MAG_FILTER=10240;q.TEXTURE_MIN_FILTER=10241;q.TEXTURE_WRAP_S=10242;q.TEXTURE_WRAP_T=10243;q.TEXTURE_2D=
3553;q.TEXTURE=5890;q.TEXTURE_CUBE_MAP=34067;q.TEXTURE_BINDING_CUBE_MAP=34068;q.TEXTURE_CUBE_MAP_POSITIVE_X=34069;q.TEXTURE_CUBE_MAP_NEGATIVE_X=34070;q.TEXTURE_CUBE_MAP_POSITIVE_Y=34071;q.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072;q.TEXTURE_CUBE_MAP_POSITIVE_Z=34073;q.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074;q.MAX_CUBE_MAP_TEXTURE_SIZE=34076;q.TEXTURE0=33984;q.TEXTURE1=33985;q.TEXTURE2=33986;q.TEXTURE3=33987;q.TEXTURE4=33988;q.TEXTURE5=33989;q.TEXTURE6=33990;q.TEXTURE7=33991;q.TEXTURE8=33992;q.TEXTURE9=33993;q.TEXTURE10=
33994;q.TEXTURE11=33995;q.TEXTURE12=33996;q.TEXTURE13=33997;q.TEXTURE14=33998;q.TEXTURE15=33999;q.TEXTURE16=34E3;q.TEXTURE17=34001;q.TEXTURE18=34002;q.TEXTURE19=34003;q.TEXTURE20=34004;q.TEXTURE21=34005;q.TEXTURE22=34006;q.TEXTURE23=34007;q.TEXTURE24=34008;q.TEXTURE25=34009;q.TEXTURE26=34010;q.TEXTURE27=34011;q.TEXTURE28=34012;q.TEXTURE29=34013;q.TEXTURE30=34014;q.TEXTURE31=34015;q.ACTIVE_TEXTURE=34016;q.REPEAT=10497;q.CLAMP_TO_EDGE=33071;q.MIRRORED_REPEAT=33648;q.FLOAT_VEC2=35664;q.FLOAT_VEC3=35665;
q.FLOAT_VEC4=35666;q.INT_VEC2=35667;q.INT_VEC3=35668;q.INT_VEC4=35669;q.BOOL=35670;q.BOOL_VEC2=35671;q.BOOL_VEC3=35672;q.BOOL_VEC4=35673;q.FLOAT_MAT2=35674;q.FLOAT_MAT3=35675;q.FLOAT_MAT4=35676;q.SAMPLER_2D=35678;q.SAMPLER_CUBE=35680;q.VERTEX_ATTRIB_ARRAY_ENABLED=34338;q.VERTEX_ATTRIB_ARRAY_SIZE=34339;q.VERTEX_ATTRIB_ARRAY_STRIDE=34340;q.VERTEX_ATTRIB_ARRAY_TYPE=34341;q.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922;q.VERTEX_ATTRIB_ARRAY_POINTER=34373;q.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975;q.IMPLEMENTATION_COLOR_READ_TYPE=
35738;q.IMPLEMENTATION_COLOR_READ_FORMAT=35739;q.VERTEX_PROGRAM_POINT_SIZE=34370;q.POINT_SPRITE=34913;q.COMPILE_STATUS=35713;q.LOW_FLOAT=36336;q.MEDIUM_FLOAT=36337;q.HIGH_FLOAT=36338;q.LOW_INT=36339;q.MEDIUM_INT=36340;q.HIGH_INT=36341;q.FRAMEBUFFER=36160;q.RENDERBUFFER=36161;q.RGBA4=32854;q.RGB5_A1=32855;q.RGB565=36194;q.DEPTH_COMPONENT16=33189;q.STENCIL_INDEX=6401;q.STENCIL_INDEX8=36168;q.DEPTH_STENCIL=34041;q.RENDERBUFFER_WIDTH=36162;q.RENDERBUFFER_HEIGHT=36163;q.RENDERBUFFER_INTERNAL_FORMAT=36164;
q.RENDERBUFFER_RED_SIZE=36176;q.RENDERBUFFER_GREEN_SIZE=36177;q.RENDERBUFFER_BLUE_SIZE=36178;q.RENDERBUFFER_ALPHA_SIZE=36179;q.RENDERBUFFER_DEPTH_SIZE=36180;q.RENDERBUFFER_STENCIL_SIZE=36181;q.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048;q.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049;q.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050;q.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051;q.COLOR_ATTACHMENT0=36064;q.DEPTH_ATTACHMENT=36096;q.STENCIL_ATTACHMENT=36128;q.DEPTH_STENCIL_ATTACHMENT=33306;q.NONE=0;q.FRAMEBUFFER_COMPLETE=
36053;q.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054;q.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055;q.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057;q.FRAMEBUFFER_UNSUPPORTED=36061;q.FRAMEBUFFER_BINDING=36006;q.RENDERBUFFER_BINDING=36007;q.MAX_RENDERBUFFER_SIZE=34024;q.INVALID_FRAMEBUFFER_OPERATION=1286;q.UNPACK_FLIP_Y_WEBGL=37440;q.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441;q.CONTEXT_LOST_WEBGL=37442;q.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443;q.BROWSER_DEFAULT_WEBGL=37444;q.READ_BUFFER=3074;q.UNPACK_ROW_LENGTH=
3314;q.UNPACK_SKIP_ROWS=3315;q.UNPACK_SKIP_PIXELS=3316;q.PACK_ROW_LENGTH=3330;q.PACK_SKIP_ROWS=3331;q.PACK_SKIP_PIXELS=3332;q.TEXTURE_BINDING_3D=32874;q.UNPACK_SKIP_IMAGES=32877;q.UNPACK_IMAGE_HEIGHT=32878;q.MAX_3D_TEXTURE_SIZE=32883;q.MAX_ELEMENTS_VERTICES=33E3;q.MAX_ELEMENTS_INDICES=33001;q.MAX_TEXTURE_LOD_BIAS=34045;q.MAX_FRAGMENT_UNIFORM_COMPONENTS=35657;q.MAX_VERTEX_UNIFORM_COMPONENTS=35658;q.MAX_ARRAY_TEXTURE_LAYERS=35071;q.MIN_PROGRAM_TEXEL_OFFSET=35076;q.MAX_PROGRAM_TEXEL_OFFSET=35077;q.MAX_VARYING_COMPONENTS=
35659;q.FRAGMENT_SHADER_DERIVATIVE_HINT=35723;q.RASTERIZER_DISCARD=35977;q.VERTEX_ARRAY_BINDING=34229;q.MAX_VERTEX_OUTPUT_COMPONENTS=37154;q.MAX_FRAGMENT_INPUT_COMPONENTS=37157;q.MAX_SERVER_WAIT_TIMEOUT=37137;q.MAX_ELEMENT_INDEX=36203;q.RED=6403;q.RGB8=32849;q.RGBA8=32856;q.RGB10_A2=32857;q.TEXTURE_3D=32879;q.TEXTURE_WRAP_R=32882;q.TEXTURE_MIN_LOD=33082;q.TEXTURE_MAX_LOD=33083;q.TEXTURE_BASE_LEVEL=33084;q.TEXTURE_MAX_LEVEL=33085;q.TEXTURE_COMPARE_MODE=34892;q.TEXTURE_COMPARE_FUNC=34893;q.SRGB=35904;
q.SRGB8=35905;q.SRGB8_ALPHA8=35907;q.COMPARE_REF_TO_TEXTURE=34894;q.RGBA32F=34836;q.RGB32F=34837;q.RGBA16F=34842;q.RGB16F=34843;q.TEXTURE_2D_ARRAY=35866;q.TEXTURE_BINDING_2D_ARRAY=35869;q.R11F_G11F_B10F=35898;q.RGB9_E5=35901;q.RGBA32UI=36208;q.RGB32UI=36209;q.RGBA16UI=36214;q.RGB16UI=36215;q.RGBA8UI=36220;q.RGB8UI=36221;q.RGBA32I=36226;q.RGB32I=36227;q.RGBA16I=36232;q.RGB16I=36233;q.RGBA8I=36238;q.RGB8I=36239;q.RED_INTEGER=36244;q.RGB_INTEGER=36248;q.RGBA_INTEGER=36249;q.R8=33321;q.RG8=33323;q.R16F=
33325;q.R32F=33326;q.RG16F=33327;q.RG32F=33328;q.R8I=33329;q.R8UI=33330;q.R16I=33331;q.R16UI=33332;q.R32I=33333;q.R32UI=33334;q.RG8I=33335;q.RG8UI=33336;q.RG16I=33337;q.RG16UI=33338;q.RG32I=33339;q.RG32UI=33340;q.R8_SNORM=36756;q.RG8_SNORM=36757;q.RGB8_SNORM=36758;q.RGBA8_SNORM=36759;q.RGB10_A2UI=36975;q.TEXTURE_IMMUTABLE_FORMAT=37167;q.TEXTURE_IMMUTABLE_LEVELS=33503;q.UNSIGNED_INT_2_10_10_10_REV=33640;q.UNSIGNED_INT_10F_11F_11F_REV=35899;q.UNSIGNED_INT_5_9_9_9_REV=35902;q.FLOAT_32_UNSIGNED_INT_24_8_REV=
36269;q.UNSIGNED_INT_24_8=34042;q.HALF_FLOAT=5131;q.RG=33319;q.RG_INTEGER=33320;q.INT_2_10_10_10_REV=36255;q.CURRENT_QUERY=34917;q.QUERY_RESULT=34918;q.QUERY_RESULT_AVAILABLE=34919;q.ANY_SAMPLES_PASSED=35887;q.ANY_SAMPLES_PASSED_CONSERVATIVE=36202;q.MAX_DRAW_BUFFERS=34852;q.DRAW_BUFFER0=34853;q.DRAW_BUFFER1=34854;q.DRAW_BUFFER2=34855;q.DRAW_BUFFER3=34856;q.DRAW_BUFFER4=34857;q.DRAW_BUFFER5=34858;q.DRAW_BUFFER6=34859;q.DRAW_BUFFER7=34860;q.DRAW_BUFFER8=34861;q.DRAW_BUFFER9=34862;q.DRAW_BUFFER10=34863;
q.DRAW_BUFFER11=34864;q.DRAW_BUFFER12=34865;q.DRAW_BUFFER13=34866;q.DRAW_BUFFER14=34867;q.DRAW_BUFFER15=34868;q.MAX_COLOR_ATTACHMENTS=36063;q.COLOR_ATTACHMENT1=36065;q.COLOR_ATTACHMENT2=36066;q.COLOR_ATTACHMENT3=36067;q.COLOR_ATTACHMENT4=36068;q.COLOR_ATTACHMENT5=36069;q.COLOR_ATTACHMENT6=36070;q.COLOR_ATTACHMENT7=36071;q.COLOR_ATTACHMENT8=36072;q.COLOR_ATTACHMENT9=36073;q.COLOR_ATTACHMENT10=36074;q.COLOR_ATTACHMENT11=36075;q.COLOR_ATTACHMENT12=36076;q.COLOR_ATTACHMENT13=36077;q.COLOR_ATTACHMENT14=
36078;q.COLOR_ATTACHMENT15=36079;q.SAMPLER_3D=35679;q.SAMPLER_2D_SHADOW=35682;q.SAMPLER_2D_ARRAY=36289;q.SAMPLER_2D_ARRAY_SHADOW=36292;q.SAMPLER_CUBE_SHADOW=36293;q.INT_SAMPLER_2D=36298;q.INT_SAMPLER_3D=36299;q.INT_SAMPLER_CUBE=36300;q.INT_SAMPLER_2D_ARRAY=36303;q.UNSIGNED_INT_SAMPLER_2D=36306;q.UNSIGNED_INT_SAMPLER_3D=36307;q.UNSIGNED_INT_SAMPLER_CUBE=36308;q.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311;q.MAX_SAMPLES=36183;q.SAMPLER_BINDING=35097;q.PIXEL_PACK_BUFFER=35051;q.PIXEL_UNPACK_BUFFER=35052;q.PIXEL_PACK_BUFFER_BINDING=
35053;q.PIXEL_UNPACK_BUFFER_BINDING=35055;q.COPY_READ_BUFFER=36662;q.COPY_WRITE_BUFFER=36663;q.COPY_READ_BUFFER_BINDING=36662;q.COPY_WRITE_BUFFER_BINDING=36663;q.FLOAT_MAT2x3=35685;q.FLOAT_MAT2x4=35686;q.FLOAT_MAT3x2=35687;q.FLOAT_MAT3x4=35688;q.FLOAT_MAT4x2=35689;q.FLOAT_MAT4x3=35690;q.UNSIGNED_INT_VEC2=36294;q.UNSIGNED_INT_VEC3=36295;q.UNSIGNED_INT_VEC4=36296;q.UNSIGNED_NORMALIZED=35863;q.SIGNED_NORMALIZED=36764;q.VERTEX_ATTRIB_ARRAY_INTEGER=35069;q.VERTEX_ATTRIB_ARRAY_DIVISOR=35070;q.TRANSFORM_FEEDBACK_BUFFER_MODE=
35967;q.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS=35968;q.TRANSFORM_FEEDBACK_VARYINGS=35971;q.TRANSFORM_FEEDBACK_BUFFER_START=35972;q.TRANSFORM_FEEDBACK_BUFFER_SIZE=35973;q.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN=35976;q.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS=35978;q.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS=35979;q.INTERLEAVED_ATTRIBS=35980;q.SEPARATE_ATTRIBS=35981;q.TRANSFORM_FEEDBACK_BUFFER=35982;q.TRANSFORM_FEEDBACK_BUFFER_BINDING=35983;q.TRANSFORM_FEEDBACK=36386;q.TRANSFORM_FEEDBACK_PAUSED=
36387;q.TRANSFORM_FEEDBACK_ACTIVE=36388;q.TRANSFORM_FEEDBACK_BINDING=36389;q.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING=33296;q.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE=33297;q.FRAMEBUFFER_ATTACHMENT_RED_SIZE=33298;q.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE=33299;q.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE=33300;q.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE=33301;q.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE=33302;q.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE=33303;q.FRAMEBUFFER_DEFAULT=33304;q.DEPTH24_STENCIL8=35056;q.DRAW_FRAMEBUFFER_BINDING=36006;
q.READ_FRAMEBUFFER=36008;q.DRAW_FRAMEBUFFER=36009;q.READ_FRAMEBUFFER_BINDING=36010;q.RENDERBUFFER_SAMPLES=36011;q.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER=36052;q.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE=36182;q.UNIFORM_BUFFER=35345;q.UNIFORM_BUFFER_BINDING=35368;q.UNIFORM_BUFFER_START=35369;q.UNIFORM_BUFFER_SIZE=35370;q.MAX_VERTEX_UNIFORM_BLOCKS=35371;q.MAX_FRAGMENT_UNIFORM_BLOCKS=35373;q.MAX_COMBINED_UNIFORM_BLOCKS=35374;q.MAX_UNIFORM_BUFFER_BINDINGS=35375;q.MAX_UNIFORM_BLOCK_SIZE=35376;q.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS=
35377;q.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS=35379;q.UNIFORM_BUFFER_OFFSET_ALIGNMENT=35380;q.ACTIVE_UNIFORM_BLOCKS=35382;q.UNIFORM_TYPE=35383;q.UNIFORM_SIZE=35384;q.UNIFORM_BLOCK_INDEX=35386;q.UNIFORM_OFFSET=35387;q.UNIFORM_ARRAY_STRIDE=35388;q.UNIFORM_MATRIX_STRIDE=35389;q.UNIFORM_IS_ROW_MAJOR=35390;q.UNIFORM_BLOCK_BINDING=35391;q.UNIFORM_BLOCK_DATA_SIZE=35392;q.UNIFORM_BLOCK_ACTIVE_UNIFORMS=35394;q.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES=35395;q.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER=35396;
q.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER=35398;q.OBJECT_TYPE=37138;q.SYNC_CONDITION=37139;q.SYNC_STATUS=37140;q.SYNC_FLAGS=37141;q.SYNC_FENCE=37142;q.SYNC_GPU_COMMANDS_COMPLETE=37143;q.UNSIGNALED=37144;q.SIGNALED=37145;q.ALREADY_SIGNALED=37146;q.TIMEOUT_EXPIRED=37147;q.CONDITION_SATISFIED=37148;q.WAIT_FAILED=37149;q.SYNC_FLUSH_COMMANDS_BIT=1;q.COLOR=6144;q.DEPTH=6145;q.STENCIL=6146;q.MIN=32775;q.MAX=32776;q.DEPTH_COMPONENT24=33190;q.STREAM_READ=35041;q.STREAM_COPY=35042;q.STATIC_READ=35045;q.STATIC_COPY=
35046;q.DYNAMIC_READ=35049;q.DYNAMIC_COPY=35050;q.DEPTH_COMPONENT32F=36012;q.DEPTH32F_STENCIL8=36013;q.INVALID_INDEX=-1;q.TIMEOUT_IGNORED=-1;q.MAX_CLIENT_WAIT_TIMEOUT_WEBGL=37447;jd.__identity=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];Qj.__identity=new Qj;ra.__identity=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];C.NONE=0;C.FALSE=0;C.TRUE=1;C.SOURCE_RELATIVE=514;C.CONE_INNER_ANGLE=4097;C.CONE_OUTER_ANGLE=4098;C.PITCH=4099;C.POSITION=4100;C.DIRECTION=4101;C.VELOCITY=4102;C.LOOPING=4103;C.BUFFER=4105;C.GAIN=4106;
C.MIN_GAIN=4109;C.MAX_GAIN=4110;C.ORIENTATION=4111;C.SOURCE_STATE=4112;C.INITIAL=4113;C.PLAYING=4114;C.PAUSED=4115;C.STOPPED=4116;C.BUFFERS_QUEUED=4117;C.BUFFERS_PROCESSED=4118;C.REFERENCE_DISTANCE=4128;C.ROLLOFF_FACTOR=4129;C.CONE_OUTER_GAIN=4130;C.MAX_DISTANCE=4131;C.SEC_OFFSET=4132;C.SAMPLE_OFFSET=4133;C.BYTE_OFFSET=4134;C.SOURCE_TYPE=4135;C.STATIC=4136;C.STREAMING=4137;C.UNDETERMINED=4144;C.FORMAT_MONO8=4352;C.FORMAT_MONO16=4353;C.FORMAT_STEREO8=4354;C.FORMAT_STEREO16=4355;C.FREQUENCY=8193;C.BITS=
8194;C.CHANNELS=8195;C.SIZE=8196;C.NO_ERROR=0;C.INVALID_NAME=40961;C.INVALID_ENUM=40962;C.INVALID_VALUE=40963;C.INVALID_OPERATION=40964;C.OUT_OF_MEMORY=40965;C.VENDOR=45057;C.VERSION=45058;C.RENDERER=45059;C.EXTENSIONS=45060;C.DOPPLER_FACTOR=49152;C.SPEED_OF_SOUND=49155;C.DOPPLER_VELOCITY=49153;C.DISTANCE_MODEL=53248;C.INVERSE_DISTANCE=53249;C.INVERSE_DISTANCE_CLAMPED=53250;C.LINEAR_DISTANCE=53251;C.LINEAR_DISTANCE_CLAMPED=53252;C.EXPONENT_DISTANCE=53253;C.EXPONENT_DISTANCE_CLAMPED=53254;C.METERS_PER_UNIT=
131076;C.DIRECT_FILTER=131077;C.AUXILIARY_SEND_FILTER=131078;C.AIR_ABSORPTION_FACTOR=131079;C.ROOM_ROLLOFF_FACTOR=131080;C.CONE_OUTER_GAINHF=131081;C.DIRECT_FILTER_GAINHF_AUTO=131082;C.AUXILIARY_SEND_FILTER_GAIN_AUTO=131083;C.AUXILIARY_SEND_FILTER_GAINHF_AUTO=131084;C.REVERB_DENSITY=1;C.REVERB_DIFFUSION=2;C.REVERB_GAIN=3;C.REVERB_GAINHF=4;C.REVERB_DECAY_TIME=5;C.REVERB_DECAY_HFRATIO=6;C.REVERB_REFLECTIONS_GAIN=7;C.REVERB_REFLECTIONS_DELAY=8;C.REVERB_LATE_REVERB_GAIN=9;C.REVERB_LATE_REVERB_DELAY=10;
C.REVERB_AIR_ABSORPTION_GAINHF=11;C.REVERB_ROOM_ROLLOFF_FACTOR=12;C.REVERB_DECAY_HFLIMIT=13;C.EAXREVERB_DENSITY=1;C.EAXREVERB_DIFFUSION=2;C.EAXREVERB_GAIN=3;C.EAXREVERB_GAINHF=4;C.EAXREVERB_GAINLF=5;C.EAXREVERB_DECAY_TIME=6;C.EAXREVERB_DECAY_HFRATIO=7;C.EAXREVERB_DECAY_LFRATIO=8;C.EAXREVERB_REFLECTIONS_GAIN=9;C.EAXREVERB_REFLECTIONS_DELAY=10;C.EAXREVERB_REFLECTIONS_PAN=11;C.EAXREVERB_LATE_REVERB_GAIN=12;C.EAXREVERB_LATE_REVERB_DELAY=13;C.EAXREVERB_LATE_REVERB_PAN=14;C.EAXREVERB_ECHO_TIME=15;C.EAXREVERB_ECHO_DEPTH=
16;C.EAXREVERB_MODULATION_TIME=17;C.EAXREVERB_MODULATION_DEPTH=18;C.EAXREVERB_AIR_ABSORPTION_GAINHF=19;C.EAXREVERB_HFREFERENCE=20;C.EAXREVERB_LFREFERENCE=21;C.EAXREVERB_ROOM_ROLLOFF_FACTOR=22;C.EAXREVERB_DECAY_HFLIMIT=23;C.CHORUS_WAVEFORM=1;C.CHORUS_PHASE=2;C.CHORUS_RATE=3;C.CHORUS_DEPTH=4;C.CHORUS_FEEDBACK=5;C.CHORUS_DELAY=6;C.DISTORTION_EDGE=1;C.DISTORTION_GAIN=2;C.DISTORTION_LOWPASS_CUTOFF=3;C.DISTORTION_EQCENTER=4;C.DISTORTION_EQBANDWIDTH=5;C.ECHO_DELAY=1;C.ECHO_LRDELAY=2;C.ECHO_DAMPING=3;C.ECHO_FEEDBACK=
4;C.ECHO_SPREAD=5;C.FLANGER_WAVEFORM=1;C.FLANGER_PHASE=2;C.FLANGER_RATE=3;C.FLANGER_DEPTH=4;C.FLANGER_FEEDBACK=5;C.FLANGER_DELAY=6;C.FREQUENCY_SHIFTER_FREQUENCY=1;C.FREQUENCY_SHIFTER_LEFT_DIRECTION=2;C.FREQUENCY_SHIFTER_RIGHT_DIRECTION=3;C.VOCAL_MORPHER_PHONEMEA=1;C.VOCAL_MORPHER_PHONEMEA_COARSE_TUNING=2;C.VOCAL_MORPHER_PHONEMEB=3;C.VOCAL_MORPHER_PHONEMEB_COARSE_TUNING=4;C.VOCAL_MORPHER_WAVEFORM=5;C.VOCAL_MORPHER_RATE=6;C.PITCH_SHIFTER_COARSE_TUNE=1;C.PITCH_SHIFTER_FINE_TUNE=2;C.RING_MODULATOR_FREQUENCY=
1;C.RING_MODULATOR_HIGHPASS_CUTOFF=2;C.RING_MODULATOR_WAVEFORM=3;C.AUTOWAH_ATTACK_TIME=1;C.AUTOWAH_RELEASE_TIME=2;C.AUTOWAH_RESONANCE=3;C.AUTOWAH_PEAK_GAIN=4;C.COMPRESSOR_ONOFF=1;C.EQUALIZER_LOW_GAIN=1;C.EQUALIZER_LOW_CUTOFF=2;C.EQUALIZER_MID1_GAIN=3;C.EQUALIZER_MID1_CENTER=4;C.EQUALIZER_MID1_WIDTH=5;C.EQUALIZER_MID2_GAIN=6;C.EQUALIZER_MID2_CENTER=7;C.EQUALIZER_MID2_WIDTH=8;C.EQUALIZER_HIGH_GAIN=9;C.EQUALIZER_HIGH_CUTOFF=10;C.EFFECT_FIRST_PARAMETER=0;C.EFFECT_LAST_PARAMETER=32768;C.EFFECT_TYPE=32769;
C.EFFECT_NULL=0;C.EFFECT_EAXREVERB=32768;C.EFFECT_REVERB=1;C.EFFECT_CHORUS=2;C.EFFECT_DISTORTION=3;C.EFFECT_ECHO=4;C.EFFECT_FLANGER=5;C.EFFECT_FREQUENCY_SHIFTER=6;C.EFFECT_VOCAL_MORPHER=7;C.EFFECT_PITCH_SHIFTER=8;C.EFFECT_RING_MODULATOR=9;C.FFECT_AUTOWAH=10;C.EFFECT_COMPRESSOR=11;C.EFFECT_EQUALIZER=12;C.EFFECTSLOT_EFFECT=1;C.EFFECTSLOT_GAIN=2;C.EFFECTSLOT_AUXILIARY_SEND_AUTO=3;C.LOWPASS_GAIN=1;C.LOWPASS_GAINHF=2;C.HIGHPASS_GAIN=1;C.HIGHPASS_GAINLF=2;C.BANDPASS_GAIN=1;C.BANDPASS_GAINLF=2;C.BANDPASS_GAINHF=
3;C.FILTER_FIRST_PARAMETER=0;C.FILTER_LAST_PARAMETER=32768;C.FILTER_TYPE=32769;C.FILTER_NULL=0;C.FILTER_LOWPASS=1;C.FILTER_HIGHPASS=2;C.FILTER_BANDPASS=3;tb.FALSE=0;tb.TRUE=1;tb.FREQUENCY=4103;tb.REFRESH=4104;tb.SYNC=4105;tb.MONO_SOURCES=4112;tb.STEREO_SOURCES=4113;tb.NO_ERROR=0;tb.INVALID_DEVICE=40961;tb.INVALID_CONTEXT=40962;tb.INVALID_ENUM=40963;tb.INVALID_VALUE=40964;tb.OUT_OF_MEMORY=40965;tb.ATTRIBUTES_SIZE=4098;tb.ALL_ATTRIBUTES=4099;tb.DEFAULT_DEVICE_SPECIFIER=4100;tb.DEVICE_SPECIFIER=4101;
tb.EXTENSIONS=4102;tb.ENUMERATE_ALL_EXT=1;tb.DEFAULT_ALL_DEVICES_SPECIFIER=4114;tb.ALL_DEVICES_SPECIFIER=4115;Rd.onUpdate=new Ad;ae.alreadyCreated=new da;ae.initialized=!1;dg.sensorByID=new Bc;dg.sensors=[];Ka.__directories=new Bc;dd.devices=new Bc;dd.onConnect=new Ws;Cc.devices=new Bc;Cc.onConnect=new Xs;mb.NONE=0;mb.LEFT_SHIFT=1;mb.RIGHT_SHIFT=2;mb.LEFT_CTRL=64;mb.RIGHT_CTRL=128;mb.LEFT_ALT=256;mb.RIGHT_ALT=512;mb.LEFT_META=1024;mb.RIGHT_META=2048;mb.NUM_LOCK=4096;mb.CAPS_LOCK=8192;mb.MODE=16384;
mb.CTRL=192;mb.SHIFT=3;mb.ALT=768;mb.META=3072;Qc.onCancel=new Yk;Qc.onEnd=new Yk;Qc.onMove=new Yk;Qc.onStart=new Yk;oa.cache=new dt;oa.onChange=new Ad;oa.bundlePaths=new da;oa.libraries=new da;oa.libraryPaths=new da;Rh.BYTES_PER_ELEMENT=4;Ea.throwErrors=!0;sc.actuators=[];sc.actuatorsLength=0;sc.addedEvent=!1;Pp.easeIn=new Mp;Pp.easeInOut=new Np;Pp.easeOut=new Op;va.defaultActuator=sc;va.defaultEase=Pp.easeOut;va.targetLibraries=new ea;Wp.easeIn=new Zm;Wp.easeInOut=new Vp;Wp.easeOut=new $m;Sj.easeIn=
new an(.1,.4);Sj.easeInOut=new bn(.1,.4);Sj.easeOut=new cn(.1,.4);rd.easeIn=new Zp;rd.easeInOut=new $p;rd.easeOut=new aq;Sa.__lastTimerID=0;Sa.__sentWarnings=new da;Sa.__timers=new Bc;Yh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};$f.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{toJSON:{SuppressWarnings:["checkstyle:Dynamic"]}}};bg.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{toJSON:{SuppressWarnings:["checkstyle:Dynamic"]},
_:{SuppressWarnings:["checkstyle:Dynamic"]}}};cg.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{toJSON:{SuppressWarnings:["checkstyle:Dynamic"]}}};ag.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{toJSON:{SuppressWarnings:["checkstyle:Dynamic"]}}};vf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{concat:{SuppressWarnings:["checkstyle:Dynamic"]},toJSON:{SuppressWarnings:["checkstyle:Dynamic"]},_:{SuppressWarnings:["checkstyle:Dynamic"]}}};
rm.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};xb.__meta__={fields:{image:{SuppressWarnings:["checkstyle:Dynamic"]},__framebufferContext:{SuppressWarnings:["checkstyle:Dynamic"]},__indexBufferContext:{SuppressWarnings:["checkstyle:Dynamic"]},__surface:{SuppressWarnings:["checkstyle:Dynamic"]},__textureContext:{SuppressWarnings:["checkstyle:Dynamic"]},__vertexBufferContext:{SuppressWarnings:["checkstyle:Dynamic"]},compare:{SuppressWarnings:["checkstyle:Dynamic"]},getSurface:{SuppressWarnings:["checkstyle:Dynamic"]},
__fromImage:{SuppressWarnings:["checkstyle:Dynamic"]}}};xb.VERTEX_BUFFER_STRIDE=14;xb.__tempVector=new id;Ge.__meta__={fields:{__context:{SuppressWarnings:["checkstyle:Dynamic"]},__type:{SuppressWarnings:["checkstyle:Dynamic"]}}};cq.__meta__={fields:{cairo:{SuppressWarnings:["checkstyle:Dynamic"]},__matrix3:{SuppressWarnings:["checkstyle:Dynamic"]},applyMatrix:{SuppressWarnings:["checkstyle:Dynamic"]},__setBlendModeCairo:{SuppressWarnings:["checkstyle:Dynamic"]},_:{SuppressWarnings:["checkstyle:Dynamic"]}}};
Zh.__meta__={fields:{context:{SuppressWarnings:["checkstyle:Dynamic"]},applySmoothing:{SuppressWarnings:["checkstyle:Dynamic"]},setTransform:{SuppressWarnings:["checkstyle:Dynamic"]},__setBlendModeContext:{SuppressWarnings:["checkstyle:Dynamic"]},_:{SuppressWarnings:["checkstyle:Dynamic"]}}};Bs.NONE=0;Bs.ROUND=1;Bs.SQUARE=2;Pg.__meta__={fields:{__element:{SuppressWarnings:["checkstyle:Dynamic"]},_:{SuppressWarnings:["checkstyle:Dynamic"]}}};al.__meta__={fields:{element:{SuppressWarnings:["checkstyle:Dynamic"]},
applyStyle:{SuppressWarnings:["checkstyle:Dynamic"]},clearStyle:{SuppressWarnings:["checkstyle:Dynamic"]},_:{SuppressWarnings:["checkstyle:Dynamic"]}}};We.__meta__={fields:{glProgram:{SuppressWarnings:["checkstyle:Dynamic"]}}};Bb.__missingFontWarning=new da;Cu.LINEAR=0;Cu.RADIAL=1;ye.__meta__={fields:{overrideBlendMode:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};cl.SIN45=.7071067811865476;cl.TAN22=.41421356237309503;Du.LINEAR_RGB=0;Du.RGB=1;Cs.BEVEL=0;Cs.MITER=1;Cs.ROUND=2;As.HORIZONTAL=0;
As.NONE=1;As.NORMAL=2;As.VERTICAL=3;Qg.__meta__={statics:{create:{SuppressWarnings:["checkstyle:FieldDocComment"]}},fields:{parameters:{SuppressWarnings:["checkstyle:Dynamic"]}}};Qg.__rootURL=Qh.get_supported()?window.document.URL:"";ha.__pool=new K(function(){return new ha},function(a){a.setTo(0,0,0,0)});ub.__meta__={fields:{gl:{SuppressWarnings:["checkstyle:Dynamic"]},__gl:{SuppressWarnings:["checkstyle:Dynamic"]},__matrix:{SuppressWarnings:["checkstyle:Dynamic"]},__projection:{SuppressWarnings:["checkstyle:Dynamic"]},
__projectionFlipped:{SuppressWarnings:["checkstyle:Dynamic"]},getMatrix:{SuppressWarnings:["checkstyle:Dynamic"]}}};ub.__alphaValue=[1];ub.__colorMultipliersValue=[0,0,0,0];ub.__colorOffsetsValue=[0,0,0,0];ub.__defaultColorMultipliersValue=[1,1,1,1];ub.__emptyColorValue=[0,0,0,0];ub.__emptyAlphaValue=[1];ub.__hasColorTransformValue=[!1];ub.__scissorRectangle=new ha;ub.__textureSizeValue=[0,0];iq.__meta__={fields:{index:{SuppressWarnings:["checkstyle:Dynamic"]},name:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};
bl.__meta__={fields:{index:{SuppressWarnings:["checkstyle:Dynamic"]},name:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Vt.PAD=0;Vt.REFLECT=1;Vt.REPEAT=2;dl.__meta__={fields:{__broadcastEvent:{SuppressWarnings:["checkstyle:Dynamic"]},__dispatchEvent:{SuppressWarnings:[["checkstyle:Dynamic","checkstyle:LeftCurly"]]},__dispatchStack:{SuppressWarnings:[["checkstyle:Dynamic","checkstyle:LeftCurly"]]},__dispatchTarget:{SuppressWarnings:["checkstyle:Dynamic"]},__handleError:{SuppressWarnings:["checkstyle:Dynamic"]}}};
aj.__meta__={fields:{data:{SuppressWarnings:["checkstyle:Dynamic"]}}};xq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};wk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{_:{SuppressWarnings:["checkstyle:Dynamic"]}}};gl.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};yq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};zq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Aq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};
Bq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Cq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Xj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{renderTileContainer:{SuppressWarnings:["checkstyle:Dynamic"]}}};$k.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Zi.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};se.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{o:{SuppressWarnings:["checkstyle:Dynamic"]}}};
se.empty=new se;D.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{windingRule:{SuppressWarnings:["checkstyle:Dynamic"]},createBitmapFill:{SuppressWarnings:["checkstyle:Dynamic"]},createGradientPattern:{SuppressWarnings:["checkstyle:Dynamic"]}}};D.SIN45=.7071067811865476;D.TAN22=.41421356237309503;D.fillCommands=new se;D.strokeCommands=new se;wu.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};R.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};
pg.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{renderTileContainer:{SuppressWarnings:["checkstyle:Dynamic"]}}};Ti.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Jf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};bj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};bj.MAX_INDEX_BUFFER_LENGTH=65535;bj.MAX_QUADS_PER_INDEX_BUFFER=10922;bj.MAX_QUAD_INDEX_BUFFER_LENGTH=65532;$h.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};
Aa.__meta__={fields:{equals:{SuppressWarnings:["checkstyle:FieldDocComment"]},to3DString:{SuppressWarnings:["checkstyle:FieldDocComment"]},toMozString:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Aa.__identity=new Aa;Aa.__pool=new K(function(){return new Aa},function(a){a.identity()});Aa.__matrix3=new Qj;tc.__pool=new K(function(){return new tc},function(a){a.__identity()});wc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};wc.blankBitmapData=new xb(1,1,!1,0);wc.tempColorTransform=
new tc(1,1,1,1,0,0,0,0);Uj.opaqueBitmapData=new xb(1,1,!1,0);ug.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ai.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Z.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Kf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Kf.__textureSizeValue=[0,0];xc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};qg.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};vg.__meta__=
{obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Ob.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Ob.__regexColor=new fa("color=(\"#([^\"]+)\"|'#([^']+)')","i");Ob.__regexFace=new fa("face=(\"([^\"]+)\"|'([^']+)')","i");Ob.__regexFont=new fa("<font ([^>]+)>","gi");Ob.__regexCloseFont=new fa("</font>","gi");Ob.__regexSize=new fa("size=(\"([^\"]+)\"|'([^']+)')","i");qh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};mh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};
rg.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{obj:{SuppressWarnings:["checkstyle:Dynamic"]}}};dj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ab.__pool=new K(function(){return new ab},function(a){a.setTo(0,0)});Yj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Yj.alphaColorTransform=new tc;Yj.bitmap=new Pd;Yj.destPoint=new ab;Yj.sourceRect=new ha;Tj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{P:{SuppressWarnings:["checkstyle:ConstantName"]}}};
Tj.P=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,
82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180,151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,
240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,
70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180];Zj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};mq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{overrideIntValues:{SuppressWarnings:["checkstyle:Dynamic"]}}};
Sb.supportsVideoTexture=!0;Sb.__glDepthStencil=-1;Sb.__glMaxTextureMaxAnisotropy=-1;Sb.__glMaxViewportDims=-1;Sb.__glMemoryCurrentAvailable=-1;Sb.__glMemoryTotalAvailable=-1;Sb.__glTextureMaxAnisotropy=-1;xu.DYNAMIC_DRAW=0;xu.STATIC_DRAW=1;yu.FRAGMENT=0;yu.VERTEX=1;kn.BGR_PACKED=0;kn.BGRA=1;kn.BGRA_PACKED=2;kn.COMPRESSED=3;kn.COMPRESSED_ALPHA=4;kn.RGBA_HALF_FLOAT=5;Eq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ln.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};
ne.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ne.limitedProfile=!0;il.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Fq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};jl.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};bk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};mn.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};hn.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Wb.__meta__=
{fields:{__textureContext:{SuppressWarnings:["checkstyle:Dynamic"]},__getGLFramebuffer:{SuppressWarnings:["checkstyle:Dynamic"]}}};ak.__lowMemoryMode=!1;Fc.DEFAULT_TO_STRING="Error";di.ACTIVITY="activity";Ye.LINK="link";Ye.TEXT_INPUT="textInput";qe.ERROR="error";pm.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};om.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};tg.FOCUS_IN="focusIn";tg.FOCUS_OUT="focusOut";tg.KEY_FOCUS_CHANGE="keyFocusChange";tg.MOUSE_FOCUS_CHANGE=
"mouseFocusChange";gh.FULL_SCREEN="fullScreen";gh.FULL_SCREEN_INTERACTIVE_ACCEPTED="fullScreenInteractiveAccepted";rh.DEVICE_ADDED="deviceAdded";rh.DEVICE_REMOVED="deviceRemoved";rh.DEVICE_UNUSABLE="deviceUnusable";Mj.HTTP_RESPONSE_STATUS="httpResponseStatus";Mj.HTTP_STATUS="httpStatus";eg.IO_ERROR="ioError";Ii.KEY_DOWN="keyDown";Ii.KEY_UP="keyUp";eb.CLICK="click";eb.DOUBLE_CLICK="doubleClick";eb.MIDDLE_CLICK="middleClick";eb.MIDDLE_MOUSE_DOWN="middleMouseDown";eb.MIDDLE_MOUSE_UP="middleMouseUp";
eb.MOUSE_DOWN="mouseDown";eb.MOUSE_MOVE="mouseMove";eb.MOUSE_OUT="mouseOut";eb.MOUSE_OVER="mouseOver";eb.MOUSE_UP="mouseUp";eb.MOUSE_WHEEL="mouseWheel";eb.RELEASE_OUTSIDE="releaseOutside";eb.RIGHT_CLICK="rightClick";eb.RIGHT_MOUSE_DOWN="rightMouseDown";eb.RIGHT_MOUSE_UP="rightMouseUp";eb.ROLL_OUT="rollOut";eb.ROLL_OVER="rollOver";ck.NET_STATUS="netStatus";Df.PROGRESS="progress";Df.SOCKET_DATA="socketData";Hg.CLEAR_DOM="clearDOM";Hg.RENDER_CAIRO="renderCairo";Hg.RENDER_CANVAS="renderCanvas";Hg.RENDER_DOM=
"renderDOM";Hg.RENDER_OPENGL="renderOpenGL";Uk.SECURITY_ERROR="securityError";ei.TIMER="timer";ei.TIMER_COMPLETE="timerComplete";xd.__meta__={fields:{delta:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};xd.TOUCH_BEGIN="touchBegin";xd.TOUCH_END="touchEnd";xd.TOUCH_MOVE="touchMove";xd.TOUCH_OUT="touchOut";xd.TOUCH_OVER="touchOver";xd.TOUCH_ROLL_OUT="touchRollOut";xd.TOUCH_ROLL_OVER="touchRollOver";xd.TOUCH_TAP="touchTap";el.UNCAUGHT_ERROR="uncaughtError";lc.available=!0;lc.marshallExceptions=!1;
Ug.__blurShader=new Gq;nn.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ej.__colorMatrixShader=new nn;sh.__convolutionShader=new Hq;$b.__displacementMapShader=new Iq;$b.__matrixData=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];$b.__offset=[.5,.5,0,0];fj.__hideShader=new Jq;sd.__invertAlphaShader=new Pq;sd.__blurAlphaShader=new Kq;sd.__combineShader=new Mq;sd.__innerCombineShader=new Oq;sd.__combineKnockoutShader=new Lq;sd.__innerCombineKnockoutShader=new Nq;Bd.__meta__={statics:{create2D:{SuppressWarnings:["checkstyle:FieldDocComment"]},
createABCD:{SuppressWarnings:["checkstyle:FieldDocComment"]},createOrtho:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};hf.__meta__={fields:{clone:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Vc.MAX_ACTIVE_CHANNELS=32;Vc.__soundChannels=[];Vc.__soundTransform=new hf;Lj.__meta__={statics:{CONNECT_SUCCESS:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Lj.CONNECT_SUCCESS="NetConnection.Connect.Success";Mm.__meta__={fields:{audioCodec:{SuppressWarnings:["checkstyle:FieldDocComment"]},
decodedFrames:{SuppressWarnings:["checkstyle:FieldDocComment"]},speed:{SuppressWarnings:["checkstyle:FieldDocComment"]},requestVideoStatus:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Cd.defaultObjectEncoding=10;gj.followRedirects=!0;gj.idleTimeout=0;gj.manageCookies=!1;Ff.currentDomain=new Ff(null);Hb.avHardwareDisable=!0;Hb.hasAccessibility=!1;Hb.hasAudio=!0;Hb.hasAudioEncoder=!1;Hb.hasEmbeddedVideo=!1;Hb.hasIME=!1;Hb.hasMP3=!1;Hb.hasPrinting=!0;Hb.hasScreenBroadcast=!1;Hb.hasScreenPlayback=
!1;Hb.hasStreamingAudio=!1;Hb.hasStreamingVideo=!1;Hb.hasTLS=!0;Hb.hasVideoEncoder=!0;Hb.isDebugger=!1;Hb.isEmbeddedInAcrobat=!1;Hb.localFileReadDisable=!0;Hb.maxLevelIDC=0;Hb.playerType="PlugIn";Hb.screenColor="color";Hb.serverString="";Hb.supports32BitProcesses=!1;Hb.supports64BitProcesses=!1;Hb.touchscreenType=0;Hb.__standardDensities=[120,160,240,320,480,640,800,960];on.__meta__={obj:{SuppressWarnings:["checkstyle:UnnecessaryConstructor"]}};on.currentDomain=new on;Hu.DYNAMIC=0;Hu.INPUT=1;ib.__meta__=
{fields:{clone:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Oj.CENTER=0;Oj.END=1;Oj.JUSTIFY=2;Oj.LEFT=3;Oj.RIGHT=4;Oj.START=5;qn.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};tt.__meta__={obj:{SuppressWarnings:[["checkstyle:FieldDocComment","checkstyle:Dynamic"]]}};db.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};db.__regexAlign=new fa("align\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");db.__regexBreakTag=new fa("<br\\s*/?>","gi");db.__regexBlockIndent=new fa("blockindent\\s?=\\s?(\"([^\"]+)\"|'([^']+)')",
"i");db.__regexColor=new fa("color\\s?=\\s?(\"#([^\"]+)\"|'#([^']+)')","i");db.__regexEntities=[new fa("&quot;","g"),new fa("&apos;","g"),new fa("&amp;","g"),new fa("&lt;","g"),new fa("&gt;","g"),new fa("&nbsp;","g")];db.__regexFace=new fa("face\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");db.__regexHTMLTag=new fa("<.*?>","g");db.__regexHref=new fa("href\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");db.__regexIndent=new fa(" indent\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");db.__regexLeading=new fa("leading\\s?=\\s?(\"([^\"]+)\"|'([^']+)')",
"i");db.__regexLeftMargin=new fa("leftmargin\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");db.__regexRightMargin=new fa("rightmargin\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");db.__regexSize=new fa("size\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");db.__regexTabStops=new fa("tabstops\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");db.__regexStyle=new fa("style\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");ll.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};nb.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},
fields:{__cairoFont:{SuppressWarnings:["checkstyle:Dynamic"]}}};nb.GUTTER=2;nb.UTF8_TAB=9;nb.UTF8_ENDLINE=10;nb.UTF8_SPACE=32;nb.UTF8_HYPHEN=45;nb.__defaultFonts=new da;td.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{glyphs:{SuppressWarnings:["checkstyle:Dynamic"]},__handle:{SuppressWarnings:["checkstyle:Dynamic"]},__hbBuffer:{SuppressWarnings:["checkstyle:Dynamic"]},__hbFont:{SuppressWarnings:["checkstyle:Dynamic"]},get_glyphs:{SuppressWarnings:["checkstyle:Dynamic"]}}};
td.FT_LOAD_DEFAULT=0;td.FT_LOAD_NO_SCALE=1;td.FT_LOAD_NO_HINTING=2;td.FT_LOAD_RENDER=4;td.FT_LOAD_NO_BITMAP=8;td.FT_LOAD_VERTICAL_LAYOUT=16;td.FT_LOAD_FORCE_AUTOHINT=32;td.FT_LOAD_CROP_BITMAP=64;td.FT_LOAD_PEDANTIC=128;td.FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH=256;td.FT_LOAD_NO_RECURSE=512;td.FT_LOAD_IGNORE_TRANSFORM=1024;td.FT_LOAD_MONOCHROME=2048;td.FT_LOAD_LINEAR_DESIGN=4096;td.FT_LOAD_NO_AUTOHINT=8192;td.FT_LOAD_COLOR=16384;td.FT_LOAD_COMPUTE_METRICS=32768;td.FT_LOAD_BITMAP_METRICS_ONLY=65536;td.FT_LOAD_TARGET_NORMAL=
0;td.FT_LOAD_TARGET_LIGHT=0;Rq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Jb.__meta__={fields:{addEventListener:{SuppressWarnings:["checkstyle:Dynamic"]}}};Jb.isSupported=!0;Jb.numDevices=0;Jb.__deviceList=[];Jb.__instances=[];Jb.__devices=new ea;Sq.MAX_BUFFER_SIZE=32E3;pa.__meta__={statics:{BREAK:{SuppressWarnings:["checkstyle:FieldDocComment"]},NUMLOCK:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};pa.NUMBER_0=48;pa.NUMBER_1=49;pa.NUMBER_2=50;pa.NUMBER_3=51;pa.NUMBER_4=
52;pa.NUMBER_5=53;pa.NUMBER_6=54;pa.NUMBER_7=55;pa.NUMBER_8=56;pa.NUMBER_9=57;pa.A=65;pa.B=66;pa.C=67;pa.D=68;pa.E=69;pa.F=70;pa.G=71;pa.H=72;pa.I=73;pa.J=74;pa.K=75;pa.L=76;pa.M=77;pa.N=78;pa.O=79;pa.P=80;pa.Q=81;pa.R=82;pa.S=83;pa.T=84;pa.U=85;pa.V=86;pa.W=87;pa.X=88;pa.Y=89;pa.Z=90;pa.NUMPAD_0=96;pa.NUMPAD_1=97;pa.NUMPAD_2=98;pa.NUMPAD_3=99;pa.NUMPAD_4=100;pa.NUMPAD_5=101;pa.NUMPAD_6=102;pa.NUMPAD_7=103;pa.NUMPAD_8=104;pa.NUMPAD_9=105;pa.NUMPAD_MULTIPLY=106;pa.NUMPAD_ADD=107;pa.NUMPAD_ENTER=108;
pa.NUMPAD_SUBTRACT=109;pa.NUMPAD_DECIMAL=110;pa.NUMPAD_DIVIDE=111;pa.F1=112;pa.F2=113;pa.F3=114;pa.F4=115;pa.F5=116;pa.F6=117;pa.F7=118;pa.F8=119;pa.F9=120;pa.F10=121;pa.F11=122;pa.F12=123;pa.F13=124;pa.F14=125;pa.F15=126;pa.BACKSPACE=8;pa.TAB=9;pa.ALTERNATE=18;pa.ENTER=13;pa.COMMAND=15;pa.SHIFT=16;pa.CONTROL=17;pa.BREAK=19;pa.CAPS_LOCK=20;pa.NUMPAD=21;pa.ESCAPE=27;pa.SPACE=32;pa.PAGE_UP=33;pa.PAGE_DOWN=34;pa.END=35;pa.HOME=36;pa.LEFT=37;pa.RIGHT=39;pa.UP=38;pa.DOWN=40;pa.INSERT=45;pa.DELETE=46;pa.NUMLOCK=
144;pa.SEMICOLON=186;pa.EQUAL=187;pa.COMMA=188;pa.MINUS=189;pa.PERIOD=190;pa.SLASH=191;pa.BACKQUOTE=192;pa.LEFTBRACKET=219;pa.BACKSLASH=220;pa.RIGHTBRACKET=221;pa.QUOTE=222;me.supportsCursor=!0;me.supportsNativeCursor=!0;me.__cursor="auto";Lf.ARROW="arrow";Lf.AUTO="auto";Lf.BUTTON="button";Lf.HAND="hand";Lf.IBEAM="ibeam";Lf.__CROSSHAIR="crosshair";Lf.__CUSTOM="custom";Lf.__MOVE="move";Lf.__RESIZE_NESW="resize_nesw";Lf.__RESIZE_NS="resize_ns";Lf.__RESIZE_NWSE="resize_nwse";Lf.__RESIZE_WE="resize_we";
Lf.__WAIT="wait";Lf.__WAIT_ARROW="waitarrow";T.__meta__={obj:{SuppressWarnings:[["checkstyle:ConstantName","checkstyle:FieldDocComment"]]}};T.OPMAP=new da;T.REGMAP=new da;T.SAMPLEMAP=new da;T.MAX_NESTING=4;T.MAX_OPCODES=4096;T.FRAGMENT="fragment";T.VERTEX="vertex";T.SAMPLER_TYPE_SHIFT=8;T.SAMPLER_DIM_SHIFT=12;T.SAMPLER_SPECIAL_SHIFT=16;T.SAMPLER_REPEAT_SHIFT=20;T.SAMPLER_MIPMAP_SHIFT=24;T.SAMPLER_FILTER_SHIFT=28;T.REG_WRITE=1;T.REG_READ=2;T.REG_FRAG=32;T.REG_VERT=64;T.OP_SCALAR=1;T.OP_SPECIAL_TEX=
8;T.OP_SPECIAL_MATRIX=16;T.OP_FRAG_ONLY=32;T.OP_VERT_ONLY=64;T.OP_NO_DEST=128;T.OP_VERSION2=256;T.OP_INCNEST=512;T.OP_DECNEST=1024;T.MOV="mov";T.ADD="add";T.SUB="sub";T.MUL="mul";T.DIV="div";T.RCP="rcp";T.MIN="min";T.MAX="max";T.FRC="frc";T.SQT="sqt";T.RSQ="rsq";T.POW="pow";T.LOG="log";T.EXP="exp";T.NRM="nrm";T.SIN="sin";T.COS="cos";T.CRS="crs";T.DP3="dp3";T.DP4="dp4";T.ABS="abs";T.NEG="neg";T.SAT="sat";T.M33="m33";T.M44="m44";T.M34="m34";T.DDX="ddx";T.DDY="ddy";T.IFE="ife";T.INE="ine";T.IFG="ifg";
T.IFL="ifl";T.IEG="ieg";T.IEL="iel";T.ELS="els";T.EIF="eif";T.TED="ted";T.KIL="kil";T.TEX="tex";T.SGE="sge";T.SLT="slt";T.SGN="sgn";T.SEQ="seq";T.SNE="sne";T.VA="va";T.VC="vc";T.VT="vt";T.VO="vo";T.VI="vi";T.FC="fc";T.FT="ft";T.FS="fs";T.FO="fo";T.FD="fd";T.IID="iid";T.D2="2d";T.D3="3d";T.CUBE="cube";T.MIPNEAREST="mipnearest";T.MIPLINEAR="miplinear";T.MIPNONE="mipnone";T.NOMIP="nomip";T.NEAREST="nearest";T.LINEAR="linear";T.ANISOTROPIC2X="anisotropic2x";T.ANISOTROPIC4X="anisotropic4x";T.ANISOTROPIC8X=
"anisotropic8x";T.ANISOTROPIC16X="anisotropic16x";T.CENTROID="centroid";T.SINGLE="single";T.IGNORESAMPLER="ignoresampler";T.REPEAT="repeat";T.WRAP="wrap";T.CLAMP="clamp";T.REPEAT_U_CLAMP_V="repeat_u_clamp_v";T.CLAMP_U_REPEAT_V="clamp_u_repeat_v";T.RGBA="rgba";T.COMPRESSED="compressed";T.COMPRESSEDALPHA="compressedalpha";T.DXT1="dxt1";T.DXT5="dxt5";T.VIDEO="video";T.initialized=!1;Xb.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};mf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};
Gc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};na.cache=new Uq;na.dispatcher=new L;Mb.__bytePointer=new og(null,0);Nb.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Nb.defaultObjectEncoding=10;ol.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ml.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};nl.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Gu.BIG_ENDIAN=0;Gu.LITTLE_ENDIAN=1;Xq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};
Yq.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ic.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{notImplemented:{SuppressWarnings:["checkstyle:NullableParameter"]}}};ic.__sentWarnings=new da;Wj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{touch:{SuppressWarnings:["checkstyle:Dynamic"]}}};Wj.__pool=new K(function(){return new Wj},function(a){a.reset()});He.POST_INSTANTIATE="postInstantiate";He.PRE_CONSTRUCT="preConstruct";He.POST_CONSTRUCT=
"postConstruct";Ie.INJECTION_POINTS_CACHE=new da;Ie._baseTypes=Ie.initBaseTypeMappingIds([Array,Gd]);vt.keptTypes=new da;Lc.PRE_MAPPING_CREATE="preMappingCreate";Lc.POST_MAPPING_CREATE="postMappingCreate";Lc.PRE_MAPPING_CHANGE="preMappingChange";Lc.POST_MAPPING_CHANGE="postMappingChange";Lc.POST_MAPPING_REMOVE="postMappingRemove";Lc.MAPPING_OVERRIDE="mappingOverride";Ze.__rtti='<class path="org.swiftsuspenders.reflection.DescribeTypeRTTIReflector" params="">\n\t<implements path="org.swiftsuspenders.reflection.Reflector"/>\n\t<whitelist expr="new Map&lt;String,Bool&gt;()" line="32" static="1">\n\t\t<x path="haxe.ds.Map">\n\t\t\t<c path="String"/>\n\t\t\t<x path="Bool"/>\n\t\t</x>\n\t\t<meta><m n=":value"><e><![CDATA[new Map<String,Bool>()]]\x3e</e></m></meta>\n\t</whitelist>\n\t<addToWhitelist public="1" set="method" line="43" static="1"><f a="value">\n\t<c path="String"/>\n\t<x path="Void"/>\n</f></addToWhitelist>\n\t<removeFromWhitelist public="1" set="method" line="47" static="1"><f a="value">\n\t<c path="String"/>\n\t<x path="Void"/>\n</f></removeFromWhitelist>\n\t<_currentFactoryXML><c path="Xml"/></_currentFactoryXML>\n\t<_currentFactoryXMLFast><x path="haxe.xml.Access"/></_currentFactoryXMLFast>\n\t<constructorElem><x path="haxe.xml.Access"/></constructorElem>\n\t<rtti><c path="String"/></rtti>\n\t<extendPath><c path="String"/></extendPath>\n\t<extendDescribeTypeReflector><c path="org.swiftsuspenders.reflection.DescribeTypeRTTIReflector"/></extendDescribeTypeReflector>\n\t<extendTypeDescription><c path="org.swiftsuspenders.typedescriptions.TypeDescription"/></extendTypeDescription>\n\t<getClass public="1" set="method" line="51"><f a="value">\n\t<d/>\n\t<x path="Class"><d/></x>\n</f></getClass>\n\t<getFQCN public="1" set="method" line="75">\n\t\t<f a="value:?replaceColons" v=":false">\n\t\t\t<d/>\n\t\t\t<x path="Bool"/>\n\t\t\t<c path="String"/>\n\t\t</f>\n\t\t<meta><m n=":value"><e>{ replaceColons : false }</e></m></meta>\n\t</getFQCN>\n\t<typeImplements public="1" set="method" line="98"><f a="type:superType">\n\t<x path="Class"><d/></x>\n\t<x path="Class"><d/></x>\n\t<x path="Bool"/>\n</f></typeImplements>\n\t<classExtendsOrImplements public="1" set="method" line="106"><f a="classOrClassName:superClass">\n\t<d/>\n\t<x path="Class"><d/></x>\n\t<x path="Bool"/>\n</f></classExtendsOrImplements>\n\t<describeInjections public="1" set="method" line="127">\n\t\t<f a="_type">\n\t\t\t<x path="Class"><d/></x>\n\t\t\t<c path="org.swiftsuspenders.typedescriptions.TypeDescription"/>\n\t\t</f>\n\t\t<meta><m n=":has_untyped"/></meta>\n\t</describeInjections>\n\t<inWhitelist set="method" line="184"><f a="type">\n\t<x path="Class"><d/></x>\n\t<x path="Bool"/>\n</f></inWhitelist>\n\t<isInterface set="method" line="188"><f a="type">\n\t<x path="Class"><d/></x>\n\t<x path="Bool"/>\n</f></isInterface>\n\t<addCtorInjectionPoint set="method" line="206"><f a="description:type">\n\t<c path="org.swiftsuspenders.typedescriptions.TypeDescription"/>\n\t<x path="Class"><d/></x>\n\t<x path="Void"/>\n</f></addCtorInjectionPoint>\n\t<parametersFromXml set="method" line="231"><f a="x">\n\t<c path="Xml"/>\n\t<c path="Array"><c path="String"/></c>\n</f></parametersFromXml>\n\t<addFieldInjectionPoints set="method" line="259">\n\t\t<f a="description:type">\n\t\t\t<c path="org.swiftsuspenders.typedescriptions.TypeDescription"/>\n\t\t\t<x path="Class"><d/></x>\n\t\t\t<x path="Void"/>\n\t\t</f>\n\t\t<meta><m n=":has_untyped"/></meta>\n\t</addFieldInjectionPoints>\n\t<getMappingId set="method" line="315"><f a="propertyName:type">\n\t<c path="String"/>\n\t<x path="Class"><d/></x>\n\t<c path="String"/>\n</f></getMappingId>\n\t<addMethodInjectionPoints set="method" line="333"><f a="description:type">\n\t<c path="org.swiftsuspenders.typedescriptions.TypeDescription"/>\n\t<x path="Class"><d/></x>\n\t<x path="Void"/>\n</f></addMethodInjectionPoints>\n\t<addPostConstructMethodPoints set="method" line="350"><f a="description:type">\n\t<c path="org.swiftsuspenders.typedescriptions.TypeDescription"/>\n\t<x path="Class"><d/></x>\n\t<x path="Void"/>\n</f></addPostConstructMethodPoints>\n\t<addPreDestroyMethodPoints set="method" line="359"><f a="description:type">\n\t<c path="org.swiftsuspenders.typedescriptions.TypeDescription"/>\n\t<x path="Class"><d/></x>\n\t<x path="Void"/>\n</f></addPreDestroyMethodPoints>\n\t<gatherOrderedInjectionPointsForTag set="method" line="374"><f a="injectionPointType:tag:type">\n\t<x path="Class"><d/></x>\n\t<c path="String"/>\n\t<x path="Class"><d/></x>\n\t<c path="Array"><d/></c>\n</f></gatherOrderedInjectionPointsForTag>\n\t<new public="1" set="method" line="37"><f a=""><x path="Void"/></f></new>\n\t<meta>\n\t\t<m n=":directlyUsed"/>\n\t\t<m n=":keepSub"/>\n\t\t<m n=":rtti"/>\n\t</meta>\n</class>';
Ze.whitelist=new da;Kb.classRefs=new ea;Kb.count=0;Da.__meta__={fields:{eventMap:{inject:null},eventDispatcher:{inject:null}}};Gh.__meta__={fields:{contextView:{inject:null},viewManager:{inject:null}}};Za.ERROR="_error";Za.STATE_CHANGE="stateChange";Za.PRE_INITIALIZE="preInitialize";Za.INITIALIZE="initialize";Za.POST_INITIALIZE="postInitialize";Za.PRE_SUSPEND="preSuspend";Za.SUSPEND="suspend";Za.POST_SUSPEND="postSuspend";Za.PRE_RESUME="preResume";Za.RESUME="resume";Za.POST_RESUME="postResume";Za.PRE_DESTROY=
"preDestroy";Za.DESTROY="destroy";Za.POST_DESTROY="postDestroy";En.TYPES=[Za.STATE_CHANGE,Za.PRE_INITIALIZE,Za.INITIALIZE,Za.POST_INITIALIZE,Za.PRE_SUSPEND,Za.SUSPEND,Za.POST_SUSPEND,Za.PRE_RESUME,Za.RESUME,Za.POST_RESUME,Za.PRE_DESTROY,Za.DESTROY,Za.POST_DESTROY];$e.DEFAULT_TO_STRING="Error";ii.EMPTY_MATCHER="An empty matcher will create a filter which matches nothing. You should specify at least one condition for the filter.";ii.SEALED_MATCHER="This matcher has been sealed and can no longer be configured.";
ki.flexAvailable=!1;ki.CREATION_COMPLETE="creationComplete";ni.BINDING_EMPTY="bindingEmpty";Td.CONTAINER_ADD="containerAdd";Td.CONTAINER_REMOVE="containerRemove";Td.ROOT_CONTAINER_ADD="rootContainerAdd";Td.ROOT_CONTAINER_REMOVE="rootContainerRemove";Ke.CONTAINER_ADD="containerAdd";Ke.CONTAINER_REMOVE="containerRemove";Ke.HANDLER_ADD="handlerAdd";Ke.HANDLER_REMOVE="handlerRemove";ik.__meta__={fields:{context:{inject:["optional=true"]}}};Xg.SYNC_HANDLER_ARG_MISMATCH="When and After handlers must accept 0 or 1 arguments";
Xg.LATE_HANDLER_ERROR_MESSAGE="Handler added late and will never fire";Pc.UNINITIALIZED="uninitialized";Pc.INITIALIZING="initializing";Pc.ACTIVE="active";Pc.SUSPENDING="suspending";Pc.SUSPENDED="suspended";Pc.RESUMING="resuming";Pc.DESTROYING="destroying";Pc.DESTROYED="destroyed";hi.FATAL=2;hi.ERROR=4;hi.WARN=8;hi.INFO=16;hi.DEBUG=32;hi.NAME=[0,0,"FATAL",0,"ERROR",0,0,0,"WARN",0,0,0,0,0,0,0,"INFO",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"DEBUG"];th.DETAIN="detain";th.RELEASE="release";hh.__meta__={fields:{injector:{inject:null},
mediatorMap:{inject:null},commandMap:{inject:null},contextView:{inject:null}}};gb.__meta__={fields:{setScreenIndexSignal:{inject:null},printDebugSignal:{inject:null}}};wj.__meta__={fields:{state:{inject:null},autoNarratorReadySignal:{inject:null}}};qk.__meta__={fields:{contextView:{inject:null}}};Bi.__meta__={fields:{restoreProgressSignal:{inject:null},hideLoadingSignal:{inject:null},showStartSignal:{inject:null}}};dh.__meta__={fields:{exitSignal:{inject:null},showLoadingSignal:{inject:null},loadingProgressSignal:{inject:null},
hideLoadingSignal:{inject:null},initMenuSignal:{inject:null}}};zj.__meta__={fields:{xmlLoadedSignal:{inject:null}}};zj.XML_PATH="xml/information.xml";xj.__meta__={fields:{state:{inject:null},setScreenIndexSignal:{inject:null}}};yj.__meta__={fields:{state:{inject:null},setScreenIndexSignal:{inject:null}}};tf.__meta__={fields:{printDebugSignal:{inject:null},state:{inject:null},hideTextSignal:{inject:null},hideContentSignal:{inject:null},screenIndexChangedSignal:{inject:null},showContentSignal:{inject:null},
enableTranscriptSignal:{inject:null},showDemoScreenSignal:{inject:null}}};mc.ALERT_VIDEO_FILE_MISSING=0;mc.SEEK_POINT_IN_VIDEO_NOT_FOUND=2;mc.DEMO_VERSION=4;mc.QUICK_MSG_ABOUT_VIDEO=6;mc.ASSESSMNENT_WARNING=8;mc.ENTER_NEW_SCREEN_FLOAT=10;mc.FAILED_LOADING_SCREEN=12;mc.stock="Video File Missing;You will need a copy of the narrator video flv on your local server to stream this file locally. If you have a CD then look in the 'root/video' subfolder, else contact<b>support@e-learningwmb.co.uk</b>for a copy of this file.<br>If you wish to run the course without video presenter, set the value of<b>video_file_visible</b>to false and restart the course.;Seek Point In Video Not Found;The video of the narrator does not have the appropriate book mark as specified in the<b>narrator_stop</b>node for the current screen in the information.xml file. If you have edited the xml file then restore to a previous version else contact support@e-learningwmb.co.uk for a new video file.;Demo Version;The course will not proceed past this screen. If you wish to access the complete course or get a quote then:<b><br>email info@e-learningwmb.co.uk,<br>else call:UK 00 44 1344 382 577,<br>North America:00 1(646)461-6210<br>International:00 44 1344 382 577;A Quick Message About the Video;Please note that this is a demonstration version of the course which is running over the Internet.<br><br>If you wish to install the system at your site, video and animations will be better quality and quicker. Contact<b>info@e-learningwmb.co.uk</b>for further details.;Assessment Warning;You must return at a later time to carry out the assessment.;Enter New Screen Float;You must enter the new position in which this screen will appear in your new course. 1 for first, 2 for second etc.;Failed Loading Screen Animation;An error has happened, please refresh this screen or contact support@e-learningwmb.com if the error persists.".split(";");
mc.hideClose=!1;mc.autoClose=0;mc.draggable=!0;lj.DEFAULT_TITLE="Demo version";lj.DEFAULT_TEXT='This elearning is currently in demo mode.</br>If a client, contact <font color="#0000ff"><a href="mailto:support@openelms.com" target="_blank" >support@openelms.com</a></font> to unlock the learning.';Ci.IMAGE_LOAD="image_load";yg.INTRO_TEXT_MOBILE="Touch the screen to continue...";yg.INTRO_TEXT="Click to continue...";yg.CLOSE_TEXT="Closing...";Yn.url2open="https://openelms.com/";Yg.MENU_POSITION=.5;Yg.MENU_ITEM_WIDTH=
150;Yg.MENU_ITEM_HEIGHT=100;Yg.MENU_ITEMS_GAP=10;Yg.BUTTON_TEXT="M E N U";Zg.WIDTH=150;Zg.HEIGHT=100;Zg.DISABLED=0;Zg.NORMAL=1;Zg.ACTIVE=2;jm.LOGO_AREA_WIDTH=330;jm.LOGO_AREA_HEIGHT=60;ri.SIZE=45;ao.GAP=20;bo.MAX_LINES=2;$g.MAX_LINES=4;$g.GAP=40;$n.GAP=20;xi.SIZE=45;Ai.SIZE=45;km.ID_LABEL_LEFT="jackdaw-label-left";hm.PADDING=20;pk.DEFAULT_IMAGE_X=0;pk.DEFAULT_IMAGE_Y=0;bs.UPDATE="update";bf.__meta__={fields:{view:{inject:null},state:{inject:null},backgroundLoadedSignal:{inject:null},hideContentSignal:{inject:null},
screenCreatedSignal:{inject:null},screenIndexChangedSignal:{inject:null}}};bf.IMAGE_LOADED="IMAGE_LOADED";Ch.__meta__={fields:{view:{inject:null},showDemoScreenSignal:{inject:null}}};xh.__meta__={fields:{view:{inject:null},state:{inject:null}}};ue.__meta__={fields:{view:{inject:null},state:{inject:null},xmlLoadedSignal:{inject:null},resetScreenSignal:{inject:null},closeRoomSignal:{inject:null},playAgainSignal:{inject:null},printer:{inject:null},enableTranscriptSignal:{inject:null},screenIndexChangedSignal:{inject:null}}};
Uf.__meta__={fields:{view:{inject:null},state:{inject:null},navigateToSignal:{inject:null},revealContentSignal:{inject:null},hideTitleContentImagesSignal:{inject:null}}};zh.__meta__={fields:{view:{inject:null},state:{inject:null}}};Wf.__meta__={fields:{view:{inject:null},state:{inject:null},hideTextSignal:{inject:null},screenIndexChangedSignal:{inject:null},setupNarratorSignal:{inject:null}}};ad.__meta__={obj:{keepSub:null},fields:{state:{inject:null},autoNarratorSignal:{inject:null},playNarratorSignal:{inject:null},
playAgainSignal:{inject:null},stopAndHideNarratorSignal:{inject:null},pauseNarratorSignal:{inject:null},resumeNarratorSignal:{inject:null},syncSignal:{inject:null}}};Le.__meta__={obj:{keepSub:null}};Dg.__meta__={fields:{view:{inject:null},state:{inject:null},screenIndexChangedSignal:{inject:null},narratorPlayer:{inject:null}}};Xc.__meta__={fields:{view:{inject:null},state:{inject:null},initMenuSignal:{inject:null},restoreProgressSignal:{inject:null},pauseNarratorSignal:{inject:null},resumeNarratorSignal:{inject:null},
loadVideosSignal:{inject:null},showLoadingSignal:{inject:null},loadingProgressSignal:{inject:null},hideLoadingSignal:{inject:null},exitSignal:{inject:null},loadXmlSignal:{inject:null},xmlLoadedSignal:{inject:null},navigationUpdatedSignal:{inject:null},printDebugSignal:{inject:null},navigateToSignal:{inject:null},quizManager:{inject:null},networkInfo:{inject:null}}};bh.__meta__={obj:{keepSub:null},fields:{view:{inject:null},state:{inject:null},quizManager:{inject:null}}};ch.__meta__={fields:{view:{inject:null},
state:{inject:null},xmlLoadedSignal:{inject:null}}};Eg.__meta__={fields:{view:{inject:null},showStartSignal:{inject:null},restoreProgressSignal:{inject:null},closeRoomSignal:{inject:null}}};zi.__meta__={fields:{view:{inject:null}}};Fg.__meta__={fields:{view:{inject:null},state:{inject:null},hideTextSignal:{inject:null},screenIndexChangedSignal:{inject:null}}};sf.__meta__={fields:{view:{inject:null},state:{inject:null},setTitleAndContent:{inject:null},revealContentSignal:{inject:null},playAgainSignal:{inject:null},
pauseNarratorSignal:{inject:null}}};wd.__meta__={obj:{keepSub:null},fields:{printDebugSignal:{inject:null},hideTextSignal:{inject:null},hideButtonsSignal:{inject:null},showButtonsSignal:{inject:null},navigateToSignal:{inject:null}}};cf.__meta__={obj:{keepSub:null},fields:{view:{inject:null},quizManager:{inject:null}}};ef.__meta__={fields:{view:{inject:null},state:{inject:null}}};we.__meta__={fields:{printDebugSignal:{inject:null},view:{inject:null},state:{inject:null},screenIndexChangedSignal:{inject:null},
buttonsReadySignal:{inject:null},hideTextSignal:{inject:null},hideContentSignal:{inject:null},showButtonsSignal:{inject:null},navigationUpdatedSignal:{inject:null}}};Ne.__meta__={fields:{view:{inject:null},screenIndexChangedSignal:{inject:null},setScreenIndexSignal:{inject:null},closeMenuSignal:{inject:null},startDragSignal:{inject:null},stopDragSignal:{inject:null},dragSignal:{inject:null},state:{inject:null}}};Me.__meta__={fields:{view:{inject:null},state:{inject:null},initMenuSignal:{inject:null},
closeMenuSignal:{inject:null},loadScormSignal:{inject:null},xmlLoadedSignal:{inject:null},screenIndexChangedSignal:{inject:null},itemDragSignal:{inject:null}}};Yf.__meta__={fields:{view:{inject:null},state:{inject:null},quizManager:{inject:null},printDebugSignal:{inject:null},stopAndHideNarratorSignal:{inject:null}}};wi.__meta__={fields:{view:{inject:null}}};Di.__meta__={fields:{view:{inject:null},startQuizIntroSignal:{inject:null}}};df.__meta__={fields:{view:{inject:null},state:{inject:null},quizManager:{inject:null},
startQuizIntroSignal:{inject:null},setQuizProgressSignal:{inject:null},setupNarratorSignal:{inject:null},stopAndHideNarratorSignal:{inject:null}}};ah.__meta__={fields:{view:{inject:null},state:{inject:null},setupNarratorSignal:{inject:null}}};Xf.__meta__={fields:{view:{inject:null},state:{inject:null},quizManager:{inject:null},printDebugSignal:{inject:null},lessonCompleteSignal:{inject:null}}};Ei.__meta__={fields:{view:{inject:null},setQuizProgressSignal:{inject:null}}};wh.__meta__={fields:{view:{inject:null},
quizManager:{inject:null}}};yh.__meta__={fields:{view:{inject:null},quizManager:{inject:null}}};si.__meta__={fields:{view:{inject:null}}};ti.__meta__={fields:{view:{inject:null}}};yi.__meta__={fields:{view:{inject:null}}};ui.__meta__={fields:{view:{inject:null}}};Dh.__meta__={fields:{view:{inject:null},quizManager:{inject:null}}};rf.__meta__={fields:{view:{inject:null},state:{inject:null},playNarratorSignal:{inject:null},updateContentMaskSignal:{inject:null},setTitleAndContentSignal:{inject:null},
unsetContentSignal:{inject:null}}};md.__meta__={fields:{view:{inject:null},state:{inject:null},hideTextSignal:{inject:null},hideContentSignal:{inject:null},setTitleAndContentSignal:{inject:null},revealContentSignal:{inject:null},hideTitleContentImagesSignal:{inject:null},showTitleAndContentSignal:{inject:null},unsetContentSignal:{inject:null},xmlLoadedSignal:{inject:null},autoNarratorSignal:{inject:null},autoNarratorReadySignal:{inject:null},playNarratorSignal:{inject:null},narratorPlayer:{inject:null},
updateContentMaskSignal:{inject:null},contentMaskUpdatedSignal:{inject:null}}};qf.__meta__={fields:{view:{inject:null},hideTextSignal:{inject:null},hideContentSignal:{inject:null},updateContentMaskSignal:{inject:null},contentMaskUpdatedSignal:{inject:null},state:{inject:null}}};pf.__meta__={fields:{view:{inject:null},hideTextSignal:{inject:null},hideContentSignal:{inject:null},contentMaskUpdatedSignal:{inject:null},revealContentSignal:{inject:null},state:{inject:null}}};Bg.__meta__={fields:{view:{inject:null},
state:{inject:null},hideTextSignal:{inject:null},setTitleAndContentSignal:{inject:null}}};Vf.__meta__={fields:{view:{inject:null},state:{inject:null},hideTextSignal:{inject:null},setTitleAndContentSignal:{inject:null},syncSignal:{inject:null}}};Cg.__meta__={fields:{state:{inject:null},createInputSignal:{inject:null},hideTextSignal:{inject:null},quizManager:{inject:null}}};ve.__meta__={fields:{view:{inject:null},state:{inject:null},hideContentSignal:{inject:null},setTitleAndContentSignal:{inject:null},
lessonCompleteSignal:{inject:null},initScreenSignal:{inject:null},backgroundLoadedSignal:{inject:null},closeRoomSignal:{inject:null},setScreenIndexSignal:{inject:null}}};Fh.__meta__={fields:{view:{inject:null},hideTextSignal:{inject:null},hideContentSignal:{inject:null}}};Bh.__meta__={fields:{view:{inject:null},showTitleAndContentSignal:{inject:null}}};xe.__meta__={fields:{view:{inject:null},state:{inject:null},hideTextSignal:{inject:null},hideContentSignal:{inject:null},hideTitleContentImagesSignal:{inject:null},
setTitleAndContentSignal:{inject:null},revealContentSignal:{inject:null},showTitleAndContentSignal:{inject:null},unsetContentSignal:{inject:null}}};ob.__meta__={fields:{printDebugSignal:{inject:null},state:{inject:null},initScreenSignal:{inject:null},navigateToSignal:{inject:null},setScreenIndexSignal:{inject:null},showContentSignal:{inject:null},syncSignal:{inject:null},setTitleAndContentSignal:{inject:null},screenCreatedSignal:{inject:null},createInputSignal:{inject:null},quizManager:{inject:null}}};
ob.CMD_NEXT="next";ob.CMD_PREV="prev";ob.CMD_NEXT_MAIN="skip";ob.CMD_PREV_MAIN="back";ob.CMD_SUBMIT="submit";ob.INTRO_ANIM_COMPLETE="intro_anim_complete";ob.ANIM_DURATION=.5;ob.ANIM_INIT_ALPHA=.05;Ac.__meta__={fields:{revealContentSignal:{inject:null},hideTitleContentImagesSignal:{inject:null}}};Ac.STEP="step";ud.__meta__={fields:{view:{inject:null},screenIndexChangedSignal:{inject:null},showButtonsSignal:{inject:null}}};ud.BOOK_SWF="Book.swf";Sc.__meta__={fields:{view:{inject:null},hideTitleContentImagesSignal:{inject:null},
hideButtonsSignal:{inject:null},showButtonsSignal:{inject:null}}};Sc.DURATION=.5;ld.__meta__={fields:{view:{inject:null},showButtonsSignal:{inject:null},buttonsReadySignal:{inject:null}}};Dd.__meta__={fields:{view:{inject:null}}};vd.__meta__={fields:{view:{inject:null},closeRoomSignal:{inject:null},hideTitleContentImagesSignal:{inject:null},contentMaskUpdatedSignal:{inject:null}}};bd.__meta__={fields:{view:{inject:null},hideTitleContentImagesSignal:{inject:null},showTitleAndContentSignal:{inject:null},
hideButtonsSignal:{inject:null},showButtonsSignal:{inject:null}}};bd.DURATION=.5;H.onInsideJackDaw=new ya;H.onInsideApp=new ya;H.absoluteCoursePath="";H.quizOffsetX=90;H.quizPicOffsetX=0;H.quizPicWidth=400;H.insideJackDaw=!1;H.insideApp=!1;H.messageProxy=Gf.get(null,window.parent);H.parseDocumentUrl(window.location.href);H.Globals_static_initializer=!0;vp.COMMENT_PLACEHOLDER_TEXT="Type your comment here...";eh.TITLE_OFFLINE="You are offline!";$a.SUBMIT="submit";$a.init();$a.InputNodeManager_static_initializer=
!0;Zf.PLAY_PROGRESS="playProgress";Zf.PENDING_SOUND_COMMANDS_EXECUTED="pendingSoundCommandsExecuted";Zf.PENDING_VIDEO_COMMANDS_EXECUTED="pendingVideoCommandsExecuted";rk.DEFAULT_LINE_SIZE=20;rk.HORIZONTAL="horizontal";rk.VERTICAL="vertical";Yc.securityOutputLetters="; ;\t;A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;U;V;W;X;Y;Z;0;1;2;3;4;5;6;7;8;9;&".split(";");Yc.securityInputLetters="; ;\t;M;Y;G;N;Q;S;C;V;X;P;p;O;A;D;L;J;E;T;F;R;W;H;U;I;B;J;5;4;3;2;1;6;7;9;8;0;*".split(";");Yc.securityOutputNumbers=
"11123456789000".split("");Yc.securityInputNumbers="QJZLDEPFACOKTW".split("");Oe.VAR_BORDER="room_border";Oe.VAR_BG="room_bg";sa.LESSON_PASSED="passed";sa.QUESTION_TYPE_TEXT="text";sa.QUESTION_TYPE_CHECKBOX="checkbox";sa.QUESTION_TYPE_TASK="t";sa.VALUE_TRUE="true";sa.VALUE_FALSE="false";Ia.LESSON_LOCATION="cmi.core.lesson_location";Ia.LESSON_LOCATION_NEW="cmi.core.lesson_location_new";Ia.LESSON_STATUS="cmi.core.lesson_status";Ia.SCORE="cmi.core.score.raw";Ia.STUDENT_ID="cmi.core.student_id";Ia.STUDENT_NAME=
"cmi.core.student_name";Ia.LESSON_MODE="cmi.core.lesson_mode";Ia.QUIZ_FAILS="quiz_fails";Ia.MAX_QUIZ_FAILS="max_quiz_fails";Ia.RESET="reset";Ia.VARS_NS="cmi.vars.";Gg.TIMEOUT=5E3;Zb.JS_CHECK="APIOK";Zb.JS_FS_COMMAND="training20_DoFSCommand";Zb.JS_GET_VALUE="LMSGetValue";Zb.JS_SET_VALUE="LMSSetValue";Zb.JS_GET_DATA="LMSGetData";Zb.JS_SET_DATA="LMSSetData";Zb.JS_CALL_PARENT="callParent";Zb.LAST_ACCESS="lrn.item.lastaccess";sk.SO_NAME="room";ac.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};
dc.main()})("undefined"!=typeof y?y:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof K?K:"undefined"!=typeof self?self:this)};ca.lime.embed=function(E){var K={},M=ca.lime.$scripts[E];if(!M)throw Error('Cannot find project name "'+E+'"');M(K,y);for(var ea in K)ca[ea]=ca[ea]||K[ea];(M=K.lime||window.lime)&&M.embed&&this!=M.embed&&M.embed.apply(M,arguments);return K};"function"==typeof define&&define.amd&&(define([],function(){return ca.lime}),
define.__amd=define.amd,define.amd=null)})("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);
!function(){var ca=function(){this.init()};ca.prototype={init:function(){var g=this||y;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(k){var v=this||y;if(k=parseFloat(k),v.ctx||g(),void 0!==k&&0<=k&&1>=
k){if(v._volume=k,v._muted)return v;v.usingWebAudio&&v.masterGain.gain.setValueAtTime(k,y.ctx.currentTime);for(var r=0;r<v._howls.length;r++)if(!v._howls[r]._webAudio)for(var Y=v._howls[r]._getSoundIds(),L=0;L<Y.length;L++){var Wa=v._howls[r]._soundById(Y[L]);Wa&&Wa._node&&(Wa._node.volume=Wa._volume*k)}return v}return v._volume},mute:function(k){var v=this||y;v.ctx||g();v._muted=k;v.usingWebAudio&&v.masterGain.gain.setValueAtTime(k?0:v._volume,y.ctx.currentTime);for(var r=0;r<v._howls.length;r++)if(!v._howls[r]._webAudio)for(var Y=
v._howls[r]._getSoundIds(),L=0;L<Y.length;L++){var Wa=v._howls[r]._soundById(Y[L]);Wa&&Wa._node&&(Wa._node.muted=!!k||Wa._muted)}return v},unload:function(){for(var k=this||y,r=k._howls.length-1;0<=r;r--)k._howls[r].unload();return k.usingWebAudio&&k.ctx&&void 0!==k.ctx.close&&(k.ctx.close(),k.ctx=null,g()),k},codecs:function(g){return(this||y)._codecs[g.replace(/^x-/,"")]},_setup:function(){var g=this||y;if(g.state=g.ctx?g.ctx.state||"suspended":"suspended",g._autoSuspend(),!g.usingWebAudio)if("undefined"!=
typeof Audio)try{var k=new Audio;void 0===k.oncanplaythrough&&(g._canPlayEvent="canplay")}catch(x){g.noAudio=!0}else g.noAudio=!0;try{k=new Audio,k.muted&&(g.noAudio=!0)}catch(x){}return g.noAudio||g._setupCodecs(),g},_setupCodecs:function(){var g=this||y,k=null;try{k="undefined"!=typeof Audio?new Audio:null}catch(L){return g}if(!k||"function"!=typeof k.canPlayType)return g;var r=k.canPlayType("audio/mpeg;").replace(/^no$/,""),Y=g._navigator&&g._navigator.userAgent.match(/OPR\/([0-6].)/g);Y=Y&&33>
parseInt(Y[0].split("/")[1],10);return g._codecs={mp3:!(Y||!r&&!k.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!r,opus:!!k.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!k.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!k.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!k.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!k.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!k.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(k.canPlayType("audio/x-m4a;")||
k.canPlayType("audio/m4a;")||k.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(k.canPlayType("audio/x-mp4;")||k.canPlayType("audio/mp4;")||k.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!k.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!k.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!k.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(k.canPlayType("audio/x-flac;")||k.canPlayType("audio/flac;")).replace(/^no$/,"")},g},_unlockAudio:function(){var g=
this||y,k=/iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi|Chrome|Safari/i.test(g._navigator&&g._navigator.userAgent);if(!g._audioUnlocked&&g.ctx&&k){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 r=function(k){for(k=0;k<g.html5PoolSize;k++){var v=new Audio;v._unlocked=!0;g._releaseHtml5Audio(v)}for(k=0;k<g._howls.length;k++)if(!g._howls[k]._webAudio){v=g._howls[k]._getSoundIds();
for(var x=0;x<v.length;x++){var P=g._howls[k]._soundById(v[x]);P&&P._node&&!P._node._unlocked&&(P._node._unlocked=!0,P._node.load())}}g._autoResume();var y=g.ctx.createBufferSource();y.buffer=g._scratchBuffer;y.connect(g.ctx.destination);void 0===y.start?y.noteOn(0):y.start(0);"function"==typeof g.ctx.resume&&g.ctx.resume();y.onended=function(){y.disconnect(0);g._audioUnlocked=!0;document.removeEventListener("touchstart",r,!0);document.removeEventListener("touchend",r,!0);document.removeEventListener("click",
r,!0);for(var k=0;k<g._howls.length;k++)g._howls[k]._emit("unlock")}};return document.addEventListener("touchstart",r,!0),document.addEventListener("touchend",r,!0),document.addEventListener("click",r,!0),g}},_obtainHtml5Audio:function(){var g=this||y;if(g._html5AudioPool.length)return g._html5AudioPool.pop();g=(new Audio).play();return g&&"undefined"!=typeof Promise&&(g instanceof Promise||"function"==typeof g.then)&&g.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),
new Audio},_releaseHtml5Audio:function(g){var k=this||y;return g._unlocked&&k._html5AudioPool.push(g),k},_autoSuspend:function(){var g=this;if(g.autoSuspend&&g.ctx&&void 0!==g.ctx.suspend&&y.usingWebAudio){for(var k=0;k<g._howls.length;k++)if(g._howls[k]._webAudio)for(var r=0;r<g._howls[k]._sounds.length;r++)if(!g._howls[k]._sounds[r]._paused)return g;return g._suspendTimer&&clearTimeout(g._suspendTimer),g._suspendTimer=setTimeout(function(){g.autoSuspend&&(g._suspendTimer=null,g.state="suspending",
g.ctx.suspend().then(function(){g.state="suspended";g._resumeAfterSuspend&&(delete g._resumeAfterSuspend,g._autoResume())}))},3E4),g}},_autoResume:function(){var g=this;if(g.ctx&&void 0!==g.ctx.resume&&y.usingWebAudio)return"running"===g.state&&g._suspendTimer?(clearTimeout(g._suspendTimer),g._suspendTimer=null):"suspended"===g.state?(g.ctx.resume().then(function(){g.state="running";for(var k=0;k<g._howls.length;k++)g._howls[k]._emit("resume")}),g._suspendTimer&&(clearTimeout(g._suspendTimer),g._suspendTimer=
null)):"suspending"===g.state&&(g._resumeAfterSuspend=!0),g}};var y=new ca,E=function(g){if(!g.src||0===g.src.length)return void console.error("An array of source files must be passed with any new Howl.");this.init(g)};E.prototype={init:function(k){var r=this;return y.ctx||g(),r._autoplay=k.autoplay||!1,r._format="string"!=typeof k.format?k.format:[k.format],r._html5=k.html5||!1,r._muted=k.mute||!1,r._loop=k.loop||!1,r._pool=k.pool||5,r._preload="boolean"!=typeof k.preload||k.preload,r._rate=k.rate||
1,r._sprite=k.sprite||{},r._src="string"!=typeof k.src?k.src:[k.src],r._volume=void 0!==k.volume?k.volume:1,r._xhrWithCredentials=k.xhrWithCredentials||!1,r._duration=0,r._state="unloaded",r._sounds=[],r._endTimers={},r._queue=[],r._playLock=!1,r._onend=k.onend?[{fn:k.onend}]:[],r._onfade=k.onfade?[{fn:k.onfade}]:[],r._onload=k.onload?[{fn:k.onload}]:[],r._onloaderror=k.onloaderror?[{fn:k.onloaderror}]:[],r._onplayerror=k.onplayerror?[{fn:k.onplayerror}]:[],r._onpause=k.onpause?[{fn:k.onpause}]:[],
r._onplay=k.onplay?[{fn:k.onplay}]:[],r._onstop=k.onstop?[{fn:k.onstop}]:[],r._onmute=k.onmute?[{fn:k.onmute}]:[],r._onvolume=k.onvolume?[{fn:k.onvolume}]:[],r._onrate=k.onrate?[{fn:k.onrate}]:[],r._onseek=k.onseek?[{fn:k.onseek}]:[],r._onunlock=k.onunlock?[{fn:k.onunlock}]:[],r._onresume=[],r._webAudio=y.usingWebAudio&&!r._html5,void 0!==y.ctx&&y.ctx&&y.autoUnlock&&y._unlockAudio(),y._howls.push(r),r._autoplay&&r._queue.push({event:"play",action:function(){r.play()}}),r._preload&&r.load(),r},load:function(){var g=
null;if(y.noAudio)return void this._emit("loaderror",null,"No audio support.");"string"==typeof this._src&&(this._src=[this._src]);for(var k=0;k<this._src.length;k++){var r;if(this._format&&this._format[k])var Y=this._format[k];else{if("string"!=typeof(r=this._src[k])){this._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(Y=/^data:audio\/([^;,]+);/i.exec(r))||(Y=/\.([^.]+)$/.exec(r.split("?",1)[0]));Y&&(Y=Y[1].toLowerCase())}if(Y||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),
Y&&y.codecs(Y)){g=this._src[k];break}}return g?(this._src=g,this._state="loading","https:"===window.location.protocol&&"http:"===g.slice(0,5)&&(this._html5=!0,this._webAudio=!1),new K(this),this._webAudio&&ea(this),this):void this._emit("loaderror",null,"No codec support for selected audio sources.")},play:function(g,k){var r=this,v=null;if("number"==typeof g)v=g,g=null;else{if("string"==typeof g&&"loaded"===r._state&&!r._sprite[g])return null;if(void 0===g&&(g="__default",!r._playLock)){for(var P=
0,Wa=0;Wa<r._sounds.length;Wa++)r._sounds[Wa]._paused&&!r._sounds[Wa]._ended&&(P++,v=r._sounds[Wa]._id);1===P?g=null:v=null}}var E=v?r._soundById(v):r._inactiveSound();if(!E)return null;if(v&&!g&&(g=E._sprite||"__default"),"loaded"!==r._state){E._sprite=g;E._ended=!1;var K=E._id;return r._queue.push({event:"play",action:function(){r.play(K)}}),K}if(v&&!E._paused)return k||r._loadQueue("play"),E._id;r._webAudio&&y._autoResume();var M=Math.max(0,0<E._seek?E._seek:r._sprite[g][0]/1E3),ca=Math.max(0,
(r._sprite[g][0]+r._sprite[g][1])/1E3-M),ea=1E3*ca/Math.abs(E._rate),ka=r._sprite[g][0]/1E3,Ba=(r._sprite[g][0]+r._sprite[g][1])/1E3,jb=!(!E._loop&&!r._sprite[g][2]);E._sprite=g;E._ended=!1;var F=function(){E._paused=!1;E._seek=M;E._start=ka;E._stop=Ba;E._loop=jb};if(M>=Ba)return void r._ended(E);var Q=E._node;if(r._webAudio)v=function(){r._playLock=!1;F();r._refreshBuffer(E);Q.gain.setValueAtTime(E._muted||r._muted?0:E._volume,y.ctx.currentTime);E._playStart=y.ctx.currentTime;void 0===Q.bufferSource.start?
E._loop?Q.bufferSource.noteGrainOn(0,M,86400):Q.bufferSource.noteGrainOn(0,M,ca):E._loop?Q.bufferSource.start(0,M,86400):Q.bufferSource.start(0,M,ca);ea!==1/0&&(r._endTimers[E._id]=setTimeout(r._ended.bind(r,E),ea));k||setTimeout(function(){r._emit("play",E._id);r._loadQueue()},0)},"running"===y.state?v():(r._playLock=!0,r.once("resume",v),r._clearTimer(E._id));else{var Tb=function(){Q.currentTime=M;Q.muted=E._muted||r._muted||y._muted||Q.muted;Q.volume=E._volume*y.volume();Q.playbackRate=E._rate;
try{var v=Q.play();if(v&&"undefined"!=typeof Promise&&(v instanceof Promise||"function"==typeof v.then)?(r._playLock=!0,F(),v.then(function(){r._playLock=!1;Q._unlocked=!0;k||(r._emit("play",E._id),r._loadQueue())}).catch(function(){r._playLock=!1;r._emit("playerror",E._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.");E._ended=!0;E._paused=!0})):k||(r._playLock=!1,F(),r._emit("play",E._id),r._loadQueue()),
Q.playbackRate=E._rate,Q.paused)return void r._emit("playerror",E._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||E._loop?r._endTimers[E._id]=setTimeout(r._ended.bind(r,E),ea):(r._endTimers[E._id]=function(){r._ended(E);Q.removeEventListener("ended",r._endTimers[E._id],!1)},Q.addEventListener("ended",r._endTimers[E._id],!1))}catch(Ab){r._emit("playerror",E._id,Ab)}};v=window&&window.ejecta||
!Q.readyState&&y._navigator.isCocoonJS;if(3<=Q.readyState||v)Tb();else{r._playLock=!0;var bb=function(){Tb();Q.removeEventListener(y._canPlayEvent,bb,!1)};Q.addEventListener(y._canPlayEvent,bb,!1);r._clearTimer(E._id)}}return E._id},pause:function(g,k){var r=this;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"pause",action:function(){r.pause(g)}}),r;for(var v=r._getSoundIds(g),y=0;y<v.length;y++){r._clearTimer(v[y]);var P=r._soundById(v[y]);if(P&&!P._paused&&(P._seek=r.seek(v[y]),
P._rateSeek=0,P._paused=!0,r._stopFade(v[y]),P._node))if(r._webAudio){if(!P._node.bufferSource)continue;void 0===P._node.bufferSource.stop?P._node.bufferSource.noteOff(0):P._node.bufferSource.stop(0);r._cleanBuffer(P._node)}else isNaN(P._node.duration)&&P._node.duration!==1/0||P._node.pause();k||r._emit("pause",P?P._id:null)}return r},stop:function(g,k){var r=this;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"stop",action:function(){r.stop(g)}}),r;for(var v=r._getSoundIds(g),y=
0;y<v.length;y++){r._clearTimer(v[y]);var P=r._soundById(v[y]);P&&(P._seek=P._start||0,P._rateSeek=0,P._paused=!0,P._ended=!0,r._stopFade(v[y]),P._node&&(r._webAudio?P._node.bufferSource&&(void 0===P._node.bufferSource.stop?P._node.bufferSource.noteOff(0):P._node.bufferSource.stop(0),r._cleanBuffer(P._node)):isNaN(P._node.duration)&&P._node.duration!==1/0||(P._node.currentTime=P._start||0,P._node.pause())),k||r._emit("stop",P._id))}return r},mute:function(g,k){var r=this;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"mute",
action:function(){r.mute(g,k)}}),r;if(void 0===k){if("boolean"!=typeof g)return r._muted;r._muted=g}for(var v=r._getSoundIds(k),P=0;P<v.length;P++){var E=r._soundById(v[P]);E&&(E._muted=g,E._interval&&r._stopFade(E._id),r._webAudio&&E._node?E._node.gain.setValueAtTime(g?0:E._volume,y.ctx.currentTime):E._node&&(E._node.muted=!!y._muted||g),r._emit("mute",E._id))}return r},volume:function(){var g,k,r=this,Y=arguments;if(0===Y.length)return r._volume;1===Y.length||2===Y.length&&void 0===Y[1]?0<=r._getSoundIds().indexOf(Y[0])?
k=parseInt(Y[0],10):g=parseFloat(Y[0]):2<=Y.length&&(g=parseFloat(Y[0]),k=parseInt(Y[1],10));var L;if(!(void 0!==g&&0<=g&&1>=g))return L=k?r._soundById(k):r._sounds[0],L?L._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,Y)}}),r;void 0===k&&(r._volume=g);k=r._getSoundIds(k);for(var E=0;E<k.length;E++)(L=r._soundById(k[E]))&&(L._volume=g,Y[2]||r._stopFade(k[E]),r._webAudio&&L._node&&!L._muted?L._node.gain.setValueAtTime(g,y.ctx.currentTime):
L._node&&!L._muted&&(L._node.volume=g*y.volume()),r._emit("volume",L._id));return r},fade:function(g,k,r,Y){var v=this;if("loaded"!==v._state||v._playLock)return v._queue.push({event:"fade",action:function(){v.fade(g,k,r,Y)}}),v;g=parseFloat(g);k=parseFloat(k);r=parseFloat(r);v.volume(g,Y);for(var x=v._getSoundIds(Y),P=0;P<x.length;P++){var E=v._soundById(x[P]);if(E){if(Y||v._stopFade(x[P]),v._webAudio&&!E._muted){var K=y.ctx.currentTime,M=K+r/1E3;E._volume=g;E._node.gain.setValueAtTime(g,K);E._node.gain.linearRampToValueAtTime(k,
M)}v._startFadeInterval(E,g,k,r,x[P],void 0===Y)}}return v},_startFadeInterval:function(g,k,r,y,L,E){var v=this,x=k,P=r-k;L=Math.abs(P/.01);L=Math.max(4,0<L?y/L:y);var Y=Date.now();g._fadeTo=r;g._interval=setInterval(function(){var L=(Date.now()-Y)/y;Y=Date.now();x+=P*L;x=Math.max(0,x);x=Math.min(1,x);x=Math.round(100*x)/100;v._webAudio?g._volume=x:v.volume(x,g._id,!0);E&&(v._volume=x);(r<k&&x<=r||r>k&&x>=r)&&(clearInterval(g._interval),g._interval=null,g._fadeTo=null,v.volume(r,g._id),v._emit("fade",
g._id))},L)},_stopFade:function(g){var k=this._soundById(g);return k&&k._interval&&(this._webAudio&&k._node.gain.cancelScheduledValues(y.ctx.currentTime),clearInterval(k._interval),k._interval=null,this.volume(k._fadeTo,g),k._fadeTo=null,this._emit("fade",g)),this},loop:function(){var g,k,r,y=arguments;if(0===y.length)return this._loop;if(1===y.length){if("boolean"!=typeof y[0])return!!(r=this._soundById(parseInt(y[0],10)))&&r._loop;this._loop=g=y[0]}else 2===y.length&&(g=y[0],k=parseInt(y[1],10));
k=this._getSoundIds(k);for(y=0;y<k.length;y++)(r=this._soundById(k[y]))&&(r._loop=g,this._webAudio&&r._node&&r._node.bufferSource&&(r._node.bufferSource.loop=g,g&&(r._node.bufferSource.loopStart=r._start||0,r._node.bufferSource.loopEnd=r._stop)));return this},rate:function(){var g,k,r=this,E=arguments;0===E.length?k=r._sounds[0]._id:1===E.length?0<=r._getSoundIds().indexOf(E[0])?k=parseInt(E[0],10):g=parseFloat(E[0]):2===E.length&&(g=parseFloat(E[0]),k=parseInt(E[1],10));var L;if("number"!=typeof g)return L=
r._soundById(k),L?L._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,E)}}),r;void 0===k&&(r._rate=g);k=r._getSoundIds(k);for(var K=0;K<k.length;K++)if(L=r._soundById(k[K])){r.playing(k[K])&&(L._rateSeek=r.seek(k[K]),L._playStart=r._webAudio?y.ctx.currentTime:L._playStart);L._rate=g;r._webAudio&&L._node&&L._node.bufferSource?L._node.bufferSource.playbackRate.setValueAtTime(g,y.ctx.currentTime):L._node&&(L._node.playbackRate=g);var M=
r.seek(k[K]);M=1E3*((r._sprite[L._sprite][0]+r._sprite[L._sprite][1])/1E3-M)/Math.abs(L._rate);!r._endTimers[k[K]]&&L._paused||(r._clearTimer(k[K]),r._endTimers[k[K]]=setTimeout(r._ended.bind(r,L),M));r._emit("rate",L._id)}return r},seek:function(){var g,k,r=this,E=arguments;0===E.length?k=r._sounds[0]._id:1===E.length?0<=r._getSoundIds().indexOf(E[0])?k=parseInt(E[0],10):r._sounds.length&&(k=r._sounds[0]._id,g=parseFloat(E[0])):2===E.length&&(g=parseFloat(E[0]),k=parseInt(E[1],10));if(void 0===k)return r;
if("loaded"!==r._state||r._playLock)return r._queue.push({event:"seek",action:function(){r.seek.apply(r,E)}}),r;var L=r._soundById(k);if(L){if(!("number"==typeof g&&0<=g))return r._webAudio?(g=r.playing(k)?y.ctx.currentTime-L._playStart:0,L._seek+((L._rateSeek?L._rateSeek-L._seek:0)+g*Math.abs(L._rate))):L._node.currentTime;var K=r.playing(k);K&&r.pause(k,!0);L._seek=g;L._ended=!1;r._clearTimer(k);r._webAudio||!L._node||isNaN(L._node.duration)||(L._node.currentTime=g);var M=function(){r._emit("seek",
k);K&&r.play(k,!0)};if(K&&!r._webAudio){var ca=function(){r._playLock?setTimeout(ca,0):M()};setTimeout(ca,0)}else M()}return r},playing:function(g){if("number"==typeof g)return g=this._soundById(g),!!g&&!g._paused;for(g=0;g<this._sounds.length;g++)if(!this._sounds[g]._paused)return!0;return!1},duration:function(g){var k=this._duration;g=this._soundById(g);return g&&(k=this._sprite[g._sprite][1]/1E3),k},state:function(){return this._state},unload:function(){for(var g=this._sounds,k=0;k<g.length;k++)(g[k]._paused||
this.stop(g[k]._id),this._webAudio)||(/MSIE |Trident\//.test(y._navigator&&y._navigator.userAgent)||(g[k]._node.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"),g[k]._node.removeEventListener("error",g[k]._errorFn,!1),g[k]._node.removeEventListener(y._canPlayEvent,g[k]._loadFn,!1),y._releaseHtml5Audio(g[k]._node)),delete g[k]._node,this._clearTimer(g[k]._id);k=y._howls.indexOf(this);0<=k&&y._howls.splice(k,1);g=!0;for(k=0;k<y._howls.length;k++)if(y._howls[k]._src===
this._src||0<=this._src.indexOf(y._howls[k]._src)){g=!1;break}return M&&g&&delete M[this._src],y.noAudio=!1,this._state="unloaded",this._sounds=[],null},on:function(g,k,r,y){g=this["_on"+g];return"function"==typeof k&&g.push(y?{id:r,fn:k,once:y}:{id:r,fn:k}),this},off:function(g,k,r){var v=this["_on"+g];if("number"==typeof k&&(r=k,k=null),k||r)for(g=0;g<v.length;g++){var x=r===v[g].id;if(k===v[g].fn&&x||!k&&x){v.splice(g,1);break}}else if(g)this["_on"+g]=[];else for(k=Object.keys(this),g=0;g<k.length;g++)0===
k[g].indexOf("_on")&&Array.isArray(this[k[g]])&&(this[k[g]]=[]);return this},once:function(g,k,r){return this.on(g,k,r,1),this},_emit:function(g,k,r){for(var v=this["_on"+g],x=v.length-1;0<=x;x--)v[x].id&&v[x].id!==k&&"load"!==g||(setTimeout(function(g){g.call(this,k,r)}.bind(this,v[x].fn),0),v[x].once&&this.off(g,v[x].fn,v[x].id));return this._loadQueue(g),this},_loadQueue:function(g){if(0<this._queue.length){var k=this._queue[0];k.event===g&&(this._queue.shift(),this._loadQueue());g||k.action()}return this},
_ended:function(g){var k=g._sprite;if(!this._webAudio&&g._node&&!g._node.paused&&!g._node.ended&&g._node.currentTime<g._stop)return setTimeout(this._ended.bind(this,g),100),this;k=!(!g._loop&&!this._sprite[k][2]);if(this._emit("end",g._id),!this._webAudio&&k&&this.stop(g._id,!0).play(g._id),this._webAudio&&k){this._emit("play",g._id);g._seek=g._start||0;g._rateSeek=0;g._playStart=y.ctx.currentTime;var r=1E3*(g._stop-g._start)/Math.abs(g._rate);this._endTimers[g._id]=setTimeout(this._ended.bind(this,
g),r)}return this._webAudio&&!k&&(g._paused=!0,g._ended=!0,g._seek=g._start||0,g._rateSeek=0,this._clearTimer(g._id),this._cleanBuffer(g._node),y._autoSuspend()),this._webAudio||k||this.stop(g._id,!0),this},_clearTimer:function(g){if(this._endTimers[g]){if("function"!=typeof this._endTimers[g])clearTimeout(this._endTimers[g]);else{var k=this._soundById(g);k&&k._node&&k._node.removeEventListener("ended",this._endTimers[g],!1)}delete this._endTimers[g]}return this},_soundById:function(g){for(var k=
0;k<this._sounds.length;k++)if(g===this._sounds[k]._id)return this._sounds[k];return null},_inactiveSound:function(){this._drain();for(var g=0;g<this._sounds.length;g++)if(this._sounds[g]._ended)return this._sounds[g].reset();return new K(this)},_drain:function(){var g=this._pool,k=0,r;if(!(this._sounds.length<g)){for(r=0;r<this._sounds.length;r++)this._sounds[r]._ended&&k++;for(r=this._sounds.length-1;0<=r&&!(k<=g);r--)this._sounds[r]._ended&&(this._webAudio&&this._sounds[r]._node&&this._sounds[r]._node.disconnect(0),
this._sounds.splice(r,1),k--)}},_getSoundIds:function(g){if(void 0===g){g=[];for(var k=0;k<this._sounds.length;k++)g.push(this._sounds[k]._id);return g}return[g]},_refreshBuffer:function(g){return g._node.bufferSource=y.ctx.createBufferSource(),g._node.bufferSource.buffer=M[this._src],g._panner?g._node.bufferSource.connect(g._panner):g._node.bufferSource.connect(g._node),g._node.bufferSource.loop=g._loop,g._loop&&(g._node.bufferSource.loopStart=g._start||0,g._node.bufferSource.loopEnd=g._stop||0),
g._node.bufferSource.playbackRate.setValueAtTime(g._rate,y.ctx.currentTime),this},_cleanBuffer:function(g){var k=y._navigator&&0<=y._navigator.vendor.indexOf("Apple");if(y._scratchBuffer&&g.bufferSource&&(g.bufferSource.onended=null,g.bufferSource.disconnect(0),k))try{g.bufferSource.buffer=y._scratchBuffer}catch(x){}return g.bufferSource=null,this}};var K=function(g){this._parent=g;this.init()};K.prototype={init:function(){var g=this._parent;return this._muted=g._muted,this._loop=g._loop,this._volume=
g._volume,this._rate=g._rate,this._seek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++y._counter,g._sounds.push(this),this.create(),this},create:function(){var g=this._parent,k=y._muted||this._muted||this._parent._muted?0:this._volume;return g._webAudio?(this._node=void 0===y.ctx.createGain?y.ctx.createGainNode():y.ctx.createGain(),this._node.gain.setValueAtTime(k,y.ctx.currentTime),this._node.paused=!0,this._node.connect(y.masterGain)):(this._node=y._obtainHtml5Audio(),this._errorFn=
this._errorListener.bind(this),this._node.addEventListener("error",this._errorFn,!1),this._loadFn=this._loadListener.bind(this),this._node.addEventListener(y._canPlayEvent,this._loadFn,!1),this._node.src=g._src,this._node.preload="auto",this._node.volume=k*y.volume(),this._node.load()),this},reset:function(){var g=this._parent;return this._muted=g._muted,this._loop=g._loop,this._volume=g._volume,this._rate=g._rate,this._seek=0,this._rateSeek=0,this._paused=!0,this._ended=!0,this._sprite="__default",
this._id=++y._counter,this},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0);this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var g=this._parent;g._duration=Math.ceil(10*this._node.duration)/10;0===Object.keys(g._sprite).length&&(g._sprite={__default:[0,1E3*g._duration]});"loaded"!==g._state&&(g._state="loaded",g._emit("load"),g._loadQueue());this._node.removeEventListener(y._canPlayEvent,this._loadFn,!1)}};
var M={},ea=function(g){var v=g._src;if(M[v])return g._duration=M[v].duration,void k(g);if(/^data:[^;]+;base64,/.test(v)){for(var x=atob(v.split(",")[1]),y=new Uint8Array(x.length),E=0;E<x.length;++E)y[E]=x.charCodeAt(E);Ba(y.buffer,g)}else{var K=new XMLHttpRequest;K.open("GET",v,!0);K.withCredentials=g._xhrWithCredentials;K.responseType="arraybuffer";K.onload=function(){var k=(K.status+"")[0];if("0"!==k&&"2"!==k&&"3"!==k)return void g._emit("loaderror",null,"Failed loading audio file with status: "+
K.status+".");Ba(K.response,g)};K.onerror=function(){g._webAudio&&(g._html5=!0,g._webAudio=!1,g._sounds=[],delete M[v],g.load())};r(K)}},r=function(g){try{g.send()}catch(P){g.onerror()}},Ba=function(g,r){var v=function(){r._emit("loaderror",null,"Decoding audio data failed.")},E=function(g){g&&0<r._sounds.length?(M[r._src]=g,k(r,g)):v()};"undefined"!=typeof Promise&&1===y.ctx.decodeAudioData.length?y.ctx.decodeAudioData(g).then(E).catch(v):y.ctx.decodeAudioData(g,E,v)},k=function(g,k){k&&!g._duration&&
(g._duration=k.duration);0===Object.keys(g._sprite).length&&(g._sprite={__default:[0,1E3*g._duration]});"loaded"!==g._state&&(g._state="loaded",g._emit("load"),g._loadQueue())},g=function(){if(y.usingWebAudio){try{"undefined"!=typeof AudioContext?y.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?y.ctx=new webkitAudioContext:y.usingWebAudio=!1}catch(x){y.usingWebAudio=!1}y.ctx||(y.usingWebAudio=!1);var g=/iP(hone|od|ad)/.test(y._navigator&&y._navigator.platform),k=y._navigator&&y._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);
k=k?parseInt(k[1],10):null;g&&k&&9>k&&(g=/safari/.test(y._navigator&&y._navigator.userAgent.toLowerCase()),(y._navigator&&y._navigator.standalone&&!g||y._navigator&&!y._navigator.standalone&&!g)&&(y.usingWebAudio=!1));y.usingWebAudio&&(y.masterGain=void 0===y.ctx.createGain?y.ctx.createGainNode():y.ctx.createGain(),y.masterGain.gain.setValueAtTime(y._muted?0:1,y.ctx.currentTime),y.masterGain.connect(y.ctx.destination));y._setup()}};"function"==typeof define&&define.amd&&define([],function(){return{Howler:y,
Howl:E}});"undefined"!=typeof exports&&(exports.Howler=y,exports.Howl=E);"undefined"!=typeof window?(window.HowlerGlobal=ca,window.Howler=y,window.Howl=E,window.Sound=K):"undefined"!=typeof global&&(global.HowlerGlobal=ca,global.Howler=y,global.Howl=E,global.Sound=K)}();
!function(){HowlerGlobal.prototype._pos=[0,0,0];HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0];HowlerGlobal.prototype.stereo=function(y){if(!this.ctx||!this.ctx.listener)return this;for(var E=this._howls.length-1;0<=E;E--)this._howls[E].stereo(y);return this};HowlerGlobal.prototype.pos=function(y,E,K){return this.ctx&&this.ctx.listener?(E="number"!=typeof E?this._pos[1]:E,K="number"!=typeof K?this._pos[2]:K,"number"!=typeof y?this._pos:(this._pos=[y,E,K],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(y,E,K,M,ca,r){if(!this.ctx||!this.ctx.listener)return this;var ea=this._orientation;return E="number"!=typeof E?ea[1]:E,K="number"!=typeof K?ea[2]:K,M="number"!=typeof M?ea[3]:M,
ca="number"!=typeof ca?ea[4]:ca,r="number"!=typeof r?ea[5]:r,"number"!=typeof y?ea:(this._orientation=[y,E,K,M,ca,r],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(y,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(E,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(K,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(y,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(E,Howler.ctx.currentTime,.1),
this.ctx.listener.upZ.setTargetAtTime(K,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(y,E,K,M,ca,r),this)};Howl.prototype.init=function(y){return function(E){return this._orientation=E.orientation||[1,0,0],this._stereo=E.stereo||null,this._pos=E.pos||null,this._pannerAttr={coneInnerAngle:void 0!==E.coneInnerAngle?E.coneInnerAngle:360,coneOuterAngle:void 0!==E.coneOuterAngle?E.coneOuterAngle:360,coneOuterGain:void 0!==E.coneOuterGain?E.coneOuterGain:0,distanceModel:void 0!==E.distanceModel?
E.distanceModel:"inverse",maxDistance:void 0!==E.maxDistance?E.maxDistance:1E4,panningModel:void 0!==E.panningModel?E.panningModel:"HRTF",refDistance:void 0!==E.refDistance?E.refDistance:1,rolloffFactor:void 0!==E.rolloffFactor?E.rolloffFactor:1},this._onstereo=E.onstereo?[{fn:E.onstereo}]:[],this._onpos=E.onpos?[{fn:E.onpos}]:[],this._onorientation=E.onorientation?[{fn:E.onorientation}]:[],y.call(this,E)}}(Howl.prototype.init);Howl.prototype.stereo=function(y,E){var K=this;if(!K._webAudio)return K;
if("loaded"!==K._state)return K._queue.push({event:"stereo",action:function(){K.stereo(y,E)}}),K;var M=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===E){if("number"!=typeof y)return K._stereo;K._stereo=y;K._pos=[y,0,0]}for(var ea=K._getSoundIds(E),r=0;r<ea.length;r++){var Ba=K._soundById(ea[r]);if(Ba){if("number"!=typeof y)return Ba._stereo;Ba._stereo=y;Ba._pos=[y,0,0];Ba._node&&(Ba._pannerAttr.panningModel="equalpower",Ba._panner&&Ba._panner.pan||ca(Ba,M),"spatial"===M?void 0!==
Ba._panner.positionX?(Ba._panner.positionX.setValueAtTime(y,Howler.ctx.currentTime),Ba._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),Ba._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):Ba._panner.setPosition(y,0,0):Ba._panner.pan.setValueAtTime(y,Howler.ctx.currentTime));K._emit("stereo",Ba._id)}}return K};Howl.prototype.pos=function(y,E,K,M){var ea=this;if(!ea._webAudio)return ea;if("loaded"!==ea._state)return ea._queue.push({event:"pos",action:function(){ea.pos(y,E,K,M)}}),
ea;if(E="number"!=typeof E?0:E,K="number"!=typeof K?-.5:K,void 0===M){if("number"!=typeof y)return ea._pos;ea._pos=[y,E,K]}for(var r=ea._getSoundIds(M),Ba=0;Ba<r.length;Ba++){var k=ea._soundById(r[Ba]);if(k){if("number"!=typeof y)return k._pos;k._pos=[y,E,K];k._node&&(k._panner&&!k._panner.pan||ca(k,"spatial"),void 0!==k._panner.positionX?(k._panner.positionX.setValueAtTime(y,Howler.ctx.currentTime),k._panner.positionY.setValueAtTime(E,Howler.ctx.currentTime),k._panner.positionZ.setValueAtTime(K,
Howler.ctx.currentTime)):k._panner.setPosition(y,E,K));ea._emit("pos",k._id)}}return ea};Howl.prototype.orientation=function(y,E,K,M){var ea=this;if(!ea._webAudio)return ea;if("loaded"!==ea._state)return ea._queue.push({event:"orientation",action:function(){ea.orientation(y,E,K,M)}}),ea;if(E="number"!=typeof E?ea._orientation[1]:E,K="number"!=typeof K?ea._orientation[2]:K,void 0===M){if("number"!=typeof y)return ea._orientation;ea._orientation=[y,E,K]}for(var r=ea._getSoundIds(M),Ba=0;Ba<r.length;Ba++){var k=
ea._soundById(r[Ba]);if(k){if("number"!=typeof y)return k._orientation;k._orientation=[y,E,K];k._node&&(k._panner||(k._pos||(k._pos=ea._pos||[0,0,-.5]),ca(k,"spatial")),void 0!==k._panner.orientationX?(k._panner.orientationX.setValueAtTime(y,Howler.ctx.currentTime),k._panner.orientationY.setValueAtTime(E,Howler.ctx.currentTime),k._panner.orientationZ.setValueAtTime(K,Howler.ctx.currentTime)):k._panner.setOrientation(y,E,K));ea._emit("orientation",k._id)}}return ea};Howl.prototype.pannerAttr=function(){var y,
E,K=arguments;if(!this._webAudio)return this;if(0===K.length)return this._pannerAttr;if(1===K.length){if("object"!=typeof K[0])return E=this._soundById(parseInt(K[0],10)),E?E._pannerAttr:this._pannerAttr;var M=K[0];void 0===y&&(M.pannerAttr||(M.pannerAttr={coneInnerAngle:M.coneInnerAngle,coneOuterAngle:M.coneOuterAngle,coneOuterGain:M.coneOuterGain,distanceModel:M.distanceModel,maxDistance:M.maxDistance,refDistance:M.refDistance,rolloffFactor:M.rolloffFactor,panningModel:M.panningModel}),this._pannerAttr=
{coneInnerAngle:void 0!==M.pannerAttr.coneInnerAngle?M.pannerAttr.coneInnerAngle:this._coneInnerAngle,coneOuterAngle:void 0!==M.pannerAttr.coneOuterAngle?M.pannerAttr.coneOuterAngle:this._coneOuterAngle,coneOuterGain:void 0!==M.pannerAttr.coneOuterGain?M.pannerAttr.coneOuterGain:this._coneOuterGain,distanceModel:void 0!==M.pannerAttr.distanceModel?M.pannerAttr.distanceModel:this._distanceModel,maxDistance:void 0!==M.pannerAttr.maxDistance?M.pannerAttr.maxDistance:this._maxDistance,refDistance:void 0!==
M.pannerAttr.refDistance?M.pannerAttr.refDistance:this._refDistance,rolloffFactor:void 0!==M.pannerAttr.rolloffFactor?M.pannerAttr.rolloffFactor:this._rolloffFactor,panningModel:void 0!==M.pannerAttr.panningModel?M.pannerAttr.panningModel:this._panningModel})}else 2===K.length&&(M=K[0],y=parseInt(K[1],10));y=this._getSoundIds(y);for(K=0;K<y.length;K++)if(E=this._soundById(y[K])){var ea=E._pannerAttr;ea={coneInnerAngle:void 0!==M.coneInnerAngle?M.coneInnerAngle:ea.coneInnerAngle,coneOuterAngle:void 0!==
M.coneOuterAngle?M.coneOuterAngle:ea.coneOuterAngle,coneOuterGain:void 0!==M.coneOuterGain?M.coneOuterGain:ea.coneOuterGain,distanceModel:void 0!==M.distanceModel?M.distanceModel:ea.distanceModel,maxDistance:void 0!==M.maxDistance?M.maxDistance:ea.maxDistance,refDistance:void 0!==M.refDistance?M.refDistance:ea.refDistance,rolloffFactor:void 0!==M.rolloffFactor?M.rolloffFactor:ea.rolloffFactor,panningModel:void 0!==M.panningModel?M.panningModel:ea.panningModel};var r=E._panner;r?(r.coneInnerAngle=
ea.coneInnerAngle,r.coneOuterAngle=ea.coneOuterAngle,r.coneOuterGain=ea.coneOuterGain,r.distanceModel=ea.distanceModel,r.maxDistance=ea.maxDistance,r.refDistance=ea.refDistance,r.rolloffFactor=ea.rolloffFactor,r.panningModel=ea.panningModel):(E._pos||(E._pos=this._pos||[0,0,-.5]),ca(E,"spatial"))}return this};Sound.prototype.init=function(y){return function(){var E=this._parent;this._orientation=E._orientation;this._stereo=E._stereo;this._pos=E._pos;this._pannerAttr=E._pannerAttr;y.call(this);this._stereo?
E.stereo(this._stereo):this._pos&&E.pos(this._pos[0],this._pos[1],this._pos[2],this._id)}}(Sound.prototype.init);Sound.prototype.reset=function(y){return function(){var E=this._parent;return this._orientation=E._orientation,this._stereo=E._stereo,this._pos=E._pos,this._pannerAttr=E._pannerAttr,this._stereo?E.stereo(this._stereo):this._pos?E.pos(this._pos[0],this._pos[1],this._pos[2],this._id):this._panner&&(this._panner.disconnect(0),this._panner=void 0,E._refreshBuffer(this)),y.call(this)}}(Sound.prototype.reset);
var ca=function(y,E){"spatial"===(E||"spatial")?(y._panner=Howler.ctx.createPanner(),y._panner.coneInnerAngle=y._pannerAttr.coneInnerAngle,y._panner.coneOuterAngle=y._pannerAttr.coneOuterAngle,y._panner.coneOuterGain=y._pannerAttr.coneOuterGain,y._panner.distanceModel=y._pannerAttr.distanceModel,y._panner.maxDistance=y._pannerAttr.maxDistance,y._panner.refDistance=y._pannerAttr.refDistance,y._panner.rolloffFactor=y._pannerAttr.rolloffFactor,y._panner.panningModel=y._pannerAttr.panningModel,void 0!==
y._panner.positionX?(y._panner.positionX.setValueAtTime(y._pos[0],Howler.ctx.currentTime),y._panner.positionY.setValueAtTime(y._pos[1],Howler.ctx.currentTime),y._panner.positionZ.setValueAtTime(y._pos[2],Howler.ctx.currentTime)):y._panner.setPosition(y._pos[0],y._pos[1],y._pos[2]),void 0!==y._panner.orientationX?(y._panner.orientationX.setValueAtTime(y._orientation[0],Howler.ctx.currentTime),y._panner.orientationY.setValueAtTime(y._orientation[1],Howler.ctx.currentTime),y._panner.orientationZ.setValueAtTime(y._orientation[2],
Howler.ctx.currentTime)):y._panner.setOrientation(y._orientation[0],y._orientation[1],y._orientation[2])):(y._panner=Howler.ctx.createStereoPanner(),y._panner.pan.setValueAtTime(y._stereo,Howler.ctx.currentTime));y._panner.connect(y._node);y._paused||y._parent.pause(y._id,!0).play(y._id,!0)}}();
!function(ca){"object"==typeof exports&&"undefined"!=typeof module?module.exports=ca():"function"==typeof define&&define.amd?define([],ca):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=ca()}(function(){return function M(y,E,K){function ea(k,g){if(!E[k]){if(!y[k]){var v="function"==typeof require&&require;if(!g&&v)return v(k,!0);if(r)return r(k,!0);g=Error("Cannot find module '"+k+"'");throw g.code="MODULE_NOT_FOUND",g;}g=E[k]={exports:{}};
y[k][0].call(g.exports,function(g){var r=y[k][1][g];return ea(r?r:g)},g,g.exports,M,y,E,K)}return E[k].exports}for(var r="function"==typeof require&&require,Ba=0;Ba<K.length;Ba++)ea(K[Ba]);return ea}({1:[function(y,E,K){function M(y){if(!(this instanceof M))return new M(y);y=this.options=Ba.assign({level:Y,method:Wa,chunkSize:16384,windowBits:15,memLevel:8,strategy:L,to:""},y||{});y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&16>y.windowBits&&(y.windowBits+=16);this.err=
0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new v;this.strm.avail_out=0;var E=r.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(E!==x)throw Error(g[E]);if(y.header&&r.deflateSetHeader(this.strm,y.header),y.dictionary){var K;if(K="string"==typeof y.dictionary?k.string2buf(y.dictionary):"[object ArrayBuffer]"===P.call(y.dictionary)?new Uint8Array(y.dictionary):y.dictionary,E=r.deflateSetDictionary(this.strm,K),E!==x)throw Error(g[E]);this._dict_set=!0}}function ea(g,
k){k=new M(k);if(k.push(g,!0),k.err)throw k.msg;return k.result}var r=y("./zlib/deflate"),Ba=y("./utils/common"),k=y("./utils/strings"),g=y("./zlib/messages"),v=y("./zlib/zstream"),P=Object.prototype.toString,x=0,Y=-1,L=0,Wa=8;M.prototype.push=function(g,v){var y,E=this.strm,L=this.options.chunkSize;if(this.ended)return!1;v=v===~~v?v:!0===v?4:0;"string"==typeof g?E.input=k.string2buf(g):"[object ArrayBuffer]"===P.call(g)?E.input=new Uint8Array(g):E.input=g;E.next_in=0;E.avail_in=E.input.length;do{if(0===
E.avail_out&&(E.output=new Ba.Buf8(L),E.next_out=0,E.avail_out=L),y=r.deflate(E,v),1!==y&&y!==x)return this.onEnd(y),this.ended=!0,!1;0!==E.avail_out&&(0!==E.avail_in||4!==v&&2!==v)||("string"===this.options.to?this.onData(k.buf2binstring(Ba.shrinkBuf(E.output,E.next_out))):this.onData(Ba.shrinkBuf(E.output,E.next_out)))}while((0<E.avail_in||0===E.avail_out)&&1!==y);return 4===v?(y=r.deflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===x):2!==v||(this.onEnd(x),E.avail_out=0,!0)};M.prototype.onData=
function(g){this.chunks.push(g)};M.prototype.onEnd=function(g){g===x&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ba.flattenChunks(this.chunks));this.chunks=[];this.err=g;this.msg=this.strm.msg};K.Deflate=M;K.deflate=ea;K.deflateRaw=function(g,k){return k=k||{},k.raw=!0,ea(g,k)};K.gzip=function(g,k){return k=k||{},k.gzip=!0,ea(g,k)}},{"./utils/common":3,"./utils/strings":4,"./zlib/deflate":8,"./zlib/messages":13,"./zlib/zstream":15}],2:[function(y,E,K){function M(k){if(!(this instanceof
M))return new M(k);var y=this.options=Ba.assign({chunkSize:16384,windowBits:0,to:""},k||{});y.raw&&0<=y.windowBits&&16>y.windowBits&&(y.windowBits=-y.windowBits,0===y.windowBits&&(y.windowBits=-15));!(0<=y.windowBits&&16>y.windowBits)||k&&k.windowBits||(y.windowBits+=32);15<y.windowBits&&48>y.windowBits&&0===(15&y.windowBits)&&(y.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new P;this.strm.avail_out=0;k=r.inflateInit2(this.strm,y.windowBits);if(k!==g.Z_OK)throw Error(v[k]);
this.header=new x;r.inflateGetHeader(this.strm,this.header)}function ea(g,k){k=new M(k);if(k.push(g,!0),k.err)throw k.msg;return k.result}var r=y("./zlib/inflate"),Ba=y("./utils/common"),k=y("./utils/strings"),g=y("./zlib/constants"),v=y("./zlib/messages"),P=y("./zlib/zstream"),x=y("./zlib/gzheader"),Y=Object.prototype.toString;M.prototype.push=function(v,x){var y,E,P,L,K,M=this.strm,ea=this.options.chunkSize,Wa=this.options.dictionary,F=!1;if(this.ended)return!1;x=x===~~x?x:!0===x?g.Z_FINISH:g.Z_NO_FLUSH;
"string"==typeof v?M.input=k.binstring2buf(v):"[object ArrayBuffer]"===Y.call(v)?M.input=new Uint8Array(v):M.input=v;M.next_in=0;M.avail_in=M.input.length;do{if(0===M.avail_out&&(M.output=new Ba.Buf8(ea),M.next_out=0,M.avail_out=ea),y=r.inflate(M,g.Z_NO_FLUSH),y===g.Z_NEED_DICT&&Wa&&(K="string"==typeof Wa?k.string2buf(Wa):"[object ArrayBuffer]"===Y.call(Wa)?new Uint8Array(Wa):Wa,y=r.inflateSetDictionary(this.strm,K)),y===g.Z_BUF_ERROR&&!0===F&&(y=g.Z_OK,F=!1),y!==g.Z_STREAM_END&&y!==g.Z_OK)return this.onEnd(y),
this.ended=!0,!1;M.next_out&&(0!==M.avail_out&&y!==g.Z_STREAM_END&&(0!==M.avail_in||x!==g.Z_FINISH&&x!==g.Z_SYNC_FLUSH)||("string"===this.options.to?(E=k.utf8border(M.output,M.next_out),P=M.next_out-E,L=k.buf2string(M.output,E),M.next_out=P,M.avail_out=ea-P,P&&Ba.arraySet(M.output,M.output,E,P,0),this.onData(L)):this.onData(Ba.shrinkBuf(M.output,M.next_out))));0===M.avail_in&&0===M.avail_out&&(F=!0)}while((0<M.avail_in||0===M.avail_out)&&y!==g.Z_STREAM_END);return y===g.Z_STREAM_END&&(x=g.Z_FINISH),
x===g.Z_FINISH?(y=r.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===g.Z_OK):x!==g.Z_SYNC_FLUSH||(this.onEnd(g.Z_OK),M.avail_out=0,!0)};M.prototype.onData=function(g){this.chunks.push(g)};M.prototype.onEnd=function(k){k===g.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ba.flattenChunks(this.chunks));this.chunks=[];this.err=k;this.msg=this.strm.msg};K.Inflate=M;K.inflate=ea;K.inflateRaw=function(g,k){return k=k||{},k.raw=!0,ea(g,k)};K.ungzip=ea},{"./utils/common":3,
"./utils/strings":4,"./zlib/constants":6,"./zlib/gzheader":9,"./zlib/inflate":11,"./zlib/messages":13,"./zlib/zstream":15}],3:[function(y,E,K){y="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;K.assign=function(r){for(var y=Array.prototype.slice.call(arguments,1);y.length;){var k=y.shift();if(k){if("object"!=typeof k)throw new TypeError(k+"must be non-object");for(var g in k)k.hasOwnProperty(g)&&(r[g]=k[g])}}return r};K.shrinkBuf=function(r,y){return r.length===
y?r:r.subarray?r.subarray(0,y):(r.length=y,r)};var M={arraySet:function(r,y,k,g,v){if(y.subarray&&r.subarray)return void r.set(y.subarray(k,k+g),v);for(var E=0;E<g;E++)r[v+E]=y[k+E]},flattenChunks:function(r){var y,k;var g=k=0;for(y=r.length;g<y;g++)k+=r[g].length;var v=new Uint8Array(k);g=k=0;for(y=r.length;g<y;g++){var E=r[g];v.set(E,k);k+=E.length}return v}},ea={arraySet:function(r,y,k,g,v){for(var E=0;E<g;E++)r[v+E]=y[k+E]},flattenChunks:function(r){return[].concat.apply([],r)}};K.setTyped=function(r){r?
(K.Buf8=Uint8Array,K.Buf16=Uint16Array,K.Buf32=Int32Array,K.assign(K,M)):(K.Buf8=Array,K.Buf16=Array,K.Buf32=Array,K.assign(K,ea))};K.setTyped(y)},{}],4:[function(y,E,K){function M(g,k){if(65537>k&&(g.subarray&&Ba||!g.subarray&&r))return String.fromCharCode.apply(null,ea.shrinkBuf(g,k));for(var v="",x=0;x<k;x++)v+=String.fromCharCode(g[x]);return v}var ea=y("./common"),r=!0,Ba=!0;try{String.fromCharCode.apply(null,[0])}catch(g){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(g){Ba=
!1}var k=new ea.Buf8(256);for(y=0;256>y;y++)k[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;k[254]=k[254]=1;K.string2buf=function(g){var k,r,x,y=g.length,E=0;for(r=0;r<y;r++){var K=g.charCodeAt(r);55296===(64512&K)&&r+1<y&&(k=g.charCodeAt(r+1),56320===(64512&k)&&(K=65536+(K-55296<<10)+(k-56320),r++));E+=128>K?1:2048>K?2:65536>K?3:4}var M=new ea.Buf8(E);for(r=x=0;x<E;r++)K=g.charCodeAt(r),55296===(64512&K)&&r+1<y&&(k=g.charCodeAt(r+1),56320===(64512&k)&&(K=65536+(K-55296<<10)+(k-56320),r++)),128>
K?M[x++]=K:2048>K?(M[x++]=192|K>>>6,M[x++]=128|63&K):65536>K?(M[x++]=224|K>>>12,M[x++]=128|K>>>6&63,M[x++]=128|63&K):(M[x++]=240|K>>>18,M[x++]=128|K>>>12&63,M[x++]=128|K>>>6&63,M[x++]=128|63&K);return M};K.buf2binstring=function(g){return M(g,g.length)};K.binstring2buf=function(g){for(var k=new ea.Buf8(g.length),r=0,x=k.length;r<x;r++)k[r]=g.charCodeAt(r);return k};K.buf2string=function(g,r){var v,x,y,E=r||g.length,K=Array(2*E);for(r=v=0;r<E;)if(x=g[r++],128>x)K[v++]=x;else if(y=k[x],4<y)K[v++]=65533,
r+=y-1;else{for(x&=2===y?31:3===y?15:7;1<y&&r<E;)x=x<<6|63&g[r++],y--;1<y?K[v++]=65533:65536>x?K[v++]=x:(x-=65536,K[v++]=55296|x>>10&1023,K[v++]=56320|1023&x)}return M(K,v)};K.utf8border=function(g,r){var v;r=r||g.length;r>g.length&&(r=g.length);for(v=r-1;0<=v&&128===(192&g[v]);)v--;return 0>v?r:0===v?r:v+k[g[v]]>r?v:r}},{"./common":3}],5:[function(y,E,K){E.exports=function(y,E,r,K){var k=65535&y|0;y=y>>>16&65535|0;for(var g;0!==r;){g=2E3<r?2E3:r;r-=g;do k=k+E[K++]|0,y=y+k|0;while(--g);k%=65521;y%=
65521}return k|y<<16|0}},{}],6:[function(y,E,K){E.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],7:[function(y,E,K){var M=function(){for(var y,r=[],E=0;256>
E;E++){y=E;for(var k=0;8>k;k++)y=1&y?3988292384^y>>>1:y>>>1;r[E]=y}return r}();E.exports=function(y,r,E,k){E=k+E;for(y^=-1;k<E;k++)y=y>>>8^M[255&(y^r[k])];return y^-1}},{}],8:[function(y,E,K){function M(g,k){return g.msg=jb[k],k}function ea(g){for(var k=g.length;0<=--k;)g[k]=0}function r(g){var k=g.state,p=k.pending;p>g.avail_out&&(p=g.avail_out);0!==p&&(Ib.arraySet(g.output,k.pending_buf,k.pending_out,p,g.next_out),g.next_out+=p,k.pending_out+=p,g.total_out+=p,g.avail_out-=p,k.pending-=p,0===k.pending&&
(k.pending_out=0))}function Ba(g,k){hb._tr_flush_block(g,0<=g.block_start?g.block_start:-1,g.strstart-g.block_start,k);g.block_start=g.strstart;r(g.strm)}function k(g,k){g.pending_buf[g.pending++]=k}function g(g,k){g.pending_buf[g.pending++]=k>>>8&255;g.pending_buf[g.pending++]=255&k}function v(g,k){var p,r,v=g.max_chain_length,w=g.strstart,x=g.prev_length,y=g.nice_match,X=g.strstart>g.w_size-fa?g.strstart-(g.w_size-fa):0,F=g.window,G=g.w_mask,E=g.prev,K=g.strstart+Ua,Q=F[w+x-1],L=F[w+x];g.prev_length>=
g.good_match&&(v>>=2);y>g.lookahead&&(y=g.lookahead);do if(p=k,F[p+x]===L&&F[p+x-1]===Q&&F[p]===F[w]&&F[++p]===F[w+1]){w+=2;for(p++;F[++w]===F[++p]&&F[++w]===F[++p]&&F[++w]===F[++p]&&F[++w]===F[++p]&&F[++w]===F[++p]&&F[++w]===F[++p]&&F[++w]===F[++p]&&F[++w]===F[++p]&&w<K;);if(r=Ua-(K-w),w=K-Ua,r>x){if(g.match_start=k,x=r,r>=y)break;Q=F[w+x-1];L=F[w+x]}}while((k=E[k&G])>X&&0!==--v);return x<=g.lookahead?x:g.lookahead}function P(g){var k,p,r=g.w_size;do{if(p=g.window_size-g.lookahead-g.strstart,g.strstart>=
r+(r-fa)){Ib.arraySet(g.window,g.window,r,r,0);g.match_start-=r;g.strstart-=r;g.block_start-=r;var v=k=g.hash_size;do{var x=g.head[--v];g.head[v]=x>=r?x-r:0}while(--k);v=k=r;do x=g.prev[--v],g.prev[v]=x>=r?x-r:0;while(--k);p+=r}if(0===g.strm.avail_in)break;v=g.strm;x=g.window;var y=g.strstart+g.lookahead,F=v.avail_in;if(k=(F>p&&(F=p),0===F?0:(v.avail_in-=F,Ib.arraySet(x,v.input,v.next_in,F,y),1===v.state.wrap?v.adler=ka(v.adler,x,F,y):2===v.state.wrap&&(v.adler=Na(v.adler,x,F,y)),v.next_in+=F,v.total_in+=
F,F)),g.lookahead+=k,g.lookahead+g.insert>=Ra)for(p=g.strstart-g.insert,g.ins_h=g.window[p],g.ins_h=(g.ins_h<<g.hash_shift^g.window[p+1])&g.hash_mask;g.insert&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[p+Ra-1])&g.hash_mask,g.prev[p&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=p,p++,g.insert--,!(g.lookahead+g.insert<Ra)););}while(g.lookahead<fa&&0!==g.strm.avail_in)}function x(g,k){for(var p,r;;){if(g.lookahead<fa){if(P(g),g.lookahead<fa&&k===F)return G;if(0===g.lookahead)break}if(p=0,g.lookahead>=Ra&&
(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+Ra-1])&g.hash_mask,p=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),0!==p&&g.strstart-p<=g.w_size-fa&&(g.match_length=v(g,p)),g.match_length>=Ra)if(r=hb._tr_tally(g,g.strstart-g.match_start,g.match_length-Ra),g.lookahead-=g.match_length,g.match_length<=g.max_lazy_match&&g.lookahead>=Ra){g.match_length--;do g.strstart++,g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+Ra-1])&g.hash_mask,p=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],
g.head[g.ins_h]=g.strstart;while(0!==--g.match_length);g.strstart++}else g.strstart+=g.match_length,g.match_length=0,g.ins_h=g.window[g.strstart],g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+1])&g.hash_mask;else r=hb._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++;if(r&&(Ba(g,!1),0===g.strm.avail_out))return G}return g.insert=g.strstart<Ra-1?g.strstart:Ra-1,k===Q?(Ba(g,!0),0===g.strm.avail_out?Yb:Rb):g.last_lit&&(Ba(g,!1),0===g.strm.avail_out)?G:ge}function Y(g,k){for(var p,r,
w;;){if(g.lookahead<fa){if(P(g),g.lookahead<fa&&k===F)return G;if(0===g.lookahead)break}if(p=0,g.lookahead>=Ra&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+Ra-1])&g.hash_mask,p=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),g.prev_length=g.match_length,g.prev_match=g.match_start,g.match_length=Ra-1,0!==p&&g.prev_length<g.max_lazy_match&&g.strstart-p<=g.w_size-fa&&(g.match_length=v(g,p),5>=g.match_length&&(g.strategy===Ab||g.match_length===Ra&&4096<g.strstart-g.match_start)&&
(g.match_length=Ra-1)),g.prev_length>=Ra&&g.match_length<=g.prev_length){w=g.strstart+g.lookahead-Ra;r=hb._tr_tally(g,g.strstart-1-g.prev_match,g.prev_length-Ra);g.lookahead-=g.prev_length-1;g.prev_length-=2;do++g.strstart<=w&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+Ra-1])&g.hash_mask,p=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);while(0!==--g.prev_length);if(g.match_available=0,g.match_length=Ra-1,g.strstart++,r&&(Ba(g,!1),0===g.strm.avail_out))return G}else if(g.match_available){if(r=
hb._tr_tally(g,0,g.window[g.strstart-1]),r&&Ba(g,!1),g.strstart++,g.lookahead--,0===g.strm.avail_out)return G}else g.match_available=1,g.strstart++,g.lookahead--}return g.match_available&&(hb._tr_tally(g,0,g.window[g.strstart-1]),g.match_available=0),g.insert=g.strstart<Ra-1?g.strstart:Ra-1,k===Q?(Ba(g,!0),0===g.strm.avail_out?Yb:Rb):g.last_lit&&(Ba(g,!1),0===g.strm.avail_out)?G:ge}function L(g,k,p,r,v){this.good_length=g;this.max_lazy=k;this.nice_length=p;this.max_chain=r;this.func=v}function Wa(){this.strm=
null;this.status=0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=fe;this.last_flush=-1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=0;this.head=this.prev=null;this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=this.block_start=
this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new Ib.Buf16(2*oc);this.dyn_dtree=new Ib.Buf16(2*(2*Qe+1));this.bl_tree=new Ib.Buf16(2*(2*p+1));ea(this.dyn_ltree);ea(this.dyn_dtree);ea(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Ib.Buf16(ed+1);this.heap=new Ib.Buf16(2*Od+1);ea(this.heap);this.heap_max=this.heap_len=0;this.depth=new Ib.Buf16(2*Od+1);ea(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=
this.opt_len=this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0}function fb(g){var k;return g&&g.state?(g.total_in=g.total_out=0,g.data_type=dc,k=g.state,k.pending=0,k.pending_out=0,0>k.wrap&&(k.wrap=-k.wrap),k.status=k.wrap?Pa:qa,g.adler=2===k.wrap?0:1,k.last_flush=F,hb._tr_init(k),Tb):M(g,bb)}function rc(g){var k=fb(g);k===Tb&&(g=g.state,g.window_size=2*g.w_size,ea(g.head),g.max_lazy_match=vb[g.level].max_lazy,g.good_match=vb[g.level].good_length,g.nice_match=vb[g.level].nice_length,g.max_chain_length=
vb[g.level].max_chain,g.strstart=0,g.block_start=0,g.lookahead=0,g.insert=0,g.match_length=g.prev_length=Ra-1,g.match_available=0,g.ins_h=0);return k}function hc(g,k,p,r,v,x){if(!g)return bb;var w=1;if(k===rb&&(k=6),0>r?(w=0,r=-r):15<r&&(w=2,r-=16),1>v||v>Vd||p!==fe||8>r||15<r||0>k||9<k||0>x||x>nc)return M(g,bb);8===r&&(r=9);var y=new Wa;return g.state=y,y.strm=g,y.wrap=w,y.gzhead=null,y.w_bits=r,y.w_size=1<<y.w_bits,y.w_mask=y.w_size-1,y.hash_bits=v+7,y.hash_size=1<<y.hash_bits,y.hash_mask=y.hash_size-
1,y.hash_shift=~~((y.hash_bits+Ra-1)/Ra),y.window=new Ib.Buf8(2*y.w_size),y.head=new Ib.Buf16(y.hash_size),y.prev=new Ib.Buf16(y.w_size),y.lit_bufsize=1<<v+6,y.pending_buf_size=4*y.lit_bufsize,y.pending_buf=new Ib.Buf8(y.pending_buf_size),y.d_buf=1*y.lit_bufsize,y.l_buf=3*y.lit_bufsize,y.level=k,y.strategy=x,y.method=p,rc(g)}var Ib=y("../utils/common"),hb=y("./trees"),ka=y("./adler32"),Na=y("./crc32"),jb=y("./messages"),F=0,Q=4,Tb=0,bb=-2,rb=-1,Ab=1,nc=4,dc=2,fe=8,Vd=9,Od=286,Qe=30,p=19,oc=2*Od+1,
ed=15,Ra=3,Ua=258,fa=Ua+Ra+1,Pa=42,qa=113,G=1,ge=2,Yb=3,Rb=4;var vb=[new L(0,0,0,0,function(g,k){var p=65535;for(p>g.pending_buf_size-5&&(p=g.pending_buf_size-5);;){if(1>=g.lookahead){if(P(g),0===g.lookahead&&k===F)return G;if(0===g.lookahead)break}g.strstart+=g.lookahead;g.lookahead=0;var r=g.block_start+p;if((0===g.strstart||g.strstart>=r)&&(g.lookahead=g.strstart-r,g.strstart=r,Ba(g,!1),0===g.strm.avail_out)||g.strstart-g.block_start>=g.w_size-fa&&(Ba(g,!1),0===g.strm.avail_out))return G}return g.insert=
0,k===Q?(Ba(g,!0),0===g.strm.avail_out?Yb:Rb):(g.strstart>g.block_start&&Ba(g,!1),G)}),new L(4,4,8,4,x),new L(4,5,16,8,x),new L(4,6,32,32,x),new L(4,4,16,16,Y),new L(8,16,32,32,Y),new L(8,16,128,128,Y),new L(8,32,128,256,Y),new L(32,128,258,1024,Y),new L(32,258,258,4096,Y)];K.deflateInit=function(g,k){return hc(g,k,fe,15,8,0)};K.deflateInit2=hc;K.deflateReset=rc;K.deflateResetKeep=fb;K.deflateSetHeader=function(g,k){return g&&g.state?2!==g.state.wrap?bb:(g.state.gzhead=k,Tb):bb};K.deflate=function(p,
v){var x,w;if(!p||!p.state||5<v||0>v)return p?M(p,bb):bb;if(w=p.state,!p.output||!p.input&&0!==p.avail_in||666===w.status&&v!==Q)return M(p,0===p.avail_out?-5:bb);if(w.strm=p,x=w.last_flush,w.last_flush=v,w.status===Pa)if(2===w.wrap)p.adler=0,k(w,31),k(w,139),k(w,8),w.gzhead?(k(w,(w.gzhead.text?1:0)+(w.gzhead.hcrc?2:0)+(w.gzhead.extra?4:0)+(w.gzhead.name?8:0)+(w.gzhead.comment?16:0)),k(w,255&w.gzhead.time),k(w,w.gzhead.time>>8&255),k(w,w.gzhead.time>>16&255),k(w,w.gzhead.time>>24&255),k(w,9===w.level?
2:2<=w.strategy||2>w.level?4:0),k(w,255&w.gzhead.os),w.gzhead.extra&&w.gzhead.extra.length&&(k(w,255&w.gzhead.extra.length),k(w,w.gzhead.extra.length>>8&255)),w.gzhead.hcrc&&(p.adler=Na(p.adler,w.pending_buf,w.pending,0)),w.gzindex=0,w.status=69):(k(w,0),k(w,0),k(w,0),k(w,0),k(w,0),k(w,9===w.level?2:2<=w.strategy||2>w.level?4:0),k(w,3),w.status=qa);else{var y=fe+(w.w_bits-8<<4)<<8;y|=(2<=w.strategy||2>w.level?0:6>w.level?1:6===w.level?2:3)<<6;0!==w.strstart&&(y|=32);w.status=qa;g(w,y+(31-y%31));0!==
w.strstart&&(g(w,p.adler>>>16),g(w,65535&p.adler));p.adler=1}if(69===w.status)if(w.gzhead.extra){for(y=w.pending;w.gzindex<(65535&w.gzhead.extra.length)&&(w.pending!==w.pending_buf_size||(w.gzhead.hcrc&&w.pending>y&&(p.adler=Na(p.adler,w.pending_buf,w.pending-y,y)),r(p),y=w.pending,w.pending!==w.pending_buf_size));)k(w,255&w.gzhead.extra[w.gzindex]),w.gzindex++;w.gzhead.hcrc&&w.pending>y&&(p.adler=Na(p.adler,w.pending_buf,w.pending-y,y));w.gzindex===w.gzhead.extra.length&&(w.gzindex=0,w.status=73)}else w.status=
73;if(73===w.status)if(w.gzhead.name){y=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>y&&(p.adler=Na(p.adler,w.pending_buf,w.pending-y,y)),r(p),y=w.pending,w.pending===w.pending_buf_size)){var E=1;break}E=w.gzindex<w.gzhead.name.length?255&w.gzhead.name.charCodeAt(w.gzindex++):0;k(w,E)}while(0!==E);w.gzhead.hcrc&&w.pending>y&&(p.adler=Na(p.adler,w.pending_buf,w.pending-y,y));0===E&&(w.gzindex=0,w.status=91)}else w.status=91;if(91===w.status)if(w.gzhead.comment){y=w.pending;
do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>y&&(p.adler=Na(p.adler,w.pending_buf,w.pending-y,y)),r(p),y=w.pending,w.pending===w.pending_buf_size)){E=1;break}E=w.gzindex<w.gzhead.comment.length?255&w.gzhead.comment.charCodeAt(w.gzindex++):0;k(w,E)}while(0!==E);w.gzhead.hcrc&&w.pending>y&&(p.adler=Na(p.adler,w.pending_buf,w.pending-y,y));0===E&&(w.status=103)}else w.status=103;if(103===w.status&&(w.gzhead.hcrc?(w.pending+2>w.pending_buf_size&&r(p),w.pending+2<=w.pending_buf_size&&
(k(w,255&p.adler),k(w,p.adler>>8&255),p.adler=0,w.status=qa)):w.status=qa),0!==w.pending){if(r(p),0===p.avail_out)return w.last_flush=-1,Tb}else if(0===p.avail_in&&(v<<1)-(4<v?9:0)<=(x<<1)-(4<x?9:0)&&v!==Q)return M(p,-5);if(666===w.status&&0!==p.avail_in)return M(p,-5);if(0!==p.avail_in||0!==w.lookahead||v!==F&&666!==w.status){if(2===w.strategy)a:{for(var K;;){if(0===w.lookahead&&(P(w),0===w.lookahead)){if(v===F){var L=G;break a}break}if(w.match_length=0,K=hb._tr_tally(w,0,w.window[w.strstart]),w.lookahead--,
w.strstart++,K&&(Ba(w,!1),0===w.strm.avail_out)){L=G;break a}}L=(w.insert=0,v===Q?(Ba(w,!0),0===w.strm.avail_out?Yb:Rb):w.last_lit&&(Ba(w,!1),0===w.strm.avail_out)?G:ge)}else if(3===w.strategy)a:{var Y,X;for(K=w.window;;){if(w.lookahead<=Ua){if(P(w),w.lookahead<=Ua&&v===F){L=G;break a}if(0===w.lookahead)break}if(w.match_length=0,w.lookahead>=Ra&&0<w.strstart&&(X=w.strstart-1,Y=K[X],Y===K[++X]&&Y===K[++X]&&Y===K[++X])){for(x=w.strstart+Ua;Y===K[++X]&&Y===K[++X]&&Y===K[++X]&&Y===K[++X]&&Y===K[++X]&&
Y===K[++X]&&Y===K[++X]&&Y===K[++X]&&X<x;);w.match_length=Ua-(x-X);w.match_length>w.lookahead&&(w.match_length=w.lookahead)}if(w.match_length>=Ra?(L=hb._tr_tally(w,1,w.match_length-Ra),w.lookahead-=w.match_length,w.strstart+=w.match_length,w.match_length=0):(L=hb._tr_tally(w,0,w.window[w.strstart]),w.lookahead--,w.strstart++),L&&(Ba(w,!1),0===w.strm.avail_out)){L=G;break a}}L=(w.insert=0,v===Q?(Ba(w,!0),0===w.strm.avail_out?Yb:Rb):w.last_lit&&(Ba(w,!1),0===w.strm.avail_out)?G:ge)}else L=vb[w.level].func(w,
v);if(L!==Yb&&L!==Rb||(w.status=666),L===G||L===Yb)return 0===p.avail_out&&(w.last_flush=-1),Tb;if(L===ge&&(1===v?hb._tr_align(w):5!==v&&(hb._tr_stored_block(w,0,0,!1),3===v&&(ea(w.head),0===w.lookahead&&(w.strstart=0,w.block_start=0,w.insert=0))),r(p),0===p.avail_out))return w.last_flush=-1,Tb}return v!==Q?Tb:0>=w.wrap?1:(2===w.wrap?(k(w,255&p.adler),k(w,p.adler>>8&255),k(w,p.adler>>16&255),k(w,p.adler>>24&255),k(w,255&p.total_in),k(w,p.total_in>>8&255),k(w,p.total_in>>16&255),k(w,p.total_in>>24&
255)):(g(w,p.adler>>>16),g(w,65535&p.adler)),r(p),0<w.wrap&&(w.wrap=-w.wrap),0!==w.pending?Tb:1)};K.deflateEnd=function(g){var k;return g&&g.state?(k=g.state.status,k!==Pa&&69!==k&&73!==k&&91!==k&&103!==k&&k!==qa&&666!==k?M(g,bb):(g.state=null,k===qa?M(g,-3):Tb)):bb};K.deflateSetDictionary=function(g,k){var p,r,v;var w=k.length;if(!g||!g.state||(p=g.state,r=p.wrap,2===r||1===r&&p.status!==Pa||p.lookahead))return bb;1===r&&(g.adler=ka(g.adler,k,w,0));p.wrap=0;w>=p.w_size&&(0===r&&(ea(p.head),p.strstart=
0,p.block_start=0,p.insert=0),v=new Ib.Buf8(p.w_size),Ib.arraySet(v,k,w-p.w_size,p.w_size,0),k=v,w=p.w_size);v=g.avail_in;var x=g.next_in;var y=g.input;g.avail_in=w;g.next_in=0;g.input=k;for(P(p);p.lookahead>=Ra;){k=p.strstart;w=p.lookahead-(Ra-1);do p.ins_h=(p.ins_h<<p.hash_shift^p.window[k+Ra-1])&p.hash_mask,p.prev[k&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=k,k++;while(--w);p.strstart=k;p.lookahead=Ra-1;P(p)}return p.strstart+=p.lookahead,p.block_start=p.strstart,p.insert=p.lookahead,p.lookahead=
0,p.match_length=p.prev_length=Ra-1,p.match_available=0,g.next_in=x,g.input=y,g.avail_in=v,p.wrap=r,Tb};K.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./messages":13,"./trees":14}],9:[function(y,E,K){E.exports=function(){this.os=this.xflags=this.time=this.text=0;this.extra=null;this.extra_len=0;this.comment=this.name="";this.hcrc=0;this.done=!1}},{}],10:[function(y,E,K){E.exports=function(y,E){var r,K,k;var g=y.state;var v=y.next_in;var P=y.input;
var x=v+(y.avail_in-5);var M=y.next_out;var L=y.output;E=M-(E-y.avail_out);var ea=M+(y.avail_out-257);var fb=g.dmax;var rc=g.wsize;var hc=g.whave;var Ib=g.wnext;var hb=g.window;var ka=g.hold;var Na=g.bits;var jb=g.lencode;var F=g.distcode;var Q=(1<<g.lenbits)-1;var Tb=(1<<g.distbits)-1;a:do{15>Na&&(ka+=P[v++]<<Na,Na+=8,ka+=P[v++]<<Na,Na+=8);var bb=jb[ka&Q];b:for(;;){if(r=bb>>>24,ka>>>=r,Na-=r,r=bb>>>16&255,0===r)L[M++]=65535&bb;else{if(!(16&r)){if(0===(64&r)){bb=jb[(65535&bb)+(ka&(1<<r)-1)];continue b}if(32&
r){g.mode=12;break a}y.msg="invalid literal/length code";g.mode=30;break a}var rb=65535&bb;(r&=15)&&(Na<r&&(ka+=P[v++]<<Na,Na+=8),rb+=ka&(1<<r)-1,ka>>>=r,Na-=r);15>Na&&(ka+=P[v++]<<Na,Na+=8,ka+=P[v++]<<Na,Na+=8);bb=F[ka&Tb];c:for(;;){if(r=bb>>>24,ka>>>=r,Na-=r,r=bb>>>16&255,!(16&r)){if(0===(64&r)){bb=F[(65535&bb)+(ka&(1<<r)-1)];continue c}y.msg="invalid distance code";g.mode=30;break a}if(K=65535&bb,r&=15,Na<r&&(ka+=P[v++]<<Na,Na+=8,Na<r&&(ka+=P[v++]<<Na,Na+=8)),K+=ka&(1<<r)-1,K>fb){y.msg="invalid distance too far back";
g.mode=30;break a}if(ka>>>=r,Na-=r,r=M-E,K>r){if(r=K-r,r>hc&&g.sane){y.msg="invalid distance too far back";g.mode=30;break a}if(bb=0,k=hb,0===Ib){if(bb+=rc-r,r<rb){rb-=r;do L[M++]=hb[bb++];while(--r);bb=M-K;k=L}}else if(Ib<r){if(bb+=rc+Ib-r,r-=Ib,r<rb){rb-=r;do L[M++]=hb[bb++];while(--r);if(bb=0,Ib<rb){r=Ib;rb-=r;do L[M++]=hb[bb++];while(--r);bb=M-K;k=L}}}else if(bb+=Ib-r,r<rb){rb-=r;do L[M++]=hb[bb++];while(--r);bb=M-K;k=L}for(;2<rb;)L[M++]=k[bb++],L[M++]=k[bb++],L[M++]=k[bb++],rb-=3;rb&&(L[M++]=
k[bb++],1<rb&&(L[M++]=k[bb++]))}else{bb=M-K;do L[M++]=L[bb++],L[M++]=L[bb++],L[M++]=L[bb++],rb-=3;while(2<rb);rb&&(L[M++]=L[bb++],1<rb&&(L[M++]=L[bb++]))}break}}break}}while(v<x&&M<ea);rb=Na>>3;v-=rb;Na-=rb<<3;y.next_in=v;y.next_out=M;y.avail_in=v<x?5+(x-v):5-(v-x);y.avail_out=M<ea?257+(ea-M):257-(M-ea);g.hold=ka&(1<<Na)-1;g.bits=Na}},{}],11:[function(y,E,K){function M(g){return(g>>>24&255)+(g>>>8&65280)+((65280&g)<<8)+((255&g)<<24)}function ea(){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 Y.Buf16(320);this.work=new Y.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function r(g){var k;return g&&g.state?(k=g.state,g.total_in=g.total_out=k.total=0,g.msg=
"",k.wrap&&(g.adler=1&k.wrap),k.mode=hb,k.last=0,k.havedict=0,k.dmax=32768,k.head=null,k.hold=0,k.bits=0,k.lencode=k.lendyn=new Y.Buf32(ka),k.distcode=k.distdyn=new Y.Buf32(Na),k.sane=1,k.back=-1,hc):Ib}function Ba(g){var k;return g&&g.state?(k=g.state,k.wsize=0,k.whave=0,k.wnext=0,r(g)):Ib}function k(g,k){var r,v;return g&&g.state?(v=g.state,0>k?(r=0,k=-k):(r=(k>>4)+1,48>k&&(k&=15)),k&&(8>k||15<k)?Ib:(null!==v.window&&v.wbits!==k&&(v.window=null),v.wrap=r,v.wbits=k,Ba(g))):Ib}function g(g,r){var v,
x;return g?(x=new ea,g.state=x,x.window=null,v=k(g,r),v!==hc&&(g.state=null),v):Ib}function v(g,k,r,v){var x;g=g.state;return null===g.window&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new Y.Buf8(g.wsize)),v>=g.wsize?(Y.arraySet(g.window,k,r-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):(x=g.wsize-g.wnext,x>v&&(x=v),Y.arraySet(g.window,k,r-v,x,g.wnext),v-=x,v?(Y.arraySet(g.window,k,r-v,v,0),g.wnext=v,g.whave=g.wsize):(g.wnext+=x,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=x))),
0}var P,x,Y=y("../utils/common"),L=y("./adler32"),Wa=y("./crc32"),fb=y("./inffast"),rc=y("./inftrees"),hc=0,Ib=-2,hb=1,ka=852,Na=592,jb=!0;K.inflateReset=Ba;K.inflateReset2=k;K.inflateResetKeep=r;K.inflateInit=function(k){return g(k,15)};K.inflateInit2=g;K.inflate=function(g,k){var r,y,F,E,K,Q,ea,ka=0,Ba=new Y.Buf8(4),Na=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!g||!g.state||!g.output||!g.input&&0!==g.avail_in)return Ib;var p=g.state;12===p.mode&&(p.mode=13);var oc=g.next_out;var ed=g.output;
var Ra=g.avail_out;var Ua=g.next_in;var fa=g.input;var Pa=g.avail_in;var qa=p.hold;var G=p.bits;var ge=Pa;var Yb=Ra;var Rb=hc;a:for(;;)switch(p.mode){case hb:if(0===p.wrap){p.mode=13;break}for(;16>G;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}if(2&p.wrap&&35615===qa){p.check=0;Ba[0]=255&qa;Ba[1]=qa>>>8&255;p.check=Wa(p.check,Ba,2,0);G=qa=0;p.mode=2;break}if(p.flags=0,p.head&&(p.head.done=!1),!(1&p.wrap)||(((255&qa)<<8)+(qa>>8))%31){g.msg="incorrect header check";p.mode=30;break}if(8!==(15&qa)){g.msg=
"unknown compression method";p.mode=30;break}if(qa>>>=4,G-=4,Q=(15&qa)+8,0===p.wbits)p.wbits=Q;else if(Q>p.wbits){g.msg="invalid window size";p.mode=30;break}p.dmax=1<<Q;g.adler=p.check=1;p.mode=512&qa?10:12;G=qa=0;break;case 2:for(;16>G;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}if(p.flags=qa,8!==(255&p.flags)){g.msg="unknown compression method";p.mode=30;break}if(57344&p.flags){g.msg="unknown header flags set";p.mode=30;break}p.head&&(p.head.text=qa>>8&1);512&p.flags&&(Ba[0]=255&qa,Ba[1]=qa>>>
8&255,p.check=Wa(p.check,Ba,2,0));G=qa=0;p.mode=3;case 3:for(;32>G;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}p.head&&(p.head.time=qa);512&p.flags&&(Ba[0]=255&qa,Ba[1]=qa>>>8&255,Ba[2]=qa>>>16&255,Ba[3]=qa>>>24&255,p.check=Wa(p.check,Ba,4,0));G=qa=0;p.mode=4;case 4:for(;16>G;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}p.head&&(p.head.xflags=255&qa,p.head.os=qa>>8);512&p.flags&&(Ba[0]=255&qa,Ba[1]=qa>>>8&255,p.check=Wa(p.check,Ba,2,0));G=qa=0;p.mode=5;case 5:if(1024&p.flags){for(;16>G;){if(0===
Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}p.length=qa;p.head&&(p.head.extra_len=qa);512&p.flags&&(Ba[0]=255&qa,Ba[1]=qa>>>8&255,p.check=Wa(p.check,Ba,2,0));G=qa=0}else p.head&&(p.head.extra=null);p.mode=6;case 6:if(1024&p.flags&&(r=p.length,r>Pa&&(r=Pa),r&&(p.head&&(Q=p.head.extra_len-p.length,p.head.extra||(p.head.extra=Array(p.head.extra_len)),Y.arraySet(p.head.extra,fa,Ua,r,Q)),512&p.flags&&(p.check=Wa(p.check,fa,r,Ua)),Pa-=r,Ua+=r,p.length-=r),p.length))break a;p.length=0;p.mode=7;case 7:if(2048&p.flags){if(0===
Pa)break a;r=0;do Q=fa[Ua+r++],p.head&&Q&&65536>p.length&&(p.head.name+=String.fromCharCode(Q));while(Q&&r<Pa);if(512&p.flags&&(p.check=Wa(p.check,fa,r,Ua)),Pa-=r,Ua+=r,Q)break a}else p.head&&(p.head.name=null);p.length=0;p.mode=8;case 8:if(4096&p.flags){if(0===Pa)break a;r=0;do Q=fa[Ua+r++],p.head&&Q&&65536>p.length&&(p.head.comment+=String.fromCharCode(Q));while(Q&&r<Pa);if(512&p.flags&&(p.check=Wa(p.check,fa,r,Ua)),Pa-=r,Ua+=r,Q)break a}else p.head&&(p.head.comment=null);p.mode=9;case 9:if(512&
p.flags){for(;16>G;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}if(qa!==(65535&p.check)){g.msg="header crc mismatch";p.mode=30;break}G=qa=0}p.head&&(p.head.hcrc=p.flags>>9&1,p.head.done=!0);g.adler=p.check=0;p.mode=12;break;case 10:for(;32>G;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}g.adler=p.check=M(qa);G=qa=0;p.mode=11;case 11:if(0===p.havedict)return g.next_out=oc,g.avail_out=Ra,g.next_in=Ua,g.avail_in=Pa,p.hold=qa,p.bits=G,2;g.adler=p.check=1;p.mode=12;case 12:if(5===k||6===k)break a;case 13:if(p.last){qa>>>=
7&G;G-=7&G;p.mode=27;break}for(;3>G;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}switch(p.last=1&qa,qa>>>=1,--G,3&qa){case 0:p.mode=14;break;case 1:var vb=p;if(jb){P=new Y.Buf32(512);x=new Y.Buf32(32);for(F=0;144>F;)vb.lens[F++]=8;for(;256>F;)vb.lens[F++]=9;for(;280>F;)vb.lens[F++]=7;for(;288>F;)vb.lens[F++]=8;rc(1,vb.lens,0,288,P,0,vb.work,{bits:9});for(F=0;32>F;)vb.lens[F++]=5;rc(2,vb.lens,0,32,x,0,vb.work,{bits:5});jb=!1}vb.lencode=P;vb.lenbits=9;vb.distcode=x;vb.distbits=5;if(p.mode=20,6===k){qa>>>=
2;G-=2;break a}break;case 2:p.mode=17;break;case 3:g.msg="invalid block type",p.mode=30}qa>>>=2;G-=2;break;case 14:qa>>>=7&G;for(G-=7&G;32>G;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}if((65535&qa)!==(qa>>>16^65535)){g.msg="invalid stored block lengths";p.mode=30;break}if(p.length=65535&qa,qa=0,G=0,p.mode=15,6===k)break a;case 15:p.mode=16;case 16:if(r=p.length){if(r>Pa&&(r=Pa),r>Ra&&(r=Ra),0===r)break a;Y.arraySet(ed,fa,Ua,r,oc);Pa-=r;Ua+=r;Ra-=r;oc+=r;p.length-=r;break}p.mode=12;break;case 17:for(;14>
G;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}if(p.nlen=(31&qa)+257,qa>>>=5,G-=5,p.ndist=(31&qa)+1,qa>>>=5,G-=5,p.ncode=(15&qa)+4,qa>>>=4,G-=4,286<p.nlen||30<p.ndist){g.msg="too many length or distance symbols";p.mode=30;break}p.have=0;p.mode=18;case 18:for(;p.have<p.ncode;){for(;3>G;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}p.lens[Na[p.have++]]=7&qa;qa>>>=3;G-=3}for(;19>p.have;)p.lens[Na[p.have++]]=0;if(p.lencode=p.lendyn,p.lenbits=7,ea={bits:p.lenbits},Rb=rc(0,p.lens,0,19,p.lencode,0,p.work,
ea),p.lenbits=ea.bits,Rb){g.msg="invalid code lengths set";p.mode=30;break}p.have=0;p.mode=19;case 19:for(;p.have<p.nlen+p.ndist;){for(;ka=p.lencode[qa&(1<<p.lenbits)-1],E=ka>>>24,vb=65535&ka,!(E<=G);){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}if(16>vb)qa>>>=E,G-=E,p.lens[p.have++]=vb;else{if(16===vb){for(F=E+2;G<F;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}if(qa>>>=E,G-=E,0===p.have){g.msg="invalid bit length repeat";p.mode=30;break}Q=p.lens[p.have-1];r=3+(3&qa);qa>>>=2;G-=2}else if(17===vb){for(F=
E+3;G<F;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}qa>>>=E;G-=E;Q=0;r=3+(7&qa);qa>>>=3;G-=3}else{for(F=E+7;G<F;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}qa>>>=E;G-=E;Q=0;r=11+(127&qa);qa>>>=7;G-=7}if(p.have+r>p.nlen+p.ndist){g.msg="invalid bit length repeat";p.mode=30;break}for(;r--;)p.lens[p.have++]=Q}}if(30===p.mode)break;if(0===p.lens[256]){g.msg="invalid code -- missing end-of-block";p.mode=30;break}if(p.lenbits=9,ea={bits:p.lenbits},Rb=rc(1,p.lens,0,p.nlen,p.lencode,0,p.work,ea),p.lenbits=
ea.bits,Rb){g.msg="invalid literal/lengths set";p.mode=30;break}if(p.distbits=6,p.distcode=p.distdyn,ea={bits:p.distbits},Rb=rc(2,p.lens,p.nlen,p.ndist,p.distcode,0,p.work,ea),p.distbits=ea.bits,Rb){g.msg="invalid distances set";p.mode=30;break}if(p.mode=20,6===k)break a;case 20:p.mode=21;case 21:if(6<=Pa&&258<=Ra){g.next_out=oc;g.avail_out=Ra;g.next_in=Ua;g.avail_in=Pa;p.hold=qa;p.bits=G;fb(g,Yb);oc=g.next_out;ed=g.output;Ra=g.avail_out;Ua=g.next_in;fa=g.input;Pa=g.avail_in;qa=p.hold;G=p.bits;12===
p.mode&&(p.back=-1);break}for(p.back=0;ka=p.lencode[qa&(1<<p.lenbits)-1],E=ka>>>24,F=ka>>>16&255,vb=65535&ka,!(E<=G);){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}if(F&&0===(240&F)){var X=E;var w=F;for(K=vb;ka=p.lencode[K+((qa&(1<<X+w)-1)>>X)],E=ka>>>24,F=ka>>>16&255,vb=65535&ka,!(X+E<=G);){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}qa>>>=X;G-=X;p.back+=X}if(qa>>>=E,G-=E,p.back+=E,p.length=vb,0===F){p.mode=26;break}if(32&F){p.back=-1;p.mode=12;break}if(64&F){g.msg="invalid literal/length code";p.mode=
30;break}p.extra=15&F;p.mode=22;case 22:if(p.extra){for(F=p.extra;G<F;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}p.length+=qa&(1<<p.extra)-1;qa>>>=p.extra;G-=p.extra;p.back+=p.extra}p.was=p.length;p.mode=23;case 23:for(;ka=p.distcode[qa&(1<<p.distbits)-1],E=ka>>>24,F=ka>>>16&255,vb=65535&ka,!(E<=G);){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}if(0===(240&F)){X=E;w=F;for(K=vb;ka=p.distcode[K+((qa&(1<<X+w)-1)>>X)],E=ka>>>24,F=ka>>>16&255,vb=65535&ka,!(X+E<=G);){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<
G;G+=8}qa>>>=X;G-=X;p.back+=X}if(qa>>>=E,G-=E,p.back+=E,64&F){g.msg="invalid distance code";p.mode=30;break}p.offset=vb;p.extra=15&F;p.mode=24;case 24:if(p.extra){for(F=p.extra;G<F;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}p.offset+=qa&(1<<p.extra)-1;qa>>>=p.extra;G-=p.extra;p.back+=p.extra}if(p.offset>p.dmax){g.msg="invalid distance too far back";p.mode=30;break}p.mode=25;case 25:if(0===Ra)break a;if(r=Yb-Ra,p.offset>r){if(r=p.offset-r,r>p.whave&&p.sane){g.msg="invalid distance too far back";
p.mode=30;break}r>p.wnext?(r-=p.wnext,y=p.wsize-r):y=p.wnext-r;r>p.length&&(r=p.length);F=p.window}else F=ed,y=oc-p.offset,r=p.length;r>Ra&&(r=Ra);Ra-=r;p.length-=r;do ed[oc++]=F[y++];while(--r);0===p.length&&(p.mode=21);break;case 26:if(0===Ra)break a;ed[oc++]=p.length;Ra--;p.mode=21;break;case 27:if(p.wrap){for(;32>G;){if(0===Pa)break a;Pa--;qa|=fa[Ua++]<<G;G+=8}if(Yb-=Ra,g.total_out+=Yb,p.total+=Yb,Yb&&(g.adler=p.check=p.flags?Wa(p.check,ed,Yb,oc-Yb):L(p.check,ed,Yb,oc-Yb)),Yb=Ra,(p.flags?qa:M(qa))!==
p.check){g.msg="incorrect data check";p.mode=30;break}G=qa=0}p.mode=28;case 28:if(p.wrap&&p.flags){for(;32>G;){if(0===Pa)break a;Pa--;qa+=fa[Ua++]<<G;G+=8}if(qa!==(4294967295&p.total)){g.msg="incorrect length check";p.mode=30;break}G=qa=0}p.mode=29;case 29:Rb=1;break a;case 30:Rb=-3;break a;case 31:return-4;default:return Ib}return g.next_out=oc,g.avail_out=Ra,g.next_in=Ua,g.avail_in=Pa,p.hold=qa,p.bits=G,(p.wsize||Yb!==g.avail_out&&30>p.mode&&(27>p.mode||4!==k))&&v(g,g.output,g.next_out,Yb-g.avail_out)?
(p.mode=31,-4):(ge-=g.avail_in,Yb-=g.avail_out,g.total_in+=ge,g.total_out+=Yb,p.total+=Yb,p.wrap&&Yb&&(g.adler=p.check=p.flags?Wa(p.check,ed,Yb,g.next_out-Yb):L(p.check,ed,Yb,g.next_out-Yb)),g.data_type=p.bits+(p.last?64:0)+(12===p.mode?128:0)+(20===p.mode||15===p.mode?256:0),(0===ge&&0===Yb||4===k)&&Rb===hc&&(Rb=-5),Rb)};K.inflateEnd=function(g){if(!g||!g.state)return Ib;var k=g.state;return k.window&&(k.window=null),g.state=null,hc};K.inflateGetHeader=function(g,k){var r;return g&&g.state?(r=g.state,
0===(2&r.wrap)?Ib:(r.head=k,k.done=!1,hc)):Ib};K.inflateSetDictionary=function(g,k){var r,x,y=k.length;return g&&g.state?(r=g.state,0!==r.wrap&&11!==r.mode?Ib:11===r.mode&&(x=1,x=L(x,k,y,0),x!==r.check)?-3:v(g,k,y,y)?(r.mode=31,-4):(r.havedict=1,hc)):Ib};K.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(y,E,K){var M=y("../utils/common"),ea=[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],r=[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],Ba=[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],k=[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(g,v,y,x,E,K,Wa,fb){var L,P,Y,hb,ka,Na,jb=fb.bits,F,Q,Tb,bb,rb,Ab=0,nc,dc=null,fe=0,Vd=new M.Buf16(16);var Od=new M.Buf16(16);var Qe=null,p=
0;for(F=0;15>=F;F++)Vd[F]=0;for(Q=0;Q<x;Q++)Vd[v[y+Q]]++;var oc=jb;for(Tb=15;1<=Tb&&0===Vd[Tb];Tb--);if(oc>Tb&&(oc=Tb),0===Tb)return E[K++]=20971520,E[K++]=20971520,fb.bits=1,0;for(jb=1;jb<Tb&&0===Vd[jb];jb++);oc<jb&&(oc=jb);for(F=L=1;15>=F;F++)if(L<<=1,L-=Vd[F],0>L)return-1;if(0<L&&(0===g||1!==Tb))return-1;Od[1]=0;for(F=1;15>F;F++)Od[F+1]=Od[F]+Vd[F];for(Q=0;Q<x;Q++)0!==v[y+Q]&&(Wa[Od[v[y+Q]]++]=Q);if(0===g?(dc=Qe=Wa,hb=19):1===g?(dc=ea,fe-=257,Qe=r,p-=257,hb=256):(dc=Ba,Qe=k,hb=-1),nc=0,Q=0,F=jb,
Od=K,bb=oc,rb=0,Y=-1,Ab=1<<oc,x=Ab-1,1===g&&852<Ab||2===g&&592<Ab)return 1;for(var ed=0;;){ed++;var Ra=F-rb;Wa[Q]<hb?(ka=0,Na=Wa[Q]):Wa[Q]>hb?(ka=Qe[p+Wa[Q]],Na=dc[fe+Wa[Q]]):(ka=96,Na=0);L=1<<F-rb;jb=P=1<<bb;do P-=L,E[Od+(nc>>rb)+P]=Ra<<24|ka<<16|Na|0;while(0!==P);for(L=1<<F-1;nc&L;)L>>=1;if(0!==L?(nc&=L-1,nc+=L):nc=0,Q++,0===--Vd[F]){if(F===Tb)break;F=v[y+Wa[Q]]}if(F>oc&&(nc&x)!==Y){0===rb&&(rb=oc);Od+=jb;bb=F-rb;for(L=1<<bb;bb+rb<Tb&&(L-=Vd[bb+rb],!(0>=L));)bb++,L<<=1;if(Ab+=1<<bb,1===g&&852<Ab||
2===g&&592<Ab)return 1;Y=nc&x;E[Y]=oc<<24|bb<<16|Od-K|0}}return 0!==nc&&(E[Od+nc]=F-rb<<24|4194304),fb.bits=oc,0}},{"../utils/common":3}],13:[function(y,E,K){E.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],14:[function(y,E,K){function M(g){for(var k=g.length;0<=--k;)g[k]=0}function ea(g,k,p,r,v){this.static_tree=g;this.extra_bits=k;this.extra_base=p;this.elems=
r;this.max_length=v;this.has_stree=g&&g.length}function r(g,k){this.dyn_tree=g;this.max_code=0;this.stat_desc=k}function Ba(g,k){g.pending_buf[g.pending++]=255&k;g.pending_buf[g.pending++]=k>>>8&255}function k(g,k,p){g.bi_valid>fe-p?(g.bi_buf|=k<<g.bi_valid&65535,Ba(g,g.bi_buf),g.bi_buf=k>>fe-g.bi_valid,g.bi_valid+=p-fe):(g.bi_buf|=k<<g.bi_valid&65535,g.bi_valid+=p)}function g(g,p,r){k(g,r[2*p],r[2*p+1])}function v(g,k){var p=0;do p|=1&g,g>>>=1,p<<=1;while(0<--k);return p>>>1}function P(g,k,p){var r,
w=Array(dc+1),x=0;for(r=1;r<=dc;r++)w[r]=x=x+p[r-1]<<1;for(p=0;p<=k;p++)r=g[2*p+1],0!==r&&(g[2*p]=v(w[r]++,r))}function x(g){var k;for(k=0;k<bb;k++)g.dyn_ltree[2*k]=0;for(k=0;k<rb;k++)g.dyn_dtree[2*k]=0;for(k=0;k<Ab;k++)g.bl_tree[2*k]=0;g.dyn_ltree[2*Vd]=1;g.opt_len=g.static_len=0;g.last_lit=g.matches=0}function Y(g){8<g.bi_valid?Ba(g,g.bi_buf):0<g.bi_valid&&(g.pending_buf[g.pending++]=g.bi_buf);g.bi_buf=0;g.bi_valid=0}function L(g,k,p,r){var v=2*k,w=2*p;return g[v]<g[w]||g[v]===g[w]&&r[k]<=r[p]}
function Wa(g,k,p){for(var r=g.heap[p],v=p<<1;v<=g.heap_len&&(v<g.heap_len&&L(k,g.heap[v+1],g.heap[v],g.depth)&&v++,!L(k,r,g.heap[v],g.depth));)g.heap[p]=g.heap[v],p=v,v<<=1;g.heap[p]=r}function fb(p,r,v){var w,x,y=0;if(0!==p.last_lit){do{var E=p.pending_buf[p.d_buf+2*y]<<8|p.pending_buf[p.d_buf+2*y+1];var F=p.pending_buf[p.l_buf+y];y++;0===E?g(p,F,r):(w=G[F],g(p,w+Tb+1,r),x=oc[w],0!==x&&(F-=ge[w],k(p,F,x)),E--,w=256>E?qa[E]:qa[256+(E>>>7)],g(p,w,v),x=ed[w],0!==x&&(E-=Yb[w],k(p,E,x)))}while(y<p.last_lit)
}g(p,Vd,r)}function rc(g,k){var p,r=k.dyn_tree;var v=k.stat_desc.static_tree;var w=k.stat_desc.has_stree,x=k.stat_desc.elems,y=-1;g.heap_len=0;g.heap_max=nc;for(p=0;p<x;p++)0!==r[2*p]?(g.heap[++g.heap_len]=y=p,g.depth[p]=0):r[2*p+1]=0;for(;2>g.heap_len;){var E=g.heap[++g.heap_len]=2>y?++y:0;r[2*E]=1;g.depth[E]=0;g.opt_len--;w&&(g.static_len-=v[2*E+1])}k.max_code=y;for(p=g.heap_len>>1;1<=p;p--)Wa(g,r,p);E=x;do p=g.heap[1],g.heap[1]=g.heap[g.heap_len--],Wa(g,r,1),v=g.heap[1],g.heap[--g.heap_max]=p,
g.heap[--g.heap_max]=v,r[2*E]=r[2*p]+r[2*v],g.depth[E]=(g.depth[p]>=g.depth[v]?g.depth[p]:g.depth[v])+1,r[2*p+1]=r[2*v+1]=E,g.heap[1]=E++,Wa(g,r,1);while(2<=g.heap_len);g.heap[--g.heap_max]=g.heap[1];var F,G;p=k.dyn_tree;E=k.max_code;x=k.stat_desc.static_tree;var K=k.stat_desc.has_stree,L=k.stat_desc.extra_bits,U=k.stat_desc.extra_base,M=k.stat_desc.max_length,Q=0;for(w=0;w<=dc;w++)g.bl_count[w]=0;p[2*g.heap[g.heap_max]+1]=0;for(k=g.heap_max+1;k<nc;k++)v=g.heap[k],w=p[2*p[2*v+1]+1]+1,w>M&&(w=M,Q++),
p[2*v+1]=w,v>E||(g.bl_count[w]++,F=0,v>=U&&(F=L[v-U]),G=p[2*v],g.opt_len+=G*(w+F),K&&(g.static_len+=G*(x[2*v+1]+F)));if(0!==Q){do{for(w=M-1;0===g.bl_count[w];)w--;g.bl_count[w]--;g.bl_count[w+1]+=2;g.bl_count[M]--;Q-=2}while(0<Q);for(w=M;0!==w;w--)for(v=g.bl_count[w];0!==v;)F=g.heap[--k],F>E||(p[2*F+1]!==w&&(g.opt_len+=(w-p[2*F+1])*p[2*F],p[2*F+1]=w),v--)}P(r,y,g.bl_count)}function hc(g,k,r){var v,w=-1,x=k[1],y=0,E=7,F=4;0===x&&(E=138,F=3);k[2*(r+1)+1]=65535;for(v=0;v<=r;v++){var G=x;x=k[2*(v+1)+
1];++y<E&&G===x||(y<F?g.bl_tree[2*G]+=y:0!==G?(G!==w&&g.bl_tree[2*G]++,g.bl_tree[2*Od]++):10>=y?g.bl_tree[2*Qe]++:g.bl_tree[2*p]++,y=0,w=G,0===x?(E=138,F=3):G===x?(E=6,F=3):(E=7,F=4))}}function Ib(r,v,w){var x,y,E=-1,F=v[1],G=0,K=7,L=4;0===F&&(K=138,L=3);for(x=0;x<=w;x++)if(y=F,F=v[2*(x+1)+1],!(++G<K&&y===F)){if(G<L){do g(r,y,r.bl_tree);while(0!==--G)}else 0!==y?(y!==E&&(g(r,y,r.bl_tree),G--),g(r,Od,r.bl_tree),k(r,G-3,2)):10>=G?(g(r,Qe,r.bl_tree),k(r,G-3,3)):(g(r,p,r.bl_tree),k(r,G-11,7));G=0;E=y;
0===F?(K=138,L=3):y===F?(K=6,L=3):(K=7,L=4)}}function hb(g){var k,p=4093624447;for(k=0;31>=k;k++,p>>>=1)if(1&p&&0!==g.dyn_ltree[2*k])return jb;if(0!==g.dyn_ltree[18]||0!==g.dyn_ltree[20]||0!==g.dyn_ltree[26])return F;for(k=32;k<Tb;k++)if(0!==g.dyn_ltree[2*k])return F;return jb}function ka(g,p,r,v){k(g,(Q<<1)+(v?1:0),3);Y(g);Ba(g,r);Ba(g,~r);Na.arraySet(g.pending_buf,g.window,p,r,g.pending);g.pending+=r}var Na=y("../utils/common"),jb=0,F=1,Q=0,Tb=256,bb=Tb+1+29,rb=30,Ab=19,nc=2*bb+1,dc=15,fe=16,Vd=
256,Od=16,Qe=17,p=18,oc=[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],ed=[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],Ra=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ua=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fa=Array(2*(bb+2));M(fa);var Pa=Array(2*rb);M(Pa);var qa=Array(512);M(qa);var G=Array(256);M(G);var ge=Array(29);M(ge);var Yb=Array(rb);M(Yb);var Rb,vb,X,w=!1;K._tr_init=function(g){if(!w){var k,p,y,E=Array(dc+1);for(y=p=0;28>y;y++)for(ge[y]=p,k=0;k<
1<<oc[y];k++)G[p++]=y;G[p-1]=y;for(y=p=0;16>y;y++)for(Yb[y]=p,k=0;k<1<<ed[y];k++)qa[p++]=y;for(p>>=7;y<rb;y++)for(Yb[y]=p<<7,k=0;k<1<<ed[y]-7;k++)qa[256+p++]=y;for(k=0;k<=dc;k++)E[k]=0;for(k=0;143>=k;)fa[2*k+1]=8,k++,E[8]++;for(;255>=k;)fa[2*k+1]=9,k++,E[9]++;for(;279>=k;)fa[2*k+1]=7,k++,E[7]++;for(;287>=k;)fa[2*k+1]=8,k++,E[8]++;P(fa,bb+1,E);for(k=0;k<rb;k++)Pa[2*k+1]=5,Pa[2*k]=v(k,5);Rb=new ea(fa,oc,Tb+1,bb,dc);vb=new ea(Pa,ed,0,rb,dc);X=new ea([],Ra,0,Ab,7);w=!0}g.l_desc=new r(g.dyn_ltree,Rb);
g.d_desc=new r(g.dyn_dtree,vb);g.bl_desc=new r(g.bl_tree,X);g.bi_buf=0;g.bi_valid=0;x(g)};K._tr_stored_block=ka;K._tr_flush_block=function(g,p,r,v){var w=0;if(0<g.level){2===g.strm.data_type&&(g.strm.data_type=hb(g));rc(g,g.l_desc);rc(g,g.d_desc);hc(g,g.dyn_ltree,g.l_desc.max_code);hc(g,g.dyn_dtree,g.d_desc.max_code);rc(g,g.bl_desc);for(w=Ab-1;3<=w&&0===g.bl_tree[2*Ua[w]+1];w--);w=(g.opt_len+=3*(w+1)+14,w);var y=g.opt_len+3+7>>>3;var E=g.static_len+3+7>>>3;E<=y&&(y=E)}else y=E=r+5;if(r+4<=y&&-1!==
p)ka(g,p,r,v);else if(4===g.strategy||E===y)k(g,2+(v?1:0),3),fb(g,fa,Pa);else{k(g,4+(v?1:0),3);p=g.l_desc.max_code+1;r=g.d_desc.max_code+1;w+=1;k(g,p-257,5);k(g,r-1,5);k(g,w-4,4);for(y=0;y<w;y++)k(g,g.bl_tree[2*Ua[y]+1],3);Ib(g,g.dyn_ltree,p-1);Ib(g,g.dyn_dtree,r-1);fb(g,g.dyn_ltree,g.dyn_dtree)}x(g);v&&Y(g)};K._tr_tally=function(g,k,p){return g.pending_buf[g.d_buf+2*g.last_lit]=k>>>8&255,g.pending_buf[g.d_buf+2*g.last_lit+1]=255&k,g.pending_buf[g.l_buf+g.last_lit]=255&p,g.last_lit++,0===k?g.dyn_ltree[2*
p]++:(g.matches++,k--,g.dyn_ltree[2*(G[p]+Tb+1)]++,g.dyn_dtree[2*(256>k?qa[k]:qa[256+(k>>>7)])]++),g.last_lit===g.lit_bufsize-1};K._tr_align=function(p){k(p,2,3);g(p,Vd,fa);16===p.bi_valid?(Ba(p,p.bi_buf),p.bi_buf=0,p.bi_valid=0):8<=p.bi_valid&&(p.pending_buf[p.pending++]=255&p.bi_buf,p.bi_buf>>=8,p.bi_valid-=8)}},{"../utils/common":3}],15:[function(y,E,K){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(y,E,K){K=y("./lib/utils/common").assign;var M=y("./lib/deflate"),ea=y("./lib/inflate");y=y("./lib/zlib/constants");var r={};K(r,M,ea,y);E.exports=r},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")});
var saveAs=saveAs||function(ca){if(!("undefined"===typeof ca||"undefined"!==typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var y=ca.document.createElementNS("http://www.w3.org/1999/xhtml","a"),E="download"in y,K=/constructor/i.test(ca.HTMLElement)||ca.safari,M=/CriOS\/[\d]+/.test(navigator.userAgent),ea=function(g){(ca.setImmediate||ca.setTimeout)(function(){throw g;},0)},r=function(g){setTimeout(function(){"string"===typeof g?(ca.URL||ca.webkitURL||ca).revokeObjectURL(g):g.remove()},
4E4)},Ba=function(g){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(g.type)?new Blob([String.fromCharCode(65279),g],{type:g.type}):g},k=function(g,k,x){x||(g=Ba(g));var v=this,L="application/octet-stream"===g.type,P=function(){var g=["writestart","progress","write","writeend"];g=[].concat(g);for(var k=g.length;k--;){var r=v["on"+g[k]];if("function"===typeof r)try{r.call(v,v)}catch(hb){ea(hb)}}};v.readyState=v.INIT;if(E){var fb=(ca.URL||ca.webkitURL||ca).createObjectURL(g);
setTimeout(function(){y.href=fb;y.download=k;var g=new MouseEvent("click");y.dispatchEvent(g);P();r(fb);v.readyState=v.DONE})}else(function(){if((M||L&&K)&&ca.FileReader){var k=new FileReader;k.onloadend=function(){var g=M?k.result:k.result.replace(/^data:[^;]*;/,"data:attachment/file;");ca.open(g,"_blank")||(ca.location.href=g);v.readyState=v.DONE;P()};k.readAsDataURL(g);v.readyState=v.INIT}else fb||(fb=(ca.URL||ca.webkitURL||ca).createObjectURL(g)),L?ca.location.href=fb:ca.open(fb,"_blank")||(ca.location.href=
fb),v.readyState=v.DONE,P(),r(fb)})()},g=k.prototype;if("undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob)return function(g,k,r){k=k||g.name||"download";r||(g=Ba(g));return navigator.msSaveOrOpenBlob(g,k)};g.abort=function(){};g.readyState=g.INIT=0;g.WRITING=1;g.DONE=2;g.error=g.onwritestart=g.onprogress=g.onwrite=g.onabort=g.onerror=g.onwriteend=null;return function(g,r,x){return new k(g,r||g.name||"download",x)}}}("undefined"!==typeof self&&self||"undefined"!==typeof window&&window||this.content);
"undefined"!==typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!==typeof define&&null!==define&&null!==define.amd&&define("FileSaver.js",function(){return saveAs});"function"==typeof define&&define.__amd&&(define.amd=define.__amd,delete define.__amd);
