Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: src/site/samples/gauge/example/gauge.dart.js

Issue 1387723002: Updating the samples page to reflect the examples that have been retired. (Closed) Base URL: https://github.com/dart-lang/www.dartlang.org.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/site/samples/gauge/example/gauge.html ('k') | src/site/samples/gauge/example/gauge.dart.js.map » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/site/samples/gauge/example/gauge.dart.js
diff --git a/src/site/samples/gauge/example/gauge.dart.js b/src/site/samples/gauge/example/gauge.dart.js
deleted file mode 100644
index 9005ae1c22b8cb7557b08228c1a28332e1b41e4d..0000000000000000000000000000000000000000
--- a/src/site/samples/gauge/example/gauge.dart.js
+++ /dev/null
@@ -1,7623 +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
-$$.BoundClosure$i0 = [H, {"": "BoundClosure;_self,__js_helper$_target,_receiver,__js_helper$_name",
- call$0: function() {
- return this.__js_helper$_target.call(this._self, this._receiver);
- }
-}];
-
-$$.BoundClosure$1 = [H, {"": "BoundClosure;_self,__js_helper$_target,_receiver,__js_helper$_name",
- call$1: function(p0) {
- return this.__js_helper$_target.call(this._self, p0);
- },
- $is_args1: true
-}];
-
-$$.BoundClosure$i1 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,__js_helper$_name",
- call$1: function(p0) {
- return this.__js_helper$_target.call(this._self, this._receiver, p0);
- },
- call$0: function() {
- return this.call$1(null);
- },
- "+call:0:0": 0,
- $is_args1: true
-}];
-
-$$.BoundClosure$2 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,__js_helper$_name",
- call$2: function(p0, p1) {
- return this.__js_helper$_target.call(this._self, p0, p1);
- },
- call$1: function(p0) {
- return this.call$2(p0, null);
- },
- "+call:1:0": 0,
- $is_args2: true,
- $is_args1: true
-}];
-
-$$.BoundClosure$0 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,__js_helper$_name",
- call$0: function() {
- return this.__js_helper$_target.call(this._self);
- }
-}];
-
-$$.BoundClosure$20 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,__js_helper$_name",
- call$2: function(p0, p1) {
- return this.__js_helper$_target.call(this._self, p0, p1);
- },
- $is_args2: true
-}];
-
-$$.Closure$2 = [H, {"": "Closure;call$2,$name", $is_args2: true}];
-
-$$.Closure$1 = [H, {"": "Closure;call$1,$name", $is_args1: true}];
-
-$$.Closure$0 = [H, {"": "Closure;call$0,$name"}];
-
-$$.Closure$7 = [H, {"": "Closure;call$7,$name"}];
-
-$$.Closure$20 = [P, {"": "Closure;call$2,$name",
- call$1: function(p0) {
- return this.call$2(p0, null);
- },
- "+call:1:0": 0,
- $is_args2: true,
- $is_args1: true
-}];
-
-$$.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|Navigator|NavigatorUserMediaError|PositionError|SQLError|SVGAnimatedNumberList"
-},
-
-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];
- },
- $indexSet: function(receiver, index, value) {
- if (!!receiver.immutable$list)
- H.throwExpression(P.UnsupportedError$("indexed set"));
- 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));
- receiver[index] = value;
- },
- $isList: true,
- $asList: null,
- $asIterable: null,
- $isList: true,
- $isEfficientLength: true,
- $isIterable: true
-},
-
-JSMutableArray: {"": "JSArray;", $isJSMutableArray: true,
- $asJSArray: function() {
- return [null];
- },
- $asList: function() {
- return [null];
- },
- $asIterable: function() {
- return [null];
- }
-},
-
-JSFixedArray: {"": "JSMutableArray;"},
-
-JSExtendableArray: {"": "JSMutableArray;", $isJSExtendableArray: true},
-
-JSNumber: {"": "num/Interceptor;",
- remainder$1: function(receiver, b) {
- return receiver % b;
- },
- 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;
- },
- $tdiv: function(receiver, other) {
- if ((receiver | 0) === receiver && (other | 0) === other && 0 !== other && -1 !== other)
- return receiver / other | 0;
- else
- return this._slowTdiv$1(receiver, other);
- },
- _slowTdiv$1: function(receiver, other) {
- return this.toInt$0(receiver / other);
- },
- $shl: function(receiver, other) {
- if (other < 0)
- throw H.wrapException(new P.ArgumentError(other));
- if (other > 31)
- return 0;
- return receiver << other >>> 0;
- },
- $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(P.ArgumentError$(other));
- return receiver < other;
- },
- $gt: function(receiver, other) {
- if (typeof other !== "number")
- throw H.wrapException(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 (typeof index !== "number" || Math.floor(index) !== index)
- throw H.wrapException(P.ArgumentError$(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(P.ArgumentError$(startIndex));
- if (endIndex == null)
- endIndex = receiver.length;
- if (typeof endIndex !== "number" || Math.floor(endIndex) !== endIndex)
- H.throwExpression(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) {
- 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];
- },
- $isString: true
-}}],
-["_isolate_helper", "dart:_isolate_helper", , H, {
-_callInIsolate: function(isolate, $function) {
- var result = isolate.eval$1($function);
- $globalState.topEventLoop.run$0();
- return result;
-},
-
-startRootIsolate: function(entry) {
- var rootContext;
- $globalState = H._Manager$(entry);
- if ($globalState.isWorker === true)
- return;
- rootContext = H._IsolateContext$();
- $globalState.rootContext = rootContext;
- $globalState.currentContext = rootContext;
- if (!!entry.$is_args1)
- rootContext.eval$1(new H.startRootIsolate_closure(entry));
- else if (!!entry.$is_args2)
- rootContext.eval$1(new H.startRootIsolate_closure0(entry));
- else
- rootContext.eval$1(entry);
- $globalState.topEventLoop.run$0();
-},
-
-IsolateNatives_computeThisScript: function() {
- var currentScript = init.currentScript;
- if (currentScript != null)
- return String(currentScript.src);
- if (typeof version == "function" && typeof os == "object" && "system" in os)
- return H.IsolateNatives_computeThisScriptD8();
- if (typeof version == "function" && typeof system == "function")
- return thisFilename();
- return;
-},
-
-IsolateNatives_computeThisScriptD8: function() {
- var stack, matches;
- stack = new Error().stack;
- if (stack == null) {
- stack = (function() {try { throw new Error() } catch(e) { return e.stack }})();
- if (stack == null)
- throw H.wrapException(P.UnsupportedError$("No stack trace"));
- }
- matches = stack.match(new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "m"));
- if (matches != null)
- return matches[1];
- matches = stack.match(new RegExp("^[^@]*@(.*):[0-9]*$", "m"));
- if (matches != null)
- return matches[1];
- throw H.wrapException(P.UnsupportedError$("Cannot extract URI from \"" + stack + "\""));
-},
-
-IsolateNatives__processWorkerMessage: function(sender, e) {
- var msg, t1, functionName, entryPoint, args, message, isSpawnUri, replyTo, context, t2;
- msg = H._deserializeMessage(e.data);
- t1 = J.getInterceptor$asx(msg);
- switch (t1.$index(msg, "command")) {
- case "start":
- $globalState.currentManagerId = t1.$index(msg, "id");
- functionName = t1.$index(msg, "functionName");
- entryPoint = functionName == null ? $globalState.entry : init.globalFunctions[functionName];
- args = t1.$index(msg, "args");
- message = H._deserializeMessage(t1.$index(msg, "msg"));
- isSpawnUri = t1.$index(msg, "isSpawnUri");
- replyTo = H._deserializeMessage(t1.$index(msg, "replyTo"));
- context = H._IsolateContext$();
- $globalState.topEventLoop.events._add$1(new H._IsolateEvent(context, new H.IsolateNatives__processWorkerMessage_closure(entryPoint, args, message, isSpawnUri, replyTo), "worker-start"));
- $globalState.currentContext = context;
- $globalState.topEventLoop.run$0();
- break;
- case "spawn-worker":
- H.IsolateNatives__spawnWorker(t1.$index(msg, "functionName"), t1.$index(msg, "uri"), t1.$index(msg, "args"), t1.$index(msg, "msg"), t1.$index(msg, "isSpawnUri"), t1.$index(msg, "replyPort"));
- break;
- case "message":
- if (t1.$index(msg, "port") != null)
- t1.$index(msg, "port").send$1(t1.$index(msg, "msg"));
- $globalState.topEventLoop.run$0();
- break;
- case "close":
- t1 = $globalState.managers;
- t2 = $.get$IsolateNatives_workerIds();
- t1.remove$1(t1, t2.$index(t2, sender));
- sender.terminate();
- $globalState.topEventLoop.run$0();
- break;
- case "log":
- H.IsolateNatives__log(t1.$index(msg, "msg"));
- break;
- case "print":
- if ($globalState.isWorker === true) {
- t1 = $globalState.mainManager;
- t2 = H._serializeMessage(H.fillLiteralMap(["command", "print", "msg", msg], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)));
- t1.toString;
- self.postMessage(t2);
- } else
- P.print(t1.$index(msg, "msg"));
- break;
- case "error":
- throw H.wrapException(t1.$index(msg, "msg"));
- default:
- }
-},
-
-IsolateNatives__log: function(msg) {
- var trace, t1, t2, exception;
- if ($globalState.isWorker === true) {
- t1 = $globalState.mainManager;
- t2 = H._serializeMessage(H.fillLiteralMap(["command", "log", "msg", msg], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)));
- t1.toString;
- self.postMessage(t2);
- } else
- try {
- $.get$globalThis().console.log(msg);
- } catch (exception) {
- H.unwrapException(exception);
- trace = new H._StackTrace(exception, null);
- throw H.wrapException(P.Exception_Exception(trace));
- }
-
-},
-
-IsolateNatives__startIsolate: function(topLevel, args, message, isSpawnUri, replyTo) {
- var t1;
- H.Primitives_initializeStatics($globalState.currentContext.id);
- $.lazyPort = H.ReceivePortImpl$();
- t1 = $.lazyPort;
- t1.toString;
- replyTo.send$1(["spawned", new H._NativeJsSendPort(t1, $globalState.currentContext.id)]);
- if (isSpawnUri !== true)
- topLevel.call$1(message);
- else {
- t1 = J.getInterceptor(topLevel);
- if (!!t1.$is_args2)
- topLevel.call$2(args, message);
- else if (!!t1.$is_args1)
- topLevel.call$1(args);
- else
- topLevel.call$0();
- }
-},
-
-IsolateNatives__spawnWorker: function(functionName, uri, args, message, isSpawnUri, replyPort) {
- var worker, t1, workerId;
- if (uri == null)
- uri = $.get$IsolateNatives_thisScript();
- worker = new Worker(uri);
- worker.onmessage = function(e) { H.IsolateNatives__processWorkerMessage$closure.call$2(worker, e); };
- t1 = $globalState;
- workerId = t1.nextManagerId;
- t1.nextManagerId = workerId + 1;
- t1 = $.get$IsolateNatives_workerIds();
- t1.$indexSet(t1, worker, workerId);
- t1 = $globalState.managers;
- t1.$indexSet(t1, workerId, worker);
- worker.postMessage(H._serializeMessage(H.fillLiteralMap(["command", "start", "id", workerId, "replyTo", H._serializeMessage(replyPort), "args", args, "msg", H._serializeMessage(message), "isSpawnUri", isSpawnUri, "functionName", functionName], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null))));
-},
-
-_waitForPendingPorts: function(message, callback) {
- var finder = H._PendingSendPortFinder$();
- finder.traverse$1(message);
- P.Future_wait(finder.ports).then$1(new H._waitForPendingPorts_closure(callback));
-},
-
-_serializeMessage: function(message) {
- var t1;
- if ($globalState.supportsWorkers === true) {
- t1 = new H._JsSerializer(0, new H._MessageTraverserVisitedMap());
- t1._visited = new H._JsVisitedMap(null);
- return t1.traverse$1(message);
- } else {
- t1 = new H._JsCopier(new H._MessageTraverserVisitedMap());
- t1._visited = new H._JsVisitedMap(null);
- return t1.traverse$1(message);
- }
-},
-
-_deserializeMessage: function(message) {
- if ($globalState.supportsWorkers === true)
- return new H._JsDeserializer(null).deserialize$1(message);
- else
- return message;
-},
-
-_MessageTraverser_isPrimitive: function(x) {
- return x == null || typeof x === "string" || typeof x === "number" || typeof x === "boolean";
-},
-
-_Deserializer_isPrimitive: function(x) {
- return x == null || typeof x === "string" || typeof x === "number" || typeof x === "boolean";
-},
-
-startRootIsolate_closure: {"": "Closure;entry_0",
- call$0: function() {
- this.entry_0.call$1([]);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-startRootIsolate_closure0: {"": "Closure;entry_1",
- call$0: function() {
- this.entry_1.call$2([], null);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_Manager: {"": "Object;nextIsolateId,currentManagerId,nextManagerId,currentContext,rootContext,topEventLoop,fromCommandLine,isWorker,supportsWorkers,isolates,mainManager,managers,entry",
- _nativeDetectEnvironment$0: function() {
- var t1, t2;
- t1 = $.get$globalWindow() == null;
- t2 = $.get$globalWorker();
- this.isWorker = t1 && $.get$globalPostMessageDefined() === true;
- if (this.isWorker !== true)
- t2 = t2 != null && $.get$IsolateNatives_thisScript() != null;
- else
- t2 = true;
- this.supportsWorkers = t2;
- this.fromCommandLine = t1 && this.isWorker !== true;
- },
- _nativeInitWorkerMessageHandler$0: function() {
- var $function = function (e) { H.IsolateNatives__processWorkerMessage$closure.call$2(this.mainManager, e); };
- $.get$globalThis().onmessage = $function;
- $.get$globalThis().dartPrint = function (object) {};
- },
- _Manager$1: function(entry) {
- this._nativeDetectEnvironment$0();
- this.topEventLoop = new H._EventLoop(P.ListQueue$(null, H._IsolateEvent), 0);
- this.isolates = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, H._IsolateContext);
- this.managers = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, null);
- if (this.isWorker === true) {
- this.mainManager = new H._MainManagerStub();
- this._nativeInitWorkerMessageHandler$0();
- }
- },
- static: {
-_Manager$: function(entry) {
- var t1 = new H._Manager(0, 0, 1, null, null, null, null, null, null, null, null, null, entry);
- t1._Manager$1(entry);
- return t1;
-}}
-
-},
-
-_IsolateContext: {"": "Object;id,ports,isolateStatics<",
- eval$1: function(code) {
- var old, result;
- old = $globalState.currentContext;
- $globalState.currentContext = this;
- $ = this.isolateStatics;
- result = null;
- try {
- result = code.call$0();
- } finally {
- $globalState.currentContext = old;
- if (old != null)
- $ = old.get$isolateStatics();
- }
- return result;
- },
- lookup$1: function(portId) {
- var t1 = this.ports;
- return t1.$index(t1, portId);
- },
- register$2: function(_, portId, port) {
- var t1;
- if (this.ports.containsKey$1(portId))
- throw H.wrapException(P.Exception_Exception("Registry: ports must be registered only once."));
- t1 = this.ports;
- t1.$indexSet(t1, portId, port);
- t1 = $globalState.isolates;
- t1.$indexSet(t1, this.id, this);
- },
- unregister$1: function(portId) {
- var t1 = this.ports;
- t1.remove$1(t1, portId);
- if (this.ports._collection$_length === 0) {
- t1 = $globalState.isolates;
- t1.remove$1(t1, this.id);
- }
- },
- _IsolateContext$0: function() {
- var t1, t2;
- t1 = $globalState;
- t2 = t1.nextIsolateId;
- t1.nextIsolateId = t2 + 1;
- this.id = t2;
- this.ports = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, P.ReceivePort);
- this.isolateStatics = new Isolate();
- },
- static: {
-_IsolateContext$: function() {
- var t1 = new H._IsolateContext(null, null, null);
- t1._IsolateContext$0();
- return t1;
-}}
-
-},
-
-_EventLoop: {"": "Object;events,activeTimerCount",
- dequeue$0: function() {
- var t1 = this.events;
- if (t1._head === t1._tail)
- return;
- return t1.removeFirst$0();
- },
- checkOpenReceivePortsFromCommandLine$0: function() {
- if ($globalState.rootContext != null && $globalState.isolates.containsKey$1($globalState.rootContext.id) && $globalState.fromCommandLine === true && $globalState.rootContext.ports._collection$_length === 0)
- throw H.wrapException(P.Exception_Exception("Program exited with open ReceivePorts."));
- },
- runIteration$0: function() {
- var $event, t1, t2;
- $event = this.dequeue$0();
- if ($event == null) {
- this.checkOpenReceivePortsFromCommandLine$0();
- t1 = $globalState;
- if (t1.isWorker === true && t1.isolates._collection$_length === 0 && t1.topEventLoop.activeTimerCount === 0) {
- t1 = t1.mainManager;
- t2 = H._serializeMessage(H.fillLiteralMap(["command", "close"], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)));
- t1.toString;
- self.postMessage(t2);
- }
- return false;
- }
- $event.process$0();
- return true;
- },
- _runHelper$0: function() {
- if ($.get$globalWindow() != null)
- new H._EventLoop__runHelper_next(this).call$0();
- else
- for (; this.runIteration$0();)
- ;
- },
- run$0: function() {
- var e, trace, exception, t1, t2;
- if ($globalState.isWorker !== true)
- this._runHelper$0();
- else
- try {
- this._runHelper$0();
- } catch (exception) {
- t1 = H.unwrapException(exception);
- e = t1;
- trace = new H._StackTrace(exception, null);
- t1 = $globalState.mainManager;
- t2 = H._serializeMessage(H.fillLiteralMap(["command", "error", "msg", H.S(e) + "\n" + H.S(trace)], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)));
- t1.toString;
- self.postMessage(t2);
- }
-
- }
-},
-
-_EventLoop__runHelper_next: {"": "Closure;this_0",
- call$0: function() {
- if (!this.this_0.runIteration$0())
- return;
- P.Timer_Timer(C.Duration_0, this);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_IsolateEvent: {"": "Object;isolate,fn,message",
- process$0: function() {
- this.isolate.eval$1(this.fn);
- }
-},
-
-_MainManagerStub: {"": "Object;"},
-
-IsolateNatives__processWorkerMessage_closure: {"": "Closure;entryPoint_0,args_1,message_2,isSpawnUri_3,replyTo_4",
- call$0: function() {
- H.IsolateNatives__startIsolate(this.entryPoint_0, this.args_1, this.message_2, this.isSpawnUri_3, this.replyTo_4);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_BaseSendPort: {"": "Object;", $isSendPort: true},
-
-_NativeJsSendPort: {"": "_BaseSendPort;_receivePort,_isolateId",
- send$1: function(message) {
- H._waitForPendingPorts(message, new H._NativeJsSendPort_send_closure(this, message));
- },
- $eq: function(_, other) {
- var t1;
- if (other == null)
- return false;
- t1 = J.getInterceptor(other);
- return typeof other === "object" && other !== null && !!t1.$is_NativeJsSendPort && J.$eq(this._receivePort, other._receivePort);
- },
- get$hashCode: function(_) {
- return this._receivePort.get$_id();
- },
- $is_NativeJsSendPort: true,
- $isSendPort: true
-},
-
-_NativeJsSendPort_send_closure: {"": "Closure;this_1,message_2",
- call$0: function() {
- var t1, t2, t3, t4, isolate, shouldSerialize, msg;
- t1 = {};
- t2 = $globalState.isolates;
- t3 = this.this_1;
- t4 = t3._isolateId;
- isolate = t2.$index(t2, t4);
- if (isolate == null)
- return;
- if ((t3._receivePort.get$_controller()._state & 4) !== 0)
- return;
- shouldSerialize = $globalState.currentContext != null && $globalState.currentContext.id !== t4;
- msg = this.message_2;
- t1.msg_0 = msg;
- if (shouldSerialize)
- t1.msg_0 = H._serializeMessage(t1.msg_0);
- t2 = $globalState.topEventLoop;
- t4 = "receive " + H.S(msg);
- t2.events._add$1(new H._IsolateEvent(isolate, new H._NativeJsSendPort_send__closure(t1, t3, shouldSerialize), t4));
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_NativeJsSendPort_send__closure: {"": "Closure;box_0,this_3,shouldSerialize_4",
- call$0: function() {
- var t1, t2;
- t1 = this.this_3._receivePort;
- if ((t1.get$_controller()._state & 4) === 0) {
- if (this.shouldSerialize_4) {
- t2 = this.box_0;
- t2.msg_0 = H._deserializeMessage(t2.msg_0);
- }
- t1 = t1.get$_controller();
- t2 = this.box_0.msg_0;
- if (t1._state >= 4)
- H.throwExpression(t1._badEventState$0());
- t1._async$_add$1(t2);
- }
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_WorkerSendPort: {"": "_BaseSendPort;_workerId,_receivePortId,_isolateId",
- send$1: function(message) {
- H._waitForPendingPorts(message, new H._WorkerSendPort_send_closure(this, message));
- },
- $eq: function(_, other) {
- var t1;
- if (other == null)
- return false;
- t1 = J.getInterceptor(other);
- return typeof other === "object" && other !== null && !!t1.$is_WorkerSendPort && J.$eq(this._workerId, other._workerId) && J.$eq(this._isolateId, other._isolateId) && J.$eq(this._receivePortId, other._receivePortId);
- },
- get$hashCode: function(_) {
- var t1, t2, t3;
- t1 = J.$shl$n(this._workerId, 16);
- t2 = J.$shl$n(this._isolateId, 8);
- t3 = this._receivePortId;
- if (typeof t3 !== "number")
- throw H.iae(t3);
- return (t1 ^ t2 ^ t3) >>> 0;
- },
- $is_WorkerSendPort: true,
- $isSendPort: true
-},
-
-_WorkerSendPort_send_closure: {"": "Closure;this_0,message_1",
- call$0: function() {
- var t1, workerMessage, t2, manager;
- t1 = this.this_0;
- workerMessage = H._serializeMessage(H.fillLiteralMap(["command", "message", "port", t1, "msg", this.message_1], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)));
- if ($globalState.isWorker === true) {
- $globalState.mainManager.toString;
- self.postMessage(workerMessage);
- } else {
- t2 = $globalState.managers;
- manager = t2.$index(t2, t1._workerId);
- if (manager != null)
- manager.postMessage(workerMessage);
- }
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-ReceivePortImpl: {"": "Stream;_id<,_controller<",
- listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
- var t1 = this._controller;
- t1.toString;
- t1 = new P._ControllerStream(t1);
- H.setRuntimeTypeInfo(t1, [null]);
- return t1.listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError);
- },
- listen$3$onDone$onError: function(onData, onDone, onError) {
- return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
- },
- close$0: function(_) {
- var t1 = this._controller;
- if ((t1._state & 4) !== 0)
- return;
- t1.close$0(t1);
- $globalState.currentContext.unregister$1(this._id);
- },
- get$close: function(_receiver) {
- return new H.BoundClosure$i0(this, H.ReceivePortImpl.prototype.close$0, _receiver, "close$0");
- },
- ReceivePortImpl$0: function() {
- this._controller = P.StreamController_StreamController(this.get$close(this), null, null, null, true, null);
- var t1 = $globalState.currentContext;
- t1.register$2(t1, this._id, this);
- },
- static: {
-"": "ReceivePortImpl__nextFreeId",
-ReceivePortImpl$: function() {
- var t1 = $.ReceivePortImpl__nextFreeId;
- $.ReceivePortImpl__nextFreeId = t1 + 1;
- t1 = new H.ReceivePortImpl(t1, null);
- t1.ReceivePortImpl$0();
- return t1;
-}}
-
-},
-
-_waitForPendingPorts_closure: {"": "Closure;callback_0",
- call$1: function(_) {
- return this.callback_0.call$0();
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-_PendingSendPortFinder: {"": "_MessageTraverser;ports,_visited",
- visitPrimitive$1: function(x) {
- },
- visitList$1: function(list) {
- var t1 = this._visited;
- if (t1.$index(t1, list) != null)
- return;
- t1 = this._visited;
- t1.$indexSet(t1, list, true);
- J.forEach$1$ax(list, this.get$_dispatch());
- },
- visitMap$1: function(map) {
- var t1 = this._visited;
- if (t1.$index(t1, map) != null)
- return;
- t1 = this._visited;
- t1.$indexSet(t1, map, true);
- t1 = map.get$values(map);
- t1.forEach$1(t1, this.get$_dispatch());
- },
- visitSendPort$1: function(port) {
- },
- _PendingSendPortFinder$0: function() {
- this._visited = new H._JsVisitedMap(null);
- },
- static: {
-_PendingSendPortFinder$: function() {
- var t1 = new H._PendingSendPortFinder([], new H._MessageTraverserVisitedMap());
- t1._PendingSendPortFinder$0();
- return t1;
-}}
-
-},
-
-_JsSerializer: {"": "_Serializer;_nextFreeRefId,_visited",
- visitSendPort$1: function(x) {
- if (!!x.$is_NativeJsSendPort)
- return ["sendport", $globalState.currentManagerId, x._isolateId, x._receivePort.get$_id()];
- if (!!x.$is_WorkerSendPort)
- return ["sendport", x._workerId, x._isolateId, x._receivePortId];
- throw H.wrapException("Illegal underlying port " + H.S(x));
- }
-},
-
-_JsCopier: {"": "_Copier;_visited",
- visitSendPort$1: function(x) {
- if (!!x.$is_NativeJsSendPort)
- return new H._NativeJsSendPort(x._receivePort, x._isolateId);
- if (!!x.$is_WorkerSendPort)
- return new H._WorkerSendPort(x._workerId, x._receivePortId, x._isolateId);
- throw H.wrapException("Illegal underlying port " + H.S(x));
- }
-},
-
-_JsDeserializer: {"": "_Deserializer;_deserialized",
- deserializeSendPort$1: function(list) {
- var t1, managerId, isolateId, receivePortId, isolate, receivePort;
- t1 = J.getInterceptor$asx(list);
- managerId = t1.$index(list, 1);
- isolateId = t1.$index(list, 2);
- receivePortId = t1.$index(list, 3);
- if (J.$eq(managerId, $globalState.currentManagerId)) {
- t1 = $globalState.isolates;
- isolate = t1.$index(t1, isolateId);
- if (isolate == null)
- return;
- receivePort = isolate.lookup$1(receivePortId);
- if (receivePort == null)
- return;
- return new H._NativeJsSendPort(receivePort, isolateId);
- } else
- return new H._WorkerSendPort(managerId, receivePortId, isolateId);
- }
-},
-
-_JsVisitedMap: {"": "Object;tagged",
- $index: function(_, object) {
- return object.__MessageTraverser__attached_info__;
- },
- $indexSet: function(_, object, info) {
- this.tagged.push(object);
- object.__MessageTraverser__attached_info__ = info;
- },
- reset$0: function(_) {
- this.tagged = P.List_List(null, null);
- },
- cleanup$0: function() {
- var $length, i, t1;
- for ($length = this.tagged.length, i = 0; i < $length; ++i) {
- t1 = this.tagged;
- if (i >= t1.length)
- throw H.ioore(t1, i);
- t1[i].__MessageTraverser__attached_info__ = null;
- }
- this.tagged = null;
- }
-},
-
-_MessageTraverserVisitedMap: {"": "Object;",
- $index: function(_, object) {
- return;
- },
- $indexSet: function(_, object, info) {
- },
- reset$0: function(_) {
- },
- cleanup$0: function() {
- }
-},
-
-_MessageTraverser: {"": "Object;",
- traverse$1: function(x) {
- var result, t1;
- if (H._MessageTraverser_isPrimitive(x))
- return this.visitPrimitive$1(x);
- t1 = this._visited;
- t1.reset$0(t1);
- result = null;
- try {
- result = this._dispatch$1(x);
- } finally {
- this._visited.cleanup$0();
- }
- return result;
- },
- _dispatch$1: function(x) {
- var t1;
- if (x == null || typeof x === "string" || typeof x === "number" || typeof x === "boolean")
- return this.visitPrimitive$1(x);
- t1 = J.getInterceptor(x);
- if (typeof x === "object" && x !== null && (x.constructor === Array || !!t1.$isList))
- return this.visitList$1(x);
- if (typeof x === "object" && x !== null && !!t1.$isMap)
- return this.visitMap$1(x);
- if (typeof x === "object" && x !== null && !!t1.$isSendPort)
- return this.visitSendPort$1(x);
- return this.visitObject$1(x);
- },
- get$_dispatch: function() {
- return new H.BoundClosure$1(this, H._MessageTraverser.prototype._dispatch$1, null, "_dispatch$1");
- },
- visitObject$1: function(x) {
- throw H.wrapException("Message serialization: Illegal value " + H.S(x) + " passed");
- }
-},
-
-_Copier: {"": "_MessageTraverser;",
- visitPrimitive$1: function(x) {
- return x;
- },
- visitList$1: function(list) {
- var t1, copy, len, t2, i, t3;
- t1 = this._visited;
- copy = t1.$index(t1, list);
- if (copy != null)
- return copy;
- t1 = J.getInterceptor$asx(list);
- len = t1.get$length(list);
- copy = P.List_List(len, null);
- t2 = this._visited;
- t2.$indexSet(t2, list, copy);
- if (typeof len !== "number")
- throw H.iae(len);
- t2 = copy.length;
- i = 0;
- for (; i < len; ++i) {
- t3 = this._dispatch$1(t1.$index(list, i));
- if (i >= t2)
- throw H.ioore(copy, i);
- copy[i] = t3;
- }
- return copy;
- },
- visitMap$1: function(map) {
- var t1, t2;
- t1 = {};
- t2 = this._visited;
- t1.copy_0 = t2.$index(t2, map);
- t2 = t1.copy_0;
- if (t2 != null)
- return t2;
- t1.copy_0 = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null);
- t2 = this._visited;
- t2.$indexSet(t2, map, t1.copy_0);
- map.forEach$1(map, new H._Copier_visitMap_closure(t1, this));
- return t1.copy_0;
- }
-},
-
-_Copier_visitMap_closure: {"": "Closure;box_0,this_1",
- call$2: function(key, val) {
- var t1 = this.this_1;
- J.$indexSet$ax(this.box_0.copy_0, t1._dispatch$1(key), t1._dispatch$1(val));
- },
- "+call:2:0": 0,
- $isFunction: true,
- $is_args2: true
-},
-
-_Serializer: {"": "_MessageTraverser;",
- visitPrimitive$1: function(x) {
- return x;
- },
- visitList$1: function(list) {
- var t1, copyId, id;
- t1 = this._visited;
- copyId = t1.$index(t1, list);
- if (copyId != null)
- return ["ref", copyId];
- id = this._nextFreeRefId;
- this._nextFreeRefId = id + 1;
- t1 = this._visited;
- t1.$indexSet(t1, list, id);
- return ["list", id, this._serializeList$1(list)];
- },
- visitMap$1: function(map) {
- var t1, copyId, id, keys;
- t1 = this._visited;
- copyId = t1.$index(t1, map);
- if (copyId != null)
- return ["ref", copyId];
- id = this._nextFreeRefId;
- this._nextFreeRefId = id + 1;
- t1 = this._visited;
- t1.$indexSet(t1, map, id);
- t1 = map.get$keys();
- keys = this._serializeList$1(P.List_List$from(t1, true, H.getRuntimeTypeArgument(t1, "IterableBase", 0)));
- t1 = map.get$values(map);
- return ["map", id, keys, this._serializeList$1(P.List_List$from(t1, true, H.getRuntimeTypeArgument(t1, "IterableBase", 0)))];
- },
- _serializeList$1: function(list) {
- var t1, len, result, t2, i, t3;
- t1 = J.getInterceptor$asx(list);
- len = t1.get$length(list);
- result = P.List_List(len, null);
- if (typeof len !== "number")
- throw H.iae(len);
- t2 = result.length;
- i = 0;
- for (; i < len; ++i) {
- t3 = this._dispatch$1(t1.$index(list, i));
- if (i >= t2)
- throw H.ioore(result, i);
- result[i] = t3;
- }
- return result;
- }
-},
-
-_Deserializer: {"": "Object;",
- deserialize$1: function(x) {
- if (H._Deserializer_isPrimitive(x))
- return x;
- this._deserialized = P.HashMap_HashMap(null, null, null, null, null);
- return this._deserializeHelper$1(x);
- },
- _deserializeHelper$1: function(x) {
- var t1, id;
- if (x == null || typeof x === "string" || typeof x === "number" || typeof x === "boolean")
- return x;
- t1 = J.getInterceptor$asx(x);
- switch (t1.$index(x, 0)) {
- case "ref":
- id = t1.$index(x, 1);
- t1 = this._deserialized;
- return t1.$index(t1, id);
- case "list":
- return this._deserializeList$1(x);
- case "map":
- return this._deserializeMap$1(x);
- case "sendport":
- return this.deserializeSendPort$1(x);
- default:
- return this.deserializeObject$1(x);
- }
- },
- _deserializeList$1: function(x) {
- var t1, id, dartList, len, i;
- t1 = J.getInterceptor$asx(x);
- id = t1.$index(x, 1);
- dartList = t1.$index(x, 2);
- t1 = this._deserialized;
- t1.$indexSet(t1, id, dartList);
- t1 = J.getInterceptor$asx(dartList);
- len = t1.get$length(dartList);
- if (typeof len !== "number")
- throw H.iae(len);
- i = 0;
- for (; i < len; ++i)
- t1.$indexSet(dartList, i, this._deserializeHelper$1(t1.$index(dartList, i)));
- return dartList;
- },
- _deserializeMap$1: function(x) {
- var result, t1, id, t2, keys, values, len, i;
- result = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null);
- t1 = J.getInterceptor$asx(x);
- id = t1.$index(x, 1);
- t2 = this._deserialized;
- t2.$indexSet(t2, id, result);
- keys = t1.$index(x, 2);
- values = t1.$index(x, 3);
- t1 = J.getInterceptor$asx(keys);
- len = t1.get$length(keys);
- if (typeof len !== "number")
- throw H.iae(len);
- t2 = J.getInterceptor$asx(values);
- i = 0;
- for (; i < len; ++i)
- result.$indexSet(result, this._deserializeHelper$1(t1.$index(keys, i)), this._deserializeHelper$1(t2.$index(values, i)));
- return result;
- },
- deserializeObject$1: function(x) {
- throw H.wrapException("Unexpected serialized object");
- }
-},
-
-TimerImpl: {"": "Object;_once,_inEventLoop,_handle",
- TimerImpl$2: function(milliseconds, callback) {
- var t1, t2;
- if (milliseconds === 0)
- t1 = $.get$globalThis().setTimeout == null || $globalState.isWorker === true;
- else
- t1 = false;
- if (t1) {
- this._handle = 1;
- t1 = $globalState.topEventLoop;
- t2 = $globalState.currentContext;
- t1.events._add$1(new H._IsolateEvent(t2, new H.TimerImpl_internalCallback(this, callback), "timer"));
- this._inEventLoop = true;
- } else if ($.get$globalThis().setTimeout != null) {
- t1 = $globalState.topEventLoop;
- t1.activeTimerCount = t1.activeTimerCount + 1;
- this._handle = $.get$globalThis().setTimeout(H.convertDartClosureToJS(new H.TimerImpl_internalCallback0(this, callback), 0), milliseconds);
- } else
- throw H.wrapException(P.UnsupportedError$("Timer greater than 0."));
- },
- static: {
-TimerImpl$: function(milliseconds, callback) {
- var t1 = new H.TimerImpl(true, false, null);
- t1.TimerImpl$2(milliseconds, callback);
- return t1;
-}}
-
-},
-
-TimerImpl_internalCallback: {"": "Closure;this_0,callback_1",
- call$0: function() {
- this.this_0._handle = null;
- this.callback_1.call$0();
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-TimerImpl_internalCallback0: {"": "Closure;this_2,callback_3",
- call$0: function() {
- this.this_2._handle = null;
- var t1 = $globalState.topEventLoop;
- t1.activeTimerCount = t1.activeTimerCount - 1;
- this.callback_3.call$0();
- },
- "+call:0:0": 0,
- $isFunction: 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(P.ArgumentError$(value));
- return res;
-},
-
-Primitives_initializeStatics: function(id) {
- $.Primitives_mirrorFunctionCacheName = $.Primitives_mirrorFunctionCacheName + ("_" + H.S(id));
- $.Primitives_mirrorInvokeCacheName = $.Primitives_mirrorInvokeCacheName + ("_" + H.S(id));
-},
-
-Primitives_objectHashCode: function(object) {
- var hash = object.$identityHash;
- if (hash == null) {
- hash = Math.random() * 0x3fffffff | 0;
- object.$identityHash = hash;
- }
- return hash;
-},
-
-Primitives__throwFormatException: function(string) {
- throw H.wrapException(P.FormatException$(string));
-},
-
-Primitives_parseInt: function(source, radix, handleError) {
- var match, t1;
- handleError = H.Primitives__throwFormatException$closure;
- if (typeof source !== "string")
- H.throwExpression(new P.ArgumentError(source));
- match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
- if (match != null) {
- t1 = match.length;
- if (2 >= t1)
- throw H.ioore(match, 2);
- if (match[2] != null)
- return parseInt(source, 16);
- if (3 >= t1)
- throw H.ioore(match, 3);
- if (match[3] != null)
- return parseInt(source, 10);
- return handleError.call$1(source);
- }
- if (match == null)
- return handleError.call$1(source);
- return parseInt(source, 10);
-},
-
-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_getProperty: function(object, key) {
- if (object == null || typeof object === "boolean" || typeof object === "number" || typeof object === "string")
- throw H.wrapException(new P.ArgumentError(object));
- return object[key];
-},
-
-Primitives_setProperty: function(object, key, value) {
- if (object == null || typeof object === "boolean" || typeof object === "number" || typeof object === "string")
- throw H.wrapException(new P.ArgumentError(object));
- object[key] = value;
-},
-
-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(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 H._callInIsolate(isolate, new H.invokeClosure_closure(closure));
- else if (t1.$eq(numberOfArguments, 1))
- return H._callInIsolate(isolate, new H.invokeClosure_closure0(closure, arg1));
- else if (t1.$eq(numberOfArguments, 2))
- return H._callInIsolate(isolate, new H.invokeClosure_closure1(closure, arg1, arg2));
- else if (t1.$eq(numberOfArguments, 3))
- return H._callInIsolate(isolate, new H.invokeClosure_closure2(closure, arg1, arg2, arg3));
- else if (t1.$eq(numberOfArguments, 4))
- return H._callInIsolate(isolate, new H.invokeClosure_closure3(closure, arg1, arg2, arg3, arg4));
- 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,$globalState.currentContext,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)));
-},
-
-createRuntimeType: function($name) {
- return new H.TypeImpl($name, null);
-},
-
-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;
-},
-
-computeSignature: function(signature, context, contextName) {
- return H.invokeOn(signature, context, H.getRuntimeTypeArguments(context, contextName));
-},
-
-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,
- $is_args2: 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,
- $is_args1: 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,
- $is_args2: 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,
- $is_args1: true
-},
-
-_StackTrace: {"": "Object;_exception,_trace",
- toString$0: function(_) {
- var t1, trace;
- t1 = this._trace;
- if (t1 != null)
- return t1;
- t1 = this._exception;
- trace = typeof t1 === "object" ? t1.stack : null;
- t1 = trace == null ? "" : trace;
- this._trace = t1;
- return t1;
- }
-},
-
-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
-},
-
-BoundClosure: {"": "Closure;_self,__js_helper$_target,_receiver,__js_helper$_name",
- $eq: function(_, other) {
- var t1;
- if (other == null)
- return false;
- if (this === other)
- return true;
- t1 = J.getInterceptor(other);
- if (typeof other !== "object" || other === null || !t1.$isBoundClosure)
- return false;
- return this._self === other._self && this.__js_helper$_target === other.__js_helper$_target && this._receiver === other._receiver;
- },
- get$hashCode: function(_) {
- var t1, receiverHashCode;
- t1 = this._receiver;
- if (t1 == null)
- receiverHashCode = H.Primitives_objectHashCode(this._self);
- else
- receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primitives_objectHashCode(t1);
- return (receiverHashCode ^ H.Primitives_objectHashCode(this.__js_helper$_target)) >>> 0;
- },
- $isBoundClosure: true
-},
-
-TypeImpl: {"": "Object;_typeName,_unmangledName",
- toString$0: function(_) {
- var t1, unmangledName, unmangledName0;
- t1 = this._unmangledName;
- if (t1 != null)
- return t1;
- unmangledName = this._typeName;
- unmangledName0 = H.unmangleGlobalNameIfPreservedAnyways(unmangledName);
- unmangledName = unmangledName0 == null ? unmangledName : unmangledName0;
- this._unmangledName = unmangledName;
- return unmangledName;
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this._typeName);
- },
- $eq: function(_, other) {
- var t1;
- if (other == null)
- return false;
- t1 = J.getInterceptor(other);
- return typeof other === "object" && other !== null && !!t1.$isTypeImpl && J.$eq(this._typeName, other._typeName);
- },
- $isTypeImpl: true
-},
-
-initHooks_closure: {"": "Closure;getTag_0",
- call$1: function(o) {
- return this.getTag_0(o);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-initHooks_closure0: {"": "Closure;getUnknownTag_1",
- call$2: function(o, tag) {
- return this.getUnknownTag_1(o, tag);
- },
- "+call:2:0": 0,
- $isFunction: true,
- $is_args2: true
-},
-
-initHooks_closure1: {"": "Closure;prototypeForTag_2",
- call$1: function(tag) {
- return this.prototypeForTag_2(tag);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-}}],
-["dart._collection.dev", "dart:_collection-dev", , H, {
-Arrays_copy: function(src, srcStart, dst, dstStart, count) {
- var i, j, t1;
- if (srcStart < dstStart)
- for (i = srcStart + count - 1, j = dstStart + count - 1; i >= srcStart; --i, --j) {
- if (i < 0 || i >= src.length)
- throw H.ioore(src, i);
- C.JSArray_methods.$indexSet(dst, j, src[i]);
- }
- else
- for (t1 = srcStart + count, j = dstStart, i = srcStart; i < t1; ++i, ++j) {
- if (i < 0 || i >= src.length)
- throw H.ioore(src, i);
- C.JSArray_methods.$indexSet(dst, j, src[i]);
- }
-},
-
-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();
-},
-
-IterableMixinWorkaround__rangeCheck: function(list, start, end) {
- if (start < 0 || start > list.length)
- throw H.wrapException(P.RangeError$range(start, 0, list.length));
- if (end < start || end > list.length)
- throw H.wrapException(P.RangeError$range(end, start, list.length));
-},
-
-IterableMixinWorkaround_setRangeList: function(list, start, end, from, skipCount) {
- var $length;
- H.IterableMixinWorkaround__rangeCheck(list, start, end);
- $length = end - start;
- if ($length === 0)
- return;
- if (skipCount < 0)
- throw H.wrapException(new P.ArgumentError(skipCount));
- if (skipCount + $length > from.length)
- throw H.wrapException(P.StateError$("Not enough elements"));
- H.Arrays_copy(from, skipCount, list, start, $length);
-},
-
-printToConsole: function(line) {
- if (typeof dartPrint == "function") {
- dartPrint(line);
- return;
- }
- if (typeof console == "object" && typeof console.log == "function") {
- console.log(line);
- return;
- }
- if (typeof window == "object")
- return;
- if (typeof print == "function") {
- print(line);
- return;
- }
- throw "Unable to print message: " + String(line);
-},
-
-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;_dev$_source,_f",
- _f$1: function(arg0) {
- return this._f.call$1(arg0);
- },
- get$length: function(_) {
- return J.get$length$asx(this._dev$_source);
- },
- elementAt$1: function(_, index) {
- return this._f$1(J.elementAt$1$ax(this._dev$_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._js_names", "dart:_js_names", , H, {
-unmangleGlobalNameIfPreservedAnyways: function($name) {
- return init.mangledGlobalNames[$name];
-}}],
-["dart.async", "dart:async", , P, {
-_invokeErrorHandler: function(errorHandler, error, stackTrace) {
- var t1 = J.getInterceptor(errorHandler);
- if (!!t1.$is_args2)
- return errorHandler.call$2(error, stackTrace);
- else
- return errorHandler.call$1(error);
-},
-
-_registerErrorHandler: function(errorHandler, zone) {
- var t1 = J.getInterceptor(errorHandler);
- zone.toString;
- if (!!t1.$is_args2)
- return errorHandler;
- else
- return errorHandler;
-},
-
-Future_wait: function(futures) {
- var t1, t2, t3, future, pos, t4, t5, result, completer;
- t1 = {};
- t1.completer_0 = null;
- t1.values_1 = null;
- t2 = new P.Future_wait_handleError(t1);
- t1.remaining_2 = 0;
- for (t3 = new H.ListIterator(futures, futures.length, 0, null); t3.moveNext$0();) {
- future = t3._current;
- pos = t1.remaining_2;
- t1.remaining_2 = pos + 1;
- t4 = future.catchError$1(t2);
- t5 = $.Zone__current;
- t5.toString;
- result = new P._Future(0, t5, null, null, new P.Future_wait_closure(t1, pos), null, P._registerErrorHandler(null, t5), null);
- result.$builtinTypeInfo = [null];
- t4._addListener$1(result);
- }
- t2 = t1.remaining_2;
- if (t2 === 0)
- return P._Future$immediate(C.List_empty, null);
- t1.values_1 = P.List_List(t2, null);
- t2 = J.JSArray;
- completer = new P._AsyncCompleter(P._Future$(t2));
- H.setRuntimeTypeInfo(completer, [t2]);
- t1.completer_0 = completer;
- return t1.completer_0.future;
-},
-
-_asyncRunCallback: function() {
- var callback, t1, exception, milliseconds;
- for (; t1 = $.get$_asyncCallbacks(), t1._head !== t1._tail;) {
- callback = $.get$_asyncCallbacks().removeFirst$0();
- try {
- callback.call$0();
- } catch (exception) {
- H.unwrapException(exception);
- milliseconds = C.JSNumber_methods.$tdiv(C.Duration_0._duration, 1000);
- H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, P._asyncRunCallback$closure);
- throw exception;
- }
-
- }
- $._callbacksAreEnqueued = false;
-},
-
-_scheduleAsyncCallback: function(callback) {
- $.get$_asyncCallbacks()._add$1(callback);
- if (!$._callbacksAreEnqueued) {
- P._createTimer(C.Duration_0, P._asyncRunCallback$closure);
- $._callbacksAreEnqueued = true;
- }
-},
-
-scheduleMicrotask: function(callback) {
- var t1 = $.Zone__current;
- if (t1 === C.C__RootZone) {
- t1.toString;
- P._scheduleAsyncCallback(callback);
- return;
- }
- P._scheduleAsyncCallback(t1.bindCallback$2$runGuarded(callback, true));
-},
-
-StreamController_StreamController: function(onCancel, onListen, onPause, onResume, sync, $T) {
- var t1;
- if (sync) {
- t1 = new P._SyncStreamController(onListen, onPause, onResume, onCancel, null, 0, null);
- H.setRuntimeTypeInfo(t1, [$T]);
- } else {
- t1 = new P._AsyncStreamController(onListen, onPause, onResume, onCancel, null, 0, null);
- H.setRuntimeTypeInfo(t1, [$T]);
- }
- return t1;
-},
-
-_runGuarded: function(notificationHandler) {
- var result, e, s, t1, t2, exception;
- if (notificationHandler == null)
- return;
- try {
- result = notificationHandler.call$0();
- t1 = result;
- t2 = J.getInterceptor(t1);
- if (typeof t1 === "object" && t1 !== null && !!t2.$isFuture)
- return result;
- return;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- e = t1;
- s = new H._StackTrace(exception, null);
- t1 = $.Zone__current;
- t1.toString;
- P._rootHandleUncaughtError(t1, null, t1, e, s);
- }
-
-},
-
-_nullDataHandler: function(value) {
-},
-
-_nullErrorHandler: function(error, stackTrace) {
- var t1 = $.Zone__current;
- t1.toString;
- P._rootHandleUncaughtError(t1, null, t1, error, stackTrace);
-},
-
-_nullDoneHandler: function() {
-},
-
-_runUserCode: function(userCode, onSuccess, onError) {
- var e, s, exception, t1;
- try {
- onSuccess.call$1(userCode.call$0());
- } catch (exception) {
- t1 = H.unwrapException(exception);
- e = t1;
- s = new H._StackTrace(exception, null);
- onError.call$2(e, s);
- }
-
-},
-
-_cancelAndError: function(subscription, future, error, stackTrace) {
- var cancelFuture, t1;
- cancelFuture = subscription.cancel$0();
- t1 = J.getInterceptor(cancelFuture);
- if (typeof cancelFuture === "object" && cancelFuture !== null && !!t1.$isFuture)
- cancelFuture.whenComplete$1(new P._cancelAndError_closure(future, error, stackTrace));
- else
- future._completeError$2(error, stackTrace);
-},
-
-_cancelAndErrorClosure: function(subscription, future) {
- return new P._cancelAndErrorClosure_closure(subscription, future);
-},
-
-Timer_Timer: function(duration, callback) {
- var t1 = $.Zone__current;
- if (t1 === C.C__RootZone) {
- t1.toString;
- return P._createTimer(duration, callback);
- }
- return P._createTimer(duration, t1.bindCallback$2$runGuarded(callback, true));
-},
-
-_createTimer: function(duration, callback) {
- var milliseconds = C.JSNumber_methods.$tdiv(duration._duration, 1000);
- return H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback);
-},
-
-_rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) {
- P._rootRun($self, null, $self, new P._rootHandleUncaughtError_closure(error, stackTrace));
-},
-
-_rootRun: function($self, $parent, zone, f) {
- var old, t1, t2;
- t1 = $.Zone__current;
- t2 = zone;
- if (t1 == null ? t2 == null : t1 === t2)
- return f.call$0();
- old = t1;
- try {
- $.Zone__current = zone;
- t1 = f.call$0();
- return t1;
- } finally {
- $.Zone__current = old;
- }
-},
-
-_rootRunUnary: function($self, $parent, zone, f, arg) {
- var old, t1, t2;
- t1 = $.Zone__current;
- t2 = zone;
- if (t1 == null ? t2 == null : t1 === t2)
- return f.call$1(arg);
- old = t1;
- try {
- $.Zone__current = zone;
- t1 = f.call$1(arg);
- return t1;
- } finally {
- $.Zone__current = old;
- }
-},
-
-_rootRunBinary: function($self, $parent, zone, f, arg1, arg2) {
- var old, t1, t2;
- t1 = $.Zone__current;
- t2 = zone;
- if (t1 == null ? t2 == null : t1 === t2)
- return f.call$2(arg1, arg2);
- old = t1;
- try {
- $.Zone__current = zone;
- t1 = f.call$2(arg1, arg2);
- return t1;
- } finally {
- $.Zone__current = old;
- }
-},
-
-_AsyncError: {"": "Object;error>,stackTrace<", $isError: true},
-
-Future: {"": "Object;", $isFuture: true},
-
-Future_wait_handleError: {"": "Closure;box_0",
- call$1: function(error) {
- var t1 = this.box_0;
- if (t1.values_1 != null) {
- t1.values_1 = null;
- t1.completer_0.completeError$1(error);
- }
- return;
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-Future_wait_closure: {"": "Closure;box_0,pos_1",
- call$1: function(value) {
- var t1, t2, t3;
- t1 = this.box_0;
- t2 = t1.values_1;
- if (t2 == null)
- return;
- t3 = this.pos_1;
- if (t3 < 0 || t3 >= t2.length)
- throw H.ioore(t2, t3);
- t2[t3] = value;
- t1.remaining_2 = t1.remaining_2 - 1;
- if (t1.remaining_2 === 0) {
- t2 = t1.completer_0;
- t1 = t1.values_1;
- t2 = t2.future;
- if (t2._state !== 0)
- H.throwExpression(P.StateError$("Future already completed"));
- t2._asyncComplete$1(t1);
- }
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-_Completer: {"": "Object;"},
-
-_AsyncCompleter: {"": "_Completer;future",
- complete$1: function(_, value) {
- var t1 = this.future;
- if (t1._state !== 0)
- throw H.wrapException(P.StateError$("Future already completed"));
- t1._asyncComplete$1(value);
- },
- get$complete: function(_receiver) {
- return new P.BoundClosure$i1(this, P._AsyncCompleter.prototype.complete$1, _receiver, "complete$1");
- },
- completeError$2: function(error, stackTrace) {
- var t1;
- if (error == null)
- throw H.wrapException(new P.ArgumentError("Error must not be null"));
- t1 = this.future;
- if (t1._state !== 0)
- throw H.wrapException(P.StateError$("Future already completed"));
- t1._asyncCompleteError$2(error, stackTrace);
- },
- completeError$1: function(error) {
- return this.completeError$2(error, null);
- },
- $as_Completer: null
-},
-
-_Future: {"": "Object;_state,_zone<,_resultOrListeners,_nextListener@,_onValueCallback,_errorTestCallback,_onErrorCallback,_whenCompleteActionCallback",
- get$_isComplete: function() {
- return this._state >= 4;
- },
- get$_hasError: function() {
- return this._state === 8;
- },
- set$_isChained: function(value) {
- if (value)
- this._state = 2;
- else
- this._state = 0;
- },
- get$_onValue: function() {
- return this._state === 2 ? null : this._onValueCallback;
- },
- _onValue$1: function(arg0) {
- return this.get$_onValue().call$1(arg0);
- },
- get$_errorTest: function() {
- return this._state === 2 ? null : this._errorTestCallback;
- },
- get$_onError: function() {
- return this._state === 2 ? null : this._onErrorCallback;
- },
- get$_whenCompleteAction: function() {
- return this._state === 2 ? null : this._whenCompleteActionCallback;
- },
- _whenCompleteAction$0: function() {
- return this.get$_whenCompleteAction().call$0();
- },
- then$2$onError: function(f, onError) {
- var result = P._Future$_then(f, onError, null);
- this._addListener$1(result);
- return result;
- },
- then$1: function(f) {
- return this.then$2$onError(f, null);
- },
- catchError$2$test: function(onError, test) {
- var result = P._Future$_catchError(onError, test, null);
- this._addListener$1(result);
- return result;
- },
- catchError$1: function(onError) {
- return this.catchError$2$test(onError, null);
- },
- whenComplete$1: function(action) {
- var result = P._Future$_whenComplete(action, H.getRuntimeTypeArgument(this, "_Future", 0));
- this._addListener$1(result);
- return result;
- },
- get$_value: function() {
- return this._resultOrListeners;
- },
- get$_error: function() {
- return this._resultOrListeners;
- },
- _setValue$1: function(value) {
- this._state = 4;
- this._resultOrListeners = value;
- },
- _setError$2: function(error, stackTrace) {
- this._state = 8;
- this._resultOrListeners = new P._AsyncError(error, stackTrace);
- },
- _addListener$1: function(listener) {
- if (this._state >= 4) {
- this._zone.toString;
- P._scheduleAsyncCallback(new P._Future__addListener_closure(this, listener));
- } else {
- listener.set$_nextListener(this._resultOrListeners);
- this._resultOrListeners = listener;
- }
- },
- _removeListeners$0: function() {
- var current, prev, next;
- current = this._resultOrListeners;
- this._resultOrListeners = null;
- for (prev = null; current != null; prev = current, current = next) {
- next = current.get$_nextListener();
- current.set$_nextListener(prev);
- }
- return prev;
- },
- _complete$1: function(value) {
- var t1, listeners;
- t1 = J.getInterceptor(value);
- if (typeof value === "object" && value !== null && !!t1.$isFuture) {
- P._Future__chainFutures(value, this);
- return;
- }
- listeners = this._removeListeners$0();
- this._setValue$1(value);
- P._Future__propagateToListeners(this, listeners);
- },
- _completeError$2: function(error, stackTrace) {
- var listeners = this._removeListeners$0();
- this._setError$2(error, stackTrace);
- P._Future__propagateToListeners(this, listeners);
- },
- get$_completeError: function() {
- return new P.BoundClosure$2(this, P._Future.prototype._completeError$2, null, "_completeError$2");
- },
- _asyncComplete$1: function(value) {
- var t1, t2;
- t1 = J.getInterceptor(value);
- t2 = typeof value === "object" && value !== null && !!t1.$isFuture;
- if (t2)
- ;
- if (t2)
- t1 = typeof value !== "object" || value === null || !t1.$is_Future || value._state < 4;
- else
- t1 = false;
- if (t1) {
- this._complete$1(value);
- return;
- }
- if (this._state !== 0)
- H.throwExpression(P.StateError$("Future already completed"));
- this._state = 1;
- this._zone.toString;
- P._scheduleAsyncCallback(new P._Future__asyncComplete_closure(this, value));
- },
- _asyncCompleteError$2: function(error, stackTrace) {
- if (this._state !== 0)
- H.throwExpression(P.StateError$("Future already completed"));
- this._state = 1;
- this._zone.toString;
- P._scheduleAsyncCallback(new P._Future__asyncCompleteError_closure(this, error, stackTrace));
- },
- _async$_Future$immediate$1: function(value, $T) {
- this._asyncComplete$1(value);
- },
- $is_Future: true,
- $isFuture: true,
- static: {
-"": "_Future__INCOMPLETE,_Future__PENDING_COMPLETE,_Future__CHAINED,_Future__VALUE,_Future__ERROR",
-_Future$: function($T) {
- var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null);
- H.setRuntimeTypeInfo(t1, [$T]);
- return t1;
-},
-
-_Future$immediate: function(value, $T) {
- var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null);
- H.setRuntimeTypeInfo(t1, [$T]);
- t1._async$_Future$immediate$1(value, $T);
- return t1;
-},
-
-_Future$_then: function(onValueCallback, onErrorCallback, $T) {
- var t1 = $.Zone__current;
- t1.toString;
- t1 = new P._Future(0, t1, null, null, onValueCallback, null, P._registerErrorHandler(onErrorCallback, t1), null);
- H.setRuntimeTypeInfo(t1, [$T]);
- return t1;
-},
-
-_Future$_catchError: function(onErrorCallback, errorTestCallback, $T) {
- var t1, t2;
- t1 = $.Zone__current;
- t2 = P._registerErrorHandler(onErrorCallback, t1);
- $.Zone__current.toString;
- t2 = new P._Future(0, t1, null, null, null, errorTestCallback, t2, null);
- H.setRuntimeTypeInfo(t2, [$T]);
- return t2;
-},
-
-_Future$_whenComplete: function(whenCompleteActionCallback, $T) {
- var t1 = $.Zone__current;
- t1.toString;
- t1 = new P._Future(0, t1, null, null, null, null, null, whenCompleteActionCallback);
- H.setRuntimeTypeInfo(t1, [$T]);
- return t1;
-},
-
-_Future__chainFutures: function(source, target) {
- var t1;
- target.set$_isChained(true);
- t1 = J.getInterceptor(source);
- if (typeof source === "object" && source !== null && !!t1.$is_Future)
- if (source._state >= 4)
- P._Future__propagateToListeners(source, target);
- else
- source._addListener$1(target);
- else
- source.then$2$onError(new P._Future__chainFutures_closure(target), new P._Future__chainFutures_closure0(target));
-},
-
-_Future__propagateMultipleListeners: function(source, listeners) {
- var listeners0;
- do {
- listeners0 = listeners.get$_nextListener();
- listeners.set$_nextListener(null);
- P._Future__propagateToListeners(source, listeners);
- if (listeners0 != null) {
- listeners = listeners0;
- continue;
- } else
- break;
- } while (true);
-},
-
-_Future__propagateToListeners: function(source, listeners) {
- var t1, t2, hasError, asyncError, t3, t4, t5, chainSource, listeners0;
- t1 = {};
- t1.source_4 = source;
- for (; true;) {
- t2 = {};
- if (!t1.source_4.get$_isComplete())
- return;
- hasError = t1.source_4.get$_hasError();
- if (hasError && listeners == null) {
- asyncError = t1.source_4.get$_error();
- t2 = t1.source_4.get$_zone();
- t3 = J.get$error$x(asyncError);
- t4 = asyncError.get$stackTrace();
- t2.toString;
- P._rootHandleUncaughtError(t2, null, t2, t3, t4);
- return;
- }
- if (listeners == null)
- return;
- if (listeners.get$_nextListener() != null) {
- P._Future__propagateMultipleListeners(t1.source_4, listeners);
- return;
- }
- if (hasError) {
- t3 = t1.source_4.get$_zone();
- t4 = listeners.get$_zone();
- t3.toString;
- t4.toString;
- t3 = t4 == null ? t3 != null : t4 !== t3;
- } else
- t3 = false;
- if (t3) {
- asyncError = t1.source_4.get$_error();
- t2 = t1.source_4.get$_zone();
- t3 = J.get$error$x(asyncError);
- t4 = asyncError.get$stackTrace();
- t2.toString;
- P._rootHandleUncaughtError(t2, null, t2, t3, t4);
- return;
- }
- t3 = $.Zone__current;
- t4 = listeners.get$_zone();
- if (t3 == null ? t4 != null : t3 !== t4) {
- t4.toString;
- P._rootRun(t4, null, t4, new P._Future__propagateToListeners_closure(t1, listeners));
- return;
- }
- t2.listenerHasValue_1 = null;
- t2.listenerValueOrError_2 = null;
- t2.isPropagationAborted_3 = false;
- t3 = listeners.get$_zone();
- t3.toString;
- P._rootRun(t3, null, t3, new P._Future__propagateToListeners_closure0(t1, t2, hasError, listeners));
- if (t2.isPropagationAborted_3)
- return;
- t3 = t2.listenerHasValue_1 === true;
- if (t3) {
- t4 = t2.listenerValueOrError_2;
- t5 = J.getInterceptor(t4);
- t5 = typeof t4 === "object" && t4 !== null && !!t5.$isFuture;
- t4 = t5;
- } else
- t4 = false;
- if (t4) {
- chainSource = t2.listenerValueOrError_2;
- t2 = J.getInterceptor(chainSource);
- if (typeof chainSource === "object" && chainSource !== null && !!t2.$is_Future && chainSource._state >= 4) {
- listeners.set$_isChained(true);
- t1.source_4 = chainSource;
- continue;
- }
- P._Future__chainFutures(chainSource, listeners);
- return;
- }
- if (t3) {
- listeners0 = listeners._removeListeners$0();
- listeners._setValue$1(t2.listenerValueOrError_2);
- } else {
- listeners0 = listeners._removeListeners$0();
- asyncError = t2.listenerValueOrError_2;
- listeners._setError$2(J.get$error$x(asyncError), asyncError.get$stackTrace());
- }
- t1.source_4 = listeners;
- listeners = listeners0;
- }
-}}
-
-},
-
-_Future__addListener_closure: {"": "Closure;this_0,listener_1",
- call$0: function() {
- P._Future__propagateToListeners(this.this_0, this.listener_1);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_Future__chainFutures_closure: {"": "Closure;target_0",
- call$1: function(value) {
- this.target_0._complete$1(value);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-_Future__chainFutures_closure0: {"": "Closure;target_1",
- call$2: function(error, stackTrace) {
- this.target_1._completeError$2(error, stackTrace);
- },
- "+call:2:0": 0,
- "*call": [0],
- call$1: function(error) {
- return this.call$2(error, null);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args2: true,
- $is_args1: true
-},
-
-_Future__asyncComplete_closure: {"": "Closure;this_0,value_1",
- call$0: function() {
- this.this_0._complete$1(this.value_1);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_Future__asyncCompleteError_closure: {"": "Closure;this_0,error_1,stackTrace_2",
- call$0: function() {
- this.this_0._completeError$2(this.error_1, this.stackTrace_2);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_Future__propagateToListeners_closure: {"": "Closure;box_2,listener_3",
- call$0: function() {
- P._Future__propagateToListeners(this.box_2.source_4, this.listener_3);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_Future__propagateToListeners_closure0: {"": "Closure;box_2,box_1,hasError_4,listener_5",
- call$0: function() {
- var t1, value, asyncError, test, matchesTest, errorCallback, e, s, t2, t3, t4, exception;
- t1 = {};
- try {
- t2 = this.box_2;
- if (!this.hasError_4) {
- value = t2.source_4.get$_value();
- t2 = this.listener_5;
- t3 = this.box_1;
- if (t2.get$_onValue() != null) {
- t3.listenerValueOrError_2 = t2._onValue$1(value);
- t3.listenerHasValue_1 = true;
- } else {
- t3.listenerValueOrError_2 = value;
- t3.listenerHasValue_1 = true;
- }
- } else {
- asyncError = t2.source_4.get$_error();
- t2 = this.listener_5;
- test = t2.get$_errorTest();
- matchesTest = true;
- if (test != null)
- matchesTest = test.call$1(J.get$error$x(asyncError));
- t3 = matchesTest === true && t2.get$_onError() != null;
- t4 = this.box_1;
- if (t3) {
- errorCallback = t2.get$_onError();
- t4.listenerValueOrError_2 = P._invokeErrorHandler(errorCallback, J.get$error$x(asyncError), asyncError.get$stackTrace());
- t4.listenerHasValue_1 = true;
- } else {
- t4.listenerValueOrError_2 = asyncError;
- t4.listenerHasValue_1 = false;
- }
- }
- t2 = this.listener_5;
- if (t2.get$_whenCompleteAction() != null) {
- t1.completeResult_0 = t2._whenCompleteAction$0();
- t3 = t1.completeResult_0;
- t4 = J.getInterceptor(t3);
- if (typeof t3 === "object" && t3 !== null && !!t4.$isFuture) {
- t2.set$_isChained(true);
- t1.completeResult_0.then$2$onError(new P._Future__propagateToListeners__closure(this.box_2, t2), new P._Future__propagateToListeners__closure0(t1, t2));
- this.box_1.isPropagationAborted_3 = true;
- }
- }
- } catch (exception) {
- t1 = H.unwrapException(exception);
- e = t1;
- s = new H._StackTrace(exception, null);
- if (this.hasError_4) {
- t1 = J.get$error$x(this.box_2.source_4.get$_error());
- t2 = e;
- t2 = t1 == null ? t2 == null : t1 === t2;
- t1 = t2;
- } else
- t1 = false;
- t2 = this.box_1;
- if (t1)
- t2.listenerValueOrError_2 = this.box_2.source_4.get$_error();
- else
- t2.listenerValueOrError_2 = new P._AsyncError(e, s);
- this.box_1.listenerHasValue_1 = false;
- }
-
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_Future__propagateToListeners__closure: {"": "Closure;box_2,listener_6",
- call$1: function(ignored) {
- P._Future__propagateToListeners(this.box_2.source_4, this.listener_6);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-_Future__propagateToListeners__closure0: {"": "Closure;box_0,listener_7",
- call$2: function(error, stackTrace) {
- var t1, t2, t3;
- t1 = this.box_0;
- t2 = t1.completeResult_0;
- t3 = J.getInterceptor(t2);
- if (typeof t2 !== "object" || t2 === null || !t3.$is_Future) {
- t1.completeResult_0 = P._Future$(null);
- t1.completeResult_0._setError$2(error, stackTrace);
- }
- P._Future__propagateToListeners(t1.completeResult_0, this.listener_7);
- },
- "+call:2:0": 0,
- "*call": [0],
- call$1: function(error) {
- return this.call$2(error, null);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args2: true,
- $is_args1: true
-},
-
-Stream: {"": "Object;",
- map$1: function(_, convert) {
- var t1 = new P._MapStream(convert, this);
- H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "Stream", 0), null]);
- return t1;
- },
- forEach$1: function(_, action) {
- var t1, future;
- t1 = {};
- future = P._Future$(null);
- t1.subscription_0 = null;
- t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_forEach_closure(t1, this, action, future), true, new P.Stream_forEach_closure0(future), future.get$_completeError());
- return future;
- },
- get$length: function(_) {
- var t1, future;
- t1 = {};
- future = P._Future$(J.JSInt);
- t1.count_0 = 0;
- this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1), true, new P.Stream_length_closure0(t1, future), future.get$_completeError());
- return future;
- }
-},
-
-Stream_forEach_closure: {"": "Closure;box_0,this_1,action_2,future_3",
- call$1: function(element) {
- P._runUserCode(new P.Stream_forEach__closure(this.action_2, element), new P.Stream_forEach__closure0(), P._cancelAndErrorClosure(this.box_0.subscription_0, this.future_3));
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-Stream_forEach__closure: {"": "Closure;action_4,element_5",
- call$0: function() {
- return this.action_4.call$1(this.element_5);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-Stream_forEach__closure0: {"": "Closure;",
- call$1: function(_) {
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-Stream_forEach_closure0: {"": "Closure;future_6",
- call$0: function() {
- this.future_6._complete$1(null);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-Stream_length_closure: {"": "Closure;box_0",
- call$1: function(_) {
- var t1 = this.box_0;
- t1.count_0 = t1.count_0 + 1;
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-Stream_length_closure0: {"": "Closure;box_0,future_1",
- call$0: function() {
- this.future_1._complete$1(this.box_0.count_0);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-StreamSubscription: {"": "Object;"},
-
-_StreamController: {"": "Object;",
- get$_pendingEvents: function() {
- if ((this._state & 8) === 0)
- return this._varData;
- return this._varData.get$varData();
- },
- _ensurePendingEvents$0: function() {
- if ((this._state & 8) === 0) {
- if (this._varData == null)
- this._varData = new P._StreamImplEvents(null, null, 0);
- return this._varData;
- }
- var t1 = this._varData.get$varData();
- return t1;
- },
- get$_subscription: function() {
- if ((this._state & 8) !== 0)
- return this._varData.get$varData();
- return this._varData;
- },
- _badEventState$0: function() {
- if ((this._state & 4) !== 0)
- return new P.StateError("Cannot add event after closing");
- return new P.StateError("Cannot add event while adding a stream");
- },
- _ensureDoneFuture$0: function() {
- if (this._doneFuture == null) {
- this._doneFuture = P._Future$(null);
- if ((this._state & 2) !== 0)
- this._doneFuture._complete$1(null);
- }
- return this._doneFuture;
- },
- close$0: function(_) {
- var t1 = this._state;
- if ((t1 & 4) !== 0)
- return this._doneFuture;
- if (t1 >= 4)
- throw H.wrapException(this._badEventState$0());
- this._state = (t1 | 4) >>> 0;
- this._ensureDoneFuture$0();
- t1 = this._state;
- if ((t1 & 1) !== 0)
- this._sendDone$0();
- else if ((t1 & 3) === 0) {
- t1 = this._ensurePendingEvents$0();
- t1.add$1(t1, C.C__DelayedDone);
- }
- return this._doneFuture;
- },
- _async$_add$1: function(value) {
- var t1 = this._state;
- if ((t1 & 1) !== 0)
- this._sendData$1(value);
- else if ((t1 & 3) === 0) {
- t1 = this._ensurePendingEvents$0();
- t1.add$1(t1, new P._DelayedData(value, null));
- }
- },
- _addError$2: function(error, stackTrace) {
- var t1 = this._state;
- if ((t1 & 1) !== 0)
- this._sendError$2(error, stackTrace);
- else if ((t1 & 3) === 0) {
- t1 = this._ensurePendingEvents$0();
- t1.add$1(t1, new P._DelayedError(error, stackTrace, null));
- }
- },
- _subscribe$1: function(cancelOnError) {
- var t1, t2, subscription, pendingEvents, addState;
- if ((this._state & 3) !== 0)
- throw H.wrapException(P.StateError$("Stream has already been listened to."));
- t1 = $.Zone__current;
- t2 = cancelOnError ? 1 : 0;
- subscription = new P._ControllerSubscription(this, null, null, null, t1, t2, null, null);
- H.setRuntimeTypeInfo(subscription, [null]);
- pendingEvents = this.get$_pendingEvents();
- this._state = (this._state | 1) >>> 0;
- if ((this._state & 8) !== 0) {
- addState = this._varData;
- addState.set$varData(subscription);
- addState.resume$0();
- } else
- this._varData = subscription;
- subscription._setPendingEvents$1(pendingEvents);
- subscription._guardCallback$1(new P._StreamController__subscribe_closure(this));
- return subscription;
- },
- _recordCancel$1: function(subscription) {
- var t1, future;
- if ((this._state & 8) !== 0)
- this._varData.cancel$0();
- this._varData = null;
- this._state = (this._state & 4294967286 | 2) >>> 0;
- t1 = new P._StreamController__recordCancel_complete(this);
- future = P._runGuarded(this.get$_onCancel());
- if (future != null)
- future = future.whenComplete$1(t1);
- else
- t1.call$0();
- return future;
- }
-},
-
-_StreamController__subscribe_closure: {"": "Closure;this_0",
- call$0: function() {
- P._runGuarded(this.this_0.get$_onListen());
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_StreamController__recordCancel_complete: {"": "Closure;this_0",
- call$0: function() {
- var t1 = this.this_0._doneFuture;
- if (t1 != null && t1._state === 0)
- t1._asyncComplete$1(null);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_SyncStreamControllerDispatch: {"": "Object;",
- _sendData$1: function(data) {
- this.get$_subscription()._async$_add$1(data);
- },
- _sendError$2: function(error, stackTrace) {
- this.get$_subscription()._addError$2(error, stackTrace);
- },
- _sendDone$0: function() {
- this.get$_subscription()._close$0();
- }
-},
-
-_AsyncStreamControllerDispatch: {"": "Object;",
- _sendData$1: function(data) {
- this.get$_subscription()._addPending$1(new P._DelayedData(data, null));
- },
- _sendError$2: function(error, stackTrace) {
- this.get$_subscription()._addPending$1(new P._DelayedError(error, stackTrace, null));
- },
- _sendDone$0: function() {
- this.get$_subscription()._addPending$1(C.C__DelayedDone);
- }
-},
-
-_AsyncStreamController: {"": "_StreamController__AsyncStreamControllerDispatch;_onListen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"},
-
-_StreamController__AsyncStreamControllerDispatch: {"": "_StreamController+_AsyncStreamControllerDispatch;"},
-
-_SyncStreamController: {"": "_StreamController__SyncStreamControllerDispatch;_onListen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"},
-
-_StreamController__SyncStreamControllerDispatch: {"": "_StreamController+_SyncStreamControllerDispatch;"},
-
-_ControllerStream: {"": "_StreamImpl;_async$_controller",
- _createSubscription$1: function(cancelOnError) {
- return this._async$_controller._subscribe$1(cancelOnError);
- },
- get$hashCode: function(_) {
- return (H.Primitives_objectHashCode(this._async$_controller) ^ 892482866) >>> 0;
- },
- $eq: function(_, other) {
- var t1;
- if (other == null)
- return false;
- if (this === other)
- return true;
- t1 = J.getInterceptor(other);
- if (typeof other !== "object" || other === null || !t1.$is_ControllerStream)
- return false;
- return other._async$_controller === this._async$_controller;
- },
- $is_ControllerStream: true,
- $as_StreamImpl: null
-},
-
-_ControllerSubscription: {"": "_BufferingStreamSubscription;_async$_controller,_async$_onData,_onError,_onDone,_zone,_state,_cancelFuture,_pending",
- _onCancel$0: function() {
- return this._async$_controller._recordCancel$1(this);
- },
- _onPause$0: function() {
- var t1, addState;
- t1 = this._async$_controller;
- if ((t1._state & 8) !== 0) {
- addState = t1._varData;
- addState.pause$0(addState);
- }
- P._runGuarded(t1.get$_onPause());
- },
- get$_onPause: function() {
- return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onPause$0, null, "_onPause$0");
- },
- _onResume$0: function() {
- var t1 = this._async$_controller;
- if ((t1._state & 8) !== 0)
- t1._varData.resume$0();
- P._runGuarded(t1.get$_onResume());
- },
- get$_onResume: function() {
- return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onResume$0, null, "_onResume$0");
- },
- $as_BufferingStreamSubscription: null
-},
-
-_EventSink: {"": "Object;"},
-
-_BufferingStreamSubscription: {"": "Object;_async$_onData,_onError<,_onDone,_zone<,_state,_cancelFuture,_pending",
- _setPendingEvents$1: function(pendingEvents) {
- if (pendingEvents == null)
- return;
- this._pending = pendingEvents;
- if (!pendingEvents.get$isEmpty(pendingEvents)) {
- this._state = (this._state | 64) >>> 0;
- this._pending.schedule$1(this);
- }
- },
- onData$1: function(handleData) {
- $.Zone__current.toString;
- this._async$_onData = handleData;
- },
- onError$1: function(_, handleError) {
- this._onError = P._registerErrorHandler(handleError, $.Zone__current);
- },
- onDone$1: function(handleDone) {
- $.Zone__current.toString;
- this._onDone = handleDone;
- },
- pause$1: function(_, resumeSignal) {
- var t1 = this._state;
- if ((t1 & 8) !== 0)
- return;
- this._state = (t1 + 128 | 4) >>> 0;
- if (t1 < 128 && this._pending != null)
- this._pending.cancelSchedule$0();
- if ((t1 & 4) === 0 && (this._state & 32) === 0)
- this._guardCallback$1(this.get$_onPause());
- },
- pause$0: function($receiver) {
- return this.pause$1($receiver, null);
- },
- resume$0: function() {
- var t1 = this._state;
- if ((t1 & 8) !== 0)
- return;
- if (t1 >= 128) {
- this._state = t1 - 128;
- t1 = this._state;
- if (t1 < 128) {
- if ((t1 & 64) !== 0) {
- t1 = this._pending;
- t1 = !t1.get$isEmpty(t1);
- } else
- t1 = false;
- if (t1)
- this._pending.schedule$1(this);
- else {
- this._state = (this._state & 4294967291) >>> 0;
- if ((this._state & 32) === 0)
- this._guardCallback$1(this.get$_onResume());
- }
- }
- }
- },
- cancel$0: function() {
- this._state = (this._state & 4294967279) >>> 0;
- if ((this._state & 8) !== 0)
- return this._cancelFuture;
- this._cancel$0();
- return this._cancelFuture;
- },
- get$_mayResumeInput: function() {
- if (this._state < 128) {
- var t1 = this._pending;
- t1 = t1 == null || t1.get$isEmpty(t1);
- } else
- t1 = false;
- return t1;
- },
- _cancel$0: function() {
- this._state = (this._state | 8) >>> 0;
- if ((this._state & 64) !== 0)
- this._pending.cancelSchedule$0();
- if ((this._state & 32) === 0)
- this._pending = null;
- this._cancelFuture = this._onCancel$0();
- },
- _async$_add$1: function(data) {
- var t1 = this._state;
- if ((t1 & 8) !== 0)
- return;
- if (t1 < 32)
- this._sendData$1(data);
- else
- this._addPending$1(new P._DelayedData(data, null));
- },
- _addError$2: function(error, stackTrace) {
- var t1 = this._state;
- if ((t1 & 8) !== 0)
- return;
- if (t1 < 32)
- this._sendError$2(error, stackTrace);
- else
- this._addPending$1(new P._DelayedError(error, stackTrace, null));
- },
- _close$0: function() {
- var t1 = this._state;
- if ((t1 & 8) !== 0)
- return;
- this._state = (t1 | 2) >>> 0;
- if (this._state < 32)
- this._sendDone$0();
- else
- this._addPending$1(C.C__DelayedDone);
- },
- _onPause$0: function() {
- },
- get$_onPause: function() {
- return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._onPause$0, null, "_onPause$0");
- },
- _onResume$0: function() {
- },
- get$_onResume: function() {
- return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._onResume$0, null, "_onResume$0");
- },
- _onCancel$0: function() {
- },
- _addPending$1: function($event) {
- var pending, t1;
- pending = this._pending;
- if (pending == null) {
- pending = new P._StreamImplEvents(null, null, 0);
- this._pending = pending;
- }
- pending.add$1(pending, $event);
- t1 = this._state;
- if ((t1 & 64) === 0) {
- this._state = (t1 | 64) >>> 0;
- if (this._state < 128)
- this._pending.schedule$1(this);
- }
- },
- _sendData$1: function(data) {
- var t1 = this._state;
- this._state = (t1 | 32) >>> 0;
- this._zone.runUnaryGuarded$2(this._async$_onData, data);
- this._state = (this._state & 4294967263) >>> 0;
- this._checkState$1((t1 & 4) !== 0);
- },
- _sendError$2: function(error, stackTrace) {
- var t1, t2, t3;
- t1 = this._state;
- t2 = new P._BufferingStreamSubscription__sendError_sendError(this, error, stackTrace);
- if ((t1 & 1) !== 0) {
- this._state = (t1 | 16) >>> 0;
- this._cancel$0();
- t1 = this._cancelFuture;
- t3 = J.getInterceptor(t1);
- if (typeof t1 === "object" && t1 !== null && !!t3.$isFuture)
- t1.whenComplete$1(t2);
- else
- t2.call$0();
- } else {
- t2.call$0();
- this._checkState$1((t1 & 4) !== 0);
- }
- },
- _sendDone$0: function() {
- var t1, t2, t3;
- t1 = new P._BufferingStreamSubscription__sendDone_sendDone(this);
- this._cancel$0();
- this._state = (this._state | 16) >>> 0;
- t2 = this._cancelFuture;
- t3 = J.getInterceptor(t2);
- if (typeof t2 === "object" && t2 !== null && !!t3.$isFuture)
- t2.whenComplete$1(t1);
- else
- t1.call$0();
- },
- _guardCallback$1: function(callback) {
- var t1 = this._state;
- this._state = (t1 | 32) >>> 0;
- callback.call$0();
- this._state = (this._state & 4294967263) >>> 0;
- this._checkState$1((t1 & 4) !== 0);
- },
- _checkState$1: function(wasInputPaused) {
- var t1, isInputPaused;
- if ((this._state & 64) !== 0) {
- t1 = this._pending;
- t1 = t1.get$isEmpty(t1);
- } else
- t1 = false;
- if (t1) {
- this._state = (this._state & 4294967231) >>> 0;
- if ((this._state & 4) !== 0 && this.get$_mayResumeInput())
- this._state = (this._state & 4294967291) >>> 0;
- }
- for (; true; wasInputPaused = isInputPaused) {
- t1 = this._state;
- if ((t1 & 8) !== 0) {
- this._pending = null;
- return;
- }
- isInputPaused = (t1 & 4) !== 0;
- if (wasInputPaused === isInputPaused)
- break;
- this._state = (t1 ^ 32) >>> 0;
- if (isInputPaused)
- this._onPause$0();
- else
- this._onResume$0();
- this._state = (this._state & 4294967263) >>> 0;
- }
- t1 = this._state;
- if ((t1 & 64) !== 0 && t1 < 128)
- this._pending.schedule$1(this);
- },
- static: {
-"": "_BufferingStreamSubscription__STATE_CANCEL_ON_ERROR,_BufferingStreamSubscription__STATE_CLOSED,_BufferingStreamSubscription__STATE_INPUT_PAUSED,_BufferingStreamSubscription__STATE_CANCELED,_BufferingStreamSubscription__STATE_WAIT_FOR_CANCEL,_BufferingStreamSubscription__STATE_IN_CALLBACK,_BufferingStreamSubscription__STATE_HAS_PENDING,_BufferingStreamSubscription__STATE_PAUSE_COUNT,_BufferingStreamSubscription__STATE_PAUSE_COUNT_SHIFT",
-}
-
-},
-
-_BufferingStreamSubscription__sendError_sendError: {"": "Closure;this_0,error_1,stackTrace_2",
- call$0: function() {
- var t1, t2, t3, t4, t5;
- t1 = this.this_0;
- t2 = t1._state;
- if ((t2 & 8) !== 0 && (t2 & 16) === 0)
- return;
- t1._state = (t2 | 32) >>> 0;
- t2 = t1._zone;
- t3 = $.Zone__current;
- t2.toString;
- t3.toString;
- if (t3 == null ? t2 != null : t3 !== t2)
- P._rootHandleUncaughtError(t3, null, t3, this.error_1, this.stackTrace_2);
- else {
- t3 = t1._onError;
- t4 = J.getInterceptor(t3);
- t5 = this.error_1;
- if (!!t4.$is_args2)
- t2.runBinaryGuarded$3(t3, t5, this.stackTrace_2);
- else
- t2.runUnaryGuarded$2(t3, t5);
- }
- t1._state = (t1._state & 4294967263) >>> 0;
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_BufferingStreamSubscription__sendDone_sendDone: {"": "Closure;this_0",
- call$0: function() {
- var t1, t2;
- t1 = this.this_0;
- t2 = t1._state;
- if ((t2 & 16) === 0)
- return;
- t1._state = (t2 | 42) >>> 0;
- t1._zone.runGuarded$1(t1._onDone);
- t1._state = (t1._state & 4294967263) >>> 0;
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_StreamImpl: {"": "Stream;",
- listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
- var subscription = this._createSubscription$1(true === cancelOnError);
- subscription.onData$1(onData);
- subscription.onError$1(subscription, onError);
- subscription.onDone$1(onDone);
- return subscription;
- },
- listen$3$onDone$onError: function(onData, onDone, onError) {
- return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
- },
- _createSubscription$1: function(cancelOnError) {
- var t1, t2;
- t1 = $.Zone__current;
- t2 = cancelOnError ? 1 : 0;
- return new P._BufferingStreamSubscription(null, null, null, t1, t2, null, null);
- },
- $asStream: null
-},
-
-_DelayedEvent: {"": "Object;next@"},
-
-_DelayedData: {"": "_DelayedEvent;value,next",
- perform$1: function(dispatch) {
- dispatch._sendData$1(this.value);
- }
-},
-
-_DelayedError: {"": "_DelayedEvent;error>,stackTrace<,next",
- perform$1: function(dispatch) {
- dispatch._sendError$2(this.error, this.stackTrace);
- }
-},
-
-_DelayedDone: {"": "Object;",
- perform$1: function(dispatch) {
- dispatch._sendDone$0();
- },
- get$next: function() {
- return;
- },
- set$next: function(_) {
- throw H.wrapException(P.StateError$("No events after a done."));
- }
-},
-
-_PendingEvents: {"": "Object;",
- schedule$1: function(dispatch) {
- var t1 = this._state;
- if (t1 === 1)
- return;
- if (t1 >= 1) {
- this._state = 1;
- return;
- }
- P.scheduleMicrotask(new P._PendingEvents_schedule_closure(this, dispatch));
- this._state = 1;
- },
- cancelSchedule$0: function() {
- if (this._state === 1)
- this._state = 3;
- }
-},
-
-_PendingEvents_schedule_closure: {"": "Closure;this_0,dispatch_1",
- call$0: function() {
- var t1, oldState;
- t1 = this.this_0;
- oldState = t1._state;
- t1._state = 0;
- if (oldState === 3)
- return;
- t1.handleNext$1(this.dispatch_1);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_StreamImplEvents: {"": "_PendingEvents;firstPendingEvent,lastPendingEvent,_state",
- get$isEmpty: function(_) {
- return this.lastPendingEvent == null;
- },
- add$1: function(_, $event) {
- var t1 = this.lastPendingEvent;
- if (t1 == null) {
- this.lastPendingEvent = $event;
- this.firstPendingEvent = $event;
- } else {
- t1.set$next($event);
- this.lastPendingEvent = $event;
- }
- },
- handleNext$1: function(dispatch) {
- var $event = this.firstPendingEvent;
- this.firstPendingEvent = $event.get$next();
- if (this.firstPendingEvent == null)
- this.lastPendingEvent = null;
- $event.perform$1(dispatch);
- }
-},
-
-_cancelAndError_closure: {"": "Closure;future_0,error_1,stackTrace_2",
- call$0: function() {
- return this.future_0._completeError$2(this.error_1, this.stackTrace_2);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_cancelAndErrorClosure_closure: {"": "Closure;subscription_0,future_1",
- call$2: function(error, stackTrace) {
- return P._cancelAndError(this.subscription_0, this.future_1, error, stackTrace);
- },
- "+call:2:0": 0,
- $isFunction: true,
- $is_args2: true
-},
-
-_ForwardingStream: {"": "Stream;",
- listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
- var result = P._ForwardingStreamSubscription$(this, true === cancelOnError, H.getRuntimeTypeArgument(this, "_ForwardingStream", 0), H.getRuntimeTypeArgument(this, "_ForwardingStream", 1));
- result.onData$1(onData);
- result.onError$1(result, onError);
- result.onDone$1(onDone);
- return result;
- },
- listen$3$onDone$onError: function(onData, onDone, onError) {
- return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
- },
- _handleData$2: function(data, sink) {
- sink._async$_add$1(data);
- },
- $asStream: function($S, $T) {
- return [$T];
- }
-},
-
-_ForwardingStreamSubscription: {"": "_BufferingStreamSubscription;_stream,_subscription,_async$_onData,_onError,_onDone,_zone,_state,_cancelFuture,_pending",
- _async$_add$1: function(data) {
- if ((this._state & 2) !== 0)
- return;
- P._BufferingStreamSubscription.prototype._async$_add$1.call(this, data);
- },
- _addError$2: function(error, stackTrace) {
- if ((this._state & 2) !== 0)
- return;
- P._BufferingStreamSubscription.prototype._addError$2.call(this, error, stackTrace);
- },
- _onPause$0: function() {
- var t1 = this._subscription;
- if (t1 == null)
- return;
- t1.pause$0(t1);
- },
- get$_onPause: function() {
- return new P.BoundClosure$0(this, P._ForwardingStreamSubscription.prototype._onPause$0, null, "_onPause$0");
- },
- _onResume$0: function() {
- var t1 = this._subscription;
- if (t1 == null)
- return;
- t1.resume$0();
- },
- get$_onResume: function() {
- return new P.BoundClosure$0(this, P._ForwardingStreamSubscription.prototype._onResume$0, null, "_onResume$0");
- },
- _onCancel$0: function() {
- var t1 = this._subscription;
- if (t1 != null) {
- this._subscription = null;
- t1.cancel$0();
- }
- return;
- },
- _handleData$1: function(data) {
- this._stream._handleData$2(data, this);
- },
- get$_handleData: function() {
- return new H.BoundClosure$1(this, P._ForwardingStreamSubscription.prototype._handleData$1, null, "_handleData$1");
- },
- _handleError$2: function(error, stackTrace) {
- this._addError$2(error, stackTrace);
- },
- get$_handleError: function() {
- return new P.BoundClosure$20(this, P._ForwardingStreamSubscription.prototype._handleError$2, null, "_handleError$2");
- },
- _handleDone$0: function() {
- this._close$0();
- },
- get$_handleDone: function() {
- return new P.BoundClosure$0(this, P._ForwardingStreamSubscription.prototype._handleDone$0, null, "_handleDone$0");
- },
- _ForwardingStreamSubscription$2: function(_stream, cancelOnError, $S, $T) {
- var t1, t2;
- t1 = this.get$_handleData();
- t2 = this.get$_handleError();
- this._subscription = this._stream._source.listen$3$onDone$onError(t1, this.get$_handleDone(), t2);
- },
- $as_BufferingStreamSubscription: function($S, $T) {
- return [$T];
- },
- static: {
-_ForwardingStreamSubscription$: function(_stream, cancelOnError, $S, $T) {
- var t1, t2;
- t1 = $.Zone__current;
- t2 = cancelOnError ? 1 : 0;
- t2 = new P._ForwardingStreamSubscription(_stream, null, null, null, null, t1, t2, null, null);
- H.setRuntimeTypeInfo(t2, [$S, $T]);
- t2._ForwardingStreamSubscription$2(_stream, cancelOnError, $S, $T);
- return t2;
-}}
-
-},
-
-_MapStream: {"": "_ForwardingStream;_transform,_source",
- _transform$1: function(arg0) {
- return this._transform.call$1(arg0);
- },
- _handleData$2: function(inputEvent, sink) {
- var outputEvent, e, s, exception, t1;
- outputEvent = null;
- try {
- outputEvent = this._transform$1(inputEvent);
- } catch (exception) {
- t1 = H.unwrapException(exception);
- e = t1;
- s = new H._StackTrace(exception, null);
- sink._addError$2(e, s);
- return;
- }
-
- sink._async$_add$1(outputEvent);
- },
- $as_ForwardingStream: null
-},
-
-_BaseZone: {"": "Object;",
- runGuarded$1: function(f) {
- var e, s, t1, exception;
- try {
- t1 = this.run$1(f);
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- e = t1;
- s = new H._StackTrace(exception, null);
- return this.handleUncaughtError$2(e, s);
- }
-
- },
- runUnaryGuarded$2: function(f, arg) {
- var e, s, t1, exception;
- try {
- t1 = this.runUnary$2(f, arg);
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- e = t1;
- s = new H._StackTrace(exception, null);
- return this.handleUncaughtError$2(e, s);
- }
-
- },
- runBinaryGuarded$3: function(f, arg1, arg2) {
- var e, s, t1, exception;
- try {
- t1 = this.runBinary$3(f, arg1, arg2);
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- e = t1;
- s = new H._StackTrace(exception, null);
- return this.handleUncaughtError$2(e, s);
- }
-
- },
- bindCallback$2$runGuarded: function(f, runGuarded) {
- var registered = this.registerCallback$1(f);
- if (runGuarded)
- return new P._BaseZone_bindCallback_closure(this, registered);
- else
- return new P._BaseZone_bindCallback_closure0(this, registered);
- },
- bindUnaryCallback$2$runGuarded: function(f, runGuarded) {
- var registered = this.registerUnaryCallback$1(f);
- if (runGuarded)
- return new P._BaseZone_bindUnaryCallback_closure(this, registered);
- else
- return new P._BaseZone_bindUnaryCallback_closure0(this, registered);
- }
-},
-
-_BaseZone_bindCallback_closure: {"": "Closure;this_0,registered_1",
- call$0: function() {
- return this.this_0.runGuarded$1(this.registered_1);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_BaseZone_bindCallback_closure0: {"": "Closure;this_2,registered_3",
- call$0: function() {
- return this.this_2.run$1(this.registered_3);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_BaseZone_bindUnaryCallback_closure: {"": "Closure;this_0,registered_1",
- call$1: function(arg) {
- return this.this_0.runUnaryGuarded$2(this.registered_1, arg);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-_BaseZone_bindUnaryCallback_closure0: {"": "Closure;this_2,registered_3",
- call$1: function(arg) {
- return this.this_2.runUnary$2(this.registered_3, arg);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-_rootHandleUncaughtError_closure: {"": "Closure;error_0,stackTrace_1",
- call$0: function() {
- P._scheduleAsyncCallback(new P._rootHandleUncaughtError__closure(this.error_0, this.stackTrace_1));
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_rootHandleUncaughtError__closure: {"": "Closure;error_2,stackTrace_3",
- call$0: function() {
- var t1, trace, t2;
- t1 = this.error_2;
- P.print("Uncaught Error: " + H.S(t1));
- trace = this.stackTrace_3;
- if (trace == null) {
- t2 = J.getInterceptor(t1);
- t2 = typeof t1 === "object" && t1 !== null && !!t2.$isError;
- } else
- t2 = false;
- if (t2)
- trace = t1.get$stackTrace();
- if (trace != null)
- P.print("Stack Trace: \n" + H.S(trace) + "\n");
- throw H.wrapException(t1);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-_RootZone: {"": "_BaseZone;",
- $index: function(_, key) {
- return;
- },
- handleUncaughtError$2: function(error, stackTrace) {
- return P._rootHandleUncaughtError(this, null, this, error, stackTrace);
- },
- run$1: function(f) {
- return P._rootRun(this, null, this, f);
- },
- runUnary$2: function(f, arg) {
- return P._rootRunUnary(this, null, this, f, arg);
- },
- runBinary$3: function(f, arg1, arg2) {
- return P._rootRunBinary(this, null, this, f, arg1, arg2);
- },
- registerCallback$1: function(f) {
- return f;
- },
- registerUnaryCallback$1: function(f) {
- return f;
- }
-}}],
-["dart.collection", "dart:collection", , P, {
-_defaultEquals: function(a, b) {
- return J.$eq(a, b);
-},
-
-_defaultHashCode: function(a) {
- return J.get$hashCode$(a);
-},
-
-HashMap_HashMap: function(equals, hashCode, isValidKey, $K, $V) {
- var t1 = new P._HashMap(0, null, null, null, null);
- H.setRuntimeTypeInfo(t1, [$K, $V]);
- return t1;
-},
-
-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;_collection$_length,_strings,_nums,_rest,_keys",
- 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;
- },
- get$values: function(_) {
- var t1 = new P.HashMapKeyIterable(this);
- H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]);
- return H.MappedIterable_MappedIterable(t1, new P._HashMap_values_closure(this), H.getRuntimeTypeArgument(t1, "IterableBase", 0), null);
- },
- 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,
- static: {
-_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;
-}}
-
-},
-
-_HashMap_values_closure: {"": "Closure;this_0",
- call$1: function(each) {
- var t1 = this.this_0;
- return t1.$index(t1, each);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: 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;
- },
- get$values: function(_) {
- var t1 = new P.LinkedHashMapKeyIterable(this);
- H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0)]);
- return H.MappedIterable_MappedIterable(t1, new P._LinkedHashMap_values_closure(this), H.getRuntimeTypeArgument(t1, "IterableBase", 0), null);
- },
- containsKey$1: function(key) {
- var nums, rest;
- if ((key & 0x3ffffff) === key) {
- nums = this._nums;
- if (nums == null)
- return false;
- return 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, 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$_collection$_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$_collection$_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$_collection$_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$_collection$_value(value);
- else
- bucket.push(this._newLinkedCell$2(key, value));
- }
- }
- },
- remove$1: function(_, key) {
- var rest, bucket, index, cell;
- if (typeof key === "string" && key !== "__proto__")
- return this._removeHashTableEntry$2(this._strings, key);
- else if (typeof key === "number" && (key & 0x3ffffff) === key)
- return this._removeHashTableEntry$2(this._nums, key);
- else {
- rest = this._rest;
- if (rest == null)
- return;
- bucket = rest[this._computeHashCode$1(key)];
- index = this._findBucketIndex$2(bucket, key);
- if (index < 0)
- return;
- cell = bucket.splice(index, 1)[0];
- this._unlinkCell$1(cell);
- return cell.get$_collection$_value();
- }
- },
- forEach$1: function(_, action) {
- var cell, modifications;
- cell = this._first;
- modifications = this._modifications;
- for (; cell != null;) {
- action.call$2(cell._key, cell._collection$_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$_collection$_value(value);
- },
- _removeHashTableEntry$2: function(table, key) {
- var cell;
- if (table == null)
- return;
- cell = table[key];
- if (cell == null)
- return;
- this._unlinkCell$1(cell);
- delete table[key];
- return cell.get$_collection$_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;
- },
- _unlinkCell$1: function(cell) {
- var previous, next;
- previous = cell.get$_previous();
- next = cell.get$_next();
- if (previous == null)
- this._first = next;
- else
- previous._next = next;
- if (next == null)
- this._last = previous;
- else
- next._previous = previous;
- this._collection$_length = this._collection$_length - 1;
- this._modifications = this._modifications + 1 & 67108863;
- },
- _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;
-}}
-
-},
-
-_LinkedHashMap_values_closure: {"": "Closure;this_0",
- call$1: function(each) {
- var t1 = this.this_0;
- return t1.$index(t1, each);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-LinkedHashMapCell: {"": "Object;_key<,_collection$_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 strings, nums, rest;
- if (typeof object === "string" && object !== "__proto__") {
- strings = this._strings;
- return strings == null ? false : strings[object] != null;
- } else if (typeof object === "number" && (object & 0x3ffffff) === object) {
- nums = this._nums;
- return nums == null ? false : nums[object] != null;
- } else {
- rest = this._rest;
- if (rest == null)
- return false;
- return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0;
- }
- },
- lookup$1: function(object) {
- var t1, rest, bucket, index;
- if (!(typeof object === "string" && object !== "__proto__"))
- t1 = typeof object === "number" && (object & 0x3ffffff) === object;
- else
- t1 = true;
- if (t1)
- return this.contains$1(this, object) ? object : null;
- rest = this._rest;
- if (rest == null)
- return;
- bucket = rest[this._computeHashCode$1(object)];
- index = this._findBucketIndex$2(bucket, object);
- if (index < 0)
- return;
- return J.$index$asx(bucket, index);
- },
- 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, t1;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; ++i) {
- t1 = bucket[i];
- if (t1 == null ? element == null : t1 === 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, t2;
- 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();
- t2 = J.getInterceptor(remaining);
- if (t2.$eq(remaining, 0))
- return element;
- remaining = t2.$sub(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();
- },
- $isList: true,
- $asList: null,
- $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,
- $is_args2: true
-},
-
-ListQueue: {"": "IterableBase;_table,_head,_tail,_modificationCount",
- get$iterator: function(_) {
- return P._ListQueueIterator$(this);
- },
- forEach$1: function(_, action) {
- var modificationCount, i, t1;
- modificationCount = this._modificationCount;
- for (i = this._head; i !== this._tail; i = (i + 1 & this._table.length - 1) >>> 0) {
- t1 = this._table;
- if (i < 0 || i >= t1.length)
- throw H.ioore(t1, i);
- action.call$1(t1[i]);
- if (modificationCount !== this._modificationCount)
- H.throwExpression(P.ConcurrentModificationError$(this));
- }
- },
- get$length: function(_) {
- return (this._tail - this._head & this._table.length - 1) >>> 0;
- },
- toString$0: function(_) {
- return H.IterableMixinWorkaround_toStringIterable(this, "{", "}");
- },
- removeFirst$0: function() {
- var t1, t2, t3, result;
- if (this._head === this._tail)
- throw H.wrapException(P.StateError$("No elements"));
- this._modificationCount = this._modificationCount + 1;
- t1 = this._table;
- t2 = this._head;
- t3 = t1.length;
- if (t2 < 0 || t2 >= t3)
- throw H.ioore(t1, t2);
- result = t1[t2];
- this._head = (t2 + 1 & t3 - 1) >>> 0;
- return result;
- },
- _add$1: function(element) {
- var t1, t2, t3;
- t1 = this._table;
- t2 = this._tail;
- t3 = t1.length;
- if (t2 < 0 || t2 >= t3)
- throw H.ioore(t1, t2);
- t1[t2] = element;
- this._tail = (t2 + 1 & t3 - 1) >>> 0;
- if (this._head === this._tail)
- this._grow$0();
- this._modificationCount = this._modificationCount + 1;
- },
- _grow$0: function() {
- var newTable, t1, t2, split;
- newTable = P.List_List(this._table.length * 2, H.getRuntimeTypeArgument(this, "ListQueue", 0));
- H.setRuntimeTypeInfo(newTable, [H.getRuntimeTypeArgument(this, "ListQueue", 0)]);
- t1 = this._table;
- t2 = this._head;
- split = t1.length - t2;
- H.IterableMixinWorkaround_setRangeList(newTable, 0, split, t1, t2);
- t1 = this._head;
- t2 = this._table;
- H.IterableMixinWorkaround_setRangeList(newTable, split, split + t1, t2, 0);
- this._head = 0;
- this._tail = this._table.length;
- this._table = newTable;
- },
- ListQueue$1: function(initialCapacity, $E) {
- var t1 = P.List_List(8, $E);
- H.setRuntimeTypeInfo(t1, [$E]);
- this._table = t1;
- },
- $asIterableBase: null,
- $asIterable: null,
- $isEfficientLength: true,
- $isIterable: true,
- static: {
-"": "ListQueue__INITIAL_CAPACITY",
-ListQueue$: function(initialCapacity, $E) {
- var t1 = new P.ListQueue(null, 0, 0, 0);
- H.setRuntimeTypeInfo(t1, [$E]);
- t1.ListQueue$1(initialCapacity, $E);
- return t1;
-}}
-
-},
-
-_ListQueueIterator: {"": "Object;_queue,_end,_modificationCount,_position,_collection$_current",
- get$current: function() {
- return this._collection$_current;
- },
- moveNext$0: function() {
- var t1, t2, t3;
- t1 = this._queue;
- if (this._modificationCount !== t1._modificationCount)
- H.throwExpression(P.ConcurrentModificationError$(t1));
- t2 = this._position;
- if (t2 === this._end) {
- this._collection$_current = null;
- return false;
- }
- t3 = t1._table;
- if (t2 < 0 || t2 >= t3.length)
- throw H.ioore(t3, t2);
- this._collection$_current = t3[t2];
- this._position = (this._position + 1 & t1._table.length - 1) >>> 0;
- return true;
- },
- static: {
-_ListQueueIterator$: function(queue) {
- return new P._ListQueueIterator(queue, queue._tail, queue._modificationCount, queue._head, null);
-}}
-
-}}],
-["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;
-},
-
-print: function(object) {
- var line = J.toString$0(object);
- H.printToConsole(line);
-},
-
-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,
- $is_args2: 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,
- $is_args2: 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,
- $is_args1: 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,
- $is_args1: 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,
- $is_args1: true
-},
-
-Duration: {"": "Object;_duration<",
- $sub: function(_, other) {
- return P.Duration$(0, 0, C.JSNumber_methods.$sub(this._duration, other.get$_duration()), 0, 0, 0);
- },
- $lt: function(_, other) {
- return C.JSNumber_methods.$lt(this._duration, other.get$_duration());
- },
- $gt: function(_, other) {
- return this._duration > other.get$_duration();
- },
- $ge: function(_, other) {
- return this._duration >= other.get$_duration();
- },
- $eq: function(_, other) {
- var t1;
- if (other == null)
- return false;
- t1 = J.getInterceptor(other);
- if (typeof other !== "object" || other === null || !t1.$isDuration)
- return false;
- return this._duration === other._duration;
- },
- get$hashCode: function(_) {
- return this._duration & 0x1FFFFFFF;
- },
- toString$0: function(_) {
- var t1, t2, twoDigitMinutes, twoDigitSeconds, sixDigitUs;
- t1 = new P.Duration_toString_twoDigits();
- t2 = this._duration;
- if (t2 < 0)
- return "-" + H.S(P.Duration$(0, 0, -t2, 0, 0, 0));
- twoDigitMinutes = t1.call$1(C.JSNumber_methods.remainder$1(C.JSNumber_methods.$tdiv(t2, 60000000), 60));
- twoDigitSeconds = t1.call$1(C.JSNumber_methods.remainder$1(C.JSNumber_methods.$tdiv(t2, 1000000), 60));
- sixDigitUs = new P.Duration_toString_sixDigits().call$1(C.JSNumber_methods.remainder$1(t2, 1000000));
- return H.S(C.JSNumber_methods.$tdiv(t2, 3600000000)) + ":" + H.S(twoDigitMinutes) + ":" + H.S(twoDigitSeconds) + "." + H.S(sixDigitUs);
- },
- $isDuration: true,
- static: {
-"": "Duration_MICROSECONDS_PER_MILLISECOND,Duration_MILLISECONDS_PER_SECOND,Duration_SECONDS_PER_MINUTE,Duration_MINUTES_PER_HOUR,Duration_HOURS_PER_DAY,Duration_MICROSECONDS_PER_SECOND,Duration_MICROSECONDS_PER_MINUTE,Duration_MICROSECONDS_PER_HOUR,Duration_MICROSECONDS_PER_DAY,Duration_MILLISECONDS_PER_MINUTE,Duration_MILLISECONDS_PER_HOUR,Duration_MILLISECONDS_PER_DAY,Duration_SECONDS_PER_HOUR,Duration_SECONDS_PER_DAY,Duration_MINUTES_PER_DAY,Duration_ZERO",
-Duration$: function(days, hours, microseconds, milliseconds, minutes, seconds) {
- return new P.Duration(days * 86400000000 + hours * 3600000000 + minutes * 60000000 + seconds * 1000000 + milliseconds * 1000 + microseconds);
-}}
-
-},
-
-Duration_toString_sixDigits: {"": "Closure;",
- call$1: function(n) {
- var t1 = J.getInterceptor$n(n);
- if (t1.$ge(n, 100000))
- return H.S(n);
- if (t1.$ge(n, 10000))
- return "0" + H.S(n);
- if (t1.$ge(n, 1000))
- return "00" + H.S(n);
- if (t1.$ge(n, 100))
- return "000" + H.S(n);
- if (t1.$gt(n, 10))
- return "0000" + H.S(n);
- return "00000" + H.S(n);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-Duration_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,
- $is_args1: true
-},
-
-Error: {"": "Object;",
- get$stackTrace: function() {
- return new H._StackTrace(this.$thrownJsError, null);
- },
- $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)";
- },
- static: {
-ArgumentError$: function(message) {
- return new P.ArgumentError(message);
-}}
-
-},
-
-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);
-}}
-
-},
-
-StateError: {"": "Error;message",
- toString$0: function(_) {
- return "Bad state: " + this.message;
- },
- static: {
-StateError$: function(message) {
- return new P.StateError(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";
- },
- get$stackTrace: function() {
- return;
- },
- $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(_) {
- var t1 = this.message;
- if (t1 == null)
- return "Exception";
- return "Exception: " + H.S(t1);
- }
-},
-
-FormatException: {"": "Object;message",
- toString$0: function(_) {
- return "FormatException: " + H.S(this.message);
- },
- static: {
-FormatException$: function(message) {
- return new P.FormatException(message);
-}}
-
-},
-
-Expando: {"": "Object;name",
- toString$0: function(_) {
- return "Expando:" + H.S(this.name);
- },
- $index: function(_, object) {
- var values = H.Primitives_getProperty(object, "expando$values");
- return values == null ? null : H.Primitives_getProperty(values, this._getKey$0());
- },
- $indexSet: function(_, object, value) {
- var values = H.Primitives_getProperty(object, "expando$values");
- if (values == null) {
- values = new P.Object();
- H.Primitives_setProperty(object, "expando$values", values);
- }
- H.Primitives_setProperty(values, this._getKey$0(), value);
- },
- _getKey$0: function() {
- var key, t1;
- key = H.Primitives_getProperty(this, "expando$key");
- if (key == null) {
- t1 = $.Expando__keyCount;
- $.Expando__keyCount = t1 + 1;
- key = "expando$key$" + t1;
- H.Primitives_setProperty(this, "expando$key", key);
- }
- return key;
- },
- static: {
-"": "Expando__KEY_PROPERTY_NAME,Expando__EXPANDO_PROPERTY_NAME,Expando__keyCount",
-}
-
-},
-
-Function: {"": "Object;", $isFunction: true},
-
-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));
- }
-},
-
-StackTrace: {"": "Object;"},
-
-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, {
-_wrapZone: function(callback) {
- var t1 = $.Zone__current;
- if (t1 === C.C__RootZone)
- return callback;
- return t1.bindUnaryCallback$2$runGuarded(callback, true);
-},
-
-HtmlElement: {"": "Element;", "%": "HTMLAppletElement|HTMLAreaElement|HTMLBRElement|HTMLBaseElement|HTMLBaseFontElement|HTMLBodyElement|HTMLCanvasElement|HTMLContentElement|HTMLDListElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirectoryElement|HTMLDivElement|HTMLEmbedElement|HTMLFieldSetElement|HTMLFontElement|HTMLFrameElement|HTMLFrameSetElement|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLKeygenElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMenuElement|HTMLMetaElement|HTMLModElement|HTMLOListElement|HTMLObjectElement|HTMLOptGroupElement|HTMLParagraphElement|HTMLPreElement|HTMLQuoteElement|HTMLScriptElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemplateElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknownElement;HTMLElement"},
-
-AnchorElement: {"": "HtmlElement;",
- toString$0: function(receiver) {
- return receiver.toString();
- },
- "%": "HTMLAnchorElement"
-},
-
-Blob: {"": "Interceptor;", $isBlob: true, "%": "Blob|File"},
-
-ButtonElement: {"": "HtmlElement;value=", "%": "HTMLButtonElement"},
-
-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"
-},
-
-ErrorEvent: {"": "Event;error=", "%": "ErrorEvent"},
-
-Event: {"": "Interceptor;", $isEvent: true, "%": "AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEvent|BeforeUnloadEvent|CSSFontFaceLoadEvent|CloseEvent|CompositionEvent|CustomEvent|DeviceMotionEvent|DeviceOrientationEvent|DragEvent|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|SpeechRecognitionEvent|SpeechSynthesisEvent|StorageEvent|TextEvent|TouchEvent|TrackEvent|TransitionEvent|UIEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransitionEvent|WheelEvent|XMLHttpRequestProgressEvent;Event"},
-
-EventTarget: {"": "Interceptor;",
- addEventListener$3: function(receiver, type, listener, useCapture) {
- return receiver.addEventListener(type, H.convertDartClosureToJS(listener, 1), useCapture);
- },
- removeEventListener$3: function(receiver, type, listener, useCapture) {
- return receiver.removeEventListener(type, H.convertDartClosureToJS(listener, 1), useCapture);
- },
- "%": "MediaStream;EventTarget"
-},
-
-FormElement: {"": "HtmlElement;length=", "%": "HTMLFormElement"},
-
-ImageData: {"": "Interceptor;", $isImageData: true, "%": "ImageData"},
-
-InputElement: {"": "HtmlElement;value=", $isNode: true, "%": "HTMLInputElement"},
-
-LIElement: {"": "HtmlElement;value=", "%": "HTMLLIElement"},
-
-MediaElement: {"": "HtmlElement;error=", "%": "HTMLAudioElement|HTMLMediaElement|HTMLVideoElement"},
-
-MeterElement: {"": "HtmlElement;value=", "%": "HTMLMeterElement"},
-
-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"
-},
-
-OptionElement: {"": "HtmlElement;value=", "%": "HTMLOptionElement"},
-
-OutputElement: {"": "HtmlElement;value=", "%": "HTMLOutputElement"},
-
-ParamElement: {"": "HtmlElement;value=", "%": "HTMLParamElement"},
-
-ProgressElement: {"": "HtmlElement;value=", "%": "HTMLProgressElement"},
-
-SelectElement: {"": "HtmlElement;length=,value=", "%": "HTMLSelectElement"},
-
-SpeechRecognitionError: {"": "Event;error=", "%": "SpeechRecognitionError"},
-
-TextAreaElement: {"": "HtmlElement;value=", "%": "HTMLTextAreaElement"},
-
-Window: {"": "EventTarget;",
- toString$0: function(receiver) {
- return receiver.toString();
- },
- $isWindow: true,
- "%": "DOMWindow|Window"
-},
-
-EventStreamProvider: {"": "Object;_eventType"},
-
-_EventStream: {"": "Stream;",
- listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
- var t1 = new W._EventStreamSubscription(0, this._target, this._eventType, W._wrapZone(onData), this._useCapture);
- H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_EventStream", 0)]);
- t1._tryResume$0();
- return t1;
- },
- listen$3$onDone$onError: function(onData, onDone, onError) {
- return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
- },
- $asStream: null
-},
-
-_ElementEventStreamImpl: {"": "_EventStream;_target,_eventType,_useCapture", $as_EventStream: null},
-
-_EventStreamSubscription: {"": "StreamSubscription;_pauseCount,_target,_eventType,_onData,_useCapture",
- cancel$0: function() {
- if (this._target == null)
- return;
- this._unlisten$0();
- this._target = null;
- this._onData = null;
- },
- pause$1: function(_, resumeSignal) {
- if (this._target == null)
- return;
- this._pauseCount = this._pauseCount + 1;
- this._unlisten$0();
- },
- pause$0: function($receiver) {
- return this.pause$1($receiver, null);
- },
- resume$0: function() {
- if (this._target == null || this._pauseCount <= 0)
- return;
- this._pauseCount = this._pauseCount - 1;
- this._tryResume$0();
- },
- _tryResume$0: function() {
- var t1 = this._onData;
- if (t1 != null && this._pauseCount <= 0)
- J.addEventListener$3$x(this._target, this._eventType, t1, this._useCapture);
- },
- _unlisten$0: function() {
- var t1 = this._onData;
- if (t1 != null)
- J.removeEventListener$3$x(this._target, this._eventType, t1, this._useCapture);
- },
- $asStreamSubscription: null
-}}],
-["dart.dom.indexed_db", "dart:indexed_db", , P, {
-KeyRange: {"": "Interceptor;", $isKeyRange: true, "%": "IDBKeyRange"}}],
-["dart.isolate", "dart:isolate", , P, {
-ReceivePort: {"": "Object;"}}],
-["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]);
- },
- $indexSet: function(_, property, value) {
- if (typeof property !== "string" && typeof property !== "number")
- throw H.wrapException(new P.ArgumentError("property is not a String or num"));
- this._jsObject[property] = P._convertToJS(value);
- },
- 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);
- }
-
- },
- callMethod$2: function(method, args) {
- var t1, t2;
- t1 = this._jsObject;
- if (args == null)
- t2 = null;
- else {
- args.toString;
- t2 = new H.MappedListIterable(args, P._convertToJS$closure);
- H.setRuntimeTypeInfo(t2, [null, null]);
- t2 = P.List_List$from(t2, true, null);
- }
- return P._convertToDart(t1[method].apply(t1, t2));
- },
- $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) {
- var t1 = J.getInterceptor(object);
- if (!t1.$isMap && (typeof object !== "object" || object === null || object.constructor !== Array && !t1.$isIterable))
- throw H.wrapException(new P.ArgumentError("object must be a Map or Iterable"));
- 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,
- $is_args1: true
-},
-
-JsFunction: {"": "JsObject;_jsObject", static: {
-JsFunction_JsFunction$withThis: function(f) {
- return new P.JsFunction(P._convertDartFunction(f, true));
-}}
-},
-
-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);
- },
- $indexSet: function(_, index, value) {
- 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")));
- }
- P.JsObject.prototype.$indexSet.call(this, this, index, value);
- },
- get$length: function(_) {
- return P.JsObject.prototype.$index.call(this, this, "length");
- },
- $asList: null,
- $asIterable: null
-},
-
-JsObject_ListMixin: {"": "JsObject+ListMixin;", $isList: true, $asList: null, $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,
- $is_args1: true
-},
-
-_convertToJS_closure0: {"": "Closure;",
- call$1: function(o) {
- return new DartObject(o);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-_wrapToDart_closure: {"": "Closure;",
- call$1: function(o) {
- return new P.JsFunction(o);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: 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,
- $is_args1: true
-},
-
-_wrapToDart_closure1: {"": "Closure;",
- call$1: function(o) {
- return new P.JsObject(o);
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: 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];
- },
- $indexSet: function(receiver, index, value) {
- var t1 = C.JS_CONST_ZYJ(receiver);
- if (index >>> 0 != index || J.$ge$n(index, t1))
- this._invalidIndex$2(receiver, index, t1);
- receiver[index] = value;
- },
- $asList: function() {
- return [J.JSDouble];
- },
- $asIterable: function() {
- return [J.JSDouble];
- },
- $isList: true,
- $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];
- },
- $indexSet: function(receiver, index, value) {
- var t1 = C.JS_CONST_ZYJ(receiver);
- if (index >>> 0 != index || J.$ge$n(index, t1))
- this._invalidIndex$2(receiver, index, t1);
- receiver[index] = value;
- },
- $asList: function() {
- return [J.JSDouble];
- },
- $asIterable: function() {
- return [J.JSDouble];
- },
- $isList: true,
- $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];
- },
- $indexSet: function(receiver, index, value) {
- var t1 = C.JS_CONST_ZYJ(receiver);
- if (index >>> 0 != index || J.$ge$n(index, t1))
- this._invalidIndex$2(receiver, index, t1);
- receiver[index] = value;
- },
- $asList: function() {
- return [J.JSInt];
- },
- $asIterable: function() {
- return [J.JSInt];
- },
- $isList: true,
- $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];
- },
- $indexSet: function(receiver, index, value) {
- var t1 = C.JS_CONST_ZYJ(receiver);
- if (index >>> 0 != index || J.$ge$n(index, t1))
- this._invalidIndex$2(receiver, index, t1);
- receiver[index] = value;
- },
- $asList: function() {
- return [J.JSInt];
- },
- $asIterable: function() {
- return [J.JSInt];
- },
- $isList: true,
- $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];
- },
- $indexSet: function(receiver, index, value) {
- var t1 = C.JS_CONST_ZYJ(receiver);
- if (index >>> 0 != index || J.$ge$n(index, t1))
- this._invalidIndex$2(receiver, index, t1);
- receiver[index] = value;
- },
- $asList: function() {
- return [J.JSInt];
- },
- $asIterable: function() {
- return [J.JSInt];
- },
- $isList: true,
- $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];
- },
- $indexSet: function(receiver, index, value) {
- var t1 = C.JS_CONST_ZYJ(receiver);
- if (index >>> 0 != index || J.$ge$n(index, t1))
- this._invalidIndex$2(receiver, index, t1);
- receiver[index] = value;
- },
- $asList: function() {
- return [J.JSInt];
- },
- $asIterable: function() {
- return [J.JSInt];
- },
- $isList: true,
- $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];
- },
- $indexSet: function(receiver, index, value) {
- var t1 = C.JS_CONST_ZYJ(receiver);
- if (index >>> 0 != index || J.$ge$n(index, t1))
- this._invalidIndex$2(receiver, index, t1);
- receiver[index] = value;
- },
- $asList: function() {
- return [J.JSInt];
- },
- $asIterable: function() {
- return [J.JSInt];
- },
- $isList: true,
- $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];
- },
- $indexSet: function(receiver, index, value) {
- var t1 = C.JS_CONST_ZYJ(receiver);
- if (index >>> 0 != index || J.$ge$n(index, t1))
- this._invalidIndex$2(receiver, index, t1);
- receiver[index] = value;
- },
- $asList: function() {
- return [J.JSInt];
- },
- $asIterable: function() {
- return [J.JSInt];
- },
- $isList: true,
- $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];
- },
- $indexSet: function(receiver, index, value) {
- var t1 = C.JS_CONST_ZYJ(receiver);
- if (index >>> 0 != index || J.$ge$n(index, t1))
- this._invalidIndex$2(receiver, index, t1);
- receiver[index] = value;
- },
- $asList: function() {
- return [J.JSInt];
- },
- $asIterable: function() {
- return [J.JSInt];
- },
- $isList: true,
- $isEfficientLength: true,
- $isIterable: true,
- $isJavaScriptIndexingBehavior: true,
- "%": ";Uint8Array"
-},
-
-TypedData_ListMixin: {"": "TypedData+ListMixin;", $isList: true, $asList: null, $isEfficientLength: true, $isIterable: true, $asIterable: null},
-
-TypedData_ListMixin_FixedLengthListMixin: {"": "TypedData_ListMixin+FixedLengthListMixin;", $asList: null, $asIterable: null},
-
-TypedData_ListMixin0: {"": "TypedData+ListMixin;", $isList: true, $asList: null, $isEfficientLength: true, $isIterable: true, $asIterable: null},
-
-TypedData_ListMixin_FixedLengthListMixin0: {"": "TypedData_ListMixin0+FixedLengthListMixin;", $asList: null, $asIterable: null},
-
-TypedData_ListMixin1: {"": "TypedData+ListMixin;", $isList: true, $asList: null, $isEfficientLength: true, $isIterable: true, $asIterable: null},
-
-TypedData_ListMixin_FixedLengthListMixin1: {"": "TypedData_ListMixin1+FixedLengthListMixin;", $asList: null, $asIterable: null},
-
-TypedData_ListMixin2: {"": "TypedData+ListMixin;", $isList: true, $asList: null, $isEfficientLength: true, $isIterable: true, $asIterable: null},
-
-TypedData_ListMixin_FixedLengthListMixin2: {"": "TypedData_ListMixin2+FixedLengthListMixin;", $asList: null, $asIterable: null},
-
-TypedData_ListMixin3: {"": "TypedData+ListMixin;", $isList: true, $asList: null, $isEfficientLength: true, $isIterable: true, $asIterable: null},
-
-TypedData_ListMixin_FixedLengthListMixin3: {"": "TypedData_ListMixin3+FixedLengthListMixin;", $asList: null, $asIterable: null},
-
-TypedData_ListMixin4: {"": "TypedData+ListMixin;", $isList: true, $asList: null, $isEfficientLength: true, $isIterable: true, $asIterable: null},
-
-TypedData_ListMixin_FixedLengthListMixin4: {"": "TypedData_ListMixin4+FixedLengthListMixin;", $asList: null, $asIterable: null},
-
-TypedData_ListMixin5: {"": "TypedData+ListMixin;", $isList: true, $asList: null, $isEfficientLength: true, $isIterable: true, $asIterable: null},
-
-TypedData_ListMixin_FixedLengthListMixin5: {"": "TypedData_ListMixin5+FixedLengthListMixin;", $asList: null, $asIterable: null},
-
-TypedData_ListMixin6: {"": "TypedData+ListMixin;", $isList: true, $asList: null, $isEfficientLength: true, $isIterable: true, $asIterable: null},
-
-TypedData_ListMixin_FixedLengthListMixin6: {"": "TypedData_ListMixin6+FixedLengthListMixin;", $asList: null, $asIterable: null},
-
-TypedData_ListMixin7: {"": "TypedData+ListMixin;", $isList: true, $asList: null, $isEfficientLength: true, $isIterable: true, $asIterable: null},
-
-TypedData_ListMixin_FixedLengthListMixin7: {"": "TypedData_ListMixin7+FixedLengthListMixin;", $asList: null, $asIterable: null},
-
-Int64List: {"": "TypedData;", $isList: true,
- $asList: function() {
- return [J.JSInt];
- },
- $isEfficientLength: true,
- $isIterable: true,
- $asIterable: function() {
- return [J.JSInt];
- },
- $isJavaScriptIndexingBehavior: true,
- static: {
-"": "Int64List_BYTES_PER_ELEMENT",
-}
-
-},
-
-Uint64List: {"": "TypedData;", $isList: true,
- $asList: function() {
- return [J.JSInt];
- },
- $isEfficientLength: true,
- $isIterable: true,
- $asIterable: function() {
- return [J.JSInt];
- },
- $isJavaScriptIndexingBehavior: true,
- static: {
-"": "Uint64List_BYTES_PER_ELEMENT",
-}
-
-}}],
-["", "gauge.dart", , Y, {
-main: function() {
- Y.Gauge_load().then$1(new Y.main_closure());
-},
-
-Gauge: {"": "Object;jsOptions,jsTable,jsChart,_gauge$_value",
- draw$0: function() {
- this.jsTable.callMethod$2("setValue", [0, 1, this._gauge$_value]);
- this.jsChart.callMethod$2("draw", [this.jsTable, this.jsOptions]);
- },
- Gauge$4: function(element, title, _value, options) {
- var t1, vis;
- t1 = this._gauge$_value;
- vis = J.$index$asx(J.$index$asx($.get$context(), "google"), "visualization");
- this.jsTable = vis.callMethod$2("arrayToDataTable", [P.JsObject_JsObject$jsify([["Label", "Value"], [title, t1]])]);
- this.jsChart = P.JsObject_JsObject(J.$index$asx(vis, "Gauge"), [element]);
- this.jsOptions = P.JsObject_JsObject$jsify(options);
- this.draw$0();
- },
- static: {
-Gauge$: function(element, title, _value, options) {
- var t1 = new Y.Gauge(null, null, null, _value);
- t1.Gauge$4(element, title, _value, options);
- return t1;
-},
-
-Gauge_load: function() {
- var t1, c;
- t1 = null;
- c = new P._AsyncCompleter(P._Future$(t1));
- H.setRuntimeTypeInfo(c, [t1]);
- J.$index$asx($.get$context(), "google").callMethod$2("load", ["visualization", "1", P.JsObject_JsObject$jsify(H.fillLiteralMap(["packages", ["gauge"], "callback", P.JsFunction_JsFunction$withThis(c.get$complete(c))], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)))]);
- return c.future;
-}}
-
-},
-
-main_closure: {"": "Closure;",
- call$1: function(_) {
- var t1, gauge, t2;
- t1 = new Y.main__sliderValue();
- gauge = Y.Gauge$($.get$visualization(), "Slider", t1.call$0(), H.fillLiteralMap(["min", 0, "max", 280, "yellowFrom", 200, "yellowTo", 250, "redFrom", 250, "redTo", 280, "minorTicks", 5], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)));
- t2 = $.get$slider();
- t2.toString;
- t2 = new W._ElementEventStreamImpl(t2, C.EventStreamProvider_change._eventType, false);
- H.setRuntimeTypeInfo(t2, [null]);
- t1 = new W._EventStreamSubscription(0, t2._target, t2._eventType, W._wrapZone(new Y.main__closure(t1, gauge)), t2._useCapture);
- H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(t2, "_EventStream", 0)]);
- t1._tryResume$0();
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-},
-
-main__sliderValue: {"": "Closure;",
- call$0: function() {
- return H.Primitives_parseInt(J.get$value$x($.get$slider()), null, null);
- },
- "+call:0:0": 0,
- $isFunction: true
-},
-
-main__closure: {"": "Closure;sliderValue_0,gauge_1",
- call$1: function(_) {
- var t1, t2;
- t1 = this.gauge_1;
- t2 = this.sliderValue_0.call$0();
- t1._gauge$_value = t2;
- t1.draw$0();
- return t2;
- },
- "+call:1:0": 0,
- $isFunction: true,
- $is_args1: true
-}},
-1],
-]);
-Isolate.$finishClasses($$, $, null);
-$$ = null;
-
-// Static function getters
-init.globalFunctions.IsolateNatives__processWorkerMessage$closure = H.IsolateNatives__processWorkerMessage$closure = new H.Closure$2(H.IsolateNatives__processWorkerMessage, "IsolateNatives__processWorkerMessage$closure");
-init.globalFunctions.Primitives__throwFormatException$closure = H.Primitives__throwFormatException$closure = new H.Closure$1(H.Primitives__throwFormatException, "Primitives__throwFormatException$closure");
-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._asyncRunCallback$closure = P._asyncRunCallback$closure = new H.Closure$0(P._asyncRunCallback, "_asyncRunCallback$closure");
-init.globalFunctions._nullDataHandler$closure = P._nullDataHandler$closure = new H.Closure$1(P._nullDataHandler, "_nullDataHandler$closure");
-init.globalFunctions._nullErrorHandler$closure = P._nullErrorHandler$closure = new P.Closure$20(P._nullErrorHandler, "_nullErrorHandler$closure");
-init.globalFunctions._nullDoneHandler$closure = P._nullDoneHandler$closure = new H.Closure$0(P._nullDoneHandler, "_nullDoneHandler$closure");
-init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new H.Closure$2(P._defaultEquals, "_defaultEquals$closure");
-init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new H.Closure$1(P._defaultHashCode, "_defaultHashCode$closure");
-init.globalFunctions.identical$closure = P.identical$closure = new H.Closure$2(P.identical, "identical$closure");
-init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new H.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 H.Closure$1(P._convertToJS, "_convertToJS$closure");
-init.globalFunctions._convertToDart$closure = P._convertToDart$closure = new H.Closure$1(P._convertToDart, "_convertToDart$closure");
-init.globalFunctions.main$closure = Y.main$closure = new H.Closure$0(Y.main, "main$closure");
-// Runtime type support
-J.JSInt.$isint = true;
-J.JSInt.$isObject = true;
-J.JSDouble.$isObject = true;
-J.JSString.$isString = true;
-J.JSString.$isObject = true;
-J.JSNumber.$isObject = true;
-P.Duration.$isObject = true;
-W.Event.$isObject = true;
-P.Symbol.$isSymbol = true;
-P.Symbol.$isObject = true;
-P.ReceivePort.$isObject = true;
-H._IsolateEvent.$isObject = true;
-H._IsolateContext.$isObject = true;
-J.JSArray.$isList = true;
-J.JSArray.$isObject = true;
-P.StackTrace.$isStackTrace = true;
-P.StackTrace.$isObject = true;
-P.Object.$isObject = true;
-P.Function.$isFunction = true;
-P.Function.$isObject = true;
-J.JSBool.$isbool = true;
-J.JSBool.$isObject = true;
-P._EventSink.$is_EventSink = true;
-P._EventSink.$isObject = true;
-P.Future.$isFuture = true;
-P.Future.$isObject = true;
-P.StreamSubscription.$isStreamSubscription = true;
-P.StreamSubscription.$isObject = true;
-// 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;
-};
-J.getInterceptor$x = function(receiver) {
- if (receiver == null)
- return receiver;
- if (typeof receiver != "object")
- return receiver;
- if (receiver instanceof P.Object)
- return receiver;
- return J.getNativeInterceptor(receiver);
-};
-C.C__DelayedDone = new P._DelayedDone();
-C.C__RootZone = new P._RootZone();
-C.Duration_0 = new P.Duration(0);
-C.EventStreamProvider_change = new W.EventStreamProvider("change");
-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.Type_oqh = H.createRuntimeType('Uint64List');
-C.Type_qxd = H.createRuntimeType('Int64List');
-C.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype;
-$.lazyPort = null;
-$.ReceivePortImpl__nextFreeId = 1;
-$.Primitives_mirrorFunctionCacheName = "$cachedFunction";
-$.Primitives_mirrorInvokeCacheName = "$cachedInvocation";
-$.getTagFunction = null;
-$.alternateTagFunction = null;
-$.prototypeForTagFunction = null;
-$.dispatchRecordsForInstanceTags = null;
-$.interceptorsForUncacheableTags = null;
-$.initNativeDispatchFlag = null;
-$.printToZone = null;
-$._callbacksAreEnqueued = false;
-$.Zone__current = C.C__RootZone;
-$.Expando__keyCount = 0;
-$.Device__isOpera = null;
-$.Device__isWebKit = 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.$indexSet$ax = function(receiver, a0, a1) {
- if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < receiver.length)
- return receiver[a0] = a1;
- return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1);
-};
-J.$shl$n = function(receiver, a0) {
- return J.getInterceptor$n(receiver).$shl(receiver, a0);
-};
-J.addEventListener$3$x = function(receiver, a0, a1, a2) {
- return J.getInterceptor$x(receiver).addEventListener$3(receiver, a0, a1, a2);
-};
-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$error$x = function(receiver) {
- return J.getInterceptor$x(receiver).get$error(receiver);
-};
-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.get$value$x = function(receiver) {
- return J.getInterceptor$x(receiver).get$value(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.removeEventListener$3$x = function(receiver, a0, a1, a2) {
- return J.getInterceptor$x(receiver).removeEventListener$3(receiver, a0, a1, a2);
-};
-J.toString$0 = function(receiver) {
- return J.getInterceptor(receiver).toString$0(receiver);
-};
-Isolate.$lazy($, "globalThis", "globalThis", "get$globalThis", function() {
- return function() { return this; }();
-});
-Isolate.$lazy($, "globalWindow", "globalWindow", "get$globalWindow", function() {
- return $.get$globalThis().window;
-});
-Isolate.$lazy($, "globalWorker", "globalWorker", "get$globalWorker", function() {
- return $.get$globalThis().Worker;
-});
-Isolate.$lazy($, "globalPostMessageDefined", "globalPostMessageDefined", "get$globalPostMessageDefined", function() {
- return $.get$globalThis().postMessage !== void 0;
-});
-Isolate.$lazy($, "thisScript", "IsolateNatives_thisScript", "get$IsolateNatives_thisScript", function() {
- return H.IsolateNatives_computeThisScript();
-});
-Isolate.$lazy($, "workerIds", "IsolateNatives_workerIds", "get$IsolateNatives_workerIds", function() {
- return new P.Expando(null);
-});
-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($, "_asyncCallbacks", "_asyncCallbacks", "get$_asyncCallbacks", function() {
- return P.ListQueue$(null, {func: "void_", void: true});
-});
-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; }());
-});
-Isolate.$lazy($, "visualization", "visualization", "get$visualization", function() {
- return document.querySelector("#gauge");
-});
-Isolate.$lazy($, "slider", "slider", "get$slider", function() {
- return document.querySelector("#slider");
-});
-// 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() { H.startRootIsolate(Y.main$closure); });
- } else {
- H.startRootIsolate(Y.main$closure);
- }
-});
-// 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=gauge.dart.js.map
-//@ sourceMappingURL=gauge.dart.js.map
« no previous file with comments | « src/site/samples/gauge/example/gauge.html ('k') | src/site/samples/gauge/example/gauge.dart.js.map » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698