UNPKG

d3

Version:

A small, free JavaScript library for manipulating documents based on data.

1,948 lines (1,693 loc) 621 kB
/** * these are both non-standard globals that * provide static namespaces and functions * to support the html 5 parser from nu. * * these are intentionally leaked globally * XMLParser = {}, * HTMLParser = {}; * */ var Envjs = Envjs || require('./platform/core').Envjs, After = After || require('./platform/core').After, DOMImplementation = DOMImplementation || require('./dom').DOMImplementation, Document = Document || require('./dom').Document, Element = Element || require('./dom').Element, NodeList = NodeList || require('./dom').NodeList, Node = Node || require('./dom').Node, HTMLDocument = HTMLDocument || require('./html').HTMLDocument, HTMLElement = HTMLElement || require('./html').HTMLElement; /* * Envjs parser.1.3.pre03 * Pure JavaScript Browser Environment * By John Resig <http://ejohn.org/> and the Envjs Team * Copyright 2008-2010 John Resig, under the MIT License */ //CLOSURE_START (function(){ /** * @author john resig */ // Helper method for extending one object with another. function __extend__(a,b) { for ( var i in b ) { if(b.hasOwnProperty(i)){ var g = b.__lookupGetter__(i), s = b.__lookupSetter__(i); if ( g || s ) { if ( g ) { a.__defineGetter__(i, g); } if ( s ) { a.__defineSetter__(i, s); } } else { a[i] = b[i]; } } } return a; } /** * @author john resig */ //from jQuery function __setArray__( target, array ) { // Resetting the length to 0, then using the native Array push // is a super-fast way to populate an object with array-like properties target.length = 0; Array.prototype.push.apply( target, array ); } var $_window = this;var $gwt_version = "2.0.3";var $wnd = $_window;var $doc = $wnd.document;var $moduleName, $moduleBase;var $stats = $wnd.__gwtStatsEvent ? function(a) {$wnd.__gwtStatsEvent(a)} : null;var $strongName = '8150BFC222C63DA4E59C16141DE3DB1B';var _, N8000000000000000_longLit = [0, -9223372036854775808], P1000000_longLit = [16777216, 0], P7fffffffffffffff_longLit = [4294967295, 9223372032559808512]; function nullMethod(){ } function equals(other){ return this === (other == null?null:other); } function getClass_0(){ return Ljava_lang_Object_2_classLit; } function hashCode_0(){ return this.$H || (this.$H = ++sNextHashId); } function toString_0(){ return (this.typeMarker$ == nullMethod || this.typeId$ == 2?this.getClass$():Lcom_google_gwt_core_client_JavaScriptObject_2_classLit).typeName + '@' + toPowerOfTwoString(this.typeMarker$ == nullMethod || this.typeId$ == 2?this.hashCode$():this.$H || (this.$H = ++sNextHashId), 4); } function Object_0(){ } _ = Object_0.prototype = {}; _.equals$ = equals; _.getClass$ = getClass_0; _.hashCode$ = hashCode_0; _.toString$ = toString_0; _.toString = function(){ return this.toString$(); } ; _.typeMarker$ = nullMethod; _.typeId$ = 1; function $setStackTrace(stackTrace){ var c, copy, i; copy = initDim(_3Ljava_lang_StackTraceElement_2_classLit, 54, 9, stackTrace.length, 0); for (i = 0 , c = stackTrace.length; i < c; ++i) { if (!stackTrace[i]) { throw $NullPointerException(new NullPointerException); } copy[i] = stackTrace[i]; } } function $toString(this$static){ var className, msg; className = this$static.getClass$().typeName; msg = this$static.getMessage(); if (msg != null) { return className + ': ' + msg; } else { return className; } } function getClass_1(){ return Ljava_lang_Throwable_2_classLit; } function getMessage(){ return this.detailMessage; } function toString_1(){ return $toString(this); } function Throwable(){ } _ = Throwable.prototype = new Object_0; _.getClass$ = getClass_1; _.getMessage = getMessage; _.toString$ = toString_1; _.typeId$ = 3; _.detailMessage = null; function getClass_2(){ return Ljava_lang_Exception_2_classLit; } function Exception(){ } _ = Exception.prototype = new Throwable; _.getClass$ = getClass_2; _.typeId$ = 4; function $RuntimeException(this$static, message){ $fillInStackTrace(); this$static.detailMessage = message; return this$static; } function getClass_3(){ return Ljava_lang_RuntimeException_2_classLit; } function RuntimeException(){ } _ = RuntimeException.prototype = new Exception; _.getClass$ = getClass_3; _.typeId$ = 5; function $JavaScriptException(this$static, e){ $fillInStackTrace(); this$static.e = e; $createStackTrace(this$static); return this$static; } function $getMessage_0(this$static){ this$static.message_0 == null && (this$static.name_0 = getName(this$static.e) , this$static.description = getDescription(this$static.e) , this$static.message_0 = '(' + this$static.name_0 + '): ' + this$static.description + getProperties(this$static.e) , undefined); return this$static.message_0; } function getClass_4(){ return Lcom_google_gwt_core_client_JavaScriptException_2_classLit; } function getDescription(e){ if (e != null && e.typeMarker$ != nullMethod && e.typeId$ != 2) { return getDescription0(dynamicCastJso(e)); } else { return e + ''; } } function getDescription0(e){ return e == null?null:e.message; } function getMessage_0(){ return $getMessage_0(this); } function getName(e){ if (e == null) { return 'null'; } else if (e != null && e.typeMarker$ != nullMethod && e.typeId$ != 2) { return getName0(dynamicCastJso(e)); } else if (e != null && canCast(e.typeId$, 1)) { return 'String'; } else { return (e.typeMarker$ == nullMethod || e.typeId$ == 2?e.getClass$():Lcom_google_gwt_core_client_JavaScriptObject_2_classLit).typeName; } } function getName0(e){ return e == null?null:e.name; } function getProperties(e){ return e != null && e.typeMarker$ != nullMethod && e.typeId$ != 2?getProperties0(dynamicCastJso(e)):''; } function getProperties0(e){ var result = ''; try { for (prop in e) { if (prop != 'name' && prop != 'message' && prop != 'toString') { try { result += '\n ' + prop + ': ' + e[prop]; } catch (ignored) { } } } } catch (ignored) { } return result; } function JavaScriptException(){ } _ = JavaScriptException.prototype = new RuntimeException; _.getClass$ = getClass_4; _.getMessage = getMessage_0; _.typeId$ = 6; _.description = null; _.e = null; _.message_0 = null; _.name_0 = null; function createFunction(){ return function(){ } ; } function equals__devirtual$(this$static, other){ return this$static.typeMarker$ == nullMethod || this$static.typeId$ == 2?this$static.equals$(other):(this$static == null?null:this$static) === (other == null?null:other); } function hashCode__devirtual$(this$static){ return this$static.typeMarker$ == nullMethod || this$static.typeId$ == 2?this$static.hashCode$():this$static.$H || (this$static.$H = ++sNextHashId); } function getClass_6(){ return Lcom_google_gwt_core_client_Scheduler_2_classLit; } function Scheduler(){ } _ = Scheduler.prototype = new Object_0; _.getClass$ = getClass_6; _.typeId$ = 0; function entry_0(jsFunction){ return function(){ return entry0(jsFunction, this, arguments); } ; } function entry0(jsFunction, thisObj, arguments_0){ var initialEntry; initialEntry = entryDepth++ == 0; try { return jsFunction.apply(thisObj, arguments_0); } finally { initialEntry && $flushFinallyCommands(($clinit_12() , INSTANCE)); --entryDepth; } } var entryDepth = 0, sNextHashId = 0; function $clinit_12(){ $clinit_12 = nullMethod; INSTANCE = $SchedulerImpl(new SchedulerImpl); } function $SchedulerImpl(this$static){ $clinit_12(); this$static.flusher = $SchedulerImpl$1(new SchedulerImpl$1, this$static); $SchedulerImpl$2(new SchedulerImpl$2, this$static); this$static.deferredCommands = []; this$static.incrementalCommands = []; this$static.finallyCommands = []; return this$static; } function $flushFinallyCommands(this$static){ var oldFinally; oldFinally = this$static.finallyCommands; this$static.finallyCommands = []; runScheduledTasks(oldFinally, this$static.finallyCommands); } function $flushPostEventPumpCommands(this$static){ var oldDeferred; oldDeferred = this$static.deferredCommands; this$static.deferredCommands = []; runScheduledTasks(oldDeferred, this$static.incrementalCommands); this$static.incrementalCommands = runRepeatingTasks(this$static.incrementalCommands); } function $isWorkQueued(this$static){ return this$static.deferredCommands.length > 0 || this$static.incrementalCommands.length > 0; } function execute(cmd){ return cmd.execute(); } function getClass_7(){ return Lcom_google_gwt_core_client_impl_SchedulerImpl_2_classLit; } function runRepeatingTasks(tasks){ var canceledSomeTasks, i, length_0, newTasks, start, t; canceledSomeTasks = false; length_0 = tasks.length; start = (new Date).getTime(); while ((new Date).getTime() - start < 100) { for (i = 0; i < length_0; ++i) { t = tasks[i]; if (!t) { continue; } if (!t[0].execute()) { tasks[i] = null; canceledSomeTasks = true; } } } if (canceledSomeTasks) { newTasks = []; for (i = 0; i < length_0; ++i) { if (!tasks[i]) { continue; } newTasks[newTasks.length] = tasks[i]; } return newTasks; } else { return tasks; } } function runScheduledTasks(tasks, rescheduled){ var $e0, i, j, t; for (i = 0 , j = tasks.length; i < j; ++i) { t = tasks[i]; try { t[1]?t[0].execute() && (rescheduled[rescheduled.length] = t , undefined):t[0].nullMethod(); } catch ($e0) { $e0 = caught($e0); if (!instanceOf($e0, 2)) throw $e0; } } } function scheduleFixedDelayImpl(cmd, delayMs){ $clinit_12(); $wnd.setTimeout(function(){ var ret = $entry(execute)(cmd); ret && $wnd.setTimeout(arguments.callee, delayMs); } , delayMs); } function SchedulerImpl(){ } _ = SchedulerImpl.prototype = new Scheduler; _.getClass$ = getClass_7; _.typeId$ = 0; _.flushRunning = false; _.shouldBeRunning = false; var INSTANCE; function $SchedulerImpl$1(this$static, this$0){ this$static.this$0 = this$0; return this$static; } function execute_0(){ this.this$0.flushRunning = true; $flushPostEventPumpCommands(this.this$0); this.this$0.flushRunning = false; return this.this$0.shouldBeRunning = $isWorkQueued(this.this$0); } function getClass_8(){ return Lcom_google_gwt_core_client_impl_SchedulerImpl$1_2_classLit; } function SchedulerImpl$1(){ } _ = SchedulerImpl$1.prototype = new Object_0; _.execute = execute_0; _.getClass$ = getClass_8; _.typeId$ = 0; _.this$0 = null; function $SchedulerImpl$2(this$static, this$0){ this$static.this$0 = this$0; return this$static; } function execute_1(){ this.this$0.flushRunning && scheduleFixedDelayImpl(this.this$0.flusher, 1); return this.this$0.shouldBeRunning; } function getClass_9(){ return Lcom_google_gwt_core_client_impl_SchedulerImpl$2_2_classLit; } function SchedulerImpl$2(){ } _ = SchedulerImpl$2.prototype = new Object_0; _.execute = execute_1; _.getClass$ = getClass_9; _.typeId$ = 0; _.this$0 = null; function extractNameFromToString(fnToString){ var index, start, toReturn; toReturn = ''; fnToString = $trim(fnToString); index = fnToString.indexOf('('); if (index != -1) { start = fnToString.indexOf('function') == 0?8:0; toReturn = $trim(fnToString.substr(start, index - start)); } return toReturn.length > 0?toReturn:'anonymous'; } function splice(arr, length_0){ arr.length >= length_0 && arr.splice(0, length_0); return arr; } function $createStackTrace(e){ var i, j, stack, stackTrace; stack = $inferFrom(instanceOfJso(e.e)?dynamicCastJso(e.e):null); stackTrace = initDim(_3Ljava_lang_StackTraceElement_2_classLit, 54, 9, stack.length, 0); for (i = 0 , j = stackTrace.length; i < j; ++i) { stackTrace[i] = $StackTraceElement(new StackTraceElement, 'Unknown', stack[i], 'Unknown source', 0); } $setStackTrace(stackTrace); } function $fillInStackTrace(){ var i, j, stack, stackTrace; stack = splice($inferFrom($makeException()), 2); stackTrace = initDim(_3Ljava_lang_StackTraceElement_2_classLit, 54, 9, stack.length, 0); for (i = 0 , j = stackTrace.length; i < j; ++i) { stackTrace[i] = $StackTraceElement(new StackTraceElement, 'Unknown', stack[i], 'Unknown source', 0); } $setStackTrace(stackTrace); } function $makeException(){ try { null.a(); } catch (e) { return e; } } function $inferFrom(e){ var i, j, stack; stack = e && e.stack?e.stack.split('\n'):[]; for (i = 0 , j = stack.length; i < j; ++i) { stack[i] = extractNameFromToString(stack[i]); } return stack; } function getClass_10(){ return Lcom_google_gwt_core_client_impl_StringBufferImpl_2_classLit; } function StringBufferImpl(){ } _ = StringBufferImpl.prototype = new Object_0; _.getClass$ = getClass_10; _.typeId$ = 0; function $replace(this$static, start, end, toInsert){ this$static.string = this$static.string.substr(0, start - 0) + toInsert + $substring(this$static.string, end); } function getClass_11(){ return Lcom_google_gwt_core_client_impl_StringBufferImplAppend_2_classLit; } function StringBufferImplAppend(){ } _ = StringBufferImplAppend.prototype = new StringBufferImpl; _.getClass$ = getClass_11; _.typeId$ = 0; _.string = ''; function getClass_12(){ return Lcom_google_gwt_event_shared_GwtEvent_2_classLit; } function toString_3(){ return 'An event type'; } function GwtEvent(){ } _ = GwtEvent.prototype = new Object_0; _.getClass$ = getClass_12; _.toString$ = toString_3; _.typeId$ = 0; _.dead = false; _.source = null; function dispatch(p0){ $onClose(); } function fire(source){ var event_0; if (TYPE) { event_0 = new CloseEvent; $fireEvent(source, event_0); } } function getAssociatedType(){ return TYPE; } function getClass_13(){ return Lcom_google_gwt_event_logical_shared_CloseEvent_2_classLit; } function CloseEvent(){ } _ = CloseEvent.prototype = new GwtEvent; _.dispatch = dispatch; _.getAssociatedType = getAssociatedType; _.getClass$ = getClass_13; _.typeId$ = 0; var TYPE = null; function getClass_14(){ return Lcom_google_gwt_event_shared_DefaultHandlerRegistration_2_classLit; } function DefaultHandlerRegistration(){ } _ = DefaultHandlerRegistration.prototype = new Object_0; _.getClass$ = getClass_14; _.typeId$ = 0; function $GwtEvent$Type(this$static){ this$static.index = ++nextHashCode; return this$static; } function getClass_15(){ return Lcom_google_gwt_event_shared_GwtEvent$Type_2_classLit; } function hashCode_2(){ return this.index; } function toString_4(){ return 'Event type'; } function GwtEvent$Type(){ } _ = GwtEvent$Type.prototype = new Object_0; _.getClass$ = getClass_15; _.hashCode$ = hashCode_2; _.toString$ = toString_4; _.typeId$ = 0; _.index = 0; var nextHashCode = 0; function $addHandler(this$static, type, handler){ this$static.firingDepth > 0?$defer(this$static, $HandlerManager$1(new HandlerManager$1, this$static, type, handler)):$addHandler_0(this$static.registry, type, handler); return new DefaultHandlerRegistration; } function $defer(this$static, command){ !this$static.deferredDeltas && (this$static.deferredDeltas = $ArrayList(new ArrayList)); $add(this$static.deferredDeltas, command); } function $fireEvent(this$static, event_0){ var oldSource; if (event_0.dead) { event_0.dead = false; event_0.source = null; } oldSource = event_0.source; event_0.source = this$static.source; try { ++this$static.firingDepth; $fireEvent_0(this$static.registry, event_0, this$static.isReverseOrder); } finally { --this$static.firingDepth; this$static.firingDepth == 0 && $handleQueuedAddsAndRemoves(this$static); } if (oldSource == null) { event_0.dead = true; event_0.source = null; } else { event_0.source = oldSource; } } function $handleQueuedAddsAndRemoves(this$static){ var c, c$iterator; if (this$static.deferredDeltas) { try { for (c$iterator = $AbstractList$IteratorImpl(new AbstractList$IteratorImpl, this$static.deferredDeltas); c$iterator.i < c$iterator.this$0.size_0();) { c = dynamicCast($next_0(c$iterator), 3); $addHandler_0(c.this$0.registry, c.val$type, c.val$handler); } } finally { this$static.deferredDeltas = null; } } } function getClass_16(){ return Lcom_google_gwt_event_shared_HandlerManager_2_classLit; } function HandlerManager(){ } _ = HandlerManager.prototype = new Object_0; _.getClass$ = getClass_16; _.typeId$ = 0; _.deferredDeltas = null; _.firingDepth = 0; _.isReverseOrder = false; _.registry = null; _.source = null; function $HandlerManager$1(this$static, this$0, val$type, val$handler){ this$static.this$0 = this$0; this$static.val$type = val$type; this$static.val$handler = val$handler; return this$static; } function getClass_17(){ return Lcom_google_gwt_event_shared_HandlerManager$1_2_classLit; } function HandlerManager$1(){ } _ = HandlerManager$1.prototype = new Object_0; _.getClass$ = getClass_17; _.typeId$ = 7; _.this$0 = null; _.val$handler = null; _.val$type = null; function $HandlerManager$HandlerRegistry(this$static){ this$static.map = $HashMap(new HashMap); return this$static; } function $addHandler_0(this$static, type, handler){ var l; l = dynamicCast($get_1(this$static.map, type), 4); if (!l) { l = $ArrayList(new ArrayList); $put(this$static.map, type, l); } setCheck(l.array, l.size++, handler); } function $fireEvent_0(this$static, event_0, isReverseOrder){ var count, handler, i, type, l, l_0, l_1; type = event_0.getAssociatedType(); count = (l = dynamicCast($get_1(this$static.map, type), 4) , !l?0:l.size); if (isReverseOrder) { for (i = count - 1; i >= 0; --i) { handler = (l_0 = dynamicCast($get_1(this$static.map, type), 4) , dynamicCast((checkIndex(i, l_0.size) , l_0.array[i]), 19)); event_0.dispatch(handler); } } else { for (i = 0; i < count; ++i) { handler = (l_1 = dynamicCast($get_1(this$static.map, type), 4) , dynamicCast((checkIndex(i, l_1.size) , l_1.array[i]), 19)); event_0.dispatch(handler); } } } function getClass_18(){ return Lcom_google_gwt_event_shared_HandlerManager$HandlerRegistry_2_classLit; } function HandlerManager$HandlerRegistry(){ } _ = HandlerManager$HandlerRegistry.prototype = new Object_0; _.getClass$ = getClass_18; _.typeId$ = 0; function createFromSeed(seedType, length_0){ var array = new Array(length_0); if (seedType > 0) { var value = [null, 0, false, [0, 0]][seedType]; for (var i = 0; i < length_0; ++i) { array[i] = value; } } return array; } function getClass_19(){ return this.arrayClass$; } function initDim(arrayClass, typeId, queryId, length_0, seedType){ var result; result = createFromSeed(seedType, length_0); $clinit_37(); wrapArray(result, expandoNames_0, expandoValues_0); result.arrayClass$ = arrayClass; result.typeId$ = typeId; result.queryId$ = queryId; return result; } function initValues(arrayClass, typeId, queryId, array){ $clinit_37(); wrapArray(array, expandoNames_0, expandoValues_0); array.arrayClass$ = arrayClass; array.typeId$ = typeId; array.queryId$ = queryId; return array; } function setCheck(array, index, value){ if (value != null) { if (array.queryId$ > 0 && !canCastUnsafe(value.typeId$, array.queryId$)) { throw $ArrayStoreException(new ArrayStoreException); } if (array.queryId$ < 0 && (value.typeMarker$ == nullMethod || value.typeId$ == 2)) { throw $ArrayStoreException(new ArrayStoreException); } } return array[index] = value; } function Array_0(){ } _ = Array_0.prototype = new Object_0; _.getClass$ = getClass_19; _.typeId$ = 0; _.arrayClass$ = null; _.length = 0; _.queryId$ = 0; function $clinit_37(){ $clinit_37 = nullMethod; expandoNames_0 = []; expandoValues_0 = []; initExpandos(new Array_0, expandoNames_0, expandoValues_0); } function initExpandos(protoType, expandoNames, expandoValues){ var i = 0, value; for (var name_0 in protoType) { if (value = protoType[name_0]) { expandoNames[i] = name_0; expandoValues[i] = value; ++i; } } } function wrapArray(array, expandoNames, expandoValues){ $clinit_37(); for (var i = 0, c = expandoNames.length; i < c; ++i) { array[expandoNames[i]] = expandoValues[i]; } } var expandoNames_0, expandoValues_0; function canCast(srcId, dstId){ return srcId && !!typeIdArray[srcId][dstId]; } function canCastUnsafe(srcId, dstId){ return srcId && typeIdArray[srcId][dstId]; } function dynamicCast(src, dstId){ if (src != null && !canCastUnsafe(src.typeId$, dstId)) { throw $ClassCastException(new ClassCastException); } return src; } function dynamicCastJso(src){ if (src != null && (src.typeMarker$ == nullMethod || src.typeId$ == 2)) { throw $ClassCastException(new ClassCastException); } return src; } function instanceOf(src, dstId){ return src != null && canCast(src.typeId$, dstId); } function instanceOfJso(src){ return src != null && src.typeMarker$ != nullMethod && src.typeId$ != 2; } function throwClassCastExceptionUnlessNull(o){ if (o != null) { throw $ClassCastException(new ClassCastException); } return o; } var typeIdArray = [{}, {}, {1:1, 5:1, 6:1, 7:1}, {5:1, 20:1}, {5:1, 20:1}, {2:1, 5:1, 20:1}, {2:1, 5:1, 20:1, 28:1}, {3:1}, {19:1}, {2:1, 5:1, 20:1}, {2:1, 5:1, 20:1}, {5:1, 20:1}, {5:1, 20:1}, {2:1, 5:1, 20:1}, {5:1, 7:1, 8:1}, {2:1, 5:1, 20:1}, {2:1, 5:1, 20:1}, {2:1, 5:1, 20:1}, {5:1, 9:1}, {6:1}, {6:1}, {2:1, 5:1, 20:1}, {2:1, 5:1, 20:1}, {27:1}, {23:1}, {23:1}, {23:1}, {24:1}, {24:1}, {4:1, 5:1, 24:1}, {5:1, 25:1}, {5:1, 24:1}, {23:1}, {2:1, 5:1, 20:1, 26:1}, {5:1, 7:1, 8:1, 10:1}, {5:1, 7:1, 8:1, 11:1}, {5:1, 7:1, 8:1, 12:1}, {29:1}, {21:1}, {13:1}, {14:1}, {15:1}, {31:1}, {5:1, 20:1, 30:1}, {5:1, 20:1, 30:1}, {5:1}, {5:1, 16:1}, {5:1, 17:1}, {5:1, 18:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}, {5:1, 22:1}]; function init(){ !!$stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date).getTime(), type:'onModuleLoadStart', className:'nu.validator.htmlparser.gwt.HtmlParserModule'}); Envjs.parseHtmlDocument = parseHtmlDocument; Envjs.parseXmlDocument = parseXmlDocument; } function caught(e){ if (e != null && canCast(e.typeId$, 20)) { return e; } return $JavaScriptException(new JavaScriptException, e); } function create(valueLow, valueHigh){ var diffHigh, diffLow; valueHigh %= 1.8446744073709552E19; valueLow %= 1.8446744073709552E19; diffHigh = valueHigh % 4294967296; diffLow = Math.floor(valueLow / 4294967296) * 4294967296; valueHigh = valueHigh - diffHigh + diffLow; valueLow = valueLow - diffLow + diffHigh; while (valueLow < 0) { valueLow += 4294967296; valueHigh -= 4294967296; } while (valueLow > 4294967295) { valueLow -= 4294967296; valueHigh += 4294967296; } valueHigh = valueHigh % 1.8446744073709552E19; while (valueHigh > 9223372032559808512) { valueHigh -= 1.8446744073709552E19; } while (valueHigh < -9223372036854775808) { valueHigh += 1.8446744073709552E19; } return [valueLow, valueHigh]; } function fromDouble(value){ if (isNaN(value)) { return $clinit_44() , ZERO; } if (value < -9223372036854775808) { return $clinit_44() , MIN_VALUE; } if (value >= 9223372036854775807) { return $clinit_44() , MAX_VALUE; } if (value > 0) { return create(Math.floor(value), 0); } else { return create(Math.ceil(value), 0); } } function fromInt(value){ var rebase, result; if (value > -129 && value < 128) { rebase = value + 128; result = ($clinit_43() , boxedValues)[rebase]; result == null && (result = boxedValues[rebase] = internalFromInt(value)); return result; } return internalFromInt(value); } function internalFromInt(value){ if (value >= 0) { return [value, 0]; } else { return [value + 4294967296, -4294967296]; } } function $clinit_43(){ $clinit_43 = nullMethod; boxedValues = initDim(_3_3D_classLit, 63, 17, 256, 0); } var boxedValues; function $clinit_44(){ $clinit_44 = nullMethod; Math.log(2); MAX_VALUE = P7fffffffffffffff_longLit; MIN_VALUE = N8000000000000000_longLit; fromInt(-1); fromInt(1); fromInt(2); ZERO = fromInt(0); } var MAX_VALUE, MIN_VALUE, ZERO; function $clinit_47(){ $clinit_47 = nullMethod; timers = $ArrayList(new ArrayList); addCloseHandler(new Timer$1); } function $cancel(this$static){ this$static.isRepeating?($wnd.clearInterval(this$static.timerId) , undefined):($wnd.clearTimeout(this$static.timerId) , undefined); $remove_0(timers, this$static); } function $schedule(this$static, delayMillis){ if (delayMillis <= 0) { throw $IllegalArgumentException(new IllegalArgumentException, 'must be positive'); } $cancel(this$static); this$static.isRepeating = false; this$static.timerId = createTimeout(this$static, delayMillis); $add(timers, this$static); } function createTimeout(timer, delay){ return $wnd.setTimeout($entry(function(){ timer.fire(); } ), delay); } function fire_0(){ !this.isRepeating && $remove_0(timers, this); $run(this); } function getClass_20(){ return Lcom_google_gwt_user_client_Timer_2_classLit; } function Timer(){ } _ = Timer.prototype = new Object_0; _.fire = fire_0; _.getClass$ = getClass_20; _.typeId$ = 0; _.isRepeating = false; _.timerId = 0; var timers; function $onClose(){ while (($clinit_47() , timers).size > 0) { $cancel(dynamicCast($get_2(timers, 0), 21)); } } function getClass_21(){ return Lcom_google_gwt_user_client_Timer$1_2_classLit; } function Timer$1(){ } _ = Timer$1.prototype = new Object_0; _.getClass$ = getClass_21; _.typeId$ = 8; function addCloseHandler(handler){ maybeInitializeCloseHandlers(); return addHandler(TYPE?TYPE:(TYPE = $GwtEvent$Type(new GwtEvent$Type)), handler); } function addHandler(type, handler){ return $addHandler(getHandlers(), type, handler); } function getHandlers(){ !handlers && (handlers = $Window$WindowHandlers(new Window$WindowHandlers)); return handlers; } function maybeInitializeCloseHandlers(){ if (!closeHandlersInitialized) { $initWindowCloseHandler(); closeHandlersInitialized = true; } } function onClosing(){ var event_0; if (closeHandlersInitialized) { event_0 = ($clinit_50() , new Window$ClosingEvent); !!handlers && $fireEvent(handlers, event_0); return null; } return null; } var closeHandlersInitialized = false, handlers = null; function $clinit_50(){ $clinit_50 = nullMethod; TYPE_0 = $GwtEvent$Type(new GwtEvent$Type); } function dispatch_0(p0){ throwClassCastExceptionUnlessNull(p0); null.nullMethod(); } function getAssociatedType_0(){ return TYPE_0; } function getClass_22(){ return Lcom_google_gwt_user_client_Window$ClosingEvent_2_classLit; } function Window$ClosingEvent(){ } _ = Window$ClosingEvent.prototype = new GwtEvent; _.dispatch = dispatch_0; _.getAssociatedType = getAssociatedType_0; _.getClass$ = getClass_22; _.typeId$ = 0; var TYPE_0; function $Window$WindowHandlers(this$static){ this$static.registry = $HandlerManager$HandlerRegistry(new HandlerManager$HandlerRegistry); this$static.source = null; this$static.isReverseOrder = false; return this$static; } function getClass_23(){ return Lcom_google_gwt_user_client_Window$WindowHandlers_2_classLit; } function Window$WindowHandlers(){ } _ = Window$WindowHandlers.prototype = new HandlerManager; _.getClass$ = getClass_23; _.typeId$ = 0; function $initWindowCloseHandler(){ var oldOnBeforeUnload = $wnd.onbeforeunload; var oldOnUnload = $wnd.onunload; $wnd.onbeforeunload = function(evt){ var ret, oldRet; try { ret = $entry(onClosing)(); } finally { oldRet = oldOnBeforeUnload && oldOnBeforeUnload(evt); } if (ret != null) { return ret; } if (oldRet != null) { return oldRet; } } ; $wnd.onunload = $entry(function(evt){ try { closeHandlersInitialized && fire(getHandlers()); } finally { oldOnUnload && oldOnUnload(evt); $wnd.onresize = null; $wnd.onscroll = null; $wnd.onbeforeunload = null; $wnd.onunload = null; } } ); } function $ArrayStoreException(this$static){ $fillInStackTrace(); return this$static; } function $ArrayStoreException_0(this$static, message){ $fillInStackTrace(); this$static.detailMessage = message; return this$static; } function getClass_24(){ return Ljava_lang_ArrayStoreException_2_classLit; } function ArrayStoreException(){ } _ = ArrayStoreException.prototype = new RuntimeException; _.getClass$ = getClass_24; _.typeId$ = 10; function createForArray(packageName, className, componentType){ var clazz; clazz = new Class; clazz.typeName = packageName + className; clazz.modifiers = 4; clazz.componentType = componentType; return clazz; } function createForClass(packageName, className){ var clazz; clazz = new Class; clazz.typeName = packageName + className; return clazz; } function createForEnum(packageName, className, enumConstantsFunc){ var clazz; clazz = new Class; clazz.typeName = packageName + className; clazz.modifiers = enumConstantsFunc?8:0; return clazz; } function createForPrimitive(packageName, className){ var clazz; clazz = new Class; clazz.typeName = packageName + className; clazz.modifiers = 1; return clazz; } function getClass_25(){ return Ljava_lang_Class_2_classLit; } function toString_5(){ return ((this.modifiers & 2) != 0?'interface ':(this.modifiers & 1) != 0?'':'class ') + this.typeName; } function Class(){ } _ = Class.prototype = new Object_0; _.getClass$ = getClass_25; _.toString$ = toString_5; _.typeId$ = 0; _.componentType = null; _.modifiers = 0; _.typeName = null; function $ClassCastException(this$static){ $fillInStackTrace(); return this$static; } function getClass_26(){ return Ljava_lang_ClassCastException_2_classLit; } function ClassCastException(){ } _ = ClassCastException.prototype = new RuntimeException; _.getClass$ = getClass_26; _.typeId$ = 13; function equals_1(other){ return this === (other == null?null:other); } function getClass_27(){ return Ljava_lang_Enum_2_classLit; } function hashCode_3(){ return this.$H || (this.$H = ++sNextHashId); } function toString_6(){ return this.name_0; } function Enum(){ } _ = Enum.prototype = new Object_0; _.equals$ = equals_1; _.getClass$ = getClass_27; _.hashCode$ = hashCode_3; _.toString$ = toString_6; _.typeId$ = 14; _.name_0 = null; _.ordinal = 0; function $IllegalArgumentException(this$static, message){ $fillInStackTrace(); this$static.detailMessage = message; return this$static; } function getClass_28(){ return Ljava_lang_IllegalArgumentException_2_classLit; } function IllegalArgumentException(){ } _ = IllegalArgumentException.prototype = new RuntimeException; _.getClass$ = getClass_28; _.typeId$ = 15; function $IndexOutOfBoundsException(this$static){ $fillInStackTrace(); return this$static; } function $IndexOutOfBoundsException_0(this$static, message){ $fillInStackTrace(); this$static.detailMessage = message; return this$static; } function getClass_29(){ return Ljava_lang_IndexOutOfBoundsException_2_classLit; } function IndexOutOfBoundsException(){ } _ = IndexOutOfBoundsException.prototype = new RuntimeException; _.getClass$ = getClass_29; _.typeId$ = 16; function toPowerOfTwoString(value, shift){ var bitMask, buf, bufSize, digits, pos; bufSize = ~~(32 / shift); bitMask = (1 << shift) - 1; buf = initDim(_3C_classLit, 46, -1, bufSize, 1); digits = ($clinit_70() , digits_0); pos = bufSize - 1; if (value >= 0) { while (value > bitMask) { buf[pos--] = digits[value & bitMask]; value >>= shift; } } else { while (pos > 0) { buf[pos--] = digits[value & bitMask]; value >>= shift; } } buf[pos] = digits[value & bitMask]; return __valueOf(buf, pos, bufSize); } function $NullPointerException(this$static){ $fillInStackTrace(); return this$static; } function getClass_30(){ return Ljava_lang_NullPointerException_2_classLit; } function NullPointerException(){ } _ = NullPointerException.prototype = new RuntimeException; _.getClass$ = getClass_30; _.typeId$ = 17; function $clinit_70(){ $clinit_70 = nullMethod; digits_0 = initValues(_3C_classLit, 46, -1, [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122]); } var digits_0; function $StackTraceElement(this$static, className, methodName, fileName, lineNumber){ this$static.className = className; this$static.methodName = methodName; this$static.fileName = fileName; this$static.lineNumber = lineNumber; return this$static; } function getClass_31(){ return Ljava_lang_StackTraceElement_2_classLit; } function toString_7(){ return this.className + '.' + this.methodName + '(' + this.fileName + ':' + this.lineNumber + ')'; } function StackTraceElement(){ } _ = StackTraceElement.prototype = new Object_0; _.getClass$ = getClass_31; _.toString$ = toString_7; _.typeId$ = 18; _.className = null; _.fileName = null; _.lineNumber = 0; _.methodName = null; function $equals_1(this$static, other){ if (!(other != null && canCast(other.typeId$, 1))) { return false; } return String(this$static) == other; } function $getChars(this$static, srcBegin, srcEnd, dst, dstBegin){ var srcIdx; for (srcIdx = srcBegin; srcIdx < srcEnd; ++srcIdx) { dst[dstBegin++] = this$static.charCodeAt(srcIdx); } } function $substring(this$static, beginIndex){ return this$static.substr(beginIndex, this$static.length - beginIndex); } function $toCharArray(this$static){ var charArr, n; n = this$static.length; charArr = initDim(_3C_classLit, 46, -1, n, 1); $getChars(this$static, 0, n, charArr, 0); return charArr; } function $trim(this$static){ if (this$static.length == 0 || this$static[0] > ' ' && this$static[this$static.length - 1] > ' ') { return this$static; } var r1 = this$static.replace(/^(\s*)/, ''); var r2 = r1.replace(/\s*$/, ''); return r2; } function __checkBounds(legalCount, start, end){ if (start < 0) { throw $StringIndexOutOfBoundsException(new StringIndexOutOfBoundsException, start); } if (end < start) { throw $StringIndexOutOfBoundsException(new StringIndexOutOfBoundsException, end - start); } if (end > legalCount) { throw $StringIndexOutOfBoundsException(new StringIndexOutOfBoundsException, end); } } function __valueOf(x, start, end){ x = x.slice(start, end); return String.fromCharCode.apply(null, x); } function compareTo(thisStr, otherStr){ thisStr = String(thisStr); if (thisStr == otherStr) { return 0; } return thisStr < otherStr?-1:1; } function equals_2(other){ return $equals_1(this, other); } function getClass_32(){ return Ljava_lang_String_2_classLit; } function hashCode_4(){ return getHashCode_0(this); } function toString_8(){ return this; } function valueOf_0(x, offset, count){ var end; end = offset + count; __checkBounds(x.length, offset, end); return __valueOf(x, offset, end); } _ = String.prototype; _.equals$ = equals_2; _.getClass$ = getClass_32; _.hashCode$ = hashCode_4; _.toString$ = toString_8; _.typeId$ = 2; function $clinit_73(){ $clinit_73 = nullMethod; back = {}; front = {}; } function compute(str){ var hashCode, i, n, nBatch; hashCode = 0; n = str.length; nBatch = n - 4; i = 0; while (i < nBatch) { hashCode = str.charCodeAt(i + 3) + 31 * (str.charCodeAt(i + 2) + 31 * (str.charCodeAt(i + 1) + 31 * (str.charCodeAt(i) + 31 * hashCode))) | 0; i += 4; } while (i < n) { hashCode = hashCode * 31 + str.charCodeAt(i++); } return hashCode | 0; } function getHashCode_0(str){ $clinit_73(); var key = ':' + str; var result = front[key]; if (result != null) { return result; } result = back[key]; result == null && (result = compute(str)); increment(); return front[key] = result; } function increment(){ if (count_0 == 256) { back = front; front = {}; count_0 = 0; } ++count_0; } var back, count_0 = 0, front; function $StringBuffer(this$static){ this$static.impl = new StringBufferImplAppend; return this$static; } function $append_0(this$static, x){ this$static.impl.string += x; return this$static; } function getClass_33(){ return Ljava_lang_StringBuffer_2_classLit; } function toString_9(){ return this.impl.string; } function StringBuffer(){ } _ = StringBuffer.prototype = new Object_0; _.getClass$ = getClass_33; _.toString$ = toString_9; _.typeId$ = 19; function $StringBuilder(this$static){ this$static.impl = new StringBufferImplAppend; return this$static; } function $append_1(this$static, x){ this$static.impl.string += String.fromCharCode(x); return this$static; } function $append_2(this$static, x){ this$static.impl.string += String.fromCharCode.apply(null, x); return this$static; } function $getChars_0(this$static, srcStart, srcEnd, dst, dstStart){ var s; __checkBounds(this$static.impl.string.length, srcStart, srcEnd); __checkBounds(dst.length, dstStart, dstStart + (srcEnd - srcStart)); s = this$static.impl.string; while (srcStart < srcEnd) { dst[dstStart++] = s.charCodeAt(srcStart++); } } function $setLength(this$static, newLength){ var oldLength; oldLength = this$static.impl.string.length; newLength < oldLength?$replace(this$static.impl, newLength, oldLength, ''):newLength > oldLength && $append_2(this$static, initDim(_3C_classLit, 46, -1, newLength - oldLength, 1)); } function getClass_34(){ return Ljava_lang_StringBuilder_2_classLit; } function toString_10(){ return this.impl.string; } function StringBuilder(){ } _ = StringBuilder.prototype = new Object_0; _.getClass$ = getClass_34; _.toString$ = toString_10; _.typeId$ = 20; function $StringIndexOutOfBoundsException(this$static, index){ $fillInStackTrace(); this$static.detailMessage = 'String index out of range: ' + index; return this$static; } function getClass_35(){ return Ljava_lang_StringIndexOutOfBoundsException_2_classLit; } function StringIndexOutOfBoundsException(){ } _ = StringIndexOutOfBoundsException.prototype = new IndexOutOfBoundsException; _.getClass$ = getClass_35; _.typeId$ = 21; function arrayTypeMatch(srcComp, destComp){ if ((srcComp.modifiers & 1) != 0) { return srcComp == destComp; } else { return (destComp.modifiers & 1) == 0; } } function arraycopy(src, srcOfs, dest, destOfs, len){ var destArray, destComp, destEnd, destType, destlen, srcArray, srcComp, srcType, srclen; if (src == null || dest == null) { throw $NullPointerException(new NullPointerException); } srcType = src.typeMarker$ == nullMethod || src.typeId$ == 2?src.getClass$():Lcom_google_gwt_core_client_JavaScriptObject_2_classLit; destType = dest.typeMarker$ == nullMethod || dest.typeId$ == 2?dest.getClass$():Lcom_google_gwt_core_client_JavaScriptObject_2_classLit; if ((srcType.modifiers & 4) == 0 || (destType.modifiers & 4) == 0) { throw $ArrayStoreException_0(new ArrayStoreException, 'Must be array types'); } srcComp = srcType.componentType; destComp = destType.componentType; if (!arrayTypeMatch(srcComp, destComp)) { throw $ArrayStoreException_0(new ArrayStoreException, 'Array types must match'); } srclen = src.length; destlen = dest.length; if (srcOfs < 0 || destOfs < 0 || len < 0 || srcOfs + len > srclen || destOfs + len > destlen) { throw $IndexOutOfBoundsException(new IndexOutOfBoundsException); } if (((srcComp.modifiers & 1) == 0 || (srcComp.modifiers & 4) != 0) && srcType != destType) { srcArray = dynamicCast(src, 22); destArray = dynamicCast(dest, 22); if ((src == null?null:src) === (dest == null?null:dest) && srcOfs < destOfs) { srcOfs += len; for (destEnd = destOfs + len; destEnd-- > destOfs;) { setCheck(destArray, destEnd, srcArray[--srcOfs]); } } else { for (destEnd = destOfs + len; destOfs < destEnd;) { setCheck(destArray, destOfs++, srcArray[srcOfs++]); } } } else { Array.prototype.splice.apply(dest, [destOfs, len].concat(src.slice(srcOfs, srcOfs + len))); } } function $UnsupportedOperationException(this$static, message){ $fillInStackTrace(); this$static.detailMessage = message; return this$static; } function getClass_36(){ return Ljava_lang_UnsupportedOperationException_2_classLit; } function UnsupportedOperationException(){ } _ = UnsupportedOperationException.prototype = new RuntimeException; _.getClass$ = getClass_36; _.typeId$ = 22; function $advanceToFind(iter, o){ var t; while (iter.hasNext()) { t = iter.next_0(); if (o == null?t == null:equals__devirtual$(o, t)) { return iter; } } return null; } function add(o){ throw $UnsupportedOperationException(new UnsupportedOperationException, 'Add not supported on this collection'); } function contains(o){ var iter; iter = $advanceToFind(this.iterator(), o); return !!iter; } function getClass_37(){ return Ljava_util_AbstractCollection_2_classLit; } function toString_11(){ var comma, iter, sb; sb = $StringBuffer(new StringBuffer); comma = null; sb.impl.string += '['; iter = this.iterator(); while (iter.hasNext()) { comma != null?(sb.impl.string += comma , undefined):(comma = ', '); $append_0(sb, '' + iter.next_0()); } sb.impl.string += ']'; return sb.impl.string; } function AbstractCollection(){ } _ = AbstractCollection.prototype = new Object_0; _.add = add; _.contains = contains; _.getClass$ = getClass_37; _.toString$ = toString_11; _.typeId$ = 0; function equals_3(obj){ var entry, entry$iterator, otherKey, otherMap, otherValue; if ((obj == null?null:obj) === this) { return true; } if (!(obj != null && canCast(obj.typeId$, 25))) { return false; } otherMap = dynamicCast(obj, 25); if (dynamicCast(this, 25).size != otherMap.size) { return false; } for (entry$iterator = $AbstractHashMap$EntrySetIterator(new AbstractHashMap$EntrySetIterator, $AbstractHashMap$EntrySet(new AbstractHashMap$EntrySet, otherMap).this$0); $hasNext_0(entry$iterator.iter);) { entry = dynamicCast($next_0(entry$iterator.iter), 23); otherKey = entry.getKey(); otherValue = entry.getValue(); if (!(otherKey == null?dynamicCast(this, 25).nullSlotLive:otherKey != null && canCast(otherKey.typeId$, 1)?$hasStringValue(dynamicCast(this, 25), dynamicCast(otherKey, 1)):$hasHashValue(dynamicCast(this, 25), otherKey, ~~hashCode__devirtual$(otherKey)))) { return false; } if (!equalsWithNullCheck(otherValue, otherKey == null?dynamicCast(this, 25).nullSlot:otherKey != null && canCast(otherKey.typeId$, 1)?dynamicCast(this, 25).stringMap[':' + dynamicCast(otherKey, 1)]:$getHashValue(dynamicCast(this, 25), otherKey, ~~hashCode__devirtual$(otherKey)))) { return false; } } return true; } function getClass_38(){ return Ljava_util_AbstractMap_2_classLit; } function hashCode_5(){ var entry, entry$iterator, hashCode; hashCode = 0; for (entry$iterator = $AbstractHashMap$EntrySetIterator(new AbstractHashMap$EntrySetIterator, $AbstractHashMap$EntrySet(new AbstractHashMap$EntrySet, dynamicCast(this, 25)).this$0); $hasNext_0(entry$iterator.iter);) { entry = dynamicCast($next_0(entry$iterator.iter), 23); hashCode += entry.hashCode$(); hashCode = ~~hashCode; } return hashCode; } function toString_12(){ var comma, entry, iter, s; s = '{'; comma = false; for (iter = $AbstractHashMap$EntrySetIterator(new AbstractHashMap$EntrySetIterator, $AbstractHashMap$EntrySet(new AbstractHashMap$EntrySet, dynamicCast(this, 25)).this$0); $hasNext_0(iter.iter);) { entry = dynamicCast($next_0(iter.iter), 23); comma?(s += ', '):(comma = true); s += '' + entry.getKey(); s += '='; s += '' + entry.getValue(); } return s + '}'; } function AbstractMap(){ } _ = AbstractMap.prototype = new Object_0; _.equals$ = equals_3; _.getClass$ = getClass_38; _.hashCode$ = hashCode_5; _.toString$ = toString_12; _.typeId$ = 0; function $addAllHashEntries(this$static, dest){ var hashCodeMap = this$static.hashCodeMap; for (var hashCode in hashCodeMap) { if (hashCode == parseInt(hashCode)) { var array = hashCodeMap[hashCode]; for (var i = 0, c = array.length; i < c; ++i) { dest.add(array[i]); } } } } function $addAllStringEntries(this$static, dest){ var stringMap = this$static.stringMap; for (var key in stringMap) { if (key.charCodeAt(0) == 58) { var entry = new_$(this$static, key.substring(1)); dest.add(entry); } } } function $clearImpl(this$static){ this$static.hashCodeMap = []; this$static.stringMap = {}; this$static.nullSlotLive = false; this$static.nullSlot = null; this$static.size = 0; } function $containsKey(this$static, key){ return key == null?this$static.nullSlotLive:key != null && canCast(key.typeId$, 1)?$hasStringValue(this$static, dynamicCast(key, 1)):$hasHashValue(this$static, key, ~~hashCode__devirtual$(key)); } function $get_1(this$static, key){ return key == null?this$static.nullSlot:key != null && canCast(key.typeId$, 1)?this$static.stringMap[':' + dynamicCast(key, 1)]:$getHashValue(this$static, key, ~~hashCode__devirtual$(key)); } function $getHashValue(this$static, key, hashCode){ var array = this$static.hashCodeMap[hashCode]; if (array) { for (var i = 0, c = array.length; i < c; ++i) { var entry = array[i]; var entryKey = entry.getKey(); if (this$static.equalsBridge(key, entryKey)) { return entry.getValue(); } } } return null; } function $hasHashValue(this$static, key, hashCode){ var array = this$static.hashCodeMap[hashCode]; if (array) { for (var i = 0, c = array.length; i < c; ++i) { var entry = array[i]; var entryKey = entry.getKey(); if (this$static.equalsBridge(key, entryKey)) { return true; } } } return false; } function $hasStringValue(this$static, key){ return ':' + key in this$static.stringMap; } function $put(this$static, key, value){ return !key?$putNullSlot(this$static, value):$putHashValue(this$static, key, value, ~~key.index); } function $putHashValue(this$static, key, value, hashCode){ var array = this$static.hashCodeMap[hashCode]; if (array) { for (var i = 0, c = array.length; i < c; ++i) { var entry = array[i]; var entryKey = entry.getKey(); if (this$static.equalsBridge(key, entryKey)) { var previous = entry.getValue(); entry.setValue(value); return previous; } } } else { array = this$static.hashCodeMap[hashCode] = []; } var entry = $MapEntryImpl(new MapEntryImpl, key, value); array.push(entry); ++this$static.size; return null; } function $putNullSlot(this$static, value){ var result; result = this$static.nullSlot; this$static.nullSlot = value; if (!this$static.nullSlotLive) { this$static.nullSlotLive = true; ++this$static.size; } return result; } function $putStringValue(this$static, key, value){ var result, stringMap = this$static.stringMap; key = ':' + key; key in stringMap?(result = stringMap[key]):++this$static.size; stringMap[key] = value; return result; } function equalsBridge(value1, value2){ return (value1 == null?null:value1) === (value2 == null?null:value2) || value1 != null && equals__devirtual$(value1, value2); } function getClass_39(){ return Ljava_util_AbstractHashMap_2_classLit; } function AbstractHashMap(){ } _ = AbstractHashMap.prototype = new AbstractMap; _.equalsBridge = equalsBridge; _.getClass$ = getClass_39; _.typeId$ = 0; _.hashCodeMap = null; _.nullSlot = null; _.nullSlotLive = false; _.size = 0; _.stringMap = null; function equals_4(o){ var iter, other, otherItem; if ((o == null?null:o) === this) { return true; } if (!(o != null && canCast(o.typeId$, 27))) { return false; } other = dynamicCast(o, 27); if (other.this$0.size != this.size_0()) { return false; } for (iter = $AbstractHashMap$EntrySetIterator(new AbstractHashMap$EntrySetIterator, other.this$0); $hasNext_0(iter.iter);) { otherItem = dynamicCast($next_0(iter.iter), 23); if (!this.contains(otherItem)) { return false; } } return true; } function getClass_40(){ return Ljava_util_AbstractSet_2_classLit; } function hashCode_6(){ var hashCode, iter, next; hashCode = 0; for (iter = this.iterator(); iter.hasNext();) { next = iter.next_0(); if (next != null) { hashCode += hashCode__devirtual$(next); hashCode = ~~hashCode; } } return hashCode; } function AbstractSet(){ } _ = AbstractSet.prototype = new AbstractCollection; _.equals$ = equals_4; _.getClass$ = getClass_40; _.hashCode$ = hashCode_6; _.typeId$ = 0; function $AbstractHashMap$EntrySet(this$static, this$0){ this$static.this$0 = this$0; return this$static; } function contains_0(o){ var entry, key, value; if (o != null && canCast(o.typeId$, 23)) { entry = dynamicCast(o, 23); key = entry.getKey(); if ($containsKey(this.this$0, key)) { value = $get_1(this.this$0, key); return $equals_2(entry.getValue(), value); } } return false; } function getClass_41(){ return Ljava_util_AbstractHashMap$EntrySet_2_classLi