Index: src/site/samples/google_maps/example/index.dart.js |
diff --git a/src/site/samples/google_maps/example/index.dart.js b/src/site/samples/google_maps/example/index.dart.js |
deleted file mode 100644 |
index 96f9580cd8a58ce5264857917d3eb688ba0f1108..0000000000000000000000000000000000000000 |
--- a/src/site/samples/google_maps/example/index.dart.js |
+++ /dev/null |
@@ -1,3967 +0,0 @@ |
-// Generated by dart2js, the Dart to JavaScript compiler. |
-// The code supports the following hooks: |
-// dartPrint(message) - if this function is defined it is called |
-// instead of the Dart [print] method. |
-// dartMainRunner(main) - if this function is defined, the Dart [main] |
-// method will not be invoked directly. |
-// Instead, a closure that will invoke [main] is |
-// passed to [dartMainRunner]. |
-(function($) { |
-var A = {}; |
-delete A.x; |
-var B = {}; |
-delete B.x; |
-var C = {}; |
-delete C.x; |
-var D = {}; |
-delete D.x; |
-var E = {}; |
-delete E.x; |
-var F = {}; |
-delete F.x; |
-var G = {}; |
-delete G.x; |
-var H = {}; |
-delete H.x; |
-var J = {}; |
-delete J.x; |
-var K = {}; |
-delete K.x; |
-var L = {}; |
-delete L.x; |
-var M = {}; |
-delete M.x; |
-var N = {}; |
-delete N.x; |
-var O = {}; |
-delete O.x; |
-var P = {}; |
-delete P.x; |
-var Q = {}; |
-delete Q.x; |
-var R = {}; |
-delete R.x; |
-var S = {}; |
-delete S.x; |
-var T = {}; |
-delete T.x; |
-var U = {}; |
-delete U.x; |
-var V = {}; |
-delete V.x; |
-var W = {}; |
-delete W.x; |
-var X = {}; |
-delete X.x; |
-var Y = {}; |
-delete Y.x; |
-var Z = {}; |
-delete Z.x; |
-function Isolate() {} |
-init(); |
- |
-$ = Isolate.$isolateProperties; |
-var $$ = {}; |
- |
-// Native classes |
-// Method closures |
-$$.Closure$0 = [H, {"": "Closure;call$0,$name"}]; |
- |
-$$.Closure$7 = [H, {"": "Closure;call$7,$name"}]; |
- |
-$$.Closure$2 = [P, {"": "Closure;call$2,$name"}]; |
- |
-$$.Closure$1 = [P, {"": "Closure;call$1,$name"}]; |
- |
-$$.Closure$4 = [P, {"": "Closure;call$4,$name"}]; |
- |
-(function (reflectionData) { |
- function map(x){x={x:x};delete x.x;return x} |
- if (!init.libraries) init.libraries = []; |
- if (!init.mangledNames) init.mangledNames = map(); |
- if (!init.mangledGlobalNames) init.mangledGlobalNames = map(); |
- if (!init.statics) init.statics = map(); |
- if (!init.typeInformation) init.typeInformation = map(); |
- if (!init.globalFunctions) init.globalFunctions = map(); |
- var libraries = init.libraries; |
- var mangledNames = init.mangledNames; |
- var mangledGlobalNames = init.mangledGlobalNames; |
- var hasOwnProperty = Object.prototype.hasOwnProperty; |
- var length = reflectionData.length; |
- for (var i = 0; i < length; i++) { |
- var data = reflectionData[i]; |
- var name = data[0]; |
- var uri = data[1]; |
- var metadata = data[2]; |
- var globalObject = data[3]; |
- var descriptor = data[4]; |
- var isRoot = !!data[5]; |
- var fields = descriptor && descriptor[""]; |
- var classes = []; |
- var functions = []; |
- function processStatics(descriptor) { |
- for (var property in descriptor) { |
- if (!hasOwnProperty.call(descriptor, property)) continue; |
- if (property === "") continue; |
- var element = descriptor[property]; |
- var firstChar = property.substring(0, 1); |
- var previousProperty; |
- if (firstChar === "+") { |
- mangledGlobalNames[previousProperty] = property.substring(1); |
- if (descriptor[property] == 1) descriptor[previousProperty].$reflectable = 1; |
- if (element && element.length) init.typeInformation[previousProperty] = element; |
- } else if (firstChar === "@") { |
- property = property.substring(1); |
- $[property]["@"] = element; |
- } else if (firstChar === "*") { |
- globalObject[previousProperty].$defaultValues = element; |
- var optionalMethods = descriptor.$methodsWithOptionalArguments; |
- if (!optionalMethods) { |
- descriptor.$methodsWithOptionalArguments = optionalMethods = {} |
- } |
- optionalMethods[property] = previousProperty; |
- } else if (typeof element === "function") { |
- globalObject[previousProperty = property] = element; |
- functions.push(property); |
- init.globalFunctions[property] = element; |
- } else { |
- previousProperty = property; |
- var newDesc = {}; |
- var previousProp; |
- for (var prop in element) { |
- if (!hasOwnProperty.call(element, prop)) continue; |
- firstChar = prop.substring(0, 1); |
- if (prop === "static") { |
- processStatics(init.statics[property] = element[prop]); |
- } else if (firstChar === "+") { |
- mangledNames[previousProp] = prop.substring(1); |
- if (element[prop] == 1) element[previousProp].$reflectable = 1; |
- } else if (firstChar === "@" && prop !== "@") { |
- newDesc[prop.substring(1)]["@"] = element[prop]; |
- } else if (firstChar === "*") { |
- newDesc[previousProp].$defaultValues = element[prop]; |
- var optionalMethods = newDesc.$methodsWithOptionalArguments; |
- if (!optionalMethods) { |
- newDesc.$methodsWithOptionalArguments = optionalMethods={} |
- } |
- optionalMethods[prop] = previousProp; |
- } else { |
- newDesc[previousProp = prop] = element[prop]; |
- } |
- } |
- $$[property] = [globalObject, newDesc]; |
- classes.push(property); |
- } |
- } |
- } |
- processStatics(descriptor); |
- libraries.push([name, uri, classes, functions, metadata, fields, isRoot, |
- globalObject]); |
- } |
-})([ |
-["_foreign_helper", "dart:_foreign_helper", , H, { |
-JS_CONST: {"": "Object;code"}}], |
-["_interceptors", "dart:_interceptors", , J, { |
-getInterceptor: function(object) { |
- return void 0; |
-}, |
- |
-makeDispatchRecord: function(interceptor, proto, extension, indexability) { |
- return {i: interceptor, p: proto, e: extension, x: indexability}; |
-}, |
- |
-getNativeInterceptor: function(object) { |
- var record, proto, objectProto, interceptor; |
- record = object[init.dispatchPropertyName]; |
- if (record == null) |
- if ($.initNativeDispatchFlag == null) { |
- H.initNativeDispatch(); |
- record = object[init.dispatchPropertyName]; |
- } |
- if (record != null) { |
- proto = record.p; |
- if (false === proto) |
- return record.i; |
- if (true === proto) |
- return object; |
- objectProto = Object.getPrototypeOf(object); |
- if (proto === objectProto) |
- return record.i; |
- if (record.e === objectProto) |
- throw H.wrapException(P.UnimplementedError$("Return interceptor for " + H.S(proto(object, record)))); |
- } |
- interceptor = H.lookupAndCacheInterceptor(object); |
- if (interceptor == null) |
- return C.UnknownJavaScriptObject_methods; |
- return interceptor; |
-}, |
- |
-Interceptor: {"": "Object;", |
- $eq: function(receiver, other) { |
- return receiver === other; |
- }, |
- get$hashCode: function(receiver) { |
- return H.Primitives_objectHashCode(receiver); |
- }, |
- toString$0: function(receiver) { |
- return H.Primitives_objectToString(receiver); |
- }, |
- noSuchMethod$1: function(receiver, invocation) { |
- throw H.wrapException(P.NoSuchMethodError$(receiver, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments(), null)); |
- }, |
- "%": "DOMError|FileError|MediaError|MediaKeyError|NavigatorUserMediaError|PositionError|SQLError" |
-}, |
- |
-JSBool: {"": "bool/Interceptor;", |
- toString$0: function(receiver) { |
- return String(receiver); |
- }, |
- get$hashCode: function(receiver) { |
- return receiver ? 519018 : 218159; |
- }, |
- $isbool: true |
-}, |
- |
-JSNull: {"": "Interceptor;", |
- $eq: function(receiver, other) { |
- return null == other; |
- }, |
- toString$0: function(receiver) { |
- return "null"; |
- }, |
- get$hashCode: function(receiver) { |
- return 0; |
- } |
-}, |
- |
-JavaScriptObject: {"": "Interceptor;", |
- get$hashCode: function(_) { |
- return 0; |
- } |
-}, |
- |
-PlainJavaScriptObject: {"": "JavaScriptObject;"}, |
- |
-UnknownJavaScriptObject: {"": "JavaScriptObject;"}, |
- |
-JSArray: {"": "List/Interceptor;", |
- add$1: function(receiver, value) { |
- if (!!receiver.fixed$length) |
- H.throwExpression(P.UnsupportedError$("add")); |
- receiver.push(value); |
- }, |
- addAll$1: function(receiver, collection) { |
- var t1; |
- for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();) |
- this.add$1(receiver, t1.get$current()); |
- }, |
- forEach$1: function(receiver, f) { |
- return H.IterableMixinWorkaround_forEach(receiver, f); |
- }, |
- map$1: function(receiver, f) { |
- var t1 = new H.MappedListIterable(receiver, f); |
- H.setRuntimeTypeInfo(t1, [null, null]); |
- return t1; |
- }, |
- elementAt$1: function(receiver, index) { |
- if (index >>> 0 !== index || index >= receiver.length) |
- throw H.ioore(receiver, index); |
- return receiver[index]; |
- }, |
- toString$0: function(receiver) { |
- return H.IterableMixinWorkaround_toStringIterable(receiver, "[", "]"); |
- }, |
- get$iterator: function(receiver) { |
- return new H.ListIterator(receiver, receiver.length, 0, null); |
- }, |
- get$hashCode: function(receiver) { |
- return H.Primitives_objectHashCode(receiver); |
- }, |
- get$length: function(receiver) { |
- return receiver.length; |
- }, |
- $index: function(receiver, index) { |
- if (typeof index !== "number" || Math.floor(index) !== index) |
- throw H.wrapException(new P.ArgumentError(index)); |
- if (index >= receiver.length || index < 0) |
- throw H.wrapException(P.RangeError$value(index)); |
- return receiver[index]; |
- }, |
- $isList: true, |
- $asIterable: null, |
- $isEfficientLength: true, |
- $isIterable: true |
-}, |
- |
-JSMutableArray: {"": "JSArray;", |
- $asJSArray: function() { |
- return [null]; |
- }, |
- $asIterable: function() { |
- return [null]; |
- } |
-}, |
- |
-JSFixedArray: {"": "JSMutableArray;"}, |
- |
-JSExtendableArray: {"": "JSMutableArray;", $isJSExtendableArray: true}, |
- |
-JSNumber: {"": "num/Interceptor;", |
- abs$0: function(receiver) { |
- return Math.abs(receiver); |
- }, |
- toInt$0: function(receiver) { |
- var t1; |
- if (receiver >= -2147483648 && receiver <= 2147483647) |
- return receiver | 0; |
- if (isFinite(receiver)) { |
- t1 = receiver < 0 ? Math.ceil(receiver) : Math.floor(receiver); |
- return t1 + 0; |
- } |
- throw H.wrapException(P.UnsupportedError$('' + receiver)); |
- }, |
- toString$0: function(receiver) { |
- if (receiver === 0 && 1 / receiver < 0) |
- return "-0.0"; |
- else |
- return "" + receiver; |
- }, |
- get$hashCode: function(receiver) { |
- return receiver & 0x1FFFFFFF; |
- }, |
- $sub: function(receiver, other) { |
- return receiver - other; |
- }, |
- $shr: function(receiver, other) { |
- if (other < 0) |
- throw H.wrapException(new P.ArgumentError(other)); |
- if (receiver > 0) { |
- if (other > 31) |
- return 0; |
- return receiver >>> other; |
- } |
- if (other > 31) |
- other = 31; |
- return receiver >> other >>> 0; |
- }, |
- $lt: function(receiver, other) { |
- if (typeof other !== "number") |
- throw H.wrapException(new P.ArgumentError(other)); |
- return receiver < other; |
- }, |
- $gt: function(receiver, other) { |
- if (typeof other !== "number") |
- throw H.wrapException(new P.ArgumentError(other)); |
- return receiver > other; |
- }, |
- $ge: function(receiver, other) { |
- if (typeof other !== "number") |
- throw H.wrapException(new P.ArgumentError(other)); |
- return receiver >= other; |
- }, |
- $isnum: true, |
- static: { |
-"": "JSNumber__MIN_INT32,JSNumber__MAX_INT32", |
-} |
- |
-}, |
- |
-JSInt: {"": "int/JSNumber;", $isnum: true, $isint: true}, |
- |
-JSDouble: {"": "double/JSNumber;", $isnum: true}, |
- |
-JSString: {"": "String/Interceptor;", |
- codeUnitAt$1: function(receiver, index) { |
- if (index < 0) |
- throw H.wrapException(P.RangeError$value(index)); |
- if (index >= receiver.length) |
- throw H.wrapException(P.RangeError$value(index)); |
- return receiver.charCodeAt(index); |
- }, |
- substring$2: function(receiver, startIndex, endIndex) { |
- var t1; |
- if (typeof startIndex !== "number" || Math.floor(startIndex) !== startIndex) |
- H.throwExpression(new P.ArgumentError(startIndex)); |
- if (endIndex == null) |
- endIndex = receiver.length; |
- if (typeof endIndex !== "number" || Math.floor(endIndex) !== endIndex) |
- H.throwExpression(new P.ArgumentError(endIndex)); |
- t1 = J.getInterceptor$n(startIndex); |
- if (t1.$lt(startIndex, 0)) |
- throw H.wrapException(P.RangeError$value(startIndex)); |
- if (t1.$gt(startIndex, endIndex)) |
- throw H.wrapException(P.RangeError$value(startIndex)); |
- if (J.$gt$n(endIndex, receiver.length)) |
- throw H.wrapException(P.RangeError$value(endIndex)); |
- return receiver.substring(startIndex, endIndex); |
- }, |
- substring$1: function($receiver, startIndex) { |
- return this.substring$2($receiver, startIndex, null); |
- }, |
- get$isEmpty: function(receiver) { |
- return receiver.length === 0; |
- }, |
- toString$0: function(receiver) { |
- return receiver; |
- }, |
- get$hashCode: function(receiver) { |
- var t1, hash, i; |
- for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) { |
- hash = 536870911 & hash + receiver.charCodeAt(i); |
- hash = 536870911 & hash + ((524287 & hash) << 10 >>> 0); |
- hash ^= hash >> 6; |
- } |
- hash = 536870911 & hash + ((67108863 & hash) << 3 >>> 0); |
- hash ^= hash >> 11; |
- return 536870911 & hash + ((16383 & hash) << 15 >>> 0); |
- }, |
- get$length: function(receiver) { |
- return receiver.length; |
- }, |
- $index: function(receiver, index) { |
- throw H.wrapException(new P.ArgumentError(index)); |
- }, |
- $isString: true |
-}}], |
-["_js_helper", "dart:_js_helper", , H, { |
-isJsIndexable: function(object, record) { |
- var result, t1; |
- if (record != null) { |
- result = record.x; |
- if (result != null) |
- return result; |
- } |
- t1 = J.getInterceptor(object); |
- return typeof object === "object" && object !== null && !!t1.$isJavaScriptIndexingBehavior; |
-}, |
- |
-S: function(value) { |
- var res; |
- if (typeof value === "string") |
- return value; |
- if (typeof value === "number") { |
- if (value !== 0) |
- return "" + value; |
- } else if (true === value) |
- return "true"; |
- else if (false === value) |
- return "false"; |
- else if (value == null) |
- return "null"; |
- res = J.toString$0(value); |
- if (typeof res !== "string") |
- throw H.wrapException(new P.ArgumentError(value)); |
- return res; |
-}, |
- |
-Primitives_objectHashCode: function(object) { |
- var hash = object.$identityHash; |
- if (hash == null) { |
- hash = Math.random() * 0x3fffffff | 0; |
- object.$identityHash = hash; |
- } |
- return hash; |
-}, |
- |
-Primitives_objectTypeName: function(object) { |
- var $name, decompiled, t1; |
- $name = C.JS_CONST_86y(J.getInterceptor(object)); |
- if ($name === "Object") { |
- decompiled = String(object.constructor).match(/^\s*function\s*(\S*)\s*\(/)[1]; |
- if (typeof decompiled === "string") |
- $name = decompiled; |
- } |
- t1 = J.getInterceptor$s($name); |
- if (t1.codeUnitAt$1($name, 0) === 36) |
- $name = t1.substring$1($name, 1); |
- t1 = H.getRuntimeTypeInfo(object); |
- return H.S($name) + H.joinArguments(t1, 0, null); |
-}, |
- |
-Primitives_objectToString: function(object) { |
- return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; |
-}, |
- |
-Primitives_newFixedList: function($length) { |
- var result = new Array($length); |
- result.fixed$length = true; |
- return result; |
-}, |
- |
-Primitives__fromCharCodeApply: function(array) { |
- var end, t1, result, i, subarray, t2; |
- end = array.length; |
- for (t1 = end <= 500, result = "", i = 0; i < end; i += 500) { |
- if (t1) |
- subarray = array; |
- else { |
- t2 = i + 500; |
- t2 = t2 < end ? t2 : end; |
- subarray = array.slice(i, t2); |
- } |
- result += String.fromCharCode.apply(null, subarray); |
- } |
- return result; |
-}, |
- |
-Primitives_stringFromCodePoints: function(codePoints) { |
- var a, t1, i; |
- a = []; |
- a.$builtinTypeInfo = [J.JSInt]; |
- for (t1 = new H.ListIterator(codePoints, codePoints.length, 0, null); t1.moveNext$0();) { |
- i = t1._current; |
- if (typeof i !== "number" || Math.floor(i) !== i) |
- throw H.wrapException(new P.ArgumentError(i)); |
- if (i <= 65535) |
- a.push(i); |
- else if (i <= 1114111) { |
- a.push(55296 + (C.JSInt_methods.$shr(i - 65536, 10) & 1023)); |
- a.push(56320 + (i & 1023)); |
- } else |
- throw H.wrapException(new P.ArgumentError(i)); |
- } |
- return H.Primitives__fromCharCodeApply(a); |
-}, |
- |
-Primitives_stringFromCharCodes: function(charCodes) { |
- var t1, i; |
- for (t1 = new H.ListIterator(charCodes, charCodes.length, 0, null); t1.moveNext$0();) { |
- i = t1._current; |
- if (typeof i !== "number" || Math.floor(i) !== i) |
- throw H.wrapException(new P.ArgumentError(i)); |
- if (i < 0) |
- throw H.wrapException(new P.ArgumentError(i)); |
- if (i > 65535) |
- return H.Primitives_stringFromCodePoints(charCodes); |
- } |
- return H.Primitives__fromCharCodeApply(charCodes); |
-}, |
- |
-Primitives_lazyAsJsDate: function(receiver) { |
- if (receiver.date === void 0) |
- receiver.date = new Date(receiver.millisecondsSinceEpoch); |
- return receiver.date; |
-}, |
- |
-Primitives_getYear: function(receiver) { |
- return receiver.isUtc ? H.Primitives_lazyAsJsDate(receiver).getUTCFullYear() + 0 : H.Primitives_lazyAsJsDate(receiver).getFullYear() + 0; |
-}, |
- |
-Primitives_getMonth: function(receiver) { |
- return receiver.isUtc ? H.Primitives_lazyAsJsDate(receiver).getUTCMonth() + 1 : H.Primitives_lazyAsJsDate(receiver).getMonth() + 1; |
-}, |
- |
-Primitives_getDay: function(receiver) { |
- return receiver.isUtc ? H.Primitives_lazyAsJsDate(receiver).getUTCDate() + 0 : H.Primitives_lazyAsJsDate(receiver).getDate() + 0; |
-}, |
- |
-Primitives_getHours: function(receiver) { |
- return receiver.isUtc ? H.Primitives_lazyAsJsDate(receiver).getUTCHours() + 0 : H.Primitives_lazyAsJsDate(receiver).getHours() + 0; |
-}, |
- |
-Primitives_getMinutes: function(receiver) { |
- return receiver.isUtc ? H.Primitives_lazyAsJsDate(receiver).getUTCMinutes() + 0 : H.Primitives_lazyAsJsDate(receiver).getMinutes() + 0; |
-}, |
- |
-Primitives_getSeconds: function(receiver) { |
- return receiver.isUtc ? H.Primitives_lazyAsJsDate(receiver).getUTCSeconds() + 0 : H.Primitives_lazyAsJsDate(receiver).getSeconds() + 0; |
-}, |
- |
-Primitives_getMilliseconds: function(receiver) { |
- return receiver.isUtc ? H.Primitives_lazyAsJsDate(receiver).getUTCMilliseconds() + 0 : H.Primitives_lazyAsJsDate(receiver).getMilliseconds() + 0; |
-}, |
- |
-Primitives_applyFunction: function($function, positionalArguments, namedArguments) { |
- var t1, buffer, $arguments, allNamedArguments, listOfNamedArguments, t2, t3, t4, selectorName, jsFunction; |
- t1 = {}; |
- t1.argumentCount_0 = 0; |
- buffer = P.StringBuffer$(""); |
- $arguments = []; |
- t1.argumentCount_0 = t1.argumentCount_0 + positionalArguments.length; |
- C.JSArray_methods.addAll$1($arguments, positionalArguments); |
- if ("call$catchAll" in $function) { |
- allNamedArguments = $function.call$catchAll(); |
- if (namedArguments != null && !namedArguments.get$isEmpty(namedArguments)) |
- namedArguments.forEach$1(namedArguments, new H.Primitives_applyFunction_closure(allNamedArguments)); |
- listOfNamedArguments = Object.getOwnPropertyNames(allNamedArguments); |
- t2 = t1.argumentCount_0; |
- t3 = J.getInterceptor$asx(listOfNamedArguments); |
- t4 = t3.get$length(listOfNamedArguments); |
- if (typeof t4 !== "number") |
- throw H.iae(t4); |
- t1.argumentCount_0 = t2 + t4; |
- t3.forEach$1(listOfNamedArguments, new H.Primitives_applyFunction_closure0(buffer, $arguments, allNamedArguments)); |
- } else if (namedArguments != null && !namedArguments.get$isEmpty(namedArguments)) |
- namedArguments.forEach$1(namedArguments, new H.Primitives_applyFunction_closure1(t1, buffer, $arguments)); |
- selectorName = "call$" + H.S(t1.argumentCount_0) + H.S(buffer); |
- jsFunction = $function[selectorName]; |
- if (jsFunction == null) { |
- if (namedArguments == null) |
- t1 = []; |
- else { |
- t1 = namedArguments.get$keys(); |
- t1 = P.List_List$from(t1, true, H.getRuntimeTypeArgument(t1, "IterableBase", 0)); |
- } |
- return J.noSuchMethod$1($function, new H.JSInvocationMirror(C.Symbol_call, selectorName, 0, $arguments, t1, null)); |
- } |
- return jsFunction.apply($function, $arguments); |
-}, |
- |
-iae: function(argument) { |
- throw H.wrapException(new P.ArgumentError(argument)); |
-}, |
- |
-ioore: function(receiver, index) { |
- if (receiver == null) |
- J.get$length$asx(receiver); |
- if (typeof index !== "number" || Math.floor(index) !== index) |
- H.iae(index); |
- throw H.wrapException(P.RangeError$value(index)); |
-}, |
- |
-wrapException: function(ex) { |
- var wrapper; |
- if (ex == null) |
- ex = new P.NullThrownError(); |
- wrapper = new Error(); |
- wrapper.dartException = ex; |
- if ("defineProperty" in Object) { |
- Object.defineProperty(wrapper, "message", { get: H.toStringWrapper$closure.call$0 }); |
- wrapper.name = ""; |
- } else |
- wrapper.toString = H.toStringWrapper$closure.call$0; |
- return wrapper; |
-}, |
- |
-toStringWrapper: function() { |
- return J.toString$0(this.dartException); |
-}, |
- |
-throwExpression: function(ex) { |
- throw H.wrapException(ex); |
-}, |
- |
-makeLiteralListConst: function(list) { |
- list.immutable$list = true; |
- list.fixed$length = true; |
- return list; |
-}, |
- |
-unwrapException: function(ex) { |
- var t1, message, number, ieErrorCode, t2, t3, t4, nullLiteralCall, t5, t6, t7, t8, t9, match; |
- t1 = new H.unwrapException_saveStackTrace(ex); |
- if (ex == null) |
- return; |
- if (typeof ex !== "object") |
- return ex; |
- if ("dartException" in ex) |
- return t1.call$1(ex.dartException); |
- else if (!("message" in ex)) |
- return ex; |
- message = ex.message; |
- if ("number" in ex && typeof ex.number == "number") { |
- number = ex.number; |
- ieErrorCode = number & 65535; |
- if ((C.JSInt_methods.$shr(number, 16) & 8191) === 10) |
- switch (ieErrorCode) { |
- case 438: |
- return t1.call$1(H.JsNoSuchMethodError$(H.S(message) + " (Error " + ieErrorCode + ")", null)); |
- case 445: |
- case 5007: |
- t2 = H.S(message) + " (Error " + ieErrorCode + ")"; |
- return t1.call$1(new H.NullError(t2, null)); |
- default: |
- } |
- } |
- if (ex instanceof TypeError) { |
- t2 = $.get$TypeErrorDecoder_noSuchMethodPattern(); |
- t3 = $.get$TypeErrorDecoder_notClosurePattern(); |
- t4 = $.get$TypeErrorDecoder_nullCallPattern(); |
- nullLiteralCall = $.get$TypeErrorDecoder_nullLiteralCallPattern(); |
- t5 = $.get$TypeErrorDecoder_undefinedCallPattern(); |
- t6 = $.get$TypeErrorDecoder_undefinedLiteralCallPattern(); |
- t7 = $.get$TypeErrorDecoder_nullPropertyPattern(); |
- $.get$TypeErrorDecoder_nullLiteralPropertyPattern(); |
- t8 = $.get$TypeErrorDecoder_undefinedPropertyPattern(); |
- t9 = $.get$TypeErrorDecoder_undefinedLiteralPropertyPattern(); |
- match = t2.matchTypeError$1(message); |
- if (match != null) |
- return t1.call$1(H.JsNoSuchMethodError$(message, match)); |
- else { |
- match = t3.matchTypeError$1(message); |
- if (match != null) { |
- match.method = "call"; |
- return t1.call$1(H.JsNoSuchMethodError$(message, match)); |
- } else { |
- match = t4.matchTypeError$1(message); |
- if (match == null) { |
- match = nullLiteralCall.matchTypeError$1(message); |
- if (match == null) { |
- match = t5.matchTypeError$1(message); |
- if (match == null) { |
- match = t6.matchTypeError$1(message); |
- if (match == null) { |
- match = t7.matchTypeError$1(message); |
- if (match == null) { |
- match = nullLiteralCall.matchTypeError$1(message); |
- if (match == null) { |
- match = t8.matchTypeError$1(message); |
- if (match == null) { |
- match = t9.matchTypeError$1(message); |
- t2 = match != null; |
- } else |
- t2 = true; |
- } else |
- t2 = true; |
- } else |
- t2 = true; |
- } else |
- t2 = true; |
- } else |
- t2 = true; |
- } else |
- t2 = true; |
- } else |
- t2 = true; |
- if (t2) { |
- t2 = match == null ? null : match.method; |
- return t1.call$1(new H.NullError(message, t2)); |
- } |
- } |
- } |
- t2 = typeof message === "string" ? message : ""; |
- return t1.call$1(new H.UnknownJsTypeError(t2)); |
- } |
- if (ex instanceof RangeError) { |
- if (typeof message === "string" && message.indexOf("call stack") !== -1) |
- return new P.StackOverflowError(); |
- return t1.call$1(new P.ArgumentError(null)); |
- } |
- if (typeof InternalError == "function" && ex instanceof InternalError) |
- if (typeof message === "string" && message === "too much recursion") |
- return new P.StackOverflowError(); |
- return ex; |
-}, |
- |
-objectHashCode: function(object) { |
- if (object == null || typeof object != 'object') |
- return J.get$hashCode$(object); |
- else |
- return H.Primitives_objectHashCode(object); |
-}, |
- |
-fillLiteralMap: function(keyValuePairs, result) { |
- var $length, index, index0, index1; |
- $length = keyValuePairs.length; |
- for (index = 0; index < $length; index = index1) { |
- index0 = index + 1; |
- index1 = index0 + 1; |
- result.$indexSet(result, keyValuePairs[index], keyValuePairs[index0]); |
- } |
- return result; |
-}, |
- |
-invokeClosure: function(closure, isolate, numberOfArguments, arg1, arg2, arg3, arg4) { |
- var t1 = J.getInterceptor(numberOfArguments); |
- if (t1.$eq(numberOfArguments, 0)) |
- return new H.invokeClosure_closure(closure).call$0(); |
- else if (t1.$eq(numberOfArguments, 1)) |
- return new H.invokeClosure_closure0(closure, arg1).call$0(); |
- else if (t1.$eq(numberOfArguments, 2)) |
- return new H.invokeClosure_closure1(closure, arg1, arg2).call$0(); |
- else if (t1.$eq(numberOfArguments, 3)) |
- return new H.invokeClosure_closure2(closure, arg1, arg2, arg3).call$0(); |
- else if (t1.$eq(numberOfArguments, 4)) |
- return new H.invokeClosure_closure3(closure, arg1, arg2, arg3, arg4).call$0(); |
- else |
- throw H.wrapException(P.Exception_Exception("Unsupported number of arguments for wrapped closure")); |
-}, |
- |
-convertDartClosureToJS: function(closure, arity) { |
- var $function; |
- if (closure == null) |
- return; |
- $function = closure.$identity; |
- if (!!$function) |
- return $function; |
- $function = (function(closure, arity, context, invoke) { return function(a1, a2, a3, a4) { return invoke(closure, context, arity, a1, a2, a3, a4); };})(closure,arity,$,H.invokeClosure$closure.call$7); |
- closure.$identity = $function; |
- return $function; |
-}, |
- |
-throwCyclicInit: function(staticName) { |
- throw H.wrapException(P.CyclicInitializationError$("Cyclic initialization for static " + H.S(staticName))); |
-}, |
- |
-setRuntimeTypeInfo: function(target, typeInfo) { |
- if (target != null) |
- target.$builtinTypeInfo = typeInfo; |
- return target; |
-}, |
- |
-getRuntimeTypeInfo: function(target) { |
- if (target == null) |
- return; |
- return target.$builtinTypeInfo; |
-}, |
- |
-getRuntimeTypeArguments: function(target, substitutionName) { |
- return H.substitute(target["$as" + H.S(substitutionName)], H.getRuntimeTypeInfo(target)); |
-}, |
- |
-getRuntimeTypeArgument: function(target, substitutionName, index) { |
- var $arguments = H.getRuntimeTypeArguments(target, substitutionName); |
- return $arguments == null ? null : $arguments[index]; |
-}, |
- |
-getRuntimeTypeAsString: function(runtimeType, onTypeVariable) { |
- return runtimeType[0].builtin$cls + H.joinArguments(runtimeType, 1, onTypeVariable); |
-}, |
- |
-runtimeTypeToString: function(type, onTypeVariable) { |
- if (type == null) |
- return "dynamic"; |
- else if (typeof type === "object" && type !== null && type.constructor === Array) |
- return H.getRuntimeTypeAsString(type, onTypeVariable); |
- else if (typeof type == "function") |
- return type.builtin$cls; |
- else if (typeof type === "number" && Math.floor(type) === type) |
- return C.JSInt_methods.toString$0(type); |
- else |
- return; |
-}, |
- |
-joinArguments: function(types, startIndex, onTypeVariable) { |
- var buffer, index, firstArgument, allDynamic, argument, str; |
- if (types == null) |
- return ""; |
- buffer = P.StringBuffer$(""); |
- for (index = startIndex, firstArgument = true, allDynamic = true; index < types.length; ++index) { |
- if (firstArgument) |
- firstArgument = false; |
- else |
- buffer._contents = buffer._contents + ", "; |
- argument = types[index]; |
- if (argument != null) |
- allDynamic = false; |
- str = H.runtimeTypeToString(argument, onTypeVariable); |
- str = typeof str === "string" ? str : H.S(str); |
- buffer._contents = buffer._contents + str; |
- } |
- return allDynamic ? "" : "<" + H.S(buffer) + ">"; |
-}, |
- |
-substitute: function(substitution, $arguments) { |
- if (typeof substitution === "object" && substitution !== null && substitution.constructor === Array) |
- $arguments = substitution; |
- else if (typeof substitution == "function") { |
- substitution = H.invokeOn(substitution, null, $arguments); |
- if (typeof substitution === "object" && substitution !== null && substitution.constructor === Array) |
- $arguments = substitution; |
- else if (typeof substitution == "function") |
- $arguments = H.invokeOn(substitution, null, $arguments); |
- } |
- return $arguments; |
-}, |
- |
-invokeOn: function($function, receiver, $arguments) { |
- return $function.apply(receiver, $arguments); |
-}, |
- |
-toStringForNativeObject: function(obj) { |
- var t1 = $.getTagFunction; |
- return "Instance of " + (t1 == null ? "<Unknown>" : t1.call$1(obj)); |
-}, |
- |
-hashCodeForNativeObject: function(object) { |
- return H.Primitives_objectHashCode(object); |
-}, |
- |
-defineProperty: function(obj, property, value) { |
- Object.defineProperty(obj, property, {value: value, enumerable: false, writable: true, configurable: true}); |
-}, |
- |
-lookupAndCacheInterceptor: function(obj) { |
- var tag, record, interceptor, interceptorClass, mark, t1; |
- tag = $.getTagFunction.call$1(obj); |
- record = $.dispatchRecordsForInstanceTags[tag]; |
- if (record != null) { |
- Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); |
- return record.i; |
- } |
- interceptor = $.interceptorsForUncacheableTags[tag]; |
- if (interceptor != null) |
- return interceptor; |
- interceptorClass = init.interceptorsByTag[tag]; |
- if (interceptorClass == null) { |
- tag = $.alternateTagFunction.call$2(obj, tag); |
- if (tag != null) { |
- record = $.dispatchRecordsForInstanceTags[tag]; |
- if (record != null) { |
- Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); |
- return record.i; |
- } |
- interceptor = $.interceptorsForUncacheableTags[tag]; |
- if (interceptor != null) |
- return interceptor; |
- interceptorClass = init.interceptorsByTag[tag]; |
- } |
- } |
- if (interceptorClass == null) |
- return; |
- interceptor = interceptorClass.prototype; |
- mark = tag[0]; |
- if (mark === "!") { |
- record = H.makeLeafDispatchRecord(interceptor); |
- $.dispatchRecordsForInstanceTags[tag] = record; |
- Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); |
- return record.i; |
- } |
- if (mark === "~") { |
- $.interceptorsForUncacheableTags[tag] = interceptor; |
- return interceptor; |
- } |
- if (mark === "-") { |
- t1 = H.makeLeafDispatchRecord(interceptor); |
- Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true}); |
- return t1.i; |
- } |
- if (mark === "+") |
- return H.patchInteriorProto(obj, interceptor); |
- if (mark === "*") |
- throw H.wrapException(P.UnimplementedError$(tag)); |
- if (init.leafTags[tag] === true) { |
- t1 = H.makeLeafDispatchRecord(interceptor); |
- Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true}); |
- return t1.i; |
- } else |
- return H.patchInteriorProto(obj, interceptor); |
-}, |
- |
-patchInteriorProto: function(obj, interceptor) { |
- var proto, record; |
- proto = Object.getPrototypeOf(obj); |
- record = J.makeDispatchRecord(interceptor, proto, null, null); |
- Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); |
- return interceptor; |
-}, |
- |
-makeLeafDispatchRecord: function(interceptor) { |
- return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior); |
-}, |
- |
-makeDefaultDispatchRecord: function(tag, interceptorClass, proto) { |
- var interceptor = interceptorClass.prototype; |
- if (init.leafTags[tag] === true) |
- return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior); |
- else |
- return J.makeDispatchRecord(interceptor, proto, null, null); |
-}, |
- |
-initNativeDispatch: function() { |
- if (true === $.initNativeDispatchFlag) |
- return; |
- $.initNativeDispatchFlag = true; |
- H.initNativeDispatchContinue(); |
-}, |
- |
-initNativeDispatchContinue: function() { |
- var map, tags, i, tag, proto, record, interceptorClass; |
- $.dispatchRecordsForInstanceTags = Object.create(null); |
- $.interceptorsForUncacheableTags = Object.create(null); |
- H.initHooks(); |
- map = init.interceptorsByTag; |
- tags = Object.getOwnPropertyNames(map); |
- if (typeof window != "undefined") { |
- window; |
- for (i = 0; i < tags.length; ++i) { |
- tag = tags[i]; |
- proto = $.prototypeForTagFunction.call$1(tag); |
- if (proto != null) { |
- record = H.makeDefaultDispatchRecord(tag, map[tag], proto); |
- if (record != null) |
- Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); |
- } |
- } |
- } |
- for (i = 0; i < tags.length; ++i) { |
- tag = tags[i]; |
- if (/^[A-Za-z_]/.test(tag)) { |
- interceptorClass = map[tag]; |
- map["!" + tag] = interceptorClass; |
- map["~" + tag] = interceptorClass; |
- map["-" + tag] = interceptorClass; |
- map["+" + tag] = interceptorClass; |
- map["*" + tag] = interceptorClass; |
- } |
- } |
-}, |
- |
-initHooks: function() { |
- var hooks, transformers, i, transformer, getTag, getUnknownTag, prototypeForTag; |
- hooks = C.JS_CONST_TtD(); |
- hooks = H.applyHooksTransformer(C.JS_CONST_0, H.applyHooksTransformer(C.JS_CONST_Fs4, H.applyHooksTransformer(C.JS_CONST_Fs4, H.applyHooksTransformer(C.JS_CONST_rD3, H.applyHooksTransformer(C.JS_CONST_6qb, H.applyHooksTransformer(C.JS_CONST_Cbr(C.JS_CONST_86y), hooks)))))); |
- if (typeof dartNativeDispatchHooksTransformer != "undefined") { |
- transformers = dartNativeDispatchHooksTransformer; |
- if (typeof transformers == "function") |
- transformers = [transformers]; |
- if (transformers.constructor == Array) |
- for (i = 0; i < transformers.length; ++i) { |
- transformer = transformers[i]; |
- if (typeof transformer == "function") |
- hooks = transformer(hooks) || hooks; |
- } |
- } |
- getTag = hooks.getTag; |
- getUnknownTag = hooks.getUnknownTag; |
- prototypeForTag = hooks.prototypeForTag; |
- $.getTagFunction = new H.initHooks_closure(getTag); |
- $.alternateTagFunction = new H.initHooks_closure0(getUnknownTag); |
- $.prototypeForTagFunction = new H.initHooks_closure1(prototypeForTag); |
-}, |
- |
-applyHooksTransformer: function(transformer, hooks) { |
- return transformer(hooks) || hooks; |
-}, |
- |
-JSInvocationMirror: {"": "Object;__js_helper$_memberName,_internalName,_kind,_arguments,_namedArgumentNames,_namedIndices", |
- get$memberName: function() { |
- return this.__js_helper$_memberName; |
- }, |
- get$positionalArguments: function() { |
- var t1, argumentCount, list, index; |
- if (this._kind === 1) |
- return C.List_empty; |
- t1 = this._arguments; |
- argumentCount = t1.length - this._namedArgumentNames.length; |
- if (argumentCount === 0) |
- return C.List_empty; |
- list = []; |
- for (index = 0; index < argumentCount; ++index) { |
- if (index >= t1.length) |
- throw H.ioore(t1, index); |
- list.push(t1[index]); |
- } |
- return H.makeLiteralListConst(list); |
- }, |
- get$namedArguments: function() { |
- var t1, namedArgumentCount, t2, namedArgumentsStartIndex, map, i, t3, t4; |
- if (this._kind !== 0) { |
- t1 = H.fillLiteralMap([], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)); |
- H.setRuntimeTypeInfo(t1, [P.Symbol, null]); |
- return t1; |
- } |
- t1 = this._namedArgumentNames; |
- namedArgumentCount = t1.length; |
- t2 = this._arguments; |
- namedArgumentsStartIndex = t2.length - namedArgumentCount; |
- if (namedArgumentCount === 0) { |
- t1 = H.fillLiteralMap([], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)); |
- H.setRuntimeTypeInfo(t1, [P.Symbol, null]); |
- return t1; |
- } |
- map = P.LinkedHashMap_LinkedHashMap(null, null, null, P.Symbol, null); |
- for (i = 0; i < namedArgumentCount; ++i) { |
- if (i >= t1.length) |
- throw H.ioore(t1, i); |
- t3 = t1[i]; |
- t4 = namedArgumentsStartIndex + i; |
- if (t4 < 0 || t4 >= t2.length) |
- throw H.ioore(t2, t4); |
- map.$indexSet(map, new H.Symbol0(t3), t2[t4]); |
- } |
- return map; |
- }, |
- static: { |
-"": "JSInvocationMirror_METHOD,JSInvocationMirror_GETTER,JSInvocationMirror_SETTER", |
-} |
- |
-}, |
- |
-Primitives_applyFunction_closure: {"": "Closure;allNamedArguments_1", |
- call$2: function(key, argument) { |
- this.allNamedArguments_1[key] = argument; |
- }, |
- "+call:2:0": 0, |
- $isFunction: true |
-}, |
- |
-Primitives_applyFunction_closure0: {"": "Closure;buffer_2,arguments_3,allNamedArguments_4", |
- call$1: function($name) { |
- this.buffer_2.write$1("$" + H.S($name)); |
- this.arguments_3.push(this.allNamedArguments_4[$name]); |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}, |
- |
-Primitives_applyFunction_closure1: {"": "Closure;box_0,buffer_5,arguments_6", |
- call$2: function($name, argument) { |
- var t1; |
- this.buffer_5.write$1("$" + H.S($name)); |
- this.arguments_6.push(argument); |
- t1 = this.box_0; |
- t1.argumentCount_0 = t1.argumentCount_0 + 1; |
- }, |
- "+call:2:0": 0, |
- $isFunction: true |
-}, |
- |
-TypeErrorDecoder: {"": "Object;_pattern,_arguments,_argumentsExpr,_expr,_method,_receiver", |
- matchTypeError$1: function(message) { |
- var match, result, t1; |
- match = new RegExp(this._pattern).exec(message); |
- if (match == null) |
- return; |
- result = {}; |
- t1 = this._arguments; |
- if (t1 !== -1) |
- result.arguments = match[t1 + 1]; |
- t1 = this._argumentsExpr; |
- if (t1 !== -1) |
- result.argumentsExpr = match[t1 + 1]; |
- t1 = this._expr; |
- if (t1 !== -1) |
- result.expr = match[t1 + 1]; |
- t1 = this._method; |
- if (t1 !== -1) |
- result.method = match[t1 + 1]; |
- t1 = this._receiver; |
- if (t1 !== -1) |
- result.receiver = match[t1 + 1]; |
- return result; |
- }, |
- static: { |
-"": "TypeErrorDecoder_noSuchMethodPattern,TypeErrorDecoder_notClosurePattern,TypeErrorDecoder_nullCallPattern,TypeErrorDecoder_nullLiteralCallPattern,TypeErrorDecoder_undefinedCallPattern,TypeErrorDecoder_undefinedLiteralCallPattern,TypeErrorDecoder_nullPropertyPattern,TypeErrorDecoder_nullLiteralPropertyPattern,TypeErrorDecoder_undefinedPropertyPattern,TypeErrorDecoder_undefinedLiteralPropertyPattern", |
-TypeErrorDecoder_extractPattern: function(message) { |
- var match, $arguments, argumentsExpr, expr, method, receiver; |
- message = message.replace(String({}), '$receiver$').replace(new RegExp("[[\\]{}()*+?.\\\\^$|]", 'g'), '\\$&'); |
- match = message.match(/\\\$[a-zA-Z]+\\\$/g); |
- if (match == null) |
- match = []; |
- $arguments = match.indexOf("\\$arguments\\$"); |
- argumentsExpr = match.indexOf("\\$argumentsExpr\\$"); |
- expr = match.indexOf("\\$expr\\$"); |
- method = match.indexOf("\\$method\\$"); |
- receiver = match.indexOf("\\$receiver\\$"); |
- return new H.TypeErrorDecoder(message.replace('\\$arguments\\$', '((?:x|[^x])*)').replace('\\$argumentsExpr\\$', '((?:x|[^x])*)').replace('\\$expr\\$', '((?:x|[^x])*)').replace('\\$method\\$', '((?:x|[^x])*)').replace('\\$receiver\\$', '((?:x|[^x])*)'), $arguments, argumentsExpr, expr, method, receiver); |
-}, |
- |
-TypeErrorDecoder_provokeCallErrorOn: function(expression) { |
- return function($expr$) { |
- var $argumentsExpr$ = '$arguments$' |
- try { |
- $expr$.$method$($argumentsExpr$); |
- } catch (e) { |
- return e.message; |
- } |
-}(expression); |
-}, |
- |
-TypeErrorDecoder_provokeCallErrorOnNull: function() { |
- return function() { |
- var $argumentsExpr$ = '$arguments$' |
- try { |
- null.$method$($argumentsExpr$); |
- } catch (e) { |
- return e.message; |
- } |
-}(); |
-}, |
- |
-TypeErrorDecoder_provokeCallErrorOnUndefined: function() { |
- return function() { |
- var $argumentsExpr$ = '$arguments$' |
- try { |
- (void 0).$method$($argumentsExpr$); |
- } catch (e) { |
- return e.message; |
- } |
-}(); |
-}, |
- |
-TypeErrorDecoder_provokePropertyErrorOn: function(expression) { |
- return function($expr$) { |
- try { |
- $expr$.$method$; |
- } catch (e) { |
- return e.message; |
- } |
-}(expression); |
-}, |
- |
-TypeErrorDecoder_provokePropertyErrorOnNull: function() { |
- return function() { |
- try { |
- null.$method$; |
- } catch (e) { |
- return e.message; |
- } |
-}(); |
-}, |
- |
-TypeErrorDecoder_provokePropertyErrorOnUndefined: function() { |
- return function() { |
- try { |
- (void 0).$method$; |
- } catch (e) { |
- return e.message; |
- } |
-}(); |
-}} |
- |
-}, |
- |
-NullError: {"": "Error;_message,_method", |
- toString$0: function(_) { |
- var t1 = this._method; |
- if (t1 == null) |
- return "NullError: " + H.S(this._message); |
- return "NullError: Cannot call \"" + H.S(t1) + "\" on null"; |
- }, |
- $isError: true |
-}, |
- |
-JsNoSuchMethodError: {"": "Error;_message,_method,_receiver", |
- toString$0: function(_) { |
- var t1, t2; |
- t1 = this._method; |
- if (t1 == null) |
- return "NoSuchMethodError: " + H.S(this._message); |
- t2 = this._receiver; |
- if (t2 == null) |
- return "NoSuchMethodError: Cannot call \"" + t1 + "\" (" + H.S(this._message) + ")"; |
- return "NoSuchMethodError: Cannot call \"" + t1 + "\" on \"" + t2 + "\" (" + H.S(this._message) + ")"; |
- }, |
- $isError: true, |
- static: { |
-JsNoSuchMethodError$: function(_message, match) { |
- var t1, t2; |
- t1 = match == null; |
- t2 = t1 ? null : match.method; |
- t1 = t1 ? null : match.receiver; |
- return new H.JsNoSuchMethodError(_message, t2, t1); |
-}} |
- |
-}, |
- |
-UnknownJsTypeError: {"": "Error;_message", |
- toString$0: function(_) { |
- var t1 = this._message; |
- return C.JSString_methods.get$isEmpty(t1) ? "Error" : "Error: " + t1; |
- } |
-}, |
- |
-unwrapException_saveStackTrace: {"": "Closure;ex_0", |
- call$1: function(error) { |
- var t1 = J.getInterceptor(error); |
- if (typeof error === "object" && error !== null && !!t1.$isError) |
- if (error.$thrownJsError == null) |
- error.$thrownJsError = this.ex_0; |
- return error; |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}, |
- |
-invokeClosure_closure: {"": "Closure;closure_0", |
- call$0: function() { |
- return this.closure_0.call$0(); |
- }, |
- "+call:0:0": 0, |
- $isFunction: true |
-}, |
- |
-invokeClosure_closure0: {"": "Closure;closure_1,arg1_2", |
- call$0: function() { |
- return this.closure_1.call$1(this.arg1_2); |
- }, |
- "+call:0:0": 0, |
- $isFunction: true |
-}, |
- |
-invokeClosure_closure1: {"": "Closure;closure_3,arg1_4,arg2_5", |
- call$0: function() { |
- return this.closure_3.call$2(this.arg1_4, this.arg2_5); |
- }, |
- "+call:0:0": 0, |
- $isFunction: true |
-}, |
- |
-invokeClosure_closure2: {"": "Closure;closure_6,arg1_7,arg2_8,arg3_9", |
- call$0: function() { |
- return this.closure_6.call$3(this.arg1_7, this.arg2_8, this.arg3_9); |
- }, |
- "+call:0:0": 0, |
- $isFunction: true |
-}, |
- |
-invokeClosure_closure3: {"": "Closure;closure_10,arg1_11,arg2_12,arg3_13,arg4_14", |
- call$0: function() { |
- return this.closure_10.call$4(this.arg1_11, this.arg2_12, this.arg3_13, this.arg4_14); |
- }, |
- "+call:0:0": 0, |
- $isFunction: true |
-}, |
- |
-Closure: {"": "Object;", |
- toString$0: function(_) { |
- return "Closure"; |
- }, |
- $isFunction: true |
-}, |
- |
-initHooks_closure: {"": "Closure;getTag_0", |
- call$1: function(o) { |
- return this.getTag_0(o); |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}, |
- |
-initHooks_closure0: {"": "Closure;getUnknownTag_1", |
- call$2: function(o, tag) { |
- return this.getUnknownTag_1(o, tag); |
- }, |
- "+call:2:0": 0, |
- $isFunction: true |
-}, |
- |
-initHooks_closure1: {"": "Closure;prototypeForTag_2", |
- call$1: function(tag) { |
- return this.prototypeForTag_2(tag); |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}}], |
-["dart._collection.dev", "dart:_collection-dev", , H, { |
-IterableMixinWorkaround_forEach: function(iterable, f) { |
- var t1; |
- for (t1 = new H.ListIterator(iterable, iterable.length, 0, null); t1.moveNext$0();) |
- f.call$1(t1._current); |
-}, |
- |
-IterableMixinWorkaround_toStringIterable: function(iterable, leftDelimiter, rightDelimiter) { |
- var result, i, t1; |
- for (i = 0; i < $.get$IterableMixinWorkaround__toStringList().length; ++i) { |
- t1 = $.get$IterableMixinWorkaround__toStringList(); |
- if (i >= t1.length) |
- throw H.ioore(t1, i); |
- if (t1[i] === iterable) |
- return H.S(leftDelimiter) + "..." + H.S(rightDelimiter); |
- } |
- result = P.StringBuffer$(""); |
- try { |
- $.get$IterableMixinWorkaround__toStringList().push(iterable); |
- result.write$1(leftDelimiter); |
- result.writeAll$2(iterable, ", "); |
- result.write$1(rightDelimiter); |
- } finally { |
- t1 = $.get$IterableMixinWorkaround__toStringList(); |
- if (0 >= t1.length) |
- throw H.ioore(t1, 0); |
- t1.pop(); |
- } |
- return result.get$_contents(); |
-}, |
- |
-ListIterable: {"": "IterableBase;", |
- get$iterator: function(_) { |
- return new H.ListIterator(this, this.get$length(this), 0, null); |
- }, |
- forEach$1: function(_, action) { |
- var $length, i; |
- $length = this.get$length(this); |
- if (typeof $length !== "number") |
- throw H.iae($length); |
- i = 0; |
- for (; i < $length; ++i) { |
- action.call$1(this.elementAt$1(this, i)); |
- if ($length !== this.get$length(this)) |
- throw H.wrapException(P.ConcurrentModificationError$(this)); |
- } |
- }, |
- map$1: function(_, f) { |
- var t1 = new H.MappedListIterable(this, f); |
- H.setRuntimeTypeInfo(t1, [null, null]); |
- return t1; |
- }, |
- $asIterableBase: null, |
- $asIterable: null, |
- $isEfficientLength: true |
-}, |
- |
-ListIterator: {"": "Object;_iterable,_length,_index,_current", |
- get$current: function() { |
- return this._current; |
- }, |
- moveNext$0: function() { |
- var t1, t2, $length, t3; |
- t1 = this._iterable; |
- t2 = J.getInterceptor$asx(t1); |
- $length = t2.get$length(t1); |
- if (!J.$eq(this._length, $length)) |
- throw H.wrapException(P.ConcurrentModificationError$(t1)); |
- t3 = this._index; |
- if (typeof $length !== "number") |
- throw H.iae($length); |
- if (t3 >= $length) { |
- this._current = null; |
- return false; |
- } |
- this._current = t2.elementAt$1(t1, t3); |
- this._index = this._index + 1; |
- return true; |
- } |
-}, |
- |
-MappedIterable: {"": "IterableBase;_iterable,_f", |
- get$iterator: function(_) { |
- var t1 = this._iterable; |
- t1 = t1.get$iterator(t1); |
- t1 = new H.MappedIterator(null, t1, this._f); |
- H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "MappedIterable", 0), H.getRuntimeTypeArgument(this, "MappedIterable", 1)]); |
- return t1; |
- }, |
- get$length: function(_) { |
- var t1 = this._iterable; |
- return t1.get$length(t1); |
- }, |
- $asIterableBase: function($S, $T) { |
- return [$T]; |
- }, |
- $asIterable: function($S, $T) { |
- return [$T]; |
- }, |
- static: { |
-MappedIterable_MappedIterable: function(iterable, $function, $S, $T) { |
- var t1; |
- if (!!iterable.$isEfficientLength) { |
- t1 = new H.EfficientLengthMappedIterable(iterable, $function); |
- H.setRuntimeTypeInfo(t1, [$S, $T]); |
- return t1; |
- } |
- t1 = new H.MappedIterable(iterable, $function); |
- H.setRuntimeTypeInfo(t1, [$S, $T]); |
- return t1; |
-}} |
- |
-}, |
- |
-EfficientLengthMappedIterable: {"": "MappedIterable;_iterable,_f", $asMappedIterable: null, |
- $asIterable: function($S, $T) { |
- return [$T]; |
- }, |
- $isEfficientLength: true |
-}, |
- |
-MappedIterator: {"": "Iterator;_current,_iterator,_f", |
- _f$1: function(arg0) { |
- return this._f.call$1(arg0); |
- }, |
- moveNext$0: function() { |
- var t1 = this._iterator; |
- if (t1.moveNext$0()) { |
- this._current = this._f$1(t1.get$current()); |
- return true; |
- } |
- this._current = null; |
- return false; |
- }, |
- get$current: function() { |
- return this._current; |
- }, |
- $asIterator: function($S, $T) { |
- return [$T]; |
- } |
-}, |
- |
-MappedListIterable: {"": "ListIterable;_source,_f", |
- _f$1: function(arg0) { |
- return this._f.call$1(arg0); |
- }, |
- get$length: function(_) { |
- return J.get$length$asx(this._source); |
- }, |
- elementAt$1: function(_, index) { |
- return this._f$1(J.elementAt$1$ax(this._source, index)); |
- }, |
- $asListIterable: function($S, $T) { |
- return [$T]; |
- }, |
- $asIterable: function($S, $T) { |
- return [$T]; |
- }, |
- $isEfficientLength: true |
-}, |
- |
-FixedLengthListMixin: {"": "Object;"}, |
- |
-Symbol0: {"": "Object;_name<", |
- $eq: function(_, other) { |
- var t1; |
- if (other == null) |
- return false; |
- t1 = J.getInterceptor(other); |
- return typeof other === "object" && other !== null && !!t1.$isSymbol0 && J.$eq(this._name, other._name); |
- }, |
- get$hashCode: function(_) { |
- return 536870911 & 664597 * J.get$hashCode$(this._name); |
- }, |
- toString$0: function(_) { |
- return "Symbol(\"" + H.S(this._name) + "\")"; |
- }, |
- $isSymbol0: true, |
- static: { |
-"": "Symbol_validationPattern", |
-} |
- |
-}}], |
-["dart.collection", "dart:collection", , P, { |
-_HashMap__setTableEntry: function(table, key, value) { |
- if (value == null) |
- table[key] = table; |
- else |
- table[key] = value; |
-}, |
- |
-_HashMap__newHashTable: function() { |
- var table = Object.create(null); |
- P._HashMap__setTableEntry(table, "<non-identifier-key>", table); |
- delete table["<non-identifier-key>"]; |
- return table; |
-}, |
- |
-_defaultEquals: function(a, b) { |
- return J.$eq(a, b); |
-}, |
- |
-_defaultHashCode: function(a) { |
- return J.get$hashCode$(a); |
-}, |
- |
-HashMap_HashMap$identity: function($K, $V) { |
- var t1 = new P._IdentityHashMap(0, null, null, null, null); |
- H.setRuntimeTypeInfo(t1, [$K, $V]); |
- return t1; |
-}, |
- |
-HashSet_HashSet$identity: function($E) { |
- var t1 = new P._IdentityHashSet(0, null, null, null, null); |
- H.setRuntimeTypeInfo(t1, [$E]); |
- return t1; |
-}, |
- |
-_iterableToString: function(iterable) { |
- var parts, t1; |
- t1 = $.get$_toStringVisiting(); |
- if (t1.contains$1(t1, iterable)) |
- return "(...)"; |
- t1 = $.get$_toStringVisiting(); |
- t1.add$1(t1, iterable); |
- parts = []; |
- try { |
- P._iterablePartsToStrings(iterable, parts); |
- } finally { |
- t1 = $.get$_toStringVisiting(); |
- t1.remove$1(t1, iterable); |
- } |
- t1 = P.StringBuffer$("("); |
- t1.writeAll$2(parts, ", "); |
- t1.write$1(")"); |
- return t1._contents; |
-}, |
- |
-_iterablePartsToStrings: function(iterable, parts) { |
- var it, $length, count, next, ultimateString, penultimateString, penultimate, ultimate, ultimate0, elision; |
- it = iterable.get$iterator(iterable); |
- $length = 0; |
- count = 0; |
- while (true) { |
- if (!($length < 80 || count < 3)) |
- break; |
- if (!it.moveNext$0()) |
- return; |
- next = H.S(it.get$current()); |
- parts.push(next); |
- $length += next.length + 2; |
- ++count; |
- } |
- if (!it.moveNext$0()) { |
- if (count <= 5) |
- return; |
- if (0 >= parts.length) |
- throw H.ioore(parts, 0); |
- ultimateString = parts.pop(); |
- if (0 >= parts.length) |
- throw H.ioore(parts, 0); |
- penultimateString = parts.pop(); |
- } else { |
- penultimate = it.get$current(); |
- ++count; |
- if (!it.moveNext$0()) { |
- if (count <= 4) { |
- parts.push(H.S(penultimate)); |
- return; |
- } |
- ultimateString = H.S(penultimate); |
- if (0 >= parts.length) |
- throw H.ioore(parts, 0); |
- penultimateString = parts.pop(); |
- $length += ultimateString.length + 2; |
- } else { |
- ultimate = it.get$current(); |
- ++count; |
- for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) { |
- ultimate0 = it.get$current(); |
- ++count; |
- if (count > 100) { |
- while (true) { |
- if (!($length > 75 && count > 3)) |
- break; |
- if (0 >= parts.length) |
- throw H.ioore(parts, 0); |
- $length -= parts.pop().length + 2; |
- --count; |
- } |
- parts.push("..."); |
- return; |
- } |
- } |
- penultimateString = H.S(penultimate); |
- ultimateString = H.S(ultimate); |
- $length += ultimateString.length + penultimateString.length + 4; |
- } |
- } |
- if (count > parts.length + 2) { |
- $length += 5; |
- elision = "..."; |
- } else |
- elision = null; |
- while (true) { |
- if (!($length > 80 && parts.length > 3)) |
- break; |
- if (0 >= parts.length) |
- throw H.ioore(parts, 0); |
- $length -= parts.pop().length + 2; |
- if (elision == null) { |
- $length += 5; |
- elision = "..."; |
- } |
- } |
- if (elision != null) |
- parts.push(elision); |
- parts.push(penultimateString); |
- parts.push(ultimateString); |
-}, |
- |
-LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) { |
- var t1 = new P._LinkedHashMap(0, null, null, null, null, null, 0); |
- H.setRuntimeTypeInfo(t1, [$K, $V]); |
- return t1; |
-}, |
- |
-Maps_mapToString: function(m) { |
- var t1, result, i, t2; |
- t1 = {}; |
- for (i = 0; i < $.get$Maps__toStringList().length; ++i) { |
- t2 = $.get$Maps__toStringList(); |
- if (i >= t2.length) |
- throw H.ioore(t2, i); |
- if (t2[i] === m) |
- return "{...}"; |
- } |
- result = P.StringBuffer$(""); |
- try { |
- $.get$Maps__toStringList().push(m); |
- result.write$1("{"); |
- t1.first_0 = true; |
- J.forEach$1$ax(m, new P.Maps_mapToString_closure(t1, result)); |
- result.write$1("}"); |
- } finally { |
- t1 = $.get$Maps__toStringList(); |
- if (0 >= t1.length) |
- throw H.ioore(t1, 0); |
- t1.pop(); |
- } |
- return result.get$_contents(); |
-}, |
- |
-_HashMap: {"": "Object;", |
- get$length: function(_) { |
- return this._collection$_length; |
- }, |
- get$keys: function() { |
- var t1 = new P.HashMapKeyIterable(this); |
- H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); |
- return t1; |
- }, |
- containsKey$1: function(key) { |
- var strings, nums, rest; |
- if (typeof key === "string" && key !== "__proto__") { |
- strings = this._strings; |
- return strings == null ? false : strings[key] != null; |
- } else if (typeof key === "number" && (key & 0x3ffffff) === key) { |
- nums = this._nums; |
- return nums == null ? false : nums[key] != null; |
- } else { |
- rest = this._rest; |
- if (rest == null) |
- return false; |
- return this._findBucketIndex$2(rest[this._computeHashCode$1(key)], key) >= 0; |
- } |
- }, |
- $index: function(_, key) { |
- var strings, t1, entry, nums, rest, bucket, index; |
- if (typeof key === "string" && key !== "__proto__") { |
- strings = this._strings; |
- if (strings == null) |
- t1 = null; |
- else { |
- entry = strings[key]; |
- t1 = entry === strings ? null : entry; |
- } |
- return t1; |
- } else if (typeof key === "number" && (key & 0x3ffffff) === key) { |
- nums = this._nums; |
- if (nums == null) |
- t1 = null; |
- else { |
- entry = nums[key]; |
- t1 = entry === nums ? null : entry; |
- } |
- return t1; |
- } else { |
- rest = this._rest; |
- if (rest == null) |
- return; |
- bucket = rest[this._computeHashCode$1(key)]; |
- index = this._findBucketIndex$2(bucket, key); |
- return index < 0 ? null : bucket[index + 1]; |
- } |
- }, |
- $indexSet: function(_, key, value) { |
- var strings, nums, rest, hash, bucket, index; |
- if (typeof key === "string" && key !== "__proto__") { |
- strings = this._strings; |
- if (strings == null) { |
- strings = P._HashMap__newHashTable(); |
- this._strings = strings; |
- } |
- this._addHashTableEntry$3(strings, key, value); |
- } else if (typeof key === "number" && (key & 0x3ffffff) === key) { |
- nums = this._nums; |
- if (nums == null) { |
- nums = P._HashMap__newHashTable(); |
- this._nums = nums; |
- } |
- this._addHashTableEntry$3(nums, key, value); |
- } else { |
- rest = this._rest; |
- if (rest == null) { |
- rest = P._HashMap__newHashTable(); |
- this._rest = rest; |
- } |
- hash = this._computeHashCode$1(key); |
- bucket = rest[hash]; |
- if (bucket == null) { |
- P._HashMap__setTableEntry(rest, hash, [key, value]); |
- this._collection$_length = this._collection$_length + 1; |
- this._keys = null; |
- } else { |
- index = this._findBucketIndex$2(bucket, key); |
- if (index >= 0) |
- bucket[index + 1] = value; |
- else { |
- bucket.push(key, value); |
- this._collection$_length = this._collection$_length + 1; |
- this._keys = null; |
- } |
- } |
- } |
- }, |
- forEach$1: function(_, action) { |
- var keys, $length, i, key; |
- keys = this._computeKeys$0(); |
- for ($length = keys.length, i = 0; i < $length; ++i) { |
- key = keys[i]; |
- action.call$2(key, this.$index(this, key)); |
- if (keys !== this._keys) |
- throw H.wrapException(P.ConcurrentModificationError$(this)); |
- } |
- }, |
- _computeKeys$0: function() { |
- var t1, result, strings, names, entries, index, i, nums, rest, bucket, $length, i0; |
- t1 = this._keys; |
- if (t1 != null) |
- return t1; |
- result = P.List_List(this._collection$_length, null); |
- strings = this._strings; |
- if (strings != null) { |
- names = Object.getOwnPropertyNames(strings); |
- entries = names.length; |
- for (index = 0, i = 0; i < entries; ++i) { |
- result[index] = names[i]; |
- ++index; |
- } |
- } else |
- index = 0; |
- nums = this._nums; |
- if (nums != null) { |
- names = Object.getOwnPropertyNames(nums); |
- entries = names.length; |
- for (i = 0; i < entries; ++i) { |
- result[index] = +names[i]; |
- ++index; |
- } |
- } |
- rest = this._rest; |
- if (rest != null) { |
- names = Object.getOwnPropertyNames(rest); |
- entries = names.length; |
- for (i = 0; i < entries; ++i) { |
- bucket = rest[names[i]]; |
- $length = bucket.length; |
- for (i0 = 0; i0 < $length; i0 += 2) { |
- result[index] = bucket[i0]; |
- ++index; |
- } |
- } |
- } |
- this._keys = result; |
- return result; |
- }, |
- _addHashTableEntry$3: function(table, key, value) { |
- if (table[key] == null) { |
- this._collection$_length = this._collection$_length + 1; |
- this._keys = null; |
- } |
- P._HashMap__setTableEntry(table, key, value); |
- }, |
- _computeHashCode$1: function(key) { |
- return J.get$hashCode$(key) & 0x3ffffff; |
- }, |
- _findBucketIndex$2: function(bucket, key) { |
- var $length, i; |
- if (bucket == null) |
- return -1; |
- $length = bucket.length; |
- for (i = 0; i < $length; i += 2) |
- if (J.$eq(bucket[i], key)) |
- return i; |
- return -1; |
- }, |
- $isMap: true |
-}, |
- |
-_IdentityHashMap: {"": "_HashMap;_collection$_length,_strings,_nums,_rest,_keys", |
- _computeHashCode$1: function(key) { |
- return H.objectHashCode(key) & 0x3ffffff; |
- }, |
- _findBucketIndex$2: function(bucket, key) { |
- var $length, i, t1; |
- if (bucket == null) |
- return -1; |
- $length = bucket.length; |
- for (i = 0; i < $length; i += 2) { |
- t1 = bucket[i]; |
- if (t1 == null ? key == null : t1 === key) |
- return i; |
- } |
- return -1; |
- }, |
- $as_HashMap: null, |
- $asMap: null |
-}, |
- |
-HashMapKeyIterable: {"": "IterableBase;_map", |
- get$length: function(_) { |
- return this._map._collection$_length; |
- }, |
- get$iterator: function(_) { |
- var t1 = this._map; |
- return new P.HashMapKeyIterator(t1, t1._computeKeys$0(), 0, null); |
- }, |
- forEach$1: function(_, f) { |
- var t1, keys, $length, i; |
- t1 = this._map; |
- keys = t1._computeKeys$0(); |
- for ($length = keys.length, i = 0; i < $length; ++i) { |
- f.call$1(keys[i]); |
- if (keys !== t1._keys) |
- throw H.wrapException(P.ConcurrentModificationError$(t1)); |
- } |
- }, |
- $asIterableBase: null, |
- $asIterable: null, |
- $isEfficientLength: true |
-}, |
- |
-HashMapKeyIterator: {"": "Object;_map,_keys,_offset,_collection$_current", |
- get$current: function() { |
- return this._collection$_current; |
- }, |
- moveNext$0: function() { |
- var keys, offset, t1; |
- keys = this._keys; |
- offset = this._offset; |
- t1 = this._map; |
- if (keys !== t1._keys) |
- throw H.wrapException(P.ConcurrentModificationError$(t1)); |
- else if (offset >= keys.length) { |
- this._collection$_current = null; |
- return false; |
- } else { |
- this._collection$_current = keys[offset]; |
- this._offset = offset + 1; |
- return true; |
- } |
- } |
-}, |
- |
-_LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_last,_modifications", |
- get$length: function(_) { |
- return this._collection$_length; |
- }, |
- get$isEmpty: function(_) { |
- return this._collection$_length === 0; |
- }, |
- get$keys: function() { |
- var t1 = new P.LinkedHashMapKeyIterable(this); |
- H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0)]); |
- return t1; |
- }, |
- $index: function(_, key) { |
- var strings, cell, nums, rest, bucket, index; |
- if (typeof key === "string" && key !== "__proto__") { |
- strings = this._strings; |
- if (strings == null) |
- return; |
- cell = strings[key]; |
- return cell == null ? null : cell.get$_value(); |
- } else if (typeof key === "number" && (key & 0x3ffffff) === key) { |
- nums = this._nums; |
- if (nums == null) |
- return; |
- cell = nums[key]; |
- return cell == null ? null : cell.get$_value(); |
- } else { |
- rest = this._rest; |
- if (rest == null) |
- return; |
- bucket = rest[this._computeHashCode$1(key)]; |
- index = this._findBucketIndex$2(bucket, key); |
- if (index < 0) |
- return; |
- return bucket[index].get$_value(); |
- } |
- }, |
- $indexSet: function(_, key, value) { |
- var strings, nums, rest, hash, bucket, index; |
- if (typeof key === "string" && key !== "__proto__") { |
- strings = this._strings; |
- if (strings == null) { |
- strings = P._LinkedHashMap__newHashTable(); |
- this._strings = strings; |
- } |
- this._addHashTableEntry$3(strings, key, value); |
- } else if (typeof key === "number" && (key & 0x3ffffff) === key) { |
- nums = this._nums; |
- if (nums == null) { |
- nums = P._LinkedHashMap__newHashTable(); |
- this._nums = nums; |
- } |
- this._addHashTableEntry$3(nums, key, value); |
- } else { |
- rest = this._rest; |
- if (rest == null) { |
- rest = P._LinkedHashMap__newHashTable(); |
- this._rest = rest; |
- } |
- hash = this._computeHashCode$1(key); |
- bucket = rest[hash]; |
- if (bucket == null) |
- rest[hash] = [this._newLinkedCell$2(key, value)]; |
- else { |
- index = this._findBucketIndex$2(bucket, key); |
- if (index >= 0) |
- bucket[index].set$_value(value); |
- else |
- bucket.push(this._newLinkedCell$2(key, value)); |
- } |
- } |
- }, |
- forEach$1: function(_, action) { |
- var cell, modifications; |
- cell = this._first; |
- modifications = this._modifications; |
- for (; cell != null;) { |
- action.call$2(cell._key, cell._value); |
- if (modifications !== this._modifications) |
- throw H.wrapException(P.ConcurrentModificationError$(this)); |
- cell = cell._next; |
- } |
- }, |
- _addHashTableEntry$3: function(table, key, value) { |
- var cell = table[key]; |
- if (cell == null) |
- table[key] = this._newLinkedCell$2(key, value); |
- else |
- cell.set$_value(value); |
- }, |
- _newLinkedCell$2: function(key, value) { |
- var cell, last; |
- cell = new P.LinkedHashMapCell(key, value, null, null); |
- if (this._first == null) { |
- this._last = cell; |
- this._first = cell; |
- } else { |
- last = this._last; |
- cell._previous = last; |
- last._next = cell; |
- this._last = cell; |
- } |
- this._collection$_length = this._collection$_length + 1; |
- this._modifications = this._modifications + 1 & 67108863; |
- return cell; |
- }, |
- _computeHashCode$1: function(key) { |
- return J.get$hashCode$(key) & 0x3ffffff; |
- }, |
- _findBucketIndex$2: function(bucket, key) { |
- var $length, i; |
- if (bucket == null) |
- return -1; |
- $length = bucket.length; |
- for (i = 0; i < $length; ++i) |
- if (J.$eq(bucket[i].get$_key(), key)) |
- return i; |
- return -1; |
- }, |
- toString$0: function(_) { |
- return P.Maps_mapToString(this); |
- }, |
- $isMap: true, |
- static: { |
-_LinkedHashMap__newHashTable: function() { |
- var table = Object.create(null); |
- table["<non-identifier-key>"] = table; |
- delete table["<non-identifier-key>"]; |
- return table; |
-}} |
- |
-}, |
- |
-LinkedHashMapCell: {"": "Object;_key<,_value@,_next,_previous"}, |
- |
-LinkedHashMapKeyIterable: {"": "IterableBase;_map", |
- get$length: function(_) { |
- return this._map._collection$_length; |
- }, |
- get$iterator: function(_) { |
- var t1 = this._map; |
- t1 = new P.LinkedHashMapKeyIterator(t1, t1._modifications, null, null); |
- t1._cell = t1._map._first; |
- return t1; |
- }, |
- forEach$1: function(_, f) { |
- var t1, cell, modifications; |
- t1 = this._map; |
- cell = t1._first; |
- modifications = t1._modifications; |
- for (; cell != null;) { |
- f.call$1(cell._key); |
- if (modifications !== t1._modifications) |
- throw H.wrapException(P.ConcurrentModificationError$(t1)); |
- cell = cell._next; |
- } |
- }, |
- $asIterableBase: null, |
- $asIterable: null, |
- $isEfficientLength: true |
-}, |
- |
-LinkedHashMapKeyIterator: {"": "Object;_map,_modifications,_cell,_collection$_current", |
- get$current: function() { |
- return this._collection$_current; |
- }, |
- moveNext$0: function() { |
- var t1 = this._map; |
- if (this._modifications !== t1._modifications) |
- throw H.wrapException(P.ConcurrentModificationError$(t1)); |
- else { |
- t1 = this._cell; |
- if (t1 == null) { |
- this._collection$_current = null; |
- return false; |
- } else { |
- this._collection$_current = t1._key; |
- this._cell = this._cell._next; |
- return true; |
- } |
- } |
- } |
-}, |
- |
-_HashSet: {"": "_HashSetBase;", |
- get$iterator: function(_) { |
- return new P.HashSetIterator(this, this._computeElements$0(), 0, null); |
- }, |
- get$length: function(_) { |
- return this._collection$_length; |
- }, |
- contains$1: function(_, object) { |
- var rest = this._rest; |
- if (rest == null) |
- return false; |
- return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0; |
- }, |
- add$1: function(_, element) { |
- var rest, table, hash, bucket; |
- rest = this._rest; |
- if (rest == null) { |
- table = Object.create(null); |
- table["<non-identifier-key>"] = table; |
- delete table["<non-identifier-key>"]; |
- this._rest = table; |
- rest = table; |
- } |
- hash = this._computeHashCode$1(element); |
- bucket = rest[hash]; |
- if (bucket == null) |
- rest[hash] = [element]; |
- else { |
- if (this._findBucketIndex$2(bucket, element) >= 0) |
- return false; |
- bucket.push(element); |
- } |
- this._collection$_length = this._collection$_length + 1; |
- this._elements = null; |
- return true; |
- }, |
- remove$1: function(_, object) { |
- var rest, bucket, index; |
- rest = this._rest; |
- if (rest == null) |
- return false; |
- bucket = rest[this._computeHashCode$1(object)]; |
- index = this._findBucketIndex$2(bucket, object); |
- if (index < 0) |
- return false; |
- this._collection$_length = this._collection$_length - 1; |
- this._elements = null; |
- bucket.splice(index, 1); |
- return true; |
- }, |
- _computeElements$0: function() { |
- var t1, result, strings, names, entries, index, i, nums, rest, bucket, $length, i0; |
- t1 = this._elements; |
- if (t1 != null) |
- return t1; |
- result = P.List_List(this._collection$_length, null); |
- strings = this._strings; |
- if (strings != null) { |
- names = Object.getOwnPropertyNames(strings); |
- entries = names.length; |
- for (index = 0, i = 0; i < entries; ++i) { |
- result[index] = names[i]; |
- ++index; |
- } |
- } else |
- index = 0; |
- nums = this._nums; |
- if (nums != null) { |
- names = Object.getOwnPropertyNames(nums); |
- entries = names.length; |
- for (i = 0; i < entries; ++i) { |
- result[index] = +names[i]; |
- ++index; |
- } |
- } |
- rest = this._rest; |
- if (rest != null) { |
- names = Object.getOwnPropertyNames(rest); |
- entries = names.length; |
- for (i = 0; i < entries; ++i) { |
- bucket = rest[names[i]]; |
- $length = bucket.length; |
- for (i0 = 0; i0 < $length; ++i0) { |
- result[index] = bucket[i0]; |
- ++index; |
- } |
- } |
- } |
- this._elements = result; |
- return result; |
- }, |
- _computeHashCode$1: function(element) { |
- return J.get$hashCode$(element) & 0x3ffffff; |
- }, |
- _findBucketIndex$2: function(bucket, element) { |
- var $length, i; |
- if (bucket == null) |
- return -1; |
- $length = bucket.length; |
- for (i = 0; i < $length; ++i) |
- if (J.$eq(bucket[i], element)) |
- return i; |
- return -1; |
- }, |
- $as_HashSetBase: null, |
- $asIterable: null, |
- $isEfficientLength: true, |
- $isIterable: true |
-}, |
- |
-_IdentityHashSet: {"": "_HashSet;_collection$_length,_strings,_nums,_rest,_elements", |
- _computeHashCode$1: function(key) { |
- return H.objectHashCode(key) & 0x3ffffff; |
- }, |
- _findBucketIndex$2: function(bucket, element) { |
- var $length, i; |
- if (bucket == null) |
- return -1; |
- $length = bucket.length; |
- for (i = 0; i < $length; ++i) |
- if (bucket[i] === element) |
- return i; |
- return -1; |
- }, |
- $as_HashSet: null, |
- $asIterable: null |
-}, |
- |
-HashSetIterator: {"": "Object;_set,_elements,_offset,_collection$_current", |
- get$current: function() { |
- return this._collection$_current; |
- }, |
- moveNext$0: function() { |
- var elements, offset, t1; |
- elements = this._elements; |
- offset = this._offset; |
- t1 = this._set; |
- if (elements !== t1._elements) |
- throw H.wrapException(P.ConcurrentModificationError$(t1)); |
- else if (offset >= elements.length) { |
- this._collection$_current = null; |
- return false; |
- } else { |
- this._collection$_current = elements[offset]; |
- this._offset = offset + 1; |
- return true; |
- } |
- } |
-}, |
- |
-_HashSetBase: {"": "IterableBase;", |
- toString$0: function(_) { |
- return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); |
- }, |
- $asIterableBase: null, |
- $asIterable: null, |
- $isEfficientLength: true, |
- $isIterable: true |
-}, |
- |
-IterableBase: {"": "Object;", |
- map$1: function(_, f) { |
- return H.MappedIterable_MappedIterable(this, f, H.getRuntimeTypeArgument(this, "IterableBase", 0), null); |
- }, |
- forEach$1: function(_, f) { |
- var t1; |
- for (t1 = this.get$iterator(this); t1.moveNext$0();) |
- f.call$1(t1.get$current()); |
- }, |
- get$length: function(_) { |
- var it, count; |
- it = this.get$iterator(this); |
- for (count = 0; it.moveNext$0();) |
- ++count; |
- return count; |
- }, |
- elementAt$1: function(_, index) { |
- var t1, remaining, element; |
- if (typeof index !== "number" || Math.floor(index) !== index || index < 0) |
- throw H.wrapException(P.RangeError$value(index)); |
- for (t1 = this.get$iterator(this), remaining = index; t1.moveNext$0();) { |
- element = t1.get$current(); |
- if (remaining === 0) |
- return element; |
- remaining = J.$sub$n(remaining, 1); |
- } |
- throw H.wrapException(P.RangeError$value(index)); |
- }, |
- toString$0: function(_) { |
- return P._iterableToString(this); |
- }, |
- $isIterable: true, |
- $asIterable: null |
-}, |
- |
-ListMixin: {"": "Object;", |
- get$iterator: function(receiver) { |
- return new H.ListIterator(receiver, this.get$length(receiver), 0, null); |
- }, |
- elementAt$1: function(receiver, index) { |
- return this.$index(receiver, index); |
- }, |
- forEach$1: function(receiver, action) { |
- var $length, i; |
- $length = this.get$length(receiver); |
- if (typeof $length !== "number") |
- throw H.iae($length); |
- i = 0; |
- for (; i < $length; ++i) { |
- action.call$1(this.$index(receiver, i)); |
- if ($length !== this.get$length(receiver)) |
- throw H.wrapException(P.ConcurrentModificationError$(receiver)); |
- } |
- }, |
- map$1: function(receiver, f) { |
- var t1 = new H.MappedListIterable(receiver, f); |
- H.setRuntimeTypeInfo(t1, [null, null]); |
- return t1; |
- }, |
- toString$0: function(receiver) { |
- var result, t1; |
- t1 = $.get$_toStringVisiting(); |
- if (t1.contains$1(t1, receiver)) |
- return "[...]"; |
- result = P.StringBuffer$(""); |
- try { |
- t1 = $.get$_toStringVisiting(); |
- t1.add$1(t1, receiver); |
- result.write$1("["); |
- result.writeAll$2(receiver, ", "); |
- result.write$1("]"); |
- } finally { |
- t1 = $.get$_toStringVisiting(); |
- t1.remove$1(t1, receiver); |
- } |
- return result.get$_contents(); |
- }, |
- $isEfficientLength: true, |
- $isIterable: true, |
- $asIterable: null |
-}, |
- |
-Maps_mapToString_closure: {"": "Closure;box_0,result_1", |
- call$2: function(k, v) { |
- var t1 = this.box_0; |
- if (!t1.first_0) |
- this.result_1.write$1(", "); |
- t1.first_0 = false; |
- t1 = this.result_1; |
- t1.write$1(k); |
- t1.write$1(": "); |
- t1.write$1(v); |
- }, |
- "+call:2:0": 0, |
- $isFunction: true |
-}}], |
-["dart.core", "dart:core", , P, { |
-Function__toMangledNames: function(namedArguments) { |
- return; |
-}, |
- |
-Error_safeToString: function(object) { |
- var buffer, t1, i, codeUnit, t2, charCodes; |
- if (typeof object === "number" || typeof object === "boolean" || null == object) |
- return J.toString$0(object); |
- if (typeof object === "string") { |
- buffer = new P.StringBuffer(""); |
- buffer._contents = "\""; |
- for (t1 = object.length, i = 0; i < t1; ++i) { |
- codeUnit = C.JSString_methods.codeUnitAt$1(object, i); |
- if (codeUnit <= 31) |
- if (codeUnit === 10) |
- buffer._contents = buffer._contents + "\\n"; |
- else if (codeUnit === 13) |
- buffer._contents = buffer._contents + "\\r"; |
- else if (codeUnit === 9) |
- buffer._contents = buffer._contents + "\\t"; |
- else { |
- buffer._contents = buffer._contents + "\\x"; |
- if (codeUnit < 16) |
- buffer._contents = buffer._contents + "0"; |
- else { |
- buffer._contents = buffer._contents + "1"; |
- codeUnit -= 16; |
- } |
- t2 = codeUnit < 10 ? 48 + codeUnit : 87 + codeUnit; |
- charCodes = P.List_List$filled(1, t2, J.JSInt); |
- charCodes.$builtinTypeInfo = [J.JSInt]; |
- t2 = H.Primitives_stringFromCharCodes(charCodes); |
- buffer._contents = buffer._contents + t2; |
- } |
- else if (codeUnit === 92) |
- buffer._contents = buffer._contents + "\\\\"; |
- else if (codeUnit === 34) |
- buffer._contents = buffer._contents + "\\\""; |
- else { |
- charCodes = P.List_List$filled(1, codeUnit, J.JSInt); |
- charCodes.$builtinTypeInfo = [J.JSInt]; |
- t2 = H.Primitives_stringFromCharCodes(charCodes); |
- buffer._contents = buffer._contents + t2; |
- } |
- } |
- buffer._contents = buffer._contents + "\""; |
- return buffer._contents; |
- } |
- return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; |
-}, |
- |
-Exception_Exception: function(message) { |
- return new P._ExceptionImplementation(message); |
-}, |
- |
-identical: function(a, b) { |
- return a == null ? b == null : a === b; |
-}, |
- |
-identityHashCode: function(object) { |
- return H.objectHashCode(object); |
-}, |
- |
-List_List: function($length, $E) { |
- if ($length == null) |
- return new Array(0); |
- if (typeof $length !== "number" || Math.floor($length) !== $length || $length < 0) |
- throw H.wrapException(new P.ArgumentError("Length must be a positive integer: " + H.S($length) + ".")); |
- return H.Primitives_newFixedList($length); |
-}, |
- |
-List_List$filled: function($length, fill, $E) { |
- var result, t1, i; |
- if ($length < 0) |
- throw H.wrapException(new P.ArgumentError("Length must be a positive integer: " + $length + ".")); |
- result = H.Primitives_newFixedList($length); |
- if ($length !== 0 && true) |
- for (t1 = result.length, i = 0; i < t1; ++i) |
- result[i] = fill; |
- return result; |
-}, |
- |
-List_List$from: function(other, growable, $E) { |
- var list, t1, $length, fixedList, i; |
- list = P.List_List(null, $E); |
- H.setRuntimeTypeInfo(list, [$E]); |
- for (t1 = J.get$iterator$ax(other); t1.moveNext$0();) |
- list.push(t1.get$current()); |
- if (growable) |
- return list; |
- $length = list.length; |
- fixedList = P.List_List($length, $E); |
- H.setRuntimeTypeInfo(fixedList, [$E]); |
- for (t1 = list.length, i = 0; i < $length; ++i) { |
- if (i >= t1) |
- throw H.ioore(list, i); |
- fixedList[i] = list[i]; |
- } |
- return fixedList; |
-}, |
- |
-Function__toMangledNames_closure: {"": "Closure;result_0", |
- call$2: function(symbol, value) { |
- var t1 = this.result_0; |
- t1.$indexSet(t1, symbol.get$_name(), value); |
- }, |
- "+call:2:0": 0, |
- $isFunction: true |
-}, |
- |
-NoSuchMethodError_toString_closure: {"": "Closure;box_0", |
- call$2: function(key, value) { |
- var t1 = this.box_0; |
- if (t1.i_1 > 0) |
- t1.sb_0.write$1(", "); |
- t1.sb_0.write$1(key.get$_name()); |
- t1.sb_0.write$1(": "); |
- t1.sb_0.write$1(P.Error_safeToString(value)); |
- t1.i_1 = t1.i_1 + 1; |
- }, |
- "+call:2:0": 0, |
- $isFunction: true |
-}, |
- |
-DateTime: {"": "Object;millisecondsSinceEpoch,isUtc", |
- $eq: function(_, other) { |
- var t1; |
- if (other == null) |
- return false; |
- t1 = J.getInterceptor(other); |
- if (typeof other !== "object" || other === null || !t1.$isDateTime) |
- return false; |
- return this.millisecondsSinceEpoch === other.millisecondsSinceEpoch && this.isUtc === other.isUtc; |
- }, |
- get$hashCode: function(_) { |
- return this.millisecondsSinceEpoch; |
- }, |
- toString$0: function(_) { |
- var t1, y, m, d, h, min, sec, ms; |
- t1 = new P.DateTime_toString_twoDigits(); |
- y = new P.DateTime_toString_fourDigits().call$1(H.Primitives_getYear(this)); |
- m = t1.call$1(H.Primitives_getMonth(this)); |
- d = t1.call$1(H.Primitives_getDay(this)); |
- h = t1.call$1(H.Primitives_getHours(this)); |
- min = t1.call$1(H.Primitives_getMinutes(this)); |
- sec = t1.call$1(H.Primitives_getSeconds(this)); |
- ms = new P.DateTime_toString_threeDigits().call$1(H.Primitives_getMilliseconds(this)); |
- if (this.isUtc) |
- return H.S(y) + "-" + H.S(m) + "-" + H.S(d) + " " + H.S(h) + ":" + H.S(min) + ":" + H.S(sec) + "." + H.S(ms) + "Z"; |
- else |
- return H.S(y) + "-" + H.S(m) + "-" + H.S(d) + " " + H.S(h) + ":" + H.S(min) + ":" + H.S(sec) + "." + H.S(ms); |
- }, |
- DateTime$fromMillisecondsSinceEpoch$2$isUtc: function(millisecondsSinceEpoch, isUtc) { |
- if (Math.abs(millisecondsSinceEpoch) > 8640000000000000) |
- throw H.wrapException(new P.ArgumentError(millisecondsSinceEpoch)); |
- }, |
- $isDateTime: true, |
- static: { |
-"": "DateTime_MONDAY,DateTime_TUESDAY,DateTime_WEDNESDAY,DateTime_THURSDAY,DateTime_FRIDAY,DateTime_SATURDAY,DateTime_SUNDAY,DateTime_DAYS_PER_WEEK,DateTime_JANUARY,DateTime_FEBRUARY,DateTime_MARCH,DateTime_APRIL,DateTime_MAY,DateTime_JUNE,DateTime_JULY,DateTime_AUGUST,DateTime_SEPTEMBER,DateTime_OCTOBER,DateTime_NOVEMBER,DateTime_DECEMBER,DateTime_MONTHS_PER_YEAR,DateTime__MAX_MILLISECONDS_SINCE_EPOCH", |
-DateTime$fromMillisecondsSinceEpoch: function(millisecondsSinceEpoch, isUtc) { |
- var t1 = new P.DateTime(millisecondsSinceEpoch, isUtc); |
- t1.DateTime$fromMillisecondsSinceEpoch$2$isUtc(millisecondsSinceEpoch, isUtc); |
- return t1; |
-}} |
- |
-}, |
- |
-DateTime_toString_fourDigits: {"": "Closure;", |
- call$1: function(n) { |
- var t1, absN, sign; |
- t1 = J.getInterceptor$n(n); |
- absN = t1.abs$0(n); |
- sign = t1.$lt(n, 0) ? "-" : ""; |
- if (absN >= 1000) |
- return H.S(n); |
- if (absN >= 100) |
- return sign + "0" + H.S(absN); |
- if (absN >= 10) |
- return sign + "00" + H.S(absN); |
- return sign + "000" + H.S(absN); |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}, |
- |
-DateTime_toString_threeDigits: {"": "Closure;", |
- call$1: function(n) { |
- var t1 = J.getInterceptor$n(n); |
- if (t1.$ge(n, 100)) |
- return H.S(n); |
- if (t1.$ge(n, 10)) |
- return "0" + H.S(n); |
- return "00" + H.S(n); |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}, |
- |
-DateTime_toString_twoDigits: {"": "Closure;", |
- call$1: function(n) { |
- if (J.$ge$n(n, 10)) |
- return H.S(n); |
- return "0" + H.S(n); |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}, |
- |
-Error: {"": "Object;", $isError: true}, |
- |
-NullThrownError: {"": "Error;", |
- toString$0: function(_) { |
- return "Throw of null."; |
- } |
-}, |
- |
-ArgumentError: {"": "Error;message", |
- toString$0: function(_) { |
- var t1 = this.message; |
- if (t1 != null) |
- return "Illegal argument(s): " + H.S(t1); |
- return "Illegal argument(s)"; |
- } |
-}, |
- |
-RangeError: {"": "ArgumentError;message", |
- toString$0: function(_) { |
- return "RangeError: " + H.S(this.message); |
- }, |
- static: { |
-RangeError$value: function(value) { |
- return new P.RangeError("value " + H.S(value)); |
-}, |
- |
-RangeError$range: function(value, start, end) { |
- return new P.RangeError("value " + H.S(value) + " not in range " + start + ".." + H.S(end)); |
-}} |
- |
-}, |
- |
-NoSuchMethodError: {"": "Error;_core$_receiver,_memberName,_core$_arguments,_namedArguments,_existingArgumentNames", |
- toString$0: function(_) { |
- var t1, t2, t3, t4, str; |
- t1 = {}; |
- t1.sb_0 = P.StringBuffer$(""); |
- t1.i_1 = 0; |
- for (t2 = this._core$_arguments; t3 = t1.i_1, t3 < t2.length; t1.i_1 = t1.i_1 + 1) { |
- if (t3 > 0) { |
- t3 = t1.sb_0; |
- t3._contents = t3._contents + ", "; |
- } |
- t3 = t1.sb_0; |
- t4 = t1.i_1; |
- if (t4 < 0 || t4 >= t2.length) |
- throw H.ioore(t2, t4); |
- str = P.Error_safeToString(t2[t4]); |
- str = typeof str === "string" ? str : H.S(str); |
- t3._contents = t3._contents + str; |
- } |
- t2 = this._namedArguments; |
- t2.forEach$1(t2, new P.NoSuchMethodError_toString_closure(t1)); |
- return "NoSuchMethodError : method not found: '" + H.S(this._memberName) + "'\nReceiver: " + H.S(P.Error_safeToString(this._core$_receiver)) + "\nArguments: [" + H.S(t1.sb_0) + "]"; |
- }, |
- static: { |
-NoSuchMethodError$: function(receiver, memberName, positionalArguments, namedArguments, existingArgumentNames) { |
- return new P.NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments, existingArgumentNames); |
-}} |
- |
-}, |
- |
-UnsupportedError: {"": "Error;message", |
- toString$0: function(_) { |
- return "Unsupported operation: " + this.message; |
- }, |
- static: { |
-UnsupportedError$: function(message) { |
- return new P.UnsupportedError(message); |
-}} |
- |
-}, |
- |
-UnimplementedError: {"": "Error;message", |
- toString$0: function(_) { |
- var t1 = this.message; |
- return t1 != null ? "UnimplementedError: " + H.S(t1) : "UnimplementedError"; |
- }, |
- $isError: true, |
- static: { |
-UnimplementedError$: function(message) { |
- return new P.UnimplementedError(message); |
-}} |
- |
-}, |
- |
-ConcurrentModificationError: {"": "Error;modifiedObject", |
- toString$0: function(_) { |
- var t1 = this.modifiedObject; |
- if (t1 == null) |
- return "Concurrent modification during iteration."; |
- return "Concurrent modification during iteration: " + H.S(P.Error_safeToString(t1)) + "."; |
- }, |
- static: { |
-ConcurrentModificationError$: function(modifiedObject) { |
- return new P.ConcurrentModificationError(modifiedObject); |
-}} |
- |
-}, |
- |
-StackOverflowError: {"": "Object;", |
- toString$0: function(_) { |
- return "Stack Overflow"; |
- }, |
- $isError: true |
-}, |
- |
-CyclicInitializationError: {"": "Error;variableName", |
- toString$0: function(_) { |
- return "Reading static variable '" + this.variableName + "' during its initialization"; |
- }, |
- static: { |
-CyclicInitializationError$: function(variableName) { |
- return new P.CyclicInitializationError(variableName); |
-}} |
- |
-}, |
- |
-_ExceptionImplementation: {"": "Object;message", |
- toString$0: function(_) { |
- return "Exception: " + this.message; |
- } |
-}, |
- |
-Iterator: {"": "Object;"}, |
- |
-Null: {"": "Object;", |
- toString$0: function(_) { |
- return "null"; |
- } |
-}, |
- |
-Object: {"": ";", |
- $eq: function(_, other) { |
- return this === other; |
- }, |
- get$hashCode: function(_) { |
- return H.Primitives_objectHashCode(this); |
- }, |
- toString$0: function(_) { |
- return H.Primitives_objectToString(this); |
- }, |
- noSuchMethod$1: function(_, invocation) { |
- throw H.wrapException(P.NoSuchMethodError$(this, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments(), null)); |
- } |
-}, |
- |
-StringBuffer: {"": "Object;_contents<", |
- get$length: function(_) { |
- return this._contents.length; |
- }, |
- write$1: function(obj) { |
- var str = typeof obj === "string" ? obj : H.S(obj); |
- this._contents = this._contents + str; |
- }, |
- writeAll$2: function(objects, separator) { |
- var iterator, str; |
- iterator = J.get$iterator$ax(objects); |
- if (!iterator.moveNext$0()) |
- return; |
- if (separator.length === 0) |
- do { |
- str = iterator.get$current(); |
- str = typeof str === "string" ? str : H.S(str); |
- this._contents = this._contents + str; |
- } while (iterator.moveNext$0()); |
- else { |
- this.write$1(iterator.get$current()); |
- for (; iterator.moveNext$0();) { |
- this._contents = this._contents + separator; |
- str = iterator.get$current(); |
- str = typeof str === "string" ? str : H.S(str); |
- this._contents = this._contents + str; |
- } |
- } |
- }, |
- toString$0: function(_) { |
- return this._contents; |
- }, |
- StringBuffer$1: function($content) { |
- this._contents = $content; |
- }, |
- static: { |
-StringBuffer$: function($content) { |
- var t1 = new P.StringBuffer(""); |
- t1.StringBuffer$1($content); |
- return t1; |
-}} |
- |
-}, |
- |
-Symbol: {"": "Object;"}}], |
-["dart.dom.html", "dart:html", , W, { |
-HtmlElement: {"": "Element;", "%": "HTMLAppletElement|HTMLAreaElement|HTMLAudioElement|HTMLBRElement|HTMLBaseElement|HTMLBaseFontElement|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement|HTMLContentElement|HTMLDListElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirectoryElement|HTMLDivElement|HTMLEmbedElement|HTMLFieldSetElement|HTMLFontElement|HTMLFrameElement|HTMLFrameSetElement|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMediaElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLObjectElement|HTMLOptGroupElement|HTMLOptionElement|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLScriptElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemplateElement|HTMLTextAreaElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknownElement|HTMLVideoElement;HTMLElement"}, |
- |
-AnchorElement: {"": "HtmlElement;", |
- toString$0: function(receiver) { |
- return receiver.toString(); |
- }, |
- "%": "HTMLAnchorElement" |
-}, |
- |
-Blob: {"": "Interceptor;", $isBlob: true, "%": "Blob|File"}, |
- |
-CharacterData: {"": "Node;length=", "%": "CDATASection|CharacterData|Comment|ProcessingInstruction|Text"}, |
- |
-DomException: {"": "Interceptor;", |
- toString$0: function(receiver) { |
- return receiver.toString(); |
- }, |
- "%": "DOMException" |
-}, |
- |
-Element: {"": "Node;", |
- toString$0: function(receiver) { |
- return receiver.localName; |
- }, |
- "%": "SVGAElement|SVGAltGlyphDefElement|SVGAltGlyphElement|SVGAltGlyphItemElement|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnimateTransformElement|SVGAnimationElement|SVGCircleElement|SVGClipPathElement|SVGComponentTransferFunctionElement|SVGCursorElement|SVGDefsElement|SVGDescElement|SVGElement|SVGEllipseElement|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponentTransferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLightingElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShadowElement|SVGFEFloodElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement|SVGFEFuncRElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|SVGFEMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightElement|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFETurbulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFaceFormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement|SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGlyphRefElement|SVGGradientElement|SVGGraphicsElement|SVGHKernElement|SVGImageElement|SVGLineElement|SVGLinearGradientElement|SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMetadataElement|SVGMissingGlyphElement|SVGPathElement|SVGPatternElement|SVGPolygonElement|SVGPolylineElement|SVGRadialGradientElement|SVGRectElement|SVGSVGElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGStyleElement|SVGSwitchElement|SVGSymbolElement|SVGTSpanElement|SVGTextContentElement|SVGTextElement|SVGTextPathElement|SVGTextPositioningElement|SVGTitleElement|SVGUseElement|SVGVKernElement|SVGViewElement;Element" |
-}, |
- |
-Event: {"": "Interceptor;", $isEvent: true, "%": "AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEvent|BeforeUnloadEvent|CSSFontFaceLoadEvent|CloseEvent|CompositionEvent|CustomEvent|DeviceMotionEvent|DeviceOrientationEvent|DragEvent|ErrorEvent|Event|FocusEvent|HashChangeEvent|IDBVersionChangeEvent|KeyboardEvent|MIDIConnectionEvent|MIDIMessageEvent|MSPointerEvent|MediaKeyEvent|MediaKeyMessageEvent|MediaKeyNeededEvent|MediaStreamEvent|MediaStreamTrackEvent|MessageEvent|MouseEvent|MouseScrollEvent|MouseWheelEvent|MutationEvent|OfflineAudioCompletionEvent|OverflowEvent|PageTransitionEvent|PointerEvent|PopStateEvent|ProgressEvent|RTCDTMFToneChangeEvent|RTCDataChannelEvent|RTCIceCandidateEvent|ResourceProgressEvent|SVGZoomEvent|SecurityPolicyViolationEvent|SpeechInputEvent|SpeechRecognitionError|SpeechRecognitionEvent|SpeechSynthesisEvent|StorageEvent|TextEvent|TouchEvent|TrackEvent|TransitionEvent|UIEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransitionEvent|WheelEvent|XMLHttpRequestProgressEvent"}, |
- |
-EventTarget: {"": "Interceptor;", "%": ";EventTarget"}, |
- |
-FormElement: {"": "HtmlElement;length=", "%": "HTMLFormElement"}, |
- |
-ImageData: {"": "Interceptor;", $isImageData: true, "%": "ImageData"}, |
- |
-InputElement: {"": "HtmlElement;", $isNode: true, "%": "HTMLInputElement"}, |
- |
-Node: {"": "EventTarget;", |
- toString$0: function(receiver) { |
- var t1 = receiver.nodeValue; |
- return t1 == null ? J.Interceptor.prototype.toString$0.call(this, receiver) : t1; |
- }, |
- $isNode: true, |
- "%": "Attr|Document|DocumentFragment|DocumentType|Entity|HTMLDocument|Notation|SVGDocument|ShadowRoot;Node" |
-}, |
- |
-SelectElement: {"": "HtmlElement;length=", "%": "HTMLSelectElement"}, |
- |
-Window: {"": "EventTarget;", |
- toString$0: function(receiver) { |
- return receiver.toString(); |
- }, |
- $isWindow: true, |
- "%": "DOMWindow|Window" |
-}}], |
-["dart.dom.indexed_db", "dart:indexed_db", , P, { |
-KeyRange: {"": "Interceptor;", $isKeyRange: true, "%": "IDBKeyRange"}}], |
-["dart.js", "dart:js", , P, { |
-_convertDartFunction: function(f, captureThis) { |
- return function(_call, f, captureThis) {return function() {return _call(f, captureThis, this, Array.prototype.slice.apply(arguments));}}(P._callDartFunction$closure.call$4, f, captureThis); |
-}, |
- |
-_callDartFunction: function(callback, captureThis, $self, $arguments) { |
- var arguments0; |
- if (captureThis === true) { |
- arguments0 = [$self]; |
- C.JSArray_methods.addAll$1(arguments0, $arguments); |
- $arguments = arguments0; |
- } |
- return P._convertToJS(H.Primitives_applyFunction(callback, P.List_List$from(J.map$1$ax($arguments, P._convertToDart$closure), true, null), P.Function__toMangledNames(null))); |
-}, |
- |
-_defineProperty: function(o, $name, value) { |
- var exception; |
- if (Object.isExtensible(o)) |
- try { |
- Object.defineProperty(o, $name, { value: value}); |
- return true; |
- } catch (exception) { |
- H.unwrapException(exception); |
- } |
- |
- return false; |
-}, |
- |
-_convertToJS: function(o) { |
- var t1; |
- if (o == null) |
- return; |
- else { |
- if (typeof o !== "string") |
- if (typeof o !== "number") |
- if (typeof o !== "boolean") { |
- t1 = J.getInterceptor(o); |
- t1 = typeof o === "object" && o !== null && !!t1.$isBlob || typeof o === "object" && o !== null && !!t1.$isEvent || typeof o === "object" && o !== null && !!t1.$isKeyRange || typeof o === "object" && o !== null && !!t1.$isImageData || typeof o === "object" && o !== null && !!t1.$isNode || typeof o === "object" && o !== null && !!t1.$isTypedData || typeof o === "object" && o !== null && !!t1.$isWindow; |
- } else |
- t1 = true; |
- else |
- t1 = true; |
- else |
- t1 = true; |
- if (t1) |
- return o; |
- else { |
- t1 = J.getInterceptor(o); |
- if (typeof o === "object" && o !== null && !!t1.$isDateTime) |
- return H.Primitives_lazyAsJsDate(o); |
- else if (typeof o === "object" && o !== null && !!t1.$isJsObject) |
- return o._jsObject; |
- else if (typeof o === "object" && o !== null && !!t1.$isFunction) |
- return P._getJsProxy(o, "$dart_jsFunction", new P._convertToJS_closure()); |
- else |
- return P._getJsProxy(o, "_$dart_jsObject", new P._convertToJS_closure0()); |
- } |
- } |
-}, |
- |
-_getJsProxy: function(o, propertyName, createProxy) { |
- var jsProxy = o[propertyName]; |
- if (jsProxy == null) { |
- jsProxy = createProxy.call$1(o); |
- P._defineProperty(o, propertyName, jsProxy); |
- } |
- return jsProxy; |
-}, |
- |
-_convertToDart: function(o) { |
- var t1; |
- if (o == null || typeof o == "string" || typeof o == "number" || typeof o == "boolean") |
- return o; |
- else { |
- if (o instanceof Object) { |
- t1 = J.getInterceptor(o); |
- t1 = typeof o === "object" && o !== null && !!t1.$isBlob || typeof o === "object" && o !== null && !!t1.$isEvent || typeof o === "object" && o !== null && !!t1.$isKeyRange || typeof o === "object" && o !== null && !!t1.$isImageData || typeof o === "object" && o !== null && !!t1.$isNode || typeof o === "object" && o !== null && !!t1.$isTypedData || typeof o === "object" && o !== null && !!t1.$isWindow; |
- } else |
- t1 = false; |
- if (t1) |
- return o; |
- else if (o instanceof Date) |
- return P.DateTime$fromMillisecondsSinceEpoch(o.getMilliseconds(), false); |
- else if (o.constructor === DartObject) |
- return o.o; |
- else |
- return P._wrapToDart(o); |
- } |
-}, |
- |
-_wrapToDart: function(o) { |
- if (typeof o == "function") |
- return P._getDartProxy(o, "_$dart_dartClosure", new P._wrapToDart_closure()); |
- else if (o instanceof Array) |
- return P._getDartProxy(o, "_$dart_dartObject", new P._wrapToDart_closure0()); |
- else |
- return P._getDartProxy(o, "_$dart_dartObject", new P._wrapToDart_closure1()); |
-}, |
- |
-_getDartProxy: function(o, propertyName, createProxy) { |
- var dartProxy = o[propertyName]; |
- if (dartProxy == null) { |
- dartProxy = createProxy.call$1(o); |
- P._defineProperty(o, propertyName, dartProxy); |
- } |
- return dartProxy; |
-}, |
- |
-JsObject: {"": "Object;_jsObject", |
- $index: function(_, property) { |
- if (typeof property !== "string" && typeof property !== "number") |
- throw H.wrapException(new P.ArgumentError("property is not a String or num")); |
- return P._convertToDart(this._jsObject[property]); |
- }, |
- get$hashCode: function(_) { |
- return 0; |
- }, |
- $eq: function(_, other) { |
- var t1; |
- if (other == null) |
- return false; |
- t1 = J.getInterceptor(other); |
- return typeof other === "object" && other !== null && !!t1.$isJsObject && this._jsObject === other._jsObject; |
- }, |
- toString$0: function(_) { |
- var t1, exception; |
- try { |
- t1 = String(this._jsObject); |
- return t1; |
- } catch (exception) { |
- H.unwrapException(exception); |
- return P.Object.prototype.toString$0.call(this, this); |
- } |
- |
- }, |
- $isJsObject: true, |
- static: { |
-JsObject_JsObject: function($constructor, $arguments) { |
- var constr, args, t1, factoryFunction; |
- constr = P._convertToJS($constructor); |
- args = [null]; |
- t1 = new H.MappedListIterable($arguments, P._convertToJS$closure); |
- H.setRuntimeTypeInfo(t1, [null, null]); |
- C.JSArray_methods.addAll$1(args, t1); |
- factoryFunction = constr.bind.apply(constr, args); |
- String(factoryFunction); |
- return P._wrapToDart(new factoryFunction()); |
-}, |
- |
-JsObject_JsObject$jsify: function(object) { |
- return P._wrapToDart(P.JsObject__convertDataTree(object)); |
-}, |
- |
-JsObject__convertDataTree: function(data) { |
- return new P.JsObject__convertDataTree__convert(P.HashMap_HashMap$identity(null, null)).call$1(data); |
-}} |
- |
-}, |
- |
-JsObject__convertDataTree__convert: {"": "Closure;_convertedObjects_0", |
- call$1: function(o) { |
- var t1, t2, convertedMap, key, convertedList; |
- t1 = this._convertedObjects_0; |
- if (t1.containsKey$1(o)) |
- return t1.$index(t1, o); |
- t2 = J.getInterceptor(o); |
- if (typeof o === "object" && o !== null && !!t2.$isMap) { |
- convertedMap = {}; |
- t1.$indexSet(t1, o, convertedMap); |
- for (t1 = o.get$keys(), t1 = t1.get$iterator(t1); t1.moveNext$0();) { |
- key = t1.get$current(); |
- convertedMap[key] = this.call$1(t2.$index(o, key)); |
- } |
- return convertedMap; |
- } else if (typeof o === "object" && o !== null && (o.constructor === Array || !!t2.$isIterable)) { |
- convertedList = []; |
- t1.$indexSet(t1, o, convertedList); |
- C.JSArray_methods.addAll$1(convertedList, t2.map$1(o, this)); |
- return convertedList; |
- } else |
- return P._convertToJS(o); |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}, |
- |
-JsFunction: {"": "JsObject;_jsObject"}, |
- |
-JsArray: {"": "JsObject_ListMixin;_jsObject", |
- $index: function(_, index) { |
- var t1; |
- if (typeof index === "number" && index === C.JSNumber_methods.toInt$0(index)) { |
- if (typeof index === "number" && Math.floor(index) === index) |
- if (!(index < 0)) { |
- t1 = P.JsObject.prototype.$index.call(this, this, "length"); |
- if (typeof t1 !== "number") |
- throw H.iae(t1); |
- t1 = index >= t1; |
- } else |
- t1 = true; |
- else |
- t1 = false; |
- if (t1) |
- H.throwExpression(P.RangeError$range(index, 0, P.JsObject.prototype.$index.call(this, this, "length"))); |
- } |
- return P.JsObject.prototype.$index.call(this, this, index); |
- }, |
- get$length: function(_) { |
- return P.JsObject.prototype.$index.call(this, this, "length"); |
- }, |
- $asIterable: null |
-}, |
- |
-JsObject_ListMixin: {"": "JsObject+ListMixin;", $isEfficientLength: true, $isIterable: true, $asIterable: null}, |
- |
-_convertToJS_closure: {"": "Closure;", |
- call$1: function(o) { |
- var jsFunction = P._convertDartFunction(o, false); |
- P._defineProperty(jsFunction, "_$dart_dartClosure", o); |
- return jsFunction; |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}, |
- |
-_convertToJS_closure0: {"": "Closure;", |
- call$1: function(o) { |
- return new DartObject(o); |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}, |
- |
-_wrapToDart_closure: {"": "Closure;", |
- call$1: function(o) { |
- return new P.JsFunction(o); |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}, |
- |
-_wrapToDart_closure0: {"": "Closure;", |
- call$1: function(o) { |
- var t1 = new P.JsArray(o); |
- H.setRuntimeTypeInfo(t1, [null]); |
- return t1; |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}, |
- |
-_wrapToDart_closure1: {"": "Closure;", |
- call$1: function(o) { |
- return new P.JsObject(o); |
- }, |
- "+call:1:0": 0, |
- $isFunction: true |
-}}], |
-["dart.typed_data", "dart:typed_data", , P, { |
-TypedData: {"": "Interceptor;", |
- _invalidIndex$2: function(receiver, index, $length) { |
- var t1 = J.getInterceptor$n(index); |
- if (t1.$lt(index, 0) || t1.$ge(index, $length)) |
- throw H.wrapException(P.RangeError$range(index, 0, $length)); |
- else |
- throw H.wrapException(new P.ArgumentError("Invalid list index " + H.S(index))); |
- }, |
- $isTypedData: true, |
- "%": "DataView;ArrayBufferView;TypedData_ListMixin|TypedData_ListMixin_FixedLengthListMixin|TypedData_ListMixin0|TypedData_ListMixin_FixedLengthListMixin0|TypedData_ListMixin1|TypedData_ListMixin_FixedLengthListMixin1|TypedData_ListMixin2|TypedData_ListMixin_FixedLengthListMixin2|TypedData_ListMixin3|TypedData_ListMixin_FixedLengthListMixin3|TypedData_ListMixin4|TypedData_ListMixin_FixedLengthListMixin4|TypedData_ListMixin5|TypedData_ListMixin_FixedLengthListMixin5|TypedData_ListMixin6|TypedData_ListMixin_FixedLengthListMixin6|TypedData_ListMixin7|TypedData_ListMixin_FixedLengthListMixin7|Int64List|Uint64List" |
-}, |
- |
-Float32List: {"": "TypedData_ListMixin_FixedLengthListMixin;", |
- get$length: function(receiver) { |
- return C.JS_CONST_ZYJ(receiver); |
- }, |
- $index: function(receiver, index) { |
- var t1 = C.JS_CONST_ZYJ(receiver); |
- if (index >>> 0 != index || J.$ge$n(index, t1)) |
- this._invalidIndex$2(receiver, index, t1); |
- return receiver[index]; |
- }, |
- $asIterable: function() { |
- return [J.JSDouble]; |
- }, |
- $isEfficientLength: true, |
- $isIterable: true, |
- $isJavaScriptIndexingBehavior: true, |
- "%": "Float32Array" |
-}, |
- |
-Float64List: {"": "TypedData_ListMixin_FixedLengthListMixin0;", |
- get$length: function(receiver) { |
- return C.JS_CONST_ZYJ(receiver); |
- }, |
- $index: function(receiver, index) { |
- var t1 = C.JS_CONST_ZYJ(receiver); |
- if (index >>> 0 != index || J.$ge$n(index, t1)) |
- this._invalidIndex$2(receiver, index, t1); |
- return receiver[index]; |
- }, |
- $asIterable: function() { |
- return [J.JSDouble]; |
- }, |
- $isEfficientLength: true, |
- $isIterable: true, |
- $isJavaScriptIndexingBehavior: true, |
- "%": "Float64Array" |
-}, |
- |
-Int16List: {"": "TypedData_ListMixin_FixedLengthListMixin1;", |
- get$length: function(receiver) { |
- return C.JS_CONST_ZYJ(receiver); |
- }, |
- $index: function(receiver, index) { |
- var t1 = C.JS_CONST_ZYJ(receiver); |
- if (index >>> 0 != index || J.$ge$n(index, t1)) |
- this._invalidIndex$2(receiver, index, t1); |
- return receiver[index]; |
- }, |
- $asIterable: function() { |
- return [J.JSInt]; |
- }, |
- $isEfficientLength: true, |
- $isIterable: true, |
- $isJavaScriptIndexingBehavior: true, |
- "%": "Int16Array" |
-}, |
- |
-Int32List: {"": "TypedData_ListMixin_FixedLengthListMixin2;", |
- get$length: function(receiver) { |
- return C.JS_CONST_ZYJ(receiver); |
- }, |
- $index: function(receiver, index) { |
- var t1 = C.JS_CONST_ZYJ(receiver); |
- if (index >>> 0 != index || J.$ge$n(index, t1)) |
- this._invalidIndex$2(receiver, index, t1); |
- return receiver[index]; |
- }, |
- $asIterable: function() { |
- return [J.JSInt]; |
- }, |
- $isEfficientLength: true, |
- $isIterable: true, |
- $isJavaScriptIndexingBehavior: true, |
- "%": "Int32Array" |
-}, |
- |
-Int8List: {"": "TypedData_ListMixin_FixedLengthListMixin3;", |
- get$length: function(receiver) { |
- return C.JS_CONST_ZYJ(receiver); |
- }, |
- $index: function(receiver, index) { |
- var t1 = C.JS_CONST_ZYJ(receiver); |
- if (index >>> 0 != index || J.$ge$n(index, t1)) |
- this._invalidIndex$2(receiver, index, t1); |
- return receiver[index]; |
- }, |
- $asIterable: function() { |
- return [J.JSInt]; |
- }, |
- $isEfficientLength: true, |
- $isIterable: true, |
- $isJavaScriptIndexingBehavior: true, |
- "%": "Int8Array" |
-}, |
- |
-Uint16List: {"": "TypedData_ListMixin_FixedLengthListMixin4;", |
- get$length: function(receiver) { |
- return C.JS_CONST_ZYJ(receiver); |
- }, |
- $index: function(receiver, index) { |
- var t1 = C.JS_CONST_ZYJ(receiver); |
- if (index >>> 0 != index || J.$ge$n(index, t1)) |
- this._invalidIndex$2(receiver, index, t1); |
- return receiver[index]; |
- }, |
- $asIterable: function() { |
- return [J.JSInt]; |
- }, |
- $isEfficientLength: true, |
- $isIterable: true, |
- $isJavaScriptIndexingBehavior: true, |
- "%": "Uint16Array" |
-}, |
- |
-Uint32List: {"": "TypedData_ListMixin_FixedLengthListMixin5;", |
- get$length: function(receiver) { |
- return C.JS_CONST_ZYJ(receiver); |
- }, |
- $index: function(receiver, index) { |
- var t1 = C.JS_CONST_ZYJ(receiver); |
- if (index >>> 0 != index || J.$ge$n(index, t1)) |
- this._invalidIndex$2(receiver, index, t1); |
- return receiver[index]; |
- }, |
- $asIterable: function() { |
- return [J.JSInt]; |
- }, |
- $isEfficientLength: true, |
- $isIterable: true, |
- $isJavaScriptIndexingBehavior: true, |
- "%": "Uint32Array" |
-}, |
- |
-Uint8ClampedList: {"": "TypedData_ListMixin_FixedLengthListMixin6;", |
- get$length: function(receiver) { |
- return C.JS_CONST_ZYJ(receiver); |
- }, |
- $index: function(receiver, index) { |
- var t1 = C.JS_CONST_ZYJ(receiver); |
- if (index >>> 0 != index || J.$ge$n(index, t1)) |
- this._invalidIndex$2(receiver, index, t1); |
- return receiver[index]; |
- }, |
- $asIterable: function() { |
- return [J.JSInt]; |
- }, |
- $isEfficientLength: true, |
- $isIterable: true, |
- $isJavaScriptIndexingBehavior: true, |
- "%": "CanvasPixelArray|Uint8ClampedArray" |
-}, |
- |
-Uint8List: {"": "TypedData_ListMixin_FixedLengthListMixin7;", |
- get$length: function(receiver) { |
- return C.JS_CONST_ZYJ(receiver); |
- }, |
- $index: function(receiver, index) { |
- var t1 = C.JS_CONST_ZYJ(receiver); |
- if (index >>> 0 != index || J.$ge$n(index, t1)) |
- this._invalidIndex$2(receiver, index, t1); |
- return receiver[index]; |
- }, |
- $asIterable: function() { |
- return [J.JSInt]; |
- }, |
- $isEfficientLength: true, |
- $isIterable: true, |
- $isJavaScriptIndexingBehavior: true, |
- "%": ";Uint8Array" |
-}, |
- |
-TypedData_ListMixin: {"": "TypedData+ListMixin;", $isEfficientLength: true, $isIterable: true, $asIterable: null}, |
- |
-TypedData_ListMixin_FixedLengthListMixin: {"": "TypedData_ListMixin+FixedLengthListMixin;", $asIterable: null}, |
- |
-TypedData_ListMixin0: {"": "TypedData+ListMixin;", $isEfficientLength: true, $isIterable: true, $asIterable: null}, |
- |
-TypedData_ListMixin_FixedLengthListMixin0: {"": "TypedData_ListMixin0+FixedLengthListMixin;", $asIterable: null}, |
- |
-TypedData_ListMixin1: {"": "TypedData+ListMixin;", $isEfficientLength: true, $isIterable: true, $asIterable: null}, |
- |
-TypedData_ListMixin_FixedLengthListMixin1: {"": "TypedData_ListMixin1+FixedLengthListMixin;", $asIterable: null}, |
- |
-TypedData_ListMixin2: {"": "TypedData+ListMixin;", $isEfficientLength: true, $isIterable: true, $asIterable: null}, |
- |
-TypedData_ListMixin_FixedLengthListMixin2: {"": "TypedData_ListMixin2+FixedLengthListMixin;", $asIterable: null}, |
- |
-TypedData_ListMixin3: {"": "TypedData+ListMixin;", $isEfficientLength: true, $isIterable: true, $asIterable: null}, |
- |
-TypedData_ListMixin_FixedLengthListMixin3: {"": "TypedData_ListMixin3+FixedLengthListMixin;", $asIterable: null}, |
- |
-TypedData_ListMixin4: {"": "TypedData+ListMixin;", $isEfficientLength: true, $isIterable: true, $asIterable: null}, |
- |
-TypedData_ListMixin_FixedLengthListMixin4: {"": "TypedData_ListMixin4+FixedLengthListMixin;", $asIterable: null}, |
- |
-TypedData_ListMixin5: {"": "TypedData+ListMixin;", $isEfficientLength: true, $isIterable: true, $asIterable: null}, |
- |
-TypedData_ListMixin_FixedLengthListMixin5: {"": "TypedData_ListMixin5+FixedLengthListMixin;", $asIterable: null}, |
- |
-TypedData_ListMixin6: {"": "TypedData+ListMixin;", $isEfficientLength: true, $isIterable: true, $asIterable: null}, |
- |
-TypedData_ListMixin_FixedLengthListMixin6: {"": "TypedData_ListMixin6+FixedLengthListMixin;", $asIterable: null}, |
- |
-TypedData_ListMixin7: {"": "TypedData+ListMixin;", $isEfficientLength: true, $isIterable: true, $asIterable: null}, |
- |
-TypedData_ListMixin_FixedLengthListMixin7: {"": "TypedData_ListMixin7+FixedLengthListMixin;", $asIterable: null}, |
- |
-Int64List: {"": "TypedData;", $isEfficientLength: true, $isIterable: true, |
- $asIterable: function() { |
- return [J.JSInt]; |
- }, |
- $isJavaScriptIndexingBehavior: true, |
- static: { |
-"": "Int64List_BYTES_PER_ELEMENT", |
-} |
- |
-}, |
- |
-Uint64List: {"": "TypedData;", $isEfficientLength: true, $isIterable: true, |
- $asIterable: function() { |
- return [J.JSInt]; |
- }, |
- $isJavaScriptIndexingBehavior: true, |
- static: { |
-"": "Uint64List_BYTES_PER_ELEMENT", |
-} |
- |
-}}], |
-["google_maps", "index.dart", , Z, { |
-main: function() { |
- var google_maps, t1, mapOptions; |
- google_maps = J.$index$asx(J.$index$asx($.get$context(), "google"), "maps"); |
- t1 = J.getInterceptor$asx(google_maps); |
- mapOptions = P.JsObject_JsObject$jsify(H.fillLiteralMap(["center", P.JsObject_JsObject(t1.$index(google_maps, "LatLng"), [-34.397, 150.644]), "zoom", 8, "mapTypeId", J.$index$asx(t1.$index(google_maps, "MapTypeId"), "ROADMAP")], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null))); |
- P.JsObject_JsObject(t1.$index(google_maps, "Map"), [document.querySelector("#map-canvas"), mapOptions]); |
-}}, |
-1], |
-]); |
-Isolate.$finishClasses($$, $, null); |
-$$ = null; |
- |
-// Static function getters |
-init.globalFunctions.toStringWrapper$closure = H.toStringWrapper$closure = new H.Closure$0(H.toStringWrapper, "toStringWrapper$closure"); |
-init.globalFunctions.invokeClosure$closure = H.invokeClosure$closure = new H.Closure$7(H.invokeClosure, "invokeClosure$closure"); |
-init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new P.Closure$2(P._defaultEquals, "_defaultEquals$closure"); |
-init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new P.Closure$1(P._defaultHashCode, "_defaultHashCode$closure"); |
-init.globalFunctions.identical$closure = P.identical$closure = new P.Closure$2(P.identical, "identical$closure"); |
-init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new P.Closure$1(P.identityHashCode, "identityHashCode$closure"); |
-init.globalFunctions._callDartFunction$closure = P._callDartFunction$closure = new P.Closure$4(P._callDartFunction, "_callDartFunction$closure"); |
-init.globalFunctions._convertToJS$closure = P._convertToJS$closure = new P.Closure$1(P._convertToJS, "_convertToJS$closure"); |
-init.globalFunctions._convertToDart$closure = P._convertToDart$closure = new P.Closure$1(P._convertToDart, "_convertToDart$closure"); |
-// Runtime type support |
-// getInterceptor methods |
-J.getInterceptor = function(receiver) { |
- if (typeof receiver == "number") { |
- if (Math.floor(receiver) == receiver) |
- return J.JSInt.prototype; |
- return J.JSDouble.prototype; |
- } |
- if (typeof receiver == "string") |
- return J.JSString.prototype; |
- if (receiver == null) |
- return J.JSNull.prototype; |
- if (typeof receiver == "boolean") |
- return J.JSBool.prototype; |
- if (receiver.constructor == Array) |
- return J.JSArray.prototype; |
- if (typeof receiver != "object") |
- return receiver; |
- if (receiver instanceof P.Object) |
- return receiver; |
- return J.getNativeInterceptor(receiver); |
-}; |
-J.getInterceptor$asx = function(receiver) { |
- if (typeof receiver == "string") |
- return J.JSString.prototype; |
- if (receiver == null) |
- return receiver; |
- if (receiver.constructor == Array) |
- return J.JSArray.prototype; |
- if (typeof receiver != "object") |
- return receiver; |
- if (receiver instanceof P.Object) |
- return receiver; |
- return J.getNativeInterceptor(receiver); |
-}; |
-J.getInterceptor$ax = function(receiver) { |
- if (receiver == null) |
- return receiver; |
- if (receiver.constructor == Array) |
- return J.JSArray.prototype; |
- if (typeof receiver != "object") |
- return receiver; |
- if (receiver instanceof P.Object) |
- return receiver; |
- return J.getNativeInterceptor(receiver); |
-}; |
-J.getInterceptor$n = function(receiver) { |
- if (typeof receiver == "number") |
- return J.JSNumber.prototype; |
- if (receiver == null) |
- return receiver; |
- if (!(receiver instanceof P.Object)) |
- return J.UnknownJavaScriptObject.prototype; |
- return receiver; |
-}; |
-J.getInterceptor$s = function(receiver) { |
- if (typeof receiver == "string") |
- return J.JSString.prototype; |
- if (receiver == null) |
- return receiver; |
- if (!(receiver instanceof P.Object)) |
- return J.UnknownJavaScriptObject.prototype; |
- return receiver; |
-}; |
-C.JSArray_methods = J.JSArray.prototype; |
-C.JSInt_methods = J.JSInt.prototype; |
-C.JSNumber_methods = J.JSNumber.prototype; |
-C.JSString_methods = J.JSString.prototype; |
-C.JS_CONST_0 = function(hooks) { |
- if (typeof dartExperimentalFixupGetTag != "function") return hooks; |
- hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); |
-}; |
-C.JS_CONST_6qb = function(hooks) { |
- var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; |
- if (userAgent.indexOf("Firefox") == -1) return hooks; |
- var getTag = hooks.getTag; |
- var quickMap = { |
- "BeforeUnloadEvent": "Event", |
- "DataTransfer": "Clipboard", |
- "GeoGeolocation": "Geolocation", |
- "WorkerMessageEvent": "MessageEvent", |
- "XMLDocument": "Document"}; |
- function getTagFirefox(o) { |
- var tag = getTag(o); |
- return quickMap[tag] || tag; |
- } |
- hooks.getTag = getTagFirefox; |
-}; |
-C.JS_CONST_86y = function getTagFallback(o) { |
- if (o == null) return "Null"; |
- var constructor = o.constructor; |
- if (typeof constructor == "function") { |
- var name = constructor.builtin$cls; |
- if (typeof name == "string") return name; |
- name = constructor.name; |
- if (typeof name == "string" |
- && name !== "" |
- && name !== "Object" |
- && name !== "Function.prototype") { |
- return name; |
- } |
- } |
- var s = Object.prototype.toString.call(o); |
- return s.substring(8, s.length - 1); |
-}; |
-C.JS_CONST_Cbr = function(getTagFallback) { |
- return function(hooks) { |
- if (typeof navigator != "object") return hooks; |
- var userAgent = navigator.userAgent; |
- if (userAgent.indexOf("Chrome") >= 0 || |
- userAgent.indexOf("DumpRenderTree") >= 0) { |
- return hooks; |
- } |
- hooks.getTag = getTagFallback; |
- }; |
-}; |
-C.JS_CONST_Fs4 = function(hooks) { return hooks; } |
-; |
-C.JS_CONST_TtD = function() { |
- function typeNameInChrome(obj) { return obj.constructor.name; } |
- function getUnknownTag(object, tag) { |
- if (/^HTML[A-Z].*Element$/.test(tag)) { |
- var name = Object.prototype.toString.call(object); |
- if (name == "[object Object]") return null; |
- return "HTMLElement"; |
- } |
- } |
- function getUnknownTagGenericBrowser(object, tag) { |
- if (object instanceof HTMLElement) return "HTMLElement"; |
- return getUnknownTag(object, tag); |
- } |
- function prototypeForTag(tag) { |
- if (typeof window == "undefined") return null; |
- if (typeof window[tag] == "undefined") return null; |
- var constructor = window[tag]; |
- if (typeof constructor != "function") return null; |
- return constructor.prototype; |
- } |
- function discriminator(tag) { return null; } |
- var isBrowser = typeof navigator == "object"; |
- return { |
- getTag: typeNameInChrome, |
- getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag, |
- prototypeForTag: prototypeForTag, |
- discriminator: discriminator }; |
-}; |
-C.JS_CONST_ZYJ = ((typeof version == "function" && typeof os == "object" && "system" in os) |
- || (typeof navigator == "object" |
- && navigator.userAgent.indexOf('Chrome') != -1)) |
- ? function(x) { return x.$dartCachedLength || x.length; } |
- : function(x) { return x.length; }; |
-; |
-C.JS_CONST_rD3 = function(hooks) { |
- var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; |
- if (userAgent.indexOf("Trident/") == -1) return hooks; |
- var getTag = hooks.getTag; |
- var quickMap = { |
- "BeforeUnloadEvent": "Event", |
- "DataTransfer": "Clipboard", |
- "HTMLDDElement": "HTMLElement", |
- "HTMLDTElement": "HTMLElement", |
- "HTMLPhraseElement": "HTMLElement", |
- "Position": "Geoposition" |
- }; |
- function getTagIE(o) { |
- var tag = getTag(o); |
- var newTag = quickMap[tag]; |
- if (newTag) return newTag; |
- if (tag == "Document") { |
- if (!!o.xmlVersion) return "!Document"; |
- return "!HTMLDocument"; |
- } |
- if (tag == "Object") { |
- if (window.DataView && (o instanceof window.DataView)) return "DataView"; |
- } |
- return tag; |
- } |
- function prototypeForTagIE(tag) { |
- if (tag == "Document") return null; |
- var constructor = window[tag]; |
- if (constructor == null) return null; |
- return constructor.prototype; |
- } |
- hooks.getTag = getTagIE; |
- hooks.prototypeForTag = prototypeForTagIE; |
-}; |
-Isolate.makeConstantList = function(list) { |
- list.immutable$list = true; |
- list.fixed$length = true; |
- return list; |
-}; |
-C.List_empty = Isolate.makeConstantList([]); |
-C.Symbol_call = new H.Symbol0("call"); |
-C.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype; |
-$.getTagFunction = null; |
-$.alternateTagFunction = null; |
-$.prototypeForTagFunction = null; |
-$.dispatchRecordsForInstanceTags = null; |
-$.interceptorsForUncacheableTags = null; |
-$.initNativeDispatchFlag = null; |
-J.$eq = function(receiver, a0) { |
- if (receiver == null) |
- return a0 == null; |
- if (typeof receiver != "object") |
- return a0 != null && receiver === a0; |
- return J.getInterceptor(receiver).$eq(receiver, a0); |
-}; |
-J.$ge$n = function(receiver, a0) { |
- if (typeof receiver == "number" && typeof a0 == "number") |
- return receiver >= a0; |
- return J.getInterceptor$n(receiver).$ge(receiver, a0); |
-}; |
-J.$gt$n = function(receiver, a0) { |
- if (typeof receiver == "number" && typeof a0 == "number") |
- return receiver > a0; |
- return J.getInterceptor$n(receiver).$gt(receiver, a0); |
-}; |
-J.$index$asx = function(receiver, a0) { |
- if (receiver.constructor == Array || typeof receiver == "string" || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) |
- if (a0 >>> 0 === a0 && a0 < receiver.length) |
- return receiver[a0]; |
- return J.getInterceptor$asx(receiver).$index(receiver, a0); |
-}; |
-J.$sub$n = function(receiver, a0) { |
- if (typeof receiver == "number" && typeof a0 == "number") |
- return receiver - a0; |
- return J.getInterceptor$n(receiver).$sub(receiver, a0); |
-}; |
-J.elementAt$1$ax = function(receiver, a0) { |
- return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0); |
-}; |
-J.forEach$1$ax = function(receiver, a0) { |
- return J.getInterceptor$ax(receiver).forEach$1(receiver, a0); |
-}; |
-J.get$hashCode$ = function(receiver) { |
- return J.getInterceptor(receiver).get$hashCode(receiver); |
-}; |
-J.get$iterator$ax = function(receiver) { |
- return J.getInterceptor$ax(receiver).get$iterator(receiver); |
-}; |
-J.get$length$asx = function(receiver) { |
- return J.getInterceptor$asx(receiver).get$length(receiver); |
-}; |
-J.map$1$ax = function(receiver, a0) { |
- return J.getInterceptor$ax(receiver).map$1(receiver, a0); |
-}; |
-J.noSuchMethod$1 = function(receiver, a0) { |
- return J.getInterceptor(receiver).noSuchMethod$1(receiver, a0); |
-}; |
-J.toString$0 = function(receiver) { |
- return J.getInterceptor(receiver).toString$0(receiver); |
-}; |
-Isolate.$lazy($, "noSuchMethodPattern", "TypeErrorDecoder_noSuchMethodPattern", "get$TypeErrorDecoder_noSuchMethodPattern", function() { |
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({ toString: function() { return "$receiver$"; } })); |
-}); |
-Isolate.$lazy($, "notClosurePattern", "TypeErrorDecoder_notClosurePattern", "get$TypeErrorDecoder_notClosurePattern", function() { |
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({ $method$: null, toString: function() { return "$receiver$"; } })); |
-}); |
-Isolate.$lazy($, "nullCallPattern", "TypeErrorDecoder_nullCallPattern", "get$TypeErrorDecoder_nullCallPattern", function() { |
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(null)); |
-}); |
-Isolate.$lazy($, "nullLiteralCallPattern", "TypeErrorDecoder_nullLiteralCallPattern", "get$TypeErrorDecoder_nullLiteralCallPattern", function() { |
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOnNull()); |
-}); |
-Isolate.$lazy($, "undefinedCallPattern", "TypeErrorDecoder_undefinedCallPattern", "get$TypeErrorDecoder_undefinedCallPattern", function() { |
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(void 0)); |
-}); |
-Isolate.$lazy($, "undefinedLiteralCallPattern", "TypeErrorDecoder_undefinedLiteralCallPattern", "get$TypeErrorDecoder_undefinedLiteralCallPattern", function() { |
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOnUndefined()); |
-}); |
-Isolate.$lazy($, "nullPropertyPattern", "TypeErrorDecoder_nullPropertyPattern", "get$TypeErrorDecoder_nullPropertyPattern", function() { |
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(null)); |
-}); |
-Isolate.$lazy($, "nullLiteralPropertyPattern", "TypeErrorDecoder_nullLiteralPropertyPattern", "get$TypeErrorDecoder_nullLiteralPropertyPattern", function() { |
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOnNull()); |
-}); |
-Isolate.$lazy($, "undefinedPropertyPattern", "TypeErrorDecoder_undefinedPropertyPattern", "get$TypeErrorDecoder_undefinedPropertyPattern", function() { |
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(void 0)); |
-}); |
-Isolate.$lazy($, "undefinedLiteralPropertyPattern", "TypeErrorDecoder_undefinedLiteralPropertyPattern", "get$TypeErrorDecoder_undefinedLiteralPropertyPattern", function() { |
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOnUndefined()); |
-}); |
-Isolate.$lazy($, "_toStringList", "IterableMixinWorkaround__toStringList", "get$IterableMixinWorkaround__toStringList", function() { |
- return P.List_List(null, null); |
-}); |
-Isolate.$lazy($, "_toStringVisiting", "_toStringVisiting", "get$_toStringVisiting", function() { |
- return P.HashSet_HashSet$identity(null); |
-}); |
-Isolate.$lazy($, "_toStringList", "Maps__toStringList", "get$Maps__toStringList", function() { |
- return P.List_List(null, null); |
-}); |
-Isolate.$lazy($, "context", "context", "get$context", function() { |
- return P._wrapToDart(function() { return this; }()); |
-}); |
-// Native classes |
- |
-init.functionAliases = {}; |
-; |
-init.metadata = []; |
-$ = null; |
-Isolate = Isolate.$finishIsolateConstructor(Isolate); |
-$ = new Isolate(); |
-function convertToFastObject(properties) { |
- function MyClass() {}; |
- MyClass.prototype = properties; |
- new MyClass(); |
- return properties; |
-} |
-A = convertToFastObject(A); |
-B = convertToFastObject(B); |
-C = convertToFastObject(C); |
-D = convertToFastObject(D); |
-E = convertToFastObject(E); |
-F = convertToFastObject(F); |
-G = convertToFastObject(G); |
-H = convertToFastObject(H); |
-J = convertToFastObject(J); |
-K = convertToFastObject(K); |
-L = convertToFastObject(L); |
-M = convertToFastObject(M); |
-N = convertToFastObject(N); |
-O = convertToFastObject(O); |
-P = convertToFastObject(P); |
-Q = convertToFastObject(Q); |
-R = convertToFastObject(R); |
-S = convertToFastObject(S); |
-T = convertToFastObject(T); |
-U = convertToFastObject(U); |
-V = convertToFastObject(V); |
-W = convertToFastObject(W); |
-X = convertToFastObject(X); |
-Y = convertToFastObject(Y); |
-Z = convertToFastObject(Z); |
-!function() { |
- var objectProto = Object.prototype; |
- for (var i = 0;; i++) { |
- var property = "___dart_dispatch_record_ZxYxX_0_"; |
- if (i > 0) |
- property = rootProperty + "_" + i; |
- if (!(property in objectProto)) |
- return init.dispatchPropertyName = property; |
- } |
-}(); |
-// BEGIN invoke [main]. |
-;(function (callback) { |
- if (typeof document === "undefined") { |
- callback(null); |
- return; |
- } |
- if (document.currentScript) { |
- callback(document.currentScript); |
- return; |
- } |
- |
- var scripts = document.scripts; |
- function onLoad(event) { |
- for (var i = 0; i < scripts.length; ++i) { |
- scripts[i].removeEventListener("load", onLoad, false); |
- } |
- callback(event.target); |
- } |
- for (var i = 0; i < scripts.length; ++i) { |
- scripts[i].addEventListener("load", onLoad, false); |
- } |
-})(function(currentScript) { |
- init.currentScript = currentScript; |
- |
- if (typeof dartMainRunner === "function") { |
- dartMainRunner(function() { Z.main(); }); |
- } else { |
- Z.main(); |
- } |
-}); |
-// END invoke [main]. |
-function init() { |
- Isolate.$isolateProperties = {}; |
- function generateAccessor(field, accessors, cls) { |
- var len = field.length; |
- var code = field.charCodeAt(len - 1); |
- var reflectable = false; |
- if (code == 45) { |
- len--; |
- code = field.charCodeAt(len - 1); |
- field = field.substring(0, len); |
- reflectable = true; |
- } |
- code = code >= 60 && code <= 64 ? code - 59 : code >= 123 && code <= 126 ? code - 117 : code >= 37 && code <= 43 ? code - 27 : 0; |
- if (code) { |
- var getterCode = code & 3; |
- var setterCode = code >> 2; |
- var accessorName = field = field.substring(0, len - 1); |
- var divider = field.indexOf(":"); |
- if (divider > 0) { |
- accessorName = field.substring(0, divider); |
- field = field.substring(divider + 1); |
- } |
- if (getterCode) { |
- var args = getterCode & 2 ? "receiver" : ""; |
- var receiver = getterCode & 1 ? "this" : "receiver"; |
- var body = "return " + receiver + "." + field; |
- var property = cls + ".prototype.get$" + accessorName + "="; |
- var fn = "function(" + args + "){" + body + "}"; |
- if (reflectable) |
- accessors.push(property + "$reflectable(" + fn + ");\n"); |
- else |
- accessors.push(property + fn + ";\n"); |
- } |
- if (setterCode) { |
- var args = setterCode & 2 ? "receiver, value" : "value"; |
- var receiver = setterCode & 1 ? "this" : "receiver"; |
- var body = receiver + "." + field + " = value"; |
- var property = cls + ".prototype.set$" + accessorName + "="; |
- var fn = "function(" + args + "){" + body + "}"; |
- if (reflectable) |
- accessors.push(property + "$reflectable(" + fn + ");\n"); |
- else |
- accessors.push(property + fn + ";\n"); |
- } |
- } |
- return field; |
- } |
- Isolate.$isolateProperties.$generateAccessor = generateAccessor; |
- function defineClass(name, cls, fields) { |
- var accessors = []; |
- var str = "function " + cls + "("; |
- var body = ""; |
- for (var i = 0; i < fields.length; i++) { |
- if (i != 0) |
- str += ", "; |
- var field = generateAccessor(fields[i], accessors, cls); |
- var parameter = "parameter_" + field; |
- str += parameter; |
- body += "this." + field + " = " + parameter + ";\n"; |
- } |
- str += ") {\n" + body + "}\n"; |
- str += cls + ".builtin$cls=\"" + name + "\";\n"; |
- str += "$desc=$collectedClasses." + cls + ";\n"; |
- str += "if($desc instanceof Array) $desc = $desc[1];\n"; |
- str += cls + ".prototype = $desc;\n"; |
- if (typeof defineClass.name != "string") { |
- str += cls + ".name=\"" + cls + "\";\n"; |
- } |
- str += accessors.join(""); |
- return str; |
- } |
- var inheritFrom = function() { |
- function tmp() { |
- } |
- var hasOwnProperty = Object.prototype.hasOwnProperty; |
- return function(constructor, superConstructor) { |
- tmp.prototype = superConstructor.prototype; |
- var object = new tmp(); |
- var properties = constructor.prototype; |
- for (var member in properties) |
- if (hasOwnProperty.call(properties, member)) |
- object[member] = properties[member]; |
- object.constructor = constructor; |
- constructor.prototype = object; |
- return object; |
- }; |
- }(); |
- Isolate.$finishClasses = function(collectedClasses, isolateProperties, existingIsolateProperties) { |
- var pendingClasses = {}; |
- if (!init.allClasses) |
- init.allClasses = {}; |
- var allClasses = init.allClasses; |
- var hasOwnProperty = Object.prototype.hasOwnProperty; |
- if (typeof dart_precompiled == "function") { |
- var constructors = dart_precompiled(collectedClasses); |
- } else { |
- var combinedConstructorFunction = "function $reflectable(fn){fn.$reflectable=1;return fn};\n" + "var $desc;\n"; |
- var constructorsList = []; |
- } |
- for (var cls in collectedClasses) { |
- if (hasOwnProperty.call(collectedClasses, cls)) { |
- var desc = collectedClasses[cls]; |
- if (desc instanceof Array) |
- desc = desc[1]; |
- var classData = desc[""], supr, name = cls, fields = classData; |
- if (typeof classData == "string") { |
- var split = classData.split("/"); |
- if (split.length == 2) { |
- name = split[0]; |
- fields = split[1]; |
- } |
- } |
- var s = fields.split(";"); |
- fields = s[1] == "" ? [] : s[1].split(","); |
- supr = s[0]; |
- if (supr && supr.indexOf("+") > 0) { |
- s = supr.split("+"); |
- supr = s[0]; |
- var mixin = collectedClasses[s[1]]; |
- if (mixin instanceof Array) |
- mixin = mixin[1]; |
- for (var d in mixin) { |
- if (hasOwnProperty.call(mixin, d) && !hasOwnProperty.call(desc, d)) |
- desc[d] = mixin[d]; |
- } |
- } |
- if (typeof dart_precompiled != "function") { |
- combinedConstructorFunction += defineClass(name, cls, fields); |
- constructorsList.push(cls); |
- } |
- if (supr) |
- pendingClasses[cls] = supr; |
- } |
- } |
- if (typeof dart_precompiled != "function") { |
- combinedConstructorFunction += "return [\n " + constructorsList.join(",\n ") + "\n]"; |
- var constructors = new Function("$collectedClasses", combinedConstructorFunction)(collectedClasses); |
- combinedConstructorFunction = null; |
- } |
- for (var i = 0; i < constructors.length; i++) { |
- var constructor = constructors[i]; |
- var cls = constructor.name; |
- var desc = collectedClasses[cls]; |
- var globalObject = isolateProperties; |
- if (desc instanceof Array) { |
- globalObject = desc[0] || isolateProperties; |
- desc = desc[1]; |
- } |
- allClasses[cls] = constructor; |
- globalObject[cls] = constructor; |
- } |
- constructors = null; |
- var finishedClasses = {}; |
- init.interceptorsByTag = Object.create(null); |
- init.leafTags = {}; |
- function finishClass(cls) { |
- var hasOwnProperty = Object.prototype.hasOwnProperty; |
- if (hasOwnProperty.call(finishedClasses, cls)) |
- return; |
- finishedClasses[cls] = true; |
- var superclass = pendingClasses[cls]; |
- if (!superclass || typeof superclass != "string") |
- return; |
- finishClass(superclass); |
- var constructor = allClasses[cls]; |
- var superConstructor = allClasses[superclass]; |
- if (!superConstructor) |
- superConstructor = existingIsolateProperties[superclass]; |
- var prototype = inheritFrom(constructor, superConstructor); |
- if (hasOwnProperty.call(prototype, "%")) { |
- var nativeSpec = prototype["%"].split(";"); |
- if (nativeSpec[0]) { |
- var tags = nativeSpec[0].split("|"); |
- for (var i = 0; i < tags.length; i++) { |
- init.interceptorsByTag[tags[i]] = constructor; |
- init.leafTags[tags[i]] = true; |
- } |
- } |
- if (nativeSpec[1]) { |
- tags = nativeSpec[1].split("|"); |
- if (nativeSpec[2]) { |
- var subclasses = nativeSpec[2].split("|"); |
- for (var i = 0; i < subclasses.length; i++) { |
- var subclass = allClasses[subclasses[i]]; |
- subclass.$nativeSuperclassTag = tags[0]; |
- } |
- } |
- for (i = 0; i < tags.length; i++) { |
- init.interceptorsByTag[tags[i]] = constructor; |
- init.leafTags[tags[i]] = false; |
- } |
- } |
- } |
- } |
- for (var cls in pendingClasses) |
- finishClass(cls); |
- }; |
- Isolate.$lazy = function(prototype, staticName, fieldName, getterName, lazyValue) { |
- var sentinelUndefined = {}; |
- var sentinelInProgress = {}; |
- prototype[fieldName] = sentinelUndefined; |
- prototype[getterName] = function() { |
- var result = $[fieldName]; |
- try { |
- if (result === sentinelUndefined) { |
- $[fieldName] = sentinelInProgress; |
- try { |
- result = $[fieldName] = lazyValue(); |
- } finally { |
- if (result === sentinelUndefined) { |
- if ($[fieldName] === sentinelInProgress) { |
- $[fieldName] = null; |
- } |
- } |
- } |
- } else { |
- if (result === sentinelInProgress) |
- H.throwCyclicInit(staticName); |
- } |
- return result; |
- } finally { |
- $[getterName] = function() { |
- return this[fieldName]; |
- }; |
- } |
- }; |
- }; |
- Isolate.$finishIsolateConstructor = function(oldIsolate) { |
- var isolateProperties = oldIsolate.$isolateProperties; |
- function Isolate() { |
- var hasOwnProperty = Object.prototype.hasOwnProperty; |
- for (var staticName in isolateProperties) |
- if (hasOwnProperty.call(isolateProperties, staticName)) |
- this[staticName] = isolateProperties[staticName]; |
- function ForceEfficientMap() { |
- } |
- ForceEfficientMap.prototype = this; |
- new ForceEfficientMap(); |
- } |
- Isolate.prototype = oldIsolate.prototype; |
- Isolate.prototype.constructor = Isolate; |
- Isolate.$isolateProperties = isolateProperties; |
- Isolate.$finishClasses = oldIsolate.$finishClasses; |
- Isolate.makeConstantList = oldIsolate.makeConstantList; |
- return Isolate; |
- }; |
-} |
-})() |
- |
-//# sourceMappingURL=index.dart.js.map |
-//@ sourceMappingURL=index.dart.js.map |