$estr = function() { return js.Boot.__string_rec(this,''); }
Type = function() { }
Type.__name__ = ["Type"];
Type.getClass = function(o) {
$s.push("Type::getClass");
var $spos = $s.length;
if(o == null) {
$s.pop();
return null;
}
if(o.__enum__ != null) {
$s.pop();
return null;
}
{
var $tmp = o.__class__;
$s.pop();
return $tmp;
}
$s.pop();
}
Type.getEnum = function(o) {
$s.push("Type::getEnum");
var $spos = $s.length;
if(o == null) {
$s.pop();
return null;
}
{
var $tmp = o.__enum__;
$s.pop();
return $tmp;
}
$s.pop();
}
Type.getSuperClass = function(c) {
$s.push("Type::getSuperClass");
var $spos = $s.length;
{
var $tmp = c.__super__;
$s.pop();
return $tmp;
}
$s.pop();
}
Type.getClassName = function(c) {
$s.push("Type::getClassName");
var $spos = $s.length;
if(c == null) {
$s.pop();
return null;
}
var a = c.__name__;
{
var $tmp = a.join(".");
$s.pop();
return $tmp;
}
$s.pop();
}
Type.getEnumName = function(e) {
$s.push("Type::getEnumName");
var $spos = $s.length;
var a = e.__ename__;
{
var $tmp = a.join(".");
$s.pop();
return $tmp;
}
$s.pop();
}
Type.resolveClass = function(name) {
$s.push("Type::resolveClass");
var $spos = $s.length;
var cl;
try {
cl = eval(name);
}
catch( $e0 ) {
{
var e = $e0;
{
$e = [];
while($s.length >= $spos) $e.unshift($s.pop());
$s.push($e[0]);
cl = null;
}
}
}
if(cl == null || cl.__name__ == null) {
$s.pop();
return null;
}
{
$s.pop();
return cl;
}
$s.pop();
}
Type.resolveEnum = function(name) {
$s.push("Type::resolveEnum");
var $spos = $s.length;
var e;
try {
e = eval(name);
}
catch( $e1 ) {
{
var err = $e1;
{
$e = [];
while($s.length >= $spos) $e.unshift($s.pop());
$s.push($e[0]);
e = null;
}
}
}
if(e == null || e.__ename__ == null) {
$s.pop();
return null;
}
{
$s.pop();
return e;
}
$s.pop();
}
Type.createInstance = function(cl,args) {
$s.push("Type::createInstance");
var $spos = $s.length;
if(args.length <= 3) {
var $tmp = new cl(args[0],args[1],args[2]);
$s.pop();
return $tmp;
}
if(args.length > 8) throw "Too many arguments";
{
var $tmp = new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7]);
$s.pop();
return $tmp;
}
$s.pop();
}
Type.createEmptyInstance = function(cl) {
$s.push("Type::createEmptyInstance");
var $spos = $s.length;
{
var $tmp = new cl($_);
$s.pop();
return $tmp;
}
$s.pop();
}
Type.createEnum = function(e,constr,params) {
$s.push("Type::createEnum");
var $spos = $s.length;
var f = Reflect.field(e,constr);
if(f == null) throw "No such constructor " + constr;
if(Reflect.isFunction(f)) {
if(params == null) throw "Constructor " + constr + " need parameters";
{
var $tmp = f.apply(e,params);
$s.pop();
return $tmp;
}
}
if(params != null && params.length != 0) throw "Constructor " + constr + " does not need parameters";
{
$s.pop();
return f;
}
$s.pop();
}
Type.createEnumIndex = function(e,index,params) {
$s.push("Type::createEnumIndex");
var $spos = $s.length;
var c = Type.getEnumConstructs(e)[index];
if(c == null) throw index + " is not a valid enum constructor index";
{
var $tmp = Type.createEnum(e,c,params);
$s.pop();
return $tmp;
}
$s.pop();
}
Type.getInstanceFields = function(c) {
$s.push("Type::getInstanceFields");
var $spos = $s.length;
var a = Reflect.fields(c.prototype);
a.remove("__class__");
{
$s.pop();
return a;
}
$s.pop();
}
Type.getClassFields = function(c) {
$s.push("Type::getClassFields");
var $spos = $s.length;
var a = Reflect.fields(c);
a.remove("__name__");
a.remove("__interfaces__");
a.remove("__super__");
a.remove("prototype");
{
$s.pop();
return a;
}
$s.pop();
}
Type.getEnumConstructs = function(e) {
$s.push("Type::getEnumConstructs");
var $spos = $s.length;
{
var $tmp = e.__constructs__;
$s.pop();
return $tmp;
}
$s.pop();
}
Type["typeof"] = function(v) {
$s.push("Type::typeof");
var $spos = $s.length;
switch(typeof(v)) {
case "boolean":{
{
var $tmp = ValueType.TBool;
$s.pop();
return $tmp;
}
}break;
case "string":{
{
var $tmp = ValueType.TClass(String);
$s.pop();
return $tmp;
}
}break;
case "number":{
if(Math.ceil(v) == v % 2147483648.0) {
var $tmp = ValueType.TInt;
$s.pop();
return $tmp;
}
{
var $tmp = ValueType.TFloat;
$s.pop();
return $tmp;
}
}break;
case "object":{
if(v == null) {
var $tmp = ValueType.TNull;
$s.pop();
return $tmp;
}
var e = v.__enum__;
if(e != null) {
var $tmp = ValueType.TEnum(e);
$s.pop();
return $tmp;
}
var c = v.__class__;
if(c != null) {
var $tmp = ValueType.TClass(c);
$s.pop();
return $tmp;
}
{
var $tmp = ValueType.TObject;
$s.pop();
return $tmp;
}
}break;
case "function":{
if(v.__name__ != null) {
var $tmp = ValueType.TObject;
$s.pop();
return $tmp;
}
{
var $tmp = ValueType.TFunction;
$s.pop();
return $tmp;
}
}break;
case "undefined":{
{
var $tmp = ValueType.TNull;
$s.pop();
return $tmp;
}
}break;
default:{
{
var $tmp = ValueType.TUnknown;
$s.pop();
return $tmp;
}
}break;
}
$s.pop();
}
Type.enumEq = function(a,b) {
$s.push("Type::enumEq");
var $spos = $s.length;
if(a == b) {
$s.pop();
return true;
}
try {
if(a[0] != b[0]) {
$s.pop();
return false;
}
{
var _g1 = 2, _g = a.length;
while(_g1 < _g) {
var i = _g1++;
if(!Type.enumEq(a[i],b[i])) {
$s.pop();
return false;
}
}
}
var e = a.__enum__;
if(e != b.__enum__ || e == null) {
$s.pop();
return false;
}
}
catch( $e2 ) {
{
var e = $e2;
{
$e = [];
while($s.length >= $spos) $e.unshift($s.pop());
$s.push($e[0]);
{
$s.pop();
return false;
}
}
}
}
{
$s.pop();
return true;
}
$s.pop();
}
Type.enumConstructor = function(e) {
$s.push("Type::enumConstructor");
var $spos = $s.length;
{
var $tmp = e[0];
$s.pop();
return $tmp;
}
$s.pop();
}
Type.enumParameters = function(e) {
$s.push("Type::enumParameters");
var $spos = $s.length;
{
var $tmp = e.slice(2);
$s.pop();
return $tmp;
}
$s.pop();
}
Type.enumIndex = function(e) {
$s.push("Type::enumIndex");
var $spos = $s.length;
{
var $tmp = e[1];
$s.pop();
return $tmp;
}
$s.pop();
}
Type.prototype.__class__ = Type;
haxe = {}
haxe.Unserializer = function(buf) { if( buf === $_ ) return; {
$s.push("haxe.Unserializer::new");
var $spos = $s.length;
this.buf = buf;
this.length = buf.length;
this.pos = 0;
this.scache = new Array();
this.cache = new Array();
this.setResolver(haxe.Unserializer.DEFAULT_RESOLVER);
$s.pop();
}}
haxe.Unserializer.__name__ = ["haxe","Unserializer"];
haxe.Unserializer.initCodes = function() {
$s.push("haxe.Unserializer::initCodes");
var $spos = $s.length;
var codes = new Array();
{
var _g1 = 0, _g = haxe.Unserializer.BASE64.length;
while(_g1 < _g) {
var i = _g1++;
codes[haxe.Unserializer.BASE64.cca(i)] = i;
}
}
{
$s.pop();
return codes;
}
$s.pop();
}
haxe.Unserializer.run = function(v) {
$s.push("haxe.Unserializer::run");
var $spos = $s.length;
{
var $tmp = new haxe.Unserializer(v).unserialize();
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.Unserializer.prototype.buf = null;
haxe.Unserializer.prototype.cache = null;
haxe.Unserializer.prototype.get = function(p) {
$s.push("haxe.Unserializer::get");
var $spos = $s.length;
{
var $tmp = this.buf.cca(p);
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.Unserializer.prototype.length = null;
haxe.Unserializer.prototype.pos = null;
haxe.Unserializer.prototype.readDigits = function() {
$s.push("haxe.Unserializer::readDigits");
var $spos = $s.length;
var k = 0;
var s = false;
var fpos = this.pos;
while(true) {
var c = this.buf.cca(this.pos);
if(Math.isNaN(c)) break;
if(c == 45) {
if(this.pos != fpos) break;
s = true;
this.pos++;
continue;
}
c -= 48;
if(c < 0 || c > 9) break;
k = k * 10 + c;
this.pos++;
}
if(s) k *= -1;
{
$s.pop();
return k;
}
$s.pop();
}
haxe.Unserializer.prototype.resolver = null;
haxe.Unserializer.prototype.scache = null;
haxe.Unserializer.prototype.setResolver = function(r) {
$s.push("haxe.Unserializer::setResolver");
var $spos = $s.length;
if(r == null) this.resolver = { resolveClass : function(_) {
$s.push("haxe.Unserializer::setResolver@79");
var $spos = $s.length;
{
$s.pop();
return null;
}
$s.pop();
}, resolveEnum : function(_) {
$s.push("haxe.Unserializer::setResolver@80");
var $spos = $s.length;
{
$s.pop();
return null;
}
$s.pop();
}}
else this.resolver = r;
$s.pop();
}
haxe.Unserializer.prototype.unserialize = function() {
$s.push("haxe.Unserializer::unserialize");
var $spos = $s.length;
switch(this.buf.cca(this.pos++)) {
case 110:{
{
$s.pop();
return null;
}
}break;
case 116:{
{
$s.pop();
return true;
}
}break;
case 102:{
{
$s.pop();
return false;
}
}break;
case 122:{
{
$s.pop();
return 0;
}
}break;
case 105:{
{
var $tmp = this.readDigits();
$s.pop();
return $tmp;
}
}break;
case 100:{
var p1 = this.pos;
while(true) {
var c = this.buf.cca(this.pos);
if((c >= 43 && c < 58) || c == 101 || c == 69) this.pos++;
else break;
}
{
var $tmp = Std.parseFloat(this.buf.substr(p1,this.pos - p1));
$s.pop();
return $tmp;
}
}break;
case 121:{
var len = this.readDigits();
if(this.buf.charAt(this.pos++) != ":" || this.length - this.pos < len) throw "Invalid string length";
var s = this.buf.substr(this.pos,len);
this.pos += len;
s = StringTools.urlDecode(s);
this.scache.push(s);
{
$s.pop();
return s;
}
}break;
case 107:{
{
var $tmp = Math.NaN;
$s.pop();
return $tmp;
}
}break;
case 109:{
{
var $tmp = Math.NEGATIVE_INFINITY;
$s.pop();
return $tmp;
}
}break;
case 112:{
{
var $tmp = Math.POSITIVE_INFINITY;
$s.pop();
return $tmp;
}
}break;
case 97:{
var buf = this.buf;
var a = new Array();
this.cache.push(a);
while(true) {
var c = this.buf.cca(this.pos);
if(c == 104) {
this.pos++;
break;
}
if(c == 117) {
this.pos++;
var n = this.readDigits();
a[a.length + n - 1] = null;
}
else a.push(this.unserialize());
}
{
$s.pop();
return a;
}
}break;
case 111:{
var o = { }
this.cache.push(o);
this.unserializeObject(o);
{
$s.pop();
return o;
}
}break;
case 114:{
var n = this.readDigits();
if(n < 0 || n >= this.cache.length) throw "Invalid reference";
{
var $tmp = this.cache[n];
$s.pop();
return $tmp;
}
}break;
case 82:{
var n = this.readDigits();
if(n < 0 || n >= this.scache.length) throw "Invalid string reference";
{
var $tmp = this.scache[n];
$s.pop();
return $tmp;
}
}break;
case 120:{
throw this.unserialize();
}break;
case 99:{
var name = this.unserialize();
var cl = this.resolver.resolveClass(name);
if(cl == null) throw "Class not found " + name;
var o = Type.createEmptyInstance(cl);
this.cache.push(o);
this.unserializeObject(o);
{
$s.pop();
return o;
}
}break;
case 119:{
var name = this.unserialize();
var edecl = this.resolver.resolveEnum(name);
if(edecl == null) throw "Enum not found " + name;
{
var $tmp = this.unserializeEnum(edecl,this.unserialize());
$s.pop();
return $tmp;
}
}break;
case 106:{
var name = this.unserialize();
var edecl = this.resolver.resolveEnum(name);
if(edecl == null) throw "Enum not found " + name;
this.pos++;
var index = this.readDigits();
var tag = Type.getEnumConstructs(edecl)[index];
if(tag == null) throw "Unknown enum index " + name + "@" + index;
{
var $tmp = this.unserializeEnum(edecl,tag);
$s.pop();
return $tmp;
}
}break;
case 108:{
var l = new List();
this.cache.push(l);
var buf = this.buf;
while(this.buf.cca(this.pos) != 104) l.add(this.unserialize());
this.pos++;
{
$s.pop();
return l;
}
}break;
case 98:{
var h = new Hash();
this.cache.push(h);
var buf = this.buf;
while(this.buf.cca(this.pos) != 104) {
var s = this.unserialize();
h.set(s,this.unserialize());
}
this.pos++;
{
$s.pop();
return h;
}
}break;
case 113:{
var h = new IntHash();
this.cache.push(h);
var buf = this.buf;
var c = this.buf.cca(this.pos++);
while(c == 58) {
var i = this.readDigits();
h.set(i,this.unserialize());
c = this.buf.cca(this.pos++);
}
if(c != 104) throw "Invalid IntHash format";
{
$s.pop();
return h;
}
}break;
case 118:{
var d = Date.fromString(this.buf.substr(this.pos,19));
this.cache.push(d);
this.pos += 19;
{
$s.pop();
return d;
}
}break;
case 115:{
var len = this.readDigits();
var buf = this.buf;
if(buf.charAt(this.pos++) != ":" || this.length - this.pos < len) throw "Invalid bytes length";
var codes = haxe.Unserializer.CODES;
if(codes == null) {
codes = haxe.Unserializer.initCodes();
haxe.Unserializer.CODES = codes;
}
var i = this.pos;
var rest = len & 3;
var size = (len >> 2) * 3 + (((rest >= 2)?rest - 1:0));
var max = i + (len - rest);
var bytes = haxe.io.Bytes.alloc(size);
var bpos = 0;
while(i < max) {
var c1 = codes[buf.cca(i++)];
var c2 = codes[buf.cca(i++)];
bytes.b[bpos++] = (((c1 << 2) | (c2 >> 4)) & 255);
var c3 = codes[buf.cca(i++)];
bytes.b[bpos++] = (((c2 << 4) | (c3 >> 2)) & 255);
var c4 = codes[buf.cca(i++)];
bytes.b[bpos++] = (((c3 << 6) | c4) & 255);
}
if(rest >= 2) {
var c1 = codes[buf.cca(i++)];
var c2 = codes[buf.cca(i++)];
bytes.b[bpos++] = (((c1 << 2) | (c2 >> 4)) & 255);
if(rest == 3) {
var c3 = codes[buf.cca(i++)];
bytes.b[bpos++] = (((c2 << 4) | (c3 >> 2)) & 255);
}
}
this.pos += len;
this.cache.push(bytes);
{
$s.pop();
return bytes;
}
}break;
default:{
null;
}break;
}
this.pos--;
throw ("Invalid char " + this.buf.charAt(this.pos) + " at position " + this.pos);
$s.pop();
}
haxe.Unserializer.prototype.unserializeEnum = function(edecl,tag) {
$s.push("haxe.Unserializer::unserializeEnum");
var $spos = $s.length;
var constr = Reflect.field(edecl,tag);
if(constr == null) throw "Unknown enum tag " + Type.getEnumName(edecl) + "." + tag;
if(this.buf.cca(this.pos++) != 58) throw "Invalid enum format";
var nargs = this.readDigits();
if(nargs == 0) {
this.cache.push(constr);
{
$s.pop();
return constr;
}
}
var args = new Array();
while(nargs > 0) {
args.push(this.unserialize());
nargs -= 1;
}
var e = constr.apply(edecl,args);
this.cache.push(e);
{
$s.pop();
return e;
}
$s.pop();
}
haxe.Unserializer.prototype.unserializeObject = function(o) {
$s.push("haxe.Unserializer::unserializeObject");
var $spos = $s.length;
while(true) {
if(this.pos >= this.length) throw "Invalid object";
if(this.buf.cca(this.pos) == 103) break;
var k = this.unserialize();
if(!Std["is"](k,String)) throw "Invalid object key";
var v = this.unserialize();
o[k] = v;
}
this.pos++;
$s.pop();
}
haxe.Unserializer.prototype.__class__ = haxe.Unserializer;
js = {}
js.Boot = function() { }
js.Boot.__name__ = ["js","Boot"];
js.Boot.__unhtml = function(s) {
$s.push("js.Boot::__unhtml");
var $spos = $s.length;
{
var $tmp = s.split("&").join("&").split("<").join("<").split(">").join(">");
$s.pop();
return $tmp;
}
$s.pop();
}
js.Boot.__trace = function(v,i) {
$s.push("js.Boot::__trace");
var $spos = $s.length;
var msg = (i != null?i.fileName + ":" + i.lineNumber + ": ":"");
msg += js.Boot.__unhtml(js.Boot.__string_rec(v,"")) + "
";
var d = document.getElementById("haxe:trace");
if(d == null) alert("No haxe:trace element defined\n" + msg);
else d.innerHTML += msg;
$s.pop();
}
js.Boot.__clear_trace = function() {
$s.push("js.Boot::__clear_trace");
var $spos = $s.length;
var d = document.getElementById("haxe:trace");
if(d != null) d.innerHTML = "";
else null;
$s.pop();
}
js.Boot.__closure = function(o,f) {
$s.push("js.Boot::__closure");
var $spos = $s.length;
var m = o[f];
if(m == null) {
$s.pop();
return null;
}
var f1 = function() {
$s.push("js.Boot::__closure@67");
var $spos = $s.length;
{
var $tmp = m.apply(o,arguments);
$s.pop();
return $tmp;
}
$s.pop();
}
f1.scope = o;
f1.method = m;
{
$s.pop();
return f1;
}
$s.pop();
}
js.Boot.__string_rec = function(o,s) {
$s.push("js.Boot::__string_rec");
var $spos = $s.length;
if(o == null) {
$s.pop();
return "null";
}
if(s.length >= 5) {
$s.pop();
return "<...>";
}
var t = typeof(o);
if(t == "function" && (o.__name__ != null || o.__ename__ != null)) t = "object";
switch(t) {
case "object":{
if(o instanceof Array) {
if(o.__enum__ != null) {
if(o.length == 2) {
var $tmp = o[0];
$s.pop();
return $tmp;
}
var str = o[0] + "(";
s += "\t";
{
var _g1 = 2, _g = o.length;
while(_g1 < _g) {
var i = _g1++;
if(i != 2) str += "," + js.Boot.__string_rec(o[i],s);
else str += js.Boot.__string_rec(o[i],s);
}
}
{
var $tmp = str + ")";
$s.pop();
return $tmp;
}
}
var l = o.length;
var i;
var str = "[";
s += "\t";
{
var _g = 0;
while(_g < l) {
var i1 = _g++;
str += ((i1 > 0?",":"")) + js.Boot.__string_rec(o[i1],s);
}
}
str += "]";
{
$s.pop();
return str;
}
}
var tostr;
try {
tostr = o.toString;
}
catch( $e3 ) {
{
var e = $e3;
{
$e = [];
while($s.length >= $spos) $e.unshift($s.pop());
$s.push($e[0]);
{
$s.pop();
return "???";
}
}
}
}
if(tostr != null && tostr != Object.toString) {
var s2 = o.toString();
if(s2 != "[object Object]") {
$s.pop();
return s2;
}
}
var k = null;
var str = "{\n";
s += "\t";
var hasp = (o.hasOwnProperty != null);
for( var k in o ) { ;
if(hasp && !o.hasOwnProperty(k)) continue;
if(k == "prototype" || k == "__class__" || k == "__super__" || k == "__interfaces__") continue;
if(str.length != 2) str += ", \n";
str += s + k + " : " + js.Boot.__string_rec(o[k],s);
}
s = s.substring(1);
str += "\n" + s + "}";
{
$s.pop();
return str;
}
}break;
case "function":{
{
$s.pop();
return "";
}
}break;
case "string":{
{
$s.pop();
return o;
}
}break;
default:{
{
var $tmp = String(o);
$s.pop();
return $tmp;
}
}break;
}
$s.pop();
}
js.Boot.__interfLoop = function(cc,cl) {
$s.push("js.Boot::__interfLoop");
var $spos = $s.length;
if(cc == null) {
$s.pop();
return false;
}
if(cc == cl) {
$s.pop();
return true;
}
var intf = cc.__interfaces__;
if(intf != null) {
var _g1 = 0, _g = intf.length;
while(_g1 < _g) {
var i = _g1++;
var i1 = intf[i];
if(i1 == cl || js.Boot.__interfLoop(i1,cl)) {
$s.pop();
return true;
}
}
}
{
var $tmp = js.Boot.__interfLoop(cc.__super__,cl);
$s.pop();
return $tmp;
}
$s.pop();
}
js.Boot.__instanceof = function(o,cl) {
$s.push("js.Boot::__instanceof");
var $spos = $s.length;
try {
if(o instanceof cl) {
if(cl == Array) {
var $tmp = (o.__enum__ == null);
$s.pop();
return $tmp;
}
{
$s.pop();
return true;
}
}
if(js.Boot.__interfLoop(o.__class__,cl)) {
$s.pop();
return true;
}
}
catch( $e4 ) {
{
var e = $e4;
{
$e = [];
while($s.length >= $spos) $e.unshift($s.pop());
$s.push($e[0]);
if(cl == null) {
$s.pop();
return false;
}
}
}
}
switch(cl) {
case Int:{
{
var $tmp = Math.ceil(o%2147483648.0) === o;
$s.pop();
return $tmp;
}
}break;
case Float:{
{
var $tmp = typeof(o) == "number";
$s.pop();
return $tmp;
}
}break;
case Bool:{
{
var $tmp = o === true || o === false;
$s.pop();
return $tmp;
}
}break;
case String:{
{
var $tmp = typeof(o) == "string";
$s.pop();
return $tmp;
}
}break;
case Dynamic:{
{
$s.pop();
return true;
}
}break;
default:{
if(o == null) {
$s.pop();
return false;
}
{
var $tmp = o.__enum__ == cl || (cl == Class && o.__name__ != null) || (cl == Enum && o.__ename__ != null);
$s.pop();
return $tmp;
}
}break;
}
$s.pop();
}
js.Boot.__init = function() {
$s.push("js.Boot::__init");
var $spos = $s.length;
js.Lib.isIE = (document.all != null && window.opera == null);
js.Lib.isOpera = (window.opera != null);
Array.prototype.copy = Array.prototype.slice;
Array.prototype.insert = function(i,x) {
$s.push("js.Boot::__init@199");
var $spos = $s.length;
this.splice(i,0,x);
$s.pop();
}
Array.prototype.remove = (Array.prototype.indexOf?function(obj) {
$s.push("js.Boot::__init@202");
var $spos = $s.length;
var idx = this.indexOf(obj);
if(idx == -1) {
$s.pop();
return false;
}
this.splice(idx,1);
{
$s.pop();
return true;
}
$s.pop();
}:function(obj) {
$s.push("js.Boot::__init@207");
var $spos = $s.length;
var i = 0;
var l = this.length;
while(i < l) {
if(this[i] == obj) {
this.splice(i,1);
{
$s.pop();
return true;
}
}
i++;
}
{
$s.pop();
return false;
}
$s.pop();
});
Array.prototype.iterator = function() {
$s.push("js.Boot::__init@219");
var $spos = $s.length;
{
var $tmp = { cur : 0, arr : this, hasNext : function() {
$s.push("js.Boot::__init@219@223");
var $spos = $s.length;
{
var $tmp = this.cur < this.arr.length;
$s.pop();
return $tmp;
}
$s.pop();
}, next : function() {
$s.push("js.Boot::__init@219@226");
var $spos = $s.length;
{
var $tmp = this.arr[this.cur++];
$s.pop();
return $tmp;
}
$s.pop();
}}
$s.pop();
return $tmp;
}
$s.pop();
}
var cca = String.prototype.charCodeAt;
String.prototype.cca = cca;
String.prototype.charCodeAt = function(i) {
$s.push("js.Boot::__init@233");
var $spos = $s.length;
var x = cca.call(this,i);
if(isNaN(x)) {
$s.pop();
return null;
}
{
$s.pop();
return x;
}
$s.pop();
}
var oldsub = String.prototype.substr;
String.prototype.substr = function(pos,len) {
$s.push("js.Boot::__init@240");
var $spos = $s.length;
if(pos != null && pos != 0 && len != null && len < 0) {
$s.pop();
return "";
}
if(len == null) len = this.length;
if(pos < 0) {
pos = this.length + pos;
if(pos < 0) pos = 0;
}
else if(len < 0) {
len = this.length + len - pos;
}
{
var $tmp = oldsub.apply(this,[pos,len]);
$s.pop();
return $tmp;
}
$s.pop();
}
$closure = js.Boot.__closure;
$s.pop();
}
js.Boot.prototype.__class__ = js.Boot;
haxe.io = {}
haxe.io.Bytes = function(length,b) { if( length === $_ ) return; {
$s.push("haxe.io.Bytes::new");
var $spos = $s.length;
this.length = length;
this.b = b;
$s.pop();
}}
haxe.io.Bytes.__name__ = ["haxe","io","Bytes"];
haxe.io.Bytes.alloc = function(length) {
$s.push("haxe.io.Bytes::alloc");
var $spos = $s.length;
var a = new Array();
{
var _g = 0;
while(_g < length) {
var i = _g++;
a.push(0);
}
}
{
var $tmp = new haxe.io.Bytes(length,a);
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.io.Bytes.ofString = function(s) {
$s.push("haxe.io.Bytes::ofString");
var $spos = $s.length;
var a = new Array();
{
var _g1 = 0, _g = s.length;
while(_g1 < _g) {
var i = _g1++;
var c = s["cca"](i);
if(c <= 127) a.push(c);
else if(c <= 2047) {
a.push(192 | (c >> 6));
a.push(128 | (c & 63));
}
else if(c <= 65535) {
a.push(224 | (c >> 12));
a.push(128 | ((c >> 6) & 63));
a.push(128 | (c & 63));
}
else {
a.push(240 | (c >> 18));
a.push(128 | ((c >> 12) & 63));
a.push(128 | ((c >> 6) & 63));
a.push(128 | (c & 63));
}
}
}
{
var $tmp = new haxe.io.Bytes(a.length,a);
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.io.Bytes.ofData = function(b) {
$s.push("haxe.io.Bytes::ofData");
var $spos = $s.length;
{
var $tmp = new haxe.io.Bytes(b.length,b);
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.io.Bytes.prototype.b = null;
haxe.io.Bytes.prototype.blit = function(pos,src,srcpos,len) {
$s.push("haxe.io.Bytes::blit");
var $spos = $s.length;
if(pos < 0 || srcpos < 0 || len < 0 || pos + len > this.length || srcpos + len > src.length) throw haxe.io.Error.OutsideBounds;
var b1 = this.b;
var b2 = src.b;
if(b1 == b2 && pos > srcpos) {
var i = len;
while(i > 0) {
i--;
b1[i + pos] = b2[i + srcpos];
}
{
$s.pop();
return;
}
}
{
var _g = 0;
while(_g < len) {
var i = _g++;
b1[i + pos] = b2[i + srcpos];
}
}
$s.pop();
}
haxe.io.Bytes.prototype.compare = function(other) {
$s.push("haxe.io.Bytes::compare");
var $spos = $s.length;
var b1 = this.b;
var b2 = other.b;
var len = ((this.length < other.length)?this.length:other.length);
{
var _g = 0;
while(_g < len) {
var i = _g++;
if(b1[i] != b2[i]) {
var $tmp = b1[i] - b2[i];
$s.pop();
return $tmp;
}
}
}
{
var $tmp = this.length - other.length;
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.io.Bytes.prototype.get = function(pos) {
$s.push("haxe.io.Bytes::get");
var $spos = $s.length;
{
var $tmp = this.b[pos];
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.io.Bytes.prototype.getData = function() {
$s.push("haxe.io.Bytes::getData");
var $spos = $s.length;
{
var $tmp = this.b;
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.io.Bytes.prototype.length = null;
haxe.io.Bytes.prototype.readString = function(pos,len) {
$s.push("haxe.io.Bytes::readString");
var $spos = $s.length;
if(pos < 0 || len < 0 || pos + len > this.length) throw haxe.io.Error.OutsideBounds;
var s = "";
var b = this.b;
var fcc = $closure(String,"fromCharCode");
var i = pos;
var max = pos + len;
while(i < max) {
var c = b[i++];
if(c < 128) {
if(c == 0) break;
s += fcc(c);
}
else if(c < 224) s += fcc(((c & 63) << 6) | (b[i++] & 127));
else if(c < 240) {
var c2 = b[i++];
s += fcc((((c & 31) << 12) | ((c2 & 127) << 6)) | (b[i++] & 127));
}
else {
var c2 = b[i++];
var c3 = b[i++];
s += fcc(((((c & 15) << 18) | ((c2 & 127) << 12)) | ((c3 << 6) & 127)) | (b[i++] & 127));
}
}
{
$s.pop();
return s;
}
$s.pop();
}
haxe.io.Bytes.prototype.set = function(pos,v) {
$s.push("haxe.io.Bytes::set");
var $spos = $s.length;
this.b[pos] = (v & 255);
$s.pop();
}
haxe.io.Bytes.prototype.sub = function(pos,len) {
$s.push("haxe.io.Bytes::sub");
var $spos = $s.length;
if(pos < 0 || len < 0 || pos + len > this.length) throw haxe.io.Error.OutsideBounds;
{
var $tmp = new haxe.io.Bytes(len,this.b.slice(pos,pos + len));
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.io.Bytes.prototype.toString = function() {
$s.push("haxe.io.Bytes::toString");
var $spos = $s.length;
{
var $tmp = this.readString(0,this.length);
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.io.Bytes.prototype.__class__ = haxe.io.Bytes;
js.Lib = function() { }
js.Lib.__name__ = ["js","Lib"];
js.Lib.isIE = null;
js.Lib.isOpera = null;
js.Lib.document = null;
js.Lib.window = null;
js.Lib.alert = function(v) {
$s.push("js.Lib::alert");
var $spos = $s.length;
alert(js.Boot.__string_rec(v,""));
$s.pop();
}
js.Lib.eval = function(code) {
$s.push("js.Lib::eval");
var $spos = $s.length;
{
var $tmp = eval(code);
$s.pop();
return $tmp;
}
$s.pop();
}
js.Lib.setErrorHandler = function(f) {
$s.push("js.Lib::setErrorHandler");
var $spos = $s.length;
js.Lib.onerror = f;
$s.pop();
}
js.Lib.prototype.__class__ = js.Lib;
ValueType = { __ename__ : ["ValueType"], __constructs__ : ["TNull","TInt","TFloat","TBool","TObject","TFunction","TClass","TEnum","TUnknown"] }
ValueType.TBool = ["TBool",3];
ValueType.TBool.toString = $estr;
ValueType.TBool.__enum__ = ValueType;
ValueType.TClass = function(c) { var $x = ["TClass",6,c]; $x.__enum__ = ValueType; $x.toString = $estr; return $x; }
ValueType.TEnum = function(e) { var $x = ["TEnum",7,e]; $x.__enum__ = ValueType; $x.toString = $estr; return $x; }
ValueType.TFloat = ["TFloat",2];
ValueType.TFloat.toString = $estr;
ValueType.TFloat.__enum__ = ValueType;
ValueType.TFunction = ["TFunction",5];
ValueType.TFunction.toString = $estr;
ValueType.TFunction.__enum__ = ValueType;
ValueType.TInt = ["TInt",1];
ValueType.TInt.toString = $estr;
ValueType.TInt.__enum__ = ValueType;
ValueType.TNull = ["TNull",0];
ValueType.TNull.toString = $estr;
ValueType.TNull.__enum__ = ValueType;
ValueType.TObject = ["TObject",4];
ValueType.TObject.toString = $estr;
ValueType.TObject.__enum__ = ValueType;
ValueType.TUnknown = ["TUnknown",8];
ValueType.TUnknown.toString = $estr;
ValueType.TUnknown.__enum__ = ValueType;
haxe.remoting = {}
haxe.remoting.Connection = function() { }
haxe.remoting.Connection.__name__ = ["haxe","remoting","Connection"];
haxe.remoting.Connection.prototype.call = null;
haxe.remoting.Connection.prototype.resolve = null;
haxe.remoting.Connection.prototype.__class__ = haxe.remoting.Connection;
Hash = function(p) { if( p === $_ ) return; {
$s.push("Hash::new");
var $spos = $s.length;
this.h = {}
if(this.h.__proto__ != null) {
this.h.__proto__ = null;
delete(this.h.__proto__);
}
else null;
$s.pop();
}}
Hash.__name__ = ["Hash"];
Hash.prototype.exists = function(key) {
$s.push("Hash::exists");
var $spos = $s.length;
try {
key = "$" + key;
{
var $tmp = this.hasOwnProperty.call(this.h,key);
$s.pop();
return $tmp;
}
}
catch( $e5 ) {
{
var e = $e5;
{
$e = [];
while($s.length >= $spos) $e.unshift($s.pop());
$s.push($e[0]);
for(var i in this.h)
if( i == key ) return true;
;
{
$s.pop();
return false;
}
}
}
}
$s.pop();
}
Hash.prototype.get = function(key) {
$s.push("Hash::get");
var $spos = $s.length;
{
var $tmp = this.h["$" + key];
$s.pop();
return $tmp;
}
$s.pop();
}
Hash.prototype.h = null;
Hash.prototype.iterator = function() {
$s.push("Hash::iterator");
var $spos = $s.length;
{
var $tmp = { ref : this.h, it : this.keys(), hasNext : function() {
$s.push("Hash::iterator@214");
var $spos = $s.length;
{
var $tmp = this.it.hasNext();
$s.pop();
return $tmp;
}
$s.pop();
}, next : function() {
$s.push("Hash::iterator@215");
var $spos = $s.length;
var i = this.it.next();
{
var $tmp = this.ref["$" + i];
$s.pop();
return $tmp;
}
$s.pop();
}}
$s.pop();
return $tmp;
}
$s.pop();
}
Hash.prototype.keys = function() {
$s.push("Hash::keys");
var $spos = $s.length;
var a = new Array();
for(var i in this.h)
a.push(i.substr(1));
;
{
var $tmp = a.iterator();
$s.pop();
return $tmp;
}
$s.pop();
}
Hash.prototype.remove = function(key) {
$s.push("Hash::remove");
var $spos = $s.length;
if(!this.exists(key)) {
$s.pop();
return false;
}
delete(this.h["$" + key]);
{
$s.pop();
return true;
}
$s.pop();
}
Hash.prototype.set = function(key,value) {
$s.push("Hash::set");
var $spos = $s.length;
this.h["$" + key] = value;
$s.pop();
}
Hash.prototype.toString = function() {
$s.push("Hash::toString");
var $spos = $s.length;
var s = new StringBuf();
s.b[s.b.length] = "{";
var it = this.keys();
{ var $it6 = it;
while( $it6.hasNext() ) { var i = $it6.next();
{
s.b[s.b.length] = i;
s.b[s.b.length] = " => ";
s.b[s.b.length] = Std.string(this.get(i));
if(it.hasNext()) s.b[s.b.length] = ", ";
}
}}
s.b[s.b.length] = "}";
{
var $tmp = s.b.join("");
$s.pop();
return $tmp;
}
$s.pop();
}
Hash.prototype.__class__ = Hash;
haxe.remoting.ExternalConnection = function(data,path) { if( data === $_ ) return; {
$s.push("haxe.remoting.ExternalConnection::new");
var $spos = $s.length;
this.__data = data;
this.__path = path;
$s.pop();
}}
haxe.remoting.ExternalConnection.__name__ = ["haxe","remoting","ExternalConnection"];
haxe.remoting.ExternalConnection.escapeString = function(s) {
$s.push("haxe.remoting.ExternalConnection::escapeString");
var $spos = $s.length;
{
$s.pop();
return s;
}
$s.pop();
}
haxe.remoting.ExternalConnection.doCall = function(name,path,params) {
$s.push("haxe.remoting.ExternalConnection::doCall");
var $spos = $s.length;
try {
var cnx = haxe.remoting.ExternalConnection.connections.get(name);
if(cnx == null) throw "Unknown connection : " + name;
if(cnx.__data.ctx == null) throw "No context shared for the connection " + name;
var params1 = new haxe.Unserializer(params).unserialize();
var ret = cnx.__data.ctx.call(path.split("."),params1);
var s = new haxe.Serializer();
s.serialize(ret);
{
var $tmp = s.toString() + "#";
$s.pop();
return $tmp;
}
}
catch( $e7 ) {
{
var e = $e7;
{
$e = [];
while($s.length >= $spos) $e.unshift($s.pop());
$s.push($e[0]);
var s = new haxe.Serializer();
s.serializeException(e);
{
var $tmp = s.toString();
$s.pop();
return $tmp;
}
}
}
}
$s.pop();
}
haxe.remoting.ExternalConnection.flashConnect = function(name,flashObjectID,ctx) {
$s.push("haxe.remoting.ExternalConnection::flashConnect");
var $spos = $s.length;
var cnx = new haxe.remoting.ExternalConnection({ ctx : ctx, name : name, flash : flashObjectID},[]);
haxe.remoting.ExternalConnection.connections.set(name,cnx);
{
$s.pop();
return cnx;
}
$s.pop();
}
haxe.remoting.ExternalConnection.prototype.__data = null;
haxe.remoting.ExternalConnection.prototype.__path = null;
haxe.remoting.ExternalConnection.prototype.call = function(params) {
$s.push("haxe.remoting.ExternalConnection::call");
var $spos = $s.length;
var s = new haxe.Serializer();
s.serialize(params);
var params1 = s.toString();
var data = null;
var fobj = window.document[this.__data.flash];
if(fobj == null) fobj = window.document.getElementById[this.__data.flash];
if(fobj == null) throw "Could not find flash object '" + this.__data.flash + "'";
try {
data = fobj.externalRemotingCall(this.__data.name,this.__path.join("."),params1);
}
catch( $e8 ) {
{
var e = $e8;
{
$e = [];
while($s.length >= $spos) $e.unshift($s.pop());
$s.push($e[0]);
null;
}
}
}
if(data == null) throw "Call failure : ExternalConnection is not " + "initialized in Flash";
{
var $tmp = new haxe.Unserializer(data).unserialize();
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.remoting.ExternalConnection.prototype.close = function() {
$s.push("haxe.remoting.ExternalConnection::close");
var $spos = $s.length;
haxe.remoting.ExternalConnection.connections.remove(this.__data.name);
$s.pop();
}
haxe.remoting.ExternalConnection.prototype.resolve = function(field) {
$s.push("haxe.remoting.ExternalConnection::resolve");
var $spos = $s.length;
var e = new haxe.remoting.ExternalConnection(this.__data,this.__path.copy());
e.__path.push(field);
{
$s.pop();
return e;
}
$s.pop();
}
haxe.remoting.ExternalConnection.prototype.__class__ = haxe.remoting.ExternalConnection;
haxe.remoting.ExternalConnection.__interfaces__ = [haxe.remoting.Connection];
Std = function() { }
Std.__name__ = ["Std"];
Std["is"] = function(v,t) {
$s.push("Std::is");
var $spos = $s.length;
{
var $tmp = js.Boot.__instanceof(v,t);
$s.pop();
return $tmp;
}
$s.pop();
}
Std.string = function(s) {
$s.push("Std::string");
var $spos = $s.length;
{
var $tmp = js.Boot.__string_rec(s,"");
$s.pop();
return $tmp;
}
$s.pop();
}
Std["int"] = function(x) {
$s.push("Std::int");
var $spos = $s.length;
if(x < 0) {
var $tmp = Math.ceil(x);
$s.pop();
return $tmp;
}
{
var $tmp = Math.floor(x);
$s.pop();
return $tmp;
}
$s.pop();
}
Std.parseInt = function(x) {
$s.push("Std::parseInt");
var $spos = $s.length;
var v = parseInt(x);
if(Math.isNaN(v)) {
$s.pop();
return null;
}
{
$s.pop();
return v;
}
$s.pop();
}
Std.parseFloat = function(x) {
$s.push("Std::parseFloat");
var $spos = $s.length;
{
var $tmp = parseFloat(x);
$s.pop();
return $tmp;
}
$s.pop();
}
Std.random = function(x) {
$s.push("Std::random");
var $spos = $s.length;
{
var $tmp = Math.floor(Math.random() * x);
$s.pop();
return $tmp;
}
$s.pop();
}
Std.prototype.__class__ = Std;
IntHash = function(p) { if( p === $_ ) return; {
$s.push("IntHash::new");
var $spos = $s.length;
this.h = {}
if(this.h.__proto__ != null) {
this.h.__proto__ = null;
delete(this.h.__proto__);
}
else null;
$s.pop();
}}
IntHash.__name__ = ["IntHash"];
IntHash.prototype.exists = function(key) {
$s.push("IntHash::exists");
var $spos = $s.length;
{
var $tmp = this.h[key] != null;
$s.pop();
return $tmp;
}
$s.pop();
}
IntHash.prototype.get = function(key) {
$s.push("IntHash::get");
var $spos = $s.length;
{
var $tmp = this.h[key];
$s.pop();
return $tmp;
}
$s.pop();
}
IntHash.prototype.h = null;
IntHash.prototype.iterator = function() {
$s.push("IntHash::iterator");
var $spos = $s.length;
{
var $tmp = { ref : this.h, it : this.keys(), hasNext : function() {
$s.push("IntHash::iterator@199");
var $spos = $s.length;
{
var $tmp = this.it.hasNext();
$s.pop();
return $tmp;
}
$s.pop();
}, next : function() {
$s.push("IntHash::iterator@200");
var $spos = $s.length;
var i = this.it.next();
{
var $tmp = this.ref[i];
$s.pop();
return $tmp;
}
$s.pop();
}}
$s.pop();
return $tmp;
}
$s.pop();
}
IntHash.prototype.keys = function() {
$s.push("IntHash::keys");
var $spos = $s.length;
var a = new Array();
for( x in this.h )
a.push(x);
;
{
var $tmp = a.iterator();
$s.pop();
return $tmp;
}
$s.pop();
}
IntHash.prototype.remove = function(key) {
$s.push("IntHash::remove");
var $spos = $s.length;
if(this.h[key] == null) {
$s.pop();
return false;
}
delete(this.h[key]);
{
$s.pop();
return true;
}
$s.pop();
}
IntHash.prototype.set = function(key,value) {
$s.push("IntHash::set");
var $spos = $s.length;
this.h[key] = value;
$s.pop();
}
IntHash.prototype.toString = function() {
$s.push("IntHash::toString");
var $spos = $s.length;
var s = new StringBuf();
s.b[s.b.length] = "{";
var it = this.keys();
{ var $it14 = it;
while( $it14.hasNext() ) { var i = $it14.next();
{
s.b[s.b.length] = i;
s.b[s.b.length] = " => ";
s.b[s.b.length] = Std.string(this.get(i));
if(it.hasNext()) s.b[s.b.length] = ", ";
}
}}
s.b[s.b.length] = "}";
{
var $tmp = s.b.join("");
$s.pop();
return $tmp;
}
$s.pop();
}
IntHash.prototype.__class__ = IntHash;
haxe.remoting.Context = function(p) { if( p === $_ ) return; {
$s.push("haxe.remoting.Context::new");
var $spos = $s.length;
this.objects = new Hash();
$s.pop();
}}
haxe.remoting.Context.__name__ = ["haxe","remoting","Context"];
haxe.remoting.Context.share = function(name,obj) {
$s.push("haxe.remoting.Context::share");
var $spos = $s.length;
var ctx = new haxe.remoting.Context();
ctx.addObject(name,obj);
{
$s.pop();
return ctx;
}
$s.pop();
}
haxe.remoting.Context.prototype.addObject = function(name,obj,recursive) {
$s.push("haxe.remoting.Context::addObject");
var $spos = $s.length;
this.objects.set(name,{ obj : obj, rec : recursive});
$s.pop();
}
haxe.remoting.Context.prototype.call = function(path,params) {
$s.push("haxe.remoting.Context::call");
var $spos = $s.length;
if(path.length < 2) throw "Invalid path '" + path.join(".") + "'";
var inf = this.objects.get(path[0]);
if(inf == null) throw "No such object " + path[0];
var o = inf.obj;
var m = Reflect.field(o,path[1]);
if(path.length > 2) {
if(!inf.rec) throw "Can't access " + path.join(".");
{
var _g1 = 2, _g = path.length;
while(_g1 < _g) {
var i = _g1++;
o = m;
m = Reflect.field(o,path[i]);
}
}
}
if(!Reflect.isFunction(m)) throw "No such method " + path.join(".");
{
var $tmp = m.apply(o,params);
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.remoting.Context.prototype.objects = null;
haxe.remoting.Context.prototype.__class__ = haxe.remoting.Context;
haxe.Timer = function(time_ms) { if( time_ms === $_ ) return; {
$s.push("haxe.Timer::new");
var $spos = $s.length;
this.id = haxe.Timer.arr.length;
haxe.Timer.arr[this.id] = this;
this.timerId = window.setInterval("haxe.Timer.arr[" + this.id + "].run();",time_ms);
$s.pop();
}}
haxe.Timer.__name__ = ["haxe","Timer"];
haxe.Timer.delay = function(f,time_ms) {
$s.push("haxe.Timer::delay");
var $spos = $s.length;
var t = new haxe.Timer(time_ms);
t.run = function() {
$s.push("haxe.Timer::delay@78");
var $spos = $s.length;
t.stop();
f();
$s.pop();
}
{
$s.pop();
return t;
}
$s.pop();
}
haxe.Timer.stamp = function() {
$s.push("haxe.Timer::stamp");
var $spos = $s.length;
{
var $tmp = Date.now().getTime() / 1000;
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.Timer.prototype.id = null;
haxe.Timer.prototype.run = function() {
$s.push("haxe.Timer::run");
var $spos = $s.length;
null;
$s.pop();
}
haxe.Timer.prototype.stop = function() {
$s.push("haxe.Timer::stop");
var $spos = $s.length;
if(this.id == null) {
$s.pop();
return;
}
window.clearInterval(this.timerId);
haxe.Timer.arr[this.id] = null;
if(this.id > 100 && this.id == haxe.Timer.arr.length - 1) {
var p = this.id - 1;
while(p >= 0 && haxe.Timer.arr[p] == null) p--;
haxe.Timer.arr = haxe.Timer.arr.slice(0,p + 1);
}
this.id = null;
$s.pop();
}
haxe.Timer.prototype.timerId = null;
haxe.Timer.prototype.__class__ = haxe.Timer;
haxe.io.Error = { __ename__ : ["haxe","io","Error"], __constructs__ : ["Blocked","Overflow","OutsideBounds","Custom"] }
haxe.io.Error.Blocked = ["Blocked",0];
haxe.io.Error.Blocked.toString = $estr;
haxe.io.Error.Blocked.__enum__ = haxe.io.Error;
haxe.io.Error.Custom = function(e) { var $x = ["Custom",3,e]; $x.__enum__ = haxe.io.Error; $x.toString = $estr; return $x; }
haxe.io.Error.OutsideBounds = ["OutsideBounds",2];
haxe.io.Error.OutsideBounds.toString = $estr;
haxe.io.Error.OutsideBounds.__enum__ = haxe.io.Error;
haxe.io.Error.Overflow = ["Overflow",1];
haxe.io.Error.Overflow.toString = $estr;
haxe.io.Error.Overflow.__enum__ = haxe.io.Error;
StringTools = function() { }
StringTools.__name__ = ["StringTools"];
StringTools.urlEncode = function(s) {
$s.push("StringTools::urlEncode");
var $spos = $s.length;
{
var $tmp = encodeURIComponent(s);
$s.pop();
return $tmp;
}
$s.pop();
}
StringTools.urlDecode = function(s) {
$s.push("StringTools::urlDecode");
var $spos = $s.length;
{
var $tmp = decodeURIComponent(s.split("+").join(" "));
$s.pop();
return $tmp;
}
$s.pop();
}
StringTools.htmlEscape = function(s) {
$s.push("StringTools::htmlEscape");
var $spos = $s.length;
{
var $tmp = s.split("&").join("&").split("<").join("<").split(">").join(">");
$s.pop();
return $tmp;
}
$s.pop();
}
StringTools.htmlUnescape = function(s) {
$s.push("StringTools::htmlUnescape");
var $spos = $s.length;
{
var $tmp = s.split(">").join(">").split("<").join("<").split("&").join("&");
$s.pop();
return $tmp;
}
$s.pop();
}
StringTools.startsWith = function(s,start) {
$s.push("StringTools::startsWith");
var $spos = $s.length;
{
var $tmp = (s.length >= start.length && s.substr(0,start.length) == start);
$s.pop();
return $tmp;
}
$s.pop();
}
StringTools.endsWith = function(s,end) {
$s.push("StringTools::endsWith");
var $spos = $s.length;
var elen = end.length;
var slen = s.length;
{
var $tmp = (slen >= elen && s.substr(slen - elen,elen) == end);
$s.pop();
return $tmp;
}
$s.pop();
}
StringTools.isSpace = function(s,pos) {
$s.push("StringTools::isSpace");
var $spos = $s.length;
var c = s.charCodeAt(pos);
{
var $tmp = (c >= 9 && c <= 13) || c == 32;
$s.pop();
return $tmp;
}
$s.pop();
}
StringTools.ltrim = function(s) {
$s.push("StringTools::ltrim");
var $spos = $s.length;
var l = s.length;
var r = 0;
while(r < l && StringTools.isSpace(s,r)) {
r++;
}
if(r > 0) {
var $tmp = s.substr(r,l - r);
$s.pop();
return $tmp;
}
else {
$s.pop();
return s;
}
$s.pop();
}
StringTools.rtrim = function(s) {
$s.push("StringTools::rtrim");
var $spos = $s.length;
var l = s.length;
var r = 0;
while(r < l && StringTools.isSpace(s,l - r - 1)) {
r++;
}
if(r > 0) {
{
var $tmp = s.substr(0,l - r);
$s.pop();
return $tmp;
}
}
else {
{
$s.pop();
return s;
}
}
$s.pop();
}
StringTools.trim = function(s) {
$s.push("StringTools::trim");
var $spos = $s.length;
{
var $tmp = StringTools.ltrim(StringTools.rtrim(s));
$s.pop();
return $tmp;
}
$s.pop();
}
StringTools.rpad = function(s,c,l) {
$s.push("StringTools::rpad");
var $spos = $s.length;
var sl = s.length;
var cl = c.length;
while(sl < l) {
if(l - sl < cl) {
s += c.substr(0,l - sl);
sl = l;
}
else {
s += c;
sl += cl;
}
}
{
$s.pop();
return s;
}
$s.pop();
}
StringTools.lpad = function(s,c,l) {
$s.push("StringTools::lpad");
var $spos = $s.length;
var ns = "";
var sl = s.length;
if(sl >= l) {
$s.pop();
return s;
}
var cl = c.length;
while(sl < l) {
if(l - sl < cl) {
ns += c.substr(0,l - sl);
sl = l;
}
else {
ns += c;
sl += cl;
}
}
{
var $tmp = ns + s;
$s.pop();
return $tmp;
}
$s.pop();
}
StringTools.replace = function(s,sub,by) {
$s.push("StringTools::replace");
var $spos = $s.length;
{
var $tmp = s.split(sub).join(by);
$s.pop();
return $tmp;
}
$s.pop();
}
StringTools.hex = function(n,digits) {
$s.push("StringTools::hex");
var $spos = $s.length;
var neg = false;
if(n < 0) {
neg = true;
n = -n;
}
var s = n.toString(16);
s = s.toUpperCase();
if(digits != null) while(s.length < digits) s = "0" + s;
if(neg) s = "-" + s;
{
$s.pop();
return s;
}
$s.pop();
}
StringTools.prototype.__class__ = StringTools;
List = function(p) { if( p === $_ ) return; {
$s.push("List::new");
var $spos = $s.length;
this.length = 0;
$s.pop();
}}
List.__name__ = ["List"];
List.prototype.add = function(item) {
$s.push("List::add");
var $spos = $s.length;
var x = [item];
if(this.h == null) this.h = x;
else this.q[1] = x;
this.q = x;
this.length++;
$s.pop();
}
List.prototype.clear = function() {
$s.push("List::clear");
var $spos = $s.length;
this.h = null;
this.q = null;
this.length = 0;
$s.pop();
}
List.prototype.filter = function(f) {
$s.push("List::filter");
var $spos = $s.length;
var l2 = new List();
var l = this.h;
while(l != null) {
var v = l[0];
l = l[1];
if(f(v)) l2.add(v);
}
{
$s.pop();
return l2;
}
$s.pop();
}
List.prototype.first = function() {
$s.push("List::first");
var $spos = $s.length;
{
var $tmp = (this.h == null?null:this.h[0]);
$s.pop();
return $tmp;
}
$s.pop();
}
List.prototype.h = null;
List.prototype.isEmpty = function() {
$s.push("List::isEmpty");
var $spos = $s.length;
{
var $tmp = (this.h == null);
$s.pop();
return $tmp;
}
$s.pop();
}
List.prototype.iterator = function() {
$s.push("List::iterator");
var $spos = $s.length;
{
var $tmp = { h : this.h, hasNext : function() {
$s.push("List::iterator@196");
var $spos = $s.length;
{
var $tmp = (this.h != null);
$s.pop();
return $tmp;
}
$s.pop();
}, next : function() {
$s.push("List::iterator@199");
var $spos = $s.length;
if(this.h == null) {
$s.pop();
return null;
}
var x = this.h[0];
this.h = this.h[1];
{
$s.pop();
return x;
}
$s.pop();
}}
$s.pop();
return $tmp;
}
$s.pop();
}
List.prototype.join = function(sep) {
$s.push("List::join");
var $spos = $s.length;
var s = new StringBuf();
var first = true;
var l = this.h;
while(l != null) {
if(first) first = false;
else s.b[s.b.length] = sep;
s.b[s.b.length] = l[0];
l = l[1];
}
{
var $tmp = s.b.join("");
$s.pop();
return $tmp;
}
$s.pop();
}
List.prototype.last = function() {
$s.push("List::last");
var $spos = $s.length;
{
var $tmp = (this.q == null?null:this.q[0]);
$s.pop();
return $tmp;
}
$s.pop();
}
List.prototype.length = null;
List.prototype.map = function(f) {
$s.push("List::map");
var $spos = $s.length;
var b = new List();
var l = this.h;
while(l != null) {
var v = l[0];
l = l[1];
b.add(f(v));
}
{
$s.pop();
return b;
}
$s.pop();
}
List.prototype.pop = function() {
$s.push("List::pop");
var $spos = $s.length;
if(this.h == null) {
$s.pop();
return null;
}
var x = this.h[0];
this.h = this.h[1];
if(this.h == null) this.q = null;
this.length--;
{
$s.pop();
return x;
}
$s.pop();
}
List.prototype.push = function(item) {
$s.push("List::push");
var $spos = $s.length;
var x = [item,this.h];
this.h = x;
if(this.q == null) this.q = x;
this.length++;
$s.pop();
}
List.prototype.q = null;
List.prototype.remove = function(v) {
$s.push("List::remove");
var $spos = $s.length;
var prev = null;
var l = this.h;
while(l != null) {
if(l[0] == v) {
if(prev == null) this.h = l[1];
else prev[1] = l[1];
if(this.q == l) this.q = prev;
this.length--;
{
$s.pop();
return true;
}
}
prev = l;
l = l[1];
}
{
$s.pop();
return false;
}
$s.pop();
}
List.prototype.toString = function() {
$s.push("List::toString");
var $spos = $s.length;
var s = new StringBuf();
var first = true;
var l = this.h;
s.b[s.b.length] = "{";
while(l != null) {
if(first) first = false;
else s.b[s.b.length] = ", ";
s.b[s.b.length] = Std.string(l[0]);
l = l[1];
}
s.b[s.b.length] = "}";
{
var $tmp = s.b.join("");
$s.pop();
return $tmp;
}
$s.pop();
}
List.prototype.__class__ = List;
haxe.Serializer = function(p) { if( p === $_ ) return; {
$s.push("haxe.Serializer::new");
var $spos = $s.length;
this.buf = new StringBuf();
this.cache = new Array();
this.useCache = haxe.Serializer.USE_CACHE;
this.useEnumIndex = haxe.Serializer.USE_ENUM_INDEX;
this.shash = new Hash();
this.scount = 0;
$s.pop();
}}
haxe.Serializer.__name__ = ["haxe","Serializer"];
haxe.Serializer.run = function(v) {
$s.push("haxe.Serializer::run");
var $spos = $s.length;
var s = new haxe.Serializer();
s.serialize(v);
{
var $tmp = s.toString();
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.Serializer.prototype.buf = null;
haxe.Serializer.prototype.cache = null;
haxe.Serializer.prototype.scount = null;
haxe.Serializer.prototype.serialize = function(v) {
$s.push("haxe.Serializer::serialize");
var $spos = $s.length;
var $e = (Type["typeof"](v));
switch( $e[1] ) {
case 0:
{
this.buf.add("n");
}break;
case 1:
{
if(v == 0) {
this.buf.add("z");
{
$s.pop();
return;
}
}
this.buf.add("i");
this.buf.add(v);
}break;
case 2:
{
if(Math.isNaN(v)) this.buf.add("k");
else if(!Math.isFinite(v)) this.buf.add((v < 0?"m":"p"));
else {
this.buf.add("d");
this.buf.add(v);
}
}break;
case 3:
{
this.buf.add((v?"t":"f"));
}break;
case 6:
var c = $e[2];
{
if(c == String) {
this.serializeString(v);
{
$s.pop();
return;
}
}
if(this.useCache && this.serializeRef(v)) {
$s.pop();
return;
}
switch(c) {
case Array:{
var ucount = 0;
this.buf.add("a");
var l = v["length"];
{
var _g = 0;
while(_g < l) {
var i = _g++;
if(v[i] == null) ucount++;
else {
if(ucount > 0) {
if(ucount == 1) this.buf.add("n");
else {
this.buf.add("u");
this.buf.add(ucount);
}
ucount = 0;
}
this.serialize(v[i]);
}
}
}
if(ucount > 0) {
if(ucount == 1) this.buf.add("n");
else {
this.buf.add("u");
this.buf.add(ucount);
}
}
this.buf.add("h");
}break;
case List:{
this.buf.add("l");
var v1 = v;
{ var $it15 = v1.iterator();
while( $it15.hasNext() ) { var i = $it15.next();
this.serialize(i);
}}
this.buf.add("h");
}break;
case Date:{
var d = v;
this.buf.add("v");
this.buf.add(d.toString());
}break;
case Hash:{
this.buf.add("b");
var v1 = v;
{ var $it16 = v1.keys();
while( $it16.hasNext() ) { var k = $it16.next();
{
this.serializeString(k);
this.serialize(v1.get(k));
}
}}
this.buf.add("h");
}break;
case IntHash:{
this.buf.add("q");
var v1 = v;
{ var $it17 = v1.keys();
while( $it17.hasNext() ) { var k = $it17.next();
{
this.buf.add(":");
this.buf.add(k);
this.serialize(v1.get(k));
}
}}
this.buf.add("h");
}break;
case haxe.io.Bytes:{
var v1 = v;
var i = 0;
var max = v1.length - 2;
var chars = "";
var b64 = haxe.Serializer.BASE64;
while(i < max) {
var b1 = v1.b[i++];
var b2 = v1.b[i++];
var b3 = v1.b[i++];
chars += b64.charAt(b1 >> 2) + b64.charAt(((b1 << 4) | (b2 >> 4)) & 63) + b64.charAt(((b2 << 2) | (b3 >> 6)) & 63) + b64.charAt(b3 & 63);
}
if(i == max) {
var b1 = v1.b[i++];
var b2 = v1.b[i++];
chars += b64.charAt(b1 >> 2) + b64.charAt(((b1 << 4) | (b2 >> 4)) & 63) + b64.charAt((b2 << 2) & 63);
}
else if(i == max + 1) {
var b1 = v1.b[i++];
chars += b64.charAt(b1 >> 2) + b64.charAt((b1 << 4) & 63);
}
this.buf.add("s");
this.buf.add(chars.length);
this.buf.add(":");
this.buf.add(chars);
}break;
default:{
this.cache.pop();
this.buf.add("c");
this.serializeString(Type.getClassName(c));
this.cache.push(v);
this.serializeFields(v);
}break;
}
}break;
case 4:
{
if(this.useCache && this.serializeRef(v)) {
$s.pop();
return;
}
this.buf.add("o");
this.serializeFields(v);
}break;
case 7:
var e = $e[2];
{
if(this.useCache && this.serializeRef(v)) {
$s.pop();
return;
}
this.cache.pop();
this.buf.add((this.useEnumIndex?"j":"w"));
this.serializeString(Type.getEnumName(e));
if(this.useEnumIndex) {
this.buf.add(":");
this.buf.add(v[1]);
}
else this.serializeString(v[0]);
this.buf.add(":");
var l = v["length"];
this.buf.add(l - 2);
{
var _g = 2;
while(_g < l) {
var i = _g++;
this.serialize(v[i]);
}
}
this.cache.push(v);
}break;
case 5:
{
throw "Cannot serialize function";
}break;
default:{
throw "Cannot serialize " + Std.string(v);
}break;
}
$s.pop();
}
haxe.Serializer.prototype.serializeException = function(e) {
$s.push("haxe.Serializer::serializeException");
var $spos = $s.length;
this.buf.add("x");
this.serialize(e);
$s.pop();
}
haxe.Serializer.prototype.serializeFields = function(v) {
$s.push("haxe.Serializer::serializeFields");
var $spos = $s.length;
{
var _g = 0, _g1 = Reflect.fields(v);
while(_g < _g1.length) {
var f = _g1[_g];
++_g;
this.serializeString(f);
this.serialize(Reflect.field(v,f));
}
}
this.buf.add("g");
$s.pop();
}
haxe.Serializer.prototype.serializeRef = function(v) {
$s.push("haxe.Serializer::serializeRef");
var $spos = $s.length;
var vt = typeof(v);
{
var _g1 = 0, _g = this.cache.length;
while(_g1 < _g) {
var i = _g1++;
var ci = this.cache[i];
if(typeof(ci) == vt && ci == v) {
this.buf.add("r");
this.buf.add(i);
{
$s.pop();
return true;
}
}
}
}
this.cache.push(v);
{
$s.pop();
return false;
}
$s.pop();
}
haxe.Serializer.prototype.serializeString = function(s) {
$s.push("haxe.Serializer::serializeString");
var $spos = $s.length;
var x = this.shash.get(s);
if(x != null) {
this.buf.add("R");
this.buf.add(x);
{
$s.pop();
return;
}
}
this.shash.set(s,this.scount++);
this.buf.add("y");
s = StringTools.urlEncode(s);
this.buf.add(s.length);
this.buf.add(":");
this.buf.add(s);
$s.pop();
}
haxe.Serializer.prototype.shash = null;
haxe.Serializer.prototype.toString = function() {
$s.push("haxe.Serializer::toString");
var $spos = $s.length;
{
var $tmp = this.buf.b.join("");
$s.pop();
return $tmp;
}
$s.pop();
}
haxe.Serializer.prototype.useCache = null;
haxe.Serializer.prototype.useEnumIndex = null;
haxe.Serializer.prototype.__class__ = haxe.Serializer;
Reflect = function() { }
Reflect.__name__ = ["Reflect"];
Reflect.hasField = function(o,field) {
$s.push("Reflect::hasField");
var $spos = $s.length;
if(o.hasOwnProperty != null) {
var $tmp = o.hasOwnProperty(field);
$s.pop();
return $tmp;
}
var arr = Reflect.fields(o);
{ var $it18 = arr.iterator();
while( $it18.hasNext() ) { var t = $it18.next();
if(t == field) {
$s.pop();
return true;
}
}}
{
$s.pop();
return false;
}
$s.pop();
}
Reflect.field = function(o,field) {
$s.push("Reflect::field");
var $spos = $s.length;
var v = null;
try {
v = o[field];
}
catch( $e19 ) {
{
var e = $e19;
{
$e = [];
while($s.length >= $spos) $e.unshift($s.pop());
$s.push($e[0]);
null;
}
}
}
{
$s.pop();
return v;
}
$s.pop();
}
Reflect.setField = function(o,field,value) {
$s.push("Reflect::setField");
var $spos = $s.length;
o[field] = value;
$s.pop();
}
Reflect.callMethod = function(o,func,args) {
$s.push("Reflect::callMethod");
var $spos = $s.length;
{
var $tmp = func.apply(o,args);
$s.pop();
return $tmp;
}
$s.pop();
}
Reflect.fields = function(o) {
$s.push("Reflect::fields");
var $spos = $s.length;
if(o == null) {
var $tmp = new Array();
$s.pop();
return $tmp;
}
var a = new Array();
if(o.hasOwnProperty) {
for(var i in o)
if( o.hasOwnProperty(i) )
a.push(i);
;
}
else {
var t;
try {
t = o.__proto__;
}
catch( $e20 ) {
{
var e = $e20;
{
$e = [];
while($s.length >= $spos) $e.unshift($s.pop());
$s.push($e[0]);
t = null;
}
}
}
if(t != null) o.__proto__ = null;
for(var i in o)
if( i != "__proto__" )
a.push(i);
;
if(t != null) o.__proto__ = t;
}
{
$s.pop();
return a;
}
$s.pop();
}
Reflect.isFunction = function(f) {
$s.push("Reflect::isFunction");
var $spos = $s.length;
{
var $tmp = typeof(f) == "function" && f.__name__ == null;
$s.pop();
return $tmp;
}
$s.pop();
}
Reflect.compare = function(a,b) {
$s.push("Reflect::compare");
var $spos = $s.length;
{
var $tmp = ((a == b)?0:((((a) > (b))?1:-1)));
$s.pop();
return $tmp;
}
$s.pop();
}
Reflect.compareMethods = function(f1,f2) {
$s.push("Reflect::compareMethods");
var $spos = $s.length;
if(f1 == f2) {
$s.pop();
return true;
}
if(!Reflect.isFunction(f1) || !Reflect.isFunction(f2)) {
$s.pop();
return false;
}
{
var $tmp = f1.scope == f2.scope && f1.method == f2.method && f1.method != null;
$s.pop();
return $tmp;
}
$s.pop();
}
Reflect.isObject = function(v) {
$s.push("Reflect::isObject");
var $spos = $s.length;
if(v == null) {
$s.pop();
return false;
}
var t = typeof(v);
{
var $tmp = (t == "string" || (t == "object" && !v.__enum__) || (t == "function" && v.__name__ != null));
$s.pop();
return $tmp;
}
$s.pop();
}
Reflect.deleteField = function(o,f) {
$s.push("Reflect::deleteField");
var $spos = $s.length;
if(!Reflect.hasField(o,f)) {
$s.pop();
return false;
}
delete(o[f]);
{
$s.pop();
return true;
}
$s.pop();
}
Reflect.copy = function(o) {
$s.push("Reflect::copy");
var $spos = $s.length;
var o2 = { }
{
var _g = 0, _g1 = Reflect.fields(o);
while(_g < _g1.length) {
var f = _g1[_g];
++_g;
o2[f] = Reflect.field(o,f);
}
}
{
$s.pop();
return o2;
}
$s.pop();
}
Reflect.makeVarArgs = function(f) {
$s.push("Reflect::makeVarArgs");
var $spos = $s.length;
{
var $tmp = function() {
$s.push("Reflect::makeVarArgs@366");
var $spos = $s.length;
var a = new Array();
{
var _g1 = 0, _g = arguments.length;
while(_g1 < _g) {
var i = _g1++;
a.push(arguments[i]);
}
}
{
var $tmp = f(a);
$s.pop();
return $tmp;
}
$s.pop();
}
$s.pop();
return $tmp;
}
$s.pop();
}
Reflect.prototype.__class__ = Reflect;
StringBuf = function(p) { if( p === $_ ) return; {
$s.push("StringBuf::new");
var $spos = $s.length;
this.b = new Array();
$s.pop();
}}
StringBuf.__name__ = ["StringBuf"];
StringBuf.prototype.add = function(x) {
$s.push("StringBuf::add");
var $spos = $s.length;
this.b[this.b.length] = x;
$s.pop();
}
StringBuf.prototype.addChar = function(c) {
$s.push("StringBuf::addChar");
var $spos = $s.length;
this.b[this.b.length] = String.fromCharCode(c);
$s.pop();
}
StringBuf.prototype.addSub = function(s,pos,len) {
$s.push("StringBuf::addSub");
var $spos = $s.length;
this.b[this.b.length] = s.substr(pos,len);
$s.pop();
}
StringBuf.prototype.b = null;
StringBuf.prototype.toString = function() {
$s.push("StringBuf::toString");
var $spos = $s.length;
{
var $tmp = this.b.join("");
$s.pop();
return $tmp;
}
$s.pop();
}
StringBuf.prototype.__class__ = StringBuf;
IntIter = function(min,max) { if( min === $_ ) return; {
$s.push("IntIter::new");
var $spos = $s.length;
this.min = min;
this.max = max;
$s.pop();
}}
IntIter.__name__ = ["IntIter"];
IntIter.prototype.hasNext = function() {
$s.push("IntIter::hasNext");
var $spos = $s.length;
{
var $tmp = this.min < this.max;
$s.pop();
return $tmp;
}
$s.pop();
}
IntIter.prototype.max = null;
IntIter.prototype.min = null;
IntIter.prototype.next = function() {
$s.push("IntIter::next");
var $spos = $s.length;
{
var $tmp = this.min++;
$s.pop();
return $tmp;
}
$s.pop();
}
IntIter.prototype.__class__ = IntIter;
$_ = {}
js.Boot.__res = {}
$s = [];
$e = [];
js.Boot.__init();
{
Date.now = function() {
$s.push("@Main::new@124");
var $spos = $s.length;
{
var $tmp = new Date();
$s.pop();
return $tmp;
}
$s.pop();
}
Date.fromTime = function(t) {
$s.push("@Main::new@127");
var $spos = $s.length;
var d = new Date();
d["setTime"](t);
{
$s.pop();
return d;
}
$s.pop();
}
Date.fromString = function(s) {
$s.push("@Main::new@136");
var $spos = $s.length;
switch(s.length) {
case 8:{
var k = s.split(":");
var d = new Date();
d["setTime"](0);
d["setUTCHours"](k[0]);
d["setUTCMinutes"](k[1]);
d["setUTCSeconds"](k[2]);
{
$s.pop();
return d;
}
}break;
case 10:{
var k = s.split("-");
{
var $tmp = new Date(k[0],k[1] - 1,k[2],0,0,0);
$s.pop();
return $tmp;
}
}break;
case 19:{
var k = s.split(" ");
var y = k[0].split("-");
var t = k[1].split(":");
{
var $tmp = new Date(y[0],y[1] - 1,y[2],t[0],t[1],t[2]);
$s.pop();
return $tmp;
}
}break;
default:{
throw "Invalid date format : " + s;
}break;
}
$s.pop();
}
Date.prototype["toString"] = function() {
$s.push("@Main::new@165");
var $spos = $s.length;
var date = this;
var m = date.getMonth() + 1;
var d = date.getDate();
var h = date.getHours();
var mi = date.getMinutes();
var s = date.getSeconds();
{
var $tmp = date.getFullYear() + "-" + ((m < 10?"0" + m:"" + m)) + "-" + ((d < 10?"0" + d:"" + d)) + " " + ((h < 10?"0" + h:"" + h)) + ":" + ((mi < 10?"0" + mi:"" + mi)) + ":" + ((s < 10?"0" + s:"" + s));
$s.pop();
return $tmp;
}
$s.pop();
}
Date.prototype.__class__ = Date;
Date.__name__ = ["Date"];
}
{
js.Lib.document = document;
js.Lib.window = window;
onerror = function(msg,url,line) {
var stack = $s.copy();
var f = js.Lib.onerror;
$s.splice(0,$s.length);
if( f == null ) {
var i = stack.length;
var s = "";
while( --i >= 0 )
s += "Called from "+stack[i]+"\n";
alert(msg+"\n\n"+s);
return false;
}
return f(msg,stack);
}
}
{
String.prototype.__class__ = String;
String.__name__ = ["String"];
Array.prototype.__class__ = Array;
Array.__name__ = ["Array"];
Int = { __name__ : ["Int"]}
Dynamic = { __name__ : ["Dynamic"]}
Float = Number;
Float.__name__ = ["Float"];
Bool = { __ename__ : ["Bool"]}
Class = { __name__ : ["Class"]}
Enum = { }
Void = { __ename__ : ["Void"]}
}
{
Math.NaN = Number["NaN"];
Math.NEGATIVE_INFINITY = Number["NEGATIVE_INFINITY"];
Math.POSITIVE_INFINITY = Number["POSITIVE_INFINITY"];
Math.isFinite = function(i) {
$s.push("@Main::new@73");
var $spos = $s.length;
{
var $tmp = isFinite(i);
$s.pop();
return $tmp;
}
$s.pop();
}
Math.isNaN = function(i) {
$s.push("@Main::new@85");
var $spos = $s.length;
{
var $tmp = isNaN(i);
$s.pop();
return $tmp;
}
$s.pop();
}
Math.__name__ = ["Math"];
}
haxe.Unserializer.DEFAULT_RESOLVER = Type;
haxe.Unserializer.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";
haxe.Unserializer.CODES = null;
js.Lib.onerror = null;
haxe.remoting.ExternalConnection.connections = new Hash();
haxe.Timer.arr = new Array();
haxe.Serializer.USE_CACHE = false;
haxe.Serializer.USE_ENUM_INDEX = false;
haxe.Serializer.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";