diff --git a/dwds/CHANGELOG.md b/dwds/CHANGELOG.md index 52b5dbabe..b1cca155d 100644 --- a/dwds/CHANGELOG.md +++ b/dwds/CHANGELOG.md @@ -1,5 +1,7 @@ ## 24.2.0-wip +- Migrate injected client code to `package:web`. - [#2491](https://github.com/dart-lang/webdev/pull/2491) + ## 24.1.0 - Fix bug where debugging clients are not aware of service extensions when connecting to a new web app. - [#2388](https://github.com/dart-lang/webdev/pull/2388) diff --git a/dwds/lib/src/injected/client.js b/dwds/lib/src/injected/client.js index 2b29e7ae2..24544be20 100644 --- a/dwds/lib/src/injected/client.js +++ b/dwds/lib/src/injected/client.js @@ -1,4 +1,4 @@ -// Generated by dart2js (NullSafetyMode.sound, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.5.0-edge. +// Generated by dart2js (NullSafetyMode.sound, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.6.0-134.0.dev. // The code supports the following hooks: // dartPrint(message): // if this function is defined it is called instead of the Dart [print] @@ -127,8 +127,7 @@ }; } function makeConstList(list) { - list.immutable$list = Array; - list.fixed$length = Array; + list.$flags = 7; return list; } function convertToFastObject(properties) { @@ -295,16 +294,9 @@ return A._setArrayType(new Array($length), $E._eval$1("JSArray<0>")); }, JSArray_JSArray$markFixed(allocation, $E) { - return J.JSArray_markFixedList(A._setArrayType(allocation, $E._eval$1("JSArray<0>")), $E); - }, - JSArray_markFixedList(list, $T) { - list.fixed$length = Array; - return list; - }, - JSArray_markUnmodifiableList(list) { - list.fixed$length = Array; - list.immutable$list = Array; - return list; + var t1 = A._setArrayType(allocation, $E._eval$1("JSArray<0>")); + t1.$flags = 1; + return t1; }, JSArray__compareAny(a, b) { var t1 = type$.Comparable_dynamic; @@ -420,22 +412,6 @@ return receiver; return J.getNativeInterceptor(receiver); }, - getInterceptor$z(receiver) { - if (receiver == null) - return receiver; - if (!(receiver instanceof A.Object)) - return J.UnknownJavaScriptObject.prototype; - return receiver; - }, - set$_innerHtml$x(receiver, value) { - return J.getInterceptor$x(receiver).set$_innerHtml(receiver, value); - }, - get$attributes$x(receiver) { - return J.getInterceptor$x(receiver).get$attributes(receiver); - }, - get$digestsPath$x(receiver) { - return J.getInterceptor$x(receiver).get$digestsPath(receiver); - }, get$first$ax(receiver) { return J.getInterceptor$ax(receiver).get$first(receiver); }, @@ -451,21 +427,9 @@ get$iterator$ax(receiver) { return J.getInterceptor$ax(receiver).get$iterator(receiver); }, - get$keys$x(receiver) { - return J.getInterceptor$x(receiver).get$keys(receiver); - }, get$length$asx(receiver) { return J.getInterceptor$asx(receiver).get$length(receiver); }, - get$message$x(receiver) { - return J.getInterceptor$x(receiver).get$message(receiver); - }, - get$moduleParentsGraph$x(receiver) { - return J.getInterceptor$x(receiver).get$moduleParentsGraph(receiver); - }, - get$parent$z(receiver) { - return J.getInterceptor$z(receiver).get$parent(receiver); - }, get$runtimeType$(receiver) { return J.getInterceptor$(receiver).get$runtimeType(receiver); }, @@ -476,9 +440,6 @@ return a0 != null && receiver === a0; return J.getInterceptor$(receiver).$eq(receiver, a0); }, - $get$1$x(receiver, a0) { - return J.getInterceptor$x(receiver).$get$1(receiver, a0); - }, $index$asx(receiver, a0) { if (typeof a0 === "number") if (Array.isArray(receiver) || typeof receiver == "string" || A.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) @@ -489,72 +450,30 @@ $indexSet$ax(receiver, a0, a1) { return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1); }, - _clearChildren$0$x(receiver) { - return J.getInterceptor$x(receiver)._clearChildren$0(receiver); - }, - _initCustomEvent$4$x(receiver, a0, a1, a2, a3) { - return J.getInterceptor$x(receiver)._initCustomEvent$4(receiver, a0, a1, a2, a3); - }, - _removeEventListener$3$x(receiver, a0, a1, a2) { - return J.getInterceptor$x(receiver)._removeEventListener$3(receiver, a0, a1, a2); - }, - addEventListener$3$x(receiver, a0, a1, a2) { - return J.getInterceptor$x(receiver).addEventListener$3(receiver, a0, a1, a2); - }, allMatches$1$s(receiver, a0) { return J.getInterceptor$s(receiver).allMatches$1(receiver, a0); }, - cast$1$0$ax(receiver, $T1) { - return J.getInterceptor$ax(receiver).cast$1$0(receiver, $T1); - }, - cast$2$0$ax(receiver, $T1, $T2) { - return J.getInterceptor$ax(receiver).cast$2$0(receiver, $T1, $T2); + asUint8List$2$x(receiver, a0, a1) { + return J.getInterceptor$x(receiver).asUint8List$2(receiver, a0, a1); }, compareTo$1$ns(receiver, a0) { return J.getInterceptor$ns(receiver).compareTo$1(receiver, a0); }, - complete$1$z(receiver, a0) { - return J.getInterceptor$z(receiver).complete$1(receiver, a0); - }, contains$1$asx(receiver, a0) { return J.getInterceptor$asx(receiver).contains$1(receiver, a0); }, - containsKey$1$x(receiver, a0) { - return J.getInterceptor$x(receiver).containsKey$1(receiver, a0); - }, elementAt$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0); }, - forEach$1$x(receiver, a0) { - return J.getInterceptor$x(receiver).forEach$1(receiver, a0); - }, - forceLoadModule$3$x(receiver, a0, a1, a2) { - return J.getInterceptor$x(receiver).forceLoadModule$3(receiver, a0, a1, a2); - }, - getRange$2$ax(receiver, a0, a1) { - return J.getInterceptor$ax(receiver).getRange$2(receiver, a0, a1); - }, - keys$0$x(receiver) { - return J.getInterceptor$x(receiver).keys$0(receiver); - }, map$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).map$1(receiver, a0); }, map$1$1$ax(receiver, a0, $T1) { return J.getInterceptor$ax(receiver).map$1$1(receiver, a0, $T1); }, - map$2$1$ax(receiver, a0, $T1, $T2) { - return J.getInterceptor$ax(receiver).map$2$1(receiver, a0, $T1, $T2); - }, matchAsPrefix$2$s(receiver, a0, a1) { return J.getInterceptor$s(receiver).matchAsPrefix$2(receiver, a0, a1); }, - noSuchMethod$1$(receiver, a0) { - return J.getInterceptor$(receiver).noSuchMethod$1(receiver, a0); - }, - remove$0$x(receiver) { - return J.getInterceptor$x(receiver).remove$0(receiver); - }, skip$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).skip$1(receiver, a0); }, @@ -564,27 +483,15 @@ take$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).take$1(receiver, a0); }, - then$1$1$x(receiver, a0, $T1) { - return J.getInterceptor$x(receiver).then$1$1(receiver, a0, $T1); - }, - then$2$x(receiver, a0, a1) { - return J.getInterceptor$x(receiver).then$2(receiver, a0, a1); - }, toList$0$ax(receiver) { return J.getInterceptor$ax(receiver).toList$0(receiver); }, - toLowerCase$0$s(receiver) { - return J.getInterceptor$s(receiver).toLowerCase$0(receiver); - }, toRadixString$1$n(receiver, a0) { return J.getInterceptor$n(receiver).toRadixString$1(receiver, a0); }, toString$0$(receiver) { return J.getInterceptor$(receiver).toString$0(receiver); }, - update$2$z(receiver, a0, a1) { - return J.getInterceptor$z(receiver).update$2(receiver, a0, a1); - }, Interceptor: function Interceptor() { }, JSBool: function JSBool() { @@ -614,9 +521,9 @@ ArrayIterator: function ArrayIterator(t0, t1, t2) { var _ = this; _._iterable = t0; - _.__interceptors$_length = t1; + _._length = t1; _._index = 0; - _.__interceptors$_current = null; + _._current = null; _.$ti = t2; }, JSNumber: function JSNumber() { @@ -704,253 +611,9 @@ IterableElementError_noElement() { return new A.StateError("No element"); }, - IterableElementError_tooMany() { - return new A.StateError("Too many elements"); - }, IterableElementError_tooFew() { return new A.StateError("Too few elements"); }, - Sort__doSort(a, left, right, compare, $E) { - if (right - left <= 32) - A.Sort__insertionSort(a, left, right, compare, $E); - else - A.Sort__dualPivotQuicksort(a, left, right, compare, $E); - }, - Sort__insertionSort(a, left, right, compare, $E) { - var i, t1, el, j, t2, j0; - for (i = left + 1, t1 = J.getInterceptor$asx(a); i <= right; ++i) { - el = t1.$index(a, i); - j = i; - while (true) { - if (j > left) { - t2 = compare.call$2(t1.$index(a, j - 1), el); - if (typeof t2 !== "number") - return t2.$gt(); - t2 = t2 > 0; - } else - t2 = false; - if (!t2) - break; - j0 = j - 1; - t1.$indexSet(a, j, t1.$index(a, j0)); - j = j0; - } - t1.$indexSet(a, j, el); - } - }, - Sort__dualPivotQuicksort(a, left, right, compare, $E) { - var t0, less, great, pivots_are_equal, k, ak, comp, great0, less0, - sixth = B.JSInt_methods._tdivFast$1(right - left + 1, 6), - index1 = left + sixth, - index5 = right - sixth, - index3 = B.JSInt_methods._tdivFast$1(left + right, 2), - index2 = index3 - sixth, - index4 = index3 + sixth, - t1 = J.getInterceptor$asx(a), - el1 = t1.$index(a, index1), - el2 = t1.$index(a, index2), - el3 = t1.$index(a, index3), - el4 = t1.$index(a, index4), - el5 = t1.$index(a, index5), - t2 = compare.call$2(el1, el2); - if (typeof t2 !== "number") - return t2.$gt(); - if (t2 > 0) { - t0 = el2; - el2 = el1; - el1 = t0; - } - t2 = compare.call$2(el4, el5); - if (typeof t2 !== "number") - return t2.$gt(); - if (t2 > 0) { - t0 = el5; - el5 = el4; - el4 = t0; - } - t2 = compare.call$2(el1, el3); - if (typeof t2 !== "number") - return t2.$gt(); - if (t2 > 0) { - t0 = el3; - el3 = el1; - el1 = t0; - } - t2 = compare.call$2(el2, el3); - if (typeof t2 !== "number") - return t2.$gt(); - if (t2 > 0) { - t0 = el3; - el3 = el2; - el2 = t0; - } - t2 = compare.call$2(el1, el4); - if (typeof t2 !== "number") - return t2.$gt(); - if (t2 > 0) { - t0 = el4; - el4 = el1; - el1 = t0; - } - t2 = compare.call$2(el3, el4); - if (typeof t2 !== "number") - return t2.$gt(); - if (t2 > 0) { - t0 = el4; - el4 = el3; - el3 = t0; - } - t2 = compare.call$2(el2, el5); - if (typeof t2 !== "number") - return t2.$gt(); - if (t2 > 0) { - t0 = el5; - el5 = el2; - el2 = t0; - } - t2 = compare.call$2(el2, el3); - if (typeof t2 !== "number") - return t2.$gt(); - if (t2 > 0) { - t0 = el3; - el3 = el2; - el2 = t0; - } - t2 = compare.call$2(el4, el5); - if (typeof t2 !== "number") - return t2.$gt(); - if (t2 > 0) { - t0 = el5; - el5 = el4; - el4 = t0; - } - t1.$indexSet(a, index1, el1); - t1.$indexSet(a, index3, el3); - t1.$indexSet(a, index5, el5); - t1.$indexSet(a, index2, t1.$index(a, left)); - t1.$indexSet(a, index4, t1.$index(a, right)); - less = left + 1; - great = right - 1; - pivots_are_equal = J.$eq$(compare.call$2(el2, el4), 0); - if (pivots_are_equal) - for (k = less; k <= great; ++k) { - ak = t1.$index(a, k); - comp = compare.call$2(ak, el2); - if (comp === 0) - continue; - if (comp < 0) { - if (k !== less) { - t1.$indexSet(a, k, t1.$index(a, less)); - t1.$indexSet(a, less, ak); - } - ++less; - } else - for (; true;) { - comp = compare.call$2(t1.$index(a, great), el2); - if (comp > 0) { - --great; - continue; - } else { - great0 = great - 1; - if (comp < 0) { - t1.$indexSet(a, k, t1.$index(a, less)); - less0 = less + 1; - t1.$indexSet(a, less, t1.$index(a, great)); - t1.$indexSet(a, great, ak); - great = great0; - less = less0; - break; - } else { - t1.$indexSet(a, k, t1.$index(a, great)); - t1.$indexSet(a, great, ak); - great = great0; - break; - } - } - } - } - else - for (k = less; k <= great; ++k) { - ak = t1.$index(a, k); - if (compare.call$2(ak, el2) < 0) { - if (k !== less) { - t1.$indexSet(a, k, t1.$index(a, less)); - t1.$indexSet(a, less, ak); - } - ++less; - } else if (compare.call$2(ak, el4) > 0) - for (; true;) - if (compare.call$2(t1.$index(a, great), el4) > 0) { - --great; - if (great < k) - break; - continue; - } else { - great0 = great - 1; - if (compare.call$2(t1.$index(a, great), el2) < 0) { - t1.$indexSet(a, k, t1.$index(a, less)); - less0 = less + 1; - t1.$indexSet(a, less, t1.$index(a, great)); - t1.$indexSet(a, great, ak); - less = less0; - } else { - t1.$indexSet(a, k, t1.$index(a, great)); - t1.$indexSet(a, great, ak); - } - great = great0; - break; - } - } - t2 = less - 1; - t1.$indexSet(a, left, t1.$index(a, t2)); - t1.$indexSet(a, t2, el2); - t2 = great + 1; - t1.$indexSet(a, right, t1.$index(a, t2)); - t1.$indexSet(a, t2, el4); - A.Sort__doSort(a, left, less - 2, compare, $E); - A.Sort__doSort(a, great + 2, right, compare, $E); - if (pivots_are_equal) - return; - if (less < index1 && great > index5) { - for (; J.$eq$(compare.call$2(t1.$index(a, less), el2), 0);) - ++less; - for (; J.$eq$(compare.call$2(t1.$index(a, great), el4), 0);) - --great; - for (k = less; k <= great; ++k) { - ak = t1.$index(a, k); - if (compare.call$2(ak, el2) === 0) { - if (k !== less) { - t1.$indexSet(a, k, t1.$index(a, less)); - t1.$indexSet(a, less, ak); - } - ++less; - } else if (compare.call$2(ak, el4) === 0) - for (; true;) - if (compare.call$2(t1.$index(a, great), el4) === 0) { - --great; - if (great < k) - break; - continue; - } else { - great0 = great - 1; - if (compare.call$2(t1.$index(a, great), el2) < 0) { - t1.$indexSet(a, k, t1.$index(a, less)); - less0 = less + 1; - t1.$indexSet(a, less, t1.$index(a, great)); - t1.$indexSet(a, great, ak); - less = less0; - } else { - t1.$indexSet(a, k, t1.$index(a, great)); - t1.$indexSet(a, great, ak); - } - great = great0; - break; - } - } - A.Sort__doSort(a, less, great, compare, $E); - } else - A.Sort__doSort(a, less, great, compare, $E); - }, _CastIterableBase: function _CastIterableBase() { }, CastIterator: function CastIterator(t0, t1) { @@ -965,16 +628,6 @@ this.__internal$_source = t0; this.$ti = t1; }, - _CastListBase: function _CastListBase() { - }, - _CastListBase_sort_closure: function _CastListBase_sort_closure(t0, t1) { - this.$this = t0; - this.compare = t1; - }, - CastList: function CastList(t0, t1) { - this.__internal$_source = t0; - this.$ti = t1; - }, CastMap: function CastMap(t0, t1) { this.__internal$_source = t0; this.$ti = t1; @@ -997,7 +650,7 @@ SubListIterable: function SubListIterable(t0, t1, t2, t3) { var _ = this; _.__internal$_iterable = t0; - _._start = t1; + _.__internal$_start = t1; _._endOrLength = t2; _.$ti = t3; }, @@ -1031,16 +684,6 @@ this._f = t1; this.$ti = t2; }, - WhereIterable: function WhereIterable(t0, t1, t2) { - this.__internal$_iterable = t0; - this._f = t1; - this.$ti = t2; - }, - WhereIterator: function WhereIterator(t0, t1, t2) { - this._iterator = t0; - this._f = t1; - this.$ti = t2; - }, TakeIterable: function TakeIterable(t0, t1, t2) { this.__internal$_iterable = t0; this._takeCount = t1; @@ -1087,11 +730,6 @@ this.__internal$_source = t0; this.$ti = t1; }, - Symbol: function Symbol(t0) { - this._name = t0; - }, - __CastListBase__CastIterableBase_ListMixin: function __CastListBase__CastIterableBase_ListMixin() { - }, ConstantMap__throwUnmodifiable() { throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable Map")); }, @@ -1289,116 +927,6 @@ Primitives_getMilliseconds(receiver) { return receiver.isUtc ? A.Primitives_lazyAsJsDate(receiver).getUTCMilliseconds() + 0 : A.Primitives_lazyAsJsDate(receiver).getMilliseconds() + 0; }, - Primitives_functionNoSuchMethod($function, positionalArguments, namedArguments) { - var $arguments, namedArgumentList, t1 = {}; - t1.argumentCount = 0; - $arguments = []; - namedArgumentList = []; - t1.argumentCount = positionalArguments.length; - B.JSArray_methods.addAll$1($arguments, positionalArguments); - t1.names = ""; - if (namedArguments != null && namedArguments.__js_helper$_length !== 0) - namedArguments.forEach$1(0, new A.Primitives_functionNoSuchMethod_closure(t1, namedArgumentList, $arguments)); - return J.noSuchMethod$1$($function, new A.JSInvocationMirror(B.Symbol_call, 0, $arguments, namedArgumentList, 0)); - }, - Primitives_applyFunction($function, positionalArguments, namedArguments) { - var t1, argumentCount, jsStub; - if (Array.isArray(positionalArguments)) - t1 = namedArguments == null || namedArguments.__js_helper$_length === 0; - else - t1 = false; - if (t1) { - argumentCount = positionalArguments.length; - if (argumentCount === 0) { - if (!!$function.call$0) - return $function.call$0(); - } else if (argumentCount === 1) { - if (!!$function.call$1) - return $function.call$1(positionalArguments[0]); - } else if (argumentCount === 2) { - if (!!$function.call$2) - return $function.call$2(positionalArguments[0], positionalArguments[1]); - } else if (argumentCount === 3) { - if (!!$function.call$3) - return $function.call$3(positionalArguments[0], positionalArguments[1], positionalArguments[2]); - } else if (argumentCount === 4) { - if (!!$function.call$4) - return $function.call$4(positionalArguments[0], positionalArguments[1], positionalArguments[2], positionalArguments[3]); - } else if (argumentCount === 5) - if (!!$function.call$5) - return $function.call$5(positionalArguments[0], positionalArguments[1], positionalArguments[2], positionalArguments[3], positionalArguments[4]); - jsStub = $function["call" + "$" + argumentCount]; - if (jsStub != null) - return jsStub.apply($function, positionalArguments); - } - return A.Primitives__generalApplyFunction($function, positionalArguments, namedArguments); - }, - Primitives__generalApplyFunction($function, positionalArguments, namedArguments) { - var defaultValuesClosure, t1, defaultValues, interceptor, jsFunction, maxArguments, missingDefaults, keys, _i, defaultValue, used, key, - $arguments = Array.isArray(positionalArguments) ? positionalArguments : A.List_List$of(positionalArguments, true, type$.dynamic), - argumentCount = $arguments.length, - requiredParameterCount = $function.$requiredArgCount; - if (argumentCount < requiredParameterCount) - return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); - defaultValuesClosure = $function.$defaultValues; - t1 = defaultValuesClosure == null; - defaultValues = !t1 ? defaultValuesClosure() : null; - interceptor = J.getInterceptor$($function); - jsFunction = interceptor["call*"]; - if (typeof jsFunction == "string") - jsFunction = interceptor[jsFunction]; - if (t1) { - if (namedArguments != null && namedArguments.__js_helper$_length !== 0) - return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); - if (argumentCount === requiredParameterCount) - return jsFunction.apply($function, $arguments); - return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); - } - if (Array.isArray(defaultValues)) { - if (namedArguments != null && namedArguments.__js_helper$_length !== 0) - return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); - maxArguments = requiredParameterCount + defaultValues.length; - if (argumentCount > maxArguments) - return A.Primitives_functionNoSuchMethod($function, $arguments, null); - if (argumentCount < maxArguments) { - missingDefaults = defaultValues.slice(argumentCount - requiredParameterCount); - if ($arguments === positionalArguments) - $arguments = A.List_List$of($arguments, true, type$.dynamic); - B.JSArray_methods.addAll$1($arguments, missingDefaults); - } - return jsFunction.apply($function, $arguments); - } else { - if (argumentCount > requiredParameterCount) - return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); - if ($arguments === positionalArguments) - $arguments = A.List_List$of($arguments, true, type$.dynamic); - keys = Object.keys(defaultValues); - if (namedArguments == null) - for (t1 = keys.length, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) { - defaultValue = defaultValues[A._asString(keys[_i])]; - if (B.C__Required === defaultValue) - return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); - B.JSArray_methods.add$1($arguments, defaultValue); - } - else { - for (t1 = keys.length, used = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) { - key = A._asString(keys[_i]); - if (namedArguments.containsKey$1(0, key)) { - ++used; - B.JSArray_methods.add$1($arguments, namedArguments.$index(0, key)); - } else { - defaultValue = defaultValues[key]; - if (B.C__Required === defaultValue) - return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); - B.JSArray_methods.add$1($arguments, defaultValue); - } - } - if (used !== namedArguments.__js_helper$_length) - return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); - } - return jsFunction.apply($function, $arguments); - } - }, Primitives_extractStackTrace(error) { var jsError = error.$thrownJsError; if (jsError == null) @@ -1461,6 +989,42 @@ throwExpressionWithWrapper(ex, wrapper) { throw A.initializeExceptionWrapper(wrapper, ex); }, + throwUnsupportedOperation(o, operation, verb) { + var wrapper; + if (operation == null) + operation = 0; + if (verb == null) + verb = 0; + wrapper = Error(); + A.throwExpressionWithWrapper(A._diagnoseUnsupportedOperation(o, operation, verb), wrapper); + }, + _diagnoseUnsupportedOperation(o, encodedOperation, encodedVerb) { + var operation, table, tableLength, index, verb, object, flags, article, adjective; + if (typeof encodedOperation == "string") + operation = encodedOperation; + else { + table = "[]=;add;removeWhere;retainWhere;removeRange;setRange;setInt8;setInt16;setInt32;setUint8;setUint16;setUint32;setFloat32;setFloat64".split(";"); + tableLength = table.length; + index = encodedOperation; + if (index > tableLength) { + encodedVerb = index / tableLength | 0; + index %= tableLength; + } + operation = table[index]; + } + verb = typeof encodedVerb == "string" ? encodedVerb : "modify;remove from;add to".split(";")[encodedVerb]; + object = type$.List_dynamic._is(o) ? "list" : "ByteData"; + flags = o.$flags | 0; + article = "a "; + if ((flags & 4) !== 0) + adjective = "constant "; + else if ((flags & 2) !== 0) { + adjective = "unmodifiable "; + article = "an "; + } else + adjective = (flags & 1) !== 0 ? "fixed-length " : ""; + return new A.UnsupportedError("'" + operation + "': Cannot " + verb + " " + article + adjective + object); + }, throwConcurrentModificationError(collection) { throw A.wrapException(A.ConcurrentModificationError$(collection)); }, @@ -1620,10 +1184,7 @@ throw A.wrapException(A.Exception_Exception("Unsupported number of arguments for wrapped closure")); }, convertDartClosureToJS(closure, arity) { - var $function; - if (closure == null) - return null; - $function = closure.$identity; + var $function = closure.$identity; if (!!$function) return $function; $function = A.convertDartClosureToJSUncached(closure, arity); @@ -1856,9 +1417,11 @@ return closure._interceptor; }, BoundClosure__computeFieldNamed(fieldName) { - var t1, i, $name, + var names, i, $name, template = new A.BoundClosure("receiver", "interceptor"), - names = J.JSArray_markFixedList(Object.getOwnPropertyNames(template), type$.nullable_Object); + t1 = Object.getOwnPropertyNames(template); + t1.$flags = 1; + names = t1; for (t1 = names.length, i = 0; i < t1; ++i) { $name = names[i]; if (template[$name] === fieldName) @@ -1880,6 +1443,9 @@ getIsolateAffinityTag($name) { return init.getIsolateTag($name); }, + staticInteropGlobalContext() { + return self; + }, LinkedHashMapKeyIterator$(_map, _modifications, $E) { var t1 = new A.LinkedHashMapKeyIterator(_map, _modifications, $E._eval$1("LinkedHashMapKeyIterator<0>")); t1._cell = _map._first; @@ -2072,10 +1638,6 @@ stringReplaceRangeUnchecked(receiver, start, end, replacement) { return receiver.substring(0, start) + replacement + receiver.substring(end); }, - ConstantMapView: function ConstantMapView(t0, t1) { - this._collection$_map = t0; - this.$ti = t1; - }, ConstantMap: function ConstantMap() { }, ConstantMap_map_closure: function ConstantMap_map_closure(t0, t1, t2) { @@ -2100,19 +1662,6 @@ _.__js_helper$_current = null; _.$ti = t2; }, - JSInvocationMirror: function JSInvocationMirror(t0, t1, t2, t3, t4) { - var _ = this; - _._memberName = t0; - _.__js_helper$_kind = t1; - _._arguments = t2; - _._namedArgumentNames = t3; - _._typeArgumentCount = t4; - }, - Primitives_functionNoSuchMethod_closure: function Primitives_functionNoSuchMethod_closure(t0, t1, t2) { - this._box_0 = t0; - this.namedArgumentList = t1; - this.$arguments = t2; - }, TypeErrorDecoder: function TypeErrorDecoder(t0, t1, t2, t3, t4, t5) { var _ = this; _._pattern = t0; @@ -2166,12 +1715,10 @@ _AssertionError: function _AssertionError(t0) { this.message = t0; }, - _Required: function _Required() { - }, JsLinkedHashMap: function JsLinkedHashMap(t0) { var _ = this; _.__js_helper$_length = 0; - _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null; + _._last = _._first = _.__js_helper$_rest = _.__js_helper$_nums = _.__js_helper$_strings = null; _._modifications = 0; _.$ti = t0; }, @@ -2185,12 +1732,12 @@ _._previous = _._next = null; }, LinkedHashMapKeyIterable: function LinkedHashMapKeyIterable(t0, t1) { - this._map = t0; + this.__js_helper$_map = t0; this.$ti = t1; }, LinkedHashMapKeyIterator: function LinkedHashMapKeyIterator(t0, t1, t2) { var _ = this; - _._map = t0; + _.__js_helper$_map = t0; _._modifications = t1; _.__js_helper$_current = _._cell = null; _.$ti = t2; @@ -2218,7 +1765,7 @@ _AllMatchesIterable: function _AllMatchesIterable(t0, t1, t2) { this._re = t0; this._string = t1; - this.__js_helper$_start = t2; + this._start = t2; }, _AllMatchesIterator: function _AllMatchesIterator(t0, t1, t2) { var _ = this; @@ -2257,18 +1804,14 @@ return t1.__late_helper$_value = t1; }, _Cell: function _Cell(t0) { - this.__late_helper$_name = t0; + this._name = t0; this.__late_helper$_value = null; }, + _checkLength($length) { + return $length; + }, _ensureNativeList(list) { - var t1, result, i; - if (type$.JSIndexable_dynamic._is(list)) - return list; - t1 = J.getInterceptor$asx(list); - result = A.List_List$filled(t1.get$length(list), null, false, type$.dynamic); - for (i = 0; i < t1.get$length(list); ++i) - B.JSArray_methods.$indexSet(result, i, t1.$index(list, i)); - return result; + return list; }, NativeInt8List__create1(arg) { return new Int8Array(arg); @@ -2302,6 +1845,9 @@ }, NativeTypedData: function NativeTypedData() { }, + _UnmodifiableNativeByteBufferView: function _UnmodifiableNativeByteBufferView(t0) { + this.__native_typed_data$_data = t0; + }, NativeByteData: function NativeByteData() { }, NativeTypedArray: function NativeTypedArray() { @@ -2661,24 +2207,14 @@ return testRti._as(object); }, _nullIs(testRti) { - var t1, - kind = testRti._kind; + var kind = testRti._kind, + t1 = true; if (!A.isSoundTopType(testRti)) if (!(testRti === type$.legacy_Object)) if (!(testRti === type$.legacy_Never)) if (kind !== 7) if (!(kind === 6 && A._nullIs(testRti._primary))) t1 = kind === 8 && A._nullIs(testRti._primary) || testRti === type$.Null || testRti === type$.JSNull; - else - t1 = true; - else - t1 = true; - else - t1 = true; - else - t1 = true; - else - t1 = true; return t1; }, _generalIsTestImplementation(object) { @@ -2734,11 +2270,6 @@ _failedAsCheck(object, testRti) { throw A.wrapException(A._TypeError$fromMessage(A._Error_compose(object, A._rtiToString(testRti, null)))); }, - checkTypeBound(type, bound, variable, methodName) { - if (A.isSubtype(init.typeUniverse, type, bound)) - return type; - throw A.wrapException(A._TypeError$fromMessage("The type argument '" + A._rtiToString(type, null) + "' is not a subtype of the type variable bound '" + A._rtiToString(bound, null) + "' of type variable '" + variable + "' in '" + methodName + "'.")); - }, _Error_compose(object, checkedTypeDescription) { return A.Error_safeToString(object) + ": type '" + A._rtiToString(A._structuralTypeOf(object), null) + "' is not a subtype of type '" + checkedTypeDescription + "'"; }, @@ -2910,13 +2441,12 @@ return s + "})"; }, _functionRtiToString(functionType, genericContext, bounds) { - var boundsLength, outerContextLength, offset, i, t1, t2, typeParametersText, typeSep, t3, t4, boundRti, kind, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, named, namedLength, returnTypeText, argumentsText, sep, _s2_ = ", "; + var boundsLength, offset, i, t1, t2, typeParametersText, typeSep, t3, t4, boundRti, kind, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, named, namedLength, returnTypeText, argumentsText, sep, _s2_ = ", ", outerContextLength = null; if (bounds != null) { boundsLength = bounds.length; - if (genericContext == null) { + if (genericContext == null) genericContext = A._setArrayType([], type$.JSArray_String); - outerContextLength = null; - } else + else outerContextLength = genericContext.length; offset = genericContext.length; for (i = boundsLength; i > 0; --i) @@ -2937,10 +2467,8 @@ typeParametersText += " extends " + A._rtiToString(boundRti, genericContext); } typeParametersText += ">"; - } else { + } else typeParametersText = ""; - outerContextLength = null; - } t1 = functionType._primary; parameters = functionType._rest; requiredPositional = parameters._requiredPositional; @@ -3147,16 +2675,11 @@ var baseKind, t1, starArgument, rti; if (normalize) { baseKind = baseType._kind; + t1 = true; if (!A.isSoundTopType(baseType)) if (!(baseType === type$.Null || baseType === type$.JSNull)) if (baseKind !== 7) t1 = baseKind === 8 && A.isNullable(baseType._primary); - else - t1 = true; - else - t1 = true; - else - t1 = true; if (t1) return baseType; else if (baseKind === 1 || baseType === type$.legacy_Never) @@ -3528,30 +3051,24 @@ } }, _Parser_handleArguments(parser, stack) { - var optionalPositional, named, requiredPositional, returnType, parameters, _null = null, + var requiredPositional, returnType, parameters, t1 = parser.u, - head = stack.pop(); + head = stack.pop(), + optionalPositional = null, named = null; if (typeof head == "number") switch (head) { case -1: optionalPositional = stack.pop(); - named = _null; break; case -2: named = stack.pop(); - optionalPositional = _null; break; default: stack.push(head); - named = _null; - optionalPositional = named; break; } - else { + else stack.push(head); - named = _null; - optionalPositional = named; - } requiredPositional = A._Parser_collectArray(parser, stack); head = stack.pop(); switch (head) { @@ -3871,21 +3388,13 @@ return true; }, isNullable(t) { - var t1, - kind = t._kind; + var kind = t._kind, + t1 = true; if (!(t === type$.Null || t === type$.JSNull)) if (!A.isSoundTopType(t)) if (kind !== 7) if (!(kind === 6 && A.isNullable(t._primary))) t1 = kind === 8 && A.isNullable(t._primary); - else - t1 = true; - else - t1 = true; - else - t1 = true; - else - t1 = true; return t1; }, isDefinitelyTopType(t) { @@ -3980,7 +3489,7 @@ A._awaitOnObject(object, bodyFunction); }, _asyncReturn(object, completer) { - completer.complete$1(0, object); + completer.complete$1(object); }, _asyncRethrow(object, completer) { completer.completeError$2(A.unwrapException(object), A.getTraceFromException(object)); @@ -3994,7 +3503,7 @@ else { t1 = type$.dynamic; if (object instanceof A._Future) - object.then$1$2$onError(0, thenCallback, errorCallback, t1); + object.then$1$2$onError(thenCallback, errorCallback, t1); else { future = new A._Future($.Zone__current, type$._Future_dynamic); future._state = 8; @@ -4034,15 +3543,13 @@ }, Future_Future$microtask(computation, $T) { var result = new A._Future($.Zone__current, $T._eval$1("_Future<0>")); - A.scheduleMicrotask(new A.Future_Future$microtask_closure(result, computation)); + A.scheduleMicrotask(new A.Future_Future$microtask_closure(computation, result)); return result; }, Future_Future$sync(computation, $T) { - var result, error, stackTrace, future, replacement, t1, exception; + var error, stackTrace, future, replacement, exception, t1, result = null; try { result = computation.call$0(); - t1 = $T._eval$1("Future<0>")._is(result) ? result : A._Future$value(result, $T); - return t1; } catch (exception) { error = A.unwrapException(exception); stackTrace = A.getTraceFromException(exception); @@ -4055,6 +3562,7 @@ future._asyncCompleteError$2(error, stackTrace); return future; } + return $T._eval$1("Future<0>")._is(result) ? result : A._Future$value(result, $T); }, Future_Future$value(value, $T) { var t1 = value == null ? $T._as(value) : value, @@ -4085,6 +3593,10 @@ var t1, t2, listeners; for (t1 = type$._Future_dynamic; t2 = source._state, (t2 & 4) !== 0;) source = t1._as(source._resultOrListeners); + if (source === target) { + target._asyncCompleteError$2(new A.ArgumentError(true, source, null, "Cannot complete a future with itself"), A.StackTrace_current()); + return; + } t1 = t2 | target._state & 1; source._state = t1; if ((t1 & 24) !== 0) { @@ -4104,6 +3616,10 @@ source = t2._as(t1._resultOrListeners); _box_0.source = source; } + if (t1 === target) { + target._asyncCompleteError$2(new A.ArgumentError(true, t1, null, "Cannot complete a future with itself"), A.StackTrace_current()); + return; + } if ((t3 & 24) === 0) { listeners = type$.nullable__FutureListener_dynamic_dynamic._as(target._resultOrListeners); target._setChained$1(t1); @@ -4339,7 +3855,7 @@ _nullDoneHandler() { }, _cancelAndValue(subscription, future, value) { - var cancelFuture = subscription.cancel$0(0), + var cancelFuture = subscription.cancel$0(), t1 = $.$get$Future__nullFuture(); if (cancelFuture !== t1) cancelFuture.whenComplete$1(new A._cancelAndValue_closure(future, value)); @@ -4460,14 +3976,14 @@ A.printString(A._asString(line)); }, _printToZone(line) { - $.Zone__current.print$1(0, line); + $.Zone__current.print$1(line); }, _rootFork($self, $parent, zone, specification, zoneValues) { var valueMap, t1, handleUncaughtError; type$.nullable_ZoneSpecification._as(specification); type$.nullable_Map_of_nullable_Object_and_nullable_Object._as(zoneValues); $.printToZone = A.async___printToZone$closure(); - valueMap = zone.get$_async$_map(); + valueMap = zone.get$_map(); t1 = new A._CustomZone(zone.get$_run(), zone.get$_runUnary(), zone.get$_runBinary(), zone.get$_registerCallback(), zone.get$_registerUnaryCallback(), zone.get$_registerBinaryCallback(), zone.get$_errorCallback(), zone.get$_scheduleMicrotask(), zone.get$_createTimer(), zone.get$_createPeriodicTimer(), zone.get$_print(), zone.get$_fork(), zone.get$_handleUncaughtError(), zone, valueMap); handleUncaughtError = specification.handleUncaughtError; if (handleUncaughtError != null) @@ -4543,10 +4059,8 @@ this.stackTrace = t1; }, Future_Future$microtask_closure: function Future_Future$microtask_closure(t0, t1) { - this.result = t0; - this.computation = t1; - }, - TimeoutException: function TimeoutException() { + this.computation = t0; + this.result = t1; }, _Completer: function _Completer() { }, @@ -4831,7 +4345,7 @@ _._handleUncaughtError = t12; _._delegateCache = null; _.parent = t13; - _._async$_map = t14; + _._map = t14; }, _CustomZone_bindCallback_closure: function _CustomZone_bindCallback_closure(t0, t1, t2) { this.$this = t0; @@ -4975,10 +4489,6 @@ result.add$1(0, $E._as(elements[_i])); return result; }, - ListBase__compareAny(a, b) { - var t1 = type$.Comparable_dynamic; - return J.compareTo$1$ns(t1._as(a), t1._as(b)); - }, MapBase_mapToString(m) { var result, t1 = {}; if (A.isToStringVisiting(m)) @@ -4988,7 +4498,7 @@ B.JSArray_methods.add$1($.toStringVisiting, m); result._contents += "{"; t1.first = true; - J.forEach$1$x(m, new A.MapBase_mapToString_closure(t1, result)); + m.forEach$1(0, new A.MapBase_mapToString_closure(t1, result)); result._contents += "}"; } finally { if (0 >= $.toStringVisiting.length) @@ -5011,13 +4521,13 @@ _HashMap: function _HashMap(t0) { var _ = this; _._collection$_length = 0; - _._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null; + _._keys = _._collection$_rest = _._nums = _._strings = null; _.$ti = t0; }, _IdentityHashMap: function _IdentityHashMap(t0) { var _ = this; _._collection$_length = 0; - _._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null; + _._keys = _._collection$_rest = _._nums = _._strings = null; _.$ti = t0; }, _CustomHashMap: function _CustomHashMap(t0, t1, t2, t3) { @@ -5026,7 +4536,7 @@ _._hashCode = t1; _._validKey = t2; _._collection$_length = 0; - _._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null; + _._keys = _._collection$_rest = _._nums = _._strings = null; _.$ti = t3; }, _CustomHashMap_closure: function _CustomHashMap_closure(t0) { @@ -5047,7 +4557,7 @@ _HashSet: function _HashSet(t0) { var _ = this; _._collection$_length = 0; - _._collection$_elements = _._collection$_rest = _._collection$_nums = _._collection$_strings = null; + _._collection$_elements = _._collection$_rest = _._nums = _._strings = null; _.$ti = t0; }, _HashSetIterator: function _HashSetIterator(t0, t1, t2) { @@ -5061,12 +4571,12 @@ _LinkedHashSet: function _LinkedHashSet(t0) { var _ = this; _._collection$_length = 0; - _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null; + _._collection$_last = _._collection$_first = _._collection$_rest = _._nums = _._strings = null; _._collection$_modifications = 0; _.$ti = t0; }, _LinkedHashSetCell: function _LinkedHashSetCell(t0) { - this._collection$_element = t0; + this._element = t0; this._collection$_next = null; }, _LinkedHashSetIterator: function _LinkedHashSetIterator(t0, t1, t2) { @@ -5112,7 +4622,7 @@ _._queue = t0; _._end = t1; _._modificationCount = t2; - _._collection$_position = t3; + _._position = t3; _._collection$_current = null; _.$ti = t4; }, @@ -5190,10 +4700,10 @@ throw A.wrapException(A.FormatException$("Invalid base64 padding, more than two '=' characters", source, sourceIndex)); }, _Base64Encoder_encodeChunk(alphabet, bytes, start, end, isLast, output, outputIndex, state) { - var t1, t2, t3, i, byteOr, byte, outputIndex0, t4, outputIndex1, + var t1, t2, t3, i, byteOr, byte, outputIndex0, t4, t5, outputIndex1, bits = state >>> 2, expectedChars = 3 - (state & 3); - for (t1 = J.getInterceptor$asx(bytes), t2 = alphabet.length, t3 = output.length, i = start, byteOr = 0; i < end; ++i) { + for (t1 = J.getInterceptor$asx(bytes), t2 = alphabet.length, t3 = output.$flags | 0, i = start, byteOr = 0; i < end; ++i) { byte = t1.$index(bytes, i); byteOr = (byteOr | byte) >>> 0; bits = (bits << 8 | byte) & 16777215; @@ -5203,28 +4713,30 @@ t4 = bits >>> 18 & 63; if (!(t4 < t2)) return A.ioore(alphabet, t4); - if (!(outputIndex < t3)) + t3 & 2 && A.throwUnsupportedOperation(output); + t5 = output.length; + if (!(outputIndex < t5)) return A.ioore(output, outputIndex); output[outputIndex] = alphabet.charCodeAt(t4); outputIndex = outputIndex0 + 1; t4 = bits >>> 12 & 63; if (!(t4 < t2)) return A.ioore(alphabet, t4); - if (!(outputIndex0 < t3)) + if (!(outputIndex0 < t5)) return A.ioore(output, outputIndex0); output[outputIndex0] = alphabet.charCodeAt(t4); outputIndex0 = outputIndex + 1; t4 = bits >>> 6 & 63; if (!(t4 < t2)) return A.ioore(alphabet, t4); - if (!(outputIndex < t3)) + if (!(outputIndex < t5)) return A.ioore(output, outputIndex); output[outputIndex] = alphabet.charCodeAt(t4); outputIndex = outputIndex0 + 1; t4 = bits & 63; if (!(t4 < t2)) return A.ioore(alphabet, t4); - if (!(outputIndex0 < t3)) + if (!(outputIndex0 < t5)) return A.ioore(output, outputIndex0); output[outputIndex0] = alphabet.charCodeAt(t4); bits = 0; @@ -5239,6 +4751,8 @@ t1 = bits >>> 2 & 63; if (!(t1 < t2)) return A.ioore(alphabet, t1); + t3 & 2 && A.throwUnsupportedOperation(output); + t3 = output.length; if (!(outputIndex < t3)) return A.ioore(output, outputIndex); output[outputIndex] = alphabet.charCodeAt(t1); @@ -5259,6 +4773,8 @@ t1 = bits >>> 10 & 63; if (!(t1 < t2)) return A.ioore(alphabet, t1); + t3 & 2 && A.throwUnsupportedOperation(output); + t3 = output.length; if (!(outputIndex < t3)) return A.ioore(output, outputIndex); output[outputIndex] = alphabet.charCodeAt(t1); @@ -5298,7 +4814,7 @@ bits = B.JSInt_methods._shrOtherPositive$1(state, 2), count = state & 3, inverseAlphabet = $.$get$_Base64Decoder__inverseAlphabet(); - for (t1 = input.length, t2 = inverseAlphabet.length, t3 = output.length, i = start, charOr = 0; i < end; ++i) { + for (t1 = input.length, t2 = inverseAlphabet.length, t3 = output.$flags | 0, i = start, charOr = 0; i < end; ++i) { if (!(i < t1)) return A.ioore(input, i); char = input.charCodeAt(i); @@ -5312,15 +4828,17 @@ count = count + 1 & 3; if (count === 0) { outIndex0 = outIndex + 1; - if (!(outIndex < t3)) + t3 & 2 && A.throwUnsupportedOperation(output); + t4 = output.length; + if (!(outIndex < t4)) return A.ioore(output, outIndex); output[outIndex] = bits >>> 16 & 255; outIndex = outIndex0 + 1; - if (!(outIndex0 < t3)) + if (!(outIndex0 < t4)) return A.ioore(output, outIndex0); output[outIndex0] = bits >>> 8 & 255; outIndex0 = outIndex + 1; - if (!(outIndex < t3)) + if (!(outIndex < t4)) return A.ioore(output, outIndex); output[outIndex] = bits & 255; outIndex = outIndex0; @@ -5334,16 +4852,19 @@ if ((bits & 3) !== 0) throw A.wrapException(A.FormatException$(_s31_, input, i)); outIndex0 = outIndex + 1; - if (!(outIndex < t3)) + t3 & 2 && A.throwUnsupportedOperation(output); + t1 = output.length; + if (!(outIndex < t1)) return A.ioore(output, outIndex); output[outIndex] = bits >>> 10; - if (!(outIndex0 < t3)) + if (!(outIndex0 < t1)) return A.ioore(output, outIndex0); output[outIndex0] = bits >>> 2; } else { if ((bits & 15) !== 0) throw A.wrapException(A.FormatException$(_s31_, input, i)); - if (!(outIndex < t3)) + t3 & 2 && A.throwUnsupportedOperation(output); + if (!(outIndex < output.length)) return A.ioore(output, outIndex); output[outIndex] = bits >>> 4; } @@ -5721,17 +5242,19 @@ return 0; if (n === 0 && resultDigits === xDigits) return xUsed; - for (i = xUsed - 1, t1 = xDigits.length, t2 = resultDigits.length; i >= 0; --i) { + for (i = xUsed - 1, t1 = xDigits.length, t2 = resultDigits.$flags | 0; i >= 0; --i) { t3 = i + n; if (!(i < t1)) return A.ioore(xDigits, i); t4 = xDigits[i]; - if (!(t3 >= 0 && t3 < t2)) + t2 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(t3 >= 0 && t3 < resultDigits.length)) return A.ioore(resultDigits, t3); resultDigits[t3] = t4; } for (i = n - 1; i >= 0; --i) { - if (!(i < t2)) + t2 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(i < resultDigits.length)) return A.ioore(resultDigits, i); resultDigits[i] = 0; } @@ -5743,38 +5266,41 @@ bitShift = B.JSInt_methods.$mod(n, 16), carryBitShift = 16 - bitShift, bitMask = B.JSInt_methods.$shl(1, carryBitShift) - 1; - for (i = xUsed - 1, t1 = xDigits.length, t2 = resultDigits.length, carry = 0; i >= 0; --i) { + for (i = xUsed - 1, t1 = xDigits.length, t2 = resultDigits.$flags | 0, carry = 0; i >= 0; --i) { if (!(i < t1)) return A.ioore(xDigits, i); digit = xDigits[i]; t3 = i + digitShift + 1; t4 = B.JSInt_methods.$shr(digit, carryBitShift); - if (!(t3 >= 0 && t3 < t2)) + t2 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(t3 >= 0 && t3 < resultDigits.length)) return A.ioore(resultDigits, t3); resultDigits[t3] = (t4 | carry) >>> 0; carry = B.JSInt_methods.$shl((digit & bitMask) >>> 0, bitShift); } - if (!(digitShift >= 0 && digitShift < t2)) + t2 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(digitShift >= 0 && digitShift < resultDigits.length)) return A.ioore(resultDigits, digitShift); resultDigits[digitShift] = carry; }, _BigIntImpl__lShiftDigits(xDigits, xUsed, n, resultDigits) { - var resultUsed, t1, i, t2, + var resultUsed, t1, i, digitsShift = B.JSInt_methods._tdivFast$1(n, 16); if (B.JSInt_methods.$mod(n, 16) === 0) return A._BigIntImpl__dlShiftDigits(xDigits, xUsed, digitsShift, resultDigits); resultUsed = xUsed + digitsShift + 1; A._BigIntImpl__lsh(xDigits, xUsed, n, resultDigits); - for (t1 = resultDigits.length, i = digitsShift; --i, i >= 0;) { - if (!(i < t1)) + for (t1 = resultDigits.$flags | 0, i = digitsShift; --i, i >= 0;) { + t1 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(i < resultDigits.length)) return A.ioore(resultDigits, i); resultDigits[i] = 0; } - t2 = resultUsed - 1; - if (!(t2 >= 0 && t2 < t1)) - return A.ioore(resultDigits, t2); - if (resultDigits[t2] === 0) - resultUsed = t2; + t1 = resultUsed - 1; + if (!(t1 >= 0 && t1 < resultDigits.length)) + return A.ioore(resultDigits, t1); + if (resultDigits[t1] === 0) + resultUsed = t1; return resultUsed; }, _BigIntImpl__rsh(xDigits, xUsed, n, resultDigits) { @@ -5788,18 +5314,20 @@ return A.ioore(xDigits, digitsShift); carry = B.JSInt_methods.$shr(xDigits[digitsShift], bitShift); last = xUsed - digitsShift - 1; - for (t2 = resultDigits.length, i = 0; i < last; ++i) { + for (t2 = resultDigits.$flags | 0, i = 0; i < last; ++i) { t3 = i + digitsShift + 1; if (!(t3 < t1)) return A.ioore(xDigits, t3); digit = xDigits[t3]; t3 = B.JSInt_methods.$shl((digit & bitMask) >>> 0, carryBitShift); - if (!(i < t2)) + t2 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(i < resultDigits.length)) return A.ioore(resultDigits, i); resultDigits[i] = (t3 | carry) >>> 0; carry = B.JSInt_methods.$shr(digit, bitShift); } - if (!(last >= 0 && last < t2)) + t2 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(last >= 0 && last < resultDigits.length)) return A.ioore(resultDigits, last); resultDigits[last] = carry; }, @@ -5821,14 +5349,15 @@ }, _BigIntImpl__absAdd(digits, used, otherDigits, otherUsed, resultDigits) { var t1, t2, t3, carry, i, t4; - for (t1 = digits.length, t2 = otherDigits.length, t3 = resultDigits.length, carry = 0, i = 0; i < otherUsed; ++i) { + for (t1 = digits.length, t2 = otherDigits.length, t3 = resultDigits.$flags | 0, carry = 0, i = 0; i < otherUsed; ++i) { if (!(i < t1)) return A.ioore(digits, i); t4 = digits[i]; if (!(i < t2)) return A.ioore(otherDigits, i); carry += t4 + otherDigits[i]; - if (!(i < t3)) + t3 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(i < resultDigits.length)) return A.ioore(resultDigits, i); resultDigits[i] = carry & 65535; carry = B.JSInt_methods._shrOtherPositive$1(carry, 16); @@ -5837,25 +5366,28 @@ if (!(i >= 0 && i < t1)) return A.ioore(digits, i); carry += digits[i]; - if (!(i < t3)) + t3 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(i < resultDigits.length)) return A.ioore(resultDigits, i); resultDigits[i] = carry & 65535; carry = B.JSInt_methods._shrOtherPositive$1(carry, 16); } - if (!(used >= 0 && used < t3)) + t3 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(used >= 0 && used < resultDigits.length)) return A.ioore(resultDigits, used); resultDigits[used] = carry; }, _BigIntImpl__absSub(digits, used, otherDigits, otherUsed, resultDigits) { var t1, t2, t3, carry, i, t4; - for (t1 = digits.length, t2 = otherDigits.length, t3 = resultDigits.length, carry = 0, i = 0; i < otherUsed; ++i) { + for (t1 = digits.length, t2 = otherDigits.length, t3 = resultDigits.$flags | 0, carry = 0, i = 0; i < otherUsed; ++i) { if (!(i < t1)) return A.ioore(digits, i); t4 = digits[i]; if (!(i < t2)) return A.ioore(otherDigits, i); carry += t4 - otherDigits[i]; - if (!(i < t3)) + t3 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(i < resultDigits.length)) return A.ioore(resultDigits, i); resultDigits[i] = carry & 65535; carry = 0 - (B.JSInt_methods._shrOtherPositive$1(carry, 16) & 1); @@ -5864,25 +5396,27 @@ if (!(i >= 0 && i < t1)) return A.ioore(digits, i); carry += digits[i]; - if (!(i < t3)) + t3 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(i < resultDigits.length)) return A.ioore(resultDigits, i); resultDigits[i] = carry & 65535; carry = 0 - (B.JSInt_methods._shrOtherPositive$1(carry, 16) & 1); } }, _BigIntImpl__mulAdd(x, multiplicandDigits, i, accumulatorDigits, j, n) { - var t1, t2, c, i0, t3, combined, j0, l; + var t1, t2, t3, c, i0, t4, combined, j0, l; if (x === 0) return; - for (t1 = multiplicandDigits.length, t2 = accumulatorDigits.length, c = 0; --n, n >= 0; j = j0, i = i0) { + for (t1 = multiplicandDigits.length, t2 = accumulatorDigits.length, t3 = accumulatorDigits.$flags | 0, c = 0; --n, n >= 0; j = j0, i = i0) { i0 = i + 1; if (!(i < t1)) return A.ioore(multiplicandDigits, i); - t3 = multiplicandDigits[i]; + t4 = multiplicandDigits[i]; if (!(j >= 0 && j < t2)) return A.ioore(accumulatorDigits, j); - combined = x * t3 + accumulatorDigits[j] + c; + combined = x * t4 + accumulatorDigits[j] + c; j0 = j + 1; + t3 & 2 && A.throwUnsupportedOperation(accumulatorDigits); accumulatorDigits[j] = combined & 65535; c = B.JSInt_methods._tdivFast$1(combined, 65536); } @@ -5891,6 +5425,7 @@ return A.ioore(accumulatorDigits, j); l = accumulatorDigits[j] + c; j0 = j + 1; + t3 & 2 && A.throwUnsupportedOperation(accumulatorDigits); accumulatorDigits[j] = l & 65535; c = B.JSInt_methods._tdivFast$1(l, 65536); } @@ -5914,9 +5449,6 @@ identityHashCode(object) { return A.objectHashCode(object); }, - Function_apply($function, positionalArguments) { - return A.Primitives_applyFunction($function, positionalArguments, null); - }, int_parse(source, radix) { var value = A.Primitives_parseInt(source, radix); if (value != null) @@ -5931,12 +5463,6 @@ throw error; throw A.wrapException("unreachable"); }, - DateTime$fromMillisecondsSinceEpoch(millisecondsSinceEpoch, isUtc) { - if (Math.abs(millisecondsSinceEpoch) > 864e13) - A.throwExpression(A.ArgumentError$("DateTime is outside valid range: " + millisecondsSinceEpoch, null)); - A.checkNotNullable(isUtc, "isUtc", type$.bool); - return new A.DateTime(millisecondsSinceEpoch, isUtc); - }, List_List$filled($length, fill, growable, $E) { var i, result = growable ? J.JSArray_JSArray$growable($length, $E) : J.JSArray_JSArray$fixed($length, $E); @@ -5949,16 +5475,18 @@ var t1, list = A._setArrayType([], $E._eval$1("JSArray<0>")); for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();) - B.JSArray_methods.add$1(list, $E._as(t1.get$current(t1))); + B.JSArray_methods.add$1(list, $E._as(t1.get$current())); if (growable) return list; - return J.JSArray_markFixedList(list, $E); + list.$flags = 1; + return list; }, List_List$of(elements, growable, $E) { var t1; if (growable) return A.List_List$_of(elements, $E); - t1 = J.JSArray_markFixedList(A.List_List$_of(elements, $E), $E); + t1 = A.List_List$_of(elements, $E); + t1.$flags = 1; return t1; }, List_List$_of(elements, $E) { @@ -5967,11 +5495,13 @@ return A._setArrayType(elements.slice(0), $E._eval$1("JSArray<0>")); list = A._setArrayType([], $E._eval$1("JSArray<0>")); for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();) - B.JSArray_methods.add$1(list, t1.get$current(t1)); + B.JSArray_methods.add$1(list, t1.get$current()); return list; }, List_List$unmodifiable(elements, $E) { - return J.JSArray_markUnmodifiableList(A.List_List$from(elements, false, $E)); + var result = A.List_List$from(elements, false, $E); + result.$flags = 3; + return result; }, String_String$fromCharCodes(charCodes, start, end) { var t1, t2, maxLength, array, len; @@ -6018,18 +5548,15 @@ return string; if (separator.length === 0) { do - string += A.S(iterator.get$current(iterator)); + string += A.S(iterator.get$current()); while (iterator.moveNext$0()); } else { - string += A.S(iterator.get$current(iterator)); + string += A.S(iterator.get$current()); for (; iterator.moveNext$0();) - string = string + separator + A.S(iterator.get$current(iterator)); + string = string + separator + A.S(iterator.get$current()); } return string; }, - NoSuchMethodError_NoSuchMethodError$withInvocation(receiver, invocation) { - return new A.NoSuchMethodError(receiver, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()); - }, _Uri__uriEncode(canonicalTable, text, encoding, spaceToPlus) { var t1, bytes, i, t2, byte, t3, _s16_ = "0123456789ABCDEF"; @@ -6205,7 +5732,7 @@ break; if (!it.moveNext$0()) return; - next = A.S(it.get$current(it)); + next = A.S(it.get$current()); B.JSArray_methods.add$1(parts, next); $length += next.length + 2; ++count; @@ -6220,7 +5747,7 @@ return A.ioore(parts, -1); penultimateString = parts.pop(); } else { - penultimate = it.get$current(it); + penultimate = it.get$current(); ++count; if (!it.moveNext$0()) { if (count <= 4) { @@ -6233,10 +5760,10 @@ penultimateString = parts.pop(); $length += ultimateString.length + 2; } else { - ultimate = it.get$current(it); + ultimate = it.get$current(); ++count; for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) { - ultimate0 = it.get$current(it); + ultimate0 = it.get$current(); ++count; if (count > 100) { while (true) { @@ -6308,7 +5835,7 @@ toZone.call$1(object); }, Uri_parse(uri) { - var delta, indices, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, isSimple, scheme, t1, t2, schemeAuth, queryStart0, pathStart0, userInfoStart, userInfo, host, portNumber, port, path, query, _null = null, + var delta, indices, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, isSimple, scheme, t1, t2, schemeAuth, queryStart0, pathStart0, port, userInfoStart, userInfo, host, portNumber, path, query, _null = null, end = uri.length; if (end >= 5) { if (4 >= end) @@ -6348,16 +5875,12 @@ if (portStart < hostStart) portStart = pathStart; isSimple = indices[7] < 0; - if (isSimple) - if (hostStart > schemeEnd + 3) { - scheme = _null; - isSimple = false; - } else { + scheme = _null; + if (isSimple) { + isSimple = false; + if (!(hostStart > schemeEnd + 3)) { t1 = portStart > 0; - if (t1 && portStart + 1 === pathStart) { - scheme = _null; - isSimple = false; - } else { + if (!(t1 && portStart + 1 === pathStart)) { if (!B.JSString_methods.startsWith$2(uri, "\\", pathStart)) if (hostStart > 0) t2 = B.JSString_methods.startsWith$2(uri, "\\", hostStart - 1) || B.JSString_methods.startsWith$2(uri, "\\", hostStart - 2); @@ -6365,71 +5888,64 @@ t2 = false; else t2 = true; - if (t2) { - scheme = _null; - isSimple = false; - } else { + if (!t2) { if (!(queryStart < end && queryStart === pathStart + 2 && B.JSString_methods.startsWith$2(uri, "..", pathStart))) t2 = queryStart > pathStart + 2 && B.JSString_methods.startsWith$2(uri, "/..", queryStart - 3); else t2 = true; - if (t2) - scheme = _null; - else if (schemeEnd === 4) - if (B.JSString_methods.startsWith$2(uri, "file", 0)) { - if (hostStart <= 0) { - if (!B.JSString_methods.startsWith$2(uri, "/", pathStart)) { - schemeAuth = "file:///"; - delta = 3; - } else { - schemeAuth = "file://"; - delta = 2; + if (!t2) + if (schemeEnd === 4) { + if (B.JSString_methods.startsWith$2(uri, "file", 0)) { + if (hostStart <= 0) { + if (!B.JSString_methods.startsWith$2(uri, "/", pathStart)) { + schemeAuth = "file:///"; + delta = 3; + } else { + schemeAuth = "file://"; + delta = 2; + } + uri = schemeAuth + B.JSString_methods.substring$2(uri, pathStart, end); + queryStart += delta; + fragmentStart += delta; + end = uri.length; + hostStart = 7; + portStart = 7; + pathStart = 7; + } else if (pathStart === queryStart) { + ++fragmentStart; + queryStart0 = queryStart + 1; + uri = B.JSString_methods.replaceRange$3(uri, pathStart, queryStart, "/"); + ++end; + queryStart = queryStart0; } - uri = schemeAuth + B.JSString_methods.substring$2(uri, pathStart, end); - queryStart += delta; - fragmentStart += delta; - end = uri.length; - hostStart = 7; - portStart = 7; - pathStart = 7; - } else if (pathStart === queryStart) { - ++fragmentStart; - queryStart0 = queryStart + 1; - uri = B.JSString_methods.replaceRange$3(uri, pathStart, queryStart, "/"); - ++end; - queryStart = queryStart0; + scheme = "file"; + } else if (B.JSString_methods.startsWith$2(uri, "http", 0)) { + if (t1 && portStart + 3 === pathStart && B.JSString_methods.startsWith$2(uri, "80", portStart + 1)) { + fragmentStart -= 3; + pathStart0 = pathStart - 3; + queryStart -= 3; + uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, ""); + end -= 3; + pathStart = pathStart0; + } + scheme = "http"; } - scheme = "file"; - } else if (B.JSString_methods.startsWith$2(uri, "http", 0)) { - if (t1 && portStart + 3 === pathStart && B.JSString_methods.startsWith$2(uri, "80", portStart + 1)) { - fragmentStart -= 3; - pathStart0 = pathStart - 3; - queryStart -= 3; + } else if (schemeEnd === 5 && B.JSString_methods.startsWith$2(uri, "https", 0)) { + if (t1 && portStart + 4 === pathStart && B.JSString_methods.startsWith$2(uri, "443", portStart + 1)) { + fragmentStart -= 4; + pathStart0 = pathStart - 4; + queryStart -= 4; uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, ""); end -= 3; pathStart = pathStart0; } - scheme = "http"; - } else - scheme = _null; - else if (schemeEnd === 5 && B.JSString_methods.startsWith$2(uri, "https", 0)) { - if (t1 && portStart + 4 === pathStart && B.JSString_methods.startsWith$2(uri, "443", portStart + 1)) { - fragmentStart -= 4; - pathStart0 = pathStart - 4; - queryStart -= 4; - uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, ""); - end -= 3; - pathStart = pathStart0; + scheme = "https"; } - scheme = "https"; - } else - scheme = _null; isSimple = !t2; } } } - else - scheme = _null; + } if (isSimple) return new A._SimpleUri(end < uri.length ? B.JSString_methods.substring$2(uri, 0, end) : uri, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme); if (scheme == null) @@ -6440,6 +5956,7 @@ A._Uri__fail(uri, 0, "Invalid empty scheme"); scheme = ""; } + port = _null; if (hostStart > 0) { userInfoStart = schemeEnd + 3; userInfo = userInfoStart < hostStart ? A._Uri__makeUserInfo(uri, userInfoStart, hostStart - 1) : ""; @@ -6448,11 +5965,9 @@ if (t1 < pathStart) { portNumber = A.Primitives_parseInt(B.JSString_methods.substring$2(uri, t1, pathStart), _null); port = A._Uri__makePort(portNumber == null ? A.throwExpression(A.FormatException$("Invalid port", uri, t1)) : portNumber, scheme); - } else - port = _null; + } } else { - port = _null; - host = port; + host = _null; userInfo = ""; } path = A._Uri__makePath(uri, pathStart, queryStart, _null, scheme, host != null); @@ -6640,7 +6155,7 @@ return index >= start && index < end ? index : end; }, _Uri__normalizeZoneID(host, start, end, prefix) { - var t1, index, sectionStart, isNormalized, char, replacement, t2, t3, tail, sourceLength, slice, + var t1, index, sectionStart, isNormalized, char, replacement, t2, t3, sourceLength, tail, slice, buffer = prefix !== "" ? new A.StringBuffer(prefix) : null; for (t1 = host.length, index = start, sectionStart = index, isNormalized = true; index < end;) { if (!(index >= 0 && index < t1)) @@ -6684,6 +6199,7 @@ } ++index; } else { + sourceLength = 1; if ((char & 64512) === 55296 && index + 1 < end) { t2 = index + 1; if (!(t2 < t1)) @@ -6692,10 +6208,8 @@ if ((tail & 64512) === 56320) { char = (char & 1023) << 10 | tail & 1023 | 65536; sourceLength = 2; - } else - sourceLength = 1; - } else - sourceLength = 1; + } + } slice = B.JSString_methods.substring$2(host, sectionStart, index); if (buffer == null) { buffer = new A.StringBuffer(""); @@ -6738,14 +6252,13 @@ if (!isNormalized) slice = slice.toLowerCase(); t3 = buffer._contents += slice; - if (t2) { + sourceLength = 3; + if (t2) replacement = B.JSString_methods.substring$2(host, index, index + 3); - sourceLength = 3; - } else if (replacement === "%") { + else if (replacement === "%") { replacement = "%25"; sourceLength = 1; - } else - sourceLength = 3; + } buffer._contents = t3 + replacement; index += sourceLength; sectionStart = index; @@ -6780,6 +6293,7 @@ if (t2) A._Uri__fail(host, index, "Invalid character"); else { + sourceLength = 1; if ((char & 64512) === 55296 && index + 1 < end) { t2 = index + 1; if (!(t2 < t1)) @@ -6788,10 +6302,8 @@ if ((tail & 64512) === 56320) { char = (char & 1023) << 10 | tail & 1023 | 65536; sourceLength = 2; - } else - sourceLength = 1; - } else - sourceLength = 1; + } + } slice = B.JSString_methods.substring$2(host, sectionStart, index); if (!isNormalized) slice = slice.toLowerCase(); @@ -6983,7 +6495,7 @@ return t1 == null ? B.JSString_methods.substring$2(component, start, end) : t1; }, _Uri__normalize(component, start, end, charTable, escapeDelimiters, replaceBackslash) { - var t1, t2, index, sectionStart, buffer, char, t3, replacement, sourceLength, tail, t4, _null = null; + var t1, t2, index, sectionStart, buffer, char, t3, sourceLength, replacement, tail, t4, _null = null; for (t1 = !escapeDelimiters, t2 = component.length, index = start, sectionStart = index, buffer = _null; index < end;) { if (!(index >= 0 && index < t2)) return A.ioore(component, index); @@ -6998,31 +6510,28 @@ if (t3) ++index; else { + sourceLength = 1; if (char === 37) { replacement = A._Uri__normalizeEscape(component, index, false); if (replacement == null) { index += 3; continue; } - if ("%" === replacement) { + if ("%" === replacement) replacement = "%25"; - sourceLength = 1; - } else + else sourceLength = 3; - } else if (char === 92 && replaceBackslash) { + } else if (char === 92 && replaceBackslash) replacement = "/"; - sourceLength = 1; - } else { + else { + t3 = false; if (t1) if (char <= 93) { t3 = char >>> 4; if (!(t3 < 8)) return A.ioore(B.List_VOY, t3); t3 = (B.List_VOY[t3] & 1 << (char & 15)) !== 0; - } else - t3 = false; - else - t3 = false; + } if (t3) { A._Uri__fail(component, index, "Invalid character"); sourceLength = _null; @@ -7037,12 +6546,9 @@ if ((tail & 64512) === 56320) { char = (char & 1023) << 10 | tail & 1023 | 65536; sourceLength = 2; - } else - sourceLength = 1; - } else - sourceLength = 1; - } else - sourceLength = 1; + } + } + } replacement = A._Uri__escapeChar(char); } } @@ -7209,7 +6715,7 @@ B.JSArray_methods.add$1(indices, i); t2 = i + 1; if ((indices.length & 1) === 1) - text = B.C_Base64Codec.normalize$3(0, text, t2, t1); + text = B.C_Base64Codec.normalize$3(text, t2, t1); else { data = A._Uri__normalize(text, t2, t1, B.List_42A, true, false); if (data != null) @@ -7407,13 +6913,10 @@ }, _BigIntImpl_hashCode_finish: function _BigIntImpl_hashCode_finish() { }, - NoSuchMethodError_toString_closure: function NoSuchMethodError_toString_closure(t0, t1) { - this._box_0 = t0; - this.sb = t1; - }, - DateTime: function DateTime(t0, t1) { + DateTime: function DateTime(t0, t1, t2) { this._value = t0; - this.isUtc = t1; + this._microsecond = t1; + this.isUtc = t2; }, Duration: function Duration(t0) { this._duration = t0; @@ -7449,13 +6952,6 @@ _.name = t3; _.message = t4; }, - NoSuchMethodError: function NoSuchMethodError(t0, t1, t2, t3) { - var _ = this; - _._core$_receiver = t0; - _._core$_memberName = t1; - _._core$_arguments = t2; - _._namedArguments = t3; - }, UnsupportedError: function UnsupportedError(t0) { this.message = t0; }, @@ -7552,12149 +7048,8786 @@ _._fragment = t6; _.___Uri_hashCode_FI = _.___Uri_pathSegments_FI = _.___Uri__text_FI = $; }, - CustomEvent_CustomEvent(type, detail) { - var e, t1, exception, - canBubble = true, - cancelable = true; - detail = detail; - t1 = document.createEvent("CustomEvent"); - t1.toString; - e = type$.CustomEvent._as(t1); - e._dartDetail = detail; - if (type$.List_dynamic._is(detail) || type$.Map_dynamic_dynamic._is(detail) || typeof detail == "string" || typeof detail == "number") - try { - detail = new A._StructuredCloneDart2Js([], []).walk$1(detail); - J._initCustomEvent$4$x(e, type, canBubble, cancelable, detail); - } catch (exception) { - J._initCustomEvent$4$x(e, type, canBubble, cancelable, null); - } - else - J._initCustomEvent$4$x(e, type, canBubble, cancelable, null); - return e; - }, - Element_Element$html(html, treeSanitizer, validator) { - var t2, - t1 = document.body; - t1.toString; - t2 = type$._ChildNodeListLazy; - return type$.Element._as(new A.WhereIterable(new A._ChildNodeListLazy(B.BodyElement_methods.createFragment$3$treeSanitizer$validator(t1, html, treeSanitizer, validator)), t2._eval$1("bool(ListBase.E)")._as(new A.Element_Element$html_closure()), t2._eval$1("WhereIterable")).get$single(0)); - }, - Element__safeTagName(element) { - var t1, exception, - result = "element tag unavailable"; - try { - t1 = element.tagName; - t1.toString; - result = t1; - } catch (exception) { + JSAnyUtilityExtension_instanceOfString(_this, constructorName) { + var parts, $constructor, t1, t2, _i, part; + if (constructorName.length === 0) + return false; + parts = constructorName.split("."); + $constructor = type$.JSObject._as(self); + for (t1 = parts.length, t2 = type$.nullable_JSObject, _i = 0; _i < t1; ++_i) { + part = parts[_i]; + $constructor = t2._as($constructor[part]); + if ($constructor == null) + return false; } - return result; - }, - HttpRequest_request(url, method, responseType, withCredentials) { - var t3, t4, - t1 = new A._Future($.Zone__current, type$._Future_HttpRequest), - completer = new A._AsyncCompleter(t1, type$._AsyncCompleter_HttpRequest), - t2 = new XMLHttpRequest(); - t2.toString; - B.HttpRequest_methods.open$3$async(t2, method, url, true); - if (withCredentials != null) - B.HttpRequest_methods.set$withCredentials(t2, withCredentials); - if (responseType != null) - t2.responseType = responseType; - t3 = type$.nullable_void_Function_ProgressEvent; - t4 = type$.ProgressEvent; - A._EventStreamSubscription$(t2, "load", t3._as(new A.HttpRequest_request_closure(t2, completer)), false, t4); - A._EventStreamSubscription$(t2, "error", t3._as(completer.get$completeError()), false, t4); - t2.send(); - return t1; - }, - ScriptElement___new_tearOff() { - var t1 = document.createElement("script"); - t1.toString; - return t1; - }, - _EventStreamSubscription$(_target, _eventType, onData, _useCapture, $T) { - var t1 = onData == null ? null : A._wrapZone(new A._EventStreamSubscription_closure(onData), type$.Event); - t1 = new A._EventStreamSubscription(_target, _eventType, t1, false, $T._eval$1("_EventStreamSubscription<0>")); - t1._tryResume$0(); - return t1; - }, - _Html5NodeValidator$(uriPolicy) { - var t1 = document.createElement("a"); - t1.toString; - t1 = new A._SameOriginUriPolicy(t1, type$.Location._as(window.location)); - t1 = new A._Html5NodeValidator(t1); - t1._Html5NodeValidator$1$uriPolicy(uriPolicy); - return t1; + return _this instanceof type$.JavaScriptFunction._as($constructor); }, - _Html5NodeValidator__standardAttributeValidator(element, attributeName, value, context) { - type$.Element._as(element); - A._asString(attributeName); - A._asString(value); - type$._Html5NodeValidator._as(context); - return true; + FutureOfVoidToJSPromise_get_toJS(_this) { + return type$.JSObject._as(new self.Promise(A._functionToJS2(new A.FutureOfVoidToJSPromise_get_toJS_closure(_this)))); }, - _Html5NodeValidator__uriAttributeValidator(element, attributeName, value, context) { - var t1, t2, t3, t4, t5; - type$.Element._as(element); - A._asString(attributeName); - A._asString(value); - t1 = type$._Html5NodeValidator._as(context).uriPolicy; - t2 = t1._hiddenAnchor; - B.AnchorElement_methods.set$href(t2, value); - t3 = t2.hostname; - t1 = t1._loc; - if (t3 == t1.hostname) { - t4 = t2.port; - t5 = t1.port; - t5.toString; - if (t4 === t5) { - t4 = t2.protocol; - t1 = t1.protocol; - t1.toString; - t1 = t4 === t1; - } else - t1 = false; - } else - t1 = false; - if (!t1) - if (t3 === "") - if (t2.port === "") { - t1 = t2.protocol; - t1 = t1 === ":" || t1 === ""; - } else - t1 = false; - else - t1 = false; - else - t1 = true; - return t1; + FutureOfVoidToJSPromise_get_toJS_closure: function FutureOfVoidToJSPromise_get_toJS_closure(t0) { + this._this = t0; }, - _TemplatingNodeValidator$() { - var t1 = type$.String, - t2 = A.LinkedHashSet_LinkedHashSet$from(B.List_ym9, t1), - t3 = A._setArrayType(["TEMPLATE"], type$.JSArray_String), - t4 = type$.String_Function_String._as(new A._TemplatingNodeValidator_closure()); - t1 = new A._TemplatingNodeValidator(t2, A.LinkedHashSet_LinkedHashSet(t1), A.LinkedHashSet_LinkedHashSet(t1), A.LinkedHashSet_LinkedHashSet(t1), null); - t1._SimpleNodeValidator$4$allowedAttributes$allowedElements$allowedUriAttributes(null, new A.MappedListIterable(B.List_ym9, t4, type$.MappedListIterable_String_String), t3, null); - return t1; + FutureOfVoidToJSPromise_get_toJS__closure: function FutureOfVoidToJSPromise_get_toJS__closure(t0) { + this.resolve = t0; }, - _convertNativeToDart_XHR_Response(o) { - if (type$.Document._is(o)) - return o; - return new A._AcceptStructuredCloneDart2Js([], []).convertNativeToDart_AcceptStructuredClone$2$mustCopy(o, true); + FutureOfVoidToJSPromise_get_toJS__closure0: function FutureOfVoidToJSPromise_get_toJS__closure0(t0) { + this.reject = t0; }, - _DOMWindowCrossFrame__createSafe(w) { - var t1 = window; - t1.toString; - if (w === t1) - return type$.WindowBase._as(w); - else - return new A._DOMWindowCrossFrame(); + _functionToJS0(f) { + var result; + if (typeof f == "function") + throw A.wrapException(A.ArgumentError$("Attempting to rewrap a JS function.", null)); + result = function(_call, f) { + return function() { + return _call(f); + }; + }(A._callDartFunctionFast0, f); + result[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f; + return result; }, - _wrapZone(callback, $T) { - var t1 = $.Zone__current; - if (t1 === B.C__RootZone) - return callback; - return t1.bindUnaryCallbackGuarded$1$1(callback, $T); + _functionToJS1(f) { + var result; + if (typeof f == "function") + throw A.wrapException(A.ArgumentError$("Attempting to rewrap a JS function.", null)); + result = function(_call, f) { + return function(arg1) { + return _call(f, arg1, arguments.length); + }; + }(A._callDartFunctionFast1, f); + result[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f; + return result; }, - HtmlElement: function HtmlElement() { + _functionToJS2(f) { + var result; + if (typeof f == "function") + throw A.wrapException(A.ArgumentError$("Attempting to rewrap a JS function.", null)); + result = function(_call, f) { + return function(arg1, arg2) { + return _call(f, arg1, arg2, arguments.length); + }; + }(A._callDartFunctionFast2, f); + result[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f; + return result; }, - AccessibleNodeList: function AccessibleNodeList() { + _callDartFunctionFast0(callback) { + return type$.Function._as(callback).call$0(); }, - AnchorElement: function AnchorElement() { + _callDartFunctionFast1(callback, arg1, $length) { + type$.Function._as(callback); + if (A._asInt($length) >= 1) + return callback.call$1(arg1); + return callback.call$0(); }, - AreaElement: function AreaElement() { + _callDartFunctionFast2(callback, arg1, arg2, $length) { + type$.Function._as(callback); + A._asInt($length); + if ($length >= 2) + return callback.call$2(arg1, arg2); + if ($length === 1) + return callback.call$1(arg1); + return callback.call$0(); }, - BaseElement: function BaseElement() { + _noJsifyRequired(o) { + return o == null || A._isBool(o) || typeof o == "number" || typeof o == "string" || type$.Int8List._is(o) || type$.Uint8List._is(o) || type$.Uint8ClampedList._is(o) || type$.Int16List._is(o) || type$.Uint16List._is(o) || type$.Int32List._is(o) || type$.Uint32List._is(o) || type$.Float32List._is(o) || type$.Float64List._is(o) || type$.ByteBuffer._is(o) || type$.ByteData._is(o); }, - Blob: function Blob() { + jsify(object) { + if (A._noJsifyRequired(object)) + return object; + return new A.jsify__convert(new A._IdentityHashMap(type$._IdentityHashMap_of_nullable_Object_and_nullable_Object)).call$1(object); }, - BodyElement: function BodyElement() { + getProperty(o, $name, $T) { + return $T._as(o[$name]); + }, + callConstructor(constr, $arguments, $T) { + var args, factoryFunction; + if ($arguments == null) + return $T._as(new constr()); + if ($arguments instanceof Array) + switch ($arguments.length) { + case 0: + return $T._as(new constr()); + case 1: + return $T._as(new constr($arguments[0])); + case 2: + return $T._as(new constr($arguments[0], $arguments[1])); + case 3: + return $T._as(new constr($arguments[0], $arguments[1], $arguments[2])); + case 4: + return $T._as(new constr($arguments[0], $arguments[1], $arguments[2], $arguments[3])); + } + args = [null]; + B.JSArray_methods.addAll$1(args, $arguments); + factoryFunction = constr.bind.apply(constr, args); + String(factoryFunction); + return $T._as(new factoryFunction()); }, - CharacterData: function CharacterData() { + promiseToFuture(jsPromise, $T) { + var t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>")), + completer = new A._AsyncCompleter(t1, $T._eval$1("_AsyncCompleter<0>")); + jsPromise.then(A.convertDartClosureToJS(new A.promiseToFuture_closure(completer, $T), 1), A.convertDartClosureToJS(new A.promiseToFuture_closure0(completer), 1)); + return t1; }, - CssPerspective: function CssPerspective() { + _noDartifyRequired(o) { + return o == null || typeof o === "boolean" || typeof o === "number" || typeof o === "string" || o instanceof Int8Array || o instanceof Uint8Array || o instanceof Uint8ClampedArray || o instanceof Int16Array || o instanceof Uint16Array || o instanceof Int32Array || o instanceof Uint32Array || o instanceof Float32Array || o instanceof Float64Array || o instanceof ArrayBuffer || o instanceof DataView; }, - CssRule: function CssRule() { + dartify(o) { + if (A._noDartifyRequired(o)) + return o; + return new A.dartify_convert(new A._IdentityHashMap(type$._IdentityHashMap_of_nullable_Object_and_nullable_Object)).call$1(o); }, - CssStyleDeclaration: function CssStyleDeclaration() { + jsify__convert: function jsify__convert(t0) { + this._convertedObjects = t0; }, - CssStyleDeclarationBase: function CssStyleDeclarationBase() { + promiseToFuture_closure: function promiseToFuture_closure(t0, t1) { + this.completer = t0; + this.T = t1; }, - CssStyleValue: function CssStyleValue() { + promiseToFuture_closure0: function promiseToFuture_closure0(t0) { + this.completer = t0; }, - CssTransformComponent: function CssTransformComponent() { + dartify_convert: function dartify_convert(t0) { + this._convertedObjects = t0; }, - CssTransformValue: function CssTransformValue() { + NullRejectionException: function NullRejectionException(t0) { + this.isUndefined = t0; }, - CssUnparsedValue: function CssUnparsedValue() { + _JSRandom: function _JSRandom() { }, - CustomEvent: function CustomEvent() { + _JSSecureRandom: function _JSSecureRandom(t0) { + this._math$_buffer = t0; }, - DataTransferItemList: function DataTransferItemList() { + AsyncMemoizer: function AsyncMemoizer(t0, t1) { + this._async_memoizer$_completer = t0; + this.$ti = t1; }, - Document: function Document() { + DelegatingStreamSink: function DelegatingStreamSink() { }, - DomException: function DomException() { + ErrorResult: function ErrorResult(t0, t1) { + this.error = t0; + this.stackTrace = t1; }, - DomImplementation: function DomImplementation() { + ValueResult: function ValueResult(t0, t1) { + this.value = t0; + this.$ti = t1; }, - DomRectList: function DomRectList() { + StreamQueue: function StreamQueue(t0, t1, t2, t3) { + var _ = this; + _._stream_queue$_source = t0; + _._stream_queue$_subscription = null; + _._isDone = false; + _._eventsReceived = 0; + _._eventQueue = t1; + _._requestQueue = t2; + _.$ti = t3; }, - DomRectReadOnly: function DomRectReadOnly() { + StreamQueue__ensureListening_closure: function StreamQueue__ensureListening_closure(t0) { + this.$this = t0; }, - DomStringList: function DomStringList() { + StreamQueue__ensureListening_closure1: function StreamQueue__ensureListening_closure1(t0) { + this.$this = t0; }, - DomTokenList: function DomTokenList() { + StreamQueue__ensureListening_closure0: function StreamQueue__ensureListening_closure0(t0) { + this.$this = t0; }, - _FrozenElementList: function _FrozenElementList(t0, t1) { - this._nodeList = t0; + _NextRequest: function _NextRequest(t0, t1) { + this._stream_queue$_completer = t0; this.$ti = t1; }, - Element: function Element() { + _HasNextRequest: function _HasNextRequest(t0, t1) { + this._stream_queue$_completer = t0; + this.$ti = t1; }, - Element_Element$html_closure: function Element_Element$html_closure() { + hashObjects(objects) { + return A._finish(B.JSArray_methods.fold$1$2(objects, 0, new A.hashObjects_closure(), type$.int)); }, - Event: function Event() { + _combine(hash, value) { + hash = hash + value & 536870911; + hash = hash + ((hash & 524287) << 10) & 536870911; + return hash ^ hash >>> 6; }, - EventTarget: function EventTarget() { + _finish(hash) { + hash = hash + ((hash & 67108863) << 3) & 536870911; + hash ^= hash >>> 11; + return hash + ((hash & 16383) << 15) & 536870911; }, - File: function File() { + hashObjects_closure: function hashObjects_closure() { }, - FileList: function FileList() { + BuiltList_BuiltList$from(iterable, $E) { + var t1; + if (iterable instanceof A._BuiltList) { + t1 = A.createRuntimeType($E); + t1 = A.createRuntimeType(iterable.$ti._precomputed1) === t1; + } else + t1 = false; + if (t1) + return $E._eval$1("BuiltList<0>")._as(iterable); + else { + t1 = new A._BuiltList(A.List_List$from(iterable, false, $E), $E._eval$1("_BuiltList<0>")); + t1._list$_maybeCheckForNull$0(); + return t1; + } }, - FileWriter: function FileWriter() { + ListBuilder_ListBuilder(iterable, $E) { + var t1 = new A.ListBuilder($E._eval$1("ListBuilder<0>")); + t1.replace$1(iterable); + return t1; }, - FormElement: function FormElement() { + BuiltList: function BuiltList() { }, - Gamepad: function Gamepad() { + _BuiltList: function _BuiltList(t0, t1) { + this._list = t0; + this._list$_hashCode = null; + this.$ti = t1; }, - History: function History() { + ListBuilder: function ListBuilder(t0) { + this.__ListBuilder__list_A = $; + this._listOwner = null; + this.$ti = t0; }, - HtmlCollection: function HtmlCollection() { + BuiltListMultimap_BuiltListMultimap($K, $V) { + var t1 = A._BuiltListMultimap$copy(B.Map_empty.get$keys(), new A.BuiltListMultimap_BuiltListMultimap_closure(B.Map_empty), $K, $V); + return t1; }, - HtmlDocument: function HtmlDocument() { + _BuiltListMultimap$copy(keys, lookup, $K, $V) { + var t1 = new A._BuiltListMultimap(A.LinkedHashMap_LinkedHashMap$_empty($K, $V._eval$1("BuiltList<0>")), A.BuiltList_BuiltList$from(B.List_empty, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("_BuiltListMultimap<1,2>")); + t1._BuiltListMultimap$copy$2(keys, lookup, $K, $V); + return t1; }, - HttpRequest: function HttpRequest() { + ListMultimapBuilder_ListMultimapBuilder($K, $V) { + var t1 = new A.ListMultimapBuilder($K._eval$1("@<0>")._bind$1($V)._eval$1("ListMultimapBuilder<1,2>")); + t1.replace$1(B.Map_empty); + return t1; }, - HttpRequest_request_closure: function HttpRequest_request_closure(t0, t1) { - this.xhr = t0; - this.completer = t1; + BuiltListMultimap: function BuiltListMultimap() { }, - HttpRequestEventTarget: function HttpRequestEventTarget() { + BuiltListMultimap_BuiltListMultimap_closure: function BuiltListMultimap_BuiltListMultimap_closure(t0) { + this.multimap = t0; }, - ImageData: function ImageData() { + BuiltListMultimap_hashCode_closure: function BuiltListMultimap_hashCode_closure(t0) { + this.$this = t0; }, - KeyboardEvent: function KeyboardEvent() { + _BuiltListMultimap: function _BuiltListMultimap(t0, t1, t2) { + var _ = this; + _._list_multimap$_map = t0; + _._emptyList = t1; + _._list_multimap$_keys = _._list_multimap$_hashCode = null; + _.$ti = t2; }, - Location: function Location() { + ListMultimapBuilder: function ListMultimapBuilder(t0) { + var _ = this; + _.__ListMultimapBuilder__builtMap_A = $; + _._list_multimap$_builtMapOwner = null; + _.__ListMultimapBuilder__builderMap_A = $; + _.$ti = t0; }, - MediaList: function MediaList() { + ListMultimapBuilder_replace_closure: function ListMultimapBuilder_replace_closure(t0) { + this.multimap = t0; }, - MessageEvent: function MessageEvent() { + BuiltMap_BuiltMap($K, $V) { + var t1 = new A._BuiltMap(null, A.LinkedHashMap_LinkedHashMap$_empty($K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("_BuiltMap<1,2>")); + t1._BuiltMap$copyAndCheckTypes$2(B.Map_empty.get$keys(), new A.BuiltMap_BuiltMap_closure(B.Map_empty), $K, $V); + return t1; }, - MessagePort: function MessagePort() { + MapBuilder_MapBuilder($K, $V) { + var t1 = new A.MapBuilder(null, $, null, $K._eval$1("@<0>")._bind$1($V)._eval$1("MapBuilder<1,2>")); + t1.replace$1(B.Map_empty); + return t1; }, - MidiInputMap: function MidiInputMap() { + BuiltMap: function BuiltMap() { }, - MidiInputMap_keys_closure: function MidiInputMap_keys_closure(t0) { - this.keys = t0; + BuiltMap_BuiltMap_closure: function BuiltMap_BuiltMap_closure(t0) { + this.map = t0; }, - MidiOutputMap: function MidiOutputMap() { + BuiltMap_hashCode_closure: function BuiltMap_hashCode_closure(t0) { + this.$this = t0; }, - MidiOutputMap_keys_closure: function MidiOutputMap_keys_closure(t0) { - this.keys = t0; + _BuiltMap: function _BuiltMap(t0, t1, t2) { + var _ = this; + _._mapFactory = t0; + _._map$_map = t1; + _._map$_keys = _._map$_hashCode = null; + _.$ti = t2; }, - MimeType: function MimeType() { + MapBuilder: function MapBuilder(t0, t1, t2, t3) { + var _ = this; + _._mapFactory = t0; + _.__MapBuilder__map_A = t1; + _._mapOwner = t2; + _.$ti = t3; }, - MimeTypeArray: function MimeTypeArray() { + MapBuilder_replace_closure: function MapBuilder_replace_closure(t0, t1) { + this.$this = t0; + this.replacement = t1; }, - _ChildNodeListLazy: function _ChildNodeListLazy(t0) { - this._this = t0; + BuiltSet_BuiltSet$from(iterable, $E) { + var t1 = new A._BuiltSet(null, A.LinkedHashSet_LinkedHashSet$from(iterable, $E), $E._eval$1("_BuiltSet<0>")); + t1._maybeCheckForNull$0(); + return t1; }, - Node: function Node() { + SetBuilder_SetBuilder($E) { + var t1 = new A.SetBuilder(null, $, null, $E._eval$1("SetBuilder<0>")); + t1.replace$1(B.List_empty); + return t1; }, - NodeList: function NodeList() { + BuiltSet: function BuiltSet() { }, - Plugin: function Plugin() { + BuiltSet_hashCode_closure: function BuiltSet_hashCode_closure(t0) { + this.$this = t0; }, - PluginArray: function PluginArray() { + _BuiltSet: function _BuiltSet(t0, t1, t2) { + var _ = this; + _._setFactory = t0; + _._set$_set = t1; + _._set$_hashCode = null; + _.$ti = t2; }, - ProgressEvent: function ProgressEvent() { + SetBuilder: function SetBuilder(t0, t1, t2, t3) { + var _ = this; + _._setFactory = t0; + _.__SetBuilder__set_A = t1; + _._setOwner = t2; + _.$ti = t3; }, - RtcStatsReport: function RtcStatsReport() { - }, - RtcStatsReport_keys_closure: function RtcStatsReport_keys_closure(t0) { - this.keys = t0; - }, - ScriptElement: function ScriptElement() { - }, - SelectElement: function SelectElement() { + SetMultimapBuilder_SetMultimapBuilder($K, $V) { + var t1 = new A.SetMultimapBuilder($K._eval$1("@<0>")._bind$1($V)._eval$1("SetMultimapBuilder<1,2>")); + t1.replace$1(B.Map_empty); + return t1; }, - SharedArrayBuffer: function SharedArrayBuffer() { + BuiltSetMultimap: function BuiltSetMultimap() { }, - SourceBuffer: function SourceBuffer() { + BuiltSetMultimap_hashCode_closure: function BuiltSetMultimap_hashCode_closure(t0) { + this.$this = t0; }, - SourceBufferList: function SourceBufferList() { + _BuiltSetMultimap: function _BuiltSetMultimap(t0, t1, t2) { + var _ = this; + _._set_multimap$_map = t0; + _._emptySet = t1; + _._set_multimap$_keys = _._set_multimap$_hashCode = null; + _.$ti = t2; }, - SpeechGrammar: function SpeechGrammar() { + SetMultimapBuilder: function SetMultimapBuilder(t0) { + var _ = this; + _.__SetMultimapBuilder__builtMap_A = $; + _._builtMapOwner = null; + _.__SetMultimapBuilder__builderMap_A = $; + _.$ti = t0; }, - SpeechGrammarList: function SpeechGrammarList() { + SetMultimapBuilder_replace_closure: function SetMultimapBuilder_replace_closure(t0) { + this.multimap = t0; }, - SpeechRecognitionResult: function SpeechRecognitionResult() { + $jc(hash, value) { + hash = hash + value & 536870911; + hash = hash + ((hash & 524287) << 10) & 536870911; + return hash ^ hash >>> 6; }, - Storage: function Storage() { + $jf(hash) { + hash = hash + ((hash & 67108863) << 3) & 536870911; + hash ^= hash >>> 11; + return hash + ((hash & 16383) << 15) & 536870911; }, - Storage_keys_closure: function Storage_keys_closure(t0) { - this.keys = t0; + BuiltValueNullFieldError_checkNotNull(value, type, field, $T) { + if (value == null) + throw A.wrapException(new A.BuiltValueNullFieldError(type, field)); + return value; }, - StyleSheet: function StyleSheet() { + BuiltValueNestedFieldError$(type, field, error) { + return new A.BuiltValueNestedFieldError(type, field, error); }, - TableElement: function TableElement() { + EnumClass: function EnumClass() { }, - TableRowElement: function TableRowElement() { + newBuiltValueToStringHelper_closure: function newBuiltValueToStringHelper_closure() { }, - TableSectionElement: function TableSectionElement() { + IndentingBuiltValueToStringHelper: function IndentingBuiltValueToStringHelper(t0) { + this._result = t0; }, - TemplateElement: function TemplateElement() { + BuiltValueNullFieldError: function BuiltValueNullFieldError(t0, t1) { + this.type = t0; + this.field = t1; }, - TextTrack: function TextTrack() { + BuiltValueNestedFieldError: function BuiltValueNestedFieldError(t0, t1, t2) { + this.type = t0; + this.field = t1; + this.error = t2; }, - TextTrackCue: function TextTrackCue() { + JsonObject_JsonObject(value) { + if (typeof value == "number") + return new A.NumJsonObject(value); + else if (typeof value == "string") + return new A.StringJsonObject(value); + else if (A._isBool(value)) + return new A.BoolJsonObject(value); + else if (type$.List_nullable_Object._is(value)) + return new A.ListJsonObject(new A.UnmodifiableListView(value, type$.UnmodifiableListView_nullable_Object)); + else if (type$.Map_of_String_and_nullable_Object._is(value)) + return new A.MapJsonObject(new A.UnmodifiableMapView(value, type$.UnmodifiableMapView_of_String_and_nullable_Object)); + else if (type$.Map_dynamic_dynamic._is(value)) + return new A.MapJsonObject(new A.UnmodifiableMapView(value.cast$2$0(0, type$.String, type$.nullable_Object), type$.UnmodifiableMapView_of_String_and_nullable_Object)); + else + throw A.wrapException(A.ArgumentError$value(value, "value", "Must be bool, List, Map, num or String")); }, - TextTrackCueList: function TextTrackCueList() { + JsonObject: function JsonObject() { }, - TextTrackList: function TextTrackList() { + BoolJsonObject: function BoolJsonObject(t0) { + this.value = t0; }, - TimeRanges: function TimeRanges() { + ListJsonObject: function ListJsonObject(t0) { + this.value = t0; }, - Touch: function Touch() { + MapJsonObject: function MapJsonObject(t0) { + this.value = t0; }, - TouchList: function TouchList() { + NumJsonObject: function NumJsonObject(t0) { + this.value = t0; }, - TrackDefaultList: function TrackDefaultList() { + StringJsonObject: function StringJsonObject(t0) { + this.value = t0; }, - UIEvent: function UIEvent() { + Serializers_Serializers() { + var t1 = type$.Type, + t2 = type$.Serializer_dynamic, + t3 = type$.String; + t2 = new A.BuiltJsonSerializersBuilder(A.MapBuilder_MapBuilder(t1, t2), A.MapBuilder_MapBuilder(t3, t2), A.MapBuilder_MapBuilder(t3, t2), A.MapBuilder_MapBuilder(type$.FullType, type$.Function), A.ListBuilder_ListBuilder(B.List_empty, type$.SerializerPlugin)); + t2.add$1(0, new A.BigIntSerializer(A.BuiltList_BuiltList$from([B.Type_BigInt_C3o, A.getRuntimeTypeOfDartObject($.$get$_BigIntImpl_zero())], t1))); + t2.add$1(0, new A.BoolSerializer(A.BuiltList_BuiltList$from([B.Type_bool_RoS], t1))); + t3 = type$.Object; + t2.add$1(0, new A.BuiltListSerializer(A.BuiltList_BuiltList$from([B.Type_BuiltList_27p, A.getRuntimeTypeOfDartObject(A.BuiltList_BuiltList$from(B.List_empty, t3))], t1))); + t2.add$1(0, new A.BuiltListMultimapSerializer(A.BuiltList_BuiltList$from([B.Type_BuiltListMultimap_apl, A.getRuntimeTypeOfDartObject(A.BuiltListMultimap_BuiltListMultimap(t3, t3))], t1))); + t2.add$1(0, new A.BuiltMapSerializer(A.BuiltList_BuiltList$from([B.Type_BuiltMap_MUU, A.getRuntimeTypeOfDartObject(A.BuiltMap_BuiltMap(t3, t3))], t1))); + t2.add$1(0, new A.BuiltSetSerializer(A.BuiltList_BuiltList$from([B.Type_BuiltSet_MMh, A.getRuntimeTypeOfDartObject(A.BuiltSet_BuiltSet$from(B.List_empty, t3))], t1))); + t2.add$1(0, new A.BuiltSetMultimapSerializer(A.BuiltSet_BuiltSet$from([B.Type_BuiltSetMultimap_Xbt], t1))); + t2.add$1(0, new A.DateTimeSerializer(A.BuiltList_BuiltList$from([B.Type_DateTime_H1G], t1))); + t2.add$1(0, new A.DoubleSerializer(A.BuiltList_BuiltList$from([B.Type_double_23F], t1))); + t2.add$1(0, new A.DurationSerializer(A.BuiltList_BuiltList$from([B.Type_Duration_86y], t1))); + t2.add$1(0, new A.IntSerializer(A.BuiltList_BuiltList$from([B.Type_int_8nG], t1))); + t2.add$1(0, new A.Int32Serializer(A.BuiltList_BuiltList$from([B.Type_Int32_kyU], t1))); + t2.add$1(0, new A.Int64Serializer(A.BuiltList_BuiltList$from([B.Type_Int64_chs], t1))); + t2.add$1(0, new A.JsonObjectSerializer(A.BuiltList_BuiltList$from([B.Type_JsonObject_aJ0, B.Type_BoolJsonObject_Ocu, B.Type_ListJsonObject_l4J, B.Type_MapJsonObject_OYg, B.Type_NumJsonObject_u6D, B.Type_StringJsonObject_wcs], t1))); + t2.add$1(0, new A.NullSerializer(A.BuiltList_BuiltList$from([B.Type_Null_a9w], t1))); + t2.add$1(0, new A.NumSerializer(A.BuiltList_BuiltList$from([B.Type_num_EOZ], t1))); + t2.add$1(0, new A.RegExpSerializer(A.BuiltList_BuiltList$from([B.Type_RegExp_NMc, $.$get$_runtimeType()], t1))); + t2.add$1(0, new A.StringSerializer(A.BuiltList_BuiltList$from([B.Type_String_J2O], t1))); + t2.add$1(0, new A.Uint8ListSerializer()); + t2.add$1(0, new A.UriSerializer(A.BuiltList_BuiltList$from([B.Type_Uri_aPa, A.getRuntimeTypeOfDartObject(A.Uri_parse("http://example.com")), A.getRuntimeTypeOfDartObject(A.Uri_parse("http://example.com:"))], t1))); + t2.addBuilderFactory$2(B.FullType_cgN, new A.Serializers_Serializers_closure()); + t2.addBuilderFactory$2(B.FullType_ow7, new A.Serializers_Serializers_closure0()); + t2.addBuilderFactory$2(B.FullType_wbi, new A.Serializers_Serializers_closure1()); + t2.addBuilderFactory$2(B.FullType_4aQ, new A.Serializers_Serializers_closure2()); + t2.addBuilderFactory$2(B.FullType_2pj, new A.Serializers_Serializers_closure3()); + return t2.build$0(); }, - Url: function Url() { + FullType__getRawName(type) { + var $name = J.toString$0$(type), + genericsStart = B.JSString_methods.indexOf$1($name, "<"); + return genericsStart === -1 ? $name : B.JSString_methods.substring$2($name, 0, genericsStart); }, - VideoTrackList: function VideoTrackList() { + DeserializationError_DeserializationError(json, type, error) { + var limitedJson = J.toString$0$(json), + t1 = limitedJson.length; + if (t1 > 80) + B.JSString_methods.replaceRange$3(limitedJson, 77, t1, "..."); + return new A.DeserializationError(type, error); }, - Window: function Window() { + Serializers_Serializers_closure: function Serializers_Serializers_closure() { }, - WorkerGlobalScope: function WorkerGlobalScope() { + Serializers_Serializers_closure0: function Serializers_Serializers_closure0() { }, - _Attr: function _Attr() { + Serializers_Serializers_closure1: function Serializers_Serializers_closure1() { }, - _CssRuleList: function _CssRuleList() { + Serializers_Serializers_closure2: function Serializers_Serializers_closure2() { }, - _DomRect: function _DomRect() { + Serializers_Serializers_closure3: function Serializers_Serializers_closure3() { }, - _GamepadList: function _GamepadList() { + FullType: function FullType(t0, t1, t2) { + this.root = t0; + this.parameters = t1; + this.nullable = t2; }, - _NamedNodeMap: function _NamedNodeMap() { + DeserializationError: function DeserializationError(t0, t1) { + this.type = t0; + this.error = t1; }, - _SpeechRecognitionResultList: function _SpeechRecognitionResultList() { + BigIntSerializer: function BigIntSerializer(t0) { + this.types = t0; }, - _StyleSheetList: function _StyleSheetList() { + BoolSerializer: function BoolSerializer(t0) { + this.types = t0; }, - _AttributeMap: function _AttributeMap() { + BuiltJsonSerializersBuilder$_(_typeToSerializer, _wireNameToSerializer, _typeNameToSerializer, _builderFactories, _plugins) { + return new A.BuiltJsonSerializersBuilder(_typeToSerializer, _wireNameToSerializer, _typeNameToSerializer, _builderFactories, _plugins); }, - _ElementAttributeMap: function _ElementAttributeMap(t0) { - this._element = t0; + _getRawName(type) { + var $name = J.toString$0$(type), + genericsStart = B.JSString_methods.indexOf$1($name, "<"); + return genericsStart === -1 ? $name : B.JSString_methods.substring$2($name, 0, genericsStart); }, - EventStreamProvider: function EventStreamProvider(t0, t1) { - this._eventType = t0; - this.$ti = t1; + _noSerializerMessageFor(typeName) { + var maybeRecordAdvice = B.JSString_methods.contains$1(typeName, "(") ? " Note that record types are not automatically serializable, please write and install your own `Serializer`." : ""; + return "No serializer for '" + typeName + "'." + maybeRecordAdvice; }, - _EventStream0: function _EventStream0(t0, t1, t2, t3) { + BuiltJsonSerializers: function BuiltJsonSerializers(t0, t1, t2, t3, t4) { var _ = this; - _._target = t0; - _._eventType = t1; - _._useCapture = t2; - _.$ti = t3; + _._typeToSerializer = t0; + _._wireNameToSerializer = t1; + _._typeNameToSerializer = t2; + _.builderFactories = t3; + _.serializerPlugins = t4; }, - _EventStreamSubscription: function _EventStreamSubscription(t0, t1, t2, t3, t4) { + BuiltJsonSerializersBuilder: function BuiltJsonSerializersBuilder(t0, t1, t2, t3, t4) { var _ = this; - _._pauseCount = 0; - _._target = t0; - _._eventType = t1; - _._onData = t2; - _._useCapture = t3; - _.$ti = t4; + _._typeToSerializer = t0; + _._wireNameToSerializer = t1; + _._typeNameToSerializer = t2; + _._builderFactories = t3; + _._plugins = t4; }, - _EventStreamSubscription_closure: function _EventStreamSubscription_closure(t0) { - this.onData = t0; + BuiltListMultimapSerializer: function BuiltListMultimapSerializer(t0) { + this.types = t0; }, - _EventStreamSubscription_onData_closure0: function _EventStreamSubscription_onData_closure0(t0) { - this.handleData = t0; + BuiltListMultimapSerializer_serialize_closure: function BuiltListMultimapSerializer_serialize_closure(t0, t1) { + this.serializers = t0; + this.valueType = t1; }, - _Html5NodeValidator: function _Html5NodeValidator(t0) { - this.uriPolicy = t0; + BuiltListMultimapSerializer_deserialize_closure: function BuiltListMultimapSerializer_deserialize_closure(t0, t1) { + this.serializers = t0; + this.valueType = t1; }, - ImmutableListMixin: function ImmutableListMixin() { + BuiltListSerializer: function BuiltListSerializer(t0) { + this.types = t0; }, - NodeValidatorBuilder: function NodeValidatorBuilder(t0) { - this._validators = t0; + BuiltListSerializer_serialize_closure: function BuiltListSerializer_serialize_closure(t0, t1) { + this.serializers = t0; + this.elementType = t1; }, - NodeValidatorBuilder_allowsElement_closure: function NodeValidatorBuilder_allowsElement_closure(t0) { - this.element = t0; + BuiltListSerializer_deserialize_closure: function BuiltListSerializer_deserialize_closure(t0, t1) { + this.serializers = t0; + this.elementType = t1; }, - NodeValidatorBuilder_allowsAttribute_closure: function NodeValidatorBuilder_allowsAttribute_closure(t0, t1, t2) { - this.element = t0; - this.attributeName = t1; - this.value = t2; + BuiltMapSerializer: function BuiltMapSerializer(t0) { + this.types = t0; }, - _SimpleNodeValidator: function _SimpleNodeValidator() { + BuiltSetMultimapSerializer: function BuiltSetMultimapSerializer(t0) { + this.types = t0; }, - _SimpleNodeValidator_closure: function _SimpleNodeValidator_closure() { + BuiltSetMultimapSerializer_serialize_closure: function BuiltSetMultimapSerializer_serialize_closure(t0, t1) { + this.serializers = t0; + this.valueType = t1; }, - _SimpleNodeValidator_closure0: function _SimpleNodeValidator_closure0() { + BuiltSetMultimapSerializer_deserialize_closure: function BuiltSetMultimapSerializer_deserialize_closure(t0, t1) { + this.serializers = t0; + this.valueType = t1; }, - _TemplatingNodeValidator: function _TemplatingNodeValidator(t0, t1, t2, t3, t4) { - var _ = this; - _._templateAttrs = t0; - _.allowedElements = t1; - _.allowedAttributes = t2; - _.allowedUriAttributes = t3; - _.uriPolicy = t4; + BuiltSetSerializer: function BuiltSetSerializer(t0) { + this.types = t0; }, - _TemplatingNodeValidator_closure: function _TemplatingNodeValidator_closure() { + BuiltSetSerializer_serialize_closure: function BuiltSetSerializer_serialize_closure(t0, t1) { + this.serializers = t0; + this.elementType = t1; }, - _SvgNodeValidator: function _SvgNodeValidator() { + BuiltSetSerializer_deserialize_closure: function BuiltSetSerializer_deserialize_closure(t0, t1) { + this.serializers = t0; + this.elementType = t1; }, - FixedSizeListIterator: function FixedSizeListIterator(t0, t1, t2) { - var _ = this; - _._array = t0; - _._length = t1; - _._position = -1; - _._current = null; - _.$ti = t2; + DateTimeSerializer: function DateTimeSerializer(t0) { + this.types = t0; }, - _DOMWindowCrossFrame: function _DOMWindowCrossFrame() { + DoubleSerializer: function DoubleSerializer(t0) { + this.types = t0; }, - _SameOriginUriPolicy: function _SameOriginUriPolicy(t0, t1) { - this._hiddenAnchor = t0; - this._loc = t1; + DurationSerializer: function DurationSerializer(t0) { + this.types = t0; }, - _ValidatingTreeSanitizer: function _ValidatingTreeSanitizer(t0) { - this.validator = t0; - this.numTreeModifications = 0; + Int32Serializer: function Int32Serializer(t0) { + this.types = t0; }, - _ValidatingTreeSanitizer_sanitizeTree_walk: function _ValidatingTreeSanitizer_sanitizeTree_walk(t0) { - this.$this = t0; + Int64Serializer: function Int64Serializer(t0) { + this.types = t0; }, - _CssStyleDeclaration_JavaScriptObject_CssStyleDeclarationBase: function _CssStyleDeclaration_JavaScriptObject_CssStyleDeclarationBase() { + IntSerializer: function IntSerializer(t0) { + this.types = t0; }, - _DomRectList_JavaScriptObject_ListMixin: function _DomRectList_JavaScriptObject_ListMixin() { + JsonObjectSerializer: function JsonObjectSerializer(t0) { + this.types = t0; }, - _DomRectList_JavaScriptObject_ListMixin_ImmutableListMixin: function _DomRectList_JavaScriptObject_ListMixin_ImmutableListMixin() { + NullSerializer: function NullSerializer(t0) { + this.types = t0; }, - _DomStringList_JavaScriptObject_ListMixin: function _DomStringList_JavaScriptObject_ListMixin() { + NumSerializer: function NumSerializer(t0) { + this.types = t0; }, - _DomStringList_JavaScriptObject_ListMixin_ImmutableListMixin: function _DomStringList_JavaScriptObject_ListMixin_ImmutableListMixin() { + RegExpSerializer: function RegExpSerializer(t0) { + this.types = t0; }, - _FileList_JavaScriptObject_ListMixin: function _FileList_JavaScriptObject_ListMixin() { + StringSerializer: function StringSerializer(t0) { + this.types = t0; }, - _FileList_JavaScriptObject_ListMixin_ImmutableListMixin: function _FileList_JavaScriptObject_ListMixin_ImmutableListMixin() { + Uint8ListSerializer: function Uint8ListSerializer() { }, - _HtmlCollection_JavaScriptObject_ListMixin: function _HtmlCollection_JavaScriptObject_ListMixin() { + UriSerializer: function UriSerializer(t0) { + this.types = t0; }, - _HtmlCollection_JavaScriptObject_ListMixin_ImmutableListMixin: function _HtmlCollection_JavaScriptObject_ListMixin_ImmutableListMixin() { + DefaultEquality: function DefaultEquality(t0) { + this.$ti = t0; }, - _MidiInputMap_JavaScriptObject_MapMixin: function _MidiInputMap_JavaScriptObject_MapMixin() { + IterableEquality: function IterableEquality(t0, t1) { + this._elementEquality = t0; + this.$ti = t1; }, - _MidiOutputMap_JavaScriptObject_MapMixin: function _MidiOutputMap_JavaScriptObject_MapMixin() { + ListEquality: function ListEquality(t0, t1) { + this._elementEquality = t0; + this.$ti = t1; }, - _MimeTypeArray_JavaScriptObject_ListMixin: function _MimeTypeArray_JavaScriptObject_ListMixin() { + _UnorderedEquality: function _UnorderedEquality() { }, - _MimeTypeArray_JavaScriptObject_ListMixin_ImmutableListMixin: function _MimeTypeArray_JavaScriptObject_ListMixin_ImmutableListMixin() { + SetEquality: function SetEquality(t0, t1) { + this._elementEquality = t0; + this.$ti = t1; }, - _NodeList_JavaScriptObject_ListMixin: function _NodeList_JavaScriptObject_ListMixin() { + _MapEntry: function _MapEntry(t0, t1, t2) { + this.equality = t0; + this.key = t1; + this.value = t2; }, - _NodeList_JavaScriptObject_ListMixin_ImmutableListMixin: function _NodeList_JavaScriptObject_ListMixin_ImmutableListMixin() { + MapEquality: function MapEquality(t0, t1, t2) { + this._keyEquality = t0; + this._valueEquality = t1; + this.$ti = t2; }, - _PluginArray_JavaScriptObject_ListMixin: function _PluginArray_JavaScriptObject_ListMixin() { + DeepCollectionEquality: function DeepCollectionEquality() { }, - _PluginArray_JavaScriptObject_ListMixin_ImmutableListMixin: function _PluginArray_JavaScriptObject_ListMixin_ImmutableListMixin() { + QueueList__computeInitialCapacity(initialCapacity) { + return 8; }, - _RtcStatsReport_JavaScriptObject_MapMixin: function _RtcStatsReport_JavaScriptObject_MapMixin() { + QueueList: function QueueList(t0, t1, t2, t3) { + var _ = this; + _._queue_list$_table = t0; + _._queue_list$_head = t1; + _._queue_list$_tail = t2; + _.$ti = t3; }, - _SourceBufferList_EventTarget_ListMixin: function _SourceBufferList_EventTarget_ListMixin() { + _QueueList_Object_ListMixin: function _QueueList_Object_ListMixin() { }, - _SourceBufferList_EventTarget_ListMixin_ImmutableListMixin: function _SourceBufferList_EventTarget_ListMixin_ImmutableListMixin() { + _$valueOf($name) { + switch ($name) { + case "started": + return B.BuildStatus_started; + case "succeeded": + return B.BuildStatus_succeeded; + case "failed": + return B.BuildStatus_failed; + default: + throw A.wrapException(A.ArgumentError$($name, null)); + } }, - _SpeechGrammarList_JavaScriptObject_ListMixin: function _SpeechGrammarList_JavaScriptObject_ListMixin() { + BuildStatus: function BuildStatus(t0) { + this.name = t0; }, - _SpeechGrammarList_JavaScriptObject_ListMixin_ImmutableListMixin: function _SpeechGrammarList_JavaScriptObject_ListMixin_ImmutableListMixin() { + BuildResult: function BuildResult() { }, - _Storage_JavaScriptObject_MapMixin: function _Storage_JavaScriptObject_MapMixin() { + _$BuildStatusSerializer: function _$BuildStatusSerializer() { }, - _TextTrackCueList_JavaScriptObject_ListMixin: function _TextTrackCueList_JavaScriptObject_ListMixin() { + _$BuildResultSerializer: function _$BuildResultSerializer() { }, - _TextTrackCueList_JavaScriptObject_ListMixin_ImmutableListMixin: function _TextTrackCueList_JavaScriptObject_ListMixin_ImmutableListMixin() { + _$BuildResult: function _$BuildResult(t0) { + this.status = t0; }, - _TextTrackList_EventTarget_ListMixin: function _TextTrackList_EventTarget_ListMixin() { + BuildResultBuilder: function BuildResultBuilder() { + this._status = this._build_result$_$v = null; }, - _TextTrackList_EventTarget_ListMixin_ImmutableListMixin: function _TextTrackList_EventTarget_ListMixin_ImmutableListMixin() { + ConnectRequest: function ConnectRequest() { }, - _TouchList_JavaScriptObject_ListMixin: function _TouchList_JavaScriptObject_ListMixin() { + _$ConnectRequestSerializer: function _$ConnectRequestSerializer() { }, - _TouchList_JavaScriptObject_ListMixin_ImmutableListMixin: function _TouchList_JavaScriptObject_ListMixin_ImmutableListMixin() { + _$ConnectRequest: function _$ConnectRequest(t0, t1, t2) { + this.appId = t0; + this.instanceId = t1; + this.entrypointPath = t2; }, - __CssRuleList_JavaScriptObject_ListMixin: function __CssRuleList_JavaScriptObject_ListMixin() { + ConnectRequestBuilder: function ConnectRequestBuilder() { + var _ = this; + _._entrypointPath = _._instanceId = _._appId = _._$v = null; }, - __CssRuleList_JavaScriptObject_ListMixin_ImmutableListMixin: function __CssRuleList_JavaScriptObject_ListMixin_ImmutableListMixin() { + DebugEvent: function DebugEvent() { }, - __GamepadList_JavaScriptObject_ListMixin: function __GamepadList_JavaScriptObject_ListMixin() { + BatchedDebugEvents: function BatchedDebugEvents() { }, - __GamepadList_JavaScriptObject_ListMixin_ImmutableListMixin: function __GamepadList_JavaScriptObject_ListMixin_ImmutableListMixin() { + _$DebugEventSerializer: function _$DebugEventSerializer() { }, - __NamedNodeMap_JavaScriptObject_ListMixin: function __NamedNodeMap_JavaScriptObject_ListMixin() { + _$BatchedDebugEventsSerializer: function _$BatchedDebugEventsSerializer() { }, - __NamedNodeMap_JavaScriptObject_ListMixin_ImmutableListMixin: function __NamedNodeMap_JavaScriptObject_ListMixin_ImmutableListMixin() { + _$DebugEvent: function _$DebugEvent(t0, t1, t2) { + this.kind = t0; + this.eventData = t1; + this.timestamp = t2; }, - __SpeechRecognitionResultList_JavaScriptObject_ListMixin: function __SpeechRecognitionResultList_JavaScriptObject_ListMixin() { + DebugEventBuilder: function DebugEventBuilder() { + var _ = this; + _._timestamp = _._eventData = _._debug_event$_kind = _._debug_event$_$v = null; }, - __SpeechRecognitionResultList_JavaScriptObject_ListMixin_ImmutableListMixin: function __SpeechRecognitionResultList_JavaScriptObject_ListMixin_ImmutableListMixin() { + _$BatchedDebugEvents: function _$BatchedDebugEvents(t0) { + this.events = t0; }, - __StyleSheetList_JavaScriptObject_ListMixin: function __StyleSheetList_JavaScriptObject_ListMixin() { + BatchedDebugEventsBuilder: function BatchedDebugEventsBuilder() { + this._events = this._debug_event$_$v = null; }, - __StyleSheetList_JavaScriptObject_ListMixin_ImmutableListMixin: function __StyleSheetList_JavaScriptObject_ListMixin_ImmutableListMixin() { + DebugInfo: function DebugInfo() { }, - _convertNativeToDart_Value(value) { - var t1, values, i; - if (value == null) - return value; - if (typeof value == "string" || typeof value == "number" || A._isBool(value)) - return value; - if (A.isJavaScriptSimpleObject(value)) - return A.convertNativeToDart_Dictionary(value); - t1 = Array.isArray(value); - t1.toString; - if (t1) { - values = []; - i = 0; - while (true) { - t1 = value.length; - t1.toString; - if (!(i < t1)) - break; - values.push(A._convertNativeToDart_Value(value[i])); - ++i; - } - return values; - } - return value; + _$DebugInfoSerializer: function _$DebugInfoSerializer() { }, - convertNativeToDart_Dictionary(object) { - var dict, keys, t1, _i, key, t2; - if (object == null) - return null; - dict = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic); - keys = Object.getOwnPropertyNames(object); - for (t1 = keys.length, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) { - key = keys[_i]; - t2 = key; - t2.toString; - dict.$indexSet(0, t2, A._convertNativeToDart_Value(object[key])); - } - return dict; + _$DebugInfo: function _$DebugInfo(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) { + var _ = this; + _.appEntrypointPath = t0; + _.appId = t1; + _.appInstanceId = t2; + _.appOrigin = t3; + _.appUrl = t4; + _.authUrl = t5; + _.dwdsVersion = t6; + _.extensionUrl = t7; + _.isInternalBuild = t8; + _.isFlutterApp = t9; + _.workspaceName = t10; + _.tabUrl = t11; + _.tabId = t12; }, - isJavaScriptSimpleObject(value) { - var proto = Object.getPrototypeOf(value), - t1 = proto === Object.prototype; - t1.toString; - if (!t1) { - t1 = proto === null; - t1.toString; - } else - t1 = true; - return t1; + DebugInfoBuilder: function DebugInfoBuilder() { + var _ = this; + _._tabId = _._tabUrl = _._workspaceName = _._isFlutterApp = _._isInternalBuild = _._extensionUrl = _._dwdsVersion = _._authUrl = _._appUrl = _._appOrigin = _._appInstanceId = _._debug_info$_appId = _._appEntrypointPath = _._debug_info$_$v = null; }, - _StructuredClone: function _StructuredClone() { + DevToolsRequest: function DevToolsRequest() { }, - _StructuredClone_walk_closure: function _StructuredClone_walk_closure(t0, t1) { - this._box_0 = t0; - this.$this = t1; + DevToolsResponse: function DevToolsResponse() { }, - _StructuredClone_walk_closure0: function _StructuredClone_walk_closure0(t0, t1) { - this._box_0 = t0; - this.$this = t1; + _$DevToolsRequestSerializer: function _$DevToolsRequestSerializer() { }, - _AcceptStructuredClone: function _AcceptStructuredClone() { + _$DevToolsResponseSerializer: function _$DevToolsResponseSerializer() { }, - _AcceptStructuredClone_walk_closure: function _AcceptStructuredClone_walk_closure(t0, t1) { - this.$this = t0; - this.map = t1; + _$DevToolsRequest: function _$DevToolsRequest(t0, t1, t2, t3, t4, t5) { + var _ = this; + _.appId = t0; + _.instanceId = t1; + _.contextId = t2; + _.tabUrl = t3; + _.uriOnly = t4; + _.client = t5; }, - _StructuredCloneDart2Js: function _StructuredCloneDart2Js(t0, t1) { - this.values = t0; - this.copies = t1; + DevToolsRequestBuilder: function DevToolsRequestBuilder() { + var _ = this; + _._devtools_request$_client = _._uriOnly = _._devtools_request$_tabUrl = _._contextId = _._devtools_request$_instanceId = _._devtools_request$_appId = _._devtools_request$_$v = null; }, - _AcceptStructuredCloneDart2Js: function _AcceptStructuredCloneDart2Js(t0, t1) { - this.values = t0; - this.copies = t1; - this.mustCopy = false; + _$DevToolsResponse: function _$DevToolsResponse(t0, t1, t2) { + this.success = t0; + this.promptExtension = t1; + this.error = t2; }, - KeyRange: function KeyRange() { + DevToolsResponseBuilder: function DevToolsResponseBuilder() { + var _ = this; + _._error = _._promptExtension = _._success = _._devtools_request$_$v = null; }, - _callDartFunction(callback, captureThis, $self, $arguments) { - var arguments0, t1, dartArgs; - A._asBool(captureThis); - type$.List_dynamic._as($arguments); - if (captureThis) { - arguments0 = [$self]; - B.JSArray_methods.addAll$1(arguments0, $arguments); - $arguments = arguments0; - } - t1 = type$.dynamic; - dartArgs = A.List_List$from(J.map$1$1$ax($arguments, A.js___convertToDart$closure(), t1), true, t1); - return A._convertToJS(A.Function_apply(type$.Function._as(callback), dartArgs)); + ErrorResponse: function ErrorResponse() { }, - JsObject_JsObject$fromBrowserObject(object) { - return A._wrapToDart(A._convertToJS(object)); + _$ErrorResponseSerializer: function _$ErrorResponseSerializer() { }, - _defineProperty(o, $name, value) { - var exception; - try { - if (Object.isExtensible(o) && !Object.prototype.hasOwnProperty.call(o, $name)) { - Object.defineProperty(o, $name, {value: value}); - return true; - } - } catch (exception) { - } - return false; + _$ErrorResponse: function _$ErrorResponse(t0, t1) { + this.error = t0; + this.stackTrace = t1; }, - _getOwnProperty(o, $name) { - if (Object.prototype.hasOwnProperty.call(o, $name)) - return o[$name]; - return null; + ErrorResponseBuilder: function ErrorResponseBuilder() { + this._error_response$_stackTrace = this._error_response$_error = this._error_response$_$v = null; }, - _convertToJS(o) { - if (o == null || typeof o == "string" || typeof o == "number" || A._isBool(o)) - return o; - if (o instanceof A.JsObject) - return o._jsObject; - if (A.isBrowserObject(o)) - return o; - if (type$.TypedData._is(o)) - return o; - if (o instanceof A.DateTime) - return A.Primitives_lazyAsJsDate(o); - if (type$.Function._is(o)) - return A._getJsProxy(o, "$dart_jsFunction", new A._convertToJS_closure()); - return A._getJsProxy(o, "_$dart_jsObject", new A._convertToJS_closure0($.$get$_dartProxyCtor())); - }, - _getJsProxy(o, propertyName, createProxy) { - var jsProxy = A._getOwnProperty(o, propertyName); - if (jsProxy == null) { - jsProxy = createProxy.call$1(o); - A._defineProperty(o, propertyName, jsProxy); - } - return jsProxy; - }, - _convertToDart(o) { - if (o == null || typeof o == "string" || typeof o == "number" || typeof o == "boolean") - return o; - else if (o instanceof Object && A.isBrowserObject(o)) - return o; - else if (o instanceof Object && type$.TypedData._is(o)) - return o; - else if (o instanceof Date) - return A.DateTime$fromMillisecondsSinceEpoch(A._asInt(o.getTime()), false); - else if (o.constructor === $.$get$_dartProxyCtor()) - return o.o; - else - return A._wrapToDart(o); + ExtensionRequest: function ExtensionRequest() { }, - _wrapToDart(o) { - if (typeof o == "function") - return A._getDartProxy(o, $.$get$DART_CLOSURE_PROPERTY_NAME(), new A._wrapToDart_closure()); - if (o instanceof Array) - return A._getDartProxy(o, $.$get$_DART_OBJECT_PROPERTY_NAME(), new A._wrapToDart_closure0()); - return A._getDartProxy(o, $.$get$_DART_OBJECT_PROPERTY_NAME(), new A._wrapToDart_closure1()); + ExtensionResponse: function ExtensionResponse() { }, - _getDartProxy(o, propertyName, createProxy) { - var dartProxy = A._getOwnProperty(o, propertyName); - if (dartProxy == null || !(o instanceof Object)) { - dartProxy = createProxy.call$1(o); - A._defineProperty(o, propertyName, dartProxy); - } - return dartProxy; + ExtensionEvent: function ExtensionEvent() { }, - _convertToJS_closure: function _convertToJS_closure() { + BatchedEvents: function BatchedEvents() { }, - _convertToJS_closure0: function _convertToJS_closure0(t0) { - this.ctor = t0; + _$ExtensionRequestSerializer: function _$ExtensionRequestSerializer() { }, - _wrapToDart_closure: function _wrapToDart_closure() { + _$ExtensionResponseSerializer: function _$ExtensionResponseSerializer() { }, - _wrapToDart_closure0: function _wrapToDart_closure0() { + _$ExtensionEventSerializer: function _$ExtensionEventSerializer() { }, - _wrapToDart_closure1: function _wrapToDart_closure1() { + _$BatchedEventsSerializer: function _$BatchedEventsSerializer() { }, - JsObject: function JsObject(t0) { - this._jsObject = t0; + _$ExtensionRequest: function _$ExtensionRequest(t0, t1, t2) { + this.id = t0; + this.command = t1; + this.commandParams = t2; }, - JsFunction: function JsFunction(t0) { - this._jsObject = t0; + ExtensionRequestBuilder: function ExtensionRequestBuilder() { + var _ = this; + _._commandParams = _._command = _._id = _._extension_request$_$v = null; }, - JsArray: function JsArray(t0, t1) { - this._jsObject = t0; - this.$ti = t1; + _$ExtensionResponse: function _$ExtensionResponse(t0, t1, t2, t3) { + var _ = this; + _.id = t0; + _.success = t1; + _.result = t2; + _.error = t3; }, - _JsArray_JsObject_ListMixin: function _JsArray_JsObject_ListMixin() { + ExtensionResponseBuilder: function ExtensionResponseBuilder() { + var _ = this; + _._extension_request$_error = _._extension_request$_result = _._extension_request$_success = _._id = _._extension_request$_$v = null; }, - _convertDartFunctionFast(f) { - var ret, - existing = f.$dart_jsFunction; - if (existing != null) - return existing; - ret = function(_call, f) { - return function() { - return _call(f, Array.prototype.slice.apply(arguments)); - }; - }(A._callDartFunctionFast, f); - ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f; - f.$dart_jsFunction = ret; - return ret; + _$ExtensionEvent: function _$ExtensionEvent(t0, t1) { + this.params = t0; + this.method = t1; }, - _callDartFunctionFast(callback, $arguments) { - type$.List_dynamic._as($arguments); - return A.Function_apply(type$.Function._as(callback), $arguments); + ExtensionEventBuilder: function ExtensionEventBuilder() { + this._extension_request$_method = this._params = this._extension_request$_$v = null; }, - allowInterop(f, $F) { - if (typeof f == "function") - return f; - else - return $F._as(A._convertDartFunctionFast(f)); + _$BatchedEvents: function _$BatchedEvents(t0) { + this.events = t0; }, - _noJsifyRequired(o) { - return o == null || A._isBool(o) || typeof o == "number" || typeof o == "string" || type$.Int8List._is(o) || type$.Uint8List._is(o) || type$.Uint8ClampedList._is(o) || type$.Int16List._is(o) || type$.Uint16List._is(o) || type$.Int32List._is(o) || type$.Uint32List._is(o) || type$.Float32List._is(o) || type$.Float64List._is(o) || type$.ByteBuffer._is(o) || type$.ByteData._is(o); + BatchedEventsBuilder: function BatchedEventsBuilder() { + this._extension_request$_events = this._extension_request$_$v = null; }, - jsify(object) { - if (A._noJsifyRequired(object)) - return object; - return new A.jsify__convert(new A._IdentityHashMap(type$._IdentityHashMap_of_nullable_Object_and_nullable_Object)).call$1(object); + IsolateExit: function IsolateExit() { }, - callMethod(o, method, args, $T) { - return $T._as(o[method].apply(o, args)); + IsolateStart: function IsolateStart() { }, - promiseToFuture(jsPromise, $T) { - var t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>")), - completer = new A._AsyncCompleter(t1, $T._eval$1("_AsyncCompleter<0>")); - jsPromise.then(A.convertDartClosureToJS(new A.promiseToFuture_closure(completer, $T), 1), A.convertDartClosureToJS(new A.promiseToFuture_closure0(completer), 1)); - return t1; + _$IsolateExitSerializer: function _$IsolateExitSerializer() { }, - _noDartifyRequired(o) { - return o == null || typeof o === "boolean" || typeof o === "number" || typeof o === "string" || o instanceof Int8Array || o instanceof Uint8Array || o instanceof Uint8ClampedArray || o instanceof Int16Array || o instanceof Uint16Array || o instanceof Int32Array || o instanceof Uint32Array || o instanceof Float32Array || o instanceof Float64Array || o instanceof ArrayBuffer || o instanceof DataView; + _$IsolateStartSerializer: function _$IsolateStartSerializer() { }, - dartify(o) { - if (A._noDartifyRequired(o)) - return o; - return new A.dartify_convert(new A._IdentityHashMap(type$._IdentityHashMap_of_nullable_Object_and_nullable_Object)).call$1(o); + _$IsolateExit: function _$IsolateExit() { }, - jsify__convert: function jsify__convert(t0) { - this._convertedObjects = t0; + IsolateExitBuilder: function IsolateExitBuilder() { + this._isolate_events$_$v = null; }, - promiseToFuture_closure: function promiseToFuture_closure(t0, t1) { - this.completer = t0; - this.T = t1; + _$IsolateStart: function _$IsolateStart() { }, - promiseToFuture_closure0: function promiseToFuture_closure0(t0) { - this.completer = t0; + IsolateStartBuilder: function IsolateStartBuilder() { + this._isolate_events$_$v = null; }, - dartify_convert: function dartify_convert(t0) { - this._convertedObjects = t0; + RegisterEvent: function RegisterEvent() { }, - NullRejectionException: function NullRejectionException(t0) { - this.isUndefined = t0; + _$RegisterEventSerializer: function _$RegisterEventSerializer() { }, - Random_Random(seed) { - return B.C__JSRandom; + _$RegisterEvent: function _$RegisterEvent(t0, t1) { + this.eventData = t0; + this.timestamp = t1; }, - _JSRandom: function _JSRandom() { + RegisterEventBuilder: function RegisterEventBuilder() { + this._register_event$_timestamp = this._register_event$_eventData = this._register_event$_$v = null; }, - Length: function Length() { + RunRequest: function RunRequest() { }, - LengthList: function LengthList() { + _$RunRequestSerializer: function _$RunRequestSerializer() { }, - Number: function Number() { + _$RunRequest: function _$RunRequest() { }, - NumberList: function NumberList() { + _$serializers_closure: function _$serializers_closure() { }, - PointList: function PointList() { + _$serializers_closure0: function _$serializers_closure0() { }, - ScriptElement0: function ScriptElement0() { + BatchedStreamController: function BatchedStreamController(t0, t1, t2, t3, t4, t5) { + var _ = this; + _._checkDelayMilliseconds = t0; + _._batchDelayMilliseconds = t1; + _._inputController = t2; + _.__BatchedStreamController__inputQueue_A = $; + _._outputController = t3; + _._completer = t4; + _.$ti = t5; }, - StringList: function StringList() { + BatchedStreamController__hasEventOrTimeOut_closure: function BatchedStreamController__hasEventOrTimeOut_closure() { }, - SvgElement: function SvgElement() { + BatchedStreamController__hasEventDuring_closure: function BatchedStreamController__hasEventDuring_closure() { }, - Transform: function Transform() { + SocketClient: function SocketClient() { }, - TransformList: function TransformList() { + SseSocketClient: function SseSocketClient(t0) { + this._sockets$_client = t0; }, - _LengthList_JavaScriptObject_ListMixin: function _LengthList_JavaScriptObject_ListMixin() { + WebSocketClient: function WebSocketClient(t0) { + this._channel = t0; }, - _LengthList_JavaScriptObject_ListMixin_ImmutableListMixin: function _LengthList_JavaScriptObject_ListMixin_ImmutableListMixin() { + WebSocketClient_stream_closure: function WebSocketClient_stream_closure() { }, - _NumberList_JavaScriptObject_ListMixin: function _NumberList_JavaScriptObject_ListMixin() { + safeUnawaited(future) { + future.catchError$1(new A.safeUnawaited_closure()); }, - _NumberList_JavaScriptObject_ListMixin_ImmutableListMixin: function _NumberList_JavaScriptObject_ListMixin_ImmutableListMixin() { + safeUnawaited_closure: function safeUnawaited_closure() { }, - _StringList_JavaScriptObject_ListMixin: function _StringList_JavaScriptObject_ListMixin() { + Int32: function Int32(t0) { + this._i = t0; }, - _StringList_JavaScriptObject_ListMixin_ImmutableListMixin: function _StringList_JavaScriptObject_ListMixin_ImmutableListMixin() { + Int64__parseRadix(s, radix, throwOnError) { + var d0, d1, d2, digit, d00, d10, + negative = B.JSString_methods.startsWith$1(s, "-"), + i = negative ? 1 : 0, + t1 = s.length; + if (i >= t1) + throw A.wrapException(A.FormatException$("No digits", s, i)); + for (d0 = 0, d1 = 0, d2 = 0; i < t1; ++i, d1 = d10, d0 = d00) { + digit = A.decodeDigit(s.charCodeAt(i)); + if (digit < radix) { + d0 = d0 * radix + digit; + d00 = d0 & 4194303; + d1 = d1 * radix + B.JSInt_methods._shrOtherPositive$1(d0, 22); + d10 = d1 & 4194303; + d2 = d2 * radix + (d1 >>> 22) & 1048575; + } else + throw A.wrapException(A.FormatException$("Not radix digit", s, i)); + } + if (negative) + return A.Int64__sub(0, 0, 0, d0, d1, d2); + return new A.Int64(d0 & 4194303, d1 & 4194303, d2 & 1048575); }, - _TransformList_JavaScriptObject_ListMixin: function _TransformList_JavaScriptObject_ListMixin() { + Int64_Int64(value) { + var v2, v1, t1, t2, t3, + negative = value < 0; + if (negative) + value = -value; + v2 = B.JSInt_methods._tdivFast$1(value, 17592186044416); + value -= v2 * 17592186044416; + v1 = B.JSInt_methods._tdivFast$1(value, 4194304); + t1 = value - v1 * 4194304 & 4194303; + t2 = v1 & 4194303; + t3 = v2 & 1048575; + return negative ? A.Int64__sub(0, 0, 0, t1, t2, t3) : new A.Int64(t1, t2, t3); }, - _TransformList_JavaScriptObject_ListMixin_ImmutableListMixin: function _TransformList_JavaScriptObject_ListMixin_ImmutableListMixin() { + Int64__promote(value) { + if (value instanceof A.Int64) + return value; + else if (A._isInt(value)) + return A.Int64_Int64(value); + else if (value instanceof A.Int32) + return A.Int64_Int64(value._i); + throw A.wrapException(A.ArgumentError$value(value, "other", "not an int, Int32 or Int64")); }, - AudioBuffer: function AudioBuffer() { + Int64__toRadixStringUnsigned(radix, d0, d1, d2, sign) { + var d4, d3, fatRadix, chunk1, chunk2, chunk3, q, q0, q1, q2, q3, chunk10, residue; + if (d0 === 0 && d1 === 0 && d2 === 0) + return "0"; + d4 = (d2 << 4 | d1 >>> 18) >>> 0; + d3 = d1 >>> 8 & 1023; + d2 = (d1 << 2 | d0 >>> 20) & 1023; + d1 = d0 >>> 10 & 1023; + d0 &= 1023; + if (!(radix < 37)) + return A.ioore(B.List_BZW, radix); + fatRadix = B.List_BZW[radix]; + chunk1 = ""; + chunk2 = ""; + chunk3 = ""; + while (true) { + if (!!(d4 === 0 && d3 === 0)) + break; + q = B.JSInt_methods.$tdiv(d4, fatRadix); + d3 += d4 - q * fatRadix << 10 >>> 0; + q0 = B.JSInt_methods.$tdiv(d3, fatRadix); + d2 += d3 - q0 * fatRadix << 10 >>> 0; + q1 = B.JSInt_methods.$tdiv(d2, fatRadix); + d1 += d2 - q1 * fatRadix << 10 >>> 0; + q2 = B.JSInt_methods.$tdiv(d1, fatRadix); + d0 += d1 - q2 * fatRadix << 10 >>> 0; + q3 = B.JSInt_methods.$tdiv(d0, fatRadix); + chunk10 = B.JSString_methods.substring$1(B.JSInt_methods.toRadixString$1(fatRadix + (d0 - q3 * fatRadix), radix), 1); + chunk3 = chunk2; + chunk2 = chunk1; + chunk1 = chunk10; + d3 = q0; + d4 = q; + d2 = q1; + d1 = q2; + d0 = q3; + } + residue = (d2 << 20 >>> 0) + (d1 << 10 >>> 0) + d0; + return sign + (residue === 0 ? "" : B.JSInt_methods.toRadixString$1(residue, radix)) + chunk1 + chunk2 + chunk3; }, - AudioParamMap: function AudioParamMap() { + Int64__sub(a0, a1, a2, b0, b1, b2) { + var diff0 = a0 - b0, + diff1 = a1 - b1 - (B.JSInt_methods._shrOtherPositive$1(diff0, 22) & 1); + return new A.Int64(diff0 & 4194303, diff1 & 4194303, a2 - b2 - (B.JSInt_methods._shrOtherPositive$1(diff1, 22) & 1) & 1048575); }, - AudioParamMap_keys_closure: function AudioParamMap_keys_closure(t0) { - this.keys = t0; + Int64: function Int64(t0, t1, t2) { + this._l = t0; + this._m = t1; + this._h = t2; }, - AudioTrackList: function AudioTrackList() { + stronglyConnectedComponents(nodes, edges, $T) { + var t2, t3, t4, node, index, t5, state, iterator, index0, lowLink, t6, next, component, _null = null, + result = A._setArrayType([], $T._eval$1("JSArray>")), + t1 = type$.int, + lowLinks = A.HashMap_HashMap(_null, _null, _null, $T, t1), + indexes = A.HashMap_HashMap(_null, _null, _null, $T, t1), + onStack = A.HashSet_HashSet(_null, _null, $T), + lastVisited = A.ListQueue$($T); + t1 = A._setArrayType([], $T._eval$1("JSArray<_StackState<0>>")); + for (t2 = nodes.$ti, t3 = new A.ListIterator(nodes, nodes.get$length(0), t2._eval$1("ListIterator")), t4 = $T._eval$1("_StackState<0>"), t2 = t2._eval$1("ListIterable.E"); t3.moveNext$0();) { + node = t3.__internal$_current; + t1.push(new A._StackState(node == null ? t2._as(node) : node, _null, t4)); + } + $label0$0: + for (t2 = lastVisited.$ti._precomputed1, t3 = $T._eval$1("JSArray<0>"), index = 0; t5 = t1.length, t5 !== 0;) { + if (0 >= t5) + return A.ioore(t1, -1); + state = t1.pop(); + node = state.node; + iterator = state.iterator; + if (iterator == null) { + if (indexes.containsKey$1(node)) + continue $label0$0; + indexes.$indexSet(0, node, index); + lowLinks.$indexSet(0, node, index); + index0 = index + 1; + iterator = J.get$iterator$ax(edges.call$1(node)); + if (!iterator.moveNext$0()) { + B.JSArray_methods.add$1(result, A._setArrayType([node], t3)); + index = index0; + continue $label0$0; + } + lastVisited._collection$_add$1(t2._as(node)); + onStack.add$1(0, node); + lowLink = index; + index = index0; + } else { + t5 = lowLinks.$index(0, node); + t5.toString; + t6 = lowLinks.$index(0, iterator.get$current()); + t6.toString; + lowLink = Math.min(A.checkNum(t5), A.checkNum(t6)); + } + do { + next = iterator.get$current(); + if (!indexes.containsKey$1(next)) { + B.JSArray_methods.add$1(t1, new A._StackState(node, iterator, t4)); + B.JSArray_methods.add$1(t1, new A._StackState(next, _null, t4)); + continue $label0$0; + } else if (onStack.contains$1(0, next)) { + t5 = indexes.$index(0, next); + t5.toString; + lowLink = Math.min(lowLink, A.checkNum(t5)); + lowLinks.$indexSet(0, node, lowLink); + } + } while (iterator.moveNext$0()); + if (lowLink === indexes.$index(0, node)) { + component = A._setArrayType([], t3); + do { + next = lastVisited.removeLast$0(0); + onStack.remove$1(0, next); + B.JSArray_methods.add$1(component, next); + } while (!A.boolConversionCheck(A._defaultEquals(next, node))); + B.JSArray_methods.add$1(result, component); + } + } + return result; }, - BaseAudioContext: function BaseAudioContext() { + _defaultEquals(a, b) { + return J.$eq$(a, b); }, - OfflineAudioContext: function OfflineAudioContext() { + _StackState: function _StackState(t0, t1, t2) { + this.node = t0; + this.iterator = t1; + this.$ti = t2; }, - _AudioParamMap_JavaScriptObject_MapMixin: function _AudioParamMap_JavaScriptObject_MapMixin() { + Level: function Level(t0, t1) { + this.name = t0; + this.value = t1; }, - AsyncMemoizer: function AsyncMemoizer(t0, t1) { - this._async_memoizer$_completer = t0; - this.$ti = t1; + LogRecord: function LogRecord(t0, t1, t2) { + this.level = t0; + this.message = t1; + this.loggerName = t2; }, - DelegatingStreamSink: function DelegatingStreamSink() { + Logger_Logger($name) { + return $.Logger__loggers.putIfAbsent$2($name, new A.Logger_Logger_closure($name)); }, - ErrorResult: function ErrorResult(t0, t1) { - this.error = t0; - this.stackTrace = t1; + Logger: function Logger(t0, t1, t2) { + var _ = this; + _.name = t0; + _.parent = t1; + _._level = null; + _._children = t2; }, - ValueResult: function ValueResult(t0, t1) { - this.value = t0; - this.$ti = t1; + Logger_Logger_closure: function Logger_Logger_closure(t0) { + this.name = t0; }, - StreamQueue: function StreamQueue(t0, t1, t2, t3) { + Pool: function Pool(t0, t1, t2, t3, t4) { var _ = this; - _._stream_queue$_source = t0; - _._stream_queue$_subscription = null; - _._isDone = false; - _._eventsReceived = 0; - _._eventQueue = t1; - _._requestQueue = t2; - _.$ti = t3; + _._requestedResources = t0; + _._onReleaseCallbacks = t1; + _._onReleaseCompleters = t2; + _._maxAllocatedResources = t3; + _._allocatedResources = 0; + _._timer = null; + _._closeMemo = t4; }, - StreamQueue__ensureListening_closure: function StreamQueue__ensureListening_closure(t0) { + Pool__runOnRelease_closure: function Pool__runOnRelease_closure(t0) { this.$this = t0; }, - StreamQueue__ensureListening_closure1: function StreamQueue__ensureListening_closure1(t0) { + Pool__runOnRelease_closure0: function Pool__runOnRelease_closure0(t0) { this.$this = t0; }, - StreamQueue__ensureListening_closure0: function StreamQueue__ensureListening_closure0(t0) { - this.$this = t0; + PoolResource: function PoolResource(t0) { + this._pool = t0; + this._released = false; }, - _NextRequest: function _NextRequest(t0, t1) { - this._stream_queue$_completer = t0; - this.$ti = t1; + SseClient$(serverUrl, debugKey) { + var t3, t4, t5, _null = null, + t1 = type$.String, + t2 = A.StreamController_StreamController(_null, _null, false, t1); + t1 = A.StreamController_StreamController(_null, _null, false, t1); + t3 = A.Logger_Logger("SseClient"); + t4 = $.Zone__current; + t5 = A.generateUuidV4(); + t1 = new A.SseClient(debugKey + "-" + t5, t2, t1, t3, new A._AsyncCompleter(new A._Future(t4, type$._Future_void), type$._AsyncCompleter_void)); + t1.SseClient$2$debugKey(serverUrl, debugKey); + return t1; }, - _HasNextRequest: function _HasNextRequest(t0, t1) { - this._stream_queue$_completer = t0; - this.$ti = t1; + SseClient: function SseClient(t0, t1, t2, t3, t4) { + var _ = this; + _._clientId = t0; + _._incomingController = t1; + _._outgoingController = t2; + _._logger = t3; + _._onConnected = t4; + _._lastMessageId = -1; + _.__SseClient__serverUrl_A = _.__SseClient__eventSource_A = $; + _._errorTimer = null; }, - hashObjects(objects) { - return A._finish(B.JSArray_methods.fold$1$2(objects, 0, new A.hashObjects_closure(), type$.int)); + SseClient_closure: function SseClient_closure(t0) { + this.$this = t0; }, - _combine(hash, value) { - hash = hash + value & 536870911; - hash = hash + ((hash & 524287) << 10) & 536870911; - return hash ^ hash >>> 6; + SseClient_closure0: function SseClient_closure0(t0) { + this.$this = t0; }, - _finish(hash) { - hash = hash + ((hash & 67108863) << 3) & 536870911; - hash ^= hash >>> 11; - return hash + ((hash & 16383) << 15) & 536870911; + SseClient_closure1: function SseClient_closure1(t0) { + this.$this = t0; }, - hashObjects_closure: function hashObjects_closure() { + SseClient__closure: function SseClient__closure(t0, t1) { + this.$this = t0; + this.error = t1; }, - BuiltList_BuiltList$from(iterable, $E) { - var t1; - if (iterable instanceof A._BuiltList) { - t1 = A.createRuntimeType($E); - t1 = A.createRuntimeType(iterable.$ti._precomputed1) === t1; - } else - t1 = false; - if (t1) - return $E._eval$1("BuiltList<0>")._as(iterable); - else { - t1 = new A._BuiltList(A.List_List$from(iterable, false, $E), $E._eval$1("_BuiltList<0>")); - t1._list$_maybeCheckForNull$0(); - return t1; - } - }, - ListBuilder_ListBuilder(iterable, $E) { - var t1 = new A.ListBuilder($E._eval$1("ListBuilder<0>")); - t1.replace$1(0, iterable); - return t1; - }, - BuiltList: function BuiltList() { + SseClient__onOutgoingMessage_closure: function SseClient__onOutgoingMessage_closure(t0, t1, t2) { + this._box_0 = t0; + this.$this = t1; + this.message = t2; }, - _BuiltList: function _BuiltList(t0, t1) { - this._list = t0; - this._list$_hashCode = null; - this.$ti = t1; + generateUuidV4() { + var t1 = new A.generateUuidV4_printDigits(), + t2 = new A.generateUuidV4_bitsDigits(t1, new A.generateUuidV4_generateBits(B.C__JSRandom)), + t3 = B.C__JSRandom.nextInt$1(4); + return A.S(t2.call$2(16, 4)) + A.S(t2.call$2(16, 4)) + "-" + A.S(t2.call$2(16, 4)) + "-4" + A.S(t2.call$2(12, 3)) + "-" + A.S(t1.call$2(8 + t3, 1)) + A.S(t2.call$2(12, 3)) + "-" + A.S(t2.call$2(16, 4)) + A.S(t2.call$2(16, 4)) + A.S(t2.call$2(16, 4)); }, - ListBuilder: function ListBuilder(t0) { - this.__ListBuilder__list_A = $; - this._listOwner = null; - this.$ti = t0; + generateUuidV4_generateBits: function generateUuidV4_generateBits(t0) { + this.random = t0; }, - BuiltListMultimap_BuiltListMultimap($K, $V) { - var t1 = A._BuiltListMultimap$copy(B.Map_empty0.get$keys(B.Map_empty0), new A.BuiltListMultimap_BuiltListMultimap_closure(B.Map_empty0), $K, $V); - return t1; + generateUuidV4_printDigits: function generateUuidV4_printDigits() { }, - _BuiltListMultimap$copy(keys, lookup, $K, $V) { - var t1 = new A._BuiltListMultimap(A.LinkedHashMap_LinkedHashMap$_empty($K, $V._eval$1("BuiltList<0>")), A.BuiltList_BuiltList$from(B.List_empty, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("_BuiltListMultimap<1,2>")); - t1._BuiltListMultimap$copy$2(keys, lookup, $K, $V); - return t1; + generateUuidV4_bitsDigits: function generateUuidV4_bitsDigits(t0, t1) { + this.printDigits = t0; + this.generateBits = t1; }, - ListMultimapBuilder_ListMultimapBuilder($K, $V) { - var t1 = new A.ListMultimapBuilder($K._eval$1("@<0>")._bind$1($V)._eval$1("ListMultimapBuilder<1,2>")); - t1.replace$1(0, B.Map_empty0); - return t1; + GuaranteeChannel$(innerStream, innerSink, allowSinkErrors, $T) { + var t2, t1 = {}; + t1.innerStream = innerStream; + t2 = new A.GuaranteeChannel($T._eval$1("GuaranteeChannel<0>")); + t2.GuaranteeChannel$3$allowSinkErrors(innerSink, allowSinkErrors, t1, $T); + return t2; }, - BuiltListMultimap: function BuiltListMultimap() { + GuaranteeChannel: function GuaranteeChannel(t0) { + var _ = this; + _.__GuaranteeChannel__streamController_F = _.__GuaranteeChannel__sink_F = $; + _._guarantee_channel$_subscription = null; + _._disconnected = false; + _.$ti = t0; }, - BuiltListMultimap_BuiltListMultimap_closure: function BuiltListMultimap_BuiltListMultimap_closure(t0) { - this.multimap = t0; + GuaranteeChannel_closure: function GuaranteeChannel_closure(t0, t1, t2) { + this._box_0 = t0; + this.$this = t1; + this.T = t2; }, - BuiltListMultimap_hashCode_closure: function BuiltListMultimap_hashCode_closure(t0) { + GuaranteeChannel__closure: function GuaranteeChannel__closure(t0) { this.$this = t0; }, - _BuiltListMultimap: function _BuiltListMultimap(t0, t1, t2) { + _GuaranteeSink: function _GuaranteeSink(t0, t1, t2, t3, t4) { var _ = this; - _._list_multimap$_map = t0; - _._emptyList = t1; - _._list_multimap$_keys = _._list_multimap$_hashCode = null; - _.$ti = t2; + _._inner = t0; + _._guarantee_channel$_channel = t1; + _._doneCompleter = t2; + _._closed = _._disconnected = false; + _._addStreamCompleter = _._addStreamSubscription = null; + _._allowErrors = t3; + _.$ti = t4; }, - ListMultimapBuilder: function ListMultimapBuilder(t0) { - var _ = this; - _.__ListMultimapBuilder__builtMap_A = $; - _._list_multimap$_builtMapOwner = null; - _.__ListMultimapBuilder__builderMap_A = $; - _.$ti = t0; + _GuaranteeSink__addError_closure: function _GuaranteeSink__addError_closure() { }, - ListMultimapBuilder_replace_closure: function ListMultimapBuilder_replace_closure(t0) { - this.multimap = t0; + StreamChannelController: function StreamChannelController(t0) { + this.__StreamChannelController__foreign_F = this.__StreamChannelController__local_F = $; + this.$ti = t0; }, - BuiltMap_BuiltMap($K, $V) { - var t1 = new A._BuiltMap(null, A.LinkedHashMap_LinkedHashMap$_empty($K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("_BuiltMap<1,2>")); - t1._BuiltMap$copyAndCheckTypes$2(B.Map_empty0.get$keys(B.Map_empty0), new A.BuiltMap_BuiltMap_closure(B.Map_empty0), $K, $V); - return t1; + StreamChannelMixin: function StreamChannelMixin() { }, - MapBuilder_MapBuilder($K, $V) { - var t1 = new A.MapBuilder(null, $, null, $K._eval$1("@<0>")._bind$1($V)._eval$1("MapBuilder<1,2>")); - t1.replace$1(0, B.Map_empty0); - return t1; + RNG: function RNG() { }, - BuiltMap: function BuiltMap() { + CryptoRNG: function CryptoRNG() { }, - BuiltMap_BuiltMap_closure: function BuiltMap_BuiltMap_closure(t0) { - this.map = t0; + UuidV1: function UuidV1(t0) { + this.goptions = t0; }, - BuiltMap_hashCode_closure: function BuiltMap_hashCode_closure(t0) { - this.$this = t0; + _EventStreamSubscription$(_target, _eventType, onData, _useCapture, $T) { + var t1; + if (onData == null) + t1 = null; + else { + t1 = A._wrapZone(new A._EventStreamSubscription_closure(onData), type$.JavaScriptObject); + t1 = t1 == null ? null : A._functionToJS1(t1); + } + t1 = new A._EventStreamSubscription(_target, _eventType, t1, false, $T._eval$1("_EventStreamSubscription<0>")); + t1._tryResume$0(); + return t1; }, - _BuiltMap: function _BuiltMap(t0, t1, t2) { - var _ = this; - _._mapFactory = t0; - _._map$_map = t1; - _._map$_keys = _._map$_hashCode = null; - _.$ti = t2; + _wrapZone(callback, $T) { + var t1 = $.Zone__current; + if (t1 === B.C__RootZone) + return callback; + return t1.bindUnaryCallbackGuarded$1$1(callback, $T); }, - MapBuilder: function MapBuilder(t0, t1, t2, t3) { + EventStreamProvider: function EventStreamProvider(t0, t1) { + this._eventType = t0; + this.$ti = t1; + }, + _EventStream: function _EventStream(t0, t1, t2, t3) { var _ = this; - _._mapFactory = t0; - _.__MapBuilder__map_A = t1; - _._mapOwner = t2; + _._target = t0; + _._eventType = t1; + _._useCapture = t2; _.$ti = t3; }, - MapBuilder_replace_closure: function MapBuilder_replace_closure(t0, t1) { - this.$this = t0; - this.replacement = t1; + _EventStreamSubscription: function _EventStreamSubscription(t0, t1, t2, t3, t4) { + var _ = this; + _._pauseCount = 0; + _._target = t0; + _._eventType = t1; + _._onData = t2; + _._useCapture = t3; + _.$ti = t4; }, - BuiltSet_BuiltSet$from(iterable, $E) { - var t1 = new A._BuiltSet(null, A.LinkedHashSet_LinkedHashSet$from(iterable, $E), $E._eval$1("_BuiltSet<0>")); - t1._maybeCheckForNull$0(); - return t1; + _EventStreamSubscription_closure: function _EventStreamSubscription_closure(t0) { + this.onData = t0; }, - SetBuilder_SetBuilder($E) { - var t1 = new A.SetBuilder(null, $, null, $E._eval$1("SetBuilder<0>")); - t1.replace$1(0, B.List_empty); - return t1; + _EventStreamSubscription_onData_closure: function _EventStreamSubscription_onData_closure(t0) { + this.handleData = t0; }, - BuiltSet: function BuiltSet() { + HttpRequest_request(url, method, responseType, withCredentials) { + var t3, + t1 = new A._Future($.Zone__current, type$._Future_JavaScriptObject), + completer = new A._AsyncCompleter(t1, type$._AsyncCompleter_JavaScriptObject), + t2 = type$.JavaScriptObject, + xhr = t2._as(new self.XMLHttpRequest()); + xhr.open(method, url, true); + if (withCredentials != null) + xhr.withCredentials = withCredentials; + if (responseType != null) + xhr.responseType = responseType; + t3 = type$.nullable_void_Function_JavaScriptObject; + A._EventStreamSubscription$(xhr, "load", t3._as(new A.HttpRequest_request_closure(xhr, completer)), false, t2); + A._EventStreamSubscription$(xhr, "error", t3._as(completer.get$completeError()), false, t2); + xhr.send(); + return t1; }, - BuiltSet_hashCode_closure: function BuiltSet_hashCode_closure(t0) { - this.$this = t0; + HttpRequest_request_closure: function HttpRequest_request_closure(t0, t1) { + this.xhr = t0; + this.completer = t1; }, - _BuiltSet: function _BuiltSet(t0, t1, t2) { - var _ = this; - _._setFactory = t0; - _._set$_set = t1; - _._set$_hashCode = null; - _.$ti = t2; + HtmlWebSocketChannel$connect(url, protocols) { + var t4, localToForeignController, foreignToLocalController, t5, t6, _null = null, + t1 = self, + t2 = t1.WebSocket, + t3 = url.toString$0(0); + t1 = type$.JSArray_nullable_Object._as(new t1.Array()); + t4 = type$.JavaScriptObject; + t1 = t4._as(new t2(t3, t1)); + t1.binaryType = "arraybuffer"; + t2 = new A.StreamChannelController(type$.StreamChannelController_nullable_Object); + t3 = type$.nullable_Object; + localToForeignController = A.StreamController_StreamController(_null, _null, true, t3); + foreignToLocalController = A.StreamController_StreamController(_null, _null, true, t3); + t5 = A._instanceType(foreignToLocalController); + t6 = A._instanceType(localToForeignController); + t2.set$__StreamChannelController__local_F(A.GuaranteeChannel$(new A._ControllerStream(foreignToLocalController, t5._eval$1("_ControllerStream<1>")), new A._StreamSinkWrapper(localToForeignController, t6._eval$1("_StreamSinkWrapper<1>")), true, t3)); + t3 = A.GuaranteeChannel$(new A._ControllerStream(localToForeignController, t6._eval$1("_ControllerStream<1>")), new A._StreamSinkWrapper(foreignToLocalController, t5._eval$1("_StreamSinkWrapper<1>")), false, t3); + t2.__StreamChannelController__foreign_F !== $ && A.throwLateFieldAI("_foreign"); + t2.set$__StreamChannelController__foreign_F(t3); + t4._as(t1); + t2 = new A.HtmlWebSocketChannel(t1, t2); + t2.HtmlWebSocketChannel$1(t1); + return t2; }, - SetBuilder: function SetBuilder(t0, t1, t2, t3) { + HtmlWebSocketChannel: function HtmlWebSocketChannel(t0, t1) { var _ = this; - _._setFactory = t0; - _.__SetBuilder__set_A = t1; - _._setOwner = t2; - _.$ti = t3; - }, - SetMultimapBuilder_SetMultimapBuilder($K, $V) { - var t1 = new A.SetMultimapBuilder($K._eval$1("@<0>")._bind$1($V)._eval$1("SetMultimapBuilder<1,2>")); - t1.replace$1(0, B.Map_empty0); - return t1; + _.innerWebSocket = t0; + _._localCloseReason = _._localCloseCode = null; + _.__HtmlWebSocketChannel__readyCompleter_A = $; + _._html$_controller = t1; + _.__HtmlWebSocketChannel_sink_FI = $; }, - BuiltSetMultimap: function BuiltSetMultimap() { + HtmlWebSocketChannel_closure: function HtmlWebSocketChannel_closure(t0) { + this.$this = t0; }, - BuiltSetMultimap_hashCode_closure: function BuiltSetMultimap_hashCode_closure(t0) { + HtmlWebSocketChannel_closure0: function HtmlWebSocketChannel_closure0(t0) { this.$this = t0; }, - _BuiltSetMultimap: function _BuiltSetMultimap(t0, t1, t2) { - var _ = this; - _._set_multimap$_map = t0; - _._emptySet = t1; - _._set_multimap$_keys = _._set_multimap$_hashCode = null; - _.$ti = t2; + HtmlWebSocketChannel_closure1: function HtmlWebSocketChannel_closure1(t0) { + this.$this = t0; }, - SetMultimapBuilder: function SetMultimapBuilder(t0) { - var _ = this; - _.__SetMultimapBuilder__builtMap_A = $; - _._builtMapOwner = null; - _.__SetMultimapBuilder__builderMap_A = $; - _.$ti = t0; + HtmlWebSocketChannel__listen_closure: function HtmlWebSocketChannel__listen_closure(t0) { + this.$this = t0; }, - SetMultimapBuilder_replace_closure: function SetMultimapBuilder_replace_closure(t0) { - this.multimap = t0; + HtmlWebSocketChannel__listen_closure0: function HtmlWebSocketChannel__listen_closure0(t0) { + this.$this = t0; }, - $jc(hash, value) { - hash = hash + value & 536870911; - hash = hash + ((hash & 524287) << 10) & 536870911; - return hash ^ hash >>> 6; + _HtmlWebSocketSink: function _HtmlWebSocketSink(t0, t1) { + this._html$_channel = t0; + this._sink = t1; }, - $jf(hash) { - hash = hash + ((hash & 67108863) << 3) & 536870911; - hash ^= hash >>> 11; - return hash + ((hash & 16383) << 15) & 536870911; + WebSocketChannel: function WebSocketChannel(t0, t1) { + this._webSocket = t0; + this.ready = t1; }, - BuiltValueNullFieldError_checkNotNull(value, type, field, $T) { - if (value == null) - throw A.wrapException(new A.BuiltValueNullFieldError(type, field)); - return value; + WebSocketChannelException: function WebSocketChannelException(t0) { + this.message = t0; }, - BuiltValueNestedFieldError$(type, field, error) { - return new A.BuiltValueNestedFieldError(type, field, error); + main() { + return A.runZonedGuarded(new A.main_closure(), new A.main_closure0(), type$.Future_void); }, - EnumClass: function EnumClass() { + _trySendEvent(sink, serialized, $T) { + var exception; + try { + sink.add$1(0, serialized); + } catch (exception) { + if (A.unwrapException(exception) instanceof A.StateError) + A.print("Cannot send event " + A.S(serialized) + ". Injected client connection is closed."); + else + throw exception; + } }, - newBuiltValueToStringHelper_closure: function newBuiltValueToStringHelper_closure() { + _launchCommunicationWithDebugExtension() { + var t1, t2; + type$.JavaScriptObject._as(self.window).addEventListener("message", A._functionToJS1(A.client___handleAuthRequest$closure())); + t1 = $.$get$serializers(); + t2 = new A.DebugInfoBuilder(); + type$.nullable_void_Function_DebugInfoBuilder._as(new A._launchCommunicationWithDebugExtension_closure()).call$1(t2); + A._dispatchEvent("dart-app-ready", B.C_JsonCodec.encode$2$toEncodable(t1.serialize$1(t2._debug_info$_build$0()), null)); }, - IndentingBuiltValueToStringHelper: function IndentingBuiltValueToStringHelper(t0) { - this._result = t0; + _dispatchEvent(message, detail) { + var t1 = self, + t2 = type$.JavaScriptObject, + $event = t2._as(new t1.CustomEvent(message, t2._as({detail: detail}))); + A._asBool(t2._as(t1.document).dispatchEvent($event)); }, - BuiltValueNullFieldError: function BuiltValueNullFieldError(t0, t1) { - this.type = t0; - this.field = t1; + _handleAuthRequest($event) { + var t1, + data = type$.JavaScriptObject._as($event).data; + if (!(typeof data === "string")) + return; + if (A._asString(data) !== "dart-auth-request") + return; + if (A._authUrl() != null) { + t1 = A._authUrl(); + t1.toString; + A._authenticateUser(t1).then$1$1(new A._handleAuthRequest_closure(), type$.void); + } }, - BuiltValueNestedFieldError: function BuiltValueNestedFieldError(t0, t1, t2) { - this.type = t0; - this.field = t1; - this.error = t2; + _authenticateUser(authUrl) { + var $async$goto = 0, + $async$completer = A._makeAsyncAwaitCompleter(type$.bool), + $async$returnValue, $async$temp1, $async$temp2; + var $async$_authenticateUser = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { + if ($async$errorCode === 1) + return A._asyncRethrow($async$result, $async$completer); + while (true) + switch ($async$goto) { + case 0: + // Function start + $async$temp1 = B.JSString_methods; + $async$temp2 = A; + $async$goto = 3; + return A._asyncAwait(A.HttpRequest_request(authUrl, "GET", null, true), $async$_authenticateUser); + case 3: + // returning from await. + $async$returnValue = $async$temp1.contains$1($async$temp2._asString($async$result.responseText), "Dart Debug Authentication Success!"); + // goto return + $async$goto = 1; + break; + case 1: + // return + return A._asyncReturn($async$returnValue, $async$completer); + } + }); + return A._asyncStartSync($async$_authenticateUser, $async$completer); }, - JsonObject_JsonObject(value) { - if (typeof value == "number") - return new A.NumJsonObject(value); - else if (typeof value == "string") - return new A.StringJsonObject(value); - else if (A._isBool(value)) - return new A.BoolJsonObject(value); - else if (type$.List_nullable_Object._is(value)) - return new A.ListJsonObject(new A.UnmodifiableListView(value, type$.UnmodifiableListView_nullable_Object)); - else if (type$.Map_of_String_and_nullable_Object._is(value)) - return new A.MapJsonObject(new A.UnmodifiableMapView(value, type$.UnmodifiableMapView_of_String_and_nullable_Object)); - else if (type$.Map_dynamic_dynamic._is(value)) - return new A.MapJsonObject(new A.UnmodifiableMapView(J.cast$2$0$ax(value, type$.String, type$.nullable_Object), type$.UnmodifiableMapView_of_String_and_nullable_Object)); - else - throw A.wrapException(A.ArgumentError$value(value, "value", "Must be bool, List, Map, num or String")); + _isChromium() { + var t1 = type$.JavaScriptObject; + return B.JSString_methods.contains$1(A._asString(t1._as(t1._as(self.window).navigator).vendor), "Google"); }, - JsonObject: function JsonObject() { + _authUrl() { + var authUrl, + extensionUrl = A._asStringQ(type$.JavaScriptObject._as(self.window).$dartExtensionUri); + if (extensionUrl == null) + return null; + authUrl = A.Uri_parse(extensionUrl).replace$1$path("$dwdsExtensionAuthentication"); + switch (authUrl.scheme) { + case "ws": + return authUrl.replace$1$scheme("http").get$_text(); + case "wss": + return authUrl.replace$1$scheme("https").get$_text(); + default: + return authUrl.get$_text(); + } }, - BoolJsonObject: function BoolJsonObject(t0) { - this.value = t0; + main_closure: function main_closure() { }, - ListJsonObject: function ListJsonObject(t0) { - this.value = t0; + main__closure: function main__closure(t0, t1) { + this._box_0 = t0; + this.manager = t1; }, - MapJsonObject: function MapJsonObject(t0) { - this.value = t0; + main__closure0: function main__closure0(t0) { + this._box_0 = t0; }, - NumJsonObject: function NumJsonObject(t0) { - this.value = t0; + main__closure1: function main__closure1(t0) { + this.client = t0; }, - StringJsonObject: function StringJsonObject(t0) { - this.value = t0; + main___closure2: function main___closure2(t0) { + this.events = t0; }, - Serializers_Serializers() { - var t1 = type$.Type, - t2 = type$.Serializer_dynamic, - t3 = type$.String; - t2 = new A.BuiltJsonSerializersBuilder(A.MapBuilder_MapBuilder(t1, t2), A.MapBuilder_MapBuilder(t3, t2), A.MapBuilder_MapBuilder(t3, t2), A.MapBuilder_MapBuilder(type$.FullType, type$.Function), A.ListBuilder_ListBuilder(B.List_empty, type$.SerializerPlugin)); - t2.add$1(0, new A.BigIntSerializer(A.BuiltList_BuiltList$from([B.Type_BigInt_C3o, A.getRuntimeTypeOfDartObject($.$get$_BigIntImpl_zero())], t1))); - t2.add$1(0, new A.BoolSerializer(A.BuiltList_BuiltList$from([B.Type_bool_RoS], t1))); - t3 = type$.Object; - t2.add$1(0, new A.BuiltListSerializer(A.BuiltList_BuiltList$from([B.Type_BuiltList_27p, A.getRuntimeTypeOfDartObject(A.BuiltList_BuiltList$from(B.List_empty, t3))], t1))); - t2.add$1(0, new A.BuiltListMultimapSerializer(A.BuiltList_BuiltList$from([B.Type_BuiltListMultimap_apl, A.getRuntimeTypeOfDartObject(A.BuiltListMultimap_BuiltListMultimap(t3, t3))], t1))); - t2.add$1(0, new A.BuiltMapSerializer(A.BuiltList_BuiltList$from([B.Type_BuiltMap_MUU, A.getRuntimeTypeOfDartObject(A.BuiltMap_BuiltMap(t3, t3))], t1))); - t2.add$1(0, new A.BuiltSetSerializer(A.BuiltList_BuiltList$from([B.Type_BuiltSet_MMh, A.getRuntimeTypeOfDartObject(A.BuiltSet_BuiltSet$from(B.List_empty, t3))], t1))); - t2.add$1(0, new A.BuiltSetMultimapSerializer(A.BuiltSet_BuiltSet$from([B.Type_BuiltSetMultimap_Xbt], t1))); - t2.add$1(0, new A.DateTimeSerializer(A.BuiltList_BuiltList$from([B.Type_DateTime_H1G], t1))); - t2.add$1(0, new A.DoubleSerializer(A.BuiltList_BuiltList$from([B.Type_double_23F], t1))); - t2.add$1(0, new A.DurationSerializer(A.BuiltList_BuiltList$from([B.Type_Duration_86y], t1))); - t2.add$1(0, new A.IntSerializer(A.BuiltList_BuiltList$from([B.Type_int_8nG], t1))); - t2.add$1(0, new A.Int32Serializer(A.BuiltList_BuiltList$from([B.Type_Int32_kyU], t1))); - t2.add$1(0, new A.Int64Serializer(A.BuiltList_BuiltList$from([B.Type_Int64_chs], t1))); - t2.add$1(0, new A.JsonObjectSerializer(A.BuiltList_BuiltList$from([B.Type_JsonObject_aJ0, B.Type_BoolJsonObject_Ocu, B.Type_ListJsonObject_l4J, B.Type_MapJsonObject_OYg, B.Type_NumJsonObject_u6D, B.Type_StringJsonObject_wcs], t1))); - t2.add$1(0, new A.NullSerializer(A.BuiltList_BuiltList$from([B.Type_Null_a9w], t1))); - t2.add$1(0, new A.NumSerializer(A.BuiltList_BuiltList$from([B.Type_num_EOZ], t1))); - t2.add$1(0, new A.RegExpSerializer(A.BuiltList_BuiltList$from([B.Type_RegExp_NMc, $.$get$_runtimeType()], t1))); - t2.add$1(0, new A.StringSerializer(A.BuiltList_BuiltList$from([B.Type_String_J2O], t1))); - t2.add$1(0, new A.Uint8ListSerializer()); - t2.add$1(0, new A.UriSerializer(A.BuiltList_BuiltList$from([B.Type_Uri_aPa, A.getRuntimeTypeOfDartObject(A.Uri_parse("http://example.com")), A.getRuntimeTypeOfDartObject(A.Uri_parse("http://example.com:"))], t1))); - t2.addBuilderFactory$2(B.FullType_cgN, new A.Serializers_Serializers_closure()); - t2.addBuilderFactory$2(B.FullType_ow7, new A.Serializers_Serializers_closure0()); - t2.addBuilderFactory$2(B.FullType_wbi, new A.Serializers_Serializers_closure1()); - t2.addBuilderFactory$2(B.FullType_4aQ, new A.Serializers_Serializers_closure2()); - t2.addBuilderFactory$2(B.FullType_2pj, new A.Serializers_Serializers_closure3()); - return t2.build$0(); + main__closure2: function main__closure2(t0) { + this.debugEventController = t0; }, - FullType__getRawName(type) { - var $name = J.toString$0$(type), - genericsStart = B.JSString_methods.indexOf$1($name, "<"); - return genericsStart === -1 ? $name : B.JSString_methods.substring$2($name, 0, genericsStart); + main___closure1: function main___closure1(t0, t1) { + this.kind = t0; + this.eventData = t1; }, - DeserializationError_DeserializationError(json, type, error) { - var limitedJson = J.toString$0$(json), - t1 = limitedJson.length; - if (t1 > 80) - B.JSString_methods.replaceRange$3(limitedJson, 77, t1, "..."); - return new A.DeserializationError(type, error); + main__closure3: function main__closure3(t0) { + this.client = t0; }, - Serializers_Serializers_closure: function Serializers_Serializers_closure() { + main___closure0: function main___closure0(t0) { + this.eventData = t0; }, - Serializers_Serializers_closure0: function Serializers_Serializers_closure0() { + main__closure4: function main__closure4(t0) { + this.client = t0; }, - Serializers_Serializers_closure1: function Serializers_Serializers_closure1() { + main___closure: function main___closure() { }, - Serializers_Serializers_closure2: function Serializers_Serializers_closure2() { + main__closure5: function main__closure5(t0) { + this.manager = t0; }, - Serializers_Serializers_closure3: function Serializers_Serializers_closure3() { + main__closure6: function main__closure6() { }, - FullType: function FullType(t0, t1, t2) { - this.root = t0; - this.parameters = t1; - this.nullable = t2; + main__closure7: function main__closure7() { }, - DeserializationError: function DeserializationError(t0, t1) { - this.type = t0; - this.error = t1; + main__closure8: function main__closure8() { }, - BigIntSerializer: function BigIntSerializer(t0) { - this.types = t0; + main_closure0: function main_closure0() { }, - BoolSerializer: function BoolSerializer(t0) { - this.types = t0; + _launchCommunicationWithDebugExtension_closure: function _launchCommunicationWithDebugExtension_closure() { }, - BuiltJsonSerializersBuilder$_(_typeToSerializer, _wireNameToSerializer, _typeNameToSerializer, _builderFactories, _plugins) { - return new A.BuiltJsonSerializersBuilder(_typeToSerializer, _wireNameToSerializer, _typeNameToSerializer, _builderFactories, _plugins); + _handleAuthRequest_closure: function _handleAuthRequest_closure() { }, - _getRawName(type) { - var $name = J.toString$0$(type), - genericsStart = B.JSString_methods.indexOf$1($name, "<"); - return genericsStart === -1 ? $name : B.JSString_methods.substring$2($name, 0, genericsStart); + DdcRestarter: function DdcRestarter() { }, - _noSerializerMessageFor(typeName) { - var maybeRecordAdvice = B.JSString_methods.contains$1(typeName, "(") ? " Note that record types are not automatically serializable, please write and install your own `Serializer`." : ""; - return "No serializer for '" + typeName + "'." + maybeRecordAdvice; + DdcRestarter_restart_closure0: function DdcRestarter_restart_closure0(t0) { + this.reloadCompleter = t0; }, - BuiltJsonSerializers: function BuiltJsonSerializers(t0, t1, t2, t3, t4) { - var _ = this; - _._typeToSerializer = t0; - _._wireNameToSerializer = t1; - _._typeNameToSerializer = t2; - _.builderFactories = t3; - _.serializerPlugins = t4; + DdcRestarter_restart_closure: function DdcRestarter_restart_closure(t0) { + this.sub = t0; }, - BuiltJsonSerializersBuilder: function BuiltJsonSerializersBuilder(t0, t1, t2, t3, t4) { - var _ = this; - _._typeToSerializer = t0; - _._wireNameToSerializer = t1; - _._typeNameToSerializer = t2; - _._builderFactories = t3; - _._plugins = t4; + ReloadingManager: function ReloadingManager(t0, t1) { + this._client = t0; + this._restarter = t1; }, - BuiltListMultimapSerializer: function BuiltListMultimapSerializer(t0) { - this.types = t0; + SdkDeveloperExtension_maybeInvokeFlutterDisassemble(_this) { + var $async$goto = 0, + $async$completer = A._makeAsyncAwaitCompleter(type$.void); + var $async$SdkDeveloperExtension_maybeInvokeFlutterDisassemble = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { + if ($async$errorCode === 1) + return A._asyncRethrow($async$result, $async$completer); + while (true) + switch ($async$goto) { + case 0: + // Function start + $async$goto = A._asBool(type$.JavaScriptObject._as(_this._extensions).containsKey("ext.flutter.disassemble")) ? 2 : 3; + break; + case 2: + // then + $async$goto = 4; + return A._asyncAwait(A.promiseToFuture(type$.JSObject._as(_this.invokeExtension("ext.flutter.disassemble", "{}")), type$.String), $async$SdkDeveloperExtension_maybeInvokeFlutterDisassemble); + case 4: + // returning from await. + case 3: + // join + // implicit return + return A._asyncReturn(null, $async$completer); + } + }); + return A._asyncStartSync($async$SdkDeveloperExtension_maybeInvokeFlutterDisassemble, $async$completer); }, - BuiltListMultimapSerializer_serialize_closure: function BuiltListMultimapSerializer_serialize_closure(t0, t1) { - this.serializers = t0; - this.valueType = t1; + HotReloadFailedException$(_s) { + return new A.HotReloadFailedException(_s); }, - BuiltListMultimapSerializer_deserialize_closure: function BuiltListMultimapSerializer_deserialize_closure(t0, t1) { - this.serializers = t0; - this.valueType = t1; + RequireRestarter_create() { + var $async$goto = 0, + $async$completer = A._makeAsyncAwaitCompleter(type$.RequireRestarter), + $async$returnValue, reloader, t1, t2, t3; + var $async$RequireRestarter_create = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { + if ($async$errorCode === 1) + return A._asyncRethrow($async$result, $async$completer); + while (true) + switch ($async$goto) { + case 0: + // Function start + t1 = type$.String; + t2 = A.HashMap_HashMap(null, null, null, t1, type$.int); + t3 = new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_bool), type$._AsyncCompleter_bool); + t3.complete$1(true); + reloader = new A.RequireRestarter(t2, t3); + reloader.set$__RequireRestarter__dirtyModules_A(type$.SplayTreeSet_String._as(A.SplayTreeSet$(reloader.get$_moduleTopologicalCompare(), null, t1))); + $async$goto = 3; + return A._asyncAwait(reloader._initialize$0(), $async$RequireRestarter_create); + case 3: + // returning from await. + $async$returnValue = reloader; + // goto return + $async$goto = 1; + break; + case 1: + // return + return A._asyncReturn($async$returnValue, $async$completer); + } + }); + return A._asyncStartSync($async$RequireRestarter_create, $async$completer); }, - BuiltListSerializer: function BuiltListSerializer(t0) { - this.types = t0; + HotReloadFailedException: function HotReloadFailedException(t0) { + this._s = t0; }, - BuiltListSerializer_serialize_closure: function BuiltListSerializer_serialize_closure(t0, t1) { - this.serializers = t0; - this.elementType = t1; + RequireRestarter: function RequireRestarter(t0, t1) { + this._moduleOrdering = t0; + this.__RequireRestarter__dirtyModules_A = $; + this._running = t1; }, - BuiltListSerializer_deserialize_closure: function BuiltListSerializer_deserialize_closure(t0, t1) { - this.serializers = t0; - this.elementType = t1; + RequireRestarter__reload_closure: function RequireRestarter__reload_closure(t0, t1) { + this._box_0 = t0; + this.dart = t1; }, - BuiltMapSerializer: function BuiltMapSerializer(t0) { - this.types = t0; + RequireRestarter__reloadModule_closure: function RequireRestarter__reloadModule_closure(t0) { + this.completer = t0; }, - BuiltSetMultimapSerializer: function BuiltSetMultimapSerializer(t0) { - this.types = t0; - }, - BuiltSetMultimapSerializer_serialize_closure: function BuiltSetMultimapSerializer_serialize_closure(t0, t1) { - this.serializers = t0; - this.valueType = t1; - }, - BuiltSetMultimapSerializer_deserialize_closure: function BuiltSetMultimapSerializer_deserialize_closure(t0, t1) { - this.serializers = t0; - this.valueType = t1; - }, - BuiltSetSerializer: function BuiltSetSerializer(t0) { - this.types = t0; - }, - BuiltSetSerializer_serialize_closure: function BuiltSetSerializer_serialize_closure(t0, t1) { - this.serializers = t0; - this.elementType = t1; - }, - BuiltSetSerializer_deserialize_closure: function BuiltSetSerializer_deserialize_closure(t0, t1) { - this.serializers = t0; - this.elementType = t1; + RequireRestarter__reloadModule_closure0: function RequireRestarter__reloadModule_closure0(t0, t1) { + this.completer = t0; + this.stackTrace = t1; }, - DateTimeSerializer: function DateTimeSerializer(t0) { - this.types = t0; + _findNonce() { + var t2, i, element, t3, nonceValue, + t1 = type$.JavaScriptObject, + elements = t1._as(t1._as(t1._as(self.window).document).querySelectorAll("script")); + for (t2 = type$.nullable_JavaScriptObject, i = 0; i < A._asInt(elements.length); ++i) { + element = t2._as(elements.item(i)); + t3 = element == null ? t1._as(element) : element; + nonceValue = A._asString(t3.nonce); + t3 = $.$get$_noncePattern(); + if (t3._nativeRegExp.test(nonceValue)) + return nonceValue; + } + return null; }, - DoubleSerializer: function DoubleSerializer(t0) { - this.types = t0; + runMain() { + var t1, t2, + scriptElement = $.$get$_createScript().call$0(); + scriptElement.innerHTML = "window.$dartRunMain();"; + t1 = type$.nullable_JavaScriptObject._as(type$.JavaScriptObject._as(self.document).body); + t1.toString; + t2 = A.jsify(scriptElement); + t2.toString; + t1.append(t2); + A.Future_Future$microtask(new A.runMain_closure(scriptElement), type$.void); }, - DurationSerializer: function DurationSerializer(t0) { - this.types = t0; + _createScript_closure: function _createScript_closure() { }, - Int32Serializer: function Int32Serializer(t0) { - this.types = t0; + _createScript__closure: function _createScript__closure(t0) { + this.scriptElement = t0; }, - Int64Serializer: function Int64Serializer(t0) { - this.types = t0; + _createScript__closure0: function _createScript__closure0(t0, t1) { + this.scriptElement = t0; + this.nonce = t1; }, - IntSerializer: function IntSerializer(t0) { - this.types = t0; + runMain_closure: function runMain_closure(t0) { + this.scriptElement = t0; }, - JsonObjectSerializer: function JsonObjectSerializer(t0) { - this.types = t0; + JSArrayExtension_toDartIterable(_this, $T) { + return B.JSArray_methods.map$1$1(_this, new A.JSArrayExtension_toDartIterable_closure($T), $T); }, - NullSerializer: function NullSerializer(t0) { - this.types = t0; + JSArrayExtension_toDartIterable_closure: function JSArrayExtension_toDartIterable_closure(t0) { + this.T = t0; }, - NumSerializer: function NumSerializer(t0) { - this.types = t0; + printString(string) { + if (typeof dartPrint == "function") { + dartPrint(string); + return; + } + if (typeof console == "object" && typeof console.log != "undefined") { + console.log(string); + return; + } + if (typeof print == "function") { + print(string); + return; + } + throw "Unable to print message: " + String(string); }, - RegExpSerializer: function RegExpSerializer(t0) { - this.types = t0; + decodeDigit(c) { + var letter, + digit = c ^ 48; + if (digit < 10) + return digit; + letter = (c | 32) - 97; + if (letter >= 0) + return letter + 10; + else + return 255; + } + }, + B = {}; + var holders = [A, J, B]; + var $ = {}; + A.JS_CONST.prototype = {}; + J.Interceptor.prototype = { + $eq(receiver, other) { + return receiver === other; }, - StringSerializer: function StringSerializer(t0) { - this.types = t0; + get$hashCode(receiver) { + return A.Primitives_objectHashCode(receiver); }, - Uint8ListSerializer: function Uint8ListSerializer() { + toString$0(receiver) { + return "Instance of '" + A.Primitives_objectTypeName(receiver) + "'"; }, - UriSerializer: function UriSerializer(t0) { - this.types = t0; + get$runtimeType(receiver) { + return A.createRuntimeType(A._instanceTypeFromConstructor(this)); + } + }; + J.JSBool.prototype = { + toString$0(receiver) { + return String(receiver); }, - DefaultEquality: function DefaultEquality(t0) { - this.$ti = t0; + get$hashCode(receiver) { + return receiver ? 519018 : 218159; }, - IterableEquality: function IterableEquality(t0, t1) { - this._elementEquality = t0; - this.$ti = t1; + get$runtimeType(receiver) { + return A.createRuntimeType(type$.bool); }, - ListEquality: function ListEquality(t0, t1) { - this._elementEquality = t0; - this.$ti = t1; + $isTrustedGetRuntimeType: 1, + $isbool: 1 + }; + J.JSNull.prototype = { + $eq(receiver, other) { + return null == other; }, - _UnorderedEquality: function _UnorderedEquality() { + toString$0(receiver) { + return "null"; }, - SetEquality: function SetEquality(t0, t1) { - this._elementEquality = t0; - this.$ti = t1; + get$hashCode(receiver) { + return 0; }, - _MapEntry: function _MapEntry(t0, t1, t2) { - this.equality = t0; - this.key = t1; - this.value = t2; + get$runtimeType(receiver) { + return A.createRuntimeType(type$.Null); }, - MapEquality: function MapEquality(t0, t1, t2) { - this._keyEquality = t0; - this._valueEquality = t1; - this.$ti = t2; + $isTrustedGetRuntimeType: 1, + $isNull: 1 + }; + J.JavaScriptObject.prototype = {$isJSObject: 1}; + J.LegacyJavaScriptObject.prototype = { + get$hashCode(receiver) { + return 0; }, - DeepCollectionEquality: function DeepCollectionEquality() { + get$runtimeType(receiver) { + return B.Type_JSObject_0ua; }, - QueueList__computeInitialCapacity(initialCapacity) { - return 8; + toString$0(receiver) { + return String(receiver); + } + }; + J.PlainJavaScriptObject.prototype = {}; + J.UnknownJavaScriptObject.prototype = {}; + J.JavaScriptFunction.prototype = { + toString$0(receiver) { + var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()]; + if (dartClosure == null) + return this.super$LegacyJavaScriptObject$toString(receiver); + return "JavaScript function for " + J.toString$0$(dartClosure); }, - QueueList: function QueueList(t0, t1, t2, t3) { - var _ = this; - _._queue_list$_table = t0; - _._queue_list$_head = t1; - _._queue_list$_tail = t2; - _.$ti = t3; + $isFunction: 1 + }; + J.JavaScriptBigInt.prototype = { + get$hashCode(receiver) { + return 0; }, - _CastQueueList: function _CastQueueList(t0, t1, t2, t3, t4) { - var _ = this; - _._queue_list$_delegate = t0; - _._queue_list$_table = t1; - _._queue_list$_head = t2; - _._queue_list$_tail = t3; - _.$ti = t4; + toString$0(receiver) { + return String(receiver); + } + }; + J.JavaScriptSymbol.prototype = { + get$hashCode(receiver) { + return 0; }, - _QueueList_Object_ListMixin: function _QueueList_Object_ListMixin() { + toString$0(receiver) { + return String(receiver); + } + }; + J.JSArray.prototype = { + add$1(receiver, value) { + A._arrayInstanceType(receiver)._precomputed1._as(value); + receiver.$flags & 1 && A.throwUnsupportedOperation(receiver, 29); + receiver.push(value); }, - _$valueOf($name) { - switch ($name) { - case "started": - return B.BuildStatus_started; - case "succeeded": - return B.BuildStatus_succeeded; - case "failed": - return B.BuildStatus_failed; - default: - throw A.wrapException(A.ArgumentError$($name, null)); + addAll$1(receiver, collection) { + var t1; + A._arrayInstanceType(receiver)._eval$1("Iterable<1>")._as(collection); + receiver.$flags & 1 && A.throwUnsupportedOperation(receiver, "addAll", 2); + if (Array.isArray(collection)) { + this._addAllFromArray$1(receiver, collection); + return; } + for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();) + receiver.push(t1.get$current()); }, - BuildStatus: function BuildStatus(t0) { - this.name = t0; + _addAllFromArray$1(receiver, array) { + var len, i; + type$.JSArray_dynamic._as(array); + len = array.length; + if (len === 0) + return; + if (receiver === array) + throw A.wrapException(A.ConcurrentModificationError$(receiver)); + for (i = 0; i < len; ++i) + receiver.push(array[i]); }, - BuildResult: function BuildResult() { + clear$0(receiver) { + receiver.$flags & 1 && A.throwUnsupportedOperation(receiver, "clear", "clear"); + receiver.length = 0; }, - _$BuildStatusSerializer: function _$BuildStatusSerializer() { + map$1$1(receiver, f, $T) { + var t1 = A._arrayInstanceType(receiver); + return new A.MappedListIterable(receiver, t1._bind$1($T)._eval$1("1(2)")._as(f), t1._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>")); }, - _$BuildResultSerializer: function _$BuildResultSerializer() { + map$1(receiver, f) { + return this.map$1$1(receiver, f, type$.dynamic); }, - _$BuildResult: function _$BuildResult(t0) { - this.status = t0; + join$1(receiver, separator) { + var i, + list = A.List_List$filled(receiver.length, "", false, type$.String); + for (i = 0; i < receiver.length; ++i) + this.$indexSet(list, i, A.S(receiver[i])); + return list.join(separator); }, - BuildResultBuilder: function BuildResultBuilder() { - this._status = this._build_result$_$v = null; + take$1(receiver, n) { + return A.SubListIterable$(receiver, 0, A.checkNotNullable(n, "count", type$.int), A._arrayInstanceType(receiver)._precomputed1); }, - ConnectRequest: function ConnectRequest() { + skip$1(receiver, n) { + return A.SubListIterable$(receiver, n, null, A._arrayInstanceType(receiver)._precomputed1); }, - _$ConnectRequestSerializer: function _$ConnectRequestSerializer() { + fold$1$2(receiver, initialValue, combine, $T) { + var $length, value, i; + $T._as(initialValue); + A._arrayInstanceType(receiver)._bind$1($T)._eval$1("1(1,2)")._as(combine); + $length = receiver.length; + for (value = initialValue, i = 0; i < $length; ++i) { + value = combine.call$2(value, receiver[i]); + if (receiver.length !== $length) + throw A.wrapException(A.ConcurrentModificationError$(receiver)); + } + return value; }, - _$ConnectRequest: function _$ConnectRequest(t0, t1, t2) { - this.appId = t0; - this.instanceId = t1; - this.entrypointPath = t2; - }, - ConnectRequestBuilder: function ConnectRequestBuilder() { - var _ = this; - _._entrypointPath = _._instanceId = _._appId = _._$v = null; - }, - DebugEvent: function DebugEvent() { - }, - BatchedDebugEvents: function BatchedDebugEvents() { + elementAt$1(receiver, index) { + if (!(index >= 0 && index < receiver.length)) + return A.ioore(receiver, index); + return receiver[index]; }, - _$DebugEventSerializer: function _$DebugEventSerializer() { + sublist$2(receiver, start, end) { + var t1 = receiver.length; + if (start > t1) + throw A.wrapException(A.RangeError$range(start, 0, t1, "start", null)); + if (start === t1) + return A._setArrayType([], A._arrayInstanceType(receiver)); + return A._setArrayType(receiver.slice(start, t1), A._arrayInstanceType(receiver)); }, - _$BatchedDebugEventsSerializer: function _$BatchedDebugEventsSerializer() { + sublist$1(receiver, start) { + return this.sublist$2(receiver, start, null); }, - _$DebugEvent: function _$DebugEvent(t0, t1, t2) { - this.kind = t0; - this.eventData = t1; - this.timestamp = t2; + get$first(receiver) { + if (receiver.length > 0) + return receiver[0]; + throw A.wrapException(A.IterableElementError_noElement()); }, - DebugEventBuilder: function DebugEventBuilder() { - var _ = this; - _._timestamp = _._eventData = _._debug_event$_kind = _._debug_event$_$v = null; + get$last(receiver) { + var t1 = receiver.length; + if (t1 > 0) + return receiver[t1 - 1]; + throw A.wrapException(A.IterableElementError_noElement()); }, - _$BatchedDebugEvents: function _$BatchedDebugEvents(t0) { - this.events = t0; + setRange$4(receiver, start, end, iterable, skipCount) { + var $length, otherList, otherStart, t1, i; + A._arrayInstanceType(receiver)._eval$1("Iterable<1>")._as(iterable); + receiver.$flags & 2 && A.throwUnsupportedOperation(receiver, 5); + A.RangeError_checkValidRange(start, end, receiver.length); + $length = end - start; + if ($length === 0) + return; + A.RangeError_checkNotNegative(skipCount, "skipCount"); + if (type$.List_dynamic._is(iterable)) { + otherList = iterable; + otherStart = skipCount; + } else { + otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false); + otherStart = 0; + } + t1 = J.getInterceptor$asx(otherList); + if (otherStart + $length > t1.get$length(otherList)) + throw A.wrapException(A.IterableElementError_tooFew()); + if (otherStart < start) + for (i = $length - 1; i >= 0; --i) + receiver[start + i] = t1.$index(otherList, otherStart + i); + else + for (i = 0; i < $length; ++i) + receiver[start + i] = t1.$index(otherList, otherStart + i); }, - BatchedDebugEventsBuilder: function BatchedDebugEventsBuilder() { - this._events = this._debug_event$_$v = null; + sort$1(receiver, compare) { + var len, a, b, undefineds, i, + t1 = A._arrayInstanceType(receiver); + t1._eval$1("int(1,1)?")._as(compare); + receiver.$flags & 2 && A.throwUnsupportedOperation(receiver, "sort"); + len = receiver.length; + if (len < 2) + return; + if (compare == null) + compare = J._interceptors_JSArray__compareAny$closure(); + if (len === 2) { + a = receiver[0]; + b = receiver[1]; + t1 = compare.call$2(a, b); + if (typeof t1 !== "number") + return t1.$gt(); + if (t1 > 0) { + receiver[0] = b; + receiver[1] = a; + } + return; + } + undefineds = 0; + if (t1._precomputed1._is(null)) + for (i = 0; i < receiver.length; ++i) + if (receiver[i] === void 0) { + receiver[i] = null; + ++undefineds; + } + receiver.sort(A.convertDartClosureToJS(compare, 2)); + if (undefineds > 0) + this._replaceSomeNullsWithUndefined$1(receiver, undefineds); }, - DebugInfo: function DebugInfo() { + sort$0(receiver) { + return this.sort$1(receiver, null); }, - _$DebugInfoSerializer: function _$DebugInfoSerializer() { + _replaceSomeNullsWithUndefined$1(receiver, count) { + var i0, + i = receiver.length; + for (; i0 = i - 1, i > 0; i = i0) + if (receiver[i0] === null) { + receiver[i0] = void 0; + --count; + if (count === 0) + break; + } }, - _$DebugInfo: function _$DebugInfo(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) { - var _ = this; - _.appEntrypointPath = t0; - _.appId = t1; - _.appInstanceId = t2; - _.appOrigin = t3; - _.appUrl = t4; - _.authUrl = t5; - _.dwdsVersion = t6; - _.extensionUrl = t7; - _.isInternalBuild = t8; - _.isFlutterApp = t9; - _.workspaceName = t10; - _.tabUrl = t11; - _.tabId = t12; + contains$1(receiver, other) { + var i; + for (i = 0; i < receiver.length; ++i) + if (J.$eq$(receiver[i], other)) + return true; + return false; }, - DebugInfoBuilder: function DebugInfoBuilder() { - var _ = this; - _._tabId = _._tabUrl = _._workspaceName = _._isFlutterApp = _._isInternalBuild = _._extensionUrl = _._dwdsVersion = _._authUrl = _._appUrl = _._appOrigin = _._appInstanceId = _._debug_info$_appId = _._appEntrypointPath = _._debug_info$_$v = null; + get$isEmpty(receiver) { + return receiver.length === 0; }, - DevToolsRequest: function DevToolsRequest() { + get$isNotEmpty(receiver) { + return receiver.length !== 0; }, - DevToolsResponse: function DevToolsResponse() { + toString$0(receiver) { + return A.Iterable_iterableToFullString(receiver, "[", "]"); }, - _$DevToolsRequestSerializer: function _$DevToolsRequestSerializer() { + toList$1$growable(receiver, growable) { + var t1 = A._setArrayType(receiver.slice(0), A._arrayInstanceType(receiver)); + return t1; }, - _$DevToolsResponseSerializer: function _$DevToolsResponseSerializer() { + toList$0(receiver) { + return this.toList$1$growable(receiver, true); }, - _$DevToolsRequest: function _$DevToolsRequest(t0, t1, t2, t3, t4, t5) { - var _ = this; - _.appId = t0; - _.instanceId = t1; - _.contextId = t2; - _.tabUrl = t3; - _.uriOnly = t4; - _.client = t5; + get$iterator(receiver) { + return new J.ArrayIterator(receiver, receiver.length, A._arrayInstanceType(receiver)._eval$1("ArrayIterator<1>")); }, - DevToolsRequestBuilder: function DevToolsRequestBuilder() { - var _ = this; - _._devtools_request$_client = _._uriOnly = _._devtools_request$_tabUrl = _._contextId = _._devtools_request$_instanceId = _._devtools_request$_appId = _._devtools_request$_$v = null; + get$hashCode(receiver) { + return A.Primitives_objectHashCode(receiver); }, - _$DevToolsResponse: function _$DevToolsResponse(t0, t1, t2) { - this.success = t0; - this.promptExtension = t1; - this.error = t2; + get$length(receiver) { + return receiver.length; }, - DevToolsResponseBuilder: function DevToolsResponseBuilder() { - var _ = this; - _._error = _._promptExtension = _._success = _._devtools_request$_$v = null; + $index(receiver, index) { + if (!(index >= 0 && index < receiver.length)) + throw A.wrapException(A.diagnoseIndexError(receiver, index)); + return receiver[index]; }, - ErrorResponse: function ErrorResponse() { + $indexSet(receiver, index, value) { + A._arrayInstanceType(receiver)._precomputed1._as(value); + receiver.$flags & 2 && A.throwUnsupportedOperation(receiver); + if (!(index >= 0 && index < receiver.length)) + throw A.wrapException(A.diagnoseIndexError(receiver, index)); + receiver[index] = value; }, - _$ErrorResponseSerializer: function _$ErrorResponseSerializer() { + get$runtimeType(receiver) { + return A.createRuntimeType(A._arrayInstanceType(receiver)); }, - _$ErrorResponse: function _$ErrorResponse(t0, t1) { - this.error = t0; - this.stackTrace = t1; + $isEfficientLengthIterable: 1, + $isIterable: 1, + $isList: 1 + }; + J.JSUnmodifiableArray.prototype = {}; + J.ArrayIterator.prototype = { + get$current() { + var t1 = this._current; + return t1 == null ? this.$ti._precomputed1._as(t1) : t1; }, - ErrorResponseBuilder: function ErrorResponseBuilder() { - this._error_response$_stackTrace = this._error_response$_error = this._error_response$_$v = null; + moveNext$0() { + var t2, _this = this, + t1 = _this._iterable, + $length = t1.length; + if (_this._length !== $length) { + t1 = A.throwConcurrentModificationError(t1); + throw A.wrapException(t1); + } + t2 = _this._index; + if (t2 >= $length) { + _this.set$_current(null); + return false; + } + _this.set$_current(t1[t2]); + ++_this._index; + return true; }, - ExtensionRequest: function ExtensionRequest() { + set$_current(_current) { + this._current = this.$ti._eval$1("1?")._as(_current); }, - ExtensionResponse: function ExtensionResponse() { + $isIterator: 1 + }; + J.JSNumber.prototype = { + compareTo$1(receiver, b) { + var bIsNegative; + A._asNum(b); + if (receiver < b) + return -1; + else if (receiver > b) + return 1; + else if (receiver === b) { + if (receiver === 0) { + bIsNegative = this.get$isNegative(b); + if (this.get$isNegative(receiver) === bIsNegative) + return 0; + if (this.get$isNegative(receiver)) + return -1; + return 1; + } + return 0; + } else if (isNaN(receiver)) { + if (isNaN(b)) + return 0; + return 1; + } else + return -1; }, - ExtensionEvent: function ExtensionEvent() { + get$isNegative(receiver) { + return receiver === 0 ? 1 / receiver < 0 : receiver < 0; }, - BatchedEvents: function BatchedEvents() { + toInt$0(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 A.wrapException(A.UnsupportedError$("" + receiver + ".toInt()")); }, - _$ExtensionRequestSerializer: function _$ExtensionRequestSerializer() { + ceil$0(receiver) { + var truncated, d; + if (receiver >= 0) { + if (receiver <= 2147483647) { + truncated = receiver | 0; + return receiver === truncated ? truncated : truncated + 1; + } + } else if (receiver >= -2147483648) + return receiver | 0; + d = Math.ceil(receiver); + if (isFinite(d)) + return d; + throw A.wrapException(A.UnsupportedError$("" + receiver + ".ceil()")); }, - _$ExtensionResponseSerializer: function _$ExtensionResponseSerializer() { + floor$0(receiver) { + var truncated, d; + if (receiver >= 0) { + if (receiver <= 2147483647) + return receiver | 0; + } else if (receiver >= -2147483648) { + truncated = receiver | 0; + return receiver === truncated ? truncated : truncated - 1; + } + d = Math.floor(receiver); + if (isFinite(d)) + return d; + throw A.wrapException(A.UnsupportedError$("" + receiver + ".floor()")); }, - _$ExtensionEventSerializer: function _$ExtensionEventSerializer() { + toRadixString$1(receiver, radix) { + var result, t1, t2, match, exponent; + if (radix < 2 || radix > 36) + throw A.wrapException(A.RangeError$range(radix, 2, 36, "radix", null)); + result = receiver.toString(radix); + t1 = result.length; + t2 = t1 - 1; + if (!(t2 >= 0)) + return A.ioore(result, t2); + if (result.charCodeAt(t2) !== 41) + return result; + match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result); + if (match == null) + A.throwExpression(A.UnsupportedError$("Unexpected toString result: " + result)); + t1 = match.length; + if (1 >= t1) + return A.ioore(match, 1); + result = match[1]; + if (3 >= t1) + return A.ioore(match, 3); + exponent = +match[3]; + t1 = match[2]; + if (t1 != null) { + result += t1; + exponent -= t1.length; + } + return result + B.JSString_methods.$mul("0", exponent); }, - _$BatchedEventsSerializer: function _$BatchedEventsSerializer() { + toString$0(receiver) { + if (receiver === 0 && 1 / receiver < 0) + return "-0.0"; + else + return "" + receiver; }, - _$ExtensionRequest: function _$ExtensionRequest(t0, t1, t2) { - this.id = t0; - this.command = t1; - this.commandParams = t2; + get$hashCode(receiver) { + var absolute, floorLog2, factor, scaled, + intValue = receiver | 0; + if (receiver === intValue) + return intValue & 536870911; + absolute = Math.abs(receiver); + floorLog2 = Math.log(absolute) / 0.6931471805599453 | 0; + factor = Math.pow(2, floorLog2); + scaled = absolute < 1 ? absolute / factor : factor / absolute; + return ((scaled * 9007199254740992 | 0) + (scaled * 3542243181176521 | 0)) * 599197 + floorLog2 * 1259 & 536870911; }, - ExtensionRequestBuilder: function ExtensionRequestBuilder() { - var _ = this; - _._commandParams = _._command = _._id = _._extension_request$_$v = null; + $add(receiver, other) { + return receiver + other; }, - _$ExtensionResponse: function _$ExtensionResponse(t0, t1, t2, t3) { - var _ = this; - _.id = t0; - _.success = t1; - _.result = t2; - _.error = t3; + $mod(receiver, other) { + var result = receiver % other; + if (result === 0) + return 0; + if (result > 0) + return result; + return result + other; }, - ExtensionResponseBuilder: function ExtensionResponseBuilder() { - var _ = this; - _._extension_request$_error = _._extension_request$_result = _._extension_request$_success = _._id = _._extension_request$_$v = null; + $tdiv(receiver, other) { + if ((receiver | 0) === receiver) + if (other >= 1 || other < -1) + return receiver / other | 0; + return this._tdivSlow$1(receiver, other); }, - _$ExtensionEvent: function _$ExtensionEvent(t0, t1) { - this.params = t0; - this.method = t1; + _tdivFast$1(receiver, other) { + return (receiver | 0) === receiver ? receiver / other | 0 : this._tdivSlow$1(receiver, other); }, - ExtensionEventBuilder: function ExtensionEventBuilder() { - this._extension_request$_method = this._params = this._extension_request$_$v = null; + _tdivSlow$1(receiver, other) { + var quotient = receiver / other; + if (quotient >= -2147483648 && quotient <= 2147483647) + return quotient | 0; + if (quotient > 0) { + if (quotient !== 1 / 0) + return Math.floor(quotient); + } else if (quotient > -1 / 0) + return Math.ceil(quotient); + throw A.wrapException(A.UnsupportedError$("Result of truncating division is " + A.S(quotient) + ": " + A.S(receiver) + " ~/ " + other)); }, - _$BatchedEvents: function _$BatchedEvents(t0) { - this.events = t0; + $shl(receiver, other) { + if (other < 0) + throw A.wrapException(A.argumentErrorValue(other)); + return other > 31 ? 0 : receiver << other >>> 0; }, - BatchedEventsBuilder: function BatchedEventsBuilder() { - this._extension_request$_events = this._extension_request$_$v = null; + _shlPositive$1(receiver, other) { + return other > 31 ? 0 : receiver << other >>> 0; }, - IsolateExit: function IsolateExit() { + $shr(receiver, other) { + var t1; + if (other < 0) + throw A.wrapException(A.argumentErrorValue(other)); + if (receiver > 0) + t1 = this._shrBothPositive$1(receiver, other); + else { + t1 = other > 31 ? 31 : other; + t1 = receiver >> t1 >>> 0; + } + return t1; }, - IsolateStart: function IsolateStart() { + _shrOtherPositive$1(receiver, other) { + var t1; + if (receiver > 0) + t1 = this._shrBothPositive$1(receiver, other); + else { + t1 = other > 31 ? 31 : other; + t1 = receiver >> t1 >>> 0; + } + return t1; }, - _$IsolateExitSerializer: function _$IsolateExitSerializer() { + _shrReceiverPositive$1(receiver, other) { + if (0 > other) + throw A.wrapException(A.argumentErrorValue(other)); + return this._shrBothPositive$1(receiver, other); }, - _$IsolateStartSerializer: function _$IsolateStartSerializer() { + _shrBothPositive$1(receiver, other) { + return other > 31 ? 0 : receiver >>> other; }, - _$IsolateExit: function _$IsolateExit() { + get$runtimeType(receiver) { + return A.createRuntimeType(type$.num); }, - IsolateExitBuilder: function IsolateExitBuilder() { - this._isolate_events$_$v = null; + $isComparable: 1, + $isdouble: 1, + $isnum: 1 + }; + J.JSInt.prototype = { + get$bitLength(receiver) { + var wordBits, + t1 = receiver < 0 ? -receiver - 1 : receiver, + nonneg = t1; + for (wordBits = 32; nonneg >= 4294967296;) { + nonneg = this._tdivFast$1(nonneg, 4294967296); + wordBits += 32; + } + return wordBits - Math.clz32(nonneg); }, - _$IsolateStart: function _$IsolateStart() { + get$runtimeType(receiver) { + return A.createRuntimeType(type$.int); }, - IsolateStartBuilder: function IsolateStartBuilder() { - this._isolate_events$_$v = null; + $isTrustedGetRuntimeType: 1, + $isint: 1 + }; + J.JSNumNotInt.prototype = { + get$runtimeType(receiver) { + return A.createRuntimeType(type$.double); }, - RegisterEvent: function RegisterEvent() { + $isTrustedGetRuntimeType: 1 + }; + J.JSString.prototype = { + allMatches$2(receiver, string, start) { + var t1 = string.length; + if (start > t1) + throw A.wrapException(A.RangeError$range(start, 0, t1, null, null)); + return new A._StringAllMatchesIterable(string, receiver, start); }, - _$RegisterEventSerializer: function _$RegisterEventSerializer() { + allMatches$1(receiver, string) { + return this.allMatches$2(receiver, string, 0); }, - _$RegisterEvent: function _$RegisterEvent(t0, t1) { - this.eventData = t0; - this.timestamp = t1; + matchAsPrefix$2(receiver, string, start) { + var t1, t2, i, t3, _null = null; + if (start < 0 || start > string.length) + throw A.wrapException(A.RangeError$range(start, 0, string.length, _null, _null)); + t1 = receiver.length; + t2 = string.length; + if (start + t1 > t2) + return _null; + for (i = 0; i < t1; ++i) { + t3 = start + i; + if (!(t3 >= 0 && t3 < t2)) + return A.ioore(string, t3); + if (string.charCodeAt(t3) !== receiver.charCodeAt(i)) + return _null; + } + return new A.StringMatch(start, receiver); }, - RegisterEventBuilder: function RegisterEventBuilder() { - this._register_event$_timestamp = this._register_event$_eventData = this._register_event$_$v = null; + $add(receiver, other) { + return receiver + other; }, - RunRequest: function RunRequest() { + endsWith$1(receiver, other) { + var otherLength = other.length, + t1 = receiver.length; + if (otherLength > t1) + return false; + return other === this.substring$1(receiver, t1 - otherLength); }, - _$RunRequestSerializer: function _$RunRequestSerializer() { + replaceRange$3(receiver, start, end, replacement) { + var e = A.RangeError_checkValidRange(start, end, receiver.length); + return A.stringReplaceRangeUnchecked(receiver, start, e, replacement); }, - _$RunRequest: function _$RunRequest() { + startsWith$2(receiver, pattern, index) { + var endIndex; + if (index < 0 || index > receiver.length) + throw A.wrapException(A.RangeError$range(index, 0, receiver.length, null, null)); + if (typeof pattern == "string") { + endIndex = index + pattern.length; + if (endIndex > receiver.length) + return false; + return pattern === receiver.substring(index, endIndex); + } + return J.matchAsPrefix$2$s(pattern, receiver, index) != null; }, - _$serializers_closure: function _$serializers_closure() { + startsWith$1(receiver, pattern) { + return this.startsWith$2(receiver, pattern, 0); }, - _$serializers_closure0: function _$serializers_closure0() { + substring$2(receiver, start, end) { + return receiver.substring(start, A.RangeError_checkValidRange(start, end, receiver.length)); }, - BatchedStreamController: function BatchedStreamController(t0, t1, t2, t3, t4, t5) { - var _ = this; - _._checkDelayMilliseconds = t0; - _._batchDelayMilliseconds = t1; - _._inputController = t2; - _.__BatchedStreamController__inputQueue_A = $; - _._outputController = t3; - _._completer = t4; - _.$ti = t5; + substring$1(receiver, start) { + return this.substring$2(receiver, start, null); }, - BatchedStreamController__hasEventOrTimeOut_closure: function BatchedStreamController__hasEventOrTimeOut_closure() { + $mul(receiver, times) { + var s, result; + if (0 >= times) + return ""; + if (times === 1 || receiver.length === 0) + return receiver; + if (times !== times >>> 0) + throw A.wrapException(B.C_OutOfMemoryError); + for (s = receiver, result = ""; true;) { + if ((times & 1) === 1) + result = s + result; + times = times >>> 1; + if (times === 0) + break; + s += s; + } + return result; }, - BatchedStreamController__hasEventDuring_closure: function BatchedStreamController__hasEventDuring_closure() { + padLeft$2(receiver, width, padding) { + var delta = width - receiver.length; + if (delta <= 0) + return receiver; + return this.$mul(padding, delta) + receiver; }, - SocketClient: function SocketClient() { + indexOf$2(receiver, pattern, start) { + var t1; + if (start < 0 || start > receiver.length) + throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null)); + t1 = receiver.indexOf(pattern, start); + return t1; }, - SseSocketClient: function SseSocketClient(t0) { - this._sockets$_client = t0; + indexOf$1(receiver, pattern) { + return this.indexOf$2(receiver, pattern, 0); }, - WebSocketClient: function WebSocketClient(t0) { - this._channel = t0; + lastIndexOf$2(receiver, pattern, start) { + var t1, t2; + if (start == null) + start = receiver.length; + else if (start < 0 || start > receiver.length) + throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null)); + t1 = pattern.length; + t2 = receiver.length; + if (start + t1 > t2) + start = t2 - t1; + return receiver.lastIndexOf(pattern, start); }, - WebSocketClient_stream_closure: function WebSocketClient_stream_closure() { + lastIndexOf$1(receiver, pattern) { + return this.lastIndexOf$2(receiver, pattern, null); }, - safeUnawaited(future) { - future.catchError$1(new A.safeUnawaited_closure()); + contains$1(receiver, other) { + return A.stringContainsUnchecked(receiver, other, 0); }, - safeUnawaited_closure: function safeUnawaited_closure() { + compareTo$1(receiver, other) { + var t1; + A._asString(other); + if (receiver === other) + t1 = 0; + else + t1 = receiver < other ? -1 : 1; + return t1; }, - Int32: function Int32(t0) { - this._i = t0; + toString$0(receiver) { + return receiver; }, - Int64__parseRadix(s, radix, throwOnError) { - var d0, d1, d2, digit, d00, d10, - negative = B.JSString_methods.startsWith$1(s, "-"), - i = negative ? 1 : 0, - t1 = s.length; - if (i >= t1) - throw A.wrapException(A.FormatException$("No digits", s, i)); - for (d0 = 0, d1 = 0, d2 = 0; i < t1; ++i, d1 = d10, d0 = d00) { - digit = A.decodeDigit(s.charCodeAt(i)); - if (digit < radix) { - d0 = d0 * radix + digit; - d00 = d0 & 4194303; - d1 = d1 * radix + B.JSInt_methods._shrOtherPositive$1(d0, 22); - d10 = d1 & 4194303; - d2 = d2 * radix + (d1 >>> 22) & 1048575; - } else - throw A.wrapException(A.FormatException$("Not radix digit", s, i)); + get$hashCode(receiver) { + var t1, hash, i; + for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) { + hash = hash + receiver.charCodeAt(i) & 536870911; + hash = hash + ((hash & 524287) << 10) & 536870911; + hash ^= hash >> 6; } - if (negative) - return A.Int64__sub(0, 0, 0, d0, d1, d2); - return new A.Int64(d0 & 4194303, d1 & 4194303, d2 & 1048575); + hash = hash + ((hash & 67108863) << 3) & 536870911; + hash ^= hash >> 11; + return hash + ((hash & 16383) << 15) & 536870911; }, - Int64_Int64(value) { - var v2, v1, t1, t2, t3, - negative = value < 0; - if (negative) - value = -value; - v2 = B.JSInt_methods._tdivFast$1(value, 17592186044416); - value -= v2 * 17592186044416; - v1 = B.JSInt_methods._tdivFast$1(value, 4194304); - t1 = value - v1 * 4194304 & 4194303; - t2 = v1 & 4194303; - t3 = v2 & 1048575; - return negative ? A.Int64__sub(0, 0, 0, t1, t2, t3) : new A.Int64(t1, t2, t3); + get$runtimeType(receiver) { + return A.createRuntimeType(type$.String); }, - Int64__promote(value) { - if (value instanceof A.Int64) - return value; - else if (A._isInt(value)) - return A.Int64_Int64(value); - else if (value instanceof A.Int32) - return A.Int64_Int64(value._i); - throw A.wrapException(A.ArgumentError$value(value, "other", "not an int, Int32 or Int64")); + get$length(receiver) { + return receiver.length; }, - Int64__toRadixStringUnsigned(radix, d0, d1, d2, sign) { - var d4, d3, fatRadix, chunk1, chunk2, chunk3, q, q0, q1, q2, q3, chunk10, residue; - if (d0 === 0 && d1 === 0 && d2 === 0) - return "0"; - d4 = (d2 << 4 | d1 >>> 18) >>> 0; - d3 = d1 >>> 8 & 1023; - d2 = (d1 << 2 | d0 >>> 20) & 1023; - d1 = d0 >>> 10 & 1023; - d0 &= 1023; - if (!(radix < 37)) - return A.ioore(B.List_BZW, radix); - fatRadix = B.List_BZW[radix]; - chunk1 = ""; - chunk2 = ""; - chunk3 = ""; - while (true) { - if (!!(d4 === 0 && d3 === 0)) - break; - q = B.JSInt_methods.$tdiv(d4, fatRadix); - d3 += d4 - q * fatRadix << 10 >>> 0; - q0 = B.JSInt_methods.$tdiv(d3, fatRadix); - d2 += d3 - q0 * fatRadix << 10 >>> 0; - q1 = B.JSInt_methods.$tdiv(d2, fatRadix); - d1 += d2 - q1 * fatRadix << 10 >>> 0; - q2 = B.JSInt_methods.$tdiv(d1, fatRadix); - d0 += d1 - q2 * fatRadix << 10 >>> 0; - q3 = B.JSInt_methods.$tdiv(d0, fatRadix); - chunk10 = B.JSString_methods.substring$1(B.JSInt_methods.toRadixString$1(fatRadix + (d0 - q3 * fatRadix), radix), 1); - chunk3 = chunk2; - chunk2 = chunk1; - chunk1 = chunk10; - d3 = q0; - d4 = q; - d2 = q1; - d1 = q2; - d0 = q3; - } - residue = (d2 << 20 >>> 0) + (d1 << 10 >>> 0) + d0; - return sign + (residue === 0 ? "" : B.JSInt_methods.toRadixString$1(residue, radix)) + chunk1 + chunk2 + chunk3; + $isTrustedGetRuntimeType: 1, + $isComparable: 1, + $isPattern: 1, + $isString: 1 + }; + A._CastIterableBase.prototype = { + get$iterator(_) { + return new A.CastIterator(J.get$iterator$ax(this.get$__internal$_source()), A._instanceType(this)._eval$1("CastIterator<1,2>")); }, - Int64__sub(a0, a1, a2, b0, b1, b2) { - var diff0 = a0 - b0, - diff1 = a1 - b1 - (B.JSInt_methods._shrOtherPositive$1(diff0, 22) & 1); - return new A.Int64(diff0 & 4194303, diff1 & 4194303, a2 - b2 - (B.JSInt_methods._shrOtherPositive$1(diff1, 22) & 1) & 1048575); + get$length(_) { + return J.get$length$asx(this.get$__internal$_source()); }, - Int64: function Int64(t0, t1, t2) { - this._l = t0; - this._m = t1; - this._h = t2; + get$isEmpty(_) { + return J.get$isEmpty$asx(this.get$__internal$_source()); }, - stronglyConnectedComponents(nodes, edges, $T) { - var t2, t3, _i, t4, index, t5, state, node, iterator, index0, lowLink, t6, next, component, _null = null, - result = A._setArrayType([], $T._eval$1("JSArray>")), - t1 = type$.int, - lowLinks = A.HashMap_HashMap(_null, _null, _null, $T, t1), - indexes = A.HashMap_HashMap(_null, _null, _null, $T, t1), - onStack = A.HashSet_HashSet(_null, _null, $T), - lastVisited = A.ListQueue$($T); - t1 = A._setArrayType([], $T._eval$1("JSArray<_StackState<0>>")); - for (t2 = nodes.length, t3 = $T._eval$1("_StackState<0>"), _i = 0; _i < nodes.length; nodes.length === t2 || (0, A.throwConcurrentModificationError)(nodes), ++_i) - t1.push(new A._StackState(nodes[_i], _null, t3)); - $label0$0: - for (t2 = lastVisited.$ti._precomputed1, t4 = $T._eval$1("JSArray<0>"), index = 0; t5 = t1.length, t5 !== 0;) { - if (0 >= t5) - return A.ioore(t1, -1); - state = t1.pop(); - node = state.node; - iterator = state.iterator; - if (iterator == null) { - if (indexes.containsKey$1(0, node)) - continue $label0$0; - indexes.$indexSet(0, node, index); - lowLinks.$indexSet(0, node, index); - index0 = index + 1; - iterator = J.get$iterator$ax(edges.call$1(node)); - if (!iterator.moveNext$0()) { - B.JSArray_methods.add$1(result, A._setArrayType([node], t4)); - index = index0; - continue $label0$0; - } - lastVisited._collection$_add$1(0, t2._as(node)); - onStack.add$1(0, node); - lowLink = index; - index = index0; - } else { - t5 = lowLinks.$index(0, node); - t5.toString; - t6 = lowLinks.$index(0, iterator.get$current(iterator)); - t6.toString; - lowLink = Math.min(A.checkNum(t5), A.checkNum(t6)); - } - do { - next = iterator.get$current(iterator); - if (!indexes.containsKey$1(0, next)) { - B.JSArray_methods.add$1(t1, new A._StackState(node, iterator, t3)); - B.JSArray_methods.add$1(t1, new A._StackState(next, _null, t3)); - continue $label0$0; - } else if (onStack.contains$1(0, next)) { - t5 = indexes.$index(0, next); - t5.toString; - lowLink = Math.min(lowLink, A.checkNum(t5)); - lowLinks.$indexSet(0, node, lowLink); - } - } while (iterator.moveNext$0()); - if (lowLink === indexes.$index(0, node)) { - component = A._setArrayType([], t4); - do { - next = lastVisited.removeLast$0(0); - onStack.remove$1(0, next); - B.JSArray_methods.add$1(component, next); - } while (!A.boolConversionCheck(A._defaultEquals(next, node))); - B.JSArray_methods.add$1(result, component); - } - } - return result; + get$isNotEmpty(_) { + return J.get$isNotEmpty$asx(this.get$__internal$_source()); }, - _defaultEquals(a, b) { - return J.$eq$(a, b); + skip$1(_, count) { + var t1 = A._instanceType(this); + return A.CastIterable_CastIterable(J.skip$1$ax(this.get$__internal$_source(), count), t1._precomputed1, t1._rest[1]); }, - _StackState: function _StackState(t0, t1, t2) { - this.node = t0; - this.iterator = t1; - this.$ti = t2; + take$1(_, count) { + var t1 = A._instanceType(this); + return A.CastIterable_CastIterable(J.take$1$ax(this.get$__internal$_source(), count), t1._precomputed1, t1._rest[1]); }, - Level: function Level(t0, t1) { - this.name = t0; - this.value = t1; - }, - LogRecord: function LogRecord(t0, t1, t2) { - this.level = t0; - this.message = t1; - this.loggerName = t2; + elementAt$1(_, index) { + return A._instanceType(this)._rest[1]._as(J.elementAt$1$ax(this.get$__internal$_source(), index)); }, - Logger_Logger($name) { - return $.Logger__loggers.putIfAbsent$2(0, $name, new A.Logger_Logger_closure($name)); + get$first(_) { + return A._instanceType(this)._rest[1]._as(J.get$first$ax(this.get$__internal$_source())); }, - Logger: function Logger(t0, t1, t2) { - var _ = this; - _.name = t0; - _.parent = t1; - _._level = null; - _._children = t2; + contains$1(_, other) { + return J.contains$1$asx(this.get$__internal$_source(), other); }, - Logger_Logger_closure: function Logger_Logger_closure(t0) { - this.name = t0; + toString$0(_) { + return J.toString$0$(this.get$__internal$_source()); + } + }; + A.CastIterator.prototype = { + moveNext$0() { + return this.__internal$_source.moveNext$0(); }, - Pool: function Pool(t0, t1, t2, t3, t4) { - var _ = this; - _._requestedResources = t0; - _._onReleaseCallbacks = t1; - _._onReleaseCompleters = t2; - _._maxAllocatedResources = t3; - _._allocatedResources = 0; - _._timer = null; - _._closeMemo = t4; + get$current() { + return this.$ti._rest[1]._as(this.__internal$_source.get$current()); }, - Pool__runOnRelease_closure: function Pool__runOnRelease_closure(t0) { - this.$this = t0; + $isIterator: 1 + }; + A.CastIterable.prototype = { + get$__internal$_source() { + return this.__internal$_source; + } + }; + A._EfficientLengthCastIterable.prototype = {$isEfficientLengthIterable: 1}; + A.CastMap.prototype = { + cast$2$0(_, RK, RV) { + return new A.CastMap(this.__internal$_source, this.$ti._eval$1("@<1,2>")._bind$1(RK)._bind$1(RV)._eval$1("CastMap<1,2,3,4>")); }, - Pool__runOnRelease_closure0: function Pool__runOnRelease_closure0(t0) { - this.$this = t0; + containsKey$1(key) { + return this.__internal$_source.containsKey$1(key); }, - PoolResource: function PoolResource(t0) { - this._pool = t0; - this._released = false; + $index(_, key) { + return this.$ti._eval$1("4?")._as(this.__internal$_source.$index(0, key)); }, - SseClient$(serverUrl, debugKey) { - var t3, t4, t5, _null = null, - t1 = type$.String, - t2 = A.StreamController_StreamController(_null, _null, false, t1); - t1 = A.StreamController_StreamController(_null, _null, false, t1); - t3 = A.Logger_Logger("SseClient"); - t4 = $.Zone__current; - t5 = A.generateUuidV4(); - t1 = new A.SseClient(debugKey + "-" + t5, t2, t1, t3, new A._AsyncCompleter(new A._Future(t4, type$._Future_void), type$._AsyncCompleter_void)); - t1.SseClient$2$debugKey(serverUrl, debugKey); - return t1; + $indexSet(_, key, value) { + var t1 = this.$ti; + t1._rest[2]._as(key); + t1._rest[3]._as(value); + this.__internal$_source.$indexSet(0, t1._precomputed1._as(key), t1._rest[1]._as(value)); }, - SseClient: function SseClient(t0, t1, t2, t3, t4) { - var _ = this; - _._clientId = t0; - _._incomingController = t1; - _._outgoingController = t2; - _._logger = t3; - _._onConnected = t4; - _._lastMessageId = -1; - _.__SseClient__serverUrl_A = _.__SseClient__eventSource_A = $; - _._errorTimer = null; + forEach$1(_, f) { + this.__internal$_source.forEach$1(0, new A.CastMap_forEach_closure(this, this.$ti._eval$1("~(3,4)")._as(f))); }, - SseClient_closure: function SseClient_closure(t0) { - this.$this = t0; + get$keys() { + var t1 = this.$ti; + return A.CastIterable_CastIterable(this.__internal$_source.get$keys(), t1._precomputed1, t1._rest[2]); }, - SseClient_closure0: function SseClient_closure0(t0) { - this.$this = t0; + get$length(_) { + var t1 = this.__internal$_source; + return t1.get$length(t1); }, - SseClient_closure1: function SseClient_closure1(t0) { - this.$this = t0; + get$isEmpty(_) { + var t1 = this.__internal$_source; + return t1.get$isEmpty(t1); + } + }; + A.CastMap_forEach_closure.prototype = { + call$2(key, value) { + var t1 = this.$this.$ti; + t1._precomputed1._as(key); + t1._rest[1]._as(value); + this.f.call$2(t1._rest[2]._as(key), t1._rest[3]._as(value)); }, - SseClient__closure: function SseClient__closure(t0, t1) { - this.$this = t0; - this.error = t1; + $signature() { + return this.$this.$ti._eval$1("~(1,2)"); + } + }; + A.LateError.prototype = { + toString$0(_) { + return "LateInitializationError: " + this._message; + } + }; + A.nullFuture_closure.prototype = { + call$0() { + return A.Future_Future$value(null, type$.Null); }, - SseClient__onOutgoingMessage_closure: function SseClient__onOutgoingMessage_closure(t0, t1, t2) { - this._box_0 = t0; - this.$this = t1; - this.message = t2; + $signature: 24 + }; + A.SentinelValue.prototype = {}; + A.EfficientLengthIterable.prototype = {}; + A.ListIterable.prototype = { + get$iterator(_) { + var _this = this; + return new A.ListIterator(_this, _this.get$length(_this), A._instanceType(_this)._eval$1("ListIterator")); }, - generateUuidV4() { - var t1 = new A.generateUuidV4_printDigits(), - t2 = new A.generateUuidV4_bitsDigits(t1, new A.generateUuidV4_generateBits(B.C__JSRandom)), - t3 = B.C__JSRandom.nextInt$1(4); - return A.S(t2.call$2(16, 4)) + A.S(t2.call$2(16, 4)) + "-" + A.S(t2.call$2(16, 4)) + "-4" + A.S(t2.call$2(12, 3)) + "-" + A.S(t1.call$2(8 + t3, 1)) + A.S(t2.call$2(12, 3)) + "-" + A.S(t2.call$2(16, 4)) + A.S(t2.call$2(16, 4)) + A.S(t2.call$2(16, 4)); + get$isEmpty(_) { + return this.get$length(this) === 0; }, - generateUuidV4_generateBits: function generateUuidV4_generateBits(t0) { - this.random = t0; + get$first(_) { + if (this.get$length(this) === 0) + throw A.wrapException(A.IterableElementError_noElement()); + return this.elementAt$1(0, 0); }, - generateUuidV4_printDigits: function generateUuidV4_printDigits() { + contains$1(_, element) { + var i, _this = this, + $length = _this.get$length(_this); + for (i = 0; i < $length; ++i) { + if (J.$eq$(_this.elementAt$1(0, i), element)) + return true; + if ($length !== _this.get$length(_this)) + throw A.wrapException(A.ConcurrentModificationError$(_this)); + } + return false; }, - generateUuidV4_bitsDigits: function generateUuidV4_bitsDigits(t0, t1) { - this.printDigits = t0; - this.generateBits = t1; + join$1(_, separator) { + var first, t1, i, _this = this, + $length = _this.get$length(_this); + if (separator.length !== 0) { + if ($length === 0) + return ""; + first = A.S(_this.elementAt$1(0, 0)); + if ($length !== _this.get$length(_this)) + throw A.wrapException(A.ConcurrentModificationError$(_this)); + for (t1 = first, i = 1; i < $length; ++i) { + t1 = t1 + separator + A.S(_this.elementAt$1(0, i)); + if ($length !== _this.get$length(_this)) + throw A.wrapException(A.ConcurrentModificationError$(_this)); + } + return t1.charCodeAt(0) == 0 ? t1 : t1; + } else { + for (i = 0, t1 = ""; i < $length; ++i) { + t1 += A.S(_this.elementAt$1(0, i)); + if ($length !== _this.get$length(_this)) + throw A.wrapException(A.ConcurrentModificationError$(_this)); + } + return t1.charCodeAt(0) == 0 ? t1 : t1; + } }, - GuaranteeChannel$(innerStream, innerSink, allowSinkErrors, $T) { - var t2, t1 = {}; - t1.innerStream = innerStream; - t2 = new A.GuaranteeChannel($T._eval$1("GuaranteeChannel<0>")); - t2.GuaranteeChannel$3$allowSinkErrors(innerSink, allowSinkErrors, t1, $T); - return t2; + join$0(_) { + return this.join$1(0, ""); }, - GuaranteeChannel: function GuaranteeChannel(t0) { - var _ = this; - _.__GuaranteeChannel__streamController_F = _.__GuaranteeChannel__sink_F = $; - _._guarantee_channel$_subscription = null; - _._disconnected = false; - _.$ti = t0; + map$1$1(_, toElement, $T) { + var t1 = A._instanceType(this); + return new A.MappedListIterable(this, t1._bind$1($T)._eval$1("1(ListIterable.E)")._as(toElement), t1._eval$1("@")._bind$1($T)._eval$1("MappedListIterable<1,2>")); }, - GuaranteeChannel_closure: function GuaranteeChannel_closure(t0, t1, t2) { - this._box_0 = t0; - this.$this = t1; - this.T = t2; + map$1(_, toElement) { + return this.map$1$1(0, toElement, type$.dynamic); }, - GuaranteeChannel__closure: function GuaranteeChannel__closure(t0) { - this.$this = t0; + skip$1(_, count) { + return A.SubListIterable$(this, count, null, A._instanceType(this)._eval$1("ListIterable.E")); }, - _GuaranteeSink: function _GuaranteeSink(t0, t1, t2, t3, t4) { - var _ = this; - _._inner = t0; - _._guarantee_channel$_channel = t1; - _._doneCompleter = t2; - _._closed = _._disconnected = false; - _._addStreamCompleter = _._addStreamSubscription = null; - _._allowErrors = t3; - _.$ti = t4; + take$1(_, count) { + return A.SubListIterable$(this, 0, A.checkNotNullable(count, "count", type$.int), A._instanceType(this)._eval$1("ListIterable.E")); }, - _GuaranteeSink__addError_closure: function _GuaranteeSink__addError_closure() { + toList$1$growable(_, growable) { + return A.List_List$of(this, true, A._instanceType(this)._eval$1("ListIterable.E")); }, - StreamChannelController: function StreamChannelController(t0) { - this.__StreamChannelController__foreign_F = this.__StreamChannelController__local_F = $; - this.$ti = t0; + toList$0(_) { + return this.toList$1$growable(0, true); + } + }; + A.SubListIterable.prototype = { + get$_endIndex() { + var $length = J.get$length$asx(this.__internal$_iterable), + endOrLength = this._endOrLength; + if (endOrLength == null || endOrLength > $length) + return $length; + return endOrLength; }, - StreamChannelMixin: function StreamChannelMixin() { + get$_startIndex() { + var $length = J.get$length$asx(this.__internal$_iterable), + t1 = this.__internal$_start; + if (t1 > $length) + return $length; + return t1; }, - RNG: function RNG() { + get$length(_) { + var endOrLength, + $length = J.get$length$asx(this.__internal$_iterable), + t1 = this.__internal$_start; + if (t1 >= $length) + return 0; + endOrLength = this._endOrLength; + if (endOrLength == null || endOrLength >= $length) + return $length - t1; + if (typeof endOrLength !== "number") + return endOrLength.$sub(); + return endOrLength - t1; }, - MathRNG: function MathRNG(t0) { - this._rnd = t0; + elementAt$1(_, index) { + var _this = this, + realIndex = _this.get$_startIndex() + index; + if (index < 0 || realIndex >= _this.get$_endIndex()) + throw A.wrapException(A.IndexError$withLength(index, _this.get$length(0), _this, null, "index")); + return J.elementAt$1$ax(_this.__internal$_iterable, realIndex); }, - UuidV1: function UuidV1(t0) { - this.goptions = t0; + skip$1(_, count) { + var newStart, endOrLength, _this = this; + A.RangeError_checkNotNegative(count, "count"); + newStart = _this.__internal$_start + count; + endOrLength = _this._endOrLength; + if (endOrLength != null && newStart >= endOrLength) + return new A.EmptyIterable(_this.$ti._eval$1("EmptyIterable<1>")); + return A.SubListIterable$(_this.__internal$_iterable, newStart, endOrLength, _this.$ti._precomputed1); }, - _EventStreamSubscription$0(_target, _eventType, onData, _useCapture, $T) { - var t1; - if (onData == null) - t1 = null; + take$1(_, count) { + var endOrLength, t1, newEnd, _this = this; + A.RangeError_checkNotNegative(count, "count"); + endOrLength = _this._endOrLength; + t1 = _this.__internal$_start; + if (endOrLength == null) + return A.SubListIterable$(_this.__internal$_iterable, t1, B.JSInt_methods.$add(t1, count), _this.$ti._precomputed1); else { - t1 = A._wrapZone0(new A._EventStreamSubscription_closure0(onData), type$.JSObject); - t1 = t1 == null ? null : type$.JavaScriptFunction._as(A.allowInterop(t1, type$.Function)); + newEnd = B.JSInt_methods.$add(t1, count); + if (endOrLength < newEnd) + return _this; + return A.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1); } - t1 = new A._EventStreamSubscription0(_target, _eventType, t1, false, $T._eval$1("_EventStreamSubscription0<0>")); - t1._streams$_tryResume$0(); - return t1; - }, - _wrapZone0(callback, $T) { - var t1 = $.Zone__current; - if (t1 === B.C__RootZone) - return callback; - return t1.bindUnaryCallbackGuarded$1$1(callback, $T); - }, - EventStreamProvider0: function EventStreamProvider0(t0, t1) { - this._streams$_eventType = t0; - this.$ti = t1; }, - _EventStream: function _EventStream(t0, t1, t2, t3) { - var _ = this; - _._streams$_target = t0; - _._streams$_eventType = t1; - _._streams$_useCapture = t2; - _.$ti = t3; + toList$1$growable(_, growable) { + var $length, result, i, _this = this, + start = _this.__internal$_start, + t1 = _this.__internal$_iterable, + t2 = J.getInterceptor$asx(t1), + end = t2.get$length(t1), + endOrLength = _this._endOrLength; + if (endOrLength != null && endOrLength < end) + end = endOrLength; + $length = end - start; + if ($length <= 0) { + t1 = J.JSArray_JSArray$fixed(0, _this.$ti._precomputed1); + return t1; + } + result = A.List_List$filled($length, t2.elementAt$1(t1, start), false, _this.$ti._precomputed1); + for (i = 1; i < $length; ++i) { + B.JSArray_methods.$indexSet(result, i, t2.elementAt$1(t1, start + i)); + if (t2.get$length(t1) < end) + throw A.wrapException(A.ConcurrentModificationError$(_this)); + } + return result; + } + }; + A.ListIterator.prototype = { + get$current() { + var t1 = this.__internal$_current; + return t1 == null ? this.$ti._precomputed1._as(t1) : t1; }, - _EventStreamSubscription0: function _EventStreamSubscription0(t0, t1, t2, t3, t4) { - var _ = this; - _._streams$_pauseCount = 0; - _._streams$_target = t0; - _._streams$_eventType = t1; - _._streams$_onData = t2; - _._streams$_useCapture = t3; - _.$ti = t4; + moveNext$0() { + var t3, _this = this, + t1 = _this.__internal$_iterable, + t2 = J.getInterceptor$asx(t1), + $length = t2.get$length(t1); + if (_this.__internal$_length !== $length) + throw A.wrapException(A.ConcurrentModificationError$(t1)); + t3 = _this.__internal$_index; + if (t3 >= $length) { + _this.set$__internal$_current(null); + return false; + } + _this.set$__internal$_current(t2.elementAt$1(t1, t3)); + ++_this.__internal$_index; + return true; }, - _EventStreamSubscription_closure0: function _EventStreamSubscription_closure0(t0) { - this.onData = t0; + set$__internal$_current(_current) { + this.__internal$_current = this.$ti._eval$1("1?")._as(_current); }, - _EventStreamSubscription_onData_closure: function _EventStreamSubscription_onData_closure(t0) { - this.handleData = t0; + $isIterator: 1 + }; + A.MappedIterable.prototype = { + get$iterator(_) { + return new A.MappedIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, A._instanceType(this)._eval$1("MappedIterator<1,2>")); }, - BrowserWebSocket_connect(url, protocols) { - var $async$goto = 0, - $async$completer = A._makeAsyncAwaitCompleter(type$.BrowserWebSocket), - $async$returnValue, t1, t2, t3, t4, t5, webSocket, browserSocket, webSocketConnected; - var $async$BrowserWebSocket_connect = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { - if ($async$errorCode === 1) - return A._asyncRethrow($async$result, $async$completer); - while (true) - switch ($async$goto) { - case 0: - // Function start - if (!url.isScheme$1("ws") && !url.isScheme$1("wss")) - throw A.wrapException(A.ArgumentError$value(url, "url", "only ws: and wss: schemes are supported")); - t1 = self; - t2 = t1.WebSocket; - t3 = url.toString$0(0); - t4 = type$.JSArray_nullable_Object._as(new t1.Array()); - t5 = type$.JSObject; - webSocket = t5._as(new t2(t3, t4)); - webSocket.binaryType = "arraybuffer"; - browserSocket = new A.BrowserWebSocket(webSocket, A.StreamController_StreamController(null, null, false, type$.WebSocketEvent)); - t4 = new A._Future($.Zone__current, type$._Future_BrowserWebSocket); - webSocketConnected = new A._AsyncCompleter(t4, type$._AsyncCompleter_BrowserWebSocket); - if (A._asInt(webSocket.readyState) === A._asInt(t1.WebSocket.OPEN)) - webSocketConnected.complete$1(0, browserSocket); - else if (A._asInt(webSocket.readyState) === A._asInt(t1.WebSocket.CLOSING) || A._asInt(webSocket.readyState) === A._asInt(t1.WebSocket.CLOSED)) { - A._asInt(webSocket.readyState); - webSocketConnected.completeError$1(new A.WebSocketException()); - } else - new A._EventStream(webSocket, "open", false, type$._EventStream_JSObject).get$first(0).then$1$1(0, new A.BrowserWebSocket_connect_closure(webSocketConnected, browserSocket), type$.void); - t1 = type$._EventStream_JSObject; - t2 = type$.void; - new A._EventStream(webSocket, "error", false, t1).get$first(0).then$1$1(0, new A.BrowserWebSocket_connect_closure0(webSocketConnected, browserSocket), t2); - A._EventStreamSubscription$0(webSocket, "message", type$.nullable_void_Function_JSObject._as(new A.BrowserWebSocket_connect_closure1(browserSocket)), false, t5); - new A._EventStream(webSocket, "close", false, t1).get$first(0).then$1$1(0, new A.BrowserWebSocket_connect_closure2(webSocketConnected, browserSocket), t2); - $async$returnValue = t4; - // goto return - $async$goto = 1; - break; - case 1: - // return - return A._asyncReturn($async$returnValue, $async$completer); - } - }); - return A._asyncStartSync($async$BrowserWebSocket_connect, $async$completer); + get$length(_) { + return J.get$length$asx(this.__internal$_iterable); }, - BrowserWebSocket: function BrowserWebSocket(t0, t1) { - this._webSocket = t0; - this._browser_web_socket$_events = t1; + get$isEmpty(_) { + return J.get$isEmpty$asx(this.__internal$_iterable); }, - BrowserWebSocket_connect_closure: function BrowserWebSocket_connect_closure(t0, t1) { - this.webSocketConnected = t0; - this.browserSocket = t1; + get$first(_) { + return this._f.call$1(J.get$first$ax(this.__internal$_iterable)); }, - BrowserWebSocket_connect_closure0: function BrowserWebSocket_connect_closure0(t0, t1) { - this.webSocketConnected = t0; - this.browserSocket = t1; + elementAt$1(_, index) { + return this._f.call$1(J.elementAt$1$ax(this.__internal$_iterable, index)); + } + }; + A.EfficientLengthMappedIterable.prototype = {$isEfficientLengthIterable: 1}; + A.MappedIterator.prototype = { + moveNext$0() { + var _this = this, + t1 = _this._iterator; + if (t1.moveNext$0()) { + _this.set$__internal$_current(_this._f.call$1(t1.get$current())); + return true; + } + _this.set$__internal$_current(null); + return false; }, - BrowserWebSocket_connect_closure1: function BrowserWebSocket_connect_closure1(t0) { - this.browserSocket = t0; + get$current() { + var t1 = this.__internal$_current; + return t1 == null ? this.$ti._rest[1]._as(t1) : t1; }, - BrowserWebSocket_connect_closure2: function BrowserWebSocket_connect_closure2(t0, t1) { - this.webSocketConnected = t0; - this.browserSocket = t1; + set$__internal$_current(_current) { + this.__internal$_current = this.$ti._eval$1("2?")._as(_current); }, - WebSocketConnectionClosed$() { - return new A.WebSocketConnectionClosed(); + $isIterator: 1 + }; + A.MappedListIterable.prototype = { + get$length(_) { + return J.get$length$asx(this.__internal$_source); }, - WebSocketEvent: function WebSocketEvent() { + elementAt$1(_, index) { + return this._f.call$1(J.elementAt$1$ax(this.__internal$_source, index)); + } + }; + A.TakeIterable.prototype = { + get$iterator(_) { + return new A.TakeIterator(J.get$iterator$ax(this.__internal$_iterable), this._takeCount, A._instanceType(this)._eval$1("TakeIterator<1>")); + } + }; + A.EfficientLengthTakeIterable.prototype = { + get$length(_) { + var iterableLength = J.get$length$asx(this.__internal$_iterable), + t1 = this._takeCount; + if (iterableLength > t1) + return t1; + return iterableLength; }, - TextDataReceived: function TextDataReceived(t0) { - this.text = t0; + $isEfficientLengthIterable: 1 + }; + A.TakeIterator.prototype = { + moveNext$0() { + if (--this._remaining >= 0) + return this._iterator.moveNext$0(); + this._remaining = -1; + return false; }, - BinaryDataReceived: function BinaryDataReceived(t0) { - this.data = t0; + get$current() { + if (this._remaining < 0) { + this.$ti._precomputed1._as(null); + return null; + } + return this._iterator.get$current(); }, - CloseReceived: function CloseReceived(t0, t1) { - this.code = t0; - this.reason = t1; + $isIterator: 1 + }; + A.SkipIterable.prototype = { + skip$1(_, count) { + A.ArgumentError_checkNotNull(count, "count", type$.int); + A.RangeError_checkNotNegative(count, "count"); + return new A.SkipIterable(this.__internal$_iterable, this._skipCount + count, A._instanceType(this)._eval$1("SkipIterable<1>")); }, - WebSocketException: function WebSocketException() { + get$iterator(_) { + return new A.SkipIterator(J.get$iterator$ax(this.__internal$_iterable), this._skipCount, A._instanceType(this)._eval$1("SkipIterator<1>")); + } + }; + A.EfficientLengthSkipIterable.prototype = { + get$length(_) { + var $length = J.get$length$asx(this.__internal$_iterable) - this._skipCount; + if ($length >= 0) + return $length; + return 0; }, - WebSocketConnectionClosed: function WebSocketConnectionClosed() { + skip$1(_, count) { + A.ArgumentError_checkNotNull(count, "count", type$.int); + A.RangeError_checkNotNegative(count, "count"); + return new A.EfficientLengthSkipIterable(this.__internal$_iterable, this._skipCount + count, this.$ti); }, - AdapterWebSocketChannel$(webSocket) { - var _null = null, - t1 = $.Zone__current, - t2 = new A.StreamChannelController(type$.StreamChannelController_nullable_Object), - t3 = type$.nullable_Object, - localToForeignController = A.StreamController_StreamController(_null, _null, true, t3), - foreignToLocalController = A.StreamController_StreamController(_null, _null, true, t3), - t4 = A._instanceType(foreignToLocalController), - t5 = A._instanceType(localToForeignController); - t2.set$__StreamChannelController__local_F(A.GuaranteeChannel$(new A._ControllerStream(foreignToLocalController, t4._eval$1("_ControllerStream<1>")), new A._StreamSinkWrapper(localToForeignController, t5._eval$1("_StreamSinkWrapper<1>")), true, t3)); - t3 = A.GuaranteeChannel$(new A._ControllerStream(localToForeignController, t5._eval$1("_ControllerStream<1>")), new A._StreamSinkWrapper(foreignToLocalController, t4._eval$1("_StreamSinkWrapper<1>")), false, t3); - t2.__StreamChannelController__foreign_F !== $ && A.throwLateFieldAI("_foreign"); - t2.set$__StreamChannelController__foreign_F(t3); - t2 = new A.AdapterWebSocketChannel(new A._AsyncCompleter(new A._Future(t1, type$._Future_void), type$._AsyncCompleter_void), t2); - t2.AdapterWebSocketChannel$1(webSocket); - return t2; + $isEfficientLengthIterable: 1 + }; + A.SkipIterator.prototype = { + moveNext$0() { + var t1, i; + for (t1 = this._iterator, i = 0; i < this._skipCount; ++i) + t1.moveNext$0(); + this._skipCount = 0; + return t1.moveNext$0(); }, - AdapterWebSocketChannel: function AdapterWebSocketChannel(t0, t1) { - var _ = this; - _._localCloseReason = _._localCloseCode = null; - _._readyCompleter = t0; - _._adapter_web_socket_channel$_controller = t1; - _.__AdapterWebSocketChannel_sink_FI = $; + get$current() { + return this._iterator.get$current(); }, - AdapterWebSocketChannel_closure: function AdapterWebSocketChannel_closure(t0) { - this.$this = t0; + $isIterator: 1 + }; + A.EmptyIterable.prototype = { + get$iterator(_) { + return B.C_EmptyIterator; }, - AdapterWebSocketChannel__closure: function AdapterWebSocketChannel__closure(t0) { - this.$this = t0; + get$isEmpty(_) { + return true; }, - AdapterWebSocketChannel__closure0: function AdapterWebSocketChannel__closure0(t0) { - this.webSocket = t0; + get$length(_) { + return 0; }, - AdapterWebSocketChannel__closure1: function AdapterWebSocketChannel__closure1(t0, t1) { - this.$this = t0; - this.webSocket = t1; + get$first(_) { + throw A.wrapException(A.IterableElementError_noElement()); }, - AdapterWebSocketChannel_closure0: function AdapterWebSocketChannel_closure0(t0) { - this.$this = t0; + elementAt$1(_, index) { + throw A.wrapException(A.RangeError$range(index, 0, 0, "index", null)); }, - _WebSocketSink: function _WebSocketSink(t0, t1) { - this._adapter_web_socket_channel$_channel = t0; - this._sink = t1; + contains$1(_, element) { + return false; }, - WebSocketChannelException: function WebSocketChannelException(t0) { - this.message = t0; + map$1$1(_, toElement, $T) { + this.$ti._bind$1($T)._eval$1("1(2)")._as(toElement); + return new A.EmptyIterable($T._eval$1("EmptyIterable<0>")); }, - main() { - return A.runZonedGuarded(new A.main_closure(), new A.main_closure0(), type$.Future_void); + map$1(_, toElement) { + return this.map$1$1(0, toElement, type$.dynamic); }, - _trySendEvent(sink, serialized, $T) { - var exception; - try { - sink.add$1(0, serialized); - } catch (exception) { - if (A.unwrapException(exception) instanceof A.StateError) - A.print("Cannot send event " + A.S(serialized) + ". Injected client connection is closed."); - else - throw exception; - } + skip$1(_, count) { + A.RangeError_checkNotNegative(count, "count"); + return this; }, - _launchCommunicationWithDebugExtension() { - var t1, t2; - A._listenForDebugExtensionAuthRequest(); - t1 = $.$get$serializers(); - t2 = new A.DebugInfoBuilder(); - type$.nullable_void_Function_DebugInfoBuilder._as(new A._launchCommunicationWithDebugExtension_closure()).call$1(t2); - self.window.top.document.dispatchEvent(A.CustomEvent_CustomEvent("dart-app-ready", B.C_JsonCodec.encode$2$toEncodable(t1.serialize$1(t2._debug_info$_build$0()), null))); + take$1(_, count) { + A.RangeError_checkNotNegative(count, "count"); + return this; + } + }; + A.EmptyIterator.prototype = { + moveNext$0() { + return false; }, - _listenForDebugExtensionAuthRequest() { - var t1 = window; - t1.toString; - B.Window_methods.addEventListener$2(t1, "message", A.allowInterop(new A._listenForDebugExtensionAuthRequest_closure(), type$.dynamic_Function_Event)); + get$current() { + throw A.wrapException(A.IterableElementError_noElement()); }, - _authenticateUser(authUrl) { - var $async$goto = 0, - $async$completer = A._makeAsyncAwaitCompleter(type$.bool), - $async$returnValue, responseText; - var $async$_authenticateUser = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { - if ($async$errorCode === 1) - return A._asyncRethrow($async$result, $async$completer); - while (true) - switch ($async$goto) { - case 0: - // Function start - $async$goto = 3; - return A._asyncAwait(A.HttpRequest_request(authUrl, "GET", null, true), $async$_authenticateUser); - case 3: - // returning from await. - responseText = $async$result.responseText; - $async$returnValue = B.JSString_methods.contains$1(responseText == null ? "" : responseText, "Dart Debug Authentication Success!"); - // goto return - $async$goto = 1; - break; - case 1: - // return - return A._asyncReturn($async$returnValue, $async$completer); - } - }); - return A._asyncStartSync($async$_authenticateUser, $async$completer); - }, - _authUrl() { - var extensionUrl, authUrl, - t1 = window; - t1.toString; - extensionUrl = A._asStringQ(A.JsObject_JsObject$fromBrowserObject(t1).$index(0, "$dartExtensionUri")); - if (extensionUrl == null) - return null; - authUrl = A.Uri_parse(extensionUrl).replace$1$path(0, "$dwdsExtensionAuthentication"); - switch (authUrl.scheme) { - case "ws": - return authUrl.replace$1$scheme(0, "http").get$_text(); - case "wss": - return authUrl.replace$1$scheme(0, "https").get$_text(); - default: - return authUrl.get$_text(); - } - }, - main_closure: function main_closure() { - }, - main__closure: function main__closure(t0, t1) { - this._box_0 = t0; - this.manager = t1; - }, - main__closure0: function main__closure0(t0) { - this._box_0 = t0; - }, - main__closure1: function main__closure1(t0) { - this.client = t0; + $isIterator: 1 + }; + A.FixedLengthListMixin.prototype = {}; + A.UnmodifiableListMixin.prototype = { + $indexSet(_, index, value) { + A._instanceType(this)._eval$1("UnmodifiableListMixin.E")._as(value); + throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list")); + } + }; + A.UnmodifiableListBase.prototype = {}; + A.ReversedListIterable.prototype = { + get$length(_) { + return J.get$length$asx(this.__internal$_source); }, - main___closure2: function main___closure2(t0) { - this.events = t0; + elementAt$1(_, index) { + var t1 = this.__internal$_source, + t2 = J.getInterceptor$asx(t1); + return t2.elementAt$1(t1, t2.get$length(t1) - 1 - index); + } + }; + A.ConstantMap.prototype = { + cast$2$0(_, RK, RV) { + var t1 = A._instanceType(this); + return A.Map_castFrom(this, t1._precomputed1, t1._rest[1], RK, RV); }, - main__closure2: function main__closure2(t0) { - this.debugEventController = t0; + get$isEmpty(_) { + return this.get$length(this) === 0; }, - main___closure1: function main___closure1(t0, t1) { - this.kind = t0; - this.eventData = t1; + toString$0(_) { + return A.MapBase_mapToString(this); }, - main__closure3: function main__closure3(t0) { - this.client = t0; + $indexSet(_, key, value) { + var t1 = A._instanceType(this); + t1._precomputed1._as(key); + t1._rest[1]._as(value); + A.ConstantMap__throwUnmodifiable(); }, - main___closure0: function main___closure0(t0) { - this.eventData = t0; + map$2$1(_, transform, K2, V2) { + var result = A.LinkedHashMap_LinkedHashMap$_empty(K2, V2); + this.forEach$1(0, new A.ConstantMap_map_closure(this, A._instanceType(this)._bind$1(K2)._bind$1(V2)._eval$1("MapEntry<1,2>(3,4)")._as(transform), result)); + return result; }, - main__closure4: function main__closure4(t0) { - this.client = t0; + map$1(_, transform) { + var t1 = type$.dynamic; + return this.map$2$1(0, transform, t1, t1); }, - main___closure: function main___closure() { + $isMap: 1 + }; + A.ConstantMap_map_closure.prototype = { + call$2(key, value) { + var t1 = A._instanceType(this.$this), + entry = this.transform.call$2(t1._precomputed1._as(key), t1._rest[1]._as(value)); + this.result.$indexSet(0, entry.get$key(), entry.get$value()); }, - main__closure5: function main__closure5(t0) { - this.manager = t0; + $signature() { + return A._instanceType(this.$this)._eval$1("~(1,2)"); + } + }; + A.ConstantStringMap.prototype = { + get$length(_) { + return this._values.length; }, - main__closure6: function main__closure6() { + get$__js_helper$_keys() { + var keys = this.$keys; + if (keys == null) { + keys = Object.keys(this._jsIndex); + this.$keys = keys; + } + return keys; }, - main__closure7: function main__closure7() { + containsKey$1(key) { + if (typeof key != "string") + return false; + if ("__proto__" === key) + return false; + return this._jsIndex.hasOwnProperty(key); }, - main__closure8: function main__closure8() { + $index(_, key) { + if (!this.containsKey$1(key)) + return null; + return this._values[this._jsIndex[key]]; }, - main_closure0: function main_closure0() { + forEach$1(_, f) { + var keys, values, t1, i; + this.$ti._eval$1("~(1,2)")._as(f); + keys = this.get$__js_helper$_keys(); + values = this._values; + for (t1 = keys.length, i = 0; i < t1; ++i) + f.call$2(keys[i], values[i]); }, - _launchCommunicationWithDebugExtension_closure: function _launchCommunicationWithDebugExtension_closure() { + get$keys() { + return new A._KeysOrValues(this.get$__js_helper$_keys(), this.$ti._eval$1("_KeysOrValues<1>")); + } + }; + A._KeysOrValues.prototype = { + get$length(_) { + return this._elements.length; }, - _listenForDebugExtensionAuthRequest_closure: function _listenForDebugExtensionAuthRequest_closure() { + get$isEmpty(_) { + return 0 === this._elements.length; }, - DdcRestarter: function DdcRestarter() { + get$isNotEmpty(_) { + return 0 !== this._elements.length; }, - DdcRestarter_restart_closure0: function DdcRestarter_restart_closure0(t0) { - this.reloadCompleter = t0; + get$iterator(_) { + var t1 = this._elements; + return new A._KeysOrValuesOrElementsIterator(t1, t1.length, this.$ti._eval$1("_KeysOrValuesOrElementsIterator<1>")); + } + }; + A._KeysOrValuesOrElementsIterator.prototype = { + get$current() { + var t1 = this.__js_helper$_current; + return t1 == null ? this.$ti._precomputed1._as(t1) : t1; }, - DdcRestarter_restart_closure: function DdcRestarter_restart_closure(t0) { - this.sub = t0; + moveNext$0() { + var _this = this, + t1 = _this.__js_helper$_index; + if (t1 >= _this.__js_helper$_length) { + _this.set$__js_helper$_current(null); + return false; + } + _this.set$__js_helper$_current(_this._elements[t1]); + ++_this.__js_helper$_index; + return true; }, - ReloadingManager: function ReloadingManager(t0, t1) { - this._client = t0; - this._restarter = t1; + set$__js_helper$_current(_current) { + this.__js_helper$_current = this.$ti._eval$1("1?")._as(_current); }, - toPromise(future, $T) { - return new self.Promise(A.allowInterop(new A.toPromise_closure(future, $T), $T._eval$1("~(~(0),~(@))")), $T); + $isIterator: 1 + }; + A.TypeErrorDecoder.prototype = { + matchTypeError$1(message) { + var result, t1, _this = this, + match = new RegExp(_this._pattern).exec(message); + if (match == null) + return null; + result = Object.create(null); + 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; + } + }; + A.NullError.prototype = { + toString$0(_) { + return "Null check operator used on a null value"; + } + }; + A.JsNoSuchMethodError.prototype = { + toString$0(_) { + var t2, _this = this, + _s38_ = "NoSuchMethodError: method not found: '", + t1 = _this._method; + if (t1 == null) + return "NoSuchMethodError: " + _this.__js_helper$_message; + t2 = _this._receiver; + if (t2 == null) + return _s38_ + t1 + "' (" + _this.__js_helper$_message + ")"; + return _s38_ + t1 + "' on '" + t2 + "' (" + _this.__js_helper$_message + ")"; + } + }; + A.UnknownJsTypeError.prototype = { + toString$0(_) { + var t1 = this.__js_helper$_message; + return t1.length === 0 ? "Error" : "Error: " + t1; + } + }; + A.NullThrownFromJavaScriptException.prototype = { + toString$0(_) { + return "Throw of null ('" + (this._irritant === null ? "null" : "undefined") + "' from JavaScript)"; + } + }; + A.ExceptionAndStackTrace.prototype = {}; + A._StackTrace.prototype = { + toString$0(_) { + var trace, + t1 = this._trace; + if (t1 != null) + return t1; + t1 = this._exception; + trace = t1 !== null && typeof t1 === "object" ? t1.stack : null; + return this._trace = trace == null ? "" : trace; }, - toFuture(promise, $T) { - var t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>")), - completer = new A._AsyncCompleter(t1, $T._eval$1("_AsyncCompleter<0>")); - J.then$2$x(promise, A.allowInterop($T._eval$1("~([0/?])")._as(completer.get$complete(completer)), $T._eval$1("@(0)")), A.allowInterop(new A.toFuture_closure(completer), type$.dynamic_Function_dynamic)); - return t1; + $isStackTrace: 1 + }; + A.Closure.prototype = { + toString$0(_) { + var $constructor = this.constructor, + $name = $constructor == null ? null : $constructor.name; + return "Closure '" + A.unminifyOrTag($name == null ? "unknown" : $name) + "'"; }, - Promise: function Promise() { + get$runtimeType(_) { + var rti = A.closureFunctionType(this); + return A.createRuntimeType(rti == null ? A.instanceType(this) : rti); }, - toPromise_closure: function toPromise_closure(t0, t1) { - this.future = t0; - this.T = t1; + $isFunction: 1, + get$$call() { + return this; }, - toFuture_closure: function toFuture_closure(t0) { - this.completer = t0; - }, - HotReloadFailedException$(_s) { - return new A.HotReloadFailedException(_s); - }, - RequireRestarter_create() { - var $async$goto = 0, - $async$completer = A._makeAsyncAwaitCompleter(type$.RequireRestarter), - $async$returnValue, reloader, t1, t2, t3; - var $async$RequireRestarter_create = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { - if ($async$errorCode === 1) - return A._asyncRethrow($async$result, $async$completer); - while (true) - switch ($async$goto) { - case 0: - // Function start - t1 = type$.String; - t2 = A.HashMap_HashMap(null, null, null, t1, type$.int); - t3 = new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_bool), type$._AsyncCompleter_bool); - t3.complete$1(0, true); - reloader = new A.RequireRestarter(t2, t3); - reloader.set$__RequireRestarter__dirtyModules_A(type$.SplayTreeSet_String._as(A.SplayTreeSet$(reloader.get$_moduleTopologicalCompare(), null, t1))); - $async$goto = 3; - return A._asyncAwait(reloader._initialize$0(), $async$RequireRestarter_create); - case 3: - // returning from await. - $async$returnValue = reloader; - // goto return - $async$goto = 1; - break; - case 1: - // return - return A._asyncReturn($async$returnValue, $async$completer); - } - }); - return A._asyncStartSync($async$RequireRestarter_create, $async$completer); - }, - RequireLoader: function RequireLoader() { - }, - HotReloadFailedException: function HotReloadFailedException(t0) { - this._s = t0; + "call*": "call$1", + $requiredArgCount: 1, + $defaultValues: null + }; + A.Closure0Args.prototype = {"call*": "call$0", $requiredArgCount: 0}; + A.Closure2Args.prototype = {"call*": "call$2", $requiredArgCount: 2}; + A.TearOffClosure.prototype = {}; + A.StaticClosure.prototype = { + toString$0(_) { + var $name = this.$static_name; + if ($name == null) + return "Closure of unknown static method"; + return "Closure '" + A.unminifyOrTag($name) + "'"; + } + }; + A.BoundClosure.prototype = { + $eq(_, other) { + if (other == null) + return false; + if (this === other) + return true; + if (!(other instanceof A.BoundClosure)) + return false; + return this.$_target === other.$_target && this._receiver === other._receiver; }, - JsError: function JsError() { + get$hashCode(_) { + return (A.objectHashCode(this._receiver) ^ A.Primitives_objectHashCode(this.$_target)) >>> 0; }, - JsMap: function JsMap() { + toString$0(_) { + return "Closure '" + this.$_name + "' of " + ("Instance of '" + A.Primitives_objectTypeName(this._receiver) + "'"); + } + }; + A._CyclicInitializationError.prototype = { + toString$0(_) { + return "Reading static variable '" + this.variableName + "' during its initialization"; + } + }; + A.RuntimeError.prototype = { + toString$0(_) { + return "RuntimeError: " + this.message; + } + }; + A._AssertionError.prototype = { + toString$0(_) { + return "Assertion failed: " + A.Error_safeToString(this.message); + } + }; + A.JsLinkedHashMap.prototype = { + get$length(_) { + return this.__js_helper$_length; }, - RequireRestarter: function RequireRestarter(t0, t1) { - this._moduleOrdering = t0; - this.__RequireRestarter__dirtyModules_A = $; - this._running = t1; + get$isEmpty(_) { + return this.__js_helper$_length === 0; }, - RequireRestarter__reload_closure: function RequireRestarter__reload_closure(t0) { - this.childModule = t0; + get$keys() { + return new A.LinkedHashMapKeyIterable(this, A._instanceType(this)._eval$1("LinkedHashMapKeyIterable<1>")); }, - RequireRestarter__reloadModule_closure: function RequireRestarter__reloadModule_closure(t0, t1) { - this.completer = t0; - this.stackTrace = t1; + containsKey$1(key) { + var strings, nums; + if (typeof key == "string") { + strings = this.__js_helper$_strings; + if (strings == null) + return false; + return strings[key] != null; + } else if (typeof key == "number" && (key & 0x3fffffff) === key) { + nums = this.__js_helper$_nums; + if (nums == null) + return false; + return nums[key] != null; + } else + return this.internalContainsKey$1(key); }, - _findNonce() { - var t2, elements, t3, t4, nonceValue, - t1 = window.document; - t1.toString; - t2 = type$.Element; - A.checkTypeBound(t2, t2, "T", "querySelectorAll"); - t1 = t1.querySelectorAll("script"); - t1.toString; - t2 = type$._FrozenElementList_Element; - elements = new A._FrozenElementList(t1, t2); - for (t1 = new A.ListIterator(elements, elements.get$length(0), t2._eval$1("ListIterator")), t3 = type$.HtmlElement, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) { - t4 = t1.__internal$_current; - t4 = t3._as(t4 == null ? t2._as(t4) : t4); - nonceValue = t4.nonce; - if (nonceValue == null) - nonceValue = t4.getAttribute("nonce"); - if (nonceValue != null) { - t4 = $.$get$_noncePattern(); - t4 = t4._nativeRegExp.test(nonceValue); - } else - t4 = false; - if (t4) - return nonceValue; - } - return null; + internalContainsKey$1(key) { + var rest = this.__js_helper$_rest; + if (rest == null) + return false; + return this.internalFindBucketIndex$2(rest[this.internalComputeHashCode$1(key)], key) >= 0; }, - runMain() { - var scriptElement = $.$get$_createScript().call$0(), - t1 = J.getInterceptor$x(scriptElement); - t1.setInnerHtml$1(scriptElement, "window.$dartRunMain();"); - document.body.appendChild(scriptElement).toString; - A.Future_Future$microtask(t1.get$remove(scriptElement), type$.void); + addAll$1(_, other) { + A._instanceType(this)._eval$1("Map<1,2>")._as(other).forEach$1(0, new A.JsLinkedHashMap_addAll_closure(this)); }, - _createScript_closure: function _createScript_closure() { + $index(_, key) { + var strings, cell, t1, nums, _null = null; + if (typeof key == "string") { + strings = this.__js_helper$_strings; + if (strings == null) + return _null; + cell = strings[key]; + t1 = cell == null ? _null : cell.hashMapCellValue; + return t1; + } else if (typeof key == "number" && (key & 0x3fffffff) === key) { + nums = this.__js_helper$_nums; + if (nums == null) + return _null; + cell = nums[key]; + t1 = cell == null ? _null : cell.hashMapCellValue; + return t1; + } else + return this.internalGet$1(key); }, - _createScript__closure: function _createScript__closure(t0) { - this.nonce = t0; + internalGet$1(key) { + var bucket, index, + rest = this.__js_helper$_rest; + if (rest == null) + return null; + bucket = rest[this.internalComputeHashCode$1(key)]; + index = this.internalFindBucketIndex$2(bucket, key); + if (index < 0) + return null; + return bucket[index].hashMapCellValue; }, - isBrowserObject(o) { - return type$.Blob._is(o) || type$.Event._is(o) || type$.KeyRange._is(o) || type$.ImageData._is(o) || type$.Node._is(o) || type$.Window._is(o) || type$.WorkerGlobalScope._is(o); + $indexSet(_, key, value) { + var strings, nums, _this = this, + t1 = A._instanceType(_this); + t1._precomputed1._as(key); + t1._rest[1]._as(value); + if (typeof key == "string") { + strings = _this.__js_helper$_strings; + _this.__js_helper$_addHashTableEntry$3(strings == null ? _this.__js_helper$_strings = _this._newHashTable$0() : strings, key, value); + } else if (typeof key == "number" && (key & 0x3fffffff) === key) { + nums = _this.__js_helper$_nums; + _this.__js_helper$_addHashTableEntry$3(nums == null ? _this.__js_helper$_nums = _this._newHashTable$0() : nums, key, value); + } else + _this.internalSet$2(key, value); }, - printString(string) { - if (typeof dartPrint == "function") { - dartPrint(string); - return; - } - if (typeof console == "object" && typeof console.log != "undefined") { - console.log(string); - return; - } - if (typeof print == "function") { - print(string); - return; + internalSet$2(key, value) { + var rest, hash, bucket, index, _this = this, + t1 = A._instanceType(_this); + t1._precomputed1._as(key); + t1._rest[1]._as(value); + rest = _this.__js_helper$_rest; + if (rest == null) + rest = _this.__js_helper$_rest = _this._newHashTable$0(); + hash = _this.internalComputeHashCode$1(key); + bucket = rest[hash]; + if (bucket == null) + rest[hash] = [_this._newLinkedCell$2(key, value)]; + else { + index = _this.internalFindBucketIndex$2(bucket, key); + if (index >= 0) + bucket[index].hashMapCellValue = value; + else + bucket.push(_this._newLinkedCell$2(key, value)); } - throw "Unable to print message: " + String(string); }, - JSAnyUtilityExtension_instanceOfString(_this, constructorName) { - var parts, $constructor, t1, t2, _i, part; - if (constructorName.length === 0) - return false; - parts = constructorName.split("."); - $constructor = type$.JSObject._as(self); - for (t1 = parts.length, t2 = type$.nullable_JSObject, _i = 0; _i < t1; ++_i) { - part = parts[_i]; - $constructor = t2._as($constructor[part]); - if ($constructor == null) - return false; + putIfAbsent$2(key, ifAbsent) { + var t2, value, _this = this, + t1 = A._instanceType(_this); + t1._precomputed1._as(key); + t1._eval$1("2()")._as(ifAbsent); + if (_this.containsKey$1(key)) { + t2 = _this.$index(0, key); + return t2 == null ? t1._rest[1]._as(t2) : t2; } - return _this instanceof type$.JavaScriptFunction._as($constructor); + value = ifAbsent.call$0(); + _this.$indexSet(0, key, value); + return value; }, - decodeDigit(c) { - var letter, - digit = c ^ 48; - if (digit < 10) - return digit; - letter = (c | 32) - 97; - if (letter >= 0) - return letter + 10; + remove$1(_, key) { + var _this = this; + if (typeof key == "string") + return _this._removeHashTableEntry$2(_this.__js_helper$_strings, key); + else if (typeof key == "number" && (key & 0x3fffffff) === key) + return _this._removeHashTableEntry$2(_this.__js_helper$_nums, key); else - return 255; - } - }, - B = {}; - var holders = [A, J, B]; - var $ = {}; - A.JS_CONST.prototype = {}; - J.Interceptor.prototype = { - $eq(receiver, other) { - return receiver === other; - }, - get$hashCode(receiver) { - return A.Primitives_objectHashCode(receiver); - }, - toString$0(receiver) { - return "Instance of '" + A.Primitives_objectTypeName(receiver) + "'"; + return _this.internalRemove$1(key); }, - noSuchMethod$1(receiver, invocation) { - throw A.wrapException(A.NoSuchMethodError_NoSuchMethodError$withInvocation(receiver, type$.Invocation._as(invocation))); + internalRemove$1(key) { + var hash, bucket, index, cell, _this = this, + rest = _this.__js_helper$_rest; + if (rest == null) + return null; + hash = _this.internalComputeHashCode$1(key); + bucket = rest[hash]; + index = _this.internalFindBucketIndex$2(bucket, key); + if (index < 0) + return null; + cell = bucket.splice(index, 1)[0]; + _this._unlinkCell$1(cell); + if (bucket.length === 0) + delete rest[hash]; + return cell.hashMapCellValue; }, - get$runtimeType(receiver) { - return A.createRuntimeType(A._instanceTypeFromConstructor(this)); - } - }; - J.JSBool.prototype = { - toString$0(receiver) { - return String(receiver); - }, - get$hashCode(receiver) { - return receiver ? 519018 : 218159; - }, - get$runtimeType(receiver) { - return A.createRuntimeType(type$.bool); + forEach$1(_, action) { + var cell, modifications, _this = this; + A._instanceType(_this)._eval$1("~(1,2)")._as(action); + cell = _this._first; + modifications = _this._modifications; + for (; cell != null;) { + action.call$2(cell.hashMapCellKey, cell.hashMapCellValue); + if (modifications !== _this._modifications) + throw A.wrapException(A.ConcurrentModificationError$(_this)); + cell = cell._next; + } }, - $isTrustedGetRuntimeType: 1, - $isbool: 1 - }; - J.JSNull.prototype = { - $eq(receiver, other) { - return null == other; + __js_helper$_addHashTableEntry$3(table, key, value) { + var cell, + t1 = A._instanceType(this); + t1._precomputed1._as(key); + t1._rest[1]._as(value); + cell = table[key]; + if (cell == null) + table[key] = this._newLinkedCell$2(key, value); + else + cell.hashMapCellValue = value; }, - toString$0(receiver) { - return "null"; + _removeHashTableEntry$2(table, key) { + var cell; + if (table == null) + return null; + cell = table[key]; + if (cell == null) + return null; + this._unlinkCell$1(cell); + delete table[key]; + return cell.hashMapCellValue; }, - get$hashCode(receiver) { - return 0; + _modified$0() { + this._modifications = this._modifications + 1 & 1073741823; }, - get$runtimeType(receiver) { - return A.createRuntimeType(type$.Null); + _newLinkedCell$2(key, value) { + var _this = this, + t1 = A._instanceType(_this), + cell = new A.LinkedHashMapCell(t1._precomputed1._as(key), t1._rest[1]._as(value)); + if (_this._first == null) + _this._first = _this._last = cell; + else { + t1 = _this._last; + t1.toString; + cell._previous = t1; + _this._last = t1._next = cell; + } + ++_this.__js_helper$_length; + _this._modified$0(); + return cell; }, - $isTrustedGetRuntimeType: 1, - $isNull: 1 - }; - J.JavaScriptObject.prototype = {$isJSObject: 1}; - J.LegacyJavaScriptObject.prototype = { - get$hashCode(receiver) { - return 0; + _unlinkCell$1(cell) { + var _this = this, + previous = cell._previous, + next = cell._next; + if (previous == null) + _this._first = next; + else + previous._next = next; + if (next == null) + _this._last = previous; + else + next._previous = previous; + --_this.__js_helper$_length; + _this._modified$0(); }, - get$runtimeType(receiver) { - return B.Type_JSObject_0ua; + internalComputeHashCode$1(key) { + return J.get$hashCode$(key) & 1073741823; }, - toString$0(receiver) { - return String(receiver); + internalFindBucketIndex$2(bucket, key) { + var $length, i; + if (bucket == null) + return -1; + $length = bucket.length; + for (i = 0; i < $length; ++i) + if (J.$eq$(bucket[i].hashMapCellKey, key)) + return i; + return -1; }, - $isPromise: 1, - $isJsError: 1, - then$1$1(receiver, p0) { - return receiver.then(p0); + toString$0(_) { + return A.MapBase_mapToString(this); }, - then$2(receiver, p0, p1) { - return receiver.then(p0, p1); + _newHashTable$0() { + var table = Object.create(null); + table[""] = table; + delete table[""]; + return table; + } + }; + A.JsLinkedHashMap_addAll_closure.prototype = { + call$2(key, value) { + var t1 = this.$this, + t2 = A._instanceType(t1); + t1.$indexSet(0, t2._precomputed1._as(key), t2._rest[1]._as(value)); }, - get$digestsPath(obj) { - return obj.digestsPath; + $signature() { + return A._instanceType(this.$this)._eval$1("~(1,2)"); + } + }; + A.LinkedHashMapCell.prototype = {}; + A.LinkedHashMapKeyIterable.prototype = { + get$length(_) { + return this.__js_helper$_map.__js_helper$_length; }, - get$moduleParentsGraph(obj) { - return obj.moduleParentsGraph; + get$isEmpty(_) { + return this.__js_helper$_map.__js_helper$_length === 0; }, - forceLoadModule$3(receiver, p0, p1, p2) { - return receiver.forceLoadModule(p0, p1, p2); + get$iterator(_) { + var t1 = this.__js_helper$_map, + t2 = new A.LinkedHashMapKeyIterator(t1, t1._modifications, this.$ti._eval$1("LinkedHashMapKeyIterator<1>")); + t2._cell = t1._first; + return t2; }, - get$message(obj) { - return obj.message; + contains$1(_, element) { + return this.__js_helper$_map.containsKey$1(element); + } + }; + A.LinkedHashMapKeyIterator.prototype = { + get$current() { + return this.__js_helper$_current; }, - $get$1(receiver, p0) { - return receiver.get(p0); + moveNext$0() { + var cell, _this = this, + t1 = _this.__js_helper$_map; + if (_this._modifications !== t1._modifications) + throw A.wrapException(A.ConcurrentModificationError$(t1)); + cell = _this._cell; + if (cell == null) { + _this.set$__js_helper$_current(null); + return false; + } else { + _this.set$__js_helper$_current(cell.hashMapCellKey); + _this._cell = cell._next; + return true; + } }, - get$keys(obj) { - return obj.keys; + set$__js_helper$_current(_current) { + this.__js_helper$_current = this.$ti._eval$1("1?")._as(_current); }, - keys$0(receiver) { - return receiver.keys(); - } + $isIterator: 1 }; - J.PlainJavaScriptObject.prototype = {}; - J.UnknownJavaScriptObject.prototype = {}; - J.JavaScriptFunction.prototype = { - toString$0(receiver) { - var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()]; - if (dartClosure == null) - return this.super$LegacyJavaScriptObject$toString(receiver); - return "JavaScript function for " + J.toString$0$(dartClosure); + A.initHooks_closure.prototype = { + call$1(o) { + return this.getTag(o); }, - $isFunction: 1 + $signature: 4 }; - J.JavaScriptBigInt.prototype = { - get$hashCode(receiver) { - return 0; + A.initHooks_closure0.prototype = { + call$2(o, tag) { + return this.getUnknownTag(o, tag); }, - toString$0(receiver) { - return String(receiver); - } + $signature: 28 }; - J.JavaScriptSymbol.prototype = { - get$hashCode(receiver) { - return 0; + A.initHooks_closure1.prototype = { + call$1(tag) { + return this.prototypeForTag(A._asString(tag)); }, - toString$0(receiver) { - return String(receiver); - } + $signature: 40 }; - J.JSArray.prototype = { - cast$1$0(receiver, $R) { - return new A.CastList(receiver, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>")); + A._Record.prototype = {}; + A.JSSyntaxRegExp.prototype = { + toString$0(_) { + return "RegExp/" + this.pattern + "/" + this._nativeRegExp.flags; }, - add$1(receiver, value) { - A._arrayInstanceType(receiver)._precomputed1._as(value); - if (!!receiver.fixed$length) - A.throwExpression(A.UnsupportedError$("add")); - receiver.push(value); + get$_nativeGlobalVersion() { + var _this = this, + t1 = _this._nativeGlobalRegExp; + if (t1 != null) + return t1; + t1 = _this._nativeRegExp; + return _this._nativeGlobalRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern, t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true); }, - addAll$1(receiver, collection) { - var t1; - A._arrayInstanceType(receiver)._eval$1("Iterable<1>")._as(collection); - if (!!receiver.fixed$length) - A.throwExpression(A.UnsupportedError$("addAll")); - if (Array.isArray(collection)) { - this._addAllFromArray$1(receiver, collection); - return; - } - for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();) - receiver.push(t1.get$current(t1)); + get$_nativeAnchoredVersion() { + var _this = this, + t1 = _this._nativeAnchoredRegExp; + if (t1 != null) + return t1; + t1 = _this._nativeRegExp; + return _this._nativeAnchoredRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern + "|()", t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true); }, - _addAllFromArray$1(receiver, array) { - var len, i; - type$.JSArray_dynamic._as(array); - len = array.length; - if (len === 0) - return; - if (receiver === array) - throw A.wrapException(A.ConcurrentModificationError$(receiver)); - for (i = 0; i < len; ++i) - receiver.push(array[i]); + firstMatch$1(string) { + var m = this._nativeRegExp.exec(string); + if (m == null) + return null; + return new A._MatchImplementation(m); }, - clear$0(receiver) { - if (!!receiver.fixed$length) - A.throwExpression(A.UnsupportedError$("clear")); - receiver.length = 0; + allMatches$2(_, string, start) { + var t1 = string.length; + if (start > t1) + throw A.wrapException(A.RangeError$range(start, 0, t1, null, null)); + return new A._AllMatchesIterable(this, string, start); }, - map$1$1(receiver, f, $T) { - var t1 = A._arrayInstanceType(receiver); - return new A.MappedListIterable(receiver, t1._bind$1($T)._eval$1("1(2)")._as(f), t1._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>")); + allMatches$1(_, string) { + return this.allMatches$2(0, string, 0); }, - map$1(receiver, f) { - return this.map$1$1(receiver, f, type$.dynamic); + _execGlobal$2(string, start) { + var match, + regexp = this.get$_nativeGlobalVersion(); + if (regexp == null) + regexp = type$.Object._as(regexp); + regexp.lastIndex = start; + match = regexp.exec(string); + if (match == null) + return null; + return new A._MatchImplementation(match); }, - join$1(receiver, separator) { - var i, - list = A.List_List$filled(receiver.length, "", false, type$.String); - for (i = 0; i < receiver.length; ++i) - this.$indexSet(list, i, A.S(receiver[i])); - return list.join(separator); - }, - take$1(receiver, n) { - return A.SubListIterable$(receiver, 0, A.checkNotNullable(n, "count", type$.int), A._arrayInstanceType(receiver)._precomputed1); - }, - skip$1(receiver, n) { - return A.SubListIterable$(receiver, n, null, A._arrayInstanceType(receiver)._precomputed1); - }, - fold$1$2(receiver, initialValue, combine, $T) { - var $length, value, i; - $T._as(initialValue); - A._arrayInstanceType(receiver)._bind$1($T)._eval$1("1(1,2)")._as(combine); - $length = receiver.length; - for (value = initialValue, i = 0; i < $length; ++i) { - value = combine.call$2(value, receiver[i]); - if (receiver.length !== $length) - throw A.wrapException(A.ConcurrentModificationError$(receiver)); - } - return value; - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; - }, - sublist$2(receiver, start, end) { - var t1 = receiver.length; - if (start > t1) - throw A.wrapException(A.RangeError$range(start, 0, t1, "start", null)); - if (start === t1) - return A._setArrayType([], A._arrayInstanceType(receiver)); - return A._setArrayType(receiver.slice(start, t1), A._arrayInstanceType(receiver)); - }, - sublist$1(receiver, start) { - return this.sublist$2(receiver, start, null); - }, - getRange$2(receiver, start, end) { - A.RangeError_checkValidRange(start, end, receiver.length); - return A.SubListIterable$(receiver, start, end, A._arrayInstanceType(receiver)._precomputed1); + _execAnchored$2(string, start) { + var match, + regexp = this.get$_nativeAnchoredVersion(); + if (regexp == null) + regexp = type$.Object._as(regexp); + regexp.lastIndex = start; + match = regexp.exec(string); + if (match == null) + return null; + if (0 >= match.length) + return A.ioore(match, -1); + if (match.pop() != null) + return null; + return new A._MatchImplementation(match); }, - get$first(receiver) { - if (receiver.length > 0) - return receiver[0]; - throw A.wrapException(A.IterableElementError_noElement()); + matchAsPrefix$2(_, string, start) { + if (start < 0 || start > string.length) + throw A.wrapException(A.RangeError$range(start, 0, string.length, null, null)); + return this._execAnchored$2(string, start); }, - get$last(receiver) { - var t1 = receiver.length; - if (t1 > 0) - return receiver[t1 - 1]; - throw A.wrapException(A.IterableElementError_noElement()); + $isPattern: 1, + $isRegExp: 1 + }; + A._MatchImplementation.prototype = { + get$end() { + var t1 = this._match; + return t1.index + t1[0].length; }, - setRange$4(receiver, start, end, iterable, skipCount) { - var $length, otherList, otherStart, t1, i; - A._arrayInstanceType(receiver)._eval$1("Iterable<1>")._as(iterable); - if (!!receiver.immutable$list) - A.throwExpression(A.UnsupportedError$("setRange")); - A.RangeError_checkValidRange(start, end, receiver.length); - $length = end - start; - if ($length === 0) - return; - A.RangeError_checkNotNegative(skipCount, "skipCount"); - if (type$.List_dynamic._is(iterable)) { - otherList = iterable; - otherStart = skipCount; - } else { - otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false); - otherStart = 0; - } - t1 = J.getInterceptor$asx(otherList); - if (otherStart + $length > t1.get$length(otherList)) - throw A.wrapException(A.IterableElementError_tooFew()); - if (otherStart < start) - for (i = $length - 1; i >= 0; --i) - receiver[start + i] = t1.$index(otherList, otherStart + i); - else - for (i = 0; i < $length; ++i) - receiver[start + i] = t1.$index(otherList, otherStart + i); + $isMatch: 1, + $isRegExpMatch: 1 + }; + A._AllMatchesIterable.prototype = { + get$iterator(_) { + return new A._AllMatchesIterator(this._re, this._string, this._start); + } + }; + A._AllMatchesIterator.prototype = { + get$current() { + var t1 = this.__js_helper$_current; + return t1 == null ? type$.RegExpMatch._as(t1) : t1; }, - any$1(receiver, test) { - var end, i; - A._arrayInstanceType(receiver)._eval$1("bool(1)")._as(test); - end = receiver.length; - for (i = 0; i < end; ++i) { - if (A.boolConversionCheck(test.call$1(receiver[i]))) + moveNext$0() { + var t1, t2, t3, match, nextIndex, t4, _this = this, + string = _this._string; + if (string == null) + return false; + t1 = _this._nextIndex; + t2 = string.length; + if (t1 <= t2) { + t3 = _this._regExp; + match = t3._execGlobal$2(string, t1); + if (match != null) { + _this.__js_helper$_current = match; + nextIndex = match.get$end(); + if (match._match.index === nextIndex) { + t1 = false; + if (t3._nativeRegExp.unicode) { + t3 = _this._nextIndex; + t4 = t3 + 1; + if (t4 < t2) { + if (!(t3 >= 0 && t3 < t2)) + return A.ioore(string, t3); + t3 = string.charCodeAt(t3); + if (t3 >= 55296 && t3 <= 56319) { + if (!(t4 >= 0)) + return A.ioore(string, t4); + t1 = string.charCodeAt(t4); + t1 = t1 >= 56320 && t1 <= 57343; + } + } + } + nextIndex = (t1 ? nextIndex + 1 : nextIndex) + 1; + } + _this._nextIndex = nextIndex; return true; - if (receiver.length !== end) - throw A.wrapException(A.ConcurrentModificationError$(receiver)); - } - return false; - }, - sort$1(receiver, compare) { - var len, a, b, undefineds, i, - t1 = A._arrayInstanceType(receiver); - t1._eval$1("int(1,1)?")._as(compare); - if (!!receiver.immutable$list) - A.throwExpression(A.UnsupportedError$("sort")); - len = receiver.length; - if (len < 2) - return; - if (compare == null) - compare = J._interceptors_JSArray__compareAny$closure(); - if (len === 2) { - a = receiver[0]; - b = receiver[1]; - t1 = compare.call$2(a, b); - if (typeof t1 !== "number") - return t1.$gt(); - if (t1 > 0) { - receiver[0] = b; - receiver[1] = a; } - return; } - if (t1._precomputed1._is(null)) { - for (undefineds = 0, i = 0; i < receiver.length; ++i) - if (receiver[i] === void 0) { - receiver[i] = null; - ++undefineds; - } - } else - undefineds = 0; - receiver.sort(A.convertDartClosureToJS(compare, 2)); - if (undefineds > 0) - this._replaceSomeNullsWithUndefined$1(receiver, undefineds); - }, - sort$0(receiver) { - return this.sort$1(receiver, null); - }, - _replaceSomeNullsWithUndefined$1(receiver, count) { - var i0, - i = receiver.length; - for (; i0 = i - 1, i > 0; i = i0) - if (receiver[i0] === null) { - receiver[i0] = void 0; - --count; - if (count === 0) - break; - } - }, - contains$1(receiver, other) { - var i; - for (i = 0; i < receiver.length; ++i) - if (J.$eq$(receiver[i], other)) - return true; + _this._string = _this.__js_helper$_current = null; return false; }, - get$isEmpty(receiver) { - return receiver.length === 0; - }, - get$isNotEmpty(receiver) { - return receiver.length !== 0; + $isIterator: 1 + }; + A.StringMatch.prototype = {$isMatch: 1}; + A._StringAllMatchesIterable.prototype = { + get$iterator(_) { + return new A._StringAllMatchesIterator(this._input, this._pattern, this.__js_helper$_index); }, - toString$0(receiver) { - return A.Iterable_iterableToFullString(receiver, "[", "]"); + get$first(_) { + var t1 = this._pattern, + index = this._input.indexOf(t1, this.__js_helper$_index); + if (index >= 0) + return new A.StringMatch(index, t1); + throw A.wrapException(A.IterableElementError_noElement()); + } + }; + A._StringAllMatchesIterator.prototype = { + moveNext$0() { + var index, end, _this = this, + t1 = _this.__js_helper$_index, + t2 = _this._pattern, + t3 = t2.length, + t4 = _this._input, + t5 = t4.length; + if (t1 + t3 > t5) { + _this.__js_helper$_current = null; + return false; + } + index = t4.indexOf(t2, t1); + if (index < 0) { + _this.__js_helper$_index = t5 + 1; + _this.__js_helper$_current = null; + return false; + } + end = index + t3; + _this.__js_helper$_current = new A.StringMatch(index, t2); + _this.__js_helper$_index = end === _this.__js_helper$_index ? end + 1 : end; + return true; }, - toList$1$growable(receiver, growable) { - var t1 = A._setArrayType(receiver.slice(0), A._arrayInstanceType(receiver)); + get$current() { + var t1 = this.__js_helper$_current; + t1.toString; return t1; }, - toList$0(receiver) { - return this.toList$1$growable(receiver, true); + $isIterator: 1 + }; + A._Cell.prototype = { + readLocal$1$0() { + var t1 = this.__late_helper$_value; + if (t1 === this) + A.throwExpression(new A.LateError("Local '" + this._name + "' has not been initialized.")); + return t1; }, - get$iterator(receiver) { - return new J.ArrayIterator(receiver, receiver.length, A._arrayInstanceType(receiver)._eval$1("ArrayIterator<1>")); + readLocal$0() { + return this.readLocal$1$0(type$.dynamic); }, - get$hashCode(receiver) { - return A.Primitives_objectHashCode(receiver); + _readField$0() { + var t1 = this.__late_helper$_value; + if (t1 === this) + throw A.wrapException(A.LateError$fieldNI(this._name)); + return t1; + } + }; + A.NativeByteBuffer.prototype = { + get$runtimeType(receiver) { + return B.Type_ByteBuffer_EOZ; }, - get$length(receiver) { - return receiver.length; + asUint8List$2(receiver, offsetInBytes, $length) { + return $length == null ? new Uint8Array(receiver, offsetInBytes) : new Uint8Array(receiver, offsetInBytes, $length); }, + $isTrustedGetRuntimeType: 1, + $isNativeByteBuffer: 1, + $isByteBuffer: 1 + }; + A.NativeTypedData.prototype = { + get$buffer(receiver) { + if (((receiver.$flags | 0) & 2) !== 0) + return new A._UnmodifiableNativeByteBufferView(receiver.buffer); + else + return receiver.buffer; + } + }; + A._UnmodifiableNativeByteBufferView.prototype = { + asUint8List$2(_, offsetInBytes, $length) { + var result = A.NativeUint8List_NativeUint8List$view(this.__native_typed_data$_data, offsetInBytes, $length); + result.$flags = 3; + return result; + }, + $isByteBuffer: 1 + }; + A.NativeByteData.prototype = { + get$runtimeType(receiver) { + return B.Type_ByteData_mF8; + }, + $isTrustedGetRuntimeType: 1, + $isByteData: 1 + }; + A.NativeTypedArray.prototype = { + get$length(receiver) { + return receiver.length; + }, + $isJavaScriptIndexingBehavior: 1 + }; + A.NativeTypedArrayOfDouble.prototype = { $index(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - throw A.wrapException(A.diagnoseIndexError(receiver, index)); + A._checkValidIndex(index, receiver, receiver.length); return receiver[index]; }, $indexSet(receiver, index, value) { - A._arrayInstanceType(receiver)._precomputed1._as(value); - if (!!receiver.immutable$list) - A.throwExpression(A.UnsupportedError$("indexed set")); - if (!(index >= 0 && index < receiver.length)) - throw A.wrapException(A.diagnoseIndexError(receiver, index)); + A._asDouble(value); + receiver.$flags & 2 && A.throwUnsupportedOperation(receiver); + A._checkValidIndex(index, receiver, receiver.length); receiver[index] = value; }, - get$runtimeType(receiver) { - return A.createRuntimeType(A._arrayInstanceType(receiver)); + $isEfficientLengthIterable: 1, + $isIterable: 1, + $isList: 1 + }; + A.NativeTypedArrayOfInt.prototype = { + $indexSet(receiver, index, value) { + A._asInt(value); + receiver.$flags & 2 && A.throwUnsupportedOperation(receiver); + A._checkValidIndex(index, receiver, receiver.length); + receiver[index] = value; }, - $isJSIndexable: 1, $isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1 }; - J.JSUnmodifiableArray.prototype = {}; - J.ArrayIterator.prototype = { - get$current(_) { - var t1 = this.__interceptors$_current; - return t1 == null ? this.$ti._precomputed1._as(t1) : t1; + A.NativeFloat32List.prototype = { + get$runtimeType(receiver) { + return B.Type_Float32List_Ymk; }, - moveNext$0() { - var t2, _this = this, - t1 = _this._iterable, - $length = t1.length; - if (_this.__interceptors$_length !== $length) { - t1 = A.throwConcurrentModificationError(t1); - throw A.wrapException(t1); - } - t2 = _this._index; - if (t2 >= $length) { - _this.set$__interceptors$_current(null); - return false; - } - _this.set$__interceptors$_current(t1[t2]); - ++_this._index; - return true; + sublist$2(receiver, start, end) { + return new Float32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, - set$__interceptors$_current(_current) { - this.__interceptors$_current = this.$ti._eval$1("1?")._as(_current); + sublist$1(receiver, start) { + return this.sublist$2(receiver, start, null); }, - $isIterator: 1 + $isTrustedGetRuntimeType: 1, + $isFloat32List: 1 }; - J.JSNumber.prototype = { - compareTo$1(receiver, b) { - var bIsNegative; - A._asNum(b); - if (receiver < b) - return -1; - else if (receiver > b) - return 1; - else if (receiver === b) { - if (receiver === 0) { - bIsNegative = this.get$isNegative(b); - if (this.get$isNegative(receiver) === bIsNegative) - return 0; - if (this.get$isNegative(receiver)) - return -1; - return 1; - } - return 0; - } else if (isNaN(receiver)) { - if (isNaN(b)) - return 0; - return 1; - } else - return -1; + A.NativeFloat64List.prototype = { + get$runtimeType(receiver) { + return B.Type_Float64List_Ymk; }, - get$isNegative(receiver) { - return receiver === 0 ? 1 / receiver < 0 : receiver < 0; + sublist$2(receiver, start, end) { + return new Float64Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, - toInt$0(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 A.wrapException(A.UnsupportedError$("" + receiver + ".toInt()")); + sublist$1(receiver, start) { + return this.sublist$2(receiver, start, null); }, - ceil$0(receiver) { - var truncated, d; - if (receiver >= 0) { - if (receiver <= 2147483647) { - truncated = receiver | 0; - return receiver === truncated ? truncated : truncated + 1; - } - } else if (receiver >= -2147483648) - return receiver | 0; - d = Math.ceil(receiver); - if (isFinite(d)) - return d; - throw A.wrapException(A.UnsupportedError$("" + receiver + ".ceil()")); + $isTrustedGetRuntimeType: 1, + $isFloat64List: 1 + }; + A.NativeInt16List.prototype = { + get$runtimeType(receiver) { + return B.Type_Int16List_cot; }, - floor$0(receiver) { - var truncated, d; - if (receiver >= 0) { - if (receiver <= 2147483647) - return receiver | 0; - } else if (receiver >= -2147483648) { - truncated = receiver | 0; - return receiver === truncated ? truncated : truncated - 1; - } - d = Math.floor(receiver); - if (isFinite(d)) - return d; - throw A.wrapException(A.UnsupportedError$("" + receiver + ".floor()")); + $index(receiver, index) { + A._checkValidIndex(index, receiver, receiver.length); + return receiver[index]; }, - round$0(receiver) { - if (receiver > 0) { - if (receiver !== 1 / 0) - return Math.round(receiver); - } else if (receiver > -1 / 0) - return 0 - Math.round(0 - receiver); - throw A.wrapException(A.UnsupportedError$("" + receiver + ".round()")); + sublist$2(receiver, start, end) { + return new Int16Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, - toRadixString$1(receiver, radix) { - var result, t1, t2, match, exponent; - if (radix < 2 || radix > 36) - throw A.wrapException(A.RangeError$range(radix, 2, 36, "radix", null)); - result = receiver.toString(radix); - t1 = result.length; - t2 = t1 - 1; - if (!(t2 >= 0)) - return A.ioore(result, t2); - if (result.charCodeAt(t2) !== 41) - return result; - match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result); - if (match == null) - A.throwExpression(A.UnsupportedError$("Unexpected toString result: " + result)); - t1 = match.length; - if (1 >= t1) - return A.ioore(match, 1); - result = match[1]; - if (3 >= t1) - return A.ioore(match, 3); - exponent = +match[3]; - t1 = match[2]; - if (t1 != null) { - result += t1; - exponent -= t1.length; - } - return result + B.JSString_methods.$mul("0", exponent); + sublist$1(receiver, start) { + return this.sublist$2(receiver, start, null); }, - toString$0(receiver) { - if (receiver === 0 && 1 / receiver < 0) - return "-0.0"; - else - return "" + receiver; + $isTrustedGetRuntimeType: 1, + $isInt16List: 1 + }; + A.NativeInt32List.prototype = { + get$runtimeType(receiver) { + return B.Type_Int32List_m1p; }, - get$hashCode(receiver) { - var absolute, floorLog2, factor, scaled, - intValue = receiver | 0; - if (receiver === intValue) - return intValue & 536870911; - absolute = Math.abs(receiver); - floorLog2 = Math.log(absolute) / 0.6931471805599453 | 0; - factor = Math.pow(2, floorLog2); - scaled = absolute < 1 ? absolute / factor : factor / absolute; - return ((scaled * 9007199254740992 | 0) + (scaled * 3542243181176521 | 0)) * 599197 + floorLog2 * 1259 & 536870911; + $index(receiver, index) { + A._checkValidIndex(index, receiver, receiver.length); + return receiver[index]; }, - $mod(receiver, other) { - var result = receiver % other; - if (result === 0) - return 0; - if (result > 0) - return result; - return result + other; + sublist$2(receiver, start, end) { + return new Int32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, - $tdiv(receiver, other) { - if ((receiver | 0) === receiver) - if (other >= 1 || other < -1) - return receiver / other | 0; - return this._tdivSlow$1(receiver, other); + sublist$1(receiver, start) { + return this.sublist$2(receiver, start, null); }, - _tdivFast$1(receiver, other) { - return (receiver | 0) === receiver ? receiver / other | 0 : this._tdivSlow$1(receiver, other); + $isTrustedGetRuntimeType: 1, + $isInt32List: 1 + }; + A.NativeInt8List.prototype = { + get$runtimeType(receiver) { + return B.Type_Int8List_woc; }, - _tdivSlow$1(receiver, other) { - var quotient = receiver / other; - if (quotient >= -2147483648 && quotient <= 2147483647) - return quotient | 0; - if (quotient > 0) { - if (quotient !== 1 / 0) - return Math.floor(quotient); - } else if (quotient > -1 / 0) - return Math.ceil(quotient); - throw A.wrapException(A.UnsupportedError$("Result of truncating division is " + A.S(quotient) + ": " + A.S(receiver) + " ~/ " + other)); + $index(receiver, index) { + A._checkValidIndex(index, receiver, receiver.length); + return receiver[index]; }, - $shl(receiver, other) { - if (other < 0) - throw A.wrapException(A.argumentErrorValue(other)); - return other > 31 ? 0 : receiver << other >>> 0; + sublist$2(receiver, start, end) { + return new Int8Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, - _shlPositive$1(receiver, other) { - return other > 31 ? 0 : receiver << other >>> 0; + sublist$1(receiver, start) { + return this.sublist$2(receiver, start, null); }, - $shr(receiver, other) { - var t1; - if (other < 0) - throw A.wrapException(A.argumentErrorValue(other)); - if (receiver > 0) - t1 = this._shrBothPositive$1(receiver, other); - else { - t1 = other > 31 ? 31 : other; - t1 = receiver >> t1 >>> 0; - } - return t1; + $isTrustedGetRuntimeType: 1, + $isInt8List: 1 + }; + A.NativeUint16List.prototype = { + get$runtimeType(receiver) { + return B.Type_Uint16List_2mh; }, - _shrOtherPositive$1(receiver, other) { - var t1; - if (receiver > 0) - t1 = this._shrBothPositive$1(receiver, other); - else { - t1 = other > 31 ? 31 : other; - t1 = receiver >> t1 >>> 0; - } - return t1; + $index(receiver, index) { + A._checkValidIndex(index, receiver, receiver.length); + return receiver[index]; }, - _shrReceiverPositive$1(receiver, other) { - if (0 > other) - throw A.wrapException(A.argumentErrorValue(other)); - return this._shrBothPositive$1(receiver, other); + sublist$2(receiver, start, end) { + return new Uint16Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, - _shrBothPositive$1(receiver, other) { - return other > 31 ? 0 : receiver >>> other; + sublist$1(receiver, start) { + return this.sublist$2(receiver, start, null); }, + $isTrustedGetRuntimeType: 1, + $isUint16List: 1 + }; + A.NativeUint32List.prototype = { get$runtimeType(receiver) { - return A.createRuntimeType(type$.num); + return B.Type_Uint32List_2mh; }, - $isComparable: 1, - $isdouble: 1, - $isnum: 1 - }; - J.JSInt.prototype = { - get$bitLength(receiver) { - var wordBits, - t1 = receiver < 0 ? -receiver - 1 : receiver, - nonneg = t1; - for (wordBits = 32; nonneg >= 4294967296;) { - nonneg = this._tdivFast$1(nonneg, 4294967296); - wordBits += 32; - } - return wordBits - Math.clz32(nonneg); + $index(receiver, index) { + A._checkValidIndex(index, receiver, receiver.length); + return receiver[index]; }, - get$runtimeType(receiver) { - return A.createRuntimeType(type$.int); + sublist$2(receiver, start, end) { + return new Uint32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); + }, + sublist$1(receiver, start) { + return this.sublist$2(receiver, start, null); }, $isTrustedGetRuntimeType: 1, - $isint: 1 + $isUint32List: 1 }; - J.JSNumNotInt.prototype = { + A.NativeUint8ClampedList.prototype = { get$runtimeType(receiver) { - return A.createRuntimeType(type$.double); - }, - $isTrustedGetRuntimeType: 1 - }; - J.JSString.prototype = { - allMatches$2(receiver, string, start) { - var t1 = string.length; - if (start > t1) - throw A.wrapException(A.RangeError$range(start, 0, t1, null, null)); - return new A._StringAllMatchesIterable(string, receiver, start); - }, - allMatches$1(receiver, string) { - return this.allMatches$2(receiver, string, 0); - }, - matchAsPrefix$2(receiver, string, start) { - var t1, t2, i, t3, _null = null; - if (start < 0 || start > string.length) - throw A.wrapException(A.RangeError$range(start, 0, string.length, _null, _null)); - t1 = receiver.length; - t2 = string.length; - if (start + t1 > t2) - return _null; - for (i = 0; i < t1; ++i) { - t3 = start + i; - if (!(t3 >= 0 && t3 < t2)) - return A.ioore(string, t3); - if (string.charCodeAt(t3) !== receiver.charCodeAt(i)) - return _null; - } - return new A.StringMatch(start, receiver); + return B.Type_Uint8ClampedList_9Bb; }, - $add(receiver, other) { - return receiver + other; + get$length(receiver) { + return receiver.length; }, - endsWith$1(receiver, other) { - var otherLength = other.length, - t1 = receiver.length; - if (otherLength > t1) - return false; - return other === this.substring$1(receiver, t1 - otherLength); + $index(receiver, index) { + A._checkValidIndex(index, receiver, receiver.length); + return receiver[index]; }, - replaceRange$3(receiver, start, end, replacement) { - var e = A.RangeError_checkValidRange(start, end, receiver.length); - return A.stringReplaceRangeUnchecked(receiver, start, e, replacement); + sublist$2(receiver, start, end) { + return new Uint8ClampedArray(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, - startsWith$2(receiver, pattern, index) { - var endIndex; - if (index < 0 || index > receiver.length) - throw A.wrapException(A.RangeError$range(index, 0, receiver.length, null, null)); - if (typeof pattern == "string") { - endIndex = index + pattern.length; - if (endIndex > receiver.length) - return false; - return pattern === receiver.substring(index, endIndex); - } - return J.matchAsPrefix$2$s(pattern, receiver, index) != null; + sublist$1(receiver, start) { + return this.sublist$2(receiver, start, null); }, - startsWith$1(receiver, pattern) { - return this.startsWith$2(receiver, pattern, 0); + $isTrustedGetRuntimeType: 1, + $isUint8ClampedList: 1 + }; + A.NativeUint8List.prototype = { + get$runtimeType(receiver) { + return B.Type_Uint8List_CSc; }, - substring$2(receiver, start, end) { - return receiver.substring(start, A.RangeError_checkValidRange(start, end, receiver.length)); + get$length(receiver) { + return receiver.length; }, - substring$1(receiver, start) { - return this.substring$2(receiver, start, null); + $index(receiver, index) { + A._checkValidIndex(index, receiver, receiver.length); + return receiver[index]; }, - toLowerCase$0(receiver) { - return receiver.toLowerCase(); + sublist$2(receiver, start, end) { + return new Uint8Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, - $mul(receiver, times) { - var s, result; - if (0 >= times) - return ""; - if (times === 1 || receiver.length === 0) - return receiver; - if (times !== times >>> 0) - throw A.wrapException(B.C_OutOfMemoryError); - for (s = receiver, result = ""; true;) { - if ((times & 1) === 1) - result = s + result; - times = times >>> 1; - if (times === 0) - break; - s += s; - } - return result; + sublist$1(receiver, start) { + return this.sublist$2(receiver, start, null); }, - padLeft$2(receiver, width, padding) { - var delta = width - receiver.length; - if (delta <= 0) - return receiver; - return this.$mul(padding, delta) + receiver; + $isTrustedGetRuntimeType: 1, + $isNativeUint8List: 1, + $isUint8List: 1 + }; + A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.prototype = {}; + A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {}; + A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {}; + A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {}; + A.Rti.prototype = { + _eval$1(recipe) { + return A._Universe_evalInEnvironment(init.typeUniverse, this, recipe); }, - indexOf$2(receiver, pattern, start) { - var t1; - if (start < 0 || start > receiver.length) - throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null)); - t1 = receiver.indexOf(pattern, start); - return t1; + _bind$1(typeOrTuple) { + return A._Universe_bind(init.typeUniverse, this, typeOrTuple); + } + }; + A._FunctionParameters.prototype = {}; + A._Type.prototype = { + toString$0(_) { + return A._rtiToString(this._rti, null); }, - indexOf$1(receiver, pattern) { - return this.indexOf$2(receiver, pattern, 0); + $isType: 1 + }; + A._Error.prototype = { + toString$0(_) { + return this.__rti$_message; + } + }; + A._TypeError.prototype = {$isTypeError: 1}; + A._AsyncRun__initializeScheduleImmediate_internalCallback.prototype = { + call$1(_) { + var t1 = this._box_0, + f = t1.storedCallback; + t1.storedCallback = null; + f.call$0(); }, - lastIndexOf$2(receiver, pattern, start) { + $signature: 6 + }; + A._AsyncRun__initializeScheduleImmediate_closure.prototype = { + call$1(callback) { var t1, t2; - if (start == null) - start = receiver.length; - else if (start < 0 || start > receiver.length) - throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null)); - t1 = pattern.length; - t2 = receiver.length; - if (start + t1 > t2) - start = t2 - t1; - return receiver.lastIndexOf(pattern, start); + this._box_0.storedCallback = type$.void_Function._as(callback); + t1 = this.div; + t2 = this.span; + t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2); }, - lastIndexOf$1(receiver, pattern) { - return this.lastIndexOf$2(receiver, pattern, null); + $signature: 30 + }; + A._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = { + call$0() { + this.callback.call$0(); }, - contains$1(receiver, other) { - return A.stringContainsUnchecked(receiver, other, 0); + $signature: 2 + }; + A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback.prototype = { + call$0() { + this.callback.call$0(); }, - compareTo$1(receiver, other) { - var t1; - A._asString(other); - if (receiver === other) - t1 = 0; + $signature: 2 + }; + A._TimerImpl.prototype = { + _TimerImpl$2(milliseconds, callback) { + if (self.setTimeout != null) + this._handle = self.setTimeout(A.convertDartClosureToJS(new A._TimerImpl_internalCallback(this, callback), 0), milliseconds); else - t1 = receiver < other ? -1 : 1; - return t1; - }, - toString$0(receiver) { - return receiver; + throw A.wrapException(A.UnsupportedError$("`setTimeout()` not found.")); }, - get$hashCode(receiver) { - var t1, hash, i; - for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) { - hash = hash + receiver.charCodeAt(i) & 536870911; - hash = hash + ((hash & 524287) << 10) & 536870911; - hash ^= hash >> 6; - } - hash = hash + ((hash & 67108863) << 3) & 536870911; - hash ^= hash >> 11; - return hash + ((hash & 16383) << 15) & 536870911; + _TimerImpl$periodic$2(milliseconds, callback) { + if (self.setTimeout != null) + this._handle = self.setInterval(A.convertDartClosureToJS(new A._TimerImpl$periodic_closure(this, milliseconds, Date.now(), callback), 0), milliseconds); + else + throw A.wrapException(A.UnsupportedError$("Periodic timer.")); }, - get$runtimeType(receiver) { - return A.createRuntimeType(type$.String); + get$isActive() { + return this._handle != null; }, - get$length(receiver) { - return receiver.length; + cancel$0() { + if (self.setTimeout != null) { + var t1 = this._handle; + if (t1 == null) + return; + if (this._once) + self.clearTimeout(t1); + else + self.clearInterval(t1); + this._handle = null; + } else + throw A.wrapException(A.UnsupportedError$("Canceling a timer.")); }, - $isJSIndexable: 1, - $isTrustedGetRuntimeType: 1, - $isComparable: 1, - $isPattern: 1, - $isString: 1 + $isTimer: 1 }; - A._CastIterableBase.prototype = { - get$iterator(_) { - var t1 = A._instanceType(this); - return new A.CastIterator(J.get$iterator$ax(this.get$__internal$_source()), t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("CastIterator<1,2>")); - }, - get$length(_) { - return J.get$length$asx(this.get$__internal$_source()); - }, - get$isEmpty(_) { - return J.get$isEmpty$asx(this.get$__internal$_source()); + A._TimerImpl_internalCallback.prototype = { + call$0() { + var t1 = this.$this; + t1._handle = null; + t1._tick = 1; + this.callback.call$0(); }, - get$isNotEmpty(_) { - return J.get$isNotEmpty$asx(this.get$__internal$_source()); + $signature: 0 + }; + A._TimerImpl$periodic_closure.prototype = { + call$0() { + var duration, _this = this, + t1 = _this.$this, + tick = t1._tick + 1, + t2 = _this.milliseconds; + if (t2 > 0) { + duration = Date.now() - _this.start; + if (duration > (tick + 1) * t2) + tick = B.JSInt_methods.$tdiv(duration, t2); + } + t1._tick = tick; + _this.callback.call$1(t1); }, - skip$1(_, count) { - var t1 = A._instanceType(this); - return A.CastIterable_CastIterable(J.skip$1$ax(this.get$__internal$_source(), count), t1._precomputed1, t1._rest[1]); + $signature: 2 + }; + A._AsyncAwaitCompleter.prototype = { + complete$1(value) { + var t2, _this = this, + t1 = _this.$ti; + t1._eval$1("1/?")._as(value); + if (value == null) + value = t1._precomputed1._as(value); + if (!_this.isSync) + _this._future._asyncComplete$1(value); + else { + t2 = _this._future; + if (t1._eval$1("Future<1>")._is(value)) + t2._chainFuture$1(value); + else + t2._completeWithValue$1(value); + } }, - take$1(_, count) { - var t1 = A._instanceType(this); - return A.CastIterable_CastIterable(J.take$1$ax(this.get$__internal$_source(), count), t1._precomputed1, t1._rest[1]); + completeError$2(e, st) { + var t1 = this._future; + if (this.isSync) + t1._completeError$2(e, st); + else + t1._asyncCompleteError$2(e, st); }, - elementAt$1(_, index) { - return A._instanceType(this)._rest[1]._as(J.elementAt$1$ax(this.get$__internal$_source(), index)); + $isCompleter: 1 + }; + A._awaitOnObject_closure.prototype = { + call$1(result) { + return this.bodyFunction.call$2(0, result); }, - get$first(_) { - return A._instanceType(this)._rest[1]._as(J.get$first$ax(this.get$__internal$_source())); + $signature: 7 + }; + A._awaitOnObject_closure0.prototype = { + call$2(error, stackTrace) { + this.bodyFunction.call$2(1, new A.ExceptionAndStackTrace(error, type$.StackTrace._as(stackTrace))); }, - contains$1(_, other) { - return J.contains$1$asx(this.get$__internal$_source(), other); + $signature: 38 + }; + A._wrapJsFunctionForAsync_closure.prototype = { + call$2(errorCode, result) { + this.$protected(A._asInt(errorCode), result); }, + $signature: 39 + }; + A.AsyncError.prototype = { toString$0(_) { - return J.toString$0$(this.get$__internal$_source()); + return A.S(this.error); + }, + $isError: 1, + get$stackTrace() { + return this.stackTrace; } }; - A.CastIterator.prototype = { - moveNext$0() { - return this.__internal$_source.moveNext$0(); - }, - get$current(_) { - var t1 = this.__internal$_source; - return this.$ti._rest[1]._as(t1.get$current(t1)); + A.Future_Future$microtask_closure.prototype = { + call$0() { + var e, s, exception, computationResult = null; + try { + computationResult = this.computation.call$0(); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + A._completeWithErrorCallback(this.result, e, s); + return; + } + this.result._complete$1(computationResult); }, - $isIterator: 1 - }; - A.CastIterable.prototype = { - get$__internal$_source() { - return this.__internal$_source; - } + $signature: 0 }; - A._EfficientLengthCastIterable.prototype = {$isEfficientLengthIterable: 1}; - A._CastListBase.prototype = { - $index(_, index) { - return this.$ti._rest[1]._as(J.$index$asx(this.__internal$_source, index)); + A._Completer.prototype = { + completeError$2(error, stackTrace) { + var replacement; + A.checkNotNullable(error, "error", type$.Object); + if ((this.future._state & 30) !== 0) + throw A.wrapException(A.StateError$("Future already completed")); + replacement = $.Zone__current.errorCallback$2(error, stackTrace); + if (replacement != null) { + error = replacement.error; + stackTrace = replacement.stackTrace; + } else if (stackTrace == null) + stackTrace = A.AsyncError_defaultStackTrace(error); + this._completeError$2(error, stackTrace); }, - $indexSet(_, index, value) { - var t1 = this.$ti; - J.$indexSet$ax(this.__internal$_source, index, t1._precomputed1._as(t1._rest[1]._as(value))); + completeError$1(error) { + return this.completeError$2(error, null); }, - sort$1(_, compare) { - var t1; - this.$ti._eval$1("int(2,2)?")._as(compare); - t1 = compare == null ? null : new A._CastListBase_sort_closure(this, compare); - J.sort$1$ax(this.__internal$_source, t1); + $isCompleter: 1 + }; + A._AsyncCompleter.prototype = { + complete$1(value) { + var t2, + t1 = this.$ti; + t1._eval$1("1/?")._as(value); + t2 = this.future; + if ((t2._state & 30) !== 0) + throw A.wrapException(A.StateError$("Future already completed")); + t2._asyncComplete$1(t1._eval$1("1/")._as(value)); }, - getRange$2(_, start, end) { - var t1 = this.$ti; - return A.CastIterable_CastIterable(J.getRange$2$ax(this.__internal$_source, start, end), t1._precomputed1, t1._rest[1]); + complete$0() { + return this.complete$1(null); }, - $isEfficientLengthIterable: 1, - $isList: 1 + _completeError$2(error, stackTrace) { + this.future._asyncCompleteError$2(error, stackTrace); + } }; - A._CastListBase_sort_closure.prototype = { - call$2(v1, v2) { - var t1 = this.$this.$ti, - t2 = t1._precomputed1; - t2._as(v1); - t2._as(v2); - t1 = t1._rest[1]; - return this.compare.call$2(t1._as(v1), t1._as(v2)); + A._SyncCompleter.prototype = { + complete$1(value) { + var t2, + t1 = this.$ti; + t1._eval$1("1/?")._as(value); + t2 = this.future; + if ((t2._state & 30) !== 0) + throw A.wrapException(A.StateError$("Future already completed")); + t2._complete$1(t1._eval$1("1/")._as(value)); }, - $signature() { - return this.$this.$ti._eval$1("int(1,1)"); + _completeError$2(error, stackTrace) { + this.future._completeError$2(error, stackTrace); } }; - A.CastList.prototype = { - cast$1$0(_, $R) { - return new A.CastList(this.__internal$_source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>")); + A._FutureListener.prototype = { + matchesErrorTest$1(asyncError) { + if ((this.state & 15) !== 6) + return true; + return this.result._zone.runUnary$2$2(type$.bool_Function_Object._as(this.callback), asyncError.error, type$.bool, type$.Object); }, - get$__internal$_source() { - return this.__internal$_source; + handleError$1(asyncError) { + var exception, _this = this, + errorCallback = _this.errorCallback, + result = null, + t1 = type$.dynamic, + t2 = type$.Object, + t3 = asyncError.error, + t4 = _this.result._zone; + if (type$.dynamic_Function_Object_StackTrace._is(errorCallback)) + result = t4.runBinary$3$3(errorCallback, t3, asyncError.stackTrace, t1, t2, type$.StackTrace); + else + result = t4.runUnary$2$2(type$.dynamic_Function_Object._as(errorCallback), t3, t1, t2); + try { + t1 = _this.$ti._eval$1("2/")._as(result); + return t1; + } catch (exception) { + if (type$.TypeError._is(A.unwrapException(exception))) { + if ((_this.state & 1) !== 0) + throw A.wrapException(A.ArgumentError$("The error handler of Future.then must return a value of the returned future's type", "onError")); + throw A.wrapException(A.ArgumentError$("The error handler of Future.catchError must return a value of the future's type", "onError")); + } else + throw exception; + } } }; - A.CastMap.prototype = { - cast$2$0(_, RK, RV) { - var t1 = this.$ti; - return new A.CastMap(this.__internal$_source, t1._eval$1("@<1>")._bind$1(t1._rest[1])._bind$1(RK)._bind$1(RV)._eval$1("CastMap<1,2,3,4>")); + A._Future.prototype = { + _setChained$1(source) { + this._state = this._state & 1 | 4; + this._resultOrListeners = source; }, - containsKey$1(_, key) { - return J.containsKey$1$x(this.__internal$_source, key); + then$1$2$onError(f, onError, $R) { + var currentZone, result, t2, + t1 = this.$ti; + t1._bind$1($R)._eval$1("1/(2)")._as(f); + currentZone = $.Zone__current; + if (currentZone === B.C__RootZone) { + if (onError != null && !type$.dynamic_Function_Object_StackTrace._is(onError) && !type$.dynamic_Function_Object._is(onError)) + throw A.wrapException(A.ArgumentError$value(onError, "onError", string$.Error_)); + } else { + f = currentZone.registerUnaryCallback$2$1(f, $R._eval$1("0/"), t1._precomputed1); + if (onError != null) + onError = A._registerErrorHandler(onError, currentZone); + } + result = new A._Future($.Zone__current, $R._eval$1("_Future<0>")); + t2 = onError == null ? 1 : 3; + this._addListener$1(new A._FutureListener(result, t2, f, onError, t1._eval$1("@<1>")._bind$1($R)._eval$1("_FutureListener<1,2>"))); + return result; }, - $index(_, key) { - return this.$ti._eval$1("4?")._as(J.$index$asx(this.__internal$_source, key)); + then$1$1(f, $R) { + return this.then$1$2$onError(f, null, $R); }, - $indexSet(_, key, value) { - var t1 = this.$ti; - t1._rest[2]._as(key); - t1._rest[3]._as(value); - J.$indexSet$ax(this.__internal$_source, t1._precomputed1._as(key), t1._rest[1]._as(value)); - }, - forEach$1(_, f) { - J.forEach$1$x(this.__internal$_source, new A.CastMap_forEach_closure(this, this.$ti._eval$1("~(3,4)")._as(f))); - }, - get$keys(_) { - var t1 = this.$ti; - return A.CastIterable_CastIterable(J.get$keys$x(this.__internal$_source), t1._precomputed1, t1._rest[2]); - }, - get$length(_) { - return J.get$length$asx(this.__internal$_source); - }, - get$isEmpty(_) { - return J.get$isEmpty$asx(this.__internal$_source); - } - }; - A.CastMap_forEach_closure.prototype = { - call$2(key, value) { - var t1 = this.$this.$ti; - t1._precomputed1._as(key); - t1._rest[1]._as(value); - this.f.call$2(t1._rest[2]._as(key), t1._rest[3]._as(value)); + _thenAwait$1$2(f, onError, $E) { + var result, + t1 = this.$ti; + t1._bind$1($E)._eval$1("1/(2)")._as(f); + result = new A._Future($.Zone__current, $E._eval$1("_Future<0>")); + this._addListener$1(new A._FutureListener(result, 19, f, onError, t1._eval$1("@<1>")._bind$1($E)._eval$1("_FutureListener<1,2>"))); + return result; }, - $signature() { - return this.$this.$ti._eval$1("~(1,2)"); - } - }; - A.LateError.prototype = { - toString$0(_) { - return "LateInitializationError: " + this._message; - } - }; - A.nullFuture_closure.prototype = { - call$0() { - return A.Future_Future$value(null, type$.Null); + catchError$1(onError) { + var t1 = this.$ti, + t2 = $.Zone__current, + result = new A._Future(t2, t1); + if (t2 !== B.C__RootZone) + onError = A._registerErrorHandler(onError, t2); + this._addListener$1(new A._FutureListener(result, 2, null, onError, t1._eval$1("_FutureListener<1,1>"))); + return result; }, - $signature: 27 - }; - A.SentinelValue.prototype = {}; - A.EfficientLengthIterable.prototype = {}; - A.ListIterable.prototype = { - get$iterator(_) { - var _this = this; - return new A.ListIterator(_this, _this.get$length(_this), A._instanceType(_this)._eval$1("ListIterator")); + whenComplete$1(action) { + var t1, t2, result; + type$.dynamic_Function._as(action); + t1 = this.$ti; + t2 = $.Zone__current; + result = new A._Future(t2, t1); + if (t2 !== B.C__RootZone) + action = t2.registerCallback$1$1(action, type$.dynamic); + this._addListener$1(new A._FutureListener(result, 8, action, null, t1._eval$1("_FutureListener<1,1>"))); + return result; }, - get$isEmpty(_) { - return this.get$length(this) === 0; + _setErrorObject$1(error) { + this._state = this._state & 1 | 16; + this._resultOrListeners = error; }, - get$first(_) { - if (this.get$length(this) === 0) - throw A.wrapException(A.IterableElementError_noElement()); - return this.elementAt$1(0, 0); + _cloneResult$1(source) { + this._state = source._state & 30 | this._state & 1; + this._resultOrListeners = source._resultOrListeners; }, - contains$1(_, element) { - var i, _this = this, - $length = _this.get$length(_this); - for (i = 0; i < $length; ++i) { - if (J.$eq$(_this.elementAt$1(0, i), element)) - return true; - if ($length !== _this.get$length(_this)) - throw A.wrapException(A.ConcurrentModificationError$(_this)); + _addListener$1(listener) { + var source, _this = this, + t1 = _this._state; + if (t1 <= 3) { + listener._nextListener = type$.nullable__FutureListener_dynamic_dynamic._as(_this._resultOrListeners); + _this._resultOrListeners = listener; + } else { + if ((t1 & 4) !== 0) { + source = type$._Future_dynamic._as(_this._resultOrListeners); + if ((source._state & 24) === 0) { + source._addListener$1(listener); + return; + } + _this._cloneResult$1(source); + } + _this._zone.scheduleMicrotask$1(new A._Future__addListener_closure(_this, listener)); } - return false; }, - join$1(_, separator) { - var first, t1, i, _this = this, - $length = _this.get$length(_this); - if (separator.length !== 0) { - if ($length === 0) - return ""; - first = A.S(_this.elementAt$1(0, 0)); - if ($length !== _this.get$length(_this)) - throw A.wrapException(A.ConcurrentModificationError$(_this)); - for (t1 = first, i = 1; i < $length; ++i) { - t1 = t1 + separator + A.S(_this.elementAt$1(0, i)); - if ($length !== _this.get$length(_this)) - throw A.wrapException(A.ConcurrentModificationError$(_this)); + _prependListeners$1(listeners) { + var t1, existingListeners, next, cursor, next0, source, _this = this, _box_0 = {}; + _box_0.listeners = listeners; + if (listeners == null) + return; + t1 = _this._state; + if (t1 <= 3) { + existingListeners = type$.nullable__FutureListener_dynamic_dynamic._as(_this._resultOrListeners); + _this._resultOrListeners = listeners; + if (existingListeners != null) { + next = listeners._nextListener; + for (cursor = listeners; next != null; cursor = next, next = next0) + next0 = next._nextListener; + cursor._nextListener = existingListeners; } - return t1.charCodeAt(0) == 0 ? t1 : t1; } else { - for (i = 0, t1 = ""; i < $length; ++i) { - t1 += A.S(_this.elementAt$1(0, i)); - if ($length !== _this.get$length(_this)) - throw A.wrapException(A.ConcurrentModificationError$(_this)); + if ((t1 & 4) !== 0) { + source = type$._Future_dynamic._as(_this._resultOrListeners); + if ((source._state & 24) === 0) { + source._prependListeners$1(listeners); + return; + } + _this._cloneResult$1(source); } - return t1.charCodeAt(0) == 0 ? t1 : t1; + _box_0.listeners = _this._reverseListeners$1(listeners); + _this._zone.scheduleMicrotask$1(new A._Future__prependListeners_closure(_box_0, _this)); } }, - join$0(_) { - return this.join$1(0, ""); + _removeListeners$0() { + var current = type$.nullable__FutureListener_dynamic_dynamic._as(this._resultOrListeners); + this._resultOrListeners = null; + return this._reverseListeners$1(current); }, - where$1(_, test) { - return this.super$Iterable$where(0, A._instanceType(this)._eval$1("bool(ListIterable.E)")._as(test)); + _reverseListeners$1(listeners) { + var current, prev, next; + for (current = listeners, prev = null; current != null; prev = current, current = next) { + next = current._nextListener; + current._nextListener = prev; + } + return prev; }, - map$1$1(_, toElement, $T) { - var t1 = A._instanceType(this); - return new A.MappedListIterable(this, t1._bind$1($T)._eval$1("1(ListIterable.E)")._as(toElement), t1._eval$1("@")._bind$1($T)._eval$1("MappedListIterable<1,2>")); + _chainForeignFuture$1(source) { + var e, s, exception, _this = this; + _this._state ^= 2; + try { + source.then$1$2$onError(new A._Future__chainForeignFuture_closure(_this), new A._Future__chainForeignFuture_closure0(_this), type$.Null); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + A.scheduleMicrotask(new A._Future__chainForeignFuture_closure1(_this, e, s)); + } }, - map$1(_, toElement) { - return this.map$1$1(0, toElement, type$.dynamic); + _complete$1(value) { + var listeners, _this = this, + t1 = _this.$ti; + t1._eval$1("1/")._as(value); + if (t1._eval$1("Future<1>")._is(value)) + if (t1._is(value)) + A._Future__chainCoreFutureSync(value, _this); + else + _this._chainForeignFuture$1(value); + else { + listeners = _this._removeListeners$0(); + t1._precomputed1._as(value); + _this._state = 8; + _this._resultOrListeners = value; + A._Future__propagateToListeners(_this, listeners); + } }, - skip$1(_, count) { - return A.SubListIterable$(this, count, null, A._instanceType(this)._eval$1("ListIterable.E")); + _completeWithValue$1(value) { + var listeners, _this = this; + _this.$ti._precomputed1._as(value); + listeners = _this._removeListeners$0(); + _this._state = 8; + _this._resultOrListeners = value; + A._Future__propagateToListeners(_this, listeners); }, - take$1(_, count) { - return A.SubListIterable$(this, 0, A.checkNotNullable(count, "count", type$.int), A._instanceType(this)._eval$1("ListIterable.E")); + _completeError$2(error, stackTrace) { + var listeners; + type$.Object._as(error); + type$.StackTrace._as(stackTrace); + listeners = this._removeListeners$0(); + this._setErrorObject$1(A.AsyncError$(error, stackTrace)); + A._Future__propagateToListeners(this, listeners); }, - toList$1$growable(_, growable) { - return A.List_List$of(this, true, A._instanceType(this)._eval$1("ListIterable.E")); + _asyncComplete$1(value) { + var t1 = this.$ti; + t1._eval$1("1/")._as(value); + if (t1._eval$1("Future<1>")._is(value)) { + this._chainFuture$1(value); + return; + } + this._asyncCompleteWithValue$1(value); }, - toList$0(_) { - return this.toList$1$growable(0, true); - } - }; - A.SubListIterable.prototype = { - get$_endIndex() { - var $length = J.get$length$asx(this.__internal$_iterable), - endOrLength = this._endOrLength; - if (endOrLength == null || endOrLength > $length) - return $length; - return endOrLength; + _asyncCompleteWithValue$1(value) { + var _this = this; + _this.$ti._precomputed1._as(value); + _this._state ^= 2; + _this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteWithValue_closure(_this, value)); }, - get$_startIndex() { - var $length = J.get$length$asx(this.__internal$_iterable), - t1 = this._start; - if (t1 > $length) - return $length; - return t1; + _chainFuture$1(value) { + var t1 = this.$ti; + t1._eval$1("Future<1>")._as(value); + if (t1._is(value)) { + A._Future__chainCoreFutureAsync(value, this); + return; + } + this._chainForeignFuture$1(value); }, - get$length(_) { - var endOrLength, - $length = J.get$length$asx(this.__internal$_iterable), - t1 = this._start; - if (t1 >= $length) - return 0; - endOrLength = this._endOrLength; - if (endOrLength == null || endOrLength >= $length) - return $length - t1; - if (typeof endOrLength !== "number") - return endOrLength.$sub(); - return endOrLength - t1; + _asyncCompleteError$2(error, stackTrace) { + type$.StackTrace._as(stackTrace); + this._state ^= 2; + this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteError_closure(this, error, stackTrace)); }, - elementAt$1(_, index) { - var _this = this, - realIndex = _this.get$_startIndex() + index; - if (index < 0 || realIndex >= _this.get$_endIndex()) - throw A.wrapException(A.IndexError$withLength(index, _this.get$length(0), _this, null, "index")); - return J.elementAt$1$ax(_this.__internal$_iterable, realIndex); - }, - skip$1(_, count) { - var newStart, endOrLength, _this = this; - A.RangeError_checkNotNegative(count, "count"); - newStart = _this._start + count; - endOrLength = _this._endOrLength; - if (endOrLength != null && newStart >= endOrLength) - return new A.EmptyIterable(_this.$ti._eval$1("EmptyIterable<1>")); - return A.SubListIterable$(_this.__internal$_iterable, newStart, endOrLength, _this.$ti._precomputed1); - }, - take$1(_, count) { - var endOrLength, t1, newEnd, _this = this; - A.RangeError_checkNotNegative(count, "count"); - endOrLength = _this._endOrLength; - t1 = _this._start; - newEnd = t1 + count; - if (endOrLength == null) - return A.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1); - else { - if (endOrLength < newEnd) - return _this; - return A.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1); - } - }, - toList$1$growable(_, growable) { - var $length, result, i, _this = this, - start = _this._start, - t1 = _this.__internal$_iterable, - t2 = J.getInterceptor$asx(t1), - end = t2.get$length(t1), - endOrLength = _this._endOrLength; - if (endOrLength != null && endOrLength < end) - end = endOrLength; - $length = end - start; - if ($length <= 0) { - t1 = J.JSArray_JSArray$fixed(0, _this.$ti._precomputed1); + timeout$2$onTimeout(_, timeLimit, onTimeout) { + var t3, _future, _this = this, t1 = {}, + t2 = _this.$ti; + t2._eval$1("1/()?")._as(onTimeout); + if ((_this._state & 24) !== 0) { + t1 = new A._Future($.Zone__current, t2); + t1._asyncComplete$1(_this); return t1; } - result = A.List_List$filled($length, t2.elementAt$1(t1, start), false, _this.$ti._precomputed1); - for (i = 1; i < $length; ++i) { - B.JSArray_methods.$indexSet(result, i, t2.elementAt$1(t1, start + i)); - if (t2.get$length(t1) < end) - throw A.wrapException(A.ConcurrentModificationError$(_this)); - } - return result; - } - }; - A.ListIterator.prototype = { - get$current(_) { - var t1 = this.__internal$_current; - return t1 == null ? this.$ti._precomputed1._as(t1) : t1; - }, - moveNext$0() { - var t3, _this = this, - t1 = _this.__internal$_iterable, - t2 = J.getInterceptor$asx(t1), - $length = t2.get$length(t1); - if (_this.__internal$_length !== $length) - throw A.wrapException(A.ConcurrentModificationError$(t1)); - t3 = _this.__internal$_index; - if (t3 >= $length) { - _this.set$__internal$_current(null); - return false; - } - _this.set$__internal$_current(t2.elementAt$1(t1, t3)); - ++_this.__internal$_index; - return true; - }, - set$__internal$_current(_current) { - this.__internal$_current = this.$ti._eval$1("1?")._as(_current); + t3 = $.Zone__current; + _future = new A._Future(t3, t2); + t1.timer = null; + t1.timer = A.Timer_Timer(timeLimit, new A._Future_timeout_closure(_this, _future, t3, t3.registerCallback$1$1(onTimeout, t2._eval$1("1/")))); + _this.then$1$2$onError(new A._Future_timeout_closure0(t1, _this, _future), new A._Future_timeout_closure1(t1, _future), type$.Null); + return _future; }, - $isIterator: 1 + $isFuture: 1 }; - A.MappedIterable.prototype = { - get$iterator(_) { - var t1 = A._instanceType(this); - return new A.MappedIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("MappedIterator<1,2>")); - }, - get$length(_) { - return J.get$length$asx(this.__internal$_iterable); - }, - get$isEmpty(_) { - return J.get$isEmpty$asx(this.__internal$_iterable); + A._Future__addListener_closure.prototype = { + call$0() { + A._Future__propagateToListeners(this.$this, this.listener); }, - get$first(_) { - return this._f.call$1(J.get$first$ax(this.__internal$_iterable)); + $signature: 0 + }; + A._Future__prependListeners_closure.prototype = { + call$0() { + A._Future__propagateToListeners(this.$this, this._box_0.listeners); }, - elementAt$1(_, index) { - return this._f.call$1(J.elementAt$1$ax(this.__internal$_iterable, index)); - } + $signature: 0 }; - A.EfficientLengthMappedIterable.prototype = {$isEfficientLengthIterable: 1}; - A.MappedIterator.prototype = { - moveNext$0() { - var _this = this, - t1 = _this._iterator; - if (t1.moveNext$0()) { - _this.set$__internal$_current(_this._f.call$1(t1.get$current(t1))); - return true; + A._Future__chainForeignFuture_closure.prototype = { + call$1(value) { + var error, stackTrace, exception, + t1 = this.$this; + t1._state ^= 2; + try { + t1._completeWithValue$1(t1.$ti._precomputed1._as(value)); + } catch (exception) { + error = A.unwrapException(exception); + stackTrace = A.getTraceFromException(exception); + t1._completeError$2(error, stackTrace); } - _this.set$__internal$_current(null); - return false; - }, - get$current(_) { - var t1 = this.__internal$_current; - return t1 == null ? this.$ti._rest[1]._as(t1) : t1; - }, - set$__internal$_current(_current) { - this.__internal$_current = this.$ti._eval$1("2?")._as(_current); }, - $isIterator: 1 + $signature: 6 }; - A.MappedListIterable.prototype = { - get$length(_) { - return J.get$length$asx(this.__internal$_source); + A._Future__chainForeignFuture_closure0.prototype = { + call$2(error, stackTrace) { + this.$this._completeError$2(type$.Object._as(error), type$.StackTrace._as(stackTrace)); }, - elementAt$1(_, index) { - return this._f.call$1(J.elementAt$1$ax(this.__internal$_source, index)); - } + $signature: 5 }; - A.WhereIterable.prototype = { - get$iterator(_) { - return new A.WhereIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, this.$ti._eval$1("WhereIterator<1>")); - }, - map$1$1(_, toElement, $T) { - var t1 = this.$ti; - return new A.MappedIterable(this, t1._bind$1($T)._eval$1("1(2)")._as(toElement), t1._eval$1("@<1>")._bind$1($T)._eval$1("MappedIterable<1,2>")); + A._Future__chainForeignFuture_closure1.prototype = { + call$0() { + this.$this._completeError$2(this.e, this.s); }, - map$1(_, toElement) { - return this.map$1$1(0, toElement, type$.dynamic); - } + $signature: 0 }; - A.WhereIterator.prototype = { - moveNext$0() { - var t1, t2; - for (t1 = this._iterator, t2 = this._f; t1.moveNext$0();) - if (A.boolConversionCheck(t2.call$1(t1.get$current(t1)))) - return true; - return false; - }, - get$current(_) { - var t1 = this._iterator; - return t1.get$current(t1); + A._Future__chainCoreFutureAsync_closure.prototype = { + call$0() { + A._Future__chainCoreFutureSync(this._box_0.source, this.target); }, - $isIterator: 1 - }; - A.TakeIterable.prototype = { - get$iterator(_) { - return new A.TakeIterator(J.get$iterator$ax(this.__internal$_iterable), this._takeCount, A._instanceType(this)._eval$1("TakeIterator<1>")); - } + $signature: 0 }; - A.EfficientLengthTakeIterable.prototype = { - get$length(_) { - var iterableLength = J.get$length$asx(this.__internal$_iterable), - t1 = this._takeCount; - if (iterableLength > t1) - return t1; - return iterableLength; + A._Future__asyncCompleteWithValue_closure.prototype = { + call$0() { + this.$this._completeWithValue$1(this.value); }, - $isEfficientLengthIterable: 1 + $signature: 0 }; - A.TakeIterator.prototype = { - moveNext$0() { - if (--this._remaining >= 0) - return this._iterator.moveNext$0(); - this._remaining = -1; - return false; - }, - get$current(_) { - var t1; - if (this._remaining < 0) { - this.$ti._precomputed1._as(null); - return null; - } - t1 = this._iterator; - return t1.get$current(t1); + A._Future__asyncCompleteError_closure.prototype = { + call$0() { + this.$this._completeError$2(this.error, this.stackTrace); }, - $isIterator: 1 + $signature: 0 }; - A.SkipIterable.prototype = { - skip$1(_, count) { - A.ArgumentError_checkNotNull(count, "count", type$.int); - A.RangeError_checkNotNegative(count, "count"); - return new A.SkipIterable(this.__internal$_iterable, this._skipCount + count, A._instanceType(this)._eval$1("SkipIterable<1>")); + A._Future__propagateToListeners_handleWhenCompleteCallback.prototype = { + call$0() { + var e, s, t1, exception, t2, originalSource, _this = this, completeResult = null; + try { + t1 = _this._box_0.listener; + completeResult = t1.result._zone.run$1$1(type$.dynamic_Function._as(t1.callback), type$.dynamic); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + t1 = _this.hasError && type$.AsyncError._as(_this._box_1.source._resultOrListeners).error === e; + t2 = _this._box_0; + if (t1) + t2.listenerValueOrError = type$.AsyncError._as(_this._box_1.source._resultOrListeners); + else + t2.listenerValueOrError = A.AsyncError$(e, s); + t2.listenerHasError = true; + return; + } + if (completeResult instanceof A._Future && (completeResult._state & 24) !== 0) { + if ((completeResult._state & 16) !== 0) { + t1 = _this._box_0; + t1.listenerValueOrError = type$.AsyncError._as(completeResult._resultOrListeners); + t1.listenerHasError = true; + } + return; + } + if (completeResult instanceof A._Future) { + originalSource = _this._box_1.source; + t1 = _this._box_0; + t1.listenerValueOrError = completeResult.then$1$1(new A._Future__propagateToListeners_handleWhenCompleteCallback_closure(originalSource), type$.dynamic); + t1.listenerHasError = false; + } }, - get$iterator(_) { - return new A.SkipIterator(J.get$iterator$ax(this.__internal$_iterable), this._skipCount, A._instanceType(this)._eval$1("SkipIterator<1>")); - } + $signature: 0 }; - A.EfficientLengthSkipIterable.prototype = { - get$length(_) { - var $length = J.get$length$asx(this.__internal$_iterable) - this._skipCount; - if ($length >= 0) - return $length; - return 0; - }, - skip$1(_, count) { - A.ArgumentError_checkNotNull(count, "count", type$.int); - A.RangeError_checkNotNegative(count, "count"); - return new A.EfficientLengthSkipIterable(this.__internal$_iterable, this._skipCount + count, this.$ti); + A._Future__propagateToListeners_handleWhenCompleteCallback_closure.prototype = { + call$1(_) { + return this.originalSource; }, - $isEfficientLengthIterable: 1 + $signature: 84 }; - A.SkipIterator.prototype = { - moveNext$0() { - var t1, i; - for (t1 = this._iterator, i = 0; i < this._skipCount; ++i) - t1.moveNext$0(); - this._skipCount = 0; - return t1.moveNext$0(); - }, - get$current(_) { - var t1 = this._iterator; - return t1.get$current(t1); - }, - $isIterator: 1 - }; - A.EmptyIterable.prototype = { - get$iterator(_) { - return B.C_EmptyIterator; - }, - get$isEmpty(_) { - return true; - }, - get$length(_) { - return 0; - }, - get$first(_) { - throw A.wrapException(A.IterableElementError_noElement()); - }, - elementAt$1(_, index) { - throw A.wrapException(A.RangeError$range(index, 0, 0, "index", null)); - }, - contains$1(_, element) { - return false; - }, - map$1$1(_, toElement, $T) { - this.$ti._bind$1($T)._eval$1("1(2)")._as(toElement); - return new A.EmptyIterable($T._eval$1("EmptyIterable<0>")); - }, - map$1(_, toElement) { - return this.map$1$1(0, toElement, type$.dynamic); - }, - skip$1(_, count) { - A.RangeError_checkNotNegative(count, "count"); - return this; + A._Future__propagateToListeners_handleValueCallback.prototype = { + call$0() { + var e, s, t1, t2, t3, t4, t5, exception; + try { + t1 = this._box_0; + t2 = t1.listener; + t3 = t2.$ti; + t4 = t3._precomputed1; + t5 = t4._as(this.sourceResult); + t1.listenerValueOrError = t2.result._zone.runUnary$2$2(t3._eval$1("2/(1)")._as(t2.callback), t5, t3._eval$1("2/"), t4); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + t1 = this._box_0; + t1.listenerValueOrError = A.AsyncError$(e, s); + t1.listenerHasError = true; + } }, - take$1(_, count) { - A.RangeError_checkNotNegative(count, "count"); - return this; - } + $signature: 0 }; - A.EmptyIterator.prototype = { - moveNext$0() { - return false; - }, - get$current(_) { - throw A.wrapException(A.IterableElementError_noElement()); + A._Future__propagateToListeners_handleError.prototype = { + call$0() { + var asyncError, e, s, t1, exception, t2, _this = this; + try { + asyncError = type$.AsyncError._as(_this._box_1.source._resultOrListeners); + t1 = _this._box_0; + if (t1.listener.matchesErrorTest$1(asyncError) && t1.listener.errorCallback != null) { + t1.listenerValueOrError = t1.listener.handleError$1(asyncError); + t1.listenerHasError = false; + } + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + t1 = type$.AsyncError._as(_this._box_1.source._resultOrListeners); + t2 = _this._box_0; + if (t1.error === e) + t2.listenerValueOrError = t1; + else + t2.listenerValueOrError = A.AsyncError$(e, s); + t2.listenerHasError = true; + } }, - $isIterator: 1 + $signature: 0 }; - A.FixedLengthListMixin.prototype = {}; - A.UnmodifiableListMixin.prototype = { - $indexSet(_, index, value) { - A._instanceType(this)._eval$1("UnmodifiableListMixin.E")._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list")); + A._Future_timeout_closure.prototype = { + call$0() { + var e, s, exception, _this = this; + try { + _this._future._complete$1(_this.zone.run$1$1(_this.onTimeoutHandler, _this.$this.$ti._eval$1("1/"))); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + _this._future._completeError$2(e, s); + } }, - sort$1(_, compare) { - A._instanceType(this)._eval$1("int(UnmodifiableListMixin.E,UnmodifiableListMixin.E)?")._as(compare); - throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list")); - } + $signature: 0 }; - A.UnmodifiableListBase.prototype = {}; - A.ReversedListIterable.prototype = { - get$length(_) { - return J.get$length$asx(this.__internal$_source); + A._Future_timeout_closure0.prototype = { + call$1(v) { + var t1; + this.$this.$ti._precomputed1._as(v); + t1 = this._box_0; + if (t1.timer.get$isActive()) { + t1.timer.cancel$0(); + this._future._completeWithValue$1(v); + } }, - elementAt$1(_, index) { - var t1 = this.__internal$_source, - t2 = J.getInterceptor$asx(t1); - return t2.elementAt$1(t1, t2.get$length(t1) - 1 - index); + $signature() { + return this.$this.$ti._eval$1("Null(1)"); } }; - A.Symbol.prototype = { - get$hashCode(_) { - var hash = this._hashCode; - if (hash != null) - return hash; - hash = 664597 * B.JSString_methods.get$hashCode(this._name) & 536870911; - this._hashCode = hash; - return hash; - }, - toString$0(_) { - return 'Symbol("' + this._name + '")'; - }, - $eq(_, other) { - if (other == null) - return false; - return other instanceof A.Symbol && this._name === other._name; + A._Future_timeout_closure1.prototype = { + call$2(e, s) { + var t1; + type$.Object._as(e); + type$.StackTrace._as(s); + t1 = this._box_0; + if (t1.timer.get$isActive()) { + t1.timer.cancel$0(); + this._future._completeError$2(e, s); + } }, - $isSymbol0: 1 + $signature: 5 }; - A.__CastListBase__CastIterableBase_ListMixin.prototype = {}; - A.ConstantMapView.prototype = {}; - A.ConstantMap.prototype = { - cast$2$0(_, RK, RV) { - var t1 = A._instanceType(this); - return A.Map_castFrom(this, t1._precomputed1, t1._rest[1], RK, RV); - }, - get$isEmpty(_) { - return this.get$length(this) === 0; - }, - toString$0(_) { - return A.MapBase_mapToString(this); - }, - $indexSet(_, key, value) { + A._AsyncCallbackEntry.prototype = {}; + A.Stream.prototype = { + map$1$1(_, convert, $S) { var t1 = A._instanceType(this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - A.ConstantMap__throwUnmodifiable(); + return new A._MapStream(t1._bind$1($S)._eval$1("1(Stream.T)")._as(convert), this, t1._eval$1("@")._bind$1($S)._eval$1("_MapStream<1,2>")); }, - map$2$1(_, transform, K2, V2) { - var result = A.LinkedHashMap_LinkedHashMap$_empty(K2, V2); - this.forEach$1(0, new A.ConstantMap_map_closure(this, A._instanceType(this)._bind$1(K2)._bind$1(V2)._eval$1("MapEntry<1,2>(3,4)")._as(transform), result)); - return result; + map$1(_, convert) { + return this.map$1$1(0, convert, type$.dynamic); }, - map$1(_, transform) { - var t1 = type$.dynamic; - return this.map$2$1(0, transform, t1, t1); + get$length(_) { + var t1 = {}, + future = new A._Future($.Zone__current, type$._Future_int); + t1.count = 0; + this.listen$4$cancelOnError$onDone$onError(new A.Stream_length_closure(t1, this), true, new A.Stream_length_closure0(t1, future), future.get$_completeError()); + return future; }, - $isMap: 1 + get$first(_) { + var future = new A._Future($.Zone__current, A._instanceType(this)._eval$1("_Future")), + subscription = this.listen$4$cancelOnError$onDone$onError(null, true, new A.Stream_first_closure(future), future.get$_completeError()); + subscription.onData$1(new A.Stream_first_closure0(this, subscription, future)); + return future; + } }; - A.ConstantMap_map_closure.prototype = { - call$2(key, value) { - var t1 = A._instanceType(this.$this), - entry = this.transform.call$2(t1._precomputed1._as(key), t1._rest[1]._as(value)); - this.result.$indexSet(0, entry.get$key(entry), entry.get$value(entry)); + A.Stream_length_closure.prototype = { + call$1(_) { + A._instanceType(this.$this)._eval$1("Stream.T")._as(_); + ++this._box_0.count; }, $signature() { - return A._instanceType(this.$this)._eval$1("~(1,2)"); + return A._instanceType(this.$this)._eval$1("~(Stream.T)"); } }; - A.ConstantStringMap.prototype = { - get$length(_) { - return this._values.length; + A.Stream_length_closure0.prototype = { + call$0() { + this.future._complete$1(this._box_0.count); }, - get$__js_helper$_keys() { - var keys = this.$keys; - if (keys == null) { - keys = Object.keys(this._jsIndex); - this.$keys = keys; + $signature: 0 + }; + A.Stream_first_closure.prototype = { + call$0() { + var e, s, t1, exception; + try { + t1 = A.IterableElementError_noElement(); + throw A.wrapException(t1); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + A._completeWithErrorCallback(this.future, e, s); } - return keys; - }, - containsKey$1(_, key) { - if (typeof key != "string") - return false; - if ("__proto__" === key) - return false; - return this._jsIndex.hasOwnProperty(key); }, - $index(_, key) { - if (!this.containsKey$1(0, key)) - return null; - return this._values[this._jsIndex[key]]; - }, - forEach$1(_, f) { - var keys, values, t1, i; - this.$ti._eval$1("~(1,2)")._as(f); - keys = this.get$__js_helper$_keys(); - values = this._values; - for (t1 = keys.length, i = 0; i < t1; ++i) - f.call$2(keys[i], values[i]); - }, - get$keys(_) { - return new A._KeysOrValues(this.get$__js_helper$_keys(), this.$ti._eval$1("_KeysOrValues<1>")); - } + $signature: 0 }; - A._KeysOrValues.prototype = { - get$length(_) { - return this._elements.length; - }, - get$isEmpty(_) { - return 0 === this._elements.length; - }, - get$isNotEmpty(_) { - return 0 !== this._elements.length; + A.Stream_first_closure0.prototype = { + call$1(value) { + A._cancelAndValue(this.subscription, this.future, A._instanceType(this.$this)._eval$1("Stream.T")._as(value)); }, - get$iterator(_) { - var t1 = this._elements; - return new A._KeysOrValuesOrElementsIterator(t1, t1.length, this.$ti._eval$1("_KeysOrValuesOrElementsIterator<1>")); + $signature() { + return A._instanceType(this.$this)._eval$1("~(Stream.T)"); } }; - A._KeysOrValuesOrElementsIterator.prototype = { - get$current(_) { - var t1 = this.__js_helper$_current; - return t1 == null ? this.$ti._precomputed1._as(t1) : t1; + A._StreamController.prototype = { + get$_pendingEvents() { + var t1, _this = this; + if ((_this._state & 8) === 0) + return A._instanceType(_this)._eval$1("_PendingEvents<1>?")._as(_this._varData); + t1 = A._instanceType(_this); + return t1._eval$1("_PendingEvents<1>?")._as(t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData).get$_varData()); }, - moveNext$0() { - var _this = this, - t1 = _this.__js_helper$_index; - if (t1 >= _this.__js_helper$_length) { - _this.set$__js_helper$_current(null); - return false; + _ensurePendingEvents$0() { + var events, t1, _this = this; + if ((_this._state & 8) === 0) { + events = _this._varData; + if (events == null) + events = _this._varData = new A._PendingEvents(A._instanceType(_this)._eval$1("_PendingEvents<1>")); + return A._instanceType(_this)._eval$1("_PendingEvents<1>")._as(events); } - _this.set$__js_helper$_current(_this._elements[t1]); - ++_this.__js_helper$_index; - return true; + t1 = A._instanceType(_this); + events = t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData).get$_varData(); + return t1._eval$1("_PendingEvents<1>")._as(events); }, - set$__js_helper$_current(_current) { - this.__js_helper$_current = this.$ti._eval$1("1?")._as(_current); + get$_subscription() { + var varData = this._varData; + if ((this._state & 8) !== 0) + varData = type$._StreamControllerAddStreamState_nullable_Object._as(varData).get$_varData(); + return A._instanceType(this)._eval$1("_ControllerSubscription<1>")._as(varData); }, - $isIterator: 1 - }; - A.JSInvocationMirror.prototype = { - get$memberName() { - var t1 = this._memberName; - if (t1 instanceof A.Symbol) - return t1; - return this._memberName = new A.Symbol(A._asString(t1)); + _badEventState$0() { + if ((this._state & 4) !== 0) + return new A.StateError("Cannot add event after closing"); + return new A.StateError("Cannot add event while adding a stream"); }, - get$positionalArguments() { - var t1, t2, argumentCount, list, index, _this = this; - if (_this.__js_helper$_kind === 1) - return B.List_empty; - t1 = _this._arguments; - t2 = J.getInterceptor$asx(t1); - argumentCount = t2.get$length(t1) - J.get$length$asx(_this._namedArgumentNames) - _this._typeArgumentCount; - if (argumentCount === 0) - return B.List_empty; - list = []; - for (index = 0; index < argumentCount; ++index) - list.push(t2.$index(t1, index)); - return J.JSArray_markUnmodifiableList(list); - }, - get$namedArguments() { - var t1, t2, namedArgumentCount, t3, t4, namedArgumentsStartIndex, map, i, _this = this; - if (_this.__js_helper$_kind !== 0) - return B.Map_empty; - t1 = _this._namedArgumentNames; - t2 = J.getInterceptor$asx(t1); - namedArgumentCount = t2.get$length(t1); - t3 = _this._arguments; - t4 = J.getInterceptor$asx(t3); - namedArgumentsStartIndex = t4.get$length(t3) - namedArgumentCount - _this._typeArgumentCount; - if (namedArgumentCount === 0) - return B.Map_empty; - map = new A.JsLinkedHashMap(type$.JsLinkedHashMap_Symbol_dynamic); - for (i = 0; i < namedArgumentCount; ++i) - map.$indexSet(0, new A.Symbol(A._asString(t2.$index(t1, i))), t4.$index(t3, namedArgumentsStartIndex + i)); - return new A.ConstantMapView(map, type$.ConstantMapView_Symbol_dynamic); - }, - $isInvocation: 1 - }; - A.Primitives_functionNoSuchMethod_closure.prototype = { - call$2($name, argument) { - var t1; - A._asString($name); - t1 = this._box_0; - t1.names = t1.names + "$" + $name; - B.JSArray_methods.add$1(this.namedArgumentList, $name); - B.JSArray_methods.add$1(this.$arguments, argument); - ++t1.argumentCount; + _ensureDoneFuture$0() { + var t1 = this._doneFuture; + if (t1 == null) + t1 = this._doneFuture = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : new A._Future($.Zone__current, type$._Future_void); + return t1; }, - $signature: 5 - }; - A.TypeErrorDecoder.prototype = { - matchTypeError$1(message) { - var result, t1, _this = this, - match = new RegExp(_this._pattern).exec(message); - if (match == null) - return null; - result = Object.create(null); - 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]; + add$1(_, value) { + var t2, _this = this, + t1 = A._instanceType(_this); + t1._precomputed1._as(value); + t2 = _this._state; + if (t2 >= 4) + throw A.wrapException(_this._badEventState$0()); + if ((t2 & 1) !== 0) + _this._sendData$1(value); + else if ((t2 & 3) === 0) + _this._ensurePendingEvents$0().add$1(0, new A._DelayedData(value, t1._eval$1("_DelayedData<1>"))); + }, + addError$2(error, stackTrace) { + var replacement, _this = this, + t1 = type$.Object; + t1._as(error); + type$.nullable_StackTrace._as(stackTrace); + A.checkNotNullable(error, "error", t1); + if (_this._state >= 4) + throw A.wrapException(_this._badEventState$0()); + replacement = $.Zone__current.errorCallback$2(error, stackTrace); + if (replacement != null) { + error = replacement.error; + stackTrace = replacement.stackTrace; + } else if (stackTrace == null) + stackTrace = A.AsyncError_defaultStackTrace(error); + t1 = _this._state; + if ((t1 & 1) !== 0) + _this._sendError$2(error, stackTrace); + else if ((t1 & 3) === 0) + _this._ensurePendingEvents$0().add$1(0, new A._DelayedError(error, stackTrace)); + }, + addError$1(error) { + return this.addError$2(error, null); + }, + close$0() { + var _this = this, + t1 = _this._state; + if ((t1 & 4) !== 0) + return _this._ensureDoneFuture$0(); + if (t1 >= 4) + throw A.wrapException(_this._badEventState$0()); + t1 = _this._state = t1 | 4; + if ((t1 & 1) !== 0) + _this._sendDone$0(); + else if ((t1 & 3) === 0) + _this._ensurePendingEvents$0().add$1(0, B.C__DelayedDone); + return _this._ensureDoneFuture$0(); + }, + _subscribe$4(onData, onError, onDone, cancelOnError) { + var t2, t3, t4, t5, t6, t7, subscription, pendingEvents, addState, _this = this, + t1 = A._instanceType(_this); + t1._eval$1("~(1)?")._as(onData); + type$.nullable_void_Function._as(onDone); + if ((_this._state & 3) !== 0) + throw A.wrapException(A.StateError$("Stream has already been listened to.")); + t2 = $.Zone__current; + t3 = cancelOnError ? 1 : 0; + t4 = onError != null ? 32 : 0; + t5 = A._BufferingStreamSubscription__registerDataHandler(t2, onData, t1._precomputed1); + t6 = A._BufferingStreamSubscription__registerErrorHandler(t2, onError); + t7 = onDone == null ? A.async___nullDoneHandler$closure() : onDone; + subscription = new A._ControllerSubscription(_this, t5, t6, t2.registerCallback$1$1(t7, type$.void), t2, t3 | t4, t1._eval$1("_ControllerSubscription<1>")); + pendingEvents = _this.get$_pendingEvents(); + t4 = _this._state |= 1; + if ((t4 & 8) !== 0) { + addState = t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData); + addState.set$_varData(subscription); + addState.resume$0(); + } else + _this._varData = subscription; + subscription._setPendingEvents$1(pendingEvents); + subscription._guardCallback$1(new A._StreamController__subscribe_closure(_this)); + return subscription; + }, + _recordCancel$1(subscription) { + var result, onCancel, cancelResult, e, s, exception, result0, _this = this, + t1 = A._instanceType(_this); + t1._eval$1("StreamSubscription<1>")._as(subscription); + result = null; + if ((_this._state & 8) !== 0) + result = t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData).cancel$0(); + _this._varData = null; + _this._state = _this._state & 4294967286 | 2; + onCancel = _this.onCancel; + if (onCancel != null) + if (result == null) + try { + cancelResult = onCancel.call$0(); + if (cancelResult instanceof A._Future) + result = cancelResult; + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + result0 = new A._Future($.Zone__current, type$._Future_void); + result0._asyncCompleteError$2(e, s); + result = result0; + } + else + result = result.whenComplete$1(onCancel); + t1 = new A._StreamController__recordCancel_complete(_this); + if (result != null) + result = result.whenComplete$1(t1); + else + t1.call$0(); return result; - } + }, + $isStreamSink: 1, + $isStreamController: 1, + $is_StreamControllerLifecycle: 1, + $is_EventSink: 1, + $is_EventDispatch: 1 }; - A.NullError.prototype = { - toString$0(_) { - return "Null check operator used on a null value"; - } + A._StreamController__subscribe_closure.prototype = { + call$0() { + A._runGuarded(this.$this.onListen); + }, + $signature: 0 }; - A.JsNoSuchMethodError.prototype = { - toString$0(_) { - var t2, _this = this, - _s38_ = "NoSuchMethodError: method not found: '", - t1 = _this._method; - if (t1 == null) - return "NoSuchMethodError: " + _this.__js_helper$_message; - t2 = _this._receiver; - if (t2 == null) - return _s38_ + t1 + "' (" + _this.__js_helper$_message + ")"; - return _s38_ + t1 + "' on '" + t2 + "' (" + _this.__js_helper$_message + ")"; - } + A._StreamController__recordCancel_complete.prototype = { + call$0() { + var doneFuture = this.$this._doneFuture; + if (doneFuture != null && (doneFuture._state & 30) === 0) + doneFuture._asyncComplete$1(null); + }, + $signature: 0 }; - A.UnknownJsTypeError.prototype = { - toString$0(_) { - var t1 = this.__js_helper$_message; - return t1.length === 0 ? "Error" : "Error: " + t1; + A._SyncStreamControllerDispatch.prototype = { + _sendData$1(data) { + this.$ti._precomputed1._as(data); + this.get$_subscription()._add$1(data); + }, + _sendError$2(error, stackTrace) { + this.get$_subscription()._addError$2(error, stackTrace); + }, + _sendDone$0() { + this.get$_subscription()._close$0(); } }; - A.NullThrownFromJavaScriptException.prototype = { - toString$0(_) { - return "Throw of null ('" + (this._irritant === null ? "null" : "undefined") + "' from JavaScript)"; + A._AsyncStreamControllerDispatch.prototype = { + _sendData$1(data) { + var t1 = this.$ti; + t1._precomputed1._as(data); + this.get$_subscription()._addPending$1(new A._DelayedData(data, t1._eval$1("_DelayedData<1>"))); + }, + _sendError$2(error, stackTrace) { + this.get$_subscription()._addPending$1(new A._DelayedError(error, stackTrace)); + }, + _sendDone$0() { + this.get$_subscription()._addPending$1(B.C__DelayedDone); } }; - A.ExceptionAndStackTrace.prototype = {}; - A._StackTrace.prototype = { - toString$0(_) { - var trace, - t1 = this._trace; - if (t1 != null) - return t1; - t1 = this._exception; - trace = t1 !== null && typeof t1 === "object" ? t1.stack : null; - return this._trace = trace == null ? "" : trace; + A._AsyncStreamController.prototype = {}; + A._SyncStreamController.prototype = {}; + A._ControllerStream.prototype = { + get$hashCode(_) { + return (A.Primitives_objectHashCode(this._controller) ^ 892482866) >>> 0; }, - $isStackTrace: 1 - }; - A.Closure.prototype = { - toString$0(_) { - var $constructor = this.constructor, - $name = $constructor == null ? null : $constructor.name; - return "Closure '" + A.unminifyOrTag($name == null ? "unknown" : $name) + "'"; - }, - get$runtimeType(_) { - var rti = A.closureFunctionType(this); - return A.createRuntimeType(rti == null ? A.instanceType(this) : rti); - }, - $isFunction: 1, - get$$call() { - return this; - }, - "call*": "call$1", - $requiredArgCount: 1, - $defaultValues: null - }; - A.Closure0Args.prototype = {"call*": "call$0", $requiredArgCount: 0}; - A.Closure2Args.prototype = {"call*": "call$2", $requiredArgCount: 2}; - A.TearOffClosure.prototype = {}; - A.StaticClosure.prototype = { - toString$0(_) { - var $name = this.$static_name; - if ($name == null) - return "Closure of unknown static method"; - return "Closure '" + A.unminifyOrTag($name) + "'"; - } - }; - A.BoundClosure.prototype = { $eq(_, other) { if (other == null) return false; if (this === other) return true; - if (!(other instanceof A.BoundClosure)) - return false; - return this.$_target === other.$_target && this._receiver === other._receiver; - }, - get$hashCode(_) { - return (A.objectHashCode(this._receiver) ^ A.Primitives_objectHashCode(this.$_target)) >>> 0; - }, - toString$0(_) { - return "Closure '" + this.$_name + "' of " + ("Instance of '" + A.Primitives_objectTypeName(this._receiver) + "'"); - } - }; - A._CyclicInitializationError.prototype = { - toString$0(_) { - return "Reading static variable '" + this.variableName + "' during its initialization"; - } - }; - A.RuntimeError.prototype = { - toString$0(_) { - return "RuntimeError: " + this.message; - } - }; - A._AssertionError.prototype = { - toString$0(_) { - return "Assertion failed: " + A.Error_safeToString(this.message); + return other instanceof A._ControllerStream && other._controller === this._controller; } }; - A._Required.prototype = {}; - A.JsLinkedHashMap.prototype = { - get$length(_) { - return this.__js_helper$_length; + A._ControllerSubscription.prototype = { + _onCancel$0() { + return this._controller._recordCancel$1(this); }, - get$isEmpty(_) { - return this.__js_helper$_length === 0; + _onPause$0() { + var t1 = this._controller, + t2 = A._instanceType(t1); + t2._eval$1("StreamSubscription<1>")._as(this); + if ((t1._state & 8) !== 0) + t2._eval$1("_StreamControllerAddStreamState<1>")._as(t1._varData).pause$0(); + A._runGuarded(t1.onPause); }, - get$keys(_) { - return new A.LinkedHashMapKeyIterable(this, A._instanceType(this)._eval$1("LinkedHashMapKeyIterable<1>")); + _onResume$0() { + var t1 = this._controller, + t2 = A._instanceType(t1); + t2._eval$1("StreamSubscription<1>")._as(this); + if ((t1._state & 8) !== 0) + t2._eval$1("_StreamControllerAddStreamState<1>")._as(t1._varData).resume$0(); + A._runGuarded(t1.onResume); + } + }; + A._StreamSinkWrapper.prototype = { + add$1(_, data) { + this._async$_target.add$1(0, this.$ti._precomputed1._as(data)); }, - containsKey$1(_, key) { - var strings, nums; - if (typeof key == "string") { - strings = this._strings; - if (strings == null) - return false; - return strings[key] != null; - } else if (typeof key == "number" && (key & 0x3fffffff) === key) { - nums = this._nums; - if (nums == null) - return false; - return nums[key] != null; - } else - return this.internalContainsKey$1(key); + $isStreamSink: 1 + }; + A._BufferingStreamSubscription.prototype = { + _setPendingEvents$1(pendingEvents) { + var _this = this; + A._instanceType(_this)._eval$1("_PendingEvents<_BufferingStreamSubscription.T>?")._as(pendingEvents); + if (pendingEvents == null) + return; + _this.set$_pending(pendingEvents); + if (pendingEvents.lastPendingEvent != null) { + _this._state = (_this._state | 128) >>> 0; + pendingEvents.schedule$1(_this); + } }, - internalContainsKey$1(key) { - var rest = this.__js_helper$_rest; - if (rest == null) - return false; - return this.internalFindBucketIndex$2(rest[this.internalComputeHashCode$1(key)], key) >= 0; + onData$1(handleData) { + var t1 = A._instanceType(this); + this.set$_async$_onData(A._BufferingStreamSubscription__registerDataHandler(this._zone, t1._eval$1("~(_BufferingStreamSubscription.T)?")._as(handleData), t1._eval$1("_BufferingStreamSubscription.T"))); }, - addAll$1(_, other) { - A._instanceType(this)._eval$1("Map<1,2>")._as(other).forEach$1(0, new A.JsLinkedHashMap_addAll_closure(this)); + pause$0() { + var t2, t3, _this = this, + t1 = _this._state; + if ((t1 & 8) !== 0) + return; + t2 = (t1 + 256 | 4) >>> 0; + _this._state = t2; + if (t1 < 256) { + t3 = _this._pending; + if (t3 != null) + if (t3._state === 1) + t3._state = 3; + } + if ((t1 & 4) === 0 && (t2 & 64) === 0) + _this._guardCallback$1(_this.get$_onPause()); }, - $index(_, key) { - var strings, cell, t1, nums, _null = null; - if (typeof key == "string") { - strings = this._strings; - if (strings == null) - return _null; - cell = strings[key]; - t1 = cell == null ? _null : cell.hashMapCellValue; - return t1; - } else if (typeof key == "number" && (key & 0x3fffffff) === key) { - nums = this._nums; - if (nums == null) - return _null; - cell = nums[key]; - t1 = cell == null ? _null : cell.hashMapCellValue; - return t1; - } else - return this.internalGet$1(key); + resume$0() { + var _this = this, + t1 = _this._state; + if ((t1 & 8) !== 0) + return; + if (t1 >= 256) { + t1 = _this._state = t1 - 256; + if (t1 < 256) + if ((t1 & 128) !== 0 && _this._pending.lastPendingEvent != null) + _this._pending.schedule$1(_this); + else { + t1 = (t1 & 4294967291) >>> 0; + _this._state = t1; + if ((t1 & 64) === 0) + _this._guardCallback$1(_this.get$_onResume()); + } + } }, - internalGet$1(key) { - var bucket, index, - rest = this.__js_helper$_rest; - if (rest == null) - return null; - bucket = rest[this.internalComputeHashCode$1(key)]; - index = this.internalFindBucketIndex$2(bucket, key); - if (index < 0) - return null; - return bucket[index].hashMapCellValue; + cancel$0() { + var _this = this, + t1 = (_this._state & 4294967279) >>> 0; + _this._state = t1; + if ((t1 & 8) === 0) + _this._cancel$0(); + t1 = _this._cancelFuture; + return t1 == null ? $.$get$Future__nullFuture() : t1; }, - $indexSet(_, key, value) { - var strings, nums, _this = this, - t1 = A._instanceType(_this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - if (typeof key == "string") { - strings = _this._strings; - _this._addHashTableEntry$3(strings == null ? _this._strings = _this._newHashTable$0() : strings, key, value); - } else if (typeof key == "number" && (key & 0x3fffffff) === key) { - nums = _this._nums; - _this._addHashTableEntry$3(nums == null ? _this._nums = _this._newHashTable$0() : nums, key, value); - } else - _this.internalSet$2(key, value); + asFuture$1$1(futureValue, $E) { + var result, _this = this, t1 = {}; + t1.resultValue = null; + if (!$E._is(null)) + throw A.wrapException(A.ArgumentError$notNull("futureValue")); + $E._as(futureValue); + t1.resultValue = futureValue; + result = new A._Future($.Zone__current, $E._eval$1("_Future<0>")); + _this.set$_onDone(new A._BufferingStreamSubscription_asFuture_closure(t1, result)); + _this._state = (_this._state | 32) >>> 0; + _this._onError = new A._BufferingStreamSubscription_asFuture_closure0(_this, result); + return result; }, - internalSet$2(key, value) { - var rest, hash, bucket, index, _this = this, - t1 = A._instanceType(_this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - rest = _this.__js_helper$_rest; - if (rest == null) - rest = _this.__js_helper$_rest = _this._newHashTable$0(); - hash = _this.internalComputeHashCode$1(key); - bucket = rest[hash]; - if (bucket == null) - rest[hash] = [_this._newLinkedCell$2(key, value)]; - else { - index = _this.internalFindBucketIndex$2(bucket, key); - if (index >= 0) - bucket[index].hashMapCellValue = value; - else - bucket.push(_this._newLinkedCell$2(key, value)); + _cancel$0() { + var t2, _this = this, + t1 = _this._state = (_this._state | 8) >>> 0; + if ((t1 & 128) !== 0) { + t2 = _this._pending; + if (t2._state === 1) + t2._state = 3; } + if ((t1 & 64) === 0) + _this.set$_pending(null); + _this._cancelFuture = _this._onCancel$0(); }, - putIfAbsent$2(_, key, ifAbsent) { - var t2, value, _this = this, + _add$1(data) { + var t2, _this = this, t1 = A._instanceType(_this); - t1._precomputed1._as(key); - t1._eval$1("2()")._as(ifAbsent); - if (_this.containsKey$1(0, key)) { - t2 = _this.$index(0, key); - return t2 == null ? t1._rest[1]._as(t2) : t2; - } - value = ifAbsent.call$0(); - _this.$indexSet(0, key, value); - return value; - }, - remove$1(_, key) { - var _this = this; - if (typeof key == "string") - return _this._removeHashTableEntry$2(_this._strings, key); - else if (typeof key == "number" && (key & 0x3fffffff) === key) - return _this._removeHashTableEntry$2(_this._nums, key); + t1._eval$1("_BufferingStreamSubscription.T")._as(data); + t2 = _this._state; + if ((t2 & 8) !== 0) + return; + if (t2 < 64) + _this._sendData$1(data); else - return _this.internalRemove$1(key); + _this._addPending$1(new A._DelayedData(data, t1._eval$1("_DelayedData<_BufferingStreamSubscription.T>"))); }, - internalRemove$1(key) { - var hash, bucket, index, cell, _this = this, - rest = _this.__js_helper$_rest; - if (rest == null) - return null; - hash = _this.internalComputeHashCode$1(key); - bucket = rest[hash]; - index = _this.internalFindBucketIndex$2(bucket, key); - if (index < 0) - return null; - cell = bucket.splice(index, 1)[0]; - _this._unlinkCell$1(cell); - if (bucket.length === 0) - delete rest[hash]; - return cell.hashMapCellValue; - }, - forEach$1(_, action) { - var cell, modifications, _this = this; - A._instanceType(_this)._eval$1("~(1,2)")._as(action); - cell = _this._first; - modifications = _this._modifications; - for (; cell != null;) { - action.call$2(cell.hashMapCellKey, cell.hashMapCellValue); - if (modifications !== _this._modifications) - throw A.wrapException(A.ConcurrentModificationError$(_this)); - cell = cell._next; - } - }, - _addHashTableEntry$3(table, key, value) { - var cell, - t1 = A._instanceType(this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - cell = table[key]; - if (cell == null) - table[key] = this._newLinkedCell$2(key, value); + _addError$2(error, stackTrace) { + var t1 = this._state; + if ((t1 & 8) !== 0) + return; + if (t1 < 64) + this._sendError$2(error, stackTrace); else - cell.hashMapCellValue = value; - }, - _removeHashTableEntry$2(table, key) { - var cell; - if (table == null) - return null; - cell = table[key]; - if (cell == null) - return null; - this._unlinkCell$1(cell); - delete table[key]; - return cell.hashMapCellValue; - }, - _modified$0() { - this._modifications = this._modifications + 1 & 1073741823; - }, - _newLinkedCell$2(key, value) { - var _this = this, - t1 = A._instanceType(_this), - cell = new A.LinkedHashMapCell(t1._precomputed1._as(key), t1._rest[1]._as(value)); - if (_this._first == null) - _this._first = _this._last = cell; - else { - t1 = _this._last; - t1.toString; - cell._previous = t1; - _this._last = t1._next = cell; - } - ++_this.__js_helper$_length; - _this._modified$0(); - return cell; + this._addPending$1(new A._DelayedError(error, stackTrace)); }, - _unlinkCell$1(cell) { + _close$0() { var _this = this, - previous = cell._previous, - next = cell._next; - if (previous == null) - _this._first = next; - else - previous._next = next; - if (next == null) - _this._last = previous; + t1 = _this._state; + if ((t1 & 8) !== 0) + return; + t1 = (t1 | 2) >>> 0; + _this._state = t1; + if (t1 < 64) + _this._sendDone$0(); else - next._previous = previous; - --_this.__js_helper$_length; - _this._modified$0(); + _this._addPending$1(B.C__DelayedDone); }, - internalComputeHashCode$1(key) { - return J.get$hashCode$(key) & 1073741823; + _onPause$0() { }, - internalFindBucketIndex$2(bucket, key) { - var $length, i; - if (bucket == null) - return -1; - $length = bucket.length; - for (i = 0; i < $length; ++i) - if (J.$eq$(bucket[i].hashMapCellKey, key)) - return i; - return -1; + _onResume$0() { }, - toString$0(_) { - return A.MapBase_mapToString(this); + _onCancel$0() { + return null; }, - _newHashTable$0() { - var table = Object.create(null); - table[""] = table; - delete table[""]; - return table; - } - }; - A.JsLinkedHashMap_addAll_closure.prototype = { - call$2(key, value) { - var t1 = this.$this, - t2 = A._instanceType(t1); - t1.$indexSet(0, t2._precomputed1._as(key), t2._rest[1]._as(value)); + _addPending$1($event) { + var t1, _this = this, + pending = _this._pending; + if (pending == null) { + pending = new A._PendingEvents(A._instanceType(_this)._eval$1("_PendingEvents<_BufferingStreamSubscription.T>")); + _this.set$_pending(pending); + } + pending.add$1(0, $event); + t1 = _this._state; + if ((t1 & 128) === 0) { + t1 = (t1 | 128) >>> 0; + _this._state = t1; + if (t1 < 256) + pending.schedule$1(_this); + } }, - $signature() { - return A._instanceType(this.$this)._eval$1("~(1,2)"); - } - }; - A.LinkedHashMapCell.prototype = {}; - A.LinkedHashMapKeyIterable.prototype = { - get$length(_) { - return this._map.__js_helper$_length; + _sendData$1(data) { + var t2, _this = this, + t1 = A._instanceType(_this)._eval$1("_BufferingStreamSubscription.T"); + t1._as(data); + t2 = _this._state; + _this._state = (t2 | 64) >>> 0; + _this._zone.runUnaryGuarded$1$2(_this._async$_onData, data, t1); + _this._state = (_this._state & 4294967231) >>> 0; + _this._checkState$1((t2 & 4) !== 0); }, - get$isEmpty(_) { - return this._map.__js_helper$_length === 0; + _sendError$2(error, stackTrace) { + var cancelFuture, _this = this, + t1 = _this._state, + t2 = new A._BufferingStreamSubscription__sendError_sendError(_this, error, stackTrace); + if ((t1 & 1) !== 0) { + _this._state = (t1 | 16) >>> 0; + _this._cancel$0(); + cancelFuture = _this._cancelFuture; + if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture()) + cancelFuture.whenComplete$1(t2); + else + t2.call$0(); + } else { + t2.call$0(); + _this._checkState$1((t1 & 4) !== 0); + } }, - get$iterator(_) { - var t1 = this._map, - t2 = new A.LinkedHashMapKeyIterator(t1, t1._modifications, this.$ti._eval$1("LinkedHashMapKeyIterator<1>")); - t2._cell = t1._first; - return t2; + _sendDone$0() { + var cancelFuture, _this = this, + t1 = new A._BufferingStreamSubscription__sendDone_sendDone(_this); + _this._cancel$0(); + _this._state = (_this._state | 16) >>> 0; + cancelFuture = _this._cancelFuture; + if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture()) + cancelFuture.whenComplete$1(t1); + else + t1.call$0(); }, - contains$1(_, element) { - return this._map.containsKey$1(0, element); - } - }; - A.LinkedHashMapKeyIterator.prototype = { - get$current(_) { - return this.__js_helper$_current; + _guardCallback$1(callback) { + var t1, _this = this; + type$.void_Function._as(callback); + t1 = _this._state; + _this._state = (t1 | 64) >>> 0; + callback.call$0(); + _this._state = (_this._state & 4294967231) >>> 0; + _this._checkState$1((t1 & 4) !== 0); }, - moveNext$0() { - var cell, _this = this, - t1 = _this._map; - if (_this._modifications !== t1._modifications) - throw A.wrapException(A.ConcurrentModificationError$(t1)); - cell = _this._cell; - if (cell == null) { - _this.set$__js_helper$_current(null); - return false; - } else { - _this.set$__js_helper$_current(cell.hashMapCellKey); - _this._cell = cell._next; - return true; + _checkState$1(wasInputPaused) { + var t2, isInputPaused, _this = this, + t1 = _this._state; + if ((t1 & 128) !== 0 && _this._pending.lastPendingEvent == null) { + t1 = _this._state = (t1 & 4294967167) >>> 0; + t2 = false; + if ((t1 & 4) !== 0) + if (t1 < 256) { + t2 = _this._pending; + t2 = t2 == null ? null : t2.lastPendingEvent == null; + t2 = t2 !== false; + } + if (t2) { + t1 = (t1 & 4294967291) >>> 0; + _this._state = t1; + } + } + for (; true; wasInputPaused = isInputPaused) { + if ((t1 & 8) !== 0) { + _this.set$_pending(null); + return; + } + isInputPaused = (t1 & 4) !== 0; + if (wasInputPaused === isInputPaused) + break; + _this._state = (t1 ^ 64) >>> 0; + if (isInputPaused) + _this._onPause$0(); + else + _this._onResume$0(); + t1 = (_this._state & 4294967231) >>> 0; + _this._state = t1; } + if ((t1 & 128) !== 0 && t1 < 256) + _this._pending.schedule$1(_this); }, - set$__js_helper$_current(_current) { - this.__js_helper$_current = this.$ti._eval$1("1?")._as(_current); + set$_async$_onData(_onData) { + this._async$_onData = A._instanceType(this)._eval$1("~(_BufferingStreamSubscription.T)")._as(_onData); }, - $isIterator: 1 - }; - A.initHooks_closure.prototype = { - call$1(o) { - return this.getTag(o); + set$_onDone(_onDone) { + this._onDone = type$.void_Function._as(_onDone); }, - $signature: 1 - }; - A.initHooks_closure0.prototype = { - call$2(o, tag) { - return this.getUnknownTag(o, tag); + set$_pending(_pending) { + this._pending = A._instanceType(this)._eval$1("_PendingEvents<_BufferingStreamSubscription.T>?")._as(_pending); }, - $signature: 53 + $isStreamSubscription: 1, + $is_EventSink: 1, + $is_EventDispatch: 1 }; - A.initHooks_closure1.prototype = { - call$1(tag) { - return this.prototypeForTag(A._asString(tag)); + A._BufferingStreamSubscription_asFuture_closure.prototype = { + call$0() { + this.result._complete$1(this._box_0.resultValue); }, - $signature: 52 + $signature: 0 }; - A._Record.prototype = {}; - A.JSSyntaxRegExp.prototype = { - toString$0(_) { - return "RegExp/" + this.pattern + "/" + this._nativeRegExp.flags; + A._BufferingStreamSubscription_asFuture_closure0.prototype = { + call$2(error, stackTrace) { + var cancelFuture, t1; + type$.Object._as(error); + type$.StackTrace._as(stackTrace); + cancelFuture = this.$this.cancel$0(); + t1 = this.result; + if (cancelFuture !== $.$get$Future__nullFuture()) + cancelFuture.whenComplete$1(new A._BufferingStreamSubscription_asFuture__closure(t1, error, stackTrace)); + else + t1._completeError$2(error, stackTrace); }, - get$_nativeGlobalVersion() { - var _this = this, - t1 = _this._nativeGlobalRegExp; - if (t1 != null) - return t1; - t1 = _this._nativeRegExp; - return _this._nativeGlobalRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern, t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true); + $signature: 5 + }; + A._BufferingStreamSubscription_asFuture__closure.prototype = { + call$0() { + this.result._completeError$2(this.error, this.stackTrace); }, - get$_nativeAnchoredVersion() { - var _this = this, - t1 = _this._nativeAnchoredRegExp; - if (t1 != null) - return t1; - t1 = _this._nativeRegExp; - return _this._nativeAnchoredRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern + "|()", t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true); + $signature: 2 + }; + A._BufferingStreamSubscription__sendError_sendError.prototype = { + call$0() { + var onError, t3, t4, + t1 = this.$this, + t2 = t1._state; + if ((t2 & 8) !== 0 && (t2 & 16) === 0) + return; + t1._state = (t2 | 64) >>> 0; + onError = t1._onError; + t2 = this.error; + t3 = type$.Object; + t4 = t1._zone; + if (type$.void_Function_Object_StackTrace._is(onError)) + t4.runBinaryGuarded$2$3(onError, t2, this.stackTrace, t3, type$.StackTrace); + else + t4.runUnaryGuarded$1$2(type$.void_Function_Object._as(onError), t2, t3); + t1._state = (t1._state & 4294967231) >>> 0; }, - firstMatch$1(string) { - var m = this._nativeRegExp.exec(string); - if (m == null) - return null; - return new A._MatchImplementation(m); + $signature: 0 + }; + A._BufferingStreamSubscription__sendDone_sendDone.prototype = { + call$0() { + var t1 = this.$this, + t2 = t1._state; + if ((t2 & 16) === 0) + return; + t1._state = (t2 | 74) >>> 0; + t1._zone.runGuarded$1(t1._onDone); + t1._state = (t1._state & 4294967231) >>> 0; }, - allMatches$2(_, string, start) { - var t1 = string.length; - if (start > t1) - throw A.wrapException(A.RangeError$range(start, 0, t1, null, null)); - return new A._AllMatchesIterable(this, string, start); + $signature: 0 + }; + A._StreamImpl.prototype = { + listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError) { + var t1 = this.$ti; + t1._eval$1("~(1)?")._as(onData); + type$.nullable_void_Function._as(onDone); + return this._controller._subscribe$4(t1._eval$1("~(1)?")._as(onData), onError, onDone, cancelOnError === true); }, - allMatches$1(_, string) { - return this.allMatches$2(0, string, 0); + listen$1(onData) { + return this.listen$4$cancelOnError$onDone$onError(onData, null, null, null); }, - _execGlobal$2(string, start) { - var match, - regexp = this.get$_nativeGlobalVersion(); - if (regexp == null) - regexp = type$.Object._as(regexp); - regexp.lastIndex = start; - match = regexp.exec(string); - if (match == null) - return null; - return new A._MatchImplementation(match); + listen$2$onError(onData, onError) { + return this.listen$4$cancelOnError$onDone$onError(onData, null, null, onError); }, - _execAnchored$2(string, start) { - var match, - regexp = this.get$_nativeAnchoredVersion(); - if (regexp == null) - regexp = type$.Object._as(regexp); - regexp.lastIndex = start; - match = regexp.exec(string); - if (match == null) - return null; - if (0 >= match.length) - return A.ioore(match, -1); - if (match.pop() != null) - return null; - return new A._MatchImplementation(match); + listen$3$onDone$onError(onData, onDone, onError) { + return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError); }, - matchAsPrefix$2(_, string, start) { - if (start < 0 || start > string.length) - throw A.wrapException(A.RangeError$range(start, 0, string.length, null, null)); - return this._execAnchored$2(string, start); + listen$2$cancelOnError(onData, cancelOnError) { + return this.listen$4$cancelOnError$onDone$onError(onData, cancelOnError, null, null); }, - $isPattern: 1, - $isRegExp: 1 + listen$2$onDone(onData, onDone) { + return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, null); + } }; - A._MatchImplementation.prototype = { - get$end(_) { - var t1 = this._match; - return t1.index + t1[0].length; + A._DelayedEvent.prototype = { + set$next(next) { + this.next = type$.nullable__DelayedEvent_dynamic._as(next); }, - $isMatch: 1, - $isRegExpMatch: 1 + get$next() { + return this.next; + } }; - A._AllMatchesIterable.prototype = { - get$iterator(_) { - return new A._AllMatchesIterator(this._re, this._string, this.__js_helper$_start); + A._DelayedData.prototype = { + perform$1(dispatch) { + this.$ti._eval$1("_EventDispatch<1>")._as(dispatch)._sendData$1(this.value); } }; - A._AllMatchesIterator.prototype = { - get$current(_) { - var t1 = this.__js_helper$_current; - return t1 == null ? type$.RegExpMatch._as(t1) : t1; + A._DelayedError.prototype = { + perform$1(dispatch) { + dispatch._sendError$2(this.error, this.stackTrace); + } + }; + A._DelayedDone.prototype = { + perform$1(dispatch) { + dispatch._sendDone$0(); }, - moveNext$0() { - var t1, t2, t3, match, nextIndex, _this = this, - string = _this._string; - if (string == null) - return false; - t1 = _this._nextIndex; - t2 = string.length; - if (t1 <= t2) { - t3 = _this._regExp; - match = t3._execGlobal$2(string, t1); - if (match != null) { - _this.__js_helper$_current = match; - nextIndex = match.get$end(0); - if (match._match.index === nextIndex) { - if (t3._nativeRegExp.unicode) { - t1 = _this._nextIndex; - t3 = t1 + 1; - if (t3 < t2) { - if (!(t1 >= 0 && t1 < t2)) - return A.ioore(string, t1); - t1 = string.charCodeAt(t1); - if (t1 >= 55296 && t1 <= 56319) { - if (!(t3 >= 0)) - return A.ioore(string, t3); - t1 = string.charCodeAt(t3); - t1 = t1 >= 56320 && t1 <= 57343; - } else - t1 = false; - } else - t1 = false; - } else - t1 = false; - nextIndex = (t1 ? nextIndex + 1 : nextIndex) + 1; - } - _this._nextIndex = nextIndex; - return true; - } - } - _this._string = _this.__js_helper$_current = null; - return false; + get$next() { + return null; }, - $isIterator: 1 - }; - A.StringMatch.prototype = {$isMatch: 1}; - A._StringAllMatchesIterable.prototype = { - get$iterator(_) { - return new A._StringAllMatchesIterator(this._input, this._pattern, this.__js_helper$_index); + set$next(_) { + throw A.wrapException(A.StateError$("No events after a done.")); }, - get$first(_) { - var t1 = this._pattern, - index = this._input.indexOf(t1, this.__js_helper$_index); - if (index >= 0) - return new A.StringMatch(index, t1); - throw A.wrapException(A.IterableElementError_noElement()); - } + $is_DelayedEvent: 1 }; - A._StringAllMatchesIterator.prototype = { - moveNext$0() { - var index, end, _this = this, - t1 = _this.__js_helper$_index, - t2 = _this._pattern, - t3 = t2.length, - t4 = _this._input, - t5 = t4.length; - if (t1 + t3 > t5) { - _this.__js_helper$_current = null; - return false; - } - index = t4.indexOf(t2, t1); - if (index < 0) { - _this.__js_helper$_index = t5 + 1; - _this.__js_helper$_current = null; - return false; + A._PendingEvents.prototype = { + schedule$1(dispatch) { + var t1, _this = this; + _this.$ti._eval$1("_EventDispatch<1>")._as(dispatch); + t1 = _this._state; + if (t1 === 1) + return; + if (t1 >= 1) { + _this._state = 1; + return; } - end = index + t3; - _this.__js_helper$_current = new A.StringMatch(index, t2); - _this.__js_helper$_index = end === _this.__js_helper$_index ? end + 1 : end; - return true; - }, - get$current(_) { - var t1 = this.__js_helper$_current; - t1.toString; - return t1; + A.scheduleMicrotask(new A._PendingEvents_schedule_closure(_this, dispatch)); + _this._state = 1; }, - $isIterator: 1 + add$1(_, $event) { + var _this = this, + lastEvent = _this.lastPendingEvent; + if (lastEvent == null) + _this.firstPendingEvent = _this.lastPendingEvent = $event; + else { + lastEvent.set$next($event); + _this.lastPendingEvent = $event; + } + } }; - A._Cell.prototype = { - readLocal$1$0() { - var t1 = this.__late_helper$_value; - if (t1 === this) - A.throwExpression(new A.LateError("Local '" + this.__late_helper$_name + "' has not been initialized.")); - return t1; + A._PendingEvents_schedule_closure.prototype = { + call$0() { + var t2, $event, nextEvent, + t1 = this.$this, + oldState = t1._state; + t1._state = 0; + if (oldState === 3) + return; + t2 = t1.$ti._eval$1("_EventDispatch<1>")._as(this.dispatch); + $event = t1.firstPendingEvent; + nextEvent = $event.get$next(); + t1.firstPendingEvent = nextEvent; + if (nextEvent == null) + t1.lastPendingEvent = null; + $event.perform$1(t2); }, - readLocal$0() { - return this.readLocal$1$0(type$.dynamic); + $signature: 0 + }; + A._StreamIterator.prototype = {}; + A._cancelAndValue_closure.prototype = { + call$0() { + return this.future._complete$1(this.value); }, - _readLocal$0() { - var t1 = this.__late_helper$_value; - if (t1 === this) - throw A.wrapException(new A.LateError("Local '" + this.__late_helper$_name + "' has not been initialized.")); + $signature: 0 + }; + A._ForwardingStream.prototype = { + listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError) { + var t2, t3, t4, t5, t6, t7, + t1 = this.$ti; + t1._eval$1("~(2)?")._as(onData); + type$.nullable_void_Function._as(onDone); + t2 = $.Zone__current; + t3 = cancelOnError === true ? 1 : 0; + t4 = onError != null ? 32 : 0; + t5 = A._BufferingStreamSubscription__registerDataHandler(t2, onData, t1._rest[1]); + t6 = A._BufferingStreamSubscription__registerErrorHandler(t2, onError); + t7 = onDone == null ? A.async___nullDoneHandler$closure() : onDone; + t1 = new A._ForwardingStreamSubscription(this, t5, t6, t2.registerCallback$1$1(t7, type$.void), t2, t3 | t4, t1._eval$1("_ForwardingStreamSubscription<1,2>")); + t1.set$_subscription(this._source.listen$3$onDone$onError(t1.get$_handleData(), t1.get$_handleDone(), t1.get$_handleError())); return t1; }, - _readField$0() { - var t1 = this.__late_helper$_value; - if (t1 === this) - throw A.wrapException(A.LateError$fieldNI(this.__late_helper$_name)); - return t1; + listen$2$onError(onData, onError) { + return this.listen$4$cancelOnError$onDone$onError(onData, null, null, onError); + }, + listen$3$onDone$onError(onData, onDone, onError) { + return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError); } }; - A.NativeByteBuffer.prototype = { - get$runtimeType(receiver) { - return B.Type_ByteBuffer_EOZ; + A._ForwardingStreamSubscription.prototype = { + _add$1(data) { + this.$ti._rest[1]._as(data); + if ((this._state & 2) !== 0) + return; + this.super$_BufferingStreamSubscription$_add(data); }, - $isTrustedGetRuntimeType: 1, - $isNativeByteBuffer: 1, - $isByteBuffer: 1 - }; - A.NativeTypedData.prototype = {$isNativeTypedData: 1, $isTypedData: 1}; - A.NativeByteData.prototype = { - get$runtimeType(receiver) { - return B.Type_ByteData_mF8; + _addError$2(error, stackTrace) { + if ((this._state & 2) !== 0) + return; + this.super$_BufferingStreamSubscription$_addError(error, stackTrace); }, - $isTrustedGetRuntimeType: 1, - $isByteData: 1 - }; - A.NativeTypedArray.prototype = { - get$length(receiver) { - return receiver.length; + _onPause$0() { + var t1 = this._subscription; + if (t1 != null) + t1.pause$0(); }, - $isJSIndexable: 1, - $isJavaScriptIndexingBehavior: 1 - }; - A.NativeTypedArrayOfDouble.prototype = { - $index(receiver, index) { - A._checkValidIndex(index, receiver, receiver.length); - return receiver[index]; + _onResume$0() { + var t1 = this._subscription; + if (t1 != null) + t1.resume$0(); }, - $indexSet(receiver, index, value) { - A._asDouble(value); - A._checkValidIndex(index, receiver, receiver.length); - receiver[index] = value; + _onCancel$0() { + var subscription = this._subscription; + if (subscription != null) { + this.set$_subscription(null); + return subscription.cancel$0(); + } + return null; }, - $isEfficientLengthIterable: 1, - $isIterable: 1, - $isList: 1 - }; - A.NativeTypedArrayOfInt.prototype = { - $indexSet(receiver, index, value) { - A._asInt(value); - A._checkValidIndex(index, receiver, receiver.length); - receiver[index] = value; + _handleData$1(data) { + this._stream._handleData$2(this.$ti._precomputed1._as(data), this); }, - $isEfficientLengthIterable: 1, - $isIterable: 1, - $isList: 1 - }; - A.NativeFloat32List.prototype = { - get$runtimeType(receiver) { - return B.Type_Float32List_Ymk; + _handleError$2(error, stackTrace) { + var t1; + type$.StackTrace._as(stackTrace); + t1 = error == null ? type$.Object._as(error) : error; + this._stream.$ti._eval$1("_EventSink<2>")._as(this)._addError$2(t1, stackTrace); }, - sublist$2(receiver, start, end) { - return new Float32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); + _handleDone$0() { + this._stream.$ti._eval$1("_EventSink<2>")._as(this)._close$0(); }, - sublist$1(receiver, start) { - return this.sublist$2(receiver, start, null); + set$_subscription(_subscription) { + this._subscription = this.$ti._eval$1("StreamSubscription<1>?")._as(_subscription); + } + }; + A._MapStream.prototype = { + _handleData$2(inputEvent, sink) { + var outputEvent, e, s, exception, error, stackTrace, replacement, + t1 = this.$ti; + t1._precomputed1._as(inputEvent); + t1._eval$1("_EventSink<2>")._as(sink); + outputEvent = null; + try { + outputEvent = this._transform.call$1(inputEvent); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + error = e; + stackTrace = s; + replacement = $.Zone__current.errorCallback$2(error, stackTrace); + if (replacement != null) { + error = replacement.error; + stackTrace = replacement.stackTrace; + } + sink._addError$2(error, stackTrace); + return; + } + sink._add$1(outputEvent); + } + }; + A._ZoneFunction.prototype = {}; + A._ZoneSpecification.prototype = {$isZoneSpecification: 1}; + A._ZoneDelegate.prototype = {$isZoneDelegate: 1}; + A._Zone.prototype = { + _processUncaughtError$3(zone, error, stackTrace) { + var implZone, handler, parentDelegate, parentZone, currentZone, e, s, implementation, t1, exception; + type$.StackTrace._as(stackTrace); + implementation = this.get$_handleUncaughtError(); + implZone = implementation.zone; + if (implZone === B.C__RootZone) { + A._rootHandleError(error, stackTrace); + return; + } + handler = implementation.$function; + parentDelegate = implZone.get$_parentDelegate(); + t1 = implZone.get$parent(); + t1.toString; + parentZone = t1; + currentZone = $.Zone__current; + try { + $.Zone__current = parentZone; + handler.call$5(implZone, parentDelegate, zone, error, stackTrace); + $.Zone__current = currentZone; + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + $.Zone__current = currentZone; + t1 = error === e ? stackTrace : s; + parentZone._processUncaughtError$3(implZone, e, t1); + } }, - $isTrustedGetRuntimeType: 1, - $isFloat32List: 1 + $isZone: 1 }; - A.NativeFloat64List.prototype = { - get$runtimeType(receiver) { - return B.Type_Float64List_Ymk; + A._CustomZone.prototype = { + get$_delegate() { + var t1 = this._delegateCache; + return t1 == null ? this._delegateCache = new A._ZoneDelegate(this) : t1; }, - sublist$2(receiver, start, end) { - return new Float64Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); + get$_parentDelegate() { + return this.parent.get$_delegate(); }, - sublist$1(receiver, start) { - return this.sublist$2(receiver, start, null); + get$errorZone() { + return this._handleUncaughtError.zone; }, - $isTrustedGetRuntimeType: 1, - $isFloat64List: 1 - }; - A.NativeInt16List.prototype = { - get$runtimeType(receiver) { - return B.Type_Int16List_cot; + runGuarded$1(f) { + var e, s, exception; + type$.void_Function._as(f); + try { + this.run$1$1(f, type$.void); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + this._processUncaughtError$3(this, type$.Object._as(e), type$.StackTrace._as(s)); + } }, - $index(receiver, index) { - A._checkValidIndex(index, receiver, receiver.length); - return receiver[index]; + runUnaryGuarded$1$2(f, arg, $T) { + var e, s, exception; + $T._eval$1("~(0)")._as(f); + $T._as(arg); + try { + this.runUnary$2$2(f, arg, type$.void, $T); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + this._processUncaughtError$3(this, type$.Object._as(e), type$.StackTrace._as(s)); + } }, - sublist$2(receiver, start, end) { - return new Int16Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); + runBinaryGuarded$2$3(f, arg1, arg2, T1, T2) { + var e, s, exception; + T1._eval$1("@<0>")._bind$1(T2)._eval$1("~(1,2)")._as(f); + T1._as(arg1); + T2._as(arg2); + try { + this.runBinary$3$3(f, arg1, arg2, type$.void, T1, T2); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + this._processUncaughtError$3(this, type$.Object._as(e), type$.StackTrace._as(s)); + } }, - sublist$1(receiver, start) { - return this.sublist$2(receiver, start, null); + bindCallback$1$1(f, $R) { + return new A._CustomZone_bindCallback_closure(this, this.registerCallback$1$1($R._eval$1("0()")._as(f), $R), $R); }, - $isTrustedGetRuntimeType: 1, - $isInt16List: 1 - }; - A.NativeInt32List.prototype = { - get$runtimeType(receiver) { - return B.Type_Int32List_m1p; + bindUnaryCallback$2$1(f, $R, $T) { + return new A._CustomZone_bindUnaryCallback_closure(this, this.registerUnaryCallback$2$1($R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f), $R, $T), $T, $R); }, - $index(receiver, index) { - A._checkValidIndex(index, receiver, receiver.length); - return receiver[index]; + bindCallbackGuarded$1(f) { + return new A._CustomZone_bindCallbackGuarded_closure(this, this.registerCallback$1$1(type$.void_Function._as(f), type$.void)); }, - sublist$2(receiver, start, end) { - return new Int32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); + bindUnaryCallbackGuarded$1$1(f, $T) { + return new A._CustomZone_bindUnaryCallbackGuarded_closure(this, this.registerUnaryCallback$2$1($T._eval$1("~(0)")._as(f), type$.void, $T), $T); }, - sublist$1(receiver, start) { - return this.sublist$2(receiver, start, null); + handleUncaughtError$2(error, stackTrace) { + this._processUncaughtError$3(this, error, type$.StackTrace._as(stackTrace)); }, - $isTrustedGetRuntimeType: 1, - $isInt32List: 1 - }; - A.NativeInt8List.prototype = { - get$runtimeType(receiver) { - return B.Type_Int8List_woc; + fork$2$specification$zoneValues(specification, zoneValues) { + var implementation = this._fork, + t1 = implementation.zone; + return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, specification, zoneValues); }, - $index(receiver, index) { - A._checkValidIndex(index, receiver, receiver.length); - return receiver[index]; + run$1$1(f, $R) { + var implementation, t1; + $R._eval$1("0()")._as(f); + implementation = this._run; + t1 = implementation.zone; + return implementation.$function.call$1$4(t1, t1.get$_parentDelegate(), this, f, $R); }, - sublist$2(receiver, start, end) { - return new Int8Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); + runUnary$2$2(f, arg, $R, $T) { + var implementation, t1; + $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); + $T._as(arg); + implementation = this._runUnary; + t1 = implementation.zone; + return implementation.$function.call$2$5(t1, t1.get$_parentDelegate(), this, f, arg, $R, $T); }, - sublist$1(receiver, start) { - return this.sublist$2(receiver, start, null); + runBinary$3$3(f, arg1, arg2, $R, T1, T2) { + var implementation, t1; + $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); + T1._as(arg1); + T2._as(arg2); + implementation = this._runBinary; + t1 = implementation.zone; + return implementation.$function.call$3$6(t1, t1.get$_parentDelegate(), this, f, arg1, arg2, $R, T1, T2); }, - $isTrustedGetRuntimeType: 1, - $isInt8List: 1 - }; - A.NativeUint16List.prototype = { - get$runtimeType(receiver) { - return B.Type_Uint16List_2mh; + registerCallback$1$1(callback, $R) { + var implementation, t1; + $R._eval$1("0()")._as(callback); + implementation = this._registerCallback; + t1 = implementation.zone; + return implementation.$function.call$1$4(t1, t1.get$_parentDelegate(), this, callback, $R); }, - $index(receiver, index) { - A._checkValidIndex(index, receiver, receiver.length); - return receiver[index]; + registerUnaryCallback$2$1(callback, $R, $T) { + var implementation, t1; + $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(callback); + implementation = this._registerUnaryCallback; + t1 = implementation.zone; + return implementation.$function.call$2$4(t1, t1.get$_parentDelegate(), this, callback, $R, $T); }, - sublist$2(receiver, start, end) { - return new Uint16Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); + registerBinaryCallback$3$1(callback, $R, T1, T2) { + var implementation, t1; + $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(callback); + implementation = this._registerBinaryCallback; + t1 = implementation.zone; + return implementation.$function.call$3$4(t1, t1.get$_parentDelegate(), this, callback, $R, T1, T2); }, - sublist$1(receiver, start) { - return this.sublist$2(receiver, start, null); + errorCallback$2(error, stackTrace) { + var implementation, implementationZone; + type$.nullable_StackTrace._as(stackTrace); + A.checkNotNullable(error, "error", type$.Object); + implementation = this._errorCallback; + implementationZone = implementation.zone; + if (implementationZone === B.C__RootZone) + return null; + return implementation.$function.call$5(implementationZone, implementationZone.get$_parentDelegate(), this, error, stackTrace); }, - $isTrustedGetRuntimeType: 1, - $isUint16List: 1 - }; - A.NativeUint32List.prototype = { - get$runtimeType(receiver) { - return B.Type_Uint32List_2mh; + scheduleMicrotask$1(f) { + var implementation, t1; + type$.void_Function._as(f); + implementation = this._scheduleMicrotask; + t1 = implementation.zone; + return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f); }, - $index(receiver, index) { - A._checkValidIndex(index, receiver, receiver.length); - return receiver[index]; + createTimer$2(duration, f) { + var implementation, t1; + type$.void_Function._as(f); + implementation = this._createTimer; + t1 = implementation.zone; + return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, duration, f); }, - sublist$2(receiver, start, end) { - return new Uint32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); + print$1(line) { + var implementation = this._print, + t1 = implementation.zone; + return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, line); }, - sublist$1(receiver, start) { - return this.sublist$2(receiver, start, null); + set$_handleUncaughtError(_handleUncaughtError) { + this._handleUncaughtError = type$._ZoneFunction_of_void_Function_Zone_ZoneDelegate_Zone_Object_StackTrace._as(_handleUncaughtError); }, - $isTrustedGetRuntimeType: 1, - $isUint32List: 1 - }; - A.NativeUint8ClampedList.prototype = { - get$runtimeType(receiver) { - return B.Type_Uint8ClampedList_9Bb; + get$_run() { + return this._run; }, - get$length(receiver) { - return receiver.length; + get$_runUnary() { + return this._runUnary; }, - $index(receiver, index) { - A._checkValidIndex(index, receiver, receiver.length); - return receiver[index]; + get$_runBinary() { + return this._runBinary; }, - sublist$2(receiver, start, end) { - return new Uint8ClampedArray(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); + get$_registerCallback() { + return this._registerCallback; }, - sublist$1(receiver, start) { - return this.sublist$2(receiver, start, null); + get$_registerUnaryCallback() { + return this._registerUnaryCallback; }, - $isTrustedGetRuntimeType: 1, - $isUint8ClampedList: 1 - }; - A.NativeUint8List.prototype = { - get$runtimeType(receiver) { - return B.Type_Uint8List_CSc; + get$_registerBinaryCallback() { + return this._registerBinaryCallback; }, - get$length(receiver) { - return receiver.length; + get$_errorCallback() { + return this._errorCallback; }, - $index(receiver, index) { - A._checkValidIndex(index, receiver, receiver.length); - return receiver[index]; + get$_scheduleMicrotask() { + return this._scheduleMicrotask; }, - sublist$2(receiver, start, end) { - return new Uint8Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); + get$_createTimer() { + return this._createTimer; }, - sublist$1(receiver, start) { - return this.sublist$2(receiver, start, null); + get$_createPeriodicTimer() { + return this._createPeriodicTimer; }, - $isTrustedGetRuntimeType: 1, - $isNativeUint8List: 1, - $isUint8List: 1 - }; - A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.prototype = {}; - A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {}; - A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {}; - A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {}; - A.Rti.prototype = { - _eval$1(recipe) { - return A._Universe_evalInEnvironment(init.typeUniverse, this, recipe); + get$_print() { + return this._print; }, - _bind$1(typeOrTuple) { - return A._Universe_bind(init.typeUniverse, this, typeOrTuple); + get$_fork() { + return this._fork; + }, + get$_handleUncaughtError() { + return this._handleUncaughtError; + }, + get$parent() { + return this.parent; + }, + get$_map() { + return this._map; } }; - A._FunctionParameters.prototype = {}; - A._Type.prototype = { - toString$0(_) { - return A._rtiToString(this._rti, null); + A._CustomZone_bindCallback_closure.prototype = { + call$0() { + return this.$this.run$1$1(this.registered, this.R); }, - $isType: 1 - }; - A._Error.prototype = { - toString$0(_) { - return this.__rti$_message; + $signature() { + return this.R._eval$1("0()"); } }; - A._TypeError.prototype = {$isTypeError: 1}; - A._AsyncRun__initializeScheduleImmediate_internalCallback.prototype = { - call$1(_) { - var t1 = this._box_0, - f = t1.storedCallback; - t1.storedCallback = null; - f.call$0(); + A._CustomZone_bindUnaryCallback_closure.prototype = { + call$1(arg) { + var _this = this, + t1 = _this.T; + return _this.$this.runUnary$2$2(_this.registered, t1._as(arg), _this.R, t1); }, - $signature: 6 + $signature() { + return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)"); + } }; - A._AsyncRun__initializeScheduleImmediate_closure.prototype = { - call$1(callback) { - var t1, t2; - this._box_0.storedCallback = type$.void_Function._as(callback); - t1 = this.div; - t2 = this.span; - t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2); + A._CustomZone_bindCallbackGuarded_closure.prototype = { + call$0() { + return this.$this.runGuarded$1(this.registered); }, - $signature: 63 + $signature: 0 }; - A._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = { - call$0() { - this.callback.call$0(); + A._CustomZone_bindUnaryCallbackGuarded_closure.prototype = { + call$1(arg) { + var t1 = this.T; + return this.$this.runUnaryGuarded$1$2(this.registered, t1._as(arg), t1); }, - $signature: 4 + $signature() { + return this.T._eval$1("~(0)"); + } }; - A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback.prototype = { + A._rootHandleError_closure.prototype = { call$0() { - this.callback.call$0(); + A.Error_throwWithStackTrace(this.error, this.stackTrace); }, - $signature: 4 + $signature: 0 }; - A._TimerImpl.prototype = { - _TimerImpl$2(milliseconds, callback) { - if (self.setTimeout != null) - this._handle = self.setTimeout(A.convertDartClosureToJS(new A._TimerImpl_internalCallback(this, callback), 0), milliseconds); - else - throw A.wrapException(A.UnsupportedError$("`setTimeout()` not found.")); + A._RootZone.prototype = { + get$_run() { + return B._ZoneFunction__RootZone__rootRun; }, - _TimerImpl$periodic$2(milliseconds, callback) { - if (self.setTimeout != null) - this._handle = self.setInterval(A.convertDartClosureToJS(new A._TimerImpl$periodic_closure(this, milliseconds, Date.now(), callback), 0), milliseconds); - else - throw A.wrapException(A.UnsupportedError$("Periodic timer.")); + get$_runUnary() { + return B._ZoneFunction__RootZone__rootRunUnary; }, - get$isActive() { - return this._handle != null; + get$_runBinary() { + return B._ZoneFunction__RootZone__rootRunBinary; }, - cancel$0(_) { - var t1; - if (self.setTimeout != null) { - t1 = this._handle; - if (t1 == null) - return; - if (this._once) - self.clearTimeout(t1); - else - self.clearInterval(t1); - this._handle = null; - } else - throw A.wrapException(A.UnsupportedError$("Canceling a timer.")); + get$_registerCallback() { + return B._ZoneFunction__RootZone__rootRegisterCallback; }, - $isTimer: 1 - }; - A._TimerImpl_internalCallback.prototype = { - call$0() { - var t1 = this.$this; - t1._handle = null; - t1._tick = 1; - this.callback.call$0(); + get$_registerUnaryCallback() { + return B._ZoneFunction_QOa; }, - $signature: 0 - }; - A._TimerImpl$periodic_closure.prototype = { - call$0() { - var duration, _this = this, - t1 = _this.$this, - tick = t1._tick + 1, - t2 = _this.milliseconds; - if (t2 > 0) { - duration = Date.now() - _this.start; - if (duration > (tick + 1) * t2) - tick = B.JSInt_methods.$tdiv(duration, t2); - } - t1._tick = tick; - _this.callback.call$1(t1); + get$_registerBinaryCallback() { + return B._ZoneFunction_qxw; }, - $signature: 4 - }; - A._AsyncAwaitCompleter.prototype = { - complete$1(_, value) { - var t2, _this = this, - t1 = _this.$ti; - t1._eval$1("1/?")._as(value); - if (value == null) - value = t1._precomputed1._as(value); - if (!_this.isSync) - _this._future._asyncComplete$1(value); - else { - t2 = _this._future; - if (t1._eval$1("Future<1>")._is(value)) - t2._chainFuture$1(value); - else - t2._completeWithValue$1(value); - } + get$_errorCallback() { + return B._ZoneFunction__RootZone__rootErrorCallback; }, - completeError$2(e, st) { - var t1 = this._future; - if (this.isSync) - t1._completeError$2(e, st); - else - t1._asyncCompleteError$2(e, st); + get$_scheduleMicrotask() { + return B._ZoneFunction__RootZone__rootScheduleMicrotask; }, - $isCompleter: 1 - }; - A._awaitOnObject_closure.prototype = { - call$1(result) { - return this.bodyFunction.call$2(0, result); + get$_createTimer() { + return B._ZoneFunction__RootZone__rootCreateTimer; }, - $signature: 7 - }; - A._awaitOnObject_closure0.prototype = { - call$2(error, stackTrace) { - this.bodyFunction.call$2(1, new A.ExceptionAndStackTrace(error, type$.StackTrace._as(stackTrace))); + get$_createPeriodicTimer() { + return B._ZoneFunction_kWM; }, - $signature: 86 - }; - A._wrapJsFunctionForAsync_closure.prototype = { - call$2(errorCode, result) { - this.$protected(A._asInt(errorCode), result); + get$_print() { + return B._ZoneFunction__RootZone__rootPrint; }, - $signature: 43 - }; - A.AsyncError.prototype = { - toString$0(_) { - return A.S(this.error); + get$_fork() { + return B._ZoneFunction__RootZone__rootFork; }, - $isError: 1, - get$stackTrace() { - return this.stackTrace; - } - }; - A.Future_Future$microtask_closure.prototype = { - call$0() { + get$_handleUncaughtError() { + return B._ZoneFunction_NIe; + }, + get$parent() { + return null; + }, + get$_map() { + return $.$get$_RootZone__rootMap(); + }, + get$_delegate() { + var t1 = $._RootZone__rootDelegate; + return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1; + }, + get$_parentDelegate() { + var t1 = $._RootZone__rootDelegate; + return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1; + }, + get$errorZone() { + return this; + }, + runGuarded$1(f) { var e, s, exception; + type$.void_Function._as(f); try { - this.result._complete$1(this.computation.call$0()); + if (B.C__RootZone === $.Zone__current) { + f.call$0(); + return; + } + A._rootRun(null, null, this, f, type$.void); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); - A._completeWithErrorCallback(this.result, e, s); + A._rootHandleError(type$.Object._as(e), type$.StackTrace._as(s)); } }, - $signature: 0 - }; - A.TimeoutException.prototype = {}; - A._Completer.prototype = { - completeError$2(error, stackTrace) { - var replacement; - A.checkNotNullable(error, "error", type$.Object); - if ((this.future._state & 30) !== 0) - throw A.wrapException(A.StateError$("Future already completed")); - replacement = $.Zone__current.errorCallback$2(error, stackTrace); - if (replacement != null) { - error = replacement.error; - stackTrace = replacement.stackTrace; - } else if (stackTrace == null) - stackTrace = A.AsyncError_defaultStackTrace(error); - this._completeError$2(error, stackTrace); + runUnaryGuarded$1$2(f, arg, $T) { + var e, s, exception; + $T._eval$1("~(0)")._as(f); + $T._as(arg); + try { + if (B.C__RootZone === $.Zone__current) { + f.call$1(arg); + return; + } + A._rootRunUnary(null, null, this, f, arg, type$.void, $T); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + A._rootHandleError(type$.Object._as(e), type$.StackTrace._as(s)); + } }, - completeError$1(error) { - return this.completeError$2(error, null); + runBinaryGuarded$2$3(f, arg1, arg2, T1, T2) { + var e, s, exception; + T1._eval$1("@<0>")._bind$1(T2)._eval$1("~(1,2)")._as(f); + T1._as(arg1); + T2._as(arg2); + try { + if (B.C__RootZone === $.Zone__current) { + f.call$2(arg1, arg2); + return; + } + A._rootRunBinary(null, null, this, f, arg1, arg2, type$.void, T1, T2); + } catch (exception) { + e = A.unwrapException(exception); + s = A.getTraceFromException(exception); + A._rootHandleError(type$.Object._as(e), type$.StackTrace._as(s)); + } }, - $isCompleter: 1 - }; - A._AsyncCompleter.prototype = { - complete$1(_, value) { - var t2, - t1 = this.$ti; - t1._eval$1("1/?")._as(value); - t2 = this.future; - if ((t2._state & 30) !== 0) - throw A.wrapException(A.StateError$("Future already completed")); - t2._asyncComplete$1(t1._eval$1("1/")._as(value)); + bindCallback$1$1(f, $R) { + return new A._RootZone_bindCallback_closure(this, $R._eval$1("0()")._as(f), $R); }, - complete$0(_) { - return this.complete$1(0, null); + bindUnaryCallback$2$1(f, $R, $T) { + return new A._RootZone_bindUnaryCallback_closure(this, $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f), $T, $R); }, - _completeError$2(error, stackTrace) { - this.future._asyncCompleteError$2(error, stackTrace); - } - }; - A._SyncCompleter.prototype = { - complete$1(_, value) { - var t2, - t1 = this.$ti; - t1._eval$1("1/?")._as(value); - t2 = this.future; - if ((t2._state & 30) !== 0) - throw A.wrapException(A.StateError$("Future already completed")); - t2._complete$1(t1._eval$1("1/")._as(value)); + bindCallbackGuarded$1(f) { + return new A._RootZone_bindCallbackGuarded_closure(this, type$.void_Function._as(f)); }, - _completeError$2(error, stackTrace) { - this.future._completeError$2(error, stackTrace); - } - }; - A._FutureListener.prototype = { - matchesErrorTest$1(asyncError) { - if ((this.state & 15) !== 6) - return true; - return this.result._zone.runUnary$2$2(type$.bool_Function_Object._as(this.callback), asyncError.error, type$.bool, type$.Object); + bindUnaryCallbackGuarded$1$1(f, $T) { + return new A._RootZone_bindUnaryCallbackGuarded_closure(this, $T._eval$1("~(0)")._as(f), $T); }, - handleError$1(asyncError) { - var exception, _this = this, - errorCallback = _this.errorCallback, - result = null, - t1 = type$.dynamic, - t2 = type$.Object, - t3 = asyncError.error, - t4 = _this.result._zone; - if (type$.dynamic_Function_Object_StackTrace._is(errorCallback)) - result = t4.runBinary$3$3(errorCallback, t3, asyncError.stackTrace, t1, t2, type$.StackTrace); - else - result = t4.runUnary$2$2(type$.dynamic_Function_Object._as(errorCallback), t3, t1, t2); - try { - t1 = _this.$ti._eval$1("2/")._as(result); - return t1; - } catch (exception) { - if (type$.TypeError._is(A.unwrapException(exception))) { - if ((_this.state & 1) !== 0) - throw A.wrapException(A.ArgumentError$("The error handler of Future.then must return a value of the returned future's type", "onError")); - throw A.wrapException(A.ArgumentError$("The error handler of Future.catchError must return a value of the future's type", "onError")); - } else - throw exception; - } - } - }; - A._Future.prototype = { - _setChained$1(source) { - this._state = this._state & 1 | 4; - this._resultOrListeners = source; + handleUncaughtError$2(error, stackTrace) { + A._rootHandleError(error, type$.StackTrace._as(stackTrace)); }, - then$1$2$onError(_, f, onError, $R) { - var currentZone, result, t2, - t1 = this.$ti; - t1._bind$1($R)._eval$1("1/(2)")._as(f); - currentZone = $.Zone__current; - if (currentZone === B.C__RootZone) { - if (onError != null && !type$.dynamic_Function_Object_StackTrace._is(onError) && !type$.dynamic_Function_Object._is(onError)) - throw A.wrapException(A.ArgumentError$value(onError, "onError", string$.Error_)); - } else { - f = currentZone.registerUnaryCallback$2$1(f, $R._eval$1("0/"), t1._precomputed1); - if (onError != null) - onError = A._registerErrorHandler(onError, currentZone); - } - result = new A._Future($.Zone__current, $R._eval$1("_Future<0>")); - t2 = onError == null ? 1 : 3; - this._addListener$1(new A._FutureListener(result, t2, f, onError, t1._eval$1("@<1>")._bind$1($R)._eval$1("_FutureListener<1,2>"))); - return result; + fork$2$specification$zoneValues(specification, zoneValues) { + return A._rootFork(null, null, this, specification, zoneValues); }, - then$1$1(_, f, $R) { - return this.then$1$2$onError(0, f, null, $R); + run$1$1(f, $R) { + $R._eval$1("0()")._as(f); + if ($.Zone__current === B.C__RootZone) + return f.call$0(); + return A._rootRun(null, null, this, f, $R); }, - _thenAwait$1$2(f, onError, $E) { - var result, - t1 = this.$ti; - t1._bind$1($E)._eval$1("1/(2)")._as(f); - result = new A._Future($.Zone__current, $E._eval$1("_Future<0>")); - this._addListener$1(new A._FutureListener(result, 19, f, onError, t1._eval$1("@<1>")._bind$1($E)._eval$1("_FutureListener<1,2>"))); - return result; + runUnary$2$2(f, arg, $R, $T) { + $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); + $T._as(arg); + if ($.Zone__current === B.C__RootZone) + return f.call$1(arg); + return A._rootRunUnary(null, null, this, f, arg, $R, $T); }, - catchError$1(onError) { - var t1 = this.$ti, - t2 = $.Zone__current, - result = new A._Future(t2, t1); - if (t2 !== B.C__RootZone) - onError = A._registerErrorHandler(onError, t2); - this._addListener$1(new A._FutureListener(result, 2, null, onError, t1._eval$1("@<1>")._bind$1(t1._precomputed1)._eval$1("_FutureListener<1,2>"))); - return result; + runBinary$3$3(f, arg1, arg2, $R, T1, T2) { + $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); + T1._as(arg1); + T2._as(arg2); + if ($.Zone__current === B.C__RootZone) + return f.call$2(arg1, arg2); + return A._rootRunBinary(null, null, this, f, arg1, arg2, $R, T1, T2); }, - whenComplete$1(action) { - var t1, t2, result; - type$.dynamic_Function._as(action); - t1 = this.$ti; - t2 = $.Zone__current; - result = new A._Future(t2, t1); - if (t2 !== B.C__RootZone) - action = t2.registerCallback$1$1(action, type$.dynamic); - this._addListener$1(new A._FutureListener(result, 8, action, null, t1._eval$1("@<1>")._bind$1(t1._precomputed1)._eval$1("_FutureListener<1,2>"))); - return result; + registerCallback$1$1(f, $R) { + return $R._eval$1("0()")._as(f); }, - _setErrorObject$1(error) { - this._state = this._state & 1 | 16; - this._resultOrListeners = error; + registerUnaryCallback$2$1(f, $R, $T) { + return $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); }, - _cloneResult$1(source) { - this._state = source._state & 30 | this._state & 1; - this._resultOrListeners = source._resultOrListeners; + registerBinaryCallback$3$1(f, $R, T1, T2) { + return $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); }, - _addListener$1(listener) { - var source, _this = this, - t1 = _this._state; - if (t1 <= 3) { - listener._nextListener = type$.nullable__FutureListener_dynamic_dynamic._as(_this._resultOrListeners); - _this._resultOrListeners = listener; - } else { - if ((t1 & 4) !== 0) { - source = type$._Future_dynamic._as(_this._resultOrListeners); - if ((source._state & 24) === 0) { - source._addListener$1(listener); - return; - } - _this._cloneResult$1(source); - } - _this._zone.scheduleMicrotask$1(new A._Future__addListener_closure(_this, listener)); - } + errorCallback$2(error, stackTrace) { + type$.nullable_StackTrace._as(stackTrace); + return null; }, - _prependListeners$1(listeners) { - var t1, existingListeners, next, cursor, next0, source, _this = this, _box_0 = {}; - _box_0.listeners = listeners; - if (listeners == null) - return; - t1 = _this._state; - if (t1 <= 3) { - existingListeners = type$.nullable__FutureListener_dynamic_dynamic._as(_this._resultOrListeners); - _this._resultOrListeners = listeners; - if (existingListeners != null) { - next = listeners._nextListener; - for (cursor = listeners; next != null; cursor = next, next = next0) - next0 = next._nextListener; - cursor._nextListener = existingListeners; - } - } else { - if ((t1 & 4) !== 0) { - source = type$._Future_dynamic._as(_this._resultOrListeners); - if ((source._state & 24) === 0) { - source._prependListeners$1(listeners); - return; - } - _this._cloneResult$1(source); - } - _box_0.listeners = _this._reverseListeners$1(listeners); - _this._zone.scheduleMicrotask$1(new A._Future__prependListeners_closure(_box_0, _this)); - } + scheduleMicrotask$1(f) { + A._rootScheduleMicrotask(null, null, this, type$.void_Function._as(f)); }, - _removeListeners$0() { - var current = type$.nullable__FutureListener_dynamic_dynamic._as(this._resultOrListeners); - this._resultOrListeners = null; - return this._reverseListeners$1(current); + createTimer$2(duration, f) { + return A.Timer__createTimer(duration, type$.void_Function._as(f)); }, - _reverseListeners$1(listeners) { - var current, prev, next; - for (current = listeners, prev = null; current != null; prev = current, current = next) { - next = current._nextListener; - current._nextListener = prev; - } - return prev; + print$1(line) { + A.printString(line); + } + }; + A._RootZone_bindCallback_closure.prototype = { + call$0() { + return this.$this.run$1$1(this.f, this.R); }, - _chainForeignFuture$1(source) { - var e, s, exception, _this = this; - _this._state ^= 2; + $signature() { + return this.R._eval$1("0()"); + } + }; + A._RootZone_bindUnaryCallback_closure.prototype = { + call$1(arg) { + var _this = this, + t1 = _this.T; + return _this.$this.runUnary$2$2(_this.f, t1._as(arg), _this.R, t1); + }, + $signature() { + return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)"); + } + }; + A._RootZone_bindCallbackGuarded_closure.prototype = { + call$0() { + return this.$this.runGuarded$1(this.f); + }, + $signature: 0 + }; + A._RootZone_bindUnaryCallbackGuarded_closure.prototype = { + call$1(arg) { + var t1 = this.T; + return this.$this.runUnaryGuarded$1$2(this.f, t1._as(arg), t1); + }, + $signature() { + return this.T._eval$1("~(0)"); + } + }; + A.runZonedGuarded_closure.prototype = { + call$5($self, $parent, zone, error, stackTrace) { + var e, s, exception, t2, + t1 = type$.StackTrace; + t1._as(stackTrace); try { - source.then$1$2$onError(0, new A._Future__chainForeignFuture_closure(_this), new A._Future__chainForeignFuture_closure0(_this), type$.Null); + this.parentZone.runBinary$3$3(this.onError, error, stackTrace, type$.void, type$.Object, t1); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); - A.scheduleMicrotask(new A._Future__chainForeignFuture_closure1(_this, e, s)); - } - }, - _complete$1(value) { - var listeners, _this = this, - t1 = _this.$ti; - t1._eval$1("1/")._as(value); - if (t1._eval$1("Future<1>")._is(value)) - if (t1._is(value)) - A._Future__chainCoreFutureSync(value, _this); + t2 = $parent._delegationTarget; + if (e === error) + t2._processUncaughtError$3(zone, error, stackTrace); else - _this._chainForeignFuture$1(value); - else { - listeners = _this._removeListeners$0(); - t1._precomputed1._as(value); - _this._state = 8; - _this._resultOrListeners = value; - A._Future__propagateToListeners(_this, listeners); + t2._processUncaughtError$3(zone, type$.Object._as(e), t1._as(s)); } }, - _completeWithValue$1(value) { - var listeners, _this = this; - _this.$ti._precomputed1._as(value); - listeners = _this._removeListeners$0(); - _this._state = 8; - _this._resultOrListeners = value; - A._Future__propagateToListeners(_this, listeners); + $signature: 68 + }; + A._HashMap.prototype = { + get$length(_) { + return this._collection$_length; }, - _completeError$2(error, stackTrace) { - var listeners; - type$.Object._as(error); - type$.StackTrace._as(stackTrace); - listeners = this._removeListeners$0(); - this._setErrorObject$1(A.AsyncError$(error, stackTrace)); - A._Future__propagateToListeners(this, listeners); + get$isEmpty(_) { + return this._collection$_length === 0; }, - _asyncComplete$1(value) { - var t1 = this.$ti; - t1._eval$1("1/")._as(value); - if (t1._eval$1("Future<1>")._is(value)) { - this._chainFuture$1(value); - return; - } - this._asyncCompleteWithValue$1(value); + get$keys() { + return new A._HashMapKeyIterable(this, A._instanceType(this)._eval$1("_HashMapKeyIterable<1>")); }, - _asyncCompleteWithValue$1(value) { - var _this = this; - _this.$ti._precomputed1._as(value); - _this._state ^= 2; - _this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteWithValue_closure(_this, value)); + containsKey$1(key) { + var strings, nums; + if (typeof key == "string" && key !== "__proto__") { + strings = this._strings; + return strings == null ? false : strings[key] != null; + } else if (typeof key == "number" && (key & 1073741823) === key) { + nums = this._nums; + return nums == null ? false : nums[key] != null; + } else + return this._containsKey$1(key); }, - _chainFuture$1(value) { - var t1 = this.$ti; - t1._eval$1("Future<1>")._as(value); - if (t1._is(value)) { - A._Future__chainCoreFutureAsync(value, this); - return; - } - this._chainForeignFuture$1(value); - }, - _asyncCompleteError$2(error, stackTrace) { - type$.StackTrace._as(stackTrace); - this._state ^= 2; - this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteError_closure(this, error, stackTrace)); + _containsKey$1(key) { + var rest = this._collection$_rest; + if (rest == null) + return false; + return this._findBucketIndex$2(this._getBucket$2(rest, key), key) >= 0; }, - timeout$2$onTimeout(_, timeLimit, onTimeout) { - var t3, _future, _this = this, t1 = {}, - t2 = _this.$ti; - t2._eval$1("1/()?")._as(onTimeout); - if ((_this._state & 24) !== 0) { - t1 = new A._Future($.Zone__current, t2); - t1._asyncComplete$1(_this); + $index(_, key) { + var strings, t1, nums; + if (typeof key == "string" && key !== "__proto__") { + strings = this._strings; + t1 = strings == null ? null : A._HashMap__getTableEntry(strings, key); + return t1; + } else if (typeof key == "number" && (key & 1073741823) === key) { + nums = this._nums; + t1 = nums == null ? null : A._HashMap__getTableEntry(nums, key); return t1; + } else + return this._get$1(key); + }, + _get$1(key) { + var bucket, index, + rest = this._collection$_rest; + if (rest == null) + return null; + bucket = this._getBucket$2(rest, key); + index = this._findBucketIndex$2(bucket, key); + return index < 0 ? null : bucket[index + 1]; + }, + $indexSet(_, key, value) { + var strings, nums, _this = this, + t1 = A._instanceType(_this); + t1._precomputed1._as(key); + t1._rest[1]._as(value); + if (typeof key == "string" && key !== "__proto__") { + strings = _this._strings; + _this._addHashTableEntry$3(strings == null ? _this._strings = A._HashMap__newHashTable() : strings, key, value); + } else if (typeof key == "number" && (key & 1073741823) === key) { + nums = _this._nums; + _this._addHashTableEntry$3(nums == null ? _this._nums = A._HashMap__newHashTable() : nums, key, value); + } else + _this._set$2(key, value); + }, + _set$2(key, value) { + var rest, hash, bucket, index, _this = this, + t1 = A._instanceType(_this); + t1._precomputed1._as(key); + t1._rest[1]._as(value); + rest = _this._collection$_rest; + if (rest == null) + rest = _this._collection$_rest = A._HashMap__newHashTable(); + hash = _this._computeHashCode$1(key); + bucket = rest[hash]; + if (bucket == null) { + A._HashMap__setTableEntry(rest, hash, [key, value]); + ++_this._collection$_length; + _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._keys = null; + } } - t3 = $.Zone__current; - _future = new A._Future(t3, t2); - t1.timer = null; - t1.timer = A.Timer_Timer(timeLimit, new A._Future_timeout_closure(_this, _future, t3, t3.registerCallback$1$1(onTimeout, t2._eval$1("1/")))); - _this.then$1$2$onError(0, new A._Future_timeout_closure0(t1, _this, _future), new A._Future_timeout_closure1(t1, _future), type$.Null); - return _future; }, - $isFuture: 1 - }; - A._Future__addListener_closure.prototype = { - call$0() { - A._Future__propagateToListeners(this.$this, this.listener); + forEach$1(_, action) { + var keys, $length, t2, i, key, t3, _this = this, + t1 = A._instanceType(_this); + t1._eval$1("~(1,2)")._as(action); + keys = _this._computeKeys$0(); + for ($length = keys.length, t2 = t1._precomputed1, t1 = t1._rest[1], i = 0; i < $length; ++i) { + key = keys[i]; + t2._as(key); + t3 = _this.$index(0, key); + action.call$2(key, t3 == null ? t1._as(t3) : t3); + if (keys !== _this._keys) + throw A.wrapException(A.ConcurrentModificationError$(_this)); + } }, - $signature: 0 - }; - A._Future__prependListeners_closure.prototype = { - call$0() { - A._Future__propagateToListeners(this.$this, this._box_0.listeners); + _computeKeys$0() { + var strings, index, names, entries, i, nums, rest, bucket, $length, i0, _this = this, + result = _this._keys; + if (result != null) + return result; + result = A.List_List$filled(_this._collection$_length, null, false, type$.dynamic); + strings = _this._strings; + index = 0; + if (strings != null) { + names = Object.getOwnPropertyNames(strings); + entries = names.length; + for (i = 0; i < entries; ++i) { + result[index] = names[i]; + ++index; + } + } + 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._collection$_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; + } + } + } + return _this._keys = result; }, - $signature: 0 - }; - A._Future__chainForeignFuture_closure.prototype = { - call$1(value) { - var error, stackTrace, exception, - t1 = this.$this; - t1._state ^= 2; - try { - t1._completeWithValue$1(t1.$ti._precomputed1._as(value)); - } catch (exception) { - error = A.unwrapException(exception); - stackTrace = A.getTraceFromException(exception); - t1._completeError$2(error, stackTrace); + _addHashTableEntry$3(table, key, value) { + var t1 = A._instanceType(this); + t1._precomputed1._as(key); + t1._rest[1]._as(value); + if (table[key] == null) { + ++this._collection$_length; + this._keys = null; } + A._HashMap__setTableEntry(table, key, value); }, - $signature: 6 - }; - A._Future__chainForeignFuture_closure0.prototype = { - call$2(error, stackTrace) { - this.$this._completeError$2(type$.Object._as(error), type$.StackTrace._as(stackTrace)); + _computeHashCode$1(key) { + return J.get$hashCode$(key) & 1073741823; }, - $signature: 8 + _getBucket$2(table, key) { + return table[this._computeHashCode$1(key)]; + }, + _findBucketIndex$2(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; + }, + $isHashMap: 1 }; - A._Future__chainForeignFuture_closure1.prototype = { - call$0() { - this.$this._completeError$2(this.e, this.s); + A._IdentityHashMap.prototype = { + _computeHashCode$1(key) { + return A.objectHashCode(key) & 1073741823; }, - $signature: 0 + _findBucketIndex$2(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; + } }; - A._Future__chainCoreFutureAsync_closure.prototype = { - call$0() { - A._Future__chainCoreFutureSync(this._box_0.source, this.target); + A._CustomHashMap.prototype = { + $index(_, key) { + if (!A.boolConversionCheck(this._validKey.call$1(key))) + return null; + return this.super$_HashMap$_get(key); }, - $signature: 0 + $indexSet(_, key, value) { + var t1 = this.$ti; + this.super$_HashMap$_set(t1._precomputed1._as(key), t1._rest[1]._as(value)); + }, + containsKey$1(key) { + if (!A.boolConversionCheck(this._validKey.call$1(key))) + return false; + return this.super$_HashMap$_containsKey(key); + }, + _computeHashCode$1(key) { + return this._hashCode.call$1(this.$ti._precomputed1._as(key)) & 1073741823; + }, + _findBucketIndex$2(bucket, key) { + var $length, t1, t2, i; + if (bucket == null) + return -1; + $length = bucket.length; + for (t1 = this.$ti._precomputed1, t2 = this._equals, i = 0; i < $length; i += 2) + if (A.boolConversionCheck(t2.call$2(bucket[i], t1._as(key)))) + return i; + return -1; + } }; - A._Future__asyncCompleteWithValue_closure.prototype = { - call$0() { - this.$this._completeWithValue$1(this.value); + A._CustomHashMap_closure.prototype = { + call$1(v) { + return this.K._is(v); }, - $signature: 0 + $signature: 18 }; - A._Future__asyncCompleteError_closure.prototype = { - call$0() { - this.$this._completeError$2(this.error, this.stackTrace); + A._HashMapKeyIterable.prototype = { + get$length(_) { + return this._collection$_map._collection$_length; }, - $signature: 0 + get$isEmpty(_) { + return this._collection$_map._collection$_length === 0; + }, + get$isNotEmpty(_) { + return this._collection$_map._collection$_length !== 0; + }, + get$iterator(_) { + var t1 = this._collection$_map; + return new A._HashMapKeyIterator(t1, t1._computeKeys$0(), this.$ti._eval$1("_HashMapKeyIterator<1>")); + }, + contains$1(_, element) { + return this._collection$_map.containsKey$1(element); + } }; - A._Future__propagateToListeners_handleWhenCompleteCallback.prototype = { - call$0() { - var e, s, t1, exception, t2, originalSource, _this = this, completeResult = null; - try { - t1 = _this._box_0.listener; - completeResult = t1.result._zone.run$1$1(type$.dynamic_Function._as(t1.callback), type$.dynamic); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - t1 = _this.hasError && type$.AsyncError._as(_this._box_1.source._resultOrListeners).error === e; - t2 = _this._box_0; - if (t1) - t2.listenerValueOrError = type$.AsyncError._as(_this._box_1.source._resultOrListeners); - else - t2.listenerValueOrError = A.AsyncError$(e, s); - t2.listenerHasError = true; - return; - } - if (completeResult instanceof A._Future && (completeResult._state & 24) !== 0) { - if ((completeResult._state & 16) !== 0) { - t1 = _this._box_0; - t1.listenerValueOrError = type$.AsyncError._as(completeResult._resultOrListeners); - t1.listenerHasError = true; - } - return; - } - if (completeResult instanceof A._Future) { - originalSource = _this._box_1.source; - t1 = _this._box_0; - t1.listenerValueOrError = J.then$1$1$x(completeResult, new A._Future__propagateToListeners_handleWhenCompleteCallback_closure(originalSource), type$.dynamic); - t1.listenerHasError = false; - } - }, - $signature: 0 - }; - A._Future__propagateToListeners_handleWhenCompleteCallback_closure.prototype = { - call$1(_) { - return this.originalSource; - }, - $signature: 60 - }; - A._Future__propagateToListeners_handleValueCallback.prototype = { - call$0() { - var e, s, t1, t2, t3, t4, t5, exception; - try { - t1 = this._box_0; - t2 = t1.listener; - t3 = t2.$ti; - t4 = t3._precomputed1; - t5 = t4._as(this.sourceResult); - t1.listenerValueOrError = t2.result._zone.runUnary$2$2(t3._eval$1("2/(1)")._as(t2.callback), t5, t3._eval$1("2/"), t4); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - t1 = this._box_0; - t1.listenerValueOrError = A.AsyncError$(e, s); - t1.listenerHasError = true; - } - }, - $signature: 0 - }; - A._Future__propagateToListeners_handleError.prototype = { - call$0() { - var asyncError, e, s, t1, exception, t2, _this = this; - try { - asyncError = type$.AsyncError._as(_this._box_1.source._resultOrListeners); - t1 = _this._box_0; - if (t1.listener.matchesErrorTest$1(asyncError) && t1.listener.errorCallback != null) { - t1.listenerValueOrError = t1.listener.handleError$1(asyncError); - t1.listenerHasError = false; - } - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - t1 = type$.AsyncError._as(_this._box_1.source._resultOrListeners); - t2 = _this._box_0; - if (t1.error === e) - t2.listenerValueOrError = t1; - else - t2.listenerValueOrError = A.AsyncError$(e, s); - t2.listenerHasError = true; - } - }, - $signature: 0 - }; - A._Future_timeout_closure.prototype = { - call$0() { - var e, s, exception, _this = this; - try { - _this._future._complete$1(_this.zone.run$1$1(_this.onTimeoutHandler, _this.$this.$ti._eval$1("1/"))); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - _this._future._completeError$2(e, s); - } + A._HashMapKeyIterator.prototype = { + get$current() { + var t1 = this._collection$_current; + return t1 == null ? this.$ti._precomputed1._as(t1) : t1; }, - $signature: 0 - }; - A._Future_timeout_closure0.prototype = { - call$1(v) { - var t1; - this.$this.$ti._precomputed1._as(v); - t1 = this._box_0; - if (t1.timer.get$isActive()) { - t1.timer.cancel$0(0); - this._future._completeWithValue$1(v); + moveNext$0() { + var _this = this, + keys = _this._keys, + offset = _this._offset, + t1 = _this._collection$_map; + if (keys !== t1._keys) + throw A.wrapException(A.ConcurrentModificationError$(t1)); + else if (offset >= keys.length) { + _this.set$_collection$_current(null); + return false; + } else { + _this.set$_collection$_current(keys[offset]); + _this._offset = offset + 1; + return true; } }, - $signature() { - return this.$this.$ti._eval$1("Null(1)"); - } - }; - A._Future_timeout_closure1.prototype = { - call$2(e, s) { - var t1; - type$.Object._as(e); - type$.StackTrace._as(s); - t1 = this._box_0; - if (t1.timer.get$isActive()) { - t1.timer.cancel$0(0); - this._future._completeError$2(e, s); - } + set$_collection$_current(_current) { + this._collection$_current = this.$ti._eval$1("1?")._as(_current); }, - $signature: 8 + $isIterator: 1 }; - A._AsyncCallbackEntry.prototype = {}; - A.Stream.prototype = { - map$1$1(_, convert, $S) { - var t1 = A._instanceType(this); - return new A._MapStream(t1._bind$1($S)._eval$1("1(Stream.T)")._as(convert), this, t1._eval$1("@")._bind$1($S)._eval$1("_MapStream<1,2>")); - }, - map$1(_, convert) { - return this.map$1$1(0, convert, type$.dynamic); + A._HashSet.prototype = { + get$iterator(_) { + return new A._HashSetIterator(this, this._computeElements$0(), A._instanceType(this)._eval$1("_HashSetIterator<1>")); }, get$length(_) { - var t1 = {}, - future = new A._Future($.Zone__current, type$._Future_int); - t1.count = 0; - this.listen$4$cancelOnError$onDone$onError(new A.Stream_length_closure(t1, this), true, new A.Stream_length_closure0(t1, future), future.get$_completeError()); - return future; + return this._collection$_length; }, - get$first(_) { - var future = new A._Future($.Zone__current, A._instanceType(this)._eval$1("_Future")), - subscription = this.listen$4$cancelOnError$onDone$onError(null, true, new A.Stream_first_closure(future), future.get$_completeError()); - subscription.onData$1(new A.Stream_first_closure0(this, subscription, future)); - return future; - } - }; - A.Stream_length_closure.prototype = { - call$1(_) { - A._instanceType(this.$this)._eval$1("Stream.T")._as(_); - ++this._box_0.count; + get$isEmpty(_) { + return this._collection$_length === 0; }, - $signature() { - return A._instanceType(this.$this)._eval$1("~(Stream.T)"); - } - }; - A.Stream_length_closure0.prototype = { - call$0() { - this.future._complete$1(this._box_0.count); + get$isNotEmpty(_) { + return this._collection$_length !== 0; }, - $signature: 0 - }; - A.Stream_first_closure.prototype = { - call$0() { - var e, s, t1, exception; - try { - t1 = A.IterableElementError_noElement(); - throw A.wrapException(t1); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - A._completeWithErrorCallback(this.future, e, s); - } + contains$1(_, object) { + var strings, nums; + if (typeof object == "string" && object !== "__proto__") { + strings = this._strings; + return strings == null ? false : strings[object] != null; + } else if (typeof object == "number" && (object & 1073741823) === object) { + nums = this._nums; + return nums == null ? false : nums[object] != null; + } else + return this._contains$1(object); }, - $signature: 0 - }; - A.Stream_first_closure0.prototype = { - call$1(value) { - A._cancelAndValue(this.subscription, this.future, A._instanceType(this.$this)._eval$1("Stream.T")._as(value)); + _contains$1(object) { + var rest = this._collection$_rest; + if (rest == null) + return false; + return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0; }, - $signature() { - return A._instanceType(this.$this)._eval$1("~(Stream.T)"); - } - }; - A._StreamController.prototype = { - get$_pendingEvents() { - var t1, _this = this; - if ((_this._state & 8) === 0) - return A._instanceType(_this)._eval$1("_PendingEvents<1>?")._as(_this._varData); - t1 = A._instanceType(_this); - return t1._eval$1("_PendingEvents<1>?")._as(t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData).get$_varData()); + add$1(_, element) { + var strings, nums, _this = this; + A._instanceType(_this)._precomputed1._as(element); + if (typeof element == "string" && element !== "__proto__") { + strings = _this._strings; + return _this._addHashTableEntry$2(strings == null ? _this._strings = A._HashSet__newHashTable() : strings, element); + } else if (typeof element == "number" && (element & 1073741823) === element) { + nums = _this._nums; + return _this._addHashTableEntry$2(nums == null ? _this._nums = A._HashSet__newHashTable() : nums, element); + } else + return _this._collection$_add$1(element); }, - _ensurePendingEvents$0() { - var events, t1, _this = this; - if ((_this._state & 8) === 0) { - events = _this._varData; - if (events == null) - events = _this._varData = new A._PendingEvents(A._instanceType(_this)._eval$1("_PendingEvents<1>")); - return A._instanceType(_this)._eval$1("_PendingEvents<1>")._as(events); + _collection$_add$1(element) { + var rest, hash, bucket, _this = this; + A._instanceType(_this)._precomputed1._as(element); + rest = _this._collection$_rest; + if (rest == null) + rest = _this._collection$_rest = A._HashSet__newHashTable(); + 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); } - t1 = A._instanceType(_this); - events = t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData).get$_varData(); - return t1._eval$1("_PendingEvents<1>")._as(events); - }, - get$_subscription() { - var varData = this._varData; - if ((this._state & 8) !== 0) - varData = type$._StreamControllerAddStreamState_nullable_Object._as(varData).get$_varData(); - return A._instanceType(this)._eval$1("_ControllerSubscription<1>")._as(varData); + ++_this._collection$_length; + _this._collection$_elements = null; + return true; }, - _badEventState$0() { - if ((this._state & 4) !== 0) - return new A.StateError("Cannot add event after closing"); - return new A.StateError("Cannot add event while adding a stream"); - }, - _ensureDoneFuture$0() { - var t1 = this._doneFuture; - if (t1 == null) - t1 = this._doneFuture = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : new A._Future($.Zone__current, type$._Future_void); - return t1; - }, - add$1(_, value) { - var t2, _this = this, - t1 = A._instanceType(_this); - t1._precomputed1._as(value); - t2 = _this._state; - if (t2 >= 4) - throw A.wrapException(_this._badEventState$0()); - if ((t2 & 1) !== 0) - _this._sendData$1(value); - else if ((t2 & 3) === 0) - _this._ensurePendingEvents$0().add$1(0, new A._DelayedData(value, t1._eval$1("_DelayedData<1>"))); + remove$1(_, object) { + var _this = this; + if (typeof object == "string" && object !== "__proto__") + return _this._collection$_removeHashTableEntry$2(_this._strings, object); + else if (typeof object == "number" && (object & 1073741823) === object) + return _this._collection$_removeHashTableEntry$2(_this._nums, object); + else + return _this._remove$1(object); }, - addError$2(error, stackTrace) { - var replacement, _this = this, - t1 = type$.Object; - t1._as(error); - type$.nullable_StackTrace._as(stackTrace); - A.checkNotNullable(error, "error", t1); - if (_this._state >= 4) - throw A.wrapException(_this._badEventState$0()); - replacement = $.Zone__current.errorCallback$2(error, stackTrace); - if (replacement != null) { - error = replacement.error; - stackTrace = replacement.stackTrace; - } else if (stackTrace == null) - stackTrace = A.AsyncError_defaultStackTrace(error); - t1 = _this._state; - if ((t1 & 1) !== 0) - _this._sendError$2(error, stackTrace); - else if ((t1 & 3) === 0) - _this._ensurePendingEvents$0().add$1(0, new A._DelayedError(error, stackTrace)); + _remove$1(object) { + var hash, bucket, index, _this = this, + rest = _this._collection$_rest; + if (rest == null) + return false; + hash = _this._computeHashCode$1(object); + bucket = rest[hash]; + index = _this._findBucketIndex$2(bucket, object); + if (index < 0) + return false; + --_this._collection$_length; + _this._collection$_elements = null; + bucket.splice(index, 1); + if (0 === bucket.length) + delete rest[hash]; + return true; }, - addError$1(error) { - return this.addError$2(error, null); + _computeElements$0() { + var strings, index, names, entries, i, nums, rest, bucket, $length, i0, _this = this, + result = _this._collection$_elements; + if (result != null) + return result; + result = A.List_List$filled(_this._collection$_length, null, false, type$.dynamic); + strings = _this._strings; + index = 0; + if (strings != null) { + names = Object.getOwnPropertyNames(strings); + entries = names.length; + for (i = 0; i < entries; ++i) { + result[index] = names[i]; + ++index; + } + } + 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._collection$_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; + } + } + } + return _this._collection$_elements = result; }, - close$0(_) { - var _this = this, - t1 = _this._state; - if ((t1 & 4) !== 0) - return _this._ensureDoneFuture$0(); - if (t1 >= 4) - throw A.wrapException(_this._badEventState$0()); - t1 = _this._state = t1 | 4; - if ((t1 & 1) !== 0) - _this._sendDone$0(); - else if ((t1 & 3) === 0) - _this._ensurePendingEvents$0().add$1(0, B.C__DelayedDone); - return _this._ensureDoneFuture$0(); + _addHashTableEntry$2(table, element) { + A._instanceType(this)._precomputed1._as(element); + if (table[element] != null) + return false; + table[element] = 0; + ++this._collection$_length; + this._collection$_elements = null; + return true; }, - _subscribe$4(onData, onError, onDone, cancelOnError) { - var t2, t3, t4, t5, t6, t7, subscription, pendingEvents, addState, _this = this, - t1 = A._instanceType(_this); - t1._eval$1("~(1)?")._as(onData); - type$.nullable_void_Function._as(onDone); - if ((_this._state & 3) !== 0) - throw A.wrapException(A.StateError$("Stream has already been listened to.")); - t2 = $.Zone__current; - t3 = cancelOnError ? 1 : 0; - t4 = onError != null ? 32 : 0; - t5 = A._BufferingStreamSubscription__registerDataHandler(t2, onData, t1._precomputed1); - t6 = A._BufferingStreamSubscription__registerErrorHandler(t2, onError); - t7 = onDone == null ? A.async___nullDoneHandler$closure() : onDone; - subscription = new A._ControllerSubscription(_this, t5, t6, t2.registerCallback$1$1(t7, type$.void), t2, t3 | t4, t1._eval$1("_ControllerSubscription<1>")); - pendingEvents = _this.get$_pendingEvents(); - t4 = _this._state |= 1; - if ((t4 & 8) !== 0) { - addState = t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData); - addState.set$_varData(subscription); - addState.resume$0(0); + _collection$_removeHashTableEntry$2(table, element) { + if (table != null && table[element] != null) { + delete table[element]; + --this._collection$_length; + this._collection$_elements = null; + return true; } else - _this._varData = subscription; - subscription._setPendingEvents$1(pendingEvents); - subscription._guardCallback$1(new A._StreamController__subscribe_closure(_this)); - return subscription; + return false; }, - _recordCancel$1(subscription) { - var result, onCancel, cancelResult, e, s, exception, result0, _this = this, - t1 = A._instanceType(_this); - t1._eval$1("StreamSubscription<1>")._as(subscription); - result = null; - if ((_this._state & 8) !== 0) - result = t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData).cancel$0(0); - _this._varData = null; - _this._state = _this._state & 4294967286 | 2; - onCancel = _this.onCancel; - if (onCancel != null) - if (result == null) - try { - cancelResult = onCancel.call$0(); - if (cancelResult instanceof A._Future) - result = cancelResult; - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - result0 = new A._Future($.Zone__current, type$._Future_void); - result0._asyncCompleteError$2(e, s); - result = result0; - } - else - result = result.whenComplete$1(onCancel); - t1 = new A._StreamController__recordCancel_complete(_this); - if (result != null) - result = result.whenComplete$1(t1); - else - t1.call$0(); - return result; + _computeHashCode$1(element) { + return J.get$hashCode$(element) & 1073741823; }, - $isStreamSink: 1, - $isStreamController: 1, - $is_StreamControllerLifecycle: 1, - $is_EventSink: 1, - $is_EventDispatch: 1 + _findBucketIndex$2(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; + } }; - A._StreamController__subscribe_closure.prototype = { - call$0() { - A._runGuarded(this.$this.onListen); + A._HashSetIterator.prototype = { + get$current() { + var t1 = this._collection$_current; + return t1 == null ? this.$ti._precomputed1._as(t1) : t1; }, - $signature: 0 - }; - A._StreamController__recordCancel_complete.prototype = { - call$0() { - var doneFuture = this.$this._doneFuture; - if (doneFuture != null && (doneFuture._state & 30) === 0) - doneFuture._asyncComplete$1(null); + moveNext$0() { + var _this = this, + elements = _this._collection$_elements, + offset = _this._offset, + t1 = _this._set; + if (elements !== t1._collection$_elements) + throw A.wrapException(A.ConcurrentModificationError$(t1)); + else if (offset >= elements.length) { + _this.set$_collection$_current(null); + return false; + } else { + _this.set$_collection$_current(elements[offset]); + _this._offset = offset + 1; + return true; + } }, - $signature: 0 + set$_collection$_current(_current) { + this._collection$_current = this.$ti._eval$1("1?")._as(_current); + }, + $isIterator: 1 }; - A._SyncStreamControllerDispatch.prototype = { - _sendData$1(data) { - this.$ti._precomputed1._as(data); - this.get$_subscription()._add$1(0, data); + A._LinkedHashSet.prototype = { + get$iterator(_) { + var _this = this, + t1 = new A._LinkedHashSetIterator(_this, _this._collection$_modifications, A._instanceType(_this)._eval$1("_LinkedHashSetIterator<1>")); + t1._collection$_cell = _this._collection$_first; + return t1; }, - _sendError$2(error, stackTrace) { - this.get$_subscription()._addError$2(error, stackTrace); + get$length(_) { + return this._collection$_length; }, - _sendDone$0() { - this.get$_subscription()._close$0(); - } - }; - A._AsyncStreamControllerDispatch.prototype = { - _sendData$1(data) { - var t1 = this.$ti; - t1._precomputed1._as(data); - this.get$_subscription()._addPending$1(new A._DelayedData(data, t1._eval$1("_DelayedData<1>"))); + get$isEmpty(_) { + return this._collection$_length === 0; }, - _sendError$2(error, stackTrace) { - this.get$_subscription()._addPending$1(new A._DelayedError(error, stackTrace)); + get$isNotEmpty(_) { + return this._collection$_length !== 0; }, - _sendDone$0() { - this.get$_subscription()._addPending$1(B.C__DelayedDone); - } - }; - A._AsyncStreamController.prototype = {}; - A._SyncStreamController.prototype = {}; - A._ControllerStream.prototype = { - get$hashCode(_) { - return (A.Primitives_objectHashCode(this._controller) ^ 892482866) >>> 0; + contains$1(_, object) { + var strings, nums; + if (typeof object == "string" && object !== "__proto__") { + strings = this._strings; + if (strings == null) + return false; + return type$.nullable__LinkedHashSetCell._as(strings[object]) != null; + } else if (typeof object == "number" && (object & 1073741823) === object) { + nums = this._nums; + if (nums == null) + return false; + return type$.nullable__LinkedHashSetCell._as(nums[object]) != null; + } else + return this._contains$1(object); }, - $eq(_, other) { - if (other == null) + _contains$1(object) { + var rest = this._collection$_rest; + if (rest == null) return false; - if (this === other) - return true; - return other instanceof A._ControllerStream && other._controller === this._controller; - } - }; - A._ControllerSubscription.prototype = { - _onCancel$0() { - return this._controller._recordCancel$1(this); + return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0; }, - _onPause$0() { - var t1 = this._controller, - t2 = A._instanceType(t1); - t2._eval$1("StreamSubscription<1>")._as(this); - if ((t1._state & 8) !== 0) - t2._eval$1("_StreamControllerAddStreamState<1>")._as(t1._varData).pause$0(0); - A._runGuarded(t1.onPause); + get$first(_) { + var first = this._collection$_first; + if (first == null) + throw A.wrapException(A.StateError$("No elements")); + return A._instanceType(this)._precomputed1._as(first._element); }, - _onResume$0() { - var t1 = this._controller, - t2 = A._instanceType(t1); - t2._eval$1("StreamSubscription<1>")._as(this); - if ((t1._state & 8) !== 0) - t2._eval$1("_StreamControllerAddStreamState<1>")._as(t1._varData).resume$0(0); - A._runGuarded(t1.onResume); - } - }; - A._StreamSinkWrapper.prototype = { - add$1(_, data) { - this._async$_target.add$1(0, this.$ti._precomputed1._as(data)); + add$1(_, element) { + var strings, nums, _this = this; + A._instanceType(_this)._precomputed1._as(element); + if (typeof element == "string" && element !== "__proto__") { + strings = _this._strings; + return _this._addHashTableEntry$2(strings == null ? _this._strings = A._LinkedHashSet__newHashTable() : strings, element); + } else if (typeof element == "number" && (element & 1073741823) === element) { + nums = _this._nums; + return _this._addHashTableEntry$2(nums == null ? _this._nums = A._LinkedHashSet__newHashTable() : nums, element); + } else + return _this._collection$_add$1(element); }, - $isStreamSink: 1 - }; - A._BufferingStreamSubscription.prototype = { - _setPendingEvents$1(pendingEvents) { - var _this = this; - A._instanceType(_this)._eval$1("_PendingEvents<_BufferingStreamSubscription.T>?")._as(pendingEvents); - if (pendingEvents == null) - return; - _this.set$_pending(pendingEvents); - if (pendingEvents.lastPendingEvent != null) { - _this._state = (_this._state | 128) >>> 0; - pendingEvents.schedule$1(_this); + _collection$_add$1(element) { + var rest, hash, bucket, _this = this; + A._instanceType(_this)._precomputed1._as(element); + rest = _this._collection$_rest; + if (rest == null) + rest = _this._collection$_rest = A._LinkedHashSet__newHashTable(); + hash = _this._computeHashCode$1(element); + bucket = rest[hash]; + if (bucket == null) + rest[hash] = [_this._collection$_newLinkedCell$1(element)]; + else { + if (_this._findBucketIndex$2(bucket, element) >= 0) + return false; + bucket.push(_this._collection$_newLinkedCell$1(element)); } + return true; }, - onData$1(handleData) { - var t1 = A._instanceType(this); - this.set$_async$_onData(A._BufferingStreamSubscription__registerDataHandler(this._zone, t1._eval$1("~(_BufferingStreamSubscription.T)?")._as(handleData), t1._eval$1("_BufferingStreamSubscription.T"))); - }, - pause$0(_) { - var t2, t3, _this = this, - t1 = _this._state; - if ((t1 & 8) !== 0) - return; - t2 = (t1 + 256 | 4) >>> 0; - _this._state = t2; - if (t1 < 256) { - t3 = _this._pending; - if (t3 != null) - if (t3._state === 1) - t3._state = 3; - } - if ((t1 & 4) === 0 && (t2 & 64) === 0) - _this._guardCallback$1(_this.get$_onPause()); + _addHashTableEntry$2(table, element) { + A._instanceType(this)._precomputed1._as(element); + if (type$.nullable__LinkedHashSetCell._as(table[element]) != null) + return false; + table[element] = this._collection$_newLinkedCell$1(element); + return true; }, - resume$0(_) { + _collection$_newLinkedCell$1(element) { var _this = this, - t1 = _this._state; - if ((t1 & 8) !== 0) - return; - if (t1 >= 256) { - t1 = _this._state = t1 - 256; - if (t1 < 256) - if ((t1 & 128) !== 0 && _this._pending.lastPendingEvent != null) - _this._pending.schedule$1(_this); - else { - t1 = (t1 & 4294967291) >>> 0; - _this._state = t1; - if ((t1 & 64) === 0) - _this._guardCallback$1(_this.get$_onResume()); - } - } + cell = new A._LinkedHashSetCell(A._instanceType(_this)._precomputed1._as(element)); + if (_this._collection$_first == null) + _this._collection$_first = _this._collection$_last = cell; + else + _this._collection$_last = _this._collection$_last._collection$_next = cell; + ++_this._collection$_length; + _this._collection$_modifications = _this._collection$_modifications + 1 & 1073741823; + return cell; }, - cancel$0(_) { - var _this = this, - t1 = (_this._state & 4294967279) >>> 0; - _this._state = t1; - if ((t1 & 8) === 0) - _this._cancel$0(); - t1 = _this._cancelFuture; - return t1 == null ? $.$get$Future__nullFuture() : t1; + _computeHashCode$1(element) { + return J.get$hashCode$(element) & 1073741823; }, - asFuture$1$1(futureValue, $E) { - var result, _this = this, t1 = {}; - t1.resultValue = null; - if (!$E._is(null)) - throw A.wrapException(A.ArgumentError$notNull("futureValue")); - $E._as(futureValue); - t1.resultValue = futureValue; - result = new A._Future($.Zone__current, $E._eval$1("_Future<0>")); - _this.set$_onDone(new A._BufferingStreamSubscription_asFuture_closure(t1, result)); - _this._state = (_this._state | 32) >>> 0; - _this._onError = new A._BufferingStreamSubscription_asFuture_closure0(_this, result); - return result; + _findBucketIndex$2(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, element)) + return i; + return -1; + } + }; + A._LinkedHashSetCell.prototype = {}; + A._LinkedHashSetIterator.prototype = { + get$current() { + var t1 = this._collection$_current; + return t1 == null ? this.$ti._precomputed1._as(t1) : t1; }, - _cancel$0() { - var t2, _this = this, - t1 = _this._state = (_this._state | 8) >>> 0; - if ((t1 & 128) !== 0) { - t2 = _this._pending; - if (t2._state === 1) - t2._state = 3; + moveNext$0() { + var _this = this, + cell = _this._collection$_cell, + t1 = _this._set; + if (_this._collection$_modifications !== t1._collection$_modifications) + throw A.wrapException(A.ConcurrentModificationError$(t1)); + else if (cell == null) { + _this.set$_collection$_current(null); + return false; + } else { + _this.set$_collection$_current(_this.$ti._eval$1("1?")._as(cell._element)); + _this._collection$_cell = cell._collection$_next; + return true; } - if ((t1 & 64) === 0) - _this.set$_pending(null); - _this._cancelFuture = _this._onCancel$0(); }, - _add$1(_, data) { - var t2, _this = this, - t1 = A._instanceType(_this); - t1._eval$1("_BufferingStreamSubscription.T")._as(data); - t2 = _this._state; - if ((t2 & 8) !== 0) - return; - if (t2 < 64) - _this._sendData$1(data); - else - _this._addPending$1(new A._DelayedData(data, t1._eval$1("_DelayedData<_BufferingStreamSubscription.T>"))); + set$_collection$_current(_current) { + this._collection$_current = this.$ti._eval$1("1?")._as(_current); }, - _addError$2(error, stackTrace) { - var t1 = this._state; - if ((t1 & 8) !== 0) - return; - if (t1 < 64) - this._sendError$2(error, stackTrace); - else - this._addPending$1(new A._DelayedError(error, stackTrace)); + $isIterator: 1 + }; + A.UnmodifiableListView.prototype = { + get$length(_) { + return J.get$length$asx(this._collection$_source); }, - _close$0() { - var _this = this, - t1 = _this._state; - if ((t1 & 8) !== 0) - return; - t1 = (t1 | 2) >>> 0; - _this._state = t1; - if (t1 < 64) - _this._sendDone$0(); - else - _this._addPending$1(B.C__DelayedDone); + $index(_, index) { + return J.elementAt$1$ax(this._collection$_source, index); + } + }; + A.LinkedHashMap_LinkedHashMap$from_closure.prototype = { + call$2(k, v) { + this.result.$indexSet(0, this.K._as(k), this.V._as(v)); }, - _onPause$0() { + $signature: 19 + }; + A.ListBase.prototype = { + get$iterator(receiver) { + return new A.ListIterator(receiver, this.get$length(receiver), A.instanceType(receiver)._eval$1("ListIterator")); }, - _onResume$0() { + elementAt$1(receiver, index) { + return this.$index(receiver, index); }, - _onCancel$0() { - return null; + get$isEmpty(receiver) { + return this.get$length(receiver) === 0; }, - _addPending$1($event) { - var t1, _this = this, - pending = _this._pending; - if (pending == null) { - pending = new A._PendingEvents(A._instanceType(_this)._eval$1("_PendingEvents<_BufferingStreamSubscription.T>")); - _this.set$_pending(pending); - } - pending.add$1(0, $event); - t1 = _this._state; - if ((t1 & 128) === 0) { - t1 = (t1 | 128) >>> 0; - _this._state = t1; - if (t1 < 256) - pending.schedule$1(_this); - } + get$isNotEmpty(receiver) { + return !this.get$isEmpty(receiver); }, - _sendData$1(data) { - var t2, _this = this, - t1 = A._instanceType(_this)._eval$1("_BufferingStreamSubscription.T"); - t1._as(data); - t2 = _this._state; - _this._state = (t2 | 64) >>> 0; - _this._zone.runUnaryGuarded$1$2(_this._async$_onData, data, t1); - _this._state = (_this._state & 4294967231) >>> 0; - _this._checkState$1((t2 & 4) !== 0); + get$first(receiver) { + if (this.get$length(receiver) === 0) + throw A.wrapException(A.IterableElementError_noElement()); + return this.$index(receiver, 0); }, - _sendError$2(error, stackTrace) { - var cancelFuture, _this = this, - t1 = _this._state, - t2 = new A._BufferingStreamSubscription__sendError_sendError(_this, error, stackTrace); - if ((t1 & 1) !== 0) { - _this._state = (t1 | 16) >>> 0; - _this._cancel$0(); - cancelFuture = _this._cancelFuture; - if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture()) - cancelFuture.whenComplete$1(t2); - else - t2.call$0(); - } else { - t2.call$0(); - _this._checkState$1((t1 & 4) !== 0); + contains$1(receiver, element) { + var i, + $length = this.get$length(receiver); + for (i = 0; i < $length; ++i) { + if (J.$eq$(this.$index(receiver, i), element)) + return true; + if ($length !== this.get$length(receiver)) + throw A.wrapException(A.ConcurrentModificationError$(receiver)); } + return false; }, - _sendDone$0() { - var cancelFuture, _this = this, - t1 = new A._BufferingStreamSubscription__sendDone_sendDone(_this); - _this._cancel$0(); - _this._state = (_this._state | 16) >>> 0; - cancelFuture = _this._cancelFuture; - if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture()) - cancelFuture.whenComplete$1(t1); - else - t1.call$0(); + map$1$1(receiver, f, $T) { + var t1 = A.instanceType(receiver); + return new A.MappedListIterable(receiver, t1._bind$1($T)._eval$1("1(ListBase.E)")._as(f), t1._eval$1("@")._bind$1($T)._eval$1("MappedListIterable<1,2>")); }, - _guardCallback$1(callback) { - var t1, _this = this; - type$.void_Function._as(callback); - t1 = _this._state; - _this._state = (t1 | 64) >>> 0; - callback.call$0(); - _this._state = (_this._state & 4294967231) >>> 0; - _this._checkState$1((t1 & 4) !== 0); + map$1(receiver, f) { + return this.map$1$1(receiver, f, type$.dynamic); }, - _checkState$1(wasInputPaused) { - var t2, isInputPaused, _this = this, - t1 = _this._state; - if ((t1 & 128) !== 0 && _this._pending.lastPendingEvent == null) { - t1 = _this._state = (t1 & 4294967167) >>> 0; - if ((t1 & 4) !== 0) - if (t1 < 256) { - t2 = _this._pending; - t2 = t2 == null ? null : t2.lastPendingEvent == null; - t2 = t2 !== false; - } else - t2 = false; - else - t2 = false; - if (t2) { - t1 = (t1 & 4294967291) >>> 0; - _this._state = t1; - } - } - for (; true; wasInputPaused = isInputPaused) { - if ((t1 & 8) !== 0) { - _this.set$_pending(null); - return; - } - isInputPaused = (t1 & 4) !== 0; - if (wasInputPaused === isInputPaused) - break; - _this._state = (t1 ^ 64) >>> 0; - if (isInputPaused) - _this._onPause$0(); - else - _this._onResume$0(); - t1 = (_this._state & 4294967231) >>> 0; - _this._state = t1; - } - if ((t1 & 128) !== 0 && t1 < 256) - _this._pending.schedule$1(_this); + skip$1(receiver, count) { + return A.SubListIterable$(receiver, count, null, A.instanceType(receiver)._eval$1("ListBase.E")); }, - set$_async$_onData(_onData) { - this._async$_onData = A._instanceType(this)._eval$1("~(_BufferingStreamSubscription.T)")._as(_onData); + take$1(receiver, count) { + return A.SubListIterable$(receiver, 0, A.checkNotNullable(count, "count", type$.int), A.instanceType(receiver)._eval$1("ListBase.E")); }, - set$_onDone(_onDone) { - this._onDone = type$.void_Function._as(_onDone); + sublist$2(receiver, start, end) { + var listLength = this.get$length(receiver); + if (end == null) + end = listLength; + A.RangeError_checkValidRange(start, end, listLength); + return A.List_List$of(this.getRange$2(receiver, start, end), true, A.instanceType(receiver)._eval$1("ListBase.E")); }, - set$_pending(_pending) { - this._pending = A._instanceType(this)._eval$1("_PendingEvents<_BufferingStreamSubscription.T>?")._as(_pending); + sublist$1(receiver, start) { + return this.sublist$2(receiver, start, null); }, - $isStreamSubscription: 1, - $is_EventSink: 1, - $is_EventDispatch: 1 - }; - A._BufferingStreamSubscription_asFuture_closure.prototype = { - call$0() { - this.result._complete$1(this._box_0.resultValue); + getRange$2(receiver, start, end) { + A.RangeError_checkValidRange(start, end, this.get$length(receiver)); + return A.SubListIterable$(receiver, start, end, A.instanceType(receiver)._eval$1("ListBase.E")); }, - $signature: 0 - }; - A._BufferingStreamSubscription_asFuture_closure0.prototype = { - call$2(error, stackTrace) { - var cancelFuture, t1; - type$.Object._as(error); - type$.StackTrace._as(stackTrace); - cancelFuture = this.$this.cancel$0(0); - t1 = this.result; - if (cancelFuture !== $.$get$Future__nullFuture()) - cancelFuture.whenComplete$1(new A._BufferingStreamSubscription_asFuture__closure(t1, error, stackTrace)); - else - t1._completeError$2(error, stackTrace); + fillRange$3(receiver, start, end, fill) { + var value, i, + t1 = A.instanceType(receiver); + t1._eval$1("ListBase.E?")._as(fill); + value = fill == null ? t1._eval$1("ListBase.E")._as(fill) : fill; + A.RangeError_checkValidRange(start, end, this.get$length(receiver)); + for (i = start; i < end; ++i) + this.$indexSet(receiver, i, value); }, - $signature: 8 - }; - A._BufferingStreamSubscription_asFuture__closure.prototype = { - call$0() { - this.result._completeError$2(this.error, this.stackTrace); + toString$0(receiver) { + return A.Iterable_iterableToFullString(receiver, "[", "]"); }, - $signature: 4 + $isEfficientLengthIterable: 1, + $isIterable: 1, + $isList: 1 }; - A._BufferingStreamSubscription__sendError_sendError.prototype = { - call$0() { - var onError, t3, t4, - t1 = this.$this, - t2 = t1._state; - if ((t2 & 8) !== 0 && (t2 & 16) === 0) - return; - t1._state = (t2 | 64) >>> 0; - onError = t1._onError; - t2 = this.error; - t3 = type$.Object; - t4 = t1._zone; - if (type$.void_Function_Object_StackTrace._is(onError)) - t4.runBinaryGuarded$2$3(onError, t2, this.stackTrace, t3, type$.StackTrace); - else - t4.runUnaryGuarded$1$2(type$.void_Function_Object._as(onError), t2, t3); - t1._state = (t1._state & 4294967231) >>> 0; + A.MapBase.prototype = { + cast$2$0(_, RK, RV) { + var t1 = A._instanceType(this); + return A.Map_castFrom(this, t1._eval$1("MapBase.K"), t1._eval$1("MapBase.V"), RK, RV); }, - $signature: 0 - }; - A._BufferingStreamSubscription__sendDone_sendDone.prototype = { - call$0() { - var t1 = this.$this, - t2 = t1._state; - if ((t2 & 16) === 0) - return; - t1._state = (t2 | 74) >>> 0; - t1._zone.runGuarded$1(t1._onDone); - t1._state = (t1._state & 4294967231) >>> 0; + forEach$1(_, action) { + var t2, key, t3, + t1 = A._instanceType(this); + t1._eval$1("~(MapBase.K,MapBase.V)")._as(action); + for (t2 = this.get$keys(), t2 = t2.get$iterator(t2), t1 = t1._eval$1("MapBase.V"); t2.moveNext$0();) { + key = t2.get$current(); + t3 = this.$index(0, key); + action.call$2(key, t3 == null ? t1._as(t3) : t3); + } }, - $signature: 0 - }; - A._StreamImpl.prototype = { - listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError) { - var t1 = this.$ti; - t1._eval$1("~(1)?")._as(onData); - type$.nullable_void_Function._as(onDone); - return this._controller._subscribe$4(t1._eval$1("~(1)?")._as(onData), onError, onDone, cancelOnError === true); + map$2$1(_, transform, K2, V2) { + var result, t2, key, t3, entry, + t1 = A._instanceType(this); + t1._bind$1(K2)._bind$1(V2)._eval$1("MapEntry<1,2>(MapBase.K,MapBase.V)")._as(transform); + result = A.LinkedHashMap_LinkedHashMap$_empty(K2, V2); + for (t2 = this.get$keys(), t2 = t2.get$iterator(t2), t1 = t1._eval$1("MapBase.V"); t2.moveNext$0();) { + key = t2.get$current(); + t3 = this.$index(0, key); + entry = transform.call$2(key, t3 == null ? t1._as(t3) : t3); + result.$indexSet(0, entry.get$key(), entry.get$value()); + } + return result; }, - listen$1(onData) { - return this.listen$4$cancelOnError$onDone$onError(onData, null, null, null); + map$1(_, transform) { + var t1 = type$.dynamic; + return this.map$2$1(0, transform, t1, t1); }, - listen$2$onError(onData, onError) { - return this.listen$4$cancelOnError$onDone$onError(onData, null, null, onError); + containsKey$1(key) { + return this.get$keys().contains$1(0, key); }, - listen$3$onDone$onError(onData, onDone, onError) { - return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError); + get$length(_) { + var t1 = this.get$keys(); + return t1.get$length(t1); }, - listen$2$cancelOnError(onData, cancelOnError) { - return this.listen$4$cancelOnError$onDone$onError(onData, cancelOnError, null, null); + get$isEmpty(_) { + var t1 = this.get$keys(); + return t1.get$isEmpty(t1); }, - listen$2$onDone(onData, onDone) { - return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, null); - } - }; - A._DelayedEvent.prototype = { - set$next(_, next) { - this.next = type$.nullable__DelayedEvent_dynamic._as(next); + toString$0(_) { + return A.MapBase_mapToString(this); }, - get$next(receiver) { - return this.next; - } - }; - A._DelayedData.prototype = { - perform$1(dispatch) { - this.$ti._eval$1("_EventDispatch<1>")._as(dispatch)._sendData$1(this.value); - } - }; - A._DelayedError.prototype = { - perform$1(dispatch) { - dispatch._sendError$2(this.error, this.stackTrace); - } + $isMap: 1 }; - A._DelayedDone.prototype = { - perform$1(dispatch) { - dispatch._sendDone$0(); - }, - get$next(_) { - return null; - }, - set$next(_, _0) { - throw A.wrapException(A.StateError$("No events after a done.")); + A.MapBase_mapToString_closure.prototype = { + call$2(k, v) { + var t2, + t1 = this._box_0; + if (!t1.first) + this.result._contents += ", "; + t1.first = false; + t1 = this.result; + t2 = A.S(k); + t2 = t1._contents += t2; + t1._contents = t2 + ": "; + t2 = A.S(v); + t1._contents += t2; }, - $is_DelayedEvent: 1 + $signature: 20 }; - A._PendingEvents.prototype = { - schedule$1(dispatch) { - var t1, _this = this; - _this.$ti._eval$1("_EventDispatch<1>")._as(dispatch); - t1 = _this._state; - if (t1 === 1) - return; - if (t1 >= 1) { - _this._state = 1; - return; - } - A.scheduleMicrotask(new A._PendingEvents_schedule_closure(_this, dispatch)); - _this._state = 1; - }, - add$1(_, $event) { - var _this = this, - lastEvent = _this.lastPendingEvent; - if (lastEvent == null) - _this.firstPendingEvent = _this.lastPendingEvent = $event; - else { - lastEvent.set$next(0, $event); - _this.lastPendingEvent = $event; - } + A._UnmodifiableMapMixin.prototype = { + $indexSet(_, key, value) { + var t1 = A._instanceType(this); + t1._precomputed1._as(key); + t1._rest[1]._as(value); + throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map")); } }; - A._PendingEvents_schedule_closure.prototype = { - call$0() { - var t2, $event, nextEvent, - t1 = this.$this, - oldState = t1._state; - t1._state = 0; - if (oldState === 3) - return; - t2 = t1.$ti._eval$1("_EventDispatch<1>")._as(this.dispatch); - $event = t1.firstPendingEvent; - nextEvent = $event.get$next($event); - t1.firstPendingEvent = nextEvent; - if (nextEvent == null) - t1.lastPendingEvent = null; - $event.perform$1(t2); - }, - $signature: 0 - }; - A._StreamIterator.prototype = {}; - A._cancelAndValue_closure.prototype = { - call$0() { - return this.future._complete$1(this.value); + A.MapView.prototype = { + cast$2$0(_, RK, RV) { + return this._collection$_map.cast$2$0(0, RK, RV); }, - $signature: 0 - }; - A._ForwardingStream.prototype = { - listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError) { - var t2, t3, t4, t5, t6, t7, t8, - t1 = this.$ti; - t1._eval$1("~(2)?")._as(onData); - type$.nullable_void_Function._as(onDone); - t2 = t1._rest[1]; - t3 = $.Zone__current; - t4 = cancelOnError === true ? 1 : 0; - t5 = onError != null ? 32 : 0; - t6 = A._BufferingStreamSubscription__registerDataHandler(t3, onData, t2); - t7 = A._BufferingStreamSubscription__registerErrorHandler(t3, onError); - t8 = onDone == null ? A.async___nullDoneHandler$closure() : onDone; - t2 = new A._ForwardingStreamSubscription(this, t6, t7, t3.registerCallback$1$1(t8, type$.void), t3, t4 | t5, t1._eval$1("@<1>")._bind$1(t2)._eval$1("_ForwardingStreamSubscription<1,2>")); - t2.set$_subscription(this._source.listen$3$onDone$onError(t2.get$_handleData(), t2.get$_handleDone(), t2.get$_handleError())); - return t2; + $index(_, key) { + return this._collection$_map.$index(0, key); }, - listen$2$onError(onData, onError) { - return this.listen$4$cancelOnError$onDone$onError(onData, null, null, onError); + $indexSet(_, key, value) { + var t1 = A._instanceType(this); + this._collection$_map.$indexSet(0, t1._precomputed1._as(key), t1._rest[1]._as(value)); }, - listen$3$onDone$onError(onData, onDone, onError) { - return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError); - } - }; - A._ForwardingStreamSubscription.prototype = { - _add$1(_, data) { - this.$ti._rest[1]._as(data); - if ((this._state & 2) !== 0) - return; - this.super$_BufferingStreamSubscription$_add(0, data); + containsKey$1(key) { + return this._collection$_map.containsKey$1(key); }, - _addError$2(error, stackTrace) { - if ((this._state & 2) !== 0) - return; - this.super$_BufferingStreamSubscription$_addError(error, stackTrace); + forEach$1(_, action) { + this._collection$_map.forEach$1(0, A._instanceType(this)._eval$1("~(1,2)")._as(action)); }, - _onPause$0() { - var t1 = this._subscription; - if (t1 != null) - t1.pause$0(0); + get$isEmpty(_) { + var t1 = this._collection$_map; + return t1.get$isEmpty(t1); }, - _onResume$0() { - var t1 = this._subscription; - if (t1 != null) - t1.resume$0(0); + get$length(_) { + var t1 = this._collection$_map; + return t1.get$length(t1); }, - _onCancel$0() { - var subscription = this._subscription; - if (subscription != null) { - this.set$_subscription(null); - return subscription.cancel$0(0); - } - return null; + get$keys() { + return this._collection$_map.get$keys(); }, - _handleData$1(data) { - this._stream._handleData$2(this.$ti._precomputed1._as(data), this); + toString$0(_) { + return this._collection$_map.toString$0(0); }, - _handleError$2(error, stackTrace) { - var t1; - type$.StackTrace._as(stackTrace); - t1 = error == null ? type$.Object._as(error) : error; - this._stream.$ti._eval$1("_EventSink<2>")._as(this)._addError$2(t1, stackTrace); + map$2$1(_, transform, K2, V2) { + return this._collection$_map.map$2$1(0, A._instanceType(this)._bind$1(K2)._bind$1(V2)._eval$1("MapEntry<1,2>(3,4)")._as(transform), K2, V2); }, - _handleDone$0() { - this._stream.$ti._eval$1("_EventSink<2>")._as(this)._close$0(); + map$1(_, transform) { + var t1 = type$.dynamic; + return this.map$2$1(0, transform, t1, t1); }, - set$_subscription(_subscription) { - this._subscription = this.$ti._eval$1("StreamSubscription<1>?")._as(_subscription); - } + $isMap: 1 }; - A._MapStream.prototype = { - _handleData$2(inputEvent, sink) { - var outputEvent, e, s, exception, error, stackTrace, replacement, - t1 = this.$ti; - t1._precomputed1._as(inputEvent); - t1._eval$1("_EventSink<2>")._as(sink); - outputEvent = null; - try { - outputEvent = this._transform.call$1(inputEvent); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - error = e; - stackTrace = s; - replacement = $.Zone__current.errorCallback$2(error, stackTrace); - if (replacement != null) { - error = replacement.error; - stackTrace = replacement.stackTrace; - } - sink._addError$2(error, stackTrace); - return; - } - sink._add$1(0, outputEvent); + A.UnmodifiableMapView.prototype = { + cast$2$0(_, RK, RV) { + return new A.UnmodifiableMapView(this._collection$_map.cast$2$0(0, RK, RV), RK._eval$1("@<0>")._bind$1(RV)._eval$1("UnmodifiableMapView<1,2>")); } }; - A._ZoneFunction.prototype = {}; - A._ZoneSpecification.prototype = {$isZoneSpecification: 1}; - A._ZoneDelegate.prototype = {$isZoneDelegate: 1}; - A._Zone.prototype = { - _processUncaughtError$3(zone, error, stackTrace) { - var implZone, handler, parentDelegate, parentZone, currentZone, e, s, implementation, t1, exception; - type$.StackTrace._as(stackTrace); - implementation = this.get$_handleUncaughtError(); - implZone = implementation.zone; - if (implZone === B.C__RootZone) { - A._rootHandleError(error, stackTrace); - return; - } - handler = implementation.$function; - parentDelegate = implZone.get$_parentDelegate(); - t1 = J.get$parent$z(implZone); - t1.toString; - parentZone = t1; - currentZone = $.Zone__current; - try { - $.Zone__current = parentZone; - handler.call$5(implZone, parentDelegate, zone, error, stackTrace); - $.Zone__current = currentZone; - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - $.Zone__current = currentZone; - t1 = error === e ? stackTrace : s; - parentZone._processUncaughtError$3(implZone, e, t1); - } + A.ListQueue.prototype = { + get$iterator(_) { + var _this = this; + return new A._ListQueueIterator(_this, _this._tail, _this._modificationCount, _this._head, _this.$ti._eval$1("_ListQueueIterator<1>")); }, - $isZone: 1 - }; - A._CustomZone.prototype = { - get$_delegate() { - var t1 = this._delegateCache; - return t1 == null ? this._delegateCache = new A._ZoneDelegate(this) : t1; + get$isEmpty(_) { + return this._head === this._tail; }, - get$_parentDelegate() { - return this.parent.get$_delegate(); + get$length(_) { + return (this._tail - this._head & this._table.length - 1) >>> 0; }, - get$errorZone() { - return this._handleUncaughtError.zone; + get$first(_) { + var t2, _this = this, + t1 = _this._head; + if (t1 === _this._tail) + throw A.wrapException(A.IterableElementError_noElement()); + t2 = _this._table; + if (!(t1 < t2.length)) + return A.ioore(t2, t1); + t1 = t2[t1]; + return t1 == null ? _this.$ti._precomputed1._as(t1) : t1; }, - runGuarded$1(f) { - var e, s, exception; - type$.void_Function._as(f); - try { - this.run$1$1(f, type$.void); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - this._processUncaughtError$3(this, type$.Object._as(e), type$.StackTrace._as(s)); - } + elementAt$1(_, index) { + var t2, t3, _this = this, + t1 = _this.get$length(0); + if (0 > index || index >= t1) + A.throwExpression(A.IndexError$withLength(index, t1, _this, null, "index")); + t1 = _this._table; + t2 = t1.length; + t3 = (_this._head + index & t2 - 1) >>> 0; + if (!(t3 >= 0 && t3 < t2)) + return A.ioore(t1, t3); + t3 = t1[t3]; + return t3 == null ? _this.$ti._precomputed1._as(t3) : t3; }, - runUnaryGuarded$1$2(f, arg, $T) { - var e, s, exception; - $T._eval$1("~(0)")._as(f); - $T._as(arg); - try { - this.runUnary$2$2(f, arg, type$.void, $T); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - this._processUncaughtError$3(this, type$.Object._as(e), type$.StackTrace._as(s)); - } + toString$0(_) { + return A.Iterable_iterableToFullString(this, "{", "}"); }, - runBinaryGuarded$2$3(f, arg1, arg2, T1, T2) { - var e, s, exception; - T1._eval$1("@<0>")._bind$1(T2)._eval$1("~(1,2)")._as(f); - T1._as(arg1); - T2._as(arg2); - try { - this.runBinary$3$3(f, arg1, arg2, type$.void, T1, T2); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - this._processUncaughtError$3(this, type$.Object._as(e), type$.StackTrace._as(s)); - } - }, - bindCallback$1$1(f, $R) { - return new A._CustomZone_bindCallback_closure(this, this.registerCallback$1$1($R._eval$1("0()")._as(f), $R), $R); - }, - bindUnaryCallback$2$1(f, $R, $T) { - return new A._CustomZone_bindUnaryCallback_closure(this, this.registerUnaryCallback$2$1($R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f), $R, $T), $T, $R); - }, - bindCallbackGuarded$1(f) { - return new A._CustomZone_bindCallbackGuarded_closure(this, this.registerCallback$1$1(type$.void_Function._as(f), type$.void)); - }, - bindUnaryCallbackGuarded$1$1(f, $T) { - return new A._CustomZone_bindUnaryCallbackGuarded_closure(this, this.registerUnaryCallback$2$1($T._eval$1("~(0)")._as(f), type$.void, $T), $T); - }, - handleUncaughtError$2(error, stackTrace) { - this._processUncaughtError$3(this, error, type$.StackTrace._as(stackTrace)); - }, - fork$2$specification$zoneValues(specification, zoneValues) { - var implementation = this._fork, - t1 = implementation.zone; - return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, specification, zoneValues); - }, - run$1$1(f, $R) { - var implementation, t1; - $R._eval$1("0()")._as(f); - implementation = this._run; - t1 = implementation.zone; - return implementation.$function.call$1$4(t1, t1.get$_parentDelegate(), this, f, $R); - }, - runUnary$2$2(f, arg, $R, $T) { - var implementation, t1; - $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); - $T._as(arg); - implementation = this._runUnary; - t1 = implementation.zone; - return implementation.$function.call$2$5(t1, t1.get$_parentDelegate(), this, f, arg, $R, $T); - }, - runBinary$3$3(f, arg1, arg2, $R, T1, T2) { - var implementation, t1; - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); - T1._as(arg1); - T2._as(arg2); - implementation = this._runBinary; - t1 = implementation.zone; - return implementation.$function.call$3$6(t1, t1.get$_parentDelegate(), this, f, arg1, arg2, $R, T1, T2); - }, - registerCallback$1$1(callback, $R) { - var implementation, t1; - $R._eval$1("0()")._as(callback); - implementation = this._registerCallback; - t1 = implementation.zone; - return implementation.$function.call$1$4(t1, t1.get$_parentDelegate(), this, callback, $R); - }, - registerUnaryCallback$2$1(callback, $R, $T) { - var implementation, t1; - $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(callback); - implementation = this._registerUnaryCallback; - t1 = implementation.zone; - return implementation.$function.call$2$4(t1, t1.get$_parentDelegate(), this, callback, $R, $T); - }, - registerBinaryCallback$3$1(callback, $R, T1, T2) { - var implementation, t1; - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(callback); - implementation = this._registerBinaryCallback; - t1 = implementation.zone; - return implementation.$function.call$3$4(t1, t1.get$_parentDelegate(), this, callback, $R, T1, T2); - }, - errorCallback$2(error, stackTrace) { - var implementation, implementationZone; - type$.nullable_StackTrace._as(stackTrace); - A.checkNotNullable(error, "error", type$.Object); - implementation = this._errorCallback; - implementationZone = implementation.zone; - if (implementationZone === B.C__RootZone) - return null; - return implementation.$function.call$5(implementationZone, implementationZone.get$_parentDelegate(), this, error, stackTrace); - }, - scheduleMicrotask$1(f) { - var implementation, t1; - type$.void_Function._as(f); - implementation = this._scheduleMicrotask; - t1 = implementation.zone; - return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f); + removeFirst$0() { + var t2, result, _this = this, + t1 = _this._head; + if (t1 === _this._tail) + throw A.wrapException(A.IterableElementError_noElement()); + ++_this._modificationCount; + t2 = _this._table; + if (!(t1 < t2.length)) + return A.ioore(t2, t1); + result = t2[t1]; + if (result == null) + result = _this.$ti._precomputed1._as(result); + B.JSArray_methods.$indexSet(t2, t1, null); + _this._head = (_this._head + 1 & _this._table.length - 1) >>> 0; + return result; }, - createTimer$2(duration, f) { - var implementation, t1; - type$.void_Function._as(f); - implementation = this._createTimer; - t1 = implementation.zone; - return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, duration, f); + removeLast$0(_) { + var t3, result, _this = this, + t1 = _this._head, + t2 = _this._tail; + if (t1 === t2) + throw A.wrapException(A.IterableElementError_noElement()); + ++_this._modificationCount; + t1 = _this._table; + t3 = t1.length; + t2 = (t2 - 1 & t3 - 1) >>> 0; + _this._tail = t2; + if (!(t2 >= 0 && t2 < t3)) + return A.ioore(t1, t2); + result = t1[t2]; + if (result == null) + result = _this.$ti._precomputed1._as(result); + B.JSArray_methods.$indexSet(t1, t2, null); + return result; }, - print$1(_, line) { - var implementation = this._print, - t1 = implementation.zone; - return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, line); + _collection$_add$1(element) { + var t2, t3, newTable, split, _this = this, + t1 = _this.$ti; + t1._precomputed1._as(element); + B.JSArray_methods.$indexSet(_this._table, _this._tail, element); + t2 = _this._tail; + t3 = _this._table.length; + t2 = (t2 + 1 & t3 - 1) >>> 0; + _this._tail = t2; + if (_this._head === t2) { + newTable = A.List_List$filled(t3 * 2, null, false, t1._eval$1("1?")); + t1 = _this._table; + t2 = _this._head; + split = t1.length - t2; + B.JSArray_methods.setRange$4(newTable, 0, split, t1, t2); + B.JSArray_methods.setRange$4(newTable, split, split + _this._head, _this._table, 0); + _this._head = 0; + _this._tail = _this._table.length; + _this.set$_table(newTable); + } + ++_this._modificationCount; }, - set$_handleUncaughtError(_handleUncaughtError) { - this._handleUncaughtError = type$._ZoneFunction_of_void_Function_Zone_ZoneDelegate_Zone_Object_StackTrace._as(_handleUncaughtError); + set$_table(_table) { + this._table = this.$ti._eval$1("List<1?>")._as(_table); }, - get$_run() { - return this._run; + $isQueue: 1 + }; + A._ListQueueIterator.prototype = { + get$current() { + var t1 = this._collection$_current; + return t1 == null ? this.$ti._precomputed1._as(t1) : t1; }, - get$_runUnary() { - return this._runUnary; + moveNext$0() { + var t2, t3, _this = this, + t1 = _this._queue; + if (_this._modificationCount !== t1._modificationCount) + A.throwExpression(A.ConcurrentModificationError$(t1)); + t2 = _this._position; + if (t2 === _this._end) { + _this.set$_collection$_current(null); + return false; + } + t3 = t1._table; + if (!(t2 < t3.length)) + return A.ioore(t3, t2); + _this.set$_collection$_current(t3[t2]); + _this._position = (_this._position + 1 & t1._table.length - 1) >>> 0; + return true; }, - get$_runBinary() { - return this._runBinary; + set$_collection$_current(_current) { + this._collection$_current = this.$ti._eval$1("1?")._as(_current); }, - get$_registerCallback() { - return this._registerCallback; + $isIterator: 1 + }; + A.SetBase.prototype = { + get$isEmpty(_) { + return this.get$length(this) === 0; }, - get$_registerUnaryCallback() { - return this._registerUnaryCallback; + get$isNotEmpty(_) { + return this.get$length(this) !== 0; }, - get$_registerBinaryCallback() { - return this._registerBinaryCallback; + addAll$1(_, elements) { + var t1; + A._instanceType(this)._eval$1("Iterable<1>")._as(elements); + for (t1 = elements.get$iterator(elements); t1.moveNext$0();) + this.add$1(0, t1.get$current()); }, - get$_errorCallback() { - return this._errorCallback; + containsAll$1(other) { + var t1, t2, o; + for (t1 = other._set$_set, t1 = A._LinkedHashSetIterator$(t1, t1._collection$_modifications, A._instanceType(t1)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) { + o = t1._collection$_current; + if (!this.contains$1(0, o == null ? t2._as(o) : o)) + return false; + } + return true; }, - get$_scheduleMicrotask() { - return this._scheduleMicrotask; + map$1$1(_, f, $T) { + var t1 = A._instanceType(this); + return new A.EfficientLengthMappedIterable(this, t1._bind$1($T)._eval$1("1(2)")._as(f), t1._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>")); }, - get$_createTimer() { - return this._createTimer; + map$1(_, f) { + return this.map$1$1(0, f, type$.dynamic); }, - get$_createPeriodicTimer() { - return this._createPeriodicTimer; + toString$0(_) { + return A.Iterable_iterableToFullString(this, "{", "}"); }, - get$_print() { - return this._print; + take$1(_, n) { + return A.TakeIterable_TakeIterable(this, n, A._instanceType(this)._precomputed1); }, - get$_fork() { - return this._fork; + skip$1(_, n) { + return A.SkipIterable_SkipIterable(this, n, A._instanceType(this)._precomputed1); }, - get$_handleUncaughtError() { - return this._handleUncaughtError; + get$first(_) { + var it = this.get$iterator(this); + if (!it.moveNext$0()) + throw A.wrapException(A.IterableElementError_noElement()); + return it.get$current(); }, - get$parent(receiver) { - return this.parent; + elementAt$1(_, index) { + var iterator, skipCount; + A.RangeError_checkNotNegative(index, "index"); + iterator = this.get$iterator(this); + for (skipCount = index; iterator.moveNext$0();) { + if (skipCount === 0) + return iterator.get$current(); + --skipCount; + } + throw A.wrapException(A.IndexError$withLength(index, index - skipCount, this, null, "index")); }, - get$_async$_map() { - return this._async$_map; - } + $isEfficientLengthIterable: 1, + $isIterable: 1, + $isSet: 1 }; - A._CustomZone_bindCallback_closure.prototype = { - call$0() { - return this.$this.run$1$1(this.registered, this.R); + A._SetBase.prototype = {}; + A._SplayTreeNode.prototype = { + set$_left(_left) { + this._left = this.$ti._eval$1("_SplayTreeNode.1?")._as(_left); }, - $signature() { - return this.R._eval$1("0()"); + set$_right(_right) { + this._right = this.$ti._eval$1("_SplayTreeNode.1?")._as(_right); } }; - A._CustomZone_bindUnaryCallback_closure.prototype = { - call$1(arg) { - var _this = this, - t1 = _this.T; - return _this.$this.runUnary$2$2(_this.registered, t1._as(arg), _this.R, t1); + A._SplayTreeSetNode.prototype = {}; + A._SplayTree.prototype = { + _splay$1(key) { + var root, compare, comp, current, newTreeLeft, left, newTreeRight, right, currentLeft, currentLeft0, currentRight, currentRight0, _this = this, _null = null; + _this.$ti._eval$1("_SplayTree.K")._as(key); + root = _this._root; + if (root == null) { + _this._compare.call$2(key, key); + return -1; + } + compare = _this._compare; + for (comp = _null, current = root, newTreeLeft = comp, left = newTreeLeft, newTreeRight = left, right = newTreeRight; true;) { + comp = compare.call$2(current.key, key); + if (comp > 0) { + currentLeft = current._left; + if (currentLeft == null) + break; + comp = compare.call$2(currentLeft.key, key); + if (comp > 0) { + current.set$_left(currentLeft._right); + currentLeft.set$_right(current); + currentLeft0 = currentLeft._left; + if (currentLeft0 == null) { + current = currentLeft; + break; + } + current = currentLeft; + currentLeft = currentLeft0; + } + if (right == null) + newTreeRight = current; + else + right.set$_left(current); + right = current; + current = currentLeft; + } else { + if (comp < 0) { + currentRight = current._right; + if (currentRight == null) + break; + comp = compare.call$2(currentRight.key, key); + if (comp < 0) { + current.set$_right(currentRight._left); + currentRight.set$_left(current); + currentRight0 = currentRight._right; + if (currentRight0 == null) { + current = currentRight; + break; + } + current = currentRight; + currentRight = currentRight0; + } + if (left == null) + newTreeLeft = current; + else + left.set$_right(current); + } else + break; + left = current; + current = currentRight; + } + } + if (left != null) { + left.set$_right(current._left); + current.set$_left(newTreeLeft); + } + if (right != null) { + right.set$_left(current._right); + current.set$_right(newTreeRight); + } + if (_this._root !== current) { + _this.set$_root(current); + ++_this._splayCount; + } + return comp; }, - $signature() { - return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)"); - } - }; - A._CustomZone_bindCallbackGuarded_closure.prototype = { - call$0() { - return this.$this.runGuarded$1(this.registered); + _splayMin$1(node) { + var nextLeft, current, nextLeft0; + this.$ti._eval$1("_SplayTree.1")._as(node); + nextLeft = node._left; + for (current = node; nextLeft != null; current = nextLeft, nextLeft = nextLeft0) { + current.set$_left(nextLeft._right); + nextLeft.set$_right(current); + nextLeft0 = nextLeft._left; + } + return current; }, - $signature: 0 - }; - A._CustomZone_bindUnaryCallbackGuarded_closure.prototype = { - call$1(arg) { - var t1 = this.T; - return this.$this.runUnaryGuarded$1$2(this.registered, t1._as(arg), t1); + _splayMax$1(node) { + var nextRight, current, nextRight0; + this.$ti._eval$1("_SplayTree.1")._as(node); + nextRight = node._right; + for (current = node; nextRight != null; current = nextRight, nextRight = nextRight0) { + current.set$_right(nextRight._left); + nextRight.set$_left(current); + nextRight0 = nextRight._right; + } + return current; }, - $signature() { - return this.T._eval$1("~(0)"); + _remove$1(key) { + var root, left, t1, root0, _this = this; + _this.$ti._eval$1("_SplayTree.K")._as(key); + if (_this._root == null) + return null; + if (_this._splay$1(key) !== 0) + return null; + root = _this._root; + left = root._left; + --_this._count; + t1 = root._right; + if (left == null) + _this.set$_root(t1); + else { + root0 = _this._splayMax$1(left); + root0.set$_right(t1); + _this.set$_root(root0); + } + ++_this._modificationCount; + return root; + }, + _addNewRoot$2(node, comp) { + var root, _this = this; + _this.$ti._eval$1("_SplayTree.1")._as(node); + ++_this._count; + ++_this._modificationCount; + root = _this._root; + if (root == null) { + _this.set$_root(node); + return; + } + if (comp < 0) { + node.set$_left(root); + node.set$_right(root._right); + root.set$_right(null); + } else { + node.set$_right(root); + node.set$_left(root._left); + root.set$_left(null); + } + _this.set$_root(node); + }, + get$_collection$_first() { + var _this = this, + root = _this._root; + if (root == null) + return null; + _this.set$_root(_this._splayMin$1(root)); + return _this._root; } }; - A._rootHandleError_closure.prototype = { - call$0() { - A.Error_throwWithStackTrace(this.error, this.stackTrace); + A._SplayTreeIterator.prototype = { + get$current() { + var t1 = this._path; + if (t1.length === 0) { + this.$ti._eval$1("_SplayTreeIterator.T")._as(null); + return null; + } + return this.$ti._rest[1]._as(B.JSArray_methods.get$last(t1)).key; }, - $signature: 0 + moveNext$0() { + var node, next, _this = this, + t1 = _this._modificationCount, + t2 = _this._tree, + t3 = t2._modificationCount; + if (t1 !== t3) { + if (t1 == null) { + _this._modificationCount = t3; + node = t2._root; + for (t1 = _this._path; node != null;) { + B.JSArray_methods.add$1(t1, node); + node = node._left; + } + return t1.length !== 0; + } + throw A.wrapException(A.ConcurrentModificationError$(t2)); + } + t1 = _this._path; + if (t1.length === 0) + return false; + if (_this._splayCount !== t2._splayCount) { + t3 = _this.$ti._eval$1("_SplayTreeIterator.K")._as(B.JSArray_methods.get$last(t1).key); + B.JSArray_methods.clear$0(t1); + t2._splay$1(t3); + t3 = t2._root; + t3.toString; + B.JSArray_methods.add$1(t1, t3); + _this._splayCount = t2._splayCount; + } + node = B.JSArray_methods.get$last(t1); + next = node._right; + if (next != null) { + for (; next != null;) { + B.JSArray_methods.add$1(t1, next); + next = next._left; + } + return true; + } + if (0 >= t1.length) + return A.ioore(t1, -1); + t1.pop(); + while (true) { + if (!(t1.length !== 0 && B.JSArray_methods.get$last(t1)._right === node)) + break; + if (0 >= t1.length) + return A.ioore(t1, -1); + node = t1.pop(); + } + return t1.length !== 0; + }, + $isIterator: 1 }; - A._RootZone.prototype = { - get$_run() { - return B._ZoneFunction__RootZone__rootRun; + A._SplayTreeKeyIterator.prototype = {}; + A.SplayTreeSet.prototype = { + get$iterator(_) { + var t1 = this.$ti; + return new A._SplayTreeKeyIterator(this, A._setArrayType([], t1._eval$1("JSArray<_SplayTreeSetNode<1>>")), this._splayCount, t1._eval$1("_SplayTreeKeyIterator<1,_SplayTreeSetNode<1>>")); }, - get$_runUnary() { - return B._ZoneFunction__RootZone__rootRunUnary; + get$length(_) { + return this._count; }, - get$_runBinary() { - return B._ZoneFunction__RootZone__rootRunBinary; + get$isEmpty(_) { + return this._root == null; }, - get$_registerCallback() { - return B._ZoneFunction__RootZone__rootRegisterCallback; + get$isNotEmpty(_) { + return this._root != null; }, - get$_registerUnaryCallback() { - return B._ZoneFunction_QOa; + get$first(_) { + if (this._count === 0) + throw A.wrapException(A.IterableElementError_noElement()); + return this.get$_collection$_first().key; }, - get$_registerBinaryCallback() { - return B._ZoneFunction_qxw; + contains$1(_, element) { + return A.boolConversionCheck(this._validKey.call$1(element)) && this._splay$1(this.$ti._precomputed1._as(element)) === 0; }, - get$_errorCallback() { - return B._ZoneFunction__RootZone__rootErrorCallback; + add$1(_, element) { + return this._collection$_add$1(this.$ti._precomputed1._as(element)); }, - get$_scheduleMicrotask() { - return B._ZoneFunction__RootZone__rootScheduleMicrotask; + _collection$_add$1(element) { + var compare, + t1 = this.$ti; + t1._precomputed1._as(element); + compare = this._splay$1(element); + if (compare === 0) + return false; + this._addNewRoot$2(new A._SplayTreeSetNode(element, t1._eval$1("_SplayTreeSetNode<1>")), compare); + return true; }, - get$_createTimer() { - return B._ZoneFunction__RootZone__rootCreateTimer; + remove$1(_, object) { + if (!A.boolConversionCheck(this._validKey.call$1(object))) + return false; + return this._remove$1(this.$ti._precomputed1._as(object)) != null; }, - get$_createPeriodicTimer() { - return B._ZoneFunction_kWM; + addAll$1(_, elements) { + var t1; + for (t1 = J.get$iterator$ax(this.$ti._eval$1("Iterable<1>")._as(elements)); t1.moveNext$0();) + this._collection$_add$1(t1.get$current()); }, - get$_print() { - return B._ZoneFunction__RootZone__rootPrint; - }, - get$_fork() { - return B._ZoneFunction__RootZone__rootFork; - }, - get$_handleUncaughtError() { - return B._ZoneFunction_NIe; + toString$0(_) { + return A.Iterable_iterableToFullString(this, "{", "}"); }, - get$parent(_) { - return null; + set$_root(_root) { + this._root = this.$ti._eval$1("_SplayTreeSetNode<1>?")._as(_root); }, - get$_async$_map() { - return $.$get$_RootZone__rootMap(); + $isEfficientLengthIterable: 1, + $isSet: 1 + }; + A.SplayTreeSet_closure.prototype = { + call$1(v) { + return this.E._is(v); }, - get$_delegate() { - var t1 = $._RootZone__rootDelegate; - return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1; + $signature: 18 + }; + A._SplayTreeSet__SplayTree_Iterable.prototype = {}; + A._SplayTreeSet__SplayTree_Iterable_SetMixin.prototype = {}; + A._UnmodifiableMapView_MapView__UnmodifiableMapMixin.prototype = {}; + A._JsonMap.prototype = { + $index(_, key) { + var result, + t1 = this._processed; + if (t1 == null) + return this._data.$index(0, key); + else if (typeof key != "string") + return null; + else { + result = t1[key]; + return typeof result == "undefined" ? this._process$1(key) : result; + } }, - get$_parentDelegate() { - var t1 = $._RootZone__rootDelegate; - return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1; + get$length(_) { + return this._processed == null ? this._data.__js_helper$_length : this._convert$_computeKeys$0().length; }, - get$errorZone() { - return this; + get$isEmpty(_) { + return this.get$length(0) === 0; }, - runGuarded$1(f) { - var e, s, exception; - type$.void_Function._as(f); - try { - if (B.C__RootZone === $.Zone__current) { - f.call$0(); - return; - } - A._rootRun(null, null, this, f, type$.void); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - A._rootHandleError(type$.Object._as(e), type$.StackTrace._as(s)); + get$keys() { + if (this._processed == null) { + var t1 = this._data; + return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")); } + return new A._JsonMapKeyIterable(this); }, - runUnaryGuarded$1$2(f, arg, $T) { - var e, s, exception; - $T._eval$1("~(0)")._as(f); - $T._as(arg); - try { - if (B.C__RootZone === $.Zone__current) { - f.call$1(arg); - return; - } - A._rootRunUnary(null, null, this, f, arg, type$.void, $T); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - A._rootHandleError(type$.Object._as(e), type$.StackTrace._as(s)); - } + $indexSet(_, key, value) { + var processed, original, _this = this; + A._asString(key); + if (_this._processed == null) + _this._data.$indexSet(0, key, value); + else if (_this.containsKey$1(key)) { + processed = _this._processed; + processed[key] = value; + original = _this._original; + if (original == null ? processed != null : original !== processed) + original[key] = null; + } else + _this._upgrade$0().$indexSet(0, key, value); }, - runBinaryGuarded$2$3(f, arg1, arg2, T1, T2) { - var e, s, exception; - T1._eval$1("@<0>")._bind$1(T2)._eval$1("~(1,2)")._as(f); - T1._as(arg1); - T2._as(arg2); - try { - if (B.C__RootZone === $.Zone__current) { - f.call$2(arg1, arg2); - return; + containsKey$1(key) { + if (this._processed == null) + return this._data.containsKey$1(key); + if (typeof key != "string") + return false; + return Object.prototype.hasOwnProperty.call(this._original, key); + }, + forEach$1(_, f) { + var keys, i, key, value, _this = this; + type$.void_Function_String_dynamic._as(f); + if (_this._processed == null) + return _this._data.forEach$1(0, f); + keys = _this._convert$_computeKeys$0(); + for (i = 0; i < keys.length; ++i) { + key = keys[i]; + value = _this._processed[key]; + if (typeof value == "undefined") { + value = A._convertJsonToDartLazy(_this._original[key]); + _this._processed[key] = value; } - A._rootRunBinary(null, null, this, f, arg1, arg2, type$.void, T1, T2); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - A._rootHandleError(type$.Object._as(e), type$.StackTrace._as(s)); + f.call$2(key, value); + if (keys !== _this._data) + throw A.wrapException(A.ConcurrentModificationError$(_this)); } }, - bindCallback$1$1(f, $R) { - return new A._RootZone_bindCallback_closure(this, $R._eval$1("0()")._as(f), $R); - }, - bindUnaryCallback$2$1(f, $R, $T) { - return new A._RootZone_bindUnaryCallback_closure(this, $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f), $T, $R); - }, - bindCallbackGuarded$1(f) { - return new A._RootZone_bindCallbackGuarded_closure(this, type$.void_Function._as(f)); - }, - bindUnaryCallbackGuarded$1$1(f, $T) { - return new A._RootZone_bindUnaryCallbackGuarded_closure(this, $T._eval$1("~(0)")._as(f), $T); - }, - handleUncaughtError$2(error, stackTrace) { - A._rootHandleError(error, type$.StackTrace._as(stackTrace)); - }, - fork$2$specification$zoneValues(specification, zoneValues) { - return A._rootFork(null, null, this, specification, zoneValues); - }, - run$1$1(f, $R) { - $R._eval$1("0()")._as(f); - if ($.Zone__current === B.C__RootZone) - return f.call$0(); - return A._rootRun(null, null, this, f, $R); - }, - runUnary$2$2(f, arg, $R, $T) { - $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); - $T._as(arg); - if ($.Zone__current === B.C__RootZone) - return f.call$1(arg); - return A._rootRunUnary(null, null, this, f, arg, $R, $T); - }, - runBinary$3$3(f, arg1, arg2, $R, T1, T2) { - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); - T1._as(arg1); - T2._as(arg2); - if ($.Zone__current === B.C__RootZone) - return f.call$2(arg1, arg2); - return A._rootRunBinary(null, null, this, f, arg1, arg2, $R, T1, T2); - }, - registerCallback$1$1(f, $R) { - return $R._eval$1("0()")._as(f); - }, - registerUnaryCallback$2$1(f, $R, $T) { - return $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); - }, - registerBinaryCallback$3$1(f, $R, T1, T2) { - return $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); - }, - errorCallback$2(error, stackTrace) { - type$.nullable_StackTrace._as(stackTrace); - return null; - }, - scheduleMicrotask$1(f) { - A._rootScheduleMicrotask(null, null, this, type$.void_Function._as(f)); + _convert$_computeKeys$0() { + var keys = type$.nullable_List_dynamic._as(this._data); + if (keys == null) + keys = this._data = A._setArrayType(Object.keys(this._original), type$.JSArray_String); + return keys; }, - createTimer$2(duration, f) { - return A.Timer__createTimer(duration, type$.void_Function._as(f)); + _upgrade$0() { + var result, keys, i, t1, key, _this = this; + if (_this._processed == null) + return _this._data; + result = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic); + keys = _this._convert$_computeKeys$0(); + for (i = 0; t1 = keys.length, i < t1; ++i) { + key = keys[i]; + result.$indexSet(0, key, _this.$index(0, key)); + } + if (t1 === 0) + B.JSArray_methods.add$1(keys, ""); + else + B.JSArray_methods.clear$0(keys); + _this._original = _this._processed = null; + return _this._data = result; }, - print$1(_, line) { - A.printString(line); + _process$1(key) { + var result; + if (!Object.prototype.hasOwnProperty.call(this._original, key)) + return null; + result = A._convertJsonToDartLazy(this._original[key]); + return this._processed[key] = result; } }; - A._RootZone_bindCallback_closure.prototype = { - call$0() { - return this.$this.run$1$1(this.f, this.R); + A._JsonMapKeyIterable.prototype = { + get$length(_) { + return this._parent.get$length(0); }, - $signature() { - return this.R._eval$1("0()"); - } - }; - A._RootZone_bindUnaryCallback_closure.prototype = { - call$1(arg) { - var _this = this, - t1 = _this.T; - return _this.$this.runUnary$2$2(_this.f, t1._as(arg), _this.R, t1); + elementAt$1(_, index) { + var t1 = this._parent; + if (t1._processed == null) + t1 = t1.get$keys().elementAt$1(0, index); + else { + t1 = t1._convert$_computeKeys$0(); + if (!(index >= 0 && index < t1.length)) + return A.ioore(t1, index); + t1 = t1[index]; + } + return t1; }, - $signature() { - return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)"); + get$iterator(_) { + var t1 = this._parent; + if (t1._processed == null) { + t1 = t1.get$keys(); + t1 = t1.get$iterator(t1); + } else { + t1 = t1._convert$_computeKeys$0(); + t1 = new J.ArrayIterator(t1, t1.length, A._arrayInstanceType(t1)._eval$1("ArrayIterator<1>")); + } + return t1; + }, + contains$1(_, key) { + return this._parent.containsKey$1(key); } }; - A._RootZone_bindCallbackGuarded_closure.prototype = { - call$0() { - return this.$this.runGuarded$1(this.f); + A.Base64Codec.prototype = { + get$encoder() { + return B.C_Base64Encoder; }, - $signature: 0 - }; - A._RootZone_bindUnaryCallbackGuarded_closure.prototype = { - call$1(arg) { - var t1 = this.T; - return this.$this.runUnaryGuarded$1$2(this.f, t1._as(arg), t1); - }, - $signature() { - return this.T._eval$1("~(0)"); - } - }; - A.runZonedGuarded_closure.prototype = { - call$5($self, $parent, zone, error, stackTrace) { - var e, s, exception, t2, - t1 = type$.StackTrace; - t1._as(stackTrace); - try { - this.parentZone.runBinary$3$3(this.onError, error, stackTrace, type$.void, type$.Object, t1); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - t2 = $parent._delegationTarget; - if (e === error) - t2._processUncaughtError$3(zone, error, stackTrace); - else - t2._processUncaughtError$3(zone, type$.Object._as(e), t1._as(s)); - } - }, - $signature: 46 - }; - A._HashMap.prototype = { - get$length(_) { - return this._collection$_length; - }, - get$isEmpty(_) { - return this._collection$_length === 0; - }, - get$keys(_) { - return new A._HashMapKeyIterable(this, A._instanceType(this)._eval$1("_HashMapKeyIterable<1>")); - }, - containsKey$1(_, key) { - var strings, nums; - if (typeof key == "string" && key !== "__proto__") { - strings = this._collection$_strings; - return strings == null ? false : strings[key] != null; - } else if (typeof key == "number" && (key & 1073741823) === key) { - nums = this._collection$_nums; - return nums == null ? false : nums[key] != null; - } else - return this._containsKey$1(key); - }, - _containsKey$1(key) { - var rest = this._collection$_rest; - if (rest == null) - return false; - return this._findBucketIndex$2(this._getBucket$2(rest, key), key) >= 0; - }, - $index(_, key) { - var strings, t1, nums; - if (typeof key == "string" && key !== "__proto__") { - strings = this._collection$_strings; - t1 = strings == null ? null : A._HashMap__getTableEntry(strings, key); - return t1; - } else if (typeof key == "number" && (key & 1073741823) === key) { - nums = this._collection$_nums; - t1 = nums == null ? null : A._HashMap__getTableEntry(nums, key); - return t1; - } else - return this._get$1(0, key); - }, - _get$1(_, key) { - var bucket, index, - rest = this._collection$_rest; - if (rest == null) - return null; - bucket = this._getBucket$2(rest, key); - index = this._findBucketIndex$2(bucket, key); - return index < 0 ? null : bucket[index + 1]; - }, - $indexSet(_, key, value) { - var strings, nums, _this = this, - t1 = A._instanceType(_this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - if (typeof key == "string" && key !== "__proto__") { - strings = _this._collection$_strings; - _this._collection$_addHashTableEntry$3(strings == null ? _this._collection$_strings = A._HashMap__newHashTable() : strings, key, value); - } else if (typeof key == "number" && (key & 1073741823) === key) { - nums = _this._collection$_nums; - _this._collection$_addHashTableEntry$3(nums == null ? _this._collection$_nums = A._HashMap__newHashTable() : nums, key, value); - } else - _this._set$2(key, value); - }, - _set$2(key, value) { - var rest, hash, bucket, index, _this = this, - t1 = A._instanceType(_this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - rest = _this._collection$_rest; - if (rest == null) - rest = _this._collection$_rest = A._HashMap__newHashTable(); - hash = _this._computeHashCode$1(key); - bucket = rest[hash]; - if (bucket == null) { - A._HashMap__setTableEntry(rest, hash, [key, value]); - ++_this._collection$_length; - _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._keys = null; - } - } - }, - forEach$1(_, action) { - var keys, $length, t2, i, key, t3, _this = this, - t1 = A._instanceType(_this); - t1._eval$1("~(1,2)")._as(action); - keys = _this._computeKeys$0(); - for ($length = keys.length, t2 = t1._precomputed1, t1 = t1._rest[1], i = 0; i < $length; ++i) { - key = keys[i]; - t2._as(key); - t3 = _this.$index(0, key); - action.call$2(key, t3 == null ? t1._as(t3) : t3); - if (keys !== _this._keys) - throw A.wrapException(A.ConcurrentModificationError$(_this)); - } - }, - _computeKeys$0() { - var strings, names, entries, index, i, nums, rest, bucket, $length, i0, _this = this, - result = _this._keys; - if (result != null) - return result; - result = A.List_List$filled(_this._collection$_length, null, false, type$.dynamic); - strings = _this._collection$_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._collection$_nums; - if (nums != null) { - names = Object.getOwnPropertyNames(nums); - entries = names.length; - for (i = 0; i < entries; ++i) { - result[index] = +names[i]; - ++index; - } - } - rest = _this._collection$_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; - } - } - } - return _this._keys = result; - }, - _collection$_addHashTableEntry$3(table, key, value) { - var t1 = A._instanceType(this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - if (table[key] == null) { - ++this._collection$_length; - this._keys = null; - } - A._HashMap__setTableEntry(table, key, value); - }, - _computeHashCode$1(key) { - return J.get$hashCode$(key) & 1073741823; - }, - _getBucket$2(table, key) { - return table[this._computeHashCode$1(key)]; - }, - _findBucketIndex$2(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; - }, - $isHashMap: 1 - }; - A._IdentityHashMap.prototype = { - _computeHashCode$1(key) { - return A.objectHashCode(key) & 1073741823; - }, - _findBucketIndex$2(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; - } - }; - A._CustomHashMap.prototype = { - $index(_, key) { - if (!A.boolConversionCheck(this._validKey.call$1(key))) - return null; - return this.super$_HashMap$_get(0, key); - }, - $indexSet(_, key, value) { - var t1 = this.$ti; - this.super$_HashMap$_set(t1._precomputed1._as(key), t1._rest[1]._as(value)); - }, - containsKey$1(_, key) { - if (!A.boolConversionCheck(this._validKey.call$1(key))) - return false; - return this.super$_HashMap$_containsKey(key); - }, - _computeHashCode$1(key) { - return this._hashCode.call$1(this.$ti._precomputed1._as(key)) & 1073741823; - }, - _findBucketIndex$2(bucket, key) { - var $length, t1, t2, i; - if (bucket == null) - return -1; - $length = bucket.length; - for (t1 = this.$ti._precomputed1, t2 = this._equals, i = 0; i < $length; i += 2) - if (A.boolConversionCheck(t2.call$2(bucket[i], t1._as(key)))) - return i; - return -1; - } - }; - A._CustomHashMap_closure.prototype = { - call$1(v) { - return this.K._is(v); - }, - $signature: 20 - }; - A._HashMapKeyIterable.prototype = { - get$length(_) { - return this._collection$_map._collection$_length; - }, - get$isEmpty(_) { - return this._collection$_map._collection$_length === 0; - }, - get$isNotEmpty(_) { - return this._collection$_map._collection$_length !== 0; - }, - get$iterator(_) { - var t1 = this._collection$_map; - return new A._HashMapKeyIterator(t1, t1._computeKeys$0(), this.$ti._eval$1("_HashMapKeyIterator<1>")); - }, - contains$1(_, element) { - return this._collection$_map.containsKey$1(0, element); - } - }; - A._HashMapKeyIterator.prototype = { - get$current(_) { - var t1 = this._collection$_current; - return t1 == null ? this.$ti._precomputed1._as(t1) : t1; - }, - moveNext$0() { - var _this = this, - keys = _this._keys, - offset = _this._offset, - t1 = _this._collection$_map; - if (keys !== t1._keys) - throw A.wrapException(A.ConcurrentModificationError$(t1)); - else if (offset >= keys.length) { - _this.set$_collection$_current(null); - return false; - } else { - _this.set$_collection$_current(keys[offset]); - _this._offset = offset + 1; - return true; - } - }, - set$_collection$_current(_current) { - this._collection$_current = this.$ti._eval$1("1?")._as(_current); - }, - $isIterator: 1 - }; - A._HashSet.prototype = { - get$iterator(_) { - return new A._HashSetIterator(this, this._computeElements$0(), A._instanceType(this)._eval$1("_HashSetIterator<1>")); - }, - get$length(_) { - return this._collection$_length; - }, - get$isEmpty(_) { - return this._collection$_length === 0; - }, - get$isNotEmpty(_) { - return this._collection$_length !== 0; - }, - contains$1(_, object) { - var strings, nums; - if (typeof object == "string" && object !== "__proto__") { - strings = this._collection$_strings; - return strings == null ? false : strings[object] != null; - } else if (typeof object == "number" && (object & 1073741823) === object) { - nums = this._collection$_nums; - return nums == null ? false : nums[object] != null; - } else - return this._contains$1(object); - }, - _contains$1(object) { - var rest = this._collection$_rest; - if (rest == null) - return false; - return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0; - }, - add$1(_, element) { - var strings, nums, _this = this; - A._instanceType(_this)._precomputed1._as(element); - if (typeof element == "string" && element !== "__proto__") { - strings = _this._collection$_strings; - return _this._collection$_addHashTableEntry$2(strings == null ? _this._collection$_strings = A._HashSet__newHashTable() : strings, element); - } else if (typeof element == "number" && (element & 1073741823) === element) { - nums = _this._collection$_nums; - return _this._collection$_addHashTableEntry$2(nums == null ? _this._collection$_nums = A._HashSet__newHashTable() : nums, element); - } else - return _this._collection$_add$1(0, element); - }, - _collection$_add$1(_, element) { - var rest, hash, bucket, _this = this; - A._instanceType(_this)._precomputed1._as(element); - rest = _this._collection$_rest; - if (rest == null) - rest = _this._collection$_rest = A._HashSet__newHashTable(); - 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$_elements = null; - return true; - }, - remove$1(_, object) { - var _this = this; - if (typeof object == "string" && object !== "__proto__") - return _this._collection$_removeHashTableEntry$2(_this._collection$_strings, object); - else if (typeof object == "number" && (object & 1073741823) === object) - return _this._collection$_removeHashTableEntry$2(_this._collection$_nums, object); - else - return _this._remove$1(0, object); - }, - _remove$1(_, object) { - var hash, bucket, index, _this = this, - rest = _this._collection$_rest; - if (rest == null) - return false; - hash = _this._computeHashCode$1(object); - bucket = rest[hash]; - index = _this._findBucketIndex$2(bucket, object); - if (index < 0) - return false; - --_this._collection$_length; - _this._collection$_elements = null; - bucket.splice(index, 1); - if (0 === bucket.length) - delete rest[hash]; - return true; - }, - _computeElements$0() { - var strings, names, entries, index, i, nums, rest, bucket, $length, i0, _this = this, - result = _this._collection$_elements; - if (result != null) - return result; - result = A.List_List$filled(_this._collection$_length, null, false, type$.dynamic); - strings = _this._collection$_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._collection$_nums; - if (nums != null) { - names = Object.getOwnPropertyNames(nums); - entries = names.length; - for (i = 0; i < entries; ++i) { - result[index] = +names[i]; - ++index; - } - } - rest = _this._collection$_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; - } - } - } - return _this._collection$_elements = result; - }, - _collection$_addHashTableEntry$2(table, element) { - A._instanceType(this)._precomputed1._as(element); - if (table[element] != null) - return false; - table[element] = 0; - ++this._collection$_length; - this._collection$_elements = null; - return true; - }, - _collection$_removeHashTableEntry$2(table, element) { - if (table != null && table[element] != null) { - delete table[element]; - --this._collection$_length; - this._collection$_elements = null; - return true; - } else - return false; - }, - _computeHashCode$1(element) { - return J.get$hashCode$(element) & 1073741823; - }, - _findBucketIndex$2(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; - } - }; - A._HashSetIterator.prototype = { - get$current(_) { - var t1 = this._collection$_current; - return t1 == null ? this.$ti._precomputed1._as(t1) : t1; - }, - moveNext$0() { - var _this = this, - elements = _this._collection$_elements, - offset = _this._offset, - t1 = _this._set; - if (elements !== t1._collection$_elements) - throw A.wrapException(A.ConcurrentModificationError$(t1)); - else if (offset >= elements.length) { - _this.set$_collection$_current(null); - return false; - } else { - _this.set$_collection$_current(elements[offset]); - _this._offset = offset + 1; - return true; - } - }, - set$_collection$_current(_current) { - this._collection$_current = this.$ti._eval$1("1?")._as(_current); - }, - $isIterator: 1 - }; - A._LinkedHashSet.prototype = { - get$iterator(_) { - var _this = this, - t1 = new A._LinkedHashSetIterator(_this, _this._collection$_modifications, A._instanceType(_this)._eval$1("_LinkedHashSetIterator<1>")); - t1._collection$_cell = _this._collection$_first; - return t1; - }, - get$length(_) { - return this._collection$_length; - }, - get$isEmpty(_) { - return this._collection$_length === 0; - }, - get$isNotEmpty(_) { - return this._collection$_length !== 0; - }, - contains$1(_, object) { - var strings, nums; - if (typeof object == "string" && object !== "__proto__") { - strings = this._collection$_strings; - if (strings == null) - return false; - return type$.nullable__LinkedHashSetCell._as(strings[object]) != null; - } else if (typeof object == "number" && (object & 1073741823) === object) { - nums = this._collection$_nums; - if (nums == null) - return false; - return type$.nullable__LinkedHashSetCell._as(nums[object]) != null; - } else - return this._contains$1(object); - }, - _contains$1(object) { - var rest = this._collection$_rest; - if (rest == null) - return false; - return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0; - }, - get$first(_) { - var first = this._collection$_first; - if (first == null) - throw A.wrapException(A.StateError$("No elements")); - return A._instanceType(this)._precomputed1._as(first._collection$_element); - }, - add$1(_, element) { - var strings, nums, _this = this; - A._instanceType(_this)._precomputed1._as(element); - if (typeof element == "string" && element !== "__proto__") { - strings = _this._collection$_strings; - return _this._collection$_addHashTableEntry$2(strings == null ? _this._collection$_strings = A._LinkedHashSet__newHashTable() : strings, element); - } else if (typeof element == "number" && (element & 1073741823) === element) { - nums = _this._collection$_nums; - return _this._collection$_addHashTableEntry$2(nums == null ? _this._collection$_nums = A._LinkedHashSet__newHashTable() : nums, element); - } else - return _this._collection$_add$1(0, element); - }, - _collection$_add$1(_, element) { - var rest, hash, bucket, _this = this; - A._instanceType(_this)._precomputed1._as(element); - rest = _this._collection$_rest; - if (rest == null) - rest = _this._collection$_rest = A._LinkedHashSet__newHashTable(); - hash = _this._computeHashCode$1(element); - bucket = rest[hash]; - if (bucket == null) - rest[hash] = [_this._collection$_newLinkedCell$1(element)]; - else { - if (_this._findBucketIndex$2(bucket, element) >= 0) - return false; - bucket.push(_this._collection$_newLinkedCell$1(element)); - } - return true; - }, - _collection$_addHashTableEntry$2(table, element) { - A._instanceType(this)._precomputed1._as(element); - if (type$.nullable__LinkedHashSetCell._as(table[element]) != null) - return false; - table[element] = this._collection$_newLinkedCell$1(element); - return true; - }, - _collection$_newLinkedCell$1(element) { - var _this = this, - cell = new A._LinkedHashSetCell(A._instanceType(_this)._precomputed1._as(element)); - if (_this._collection$_first == null) - _this._collection$_first = _this._collection$_last = cell; - else - _this._collection$_last = _this._collection$_last._collection$_next = cell; - ++_this._collection$_length; - _this._collection$_modifications = _this._collection$_modifications + 1 & 1073741823; - return cell; - }, - _computeHashCode$1(element) { - return J.get$hashCode$(element) & 1073741823; - }, - _findBucketIndex$2(bucket, element) { - var $length, i; - if (bucket == null) - return -1; - $length = bucket.length; - for (i = 0; i < $length; ++i) - if (J.$eq$(bucket[i]._collection$_element, element)) - return i; - return -1; - } - }; - A._LinkedHashSetCell.prototype = {}; - A._LinkedHashSetIterator.prototype = { - get$current(_) { - var t1 = this._collection$_current; - return t1 == null ? this.$ti._precomputed1._as(t1) : t1; - }, - moveNext$0() { - var _this = this, - cell = _this._collection$_cell, - t1 = _this._set; - if (_this._collection$_modifications !== t1._collection$_modifications) - throw A.wrapException(A.ConcurrentModificationError$(t1)); - else if (cell == null) { - _this.set$_collection$_current(null); - return false; - } else { - _this.set$_collection$_current(_this.$ti._eval$1("1?")._as(cell._collection$_element)); - _this._collection$_cell = cell._collection$_next; - return true; - } - }, - set$_collection$_current(_current) { - this._collection$_current = this.$ti._eval$1("1?")._as(_current); - }, - $isIterator: 1 - }; - A.UnmodifiableListView.prototype = { - cast$1$0(_, $R) { - return new A.UnmodifiableListView(J.cast$1$0$ax(this._collection$_source, $R), $R._eval$1("UnmodifiableListView<0>")); - }, - get$length(_) { - return J.get$length$asx(this._collection$_source); - }, - $index(_, index) { - return J.elementAt$1$ax(this._collection$_source, index); - } - }; - A.LinkedHashMap_LinkedHashMap$from_closure.prototype = { - call$2(k, v) { - this.result.$indexSet(0, this.K._as(k), this.V._as(v)); - }, - $signature: 13 - }; - A.ListBase.prototype = { - get$iterator(receiver) { - return new A.ListIterator(receiver, this.get$length(receiver), A.instanceType(receiver)._eval$1("ListIterator")); - }, - elementAt$1(receiver, index) { - return this.$index(receiver, index); - }, - get$isEmpty(receiver) { - return this.get$length(receiver) === 0; - }, - get$isNotEmpty(receiver) { - return !this.get$isEmpty(receiver); - }, - get$first(receiver) { - if (this.get$length(receiver) === 0) - throw A.wrapException(A.IterableElementError_noElement()); - return this.$index(receiver, 0); - }, - contains$1(receiver, element) { - var i, - $length = this.get$length(receiver); - for (i = 0; i < $length; ++i) { - if (J.$eq$(this.$index(receiver, i), element)) - return true; - if ($length !== this.get$length(receiver)) - throw A.wrapException(A.ConcurrentModificationError$(receiver)); - } - return false; - }, - map$1$1(receiver, f, $T) { - var t1 = A.instanceType(receiver); - return new A.MappedListIterable(receiver, t1._bind$1($T)._eval$1("1(ListBase.E)")._as(f), t1._eval$1("@")._bind$1($T)._eval$1("MappedListIterable<1,2>")); - }, - map$1(receiver, f) { - return this.map$1$1(receiver, f, type$.dynamic); - }, - skip$1(receiver, count) { - return A.SubListIterable$(receiver, count, null, A.instanceType(receiver)._eval$1("ListBase.E")); - }, - take$1(receiver, count) { - return A.SubListIterable$(receiver, 0, A.checkNotNullable(count, "count", type$.int), A.instanceType(receiver)._eval$1("ListBase.E")); - }, - cast$1$0(receiver, $R) { - return new A.CastList(receiver, A.instanceType(receiver)._eval$1("@")._bind$1($R)._eval$1("CastList<1,2>")); - }, - sort$1(receiver, compare) { - var t2, - t1 = A.instanceType(receiver); - t1._eval$1("int(ListBase.E,ListBase.E)?")._as(compare); - t2 = compare == null ? A.collection_ListBase__compareAny$closure() : compare; - A.Sort__doSort(receiver, 0, this.get$length(receiver) - 1, t2, t1._eval$1("ListBase.E")); - }, - sublist$2(receiver, start, end) { - var listLength = this.get$length(receiver); - if (end == null) - end = listLength; - A.RangeError_checkValidRange(start, end, listLength); - return A.List_List$from(this.getRange$2(receiver, start, end), true, A.instanceType(receiver)._eval$1("ListBase.E")); - }, - sublist$1(receiver, start) { - return this.sublist$2(receiver, start, null); - }, - getRange$2(receiver, start, end) { - A.RangeError_checkValidRange(start, end, this.get$length(receiver)); - return A.SubListIterable$(receiver, start, end, A.instanceType(receiver)._eval$1("ListBase.E")); - }, - fillRange$3(receiver, start, end, fill) { - var value, i, - t1 = A.instanceType(receiver); - t1._eval$1("ListBase.E?")._as(fill); - value = fill == null ? t1._eval$1("ListBase.E")._as(fill) : fill; - A.RangeError_checkValidRange(start, end, this.get$length(receiver)); - for (i = start; i < end; ++i) - this.$indexSet(receiver, i, value); - }, - toString$0(receiver) { - return A.Iterable_iterableToFullString(receiver, "[", "]"); - }, - $isEfficientLengthIterable: 1, - $isIterable: 1, - $isList: 1 - }; - A.MapBase.prototype = { - cast$2$0(receiver, RK, RV) { - var t1 = A.instanceType(receiver); - return A.Map_castFrom(receiver, t1._eval$1("MapBase.K"), t1._eval$1("MapBase.V"), RK, RV); - }, - forEach$1(receiver, action) { - var t2, key, t3, - t1 = A.instanceType(receiver); - t1._eval$1("~(MapBase.K,MapBase.V)")._as(action); - for (t2 = J.get$iterator$ax(this.get$keys(receiver)), t1 = t1._eval$1("MapBase.V"); t2.moveNext$0();) { - key = t2.get$current(t2); - t3 = this.$index(receiver, key); - action.call$2(key, t3 == null ? t1._as(t3) : t3); - } - }, - map$2$1(receiver, transform, K2, V2) { - var result, t2, key, t3, entry, - t1 = A.instanceType(receiver); - t1._bind$1(K2)._bind$1(V2)._eval$1("MapEntry<1,2>(MapBase.K,MapBase.V)")._as(transform); - result = A.LinkedHashMap_LinkedHashMap$_empty(K2, V2); - for (t2 = J.get$iterator$ax(this.get$keys(receiver)), t1 = t1._eval$1("MapBase.V"); t2.moveNext$0();) { - key = t2.get$current(t2); - t3 = this.$index(receiver, key); - entry = transform.call$2(key, t3 == null ? t1._as(t3) : t3); - result.$indexSet(0, entry.get$key(entry), entry.get$value(entry)); - } - return result; - }, - map$1(receiver, transform) { - var t1 = type$.dynamic; - return this.map$2$1(receiver, transform, t1, t1); - }, - containsKey$1(receiver, key) { - return J.contains$1$asx(this.get$keys(receiver), key); - }, - get$length(receiver) { - return J.get$length$asx(this.get$keys(receiver)); - }, - get$isEmpty(receiver) { - return J.get$isEmpty$asx(this.get$keys(receiver)); - }, - toString$0(receiver) { - return A.MapBase_mapToString(receiver); - }, - $isMap: 1 - }; - A.MapBase_mapToString_closure.prototype = { - call$2(k, v) { - var t2, - t1 = this._box_0; - if (!t1.first) - this.result._contents += ", "; - t1.first = false; - t1 = this.result; - t2 = A.S(k); - t2 = t1._contents += t2; - t1._contents = t2 + ": "; - t2 = A.S(v); - t1._contents += t2; - }, - $signature: 21 - }; - A._UnmodifiableMapMixin.prototype = { - $indexSet(_, key, value) { - var t1 = A._instanceType(this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map")); - } - }; - A.MapView.prototype = { - cast$2$0(_, RK, RV) { - return J.cast$2$0$ax(this._collection$_map, RK, RV); - }, - $index(_, key) { - return J.$index$asx(this._collection$_map, key); - }, - $indexSet(_, key, value) { - var t1 = A._instanceType(this); - J.$indexSet$ax(this._collection$_map, t1._precomputed1._as(key), t1._rest[1]._as(value)); - }, - containsKey$1(_, key) { - return J.containsKey$1$x(this._collection$_map, key); - }, - forEach$1(_, action) { - J.forEach$1$x(this._collection$_map, A._instanceType(this)._eval$1("~(1,2)")._as(action)); - }, - get$isEmpty(_) { - return J.get$isEmpty$asx(this._collection$_map); - }, - get$length(_) { - return J.get$length$asx(this._collection$_map); - }, - get$keys(_) { - return J.get$keys$x(this._collection$_map); - }, - toString$0(_) { - return J.toString$0$(this._collection$_map); - }, - map$2$1(_, transform, K2, V2) { - return J.map$2$1$ax(this._collection$_map, A._instanceType(this)._bind$1(K2)._bind$1(V2)._eval$1("MapEntry<1,2>(3,4)")._as(transform), K2, V2); - }, - map$1(_, transform) { - var t1 = type$.dynamic; - return this.map$2$1(0, transform, t1, t1); - }, - $isMap: 1 - }; - A.UnmodifiableMapView.prototype = { - cast$2$0(_, RK, RV) { - return new A.UnmodifiableMapView(J.cast$2$0$ax(this._collection$_map, RK, RV), RK._eval$1("@<0>")._bind$1(RV)._eval$1("UnmodifiableMapView<1,2>")); - } - }; - A.ListQueue.prototype = { - get$iterator(_) { - var _this = this; - return new A._ListQueueIterator(_this, _this._tail, _this._modificationCount, _this._head, _this.$ti._eval$1("_ListQueueIterator<1>")); - }, - get$isEmpty(_) { - return this._head === this._tail; - }, - get$length(_) { - return (this._tail - this._head & this._table.length - 1) >>> 0; - }, - get$first(_) { - var t2, _this = this, - t1 = _this._head; - if (t1 === _this._tail) - throw A.wrapException(A.IterableElementError_noElement()); - t2 = _this._table; - if (!(t1 < t2.length)) - return A.ioore(t2, t1); - t1 = t2[t1]; - return t1 == null ? _this.$ti._precomputed1._as(t1) : t1; - }, - elementAt$1(_, index) { - var t2, t3, _this = this, - t1 = _this.get$length(0); - if (0 > index || index >= t1) - A.throwExpression(A.IndexError$withLength(index, t1, _this, null, "index")); - t1 = _this._table; - t2 = t1.length; - t3 = (_this._head + index & t2 - 1) >>> 0; - if (!(t3 >= 0 && t3 < t2)) - return A.ioore(t1, t3); - t3 = t1[t3]; - return t3 == null ? _this.$ti._precomputed1._as(t3) : t3; - }, - toString$0(_) { - return A.Iterable_iterableToFullString(this, "{", "}"); - }, - removeFirst$0() { - var t2, result, _this = this, - t1 = _this._head; - if (t1 === _this._tail) - throw A.wrapException(A.IterableElementError_noElement()); - ++_this._modificationCount; - t2 = _this._table; - if (!(t1 < t2.length)) - return A.ioore(t2, t1); - result = t2[t1]; - if (result == null) - result = _this.$ti._precomputed1._as(result); - B.JSArray_methods.$indexSet(t2, t1, null); - _this._head = (_this._head + 1 & _this._table.length - 1) >>> 0; - return result; - }, - removeLast$0(_) { - var t3, result, _this = this, - t1 = _this._head, - t2 = _this._tail; - if (t1 === t2) - throw A.wrapException(A.IterableElementError_noElement()); - ++_this._modificationCount; - t1 = _this._table; - t3 = t1.length; - t2 = (t2 - 1 & t3 - 1) >>> 0; - _this._tail = t2; - if (!(t2 >= 0 && t2 < t3)) - return A.ioore(t1, t2); - result = t1[t2]; - if (result == null) - result = _this.$ti._precomputed1._as(result); - B.JSArray_methods.$indexSet(t1, t2, null); - return result; - }, - _collection$_add$1(_, element) { - var t2, t3, newTable, split, _this = this, - t1 = _this.$ti; - t1._precomputed1._as(element); - B.JSArray_methods.$indexSet(_this._table, _this._tail, element); - t2 = _this._tail; - t3 = _this._table.length; - t2 = (t2 + 1 & t3 - 1) >>> 0; - _this._tail = t2; - if (_this._head === t2) { - newTable = A.List_List$filled(t3 * 2, null, false, t1._eval$1("1?")); - t1 = _this._table; - t2 = _this._head; - split = t1.length - t2; - B.JSArray_methods.setRange$4(newTable, 0, split, t1, t2); - B.JSArray_methods.setRange$4(newTable, split, split + _this._head, _this._table, 0); - _this._head = 0; - _this._tail = _this._table.length; - _this.set$_table(newTable); - } - ++_this._modificationCount; - }, - set$_table(_table) { - this._table = this.$ti._eval$1("List<1?>")._as(_table); - }, - $isQueue: 1 - }; - A._ListQueueIterator.prototype = { - get$current(_) { - var t1 = this._collection$_current; - return t1 == null ? this.$ti._precomputed1._as(t1) : t1; - }, - moveNext$0() { - var t2, t3, _this = this, - t1 = _this._queue; - if (_this._modificationCount !== t1._modificationCount) - A.throwExpression(A.ConcurrentModificationError$(t1)); - t2 = _this._collection$_position; - if (t2 === _this._end) { - _this.set$_collection$_current(null); - return false; - } - t3 = t1._table; - if (!(t2 < t3.length)) - return A.ioore(t3, t2); - _this.set$_collection$_current(t3[t2]); - _this._collection$_position = (_this._collection$_position + 1 & t1._table.length - 1) >>> 0; - return true; - }, - set$_collection$_current(_current) { - this._collection$_current = this.$ti._eval$1("1?")._as(_current); - }, - $isIterator: 1 - }; - A.SetBase.prototype = { - get$isEmpty(_) { - return this.get$length(this) === 0; - }, - get$isNotEmpty(_) { - return this.get$length(this) !== 0; - }, - addAll$1(_, elements) { - var t1; - for (t1 = J.get$iterator$ax(A._instanceType(this)._eval$1("Iterable<1>")._as(elements)); t1.moveNext$0();) - this.add$1(0, t1.get$current(t1)); - }, - containsAll$1(other) { - var t1, t2, o; - for (t1 = other._set$_set, t1 = A._LinkedHashSetIterator$(t1, t1._collection$_modifications, A._instanceType(t1)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) { - o = t1._collection$_current; - if (!this.contains$1(0, o == null ? t2._as(o) : o)) - return false; - } - return true; - }, - map$1$1(_, f, $T) { - var t1 = A._instanceType(this); - return new A.EfficientLengthMappedIterable(this, t1._bind$1($T)._eval$1("1(2)")._as(f), t1._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>")); - }, - map$1(_, f) { - return this.map$1$1(0, f, type$.dynamic); - }, - toString$0(_) { - return A.Iterable_iterableToFullString(this, "{", "}"); - }, - take$1(_, n) { - return A.TakeIterable_TakeIterable(this, n, A._instanceType(this)._precomputed1); - }, - skip$1(_, n) { - return A.SkipIterable_SkipIterable(this, n, A._instanceType(this)._precomputed1); - }, - get$first(_) { - var it = this.get$iterator(this); - if (!it.moveNext$0()) - throw A.wrapException(A.IterableElementError_noElement()); - return it.get$current(it); - }, - elementAt$1(_, index) { - var iterator, skipCount; - A.RangeError_checkNotNegative(index, "index"); - iterator = this.get$iterator(this); - for (skipCount = index; iterator.moveNext$0();) { - if (skipCount === 0) - return iterator.get$current(iterator); - --skipCount; - } - throw A.wrapException(A.IndexError$withLength(index, index - skipCount, this, null, "index")); - }, - $isEfficientLengthIterable: 1, - $isIterable: 1, - $isSet: 1 - }; - A._SetBase.prototype = {}; - A._SplayTreeNode.prototype = { - set$_left(_, _left) { - this._left = this.$ti._eval$1("_SplayTreeNode.1?")._as(_left); - }, - set$_right(_, _right) { - this._right = this.$ti._eval$1("_SplayTreeNode.1?")._as(_right); - } - }; - A._SplayTreeSetNode.prototype = {}; - A._SplayTree.prototype = { - _splay$1(key) { - var root, compare, comp, current, newTreeLeft, left, newTreeRight, right, currentLeft, currentLeft0, currentRight, currentRight0, _this = this, _null = null; - _this.$ti._eval$1("_SplayTree.K")._as(key); - root = _this._root; - if (root == null) { - _this._compare.call$2(key, key); - return -1; - } - compare = _this._compare; - for (comp = _null, current = root, newTreeLeft = comp, left = newTreeLeft, newTreeRight = left, right = newTreeRight; true;) { - comp = compare.call$2(current.key, key); - if (comp > 0) { - currentLeft = current._left; - if (currentLeft == null) - break; - comp = compare.call$2(currentLeft.key, key); - if (comp > 0) { - current.set$_left(0, currentLeft._right); - currentLeft.set$_right(0, current); - currentLeft0 = currentLeft._left; - if (currentLeft0 == null) { - current = currentLeft; - break; - } - current = currentLeft; - currentLeft = currentLeft0; - } - if (right == null) - newTreeRight = current; - else - right.set$_left(0, current); - right = current; - current = currentLeft; - } else { - if (comp < 0) { - currentRight = current._right; - if (currentRight == null) - break; - comp = compare.call$2(currentRight.key, key); - if (comp < 0) { - current.set$_right(0, currentRight._left); - currentRight.set$_left(0, current); - currentRight0 = currentRight._right; - if (currentRight0 == null) { - current = currentRight; - break; - } - current = currentRight; - currentRight = currentRight0; - } - if (left == null) - newTreeLeft = current; - else - left.set$_right(0, current); - } else - break; - left = current; - current = currentRight; - } - } - if (left != null) { - left.set$_right(0, current._left); - current.set$_left(0, newTreeLeft); - } - if (right != null) { - right.set$_left(0, current._right); - current.set$_right(0, newTreeRight); - } - if (_this._root !== current) { - _this.set$_root(current); - ++_this._splayCount; - } - return comp; - }, - _splayMin$1(node) { - var nextLeft, current, nextLeft0; - this.$ti._eval$1("_SplayTree.1")._as(node); - nextLeft = node._left; - for (current = node; nextLeft != null; current = nextLeft, nextLeft = nextLeft0) { - current.set$_left(0, nextLeft._right); - nextLeft.set$_right(0, current); - nextLeft0 = nextLeft._left; - } - return current; - }, - _splayMax$1(node) { - var nextRight, current, nextRight0; - this.$ti._eval$1("_SplayTree.1")._as(node); - nextRight = node._right; - for (current = node; nextRight != null; current = nextRight, nextRight = nextRight0) { - current.set$_right(0, nextRight._left); - nextRight.set$_left(0, current); - nextRight0 = nextRight._right; - } - return current; - }, - _remove$1(_, key) { - var root, left, t1, root0, _this = this; - _this.$ti._eval$1("_SplayTree.K")._as(key); - if (_this._root == null) - return null; - if (_this._splay$1(key) !== 0) - return null; - root = _this._root; - left = root._left; - --_this._count; - t1 = root._right; - if (left == null) - _this.set$_root(t1); - else { - root0 = _this._splayMax$1(left); - root0.set$_right(0, t1); - _this.set$_root(root0); - } - ++_this._modificationCount; - return root; - }, - _addNewRoot$2(node, comp) { - var root, _this = this; - _this.$ti._eval$1("_SplayTree.1")._as(node); - ++_this._count; - ++_this._modificationCount; - root = _this._root; - if (root == null) { - _this.set$_root(node); - return; - } - if (comp < 0) { - node.set$_left(0, root); - node.set$_right(0, root._right); - root.set$_right(0, null); - } else { - node.set$_right(0, root); - node.set$_left(0, root._left); - root.set$_left(0, null); - } - _this.set$_root(node); - }, - get$_collection$_first() { - var _this = this, - root = _this._root; - if (root == null) - return null; - _this.set$_root(_this._splayMin$1(root)); - return _this._root; - } - }; - A._SplayTreeIterator.prototype = { - get$current(_) { - var t1 = this._path; - if (t1.length === 0) { - this.$ti._eval$1("_SplayTreeIterator.T")._as(null); - return null; - } - return this.$ti._rest[1]._as(B.JSArray_methods.get$last(t1)).key; - }, - moveNext$0() { - var node, next, _this = this, - t1 = _this._modificationCount, - t2 = _this._tree, - t3 = t2._modificationCount; - if (t1 !== t3) { - if (t1 == null) { - _this._modificationCount = t3; - node = t2._root; - for (t1 = _this._path; node != null;) { - B.JSArray_methods.add$1(t1, node); - node = node._left; - } - return t1.length !== 0; - } - throw A.wrapException(A.ConcurrentModificationError$(t2)); - } - t1 = _this._path; - if (t1.length === 0) - return false; - if (_this._splayCount !== t2._splayCount) { - t3 = _this.$ti._eval$1("_SplayTreeIterator.K")._as(B.JSArray_methods.get$last(t1).key); - B.JSArray_methods.clear$0(t1); - t2._splay$1(t3); - t3 = t2._root; - t3.toString; - B.JSArray_methods.add$1(t1, t3); - _this._splayCount = t2._splayCount; - } - node = B.JSArray_methods.get$last(t1); - next = node._right; - if (next != null) { - for (; next != null;) { - B.JSArray_methods.add$1(t1, next); - next = next._left; - } - return true; - } - if (0 >= t1.length) - return A.ioore(t1, -1); - t1.pop(); - while (true) { - if (!(t1.length !== 0 && B.JSArray_methods.get$last(t1)._right === node)) - break; - if (0 >= t1.length) - return A.ioore(t1, -1); - node = t1.pop(); - } - return t1.length !== 0; - }, - $isIterator: 1 - }; - A._SplayTreeKeyIterator.prototype = {}; - A.SplayTreeSet.prototype = { - get$iterator(_) { - var t1 = this.$ti; - return new A._SplayTreeKeyIterator(this, A._setArrayType([], t1._eval$1("JSArray<_SplayTreeSetNode<1>>")), this._splayCount, t1._eval$1("@<1>")._bind$1(t1._eval$1("_SplayTreeSetNode<1>"))._eval$1("_SplayTreeKeyIterator<1,2>")); - }, - get$length(_) { - return this._count; - }, - get$isEmpty(_) { - return this._root == null; - }, - get$isNotEmpty(_) { - return this._root != null; - }, - get$first(_) { - if (this._count === 0) - throw A.wrapException(A.IterableElementError_noElement()); - return this.get$_collection$_first().key; - }, - contains$1(_, element) { - return A.boolConversionCheck(this._validKey.call$1(element)) && this._splay$1(this.$ti._precomputed1._as(element)) === 0; - }, - add$1(_, element) { - return this._collection$_add$1(0, this.$ti._precomputed1._as(element)); - }, - _collection$_add$1(_, element) { - var compare, - t1 = this.$ti; - t1._precomputed1._as(element); - compare = this._splay$1(element); - if (compare === 0) - return false; - this._addNewRoot$2(new A._SplayTreeSetNode(element, t1._eval$1("_SplayTreeSetNode<1>")), compare); - return true; - }, - remove$1(_, object) { - if (!A.boolConversionCheck(this._validKey.call$1(object))) - return false; - return this._remove$1(0, this.$ti._precomputed1._as(object)) != null; - }, - addAll$1(_, elements) { - var t1; - for (t1 = J.get$iterator$ax(this.$ti._eval$1("Iterable<1>")._as(elements)); t1.moveNext$0();) - this._collection$_add$1(0, t1.get$current(t1)); - }, - toString$0(_) { - return A.Iterable_iterableToFullString(this, "{", "}"); - }, - set$_root(_root) { - this._root = this.$ti._eval$1("_SplayTreeSetNode<1>?")._as(_root); - }, - $isEfficientLengthIterable: 1, - $isSet: 1 - }; - A.SplayTreeSet_closure.prototype = { - call$1(v) { - return this.E._is(v); - }, - $signature: 20 - }; - A._SplayTreeSet__SplayTree_Iterable.prototype = {}; - A._SplayTreeSet__SplayTree_Iterable_SetMixin.prototype = {}; - A._UnmodifiableMapView_MapView__UnmodifiableMapMixin.prototype = {}; - A._JsonMap.prototype = { - $index(_, key) { - var result, - t1 = this._processed; - if (t1 == null) - return this._data.$index(0, key); - else if (typeof key != "string") - return null; - else { - result = t1[key]; - return typeof result == "undefined" ? this._process$1(key) : result; - } - }, - get$length(_) { - return this._processed == null ? this._data.__js_helper$_length : this._convert$_computeKeys$0().length; - }, - get$isEmpty(_) { - return this.get$length(0) === 0; - }, - get$keys(_) { - var t1; - if (this._processed == null) { - t1 = this._data; - return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")); - } - return new A._JsonMapKeyIterable(this); - }, - $indexSet(_, key, value) { - var processed, original, _this = this; - A._asString(key); - if (_this._processed == null) - _this._data.$indexSet(0, key, value); - else if (_this.containsKey$1(0, key)) { - processed = _this._processed; - processed[key] = value; - original = _this._original; - if (original == null ? processed != null : original !== processed) - original[key] = null; - } else - _this._upgrade$0().$indexSet(0, key, value); - }, - containsKey$1(_, key) { - if (this._processed == null) - return this._data.containsKey$1(0, key); - if (typeof key != "string") - return false; - return Object.prototype.hasOwnProperty.call(this._original, key); - }, - forEach$1(_, f) { - var keys, i, key, value, _this = this; - type$.void_Function_String_dynamic._as(f); - if (_this._processed == null) - return _this._data.forEach$1(0, f); - keys = _this._convert$_computeKeys$0(); - for (i = 0; i < keys.length; ++i) { - key = keys[i]; - value = _this._processed[key]; - if (typeof value == "undefined") { - value = A._convertJsonToDartLazy(_this._original[key]); - _this._processed[key] = value; - } - f.call$2(key, value); - if (keys !== _this._data) - throw A.wrapException(A.ConcurrentModificationError$(_this)); - } - }, - _convert$_computeKeys$0() { - var keys = type$.nullable_List_dynamic._as(this._data); - if (keys == null) - keys = this._data = A._setArrayType(Object.keys(this._original), type$.JSArray_String); - return keys; - }, - _upgrade$0() { - var result, keys, i, t1, key, _this = this; - if (_this._processed == null) - return _this._data; - result = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic); - keys = _this._convert$_computeKeys$0(); - for (i = 0; t1 = keys.length, i < t1; ++i) { - key = keys[i]; - result.$indexSet(0, key, _this.$index(0, key)); - } - if (t1 === 0) - B.JSArray_methods.add$1(keys, ""); - else - B.JSArray_methods.clear$0(keys); - _this._original = _this._processed = null; - return _this._data = result; - }, - _process$1(key) { - var result; - if (!Object.prototype.hasOwnProperty.call(this._original, key)) - return null; - result = A._convertJsonToDartLazy(this._original[key]); - return this._processed[key] = result; - } - }; - A._JsonMapKeyIterable.prototype = { - get$length(_) { - return this._parent.get$length(0); - }, - elementAt$1(_, index) { - var t1 = this._parent; - if (t1._processed == null) - t1 = t1.get$keys(0).elementAt$1(0, index); - else { - t1 = t1._convert$_computeKeys$0(); - if (!(index >= 0 && index < t1.length)) - return A.ioore(t1, index); - t1 = t1[index]; - } - return t1; - }, - get$iterator(_) { - var t1 = this._parent; - if (t1._processed == null) { - t1 = t1.get$keys(0); - t1 = t1.get$iterator(t1); - } else { - t1 = t1._convert$_computeKeys$0(); - t1 = new J.ArrayIterator(t1, t1.length, A._arrayInstanceType(t1)._eval$1("ArrayIterator<1>")); - } - return t1; - }, - contains$1(_, key) { - return this._parent.containsKey$1(0, key); - } - }; - A.Base64Codec.prototype = { - get$encoder() { - return B.C_Base64Encoder; - }, - normalize$3(_, source, start, end) { - var inverseAlphabet, t2, i, sliceStart, buffer, firstPadding, firstPaddingSourceIndex, paddingCount, i0, char, i1, digit1, t3, digit2, char0, value, t4, endLength, $length, - _s64_ = string$.ABCDEF, - _s31_ = "Invalid base64 encoding length ", - t1 = source.length; - end = A.RangeError_checkValidRange(start, end, t1); - inverseAlphabet = $.$get$_Base64Decoder__inverseAlphabet(); - for (t2 = inverseAlphabet.length, i = start, sliceStart = i, buffer = null, firstPadding = -1, firstPaddingSourceIndex = -1, paddingCount = 0; i < end; i = i0) { - i0 = i + 1; - if (!(i < t1)) - return A.ioore(source, i); - char = source.charCodeAt(i); - if (char === 37) { - i1 = i0 + 2; - if (i1 <= end) { - if (!(i0 < t1)) - return A.ioore(source, i0); - digit1 = A.hexDigitValue(source.charCodeAt(i0)); - t3 = i0 + 1; - if (!(t3 < t1)) - return A.ioore(source, t3); - digit2 = A.hexDigitValue(source.charCodeAt(t3)); - char0 = digit1 * 16 + digit2 - (digit2 & 256); - if (char0 === 37) - char0 = -1; - i0 = i1; - } else - char0 = -1; - } else - char0 = char; - if (0 <= char0 && char0 <= 127) { - if (!(char0 >= 0 && char0 < t2)) - return A.ioore(inverseAlphabet, char0); - value = inverseAlphabet[char0]; - if (value >= 0) { - if (!(value < 64)) - return A.ioore(_s64_, value); - char0 = _s64_.charCodeAt(value); - if (char0 === char) - continue; - char = char0; - } else { - if (value === -1) { - if (firstPadding < 0) { - t3 = buffer == null ? null : buffer._contents.length; - if (t3 == null) - t3 = 0; - firstPadding = t3 + (i - sliceStart); - firstPaddingSourceIndex = i; - } - ++paddingCount; - if (char === 61) - continue; - } - char = char0; - } - if (value !== -2) { - if (buffer == null) { - buffer = new A.StringBuffer(""); - t3 = buffer; - } else - t3 = buffer; - t3._contents += B.JSString_methods.substring$2(source, sliceStart, i); - t4 = A.Primitives_stringFromCharCode(char); - t3._contents += t4; - sliceStart = i0; - continue; - } - } - throw A.wrapException(A.FormatException$("Invalid base64 data", source, i)); - } - if (buffer != null) { - t1 = B.JSString_methods.substring$2(source, sliceStart, end); - t1 = buffer._contents += t1; - t2 = t1.length; - if (firstPadding >= 0) - A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, t2); - else { - endLength = B.JSInt_methods.$mod(t2 - 1, 4) + 1; - if (endLength === 1) - throw A.wrapException(A.FormatException$(_s31_, source, end)); - for (; endLength < 4;) { - t1 += "="; - buffer._contents = t1; - ++endLength; - } - } - t1 = buffer._contents; - return B.JSString_methods.replaceRange$3(source, start, end, t1.charCodeAt(0) == 0 ? t1 : t1); - } - $length = end - start; - if (firstPadding >= 0) - A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, $length); - else { - endLength = B.JSInt_methods.$mod($length, 4); - if (endLength === 1) - throw A.wrapException(A.FormatException$(_s31_, source, end)); - if (endLength > 1) - source = B.JSString_methods.replaceRange$3(source, end, end, endLength === 2 ? "==" : "="); - } - return source; - } - }; - A.Base64Encoder.prototype = { - convert$1(input) { - var t1; - type$.List_int._as(input); - t1 = J.getInterceptor$asx(input); - if (t1.get$isEmpty(input)) - return ""; - t1 = new A._Base64Encoder(string$.ABCDEF).encode$4(input, 0, t1.get$length(input), true); - t1.toString; - return A.String_String$fromCharCodes(t1, 0, null); - } - }; - A._Base64Encoder.prototype = { - createBuffer$1(_, bufferLength) { - return new Uint8Array(bufferLength); - }, - encode$4(bytes, start, end, isLast) { - var byteCount, fullChunks, bufferLength, output, _this = this; - type$.List_int._as(bytes); - byteCount = (_this._convert$_state & 3) + (end - start); - fullChunks = B.JSInt_methods._tdivFast$1(byteCount, 3); - bufferLength = fullChunks * 4; - if (isLast && byteCount - fullChunks * 3 > 0) - bufferLength += 4; - output = _this.createBuffer$1(0, bufferLength); - _this._convert$_state = A._Base64Encoder_encodeChunk(_this._alphabet, bytes, start, end, isLast, output, 0, _this._convert$_state); - if (bufferLength > 0) - return output; - return null; - } - }; - A.Base64Decoder.prototype = { - convert$1(input) { - var end, decoder, t1; - A._asString(input); - end = A.RangeError_checkValidRange(0, null, input.length); - if (0 === end) - return new Uint8Array(0); - decoder = new A._Base64Decoder(); - t1 = decoder.decode$3(0, input, 0, end); - t1.toString; - decoder.close$2(0, input, end); - return t1; - } - }; - A._Base64Decoder.prototype = { - decode$3(_, input, start, end) { - var buffer, _this = this, - t1 = _this._convert$_state; - if (t1 < 0) { - _this._convert$_state = A._Base64Decoder__checkPadding(input, start, end, t1); - return null; - } - if (start === end) - return new Uint8Array(0); - buffer = A._Base64Decoder__allocateBuffer(input, start, end, t1); - _this._convert$_state = A._Base64Decoder_decodeChunk(input, start, end, buffer, 0, _this._convert$_state); - return buffer; - }, - close$2(_, input, end) { - var t1 = this._convert$_state; - if (t1 < -1) - throw A.wrapException(A.FormatException$("Missing padding character", input, end)); - if (t1 > 0) - throw A.wrapException(A.FormatException$("Invalid length, must be multiple of four", input, end)); - this._convert$_state = -1; - } - }; - A.Codec.prototype = {}; - A.Converter.prototype = {$isStreamTransformer: 1}; - A.Encoding.prototype = {}; - A.JsonUnsupportedObjectError.prototype = { - toString$0(_) { - var safeString = A.Error_safeToString(this.unsupportedObject); - return (this.cause != null ? "Converting object to an encodable object failed:" : "Converting object did not return an encodable object:") + " " + safeString; - } - }; - A.JsonCyclicError.prototype = { - toString$0(_) { - return "Cyclic error in JSON stringify"; - } - }; - A.JsonCodec.prototype = { - decode$2$reviver(_, source, reviver) { - var t1 = A._parseJson(source, this.get$decoder()._reviver); - return t1; - }, - encode$2$toEncodable(value, toEncodable) { - var t1 = A._JsonStringStringifier_stringify(value, this.get$encoder()._toEncodable, null); - return t1; - }, - get$encoder() { - return B.JsonEncoder_null; - }, - get$decoder() { - return B.JsonDecoder_null; - } - }; - A.JsonEncoder.prototype = {}; - A.JsonDecoder.prototype = {}; - A._JsonStringifier.prototype = { - writeStringContent$1(s) { - var offset, i, charCode, t1, t2, _this = this, - $length = s.length; - for (offset = 0, i = 0; i < $length; ++i) { - charCode = s.charCodeAt(i); - if (charCode > 92) { - if (charCode >= 55296) { - t1 = charCode & 64512; - if (t1 === 55296) { - t2 = i + 1; - t2 = !(t2 < $length && (s.charCodeAt(t2) & 64512) === 56320); - } else - t2 = false; - if (!t2) - if (t1 === 56320) { - t1 = i - 1; - t1 = !(t1 >= 0 && (s.charCodeAt(t1) & 64512) === 55296); - } else - t1 = false; - else - t1 = true; - if (t1) { - if (i > offset) - _this.writeStringSlice$3(s, offset, i); - offset = i + 1; - _this.writeCharCode$1(92); - _this.writeCharCode$1(117); - _this.writeCharCode$1(100); - t1 = charCode >>> 8 & 15; - _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); - t1 = charCode >>> 4 & 15; - _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); - t1 = charCode & 15; - _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); - } - } - continue; - } - if (charCode < 32) { - if (i > offset) - _this.writeStringSlice$3(s, offset, i); - offset = i + 1; - _this.writeCharCode$1(92); - switch (charCode) { - case 8: - _this.writeCharCode$1(98); - break; - case 9: - _this.writeCharCode$1(116); - break; - case 10: - _this.writeCharCode$1(110); - break; - case 12: - _this.writeCharCode$1(102); - break; - case 13: - _this.writeCharCode$1(114); - break; - default: - _this.writeCharCode$1(117); - _this.writeCharCode$1(48); - _this.writeCharCode$1(48); - t1 = charCode >>> 4 & 15; - _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); - t1 = charCode & 15; - _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); - break; - } - } else if (charCode === 34 || charCode === 92) { - if (i > offset) - _this.writeStringSlice$3(s, offset, i); - offset = i + 1; - _this.writeCharCode$1(92); - _this.writeCharCode$1(charCode); - } - } - if (offset === 0) - _this.writeString$1(s); - else if (offset < $length) - _this.writeStringSlice$3(s, offset, $length); - }, - _checkCycle$1(object) { - var t1, t2, i, t3; - for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) { - t3 = t1[i]; - if (object == null ? t3 == null : object === t3) - throw A.wrapException(new A.JsonCyclicError(object, null)); - } - B.JSArray_methods.add$1(t1, object); - }, - writeObject$1(object) { - var customJson, e, t1, exception, _this = this; - if (_this.writeJsonValue$1(object)) - return; - _this._checkCycle$1(object); - try { - customJson = _this._toEncodable.call$1(object); - if (!_this.writeJsonValue$1(customJson)) { - t1 = A.JsonUnsupportedObjectError$(object, null, _this.get$_partialResult()); - throw A.wrapException(t1); - } - t1 = _this._seen; - if (0 >= t1.length) - return A.ioore(t1, -1); - t1.pop(); - } catch (exception) { - e = A.unwrapException(exception); - t1 = A.JsonUnsupportedObjectError$(object, e, _this.get$_partialResult()); - throw A.wrapException(t1); - } - }, - writeJsonValue$1(object) { - var t1, success, _this = this; - if (typeof object == "number") { - if (!isFinite(object)) - return false; - _this.writeNumber$1(object); - return true; - } else if (object === true) { - _this.writeString$1("true"); - return true; - } else if (object === false) { - _this.writeString$1("false"); - return true; - } else if (object == null) { - _this.writeString$1("null"); - return true; - } else if (typeof object == "string") { - _this.writeString$1('"'); - _this.writeStringContent$1(object); - _this.writeString$1('"'); - return true; - } else if (type$.List_dynamic._is(object)) { - _this._checkCycle$1(object); - _this.writeList$1(object); - t1 = _this._seen; - if (0 >= t1.length) - return A.ioore(t1, -1); - t1.pop(); - return true; - } else if (type$.Map_dynamic_dynamic._is(object)) { - _this._checkCycle$1(object); - success = _this.writeMap$1(object); - t1 = _this._seen; - if (0 >= t1.length) - return A.ioore(t1, -1); - t1.pop(); - return success; - } else - return false; - }, - writeList$1(list) { - var t1, i, _this = this; - _this.writeString$1("["); - t1 = J.getInterceptor$asx(list); - if (t1.get$isNotEmpty(list)) { - _this.writeObject$1(t1.$index(list, 0)); - for (i = 1; i < t1.get$length(list); ++i) { - _this.writeString$1(","); - _this.writeObject$1(t1.$index(list, i)); - } - } - _this.writeString$1("]"); - }, - writeMap$1(map) { - var t2, keyValueList, i, separator, _this = this, _box_0 = {}, - t1 = J.getInterceptor$asx(map); - if (t1.get$isEmpty(map)) { - _this.writeString$1("{}"); - return true; - } - t2 = t1.get$length(map) * 2; - keyValueList = A.List_List$filled(t2, null, false, type$.nullable_Object); - i = _box_0.i = 0; - _box_0.allStringKeys = true; - t1.forEach$1(map, new A._JsonStringifier_writeMap_closure(_box_0, keyValueList)); - if (!_box_0.allStringKeys) - return false; - _this.writeString$1("{"); - for (separator = '"'; i < t2; i += 2, separator = ',"') { - _this.writeString$1(separator); - _this.writeStringContent$1(A._asString(keyValueList[i])); - _this.writeString$1('":'); - t1 = i + 1; - if (!(t1 < t2)) - return A.ioore(keyValueList, t1); - _this.writeObject$1(keyValueList[t1]); - } - _this.writeString$1("}"); - return true; - } - }; - A._JsonStringifier_writeMap_closure.prototype = { - call$2(key, value) { - var t1, t2; - if (typeof key != "string") - this._box_0.allStringKeys = false; - t1 = this.keyValueList; - t2 = this._box_0; - B.JSArray_methods.$indexSet(t1, t2.i++, key); - B.JSArray_methods.$indexSet(t1, t2.i++, value); - }, - $signature: 21 - }; - A._JsonStringStringifier.prototype = { - get$_partialResult() { - var t1 = this._convert$_sink; - return t1 instanceof A.StringBuffer ? t1.toString$0(0) : null; - }, - writeNumber$1(number) { - this._convert$_sink.write$1(0, B.JSNumber_methods.toString$0(number)); - }, - writeString$1(string) { - this._convert$_sink.write$1(0, string); - }, - writeStringSlice$3(string, start, end) { - this._convert$_sink.write$1(0, B.JSString_methods.substring$2(string, start, end)); - }, - writeCharCode$1(charCode) { - this._convert$_sink.writeCharCode$1(charCode); - } - }; - A.Utf8Codec.prototype = {}; - A.Utf8Encoder.prototype = { - convert$1(string) { - var stringLength, end, t1, encoder, t2; - A._asString(string); - stringLength = string.length; - end = A.RangeError_checkValidRange(0, null, stringLength); - if (end === 0) - return new Uint8Array(0); - t1 = new Uint8Array(end * 3); - encoder = new A._Utf8Encoder(t1); - if (encoder._fillBuffer$3(string, 0, end) !== end) { - t2 = end - 1; - if (!(t2 >= 0 && t2 < stringLength)) - return A.ioore(string, t2); - encoder._writeReplacementCharacter$0(); - } - return B.NativeUint8List_methods.sublist$2(t1, 0, encoder._bufferIndex); - } - }; - A._Utf8Encoder.prototype = { - _writeReplacementCharacter$0() { - var _this = this, - t1 = _this._buffer, - t2 = _this._bufferIndex, - t3 = _this._bufferIndex = t2 + 1, - t4 = t1.length; - if (!(t2 < t4)) - return A.ioore(t1, t2); - t1[t2] = 239; - t2 = _this._bufferIndex = t3 + 1; - if (!(t3 < t4)) - return A.ioore(t1, t3); - t1[t3] = 191; - _this._bufferIndex = t2 + 1; - if (!(t2 < t4)) - return A.ioore(t1, t2); - t1[t2] = 189; - }, - _writeSurrogate$2(leadingSurrogate, nextCodeUnit) { - var rune, t1, t2, t3, t4, _this = this; - if ((nextCodeUnit & 64512) === 56320) { - rune = 65536 + ((leadingSurrogate & 1023) << 10) | nextCodeUnit & 1023; - t1 = _this._buffer; - t2 = _this._bufferIndex; - t3 = _this._bufferIndex = t2 + 1; - t4 = t1.length; - if (!(t2 < t4)) - return A.ioore(t1, t2); - t1[t2] = rune >>> 18 | 240; - t2 = _this._bufferIndex = t3 + 1; - if (!(t3 < t4)) - return A.ioore(t1, t3); - t1[t3] = rune >>> 12 & 63 | 128; - t3 = _this._bufferIndex = t2 + 1; - if (!(t2 < t4)) - return A.ioore(t1, t2); - t1[t2] = rune >>> 6 & 63 | 128; - _this._bufferIndex = t3 + 1; - if (!(t3 < t4)) - return A.ioore(t1, t3); - t1[t3] = rune & 63 | 128; - return true; - } else { - _this._writeReplacementCharacter$0(); - return false; - } - }, - _fillBuffer$3(str, start, end) { - var t1, t2, t3, stringIndex, codeUnit, t4, t5, _this = this; - if (start !== end) { - t1 = end - 1; - if (!(t1 >= 0 && t1 < str.length)) - return A.ioore(str, t1); - t1 = (str.charCodeAt(t1) & 64512) === 55296; - } else - t1 = false; - if (t1) - --end; - for (t1 = _this._buffer, t2 = t1.length, t3 = str.length, stringIndex = start; stringIndex < end; ++stringIndex) { - if (!(stringIndex < t3)) - return A.ioore(str, stringIndex); - codeUnit = str.charCodeAt(stringIndex); - if (codeUnit <= 127) { - t4 = _this._bufferIndex; - if (t4 >= t2) - break; - _this._bufferIndex = t4 + 1; - t1[t4] = codeUnit; - } else { - t4 = codeUnit & 64512; - if (t4 === 55296) { - if (_this._bufferIndex + 4 > t2) - break; - t4 = stringIndex + 1; - if (!(t4 < t3)) - return A.ioore(str, t4); - if (_this._writeSurrogate$2(codeUnit, str.charCodeAt(t4))) - stringIndex = t4; - } else if (t4 === 56320) { - if (_this._bufferIndex + 3 > t2) - break; - _this._writeReplacementCharacter$0(); - } else if (codeUnit <= 2047) { - t4 = _this._bufferIndex; - t5 = t4 + 1; - if (t5 >= t2) - break; - _this._bufferIndex = t5; - if (!(t4 < t2)) - return A.ioore(t1, t4); - t1[t4] = codeUnit >>> 6 | 192; - _this._bufferIndex = t5 + 1; - t1[t5] = codeUnit & 63 | 128; - } else { - t4 = _this._bufferIndex; - if (t4 + 2 >= t2) - break; - t5 = _this._bufferIndex = t4 + 1; - if (!(t4 < t2)) - return A.ioore(t1, t4); - t1[t4] = codeUnit >>> 12 | 224; - t4 = _this._bufferIndex = t5 + 1; - if (!(t5 < t2)) - return A.ioore(t1, t5); - t1[t5] = codeUnit >>> 6 & 63 | 128; - _this._bufferIndex = t4 + 1; - if (!(t4 < t2)) - return A.ioore(t1, t4); - t1[t4] = codeUnit & 63 | 128; - } - } - } - return stringIndex; - } - }; - A._BigIntImpl.prototype = { - $negate(_) { - var t2, t3, _this = this, - t1 = _this._used; - if (t1 === 0) - return _this; - t2 = !_this._isNegative; - t3 = _this._digits; - t1 = A._BigIntImpl__normalize(t1, t3); - return new A._BigIntImpl(t1 === 0 ? false : t2, t3, t1); - }, - _drShift$1(n) { - var resultUsed, digits, resultDigits, t1, i, t2, t3, result, _this = this, - used = _this._used; - if (used === 0) - return $.$get$_BigIntImpl_zero(); - resultUsed = used - n; - if (resultUsed <= 0) - return _this._isNegative ? $.$get$_BigIntImpl__minusOne() : $.$get$_BigIntImpl_zero(); - digits = _this._digits; - resultDigits = new Uint16Array(resultUsed); - for (t1 = digits.length, i = n; i < used; ++i) { - t2 = i - n; - if (!(i >= 0 && i < t1)) - return A.ioore(digits, i); - t3 = digits[i]; - if (!(t2 < resultUsed)) - return A.ioore(resultDigits, t2); - resultDigits[t2] = t3; - } - t2 = _this._isNegative; - t3 = A._BigIntImpl__normalize(resultUsed, resultDigits); - result = new A._BigIntImpl(t3 === 0 ? false : t2, resultDigits, t3); - if (t2) - for (i = 0; i < n; ++i) { - if (!(i < t1)) - return A.ioore(digits, i); - if (digits[i] !== 0) - return result.$sub(0, $.$get$_BigIntImpl_one()); - } - return result; - }, - $shr(_, shiftAmount) { - var t1, digitShift, bitShift, resultUsed, digits, resultDigits, t2, result, i, _this = this; - if (shiftAmount < 0) - throw A.wrapException(A.ArgumentError$("shift-amount must be posititve " + shiftAmount, null)); - t1 = _this._used; - if (t1 === 0) - return _this; - digitShift = B.JSInt_methods._tdivFast$1(shiftAmount, 16); - bitShift = B.JSInt_methods.$mod(shiftAmount, 16); - if (bitShift === 0) - return _this._drShift$1(digitShift); - resultUsed = t1 - digitShift; - if (resultUsed <= 0) - return _this._isNegative ? $.$get$_BigIntImpl__minusOne() : $.$get$_BigIntImpl_zero(); - digits = _this._digits; - resultDigits = new Uint16Array(resultUsed); - A._BigIntImpl__rsh(digits, t1, shiftAmount, resultDigits); - t1 = _this._isNegative; - t2 = A._BigIntImpl__normalize(resultUsed, resultDigits); - result = new A._BigIntImpl(t2 === 0 ? false : t1, resultDigits, t2); - if (t1) { - t1 = digits.length; - if (!(digitShift >= 0 && digitShift < t1)) - return A.ioore(digits, digitShift); - if ((digits[digitShift] & B.JSInt_methods.$shl(1, bitShift) - 1) >>> 0 !== 0) - return result.$sub(0, $.$get$_BigIntImpl_one()); - for (i = 0; i < digitShift; ++i) { - if (!(i < t1)) - return A.ioore(digits, i); - if (digits[i] !== 0) - return result.$sub(0, $.$get$_BigIntImpl_one()); - } - } - return result; - }, - compareTo$1(_, other) { - var t1, result; - type$._BigIntImpl._as(other); - t1 = this._isNegative; - if (t1 === other._isNegative) { - result = A._BigIntImpl__compareDigits(this._digits, this._used, other._digits, other._used); - return t1 ? 0 - result : result; - } - return t1 ? -1 : 1; - }, - _absAddSetSign$2(other, isNegative) { - var resultUsed, resultDigits, t1, _this = this, - used = _this._used, - otherUsed = other._used; - if (used < otherUsed) - return other._absAddSetSign$2(_this, isNegative); - if (used === 0) - return $.$get$_BigIntImpl_zero(); - if (otherUsed === 0) - return _this._isNegative === isNegative ? _this : _this.$negate(0); - resultUsed = used + 1; - resultDigits = new Uint16Array(resultUsed); - A._BigIntImpl__absAdd(_this._digits, used, other._digits, otherUsed, resultDigits); - t1 = A._BigIntImpl__normalize(resultUsed, resultDigits); - return new A._BigIntImpl(t1 === 0 ? false : isNegative, resultDigits, t1); - }, - _absSubSetSign$2(other, isNegative) { - var otherUsed, resultDigits, t1, _this = this, - used = _this._used; - if (used === 0) - return $.$get$_BigIntImpl_zero(); - otherUsed = other._used; - if (otherUsed === 0) - return _this._isNegative === isNegative ? _this : _this.$negate(0); - resultDigits = new Uint16Array(used); - A._BigIntImpl__absSub(_this._digits, used, other._digits, otherUsed, resultDigits); - t1 = A._BigIntImpl__normalize(used, resultDigits); - return new A._BigIntImpl(t1 === 0 ? false : isNegative, resultDigits, t1); - }, - $add(_, other) { - var t2, isNegative, _this = this, - t1 = _this._used; - if (t1 === 0) - return other; - t2 = other._used; - if (t2 === 0) - return _this; - isNegative = _this._isNegative; - if (isNegative === other._isNegative) - return _this._absAddSetSign$2(other, isNegative); - if (A._BigIntImpl__compareDigits(_this._digits, t1, other._digits, t2) >= 0) - return _this._absSubSetSign$2(other, isNegative); - return other._absSubSetSign$2(_this, !isNegative); - }, - $sub(_, other) { - var t2, isNegative, _this = this, - t1 = _this._used; - if (t1 === 0) - return other.$negate(0); - t2 = other._used; - if (t2 === 0) - return _this; - isNegative = _this._isNegative; - if (isNegative !== other._isNegative) - return _this._absAddSetSign$2(other, isNegative); - if (A._BigIntImpl__compareDigits(_this._digits, t1, other._digits, t2) >= 0) - return _this._absSubSetSign$2(other, isNegative); - return other._absSubSetSign$2(_this, !isNegative); - }, - $mul(_, other) { - var resultUsed, digits, otherDigits, resultDigits, t1, i, t2, - used = this._used, - otherUsed = other._used; - if (used === 0 || otherUsed === 0) - return $.$get$_BigIntImpl_zero(); - resultUsed = used + otherUsed; - digits = this._digits; - otherDigits = other._digits; - resultDigits = new Uint16Array(resultUsed); - for (t1 = otherDigits.length, i = 0; i < otherUsed;) { - if (!(i < t1)) - return A.ioore(otherDigits, i); - A._BigIntImpl__mulAdd(otherDigits[i], digits, 0, resultDigits, i, used); - ++i; - } - t1 = this._isNegative !== other._isNegative; - t2 = A._BigIntImpl__normalize(resultUsed, resultDigits); - return new A._BigIntImpl(t2 === 0 ? false : t1, resultDigits, t2); - }, - _div$1(other) { - var lastQuo_used, quo_digits, t1, quo; - if (this._used < other._used) - return $.$get$_BigIntImpl_zero(); - this._divRem$1(other); - lastQuo_used = $._BigIntImpl____lastQuoRemUsed._readField$0() - $._BigIntImpl____lastRemUsed._readField$0(); - quo_digits = A._BigIntImpl__cloneDigits($._BigIntImpl____lastQuoRemDigits._readField$0(), $._BigIntImpl____lastRemUsed._readField$0(), $._BigIntImpl____lastQuoRemUsed._readField$0(), lastQuo_used); - t1 = A._BigIntImpl__normalize(lastQuo_used, quo_digits); - quo = new A._BigIntImpl(false, quo_digits, t1); - return this._isNegative !== other._isNegative && t1 > 0 ? quo.$negate(0) : quo; - }, - _rem$1(other) { - var remDigits, t1, rem, _this = this; - if (_this._used < other._used) - return _this; - _this._divRem$1(other); - remDigits = A._BigIntImpl__cloneDigits($._BigIntImpl____lastQuoRemDigits._readField$0(), 0, $._BigIntImpl____lastRemUsed._readField$0(), $._BigIntImpl____lastRemUsed._readField$0()); - t1 = A._BigIntImpl__normalize($._BigIntImpl____lastRemUsed._readField$0(), remDigits); - rem = new A._BigIntImpl(false, remDigits, t1); - if ($._BigIntImpl____lastRem_nsh._readField$0() > 0) - rem = rem.$shr(0, $._BigIntImpl____lastRem_nsh._readField$0()); - return _this._isNegative && rem._used > 0 ? rem.$negate(0) : rem; - }, - _divRem$1(other) { - var yDigits, yUsed, t1, nsh, yDigits0, yUsed0, resultDigits, resultUsed0, topDigitDivisor, j, tmpDigits, tmpUsed, resultUsed1, t2, nyDigits, i, estimatedQuotientDigit, _this = this, - resultUsed = _this._used; - if (resultUsed === $._BigIntImpl__lastDividendUsed && other._used === $._BigIntImpl__lastDivisorUsed && _this._digits === $._BigIntImpl__lastDividendDigits && other._digits === $._BigIntImpl__lastDivisorDigits) - return; - yDigits = other._digits; - yUsed = other._used; - t1 = yUsed - 1; - if (!(t1 >= 0 && t1 < yDigits.length)) - return A.ioore(yDigits, t1); - nsh = 16 - B.JSInt_methods.get$bitLength(yDigits[t1]); - if (nsh > 0) { - yDigits0 = new Uint16Array(yUsed + 5); - yUsed0 = A._BigIntImpl__lShiftDigits(yDigits, yUsed, nsh, yDigits0); - resultDigits = new Uint16Array(resultUsed + 5); - resultUsed0 = A._BigIntImpl__lShiftDigits(_this._digits, resultUsed, nsh, resultDigits); - } else { - resultDigits = A._BigIntImpl__cloneDigits(_this._digits, 0, resultUsed, resultUsed + 2); - yUsed0 = yUsed; - yDigits0 = yDigits; - resultUsed0 = resultUsed; - } - t1 = yUsed0 - 1; - if (!(t1 >= 0 && t1 < yDigits0.length)) - return A.ioore(yDigits0, t1); - topDigitDivisor = yDigits0[t1]; - j = resultUsed0 - yUsed0; - tmpDigits = new Uint16Array(resultUsed0); - tmpUsed = A._BigIntImpl__dlShiftDigits(yDigits0, yUsed0, j, tmpDigits); - resultUsed1 = resultUsed0 + 1; - t1 = resultDigits.length; - if (A._BigIntImpl__compareDigits(resultDigits, resultUsed0, tmpDigits, tmpUsed) >= 0) { - if (!(resultUsed0 >= 0 && resultUsed0 < t1)) - return A.ioore(resultDigits, resultUsed0); - resultDigits[resultUsed0] = 1; - A._BigIntImpl__absSub(resultDigits, resultUsed1, tmpDigits, tmpUsed, resultDigits); - } else { - if (!(resultUsed0 >= 0 && resultUsed0 < t1)) - return A.ioore(resultDigits, resultUsed0); - resultDigits[resultUsed0] = 0; - } - t2 = yUsed0 + 2; - nyDigits = new Uint16Array(t2); - if (!(yUsed0 >= 0 && yUsed0 < t2)) - return A.ioore(nyDigits, yUsed0); - nyDigits[yUsed0] = 1; - A._BigIntImpl__absSub(nyDigits, yUsed0 + 1, yDigits0, yUsed0, nyDigits); - i = resultUsed0 - 1; - for (; j > 0;) { - estimatedQuotientDigit = A._BigIntImpl__estimateQuotientDigit(topDigitDivisor, resultDigits, i); - --j; - A._BigIntImpl__mulAdd(estimatedQuotientDigit, nyDigits, 0, resultDigits, j, yUsed0); - if (!(i >= 0 && i < t1)) - return A.ioore(resultDigits, i); - if (resultDigits[i] < estimatedQuotientDigit) { - tmpUsed = A._BigIntImpl__dlShiftDigits(nyDigits, yUsed0, j, tmpDigits); - A._BigIntImpl__absSub(resultDigits, resultUsed1, tmpDigits, tmpUsed, resultDigits); - for (; --estimatedQuotientDigit, resultDigits[i] < estimatedQuotientDigit;) - A._BigIntImpl__absSub(resultDigits, resultUsed1, tmpDigits, tmpUsed, resultDigits); - } - --i; - } - $._BigIntImpl__lastDividendDigits = _this._digits; - $._BigIntImpl__lastDividendUsed = resultUsed; - $._BigIntImpl__lastDivisorDigits = yDigits; - $._BigIntImpl__lastDivisorUsed = yUsed; - $._BigIntImpl____lastQuoRemDigits.__late_helper$_value = resultDigits; - $._BigIntImpl____lastQuoRemUsed.__late_helper$_value = resultUsed1; - $._BigIntImpl____lastRemUsed.__late_helper$_value = yUsed0; - $._BigIntImpl____lastRem_nsh.__late_helper$_value = nsh; - }, - get$hashCode(_) { - var hash, t2, t3, i, - combine = new A._BigIntImpl_hashCode_combine(), - t1 = this._used; - if (t1 === 0) - return 6707; - hash = this._isNegative ? 83585 : 429689; - for (t2 = this._digits, t3 = t2.length, i = 0; i < t1; ++i) { - if (!(i < t3)) - return A.ioore(t2, i); - hash = combine.call$2(hash, t2[i]); - } - return new A._BigIntImpl_hashCode_finish().call$1(hash); - }, - $eq(_, other) { - if (other == null) - return false; - return other instanceof A._BigIntImpl && this.compareTo$1(0, other) === 0; - }, - toString$0(_) { - var decimalDigitChunks, rest, t2, digits4, t3, _this = this, - t1 = _this._used; - if (t1 === 0) - return "0"; - if (t1 === 1) { - if (_this._isNegative) { - t1 = _this._digits; - if (0 >= t1.length) - return A.ioore(t1, 0); - return B.JSInt_methods.toString$0(-t1[0]); - } - t1 = _this._digits; - if (0 >= t1.length) - return A.ioore(t1, 0); - return B.JSInt_methods.toString$0(t1[0]); - } - decimalDigitChunks = A._setArrayType([], type$.JSArray_String); - t1 = _this._isNegative; - rest = t1 ? _this.$negate(0) : _this; - for (; rest._used > 1;) { - t2 = $.$get$_BigIntImpl__bigInt10000(); - if (t2._used === 0) - A.throwExpression(B.C_IntegerDivisionByZeroException); - digits4 = rest._rem$1(t2).toString$0(0); - B.JSArray_methods.add$1(decimalDigitChunks, digits4); - t3 = digits4.length; - if (t3 === 1) - B.JSArray_methods.add$1(decimalDigitChunks, "000"); - if (t3 === 2) - B.JSArray_methods.add$1(decimalDigitChunks, "00"); - if (t3 === 3) - B.JSArray_methods.add$1(decimalDigitChunks, "0"); - rest = rest._div$1(t2); - } - t2 = rest._digits; - if (0 >= t2.length) - return A.ioore(t2, 0); - B.JSArray_methods.add$1(decimalDigitChunks, B.JSInt_methods.toString$0(t2[0])); - if (t1) - B.JSArray_methods.add$1(decimalDigitChunks, "-"); - return new A.ReversedListIterable(decimalDigitChunks, type$.ReversedListIterable_String).join$0(0); - }, - $isBigInt: 1, - $isComparable: 1 - }; - A._BigIntImpl_hashCode_combine.prototype = { - call$2(hash, value) { - hash = hash + value & 536870911; - hash = hash + ((hash & 524287) << 10) & 536870911; - return hash ^ hash >>> 6; - }, - $signature: 22 - }; - A._BigIntImpl_hashCode_finish.prototype = { - call$1(hash) { - hash = hash + ((hash & 67108863) << 3) & 536870911; - hash ^= hash >>> 11; - return hash + ((hash & 16383) << 15) & 536870911; - }, - $signature: 23 - }; - A.NoSuchMethodError_toString_closure.prototype = { - call$2(key, value) { - var t1, t2, t3; - type$.Symbol._as(key); - t1 = this.sb; - t2 = this._box_0; - t3 = t1._contents += t2.comma; - t3 += key._name; - t1._contents = t3; - t1._contents = t3 + ": "; - t3 = A.Error_safeToString(value); - t1._contents += t3; - t2.comma = ", "; - }, - $signature: 85 - }; - A.DateTime.prototype = { - $eq(_, other) { - if (other == null) - return false; - return other instanceof A.DateTime && this._value === other._value && this.isUtc === other.isUtc; - }, - compareTo$1(_, other) { - return B.JSInt_methods.compareTo$1(this._value, type$.DateTime._as(other)._value); - }, - get$hashCode(_) { - var t1 = this._value; - return (t1 ^ B.JSInt_methods._shrOtherPositive$1(t1, 30)) & 1073741823; - }, - toString$0(_) { - var _this = this, - y = A.DateTime__fourDigits(A.Primitives_getYear(_this)), - m = A.DateTime__twoDigits(A.Primitives_getMonth(_this)), - d = A.DateTime__twoDigits(A.Primitives_getDay(_this)), - h = A.DateTime__twoDigits(A.Primitives_getHours(_this)), - min = A.DateTime__twoDigits(A.Primitives_getMinutes(_this)), - sec = A.DateTime__twoDigits(A.Primitives_getSeconds(_this)), - ms = A.DateTime__threeDigits(A.Primitives_getMilliseconds(_this)), - t1 = y + "-" + m; - if (_this.isUtc) - return t1 + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms + "Z"; - else - return t1 + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms; - }, - $isComparable: 1 - }; - A.Duration.prototype = { - $eq(_, other) { - if (other == null) - return false; - return other instanceof A.Duration && this._duration === other._duration; - }, - get$hashCode(_) { - return B.JSInt_methods.get$hashCode(this._duration); - }, - compareTo$1(_, other) { - return B.JSInt_methods.compareTo$1(this._duration, type$.Duration._as(other)._duration); - }, - toString$0(_) { - var sign, minutes, minutesPadding, seconds, secondsPadding, - microseconds = this._duration, - hours = B.JSInt_methods._tdivFast$1(microseconds, 3600000000), - microseconds0 = microseconds % 3600000000; - if (microseconds < 0) { - hours = 0 - hours; - microseconds = 0 - microseconds0; - sign = "-"; - } else { - microseconds = microseconds0; - sign = ""; - } - minutes = B.JSInt_methods._tdivFast$1(microseconds, 60000000); - microseconds %= 60000000; - minutesPadding = minutes < 10 ? "0" : ""; - seconds = B.JSInt_methods._tdivFast$1(microseconds, 1000000); - secondsPadding = seconds < 10 ? "0" : ""; - return sign + hours + ":" + minutesPadding + minutes + ":" + secondsPadding + seconds + "." + B.JSString_methods.padLeft$2(B.JSInt_methods.toString$0(microseconds % 1000000), 6, "0"); - }, - $isComparable: 1 - }; - A.Error.prototype = { - get$stackTrace() { - return A.Primitives_extractStackTrace(this); - } - }; - A.AssertionError.prototype = { - toString$0(_) { - var t1 = this.message; - if (t1 != null) - return "Assertion failed: " + A.Error_safeToString(t1); - return "Assertion failed"; - } - }; - A.TypeError.prototype = {}; - A.ArgumentError.prototype = { - get$_errorName() { - return "Invalid argument" + (!this._hasValue ? "(s)" : ""); - }, - get$_errorExplanation() { - return ""; - }, - toString$0(_) { - var _this = this, - $name = _this.name, - nameString = $name == null ? "" : " (" + $name + ")", - message = _this.message, - messageString = message == null ? "" : ": " + A.S(message), - prefix = _this.get$_errorName() + nameString + messageString; - if (!_this._hasValue) - return prefix; - return prefix + _this.get$_errorExplanation() + ": " + A.Error_safeToString(_this.get$invalidValue()); - }, - get$invalidValue() { - return this.invalidValue; - } - }; - A.RangeError.prototype = { - get$invalidValue() { - return A._asNumQ(this.invalidValue); - }, - get$_errorName() { - return "RangeError"; - }, - get$_errorExplanation() { - var explanation, - start = this.start, - end = this.end; - if (start == null) - explanation = end != null ? ": Not less than or equal to " + A.S(end) : ""; - else if (end == null) - explanation = ": Not greater than or equal to " + A.S(start); - else if (end > start) - explanation = ": Not in inclusive range " + A.S(start) + ".." + A.S(end); - else - explanation = end < start ? ": Valid value range is empty" : ": Only valid value is " + A.S(start); - return explanation; - } - }; - A.IndexError.prototype = { - get$invalidValue() { - return A._asInt(this.invalidValue); - }, - get$_errorName() { - return "RangeError"; - }, - get$_errorExplanation() { - if (A._asInt(this.invalidValue) < 0) - return ": index must not be negative"; - var t1 = this.length; - if (t1 === 0) - return ": no indices are valid"; - return ": index should be less than " + t1; - }, - get$length(receiver) { - return this.length; - } - }; - A.NoSuchMethodError.prototype = { - toString$0(_) { - var $arguments, t1, _i, t2, t3, argument, receiverText, actualParameters, _this = this, _box_0 = {}, - sb = new A.StringBuffer(""); - _box_0.comma = ""; - $arguments = _this._core$_arguments; - for (t1 = $arguments.length, _i = 0, t2 = "", t3 = ""; _i < t1; ++_i, t3 = ", ") { - argument = $arguments[_i]; - sb._contents = t2 + t3; - t2 = A.Error_safeToString(argument); - t2 = sb._contents += t2; - _box_0.comma = ", "; - } - _this._namedArguments.forEach$1(0, new A.NoSuchMethodError_toString_closure(_box_0, sb)); - receiverText = A.Error_safeToString(_this._core$_receiver); - actualParameters = sb.toString$0(0); - return "NoSuchMethodError: method not found: '" + _this._core$_memberName._name + "'\nReceiver: " + receiverText + "\nArguments: [" + actualParameters + "]"; - } - }; - A.UnsupportedError.prototype = { - toString$0(_) { - return "Unsupported operation: " + this.message; - } - }; - A.UnimplementedError.prototype = { - toString$0(_) { - var message = this.message; - return message != null ? "UnimplementedError: " + message : "UnimplementedError"; - } - }; - A.StateError.prototype = { - toString$0(_) { - return "Bad state: " + this.message; - } - }; - A.ConcurrentModificationError.prototype = { - toString$0(_) { - var t1 = this.modifiedObject; - if (t1 == null) - return "Concurrent modification during iteration."; - return "Concurrent modification during iteration: " + A.Error_safeToString(t1) + "."; - } - }; - A.OutOfMemoryError.prototype = { - toString$0(_) { - return "Out of Memory"; - }, - get$stackTrace() { - return null; - }, - $isError: 1 - }; - A.StackOverflowError.prototype = { - toString$0(_) { - return "Stack Overflow"; - }, - get$stackTrace() { - return null; - }, - $isError: 1 - }; - A._Exception.prototype = { - toString$0(_) { - return "Exception: " + this.message; - } - }; - A.FormatException.prototype = { - toString$0(_) { - var t1, lineEnd, lineNum, lineStart, previousCharWasCR, i, char, end, start, prefix, postfix, - message = this.message, - report = "" !== message ? "FormatException: " + message : "FormatException", - offset = this.offset, - source = this.source; - if (typeof source == "string") { - if (offset != null) - t1 = offset < 0 || offset > source.length; - else - t1 = false; - if (t1) - offset = null; - if (offset == null) { - if (source.length > 78) - source = B.JSString_methods.substring$2(source, 0, 75) + "..."; - return report + "\n" + source; - } - for (lineEnd = source.length, lineNum = 1, lineStart = 0, previousCharWasCR = false, i = 0; i < offset; ++i) { - if (!(i < lineEnd)) - return A.ioore(source, i); - char = source.charCodeAt(i); - if (char === 10) { - if (lineStart !== i || !previousCharWasCR) - ++lineNum; - lineStart = i + 1; - previousCharWasCR = false; - } else if (char === 13) { - ++lineNum; - lineStart = i + 1; - previousCharWasCR = true; - } - } - report = lineNum > 1 ? report + (" (at line " + lineNum + ", character " + (offset - lineStart + 1) + ")\n") : report + (" (at character " + (offset + 1) + ")\n"); - for (i = offset; i < lineEnd; ++i) { - if (!(i >= 0)) - return A.ioore(source, i); - char = source.charCodeAt(i); - if (char === 10 || char === 13) { - lineEnd = i; - break; - } - } - if (lineEnd - lineStart > 78) - if (offset - lineStart < 75) { - end = lineStart + 75; - start = lineStart; - prefix = ""; - postfix = "..."; - } else { - if (lineEnd - offset < 75) { - start = lineEnd - 75; - end = lineEnd; - postfix = ""; - } else { - start = offset - 36; - end = offset + 36; - postfix = "..."; - } - prefix = "..."; - } - else { - end = lineEnd; - start = lineStart; - prefix = ""; - postfix = ""; - } - return report + prefix + B.JSString_methods.substring$2(source, start, end) + postfix + "\n" + B.JSString_methods.$mul(" ", offset - start + prefix.length) + "^\n"; - } else - return offset != null ? report + (" (at offset " + A.S(offset) + ")") : report; - } - }; - A.IntegerDivisionByZeroException.prototype = { - get$stackTrace() { - return null; - }, - toString$0(_) { - return "IntegerDivisionByZeroException"; - }, - $isError: 1 - }; - A.Iterable.prototype = { - cast$1$0(_, $R) { - return A.CastIterable_CastIterable(this, A.instanceType(this)._eval$1("Iterable.E"), $R); - }, - map$1$1(_, toElement, $T) { - var t1 = A.instanceType(this); - return A.MappedIterable_MappedIterable(this, t1._bind$1($T)._eval$1("1(Iterable.E)")._as(toElement), t1._eval$1("Iterable.E"), $T); - }, - map$1(_, toElement) { - return this.map$1$1(0, toElement, type$.dynamic); - }, - where$1(_, test) { - var t1 = A.instanceType(this); - return new A.WhereIterable(this, t1._eval$1("bool(Iterable.E)")._as(test), t1._eval$1("WhereIterable")); - }, - contains$1(_, element) { - var t1; - for (t1 = this.get$iterator(this); t1.moveNext$0();) - if (J.$eq$(t1.get$current(t1), element)) - return true; - return false; - }, - toList$1$growable(_, growable) { - return A.List_List$of(this, growable, A.instanceType(this)._eval$1("Iterable.E")); - }, - toList$0(_) { - return this.toList$1$growable(0, true); - }, - get$length(_) { - var count, - it = this.get$iterator(this); - for (count = 0; it.moveNext$0();) - ++count; - return count; - }, - get$isEmpty(_) { - return !this.get$iterator(this).moveNext$0(); - }, - get$isNotEmpty(_) { - return !this.get$isEmpty(this); - }, - take$1(_, count) { - return A.TakeIterable_TakeIterable(this, count, A.instanceType(this)._eval$1("Iterable.E")); - }, - skip$1(_, count) { - return A.SkipIterable_SkipIterable(this, count, A.instanceType(this)._eval$1("Iterable.E")); - }, - get$first(_) { - var it = this.get$iterator(this); - if (!it.moveNext$0()) - throw A.wrapException(A.IterableElementError_noElement()); - return it.get$current(it); - }, - get$single(_) { - var result, - it = this.get$iterator(this); - if (!it.moveNext$0()) - throw A.wrapException(A.IterableElementError_noElement()); - result = it.get$current(it); - if (it.moveNext$0()) - throw A.wrapException(A.IterableElementError_tooMany()); - return result; - }, - elementAt$1(_, index) { - var iterator, skipCount; - A.RangeError_checkNotNegative(index, "index"); - iterator = this.get$iterator(this); - for (skipCount = index; iterator.moveNext$0();) { - if (skipCount === 0) - return iterator.get$current(iterator); - --skipCount; - } - throw A.wrapException(A.IndexError$withLength(index, index - skipCount, this, null, "index")); - }, - toString$0(_) { - return A.Iterable_iterableToShortString(this, "(", ")"); - } - }; - A.Null.prototype = { - get$hashCode(_) { - return A.Object.prototype.get$hashCode.call(this, 0); - }, - toString$0(_) { - return "null"; - } - }; - A.Object.prototype = {$isObject: 1, - $eq(_, other) { - return this === other; - }, - get$hashCode(_) { - return A.Primitives_objectHashCode(this); - }, - toString$0(_) { - return "Instance of '" + A.Primitives_objectTypeName(this) + "'"; - }, - noSuchMethod$1(_, invocation) { - throw A.wrapException(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, type$.Invocation._as(invocation))); - }, - get$runtimeType(_) { - return A.getRuntimeTypeOfDartObject(this); - }, - toString() { - return this.toString$0(this); - } - }; - A._StringStackTrace.prototype = { - toString$0(_) { - return this._stackTrace; - }, - $isStackTrace: 1 - }; - A.StringBuffer.prototype = { - get$length(_) { - return this._contents.length; - }, - write$1(_, obj) { - var t1 = A.S(obj); - this._contents += t1; - }, - writeCharCode$1(charCode) { - var t1 = A.Primitives_stringFromCharCode(charCode); - this._contents += t1; - }, - toString$0(_) { - var t1 = this._contents; - return t1.charCodeAt(0) == 0 ? t1 : t1; - }, - $isStringSink: 1 - }; - A.Uri__parseIPv4Address_error.prototype = { - call$2(msg, position) { - throw A.wrapException(A.FormatException$("Illegal IPv4 address, " + msg, this.host, position)); - }, - $signature: 67 - }; - A.Uri_parseIPv6Address_error.prototype = { - call$2(msg, position) { - throw A.wrapException(A.FormatException$("Illegal IPv6 address, " + msg, this.host, position)); - }, - $signature: 66 - }; - A.Uri_parseIPv6Address_parseHex.prototype = { - call$2(start, end) { - var value; - if (end - start > 4) - this.error.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start); - value = A.int_parse(B.JSString_methods.substring$2(this.host, start, end), 16); - if (value < 0 || value > 65535) - this.error.call$2("each part must be in the range of `0x0..0xFFFF`", start); - return value; - }, - $signature: 22 - }; - A._Uri.prototype = { - get$_text() { - var t1, t2, t3, t4, _this = this, - value = _this.___Uri__text_FI; - if (value === $) { - t1 = _this.scheme; - t2 = t1.length !== 0 ? "" + t1 + ":" : ""; - t3 = _this._host; - t4 = t3 == null; - if (!t4 || t1 === "file") { - t1 = t2 + "//"; - t2 = _this._userInfo; - if (t2.length !== 0) - t1 = t1 + t2 + "@"; - if (!t4) - t1 += t3; - t2 = _this._port; - if (t2 != null) - t1 = t1 + ":" + A.S(t2); - } else - t1 = t2; - t1 += _this.path; - t2 = _this._query; - if (t2 != null) - t1 = t1 + "?" + t2; - t2 = _this._fragment; - if (t2 != null) - t1 = t1 + "#" + t2; - value !== $ && A.throwLateFieldADI("_text"); - value = _this.___Uri__text_FI = t1.charCodeAt(0) == 0 ? t1 : t1; - } - return value; - }, - get$hashCode(_) { - var result, _this = this, - value = _this.___Uri_hashCode_FI; - if (value === $) { - result = B.JSString_methods.get$hashCode(_this.get$_text()); - _this.___Uri_hashCode_FI !== $ && A.throwLateFieldADI("hashCode"); - _this.___Uri_hashCode_FI = result; - value = result; - } - return value; - }, - get$userInfo() { - return this._userInfo; - }, - get$host(_) { - var host = this._host; - if (host == null) - return ""; - if (B.JSString_methods.startsWith$1(host, "[")) - return B.JSString_methods.substring$2(host, 1, host.length - 1); - return host; - }, - get$port(_) { - var t1 = this._port; - return t1 == null ? A._Uri__defaultPort(this.scheme) : t1; - }, - get$query(_) { - var t1 = this._query; - return t1 == null ? "" : t1; - }, - get$fragment() { - var t1 = this._fragment; - return t1 == null ? "" : t1; - }, - isScheme$1(scheme) { - var thisScheme = this.scheme; - if (scheme.length !== thisScheme.length) - return false; - return A._caseInsensitiveCompareStart(scheme, thisScheme, 0) >= 0; - }, - replace$2$path$scheme(_, path, scheme) { - var schemeChanged, isFile, userInfo, port, host, hasAuthority, t1, currentPath, _this = this, - scheme0 = _this.scheme; - if (scheme != null) { - scheme = A._Uri__makeScheme(scheme, 0, scheme.length); - schemeChanged = scheme !== scheme0; - } else { - scheme = scheme0; - schemeChanged = false; - } - isFile = scheme === "file"; - userInfo = _this._userInfo; - port = _this._port; - if (schemeChanged) - port = A._Uri__makePort(port, scheme); - host = _this._host; - if (!(host != null)) - host = userInfo.length !== 0 || port != null || isFile ? "" : null; - hasAuthority = host != null; - if (path != null) { - t1 = path.length; - path = A._Uri__makePath(path, 0, t1, null, scheme, hasAuthority); - } else { - currentPath = _this.path; - if (!isFile) - t1 = hasAuthority && currentPath.length !== 0; - else - t1 = true; - if (t1 && !B.JSString_methods.startsWith$1(currentPath, "/")) - currentPath = "/" + currentPath; - path = currentPath; - } - return A._Uri$_internal(scheme, userInfo, host, port, path, _this._query, _this._fragment); - }, - replace$1$scheme(_, scheme) { - return this.replace$2$path$scheme(0, null, scheme); - }, - replace$1$path(_, path) { - return this.replace$2$path$scheme(0, path, null); - }, - get$hasAuthority() { - return this._host != null; - }, - get$hasQuery() { - return this._query != null; - }, - get$hasFragment() { - return this._fragment != null; - }, - toString$0(_) { - return this.get$_text(); - }, - $eq(_, other) { - var t1, t2, _this = this; - if (other == null) - return false; - if (_this === other) - return true; - if (type$.Uri._is(other)) - if (_this.scheme === other.get$scheme()) - if (_this._host != null === other.get$hasAuthority()) - if (_this._userInfo === other.get$userInfo()) - if (_this.get$host(0) === other.get$host(other)) - if (_this.get$port(0) === other.get$port(other)) - if (_this.path === other.get$path(other)) { - t1 = _this._query; - t2 = t1 == null; - if (!t2 === other.get$hasQuery()) { - if (t2) - t1 = ""; - if (t1 === other.get$query(other)) { - t1 = _this._fragment; - t2 = t1 == null; - if (!t2 === other.get$hasFragment()) { - if (t2) - t1 = ""; - t1 = t1 === other.get$fragment(); - } else - t1 = false; - } else - t1 = false; - } else - t1 = false; - } else - t1 = false; - else - t1 = false; - else - t1 = false; - else - t1 = false; - else - t1 = false; - else - t1 = false; - else - t1 = false; - return t1; - }, - $isUri: 1, - get$scheme() { - return this.scheme; - }, - get$path(receiver) { - return this.path; - } - }; - A._Uri__makePath_closure.prototype = { - call$1(s) { - return A._Uri__uriEncode(B.List_M2I0, A._asString(s), B.C_Utf8Codec, false); - }, - $signature: 24 - }; - A.UriData.prototype = { - get$uri() { - var t2, queryIndex, end, query, _this = this, _null = null, - t1 = _this._uriCache; - if (t1 == null) { - t1 = _this._separatorIndices; - if (0 >= t1.length) - return A.ioore(t1, 0); - t2 = _this._text; - t1 = t1[0] + 1; - queryIndex = B.JSString_methods.indexOf$2(t2, "?", t1); - end = t2.length; - if (queryIndex >= 0) { - query = A._Uri__normalizeOrSubstring(t2, queryIndex + 1, end, B.List_42A, false, false); - end = queryIndex; - } else - query = _null; - t1 = _this._uriCache = new A._DataUri("data", "", _null, _null, A._Uri__normalizeOrSubstring(t2, t1, end, B.List_M2I, false, false), query, _null); - } - return t1; - }, - toString$0(_) { - var t2, - t1 = this._separatorIndices; - if (0 >= t1.length) - return A.ioore(t1, 0); - t2 = this._text; - return t1[0] === -1 ? "data:" + t2 : t2; - } - }; - A._createTables_build.prototype = { - call$2(state, defaultTransition) { - var t1 = this.tables; - if (!(state < t1.length)) - return A.ioore(t1, state); - t1 = t1[state]; - B.NativeUint8List_methods.fillRange$3(t1, 0, 96, defaultTransition); - return t1; - }, - $signature: 62 - }; - A._createTables_setChars.prototype = { - call$3(target, chars, transition) { - var t1, i, t2; - for (t1 = chars.length, i = 0; i < t1; ++i) { - t2 = chars.charCodeAt(i) ^ 96; - if (!(t2 < 96)) - return A.ioore(target, t2); - target[t2] = transition; - } - }, - $signature: 25 - }; - A._createTables_setRange.prototype = { - call$3(target, range, transition) { - var i, n, - t1 = range.length; - if (0 >= t1) - return A.ioore(range, 0); - i = range.charCodeAt(0); - if (1 >= t1) - return A.ioore(range, 1); - n = range.charCodeAt(1); - for (; i <= n; ++i) { - t1 = (i ^ 96) >>> 0; - if (!(t1 < 96)) - return A.ioore(target, t1); - target[t1] = transition; - } - }, - $signature: 25 - }; - A._SimpleUri.prototype = { - get$hasAuthority() { - return this._hostStart > 0; - }, - get$hasPort() { - return this._hostStart > 0 && this._portStart + 1 < this._pathStart; - }, - get$hasQuery() { - return this._queryStart < this._fragmentStart; - }, - get$hasFragment() { - return this._fragmentStart < this._uri.length; - }, - isScheme$1(scheme) { - var t1 = scheme.length; - if (t1 === 0) - return this._schemeEnd < 0; - if (t1 !== this._schemeEnd) - return false; - return A._caseInsensitiveCompareStart(scheme, this._uri, 0) >= 0; - }, - get$scheme() { - var t1 = this._schemeCache; - return t1 == null ? this._schemeCache = this._computeScheme$0() : t1; - }, - _computeScheme$0() { - var t2, _this = this, - t1 = _this._schemeEnd; - if (t1 <= 0) - return ""; - t2 = t1 === 4; - if (t2 && B.JSString_methods.startsWith$1(_this._uri, "http")) - return "http"; - if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https")) - return "https"; - if (t2 && B.JSString_methods.startsWith$1(_this._uri, "file")) - return "file"; - if (t1 === 7 && B.JSString_methods.startsWith$1(_this._uri, "package")) - return "package"; - return B.JSString_methods.substring$2(_this._uri, 0, t1); - }, - get$userInfo() { - var t1 = this._hostStart, - t2 = this._schemeEnd + 3; - return t1 > t2 ? B.JSString_methods.substring$2(this._uri, t2, t1 - 1) : ""; - }, - get$host(_) { - var t1 = this._hostStart; - return t1 > 0 ? B.JSString_methods.substring$2(this._uri, t1, this._portStart) : ""; - }, - get$port(_) { - var t1, _this = this; - if (_this.get$hasPort()) - return A.int_parse(B.JSString_methods.substring$2(_this._uri, _this._portStart + 1, _this._pathStart), null); - t1 = _this._schemeEnd; - if (t1 === 4 && B.JSString_methods.startsWith$1(_this._uri, "http")) - return 80; - if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https")) - return 443; - return 0; - }, - get$path(_) { - return B.JSString_methods.substring$2(this._uri, this._pathStart, this._queryStart); - }, - get$query(_) { - var t1 = this._queryStart, - t2 = this._fragmentStart; - return t1 < t2 ? B.JSString_methods.substring$2(this._uri, t1 + 1, t2) : ""; - }, - get$fragment() { - var t1 = this._fragmentStart, - t2 = this._uri; - return t1 < t2.length ? B.JSString_methods.substring$1(t2, t1 + 1) : ""; - }, - replace$2$path$scheme(_, path, scheme) { - var schemeChanged, isFile, t1, userInfo, port, host, hasAuthority, t2, query, fragment, _this = this, _null = null; - if (scheme != null) { - scheme = A._Uri__makeScheme(scheme, 0, scheme.length); - schemeChanged = !(_this._schemeEnd === scheme.length && B.JSString_methods.startsWith$1(_this._uri, scheme)); - } else { - scheme = _this.get$scheme(); - schemeChanged = false; - } - isFile = scheme === "file"; - t1 = _this._hostStart; - userInfo = t1 > 0 ? B.JSString_methods.substring$2(_this._uri, _this._schemeEnd + 3, t1) : ""; - port = _this.get$hasPort() ? _this.get$port(0) : _null; - if (schemeChanged) - port = A._Uri__makePort(port, scheme); - t1 = _this._hostStart; - if (t1 > 0) - host = B.JSString_methods.substring$2(_this._uri, t1, _this._portStart); - else - host = userInfo.length !== 0 || port != null || isFile ? "" : _null; - hasAuthority = host != null; - if (path != null) { - t1 = path.length; - path = A._Uri__makePath(path, 0, t1, _null, scheme, hasAuthority); - } else { - path = B.JSString_methods.substring$2(_this._uri, _this._pathStart, _this._queryStart); - if (!isFile) - t1 = hasAuthority && path.length !== 0; - else - t1 = true; - if (t1 && !B.JSString_methods.startsWith$1(path, "/")) - path = "/" + path; - } - t1 = _this._queryStart; - t2 = _this._fragmentStart; - query = t1 < t2 ? B.JSString_methods.substring$2(_this._uri, t1 + 1, t2) : _null; - t1 = _this._fragmentStart; - t2 = _this._uri; - fragment = t1 < t2.length ? B.JSString_methods.substring$1(t2, t1 + 1) : _null; - return A._Uri$_internal(scheme, userInfo, host, port, path, query, fragment); - }, - replace$1$scheme(_, scheme) { - return this.replace$2$path$scheme(0, null, scheme); - }, - replace$1$path(_, path) { - return this.replace$2$path$scheme(0, path, null); - }, - get$hashCode(_) { - var t1 = this._hashCodeCache; - return t1 == null ? this._hashCodeCache = B.JSString_methods.get$hashCode(this._uri) : t1; - }, - $eq(_, other) { - if (other == null) - return false; - if (this === other) - return true; - return type$.Uri._is(other) && this._uri === other.toString$0(0); - }, - toString$0(_) { - return this._uri; - }, - $isUri: 1 - }; - A._DataUri.prototype = {}; - A.HtmlElement.prototype = {$isHtmlElement: 1}; - A.AccessibleNodeList.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.AnchorElement.prototype = { - set$href(receiver, value) { - receiver.href = value; - }, - toString$0(receiver) { - var t1 = String(receiver); - t1.toString; - return t1; - }, - $isAnchorElement: 1 - }; - A.AreaElement.prototype = { - toString$0(receiver) { - var t1 = String(receiver); - t1.toString; - return t1; - } - }; - A.BaseElement.prototype = {$isBaseElement: 1}; - A.Blob.prototype = {$isBlob: 1}; - A.BodyElement.prototype = {$isBodyElement: 1}; - A.CharacterData.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.CssPerspective.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.CssRule.prototype = {$isCssRule: 1}; - A.CssStyleDeclaration.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - } - }; - A.CssStyleDeclarationBase.prototype = {}; - A.CssStyleValue.prototype = {}; - A.CssTransformComponent.prototype = {}; - A.CssTransformValue.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.CssUnparsedValue.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.CustomEvent.prototype = { - _initCustomEvent$4(receiver, type, bubbles, cancelable, detail) { - return receiver.initCustomEvent(type, true, true, detail); - }, - $isCustomEvent: 1 - }; - A.DataTransferItemList.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.Document.prototype = {$isDocument: 1}; - A.DomException.prototype = { - toString$0(receiver) { - var t1 = String(receiver); - t1.toString; - return t1; - } - }; - A.DomImplementation.prototype = { - createHtmlDocument$1(receiver, title) { - var t1 = receiver.createHTMLDocument(title); - t1.toString; - return t1; - } - }; - A.DomRectList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; - }, - $indexSet(receiver, index, value) { - type$.Rectangle_num._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; - }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 - }; - A.DomRectReadOnly.prototype = { - toString$0(receiver) { - var t2, - t1 = receiver.left; - t1.toString; - t2 = receiver.top; - t2.toString; - return "Rectangle (" + A.S(t1) + ", " + A.S(t2) + ") " + A.S(this.get$width(receiver)) + " x " + A.S(this.get$height(receiver)); - }, - $eq(receiver, other) { - var t1, t2; - if (other == null) - return false; - if (type$.Rectangle_num._is(other)) { - t1 = receiver.left; - t1.toString; - t2 = other.left; - t2.toString; - if (t1 === t2) { - t1 = receiver.top; - t1.toString; - t2 = other.top; - t2.toString; - if (t1 === t2) { - t1 = J.getInterceptor$x(other); - t1 = this.get$width(receiver) === t1.get$width(other) && this.get$height(receiver) === t1.get$height(other); - } else - t1 = false; - } else - t1 = false; - } else - t1 = false; - return t1; - }, - get$hashCode(receiver) { - var t2, - t1 = receiver.left; - t1.toString; - t2 = receiver.top; - t2.toString; - return A.Object_hash(t1, t2, this.get$width(receiver), this.get$height(receiver)); - }, - get$_height(receiver) { - return receiver.height; - }, - get$height(receiver) { - var t1 = this.get$_height(receiver); - t1.toString; - return t1; - }, - get$_width(receiver) { - return receiver.width; - }, - get$width(receiver) { - var t1 = this.get$_width(receiver); - t1.toString; - return t1; - }, - $isRectangle: 1 - }; - A.DomStringList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; - }, - $indexSet(receiver, index, value) { - A._asString(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; - }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 - }; - A.DomTokenList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - } - }; - A._FrozenElementList.prototype = { - get$length(_) { - return this._nodeList.length; - }, - $index(_, index) { - var t1 = this._nodeList; - if (!(index >= 0 && index < t1.length)) - return A.ioore(t1, index); - return this.$ti._precomputed1._as(t1[index]); - }, - $indexSet(_, index, value) { - this.$ti._precomputed1._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot modify list")); - }, - sort$1(_, compare) { - this.$ti._eval$1("int(1,1)?")._as(compare); - throw A.wrapException(A.UnsupportedError$("Cannot sort list")); - }, - get$first(_) { - return this.$ti._precomputed1._as(B.NodeList_methods.get$first(this._nodeList)); - } - }; - A.Element.prototype = { - get$attributes(receiver) { - return new A._ElementAttributeMap(receiver); - }, - toString$0(receiver) { - var t1 = receiver.localName; - t1.toString; - return t1; - }, - createFragment$3$treeSanitizer$validator(receiver, html, treeSanitizer, validator) { - var t1, t2, contextElement, fragment; - if (treeSanitizer == null) { - t1 = $.Element__defaultValidator; - if (t1 == null) { - t1 = A._setArrayType([], type$.JSArray_NodeValidator); - t2 = new A.NodeValidatorBuilder(t1); - B.JSArray_methods.add$1(t1, A._Html5NodeValidator$(null)); - B.JSArray_methods.add$1(t1, A._TemplatingNodeValidator$()); - $.Element__defaultValidator = t2; - validator = t2; - } else - validator = t1; - t1 = $.Element__defaultSanitizer; - if (t1 == null) { - validator.toString; - t1 = new A._ValidatingTreeSanitizer(validator); - $.Element__defaultSanitizer = t1; - treeSanitizer = t1; - } else { - validator.toString; - t1.validator = validator; - treeSanitizer = t1; - } - } - if ($.Element__parseDocument == null) { - t1 = document; - t2 = t1.implementation; - t2.toString; - t2 = B.DomImplementation_methods.createHtmlDocument$1(t2, ""); - $.Element__parseDocument = t2; - t2 = t2.createRange(); - t2.toString; - $.Element__parseRange = t2; - t2 = $.Element__parseDocument.createElement("base"); - type$.BaseElement._as(t2); - t1 = t1.baseURI; - t1.toString; - t2.href = t1; - $.Element__parseDocument.head.appendChild(t2).toString; - } - t1 = $.Element__parseDocument; - if (t1.body == null) { - t2 = t1.createElement("body"); - B.HtmlDocument_methods.set$body(t1, type$.BodyElement._as(t2)); - } - t1 = $.Element__parseDocument; - if (type$.BodyElement._is(receiver)) { - t1 = t1.body; - t1.toString; - contextElement = t1; - } else { - t1.toString; - t2 = receiver.tagName; - t2.toString; - contextElement = t1.createElement(t2); - $.Element__parseDocument.body.appendChild(contextElement).toString; - } - t1 = "createContextualFragment" in window.Range.prototype; - t1.toString; - if (t1) { - t1 = receiver.tagName; - t1.toString; - t1 = !B.JSArray_methods.contains$1(B.List_Vet, t1); - } else - t1 = false; - if (t1) { - $.Element__parseRange.selectNodeContents(contextElement); - t1 = $.Element__parseRange; - t1 = t1.createContextualFragment(html); - t1.toString; - fragment = t1; - } else { - J.set$_innerHtml$x(contextElement, html); - t1 = $.Element__parseDocument.createDocumentFragment(); - t1.toString; - for (; t2 = contextElement.firstChild, t2 != null;) - t1.appendChild(t2).toString; - fragment = t1; - } - if (contextElement !== $.Element__parseDocument.body) - J.remove$0$x(contextElement); - treeSanitizer.sanitizeTree$1(fragment); - document.adoptNode(fragment).toString; - return fragment; - }, - createFragment$2$treeSanitizer(receiver, html, treeSanitizer) { - return this.createFragment$3$treeSanitizer$validator(receiver, html, treeSanitizer, null); - }, - setInnerHtml$1(receiver, html) { - this.set$text(receiver, null); - receiver.appendChild(this.createFragment$3$treeSanitizer$validator(receiver, html, null, null)).toString; - }, - set$_innerHtml(receiver, value) { - receiver.innerHTML = value; - }, - $isElement: 1 - }; - A.Element_Element$html_closure.prototype = { - call$1(e) { - return type$.Element._is(type$.Node._as(e)); - }, - $signature: 57 - }; - A.Event.prototype = {$isEvent: 1}; - A.EventTarget.prototype = { - addEventListener$3(receiver, type, listener, useCapture) { - type$.nullable_dynamic_Function_Event._as(listener); - if (listener != null) - this._addEventListener$3(receiver, type, listener, useCapture); - }, - addEventListener$2(receiver, type, listener) { - return this.addEventListener$3(receiver, type, listener, null); - }, - _addEventListener$3(receiver, type, listener, options) { - return receiver.addEventListener(type, A.convertDartClosureToJS(type$.nullable_dynamic_Function_Event._as(listener), 1), options); - }, - _removeEventListener$3(receiver, type, listener, options) { - return receiver.removeEventListener(type, A.convertDartClosureToJS(type$.nullable_dynamic_Function_Event._as(listener), 1), false); - }, - $isEventTarget: 1 - }; - A.File.prototype = {$isFile: 1}; - A.FileList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; - }, - $indexSet(receiver, index, value) { - type$.File._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; - }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1, - $isFileList: 1 - }; - A.FileWriter.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.FormElement.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.Gamepad.prototype = {$isGamepad: 1}; - A.History.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - } - }; - A.HtmlCollection.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; - }, - $indexSet(receiver, index, value) { - type$.Node._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; - }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 - }; - A.HtmlDocument.prototype = { - set$body(receiver, value) { - receiver.body = value; - } - }; - A.HttpRequest.prototype = { - open$3$async(receiver, method, url, async) { - return receiver.open(method, url, true); - }, - set$withCredentials(receiver, value) { - receiver.withCredentials = true; - }, - $isHttpRequest: 1 - }; - A.HttpRequest_request_closure.prototype = { - call$1(e) { - var t1, t2, accepted, unknownRedirect, t3; - type$.ProgressEvent._as(e); - t1 = this.xhr; - t2 = t1.status; - t2.toString; - accepted = t2 >= 200 && t2 < 300; - unknownRedirect = t2 > 307 && t2 < 400; - t2 = accepted || t2 === 0 || t2 === 304 || unknownRedirect; - t3 = this.completer; - if (t2) - t3.complete$1(0, t1); - else - t3.completeError$1(e); - }, - $signature: 100 - }; - A.HttpRequestEventTarget.prototype = {}; - A.ImageData.prototype = {$isImageData: 1}; - A.KeyboardEvent.prototype = {$isKeyboardEvent: 1}; - A.Location.prototype = { - get$origin(receiver) { - var t2, - t1 = "origin" in receiver; - t1.toString; - if (t1) { - t1 = receiver.origin; - t1.toString; - return t1; - } - t1 = receiver.protocol; - t1.toString; - t2 = receiver.host; - t2.toString; - return t1 + "//" + t2; - }, - toString$0(receiver) { - var t1 = String(receiver); - t1.toString; - return t1; - }, - $isLocation: 1 - }; - A.MediaList.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.MessageEvent.prototype = {$isMessageEvent: 1}; - A.MessagePort.prototype = {$isMessagePort: 1}; - A.MidiInputMap.prototype = { - containsKey$1(receiver, key) { - return A.convertNativeToDart_Dictionary(receiver.get(key)) != null; - }, - $index(receiver, key) { - return A.convertNativeToDart_Dictionary(receiver.get(A._asString(key))); - }, - forEach$1(receiver, f) { - var entries, entry, t1; - type$.void_Function_String_dynamic._as(f); - entries = receiver.entries(); - for (; true;) { - entry = entries.next(); - t1 = entry.done; - t1.toString; - if (t1) - return; - t1 = entry.value[0]; - t1.toString; - f.call$2(t1, A.convertNativeToDart_Dictionary(entry.value[1])); - } - }, - get$keys(receiver) { - var keys = A._setArrayType([], type$.JSArray_String); - this.forEach$1(receiver, new A.MidiInputMap_keys_closure(keys)); - return keys; - }, - get$length(receiver) { - var t1 = receiver.size; - t1.toString; - return t1; - }, - get$isEmpty(receiver) { - var t1 = receiver.size; - t1.toString; - return t1 === 0; - }, - $indexSet(receiver, key, value) { - A._asString(key); - throw A.wrapException(A.UnsupportedError$("Not supported")); - }, - $isMap: 1 - }; - A.MidiInputMap_keys_closure.prototype = { - call$2(k, v) { - return B.JSArray_methods.add$1(this.keys, k); - }, - $signature: 5 - }; - A.MidiOutputMap.prototype = { - containsKey$1(receiver, key) { - return A.convertNativeToDart_Dictionary(receiver.get(key)) != null; - }, - $index(receiver, key) { - return A.convertNativeToDart_Dictionary(receiver.get(A._asString(key))); - }, - forEach$1(receiver, f) { - var entries, entry, t1; - type$.void_Function_String_dynamic._as(f); - entries = receiver.entries(); - for (; true;) { - entry = entries.next(); - t1 = entry.done; - t1.toString; - if (t1) - return; - t1 = entry.value[0]; - t1.toString; - f.call$2(t1, A.convertNativeToDart_Dictionary(entry.value[1])); - } - }, - get$keys(receiver) { - var keys = A._setArrayType([], type$.JSArray_String); - this.forEach$1(receiver, new A.MidiOutputMap_keys_closure(keys)); - return keys; - }, - get$length(receiver) { - var t1 = receiver.size; - t1.toString; - return t1; - }, - get$isEmpty(receiver) { - var t1 = receiver.size; - t1.toString; - return t1 === 0; - }, - $indexSet(receiver, key, value) { - A._asString(key); - throw A.wrapException(A.UnsupportedError$("Not supported")); - }, - $isMap: 1 - }; - A.MidiOutputMap_keys_closure.prototype = { - call$2(k, v) { - return B.JSArray_methods.add$1(this.keys, k); - }, - $signature: 5 - }; - A.MimeType.prototype = {$isMimeType: 1}; - A.MimeTypeArray.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; - }, - $indexSet(receiver, index, value) { - type$.MimeType._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; + normalize$3(source, start, end) { + var inverseAlphabet, t2, i, sliceStart, buffer, firstPadding, firstPaddingSourceIndex, paddingCount, i0, char, i1, digit1, t3, digit2, char0, value, t4, endLength, $length, + _s64_ = string$.ABCDEF, + _s31_ = "Invalid base64 encoding length ", + t1 = source.length; + end = A.RangeError_checkValidRange(start, end, t1); + inverseAlphabet = $.$get$_Base64Decoder__inverseAlphabet(); + for (t2 = inverseAlphabet.length, i = start, sliceStart = i, buffer = null, firstPadding = -1, firstPaddingSourceIndex = -1, paddingCount = 0; i < end; i = i0) { + i0 = i + 1; + if (!(i < t1)) + return A.ioore(source, i); + char = source.charCodeAt(i); + if (char === 37) { + i1 = i0 + 2; + if (i1 <= end) { + if (!(i0 < t1)) + return A.ioore(source, i0); + digit1 = A.hexDigitValue(source.charCodeAt(i0)); + t3 = i0 + 1; + if (!(t3 < t1)) + return A.ioore(source, t3); + digit2 = A.hexDigitValue(source.charCodeAt(t3)); + char0 = digit1 * 16 + digit2 - (digit2 & 256); + if (char0 === 37) + char0 = -1; + i0 = i1; + } else + char0 = -1; + } else + char0 = char; + if (0 <= char0 && char0 <= 127) { + if (!(char0 >= 0 && char0 < t2)) + return A.ioore(inverseAlphabet, char0); + value = inverseAlphabet[char0]; + if (value >= 0) { + if (!(value < 64)) + return A.ioore(_s64_, value); + char0 = _s64_.charCodeAt(value); + if (char0 === char) + continue; + char = char0; + } else { + if (value === -1) { + if (firstPadding < 0) { + t3 = buffer == null ? null : buffer._contents.length; + if (t3 == null) + t3 = 0; + firstPadding = t3 + (i - sliceStart); + firstPaddingSourceIndex = i; + } + ++paddingCount; + if (char === 61) + continue; + } + char = char0; + } + if (value !== -2) { + if (buffer == null) { + buffer = new A.StringBuffer(""); + t3 = buffer; + } else + t3 = buffer; + t3._contents += B.JSString_methods.substring$2(source, sliceStart, i); + t4 = A.Primitives_stringFromCharCode(char); + t3._contents += t4; + sliceStart = i0; + continue; + } + } + throw A.wrapException(A.FormatException$("Invalid base64 data", source, i)); } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; - }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 - }; - A._ChildNodeListLazy.prototype = { - get$first(_) { - var result = this._this.firstChild; - if (result == null) - throw A.wrapException(A.StateError$("No elements")); - return result; - }, - get$single(_) { - var t1 = this._this, - l = t1.childNodes.length; - if (l === 0) - throw A.wrapException(A.StateError$("No elements")); - if (l > 1) - throw A.wrapException(A.StateError$("More than one element")); - t1 = t1.firstChild; - t1.toString; - return t1; - }, - addAll$1(_, iterable) { - var t1, t2, len, i, t3; - type$.Iterable_Node._as(iterable); - if (iterable instanceof A._ChildNodeListLazy) { - t1 = iterable._this; - t2 = this._this; - if (t1 !== t2) - for (len = t1.childNodes.length, i = 0; i < len; ++i) { - t3 = t1.firstChild; - t3.toString; - t2.appendChild(t3).toString; + if (buffer != null) { + t1 = B.JSString_methods.substring$2(source, sliceStart, end); + t1 = buffer._contents += t1; + t2 = t1.length; + if (firstPadding >= 0) + A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, t2); + else { + endLength = B.JSInt_methods.$mod(t2 - 1, 4) + 1; + if (endLength === 1) + throw A.wrapException(A.FormatException$(_s31_, source, end)); + for (; endLength < 4;) { + t1 += "="; + buffer._contents = t1; + ++endLength; } - return; + } + t1 = buffer._contents; + return B.JSString_methods.replaceRange$3(source, start, end, t1.charCodeAt(0) == 0 ? t1 : t1); } - for (t1 = iterable.get$iterator(iterable), t2 = this._this; t1.moveNext$0();) - t2.appendChild(t1.get$current(t1)).toString; - }, - $indexSet(_, index, value) { - var t1, t2; - type$.Node._as(value); - t1 = this._this; - t2 = t1.childNodes; - if (!(index >= 0 && index < t2.length)) - return A.ioore(t2, index); - t1.replaceChild(value, t2[index]).toString; - }, - get$iterator(_) { - var t1 = this._this.childNodes; - return new A.FixedSizeListIterator(t1, t1.length, A.instanceType(t1)._eval$1("FixedSizeListIterator")); - }, - sort$1(_, compare) { - type$.nullable_int_Function_Node_Node._as(compare); - throw A.wrapException(A.UnsupportedError$("Cannot sort Node list")); - }, - get$length(_) { - return this._this.childNodes.length; - }, - $index(_, index) { - var t1 = this._this.childNodes; - if (!(index >= 0 && index < t1.length)) - return A.ioore(t1, index); - return t1[index]; + $length = end - start; + if (firstPadding >= 0) + A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, $length); + else { + endLength = B.JSInt_methods.$mod($length, 4); + if (endLength === 1) + throw A.wrapException(A.FormatException$(_s31_, source, end)); + if (endLength > 1) + source = B.JSString_methods.replaceRange$3(source, end, end, endLength === 2 ? "==" : "="); + } + return source; } }; - A.Node.prototype = { - remove$0(receiver) { - var t1 = receiver.parentNode; - if (t1 != null) - t1.removeChild(receiver).toString; - }, - _clearChildren$0(receiver) { + A.Base64Encoder.prototype = { + convert$1(input) { var t1; - for (; t1 = receiver.firstChild, t1 != null;) - receiver.removeChild(t1).toString; - }, - toString$0(receiver) { - var value = receiver.nodeValue; - return value == null ? this.super$Interceptor$toString(receiver) : value; - }, - set$text(receiver, value) { - receiver.textContent = value; - }, - $isNode: 1 - }; - A.NodeList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; + type$.List_int._as(input); + t1 = J.getInterceptor$asx(input); + if (t1.get$isEmpty(input)) + return ""; + t1 = new A._Base64Encoder(string$.ABCDEF).encode$4(input, 0, t1.get$length(input), true); t1.toString; - return t1; - }, - $indexSet(receiver, index, value) { - type$.Node._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; - }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 + return A.String_String$fromCharCodes(t1, 0, null); + } }; - A.Plugin.prototype = { - get$length(receiver) { - return receiver.length; + A._Base64Encoder.prototype = { + createBuffer$1(bufferLength) { + return new Uint8Array(bufferLength); }, - $isPlugin: 1 + encode$4(bytes, start, end, isLast) { + var byteCount, fullChunks, bufferLength, output, _this = this; + type$.List_int._as(bytes); + byteCount = (_this._convert$_state & 3) + (end - start); + fullChunks = B.JSInt_methods._tdivFast$1(byteCount, 3); + bufferLength = fullChunks * 4; + if (isLast && byteCount - fullChunks * 3 > 0) + bufferLength += 4; + output = _this.createBuffer$1(bufferLength); + _this._convert$_state = A._Base64Encoder_encodeChunk(_this._alphabet, bytes, start, end, isLast, output, 0, _this._convert$_state); + if (bufferLength > 0) + return output; + return null; + } }; - A.PluginArray.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; + A.Base64Decoder.prototype = { + convert$1(input) { + var end, decoder, t1; + A._asString(input); + end = A.RangeError_checkValidRange(0, null, input.length); + if (0 === end) + return new Uint8Array(0); + decoder = new A._Base64Decoder(); + t1 = decoder.decode$3(input, 0, end); t1.toString; + decoder.close$2(input, end); return t1; - }, - $indexSet(receiver, index, value) { - type$.Plugin._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; - }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 + } }; - A.ProgressEvent.prototype = {$isProgressEvent: 1}; - A.RtcStatsReport.prototype = { - containsKey$1(receiver, key) { - return A.convertNativeToDart_Dictionary(receiver.get(key)) != null; - }, - $index(receiver, key) { - return A.convertNativeToDart_Dictionary(receiver.get(A._asString(key))); - }, - forEach$1(receiver, f) { - var entries, entry, t1; - type$.void_Function_String_dynamic._as(f); - entries = receiver.entries(); - for (; true;) { - entry = entries.next(); - t1 = entry.done; - t1.toString; - if (t1) - return; - t1 = entry.value[0]; - t1.toString; - f.call$2(t1, A.convertNativeToDart_Dictionary(entry.value[1])); + A._Base64Decoder.prototype = { + decode$3(input, start, end) { + var buffer, _this = this, + t1 = _this._convert$_state; + if (t1 < 0) { + _this._convert$_state = A._Base64Decoder__checkPadding(input, start, end, t1); + return null; } + if (start === end) + return new Uint8Array(0); + buffer = A._Base64Decoder__allocateBuffer(input, start, end, t1); + _this._convert$_state = A._Base64Decoder_decodeChunk(input, start, end, buffer, 0, _this._convert$_state); + return buffer; }, - get$keys(receiver) { - var keys = A._setArrayType([], type$.JSArray_String); - this.forEach$1(receiver, new A.RtcStatsReport_keys_closure(keys)); - return keys; - }, - get$length(receiver) { - var t1 = receiver.size; - t1.toString; - return t1; - }, - get$isEmpty(receiver) { - var t1 = receiver.size; - t1.toString; - return t1 === 0; - }, - $indexSet(receiver, key, value) { - A._asString(key); - throw A.wrapException(A.UnsupportedError$("Not supported")); - }, - $isMap: 1 + close$2(input, end) { + var t1 = this._convert$_state; + if (t1 < -1) + throw A.wrapException(A.FormatException$("Missing padding character", input, end)); + if (t1 > 0) + throw A.wrapException(A.FormatException$("Invalid length, must be multiple of four", input, end)); + this._convert$_state = -1; + } }; - A.RtcStatsReport_keys_closure.prototype = { - call$2(k, v) { - return B.JSArray_methods.add$1(this.keys, k); - }, - $signature: 5 + A.Codec.prototype = {}; + A.Converter.prototype = {$isStreamTransformer: 1}; + A.Encoding.prototype = {}; + A.JsonUnsupportedObjectError.prototype = { + toString$0(_) { + var safeString = A.Error_safeToString(this.unsupportedObject); + return (this.cause != null ? "Converting object to an encodable object failed:" : "Converting object did not return an encodable object:") + " " + safeString; + } }; - A.ScriptElement.prototype = {$isScriptElement: 1}; - A.SelectElement.prototype = { - get$length(receiver) { - return receiver.length; + A.JsonCyclicError.prototype = { + toString$0(_) { + return "Cyclic error in JSON stringify"; } }; - A.SharedArrayBuffer.prototype = {$isSharedArrayBuffer: 1}; - A.SourceBuffer.prototype = {$isSourceBuffer: 1}; - A.SourceBufferList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; + A.JsonCodec.prototype = { + decode$2$reviver(source, reviver) { + var t1 = A._parseJson(source, this.get$decoder()._reviver); return t1; }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; + encode$2$toEncodable(value, toEncodable) { + var t1 = A._JsonStringStringifier_stringify(value, this.get$encoder()._toEncodable, null); return t1; }, - $indexSet(receiver, index, value) { - type$.SourceBuffer._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); + get$encoder() { + return B.JsonEncoder_null; }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; + get$decoder() { + return B.JsonDecoder_null; + } + }; + A.JsonEncoder.prototype = {}; + A.JsonDecoder.prototype = {}; + A._JsonStringifier.prototype = { + writeStringContent$1(s) { + var offset, i, charCode, t1, t2, _this = this, + $length = s.length; + for (offset = 0, i = 0; i < $length; ++i) { + charCode = s.charCodeAt(i); + if (charCode > 92) { + if (charCode >= 55296) { + t1 = charCode & 64512; + if (t1 === 55296) { + t2 = i + 1; + t2 = !(t2 < $length && (s.charCodeAt(t2) & 64512) === 56320); + } else + t2 = false; + if (!t2) + if (t1 === 56320) { + t1 = i - 1; + t1 = !(t1 >= 0 && (s.charCodeAt(t1) & 64512) === 55296); + } else + t1 = false; + else + t1 = true; + if (t1) { + if (i > offset) + _this.writeStringSlice$3(s, offset, i); + offset = i + 1; + _this.writeCharCode$1(92); + _this.writeCharCode$1(117); + _this.writeCharCode$1(100); + t1 = charCode >>> 8 & 15; + _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); + t1 = charCode >>> 4 & 15; + _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); + t1 = charCode & 15; + _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); + } + } + continue; + } + if (charCode < 32) { + if (i > offset) + _this.writeStringSlice$3(s, offset, i); + offset = i + 1; + _this.writeCharCode$1(92); + switch (charCode) { + case 8: + _this.writeCharCode$1(98); + break; + case 9: + _this.writeCharCode$1(116); + break; + case 10: + _this.writeCharCode$1(110); + break; + case 12: + _this.writeCharCode$1(102); + break; + case 13: + _this.writeCharCode$1(114); + break; + default: + _this.writeCharCode$1(117); + _this.writeCharCode$1(48); + _this.writeCharCode$1(48); + t1 = charCode >>> 4 & 15; + _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); + t1 = charCode & 15; + _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); + break; + } + } else if (charCode === 34 || charCode === 92) { + if (i > offset) + _this.writeStringSlice$3(s, offset, i); + offset = i + 1; + _this.writeCharCode$1(92); + _this.writeCharCode$1(charCode); + } } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; + if (offset === 0) + _this.writeString$1(s); + else if (offset < $length) + _this.writeStringSlice$3(s, offset, $length); }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 - }; - A.SpeechGrammar.prototype = {$isSpeechGrammar: 1}; - A.SpeechGrammarList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + _checkCycle$1(object) { + var t1, t2, i, t3; + for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) { + t3 = t1[i]; + if (object == null ? t3 == null : object === t3) + throw A.wrapException(new A.JsonCyclicError(object, null)); + } + B.JSArray_methods.add$1(t1, object); }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + writeObject$1(object) { + var customJson, e, t1, exception, _this = this; + if (_this.writeJsonValue$1(object)) + return; + _this._checkCycle$1(object); + try { + customJson = _this._toEncodable.call$1(object); + if (!_this.writeJsonValue$1(customJson)) { + t1 = A.JsonUnsupportedObjectError$(object, null, _this.get$_partialResult()); + throw A.wrapException(t1); + } + t1 = _this._seen; + if (0 >= t1.length) + return A.ioore(t1, -1); + t1.pop(); + } catch (exception) { + e = A.unwrapException(exception); + t1 = A.JsonUnsupportedObjectError$(object, e, _this.get$_partialResult()); + throw A.wrapException(t1); + } }, - $indexSet(receiver, index, value) { - type$.SpeechGrammar._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); + writeJsonValue$1(object) { + var t1, success, _this = this; + if (typeof object == "number") { + if (!isFinite(object)) + return false; + _this.writeNumber$1(object); + return true; + } else if (object === true) { + _this.writeString$1("true"); + return true; + } else if (object === false) { + _this.writeString$1("false"); + return true; + } else if (object == null) { + _this.writeString$1("null"); + return true; + } else if (typeof object == "string") { + _this.writeString$1('"'); + _this.writeStringContent$1(object); + _this.writeString$1('"'); + return true; + } else if (type$.List_dynamic._is(object)) { + _this._checkCycle$1(object); + _this.writeList$1(object); + t1 = _this._seen; + if (0 >= t1.length) + return A.ioore(t1, -1); + t1.pop(); + return true; + } else if (type$.Map_dynamic_dynamic._is(object)) { + _this._checkCycle$1(object); + success = _this.writeMap$1(object); + t1 = _this._seen; + if (0 >= t1.length) + return A.ioore(t1, -1); + t1.pop(); + return success; + } else + return false; }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; + writeList$1(list) { + var t1, i, _this = this; + _this.writeString$1("["); + t1 = J.getInterceptor$asx(list); + if (t1.get$isNotEmpty(list)) { + _this.writeObject$1(t1.$index(list, 0)); + for (i = 1; i < t1.get$length(list); ++i) { + _this.writeString$1(","); + _this.writeObject$1(t1.$index(list, i)); + } } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; + _this.writeString$1("]"); }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 + writeMap$1(map) { + var t1, keyValueList, i, separator, t2, _this = this, _box_0 = {}; + if (map.get$isEmpty(map)) { + _this.writeString$1("{}"); + return true; + } + t1 = map.get$length(map) * 2; + keyValueList = A.List_List$filled(t1, null, false, type$.nullable_Object); + i = _box_0.i = 0; + _box_0.allStringKeys = true; + map.forEach$1(0, new A._JsonStringifier_writeMap_closure(_box_0, keyValueList)); + if (!_box_0.allStringKeys) + return false; + _this.writeString$1("{"); + for (separator = '"'; i < t1; i += 2, separator = ',"') { + _this.writeString$1(separator); + _this.writeStringContent$1(A._asString(keyValueList[i])); + _this.writeString$1('":'); + t2 = i + 1; + if (!(t2 < t1)) + return A.ioore(keyValueList, t2); + _this.writeObject$1(keyValueList[t2]); + } + _this.writeString$1("}"); + return true; + } }; - A.SpeechRecognitionResult.prototype = { - get$length(receiver) { - return receiver.length; + A._JsonStringifier_writeMap_closure.prototype = { + call$2(key, value) { + var t1, t2; + if (typeof key != "string") + this._box_0.allStringKeys = false; + t1 = this.keyValueList; + t2 = this._box_0; + B.JSArray_methods.$indexSet(t1, t2.i++, key); + B.JSArray_methods.$indexSet(t1, t2.i++, value); }, - $isSpeechRecognitionResult: 1 + $signature: 20 }; - A.Storage.prototype = { - containsKey$1(receiver, key) { - return receiver.getItem(key) != null; - }, - $index(receiver, key) { - return receiver.getItem(A._asString(key)); - }, - $indexSet(receiver, key, value) { - receiver.setItem(A._asString(key), A._asString(value)); - }, - forEach$1(receiver, f) { - var i, key, t1; - type$.void_Function_String_String._as(f); - for (i = 0; true; ++i) { - key = receiver.key(i); - if (key == null) - return; - t1 = receiver.getItem(key); - t1.toString; - f.call$2(key, t1); - } - }, - get$keys(receiver) { - var keys = A._setArrayType([], type$.JSArray_String); - this.forEach$1(receiver, new A.Storage_keys_closure(keys)); - return keys; + A._JsonStringStringifier.prototype = { + get$_partialResult() { + var t1 = this._convert$_sink; + return t1 instanceof A.StringBuffer ? t1.toString$0(0) : null; }, - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + writeNumber$1(number) { + this._convert$_sink.write$1(B.JSNumber_methods.toString$0(number)); }, - get$isEmpty(receiver) { - return receiver.key(0) == null; + writeString$1(string) { + this._convert$_sink.write$1(string); }, - $isMap: 1 - }; - A.Storage_keys_closure.prototype = { - call$2(k, v) { - return B.JSArray_methods.add$1(this.keys, k); + writeStringSlice$3(string, start, end) { + this._convert$_sink.write$1(B.JSString_methods.substring$2(string, start, end)); }, - $signature: 18 - }; - A.StyleSheet.prototype = {$isStyleSheet: 1}; - A.TableElement.prototype = { - createFragment$3$treeSanitizer$validator(receiver, html, treeSanitizer, validator) { - var table, - t1 = "createContextualFragment" in window.Range.prototype; - t1.toString; - if (t1) - return this.super$Element$createFragment(receiver, html, treeSanitizer, validator); - table = A.Element_Element$html("" + html + "
", treeSanitizer, validator); - t1 = document.createDocumentFragment(); - t1.toString; - new A._ChildNodeListLazy(t1).addAll$1(0, new A._ChildNodeListLazy(table)); - return t1; + writeCharCode$1(charCode) { + this._convert$_sink.writeCharCode$1(charCode); } }; - A.TableRowElement.prototype = { - createFragment$3$treeSanitizer$validator(receiver, html, treeSanitizer, validator) { - var t2, - t1 = "createContextualFragment" in window.Range.prototype; - t1.toString; - if (t1) - return this.super$Element$createFragment(receiver, html, treeSanitizer, validator); - t1 = document; - t2 = t1.createDocumentFragment(); - t2.toString; - t1 = t1.createElement("table"); - t1.toString; - new A._ChildNodeListLazy(t2).addAll$1(0, new A._ChildNodeListLazy(new A._ChildNodeListLazy(new A._ChildNodeListLazy(B.TableElement_methods.createFragment$3$treeSanitizer$validator(t1, html, treeSanitizer, validator)).get$single(0)).get$single(0))); - return t2; + A.Utf8Codec.prototype = {}; + A.Utf8Encoder.prototype = { + convert$1(string) { + var stringLength, end, t1, encoder, t2; + A._asString(string); + stringLength = string.length; + end = A.RangeError_checkValidRange(0, null, stringLength); + if (end === 0) + return new Uint8Array(0); + t1 = new Uint8Array(end * 3); + encoder = new A._Utf8Encoder(t1); + if (encoder._fillBuffer$3(string, 0, end) !== end) { + t2 = end - 1; + if (!(t2 >= 0 && t2 < stringLength)) + return A.ioore(string, t2); + encoder._writeReplacementCharacter$0(); + } + return B.NativeUint8List_methods.sublist$2(t1, 0, encoder._bufferIndex); } }; - A.TableSectionElement.prototype = { - createFragment$3$treeSanitizer$validator(receiver, html, treeSanitizer, validator) { - var t2, - t1 = "createContextualFragment" in window.Range.prototype; - t1.toString; + A._Utf8Encoder.prototype = { + _writeReplacementCharacter$0() { + var t4, _this = this, + t1 = _this._buffer, + t2 = _this._bufferIndex, + t3 = _this._bufferIndex = t2 + 1; + t1.$flags & 2 && A.throwUnsupportedOperation(t1); + t4 = t1.length; + if (!(t2 < t4)) + return A.ioore(t1, t2); + t1[t2] = 239; + t2 = _this._bufferIndex = t3 + 1; + if (!(t3 < t4)) + return A.ioore(t1, t3); + t1[t3] = 191; + _this._bufferIndex = t2 + 1; + if (!(t2 < t4)) + return A.ioore(t1, t2); + t1[t2] = 189; + }, + _writeSurrogate$2(leadingSurrogate, nextCodeUnit) { + var rune, t1, t2, t3, t4, _this = this; + if ((nextCodeUnit & 64512) === 56320) { + rune = 65536 + ((leadingSurrogate & 1023) << 10) | nextCodeUnit & 1023; + t1 = _this._buffer; + t2 = _this._bufferIndex; + t3 = _this._bufferIndex = t2 + 1; + t1.$flags & 2 && A.throwUnsupportedOperation(t1); + t4 = t1.length; + if (!(t2 < t4)) + return A.ioore(t1, t2); + t1[t2] = rune >>> 18 | 240; + t2 = _this._bufferIndex = t3 + 1; + if (!(t3 < t4)) + return A.ioore(t1, t3); + t1[t3] = rune >>> 12 & 63 | 128; + t3 = _this._bufferIndex = t2 + 1; + if (!(t2 < t4)) + return A.ioore(t1, t2); + t1[t2] = rune >>> 6 & 63 | 128; + _this._bufferIndex = t3 + 1; + if (!(t3 < t4)) + return A.ioore(t1, t3); + t1[t3] = rune & 63 | 128; + return true; + } else { + _this._writeReplacementCharacter$0(); + return false; + } + }, + _fillBuffer$3(str, start, end) { + var t1, t2, t3, t4, stringIndex, codeUnit, t5, t6, _this = this; + if (start !== end) { + t1 = end - 1; + if (!(t1 >= 0 && t1 < str.length)) + return A.ioore(str, t1); + t1 = (str.charCodeAt(t1) & 64512) === 55296; + } else + t1 = false; if (t1) - return this.super$Element$createFragment(receiver, html, treeSanitizer, validator); - t1 = document; - t2 = t1.createDocumentFragment(); - t2.toString; - t1 = t1.createElement("table"); - t1.toString; - new A._ChildNodeListLazy(t2).addAll$1(0, new A._ChildNodeListLazy(new A._ChildNodeListLazy(B.TableElement_methods.createFragment$3$treeSanitizer$validator(t1, html, treeSanitizer, validator)).get$single(0))); - return t2; + --end; + for (t1 = _this._buffer, t2 = t1.$flags | 0, t3 = t1.length, t4 = str.length, stringIndex = start; stringIndex < end; ++stringIndex) { + if (!(stringIndex < t4)) + return A.ioore(str, stringIndex); + codeUnit = str.charCodeAt(stringIndex); + if (codeUnit <= 127) { + t5 = _this._bufferIndex; + if (t5 >= t3) + break; + _this._bufferIndex = t5 + 1; + t2 & 2 && A.throwUnsupportedOperation(t1); + t1[t5] = codeUnit; + } else { + t5 = codeUnit & 64512; + if (t5 === 55296) { + if (_this._bufferIndex + 4 > t3) + break; + t5 = stringIndex + 1; + if (!(t5 < t4)) + return A.ioore(str, t5); + if (_this._writeSurrogate$2(codeUnit, str.charCodeAt(t5))) + stringIndex = t5; + } else if (t5 === 56320) { + if (_this._bufferIndex + 3 > t3) + break; + _this._writeReplacementCharacter$0(); + } else if (codeUnit <= 2047) { + t5 = _this._bufferIndex; + t6 = t5 + 1; + if (t6 >= t3) + break; + _this._bufferIndex = t6; + t2 & 2 && A.throwUnsupportedOperation(t1); + if (!(t5 < t3)) + return A.ioore(t1, t5); + t1[t5] = codeUnit >>> 6 | 192; + _this._bufferIndex = t6 + 1; + t1[t6] = codeUnit & 63 | 128; + } else { + t5 = _this._bufferIndex; + if (t5 + 2 >= t3) + break; + t6 = _this._bufferIndex = t5 + 1; + t2 & 2 && A.throwUnsupportedOperation(t1); + if (!(t5 < t3)) + return A.ioore(t1, t5); + t1[t5] = codeUnit >>> 12 | 224; + t5 = _this._bufferIndex = t6 + 1; + if (!(t6 < t3)) + return A.ioore(t1, t6); + t1[t6] = codeUnit >>> 6 & 63 | 128; + _this._bufferIndex = t5 + 1; + if (!(t5 < t3)) + return A.ioore(t1, t5); + t1[t5] = codeUnit & 63 | 128; + } + } + } + return stringIndex; } }; - A.TemplateElement.prototype = { - setInnerHtml$1(receiver, html) { - var t1, fragment; - this.set$text(receiver, null); - t1 = receiver.content; - t1.toString; - J._clearChildren$0$x(t1); - fragment = this.createFragment$3$treeSanitizer$validator(receiver, html, null, null); - receiver.content.appendChild(fragment).toString; - }, - $isTemplateElement: 1 - }; - A.TextTrack.prototype = {$isTextTrack: 1}; - A.TextTrackCue.prototype = {$isTextTrackCue: 1}; - A.TextTrackCueList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + A._BigIntImpl.prototype = { + $negate(_) { + var t2, t3, _this = this, + t1 = _this._used; + if (t1 === 0) + return _this; + t2 = !_this._isNegative; + t3 = _this._digits; + t1 = A._BigIntImpl__normalize(t1, t3); + return new A._BigIntImpl(t1 === 0 ? false : t2, t3, t1); }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; + _drShift$1(n) { + var resultUsed, digits, resultDigits, t1, i, t2, t3, result, _this = this, + used = _this._used; + if (used === 0) + return $.$get$_BigIntImpl_zero(); + resultUsed = used - n; + if (resultUsed <= 0) + return _this._isNegative ? $.$get$_BigIntImpl__minusOne() : $.$get$_BigIntImpl_zero(); + digits = _this._digits; + resultDigits = new Uint16Array(resultUsed); + for (t1 = digits.length, i = n; i < used; ++i) { + t2 = i - n; + if (!(i >= 0 && i < t1)) + return A.ioore(digits, i); + t3 = digits[i]; + if (!(t2 < resultUsed)) + return A.ioore(resultDigits, t2); + resultDigits[t2] = t3; + } + t2 = _this._isNegative; + t3 = A._BigIntImpl__normalize(resultUsed, resultDigits); + result = new A._BigIntImpl(t3 === 0 ? false : t2, resultDigits, t3); if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + for (i = 0; i < n; ++i) { + if (!(i < t1)) + return A.ioore(digits, i); + if (digits[i] !== 0) + return result.$sub(0, $.$get$_BigIntImpl_one()); + } + return result; }, - $indexSet(receiver, index, value) { - type$.TextTrackCue._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); + $shr(_, shiftAmount) { + var t1, digitShift, bitShift, resultUsed, digits, resultDigits, t2, result, i, _this = this; + if (shiftAmount < 0) + throw A.wrapException(A.ArgumentError$("shift-amount must be posititve " + shiftAmount, null)); + t1 = _this._used; + if (t1 === 0) + return _this; + digitShift = B.JSInt_methods._tdivFast$1(shiftAmount, 16); + bitShift = B.JSInt_methods.$mod(shiftAmount, 16); + if (bitShift === 0) + return _this._drShift$1(digitShift); + resultUsed = t1 - digitShift; + if (resultUsed <= 0) + return _this._isNegative ? $.$get$_BigIntImpl__minusOne() : $.$get$_BigIntImpl_zero(); + digits = _this._digits; + resultDigits = new Uint16Array(resultUsed); + A._BigIntImpl__rsh(digits, t1, shiftAmount, resultDigits); + t1 = _this._isNegative; + t2 = A._BigIntImpl__normalize(resultUsed, resultDigits); + result = new A._BigIntImpl(t2 === 0 ? false : t1, resultDigits, t2); + if (t1) { + t1 = digits.length; + if (!(digitShift >= 0 && digitShift < t1)) + return A.ioore(digits, digitShift); + if ((digits[digitShift] & B.JSInt_methods.$shl(1, bitShift) - 1) >>> 0 !== 0) + return result.$sub(0, $.$get$_BigIntImpl_one()); + for (i = 0; i < digitShift; ++i) { + if (!(i < t1)) + return A.ioore(digits, i); + if (digits[i] !== 0) + return result.$sub(0, $.$get$_BigIntImpl_one()); + } + } + return result; }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; + compareTo$1(_, other) { + var t1, result; + type$._BigIntImpl._as(other); + t1 = this._isNegative; + if (t1 === other._isNegative) { + result = A._BigIntImpl__compareDigits(this._digits, this._used, other._digits, other._used); + return t1 ? 0 - result : result; } - throw A.wrapException(A.StateError$("No elements")); + return t1 ? -1 : 1; }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; + _absAddSetSign$2(other, isNegative) { + var resultUsed, resultDigits, t1, _this = this, + used = _this._used, + otherUsed = other._used; + if (used < otherUsed) + return other._absAddSetSign$2(_this, isNegative); + if (used === 0) + return $.$get$_BigIntImpl_zero(); + if (otherUsed === 0) + return _this._isNegative === isNegative ? _this : _this.$negate(0); + resultUsed = used + 1; + resultDigits = new Uint16Array(resultUsed); + A._BigIntImpl__absAdd(_this._digits, used, other._digits, otherUsed, resultDigits); + t1 = A._BigIntImpl__normalize(resultUsed, resultDigits); + return new A._BigIntImpl(t1 === 0 ? false : isNegative, resultDigits, t1); }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 - }; - A.TextTrackList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + _absSubSetSign$2(other, isNegative) { + var otherUsed, resultDigits, t1, _this = this, + used = _this._used; + if (used === 0) + return $.$get$_BigIntImpl_zero(); + otherUsed = other._used; + if (otherUsed === 0) + return _this._isNegative === isNegative ? _this : _this.$negate(0); + resultDigits = new Uint16Array(used); + A._BigIntImpl__absSub(_this._digits, used, other._digits, otherUsed, resultDigits); + t1 = A._BigIntImpl__normalize(used, resultDigits); + return new A._BigIntImpl(t1 === 0 ? false : isNegative, resultDigits, t1); }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + $add(_, other) { + var t2, isNegative, _this = this, + t1 = _this._used; + if (t1 === 0) + return other; + t2 = other._used; + if (t2 === 0) + return _this; + isNegative = _this._isNegative; + if (isNegative === other._isNegative) + return _this._absAddSetSign$2(other, isNegative); + if (A._BigIntImpl__compareDigits(_this._digits, t1, other._digits, t2) >= 0) + return _this._absSubSetSign$2(other, isNegative); + return other._absSubSetSign$2(_this, !isNegative); }, - $indexSet(receiver, index, value) { - type$.TextTrack._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); + $sub(_, other) { + var t2, isNegative, _this = this, + t1 = _this._used; + if (t1 === 0) + return other.$negate(0); + t2 = other._used; + if (t2 === 0) + return _this; + isNegative = _this._isNegative; + if (isNegative !== other._isNegative) + return _this._absAddSetSign$2(other, isNegative); + if (A._BigIntImpl__compareDigits(_this._digits, t1, other._digits, t2) >= 0) + return _this._absSubSetSign$2(other, isNegative); + return other._absSubSetSign$2(_this, !isNegative); }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; + $mul(_, other) { + var resultUsed, digits, otherDigits, resultDigits, t1, i, t2, + used = this._used, + otherUsed = other._used; + if (used === 0 || otherUsed === 0) + return $.$get$_BigIntImpl_zero(); + resultUsed = used + otherUsed; + digits = this._digits; + otherDigits = other._digits; + resultDigits = new Uint16Array(resultUsed); + for (t1 = otherDigits.length, i = 0; i < otherUsed;) { + if (!(i < t1)) + return A.ioore(otherDigits, i); + A._BigIntImpl__mulAdd(otherDigits[i], digits, 0, resultDigits, i, used); + ++i; } - throw A.wrapException(A.StateError$("No elements")); + t1 = this._isNegative !== other._isNegative; + t2 = A._BigIntImpl__normalize(resultUsed, resultDigits); + return new A._BigIntImpl(t2 === 0 ? false : t1, resultDigits, t2); }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; + _div$1(other) { + var lastQuo_used, quo_digits, t1, quo; + if (this._used < other._used) + return $.$get$_BigIntImpl_zero(); + this._divRem$1(other); + lastQuo_used = $._BigIntImpl____lastQuoRemUsed._readField$0() - $._BigIntImpl____lastRemUsed._readField$0(); + quo_digits = A._BigIntImpl__cloneDigits($._BigIntImpl____lastQuoRemDigits._readField$0(), $._BigIntImpl____lastRemUsed._readField$0(), $._BigIntImpl____lastQuoRemUsed._readField$0(), lastQuo_used); + t1 = A._BigIntImpl__normalize(lastQuo_used, quo_digits); + quo = new A._BigIntImpl(false, quo_digits, t1); + return this._isNegative !== other._isNegative && t1 > 0 ? quo.$negate(0) : quo; }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 - }; - A.TimeRanges.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - } - }; - A.Touch.prototype = {$isTouch: 1}; - A.TouchList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + _rem$1(other) { + var remDigits, t1, rem, _this = this; + if (_this._used < other._used) + return _this; + _this._divRem$1(other); + remDigits = A._BigIntImpl__cloneDigits($._BigIntImpl____lastQuoRemDigits._readField$0(), 0, $._BigIntImpl____lastRemUsed._readField$0(), $._BigIntImpl____lastRemUsed._readField$0()); + t1 = A._BigIntImpl__normalize($._BigIntImpl____lastRemUsed._readField$0(), remDigits); + rem = new A._BigIntImpl(false, remDigits, t1); + if ($._BigIntImpl____lastRem_nsh._readField$0() > 0) + rem = rem.$shr(0, $._BigIntImpl____lastRem_nsh._readField$0()); + return _this._isNegative && rem._used > 0 ? rem.$negate(0) : rem; }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + _divRem$1(other) { + var yDigits, yUsed, t1, nsh, yDigits0, yUsed0, resultDigits, resultUsed0, topDigitDivisor, j, tmpDigits, tmpUsed, resultUsed1, nyDigits, i, estimatedQuotientDigit, _this = this, + resultUsed = _this._used; + if (resultUsed === $._BigIntImpl__lastDividendUsed && other._used === $._BigIntImpl__lastDivisorUsed && _this._digits === $._BigIntImpl__lastDividendDigits && other._digits === $._BigIntImpl__lastDivisorDigits) + return; + yDigits = other._digits; + yUsed = other._used; + t1 = yUsed - 1; + if (!(t1 >= 0 && t1 < yDigits.length)) + return A.ioore(yDigits, t1); + nsh = 16 - B.JSInt_methods.get$bitLength(yDigits[t1]); + if (nsh > 0) { + yDigits0 = new Uint16Array(yUsed + 5); + yUsed0 = A._BigIntImpl__lShiftDigits(yDigits, yUsed, nsh, yDigits0); + resultDigits = new Uint16Array(resultUsed + 5); + resultUsed0 = A._BigIntImpl__lShiftDigits(_this._digits, resultUsed, nsh, resultDigits); + } else { + resultDigits = A._BigIntImpl__cloneDigits(_this._digits, 0, resultUsed, resultUsed + 2); + yUsed0 = yUsed; + yDigits0 = yDigits; + resultUsed0 = resultUsed; + } + t1 = yUsed0 - 1; + if (!(t1 >= 0 && t1 < yDigits0.length)) + return A.ioore(yDigits0, t1); + topDigitDivisor = yDigits0[t1]; + j = resultUsed0 - yUsed0; + tmpDigits = new Uint16Array(resultUsed0); + tmpUsed = A._BigIntImpl__dlShiftDigits(yDigits0, yUsed0, j, tmpDigits); + resultUsed1 = resultUsed0 + 1; + t1 = resultDigits.$flags | 0; + if (A._BigIntImpl__compareDigits(resultDigits, resultUsed0, tmpDigits, tmpUsed) >= 0) { + t1 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(resultUsed0 >= 0 && resultUsed0 < resultDigits.length)) + return A.ioore(resultDigits, resultUsed0); + resultDigits[resultUsed0] = 1; + A._BigIntImpl__absSub(resultDigits, resultUsed1, tmpDigits, tmpUsed, resultDigits); + } else { + t1 & 2 && A.throwUnsupportedOperation(resultDigits); + if (!(resultUsed0 >= 0 && resultUsed0 < resultDigits.length)) + return A.ioore(resultDigits, resultUsed0); + resultDigits[resultUsed0] = 0; + } + t1 = yUsed0 + 2; + nyDigits = new Uint16Array(t1); + if (!(yUsed0 >= 0 && yUsed0 < t1)) + return A.ioore(nyDigits, yUsed0); + nyDigits[yUsed0] = 1; + A._BigIntImpl__absSub(nyDigits, yUsed0 + 1, yDigits0, yUsed0, nyDigits); + i = resultUsed0 - 1; + for (t1 = resultDigits.length; j > 0;) { + estimatedQuotientDigit = A._BigIntImpl__estimateQuotientDigit(topDigitDivisor, resultDigits, i); + --j; + A._BigIntImpl__mulAdd(estimatedQuotientDigit, nyDigits, 0, resultDigits, j, yUsed0); + if (!(i >= 0 && i < t1)) + return A.ioore(resultDigits, i); + if (resultDigits[i] < estimatedQuotientDigit) { + tmpUsed = A._BigIntImpl__dlShiftDigits(nyDigits, yUsed0, j, tmpDigits); + A._BigIntImpl__absSub(resultDigits, resultUsed1, tmpDigits, tmpUsed, resultDigits); + for (; --estimatedQuotientDigit, resultDigits[i] < estimatedQuotientDigit;) + A._BigIntImpl__absSub(resultDigits, resultUsed1, tmpDigits, tmpUsed, resultDigits); + } + --i; + } + $._BigIntImpl__lastDividendDigits = _this._digits; + $._BigIntImpl__lastDividendUsed = resultUsed; + $._BigIntImpl__lastDivisorDigits = yDigits; + $._BigIntImpl__lastDivisorUsed = yUsed; + $._BigIntImpl____lastQuoRemDigits.__late_helper$_value = resultDigits; + $._BigIntImpl____lastQuoRemUsed.__late_helper$_value = resultUsed1; + $._BigIntImpl____lastRemUsed.__late_helper$_value = yUsed0; + $._BigIntImpl____lastRem_nsh.__late_helper$_value = nsh; + }, + get$hashCode(_) { + var hash, t2, t3, i, + combine = new A._BigIntImpl_hashCode_combine(), + t1 = this._used; + if (t1 === 0) + return 6707; + hash = this._isNegative ? 83585 : 429689; + for (t2 = this._digits, t3 = t2.length, i = 0; i < t1; ++i) { + if (!(i < t3)) + return A.ioore(t2, i); + hash = combine.call$2(hash, t2[i]); + } + return new A._BigIntImpl_hashCode_finish().call$1(hash); }, - $indexSet(receiver, index, value) { - type$.Touch._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); + $eq(_, other) { + if (other == null) + return false; + return other instanceof A._BigIntImpl && this.compareTo$1(0, other) === 0; }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; + toString$0(_) { + var decimalDigitChunks, rest, t2, digits4, t3, _this = this, + t1 = _this._used; + if (t1 === 0) + return "0"; + if (t1 === 1) { + if (_this._isNegative) { + t1 = _this._digits; + if (0 >= t1.length) + return A.ioore(t1, 0); + return B.JSInt_methods.toString$0(-t1[0]); + } + t1 = _this._digits; + if (0 >= t1.length) + return A.ioore(t1, 0); + return B.JSInt_methods.toString$0(t1[0]); } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; + decimalDigitChunks = A._setArrayType([], type$.JSArray_String); + t1 = _this._isNegative; + rest = t1 ? _this.$negate(0) : _this; + for (; rest._used > 1;) { + t2 = $.$get$_BigIntImpl__bigInt10000(); + if (t2._used === 0) + A.throwExpression(B.C_IntegerDivisionByZeroException); + digits4 = rest._rem$1(t2).toString$0(0); + B.JSArray_methods.add$1(decimalDigitChunks, digits4); + t3 = digits4.length; + if (t3 === 1) + B.JSArray_methods.add$1(decimalDigitChunks, "000"); + if (t3 === 2) + B.JSArray_methods.add$1(decimalDigitChunks, "00"); + if (t3 === 3) + B.JSArray_methods.add$1(decimalDigitChunks, "0"); + rest = rest._div$1(t2); + } + t2 = rest._digits; + if (0 >= t2.length) + return A.ioore(t2, 0); + B.JSArray_methods.add$1(decimalDigitChunks, B.JSInt_methods.toString$0(t2[0])); + if (t1) + B.JSArray_methods.add$1(decimalDigitChunks, "-"); + return new A.ReversedListIterable(decimalDigitChunks, type$.ReversedListIterable_String).join$0(0); }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 - }; - A.TrackDefaultList.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.UIEvent.prototype = {}; - A.Url.prototype = { - toString$0(receiver) { - var t1 = String(receiver); - t1.toString; - return t1; - } - }; - A.VideoTrackList.prototype = { - get$length(receiver) { - return receiver.length; - } + $isBigInt: 1, + $isComparable: 1 }; - A.Window.prototype = { - alert$1(receiver, message) { - return receiver.alert(message); - }, - confirm$1(receiver, message) { - var t1 = receiver.confirm(message); - t1.toString; - return t1; + A._BigIntImpl_hashCode_combine.prototype = { + call$2(hash, value) { + hash = hash + value & 536870911; + hash = hash + ((hash & 524287) << 10) & 536870911; + return hash ^ hash >>> 6; }, - $isWindow: 1, - $isWindowBase: 1 + $signature: 21 }; - A.WorkerGlobalScope.prototype = {$isWorkerGlobalScope: 1}; - A._Attr.prototype = {$is_Attr: 1}; - A._CssRuleList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; - }, - $indexSet(receiver, index, value) { - type$.CssRule._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; + A._BigIntImpl_hashCode_finish.prototype = { + call$1(hash) { + hash = hash + ((hash & 67108863) << 3) & 536870911; + hash ^= hash >>> 11; + return hash + ((hash & 16383) << 15) & 536870911; }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 + $signature: 22 }; - A._DomRect.prototype = { - toString$0(receiver) { - var t2, t3, t4, - t1 = receiver.left; - t1.toString; - t2 = receiver.top; - t2.toString; - t3 = receiver.width; - t3.toString; - t4 = receiver.height; - t4.toString; - return "Rectangle (" + A.S(t1) + ", " + A.S(t2) + ") " + A.S(t3) + " x " + A.S(t4); - }, - $eq(receiver, other) { - var t1, t2; + A.DateTime.prototype = { + $eq(_, other) { if (other == null) return false; - if (type$.Rectangle_num._is(other)) { - t1 = receiver.left; - t1.toString; - t2 = other.left; - t2.toString; - if (t1 === t2) { - t1 = receiver.top; - t1.toString; - t2 = other.top; - t2.toString; - if (t1 === t2) { - t1 = receiver.width; - t1.toString; - t2 = J.getInterceptor$x(other); - if (t1 === t2.get$width(other)) { - t1 = receiver.height; - t1.toString; - t2 = t1 === t2.get$height(other); - t1 = t2; - } else - t1 = false; - } else - t1 = false; - } else - t1 = false; - } else - t1 = false; - return t1; - }, - get$hashCode(receiver) { - var t2, t3, t4, - t1 = receiver.left; - t1.toString; - t2 = receiver.top; - t2.toString; - t3 = receiver.width; - t3.toString; - t4 = receiver.height; - t4.toString; - return A.Object_hash(t1, t2, t3, t4); - }, - get$_height(receiver) { - return receiver.height; - }, - get$height(receiver) { - var t1 = receiver.height; - t1.toString; - return t1; - }, - get$_width(receiver) { - return receiver.width; - }, - get$width(receiver) { - var t1 = receiver.width; - t1.toString; - return t1; - } - }; - A._GamepadList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - return receiver[index]; + return other instanceof A.DateTime && this._value === other._value && this._microsecond === other._microsecond && this.isUtc === other.isUtc; }, - $indexSet(receiver, index, value) { - type$.nullable_Gamepad._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); + get$hashCode(_) { + return A.Object_hash(this._value, this._microsecond, B.C_SentinelValue, B.C_SentinelValue); }, - get$first(receiver) { - if (receiver.length > 0) - return receiver[0]; - throw A.wrapException(A.StateError$("No elements")); + compareTo$1(_, other) { + var r; + type$.DateTime._as(other); + r = B.JSInt_methods.compareTo$1(this._value, other._value); + if (r !== 0) + return r; + return B.JSInt_methods.compareTo$1(this._microsecond, other._microsecond); }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; + toString$0(_) { + var _this = this, + y = A.DateTime__fourDigits(A.Primitives_getYear(_this)), + m = A.DateTime__twoDigits(A.Primitives_getMonth(_this)), + d = A.DateTime__twoDigits(A.Primitives_getDay(_this)), + h = A.DateTime__twoDigits(A.Primitives_getHours(_this)), + min = A.DateTime__twoDigits(A.Primitives_getMinutes(_this)), + sec = A.DateTime__twoDigits(A.Primitives_getSeconds(_this)), + ms = A.DateTime__threeDigits(A.Primitives_getMilliseconds(_this)), + t1 = _this._microsecond, + us = t1 === 0 ? "" : A.DateTime__threeDigits(t1); + t1 = y + "-" + m; + if (_this.isUtc) + return t1 + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms + us + "Z"; + else + return t1 + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms + us; }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 + $isComparable: 1 }; - A._NamedNodeMap.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + A.Duration.prototype = { + $eq(_, other) { + if (other == null) + return false; + return other instanceof A.Duration && this._duration === other._duration; }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + get$hashCode(_) { + return B.JSInt_methods.get$hashCode(this._duration); }, - $indexSet(receiver, index, value) { - type$.Node._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); + compareTo$1(_, other) { + return B.JSInt_methods.compareTo$1(this._duration, type$.Duration._as(other)._duration); }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; + toString$0(_) { + var sign, minutes, minutesPadding, seconds, secondsPadding, + microseconds = this._duration, + hours = B.JSInt_methods._tdivFast$1(microseconds, 3600000000), + microseconds0 = microseconds % 3600000000; + if (microseconds < 0) { + hours = 0 - hours; + microseconds = 0 - microseconds0; + sign = "-"; + } else { + microseconds = microseconds0; + sign = ""; } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; + minutes = B.JSInt_methods._tdivFast$1(microseconds, 60000000); + microseconds %= 60000000; + minutesPadding = minutes < 10 ? "0" : ""; + seconds = B.JSInt_methods._tdivFast$1(microseconds, 1000000); + secondsPadding = seconds < 10 ? "0" : ""; + return sign + hours + ":" + minutesPadding + minutes + ":" + secondsPadding + seconds + "." + B.JSString_methods.padLeft$2(B.JSInt_methods.toString$0(microseconds % 1000000), 6, "0"); }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 + $isComparable: 1 }; - A._SpeechRecognitionResultList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + A.Error.prototype = { + get$stackTrace() { + return A.Primitives_extractStackTrace(this); + } + }; + A.AssertionError.prototype = { + toString$0(_) { + var t1 = this.message; + if (t1 != null) + return "Assertion failed: " + A.Error_safeToString(t1); + return "Assertion failed"; + } + }; + A.TypeError.prototype = {}; + A.ArgumentError.prototype = { + get$_errorName() { + return "Invalid argument" + (!this._hasValue ? "(s)" : ""); }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + get$_errorExplanation() { + return ""; }, - $indexSet(receiver, index, value) { - type$.SpeechRecognitionResult._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); + toString$0(_) { + var _this = this, + $name = _this.name, + nameString = $name == null ? "" : " (" + $name + ")", + message = _this.message, + messageString = message == null ? "" : ": " + A.S(message), + prefix = _this.get$_errorName() + nameString + messageString; + if (!_this._hasValue) + return prefix; + return prefix + _this.get$_errorExplanation() + ": " + A.Error_safeToString(_this.get$invalidValue()); }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); + get$invalidValue() { + return this.invalidValue; + } + }; + A.RangeError.prototype = { + get$invalidValue() { + return A._asNumQ(this.invalidValue); }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; + get$_errorName() { + return "RangeError"; }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 + get$_errorExplanation() { + var explanation, + start = this.start, + end = this.end; + if (start == null) + explanation = end != null ? ": Not less than or equal to " + A.S(end) : ""; + else if (end == null) + explanation = ": Not greater than or equal to " + A.S(start); + else if (end > start) + explanation = ": Not in inclusive range " + A.S(start) + ".." + A.S(end); + else + explanation = end < start ? ": Valid value range is empty" : ": Only valid value is " + A.S(start); + return explanation; + } }; - A._StyleSheetList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + A.IndexError.prototype = { + get$invalidValue() { + return A._asInt(this.invalidValue); }, - $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) - throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + get$_errorName() { + return "RangeError"; }, - $indexSet(receiver, index, value) { - type$.StyleSheet._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); + get$_errorExplanation() { + if (A._asInt(this.invalidValue) < 0) + return ": index must not be negative"; + var t1 = this.length; + if (t1 === 0) + return ": no indices are valid"; + return ": index should be less than " + t1; }, - get$first(receiver) { - var t1; - if (receiver.length > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); + get$length(receiver) { + return this.length; + } + }; + A.UnsupportedError.prototype = { + toString$0(_) { + return "Unsupported operation: " + this.message; + } + }; + A.UnimplementedError.prototype = { + toString$0(_) { + var message = this.message; + return message != null ? "UnimplementedError: " + message : "UnimplementedError"; + } + }; + A.StateError.prototype = { + toString$0(_) { + return "Bad state: " + this.message; + } + }; + A.ConcurrentModificationError.prototype = { + toString$0(_) { + var t1 = this.modifiedObject; + if (t1 == null) + return "Concurrent modification during iteration."; + return "Concurrent modification during iteration: " + A.Error_safeToString(t1) + "."; + } + }; + A.OutOfMemoryError.prototype = { + toString$0(_) { + return "Out of Memory"; }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; + get$stackTrace() { + return null; }, - $isJSIndexable: 1, - $isEfficientLengthIterable: 1, - $isJavaScriptIndexingBehavior: 1, - $isIterable: 1, - $isList: 1 + $isError: 1 }; - A._AttributeMap.prototype = { - cast$2$0(_, $K, $V) { - var t1 = type$.String; - return A.Map_castFrom(this, t1, t1, $K, $V); + A.StackOverflowError.prototype = { + toString$0(_) { + return "Stack Overflow"; }, - forEach$1(_, f) { - var t1, t2, t3, _i, t4, value; - type$.void_Function_String_String._as(f); - for (t1 = this.get$keys(0), t2 = t1.length, t3 = this._element, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) { - t4 = A._asString(t1[_i]); - value = t3.getAttribute(t4); - f.call$2(t4, value == null ? A._asString(value) : value); - } + get$stackTrace() { + return null; }, - get$keys(_) { - var keys, len, t2, i, attr, t3, - t1 = this._element.attributes; - t1.toString; - keys = A._setArrayType([], type$.JSArray_String); - for (len = t1.length, t2 = type$._Attr, i = 0; i < len; ++i) { - if (!(i < t1.length)) - return A.ioore(t1, i); - attr = t2._as(t1[i]); - if (attr.namespaceURI == null) { - t3 = attr.name; - t3.toString; - B.JSArray_methods.add$1(keys, t3); + $isError: 1 + }; + A._Exception.prototype = { + toString$0(_) { + return "Exception: " + this.message; + } + }; + A.FormatException.prototype = { + toString$0(_) { + var t1, lineEnd, lineNum, lineStart, previousCharWasCR, i, char, prefix, postfix, end, start, + message = this.message, + report = "" !== message ? "FormatException: " + message : "FormatException", + offset = this.offset, + source = this.source; + if (typeof source == "string") { + if (offset != null) + t1 = offset < 0 || offset > source.length; + else + t1 = false; + if (t1) + offset = null; + if (offset == null) { + if (source.length > 78) + source = B.JSString_methods.substring$2(source, 0, 75) + "..."; + return report + "\n" + source; } - } - return keys; - }, - get$isEmpty(_) { - return this.get$keys(0).length === 0; + for (lineEnd = source.length, lineNum = 1, lineStart = 0, previousCharWasCR = false, i = 0; i < offset; ++i) { + if (!(i < lineEnd)) + return A.ioore(source, i); + char = source.charCodeAt(i); + if (char === 10) { + if (lineStart !== i || !previousCharWasCR) + ++lineNum; + lineStart = i + 1; + previousCharWasCR = false; + } else if (char === 13) { + ++lineNum; + lineStart = i + 1; + previousCharWasCR = true; + } + } + report = lineNum > 1 ? report + (" (at line " + lineNum + ", character " + (offset - lineStart + 1) + ")\n") : report + (" (at character " + (offset + 1) + ")\n"); + for (i = offset; i < lineEnd; ++i) { + if (!(i >= 0)) + return A.ioore(source, i); + char = source.charCodeAt(i); + if (char === 10 || char === 13) { + lineEnd = i; + break; + } + } + prefix = ""; + if (lineEnd - lineStart > 78) { + postfix = "..."; + if (offset - lineStart < 75) { + end = lineStart + 75; + start = lineStart; + } else { + if (lineEnd - offset < 75) { + start = lineEnd - 75; + end = lineEnd; + postfix = ""; + } else { + start = offset - 36; + end = offset + 36; + } + prefix = "..."; + } + } else { + end = lineEnd; + start = lineStart; + postfix = ""; + } + return report + prefix + B.JSString_methods.substring$2(source, start, end) + postfix + "\n" + B.JSString_methods.$mul(" ", offset - start + prefix.length) + "^\n"; + } else + return offset != null ? report + (" (at offset " + A.S(offset) + ")") : report; } }; - A._ElementAttributeMap.prototype = { - containsKey$1(_, key) { - var t1 = this._element.hasAttribute(key); - t1.toString; - return t1; - }, - $index(_, key) { - return this._element.getAttribute(A._asString(key)); + A.IntegerDivisionByZeroException.prototype = { + get$stackTrace() { + return null; }, - $indexSet(_, key, value) { - this._element.setAttribute(A._asString(key), A._asString(value)); + toString$0(_) { + return "IntegerDivisionByZeroException"; }, - get$length(_) { - return this.get$keys(0).length; - } + $isError: 1 }; - A.EventStreamProvider.prototype = {}; - A._EventStream0.prototype = { - listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError) { - var t1 = this.$ti; - t1._eval$1("~(1)?")._as(onData); - type$.nullable_void_Function._as(onDone); - return A._EventStreamSubscription$(this._target, this._eventType, onData, false, t1._precomputed1); + A.Iterable.prototype = { + map$1$1(_, toElement, $T) { + var t1 = A.instanceType(this); + return A.MappedIterable_MappedIterable(this, t1._bind$1($T)._eval$1("1(Iterable.E)")._as(toElement), t1._eval$1("Iterable.E"), $T); }, - listen$3$onDone$onError(onData, onDone, onError) { - return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError); - } - }; - A._EventStreamSubscription.prototype = { - cancel$0(_) { - var _this = this; - if (_this._target == null) - return $.$get$nullFuture(); - _this._unlisten$0(); - _this._target = null; - _this.set$_onData(null); - return $.$get$nullFuture(); + map$1(_, toElement) { + return this.map$1$1(0, toElement, type$.dynamic); + }, + contains$1(_, element) { + var t1; + for (t1 = this.get$iterator(this); t1.moveNext$0();) + if (J.$eq$(t1.get$current(), element)) + return true; + return false; + }, + toList$1$growable(_, growable) { + return A.List_List$of(this, growable, A.instanceType(this)._eval$1("Iterable.E")); + }, + toList$0(_) { + return this.toList$1$growable(0, true); }, - onData$1(handleData) { - var t1, _this = this; - _this.$ti._eval$1("~(1)?")._as(handleData); - if (_this._target == null) - throw A.wrapException(A.StateError$("Subscription has been canceled.")); - _this._unlisten$0(); - t1 = A._wrapZone(new A._EventStreamSubscription_onData_closure0(handleData), type$.Event); - _this.set$_onData(t1); - _this._tryResume$0(); + get$length(_) { + var count, + it = this.get$iterator(this); + for (count = 0; it.moveNext$0();) + ++count; + return count; }, - pause$0(_) { - if (this._target == null) - return; - ++this._pauseCount; - this._unlisten$0(); + get$isEmpty(_) { + return !this.get$iterator(this).moveNext$0(); }, - resume$0(_) { - var _this = this; - if (_this._target == null || _this._pauseCount <= 0) - return; - --_this._pauseCount; - _this._tryResume$0(); + get$isNotEmpty(_) { + return !this.get$isEmpty(this); }, - _tryResume$0() { - var t2, _this = this, - t1 = _this._onData; - if (t1 != null && _this._pauseCount <= 0) { - t2 = _this._target; - t2.toString; - J.addEventListener$3$x(t2, _this._eventType, t1, false); - } + take$1(_, count) { + return A.TakeIterable_TakeIterable(this, count, A.instanceType(this)._eval$1("Iterable.E")); }, - _unlisten$0() { - var t2, - t1 = this._onData; - if (t1 != null) { - t2 = this._target; - t2.toString; - J._removeEventListener$3$x(t2, this._eventType, type$.nullable_dynamic_Function_Event._as(t1), false); - } + skip$1(_, count) { + return A.SkipIterable_SkipIterable(this, count, A.instanceType(this)._eval$1("Iterable.E")); }, - set$_onData(_onData) { - this._onData = type$.nullable_dynamic_Function_Event._as(_onData); + get$first(_) { + var it = this.get$iterator(this); + if (!it.moveNext$0()) + throw A.wrapException(A.IterableElementError_noElement()); + return it.get$current(); }, - $isStreamSubscription: 1 - }; - A._EventStreamSubscription_closure.prototype = { - call$1(e) { - return this.onData.call$1(type$.Event._as(e)); + elementAt$1(_, index) { + var iterator, skipCount; + A.RangeError_checkNotNegative(index, "index"); + iterator = this.get$iterator(this); + for (skipCount = index; iterator.moveNext$0();) { + if (skipCount === 0) + return iterator.get$current(); + --skipCount; + } + throw A.wrapException(A.IndexError$withLength(index, index - skipCount, this, null, "index")); }, - $signature: 14 + toString$0(_) { + return A.Iterable_iterableToShortString(this, "(", ")"); + } }; - A._EventStreamSubscription_onData_closure0.prototype = { - call$1(e) { - return this.handleData.call$1(type$.Event._as(e)); + A.Null.prototype = { + get$hashCode(_) { + return A.Object.prototype.get$hashCode.call(this, 0); }, - $signature: 14 + toString$0(_) { + return "null"; + } }; - A._Html5NodeValidator.prototype = { - _Html5NodeValidator$1$uriPolicy(uriPolicy) { - var _i; - if ($._Html5NodeValidator__attributeValidators.__js_helper$_length === 0) { - for (_i = 0; _i < 262; ++_i) - $._Html5NodeValidator__attributeValidators.$indexSet(0, B.List_AOY[_i], A.html__Html5NodeValidator__standardAttributeValidator$closure()); - for (_i = 0; _i < 12; ++_i) - $._Html5NodeValidator__attributeValidators.$indexSet(0, B.List_4Jt[_i], A.html__Html5NodeValidator__uriAttributeValidator$closure()); - } + A.Object.prototype = {$isObject: 1, + $eq(_, other) { + return this === other; }, - allowsElement$1(element) { - return $.$get$_Html5NodeValidator__allowedElements().contains$1(0, A.Element__safeTagName(element)); + get$hashCode(_) { + return A.Primitives_objectHashCode(this); }, - allowsAttribute$3(element, attributeName, value) { - var validator = $._Html5NodeValidator__attributeValidators.$index(0, A.Element__safeTagName(element) + "::" + attributeName); - if (validator == null) - validator = $._Html5NodeValidator__attributeValidators.$index(0, "*::" + attributeName); - if (validator == null) - return false; - return A._asBool(validator.call$4(element, attributeName, value, this)); + toString$0(_) { + return "Instance of '" + A.Primitives_objectTypeName(this) + "'"; }, - $isNodeValidator: 1 - }; - A.ImmutableListMixin.prototype = { - get$iterator(receiver) { - return new A.FixedSizeListIterator(receiver, this.get$length(receiver), A.instanceType(receiver)._eval$1("FixedSizeListIterator")); + get$runtimeType(_) { + return A.getRuntimeTypeOfDartObject(this); }, - sort$1(receiver, compare) { - A.instanceType(receiver)._eval$1("int(ImmutableListMixin.E,ImmutableListMixin.E)?")._as(compare); - throw A.wrapException(A.UnsupportedError$("Cannot sort immutable List.")); + toString() { + return this.toString$0(this); } }; - A.NodeValidatorBuilder.prototype = { - allowsElement$1(element) { - return B.JSArray_methods.any$1(this._validators, new A.NodeValidatorBuilder_allowsElement_closure(element)); - }, - allowsAttribute$3(element, attributeName, value) { - return B.JSArray_methods.any$1(this._validators, new A.NodeValidatorBuilder_allowsAttribute_closure(element, attributeName, value)); + A._StringStackTrace.prototype = { + toString$0(_) { + return this._stackTrace; }, - $isNodeValidator: 1 + $isStackTrace: 1 }; - A.NodeValidatorBuilder_allowsElement_closure.prototype = { - call$1(v) { - return type$.NodeValidator._as(v).allowsElement$1(this.element); + A.StringBuffer.prototype = { + get$length(_) { + return this._contents.length; }, - $signature: 28 - }; - A.NodeValidatorBuilder_allowsAttribute_closure.prototype = { - call$1(v) { - return type$.NodeValidator._as(v).allowsAttribute$3(this.element, this.attributeName, this.value); + write$1(obj) { + var t1 = A.S(obj); + this._contents += t1; }, - $signature: 28 - }; - A._SimpleNodeValidator.prototype = { - _SimpleNodeValidator$4$allowedAttributes$allowedElements$allowedUriAttributes(uriPolicy, allowedAttributes, allowedElements, allowedUriAttributes) { - var legalAttributes, extraUriAttributes, t1; - this.allowedElements.addAll$1(0, allowedElements); - legalAttributes = allowedAttributes.where$1(0, new A._SimpleNodeValidator_closure()); - extraUriAttributes = allowedAttributes.where$1(0, new A._SimpleNodeValidator_closure0()); - this.allowedAttributes.addAll$1(0, legalAttributes); - t1 = this.allowedUriAttributes; - t1.addAll$1(0, B.List_empty0); - t1.addAll$1(0, extraUriAttributes); - }, - allowsElement$1(element) { - return this.allowedElements.contains$1(0, A.Element__safeTagName(element)); - }, - allowsAttribute$3(element, attributeName, value) { - var t3, _this = this, - tagName = A.Element__safeTagName(element), - t1 = _this.allowedUriAttributes, - t2 = tagName + "::" + attributeName; - if (t1.contains$1(0, t2)) - return _this.uriPolicy.allowsUri$1(value); - else { - t3 = "*::" + attributeName; - if (t1.contains$1(0, t3)) - return _this.uriPolicy.allowsUri$1(value); - else { - t1 = _this.allowedAttributes; - if (t1.contains$1(0, t2)) - return true; - else if (t1.contains$1(0, t3)) - return true; - else if (t1.contains$1(0, tagName + "::*")) - return true; - else if (t1.contains$1(0, "*::*")) - return true; - } - } - return false; + writeCharCode$1(charCode) { + var t1 = A.Primitives_stringFromCharCode(charCode); + this._contents += t1; }, - $isNodeValidator: 1 - }; - A._SimpleNodeValidator_closure.prototype = { - call$1(x) { - return !B.JSArray_methods.contains$1(B.List_4Jt, A._asString(x)); + toString$0(_) { + var t1 = this._contents; + return t1.charCodeAt(0) == 0 ? t1 : t1; }, - $signature: 29 + $isStringSink: 1 }; - A._SimpleNodeValidator_closure0.prototype = { - call$1(x) { - return B.JSArray_methods.contains$1(B.List_4Jt, A._asString(x)); + A.Uri__parseIPv4Address_error.prototype = { + call$2(msg, position) { + throw A.wrapException(A.FormatException$("Illegal IPv4 address, " + msg, this.host, position)); }, - $signature: 29 - }; - A._TemplatingNodeValidator.prototype = { - allowsAttribute$3(element, attributeName, value) { - if (this.super$_SimpleNodeValidator$allowsAttribute(element, attributeName, value)) - return true; - if (attributeName === "template" && value === "") - return true; - if (element.getAttribute("template") === "") - return this._templateAttrs.contains$1(0, attributeName); - return false; - } + $signature: 44 }; - A._TemplatingNodeValidator_closure.prototype = { - call$1(attr) { - return "TEMPLATE::" + A._asString(attr); + A.Uri_parseIPv6Address_error.prototype = { + call$2(msg, position) { + throw A.wrapException(A.FormatException$("Illegal IPv6 address, " + msg, this.host, position)); }, - $signature: 24 + $signature: 47 }; - A._SvgNodeValidator.prototype = { - allowsElement$1(element) { - var t1; - if (type$.ScriptElement._is(element)) - return false; - t1 = type$.SvgElement._is(element); - if (t1 && A.Element__safeTagName(element) === "foreignObject") - return false; - if (t1) - return true; - return false; - }, - allowsAttribute$3(element, attributeName, value) { - if (attributeName === "is" || B.JSString_methods.startsWith$1(attributeName, "on")) - return false; - return this.allowsElement$1(element); + A.Uri_parseIPv6Address_parseHex.prototype = { + call$2(start, end) { + var value; + if (end - start > 4) + this.error.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start); + value = A.int_parse(B.JSString_methods.substring$2(this.host, start, end), 16); + if (value < 0 || value > 65535) + this.error.call$2("each part must be in the range of `0x0..0xFFFF`", start); + return value; }, - $isNodeValidator: 1 + $signature: 21 }; - A.FixedSizeListIterator.prototype = { - moveNext$0() { - var _this = this, - nextPosition = _this._position + 1, - t1 = _this._length; - if (nextPosition < t1) { - _this.set$_current(J.$index$asx(_this._array, nextPosition)); - _this._position = nextPosition; - return true; + A._Uri.prototype = { + get$_text() { + var t1, t2, t3, t4, _this = this, + value = _this.___Uri__text_FI; + if (value === $) { + t1 = _this.scheme; + t2 = t1.length !== 0 ? "" + t1 + ":" : ""; + t3 = _this._host; + t4 = t3 == null; + if (!t4 || t1 === "file") { + t1 = t2 + "//"; + t2 = _this._userInfo; + if (t2.length !== 0) + t1 = t1 + t2 + "@"; + if (!t4) + t1 += t3; + t2 = _this._port; + if (t2 != null) + t1 = t1 + ":" + A.S(t2); + } else + t1 = t2; + t1 += _this.path; + t2 = _this._query; + if (t2 != null) + t1 = t1 + "?" + t2; + t2 = _this._fragment; + if (t2 != null) + t1 = t1 + "#" + t2; + value !== $ && A.throwLateFieldADI("_text"); + value = _this.___Uri__text_FI = t1.charCodeAt(0) == 0 ? t1 : t1; } - _this.set$_current(null); - _this._position = t1; - return false; + return value; }, - get$current(_) { - var t1 = this._current; - return t1 == null ? this.$ti._precomputed1._as(t1) : t1; + get$hashCode(_) { + var result, _this = this, + value = _this.___Uri_hashCode_FI; + if (value === $) { + result = B.JSString_methods.get$hashCode(_this.get$_text()); + _this.___Uri_hashCode_FI !== $ && A.throwLateFieldADI("hashCode"); + _this.___Uri_hashCode_FI = result; + value = result; + } + return value; }, - set$_current(_current) { - this._current = this.$ti._eval$1("1?")._as(_current); + get$userInfo() { + return this._userInfo; }, - $isIterator: 1 - }; - A._DOMWindowCrossFrame.prototype = {$isJSObject: 1, $isEventTarget: 1, $isWindowBase: 1}; - A._SameOriginUriPolicy.prototype = {$isUriPolicy: 1}; - A._ValidatingTreeSanitizer.prototype = { - sanitizeTree$1(node) { - var previousTreeModifications, - walk = new A._ValidatingTreeSanitizer_sanitizeTree_walk(this); - do { - previousTreeModifications = this.numTreeModifications; - walk.call$2(node, null); - } while (previousTreeModifications !== this.numTreeModifications); - }, - _removeNode$2(node, $parent) { - ++this.numTreeModifications; - if ($parent == null || $parent !== node.parentNode) - J.remove$0$x(node); - else - $parent.removeChild(node).toString; + get$host() { + var host = this._host; + if (host == null) + return ""; + if (B.JSString_methods.startsWith$1(host, "[")) + return B.JSString_methods.substring$2(host, 1, host.length - 1); + return host; }, - _sanitizeUntrustedElement$2(element, $parent) { - var corruptedTest1, elementText, elementTagName, t1, corrupted0, exception, t2, - corrupted = true, - attrs = null, isAttr = null; - try { - attrs = J.get$attributes$x(element); - isAttr = attrs._element.getAttribute("is"); - type$.Element._as(element); - t1 = function(element) { - if (!(element.attributes instanceof NamedNodeMap)) { - return true; - } - if (element.id == "lastChild" || element.name == "lastChild" || element.id == "previousSibling" || element.name == "previousSibling" || element.id == "children" || element.name == "children") { - return true; - } - var childNodes = element.childNodes; - if (element.lastChild && element.lastChild !== childNodes[childNodes.length - 1]) { - return true; - } - if (element.children) { - if (!(element.children instanceof HTMLCollection || element.children instanceof NodeList)) { - return true; - } - } - var length = 0; - if (element.children) { - length = element.children.length; - } - for (var i = 0; i < length; i++) { - var child = element.children[i]; - if (child.id == "attributes" || child.name == "attributes" || child.id == "lastChild" || child.name == "lastChild" || child.id == "previousSibling" || child.name == "previousSibling" || child.id == "children" || child.name == "children") { - return true; - } - } - return false; - }(element); - t1.toString; - corruptedTest1 = t1; - if (A.boolConversionCheck(corruptedTest1)) - corrupted0 = true; - else { - t1 = !(element.attributes instanceof NamedNodeMap); - t1.toString; - corrupted0 = t1; - } - corrupted = corrupted0; - } catch (exception) { - } - elementText = "element unprintable"; - try { - elementText = J.toString$0$(element); - } catch (exception) { - } - try { - type$.Element._as(element); - elementTagName = A.Element__safeTagName(element); - this._sanitizeElement$7(element, $parent, corrupted, elementText, elementTagName, type$.Map_dynamic_dynamic._as(attrs), A._asStringQ(isAttr)); - } catch (exception) { - if (A.unwrapException(exception) instanceof A.ArgumentError) - throw exception; - else { - this._removeNode$2(element, $parent); - window.toString; - t1 = A.S(elementText); - t2 = typeof console != "undefined"; - t2.toString; - if (t2) - window.console.warn("Removing corrupted element " + t1); - } - } + get$port() { + var t1 = this._port; + return t1 == null ? A._Uri__defaultPort(this.scheme) : t1; }, - _sanitizeElement$7(element, $parent, corrupted, text, tag, attrs, isAttr) { - var t1, t2, keys, i, $name, t3, t4, _this = this; - if (corrupted) { - _this._removeNode$2(element, $parent); - window.toString; - t1 = typeof console != "undefined"; - t1.toString; - if (t1) - window.console.warn("Removing element due to corrupted attributes on <" + text + ">"); - return; - } - if (!_this.validator.allowsElement$1(element)) { - _this._removeNode$2(element, $parent); - window.toString; - t1 = A.S($parent); - t2 = typeof console != "undefined"; - t2.toString; - if (t2) - window.console.warn("Removing disallowed element <" + tag + "> from " + t1); - return; - } - if (isAttr != null) - if (!_this.validator.allowsAttribute$3(element, "is", isAttr)) { - _this._removeNode$2(element, $parent); - window.toString; - t1 = typeof console != "undefined"; - t1.toString; - if (t1) - window.console.warn("Removing disallowed type extension <" + tag + ' is="' + isAttr + '">'); - return; - } - t1 = attrs.get$keys(0); - keys = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1)); - for (i = attrs.get$keys(0).length - 1, t1 = attrs._element, t2 = "Removing disallowed attribute <" + tag + " "; i >= 0; --i) { - if (!(i < keys.length)) - return A.ioore(keys, i); - $name = keys[i]; - t3 = _this.validator; - t4 = J.toLowerCase$0$s($name); - A._asString($name); - if (!t3.allowsAttribute$3(element, t4, A._asString(t1.getAttribute($name)))) { - window.toString; - t3 = t1.getAttribute($name); - t4 = typeof console != "undefined"; - t4.toString; - if (t4) - window.console.warn(t2 + $name + '="' + A.S(t3) + '">'); - t1.removeAttribute($name); - } + get$query() { + var t1 = this._query; + return t1 == null ? "" : t1; + }, + get$fragment() { + var t1 = this._fragment; + return t1 == null ? "" : t1; + }, + isScheme$1(scheme) { + var thisScheme = this.scheme; + if (scheme.length !== thisScheme.length) + return false; + return A._caseInsensitiveCompareStart(scheme, thisScheme, 0) >= 0; + }, + replace$2$path$scheme(path, scheme) { + var schemeChanged, isFile, userInfo, port, host, hasAuthority, t1, currentPath, _this = this, + scheme0 = _this.scheme; + if (scheme != null) { + scheme = A._Uri__makeScheme(scheme, 0, scheme.length); + schemeChanged = scheme !== scheme0; + } else { + scheme = scheme0; + schemeChanged = false; } - if (type$.TemplateElement._is(element)) { - t1 = element.content; - t1.toString; - _this.sanitizeTree$1(t1); + isFile = scheme === "file"; + userInfo = _this._userInfo; + port = _this._port; + if (schemeChanged) + port = A._Uri__makePort(port, scheme); + host = _this._host; + if (!(host != null)) + host = userInfo.length !== 0 || port != null || isFile ? "" : null; + hasAuthority = host != null; + if (path != null) { + t1 = path.length; + path = A._Uri__makePath(path, 0, t1, null, scheme, hasAuthority); + } else { + currentPath = _this.path; + if (!isFile) + t1 = hasAuthority && currentPath.length !== 0; + else + t1 = true; + if (t1 && !B.JSString_methods.startsWith$1(currentPath, "/")) + currentPath = "/" + currentPath; + path = currentPath; } + return A._Uri$_internal(scheme, userInfo, host, port, path, _this._query, _this._fragment); }, - sanitizeNode$2(node, $parent) { - var t1 = node.nodeType; - t1.toString; - switch (t1) { - case 1: - this._sanitizeUntrustedElement$2(node, $parent); - break; - case 8: - case 11: - case 3: - case 4: - break; - default: - this._removeNode$2(node, $parent); - } + replace$1$scheme(scheme) { + return this.replace$2$path$scheme(null, scheme); }, - $isNodeTreeSanitizer: 1 - }; - A._ValidatingTreeSanitizer_sanitizeTree_walk.prototype = { - call$2(node, $parent) { - var child, nextChild, t2, t3, t4, exception, - t1 = this.$this; - t1.sanitizeNode$2(node, $parent); - child = node.lastChild; - for (t2 = type$.Node; child != null;) { - nextChild = null; - try { - nextChild = child.previousSibling; - if (nextChild != null) { - t3 = nextChild.nextSibling; - t4 = child; - t4 = t3 == null ? t4 != null : t3 !== t4; - t3 = t4; - } else - t3 = false; - if (t3) { - t3 = A.StateError$("Corrupt HTML"); - throw A.wrapException(t3); - } - } catch (exception) { - t3 = t2._as(child); - ++t1.numTreeModifications; - t4 = t3.parentNode; - if (node !== t4) { - if (t4 != null) - t4.removeChild(t3).toString; - } else - node.removeChild(t3).toString; - child = null; - nextChild = node.lastChild; - } - if (child != null) - this.call$2(child, node); - child = nextChild; - } + replace$1$path(path) { + return this.replace$2$path$scheme(path, null); }, - $signature: 37 - }; - A._CssStyleDeclaration_JavaScriptObject_CssStyleDeclarationBase.prototype = {}; - A._DomRectList_JavaScriptObject_ListMixin.prototype = {}; - A._DomRectList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._DomStringList_JavaScriptObject_ListMixin.prototype = {}; - A._DomStringList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._FileList_JavaScriptObject_ListMixin.prototype = {}; - A._FileList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._HtmlCollection_JavaScriptObject_ListMixin.prototype = {}; - A._HtmlCollection_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._MidiInputMap_JavaScriptObject_MapMixin.prototype = {}; - A._MidiOutputMap_JavaScriptObject_MapMixin.prototype = {}; - A._MimeTypeArray_JavaScriptObject_ListMixin.prototype = {}; - A._MimeTypeArray_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._NodeList_JavaScriptObject_ListMixin.prototype = {}; - A._NodeList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._PluginArray_JavaScriptObject_ListMixin.prototype = {}; - A._PluginArray_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._RtcStatsReport_JavaScriptObject_MapMixin.prototype = {}; - A._SourceBufferList_EventTarget_ListMixin.prototype = {}; - A._SourceBufferList_EventTarget_ListMixin_ImmutableListMixin.prototype = {}; - A._SpeechGrammarList_JavaScriptObject_ListMixin.prototype = {}; - A._SpeechGrammarList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._Storage_JavaScriptObject_MapMixin.prototype = {}; - A._TextTrackCueList_JavaScriptObject_ListMixin.prototype = {}; - A._TextTrackCueList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._TextTrackList_EventTarget_ListMixin.prototype = {}; - A._TextTrackList_EventTarget_ListMixin_ImmutableListMixin.prototype = {}; - A._TouchList_JavaScriptObject_ListMixin.prototype = {}; - A._TouchList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A.__CssRuleList_JavaScriptObject_ListMixin.prototype = {}; - A.__CssRuleList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A.__GamepadList_JavaScriptObject_ListMixin.prototype = {}; - A.__GamepadList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A.__NamedNodeMap_JavaScriptObject_ListMixin.prototype = {}; - A.__NamedNodeMap_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A.__SpeechRecognitionResultList_JavaScriptObject_ListMixin.prototype = {}; - A.__SpeechRecognitionResultList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A.__StyleSheetList_JavaScriptObject_ListMixin.prototype = {}; - A.__StyleSheetList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._StructuredClone.prototype = { - findSlot$1(value) { - var i, - t1 = this.values, - $length = t1.length; - for (i = 0; i < $length; ++i) - if (t1[i] === value) - return i; - B.JSArray_methods.add$1(t1, value); - B.JSArray_methods.add$1(this.copies, null); - return $length; + get$hasAuthority() { + return this._host != null; }, - walk$1(e) { - var slot, t2, copy, t3, _this = this, t1 = {}; - if (e == null) - return e; - if (A._isBool(e)) - return e; - if (typeof e == "number") - return e; - if (typeof e == "string") - return e; - if (e instanceof A.DateTime) - return new Date(e._value); - if (e instanceof A.JSSyntaxRegExp) - throw A.wrapException(A.UnimplementedError$("structured clone of RegExp")); - if (type$.File._is(e)) - return e; - if (type$.Blob._is(e)) - return e; - if (type$.FileList._is(e)) - return e; - if (type$.ImageData._is(e)) - return e; - if (type$.NativeByteBuffer._is(e) || type$.NativeTypedData._is(e) || type$.MessagePort._is(e) || type$.SharedArrayBuffer._is(e)) - return e; - if (type$.Map_dynamic_dynamic._is(e)) { - slot = _this.findSlot$1(e); - t2 = _this.copies; - if (!(slot < t2.length)) - return A.ioore(t2, slot); - copy = t1.copy = t2[slot]; - if (copy != null) - return copy; - copy = {}; - t1.copy = copy; - B.JSArray_methods.$indexSet(t2, slot, copy); - J.forEach$1$x(e, new A._StructuredClone_walk_closure(t1, _this)); - return t1.copy; - } - if (type$.List_dynamic._is(e)) { - slot = _this.findSlot$1(e); - t1 = _this.copies; - if (!(slot < t1.length)) - return A.ioore(t1, slot); - copy = t1[slot]; - if (copy != null) - return copy; - return _this.copyList$2(e, slot); - } - if (type$.JSObject._is(e)) { - slot = _this.findSlot$1(e); - t2 = _this.copies; - if (!(slot < t2.length)) - return A.ioore(t2, slot); - copy = t1.copy = t2[slot]; - if (copy != null) - return copy; - t3 = {}; - t3.toString; - t1.copy = t3; - B.JSArray_methods.$indexSet(t2, slot, t3); - _this.forEachObjectKey$2(e, new A._StructuredClone_walk_closure0(t1, _this)); - return t1.copy; - } - throw A.wrapException(A.UnimplementedError$("structured clone of other type")); + get$hasQuery() { + return this._query != null; }, - copyList$2(e, slot) { - var i, - t1 = J.getInterceptor$asx(e), - $length = t1.get$length(e), - t2 = new Array($length); - t2.toString; - B.JSArray_methods.$indexSet(this.copies, slot, t2); - for (i = 0; i < $length; ++i) - B.JSArray_methods.$indexSet(t2, i, this.walk$1(t1.$index(e, i))); - return t2; - } - }; - A._StructuredClone_walk_closure.prototype = { - call$2(key, value) { - this._box_0.copy[key] = this.$this.walk$1(value); + get$hasFragment() { + return this._fragment != null; }, - $signature: 13 - }; - A._StructuredClone_walk_closure0.prototype = { - call$2(key, value) { - this._box_0.copy[key] = this.$this.walk$1(value); + toString$0(_) { + return this.get$_text(); }, - $signature: 38 + $eq(_, other) { + var t1, t2, t3, _this = this; + if (other == null) + return false; + if (_this === other) + return true; + t1 = false; + if (type$.Uri._is(other)) + if (_this.scheme === other.get$scheme()) + if (_this._host != null === other.get$hasAuthority()) + if (_this._userInfo === other.get$userInfo()) + if (_this.get$host() === other.get$host()) + if (_this.get$port() === other.get$port()) + if (_this.path === other.get$path()) { + t2 = _this._query; + t3 = t2 == null; + if (!t3 === other.get$hasQuery()) { + if (t3) + t2 = ""; + if (t2 === other.get$query()) { + t2 = _this._fragment; + t3 = t2 == null; + if (!t3 === other.get$hasFragment()) { + t1 = t3 ? "" : t2; + t1 = t1 === other.get$fragment(); + } + } + } + } + return t1; + }, + $isUri: 1, + get$scheme() { + return this.scheme; + }, + get$path() { + return this.path; + } }; - A._AcceptStructuredClone.prototype = { - findSlot$1(value) { - var i, - t1 = this.values, - $length = t1.length; - for (i = 0; i < $length; ++i) - if (t1[i] === value) - return i; - B.JSArray_methods.add$1(t1, value); - B.JSArray_methods.add$1(this.copies, null); - return $length; + A._Uri__makePath_closure.prototype = { + call$1(s) { + return A._Uri__uriEncode(B.List_M2I0, A._asString(s), B.C_Utf8Codec, false); }, - walk$1(e) { - var t1, slot, copy, t2, map, t3, $length, t4, i, _this = this; - if (e == null) - return e; - if (A._isBool(e)) - return e; - if (typeof e == "number") - return e; - if (typeof e == "string") - return e; - t1 = e instanceof Date; - t1.toString; - if (t1) { - t1 = e.getTime(); - t1.toString; - return A.DateTime$fromMillisecondsSinceEpoch(t1, true); - } - t1 = e instanceof RegExp; - t1.toString; - if (t1) - throw A.wrapException(A.UnimplementedError$("structured clone of RegExp")); - t1 = typeof Promise != "undefined" && e instanceof Promise; - t1.toString; - if (t1) - return A.promiseToFuture(e, type$.dynamic); - if (A.isJavaScriptSimpleObject(e)) { - slot = _this.findSlot$1(e); - t1 = _this.copies; - if (!(slot < t1.length)) - return A.ioore(t1, slot); - copy = t1[slot]; - if (copy != null) - return copy; - t2 = type$.dynamic; - map = A.LinkedHashMap_LinkedHashMap$_empty(t2, t2); - B.JSArray_methods.$indexSet(t1, slot, map); - _this.forEachJsField$2(e, new A._AcceptStructuredClone_walk_closure(_this, map)); - return map; - } - t1 = e instanceof Array; - t1.toString; - if (t1) { - t1 = e; - t1.toString; - slot = _this.findSlot$1(t1); - t2 = _this.copies; - if (!(slot < t2.length)) - return A.ioore(t2, slot); - copy = t2[slot]; - if (copy != null) - return copy; - t3 = J.getInterceptor$asx(t1); - $length = t3.get$length(t1); - if (_this.mustCopy) { - t4 = new Array($length); - t4.toString; - copy = t4; + $signature: 49 + }; + A.UriData.prototype = { + get$uri() { + var t2, queryIndex, end, query, _this = this, _null = null, + t1 = _this._uriCache; + if (t1 == null) { + t1 = _this._separatorIndices; + if (0 >= t1.length) + return A.ioore(t1, 0); + t2 = _this._text; + t1 = t1[0] + 1; + queryIndex = B.JSString_methods.indexOf$2(t2, "?", t1); + end = t2.length; + if (queryIndex >= 0) { + query = A._Uri__normalizeOrSubstring(t2, queryIndex + 1, end, B.List_42A, false, false); + end = queryIndex; } else - copy = t1; - B.JSArray_methods.$indexSet(t2, slot, copy); - for (t2 = J.getInterceptor$ax(copy), i = 0; i < $length; ++i) - t2.$indexSet(copy, i, _this.walk$1(t3.$index(t1, i))); - return copy; + query = _null; + t1 = _this._uriCache = new A._DataUri("data", "", _null, _null, A._Uri__normalizeOrSubstring(t2, t1, end, B.List_M2I, false, false), query, _null); } - return e; + return t1; }, - convertNativeToDart_AcceptStructuredClone$2$mustCopy(object, mustCopy) { - this.mustCopy = true; - return this.walk$1(object); + toString$0(_) { + var t2, + t1 = this._separatorIndices; + if (0 >= t1.length) + return A.ioore(t1, 0); + t2 = this._text; + return t1[0] === -1 ? "data:" + t2 : t2; } }; - A._AcceptStructuredClone_walk_closure.prototype = { - call$2(key, value) { - var t1 = this.$this.walk$1(value); - this.map.$indexSet(0, key, t1); + A._createTables_build.prototype = { + call$2(state, defaultTransition) { + var t1 = this.tables; + if (!(state < t1.length)) + return A.ioore(t1, state); + t1 = t1[state]; + B.NativeUint8List_methods.fillRange$3(t1, 0, 96, defaultTransition); return t1; }, - $signature: 39 + $signature: 50 }; - A._StructuredCloneDart2Js.prototype = { - forEachObjectKey$2(object, action) { - var t1, t2, _i, key; - type$.dynamic_Function_dynamic_dynamic._as(action); - for (t1 = Object.keys(object), t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) { - key = t1[_i]; - action.call$2(key, object[key]); + A._createTables_setChars.prototype = { + call$3(target, chars, transition) { + var t1, t2, i, t3; + for (t1 = chars.length, t2 = target.$flags | 0, i = 0; i < t1; ++i) { + t3 = chars.charCodeAt(i) ^ 96; + t2 & 2 && A.throwUnsupportedOperation(target); + if (!(t3 < 96)) + return A.ioore(target, t3); + target[t3] = transition; } - } + }, + $signature: 23 }; - A._AcceptStructuredCloneDart2Js.prototype = { - forEachJsField$2(object, action) { - var t1, t2, _i, key; - type$.dynamic_Function_dynamic_dynamic._as(action); - for (t1 = Object.keys(object), t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) { - key = t1[_i]; - action.call$2(key, object[key]); + A._createTables_setRange.prototype = { + call$3(target, range, transition) { + var i, n, t2, + t1 = range.length; + if (0 >= t1) + return A.ioore(range, 0); + i = range.charCodeAt(0); + if (1 >= t1) + return A.ioore(range, 1); + n = range.charCodeAt(1); + t1 = target.$flags | 0; + for (; i <= n; ++i) { + t2 = (i ^ 96) >>> 0; + t1 & 2 && A.throwUnsupportedOperation(target); + if (!(t2 < 96)) + return A.ioore(target, t2); + target[t2] = transition; } - } - }; - A.KeyRange.prototype = {$isKeyRange: 1}; - A._convertToJS_closure.prototype = { - call$1(o) { - var jsFunction; - type$.Function._as(o); - jsFunction = function(_call, f, captureThis) { - return function() { - return _call(f, captureThis, this, Array.prototype.slice.apply(arguments)); - }; - }(A._callDartFunction, o, false); - A._defineProperty(jsFunction, $.$get$DART_CLOSURE_PROPERTY_NAME(), o); - return jsFunction; }, - $signature: 1 + $signature: 23 }; - A._convertToJS_closure0.prototype = { - call$1(o) { - return new this.ctor(o); + A._SimpleUri.prototype = { + get$hasAuthority() { + return this._hostStart > 0; }, - $signature: 1 - }; - A._wrapToDart_closure.prototype = { - call$1(o) { - return new A.JsFunction(o == null ? type$.Object._as(o) : o); + get$hasPort() { + return this._hostStart > 0 && this._portStart + 1 < this._pathStart; + }, + get$hasQuery() { + return this._queryStart < this._fragmentStart; + }, + get$hasFragment() { + return this._fragmentStart < this._uri.length; + }, + isScheme$1(scheme) { + var t1 = scheme.length; + if (t1 === 0) + return this._schemeEnd < 0; + if (t1 !== this._schemeEnd) + return false; + return A._caseInsensitiveCompareStart(scheme, this._uri, 0) >= 0; + }, + get$scheme() { + var t1 = this._schemeCache; + return t1 == null ? this._schemeCache = this._computeScheme$0() : t1; + }, + _computeScheme$0() { + var t2, _this = this, + t1 = _this._schemeEnd; + if (t1 <= 0) + return ""; + t2 = t1 === 4; + if (t2 && B.JSString_methods.startsWith$1(_this._uri, "http")) + return "http"; + if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https")) + return "https"; + if (t2 && B.JSString_methods.startsWith$1(_this._uri, "file")) + return "file"; + if (t1 === 7 && B.JSString_methods.startsWith$1(_this._uri, "package")) + return "package"; + return B.JSString_methods.substring$2(_this._uri, 0, t1); + }, + get$userInfo() { + var t1 = this._hostStart, + t2 = this._schemeEnd + 3; + return t1 > t2 ? B.JSString_methods.substring$2(this._uri, t2, t1 - 1) : ""; + }, + get$host() { + var t1 = this._hostStart; + return t1 > 0 ? B.JSString_methods.substring$2(this._uri, t1, this._portStart) : ""; + }, + get$port() { + var t1, _this = this; + if (_this.get$hasPort()) + return A.int_parse(B.JSString_methods.substring$2(_this._uri, _this._portStart + 1, _this._pathStart), null); + t1 = _this._schemeEnd; + if (t1 === 4 && B.JSString_methods.startsWith$1(_this._uri, "http")) + return 80; + if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https")) + return 443; + return 0; + }, + get$path() { + return B.JSString_methods.substring$2(this._uri, this._pathStart, this._queryStart); + }, + get$query() { + var t1 = this._queryStart, + t2 = this._fragmentStart; + return t1 < t2 ? B.JSString_methods.substring$2(this._uri, t1 + 1, t2) : ""; + }, + get$fragment() { + var t1 = this._fragmentStart, + t2 = this._uri; + return t1 < t2.length ? B.JSString_methods.substring$1(t2, t1 + 1) : ""; }, - $signature: 40 - }; - A._wrapToDart_closure0.prototype = { - call$1(o) { - var t1 = o == null ? type$.Object._as(o) : o; - return new A.JsArray(t1, type$.JsArray_dynamic); + replace$2$path$scheme(path, scheme) { + var schemeChanged, isFile, t1, userInfo, port, host, hasAuthority, t2, query, fragment, _this = this, _null = null; + if (scheme != null) { + scheme = A._Uri__makeScheme(scheme, 0, scheme.length); + schemeChanged = !(_this._schemeEnd === scheme.length && B.JSString_methods.startsWith$1(_this._uri, scheme)); + } else { + scheme = _this.get$scheme(); + schemeChanged = false; + } + isFile = scheme === "file"; + t1 = _this._hostStart; + userInfo = t1 > 0 ? B.JSString_methods.substring$2(_this._uri, _this._schemeEnd + 3, t1) : ""; + port = _this.get$hasPort() ? _this.get$port() : _null; + if (schemeChanged) + port = A._Uri__makePort(port, scheme); + t1 = _this._hostStart; + if (t1 > 0) + host = B.JSString_methods.substring$2(_this._uri, t1, _this._portStart); + else + host = userInfo.length !== 0 || port != null || isFile ? "" : _null; + hasAuthority = host != null; + if (path != null) { + t1 = path.length; + path = A._Uri__makePath(path, 0, t1, _null, scheme, hasAuthority); + } else { + path = B.JSString_methods.substring$2(_this._uri, _this._pathStart, _this._queryStart); + if (!isFile) + t1 = hasAuthority && path.length !== 0; + else + t1 = true; + if (t1 && !B.JSString_methods.startsWith$1(path, "/")) + path = "/" + path; + } + t1 = _this._queryStart; + t2 = _this._fragmentStart; + query = t1 < t2 ? B.JSString_methods.substring$2(_this._uri, t1 + 1, t2) : _null; + t1 = _this._fragmentStart; + t2 = _this._uri; + fragment = t1 < t2.length ? B.JSString_methods.substring$1(t2, t1 + 1) : _null; + return A._Uri$_internal(scheme, userInfo, host, port, path, query, fragment); }, - $signature: 41 - }; - A._wrapToDart_closure1.prototype = { - call$1(o) { - return new A.JsObject(o == null ? type$.Object._as(o) : o); + replace$1$scheme(scheme) { + return this.replace$2$path$scheme(null, scheme); }, - $signature: 42 - }; - A.JsObject.prototype = { - $index(_, property) { - if (typeof property != "string" && typeof property != "number") - throw A.wrapException(A.ArgumentError$("property is not a String or num", null)); - return A._convertToDart(this._jsObject[property]); + replace$1$path(path) { + return this.replace$2$path$scheme(path, null); }, - $indexSet(_, property, value) { - if (typeof property != "string" && typeof property != "number") - throw A.wrapException(A.ArgumentError$("property is not a String or num", null)); - this._jsObject[property] = A._convertToJS(value); + get$hashCode(_) { + var t1 = this._hashCodeCache; + return t1 == null ? this._hashCodeCache = B.JSString_methods.get$hashCode(this._uri) : t1; }, $eq(_, other) { if (other == null) return false; - return other instanceof A.JsObject && this._jsObject === other._jsObject; + if (this === other) + return true; + return type$.Uri._is(other) && this._uri === other.toString$0(0); }, toString$0(_) { - var t1, exception; - try { - t1 = String(this._jsObject); - return t1; - } catch (exception) { - t1 = this.super$Object$toString(0); - return t1; - } - }, - callMethod$2(method, args) { - var t2, - t1 = this._jsObject; - if (args == null) - t2 = null; - else { - t2 = A._arrayInstanceType(args); - t2 = A.List_List$from(new A.MappedListIterable(args, t2._eval$1("@(1)")._as(A.js___convertToJS$closure()), t2._eval$1("MappedListIterable<1,@>")), true, type$.dynamic); - } - return A._convertToDart(t1[method].apply(t1, t2)); + return this._uri; }, - get$hashCode(_) { - return 0; - } + $isUri: 1 }; - A.JsFunction.prototype = {}; - A.JsArray.prototype = { - _checkIndex$1(index) { - var t1 = index < 0 || index >= this.get$length(0); - if (t1) - throw A.wrapException(A.RangeError$range(index, 0, this.get$length(0), null, null)); - }, - $index(_, index) { - if (A._isInt(index)) - this._checkIndex$1(index); - return this.$ti._precomputed1._as(this.super$JsObject$$index(0, index)); - }, - $indexSet(_, index, value) { - this._checkIndex$1(index); - this.super$_JsArray_JsObject_ListMixin$$indexSet(0, index, value); - }, - get$length(_) { - var len = this._jsObject.length; - if (typeof len === "number" && len >>> 0 === len) - return len; - throw A.wrapException(A.StateError$("Bad JsArray length")); + A._DataUri.prototype = {}; + A.FutureOfVoidToJSPromise_get_toJS_closure.prototype = { + call$2(resolve, reject) { + var t1 = type$.JavaScriptFunction; + this._this.then$1$2$onError(new A.FutureOfVoidToJSPromise_get_toJS__closure(t1._as(resolve)), new A.FutureOfVoidToJSPromise_get_toJS__closure0(t1._as(reject)), type$.nullable_Object); }, - sort$1(_, compare) { - this.$ti._eval$1("int(1,1)?")._as(compare); - this.callMethod$2("sort", compare == null ? [] : [compare]); + $signature: 27 + }; + A.FutureOfVoidToJSPromise_get_toJS__closure.prototype = { + call$1(_) { + var t1 = this.resolve; + return t1.call(t1); }, - $isEfficientLengthIterable: 1, - $isIterable: 1, - $isList: 1 + $signature: 29 }; - A._JsArray_JsObject_ListMixin.prototype = { - $indexSet(_, property, value) { - return this.super$JsObject$$indexSet(0, property, value); - } + A.FutureOfVoidToJSPromise_get_toJS__closure0.prototype = { + call$2(error, stackTrace) { + var t1, errorConstructor, box, t2; + type$.Object._as(error); + type$.StackTrace._as(stackTrace); + t1 = type$.JSObject; + errorConstructor = type$.JavaScriptFunction._as(t1._as(self).Error); + t1 = A.callConstructor(errorConstructor, ["Dart exception thrown from converted Future. Use the properties 'error' to fetch the boxed error and 'stack' to recover the stack trace."], t1); + if (type$.JavaScriptObject._is(error)) + A.throwExpression("Attempting to box non-Dart object."); + box = {}; + box[$.$get$_jsBoxedDartObjectProperty()] = error; + t1.error = box; + t1.stack = stackTrace.toString$0(0); + t2 = this.reject; + t2.call(t2, t1); + }, + $signature: 5 }; A.jsify__convert.prototype = { call$1(o) { - var t1, convertedMap, t2, key, convertedList; + var t1, convertedMap, key, convertedList; if (A._noJsifyRequired(o)) return o; t1 = this._convertedObjects; - if (t1.containsKey$1(0, o)) + if (t1.containsKey$1(o)) return t1.$index(0, o); if (type$.Map_of_nullable_Object_and_nullable_Object._is(o)) { convertedMap = {}; t1.$indexSet(0, o, convertedMap); - for (t1 = J.getInterceptor$x(o), t2 = J.get$iterator$ax(t1.get$keys(o)); t2.moveNext$0();) { - key = t2.get$current(t2); - convertedMap[key] = this.call$1(t1.$index(o, key)); + for (t1 = o.get$keys(), t1 = t1.get$iterator(t1); t1.moveNext$0();) { + key = t1.get$current(); + convertedMap[key] = this.call$1(o.$index(0, key)); } return convertedMap; } else if (type$.Iterable_nullable_Object._is(o)) { @@ -19705,11 +15838,11 @@ } else return o; }, - $signature: 9 + $signature: 12 }; A.promiseToFuture_closure.prototype = { call$1(r) { - return this.completer.complete$1(0, this.T._eval$1("0/?")._as(r)); + return this.completer.complete$1(this.T._eval$1("0/?")._as(r)); }, $signature: 7 }; @@ -19723,15 +15856,20 @@ }; A.dartify_convert.prototype = { call$1(o) { - var t1, proto, t2, dartObject, originalKeys, dartKeys, i, jsKey, dartKey, l, $length; + var t1, millisSinceEpoch, proto, t2, dartObject, originalKeys, dartKeys, i, jsKey, dartKey, l, $length; if (A._noDartifyRequired(o)) return o; t1 = this._convertedObjects; o.toString; - if (t1.containsKey$1(0, o)) + if (t1.containsKey$1(o)) return t1.$index(0, o); - if (o instanceof Date) - return A.DateTime$fromMillisecondsSinceEpoch(o.getTime(), true); + if (o instanceof Date) { + millisSinceEpoch = o.getTime(); + if (millisSinceEpoch < -864e13 || millisSinceEpoch > 864e13) + A.throwExpression(A.RangeError$range(millisSinceEpoch, -864e13, 864e13, "millisecondsSinceEpoch", null)); + A.checkNotNullable(true, "isUtc", type$.bool); + return new A.DateTime(millisSinceEpoch, 0, true); + } if (o instanceof RegExp) throw A.wrapException(A.ArgumentError$("structured clone of RegExp", null)); if (typeof Promise != "undefined" && o instanceof Promise) @@ -19744,7 +15882,7 @@ originalKeys = Object.keys(o); dartKeys = []; for (t1 = J.getInterceptor$ax(originalKeys), t2 = t1.get$iterator(originalKeys); t2.moveNext$0();) - dartKeys.push(A.dartify(t2.get$current(t2))); + dartKeys.push(A.dartify(t2.get$current())); for (i = 0; i < t1.get$length(originalKeys); ++i) { jsKey = t1.$index(originalKeys, i); if (!(i < dartKeys.length)) @@ -19766,277 +15904,55 @@ } return o; }, - $signature: 9 + $signature: 12 }; A.NullRejectionException.prototype = { toString$0(_) { - return "Promise was rejected with a value of `" + (this.isUndefined ? "undefined" : "null") + "`."; - } - }; - A._JSRandom.prototype = { - nextInt$1(max) { - if (max <= 0 || max > 4294967296) - throw A.wrapException(A.RangeError$("max must be in range 0 < max \u2264 2^32, was " + max)); - return Math.random() * max >>> 0; - }, - $isRandom: 1 - }; - A.Length.prototype = {$isLength: 1}; - A.LengthList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length; - t1.toString; - t1 = index >>> 0 !== index || index >= t1; - t1.toString; - if (t1) - throw A.wrapException(A.IndexError$withLength(index, this.get$length(receiver), receiver, null, null)); - t1 = receiver.getItem(index); - t1.toString; - return t1; - }, - $indexSet(receiver, index, value) { - type$.Length._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1 = receiver.length; - t1.toString; - if (t1 > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - return this.$index(receiver, index); - }, - $isEfficientLengthIterable: 1, - $isIterable: 1, - $isList: 1 - }; - A.Number.prototype = {$isNumber: 1}; - A.NumberList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length; - t1.toString; - t1 = index >>> 0 !== index || index >= t1; - t1.toString; - if (t1) - throw A.wrapException(A.IndexError$withLength(index, this.get$length(receiver), receiver, null, null)); - t1 = receiver.getItem(index); - t1.toString; - return t1; - }, - $indexSet(receiver, index, value) { - type$.Number._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1 = receiver.length; - t1.toString; - if (t1 > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - return this.$index(receiver, index); - }, - $isEfficientLengthIterable: 1, - $isIterable: 1, - $isList: 1 - }; - A.PointList.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.ScriptElement0.prototype = {$isScriptElement0: 1}; - A.StringList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length; - t1.toString; - t1 = index >>> 0 !== index || index >= t1; - t1.toString; - if (t1) - throw A.wrapException(A.IndexError$withLength(index, this.get$length(receiver), receiver, null, null)); - t1 = receiver.getItem(index); - t1.toString; - return t1; - }, - $indexSet(receiver, index, value) { - A._asString(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1 = receiver.length; - t1.toString; - if (t1 > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - return this.$index(receiver, index); - }, - $isEfficientLengthIterable: 1, - $isIterable: 1, - $isList: 1 - }; - A.SvgElement.prototype = { - createFragment$3$treeSanitizer$validator(receiver, svg, treeSanitizer, validator) { - var t2, fragment, root, - t1 = A._setArrayType([], type$.JSArray_NodeValidator); - B.JSArray_methods.add$1(t1, A._Html5NodeValidator$(null)); - B.JSArray_methods.add$1(t1, A._TemplatingNodeValidator$()); - B.JSArray_methods.add$1(t1, new A._SvgNodeValidator()); - treeSanitizer = new A._ValidatingTreeSanitizer(new A.NodeValidatorBuilder(t1)); - t1 = document; - t2 = t1.body; - t2.toString; - fragment = B.BodyElement_methods.createFragment$2$treeSanitizer(t2, '' + svg + "", treeSanitizer); - t1 = t1.createDocumentFragment(); - t1.toString; - root = new A._ChildNodeListLazy(fragment).get$single(0); - for (; t2 = root.firstChild, t2 != null;) - t1.appendChild(t2).toString; - return t1; - }, - $isSvgElement: 1 - }; - A.Transform.prototype = {$isTransform: 1}; - A.TransformList.prototype = { - get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; - }, - $index(receiver, index) { - var t1 = receiver.length; - t1.toString; - t1 = index >>> 0 !== index || index >= t1; - t1.toString; - if (t1) - throw A.wrapException(A.IndexError$withLength(index, this.get$length(receiver), receiver, null, null)); - t1 = receiver.getItem(index); - t1.toString; - return t1; - }, - $indexSet(receiver, index, value) { - type$.Transform._as(value); - throw A.wrapException(A.UnsupportedError$("Cannot assign element of immutable List.")); - }, - get$first(receiver) { - var t1 = receiver.length; - t1.toString; - if (t1 > 0) { - t1 = receiver[0]; - t1.toString; - return t1; - } - throw A.wrapException(A.StateError$("No elements")); - }, - elementAt$1(receiver, index) { - return this.$index(receiver, index); - }, - $isEfficientLengthIterable: 1, - $isIterable: 1, - $isList: 1 - }; - A._LengthList_JavaScriptObject_ListMixin.prototype = {}; - A._LengthList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._NumberList_JavaScriptObject_ListMixin.prototype = {}; - A._NumberList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._StringList_JavaScriptObject_ListMixin.prototype = {}; - A._StringList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A._TransformList_JavaScriptObject_ListMixin.prototype = {}; - A._TransformList_JavaScriptObject_ListMixin_ImmutableListMixin.prototype = {}; - A.AudioBuffer.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.AudioParamMap.prototype = { - containsKey$1(receiver, key) { - return A.convertNativeToDart_Dictionary(receiver.get(key)) != null; - }, - $index(receiver, key) { - return A.convertNativeToDart_Dictionary(receiver.get(A._asString(key))); - }, - forEach$1(receiver, f) { - var entries, entry, t1; - type$.void_Function_String_dynamic._as(f); - entries = receiver.entries(); - for (; true;) { - entry = entries.next(); - t1 = entry.done; - t1.toString; - if (t1) - return; - t1 = entry.value[0]; - t1.toString; - f.call$2(t1, A.convertNativeToDart_Dictionary(entry.value[1])); - } - }, - get$keys(receiver) { - var keys = A._setArrayType([], type$.JSArray_String); - this.forEach$1(receiver, new A.AudioParamMap_keys_closure(keys)); - return keys; - }, - get$length(receiver) { - var t1 = receiver.size; - t1.toString; - return t1; - }, - get$isEmpty(receiver) { - var t1 = receiver.size; - t1.toString; - return t1 === 0; - }, - $indexSet(receiver, key, value) { - A._asString(key); - throw A.wrapException(A.UnsupportedError$("Not supported")); - }, - $isMap: 1 - }; - A.AudioParamMap_keys_closure.prototype = { - call$2(k, v) { - return B.JSArray_methods.add$1(this.keys, k); - }, - $signature: 5 + return "Promise was rejected with a value of `" + (this.isUndefined ? "undefined" : "null") + "`."; + } }; - A.AudioTrackList.prototype = { - get$length(receiver) { - return receiver.length; + A._JSRandom.prototype = { + nextInt$1(max) { + if (max <= 0 || max > 4294967296) + throw A.wrapException(A.RangeError$(string$.max_mu + max)); + return Math.random() * max >>> 0; } }; - A.BaseAudioContext.prototype = {}; - A.OfflineAudioContext.prototype = { - get$length(receiver) { - return receiver.length; + A._JSSecureRandom.prototype = { + _JSSecureRandom$0() { + var $crypto = self.crypto; + if ($crypto != null) + if ($crypto.getRandomValues != null) + return; + throw A.wrapException(A.UnsupportedError$("No source of cryptographically secure random numbers available.")); + }, + nextInt$1(max) { + var byteCount, t1, start, randomLimit, t2, t3, random, result; + if (max <= 0 || max > 4294967296) + throw A.wrapException(A.RangeError$(string$.max_mu + max)); + if (max > 255) + if (max > 65535) + byteCount = max > 16777215 ? 4 : 3; + else + byteCount = 2; + else + byteCount = 1; + t1 = this._math$_buffer; + t1.$flags & 2 && A.throwUnsupportedOperation(t1, 11); + t1.setUint32(0, 0, false); + start = 4 - byteCount; + randomLimit = A._asInt(Math.pow(256, byteCount)); + for (t2 = max - 1, t3 = (max & t2) >>> 0 === 0; true;) { + crypto.getRandomValues(J.asUint8List$2$x(B.NativeByteData_methods.get$buffer(t1), start, byteCount)); + random = t1.getUint32(0, false); + if (t3) + return (random & t2) >>> 0; + result = random % max; + if (random - result + max < randomLimit) + return result; + } } }; - A._AudioParamMap_JavaScriptObject_MapMixin.prototype = {}; A.AsyncMemoizer.prototype = {}; A.DelegatingStreamSink.prototype = { add$1(_, data) { @@ -20045,7 +15961,7 @@ $isStreamSink: 1 }; A.ErrorResult.prototype = { - complete$1(_, completer) { + complete$1(completer) { completer.completeError$2(this.error, this.stackTrace); }, get$hashCode(_) { @@ -20059,8 +15975,8 @@ $isResult: 1 }; A.ValueResult.prototype = { - complete$1(_, completer) { - this.$ti._eval$1("Completer<1>")._as(completer).complete$1(0, this.value); + complete$1(completer) { + this.$ti._eval$1("Completer<1>")._as(completer).complete$1(this.value); }, get$hashCode(_) { return (J.get$hashCode$(this.value) ^ 842997089) >>> 0; @@ -20090,13 +16006,13 @@ t4 = t5[t4]; if (t4 == null) t4 = t3._as(t4); - if (J.update$2$z(t4, t2, _this._isDone)) + if (t4.update$2(t2, _this._isDone)) t1.removeFirst$0(); else return; } if (!_this._isDone) - _this._stream_queue$_subscription.pause$0(0); + _this._stream_queue$_subscription.pause$0(); }, _ensureListening$0() { var t1, _this = this; @@ -20106,14 +16022,14 @@ if (t1 == null) _this.set$_stream_queue$_subscription(_this._stream_queue$_source.listen$3$onDone$onError(new A.StreamQueue__ensureListening_closure(_this), new A.StreamQueue__ensureListening_closure0(_this), new A.StreamQueue__ensureListening_closure1(_this))); else - t1.resume$0(0); + t1.resume$0(); }, _addResult$1(result) { var t1, _this = this; _this.$ti._eval$1("Result<1>")._as(result); ++_this._eventsReceived; t1 = _this._eventQueue; - t1._queue_list$_add$1(0, t1.$ti._eval$1("QueueList.E")._as(result)); + t1._queue_list$_add$1(t1.$ti._eval$1("QueueList.E")._as(result)); _this._updateRequests$0(); }, _addRequest$1(request) { @@ -20121,11 +16037,11 @@ _this.$ti._eval$1("_EventRequest<1>")._as(request); t1 = _this._requestQueue; if (t1._head === t1._tail) { - if (request.update$2(0, _this._eventQueue, _this._isDone)) + if (request.update$2(_this._eventQueue, _this._isDone)) return; _this._ensureListening$0(); } - t1._collection$_add$1(0, t1.$ti._precomputed1._as(request)); + t1._collection$_add$1(t1.$ti._precomputed1._as(request)); }, set$_stream_queue$_subscription(_subscription) { this._stream_queue$_subscription = this.$ti._eval$1("StreamSubscription<1>?")._as(_subscription); @@ -20147,7 +16063,7 @@ type$.StackTrace._as(stackTrace); this.$this._addResult$1(new A.ErrorResult(error, stackTrace)); }, - $signature: 8 + $signature: 5 }; A.StreamQueue__ensureListening_closure0.prototype = { call$0() { @@ -20159,7 +16075,7 @@ $signature: 0 }; A._NextRequest.prototype = { - update$2(_, events, isDone) { + update$2(events, isDone) { var t1, result; this.$ti._eval$1("QueueList>")._as(events); if (!events.get$isEmpty(events)) { @@ -20171,7 +16087,7 @@ result = events.$ti._eval$1("QueueList.E")._as(result); J.$indexSet$ax(events._queue_list$_table, events._queue_list$_head, null); events._queue_list$_head = (events._queue_list$_head + 1 & J.get$length$asx(events._queue_list$_table) - 1) >>> 0; - J.complete$1$z(result, this._stream_queue$_completer); + result.complete$1(this._stream_queue$_completer); return true; } if (isDone) { @@ -20183,14 +16099,14 @@ $is_EventRequest: 1 }; A._HasNextRequest.prototype = { - update$2(_, events, isDone) { + update$2(events, isDone) { this.$ti._eval$1("QueueList>")._as(events); if (!events.get$isEmpty(events)) { - this._stream_queue$_completer.complete$1(0, true); + this._stream_queue$_completer.complete$1(true); return true; } if (isDone) { - this._stream_queue$_completer.complete$1(0, false); + this._stream_queue$_completer.complete$1(false); return true; } return false; @@ -20201,7 +16117,7 @@ call$2(h, i) { return A._combine(A._asInt(h), J.get$hashCode$(i)); }, - $signature: 44 + $signature: 31 }; A.BuiltList.prototype = { toBuilder$0() { @@ -20308,7 +16224,7 @@ t1.toString; return t1; }, - replace$1(_, iterable) { + replace$1(iterable) { var _this = this, t1 = _this.$ti, t2 = t1._eval$1("_BuiltList<1>"), @@ -20387,7 +16303,7 @@ return false; if (other.get$hashCode(0) !== _this.get$hashCode(0)) return false; - for (t3 = _this.get$keys(0), t4 = t3._map, t3 = A.LinkedHashMapKeyIterator$(t4, t4._modifications, t3.$ti._precomputed1), t4 = other._emptyList, t5 = _this._emptyList; t3.moveNext$0();) { + for (t3 = _this.get$keys(), t4 = t3.__js_helper$_map, t3 = A.LinkedHashMapKeyIterator$(t4, t4._modifications, t3.$ti._precomputed1), t4 = other._emptyList, t5 = _this._emptyList; t3.moveNext$0();) { key = t3.__js_helper$_current; result = t1.$index(0, key); t6 = result == null ? t4 : result; @@ -20400,7 +16316,7 @@ toString$0(_) { return A.MapBase_mapToString(this._list_multimap$_map); }, - get$keys(_) { + get$keys() { var t1, _this = this; if (_this._list_multimap$_keys == null) { t1 = _this._list_multimap$_map; @@ -20421,7 +16337,7 @@ call$1(k) { return this.multimap.$index(0, k); }, - $signature: 1 + $signature: 4 }; A.BuiltListMultimap_hashCode_closure.prototype = { call$1(key) { @@ -20439,8 +16355,8 @@ A._BuiltListMultimap.prototype = { _BuiltListMultimap$copy$2(keys, lookup, $K, $V) { var t1, t2, t3, key; - for (t1 = J.get$iterator$ax(keys), t2 = this._list_multimap$_map, t3 = type$.Iterable_dynamic; t1.moveNext$0();) { - key = t1.get$current(t1); + for (t1 = keys.get$iterator(keys), t2 = this._list_multimap$_map, t3 = type$.Iterable_dynamic; t1.moveNext$0();) { + key = t1.get$current(); if ($K._is(key)) t2.$indexSet(0, key, A.BuiltList_BuiltList$from(t3._as(lookup.call$1(key)), $V)); else @@ -20482,15 +16398,14 @@ t1 = _this.__ListMultimapBuilder__builtMap_A; t1 === $ && A.throwLateFieldNI(_s9_); t2 = _this.$ti; - t3 = t2._rest[1]; - _this.set$_list_multimap$_builtMapOwner(new A._BuiltListMultimap(t1, A.BuiltList_BuiltList$from(B.List_empty, t3), t2._eval$1("@<1>")._bind$1(t3)._eval$1("_BuiltListMultimap<1,2>"))); + _this.set$_list_multimap$_builtMapOwner(new A._BuiltListMultimap(t1, A.BuiltList_BuiltList$from(B.List_empty, t2._rest[1]), t2._eval$1("_BuiltListMultimap<1,2>"))); } t1 = _this._list_multimap$_builtMapOwner; t1.toString; return t1; }, - replace$1(_, multimap) { - this._list_multimap$_setWithCopyAndCheck$2(multimap.get$keys(multimap), new A.ListMultimapBuilder_replace_closure(multimap)); + replace$1(multimap) { + this._list_multimap$_setWithCopyAndCheck$2(multimap.get$keys(), new A.ListMultimapBuilder_replace_closure(multimap)); }, _list_multimap$_getValuesBuilder$1(key) { var t2, result, builtValues, _this = this, @@ -20517,11 +16432,11 @@ t4 = t1._eval$1("Map<1,BuiltList<2>>"); _this.set$__ListMultimapBuilder__builtMap_A(t4._as(A.LinkedHashMap_LinkedHashMap$_empty(t2, t3))); _this.set$__ListMultimapBuilder__builderMap_A(t1._eval$1("Map<1,ListBuilder<2>>")._as(A.LinkedHashMap_LinkedHashMap$_empty(t2, t1._eval$1("ListBuilder<2>")))); - for (t5 = J.get$iterator$ax(keys), t6 = type$.Iterable_dynamic, t1 = t1._rest[1]; t5.moveNext$0();) { - key = t5.get$current(t5); + for (t5 = keys.get$iterator(keys), t6 = type$.Iterable_dynamic, t1 = t1._rest[1]; t5.moveNext$0();) { + key = t5.get$current(); if (t2._is(key)) for (t7 = J.get$iterator$ax(t6._as(lookup.call$1(key))); t7.moveNext$0();) { - value = t7.get$current(t7); + value = t7.get$current(); if (t1._is(value)) { t2._as(key); t1._as(value); @@ -20590,13 +16505,13 @@ call$1(k) { return this.multimap.$index(0, k); }, - $signature: 1 + $signature: 4 }; A.BuiltMap.prototype = { toBuilder$0() { var t1 = this.$ti; t1._eval$1("_BuiltMap<1,2>")._as(this); - return new A.MapBuilder(this._mapFactory, this._map$_map, this, t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("MapBuilder<1,2>")); + return new A.MapBuilder(this._mapFactory, this._map$_map, this, t1._eval$1("MapBuilder<1,2>")); }, get$hashCode(_) { var t2, _this = this, @@ -20626,7 +16541,7 @@ return false; if (other.get$hashCode(0) !== _this.get$hashCode(0)) return false; - for (t3 = _this.get$keys(0), t4 = t3._map, t3 = A.LinkedHashMapKeyIterator$(t4, t4._modifications, t3.$ti._precomputed1); t3.moveNext$0();) { + for (t3 = _this.get$keys(), t4 = t3.__js_helper$_map, t3 = A.LinkedHashMapKeyIterator$(t4, t4._modifications, t3.$ti._precomputed1); t3.moveNext$0();) { key = t3.__js_helper$_current; if (!J.$eq$(t1.$index(0, key), t2.$index(0, key))) return false; @@ -20636,7 +16551,7 @@ toString$0(_) { return A.MapBase_mapToString(this._map$_map); }, - get$keys(_) { + get$keys() { var t1, _this = this; if (_this._map$_keys == null) { t1 = _this._map$_map; @@ -20650,9 +16565,8 @@ return this._map$_map.__js_helper$_length; }, map$1(_, f) { - var t1 = type$.dynamic, - t2 = this._map$_map; - return new A._BuiltMap(null, t2.map$2$1(t2, this.$ti._eval$1("MapEntry<@,@>(1,2)")._as(f), t1, t1), type$._BuiltMap_dynamic_dynamic); + var t1 = type$.dynamic; + return new A._BuiltMap(null, this._map$_map.map$2$1(0, this.$ti._eval$1("MapEntry<@,@>(1,2)")._as(f), t1, t1), type$._BuiltMap_dynamic_dynamic); }, set$_map$_keys(_keys) { this._map$_keys = this.$ti._eval$1("Iterable<1>?")._as(_keys); @@ -20662,7 +16576,7 @@ call$1(k) { return this.map.$index(0, k); }, - $signature: 1 + $signature: 4 }; A.BuiltMap_hashCode_closure.prototype = { call$1(key) { @@ -20680,8 +16594,8 @@ A._BuiltMap.prototype = { _BuiltMap$copyAndCheckTypes$2(keys, lookup, $K, $V) { var t1, t2, key, value; - for (t1 = J.get$iterator$ax(keys), t2 = this._map$_map; t1.moveNext$0();) { - key = t1.get$current(t1); + for (t1 = keys.get$iterator(keys), t2 = this._map$_map; t1.moveNext$0();) { + key = t1.get$current(); if ($K._is(key)) { value = lookup.call$1(key); if ($V._is(value)) @@ -20695,18 +16609,17 @@ }; A.MapBuilder.prototype = { build$0() { - var t1, t2, _this = this; + var t1, _this = this; if (_this._mapOwner == null) { t1 = _this.__MapBuilder__map_A; t1 === $ && A.throwLateFieldNI("_map"); - t2 = _this.$ti; - _this.set$_mapOwner(new A._BuiltMap(_this._mapFactory, t1, t2._eval$1("@<1>")._bind$1(t2._rest[1])._eval$1("_BuiltMap<1,2>"))); + _this.set$_mapOwner(new A._BuiltMap(_this._mapFactory, t1, _this.$ti._eval$1("_BuiltMap<1,2>"))); } t1 = _this._mapOwner; t1.toString; return t1; }, - replace$1(_, map) { + replace$1(map) { var _this = this, replacement = _this._createMap$0(); map.forEach$1(0, new A.MapBuilder_replace_closure(_this, replacement)); @@ -20788,7 +16701,7 @@ var t1 = this.$this.$ti; this.replacement.$indexSet(0, t1._precomputed1._as(key), t1._rest[1]._as(value)); }, - $signature: 13 + $signature: 19 }; A.BuiltSet.prototype = { get$hashCode(_) { @@ -20895,11 +16808,11 @@ t1.toString; return t1; }, - replace$1(_, iterable) { + replace$1(iterable) { var t1, t2, t3, element, _this = this, set = _this._createSet$0(); for (t1 = J.get$iterator$ax(iterable), t2 = _this.$ti, t3 = t2._precomputed1; t1.moveNext$0();) { - element = t1.get$current(t1); + element = t1.get$current(); if (t3._is(element)) set.add$1(0, element); else @@ -20994,7 +16907,7 @@ return false; if (other.get$hashCode(0) !== _this.get$hashCode(0)) return false; - for (t3 = _this.get$keys(0), t4 = t3._map, t3 = A.LinkedHashMapKeyIterator$(t4, t4._modifications, t3.$ti._precomputed1), t4 = other._emptySet, t5 = _this._emptySet; t3.moveNext$0();) { + for (t3 = _this.get$keys(), t4 = t3.__js_helper$_map, t3 = A.LinkedHashMapKeyIterator$(t4, t4._modifications, t3.$ti._precomputed1), t4 = other._emptySet, t5 = _this._emptySet; t3.moveNext$0();) { key = t3.__js_helper$_current; result = t1.$index(0, key); t6 = result == null ? t4 : result; @@ -21007,7 +16920,7 @@ toString$0(_) { return A.MapBase_mapToString(this._set_multimap$_map); }, - get$keys(_) { + get$keys() { var t1, _this = this; if (_this._set_multimap$_keys == null) { t1 = _this._set_multimap$_map; @@ -21069,15 +16982,14 @@ t1 = _this.__SetMultimapBuilder__builtMap_A; t1 === $ && A.throwLateFieldNI(_s9_); t2 = _this.$ti; - t3 = t2._rest[1]; - _this.set$_builtMapOwner(new A._BuiltSetMultimap(t1, A.BuiltSet_BuiltSet$from(B.List_empty, t3), t2._eval$1("@<1>")._bind$1(t3)._eval$1("_BuiltSetMultimap<1,2>"))); + _this.set$_builtMapOwner(new A._BuiltSetMultimap(t1, A.BuiltSet_BuiltSet$from(B.List_empty, t2._rest[1]), t2._eval$1("_BuiltSetMultimap<1,2>"))); } t1 = _this._builtMapOwner; t1.toString; return t1; }, - replace$1(_, multimap) { - this._setWithCopyAndCheck$2(multimap.get$keys(multimap), new A.SetMultimapBuilder_replace_closure(multimap)); + replace$1(multimap) { + this._setWithCopyAndCheck$2(multimap.get$keys(), new A.SetMultimapBuilder_replace_closure(multimap)); }, _getValuesBuilder$1(key) { var t2, result, builtValues, _this = this, @@ -21110,11 +17022,11 @@ t4 = t1._eval$1("Map<1,BuiltSet<2>>"); _this.set$__SetMultimapBuilder__builtMap_A(t4._as(A.LinkedHashMap_LinkedHashMap$_empty(t2, t3))); _this.set$__SetMultimapBuilder__builderMap_A(t1._eval$1("Map<1,SetBuilder<2>>")._as(A.LinkedHashMap_LinkedHashMap$_empty(t2, t1._eval$1("SetBuilder<2>")))); - for (t5 = J.get$iterator$ax(keys), t6 = type$.Iterable_dynamic, t1 = t1._rest[1]; t5.moveNext$0();) { - key = t5.get$current(t5); + for (t5 = keys.get$iterator(keys), t6 = type$.Iterable_dynamic, t1 = t1._rest[1]; t5.moveNext$0();) { + key = t5.get$current(); if (t2._is(key)) for (t7 = J.get$iterator$ax(t6._as(lookup.call$1(key))); t7.moveNext$0();) { - value = t7.get$current(t7); + value = t7.get$current(); if (t1._is(value)) { t2._as(key); t1._as(value); @@ -21174,7 +17086,7 @@ call$1(k) { return this.multimap.$index(0, k); }, - $signature: 1 + $signature: 4 }; A.EnumClass.prototype = { toString$0(_) { @@ -21190,7 +17102,7 @@ $._indentingBuiltValueToStringHelperIndent = $._indentingBuiltValueToStringHelperIndent + 2; return new A.IndentingBuiltValueToStringHelper(t1); }, - $signature: 45 + $signature: 32 }; A.IndentingBuiltValueToStringHelper.prototype = { add$2(_, field, value) { @@ -21234,7 +17146,7 @@ }; A.JsonObject.prototype = { toString$0(_) { - return J.toString$0$(this.get$value(this)); + return J.toString$0$(this.get$value()); } }; A.BoolJsonObject.prototype = { @@ -21250,7 +17162,7 @@ get$hashCode(_) { return B.JSBool_methods.get$hashCode(this.value); }, - get$value(receiver) { + get$value() { return this.value; } }; @@ -21265,9 +17177,9 @@ return B.C_DeepCollectionEquality.equals$2(this.value, other.value); }, get$hashCode(_) { - return B.C_DeepCollectionEquality.hash$1(0, this.value); + return B.C_DeepCollectionEquality.hash$1(this.value); }, - get$value(receiver) { + get$value() { return this.value; } }; @@ -21282,9 +17194,9 @@ return B.C_DeepCollectionEquality.equals$2(this.value, other.value); }, get$hashCode(_) { - return B.C_DeepCollectionEquality.hash$1(0, this.value); + return B.C_DeepCollectionEquality.hash$1(this.value); }, - get$value(receiver) { + get$value() { return this.value; } }; @@ -21301,7 +17213,7 @@ get$hashCode(_) { return B.JSNumber_methods.get$hashCode(this.value); }, - get$value(receiver) { + get$value() { return this.value; } }; @@ -21318,7 +17230,7 @@ get$hashCode(_) { return B.JSString_methods.get$hashCode(this.value); }, - get$value(receiver) { + get$value() { return this.value; } }; @@ -21326,34 +17238,34 @@ call$0() { return A.ListBuilder_ListBuilder(B.List_empty, type$.Object); }, - $signature: 87 + $signature: 33 }; A.Serializers_Serializers_closure0.prototype = { call$0() { var t1 = type$.Object; return A.ListMultimapBuilder_ListMultimapBuilder(t1, t1); }, - $signature: 47 + $signature: 34 }; A.Serializers_Serializers_closure1.prototype = { call$0() { var t1 = type$.Object; return A.MapBuilder_MapBuilder(t1, t1); }, - $signature: 48 + $signature: 35 }; A.Serializers_Serializers_closure2.prototype = { call$0() { return A.SetBuilder_SetBuilder(type$.Object); }, - $signature: 49 + $signature: 36 }; A.Serializers_Serializers_closure3.prototype = { call$0() { var t1 = type$.Object; return A.SetMultimapBuilder_SetMultimapBuilder(t1, t1); }, - $signature: 50 + $signature: 37 }; A.FullType.prototype = { $eq(_, other) { @@ -21428,7 +17340,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -21450,7 +17362,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -21461,12 +17373,12 @@ serialize$2$specifiedType(object, specifiedType) { var t1, t2, t3, t4, transformedObject, t5, result; for (t1 = this.serializerPlugins._list, t2 = A._arrayInstanceType(t1), t3 = t2._eval$1("ArrayIterator<1>"), t4 = new J.ArrayIterator(t1, t1.length, t3), t2 = t2._precomputed1, transformedObject = object; t4.moveNext$0();) { - t5 = t4.__interceptors$_current; + t5 = t4._current; transformedObject = (t5 == null ? t2._as(t5) : t5).beforeSerialize$2(transformedObject, specifiedType); } result = this._serialize$2(transformedObject, specifiedType); for (t1 = new J.ArrayIterator(t1, t1.length, t3); t1.moveNext$0();) { - t3 = t1.__interceptors$_current; + t3 = t1._current; result = (t3 == null ? t2._as(t3) : t3).afterSerialize$2(result, specifiedType); } return result; @@ -21506,12 +17418,12 @@ deserialize$2$specifiedType(object, specifiedType) { var t1, t2, t3, t4, transformedObject, t5, result; for (t1 = this.serializerPlugins._list, t2 = A._arrayInstanceType(t1), t3 = t2._eval$1("ArrayIterator<1>"), t4 = new J.ArrayIterator(t1, t1.length, t3), t2 = t2._precomputed1, transformedObject = object; t4.moveNext$0();) { - t5 = t4.__interceptors$_current; + t5 = t4._current; transformedObject = (t5 == null ? t2._as(t5) : t5).beforeDeserialize$2(transformedObject, specifiedType); } result = this._deserialize$3(object, transformedObject, specifiedType); for (t1 = new J.ArrayIterator(t1, t1.length, t3); t1.moveNext$0();) { - t3 = t1.__interceptors$_current; + t3 = t1._current; result = (t3 == null ? t2._as(t3) : t3).afterDeserialize$2(result, specifiedType); } return result; @@ -21615,8 +17527,8 @@ if (!type$.StructuredSerializer_dynamic._is(serializer) && !type$.PrimitiveSerializer_dynamic._is(serializer)) throw A.wrapException(A.ArgumentError$(string$.serial, null)); this._wireNameToSerializer.$indexSet(0, serializer.get$wireName(), serializer); - for (t1 = J.get$iterator$ax(serializer.get$types(serializer)), t2 = this._typeToSerializer, t3 = t2.$ti, t4 = t3._precomputed1, t3 = t3._rest[1], t5 = this._typeNameToSerializer; t1.moveNext$0();) { - t6 = t1.get$current(t1); + for (t1 = J.get$iterator$ax(serializer.get$types()), t2 = this._typeToSerializer, t3 = t2.$ti, t4 = t3._precomputed1, t3 = t3._rest[1], t5 = this._typeNameToSerializer; t1.moveNext$0();) { + t6 = t1.get$current(); t4._as(t6); t3._as(serializer); t2._checkKey$1(t6); @@ -21651,7 +17563,7 @@ var t1, t2, t3, keyType, valueType, result, key, result0, t4, t5, t6, t7; type$.BuiltListMultimap_dynamic_dynamic._as(builtListMultimap); if (!(specifiedType.root == null || specifiedType.parameters.length === 0)) - if (!serializers.builderFactories._map$_map.containsKey$1(0, specifiedType)) + if (!serializers.builderFactories._map$_map.containsKey$1(specifiedType)) serializers._throwMissingBuilderFactory$1(specifiedType); t1 = specifiedType.parameters; t2 = t1.length; @@ -21671,7 +17583,7 @@ valueType = t1[1]; } result = []; - for (t1 = builtListMultimap.get$keys(0), t2 = t1._map, t1 = A.LinkedHashMapKeyIterator$(t2, t2._modifications, t1.$ti._precomputed1), t2 = builtListMultimap._list_multimap$_map, t3 = builtListMultimap._emptyList; t1.moveNext$0();) { + for (t1 = builtListMultimap.get$keys(), t2 = t1.__js_helper$_map, t1 = A.LinkedHashMapKeyIterator$(t2, t2._modifications, t1.$ti._precomputed1), t2 = builtListMultimap._list_multimap$_map, t3 = builtListMultimap._emptyList; t1.moveNext$0();) { key = t1.__js_helper$_current; result.push(serializers.serialize$2$specifiedType(key, keyType)); result0 = t2.$index(0, key); @@ -21720,7 +17632,7 @@ key = serializers.deserialize$2$specifiedType(t2.elementAt$1(serialized, i), keyType); values = J.map$1$1$ax(t1._as(t2.elementAt$1(serialized, i + 1)), new A.BuiltListMultimapSerializer_deserialize_closure(serializers, valueType), t7); for (t8 = values.get$iterator(values); t8.moveNext$0();) { - value = t8.get$current(t8); + value = t8.get$current(); t4._as(key); t5._as(value); if (result._list_multimap$_builtMapOwner != null) { @@ -21756,7 +17668,7 @@ }, $isSerializer: 1, $isStructuredSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -21767,20 +17679,20 @@ call$1(value) { return this.serializers.serialize$2$specifiedType(value, this.valueType); }, - $signature: 2 + $signature: 3 }; A.BuiltListMultimapSerializer_deserialize_closure.prototype = { call$1(value) { return this.serializers.deserialize$2$specifiedType(value, this.valueType); }, - $signature: 9 + $signature: 12 }; A.BuiltListSerializer.prototype = { serialize$3$specifiedType(serializers, builtList, specifiedType) { var t1, t2, elementType; type$.BuiltList_dynamic._as(builtList); if (!(specifiedType.root == null || specifiedType.parameters.length === 0)) - if (!serializers.builderFactories._map$_map.containsKey$1(0, specifiedType)) + if (!serializers.builderFactories._map$_map.containsKey$1(specifiedType)) serializers._throwMissingBuilderFactory$1(specifiedType); t1 = specifiedType.parameters; t2 = t1.length; @@ -21812,7 +17724,7 @@ elementType = t1[0]; } result = isUnderspecified ? A.ListBuilder_ListBuilder(B.List_empty, type$.Object) : type$.ListBuilder_dynamic._as(serializers.newBuilder$1(specifiedType)); - result.replace$1(0, J.map$1$1$ax(serialized, new A.BuiltListSerializer_deserialize_closure(serializers, elementType), type$.dynamic)); + result.replace$1(J.map$1$1$ax(serialized, new A.BuiltListSerializer_deserialize_closure(serializers, elementType), type$.dynamic)); return result.build$0(); }, deserialize$2(serializers, serialized) { @@ -21820,7 +17732,7 @@ }, $isSerializer: 1, $isStructuredSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -21831,20 +17743,20 @@ call$1(item) { return this.serializers.serialize$2$specifiedType(item, this.elementType); }, - $signature: 2 + $signature: 3 }; A.BuiltListSerializer_deserialize_closure.prototype = { call$1(item) { return this.serializers.deserialize$2$specifiedType(item, this.elementType); }, - $signature: 2 + $signature: 3 }; A.BuiltMapSerializer.prototype = { serialize$3$specifiedType(serializers, builtMap, specifiedType) { var t1, t2, t3, keyType, valueType, result, key; type$.BuiltMap_dynamic_dynamic._as(builtMap); if (!(specifiedType.root == null || specifiedType.parameters.length === 0)) - if (!serializers.builderFactories._map$_map.containsKey$1(0, specifiedType)) + if (!serializers.builderFactories._map$_map.containsKey$1(specifiedType)) serializers._throwMissingBuilderFactory$1(specifiedType); t1 = specifiedType.parameters; t2 = t1.length; @@ -21864,7 +17776,7 @@ valueType = t1[1]; } result = []; - for (t1 = builtMap.get$keys(0), t2 = t1._map, t1 = A.LinkedHashMapKeyIterator$(t2, t2._modifications, t1.$ti._precomputed1), t2 = builtMap._map$_map; t1.moveNext$0();) { + for (t1 = builtMap.get$keys(), t2 = t1.__js_helper$_map, t1 = A.LinkedHashMapKeyIterator$(t2, t2._modifications, t1.$ti._precomputed1), t2 = builtMap._map$_map; t1.moveNext$0();) { key = t1.__js_helper$_current; result.push(serializers.serialize$2$specifiedType(key, keyType)); result.push(serializers.serialize$2$specifiedType(t2.$index(0, key), valueType)); @@ -21919,7 +17831,7 @@ }, $isSerializer: 1, $isStructuredSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -21931,7 +17843,7 @@ var t1, t2, t3, keyType, valueType, result, key, result0, t4, t5, t6, t7; type$.BuiltSetMultimap_dynamic_dynamic._as(builtSetMultimap); if (!(specifiedType.root == null || specifiedType.parameters.length === 0)) - if (!serializers.builderFactories._map$_map.containsKey$1(0, specifiedType)) + if (!serializers.builderFactories._map$_map.containsKey$1(specifiedType)) serializers._throwMissingBuilderFactory$1(specifiedType); t1 = specifiedType.parameters; t2 = t1.length; @@ -21951,7 +17863,7 @@ valueType = t1[1]; } result = []; - for (t1 = builtSetMultimap.get$keys(0), t2 = t1._map, t1 = A.LinkedHashMapKeyIterator$(t2, t2._modifications, t1.$ti._precomputed1), t2 = builtSetMultimap._set_multimap$_map, t3 = builtSetMultimap._emptySet; t1.moveNext$0();) { + for (t1 = builtSetMultimap.get$keys(), t2 = t1.__js_helper$_map, t1 = A.LinkedHashMapKeyIterator$(t2, t2._modifications, t1.$ti._precomputed1), t2 = builtSetMultimap._set_multimap$_map, t3 = builtSetMultimap._emptySet; t1.moveNext$0();) { key = t1.__js_helper$_current; result.push(serializers.serialize$2$specifiedType(key, keyType)); result0 = t2.$index(0, key); @@ -21999,7 +17911,7 @@ for (t3 = result.$ti, t4 = t3._precomputed1, t5 = t3._rest[1], t6 = t3._eval$1("BuiltSet<2>"), t3 = t3._eval$1("Map<1,BuiltSet<2>>"), i = 0; i !== t2.get$length(serialized); i += 2) { key = serializers.deserialize$2$specifiedType(t2.elementAt$1(serialized, i), keyType); for (t7 = J.get$iterator$ax(t1._as(J.map$1$ax(t2.elementAt$1(serialized, i + 1), new A.BuiltSetMultimapSerializer_deserialize_closure(serializers, valueType)))); t7.moveNext$0();) { - value = t7.get$current(t7); + value = t7.get$current(); t4._as(key); t5._as(value); if (result._builtMapOwner != null) { @@ -22026,7 +17938,7 @@ }, $isSerializer: 1, $isStructuredSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22037,20 +17949,20 @@ call$1(value) { return this.serializers.serialize$2$specifiedType(value, this.valueType); }, - $signature: 2 + $signature: 3 }; A.BuiltSetMultimapSerializer_deserialize_closure.prototype = { call$1(value) { return this.serializers.deserialize$2$specifiedType(value, this.valueType); }, - $signature: 2 + $signature: 3 }; A.BuiltSetSerializer.prototype = { serialize$3$specifiedType(serializers, builtSet, specifiedType) { var t1, t2, elementType; type$.BuiltSet_dynamic._as(builtSet); if (!(specifiedType.root == null || specifiedType.parameters.length === 0)) - if (!serializers.builderFactories._map$_map.containsKey$1(0, specifiedType)) + if (!serializers.builderFactories._map$_map.containsKey$1(specifiedType)) serializers._throwMissingBuilderFactory$1(specifiedType); t1 = specifiedType.parameters; t2 = t1.length; @@ -22082,7 +17994,7 @@ elementType = t1[0]; } result = isUnderspecified ? A.SetBuilder_SetBuilder(type$.Object) : type$.SetBuilder_dynamic._as(serializers.newBuilder$1(specifiedType)); - result.replace$1(0, J.map$1$1$ax(serialized, new A.BuiltSetSerializer_deserialize_closure(serializers, elementType), type$.dynamic)); + result.replace$1(J.map$1$1$ax(serialized, new A.BuiltSetSerializer_deserialize_closure(serializers, elementType), type$.dynamic)); return result.build$0(); }, deserialize$2(serializers, serialized) { @@ -22090,7 +18002,7 @@ }, $isSerializer: 1, $isStructuredSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22101,37 +18013,42 @@ call$1(item) { return this.serializers.serialize$2$specifiedType(item, this.elementType); }, - $signature: 2 + $signature: 3 }; A.BuiltSetSerializer_deserialize_closure.prototype = { call$1(item) { return this.serializers.deserialize$2$specifiedType(item, this.elementType); }, - $signature: 2 + $signature: 3 }; A.DateTimeSerializer.prototype = { serialize$3$specifiedType(serializers, dateTime, specifiedType) { type$.DateTime._as(dateTime); if (!dateTime.isUtc) throw A.wrapException(A.ArgumentError$value(dateTime, "dateTime", "Must be in utc for serialization.")); - return 1000 * dateTime._value; + return 1000 * dateTime._value + dateTime._microsecond; }, serialize$2(serializers, dateTime) { return this.serialize$3$specifiedType(serializers, dateTime, B.FullType_null_List_empty_false); }, deserialize$3$specifiedType(serializers, serialized, specifiedType) { - var t1 = B.JSNumber_methods.round$0(A._asInt(serialized) / 1000); - if (Math.abs(t1) > 864e13) - A.throwExpression(A.ArgumentError$("DateTime is outside valid range: " + t1, null)); + var t1, t2; + A._asInt(serialized); + t1 = B.JSInt_methods.$mod(serialized, 1000); + t2 = B.JSInt_methods._tdivFast$1(serialized - t1, 1000); + if (t2 < -864e13 || t2 > 864e13) + A.throwExpression(A.RangeError$range(t2, -864e13, 864e13, "millisecondsSinceEpoch", null)); + if (t2 === 864e13 && t1 !== 0) + A.throwExpression(A.ArgumentError$value(t1, "microsecond", "Time including microseconds is outside valid range")); A.checkNotNullable(true, "isUtc", type$.bool); - return new A.DateTime(t1, true); + return new A.DateTime(t2, t1, true); }, deserialize$2(serializers, serialized) { return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false); }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22167,7 +18084,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22189,7 +18106,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22212,7 +18129,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22236,7 +18153,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22258,7 +18175,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22267,8 +18184,7 @@ }; A.JsonObjectSerializer.prototype = { serialize$3$specifiedType(serializers, jsonObject, specifiedType) { - type$.JsonObject._as(jsonObject); - return jsonObject.get$value(jsonObject); + return type$.JsonObject._as(jsonObject).get$value(); }, serialize$2(serializers, jsonObject) { return this.serialize$3$specifiedType(serializers, jsonObject, B.FullType_null_List_empty_false); @@ -22281,7 +18197,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22304,7 +18220,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22340,7 +18256,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22362,7 +18278,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22384,7 +18300,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22405,7 +18321,7 @@ deserialize$2(serializers, serialized) { return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false); }, - get$types(_) { + get$types() { return A.BuiltList_BuiltList$from([B.Type_Uint8List_CSc], type$.Type); }, $isSerializer: 1, @@ -22429,7 +18345,7 @@ }, $isSerializer: 1, $isPrimitiveSerializer: 1, - get$types(receiver) { + get$types() { return this.types; }, get$wireName() { @@ -22453,15 +18369,15 @@ return false; if (!hasNext) return true; - if (!t1.equals$2(it1.get$current(it1), it2.get$current(it2))) + if (!t1.equals$2(it1.get$current(), it2.get$current())) return false; } }, - hash$1(_, elements) { + hash$1(elements) { var t1, t2, hash; this.$ti._eval$1("Iterable<1>?")._as(elements); for (t1 = J.get$iterator$ax(elements), t2 = this._elementEquality, hash = 0; t1.moveNext$0();) { - hash = hash + t2.hash$1(0, t1.get$current(t1)) & 2147483647; + hash = hash + t2.hash$1(t1.get$current()) & 2147483647; hash = hash + (hash << 10 >>> 0) & 2147483647; hash ^= hash >>> 6; } @@ -22489,11 +18405,11 @@ return false; return true; }, - hash$1(_, list) { + hash$1(list) { var t1, t2, hash, i; this.$ti._eval$1("List<1>?")._as(list); for (t1 = J.getInterceptor$asx(list), t2 = this._elementEquality, hash = 0, i = 0; i < t1.get$length(list); ++i) { - hash = hash + t2.hash$1(0, t1.$index(list, i)) & 2147483647; + hash = hash + t2.hash$1(t1.$index(list, i)) & 2147483647; hash = hash + (hash << 10 >>> 0) & 2147483647; hash ^= hash >>> 6; } @@ -22513,15 +18429,15 @@ if (elements1 === elements2) return true; t2 = this._elementEquality; - counts = A.HashMap_HashMap(t1._eval$1("bool(_UnorderedEquality.E,_UnorderedEquality.E)")._as(t2.get$equals()), t1._eval$1("int(_UnorderedEquality.E)")._as(t2.get$hash(t2)), t2.get$isValidKey(), t1._eval$1("_UnorderedEquality.E"), type$.int); + counts = A.HashMap_HashMap(t1._eval$1("bool(_UnorderedEquality.E,_UnorderedEquality.E)")._as(t2.get$equals()), t1._eval$1("int(_UnorderedEquality.E)")._as(t2.get$hash()), t2.get$isValidKey(), t1._eval$1("_UnorderedEquality.E"), type$.int); for (t1 = J.get$iterator$ax(elements1), $length = 0; t1.moveNext$0();) { - e = t1.get$current(t1); + e = t1.get$current(); count = counts.$index(0, e); counts.$indexSet(0, e, (count == null ? 0 : count) + 1); ++$length; } for (t1 = J.get$iterator$ax(elements2); t1.moveNext$0();) { - e = t1.get$current(t1); + e = t1.get$current(); count = counts.$index(0, e); if (count == null || count === 0) return false; @@ -22532,11 +18448,11 @@ } return $length === 0; }, - hash$1(_, elements) { + hash$1(elements) { var t1, t2, hash; A._instanceType(this)._eval$1("_UnorderedEquality.T?")._as(elements); for (t1 = J.get$iterator$ax(elements), t2 = this._elementEquality, hash = 0; t1.moveNext$0();) - hash = hash + t2.hash$1(0, t1.get$current(t1)) & 2147483647; + hash = hash + t2.hash$1(t1.get$current()) & 2147483647; hash = hash + (hash << 3 >>> 0) & 2147483647; hash ^= hash >>> 11; return hash + (hash << 15 >>> 0) & 2147483647; @@ -22547,7 +18463,7 @@ A._MapEntry.prototype = { get$hashCode(_) { var t1 = this.equality; - return 3 * t1._keyEquality.hash$1(0, this.key) + 7 * t1._valueEquality.hash$1(0, this.value) & 2147483647; + return 3 * t1._keyEquality.hash$1(this.key) + 7 * t1._valueEquality.hash$1(this.value) & 2147483647; }, $eq(_, other) { var t1; @@ -22563,26 +18479,24 @@ }; A.MapEquality.prototype = { equals$2(map1, map2) { - var t2, equalElementCounts, t3, key, entry, count, + var equalElementCounts, key, entry, count, t1 = this.$ti._eval$1("Map<1,2>?"); t1._as(map1); t1._as(map2); if (map1 === map2) return true; - t1 = J.getInterceptor$asx(map1); - t2 = J.getInterceptor$asx(map2); - if (t1.get$length(map1) !== t2.get$length(map2)) + if (map1.get$length(map1) !== map2.get$length(map2)) return false; equalElementCounts = A.HashMap_HashMap(null, null, null, type$._MapEntry, type$.int); - for (t3 = J.get$iterator$ax(t1.get$keys(map1)); t3.moveNext$0();) { - key = t3.get$current(t3); - entry = new A._MapEntry(this, key, t1.$index(map1, key)); + for (t1 = map1.get$keys(), t1 = t1.get$iterator(t1); t1.moveNext$0();) { + key = t1.get$current(); + entry = new A._MapEntry(this, key, map1.$index(0, key)); count = equalElementCounts.$index(0, entry); equalElementCounts.$indexSet(0, entry, (count == null ? 0 : count) + 1); } - for (t1 = J.get$iterator$ax(t2.get$keys(map2)); t1.moveNext$0();) { - key = t1.get$current(t1); - entry = new A._MapEntry(this, key, t2.$index(map2, key)); + for (t1 = map2.get$keys(), t1 = t1.get$iterator(t1); t1.moveNext$0();) { + key = t1.get$current(); + entry = new A._MapEntry(this, key, map2.$index(0, key)); count = equalElementCounts.$index(0, entry); if (count == null || count === 0) return false; @@ -22592,15 +18506,15 @@ } return true; }, - hash$1(_, map) { - var t2, t3, t4, t5, hash, key, keyHash, t6, + hash$1(map) { + var t2, t3, t4, hash, key, keyHash, t5, t1 = this.$ti; t1._eval$1("Map<1,2>?")._as(map); - for (t2 = J.getInterceptor$x(map), t3 = J.get$iterator$ax(t2.get$keys(map)), t4 = this._keyEquality, t5 = this._valueEquality, t1 = t1._rest[1], hash = 0; t3.moveNext$0();) { - key = t3.get$current(t3); - keyHash = t4.hash$1(0, key); - t6 = t2.$index(map, key); - hash = hash + 3 * keyHash + 7 * t5.hash$1(0, t6 == null ? t1._as(t6) : t6) & 2147483647; + for (t2 = map.get$keys(), t2 = t2.get$iterator(t2), t3 = this._keyEquality, t4 = this._valueEquality, t1 = t1._rest[1], hash = 0; t2.moveNext$0();) { + key = t2.get$current(); + keyHash = t3.hash$1(key); + t5 = map.$index(0, key); + hash = hash + 3 * keyHash + 7 * t4.hash$1(t5 == null ? t1._as(t5) : t5) & 2147483647; } hash = hash + (hash << 3 >>> 0) & 2147483647; hash ^= hash >>> 11; @@ -22625,16 +18539,16 @@ return t1._is(e2) && new A.IterableEquality(_this, type$.IterableEquality_dynamic).equals$2(e1, e2); return J.$eq$(e1, e2); }, - hash$1(_, o) { + hash$1(o) { var _this = this; if (type$.Set_dynamic._is(o)) - return new A.SetEquality(_this, type$.SetEquality_dynamic).hash$1(0, o); + return new A.SetEquality(_this, type$.SetEquality_dynamic).hash$1(o); if (type$.Map_dynamic_dynamic._is(o)) - return new A.MapEquality(_this, _this, type$.MapEquality_dynamic_dynamic).hash$1(0, o); + return new A.MapEquality(_this, _this, type$.MapEquality_dynamic_dynamic).hash$1(o); if (type$.List_dynamic._is(o)) - return new A.ListEquality(_this, type$.ListEquality_dynamic).hash$1(0, o); + return new A.ListEquality(_this, type$.ListEquality_dynamic).hash$1(o); if (type$.Iterable_dynamic._is(o)) - return new A.IterableEquality(_this, type$.IterableEquality_dynamic).hash$1(0, o); + return new A.IterableEquality(_this, type$.IterableEquality_dynamic).hash$1(o); return J.get$hashCode$(o); }, isValidKey$1(o) { @@ -22643,21 +18557,17 @@ $isEquality: 1 }; A.QueueList.prototype = { - cast$1$0(_, $T) { - return new A._CastQueueList(this, J.cast$1$0$ax(this._queue_list$_table, $T), -1, -1, A._instanceType(this)._eval$1("@")._bind$1($T)._eval$1("_CastQueueList<1,2>")); - }, toString$0(_) { return A.Iterable_iterableToFullString(this, "{", "}"); }, get$length(_) { - var _this = this; - return (_this.get$_queue_list$_tail() - _this.get$_queue_list$_head(_this) & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0; + return (this.get$_queue_list$_tail() - this.get$_queue_list$_head() & J.get$length$asx(this._queue_list$_table) - 1) >>> 0; }, $index(_, index) { var t1, _this = this; if (index < 0 || index >= _this.get$length(0)) throw A.wrapException(A.RangeError$("Index " + index + " must be in the range [0.." + _this.get$length(0) + ").")); - t1 = J.$index$asx(_this._queue_list$_table, (_this.get$_queue_list$_head(_this) + index & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0); + t1 = J.$index$asx(_this._queue_list$_table, (_this.get$_queue_list$_head() + index & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0); return t1 == null ? A._instanceType(_this)._eval$1("QueueList.E")._as(t1) : t1; }, $indexSet(_, index, value) { @@ -22665,20 +18575,20 @@ A._instanceType(_this)._eval$1("QueueList.E")._as(value); if (index < 0 || index >= _this.get$length(0)) throw A.wrapException(A.RangeError$("Index " + index + " must be in the range [0.." + _this.get$length(0) + ").")); - J.$indexSet$ax(_this._queue_list$_table, (_this.get$_queue_list$_head(_this) + index & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0, value); + J.$indexSet$ax(_this._queue_list$_table, (_this.get$_queue_list$_head() + index & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0, value); }, - _queue_list$_add$1(_, element) { + _queue_list$_add$1(element) { var newTable, split, _this = this, t1 = A._instanceType(_this); t1._eval$1("QueueList.E")._as(element); J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_tail(), element); _this.set$_queue_list$_tail((_this.get$_queue_list$_tail() + 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0); - if (_this.get$_queue_list$_head(_this) === _this.get$_queue_list$_tail()) { + if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail()) { newTable = A.List_List$filled(J.get$length$asx(_this._queue_list$_table) * 2, null, false, t1._eval$1("QueueList.E?")); - split = J.get$length$asx(_this._queue_list$_table) - _this.get$_queue_list$_head(_this); - B.JSArray_methods.setRange$4(newTable, 0, split, _this._queue_list$_table, _this.get$_queue_list$_head(_this)); - B.JSArray_methods.setRange$4(newTable, split, split + _this.get$_queue_list$_head(_this), _this._queue_list$_table, 0); - _this.set$_queue_list$_head(0, 0); + split = J.get$length$asx(_this._queue_list$_table) - _this.get$_queue_list$_head(); + B.JSArray_methods.setRange$4(newTable, 0, split, _this._queue_list$_table, _this.get$_queue_list$_head()); + B.JSArray_methods.setRange$4(newTable, split, split + _this.get$_queue_list$_head(), _this._queue_list$_table, 0); + _this.set$_queue_list$_head(0); _this.set$_queue_list$_tail(J.get$length$asx(_this._queue_list$_table)); _this.set$_queue_list$_table(newTable); } @@ -22686,7 +18596,7 @@ set$_queue_list$_table(_table) { this._queue_list$_table = A._instanceType(this)._eval$1("List")._as(_table); }, - set$_queue_list$_head(_, _head) { + set$_queue_list$_head(_head) { this._queue_list$_head = A._asInt(_head); }, set$_queue_list$_tail(_tail) { @@ -22696,28 +18606,13 @@ $isQueue: 1, $isIterable: 1, $isList: 1, - get$_queue_list$_head(receiver) { + get$_queue_list$_head() { return this._queue_list$_head; }, get$_queue_list$_tail() { return this._queue_list$_tail; } }; - A._CastQueueList.prototype = { - get$_queue_list$_head(_) { - var t1 = this._queue_list$_delegate; - return t1.get$_queue_list$_head(t1); - }, - set$_queue_list$_head(_, value) { - this._queue_list$_delegate.set$_queue_list$_head(0, value); - }, - get$_queue_list$_tail() { - return this._queue_list$_delegate.get$_queue_list$_tail(); - }, - set$_queue_list$_tail(value) { - this._queue_list$_delegate.set$_queue_list$_tail(value); - } - }; A._QueueList_Object_ListMixin.prototype = {}; A.BuildStatus.prototype = {}; A.BuildResult.prototype = {}; @@ -22756,11 +18651,11 @@ result = new A.BuildResultBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (t1 = type$.BuildStatus; iterator.moveNext$0();) { - t2 = iterator.get$current(iterator); + t2 = iterator.get$current(); t2.toString; A._asString(t2); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t2) { case "status": t2 = serializers.deserialize$2$specifiedType(value, B.FullType_KDE); @@ -22839,11 +18734,11 @@ result = new A.ConnectRequestBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (; iterator.moveNext$0();) { - t1 = iterator.get$current(iterator); + t1 = iterator.get$current(); t1.toString; A._asString(t1); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t1) { case "appId": t1 = serializers.deserialize$2$specifiedType(value, B.FullType_iHz); @@ -22947,11 +18842,11 @@ result = new A.DebugEventBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (; iterator.moveNext$0();) { - t1 = iterator.get$current(iterator); + t1 = iterator.get$current(); t1.toString; A._asString(t1); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t1) { case "kind": t1 = serializers.deserialize$2$specifiedType(value, B.FullType_iHz); @@ -22999,11 +18894,11 @@ result = new A.BatchedDebugEventsBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (t1 = type$.BuiltList_nullable_Object, t2 = type$.DebugEvent, t3 = type$.List_DebugEvent, t4 = type$.ListBuilder_DebugEvent; iterator.moveNext$0();) { - t5 = iterator.get$current(iterator); + t5 = iterator.get$current(); t5.toString; A._asString(t5); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t5) { case "events": $$v = result._debug_event$_$v; @@ -23271,11 +19166,11 @@ result = new A.DebugInfoBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (; iterator.moveNext$0();) { - t1 = iterator.get$current(iterator); + t1 = iterator.get$current(); t1.toString; A._asString(t1); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t1) { case "appEntrypointPath": t1 = A._asStringQ(serializers.deserialize$2$specifiedType(value, B.FullType_iHz)); @@ -23446,11 +19341,11 @@ result = new A.DevToolsRequestBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (; iterator.moveNext$0();) { - t1 = iterator.get$current(iterator); + t1 = iterator.get$current(); t1.toString; A._asString(t1); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t1) { case "appId": t1 = serializers.deserialize$2$specifiedType(value, B.FullType_iHz); @@ -23518,11 +19413,11 @@ result = new A.DevToolsResponseBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (; iterator.moveNext$0();) { - t1 = iterator.get$current(iterator); + t1 = iterator.get$current(); t1.toString; A._asString(t1); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t1) { case "success": t1 = serializers.deserialize$2$specifiedType(value, B.FullType_mpw); @@ -23674,11 +19569,11 @@ result = new A.ErrorResponseBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (; iterator.moveNext$0();) { - t1 = iterator.get$current(iterator); + t1 = iterator.get$current(); t1.toString; A._asString(t1); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t1) { case "error": t1 = serializers.deserialize$2$specifiedType(value, B.FullType_iHz); @@ -23786,11 +19681,11 @@ result = new A.ExtensionRequestBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (; iterator.moveNext$0();) { - t1 = iterator.get$current(iterator); + t1 = iterator.get$current(); t1.toString; A._asString(t1); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t1) { case "id": t1 = serializers.deserialize$2$specifiedType(value, B.FullType_xEI); @@ -23856,11 +19751,11 @@ result = new A.ExtensionResponseBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (; iterator.moveNext$0();) { - t1 = iterator.get$current(iterator); + t1 = iterator.get$current(); t1.toString; A._asString(t1); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t1) { case "id": t1 = serializers.deserialize$2$specifiedType(value, B.FullType_xEI); @@ -23928,11 +19823,11 @@ result = new A.ExtensionEventBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (; iterator.moveNext$0();) { - t1 = iterator.get$current(iterator); + t1 = iterator.get$current(); t1.toString; A._asString(t1); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t1) { case "params": t1 = serializers.deserialize$2$specifiedType(value, B.FullType_iHz); @@ -23996,11 +19891,11 @@ result = new A.BatchedEventsBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (t1 = type$.BuiltList_nullable_Object, t2 = type$.ExtensionEvent, t3 = type$.List_ExtensionEvent, t4 = type$.ListBuilder_ExtensionEvent; iterator.moveNext$0();) { - t5 = iterator.get$current(iterator); + t5 = iterator.get$current(); t5.toString; A._asString(t5); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t5) { case "events": $$v = result._extension_request$_$v; @@ -24342,11 +20237,11 @@ result = new A.RegisterEventBuilder(), iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); for (; iterator.moveNext$0();) { - t1 = iterator.get$current(iterator); + t1 = iterator.get$current(); t1.toString; A._asString(t1); iterator.moveNext$0(); - value = iterator.get$current(iterator); + value = iterator.get$current(); switch (t1) { case "eventData": t1 = serializers.deserialize$2$specifiedType(value, B.FullType_iHz); @@ -24484,13 +20379,13 @@ call$0() { return A.ListBuilder_ListBuilder(B.List_empty, type$.DebugEvent); }, - $signature: 55 + $signature: 42 }; A._$serializers_closure0.prototype = { call$0() { return A.ListBuilder_ListBuilder(B.List_empty, type$.ExtensionEvent); }, - $signature: 56 + $signature: 43 }; A.BatchedStreamController.prototype = { _batchAndSendEvents$0() { @@ -24560,7 +20455,7 @@ if (lastEvent == null) t7.firstPendingEvent = t7.lastPendingEvent = t6; else { - lastEvent.set$next(0, t6); + lastEvent.set$next(t6); t7.lastPendingEvent = t6; } } @@ -24575,7 +20470,7 @@ // after for if (buffer.length !== 0) t3.add$1(0, t5._as(A.List_List$of(buffer, true, t1))); - $async$self._completer.complete$1(0, true); + $async$self._completer.complete$1(true); // implicit return return A._asyncReturn(null, $async$completer); } @@ -24600,13 +20495,13 @@ call$0() { return true; }, - $signature: 31 + $signature: 25 }; A.BatchedStreamController__hasEventDuring_closure.prototype = { call$0() { return false; }, - $signature: 31 + $signature: 25 }; A.SocketClient.prototype = {}; A.SseSocketClient.prototype = { @@ -24614,7 +20509,7 @@ var t1 = this._sockets$_client._outgoingController; return new A._StreamSinkWrapper(t1, A._instanceType(t1)._eval$1("_StreamSinkWrapper<1>")); }, - get$stream(_) { + get$stream() { var t1 = this._sockets$_client._incomingController; return new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")); } @@ -24623,20 +20518,20 @@ get$sink() { var t2, t1 = this._channel, - value = t1.__AdapterWebSocketChannel_sink_FI; + value = t1.__HtmlWebSocketChannel_sink_FI; if (value === $) { - t2 = t1._adapter_web_socket_channel$_controller.__StreamChannelController__foreign_F; + t2 = t1._html$_controller.__StreamChannelController__foreign_F; t2 === $ && A.throwLateFieldNI("_foreign"); t2 = t2.__GuaranteeChannel__sink_F; t2 === $ && A.throwLateFieldNI("_sink"); value !== $ && A.throwLateFieldADI("sink"); - value = t1.__AdapterWebSocketChannel_sink_FI = new A._WebSocketSink(t1, t2); + value = t1.__HtmlWebSocketChannel_sink_FI = new A._HtmlWebSocketSink(t1, t2); } return value; }, - get$stream(_) { + get$stream() { var t2, - t1 = this._channel._adapter_web_socket_channel$_controller.__StreamChannelController__foreign_F; + t1 = this._channel._html$_controller.__StreamChannelController__foreign_F; t1 === $ && A.throwLateFieldNI("_foreign"); t1 = t1.__GuaranteeChannel__streamController_F; t1 === $ && A.throwLateFieldNI("_streamController"); @@ -24648,14 +20543,14 @@ call$1(o) { return J.toString$0$(o); }, - $signature: 58 + $signature: 45 }; A.safeUnawaited_closure.prototype = { call$2(error, stackTrace) { type$.StackTrace._as(stackTrace); return $.$get$_logger().log$4(B.Level_WARNING_900, "Error in unawaited Future:", error, stackTrace); }, - $signature: 19 + $signature: 17 }; A.Int32.prototype = { _toInt$1(val) { @@ -24808,7 +20703,7 @@ t3 = this.name; return t2 === true ? t1.get$fullName() + "." + t3 : t3; }, - get$level(_) { + get$level() { var t1, effectiveLevel; if (this.parent == null) { t1 = this._level; @@ -24824,7 +20719,7 @@ log$4(logLevel, message, error, stackTrace) { var record, _this = this, t1 = logLevel.value; - if (t1 >= _this.get$level(0).value) { + if (t1 >= _this.get$level().value) { if (stackTrace == null && t1 >= 2000) { A.StackTrace_current(); if (error == null) @@ -24866,10 +20761,10 @@ $parent._children.$indexSet(0, thisName, t1); return t1; }, - $signature: 59 + $signature: 46 }; A.Pool.prototype = { - request$0(_) { + request$0() { var t1, t2, _this = this; if ((_this._closeMemo._async_memoizer$_completer.future._state & 30) !== 0) throw A.wrapException(A.StateError$("request() may not be called on a closed Pool.")); @@ -24884,7 +20779,7 @@ else { t1 = new A._Future($.Zone__current, type$._Future_PoolResource); t2 = _this._requestedResources; - t2._collection$_add$1(0, t2.$ti._precomputed1._as(new A._AsyncCompleter(t1, type$._AsyncCompleter_PoolResource))); + t2._collection$_add$1(t2.$ti._precomputed1._as(new A._AsyncCompleter(t1, type$._AsyncCompleter_PoolResource))); _this._resetTimer$0(); return t1; } @@ -24909,7 +20804,7 @@ if (($async$self._closeMemo._async_memoizer$_completer.future._state & 30) !== 0) throw A.wrapException(A.StateError$("withResource() may not be called on a closed Pool.")); $async$goto = 3; - return A._asyncAwait($async$self.request$0(0), $async$withResource$1$1); + return A._asyncAwait($async$self.request$0(), $async$withResource$1$1); case 3: // returning from await. resource = $async$result; @@ -24943,11 +20838,11 @@ t1._resetTimer$0(); t2 = t1._requestedResources; if (!t2.get$isEmpty(0)) - t2.removeFirst$0().complete$1(0, new A.PoolResource(t1)); + t2.removeFirst$0().complete$1(new A.PoolResource(t1)); else { t2 = --t1._allocatedResources; if ((t1._closeMemo._async_memoizer$_completer.future._state & 30) !== 0 && t2 === 0) - null.close$0(0); + null.close$0(); } // goto the next finally handler $async$goto = $async$next.pop(); @@ -24966,10 +20861,10 @@ }, _runOnRelease$1(onRelease) { var t1, t2; - A.Future_Future$sync(type$.dynamic_Function._as(onRelease), type$.dynamic).then$1$1(0, new A.Pool__runOnRelease_closure(this), type$.Null).catchError$1(new A.Pool__runOnRelease_closure0(this)); + A.Future_Future$sync(type$.dynamic_Function._as(onRelease), type$.dynamic).then$1$1(new A.Pool__runOnRelease_closure(this), type$.Null).catchError$1(new A.Pool__runOnRelease_closure0(this)); t1 = new A._Future($.Zone__current, type$._Future_PoolResource); t2 = this._onReleaseCompleters; - t2._collection$_add$1(0, t2.$ti._precomputed1._as(new A._SyncCompleter(t1, type$._SyncCompleter_PoolResource))); + t2._collection$_add$1(t2.$ti._precomputed1._as(new A._SyncCompleter(t1, type$._SyncCompleter_PoolResource))); return t1; }, _resetTimer$0() { @@ -24979,9 +20874,9 @@ return; t2 = this._requestedResources; if (t2._head === t2._tail) - t1._restartable_timer$_timer.cancel$0(0); + t1._restartable_timer$_timer.cancel$0(); else { - t1._restartable_timer$_timer.cancel$0(0); + t1._restartable_timer$_timer.cancel$0(); t1._restartable_timer$_timer = A.Timer_Timer(t1._restartable_timer$_duration, t1._callback); } } @@ -24989,7 +20884,7 @@ A.Pool__runOnRelease_closure.prototype = { call$1(value) { var t1 = this.$this; - J.complete$1$z(t1._onReleaseCompleters.removeFirst$0(), new A.PoolResource(t1)); + t1._onReleaseCompleters.removeFirst$0().complete$1(new A.PoolResource(t1)); }, $signature: 6 }; @@ -24999,27 +20894,25 @@ type$.StackTrace._as(stackTrace); this.$this._onReleaseCompleters.removeFirst$0().completeError$2(error, stackTrace); }, - $signature: 8 + $signature: 5 }; A.PoolResource.prototype = {}; A.SseClient.prototype = { SseClient$2$debugKey(serverUrl, debugKey) { - var t2, t3, _this = this, + var t2, _this = this, t1 = serverUrl + "?sseClientId=" + _this._clientId; _this.__SseClient__serverUrl_A = t1; - t2 = type$.JSObject; - t1 = t2._as(new self.EventSource(t1, {withCredentials: true})); + t2 = type$.JavaScriptObject; + t1 = t2._as(new self.EventSource(t1, t2._as({withCredentials: true}))); _this.__SseClient__eventSource_A = t1; - new A._EventStream(t1, "open", false, type$._EventStream_JSObject).get$first(0).whenComplete$1(new A.SseClient_closure(_this)); - t1 = type$.Function; - t3 = type$.JavaScriptFunction; - _this.__SseClient__eventSource_A.addEventListener("message", t3._as(A.allowInterop(_this.get$_onIncomingMessage(), t1))); - _this.__SseClient__eventSource_A.addEventListener("control", t3._as(A.allowInterop(_this.get$_onIncomingControlMessage(), t1))); - t1 = type$.nullable_void_Function_JSObject; - A._EventStreamSubscription$0(_this.__SseClient__eventSource_A, "open", t1._as(new A.SseClient_closure0(_this)), false, t2); - A._EventStreamSubscription$0(_this.__SseClient__eventSource_A, "error", t1._as(new A.SseClient_closure1(_this)), false, t2); - }, - close$0(_) { + new A._EventStream(t1, "open", false, type$._EventStream_JavaScriptObject).get$first(0).whenComplete$1(new A.SseClient_closure(_this)); + _this.__SseClient__eventSource_A.addEventListener("message", A._functionToJS1(_this.get$_onIncomingMessage())); + _this.__SseClient__eventSource_A.addEventListener("control", A._functionToJS1(_this.get$_onIncomingControlMessage())); + t1 = type$.nullable_void_Function_JavaScriptObject; + A._EventStreamSubscription$(_this.__SseClient__eventSource_A, "open", t1._as(new A.SseClient_closure0(_this)), false, t2); + A._EventStreamSubscription$(_this.__SseClient__eventSource_A, "error", t1._as(new A.SseClient_closure1(_this)), false, t2); + }, + close$0() { var _this = this, t1 = _this.__SseClient__eventSource_A; t1 === $ && A.throwLateFieldNI("_eventSource"); @@ -25028,29 +20921,29 @@ t1 = _this._outgoingController; new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$2$cancelOnError(null, true).asFuture$1$1(null, type$.void); } - _this._incomingController.close$0(0); - _this._outgoingController.close$0(0); + _this._incomingController.close$0(); + _this._outgoingController.close$0(); }, _closeWithError$1(error) { var t1; this._incomingController.addError$1(error); - this.close$0(0); + this.close$0(); t1 = this._onConnected; if ((t1.future._state & 30) === 0) t1.completeError$1(error); }, _onIncomingControlMessage$1(message) { - var data = type$.JSObject._as(message).data; + var data = type$.JavaScriptObject._as(message).data; if (J.$eq$(A.dartify(data), "close")) - this.close$0(0); + this.close$0(); else throw A.wrapException(A.UnsupportedError$("[" + this._clientId + '] Illegal Control Message "' + A.S(data) + '"')); }, _onIncomingMessage$1(message) { - this._incomingController.add$1(0, A._asString(B.C_JsonCodec.decode$2$reviver(0, A._asString(type$.JSObject._as(message).data), null))); + this._incomingController.add$1(0, A._asString(B.C_JsonCodec.decode$2$reviver(A._asString(type$.JavaScriptObject._as(message).data), null))); }, _onOutgoingDone$0() { - this.close$0(0); + this.close$0(); }, _onOutgoingMessage$1(message) { return this._onOutgoingMessage$body$SseClient(A._asStringQ(message)); @@ -25083,19 +20976,19 @@ call$0() { var t2, t1 = this.$this; - t1._onConnected.complete$0(0); + t1._onConnected.complete$0(); t2 = t1._outgoingController; new A._ControllerStream(t2, A._instanceType(t2)._eval$1("_ControllerStream<1>")).listen$2$onDone(t1.get$_onOutgoingMessage(), t1.get$_onOutgoingDone()); }, - $signature: 4 + $signature: 2 }; A.SseClient_closure0.prototype = { call$1(_) { var t1 = this.$this._errorTimer; if (t1 != null) - t1.cancel$0(0); + t1.cancel$0(); }, - $signature: 3 + $signature: 1 }; A.SseClient_closure1.prototype = { call$1(error) { @@ -25105,7 +20998,7 @@ if (t2 !== true) t1._errorTimer = A.Timer_Timer(B.Duration_5000000, new A.SseClient__closure(t1, error)); }, - $signature: 3 + $signature: 1 }; A.SseClient__closure.prototype = { call$0() { @@ -25150,10 +21043,10 @@ t1 = $async$self._box_0.encodedMessage; if (t1 == null) t1 = null; - t1 = {method: "POST", body: t1, credentials: "include"}; - t2 = type$.JSObject; + t2 = type$.JavaScriptObject; + t1 = t2._as({method: "POST", body: t1, credentials: "include"}); $async$goto = 6; - return A._asyncAwait(A.promiseToFuture(t2._as(t2._as(self.window).fetch(url, t1)), t2), $async$call$0); + return A._asyncAwait(A.promiseToFuture(type$.JSObject._as(t2._as(self.window).fetch(url, t1)), type$.nullable_Object), $async$call$0); case 6: // returning from await. $async$handler = 1; @@ -25188,25 +21081,25 @@ }); return A._asyncStartSync($async$call$0, $async$completer); }, - $signature: 27 + $signature: 24 }; A.generateUuidV4_generateBits.prototype = { call$1(bitCount) { return this.random.nextInt$1(B.JSInt_methods._shlPositive$1(1, bitCount)); }, - $signature: 23 + $signature: 22 }; A.generateUuidV4_printDigits.prototype = { call$2(value, count) { return B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(value, 16), count, "0"); }, - $signature: 36 + $signature: 26 }; A.generateUuidV4_bitsDigits.prototype = { call$2(bitCount, digitCount) { return this.printDigits.call$2(this.generateBits.call$1(bitCount), digitCount); }, - $signature: 36 + $signature: 26 }; A.GuaranteeChannel.prototype = { GuaranteeChannel$3$allowSinkErrors(innerSink, allowSinkErrors, _box_0, $T) { @@ -25224,10 +21117,10 @@ this._disconnected = true; subscription = this._guarantee_channel$_subscription; if (subscription != null) - subscription.cancel$0(0); + subscription.cancel$0(); t1 = this.__GuaranteeChannel__streamController_F; t1 === $ && A.throwLateFieldNI("_streamController"); - t1.close$0(0); + t1.close$0(); }, set$__GuaranteeChannel__sink_F(__GuaranteeChannel__sink_F) { this.__GuaranteeChannel__sink_F = this.$ti._eval$1("_GuaranteeSink<1>")._as(__GuaranteeChannel__sink_F); @@ -25260,7 +21153,7 @@ t2._onStreamDisconnected$0(); t1 = t1.__GuaranteeChannel__streamController_F; t1 === $ && A.throwLateFieldNI("_streamController"); - t1.close$0(0); + t1.close$0(); }, $signature: 0 }; @@ -25294,16 +21187,16 @@ _this._doneCompleter.completeError$2(error, stackTrace); _this._onStreamDisconnected$0(); _this._guarantee_channel$_channel._onSinkDisconnected$0(); - _this._inner._async$_target.close$0(0).catchError$1(new A._GuaranteeSink__addError_closure()); + _this._inner._async$_target.close$0().catchError$1(new A._GuaranteeSink__addError_closure()); }, - close$0(_) { + close$0() { var _this = this; if (_this._closed) return _this._doneCompleter.future; _this._closed = true; if (!_this._disconnected) { _this._guarantee_channel$_channel._onSinkDisconnected$0(); - _this._doneCompleter.complete$1(0, _this._inner._async$_target.close$0(0)); + _this._doneCompleter.complete$1(_this._inner._async$_target.close$0()); } return _this._doneCompleter.future; }, @@ -25311,7 +21204,7 @@ this._disconnected = true; var t1 = this._doneCompleter; if ((t1.future._state & 30) === 0) - t1.complete$0(0); + t1.complete$0(); return; }, $isStreamSink: 1 @@ -25331,30 +21224,30 @@ }; A.StreamChannelMixin.prototype = {$isStreamChannel: 1}; A.RNG.prototype = {}; - A.MathRNG.prototype = { + A.CryptoRNG.prototype = { _generateInternal$0() { - var t1, i, k, t2, t3, + var i, k, t1, t2, b = new Uint8Array(16); - for (t1 = this._rnd, i = 0; i < 16; i += 4) { - k = t1.nextInt$1(B.JSNumber_methods.toInt$0(Math.pow(2, 32))); + for (i = 0; i < 16; i += 4) { + k = $.$get$CryptoRNG__secureRandom().nextInt$1(B.JSNumber_methods.toInt$0(Math.pow(2, 32))); if (!(i < 16)) return A.ioore(b, i); b[i] = k; - t2 = i + 1; - t3 = B.JSInt_methods._shrOtherPositive$1(k, 8); - if (!(t2 < 16)) - return A.ioore(b, t2); - b[t2] = t3; - t3 = i + 2; - t2 = B.JSInt_methods._shrOtherPositive$1(k, 16); - if (!(t3 < 16)) - return A.ioore(b, t3); - b[t3] = t2; - t2 = i + 3; - t3 = B.JSInt_methods._shrOtherPositive$1(k, 24); + t1 = i + 1; + t2 = B.JSInt_methods._shrOtherPositive$1(k, 8); + if (!(t1 < 16)) + return A.ioore(b, t1); + b[t1] = t2; + t2 = i + 2; + t1 = B.JSInt_methods._shrOtherPositive$1(k, 16); if (!(t2 < 16)) return A.ioore(b, t2); - b[t2] = t3; + b[t2] = t1; + t1 = i + 3; + t2 = B.JSInt_methods._shrOtherPositive$1(k, 24); + if (!(t1 < 16)) + return A.ioore(b, t1); + b[t1] = t2; } return b; } @@ -25476,390 +21369,201 @@ return t2 + t3 + t4 + t5 + "-" + t6 + t7 + "-" + t8 + t9 + "-" + t10 + t11 + "-" + t12 + t13 + t14 + t15 + t16 + t1[t17]; } }; - A.EventStreamProvider0.prototype = {}; + A.EventStreamProvider.prototype = {}; A._EventStream.prototype = { listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError) { var t1 = this.$ti; t1._eval$1("~(1)?")._as(onData); type$.nullable_void_Function._as(onDone); - return A._EventStreamSubscription$0(this._streams$_target, this._streams$_eventType, onData, false, t1._precomputed1); + return A._EventStreamSubscription$(this._target, this._eventType, onData, false, t1._precomputed1); }, listen$3$onDone$onError(onData, onDone, onError) { return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError); } }; - A._EventStreamSubscription0.prototype = { - cancel$0(_) { + A._EventStreamSubscription.prototype = { + cancel$0() { var _this = this, emptyFuture = A.Future_Future$value(null, type$.void); - if (_this._streams$_target == null) + if (_this._target == null) return emptyFuture; - _this._streams$_unlisten$0(); - _this._streams$_onData = _this._streams$_target = null; + _this._unlisten$0(); + _this._onData = _this._target = null; return emptyFuture; }, onData$1(handleData) { var t1, _this = this; _this.$ti._eval$1("~(1)?")._as(handleData); - if (_this._streams$_target == null) + if (_this._target == null) throw A.wrapException(A.StateError$("Subscription has been canceled.")); - _this._streams$_unlisten$0(); - t1 = A._wrapZone0(new A._EventStreamSubscription_onData_closure(handleData), type$.JSObject); - t1 = t1 == null ? null : type$.JavaScriptFunction._as(A.allowInterop(t1, type$.Function)); - _this._streams$_onData = t1; - _this._streams$_tryResume$0(); - }, - pause$0(_) { - if (this._streams$_target == null) + _this._unlisten$0(); + t1 = A._wrapZone(new A._EventStreamSubscription_onData_closure(handleData), type$.JavaScriptObject); + t1 = t1 == null ? null : A._functionToJS1(t1); + _this._onData = t1; + _this._tryResume$0(); + }, + pause$0() { + if (this._target == null) return; - ++this._streams$_pauseCount; - this._streams$_unlisten$0(); + ++this._pauseCount; + this._unlisten$0(); }, - resume$0(_) { + resume$0() { var _this = this; - if (_this._streams$_target == null || _this._streams$_pauseCount <= 0) + if (_this._target == null || _this._pauseCount <= 0) return; - --_this._streams$_pauseCount; - _this._streams$_tryResume$0(); + --_this._pauseCount; + _this._tryResume$0(); }, - _streams$_tryResume$0() { + _tryResume$0() { var _this = this, - t1 = _this._streams$_onData; - if (t1 != null && _this._streams$_pauseCount <= 0) - _this._streams$_target.addEventListener(_this._streams$_eventType, t1, false); + t1 = _this._onData; + if (t1 != null && _this._pauseCount <= 0) + _this._target.addEventListener(_this._eventType, t1, false); }, - _streams$_unlisten$0() { - var t1 = this._streams$_onData; + _unlisten$0() { + var t1 = this._onData; if (t1 != null) - this._streams$_target.removeEventListener(this._streams$_eventType, t1, false); + this._target.removeEventListener(this._eventType, t1, false); }, $isStreamSubscription: 1 }; - A._EventStreamSubscription_closure0.prototype = { + A._EventStreamSubscription_closure.prototype = { call$1(e) { - return this.onData.call$1(type$.JSObject._as(e)); + return this.onData.call$1(type$.JavaScriptObject._as(e)); }, - $signature: 3 + $signature: 1 }; A._EventStreamSubscription_onData_closure.prototype = { call$1(e) { - return this.handleData.call$1(type$.JSObject._as(e)); - }, - $signature: 3 - }; - A.BrowserWebSocket.prototype = { - _browser_web_socket$_closed$2(code, reason) { - var t1 = this._browser_web_socket$_events; - if ((t1._state & 4) !== 0) - return; - t1.add$1(0, new A.CloseReceived(code, reason)); - t1.close$0(0); - }, - sendBytes$1(b) { - var t1; - if ((this._browser_web_socket$_events._state & 4) !== 0) - throw A.wrapException(A.WebSocketConnectionClosed$()); - t1 = A.jsify(b); - t1.toString; - A.callMethod(this._webSocket, "send", [t1], type$.void); - }, - close$2(_, code, reason) { - var $async$goto = 0, - $async$completer = A._makeAsyncAwaitCompleter(type$.void), - $async$self = this, t1; - var $async$close$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { - if ($async$errorCode === 1) - return A._asyncRethrow($async$result, $async$completer); - while (true) - switch ($async$goto) { - case 0: - // Function start - t1 = $async$self._browser_web_socket$_events; - if ((t1._state & 4) !== 0) - throw A.wrapException(A.WebSocketConnectionClosed$()); - t1.close$0(0); - $async$self._webSocket.close(); - // implicit return - return A._asyncReturn(null, $async$completer); - } - }); - return A._asyncStartSync($async$close$2, $async$completer); - }, - $isWebSocket0: 1 - }; - A.BrowserWebSocket_connect_closure.prototype = { - call$1(_) { - type$.JSObject._as(_); - this.webSocketConnected.complete$1(0, this.browserSocket); - }, - $signature: 17 - }; - A.BrowserWebSocket_connect_closure0.prototype = { - call$1(e) { - var t1; - type$.JSObject._as(e); - t1 = this.webSocketConnected; - if ((t1.future._state & 30) === 0) - t1.completeError$1(new A.WebSocketException()); - else - this.browserSocket._browser_web_socket$_closed$2(1006, "error"); + return this.handleData.call$1(type$.JavaScriptObject._as(e)); }, - $signature: 17 + $signature: 1 }; - A.BrowserWebSocket_connect_closure1.prototype = { + A.HttpRequest_request_closure.prototype = { call$1(e) { - var t2, data, - t1 = this.browserSocket._browser_web_socket$_events; - if ((t1._state & 4) !== 0) - return; - t2 = e.data; - t2.toString; - data = A._Cell$named("data"); - if (typeof t2 === "string") - data.__late_helper$_value = new A.TextDataReceived(A._asString(t2)); - else if (typeof t2 === "object" && A.JSAnyUtilityExtension_instanceOfString(type$.JSObject._as(t2), "ArrayBuffer")) - data.__late_helper$_value = new A.BinaryDataReceived(A.NativeUint8List_NativeUint8List$view(type$.NativeByteBuffer._as(t2), 0, null)); + var t1 = this.xhr, + $status = A._asInt(t1.status), + accepted = $status >= 200 && $status < 300, + unknownRedirect = $status > 307 && $status < 400, + t2 = accepted || $status === 0 || $status === 304 || unknownRedirect, + t3 = this.completer; + if (t2) + t3.complete$1(t1); else - throw A.wrapException(A.StateError$("unexpected message type: " + J.get$runtimeType$(t2).toString$0(0))); - t1.add$1(0, data._readLocal$0()); - }, - $signature: 3 - }; - A.BrowserWebSocket_connect_closure2.prototype = { - call$1($event) { - var t1; - type$.JSObject._as($event); - t1 = this.webSocketConnected; - if ((t1.future._state & 30) === 0) - t1.complete$1(0, this.browserSocket); - this.browserSocket._browser_web_socket$_closed$2(A._asInt($event.code), A._asString($event.reason)); - }, - $signature: 17 - }; - A.WebSocketEvent.prototype = {}; - A.TextDataReceived.prototype = { - $eq(_, other) { - if (other == null) - return false; - return other instanceof A.TextDataReceived && other.text === this.text; - }, - get$hashCode(_) { - return B.JSString_methods.get$hashCode(this.text); - } - }; - A.BinaryDataReceived.prototype = { - $eq(_, other) { - var t1, t2, t3, t4, i; - if (other == null) - return false; - if (other instanceof A.BinaryDataReceived && other.data.length === this.data.length) { - for (t1 = this.data, t2 = t1.length, t3 = other.data, t4 = t3.length, i = 0; i < t2; ++i) { - if (!(i < t4)) - return A.ioore(t3, i); - if (t3[i] !== t1[i]) - return false; - } - return true; - } - return false; - }, - get$hashCode(_) { - return A.Primitives_objectHashCode(this.data); - }, - toString$0(_) { - return "BinaryDataReceived(" + A.S(this.data) + ")"; - } - }; - A.CloseReceived.prototype = { - $eq(_, other) { - if (other == null) - return false; - return other instanceof A.CloseReceived && other.code === this.code && other.reason === this.reason; - }, - get$hashCode(_) { - return A.Primitives_objectHashCode([this.code, this.reason]); - }, - toString$0(_) { - return "CloseReceived(" + this.code + ", " + this.reason + ")"; - } - }; - A.WebSocketException.prototype = {}; - A.WebSocketConnectionClosed.prototype = {}; - A.AdapterWebSocketChannel.prototype = { - AdapterWebSocketChannel$1(webSocket) { - webSocket.then$1$2$onError(0, new A.AdapterWebSocketChannel_closure(this), new A.AdapterWebSocketChannel_closure0(this), type$.Null); - }, - $isWebSocketChannel: 1 - }; - A.AdapterWebSocketChannel_closure.prototype = { - call$1(webSocket) { - var t1, t2; - type$.WebSocket._as(webSocket); - t1 = webSocket._browser_web_socket$_events; - t2 = this.$this; - new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$1(new A.AdapterWebSocketChannel__closure(t2)); - t1 = t2._adapter_web_socket_channel$_controller.__StreamChannelController__local_F; - t1 === $ && A.throwLateFieldNI("_local"); - t1 = t1.__GuaranteeChannel__streamController_F; - t1 === $ && A.throwLateFieldNI("_streamController"); - new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$2$onDone(new A.AdapterWebSocketChannel__closure0(webSocket), new A.AdapterWebSocketChannel__closure1(t2, webSocket)); - A._asString(webSocket._webSocket.protocol); - t2._readyCompleter.complete$0(0); - }, - $signature: 64 - }; - A.AdapterWebSocketChannel__closure.prototype = { - call$1($event) { - var t1, text, data, _s6_ = "_local", _s5_ = "_sink"; - type$.WebSocketEvent._as($event); - $label0$0: { - t1 = $event instanceof A.TextDataReceived; - text = t1 ? $event.text : null; - if (t1) { - t1 = this.$this._adapter_web_socket_channel$_controller.__StreamChannelController__local_F; - t1 === $ && A.throwLateFieldNI(_s6_); - t1 = t1.__GuaranteeChannel__sink_F; - t1 === $ && A.throwLateFieldNI(_s5_); - t1.add$1(0, text); - break $label0$0; - } - t1 = $event instanceof A.BinaryDataReceived; - data = t1 ? $event.data : null; - if (t1) { - t1 = this.$this._adapter_web_socket_channel$_controller.__StreamChannelController__local_F; - t1 === $ && A.throwLateFieldNI(_s6_); - t1 = t1.__GuaranteeChannel__sink_F; - t1 === $ && A.throwLateFieldNI(_s5_); - t1.add$1(0, data); - break $label0$0; - } - if ($event instanceof A.CloseReceived) { - t1 = this.$this._adapter_web_socket_channel$_controller.__StreamChannelController__local_F; - t1 === $ && A.throwLateFieldNI(_s6_); - t1 = t1.__GuaranteeChannel__sink_F; - t1 === $ && A.throwLateFieldNI(_s5_); - t1.close$0(0); - } - } + t3.completeError$1(e); }, - $signature: 65 + $signature: 1 }; - A.AdapterWebSocketChannel__closure0.prototype = { - call$1(obj) { - var _1_0, s, b, b0, t1, t2, exception; - try { - $label1$1: { - _1_0 = obj; - s = null; - t1 = typeof _1_0 == "string"; - if (t1) - s = _1_0; - if (t1) { - t1 = this.webSocket; - t2 = A._asString(s); - if ((t1._browser_web_socket$_events._state & 4) !== 0) - A.throwExpression(A.WebSocketConnectionClosed$()); - t2 = A.jsify(t2); - t2.toString; - A.callMethod(t1._webSocket, "send", [t2], type$.void); - break $label1$1; - } - b = null; - t1 = type$.Uint8List._is(_1_0); - if (t1) - b = _1_0; - if (t1) { - this.webSocket.sendBytes$1(b); - break $label1$1; - } - b0 = null; - t1 = type$.List_int._is(_1_0); - if (t1) - b0 = _1_0; - if (t1) { - this.webSocket.sendBytes$1(new Uint8Array(A._ensureNativeList(b0))); - break $label1$1; - } - t1 = A.UnsupportedError$("Cannot send " + J.get$runtimeType$(obj).toString$0(0)); - throw A.wrapException(t1); - } - } catch (exception) { - if (!(A.unwrapException(exception) instanceof A.WebSocketConnectionClosed)) - throw exception; - } + A.HtmlWebSocketChannel.prototype = { + HtmlWebSocketChannel$1(webSocket) { + var _this = this, + t1 = _this.__HtmlWebSocketChannel__readyCompleter_A = new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_void), type$._AsyncCompleter_void), + t2 = _this.innerWebSocket, + t3 = A._asInt(t2.readyState), + t4 = self; + if (t3 === A._asInt(t4.WebSocket.OPEN)) { + t1.complete$0(); + _this._listen$0(); + } else { + if (A._asInt(t2.readyState) === A._asInt(t4.WebSocket.CLOSING) || A._asInt(t2.readyState) === A._asInt(t4.WebSocket.CLOSED)) + t1.completeError$1(new A.WebSocketChannelException("WebSocket state error: " + A._asInt(t2.readyState))); + new A._EventStream(t2, "open", false, type$._EventStream_JavaScriptObject).get$first(0).then$1$1(new A.HtmlWebSocketChannel_closure(_this), type$.Null); + } + t1 = type$._EventStream_JavaScriptObject; + t3 = type$.Null; + new A._EventStream(t2, "error", false, t1).get$first(0).then$1$1(new A.HtmlWebSocketChannel_closure0(_this), t3); + A._EventStreamSubscription$(t2, "message", type$.nullable_void_Function_JavaScriptObject._as(_this.get$_innerListen()), false, type$.JavaScriptObject); + new A._EventStream(t2, "close", false, t1).get$first(0).then$1$1(new A.HtmlWebSocketChannel_closure1(_this), t3); + }, + _innerListen$1($event) { + var data, t1, + eventData = $event.data; + if (typeof eventData === "string") { + A._asString(eventData); + data = eventData; + } else + data = typeof eventData === "object" && A.JSAnyUtilityExtension_instanceOfString(type$.JSObject._as(eventData), "ArrayBuffer") ? A.NativeUint8List_NativeUint8List$view(type$.NativeByteBuffer._as(eventData), 0, null) : eventData; + t1 = this._html$_controller.__StreamChannelController__local_F; + t1 === $ && A.throwLateFieldNI("_local"); + t1 = t1.__GuaranteeChannel__sink_F; + t1 === $ && A.throwLateFieldNI("_sink"); + t1.add$1(0, data); }, - $signature: 12 + _listen$0() { + var t1 = this._html$_controller.__StreamChannelController__local_F; + t1 === $ && A.throwLateFieldNI("_local"); + t1 = t1.__GuaranteeChannel__streamController_F; + t1 === $ && A.throwLateFieldNI("_streamController"); + new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$2$onDone(new A.HtmlWebSocketChannel__listen_closure(this), new A.HtmlWebSocketChannel__listen_closure0(this)); + }, + $isWebSocketChannel: 1 }; - A.AdapterWebSocketChannel__closure1.prototype = { - call$0() { - var $async$goto = 0, - $async$completer = A._makeAsyncAwaitCompleter(type$.void), - $async$handler = 1, $async$currentError, $async$self = this, t1, exception, $async$exception; - var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { - if ($async$errorCode === 1) { - $async$currentError = $async$result; - $async$goto = $async$handler; - } - while (true) - switch ($async$goto) { - case 0: - // Function start - $async$handler = 3; - t1 = $async$self.$this; - $async$goto = 6; - return A._asyncAwait($async$self.webSocket.close$2(0, t1._localCloseCode, t1._localCloseReason), $async$call$0); - case 6: - // returning from await. - $async$handler = 1; - // goto after finally - $async$goto = 5; - break; - case 3: - // catch - $async$handler = 2; - $async$exception = $async$currentError; - if (!(A.unwrapException($async$exception) instanceof A.WebSocketConnectionClosed)) - throw $async$exception; - // goto after finally - $async$goto = 5; - break; - case 2: - // uncaught - // goto rethrow - $async$goto = 1; - break; - case 5: - // after finally - // implicit return - return A._asyncReturn(null, $async$completer); - case 1: - // rethrow - return A._asyncRethrow($async$currentError, $async$completer); - } - }); - return A._asyncStartSync($async$call$0, $async$completer); + A.HtmlWebSocketChannel_closure.prototype = { + call$1(_) { + var t1, t2; + type$.JavaScriptObject._as(_); + t1 = this.$this; + t2 = t1.__HtmlWebSocketChannel__readyCompleter_A; + t2 === $ && A.throwLateFieldNI("_readyCompleter"); + t2.complete$0(); + t1._listen$0(); }, - $signature: 33 + $signature: 8 }; - A.AdapterWebSocketChannel_closure0.prototype = { - call$1(e) { + A.HtmlWebSocketChannel_closure0.prototype = { + call$1(_) { var error, t1, t2; - type$.Object._as(e); - error = e instanceof A.TimeoutException ? e : new A.WebSocketChannelException(J.toString$0$(e)); + type$.JavaScriptObject._as(_); + error = new A.WebSocketChannelException("WebSocket connection failed."); t1 = this.$this; - t1._readyCompleter.completeError$1(error); - t1 = t1._adapter_web_socket_channel$_controller.__StreamChannelController__local_F; + t2 = t1.__HtmlWebSocketChannel__readyCompleter_A; + t2 === $ && A.throwLateFieldNI("_readyCompleter"); + if ((t2.future._state & 30) === 0) + t2.completeError$1(error); + t1 = t1._html$_controller.__StreamChannelController__local_F; t1 === $ && A.throwLateFieldNI("_local"); t2 = t1.__GuaranteeChannel__sink_F; t2 === $ && A.throwLateFieldNI("_sink"); t2.addError$1(error); t1 = t1.__GuaranteeChannel__sink_F; t1 === $ && A.throwLateFieldNI("_sink"); - t1.close$0(0); + t1.close$0(); + }, + $signature: 8 + }; + A.HtmlWebSocketChannel_closure1.prototype = { + call$1($event) { + var t1; + type$.JavaScriptObject._as($event); + A._asInt($event.code); + A._asString($event.reason); + t1 = this.$this._html$_controller.__StreamChannelController__local_F; + t1 === $ && A.throwLateFieldNI("_local"); + t1 = t1.__GuaranteeChannel__sink_F; + t1 === $ && A.throwLateFieldNI("_sink"); + t1.close$0(); + }, + $signature: 8 + }; + A.HtmlWebSocketChannel__listen_closure.prototype = { + call$1(obj) { + var t1; + obj.toString; + t1 = A.jsify(obj); + t1.toString; + return this.$this.innerWebSocket.send(t1); + }, + $signature: 11 + }; + A.HtmlWebSocketChannel__listen_closure0.prototype = { + call$0() { + this.$this.innerWebSocket.close(); }, - $signature: 101 + $signature: 0 }; - A._WebSocketSink.prototype = {$isWebSocketSink: 1}; + A._HtmlWebSocketSink.prototype = {$isWebSocketSink: 1}; + A.WebSocketChannel.prototype = {}; A.WebSocketChannelException.prototype = { toString$0(_) { return "WebSocketChannelException: " + this.message; @@ -25872,7 +21576,7 @@ $call$body$main_closure() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), - uri, t2, t3, fixedPath, fixedUri, client, restarter, manager, t4, t5, debugEventController, t6, t1; + uri, t3, fixedPath, fixedUri, client, restarter, manager, t4, t5, t6, debugEventController, t7, t1, t2; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -25881,24 +21585,19 @@ case 0: // Function start t1 = {}; - if (self.$dartAppInstanceId == null) - self.$dartAppInstanceId = new A.UuidV1(null).generate$1$options(null); - uri = A.Uri_parse(self.$dwdsDevHandlerPath); - t2 = type$.Location; - t3 = t2._as(window.location).protocol; - t3.toString; - if (t3 === "https:" && uri.get$scheme() === "http" && uri.get$host(uri) !== "localhost") - uri = uri.replace$1$scheme(0, "https"); - else { - t2 = t2._as(window.location).protocol; - t2.toString; - if (t2 === "wss:" && uri.get$scheme() === "ws" && uri.get$host(uri) !== "localhost") - uri = uri.replace$1$scheme(0, "wss"); - } + t2 = self; + if (A._asStringQ(t2.$dartAppInstanceId) == null) + t2.$dartAppInstanceId = new A.UuidV1(null).generate$1$options(null); + uri = A.Uri_parse(A._asString(t2.$dwdsDevHandlerPath)); + t3 = type$.JavaScriptObject; + if (A._asString(t3._as(t3._as(t2.window).location).protocol) === "https:" && uri.get$scheme() === "http" && uri.get$host() !== "localhost") + uri = uri.replace$1$scheme("https"); + else if (A._asString(t3._as(t3._as(t2.window).location).protocol) === "wss:" && uri.get$scheme() === "ws" && uri.get$host() !== "localhost") + uri = uri.replace$1$scheme("wss"); fixedPath = uri.toString$0(0); fixedUri = A.Uri_parse(fixedPath); - client = fixedUri.isScheme$1("ws") || fixedUri.isScheme$1("wss") ? new A.WebSocketClient(A.AdapterWebSocketChannel$(A.BrowserWebSocket_connect(fixedUri, null))) : new A.SseSocketClient(A.SseClient$(fixedPath, "InjectedClient")); - $async$goto = J.$eq$(self.$dartModuleStrategy, "require-js") ? 2 : 4; + client = fixedUri.isScheme$1("ws") || fixedUri.isScheme$1("wss") ? new A.WebSocketClient(A.HtmlWebSocketChannel$connect(fixedUri, null)) : new A.SseSocketClient(A.SseClient$(fixedPath, "InjectedClient")); + $async$goto = A._asString(t2.$dartModuleStrategy) === "require-js" ? 2 : 4; break; case 2: // then @@ -25912,40 +21611,34 @@ break; case 4: // else - if (J.$eq$(self.$dartModuleStrategy, "ddc") || J.$eq$(self.$dartModuleStrategy, "legacy")) + if (A._asString(t2.$dartModuleStrategy) === "ddc" || A._asString(t2.$dartModuleStrategy) === "legacy") restarter = new A.DdcRestarter(); else - throw A.wrapException(A.StateError$("Unknown module strategy: " + A.S(self.$dartModuleStrategy))); + throw A.wrapException(A.StateError$("Unknown module strategy: " + A.S(A.getProperty(A.staticInteropGlobalContext(), "$dartModuleStrategy", type$.String)))); case 3: // join manager = new A.ReloadingManager(client, restarter); t1.readyToRunMainCompleter = null; - self.$dartHotRestartDwds = A.allowInterop(new A.main__closure(t1, manager), type$.Promise_bool_Function_String_$opt_nullable_bool); - t2 = type$.void_Function; - self.$dartReadyToRunMain = A.allowInterop(new A.main__closure0(t1), t2); + t2.$dartHotRestartDwds = A._functionToJS2(new A.main__closure(t1, manager)); + t2.$dartReadyToRunMain = A._functionToJS0(new A.main__closure0(t1)); t1 = $.Zone__current; - t3 = Math.max(100, 1); - t4 = A.StreamController_StreamController(null, null, false, type$.DebugEvent); - t5 = A.StreamController_StreamController(null, null, false, type$.List_DebugEvent); - debugEventController = new A.BatchedStreamController(t3, 1000, t4, t5, new A._AsyncCompleter(new A._Future(t1, type$._Future_bool), type$._AsyncCompleter_bool), type$.BatchedStreamController_DebugEvent); + t4 = Math.max(100, 1); + t5 = A.StreamController_StreamController(null, null, false, type$.DebugEvent); + t6 = A.StreamController_StreamController(null, null, false, type$.List_DebugEvent); + debugEventController = new A.BatchedStreamController(t4, 1000, t5, t6, new A._AsyncCompleter(new A._Future(t1, type$._Future_bool), type$._AsyncCompleter_bool), type$.BatchedStreamController_DebugEvent); t1 = A.List_List$filled(A.QueueList__computeInitialCapacity(null), null, false, type$.nullable_Result_DebugEvent); - t3 = A.ListQueue$(type$._EventRequest_dynamic); - t6 = type$.StreamQueue_DebugEvent; - debugEventController.set$__BatchedStreamController__inputQueue_A(t6._as(new A.StreamQueue(new A._ControllerStream(t4, A._instanceType(t4)._eval$1("_ControllerStream<1>")), new A.QueueList(t1, 0, 0, type$.QueueList_Result_DebugEvent), t3, t6))); + t4 = A.ListQueue$(type$._EventRequest_dynamic); + t7 = type$.StreamQueue_DebugEvent; + debugEventController.set$__BatchedStreamController__inputQueue_A(t7._as(new A.StreamQueue(new A._ControllerStream(t5, A._instanceType(t5)._eval$1("_ControllerStream<1>")), new A.QueueList(t1, 0, 0, type$.QueueList_Result_DebugEvent), t4, t7))); A.safeUnawaited(debugEventController._batchAndSendEvents$0()); - new A._ControllerStream(t5, A._instanceType(t5)._eval$1("_ControllerStream<1>")).listen$1(new A.main__closure1(client)); - self.$emitDebugEvent = A.allowInterop(new A.main__closure2(debugEventController), type$.void_Function_String_String); - self.$emitRegisterEvent = A.allowInterop(new A.main__closure3(client), type$.void_Function_String); - self.$launchDevTools = A.allowInterop(new A.main__closure4(client), t2); - client.get$stream(client).listen$2$onError(new A.main__closure5(manager), new A.main__closure6()); - if (A.boolConversionCheck(self.$dwdsEnableDevToolsLaunch)) { - t1 = window; - t1.toString; - A._EventStreamSubscription$(t1, "keydown", type$.nullable_void_Function_KeyboardEvent._as(new A.main__closure7()), false, type$.KeyboardEvent); - } - t1 = window.navigator.vendor; - t1.toString; - if (B.JSString_methods.contains$1(t1, "Google")) { + new A._ControllerStream(t6, A._instanceType(t6)._eval$1("_ControllerStream<1>")).listen$1(new A.main__closure1(client)); + t2.$emitDebugEvent = A._functionToJS2(new A.main__closure2(debugEventController)); + t2.$emitRegisterEvent = A._functionToJS1(new A.main__closure3(client)); + t2.$launchDevTools = A._functionToJS0(new A.main__closure4(client)); + client.get$stream().listen$2$onError(new A.main__closure5(manager), new A.main__closure6()); + if (A._asBool(t2.$dwdsEnableDevToolsLaunch)) + A._EventStreamSubscription$(t3._as(t2.window), "keydown", type$.nullable_void_Function_JavaScriptObject._as(new A.main__closure7()), false, t3); + if (A._isChromium()) { t1 = client.get$sink(); t2 = $.$get$serializers(); t3 = new A.ConnectRequestBuilder(); @@ -25960,31 +21653,25 @@ }); return A._asyncStartSync($async$call$0, $async$completer); }, - $signature: 33 + $signature: 51 }; A.main__closure.prototype = { call$2(runId, pauseIsolatesOnStart) { - var t1, t2, t3; + var t1, t2; A._asString(runId); A._asBoolQ(pauseIsolatesOnStart); t1 = this.manager; - t2 = type$.bool; if (pauseIsolatesOnStart === true) { - t3 = new A._Future($.Zone__current, type$._Future_dynamic); - this._box_0.readyToRunMainCompleter = new A._AsyncCompleter(t3, type$._AsyncCompleter_dynamic); - return A.toPromise(t1.hotRestart$2$readyToRunMain$runId(t3, runId), t2); + t2 = new A._Future($.Zone__current, type$._Future_dynamic); + this._box_0.readyToRunMainCompleter = new A._AsyncCompleter(t2, type$._AsyncCompleter_dynamic); + return A.FutureOfVoidToJSPromise_get_toJS(t1.hotRestart$2$readyToRunMain$runId(t2, runId)); } else - return A.toPromise(t1.hotRestart$1$runId(runId), t2); + return A.FutureOfVoidToJSPromise_get_toJS(t1.hotRestart$1$runId(runId)); }, call$1(runId) { return this.call$2(runId, null); }, - "call*": "call$2", - $requiredArgCount: 1, - $defaultValues() { - return [null]; - }, - $signature: 68 + $signature: 52 }; A.main__closure0.prototype = { call$0() { @@ -25994,16 +21681,16 @@ return; if ((t2.future._state & 30) !== 0) return; - t2.complete$0(0); + t2.complete$0(); t1.readyToRunMainCompleter = null; }, - $signature: 0 + $signature: 2 }; A.main__closure1.prototype = { call$1(events) { var t1, t2, t3; type$.List_DebugEvent._as(events); - if (A.boolConversionCheck(self.$dartEmitDebugEvents)) { + if (A._asBool(self.$dartEmitDebugEvents)) { t1 = this.client.get$sink(); t2 = $.$get$serializers(); t3 = new A.BatchedDebugEventsBuilder(); @@ -26011,7 +21698,7 @@ A._trySendEvent(t1, B.C_JsonCodec.encode$2$toEncodable(t2.serialize$1(t3._debug_event$_build$0()), null), type$.dynamic); } }, - $signature: 69 + $signature: 53 }; A.main___closure2.prototype = { call$1(b) { @@ -26020,21 +21707,21 @@ b.get$_debug_event$_$this().set$_events(t1); return t1; }, - $signature: 70 + $signature: 54 }; A.main__closure2.prototype = { call$2(kind, eventData) { var t1, t2; A._asString(kind); A._asString(eventData); - if (A.boolConversionCheck(self.$dartEmitDebugEvents)) { + if (A._asBool(self.$dartEmitDebugEvents)) { t1 = this.debugEventController._inputController; t2 = new A.DebugEventBuilder(); type$.nullable_void_Function_DebugEventBuilder._as(new A.main___closure1(kind, eventData)).call$1(t2); A._trySendEvent(new A._StreamSinkWrapper(t1, A._instanceType(t1)._eval$1("_StreamSinkWrapper<1>")), t2._debug_event$_build$0(), type$.DebugEvent); } }, - $signature: 18 + $signature: 55 }; A.main___closure1.prototype = { call$1(b) { @@ -26044,7 +21731,7 @@ b.get$_debug_event$_$this()._eventData = this.eventData; return b; }, - $signature: 71 + $signature: 70 }; A.main__closure3.prototype = { call$1(eventData) { @@ -26056,7 +21743,7 @@ type$.nullable_void_Function_RegisterEventBuilder._as(new A.main___closure0(eventData)).call$1(t3); A._trySendEvent(t1, B.C_JsonCodec.encode$2$toEncodable(t2.serialize$1(t3._register_event$_build$0()), null), type$.dynamic); }, - $signature: 26 + $signature: 57 }; A.main___closure0.prototype = { call$1(b) { @@ -26065,17 +21752,13 @@ b.get$_register_event$_$this()._register_event$_eventData = this.eventData; return b; }, - $signature: 73 + $signature: 58 }; A.main__closure4.prototype = { call$0() { - var t2, t3, - t1 = window.navigator.vendor; - t1.toString; - if (!B.JSString_methods.contains$1(t1, "Google")) { - t1 = window; - t1.toString; - B.Window_methods.alert$1(t1, "Dart DevTools is only supported on Chromium based browsers."); + var t1, t2, t3; + if (!A._isChromium()) { + type$.JavaScriptObject._as(self.window).alert("Dart DevTools is only supported on Chromium based browsers."); return; } t1 = this.client.get$sink(); @@ -26084,17 +21767,18 @@ type$.nullable_void_Function_DevToolsRequestBuilder._as(new A.main___closure()).call$1(t3); A._trySendEvent(t1, B.C_JsonCodec.encode$2$toEncodable(t2.serialize$1(t3._devtools_request$_build$0()), null), type$.dynamic); }, - $signature: 0 + $signature: 2 }; A.main___closure.prototype = { call$1(b) { - var t1 = A._asStringQ(self.$dartAppId); - b.get$_devtools_request$_$this()._devtools_request$_appId = t1; - t1 = A._asStringQ(self.$dartAppInstanceId); + var t1 = self, + t2 = A._asString(t1.$dartAppId); + b.get$_devtools_request$_$this()._devtools_request$_appId = t2; + t1 = A._asStringQ(t1.$dartAppInstanceId); b.get$_devtools_request$_$this()._devtools_request$_instanceId = t1; return b; }, - $signature: 74 + $signature: 59 }; A.main__closure5.prototype = { call$1(serialized) { @@ -26103,7 +21787,7 @@ $call$body$main__closure(serialized) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), - $async$self = this, $alert, t1, win, t2, t3, $event; + $async$self = this, t1, t2, $alert, $event; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -26111,22 +21795,24 @@ switch ($async$goto) { case 0: // Function start - $event = $.$get$serializers().deserialize$1(B.C_JsonCodec.decode$2$reviver(0, serialized, null)); + $event = $.$get$serializers().deserialize$1(B.C_JsonCodec.decode$2$reviver(serialized, null)); $async$goto = $event instanceof A._$BuildResult ? 2 : 4; break; case 2: // then - $async$goto = J.$eq$(self.$dartReloadConfiguration, "ReloadConfiguration.liveReload") ? 5 : 7; + t1 = self; + $async$goto = A._asString(t1.$dartReloadConfiguration) === "ReloadConfiguration.liveReload" ? 5 : 7; break; case 5: // then - type$.Location._as(window.location).reload(); + t2 = type$.JavaScriptObject; + t2._as(t2._as(t1.window).location).reload(); // goto join $async$goto = 6; break; case 7: // else - $async$goto = J.$eq$(self.$dartReloadConfiguration, "ReloadConfiguration.hotRestart") ? 8 : 10; + $async$goto = A._asString(t1.$dartReloadConfiguration) === "ReloadConfiguration.hotRestart" ? 8 : 10; break; case 8: // then @@ -26139,7 +21825,7 @@ break; case 10: // else - if (J.$eq$(self.$dartReloadConfiguration, "ReloadConfiguration.hotReload")) + if (A._asString(t1.$dartReloadConfiguration) === "ReloadConfiguration.hotReload") A.print("Hot reload is currently unsupported. Ignoring change."); case 9: // join @@ -26153,32 +21839,17 @@ if ($event instanceof A._$DevToolsResponse) { if (!$event.success) { $alert = "DevTools failed to open with:\n" + A.S($event.error); - if ($event.promptExtension) { - t1 = window; - t1.toString; - t1 = B.Window_methods.confirm$1(t1, $alert); - } else - t1 = false; - if (t1) { - win = window.open("https://goo.gle/dart-debug-extension", "_blank"); - A._DOMWindowCrossFrame__createSafe(win); - } else { - t1 = window; - t1.toString; - B.Window_methods.alert$1(t1, $alert); - } + t1 = $event.promptExtension && A._asBool(type$.JavaScriptObject._as(self.window).confirm($alert)); + t2 = type$.JavaScriptObject; + if (t1) + type$.nullable_JavaScriptObject._as(t2._as(self.window).open("https://goo.gle/dart-debug-extension", "_blank")); + else + t2._as(self.window).alert($alert); } } else if ($event instanceof A._$RunRequest) A.runMain(); - else if ($event instanceof A._$ErrorResponse) { - window.toString; - t1 = $event.error; - t2 = $event.stackTrace; - t3 = typeof console != "undefined"; - t3.toString; - if (t3) - window.console.error("Error from backend:\n\nError: " + t1 + "\n\nStack Trace:\n" + t2); - } + else if ($event instanceof A._$ErrorResponse) + type$.JavaScriptObject._as(self.window).reportError("Error from backend:\n\nError: " + $event.error + "\n\nStack Trace:\n" + $event.stackTrace); case 3: // join // implicit return @@ -26187,7 +21858,7 @@ }); return A._asyncStartSync($async$call$1, $async$completer); }, - $signature: 75 + $signature: 60 }; A.main__closure6.prototype = { call$1(error) { @@ -26196,44 +21867,25 @@ }; A.main__closure7.prototype = { call$1(e) { - var t1; - if (type$.KeyboardEvent._is(e)) - if (B.JSArray_methods.contains$1(B.List_2ZF, e.key)) { - t1 = e.altKey; - t1.toString; - if (t1) { - t1 = e.ctrlKey; - t1.toString; - if (!t1) { - t1 = e.metaKey; - t1.toString; - t1 = !t1; - } else - t1 = false; - } else - t1 = false; - } else - t1 = false; - else - t1 = false; - if (t1) { + if (B.JSArray_methods.contains$1(B.List_2ZF, A._asString(e.key)) && A._asBool(e.altKey) && !A._asBool(e.ctrlKey) && !A._asBool(e.metaKey)) { e.preventDefault(); - self.$launchDevTools.call$0(); + type$.JavaScriptFunction._as(self.$launchDevTools).call(); } }, - $signature: 14 + $signature: 1 }; A.main__closure8.prototype = { call$1(b) { - var t1 = A._asStringQ(self.$dartAppId); - b.get$_connect_request$_$this()._appId = t1; - t1 = A._asStringQ(self.$dartAppInstanceId); - b.get$_connect_request$_$this()._instanceId = t1; - t1 = A._asStringQ(self.$dartEntrypointPath); + var t1 = self, + t2 = A._asString(t1.$dartAppId); + b.get$_connect_request$_$this()._appId = t2; + t2 = A._asStringQ(t1.$dartAppInstanceId); + b.get$_connect_request$_$this()._instanceId = t2; + t1 = A._asString(t1.$dartEntrypointPath); b.get$_connect_request$_$this()._entrypointPath = t1; return b; }, - $signature: 76 + $signature: 61 }; A.main_closure0.prototype = { call$2(error, stackTrace) { @@ -26241,102 +21893,48 @@ type$.StackTrace._as(stackTrace); A.print("Unhandled error detected in the injected client.js script.\n\nYou can disable this script in webdev by passing --no-injected-client if it\nis preventing your app from loading, but note that this will also prevent\nall debugging and hot reload/restart functionality from working.\n\nThe original error is below, please file an issue at\nhttps://github.com/dart-lang/webdev/issues/new and attach this output:\n\n" + A.S(error) + "\n" + stackTrace.toString$0(0) + "\n"); }, - $signature: 11 + $signature: 9 }; A._launchCommunicationWithDebugExtension_closure.prototype = { call$1(b) { - var t2, - t1 = A._asStringQ(self.$dartEntrypointPath); - b.get$_$this()._appEntrypointPath = t1; - t1 = window; - t1.toString; - t1 = A._asStringQ(A.JsObject_JsObject$fromBrowserObject(t1).$index(0, "$dartAppId")); - b.get$_$this()._debug_info$_appId = t1; - t1 = A._asStringQ(self.$dartAppInstanceId); - b.get$_$this()._appInstanceId = t1; - t1 = type$.Location; - t2 = B.Location_methods.get$origin(t1._as(window.location)); - b.get$_$this()._appOrigin = t2; - t1 = t1._as(window.location).href; - t1.toString; - b.get$_$this()._appUrl = t1; - t1 = A._authUrl(); - b.get$_$this()._authUrl = t1; - t1 = window; - t1.toString; - t1 = A._asStringQ(A.JsObject_JsObject$fromBrowserObject(t1).$index(0, "$dartExtensionUri")); - b.get$_$this()._extensionUrl = t1; - t1 = window; - t1.toString; - t1 = A._asBoolQ(A.JsObject_JsObject$fromBrowserObject(t1).$index(0, "$isInternalBuild")); - b.get$_$this()._isInternalBuild = t1; - t1 = window; - t1.toString; - t1 = A._asBoolQ(A.JsObject_JsObject$fromBrowserObject(t1).$index(0, "$isFlutterApp")); - b.get$_$this()._isFlutterApp = t1; - t1 = A._asStringQ(self.$dartWorkspaceName); + var t3, + t1 = self, + t2 = A._asString(t1.$dartEntrypointPath); + b.get$_$this()._appEntrypointPath = t2; + t2 = type$.JavaScriptObject; + t3 = A._asStringQ(t2._as(t1.window).$dartAppId); + b.get$_$this()._debug_info$_appId = t3; + t3 = A._asStringQ(t1.$dartAppInstanceId); + b.get$_$this()._appInstanceId = t3; + t3 = A._asString(t2._as(t2._as(t1.window).location).origin); + b.get$_$this()._appOrigin = t3; + t3 = A._asString(t2._as(t2._as(t1.window).location).href); + b.get$_$this()._appUrl = t3; + t3 = A._authUrl(); + b.get$_$this()._authUrl = t3; + t3 = A._asStringQ(t2._as(t1.window).$dartExtensionUri); + b.get$_$this()._extensionUrl = t3; + t3 = A._asBoolQ(t2._as(t1.window).$isInternalBuild); + b.get$_$this()._isInternalBuild = t3; + t2 = A._asBoolQ(t2._as(t1.window).$isFlutterApp); + b.get$_$this()._isFlutterApp = t2; + t1 = A._asStringQ(t1.$dartWorkspaceName); b.get$_$this()._workspaceName = t1; return b; }, - $signature: 77 + $signature: 62 }; - A._listenForDebugExtensionAuthRequest_closure.prototype = { - call$1($event) { - return this.$call$body$_listenForDebugExtensionAuthRequest_closure(type$.Event._as($event)); - }, - $call$body$_listenForDebugExtensionAuthRequest_closure($event) { - var $async$goto = 0, - $async$completer = A._makeAsyncAwaitCompleter(type$.Null), - $async$returnValue, t1, $async$temp1, $async$temp2, $async$temp3, $async$temp4; - var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { - if ($async$errorCode === 1) - return A._asyncRethrow($async$result, $async$completer); - while (true) - switch ($async$goto) { - case 0: - // Function start - type$.MessageEvent._as($event); - if (typeof new A._AcceptStructuredCloneDart2Js([], []).convertNativeToDart_AcceptStructuredClone$2$mustCopy($event.data, true) != "string") { - // goto return - $async$goto = 1; - break; - } - if (A._asString(new A._AcceptStructuredCloneDart2Js([], []).convertNativeToDart_AcceptStructuredClone$2$mustCopy($event.data, true)) !== "dart-auth-request") { - // goto return - $async$goto = 1; - break; - } - $async$goto = A._authUrl() != null ? 3 : 4; - break; - case 3: - // then - t1 = A._authUrl(); - t1.toString; - $async$temp1 = self.window.top.document; - $async$temp2 = A; - $async$temp3 = "dart-auth-response"; - $async$temp4 = A; - $async$goto = 5; - return A._asyncAwait(A._authenticateUser(t1), $async$call$1); - case 5: - // returning from await. - $async$temp1.dispatchEvent($async$temp2.CustomEvent_CustomEvent($async$temp3, $async$temp4.S($async$result))); - case 4: - // join - case 1: - // return - return A._asyncReturn($async$returnValue, $async$completer); - } - }); - return A._asyncStartSync($async$call$1, $async$completer); + A._handleAuthRequest_closure.prototype = { + call$1(isAuthenticated) { + return A._dispatchEvent("dart-auth-response", "" + A._asBool(isAuthenticated)); }, - $signature: 78 + $signature: 63 }; A.DdcRestarter.prototype = { restart$2$readyToRunMain$runId(readyToRunMain, runId) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.bool), - $async$returnValue, t2, t3, dartLibrary, t1; + $async$returnValue, t1, t2, t3, t4; var $async$restart$2$readyToRunMain$runId = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -26344,25 +21942,13 @@ switch ($async$goto) { case 0: // Function start - dartLibrary = globalThis.dart_library; - t1 = runId == null; - if (t1 && readyToRunMain == null) { - t1 = dartLibrary == null ? type$.Object._as(dartLibrary) : dartLibrary; - t1.reload(); - } else { - t2 = type$.Object; - t3 = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, t2); - if (!t1) - t3.$indexSet(0, "runId", runId); - if (readyToRunMain != null) - t3.$indexSet(0, "readyToRunMain", A.toPromise(readyToRunMain, type$.dynamic)); - t1 = dartLibrary == null ? t2._as(dartLibrary) : dartLibrary; - t1.reload(A.jsify(t3)); - } - t1 = new A._Future($.Zone__current, type$._Future_bool); - t2 = window; - t2.toString; - $async$returnValue = t1.then$1$1(0, new A.DdcRestarter_restart_closure(A._EventStreamSubscription$(t2, "message", type$.nullable_void_Function_MessageEvent._as(new A.DdcRestarter_restart_closure0(new A._AsyncCompleter(t1, type$._AsyncCompleter_bool))), false, type$.MessageEvent)), type$.bool); + t1 = self; + t2 = type$.JavaScriptObject; + t3 = t2._as(t1.dart_library); + t4 = readyToRunMain == null ? null : A.FutureOfVoidToJSPromise_get_toJS(readyToRunMain); + t3.reload(runId, t4); + t4 = new A._Future($.Zone__current, type$._Future_bool); + $async$returnValue = t4.then$1$1(new A.DdcRestarter_restart_closure(A._EventStreamSubscription$(t2._as(t1.window), "message", type$.nullable_void_Function_JavaScriptObject._as(new A.DdcRestarter_restart_closure0(new A._AsyncCompleter(t4, type$._AsyncCompleter_bool))), false, t2)), type$.bool); // goto return $async$goto = 1; break; @@ -26377,25 +21963,20 @@ }; A.DdcRestarter_restart_closure0.prototype = { call$1($event) { - var t1, - message = new A._AcceptStructuredCloneDart2Js([], []).convertNativeToDart_AcceptStructuredClone$2$mustCopy(type$.MessageEvent._as($event).data, true); - if (type$.Map_dynamic_dynamic._is(message)) { - t1 = J.getInterceptor$asx(message); - t1 = J.$eq$(t1.$index(message, "type"), "DDC_STATE_CHANGE") && J.$eq$(t1.$index(message, "state"), "restart_end"); - } else - t1 = false; - if (t1) - this.reloadCompleter.complete$1(0, true); + var t1 = $event.data, + message = t1 == null ? null : A.dartify(t1); + if (type$.Map_dynamic_dynamic._is(message) && J.$eq$(message.$index(0, "type"), "DDC_STATE_CHANGE") && J.$eq$(message.$index(0, "state"), "restart_end")) + this.reloadCompleter.complete$1(true); }, - $signature: 79 + $signature: 1 }; A.DdcRestarter_restart_closure.prototype = { call$1(value) { A._asBool(value); - this.sub.cancel$0(0); + this.sub.cancel$0(); return value; }, - $signature: 80 + $signature: 64 }; A.ReloadingManager.prototype = { hotRestart$2$readyToRunMain$runId(readyToRunMain, runId) { @@ -26444,37 +22025,16 @@ t1.add$1(0, B.C_JsonCodec.encode$2$toEncodable(t2.serialize$1(new A.IsolateStartBuilder()._isolate_events$_build$0()), null)); } }; - A.Promise.prototype = {}; - A.toPromise_closure.prototype = { - call$2(resolve, reject) { - this.T._eval$1("~(0)")._as(resolve); - type$.void_Function_dynamic._as(reject); - this.future.then$1$1(0, resolve, type$.void).catchError$1(reject); - }, - $signature() { - return this.T._eval$1("~(~(0),~(@))"); - } - }; - A.toFuture_closure.prototype = { - call$1(e) { - var t1 = e == null ? type$.Object._as(e) : e; - return this.completer.completeError$2(t1, A.StackTrace_current()); - }, - $signature: 7 - }; - A.RequireLoader.prototype = {}; A.HotReloadFailedException.prototype = { toString$0(_) { return "HotReloadFailedException: '" + this._s + "'"; } }; - A.JsError.prototype = {}; - A.JsMap.prototype = {}; A.RequireRestarter.prototype = { restart$2$readyToRunMain$runId(readyToRunMain, runId) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.bool), - $async$returnValue, $async$self = this, newDigests, modulesToLoad, t4, t5, t6, t7, line, toZone, t8, result, developer, t1, t2, t3; + $async$returnValue, $async$self = this, newDigests, modulesToLoad, t3, t4, t5, t6, line, toZone, t7, result, t1, t2; var $async$restart$2$readyToRunMain$runId = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -26482,74 +22042,65 @@ switch ($async$goto) { case 0: // Function start - developer = self.$loadModuleConfig.call$1("dart_sdk").developer; - t1 = developer == null; - t2 = t1 ? type$.Object._as(developer) : developer; - t3 = type$.Object; - $async$goto = A._asBool(t3._as(t2._extensions).containsKey("ext.flutter.disassemble")) ? 3 : 4; - break; + t1 = self; + t2 = type$.JavaScriptObject; + $async$goto = 3; + return A._asyncAwait(A.SdkDeveloperExtension_maybeInvokeFlutterDisassemble(t2._as(t2._as(t1.$loadModuleConfig("dart_sdk")).developer)), $async$restart$2$readyToRunMain$runId); case 3: - // then - t1 = t1 ? t3._as(developer) : developer; - $async$goto = 5; - return A._asyncAwait(A.toFuture(type$.Promise_void._as(t1.invokeExtension("ext.flutter.disassemble", "{}")), type$.void), $async$restart$2$readyToRunMain$runId); - case 5: // returning from await. - case 4: - // join - $async$goto = 6; + $async$goto = 4; return A._asyncAwait($async$self._getDigests$0(), $async$restart$2$readyToRunMain$runId); - case 6: + case 4: // returning from await. newDigests = $async$result; modulesToLoad = A._setArrayType([], type$.JSArray_String); - for (t1 = J.getInterceptor$x(newDigests), t2 = J.get$iterator$ax(t1.get$keys(newDigests)), t4 = $.___lastKnownDigests.__late_helper$_name, t5 = type$.Location; t2.moveNext$0();) { - t6 = t2.get$current(t2); - t7 = $.___lastKnownDigests.__late_helper$_value; - if (t7 === $.___lastKnownDigests) + for (t3 = newDigests.get$keys(), t3 = t3.get$iterator(t3), t4 = $.RequireRestarter____lastKnownDigests._name; t3.moveNext$0();) { + t5 = t3.get$current(); + t6 = $.RequireRestarter____lastKnownDigests.__late_helper$_value; + if (t6 === $.RequireRestarter____lastKnownDigests) A.throwExpression(A.LateError$fieldNI(t4)); - if (!J.containsKey$1$x(t7, t6)) { - line = "Error during script reloading, refreshing the page. \nUnable to find an existing digest for module: " + t6 + "."; + if (!t6.containsKey$1(t5)) { + line = "Error during script reloading, refreshing the page. \nUnable to find an existing digest for module: " + t5 + "."; toZone = $.printToZone; if (toZone == null) A.printString(line); else toZone.call$1(line); - t5._as(window.location).reload(); + t2._as(t2._as(t1.window).location).reload(); } else { - t7 = $.___lastKnownDigests.__late_helper$_value; - if (t7 === $.___lastKnownDigests) + t6 = $.RequireRestarter____lastKnownDigests.__late_helper$_value; + if (t6 === $.RequireRestarter____lastKnownDigests) A.throwExpression(A.LateError$fieldNI(t4)); - if (!J.$eq$(J.$index$asx(t7, t6), t1.$index(newDigests, t6))) { - t7 = $.___lastKnownDigests.__late_helper$_value; - if (t7 === $.___lastKnownDigests) + if (!J.$eq$(t6.$index(0, t5), newDigests.$index(0, t5))) { + t6 = $.RequireRestarter____lastKnownDigests.__late_helper$_value; + if (t6 === $.RequireRestarter____lastKnownDigests) A.throwExpression(A.LateError$fieldNI(t4)); - t8 = t1.$index(newDigests, t6); - t8.toString; - J.$indexSet$ax(t7, t6, t8); - B.JSArray_methods.add$1(modulesToLoad, t6); + t7 = newDigests.$index(0, t5); + t7.toString; + t6.$indexSet(0, t5, t7); + B.JSArray_methods.add$1(modulesToLoad, t5); } } } - $async$goto = modulesToLoad.length !== 0 ? 7 : 9; + $async$goto = modulesToLoad.length !== 0 ? 5 : 7; break; - case 7: + case 5: // then $async$self._updateGraph$0(); - $async$goto = 10; + $async$goto = 8; return A._asyncAwait($async$self._reload$1(modulesToLoad), $async$restart$2$readyToRunMain$runId); - case 10: + case 8: // returning from await. result = $async$result; // goto join - $async$goto = 8; + $async$goto = 6; break; - case 9: + case 7: // else result = true; - case 8: + case 6: // join - t3._as(self.$loadModuleConfig.call$1("dart_sdk").dart).hotRestart(); + t2._as(t2._as(t1.$loadModuleConfig("dart_sdk")).dart).hotRestart(); A.safeUnawaited($async$self._runMainWhenReady$1(readyToRunMain)); $async$returnValue = result; // goto return @@ -26592,7 +22143,7 @@ _getDigests$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Map_String_String), - $async$returnValue, t1, $async$temp1, $async$temp2, $async$temp3; + $async$returnValue, t1, $async$temp1, $async$temp2; var $async$_getDigests$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -26601,14 +22152,13 @@ case 0: // Function start t1 = type$.String; - $async$temp1 = J; - $async$temp2 = type$.Map_dynamic_dynamic; - $async$temp3 = A; + $async$temp1 = type$.Map_dynamic_dynamic; + $async$temp2 = A; $async$goto = 3; - return A._asyncAwait(A.HttpRequest_request(J.get$digestsPath$x(self.$requireLoader), "GET", "json", null), $async$_getDigests$0); + return A._asyncAwait(A.HttpRequest_request(A._asString(type$.JavaScriptObject._as(self.$requireLoader).digestsPath), "GET", "json", null), $async$_getDigests$0); case 3: // returning from await. - $async$returnValue = $async$temp1.cast$2$0$ax($async$temp2._as($async$temp3._convertNativeToDart_XHR_Response($async$result.response)), t1, t1); + $async$returnValue = $async$temp1._as($async$temp2.dartify($async$result.response)).cast$2$0(0, t1, t1); // goto return $async$goto = 1; break; @@ -26630,7 +22180,7 @@ switch ($async$goto) { case 0: // Function start - $async$temp1 = $.___lastKnownDigests; + $async$temp1 = $.RequireRestarter____lastKnownDigests; $async$goto = 2; return A._asyncAwait($async$self._getDigests$0(), $async$_initialize$0); case 2: @@ -26645,8 +22195,14 @@ _moduleParents$1(module) { var t1; A._asString(module); - t1 = J.$get$1$x(J.get$moduleParentsGraph$x(self.$requireLoader), module); - t1 = t1 == null ? null : J.cast$1$0$ax(t1, type$.String); + t1 = type$.JavaScriptObject; + t1 = type$.nullable_JSArray_nullable_Object._as(t1._as(t1._as(self.$requireLoader).moduleParentsGraph).get(module)); + if (t1 == null) + t1 = null; + else { + t1 = A.JSArrayExtension_toDartIterable(t1, type$.String); + t1 = A.List_List$of(t1, true, t1.$ti._eval$1("ListIterable.E")); + } return t1 == null ? A._setArrayType([], type$.JSArray_String) : t1; }, _moduleTopologicalCompare$2(module1, module2) { @@ -26672,7 +22228,7 @@ _reload$body$RequireRestarter(modules) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.bool), - $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, reloadedModules, previousModuleId, moduleId, parentIds, childModule, e, t2, t3, t4, t5, t6, exception, t1, $async$exception; + $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, reloadedModules, moduleId, parentIds, e, t4, t5, t6, t7, t8, _this, parentIds0, result, exception, _box_0, t1, t2, dart, t3, $async$exception; var $async$_reload$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; @@ -26682,13 +22238,17 @@ switch ($async$goto) { case 0: // Function start - t1 = $async$self._running.future; - $async$goto = (t1._state & 30) === 0 ? 3 : 4; + _box_0 = {}; + t1 = self; + t2 = type$.JavaScriptObject; + dart = t2._as(t2._as(t1.$loadModuleConfig("dart_sdk")).dart); + t3 = $async$self._running.future; + $async$goto = (t3._state & 30) === 0 ? 3 : 4; break; case 3: // then $async$goto = 5; - return A._asyncAwait(t1, $async$_reload$1); + return A._asyncAwait(t3, $async$_reload$1); case 5: // returning from await. $async$returnValue = $async$result; @@ -26700,52 +22260,66 @@ $async$self.set$_running(new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_bool), type$._AsyncCompleter_bool)); reloadedModules = 0; $async$handler = 7; - t1 = $async$self.__RequireRestarter__dirtyModules_A; - t1 === $ && A.throwLateFieldNI("_dirtyModules"); - t1.addAll$1(0, modules); - previousModuleId = null; - t1 = $async$self.get$_moduleTopologicalCompare(), t2 = type$.String, t3 = type$.JSArray_String, t4 = type$.Object, t5 = type$.dynamic_Function; + t3 = $async$self.__RequireRestarter__dirtyModules_A; + t3 === $ && A.throwLateFieldNI("_dirtyModules"); + t3.addAll$1(0, modules); + _box_0.previousModuleId = null; + t3 = $async$self.get$_moduleTopologicalCompare(), t4 = type$.String, t5 = type$.nullable_JSArray_nullable_Object, t6 = type$.JSArray_String, t7 = A._callDartFunctionFast0; case 10: // for condition - if (!(t6 = $async$self.__RequireRestarter__dirtyModules_A, t6._root != null)) { + if (!(t8 = $async$self.__RequireRestarter__dirtyModules_A, t8._root != null)) { // goto after for $async$goto = 11; break; } - if (t6._count === 0) + if (t8._count === 0) A.throwExpression(A.IterableElementError_noElement()); - moduleId = t6.get$_collection$_first().key; + moduleId = t8.get$_collection$_first().key; $async$self.__RequireRestarter__dirtyModules_A.remove$1(0, moduleId); - t6 = A._asString(moduleId); - t6 = J.$get$1$x(J.get$moduleParentsGraph$x(self.$requireLoader), t6); - t6 = t6 == null ? null : J.cast$1$0$ax(t6, t2); - parentIds = t6 == null ? A._setArrayType([], t3) : t6; - $async$goto = J.get$isEmpty$asx(parentIds) ? 12 : 14; + _this = A._asString(moduleId); + t8 = t5._as(t2._as(t2._as(t1.$requireLoader).moduleParentsGraph).get(_this)); + if (t8 == null) + parentIds0 = null; + else { + t8 = A.JSArrayExtension_toDartIterable(t8, t4); + t8 = A.List_List$of(t8, true, t8.$ti._eval$1("ListIterable.E")); + parentIds0 = t8; + } + parentIds = parentIds0 == null ? A._setArrayType([], t6) : parentIds0; + $async$goto = J.get$length$asx(parentIds) === 0 ? 12 : 14; break; case 12: // then - childModule = t4._as(self.$loadModuleConfig.call$1("dart_sdk").dart).getModuleLibraries(previousModuleId); - self.$dartRunMain = A.allowInterop(new A.RequireRestarter__reload_closure(childModule), t5); + t8 = new A.RequireRestarter__reload_closure(_box_0, dart); + if (typeof t8 == "function") + A.throwExpression(A.ArgumentError$("Attempting to rewrap a JS function.", null)); + result = function(_call, f) { + return function() { + return _call(f); + }; + }(t7, t8); + result[$.$get$DART_CLOSURE_PROPERTY_NAME()] = t8; + t1.$dartRunMain = result; // goto join $async$goto = 13; break; case 14: // else - t6 = reloadedModules; - if (typeof t6 !== "number") { - $async$returnValue = t6.$add(); + t8 = reloadedModules; + if (typeof t8 !== "number") { + $async$returnValue = t8.$add(); // goto return $async$goto = 1; break; } - reloadedModules = t6 + 1; + reloadedModules = t8 + 1; $async$goto = 15; return A._asyncAwait($async$self._reloadModule$1(moduleId), $async$_reload$1); case 15: // returning from await. - J.sort$1$ax(parentIds, t1); + J.sort$1$ax(parentIds, t3); $async$self.__RequireRestarter__dirtyModules_A.addAll$1(0, parentIds); - previousModuleId = moduleId; + _box_0.previousModuleId = moduleId; case 13: // join // goto for condition @@ -26754,7 +22328,7 @@ case 11: // after for A.print(A.S(reloadedModules) + " module(s) were hot-reloaded."); - $async$self._running.complete$1(0, true); + $async$self._running.complete$1(true); $async$handler = 2; // goto after finally $async$goto = 9; @@ -26763,12 +22337,12 @@ // catch $async$handler = 6; $async$exception = $async$currentError; - t1 = A.unwrapException($async$exception); - if (t1 instanceof A.HotReloadFailedException) { - e = t1; + t3 = A.unwrapException($async$exception); + if (t3 instanceof A.HotReloadFailedException) { + e = t3; A.print("Error during script reloading. Firing full page reload. " + A.S(e)); - type$.Location._as(window.location).reload(); - $async$self._running.complete$1(0, false); + t2._as(t2._as(t1.window).location).reload(); + $async$self._running.complete$1(false); } else throw $async$exception; // goto after finally @@ -26799,21 +22373,24 @@ var t1 = new A._Future($.Zone__current, type$._Future_dynamic), completer = new A._AsyncCompleter(t1, type$._AsyncCompleter_dynamic), stackTrace = A.StackTrace_current(); - J.forceLoadModule$3$x(self.$requireLoader, moduleId, A.allowInterop(type$.void_Function_$opt_dynamic._as(completer.get$complete(completer)), type$.void_Function), A.allowInterop(new A.RequireRestarter__reloadModule_closure(completer, stackTrace), type$.void_Function_JsError)); + type$.JavaScriptObject._as(self.$requireLoader).forceLoadModule(moduleId, A._functionToJS0(new A.RequireRestarter__reloadModule_closure(completer)), A._functionToJS1(new A.RequireRestarter__reloadModule_closure0(completer, stackTrace))); return t1; }, _updateGraph$0() { - var i, t2, t3, _i, - t1 = type$.String, - stronglyConnectedComponents = A.stronglyConnectedComponents(A.List_List$from(self.Array.from(J.keys$0$x(J.get$moduleParentsGraph$x(self.$requireLoader))), true, t1), this.get$_moduleParents(), t1); - t1 = this._moduleOrdering; - if (t1._collection$_length > 0) { - t1._collection$_strings = t1._collection$_nums = t1._collection$_rest = t1._keys = null; - t1._collection$_length = 0; + var t3, stronglyConnectedComponents, i, _i, + t1 = self, + t2 = type$.JavaScriptObject; + t2 = t2._as(t2._as(t1.$requireLoader).moduleParentsGraph); + t3 = type$.String; + stronglyConnectedComponents = A.stronglyConnectedComponents(A.JSArrayExtension_toDartIterable(type$.JSArray_nullable_Object._as(t1.Array.from(type$.JSObject._as(t2.keys()))), t3), this.get$_moduleParents(), t3); + t3 = this._moduleOrdering; + if (t3._collection$_length > 0) { + t3._strings = t3._nums = t3._collection$_rest = t3._keys = null; + t3._collection$_length = 0; } for (i = 0; i < stronglyConnectedComponents.length; ++i) - for (t2 = stronglyConnectedComponents[i], t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) - t1.$indexSet(0, t2[_i], i); + for (t1 = stronglyConnectedComponents[i], t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) + t3.$indexSet(0, t1[_i], i); }, set$__RequireRestarter__dirtyModules_A(__RequireRestarter__dirtyModules_A) { this.__RequireRestarter__dirtyModules_A = type$.SplayTreeSet_String._as(__RequireRestarter__dirtyModules_A); @@ -26825,41 +22402,66 @@ }; A.RequireRestarter__reload_closure.prototype = { call$0() { - var t1 = this.childModule; - t1 = J.get$first$ax(self.Object.values(t1 == null ? type$.Object._as(t1) : t1)); - if (t1 == null) - t1 = type$.Object._as(t1); - t1.main(); + var t1 = type$.JSObject._as(this.dart.getModuleLibraries(this._box_0.previousModuleId)); + t1 = A.JSArrayExtension_toDartIterable(type$.JSArray_nullable_Object._as(self.Object.values(t1)), type$.nullable_Object).get$first(0); + t1.toString; + type$.JavaScriptObject._as(t1).main(); }, - $signature: 4 + $signature: 2 }; A.RequireRestarter__reloadModule_closure.prototype = { + call$0() { + this.completer.complete$0(); + }, + $signature: 2 + }; + A.RequireRestarter__reloadModule_closure0.prototype = { call$1(e) { - this.completer.completeError$2(new A.HotReloadFailedException(J.get$message$x(type$.JsError._as(e))), this.stackTrace); + this.completer.completeError$2(new A.HotReloadFailedException(A._asString(type$.JavaScriptObject._as(e).message)), this.stackTrace); }, - $signature: 83 + $signature: 8 }; A._createScript_closure.prototype = { call$0() { - var nonce = A._findNonce(); + var t1 = type$.JavaScriptObject, + scriptElement = t1._as(t1._as(self.document).createElement("script")), + nonce = A._findNonce(); if (nonce == null) - return A.html_ScriptElement___new_tearOff$closure(); - return new A._createScript__closure(nonce); + return new A._createScript__closure(scriptElement); + return new A._createScript__closure0(scriptElement, nonce); }, - $signature: 84 + $signature: 67 }; A._createScript__closure.prototype = { call$0() { - var t1 = document.createElement("script"); + return this.scriptElement; + }, + $signature: 15 + }; + A._createScript__closure0.prototype = { + call$0() { + var t1 = this.scriptElement; t1.setAttribute("nonce", this.nonce); return t1; }, - $signature: 30 + $signature: 15 + }; + A.runMain_closure.prototype = { + call$0() { + return this.scriptElement.remove(); + }, + $signature: 0 + }; + A.JSArrayExtension_toDartIterable_closure.prototype = { + call$1(e) { + return this.T._as(A.dartify(e)); + }, + $signature() { + return this.T._eval$1("0(Object?)"); + } }; (function aliases() { - var _ = J.Interceptor.prototype; - _.super$Interceptor$toString = _.toString$0; - _ = J.LegacyJavaScriptObject.prototype; + var _ = J.LegacyJavaScriptObject.prototype; _.super$LegacyJavaScriptObject$toString = _.toString$0; _ = A._BufferingStreamSubscription.prototype; _.super$_BufferingStreamSubscription$_add = _._add$1; @@ -26868,19 +22470,6 @@ _.super$_HashMap$_containsKey = _._containsKey$1; _.super$_HashMap$_get = _._get$1; _.super$_HashMap$_set = _._set$2; - _ = A.Iterable.prototype; - _.super$Iterable$where = _.where$1; - _ = A.Object.prototype; - _.super$Object$toString = _.toString$0; - _ = A.Element.prototype; - _.super$Element$createFragment = _.createFragment$3$treeSanitizer$validator; - _ = A._SimpleNodeValidator.prototype; - _.super$_SimpleNodeValidator$allowsAttribute = _.allowsAttribute$3; - _ = A.JsObject.prototype; - _.super$JsObject$$index = _.$index; - _.super$JsObject$$indexSet = _.$indexSet; - _ = A._JsArray_JsObject_ListMixin.prototype; - _.super$_JsArray_JsObject_ListMixin$$indexSet = _.$indexSet; })(); (function installTearOffs() { var _static_2 = hunkHelpers._static_2, @@ -26891,118 +22480,98 @@ _instance_2_u = hunkHelpers._instance_2u, _instance_1_i = hunkHelpers._instance_1i, _instance_0_u = hunkHelpers._instance_0u, - _instance_1_u = hunkHelpers._instance_1u, - _instance_0_i = hunkHelpers._instance_0i; - _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 35); + _instance_1_u = hunkHelpers._instance_1u; + _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 69); _static_1(A, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 10); _static_1(A, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 10); _static_1(A, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 10); _static_0(A, "async___startMicrotaskLoop$closure", "_startMicrotaskLoop", 0); _static_1(A, "async___nullDataHandler$closure", "_nullDataHandler", 7); - _static_2(A, "async___nullErrorHandler$closure", "_nullErrorHandler", 11); + _static_2(A, "async___nullErrorHandler$closure", "_nullErrorHandler", 9); _static_0(A, "async___nullDoneHandler$closure", "_nullDoneHandler", 0); - _static(A, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 88, 0); + _static(A, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 71, 0); _static(A, "async___rootRun$closure", 4, null, ["call$1$4", "call$4"], ["_rootRun", function($self, $parent, zone, f) { return A._rootRun($self, $parent, zone, f, type$.dynamic); - }], 89, 1); + }], 72, 0); _static(A, "async___rootRunUnary$closure", 5, null, ["call$2$5", "call$5"], ["_rootRunUnary", function($self, $parent, zone, f, arg) { var t1 = type$.dynamic; return A._rootRunUnary($self, $parent, zone, f, arg, t1, t1); - }], 90, 1); - _static(A, "async___rootRunBinary$closure", 6, null, ["call$3$6", "call$6"], ["_rootRunBinary", function($self, $parent, zone, f, arg1, arg2) { - var t1 = type$.dynamic; - return A._rootRunBinary($self, $parent, zone, f, arg1, arg2, t1, t1, t1); - }], 91, 1); + }], 73, 0); + _static(A, "async___rootRunBinary$closure", 6, null, ["call$3$6"], ["_rootRunBinary"], 74, 0); _static(A, "async___rootRegisterCallback$closure", 4, null, ["call$1$4", "call$4"], ["_rootRegisterCallback", function($self, $parent, zone, f) { return A._rootRegisterCallback($self, $parent, zone, f, type$.dynamic); - }], 92, 0); + }], 75, 0); _static(A, "async___rootRegisterUnaryCallback$closure", 4, null, ["call$2$4", "call$4"], ["_rootRegisterUnaryCallback", function($self, $parent, zone, f) { var t1 = type$.dynamic; return A._rootRegisterUnaryCallback($self, $parent, zone, f, t1, t1); - }], 93, 0); + }], 76, 0); _static(A, "async___rootRegisterBinaryCallback$closure", 4, null, ["call$3$4", "call$4"], ["_rootRegisterBinaryCallback", function($self, $parent, zone, f) { var t1 = type$.dynamic; return A._rootRegisterBinaryCallback($self, $parent, zone, f, t1, t1, t1); - }], 94, 0); - _static(A, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 95, 0); - _static(A, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 96, 0); - _static(A, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 97, 0); - _static(A, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 98, 0); - _static(A, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 99, 0); - _static_1(A, "async___printToZone$closure", "_printToZone", 26); - _static(A, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 72, 0); - _instance(A._Completer.prototype, "get$completeError", 0, 1, null, ["call$2", "call$1"], ["completeError$2", "completeError$1"], 34, 0, 0); - _instance(A._AsyncCompleter.prototype, "get$complete", 1, 0, function() { - return [null]; - }, ["call$1", "call$0"], ["complete$1", "complete$0"], 51, 0, 0); - _instance_2_u(A._Future.prototype, "get$_completeError", "_completeError$2", 11); + }], 77, 0); + _static(A, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 78, 0); + _static(A, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 79, 0); + _static(A, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 80, 0); + _static(A, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 81, 0); + _static(A, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 82, 0); + _static_1(A, "async___printToZone$closure", "_printToZone", 83); + _static(A, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 56, 0); + _instance(A._Completer.prototype, "get$completeError", 0, 1, null, ["call$2", "call$1"], ["completeError$2", "completeError$1"], 16, 0, 0); + _instance_2_u(A._Future.prototype, "get$_completeError", "_completeError$2", 9); var _; - _instance_1_i(_ = A._StreamController.prototype, "get$add", "add$1", 12); - _instance(_, "get$addError", 0, 1, function() { - return [null]; - }, ["call$2", "call$1"], ["addError$2", "addError$1"], 34, 0, 0); + _instance_1_i(_ = A._StreamController.prototype, "get$add", "add$1", 11); + _instance(_, "get$addError", 0, 1, null, ["call$2", "call$1"], ["addError$2", "addError$1"], 16, 0, 0); _instance_0_u(_ = A._ControllerSubscription.prototype, "get$_onPause", "_onPause$0", 0); _instance_0_u(_, "get$_onResume", "_onResume$0", 0); _instance_0_u(_ = A._BufferingStreamSubscription.prototype, "get$_onPause", "_onPause$0", 0); _instance_0_u(_, "get$_onResume", "_onResume$0", 0); _instance_0_u(_ = A._ForwardingStreamSubscription.prototype, "get$_onPause", "_onPause$0", 0); _instance_0_u(_, "get$_onResume", "_onResume$0", 0); - _instance_1_u(_, "get$_handleData", "_handleData$1", 12); - _instance_2_u(_, "get$_handleError", "_handleError$2", 19); + _instance_1_u(_, "get$_handleData", "_handleData$1", 11); + _instance_2_u(_, "get$_handleError", "_handleError$2", 17); _instance_0_u(_, "get$_handleDone", "_handleDone$0", 0); - _static_2(A, "collection___defaultEquals$closure", "_defaultEquals0", 15); - _static_1(A, "collection___defaultHashCode$closure", "_defaultHashCode", 16); - _static_2(A, "collection_ListBase__compareAny$closure", "ListBase__compareAny", 35); - _static_1(A, "convert___defaultToEncodable$closure", "_defaultToEncodable", 1); - _static_1(A, "core__identityHashCode$closure", "identityHashCode", 16); - _static_2(A, "core__identical$closure", "identical", 15); - _static_0(A, "html_ScriptElement___new_tearOff$closure", "ScriptElement___new_tearOff", 30); - _static(A, "html__Html5NodeValidator__standardAttributeValidator$closure", 4, null, ["call$4"], ["_Html5NodeValidator__standardAttributeValidator"], 32, 0); - _static(A, "html__Html5NodeValidator__uriAttributeValidator$closure", 4, null, ["call$4"], ["_Html5NodeValidator__uriAttributeValidator"], 32, 0); - _instance_0_i(A.Node.prototype, "get$remove", "remove$0", 0); - _static_1(A, "js___convertToJS$closure", "_convertToJS", 9); - _static_1(A, "js___convertToDart$closure", "_convertToDart", 2); - _instance_2_u(_ = A.DeepCollectionEquality.prototype, "get$equals", "equals$2", 15); - _instance_1_i(_, "get$hash", "hash$1", 16); - _instance_1_u(_, "get$isValidKey", "isValidKey$1", 54); - _instance_1_u(_ = A.SseClient.prototype, "get$_onIncomingControlMessage", "_onIncomingControlMessage$1", 3); - _instance_1_u(_, "get$_onIncomingMessage", "_onIncomingMessage$1", 3); + _static_2(A, "collection___defaultEquals$closure", "_defaultEquals0", 13); + _static_1(A, "collection___defaultHashCode$closure", "_defaultHashCode", 14); + _static_1(A, "convert___defaultToEncodable$closure", "_defaultToEncodable", 4); + _static_1(A, "core__identityHashCode$closure", "identityHashCode", 14); + _static_2(A, "core__identical$closure", "identical", 13); + _instance_2_u(_ = A.DeepCollectionEquality.prototype, "get$equals", "equals$2", 13); + _instance_1_u(_, "get$hash", "hash$1", 14); + _instance_1_u(_, "get$isValidKey", "isValidKey$1", 41); + _instance_1_u(_ = A.SseClient.prototype, "get$_onIncomingControlMessage", "_onIncomingControlMessage$1", 1); + _instance_1_u(_, "get$_onIncomingMessage", "_onIncomingMessage$1", 1); _instance_0_u(_, "get$_onOutgoingDone", "_onOutgoingDone$0", 0); - _instance_1_u(_, "get$_onOutgoingMessage", "_onOutgoingMessage$1", 61); - _instance_1_u(_ = A.RequireRestarter.prototype, "get$_moduleParents", "_moduleParents$1", 81); - _instance_2_u(_, "get$_moduleTopologicalCompare", "_moduleTopologicalCompare$2", 82); + _instance_1_u(_, "get$_onOutgoingMessage", "_onOutgoingMessage$1", 48); + _instance_1_u(A.HtmlWebSocketChannel.prototype, "get$_innerListen", "_innerListen$1", 1); + _static_1(A, "client___handleAuthRequest$closure", "_handleAuthRequest", 1); + _instance_1_u(_ = A.RequireRestarter.prototype, "get$_moduleParents", "_moduleParents$1", 65); + _instance_2_u(_, "get$_moduleTopologicalCompare", "_moduleTopologicalCompare$2", 66); })(); (function inheritance() { var _mixin = hunkHelpers.mixin, - _mixinHard = hunkHelpers.mixinHard, _inherit = hunkHelpers.inherit, _inheritMany = hunkHelpers.inheritMany; _inherit(A.Object, null); - _inheritMany(A.Object, [A.JS_CONST, J.Interceptor, J.ArrayIterator, A.Iterable, A.CastIterator, A.Closure, A.MapBase, A.Error, A.SentinelValue, A.ListIterator, A.MappedIterator, A.WhereIterator, A.TakeIterator, A.SkipIterator, A.EmptyIterator, A.FixedLengthListMixin, A.UnmodifiableListMixin, A.ListBase, A.Symbol, A.MapView, A.ConstantMap, A._KeysOrValuesOrElementsIterator, A.JSInvocationMirror, A.TypeErrorDecoder, A.NullThrownFromJavaScriptException, A.ExceptionAndStackTrace, A._StackTrace, A._Required, A.LinkedHashMapCell, A.LinkedHashMapKeyIterator, A._Record, A.JSSyntaxRegExp, A._MatchImplementation, A._AllMatchesIterator, A.StringMatch, A._StringAllMatchesIterator, A._Cell, A.Rti, A._FunctionParameters, A._Type, A._TimerImpl, A._AsyncAwaitCompleter, A.AsyncError, A.TimeoutException, A._Completer, A._FutureListener, A._Future, A._AsyncCallbackEntry, A.Stream, A._StreamController, A._SyncStreamControllerDispatch, A._AsyncStreamControllerDispatch, A._BufferingStreamSubscription, A._StreamSinkWrapper, A._DelayedEvent, A._DelayedDone, A._PendingEvents, A._StreamIterator, A._ZoneFunction, A._ZoneSpecification, A._ZoneDelegate, A._Zone, A._HashMapKeyIterator, A.SetBase, A._HashSetIterator, A._LinkedHashSetCell, A._LinkedHashSetIterator, A._UnmodifiableMapMixin, A._ListQueueIterator, A._SplayTreeNode, A._SplayTree, A._SplayTreeIterator, A.Codec, A.Converter, A._Base64Encoder, A._Base64Decoder, A._JsonStringifier, A._Utf8Encoder, A._BigIntImpl, A.DateTime, A.Duration, A.OutOfMemoryError, A.StackOverflowError, A._Exception, A.FormatException, A.IntegerDivisionByZeroException, A.Null, A._StringStackTrace, A.StringBuffer, A._Uri, A.UriData, A._SimpleUri, A.CssStyleDeclarationBase, A.EventStreamProvider, A._EventStreamSubscription, A._Html5NodeValidator, A.ImmutableListMixin, A.NodeValidatorBuilder, A._SimpleNodeValidator, A._SvgNodeValidator, A.FixedSizeListIterator, A._DOMWindowCrossFrame, A._SameOriginUriPolicy, A._ValidatingTreeSanitizer, A._StructuredClone, A._AcceptStructuredClone, A.JsObject, A.NullRejectionException, A._JSRandom, A.AsyncMemoizer, A.DelegatingStreamSink, A.ErrorResult, A.ValueResult, A.StreamQueue, A._NextRequest, A._HasNextRequest, A.BuiltList, A.ListBuilder, A.BuiltListMultimap, A.ListMultimapBuilder, A.BuiltMap, A.MapBuilder, A.BuiltSet, A.SetBuilder, A.BuiltSetMultimap, A.SetMultimapBuilder, A.EnumClass, A.IndentingBuiltValueToStringHelper, A.JsonObject, A.FullType, A.BigIntSerializer, A.BoolSerializer, A.BuiltJsonSerializers, A.BuiltJsonSerializersBuilder, A.BuiltListMultimapSerializer, A.BuiltListSerializer, A.BuiltMapSerializer, A.BuiltSetMultimapSerializer, A.BuiltSetSerializer, A.DateTimeSerializer, A.DoubleSerializer, A.DurationSerializer, A.Int32Serializer, A.Int64Serializer, A.IntSerializer, A.JsonObjectSerializer, A.NullSerializer, A.NumSerializer, A.RegExpSerializer, A.StringSerializer, A.Uint8ListSerializer, A.UriSerializer, A.DefaultEquality, A.IterableEquality, A.ListEquality, A._UnorderedEquality, A._MapEntry, A.MapEquality, A.DeepCollectionEquality, A._QueueList_Object_ListMixin, A.BuildResult, A._$BuildStatusSerializer, A._$BuildResultSerializer, A.BuildResultBuilder, A.ConnectRequest, A._$ConnectRequestSerializer, A.ConnectRequestBuilder, A.DebugEvent, A.BatchedDebugEvents, A._$DebugEventSerializer, A._$BatchedDebugEventsSerializer, A.DebugEventBuilder, A.BatchedDebugEventsBuilder, A.DebugInfo, A._$DebugInfoSerializer, A.DebugInfoBuilder, A.DevToolsRequest, A.DevToolsResponse, A._$DevToolsRequestSerializer, A._$DevToolsResponseSerializer, A.DevToolsRequestBuilder, A.DevToolsResponseBuilder, A.ErrorResponse, A._$ErrorResponseSerializer, A.ErrorResponseBuilder, A.ExtensionRequest, A.ExtensionResponse, A.ExtensionEvent, A.BatchedEvents, A._$ExtensionRequestSerializer, A._$ExtensionResponseSerializer, A._$ExtensionEventSerializer, A._$BatchedEventsSerializer, A.ExtensionRequestBuilder, A.ExtensionResponseBuilder, A.ExtensionEventBuilder, A.BatchedEventsBuilder, A.IsolateExit, A.IsolateStart, A._$IsolateExitSerializer, A._$IsolateStartSerializer, A.IsolateExitBuilder, A.IsolateStartBuilder, A.RegisterEvent, A._$RegisterEventSerializer, A.RegisterEventBuilder, A.RunRequest, A._$RunRequestSerializer, A.BatchedStreamController, A.SocketClient, A.Int32, A.Int64, A._StackState, A.Level, A.LogRecord, A.Logger, A.Pool, A.PoolResource, A.StreamChannelMixin, A._GuaranteeSink, A.StreamChannelController, A.RNG, A.UuidV1, A.EventStreamProvider0, A._EventStreamSubscription0, A.BrowserWebSocket, A.WebSocketEvent, A.WebSocketException, A.WebSocketChannelException, A.DdcRestarter, A.ReloadingManager, A.HotReloadFailedException, A.RequireRestarter]); + _inheritMany(A.Object, [A.JS_CONST, J.Interceptor, J.ArrayIterator, A.Iterable, A.CastIterator, A.MapBase, A.Closure, A.Error, A.SentinelValue, A.ListIterator, A.MappedIterator, A.TakeIterator, A.SkipIterator, A.EmptyIterator, A.FixedLengthListMixin, A.UnmodifiableListMixin, A.ListBase, A.ConstantMap, A._KeysOrValuesOrElementsIterator, A.TypeErrorDecoder, A.NullThrownFromJavaScriptException, A.ExceptionAndStackTrace, A._StackTrace, A.LinkedHashMapCell, A.LinkedHashMapKeyIterator, A._Record, A.JSSyntaxRegExp, A._MatchImplementation, A._AllMatchesIterator, A.StringMatch, A._StringAllMatchesIterator, A._Cell, A._UnmodifiableNativeByteBufferView, A.Rti, A._FunctionParameters, A._Type, A._TimerImpl, A._AsyncAwaitCompleter, A.AsyncError, A._Completer, A._FutureListener, A._Future, A._AsyncCallbackEntry, A.Stream, A._StreamController, A._SyncStreamControllerDispatch, A._AsyncStreamControllerDispatch, A._BufferingStreamSubscription, A._StreamSinkWrapper, A._DelayedEvent, A._DelayedDone, A._PendingEvents, A._StreamIterator, A._ZoneFunction, A._ZoneSpecification, A._ZoneDelegate, A._Zone, A._HashMapKeyIterator, A.SetBase, A._HashSetIterator, A._LinkedHashSetCell, A._LinkedHashSetIterator, A._UnmodifiableMapMixin, A.MapView, A._ListQueueIterator, A._SplayTreeNode, A._SplayTree, A._SplayTreeIterator, A.Codec, A.Converter, A._Base64Encoder, A._Base64Decoder, A._JsonStringifier, A._Utf8Encoder, A._BigIntImpl, A.DateTime, A.Duration, A.OutOfMemoryError, A.StackOverflowError, A._Exception, A.FormatException, A.IntegerDivisionByZeroException, A.Null, A._StringStackTrace, A.StringBuffer, A._Uri, A.UriData, A._SimpleUri, A.NullRejectionException, A._JSRandom, A._JSSecureRandom, A.AsyncMemoizer, A.DelegatingStreamSink, A.ErrorResult, A.ValueResult, A.StreamQueue, A._NextRequest, A._HasNextRequest, A.BuiltList, A.ListBuilder, A.BuiltListMultimap, A.ListMultimapBuilder, A.BuiltMap, A.MapBuilder, A.BuiltSet, A.SetBuilder, A.BuiltSetMultimap, A.SetMultimapBuilder, A.EnumClass, A.IndentingBuiltValueToStringHelper, A.JsonObject, A.FullType, A.BigIntSerializer, A.BoolSerializer, A.BuiltJsonSerializers, A.BuiltJsonSerializersBuilder, A.BuiltListMultimapSerializer, A.BuiltListSerializer, A.BuiltMapSerializer, A.BuiltSetMultimapSerializer, A.BuiltSetSerializer, A.DateTimeSerializer, A.DoubleSerializer, A.DurationSerializer, A.Int32Serializer, A.Int64Serializer, A.IntSerializer, A.JsonObjectSerializer, A.NullSerializer, A.NumSerializer, A.RegExpSerializer, A.StringSerializer, A.Uint8ListSerializer, A.UriSerializer, A.DefaultEquality, A.IterableEquality, A.ListEquality, A._UnorderedEquality, A._MapEntry, A.MapEquality, A.DeepCollectionEquality, A._QueueList_Object_ListMixin, A.BuildResult, A._$BuildStatusSerializer, A._$BuildResultSerializer, A.BuildResultBuilder, A.ConnectRequest, A._$ConnectRequestSerializer, A.ConnectRequestBuilder, A.DebugEvent, A.BatchedDebugEvents, A._$DebugEventSerializer, A._$BatchedDebugEventsSerializer, A.DebugEventBuilder, A.BatchedDebugEventsBuilder, A.DebugInfo, A._$DebugInfoSerializer, A.DebugInfoBuilder, A.DevToolsRequest, A.DevToolsResponse, A._$DevToolsRequestSerializer, A._$DevToolsResponseSerializer, A.DevToolsRequestBuilder, A.DevToolsResponseBuilder, A.ErrorResponse, A._$ErrorResponseSerializer, A.ErrorResponseBuilder, A.ExtensionRequest, A.ExtensionResponse, A.ExtensionEvent, A.BatchedEvents, A._$ExtensionRequestSerializer, A._$ExtensionResponseSerializer, A._$ExtensionEventSerializer, A._$BatchedEventsSerializer, A.ExtensionRequestBuilder, A.ExtensionResponseBuilder, A.ExtensionEventBuilder, A.BatchedEventsBuilder, A.IsolateExit, A.IsolateStart, A._$IsolateExitSerializer, A._$IsolateStartSerializer, A.IsolateExitBuilder, A.IsolateStartBuilder, A.RegisterEvent, A._$RegisterEventSerializer, A.RegisterEventBuilder, A.RunRequest, A._$RunRequestSerializer, A.BatchedStreamController, A.SocketClient, A.Int32, A.Int64, A._StackState, A.Level, A.LogRecord, A.Logger, A.Pool, A.PoolResource, A.StreamChannelMixin, A._GuaranteeSink, A.StreamChannelController, A.RNG, A.UuidV1, A.EventStreamProvider, A._EventStreamSubscription, A.WebSocketChannelException, A.DdcRestarter, A.ReloadingManager, A.HotReloadFailedException, A.RequireRestarter]); _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JavaScriptBigInt, J.JavaScriptSymbol, J.JSNumber, J.JSString]); - _inheritMany(J.JavaScriptObject, [J.LegacyJavaScriptObject, J.JSArray, A.NativeByteBuffer, A.NativeTypedData, A.EventTarget, A.AccessibleNodeList, A.Blob, A.CssTransformComponent, A.CssRule, A._CssStyleDeclaration_JavaScriptObject_CssStyleDeclarationBase, A.CssStyleValue, A.Event, A.DataTransferItemList, A.DomException, A.DomImplementation, A._DomRectList_JavaScriptObject_ListMixin, A.DomRectReadOnly, A._DomStringList_JavaScriptObject_ListMixin, A.DomTokenList, A._FileList_JavaScriptObject_ListMixin, A.Gamepad, A.History, A._HtmlCollection_JavaScriptObject_ListMixin, A.ImageData, A.Location, A.MediaList, A._MidiInputMap_JavaScriptObject_MapMixin, A._MidiOutputMap_JavaScriptObject_MapMixin, A.MimeType, A._MimeTypeArray_JavaScriptObject_ListMixin, A._NodeList_JavaScriptObject_ListMixin, A.Plugin, A._PluginArray_JavaScriptObject_ListMixin, A._RtcStatsReport_JavaScriptObject_MapMixin, A.SharedArrayBuffer, A.SpeechGrammar, A._SpeechGrammarList_JavaScriptObject_ListMixin, A.SpeechRecognitionResult, A._Storage_JavaScriptObject_MapMixin, A.StyleSheet, A._TextTrackCueList_JavaScriptObject_ListMixin, A.TimeRanges, A.Touch, A._TouchList_JavaScriptObject_ListMixin, A.TrackDefaultList, A.Url, A.__CssRuleList_JavaScriptObject_ListMixin, A.__GamepadList_JavaScriptObject_ListMixin, A.__NamedNodeMap_JavaScriptObject_ListMixin, A.__SpeechRecognitionResultList_JavaScriptObject_ListMixin, A.__StyleSheetList_JavaScriptObject_ListMixin, A.KeyRange, A.Length, A._LengthList_JavaScriptObject_ListMixin, A.Number, A._NumberList_JavaScriptObject_ListMixin, A.PointList, A._StringList_JavaScriptObject_ListMixin, A.Transform, A._TransformList_JavaScriptObject_ListMixin, A.AudioBuffer, A._AudioParamMap_JavaScriptObject_MapMixin]); - _inheritMany(J.LegacyJavaScriptObject, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction, A.Promise, A.RequireLoader, A.JsError, A.JsMap]); + _inheritMany(J.JavaScriptObject, [J.LegacyJavaScriptObject, J.JSArray, A.NativeByteBuffer, A.NativeTypedData]); + _inheritMany(J.LegacyJavaScriptObject, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction]); _inherit(J.JSUnmodifiableArray, J.JSArray); _inheritMany(J.JSNumber, [J.JSInt, J.JSNumNotInt]); - _inheritMany(A.Iterable, [A._CastIterableBase, A.EfficientLengthIterable, A.MappedIterable, A.WhereIterable, A.TakeIterable, A.SkipIterable, A._KeysOrValues, A._AllMatchesIterable, A._StringAllMatchesIterable]); - _inheritMany(A._CastIterableBase, [A.CastIterable, A.__CastListBase__CastIterableBase_ListMixin]); + _inheritMany(A.Iterable, [A._CastIterableBase, A.EfficientLengthIterable, A.MappedIterable, A.TakeIterable, A.SkipIterable, A._KeysOrValues, A._AllMatchesIterable, A._StringAllMatchesIterable]); + _inherit(A.CastIterable, A._CastIterableBase); _inherit(A._EfficientLengthCastIterable, A.CastIterable); - _inherit(A._CastListBase, A.__CastListBase__CastIterableBase_ListMixin); - _inheritMany(A.Closure, [A.Closure2Args, A.Closure0Args, A.TearOffClosure, A.initHooks_closure, A.initHooks_closure1, A._AsyncRun__initializeScheduleImmediate_internalCallback, A._AsyncRun__initializeScheduleImmediate_closure, A._awaitOnObject_closure, A._Future__chainForeignFuture_closure, A._Future__propagateToListeners_handleWhenCompleteCallback_closure, A._Future_timeout_closure0, A.Stream_length_closure, A.Stream_first_closure0, A._CustomZone_bindUnaryCallback_closure, A._CustomZone_bindUnaryCallbackGuarded_closure, A._RootZone_bindUnaryCallback_closure, A._RootZone_bindUnaryCallbackGuarded_closure, A.runZonedGuarded_closure, A._CustomHashMap_closure, A.SplayTreeSet_closure, A._BigIntImpl_hashCode_finish, A._Uri__makePath_closure, A._createTables_setChars, A._createTables_setRange, A.Element_Element$html_closure, A.HttpRequest_request_closure, A._EventStreamSubscription_closure, A._EventStreamSubscription_onData_closure0, A.NodeValidatorBuilder_allowsElement_closure, A.NodeValidatorBuilder_allowsAttribute_closure, A._SimpleNodeValidator_closure, A._SimpleNodeValidator_closure0, A._TemplatingNodeValidator_closure, A._convertToJS_closure, A._convertToJS_closure0, A._wrapToDart_closure, A._wrapToDart_closure0, A._wrapToDart_closure1, A.jsify__convert, A.promiseToFuture_closure, A.promiseToFuture_closure0, A.dartify_convert, A.StreamQueue__ensureListening_closure, A.BuiltListMultimap_BuiltListMultimap_closure, A.BuiltListMultimap_hashCode_closure, A.ListMultimapBuilder_replace_closure, A.BuiltMap_BuiltMap_closure, A.BuiltMap_hashCode_closure, A.BuiltSet_hashCode_closure, A.BuiltSetMultimap_hashCode_closure, A.SetMultimapBuilder_replace_closure, A.newBuiltValueToStringHelper_closure, A.BuiltListMultimapSerializer_serialize_closure, A.BuiltListMultimapSerializer_deserialize_closure, A.BuiltListSerializer_serialize_closure, A.BuiltListSerializer_deserialize_closure, A.BuiltSetMultimapSerializer_serialize_closure, A.BuiltSetMultimapSerializer_deserialize_closure, A.BuiltSetSerializer_serialize_closure, A.BuiltSetSerializer_deserialize_closure, A.WebSocketClient_stream_closure, A.Pool__runOnRelease_closure, A.SseClient_closure0, A.SseClient_closure1, A.generateUuidV4_generateBits, A._GuaranteeSink__addError_closure, A._EventStreamSubscription_closure0, A._EventStreamSubscription_onData_closure, A.BrowserWebSocket_connect_closure, A.BrowserWebSocket_connect_closure0, A.BrowserWebSocket_connect_closure1, A.BrowserWebSocket_connect_closure2, A.AdapterWebSocketChannel_closure, A.AdapterWebSocketChannel__closure, A.AdapterWebSocketChannel__closure0, A.AdapterWebSocketChannel_closure0, A.main__closure, A.main__closure1, A.main___closure2, A.main___closure1, A.main__closure3, A.main___closure0, A.main___closure, A.main__closure5, A.main__closure6, A.main__closure7, A.main__closure8, A._launchCommunicationWithDebugExtension_closure, A._listenForDebugExtensionAuthRequest_closure, A.DdcRestarter_restart_closure0, A.DdcRestarter_restart_closure, A.toFuture_closure, A.RequireRestarter__reloadModule_closure]); - _inheritMany(A.Closure2Args, [A._CastListBase_sort_closure, A.CastMap_forEach_closure, A.ConstantMap_map_closure, A.Primitives_functionNoSuchMethod_closure, A.JsLinkedHashMap_addAll_closure, A.initHooks_closure0, A._awaitOnObject_closure0, A._wrapJsFunctionForAsync_closure, A._Future__chainForeignFuture_closure0, A._Future_timeout_closure1, A._BufferingStreamSubscription_asFuture_closure0, A.LinkedHashMap_LinkedHashMap$from_closure, A.MapBase_mapToString_closure, A._JsonStringifier_writeMap_closure, A._BigIntImpl_hashCode_combine, A.NoSuchMethodError_toString_closure, A.Uri__parseIPv4Address_error, A.Uri_parseIPv6Address_error, A.Uri_parseIPv6Address_parseHex, A._createTables_build, A.MidiInputMap_keys_closure, A.MidiOutputMap_keys_closure, A.RtcStatsReport_keys_closure, A.Storage_keys_closure, A._ValidatingTreeSanitizer_sanitizeTree_walk, A._StructuredClone_walk_closure, A._StructuredClone_walk_closure0, A._AcceptStructuredClone_walk_closure, A.AudioParamMap_keys_closure, A.StreamQueue__ensureListening_closure1, A.hashObjects_closure, A.MapBuilder_replace_closure, A.safeUnawaited_closure, A.Pool__runOnRelease_closure0, A.generateUuidV4_printDigits, A.generateUuidV4_bitsDigits, A.main__closure2, A.main_closure0, A.toPromise_closure]); - _inherit(A.CastList, A._CastListBase); - _inheritMany(A.MapBase, [A.CastMap, A.JsLinkedHashMap, A._HashMap, A._JsonMap, A._AttributeMap]); - _inheritMany(A.Error, [A.LateError, A.TypeError, A.JsNoSuchMethodError, A.UnknownJsTypeError, A._CyclicInitializationError, A.RuntimeError, A.AssertionError, A._Error, A.JsonUnsupportedObjectError, A.ArgumentError, A.NoSuchMethodError, A.UnsupportedError, A.UnimplementedError, A.StateError, A.ConcurrentModificationError, A.BuiltValueNullFieldError, A.BuiltValueNestedFieldError, A.DeserializationError]); - _inheritMany(A.Closure0Args, [A.nullFuture_closure, A._AsyncRun__scheduleImmediateJsOverride_internalCallback, A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, A._TimerImpl_internalCallback, A._TimerImpl$periodic_closure, A.Future_Future$microtask_closure, A._Future__addListener_closure, A._Future__prependListeners_closure, A._Future__chainForeignFuture_closure1, A._Future__chainCoreFutureAsync_closure, A._Future__asyncCompleteWithValue_closure, A._Future__asyncCompleteError_closure, A._Future__propagateToListeners_handleWhenCompleteCallback, A._Future__propagateToListeners_handleValueCallback, A._Future__propagateToListeners_handleError, A._Future_timeout_closure, A.Stream_length_closure0, A.Stream_first_closure, A._StreamController__subscribe_closure, A._StreamController__recordCancel_complete, A._BufferingStreamSubscription_asFuture_closure, A._BufferingStreamSubscription_asFuture__closure, A._BufferingStreamSubscription__sendError_sendError, A._BufferingStreamSubscription__sendDone_sendDone, A._PendingEvents_schedule_closure, A._cancelAndValue_closure, A._CustomZone_bindCallback_closure, A._CustomZone_bindCallbackGuarded_closure, A._rootHandleError_closure, A._RootZone_bindCallback_closure, A._RootZone_bindCallbackGuarded_closure, A.StreamQueue__ensureListening_closure0, A.Serializers_Serializers_closure, A.Serializers_Serializers_closure0, A.Serializers_Serializers_closure1, A.Serializers_Serializers_closure2, A.Serializers_Serializers_closure3, A._$serializers_closure, A._$serializers_closure0, A.BatchedStreamController__hasEventOrTimeOut_closure, A.BatchedStreamController__hasEventDuring_closure, A.Logger_Logger_closure, A.SseClient_closure, A.SseClient__closure, A.SseClient__onOutgoingMessage_closure, A.GuaranteeChannel_closure, A.GuaranteeChannel__closure, A.AdapterWebSocketChannel__closure1, A.main_closure, A.main__closure0, A.main__closure4, A.RequireRestarter__reload_closure, A._createScript_closure, A._createScript__closure]); + _inheritMany(A.MapBase, [A.CastMap, A.JsLinkedHashMap, A._HashMap, A._JsonMap]); + _inheritMany(A.Closure, [A.Closure2Args, A.Closure0Args, A.TearOffClosure, A.initHooks_closure, A.initHooks_closure1, A._AsyncRun__initializeScheduleImmediate_internalCallback, A._AsyncRun__initializeScheduleImmediate_closure, A._awaitOnObject_closure, A._Future__chainForeignFuture_closure, A._Future__propagateToListeners_handleWhenCompleteCallback_closure, A._Future_timeout_closure0, A.Stream_length_closure, A.Stream_first_closure0, A._CustomZone_bindUnaryCallback_closure, A._CustomZone_bindUnaryCallbackGuarded_closure, A._RootZone_bindUnaryCallback_closure, A._RootZone_bindUnaryCallbackGuarded_closure, A.runZonedGuarded_closure, A._CustomHashMap_closure, A.SplayTreeSet_closure, A._BigIntImpl_hashCode_finish, A._Uri__makePath_closure, A._createTables_setChars, A._createTables_setRange, A.FutureOfVoidToJSPromise_get_toJS__closure, A.jsify__convert, A.promiseToFuture_closure, A.promiseToFuture_closure0, A.dartify_convert, A.StreamQueue__ensureListening_closure, A.BuiltListMultimap_BuiltListMultimap_closure, A.BuiltListMultimap_hashCode_closure, A.ListMultimapBuilder_replace_closure, A.BuiltMap_BuiltMap_closure, A.BuiltMap_hashCode_closure, A.BuiltSet_hashCode_closure, A.BuiltSetMultimap_hashCode_closure, A.SetMultimapBuilder_replace_closure, A.newBuiltValueToStringHelper_closure, A.BuiltListMultimapSerializer_serialize_closure, A.BuiltListMultimapSerializer_deserialize_closure, A.BuiltListSerializer_serialize_closure, A.BuiltListSerializer_deserialize_closure, A.BuiltSetMultimapSerializer_serialize_closure, A.BuiltSetMultimapSerializer_deserialize_closure, A.BuiltSetSerializer_serialize_closure, A.BuiltSetSerializer_deserialize_closure, A.WebSocketClient_stream_closure, A.Pool__runOnRelease_closure, A.SseClient_closure0, A.SseClient_closure1, A.generateUuidV4_generateBits, A._GuaranteeSink__addError_closure, A._EventStreamSubscription_closure, A._EventStreamSubscription_onData_closure, A.HttpRequest_request_closure, A.HtmlWebSocketChannel_closure, A.HtmlWebSocketChannel_closure0, A.HtmlWebSocketChannel_closure1, A.HtmlWebSocketChannel__listen_closure, A.main__closure, A.main__closure1, A.main___closure2, A.main___closure1, A.main__closure3, A.main___closure0, A.main___closure, A.main__closure5, A.main__closure6, A.main__closure7, A.main__closure8, A._launchCommunicationWithDebugExtension_closure, A._handleAuthRequest_closure, A.DdcRestarter_restart_closure0, A.DdcRestarter_restart_closure, A.RequireRestarter__reloadModule_closure0, A.JSArrayExtension_toDartIterable_closure]); + _inheritMany(A.Closure2Args, [A.CastMap_forEach_closure, A.ConstantMap_map_closure, A.JsLinkedHashMap_addAll_closure, A.initHooks_closure0, A._awaitOnObject_closure0, A._wrapJsFunctionForAsync_closure, A._Future__chainForeignFuture_closure0, A._Future_timeout_closure1, A._BufferingStreamSubscription_asFuture_closure0, A.LinkedHashMap_LinkedHashMap$from_closure, A.MapBase_mapToString_closure, A._JsonStringifier_writeMap_closure, A._BigIntImpl_hashCode_combine, A.Uri__parseIPv4Address_error, A.Uri_parseIPv6Address_error, A.Uri_parseIPv6Address_parseHex, A._createTables_build, A.FutureOfVoidToJSPromise_get_toJS_closure, A.FutureOfVoidToJSPromise_get_toJS__closure0, A.StreamQueue__ensureListening_closure1, A.hashObjects_closure, A.MapBuilder_replace_closure, A.safeUnawaited_closure, A.Pool__runOnRelease_closure0, A.generateUuidV4_printDigits, A.generateUuidV4_bitsDigits, A.main__closure2, A.main_closure0]); + _inheritMany(A.Error, [A.LateError, A.TypeError, A.JsNoSuchMethodError, A.UnknownJsTypeError, A._CyclicInitializationError, A.RuntimeError, A.AssertionError, A._Error, A.JsonUnsupportedObjectError, A.ArgumentError, A.UnsupportedError, A.UnimplementedError, A.StateError, A.ConcurrentModificationError, A.BuiltValueNullFieldError, A.BuiltValueNestedFieldError, A.DeserializationError]); + _inheritMany(A.Closure0Args, [A.nullFuture_closure, A._AsyncRun__scheduleImmediateJsOverride_internalCallback, A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, A._TimerImpl_internalCallback, A._TimerImpl$periodic_closure, A.Future_Future$microtask_closure, A._Future__addListener_closure, A._Future__prependListeners_closure, A._Future__chainForeignFuture_closure1, A._Future__chainCoreFutureAsync_closure, A._Future__asyncCompleteWithValue_closure, A._Future__asyncCompleteError_closure, A._Future__propagateToListeners_handleWhenCompleteCallback, A._Future__propagateToListeners_handleValueCallback, A._Future__propagateToListeners_handleError, A._Future_timeout_closure, A.Stream_length_closure0, A.Stream_first_closure, A._StreamController__subscribe_closure, A._StreamController__recordCancel_complete, A._BufferingStreamSubscription_asFuture_closure, A._BufferingStreamSubscription_asFuture__closure, A._BufferingStreamSubscription__sendError_sendError, A._BufferingStreamSubscription__sendDone_sendDone, A._PendingEvents_schedule_closure, A._cancelAndValue_closure, A._CustomZone_bindCallback_closure, A._CustomZone_bindCallbackGuarded_closure, A._rootHandleError_closure, A._RootZone_bindCallback_closure, A._RootZone_bindCallbackGuarded_closure, A.StreamQueue__ensureListening_closure0, A.Serializers_Serializers_closure, A.Serializers_Serializers_closure0, A.Serializers_Serializers_closure1, A.Serializers_Serializers_closure2, A.Serializers_Serializers_closure3, A._$serializers_closure, A._$serializers_closure0, A.BatchedStreamController__hasEventOrTimeOut_closure, A.BatchedStreamController__hasEventDuring_closure, A.Logger_Logger_closure, A.SseClient_closure, A.SseClient__closure, A.SseClient__onOutgoingMessage_closure, A.GuaranteeChannel_closure, A.GuaranteeChannel__closure, A.HtmlWebSocketChannel__listen_closure0, A.main_closure, A.main__closure0, A.main__closure4, A.RequireRestarter__reload_closure, A.RequireRestarter__reloadModule_closure, A._createScript_closure, A._createScript__closure, A._createScript__closure0, A.runMain_closure]); _inheritMany(A.EfficientLengthIterable, [A.ListIterable, A.EmptyIterable, A.LinkedHashMapKeyIterable, A._HashMapKeyIterable]); _inheritMany(A.ListIterable, [A.SubListIterable, A.MappedListIterable, A.ReversedListIterable, A.ListQueue, A._JsonMapKeyIterable]); _inherit(A.EfficientLengthMappedIterable, A.MappedIterable); _inherit(A.EfficientLengthTakeIterable, A.TakeIterable); _inherit(A.EfficientLengthSkipIterable, A.SkipIterable); - _inheritMany(A.ListBase, [A.UnmodifiableListBase, A._FrozenElementList, A._ChildNodeListLazy]); - _inherit(A._UnmodifiableMapView_MapView__UnmodifiableMapMixin, A.MapView); - _inherit(A.UnmodifiableMapView, A._UnmodifiableMapView_MapView__UnmodifiableMapMixin); - _inherit(A.ConstantMapView, A.UnmodifiableMapView); + _inherit(A.UnmodifiableListBase, A.ListBase); _inherit(A.ConstantStringMap, A.ConstantMap); _inherit(A.NullError, A.TypeError); _inheritMany(A.TearOffClosure, [A.StaticClosure, A.BoundClosure]); @@ -27018,7 +22587,7 @@ _inherit(A._TypeError, A._Error); _inheritMany(A._Completer, [A._AsyncCompleter, A._SyncCompleter]); _inheritMany(A._StreamController, [A._AsyncStreamController, A._SyncStreamController]); - _inheritMany(A.Stream, [A._StreamImpl, A._ForwardingStream, A._EventStream0, A._EventStream]); + _inheritMany(A.Stream, [A._StreamImpl, A._ForwardingStream, A._EventStream]); _inherit(A._ControllerStream, A._StreamImpl); _inheritMany(A._BufferingStreamSubscription, [A._ControllerSubscription, A._ForwardingStreamSubscription]); _inheritMany(A._DelayedEvent, [A._DelayedData, A._DelayedError]); @@ -27028,6 +22597,8 @@ _inherit(A._SetBase, A.SetBase); _inheritMany(A._SetBase, [A._HashSet, A._LinkedHashSet]); _inherit(A.UnmodifiableListView, A.UnmodifiableListBase); + _inherit(A._UnmodifiableMapView_MapView__UnmodifiableMapMixin, A.MapView); + _inherit(A.UnmodifiableMapView, A._UnmodifiableMapView_MapView__UnmodifiableMapMixin); _inherit(A._SplayTreeSetNode, A._SplayTreeNode); _inherit(A._SplayTreeKeyIterator, A._SplayTreeIterator); _inherit(A._SplayTreeSet__SplayTree_Iterable, A._SplayTree); @@ -27040,74 +22611,6 @@ _inherit(A.Utf8Codec, A.Encoding); _inheritMany(A.ArgumentError, [A.RangeError, A.IndexError]); _inherit(A._DataUri, A._Uri); - _inheritMany(A.EventTarget, [A.Node, A.FileWriter, A.HttpRequestEventTarget, A.MessagePort, A.SourceBuffer, A._SourceBufferList_EventTarget_ListMixin, A.TextTrack, A.TextTrackCue, A._TextTrackList_EventTarget_ListMixin, A.VideoTrackList, A.Window, A.WorkerGlobalScope, A.AudioTrackList, A.BaseAudioContext]); - _inheritMany(A.Node, [A.Element, A.CharacterData, A.Document, A._Attr]); - _inheritMany(A.Element, [A.HtmlElement, A.SvgElement]); - _inheritMany(A.HtmlElement, [A.AnchorElement, A.AreaElement, A.BaseElement, A.BodyElement, A.FormElement, A.ScriptElement, A.SelectElement, A.TableElement, A.TableRowElement, A.TableSectionElement, A.TemplateElement]); - _inherit(A.CssPerspective, A.CssTransformComponent); - _inherit(A.CssStyleDeclaration, A._CssStyleDeclaration_JavaScriptObject_CssStyleDeclarationBase); - _inheritMany(A.CssStyleValue, [A.CssTransformValue, A.CssUnparsedValue]); - _inheritMany(A.Event, [A.CustomEvent, A.UIEvent, A.MessageEvent, A.ProgressEvent]); - _inherit(A._DomRectList_JavaScriptObject_ListMixin_ImmutableListMixin, A._DomRectList_JavaScriptObject_ListMixin); - _inherit(A.DomRectList, A._DomRectList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A._DomStringList_JavaScriptObject_ListMixin_ImmutableListMixin, A._DomStringList_JavaScriptObject_ListMixin); - _inherit(A.DomStringList, A._DomStringList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A.File, A.Blob); - _inherit(A._FileList_JavaScriptObject_ListMixin_ImmutableListMixin, A._FileList_JavaScriptObject_ListMixin); - _inherit(A.FileList, A._FileList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A._HtmlCollection_JavaScriptObject_ListMixin_ImmutableListMixin, A._HtmlCollection_JavaScriptObject_ListMixin); - _inherit(A.HtmlCollection, A._HtmlCollection_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A.HtmlDocument, A.Document); - _inherit(A.HttpRequest, A.HttpRequestEventTarget); - _inherit(A.KeyboardEvent, A.UIEvent); - _inherit(A.MidiInputMap, A._MidiInputMap_JavaScriptObject_MapMixin); - _inherit(A.MidiOutputMap, A._MidiOutputMap_JavaScriptObject_MapMixin); - _inherit(A._MimeTypeArray_JavaScriptObject_ListMixin_ImmutableListMixin, A._MimeTypeArray_JavaScriptObject_ListMixin); - _inherit(A.MimeTypeArray, A._MimeTypeArray_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A._NodeList_JavaScriptObject_ListMixin_ImmutableListMixin, A._NodeList_JavaScriptObject_ListMixin); - _inherit(A.NodeList, A._NodeList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A._PluginArray_JavaScriptObject_ListMixin_ImmutableListMixin, A._PluginArray_JavaScriptObject_ListMixin); - _inherit(A.PluginArray, A._PluginArray_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A.RtcStatsReport, A._RtcStatsReport_JavaScriptObject_MapMixin); - _inherit(A._SourceBufferList_EventTarget_ListMixin_ImmutableListMixin, A._SourceBufferList_EventTarget_ListMixin); - _inherit(A.SourceBufferList, A._SourceBufferList_EventTarget_ListMixin_ImmutableListMixin); - _inherit(A._SpeechGrammarList_JavaScriptObject_ListMixin_ImmutableListMixin, A._SpeechGrammarList_JavaScriptObject_ListMixin); - _inherit(A.SpeechGrammarList, A._SpeechGrammarList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A.Storage, A._Storage_JavaScriptObject_MapMixin); - _inherit(A._TextTrackCueList_JavaScriptObject_ListMixin_ImmutableListMixin, A._TextTrackCueList_JavaScriptObject_ListMixin); - _inherit(A.TextTrackCueList, A._TextTrackCueList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A._TextTrackList_EventTarget_ListMixin_ImmutableListMixin, A._TextTrackList_EventTarget_ListMixin); - _inherit(A.TextTrackList, A._TextTrackList_EventTarget_ListMixin_ImmutableListMixin); - _inherit(A._TouchList_JavaScriptObject_ListMixin_ImmutableListMixin, A._TouchList_JavaScriptObject_ListMixin); - _inherit(A.TouchList, A._TouchList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A.__CssRuleList_JavaScriptObject_ListMixin_ImmutableListMixin, A.__CssRuleList_JavaScriptObject_ListMixin); - _inherit(A._CssRuleList, A.__CssRuleList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A._DomRect, A.DomRectReadOnly); - _inherit(A.__GamepadList_JavaScriptObject_ListMixin_ImmutableListMixin, A.__GamepadList_JavaScriptObject_ListMixin); - _inherit(A._GamepadList, A.__GamepadList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A.__NamedNodeMap_JavaScriptObject_ListMixin_ImmutableListMixin, A.__NamedNodeMap_JavaScriptObject_ListMixin); - _inherit(A._NamedNodeMap, A.__NamedNodeMap_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A.__SpeechRecognitionResultList_JavaScriptObject_ListMixin_ImmutableListMixin, A.__SpeechRecognitionResultList_JavaScriptObject_ListMixin); - _inherit(A._SpeechRecognitionResultList, A.__SpeechRecognitionResultList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A.__StyleSheetList_JavaScriptObject_ListMixin_ImmutableListMixin, A.__StyleSheetList_JavaScriptObject_ListMixin); - _inherit(A._StyleSheetList, A.__StyleSheetList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A._ElementAttributeMap, A._AttributeMap); - _inherit(A._TemplatingNodeValidator, A._SimpleNodeValidator); - _inherit(A._StructuredCloneDart2Js, A._StructuredClone); - _inherit(A._AcceptStructuredCloneDart2Js, A._AcceptStructuredClone); - _inheritMany(A.JsObject, [A.JsFunction, A._JsArray_JsObject_ListMixin]); - _inherit(A.JsArray, A._JsArray_JsObject_ListMixin); - _inherit(A._LengthList_JavaScriptObject_ListMixin_ImmutableListMixin, A._LengthList_JavaScriptObject_ListMixin); - _inherit(A.LengthList, A._LengthList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A._NumberList_JavaScriptObject_ListMixin_ImmutableListMixin, A._NumberList_JavaScriptObject_ListMixin); - _inherit(A.NumberList, A._NumberList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A.ScriptElement0, A.SvgElement); - _inherit(A._StringList_JavaScriptObject_ListMixin_ImmutableListMixin, A._StringList_JavaScriptObject_ListMixin); - _inherit(A.StringList, A._StringList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A._TransformList_JavaScriptObject_ListMixin_ImmutableListMixin, A._TransformList_JavaScriptObject_ListMixin); - _inherit(A.TransformList, A._TransformList_JavaScriptObject_ListMixin_ImmutableListMixin); - _inherit(A.AudioParamMap, A._AudioParamMap_JavaScriptObject_MapMixin); - _inherit(A.OfflineAudioContext, A.BaseAudioContext); _inherit(A._BuiltList, A.BuiltList); _inherit(A._BuiltListMultimap, A.BuiltListMultimap); _inherit(A._BuiltMap, A.BuiltMap); @@ -27116,7 +22619,6 @@ _inheritMany(A.JsonObject, [A.BoolJsonObject, A.ListJsonObject, A.MapJsonObject, A.NumJsonObject, A.StringJsonObject]); _inherit(A.SetEquality, A._UnorderedEquality); _inherit(A.QueueList, A._QueueList_Object_ListMixin); - _inherit(A._CastQueueList, A.QueueList); _inherit(A.BuildStatus, A.EnumClass); _inherit(A._$BuildResult, A.BuildResult); _inherit(A._$ConnectRequest, A.ConnectRequest); @@ -27135,13 +22637,10 @@ _inherit(A._$RegisterEvent, A.RegisterEvent); _inherit(A._$RunRequest, A.RunRequest); _inheritMany(A.SocketClient, [A.SseSocketClient, A.WebSocketClient]); - _inheritMany(A.StreamChannelMixin, [A.SseClient, A.GuaranteeChannel, A.AdapterWebSocketChannel]); - _inherit(A.MathRNG, A.RNG); - _inheritMany(A.WebSocketEvent, [A.TextDataReceived, A.BinaryDataReceived, A.CloseReceived]); - _inherit(A.WebSocketConnectionClosed, A.WebSocketException); - _inherit(A._WebSocketSink, A.DelegatingStreamSink); + _inheritMany(A.StreamChannelMixin, [A.SseClient, A.GuaranteeChannel, A.HtmlWebSocketChannel, A.WebSocketChannel]); + _inherit(A.CryptoRNG, A.RNG); + _inherit(A._HtmlWebSocketSink, A.DelegatingStreamSink); _mixin(A.UnmodifiableListBase, A.UnmodifiableListMixin); - _mixin(A.__CastListBase__CastIterableBase_ListMixin, A.ListBase); _mixin(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, A.ListBase); _mixin(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, A.FixedLengthListMixin); _mixin(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, A.ListBase); @@ -27151,72 +22650,24 @@ _mixin(A._SplayTreeSet__SplayTree_Iterable, A.Iterable); _mixin(A._SplayTreeSet__SplayTree_Iterable_SetMixin, A.SetBase); _mixin(A._UnmodifiableMapView_MapView__UnmodifiableMapMixin, A._UnmodifiableMapMixin); - _mixin(A._CssStyleDeclaration_JavaScriptObject_CssStyleDeclarationBase, A.CssStyleDeclarationBase); - _mixin(A._DomRectList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._DomRectList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._DomStringList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._DomStringList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._FileList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._FileList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._HtmlCollection_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._HtmlCollection_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._MidiInputMap_JavaScriptObject_MapMixin, A.MapBase); - _mixin(A._MidiOutputMap_JavaScriptObject_MapMixin, A.MapBase); - _mixin(A._MimeTypeArray_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._MimeTypeArray_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._NodeList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._NodeList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._PluginArray_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._PluginArray_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._RtcStatsReport_JavaScriptObject_MapMixin, A.MapBase); - _mixin(A._SourceBufferList_EventTarget_ListMixin, A.ListBase); - _mixin(A._SourceBufferList_EventTarget_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._SpeechGrammarList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._SpeechGrammarList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._Storage_JavaScriptObject_MapMixin, A.MapBase); - _mixin(A._TextTrackCueList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._TextTrackCueList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._TextTrackList_EventTarget_ListMixin, A.ListBase); - _mixin(A._TextTrackList_EventTarget_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._TouchList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._TouchList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A.__CssRuleList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A.__CssRuleList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A.__GamepadList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A.__GamepadList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A.__NamedNodeMap_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A.__NamedNodeMap_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A.__SpeechRecognitionResultList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A.__SpeechRecognitionResultList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A.__StyleSheetList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A.__StyleSheetList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixinHard(A._JsArray_JsObject_ListMixin, A.ListBase); - _mixin(A._LengthList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._LengthList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._NumberList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._NumberList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._StringList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._StringList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._TransformList_JavaScriptObject_ListMixin, A.ListBase); - _mixin(A._TransformList_JavaScriptObject_ListMixin_ImmutableListMixin, A.ImmutableListMixin); - _mixin(A._AudioParamMap_JavaScriptObject_MapMixin, A.MapBase); _mixin(A._QueueList_Object_ListMixin, A.ListBase); })(); var init = { typeUniverse: {eC: new Map(), tR: {}, eT: {}, tPV: {}, sEA: []}, mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List", Object: "Object", Map: "Map"}, mangledNames: {}, - types: ["~()", "@(@)", "Object?(@)", "~(JSObject)", "Null()", "~(String,@)", "Null(@)", "~(@)", "Null(Object,StackTrace)", "Object?(Object?)", "~(~())", "~(Object,StackTrace)", "~(Object?)", "~(@,@)", "~(Event)", "bool(Object?,Object?)", "int(Object?)", "Null(JSObject)", "~(String,String)", "~(@,StackTrace)", "bool(@)", "~(Object?,Object?)", "int(int,int)", "int(int)", "String(String)", "~(Uint8List,String,int)", "~(String)", "Future()", "bool(NodeValidator)", "bool(String)", "ScriptElement()", "bool()", "bool(Element,String,String,_Html5NodeValidator)", "Future<~>()", "~(Object[StackTrace?])", "int(@,@)", "String(int,int)", "~(Node,Node?)", "Null(@,@)", "@(@,@)", "JsFunction(@)", "JsArray<@>(@)", "JsObject(@)", "~(int,@)", "int(int,@)", "IndentingBuiltValueToStringHelper(String)", "~(Zone,ZoneDelegate,Zone,Object,StackTrace)", "ListMultimapBuilder()", "MapBuilder()", "SetBuilder()", "SetMultimapBuilder()", "~([Object?])", "@(String)", "@(@,String)", "bool(Object?)", "ListBuilder()", "ListBuilder()", "bool(Node)", "String(@)", "Logger()", "_Future<@>(@)", "~(String?)", "Uint8List(@,@)", "Null(~())", "Null(WebSocket0)", "~(WebSocketEvent)", "~(String,int?)", "~(String,int)", "Promise<1&>(String[bool?])", "~(List)", "ListBuilder(BatchedDebugEventsBuilder)", "DebugEventBuilder(DebugEventBuilder)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map?)", "RegisterEventBuilder(RegisterEventBuilder)", "DevToolsRequestBuilder(DevToolsRequestBuilder)", "Future<~>(String)", "ConnectRequestBuilder(ConnectRequestBuilder)", "DebugInfoBuilder(DebugInfoBuilder)", "Future(Event)", "~(MessageEvent)", "bool(bool)", "List(String)", "int(String,String)", "~(JsError)", "ScriptElement()()", "~(Symbol0,@)", "Null(@,StackTrace)", "ListBuilder()", "~(Zone?,ZoneDelegate?,Zone,Object,StackTrace)", "0^(Zone?,ZoneDelegate?,Zone,0^())", "0^(Zone?,ZoneDelegate?,Zone,0^(1^),1^)", "0^(Zone?,ZoneDelegate?,Zone,0^(1^,2^),1^,2^)", "0^()(Zone,ZoneDelegate,Zone,0^())", "0^(1^)(Zone,ZoneDelegate,Zone,0^(1^))", "0^(1^,2^)(Zone,ZoneDelegate,Zone,0^(1^,2^))", "AsyncError?(Zone,ZoneDelegate,Zone,Object,StackTrace?)", "~(Zone?,ZoneDelegate?,Zone,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~(Timer))", "~(Zone,ZoneDelegate,Zone,String)", "~(ProgressEvent)", "Null(Object)"], + types: ["~()", "~(JavaScriptObject)", "Null()", "Object?(@)", "@(@)", "Null(Object,StackTrace)", "Null(@)", "~(@)", "Null(JavaScriptObject)", "~(Object,StackTrace)", "~(~())", "~(Object?)", "Object?(Object?)", "bool(Object?,Object?)", "int(Object?)", "JavaScriptObject()", "~(Object[StackTrace?])", "~(@,StackTrace)", "bool(@)", "~(@,@)", "~(Object?,Object?)", "int(int,int)", "int(int)", "~(Uint8List,String,int)", "Future()", "bool()", "String(int,int)", "Null(JavaScriptFunction,JavaScriptFunction)", "@(@,String)", "Object?(~)", "Null(~())", "int(int,@)", "IndentingBuiltValueToStringHelper(String)", "ListBuilder()", "ListMultimapBuilder()", "MapBuilder()", "SetBuilder()", "SetMultimapBuilder()", "Null(@,StackTrace)", "~(int,@)", "@(String)", "bool(Object?)", "ListBuilder()", "ListBuilder()", "~(String,int)", "String(@)", "Logger()", "~(String,int?)", "~(String?)", "String(String)", "Uint8List(@,@)", "Future<~>()", "JSObject(String[bool?])", "~(List)", "ListBuilder(BatchedDebugEventsBuilder)", "Null(String,String)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map?)", "Null(String)", "RegisterEventBuilder(RegisterEventBuilder)", "DevToolsRequestBuilder(DevToolsRequestBuilder)", "Future<~>(String)", "ConnectRequestBuilder(ConnectRequestBuilder)", "DebugInfoBuilder(DebugInfoBuilder)", "~(bool)", "bool(bool)", "List(String)", "int(String,String)", "JavaScriptObject()()", "~(Zone,ZoneDelegate,Zone,Object,StackTrace)", "int(@,@)", "DebugEventBuilder(DebugEventBuilder)", "~(Zone?,ZoneDelegate?,Zone,Object,StackTrace)", "0^(Zone?,ZoneDelegate?,Zone,0^())", "0^(Zone?,ZoneDelegate?,Zone,0^(1^),1^)", "0^(Zone?,ZoneDelegate?,Zone,0^(1^,2^),1^,2^)", "0^()(Zone,ZoneDelegate,Zone,0^())", "0^(1^)(Zone,ZoneDelegate,Zone,0^(1^))", "0^(1^,2^)(Zone,ZoneDelegate,Zone,0^(1^,2^))", "AsyncError?(Zone,ZoneDelegate,Zone,Object,StackTrace?)", "~(Zone?,ZoneDelegate?,Zone,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~(Timer))", "~(Zone,ZoneDelegate,Zone,String)", "~(String)", "_Future<@>(@)"], interceptorsByTag: null, leafTags: null, arrayRti: Symbol("$ti"), rttc: {} }; - A._Universe_addRules(init.typeUniverse, JSON.parse('{"PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","JavaScriptFunction":"LegacyJavaScriptObject","Promise":"LegacyJavaScriptObject","JsError":"LegacyJavaScriptObject","RequireLoader":"LegacyJavaScriptObject","JsMap":"LegacyJavaScriptObject","KeyframeEffect":"JavaScriptObject","KeyframeEffectReadOnly":"JavaScriptObject","AnimationEffectReadOnly":"JavaScriptObject","AbortPaymentEvent":"Event","ExtendableEvent":"Event","AudioContext":"BaseAudioContext","AbsoluteOrientationSensor":"EventTarget","OrientationSensor":"EventTarget","Sensor":"EventTarget","AElement":"SvgElement","GraphicsElement":"SvgElement","_ResourceProgressEvent":"ProgressEvent","AudioElement":"HtmlElement","MediaElement":"HtmlElement","ShadowRoot":"Node","DocumentFragment":"Node","XmlDocument":"Document","VttCue":"TextTrackCue","CompositionEvent":"UIEvent","DedicatedWorkerGlobalScope":"WorkerGlobalScope","CDataSection":"CharacterData","Text":"CharacterData","MathMLElement":"Element","HttpRequestUpload":"HttpRequestEventTarget","HtmlFormControlsCollection":"HtmlCollection","CssCharsetRule":"CssRule","CssMatrixComponent":"CssTransformComponent","CssStyleSheet":"StyleSheet","CssurlImageValue":"CssStyleValue","CssImageValue":"CssStyleValue","CssResourceValue":"CssStyleValue","JSArray":{"List":["1"],"EfficientLengthIterable":["1"],"JSObject":[],"Iterable":["1"],"JSIndexable":["1"],"Iterable.E":"1"},"JSBool":{"bool":[],"TrustedGetRuntimeType":[]},"JSNull":{"Null":[],"TrustedGetRuntimeType":[]},"JavaScriptObject":{"JSObject":[]},"LegacyJavaScriptObject":{"JSObject":[],"Promise":["1&"],"JsError":[]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"JSObject":[],"Iterable":["1"],"JSIndexable":["1"],"Iterable.E":"1"},"ArrayIterator":{"Iterator":["1"]},"JSNumber":{"double":[],"num":[],"Comparable":["num"]},"JSInt":{"double":[],"int":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSNumNotInt":{"double":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSString":{"String":[],"Comparable":["String"],"Pattern":[],"JSIndexable":["@"],"TrustedGetRuntimeType":[]},"_CastIterableBase":{"Iterable":["2"]},"CastIterator":{"Iterator":["2"]},"CastIterable":{"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_EfficientLengthCastIterable":{"CastIterable":["1","2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"_CastListBase":{"ListBase":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"]},"CastList":{"_CastListBase":["1","2"],"ListBase":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListBase.E":"2","Iterable.E":"2"},"CastMap":{"MapBase":["3","4"],"Map":["3","4"],"MapBase.K":"3","MapBase.V":"4"},"LateError":{"Error":[]},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"ListIterator":{"Iterator":["1"]},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedIterator":{"Iterator":["2"]},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListIterable.E":"2","Iterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"WhereIterator":{"Iterator":["1"]},"TakeIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthTakeIterable":{"TakeIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"TakeIterator":{"Iterator":["1"]},"SkipIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthSkipIterable":{"SkipIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipIterator":{"Iterator":["1"]},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"EmptyIterator":{"Iterator":["1"]},"UnmodifiableListBase":{"ListBase":["1"],"UnmodifiableListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"UnmodifiableMapView":["1","2"],"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":["1","2"],"MapView":["1","2"],"_UnmodifiableMapMixin":["1","2"],"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"_KeysOrValues":{"Iterable":["1"],"Iterable.E":"1"},"_KeysOrValuesOrElementsIterator":{"Iterator":["1"]},"JSInvocationMirror":{"Invocation":[]},"NullError":{"TypeError":[],"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"_StackTrace":{"StackTrace":[]},"Closure":{"Function":[]},"Closure0Args":{"Function":[]},"Closure2Args":{"Function":[]},"TearOffClosure":{"Function":[]},"StaticClosure":{"Function":[]},"BoundClosure":{"Function":[]},"_CyclicInitializationError":{"Error":[]},"RuntimeError":{"Error":[]},"_AssertionError":{"Error":[]},"JsLinkedHashMap":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"LinkedHashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"LinkedHashMapKeyIterator":{"Iterator":["1"]},"JSSyntaxRegExp":{"RegExp":[],"Pattern":[]},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"_AllMatchesIterator":{"Iterator":["RegExpMatch"]},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"_StringAllMatchesIterator":{"Iterator":["Match"]},"NativeByteBuffer":{"JSObject":[],"ByteBuffer":[],"TrustedGetRuntimeType":[]},"NativeTypedData":{"JSObject":[],"TypedData":[]},"NativeByteData":{"NativeTypedData":[],"ByteData":[],"JSObject":[],"TypedData":[],"TrustedGetRuntimeType":[]},"NativeTypedArray":{"NativeTypedData":[],"JavaScriptIndexingBehavior":["1"],"JSObject":[],"TypedData":[],"JSIndexable":["1"]},"NativeTypedArrayOfDouble":{"ListBase":["double"],"List":["double"],"NativeTypedData":[],"JavaScriptIndexingBehavior":["double"],"EfficientLengthIterable":["double"],"JSObject":[],"TypedData":[],"JSIndexable":["double"],"Iterable":["double"],"FixedLengthListMixin":["double"]},"NativeTypedArrayOfInt":{"ListBase":["int"],"List":["int"],"NativeTypedData":[],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"JSObject":[],"TypedData":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"]},"NativeFloat32List":{"ListBase":["double"],"Float32List":[],"List":["double"],"NativeTypedData":[],"JavaScriptIndexingBehavior":["double"],"EfficientLengthIterable":["double"],"JSObject":[],"TypedData":[],"JSIndexable":["double"],"Iterable":["double"],"FixedLengthListMixin":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double","Iterable.E":"double"},"NativeFloat64List":{"ListBase":["double"],"Float64List":[],"List":["double"],"NativeTypedData":[],"JavaScriptIndexingBehavior":["double"],"EfficientLengthIterable":["double"],"JSObject":[],"TypedData":[],"JSIndexable":["double"],"Iterable":["double"],"FixedLengthListMixin":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double","Iterable.E":"double"},"NativeInt16List":{"ListBase":["int"],"Int16List":[],"List":["int"],"NativeTypedData":[],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"JSObject":[],"TypedData":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeInt32List":{"ListBase":["int"],"Int32List":[],"List":["int"],"NativeTypedData":[],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"JSObject":[],"TypedData":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeInt8List":{"ListBase":["int"],"Int8List":[],"List":["int"],"NativeTypedData":[],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"JSObject":[],"TypedData":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeUint16List":{"ListBase":["int"],"Uint16List":[],"List":["int"],"NativeTypedData":[],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"JSObject":[],"TypedData":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeUint32List":{"ListBase":["int"],"Uint32List":[],"List":["int"],"NativeTypedData":[],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"JSObject":[],"TypedData":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeUint8ClampedList":{"ListBase":["int"],"Uint8ClampedList":[],"List":["int"],"NativeTypedData":[],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"JSObject":[],"TypedData":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeUint8List":{"ListBase":["int"],"Uint8List":[],"List":["int"],"NativeTypedData":[],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"JSObject":[],"TypedData":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"_Type":{"Type":[]},"_Error":{"Error":[]},"_TypeError":{"TypeError":[],"Error":[]},"AsyncError":{"Error":[]},"_Future":{"Future":["1"]},"_TimerImpl":{"Timer":[]},"_AsyncAwaitCompleter":{"Completer":["1"]},"_Completer":{"Completer":["1"]},"_AsyncCompleter":{"_Completer":["1"],"Completer":["1"]},"_SyncCompleter":{"_Completer":["1"],"Completer":["1"]},"_StreamController":{"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_AsyncStreamController":{"_AsyncStreamControllerDispatch":["1"],"_StreamController":["1"],"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_SyncStreamController":{"_SyncStreamControllerDispatch":["1"],"_StreamController":["1"],"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_ControllerStream":{"_StreamImpl":["1"],"Stream":["1"],"Stream.T":"1"},"_ControllerSubscription":{"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"],"_EventSink":["1"],"_EventDispatch":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamSinkWrapper":{"StreamSink":["1"]},"_BufferingStreamSubscription":{"StreamSubscription":["1"],"_EventSink":["1"],"_EventDispatch":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamImpl":{"Stream":["1"]},"_DelayedData":{"_DelayedEvent":["1"]},"_DelayedError":{"_DelayedEvent":["@"]},"_DelayedDone":{"_DelayedEvent":["@"]},"_ForwardingStream":{"Stream":["2"]},"_ForwardingStreamSubscription":{"_BufferingStreamSubscription":["2"],"StreamSubscription":["2"],"_EventSink":["2"],"_EventDispatch":["2"],"_BufferingStreamSubscription.T":"2"},"_MapStream":{"_ForwardingStream":["1","2"],"Stream":["2"],"Stream.T":"2"},"_ZoneSpecification":{"ZoneSpecification":[]},"_ZoneDelegate":{"ZoneDelegate":[]},"_Zone":{"Zone":[]},"_CustomZone":{"_Zone":[],"Zone":[]},"_RootZone":{"_Zone":[],"Zone":[]},"_SplayTreeSetNode":{"_SplayTreeNode":["1","_SplayTreeSetNode<1>"],"_SplayTreeNode.1":"_SplayTreeSetNode<1>","_SplayTreeNode.K":"1"},"_HashMap":{"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_IdentityHashMap":{"_HashMap":["1","2"],"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_CustomHashMap":{"_HashMap":["1","2"],"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_HashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_HashMapKeyIterator":{"Iterator":["1"]},"_HashSet":{"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_HashSetIterator":{"Iterator":["1"]},"_LinkedHashSet":{"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_LinkedHashSetIterator":{"Iterator":["1"]},"UnmodifiableListView":{"ListBase":["1"],"UnmodifiableListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","Iterable.E":"1","UnmodifiableListMixin.E":"1"},"ListBase":{"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapBase":{"Map":["1","2"]},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":["1","2"],"MapView":["1","2"],"_UnmodifiableMapMixin":["1","2"],"Map":["1","2"]},"ListQueue":{"Queue":["1"],"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"_ListQueueIterator":{"Iterator":["1"]},"SetBase":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_SetBase":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_SplayTreeIterator":{"Iterator":["3"]},"_SplayTreeKeyIterator":{"_SplayTreeIterator":["1","2","1"],"Iterator":["1"],"_SplayTreeIterator.K":"1","_SplayTreeIterator.T":"1","_SplayTreeIterator.1":"2"},"SplayTreeSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"_SplayTree":["1","_SplayTreeSetNode<1>"],"Iterable":["1"],"Iterable.E":"1","_SplayTree.1":"_SplayTreeSetNode<1>","_SplayTree.K":"1"},"_JsonMap":{"MapBase":["String","@"],"Map":["String","@"],"MapBase.K":"String","MapBase.V":"@"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"ListIterable.E":"String","Iterable.E":"String"},"Base64Codec":{"Codec":["List","String"],"Codec.S":"List"},"Base64Encoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"Base64Decoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"Converter":{"StreamTransformer":["1","2"]},"Encoding":{"Codec":["String","List"]},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"JsonCodec":{"Codec":["Object?","String"],"Codec.S":"Object?"},"JsonEncoder":{"Converter":["Object?","String"],"StreamTransformer":["Object?","String"]},"JsonDecoder":{"Converter":["String","Object?"],"StreamTransformer":["String","Object?"]},"Utf8Codec":{"Codec":["String","List"],"Codec.S":"String"},"Utf8Encoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"BigInt":{"Comparable":["BigInt"]},"DateTime":{"Comparable":["DateTime"]},"double":{"num":[],"Comparable":["num"]},"Duration":{"Comparable":["Duration"]},"int":{"num":[],"Comparable":["num"]},"List":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"num":{"Comparable":["num"]},"RegExp":{"Pattern":[]},"RegExpMatch":{"Match":[]},"Set":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"String":{"Comparable":["String"],"Pattern":[]},"_BigIntImpl":{"BigInt":[],"Comparable":["BigInt"]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"Error":[]},"NoSuchMethodError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"IntegerDivisionByZeroException":{"Error":[]},"_StringStackTrace":{"StackTrace":[]},"StringBuffer":{"StringSink":[]},"_Uri":{"Uri":[]},"_SimpleUri":{"Uri":[]},"_DataUri":{"Uri":[]},"CssRule":{"JSObject":[]},"Element":{"Node":[],"EventTarget":[],"JSObject":[]},"Event":{"JSObject":[]},"File":{"Blob":[],"JSObject":[]},"Gamepad":{"JSObject":[]},"HttpRequest":{"EventTarget":[],"JSObject":[]},"KeyboardEvent":{"Event":[],"JSObject":[]},"MessageEvent":{"Event":[],"JSObject":[]},"MimeType":{"JSObject":[]},"Node":{"EventTarget":[],"JSObject":[]},"Plugin":{"JSObject":[]},"ProgressEvent":{"Event":[],"JSObject":[]},"ScriptElement":{"HtmlElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"SourceBuffer":{"EventTarget":[],"JSObject":[]},"SpeechGrammar":{"JSObject":[]},"SpeechRecognitionResult":{"JSObject":[]},"StyleSheet":{"JSObject":[]},"TextTrack":{"EventTarget":[],"JSObject":[]},"TextTrackCue":{"EventTarget":[],"JSObject":[]},"Touch":{"JSObject":[]},"_Html5NodeValidator":{"NodeValidator":[]},"HtmlElement":{"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"AccessibleNodeList":{"JSObject":[]},"AnchorElement":{"HtmlElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"AreaElement":{"HtmlElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"BaseElement":{"HtmlElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"Blob":{"JSObject":[]},"BodyElement":{"HtmlElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"CharacterData":{"Node":[],"EventTarget":[],"JSObject":[]},"CssPerspective":{"JSObject":[]},"CssStyleDeclaration":{"JSObject":[]},"CssStyleValue":{"JSObject":[]},"CssTransformComponent":{"JSObject":[]},"CssTransformValue":{"JSObject":[]},"CssUnparsedValue":{"JSObject":[]},"CustomEvent":{"Event":[],"JSObject":[]},"DataTransferItemList":{"JSObject":[]},"Document":{"Node":[],"EventTarget":[],"JSObject":[]},"DomException":{"JSObject":[]},"DomImplementation":{"JSObject":[]},"DomRectList":{"ListBase":["Rectangle"],"ImmutableListMixin":["Rectangle"],"List":["Rectangle"],"JavaScriptIndexingBehavior":["Rectangle"],"EfficientLengthIterable":["Rectangle"],"JSObject":[],"Iterable":["Rectangle"],"JSIndexable":["Rectangle"],"ImmutableListMixin.E":"Rectangle","ListBase.E":"Rectangle","Iterable.E":"Rectangle"},"DomRectReadOnly":{"Rectangle":["num"],"JSObject":[]},"DomStringList":{"ListBase":["String"],"ImmutableListMixin":["String"],"List":["String"],"JavaScriptIndexingBehavior":["String"],"EfficientLengthIterable":["String"],"JSObject":[],"Iterable":["String"],"JSIndexable":["String"],"ImmutableListMixin.E":"String","ListBase.E":"String","Iterable.E":"String"},"DomTokenList":{"JSObject":[]},"_FrozenElementList":{"ListBase":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","Iterable.E":"1"},"EventTarget":{"JSObject":[]},"FileList":{"ListBase":["File"],"ImmutableListMixin":["File"],"List":["File"],"JavaScriptIndexingBehavior":["File"],"EfficientLengthIterable":["File"],"JSObject":[],"Iterable":["File"],"JSIndexable":["File"],"ImmutableListMixin.E":"File","ListBase.E":"File","Iterable.E":"File"},"FileWriter":{"EventTarget":[],"JSObject":[]},"FormElement":{"HtmlElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"History":{"JSObject":[]},"HtmlCollection":{"ListBase":["Node"],"ImmutableListMixin":["Node"],"List":["Node"],"JavaScriptIndexingBehavior":["Node"],"EfficientLengthIterable":["Node"],"JSObject":[],"Iterable":["Node"],"JSIndexable":["Node"],"ImmutableListMixin.E":"Node","ListBase.E":"Node","Iterable.E":"Node"},"HtmlDocument":{"Document":[],"Node":[],"EventTarget":[],"JSObject":[]},"HttpRequestEventTarget":{"EventTarget":[],"JSObject":[]},"ImageData":{"JSObject":[]},"Location":{"JSObject":[]},"MediaList":{"JSObject":[]},"MessagePort":{"EventTarget":[],"JSObject":[]},"MidiInputMap":{"MapBase":["String","@"],"JSObject":[],"Map":["String","@"],"MapBase.K":"String","MapBase.V":"@"},"MidiOutputMap":{"MapBase":["String","@"],"JSObject":[],"Map":["String","@"],"MapBase.K":"String","MapBase.V":"@"},"MimeTypeArray":{"ListBase":["MimeType"],"ImmutableListMixin":["MimeType"],"List":["MimeType"],"JavaScriptIndexingBehavior":["MimeType"],"EfficientLengthIterable":["MimeType"],"JSObject":[],"Iterable":["MimeType"],"JSIndexable":["MimeType"],"ImmutableListMixin.E":"MimeType","ListBase.E":"MimeType","Iterable.E":"MimeType"},"_ChildNodeListLazy":{"ListBase":["Node"],"List":["Node"],"EfficientLengthIterable":["Node"],"Iterable":["Node"],"ListBase.E":"Node","Iterable.E":"Node"},"NodeList":{"ListBase":["Node"],"ImmutableListMixin":["Node"],"List":["Node"],"JavaScriptIndexingBehavior":["Node"],"EfficientLengthIterable":["Node"],"JSObject":[],"Iterable":["Node"],"JSIndexable":["Node"],"ImmutableListMixin.E":"Node","ListBase.E":"Node","Iterable.E":"Node"},"PluginArray":{"ListBase":["Plugin"],"ImmutableListMixin":["Plugin"],"List":["Plugin"],"JavaScriptIndexingBehavior":["Plugin"],"EfficientLengthIterable":["Plugin"],"JSObject":[],"Iterable":["Plugin"],"JSIndexable":["Plugin"],"ImmutableListMixin.E":"Plugin","ListBase.E":"Plugin","Iterable.E":"Plugin"},"RtcStatsReport":{"MapBase":["String","@"],"JSObject":[],"Map":["String","@"],"MapBase.K":"String","MapBase.V":"@"},"SelectElement":{"HtmlElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"SharedArrayBuffer":{"JSObject":[]},"SourceBufferList":{"ListBase":["SourceBuffer"],"ImmutableListMixin":["SourceBuffer"],"List":["SourceBuffer"],"EventTarget":[],"JavaScriptIndexingBehavior":["SourceBuffer"],"EfficientLengthIterable":["SourceBuffer"],"JSObject":[],"Iterable":["SourceBuffer"],"JSIndexable":["SourceBuffer"],"ImmutableListMixin.E":"SourceBuffer","ListBase.E":"SourceBuffer","Iterable.E":"SourceBuffer"},"SpeechGrammarList":{"ListBase":["SpeechGrammar"],"ImmutableListMixin":["SpeechGrammar"],"List":["SpeechGrammar"],"JavaScriptIndexingBehavior":["SpeechGrammar"],"EfficientLengthIterable":["SpeechGrammar"],"JSObject":[],"Iterable":["SpeechGrammar"],"JSIndexable":["SpeechGrammar"],"ImmutableListMixin.E":"SpeechGrammar","ListBase.E":"SpeechGrammar","Iterable.E":"SpeechGrammar"},"Storage":{"MapBase":["String","String"],"JSObject":[],"Map":["String","String"],"MapBase.K":"String","MapBase.V":"String"},"TableElement":{"HtmlElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"TableRowElement":{"HtmlElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"TableSectionElement":{"HtmlElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"TemplateElement":{"HtmlElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"TextTrackCueList":{"ListBase":["TextTrackCue"],"ImmutableListMixin":["TextTrackCue"],"List":["TextTrackCue"],"JavaScriptIndexingBehavior":["TextTrackCue"],"EfficientLengthIterable":["TextTrackCue"],"JSObject":[],"Iterable":["TextTrackCue"],"JSIndexable":["TextTrackCue"],"ImmutableListMixin.E":"TextTrackCue","ListBase.E":"TextTrackCue","Iterable.E":"TextTrackCue"},"TextTrackList":{"ListBase":["TextTrack"],"ImmutableListMixin":["TextTrack"],"List":["TextTrack"],"EventTarget":[],"JavaScriptIndexingBehavior":["TextTrack"],"EfficientLengthIterable":["TextTrack"],"JSObject":[],"Iterable":["TextTrack"],"JSIndexable":["TextTrack"],"ImmutableListMixin.E":"TextTrack","ListBase.E":"TextTrack","Iterable.E":"TextTrack"},"TimeRanges":{"JSObject":[]},"TouchList":{"ListBase":["Touch"],"ImmutableListMixin":["Touch"],"List":["Touch"],"JavaScriptIndexingBehavior":["Touch"],"EfficientLengthIterable":["Touch"],"JSObject":[],"Iterable":["Touch"],"JSIndexable":["Touch"],"ImmutableListMixin.E":"Touch","ListBase.E":"Touch","Iterable.E":"Touch"},"TrackDefaultList":{"JSObject":[]},"UIEvent":{"Event":[],"JSObject":[]},"Url":{"JSObject":[]},"VideoTrackList":{"EventTarget":[],"JSObject":[]},"Window":{"WindowBase":[],"EventTarget":[],"JSObject":[]},"WorkerGlobalScope":{"EventTarget":[],"JSObject":[]},"_Attr":{"Node":[],"EventTarget":[],"JSObject":[]},"_CssRuleList":{"ListBase":["CssRule"],"ImmutableListMixin":["CssRule"],"List":["CssRule"],"JavaScriptIndexingBehavior":["CssRule"],"EfficientLengthIterable":["CssRule"],"JSObject":[],"Iterable":["CssRule"],"JSIndexable":["CssRule"],"ImmutableListMixin.E":"CssRule","ListBase.E":"CssRule","Iterable.E":"CssRule"},"_DomRect":{"Rectangle":["num"],"JSObject":[]},"_GamepadList":{"ListBase":["Gamepad?"],"ImmutableListMixin":["Gamepad?"],"List":["Gamepad?"],"JavaScriptIndexingBehavior":["Gamepad?"],"EfficientLengthIterable":["Gamepad?"],"JSObject":[],"Iterable":["Gamepad?"],"JSIndexable":["Gamepad?"],"ImmutableListMixin.E":"Gamepad?","ListBase.E":"Gamepad?","Iterable.E":"Gamepad?"},"_NamedNodeMap":{"ListBase":["Node"],"ImmutableListMixin":["Node"],"List":["Node"],"JavaScriptIndexingBehavior":["Node"],"EfficientLengthIterable":["Node"],"JSObject":[],"Iterable":["Node"],"JSIndexable":["Node"],"ImmutableListMixin.E":"Node","ListBase.E":"Node","Iterable.E":"Node"},"_SpeechRecognitionResultList":{"ListBase":["SpeechRecognitionResult"],"ImmutableListMixin":["SpeechRecognitionResult"],"List":["SpeechRecognitionResult"],"JavaScriptIndexingBehavior":["SpeechRecognitionResult"],"EfficientLengthIterable":["SpeechRecognitionResult"],"JSObject":[],"Iterable":["SpeechRecognitionResult"],"JSIndexable":["SpeechRecognitionResult"],"ImmutableListMixin.E":"SpeechRecognitionResult","ListBase.E":"SpeechRecognitionResult","Iterable.E":"SpeechRecognitionResult"},"_StyleSheetList":{"ListBase":["StyleSheet"],"ImmutableListMixin":["StyleSheet"],"List":["StyleSheet"],"JavaScriptIndexingBehavior":["StyleSheet"],"EfficientLengthIterable":["StyleSheet"],"JSObject":[],"Iterable":["StyleSheet"],"JSIndexable":["StyleSheet"],"ImmutableListMixin.E":"StyleSheet","ListBase.E":"StyleSheet","Iterable.E":"StyleSheet"},"_AttributeMap":{"MapBase":["String","String"],"Map":["String","String"]},"_ElementAttributeMap":{"MapBase":["String","String"],"Map":["String","String"],"MapBase.K":"String","MapBase.V":"String"},"_EventStream0":{"Stream":["1"],"Stream.T":"1"},"_EventStreamSubscription":{"StreamSubscription":["1"]},"NodeValidatorBuilder":{"NodeValidator":[]},"_SimpleNodeValidator":{"NodeValidator":[]},"_TemplatingNodeValidator":{"NodeValidator":[]},"_SvgNodeValidator":{"NodeValidator":[]},"FixedSizeListIterator":{"Iterator":["1"]},"_DOMWindowCrossFrame":{"WindowBase":[],"EventTarget":[],"JSObject":[]},"_SameOriginUriPolicy":{"UriPolicy":[]},"_ValidatingTreeSanitizer":{"NodeTreeSanitizer":[]},"KeyRange":{"JSObject":[]},"JsArray":{"ListBase":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","Iterable.E":"1"},"_JSRandom":{"Random":[]},"Length":{"JSObject":[]},"Number":{"JSObject":[]},"Transform":{"JSObject":[]},"LengthList":{"ListBase":["Length"],"ImmutableListMixin":["Length"],"List":["Length"],"EfficientLengthIterable":["Length"],"JSObject":[],"Iterable":["Length"],"ImmutableListMixin.E":"Length","ListBase.E":"Length","Iterable.E":"Length"},"NumberList":{"ListBase":["Number"],"ImmutableListMixin":["Number"],"List":["Number"],"EfficientLengthIterable":["Number"],"JSObject":[],"Iterable":["Number"],"ImmutableListMixin.E":"Number","ListBase.E":"Number","Iterable.E":"Number"},"PointList":{"JSObject":[]},"ScriptElement0":{"SvgElement":[],"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"StringList":{"ListBase":["String"],"ImmutableListMixin":["String"],"List":["String"],"EfficientLengthIterable":["String"],"JSObject":[],"Iterable":["String"],"ImmutableListMixin.E":"String","ListBase.E":"String","Iterable.E":"String"},"SvgElement":{"Element":[],"Node":[],"EventTarget":[],"JSObject":[]},"TransformList":{"ListBase":["Transform"],"ImmutableListMixin":["Transform"],"List":["Transform"],"EfficientLengthIterable":["Transform"],"JSObject":[],"Iterable":["Transform"],"ImmutableListMixin.E":"Transform","ListBase.E":"Transform","Iterable.E":"Transform"},"AudioBuffer":{"JSObject":[]},"AudioParamMap":{"MapBase":["String","@"],"JSObject":[],"Map":["String","@"],"MapBase.K":"String","MapBase.V":"@"},"AudioTrackList":{"EventTarget":[],"JSObject":[]},"BaseAudioContext":{"EventTarget":[],"JSObject":[]},"OfflineAudioContext":{"EventTarget":[],"JSObject":[]},"DelegatingStreamSink":{"StreamSink":["1"]},"ErrorResult":{"Result":["0&"]},"ValueResult":{"Result":["1"]},"_NextRequest":{"_EventRequest":["1"]},"_HasNextRequest":{"_EventRequest":["1"]},"BuiltList":{"Iterable":["1"]},"_BuiltList":{"BuiltList":["1"],"Iterable":["1"],"Iterable.E":"1"},"_BuiltListMultimap":{"BuiltListMultimap":["1","2"]},"_BuiltMap":{"BuiltMap":["1","2"]},"BuiltSet":{"Iterable":["1"]},"_BuiltSet":{"BuiltSet":["1"],"Iterable":["1"],"Iterable.E":"1"},"_BuiltSetMultimap":{"BuiltSetMultimap":["1","2"]},"BuiltValueNullFieldError":{"Error":[]},"BuiltValueNestedFieldError":{"Error":[]},"BoolJsonObject":{"JsonObject":[]},"ListJsonObject":{"JsonObject":[]},"MapJsonObject":{"JsonObject":[]},"NumJsonObject":{"JsonObject":[]},"StringJsonObject":{"JsonObject":[]},"DeserializationError":{"Error":[]},"BigIntSerializer":{"PrimitiveSerializer":["BigInt"],"Serializer":["BigInt"]},"BoolSerializer":{"PrimitiveSerializer":["bool"],"Serializer":["bool"]},"BuiltJsonSerializers":{"Serializers":[]},"BuiltListMultimapSerializer":{"StructuredSerializer":["BuiltListMultimap<@,@>"],"Serializer":["BuiltListMultimap<@,@>"]},"BuiltListSerializer":{"StructuredSerializer":["BuiltList<@>"],"Serializer":["BuiltList<@>"]},"BuiltMapSerializer":{"StructuredSerializer":["BuiltMap<@,@>"],"Serializer":["BuiltMap<@,@>"]},"BuiltSetMultimapSerializer":{"StructuredSerializer":["BuiltSetMultimap<@,@>"],"Serializer":["BuiltSetMultimap<@,@>"]},"BuiltSetSerializer":{"StructuredSerializer":["BuiltSet<@>"],"Serializer":["BuiltSet<@>"]},"DateTimeSerializer":{"PrimitiveSerializer":["DateTime"],"Serializer":["DateTime"]},"DoubleSerializer":{"PrimitiveSerializer":["double"],"Serializer":["double"]},"DurationSerializer":{"PrimitiveSerializer":["Duration"],"Serializer":["Duration"]},"Int32Serializer":{"PrimitiveSerializer":["Int32"],"Serializer":["Int32"]},"Int64Serializer":{"PrimitiveSerializer":["Int64"],"Serializer":["Int64"]},"IntSerializer":{"PrimitiveSerializer":["int"],"Serializer":["int"]},"JsonObjectSerializer":{"PrimitiveSerializer":["JsonObject"],"Serializer":["JsonObject"]},"NullSerializer":{"PrimitiveSerializer":["Null"],"Serializer":["Null"]},"NumSerializer":{"PrimitiveSerializer":["num"],"Serializer":["num"]},"RegExpSerializer":{"PrimitiveSerializer":["RegExp"],"Serializer":["RegExp"]},"StringSerializer":{"PrimitiveSerializer":["String"],"Serializer":["String"]},"Uint8ListSerializer":{"PrimitiveSerializer":["Uint8List"],"Serializer":["Uint8List"]},"UriSerializer":{"PrimitiveSerializer":["Uri"],"Serializer":["Uri"]},"DefaultEquality":{"Equality":["1"]},"IterableEquality":{"Equality":["Iterable<1>"]},"ListEquality":{"Equality":["List<1>"]},"_UnorderedEquality":{"Equality":["2"]},"SetEquality":{"_UnorderedEquality":["1","Set<1>"],"Equality":["Set<1>"],"_UnorderedEquality.E":"1","_UnorderedEquality.T":"Set<1>"},"MapEquality":{"Equality":["Map<1,2>"]},"DeepCollectionEquality":{"Equality":["@"]},"QueueList":{"ListBase":["1"],"List":["1"],"Queue":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","QueueList.E":"1","Iterable.E":"1"},"_CastQueueList":{"QueueList":["2"],"ListBase":["2"],"List":["2"],"Queue":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListBase.E":"2","QueueList.E":"2","Iterable.E":"2"},"_$BuildStatusSerializer":{"PrimitiveSerializer":["BuildStatus"],"Serializer":["BuildStatus"]},"_$BuildResultSerializer":{"StructuredSerializer":["BuildResult"],"Serializer":["BuildResult"]},"_$BuildResult":{"BuildResult":[]},"_$ConnectRequestSerializer":{"StructuredSerializer":["ConnectRequest"],"Serializer":["ConnectRequest"]},"_$ConnectRequest":{"ConnectRequest":[]},"_$DebugEventSerializer":{"StructuredSerializer":["DebugEvent"],"Serializer":["DebugEvent"]},"_$BatchedDebugEventsSerializer":{"StructuredSerializer":["BatchedDebugEvents"],"Serializer":["BatchedDebugEvents"]},"_$DebugEvent":{"DebugEvent":[]},"_$BatchedDebugEvents":{"BatchedDebugEvents":[]},"_$DebugInfoSerializer":{"StructuredSerializer":["DebugInfo"],"Serializer":["DebugInfo"]},"_$DebugInfo":{"DebugInfo":[]},"_$DevToolsRequestSerializer":{"StructuredSerializer":["DevToolsRequest"],"Serializer":["DevToolsRequest"]},"_$DevToolsResponseSerializer":{"StructuredSerializer":["DevToolsResponse"],"Serializer":["DevToolsResponse"]},"_$DevToolsRequest":{"DevToolsRequest":[]},"_$DevToolsResponse":{"DevToolsResponse":[]},"_$ErrorResponseSerializer":{"StructuredSerializer":["ErrorResponse"],"Serializer":["ErrorResponse"]},"_$ErrorResponse":{"ErrorResponse":[]},"_$ExtensionRequestSerializer":{"StructuredSerializer":["ExtensionRequest"],"Serializer":["ExtensionRequest"]},"_$ExtensionResponseSerializer":{"StructuredSerializer":["ExtensionResponse"],"Serializer":["ExtensionResponse"]},"_$ExtensionEventSerializer":{"StructuredSerializer":["ExtensionEvent"],"Serializer":["ExtensionEvent"]},"_$BatchedEventsSerializer":{"StructuredSerializer":["BatchedEvents"],"Serializer":["BatchedEvents"]},"_$ExtensionRequest":{"ExtensionRequest":[]},"_$ExtensionResponse":{"ExtensionResponse":[]},"_$ExtensionEvent":{"ExtensionEvent":[]},"_$BatchedEvents":{"BatchedEvents":[]},"_$IsolateExitSerializer":{"StructuredSerializer":["IsolateExit"],"Serializer":["IsolateExit"]},"_$IsolateStartSerializer":{"StructuredSerializer":["IsolateStart"],"Serializer":["IsolateStart"]},"_$IsolateExit":{"IsolateExit":[]},"_$IsolateStart":{"IsolateStart":[]},"_$RegisterEventSerializer":{"StructuredSerializer":["RegisterEvent"],"Serializer":["RegisterEvent"]},"_$RegisterEvent":{"RegisterEvent":[]},"_$RunRequestSerializer":{"StructuredSerializer":["RunRequest"],"Serializer":["RunRequest"]},"_$RunRequest":{"RunRequest":[]},"SseSocketClient":{"SocketClient":[]},"WebSocketClient":{"SocketClient":[]},"Int32":{"Comparable":["Object"]},"Int64":{"Comparable":["Object"]},"Level":{"Comparable":["Level"]},"SseClient":{"StreamChannel":["String?"]},"GuaranteeChannel":{"StreamChannel":["1"]},"_GuaranteeSink":{"StreamSink":["1"]},"StreamChannelMixin":{"StreamChannel":["1"]},"_EventStream":{"Stream":["1"],"Stream.T":"1"},"_EventStreamSubscription0":{"StreamSubscription":["1"]},"BrowserWebSocket":{"WebSocket0":[]},"TextDataReceived":{"WebSocketEvent":[]},"BinaryDataReceived":{"WebSocketEvent":[]},"CloseReceived":{"WebSocketEvent":[]},"AdapterWebSocketChannel":{"WebSocketChannel":[],"StreamChannel":["@"]},"_WebSocketSink":{"WebSocketSink":[],"DelegatingStreamSink":["@"],"StreamSink":["@"],"DelegatingStreamSink.T":"@"},"DdcRestarter":{"Restarter":[]},"RequireRestarter":{"Restarter":[]},"ByteData":{"TypedData":[]},"Int8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TypedData":[]},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TypedData":[]},"Uint8ClampedList":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TypedData":[]},"Int16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TypedData":[]},"Uint16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TypedData":[]},"Int32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TypedData":[]},"Uint32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TypedData":[]},"Float32List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"TypedData":[]},"Float64List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"TypedData":[]}}')); - A._Universe_addErasedTypes(init.typeUniverse, JSON.parse('{"UnmodifiableListBase":1,"__CastListBase__CastIterableBase_ListMixin":2,"NativeTypedArray":1,"_DelayedEvent":1,"_SplayTreeSet__SplayTree_Iterable":1,"_SplayTreeSet__SplayTree_Iterable_SetMixin":1,"MapEntry":2,"_JsArray_JsObject_ListMixin":1,"_QueueList_Object_ListMixin":1,"StreamChannelMixin":1}')); + A._Universe_addRules(init.typeUniverse, JSON.parse('{"JavaScriptFunction":"LegacyJavaScriptObject","PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","JavaScriptObject":{"JSObject":[]},"JSArray":{"List":["1"],"JavaScriptObject":[],"EfficientLengthIterable":["1"],"JSObject":[],"Iterable":["1"],"Iterable.E":"1"},"JSBool":{"bool":[],"TrustedGetRuntimeType":[]},"JSNull":{"Null":[],"TrustedGetRuntimeType":[]},"LegacyJavaScriptObject":{"JavaScriptObject":[],"JSObject":[]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"JavaScriptObject":[],"EfficientLengthIterable":["1"],"JSObject":[],"Iterable":["1"],"Iterable.E":"1"},"ArrayIterator":{"Iterator":["1"]},"JSNumber":{"double":[],"num":[],"Comparable":["num"]},"JSInt":{"double":[],"int":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSNumNotInt":{"double":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSString":{"String":[],"Comparable":["String"],"Pattern":[],"TrustedGetRuntimeType":[]},"_CastIterableBase":{"Iterable":["2"]},"CastIterator":{"Iterator":["2"]},"CastIterable":{"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_EfficientLengthCastIterable":{"CastIterable":["1","2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"CastMap":{"MapBase":["3","4"],"Map":["3","4"],"MapBase.K":"3","MapBase.V":"4"},"LateError":{"Error":[]},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"ListIterator":{"Iterator":["1"]},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedIterator":{"Iterator":["2"]},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListIterable.E":"2","Iterable.E":"2"},"TakeIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthTakeIterable":{"TakeIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"TakeIterator":{"Iterator":["1"]},"SkipIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthSkipIterable":{"SkipIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipIterator":{"Iterator":["1"]},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"EmptyIterator":{"Iterator":["1"]},"UnmodifiableListBase":{"ListBase":["1"],"UnmodifiableListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"_KeysOrValues":{"Iterable":["1"],"Iterable.E":"1"},"_KeysOrValuesOrElementsIterator":{"Iterator":["1"]},"NullError":{"TypeError":[],"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"_StackTrace":{"StackTrace":[]},"Closure":{"Function":[]},"Closure0Args":{"Function":[]},"Closure2Args":{"Function":[]},"TearOffClosure":{"Function":[]},"StaticClosure":{"Function":[]},"BoundClosure":{"Function":[]},"_CyclicInitializationError":{"Error":[]},"RuntimeError":{"Error":[]},"_AssertionError":{"Error":[]},"JsLinkedHashMap":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"LinkedHashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"LinkedHashMapKeyIterator":{"Iterator":["1"]},"JSSyntaxRegExp":{"RegExp":[],"Pattern":[]},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"_AllMatchesIterator":{"Iterator":["RegExpMatch"]},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"_StringAllMatchesIterator":{"Iterator":["Match"]},"NativeByteBuffer":{"JavaScriptObject":[],"JSObject":[],"ByteBuffer":[],"TrustedGetRuntimeType":[]},"NativeTypedData":{"JavaScriptObject":[],"JSObject":[]},"_UnmodifiableNativeByteBufferView":{"ByteBuffer":[]},"NativeByteData":{"JavaScriptObject":[],"ByteData":[],"JSObject":[],"TrustedGetRuntimeType":[]},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"],"JavaScriptObject":[],"JSObject":[]},"NativeTypedArrayOfDouble":{"ListBase":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"JavaScriptObject":[],"EfficientLengthIterable":["double"],"JSObject":[],"Iterable":["double"],"FixedLengthListMixin":["double"]},"NativeTypedArrayOfInt":{"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"Iterable":["int"],"FixedLengthListMixin":["int"]},"NativeFloat32List":{"Float32List":[],"ListBase":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"JavaScriptObject":[],"EfficientLengthIterable":["double"],"JSObject":[],"Iterable":["double"],"FixedLengthListMixin":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double","Iterable.E":"double"},"NativeFloat64List":{"Float64List":[],"ListBase":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"JavaScriptObject":[],"EfficientLengthIterable":["double"],"JSObject":[],"Iterable":["double"],"FixedLengthListMixin":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double","Iterable.E":"double"},"NativeInt16List":{"Int16List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeInt32List":{"Int32List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeInt8List":{"Int8List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeUint16List":{"Uint16List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeUint32List":{"Uint32List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeUint8ClampedList":{"Uint8ClampedList":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"NativeUint8List":{"Uint8List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int"},"_Type":{"Type":[]},"_Error":{"Error":[]},"_TypeError":{"TypeError":[],"Error":[]},"AsyncError":{"Error":[]},"_Future":{"Future":["1"]},"_TimerImpl":{"Timer":[]},"_AsyncAwaitCompleter":{"Completer":["1"]},"_Completer":{"Completer":["1"]},"_AsyncCompleter":{"_Completer":["1"],"Completer":["1"]},"_SyncCompleter":{"_Completer":["1"],"Completer":["1"]},"_StreamController":{"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_AsyncStreamController":{"_AsyncStreamControllerDispatch":["1"],"_StreamController":["1"],"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_SyncStreamController":{"_SyncStreamControllerDispatch":["1"],"_StreamController":["1"],"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_ControllerStream":{"_StreamImpl":["1"],"Stream":["1"],"Stream.T":"1"},"_ControllerSubscription":{"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"],"_EventSink":["1"],"_EventDispatch":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamSinkWrapper":{"StreamSink":["1"]},"_BufferingStreamSubscription":{"StreamSubscription":["1"],"_EventSink":["1"],"_EventDispatch":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamImpl":{"Stream":["1"]},"_DelayedData":{"_DelayedEvent":["1"]},"_DelayedError":{"_DelayedEvent":["@"]},"_DelayedDone":{"_DelayedEvent":["@"]},"_ForwardingStream":{"Stream":["2"]},"_ForwardingStreamSubscription":{"_BufferingStreamSubscription":["2"],"StreamSubscription":["2"],"_EventSink":["2"],"_EventDispatch":["2"],"_BufferingStreamSubscription.T":"2"},"_MapStream":{"_ForwardingStream":["1","2"],"Stream":["2"],"Stream.T":"2"},"_ZoneSpecification":{"ZoneSpecification":[]},"_ZoneDelegate":{"ZoneDelegate":[]},"_Zone":{"Zone":[]},"_CustomZone":{"_Zone":[],"Zone":[]},"_RootZone":{"_Zone":[],"Zone":[]},"_SplayTreeSetNode":{"_SplayTreeNode":["1","_SplayTreeSetNode<1>"],"_SplayTreeNode.1":"_SplayTreeSetNode<1>","_SplayTreeNode.K":"1"},"_HashMap":{"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_IdentityHashMap":{"_HashMap":["1","2"],"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_CustomHashMap":{"_HashMap":["1","2"],"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_HashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_HashMapKeyIterator":{"Iterator":["1"]},"_HashSet":{"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_HashSetIterator":{"Iterator":["1"]},"_LinkedHashSet":{"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_LinkedHashSetIterator":{"Iterator":["1"]},"UnmodifiableListView":{"ListBase":["1"],"UnmodifiableListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","Iterable.E":"1","UnmodifiableListMixin.E":"1"},"ListBase":{"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapBase":{"Map":["1","2"]},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":["1","2"],"MapView":["1","2"],"_UnmodifiableMapMixin":["1","2"],"Map":["1","2"]},"ListQueue":{"Queue":["1"],"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"_ListQueueIterator":{"Iterator":["1"]},"SetBase":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_SetBase":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_SplayTreeIterator":{"Iterator":["3"]},"_SplayTreeKeyIterator":{"_SplayTreeIterator":["1","2","1"],"Iterator":["1"],"_SplayTreeIterator.K":"1","_SplayTreeIterator.T":"1","_SplayTreeIterator.1":"2"},"SplayTreeSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"_SplayTree":["1","_SplayTreeSetNode<1>"],"Iterable":["1"],"Iterable.E":"1","_SplayTree.1":"_SplayTreeSetNode<1>","_SplayTree.K":"1"},"_JsonMap":{"MapBase":["String","@"],"Map":["String","@"],"MapBase.K":"String","MapBase.V":"@"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"ListIterable.E":"String","Iterable.E":"String"},"Base64Codec":{"Codec":["List","String"],"Codec.S":"List"},"Base64Encoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"Base64Decoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"Converter":{"StreamTransformer":["1","2"]},"Encoding":{"Codec":["String","List"]},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"JsonCodec":{"Codec":["Object?","String"],"Codec.S":"Object?"},"JsonEncoder":{"Converter":["Object?","String"],"StreamTransformer":["Object?","String"]},"JsonDecoder":{"Converter":["String","Object?"],"StreamTransformer":["String","Object?"]},"Utf8Codec":{"Codec":["String","List"],"Codec.S":"String"},"Utf8Encoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"BigInt":{"Comparable":["BigInt"]},"DateTime":{"Comparable":["DateTime"]},"double":{"num":[],"Comparable":["num"]},"Duration":{"Comparable":["Duration"]},"int":{"num":[],"Comparable":["num"]},"List":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"num":{"Comparable":["num"]},"RegExp":{"Pattern":[]},"RegExpMatch":{"Match":[]},"Set":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"String":{"Comparable":["String"],"Pattern":[]},"_BigIntImpl":{"BigInt":[],"Comparable":["BigInt"]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"IntegerDivisionByZeroException":{"Error":[]},"_StringStackTrace":{"StackTrace":[]},"StringBuffer":{"StringSink":[]},"_Uri":{"Uri":[]},"_SimpleUri":{"Uri":[]},"_DataUri":{"Uri":[]},"DelegatingStreamSink":{"StreamSink":["1"]},"ErrorResult":{"Result":["0&"]},"ValueResult":{"Result":["1"]},"_NextRequest":{"_EventRequest":["1"]},"_HasNextRequest":{"_EventRequest":["1"]},"BuiltList":{"Iterable":["1"]},"_BuiltList":{"BuiltList":["1"],"Iterable":["1"],"Iterable.E":"1"},"_BuiltListMultimap":{"BuiltListMultimap":["1","2"]},"_BuiltMap":{"BuiltMap":["1","2"]},"BuiltSet":{"Iterable":["1"]},"_BuiltSet":{"BuiltSet":["1"],"Iterable":["1"],"Iterable.E":"1"},"_BuiltSetMultimap":{"BuiltSetMultimap":["1","2"]},"BuiltValueNullFieldError":{"Error":[]},"BuiltValueNestedFieldError":{"Error":[]},"BoolJsonObject":{"JsonObject":[]},"ListJsonObject":{"JsonObject":[]},"MapJsonObject":{"JsonObject":[]},"NumJsonObject":{"JsonObject":[]},"StringJsonObject":{"JsonObject":[]},"DeserializationError":{"Error":[]},"BigIntSerializer":{"PrimitiveSerializer":["BigInt"],"Serializer":["BigInt"]},"BoolSerializer":{"PrimitiveSerializer":["bool"],"Serializer":["bool"]},"BuiltJsonSerializers":{"Serializers":[]},"BuiltListMultimapSerializer":{"StructuredSerializer":["BuiltListMultimap<@,@>"],"Serializer":["BuiltListMultimap<@,@>"]},"BuiltListSerializer":{"StructuredSerializer":["BuiltList<@>"],"Serializer":["BuiltList<@>"]},"BuiltMapSerializer":{"StructuredSerializer":["BuiltMap<@,@>"],"Serializer":["BuiltMap<@,@>"]},"BuiltSetMultimapSerializer":{"StructuredSerializer":["BuiltSetMultimap<@,@>"],"Serializer":["BuiltSetMultimap<@,@>"]},"BuiltSetSerializer":{"StructuredSerializer":["BuiltSet<@>"],"Serializer":["BuiltSet<@>"]},"DateTimeSerializer":{"PrimitiveSerializer":["DateTime"],"Serializer":["DateTime"]},"DoubleSerializer":{"PrimitiveSerializer":["double"],"Serializer":["double"]},"DurationSerializer":{"PrimitiveSerializer":["Duration"],"Serializer":["Duration"]},"Int32Serializer":{"PrimitiveSerializer":["Int32"],"Serializer":["Int32"]},"Int64Serializer":{"PrimitiveSerializer":["Int64"],"Serializer":["Int64"]},"IntSerializer":{"PrimitiveSerializer":["int"],"Serializer":["int"]},"JsonObjectSerializer":{"PrimitiveSerializer":["JsonObject"],"Serializer":["JsonObject"]},"NullSerializer":{"PrimitiveSerializer":["Null"],"Serializer":["Null"]},"NumSerializer":{"PrimitiveSerializer":["num"],"Serializer":["num"]},"RegExpSerializer":{"PrimitiveSerializer":["RegExp"],"Serializer":["RegExp"]},"StringSerializer":{"PrimitiveSerializer":["String"],"Serializer":["String"]},"Uint8ListSerializer":{"PrimitiveSerializer":["Uint8List"],"Serializer":["Uint8List"]},"UriSerializer":{"PrimitiveSerializer":["Uri"],"Serializer":["Uri"]},"DefaultEquality":{"Equality":["1"]},"IterableEquality":{"Equality":["Iterable<1>"]},"ListEquality":{"Equality":["List<1>"]},"_UnorderedEquality":{"Equality":["2"]},"SetEquality":{"_UnorderedEquality":["1","Set<1>"],"Equality":["Set<1>"],"_UnorderedEquality.E":"1","_UnorderedEquality.T":"Set<1>"},"MapEquality":{"Equality":["Map<1,2>"]},"DeepCollectionEquality":{"Equality":["@"]},"QueueList":{"ListBase":["1"],"List":["1"],"Queue":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","QueueList.E":"1","Iterable.E":"1"},"_$BuildStatusSerializer":{"PrimitiveSerializer":["BuildStatus"],"Serializer":["BuildStatus"]},"_$BuildResultSerializer":{"StructuredSerializer":["BuildResult"],"Serializer":["BuildResult"]},"_$BuildResult":{"BuildResult":[]},"_$ConnectRequestSerializer":{"StructuredSerializer":["ConnectRequest"],"Serializer":["ConnectRequest"]},"_$ConnectRequest":{"ConnectRequest":[]},"_$DebugEventSerializer":{"StructuredSerializer":["DebugEvent"],"Serializer":["DebugEvent"]},"_$BatchedDebugEventsSerializer":{"StructuredSerializer":["BatchedDebugEvents"],"Serializer":["BatchedDebugEvents"]},"_$DebugEvent":{"DebugEvent":[]},"_$BatchedDebugEvents":{"BatchedDebugEvents":[]},"_$DebugInfoSerializer":{"StructuredSerializer":["DebugInfo"],"Serializer":["DebugInfo"]},"_$DebugInfo":{"DebugInfo":[]},"_$DevToolsRequestSerializer":{"StructuredSerializer":["DevToolsRequest"],"Serializer":["DevToolsRequest"]},"_$DevToolsResponseSerializer":{"StructuredSerializer":["DevToolsResponse"],"Serializer":["DevToolsResponse"]},"_$DevToolsRequest":{"DevToolsRequest":[]},"_$DevToolsResponse":{"DevToolsResponse":[]},"_$ErrorResponseSerializer":{"StructuredSerializer":["ErrorResponse"],"Serializer":["ErrorResponse"]},"_$ErrorResponse":{"ErrorResponse":[]},"_$ExtensionRequestSerializer":{"StructuredSerializer":["ExtensionRequest"],"Serializer":["ExtensionRequest"]},"_$ExtensionResponseSerializer":{"StructuredSerializer":["ExtensionResponse"],"Serializer":["ExtensionResponse"]},"_$ExtensionEventSerializer":{"StructuredSerializer":["ExtensionEvent"],"Serializer":["ExtensionEvent"]},"_$BatchedEventsSerializer":{"StructuredSerializer":["BatchedEvents"],"Serializer":["BatchedEvents"]},"_$ExtensionRequest":{"ExtensionRequest":[]},"_$ExtensionResponse":{"ExtensionResponse":[]},"_$ExtensionEvent":{"ExtensionEvent":[]},"_$BatchedEvents":{"BatchedEvents":[]},"_$IsolateExitSerializer":{"StructuredSerializer":["IsolateExit"],"Serializer":["IsolateExit"]},"_$IsolateStartSerializer":{"StructuredSerializer":["IsolateStart"],"Serializer":["IsolateStart"]},"_$IsolateExit":{"IsolateExit":[]},"_$IsolateStart":{"IsolateStart":[]},"_$RegisterEventSerializer":{"StructuredSerializer":["RegisterEvent"],"Serializer":["RegisterEvent"]},"_$RegisterEvent":{"RegisterEvent":[]},"_$RunRequestSerializer":{"StructuredSerializer":["RunRequest"],"Serializer":["RunRequest"]},"_$RunRequest":{"RunRequest":[]},"SseSocketClient":{"SocketClient":[]},"WebSocketClient":{"SocketClient":[]},"Int32":{"Comparable":["Object"]},"Int64":{"Comparable":["Object"]},"Level":{"Comparable":["Level"]},"SseClient":{"StreamChannel":["String?"]},"GuaranteeChannel":{"StreamChannel":["1"]},"_GuaranteeSink":{"StreamSink":["1"]},"StreamChannelMixin":{"StreamChannel":["1"]},"_EventStream":{"Stream":["1"],"Stream.T":"1"},"_EventStreamSubscription":{"StreamSubscription":["1"]},"HtmlWebSocketChannel":{"WebSocketChannel":[],"StreamChannel":["@"]},"_HtmlWebSocketSink":{"WebSocketSink":[],"DelegatingStreamSink":["@"],"StreamSink":["@"],"DelegatingStreamSink.T":"@"},"WebSocketChannel":{"StreamChannel":["@"]},"DdcRestarter":{"Restarter":[]},"RequireRestarter":{"Restarter":[]},"Int8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8ClampedList":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Int16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Int32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Float32List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"Float64List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]}}')); + A._Universe_addErasedTypes(init.typeUniverse, JSON.parse('{"UnmodifiableListBase":1,"NativeTypedArray":1,"_DelayedEvent":1,"_SplayTreeSet__SplayTree_Iterable":1,"_SplayTreeSet__SplayTree_Iterable_SetMixin":1,"MapEntry":2,"_QueueList_Object_ListMixin":1,"StreamChannelMixin":1}')); var string$ = { ABCDEF: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Error_: "Error handler must accept one Object or one Object and a StackTrace as arguments, and return a value of the returned future's type", + max_mu: "max must be in range 0 < max \u2264 2^32, was ", serial: "serializer must be StructuredSerializer or PrimitiveSerializer" }; var type$ = (function rtii() { @@ -27224,14 +22675,10 @@ return { AsyncError: findType("AsyncError"), Base64Codec: findType("Base64Codec"), - BaseElement: findType("BaseElement"), BatchedDebugEvents: findType("BatchedDebugEvents"), BatchedEvents: findType("BatchedEvents"), BatchedStreamController_DebugEvent: findType("BatchedStreamController"), BigInt: findType("BigInt"), - Blob: findType("Blob"), - BodyElement: findType("BodyElement"), - BrowserWebSocket: findType("BrowserWebSocket"), BuildResult: findType("BuildResult"), BuildStatus: findType("BuildStatus"), BuiltListMultimap_dynamic_dynamic: findType("BuiltListMultimap<@,@>"), @@ -27247,66 +22694,47 @@ Comparable_dynamic: findType("Comparable<@>"), Completer_bool: findType("Completer"), ConnectRequest: findType("ConnectRequest"), - ConstantMapView_Symbol_dynamic: findType("ConstantMapView"), - CssRule: findType("CssRule"), - CustomEvent: findType("CustomEvent"), DateTime: findType("DateTime"), DebugEvent: findType("DebugEvent"), DebugInfo: findType("DebugInfo"), DevToolsRequest: findType("DevToolsRequest"), DevToolsResponse: findType("DevToolsResponse"), - Document: findType("Document"), Duration: findType("Duration"), EfficientLengthIterable_dynamic: findType("EfficientLengthIterable<@>"), - Element: findType("Element"), Error: findType("Error"), ErrorResponse: findType("ErrorResponse"), - Event: findType("Event"), ExtensionEvent: findType("ExtensionEvent"), ExtensionRequest: findType("ExtensionRequest"), ExtensionResponse: findType("ExtensionResponse"), - File: findType("File"), - FileList: findType("FileList"), Float32List: findType("Float32List"), Float64List: findType("Float64List"), FullType: findType("FullType"), Function: findType("Function"), Future_dynamic: findType("Future<@>"), Future_void: findType("Future<~>"), - HtmlElement: findType("HtmlElement"), - ImageData: findType("ImageData"), Int16List: findType("Int16List"), Int32: findType("Int32"), Int32List: findType("Int32List"), Int64: findType("Int64"), Int8List: findType("Int8List"), - Invocation: findType("Invocation"), IsolateExit: findType("IsolateExit"), IsolateStart: findType("IsolateStart"), IterableEquality_dynamic: findType("IterableEquality<@>"), - Iterable_Node: findType("Iterable"), Iterable_dynamic: findType("Iterable<@>"), Iterable_nullable_Object: findType("Iterable"), JSArray_FullType: findType("JSArray"), - JSArray_NodeValidator: findType("JSArray"), JSArray_Object: findType("JSArray"), JSArray_String: findType("JSArray"), JSArray_Type: findType("JSArray"), JSArray_dynamic: findType("JSArray<@>"), JSArray_int: findType("JSArray"), JSArray_nullable_Object: findType("JSArray"), - JSIndexable_dynamic: findType("JSIndexable<@>"), JSNull: findType("JSNull"), JSObject: findType("JSObject"), JavaScriptFunction: findType("JavaScriptFunction"), JavaScriptIndexingBehavior_dynamic: findType("JavaScriptIndexingBehavior<@>"), - JsArray_dynamic: findType("JsArray<@>"), - JsError: findType("JsError"), - JsLinkedHashMap_Symbol_dynamic: findType("JsLinkedHashMap"), + JavaScriptObject: findType("JavaScriptObject"), JsonObject: findType("JsonObject"), - KeyRange: findType("KeyRange"), - KeyboardEvent: findType("KeyboardEvent"), - Length: findType("Length"), Level: findType("Level"), ListBuilder_DebugEvent: findType("ListBuilder"), ListBuilder_ExtensionEvent: findType("ListBuilder"), @@ -27319,7 +22747,6 @@ List_dynamic: findType("List<@>"), List_int: findType("List"), List_nullable_Object: findType("List"), - Location: findType("Location"), Logger: findType("Logger"), MapBuilder_dynamic_dynamic: findType("MapBuilder<@,@>"), MapEquality_dynamic_dynamic: findType("MapEquality<@,@>"), @@ -27327,65 +22754,37 @@ Map_dynamic_dynamic: findType("Map<@,@>"), Map_of_String_and_nullable_Object: findType("Map"), Map_of_nullable_Object_and_nullable_Object: findType("Map"), - MappedListIterable_String_String: findType("MappedListIterable"), - MessageEvent: findType("MessageEvent"), - MessagePort: findType("MessagePort"), - MimeType: findType("MimeType"), NativeByteBuffer: findType("NativeByteBuffer"), - NativeTypedData: findType("NativeTypedData"), NativeUint8List: findType("NativeUint8List"), - Node: findType("Node"), - NodeValidator: findType("NodeValidator"), Null: findType("Null"), - Number: findType("Number"), Object: findType("Object"), - Plugin: findType("Plugin"), PoolResource: findType("PoolResource"), PrimitiveSerializer_dynamic: findType("PrimitiveSerializer<@>"), - ProgressEvent: findType("ProgressEvent"), - Promise_bool_Function_String_$opt_nullable_bool: findType("Promise<1&>(String[bool?])"), - Promise_void: findType("Promise<1&>"), QueueList_Result_DebugEvent: findType("QueueList>"), Record: findType("Record"), Record_0: findType("+()"), - Rectangle_num: findType("Rectangle"), RegExp: findType("RegExp"), RegExpMatch: findType("RegExpMatch"), RegisterEvent: findType("RegisterEvent"), RequireRestarter: findType("RequireRestarter"), ReversedListIterable_String: findType("ReversedListIterable"), RunRequest: findType("RunRequest"), - ScriptElement: findType("ScriptElement0"), SerializerPlugin: findType("SerializerPlugin"), Serializer_dynamic: findType("Serializer<@>"), SetBuilder_dynamic: findType("SetBuilder<@>"), SetEquality_dynamic: findType("SetEquality<@>"), SetMultimapBuilder_dynamic_dynamic: findType("SetMultimapBuilder<@,@>"), Set_dynamic: findType("Set<@>"), - SharedArrayBuffer: findType("SharedArrayBuffer"), - SourceBuffer: findType("SourceBuffer"), - SpeechGrammar: findType("SpeechGrammar"), - SpeechRecognitionResult: findType("SpeechRecognitionResult"), SplayTreeSet_String: findType("SplayTreeSet"), StackTrace: findType("StackTrace"), StreamChannelController_nullable_Object: findType("StreamChannelController"), StreamQueue_DebugEvent: findType("StreamQueue"), String: findType("String"), - String_Function_String: findType("String(String)"), StructuredSerializer_dynamic: findType("StructuredSerializer<@>"), - StyleSheet: findType("StyleSheet"), - SvgElement: findType("SvgElement"), - Symbol: findType("Symbol0"), - TemplateElement: findType("TemplateElement"), - TextTrack: findType("TextTrack"), - TextTrackCue: findType("TextTrackCue"), Timer: findType("Timer"), - Touch: findType("Touch"), - Transform: findType("Transform"), TrustedGetRuntimeType: findType("TrustedGetRuntimeType"), Type: findType("Type"), TypeError: findType("TypeError"), - TypedData: findType("TypedData"), Uint16List: findType("Uint16List"), Uint32List: findType("Uint32List"), Uint8ClampedList: findType("Uint8ClampedList"), @@ -27394,33 +22793,22 @@ UnmodifiableListView_nullable_Object: findType("UnmodifiableListView"), UnmodifiableMapView_of_String_and_nullable_Object: findType("UnmodifiableMapView"), Uri: findType("Uri"), - WebSocket: findType("WebSocket0"), - WebSocketEvent: findType("WebSocketEvent"), - Window: findType("Window"), - WindowBase: findType("WindowBase"), - WorkerGlobalScope: findType("WorkerGlobalScope"), Zone: findType("Zone"), - _AsyncCompleter_BrowserWebSocket: findType("_AsyncCompleter"), - _AsyncCompleter_HttpRequest: findType("_AsyncCompleter"), + _AsyncCompleter_JavaScriptObject: findType("_AsyncCompleter"), _AsyncCompleter_PoolResource: findType("_AsyncCompleter"), _AsyncCompleter_bool: findType("_AsyncCompleter"), _AsyncCompleter_dynamic: findType("_AsyncCompleter<@>"), _AsyncCompleter_void: findType("_AsyncCompleter<~>"), - _Attr: findType("_Attr"), _BigIntImpl: findType("_BigIntImpl"), _BuiltMap_dynamic_dynamic: findType("_BuiltMap<@,@>"), - _ChildNodeListLazy: findType("_ChildNodeListLazy"), _EventRequest_dynamic: findType("_EventRequest<@>"), - _EventStream_JSObject: findType("_EventStream"), - _FrozenElementList_Element: findType("_FrozenElementList"), - _Future_BrowserWebSocket: findType("_Future"), - _Future_HttpRequest: findType("_Future"), + _EventStream_JavaScriptObject: findType("_EventStream"), + _Future_JavaScriptObject: findType("_Future"), _Future_PoolResource: findType("_Future"), _Future_bool: findType("_Future"), _Future_dynamic: findType("_Future<@>"), _Future_int: findType("_Future"), _Future_void: findType("_Future<~>"), - _Html5NodeValidator: findType("_Html5NodeValidator"), _IdentityHashMap_of_nullable_Object_and_nullable_Object: findType("_IdentityHashMap"), _MapEntry: findType("_MapEntry"), _StreamControllerAddStreamState_nullable_Object: findType("_StreamControllerAddStreamState"), @@ -27431,17 +22819,15 @@ double: findType("double"), dynamic: findType("@"), dynamic_Function: findType("@()"), - dynamic_Function_Event: findType("@(Event)"), dynamic_Function_Object: findType("@(Object)"), dynamic_Function_Object_StackTrace: findType("@(Object,StackTrace)"), - dynamic_Function_dynamic: findType("@(@)"), - dynamic_Function_dynamic_dynamic: findType("@(@,@)"), int: findType("int"), legacy_Never: findType("0&*"), legacy_Object: findType("Object*"), nullable_Future_Null: findType("Future?"), - nullable_Gamepad: findType("Gamepad?"), + nullable_JSArray_nullable_Object: findType("JSArray?"), nullable_JSObject: findType("JSObject?"), + nullable_JavaScriptObject: findType("JavaScriptObject?"), nullable_ListBuilder_DebugEvent: findType("ListBuilder?"), nullable_ListBuilder_ExtensionEvent: findType("ListBuilder?"), nullable_List_dynamic: findType("List<@>?"), @@ -27455,40 +22841,25 @@ nullable__DelayedEvent_dynamic: findType("_DelayedEvent<@>?"), nullable__FutureListener_dynamic_dynamic: findType("_FutureListener<@,@>?"), nullable__LinkedHashSetCell: findType("_LinkedHashSetCell?"), - nullable_dynamic_Function_Event: findType("@(Event)?"), - nullable_int_Function_Node_Node: findType("int(Node,Node)?"), nullable_void_Function: findType("~()?"), nullable_void_Function_BatchedDebugEventsBuilder: findType("~(BatchedDebugEventsBuilder)?"), nullable_void_Function_ConnectRequestBuilder: findType("~(ConnectRequestBuilder)?"), nullable_void_Function_DebugEventBuilder: findType("~(DebugEventBuilder)?"), nullable_void_Function_DebugInfoBuilder: findType("~(DebugInfoBuilder)?"), nullable_void_Function_DevToolsRequestBuilder: findType("~(DevToolsRequestBuilder)?"), - nullable_void_Function_JSObject: findType("~(JSObject)?"), - nullable_void_Function_KeyboardEvent: findType("~(KeyboardEvent)?"), - nullable_void_Function_MessageEvent: findType("~(MessageEvent)?"), - nullable_void_Function_ProgressEvent: findType("~(ProgressEvent)?"), + nullable_void_Function_JavaScriptObject: findType("~(JavaScriptObject)?"), nullable_void_Function_RegisterEventBuilder: findType("~(RegisterEventBuilder)?"), num: findType("num"), void: findType("~"), void_Function: findType("~()"), - void_Function_$opt_dynamic: findType("~([@])"), - void_Function_JsError: findType("~(JsError)"), void_Function_Object: findType("~(Object)"), void_Function_Object_StackTrace: findType("~(Object,StackTrace)"), - void_Function_String: findType("~(String)"), - void_Function_String_String: findType("~(String,String)"), void_Function_String_dynamic: findType("~(String,@)"), - void_Function_Timer: findType("~(Timer)"), - void_Function_dynamic: findType("~(@)") + void_Function_Timer: findType("~(Timer)") }; })(); (function constants() { var makeConstList = hunkHelpers.makeConstList; - B.AnchorElement_methods = A.AnchorElement.prototype; - B.BodyElement_methods = A.BodyElement.prototype; - B.DomImplementation_methods = A.DomImplementation.prototype; - B.HtmlDocument_methods = A.HtmlDocument.prototype; - B.HttpRequest_methods = A.HttpRequest.prototype; B.Interceptor_methods = J.Interceptor.prototype; B.JSArray_methods = J.JSArray.prototype; B.JSBool_methods = J.JSBool.prototype; @@ -27497,13 +22868,10 @@ B.JSString_methods = J.JSString.prototype; B.JavaScriptFunction_methods = J.JavaScriptFunction.prototype; B.JavaScriptObject_methods = J.JavaScriptObject.prototype; - B.Location_methods = A.Location.prototype; + B.NativeByteData_methods = A.NativeByteData.prototype; B.NativeUint8List_methods = A.NativeUint8List.prototype; - B.NodeList_methods = A.NodeList.prototype; B.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype; - B.TableElement_methods = A.TableElement.prototype; B.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype; - B.Window_methods = A.Window.prototype; B.BuildStatus_failed = new A.BuildStatus("failed"); B.BuildStatus_started = new A.BuildStatus("started"); B.BuildStatus_succeeded = new A.BuildStatus("succeeded"); @@ -27646,40 +23014,39 @@ B.C_Utf8Encoder = new A.Utf8Encoder(); B.C__DelayedDone = new A._DelayedDone(); B.C__JSRandom = new A._JSRandom(); - B.C__Required = new A._Required(); B.C__RootZone = new A._RootZone(); B.Duration_0 = new A.Duration(0); B.Duration_5000000 = new A.Duration(5000000); B.Type_BuiltSetMultimap_Xbt = A.typeLiteral("BuiltSetMultimap<@,@>"); B.Type_Object_QJv = A.typeLiteral("Object"); - B.List_empty1 = A._setArrayType(makeConstList([]), type$.JSArray_FullType); - B.FullType_Dj3 = new A.FullType(B.Type_Object_QJv, B.List_empty1, false); + B.List_empty0 = A._setArrayType(makeConstList([]), type$.JSArray_FullType); + B.FullType_Dj3 = new A.FullType(B.Type_Object_QJv, B.List_empty0, false); B.List_Hhy = A._setArrayType(makeConstList([B.FullType_Dj3, B.FullType_Dj3]), type$.JSArray_FullType); B.FullType_2pj = new A.FullType(B.Type_BuiltSetMultimap_Xbt, B.List_Hhy, false); B.Type_BuiltList_27p = A.typeLiteral("BuiltList<@>"); B.Type_DebugEvent_u7k = A.typeLiteral("DebugEvent"); - B.FullType_yfW = new A.FullType(B.Type_DebugEvent_u7k, B.List_empty1, false); + B.FullType_yfW = new A.FullType(B.Type_DebugEvent_u7k, B.List_empty0, false); B.List_cdS = A._setArrayType(makeConstList([B.FullType_yfW]), type$.JSArray_FullType); B.FullType_46c = new A.FullType(B.Type_BuiltList_27p, B.List_cdS, false); B.Type_BuiltSet_MMh = A.typeLiteral("BuiltSet<@>"); B.List_u2C = A._setArrayType(makeConstList([B.FullType_Dj3]), type$.JSArray_FullType); B.FullType_4aQ = new A.FullType(B.Type_BuiltSet_MMh, B.List_u2C, false); B.Type_BuildStatus_Rmx = A.typeLiteral("BuildStatus"); - B.FullType_KDE = new A.FullType(B.Type_BuildStatus_Rmx, B.List_empty1, false); + B.FullType_KDE = new A.FullType(B.Type_BuildStatus_Rmx, B.List_empty0, false); B.FullType_cgN = new A.FullType(B.Type_BuiltList_27p, B.List_u2C, false); B.Type_String_J2O = A.typeLiteral("String"); - B.FullType_iHz = new A.FullType(B.Type_String_J2O, B.List_empty1, false); + B.FullType_iHz = new A.FullType(B.Type_String_J2O, B.List_empty0, false); B.Type_bool_RoS = A.typeLiteral("bool"); - B.FullType_mpw = new A.FullType(B.Type_bool_RoS, B.List_empty1, false); - B.FullType_null_List_empty_false = new A.FullType(null, B.List_empty1, false); + B.FullType_mpw = new A.FullType(B.Type_bool_RoS, B.List_empty0, false); + B.FullType_null_List_empty_false = new A.FullType(null, B.List_empty0, false); B.Type_BuiltListMultimap_apl = A.typeLiteral("BuiltListMultimap<@,@>"); B.FullType_ow7 = new A.FullType(B.Type_BuiltListMultimap_apl, B.List_Hhy, false); B.Type_BuiltMap_MUU = A.typeLiteral("BuiltMap<@,@>"); B.FullType_wbi = new A.FullType(B.Type_BuiltMap_MUU, B.List_Hhy, false); B.Type_int_8nG = A.typeLiteral("int"); - B.FullType_xEI = new A.FullType(B.Type_int_8nG, B.List_empty1, false); + B.FullType_xEI = new A.FullType(B.Type_int_8nG, B.List_empty0, false); B.Type_ExtensionEvent_6Rj = A.typeLiteral("ExtensionEvent"); - B.FullType_6nc = new A.FullType(B.Type_ExtensionEvent_6Rj, B.List_empty1, false); + B.FullType_6nc = new A.FullType(B.Type_ExtensionEvent_6Rj, B.List_empty0, false); B.List_2nU = A._setArrayType(makeConstList([B.FullType_6nc]), type$.JSArray_FullType); B.FullType_zVP = new A.FullType(B.Type_BuiltList_27p, B.List_2nU, false); B.JsonDecoder_null = new A.JsonDecoder(null); @@ -27694,11 +23061,9 @@ B.List_2jN = A._setArrayType(makeConstList([0, 0, 32722, 12287, 65534, 34815, 65534, 18431]), type$.JSArray_int); B.List_42A = A._setArrayType(makeConstList([0, 0, 65490, 45055, 65535, 34815, 65534, 18431]), type$.JSArray_int); B.List_4AN = A._setArrayType(makeConstList([0, 0, 32754, 11263, 65534, 34815, 65534, 18431]), type$.JSArray_int); - B.List_4Jt = A._setArrayType(makeConstList(["A::href", "AREA::href", "BLOCKQUOTE::cite", "BODY::background", "COMMAND::icon", "DEL::cite", "FORM::action", "IMG::src", "INPUT::src", "INS::cite", "Q::cite", "VIDEO::poster"]), type$.JSArray_String); B.Type_BatchedEvents_JmU = A.typeLiteral("BatchedEvents"); B.Type__$BatchedEvents_Ctd = A.typeLiteral("_$BatchedEvents"); B.List_4mo = A._setArrayType(makeConstList([B.Type_BatchedEvents_JmU, B.Type__$BatchedEvents_Ctd]), type$.JSArray_Type); - B.List_AOY = A._setArrayType(makeConstList(["*::class", "*::dir", "*::draggable", "*::hidden", "*::id", "*::inert", "*::itemprop", "*::itemref", "*::itemscope", "*::lang", "*::spellcheck", "*::title", "*::translate", "A::accesskey", "A::coords", "A::hreflang", "A::name", "A::shape", "A::tabindex", "A::target", "A::type", "AREA::accesskey", "AREA::alt", "AREA::coords", "AREA::nohref", "AREA::shape", "AREA::tabindex", "AREA::target", "AUDIO::controls", "AUDIO::loop", "AUDIO::mediagroup", "AUDIO::muted", "AUDIO::preload", "BDO::dir", "BODY::alink", "BODY::bgcolor", "BODY::link", "BODY::text", "BODY::vlink", "BR::clear", "BUTTON::accesskey", "BUTTON::disabled", "BUTTON::name", "BUTTON::tabindex", "BUTTON::type", "BUTTON::value", "CANVAS::height", "CANVAS::width", "CAPTION::align", "COL::align", "COL::char", "COL::charoff", "COL::span", "COL::valign", "COL::width", "COLGROUP::align", "COLGROUP::char", "COLGROUP::charoff", "COLGROUP::span", "COLGROUP::valign", "COLGROUP::width", "COMMAND::checked", "COMMAND::command", "COMMAND::disabled", "COMMAND::label", "COMMAND::radiogroup", "COMMAND::type", "DATA::value", "DEL::datetime", "DETAILS::open", "DIR::compact", "DIV::align", "DL::compact", "FIELDSET::disabled", "FONT::color", "FONT::face", "FONT::size", "FORM::accept", "FORM::autocomplete", "FORM::enctype", "FORM::method", "FORM::name", "FORM::novalidate", "FORM::target", "FRAME::name", "H1::align", "H2::align", "H3::align", "H4::align", "H5::align", "H6::align", "HR::align", "HR::noshade", "HR::size", "HR::width", "HTML::version", "IFRAME::align", "IFRAME::frameborder", "IFRAME::height", "IFRAME::marginheight", "IFRAME::marginwidth", "IFRAME::width", "IMG::align", "IMG::alt", "IMG::border", "IMG::height", "IMG::hspace", "IMG::ismap", "IMG::name", "IMG::usemap", "IMG::vspace", "IMG::width", "INPUT::accept", "INPUT::accesskey", "INPUT::align", "INPUT::alt", "INPUT::autocomplete", "INPUT::autofocus", "INPUT::checked", "INPUT::disabled", "INPUT::inputmode", "INPUT::ismap", "INPUT::list", "INPUT::max", "INPUT::maxlength", "INPUT::min", "INPUT::multiple", "INPUT::name", "INPUT::placeholder", "INPUT::readonly", "INPUT::required", "INPUT::size", "INPUT::step", "INPUT::tabindex", "INPUT::type", "INPUT::usemap", "INPUT::value", "INS::datetime", "KEYGEN::disabled", "KEYGEN::keytype", "KEYGEN::name", "LABEL::accesskey", "LABEL::for", "LEGEND::accesskey", "LEGEND::align", "LI::type", "LI::value", "LINK::sizes", "MAP::name", "MENU::compact", "MENU::label", "MENU::type", "METER::high", "METER::low", "METER::max", "METER::min", "METER::value", "OBJECT::typemustmatch", "OL::compact", "OL::reversed", "OL::start", "OL::type", "OPTGROUP::disabled", "OPTGROUP::label", "OPTION::disabled", "OPTION::label", "OPTION::selected", "OPTION::value", "OUTPUT::for", "OUTPUT::name", "P::align", "PRE::width", "PROGRESS::max", "PROGRESS::min", "PROGRESS::value", "SELECT::autocomplete", "SELECT::disabled", "SELECT::multiple", "SELECT::name", "SELECT::required", "SELECT::size", "SELECT::tabindex", "SOURCE::type", "TABLE::align", "TABLE::bgcolor", "TABLE::border", "TABLE::cellpadding", "TABLE::cellspacing", "TABLE::frame", "TABLE::rules", "TABLE::summary", "TABLE::width", "TBODY::align", "TBODY::char", "TBODY::charoff", "TBODY::valign", "TD::abbr", "TD::align", "TD::axis", "TD::bgcolor", "TD::char", "TD::charoff", "TD::colspan", "TD::headers", "TD::height", "TD::nowrap", "TD::rowspan", "TD::scope", "TD::valign", "TD::width", "TEXTAREA::accesskey", "TEXTAREA::autocomplete", "TEXTAREA::cols", "TEXTAREA::disabled", "TEXTAREA::inputmode", "TEXTAREA::name", "TEXTAREA::placeholder", "TEXTAREA::readonly", "TEXTAREA::required", "TEXTAREA::rows", "TEXTAREA::tabindex", "TEXTAREA::wrap", "TFOOT::align", "TFOOT::char", "TFOOT::charoff", "TFOOT::valign", "TH::abbr", "TH::align", "TH::axis", "TH::bgcolor", "TH::char", "TH::charoff", "TH::colspan", "TH::headers", "TH::height", "TH::nowrap", "TH::rowspan", "TH::scope", "TH::valign", "TH::width", "THEAD::align", "THEAD::char", "THEAD::charoff", "THEAD::valign", "TR::align", "TR::bgcolor", "TR::char", "TR::charoff", "TR::valign", "TRACK::default", "TRACK::kind", "TRACK::label", "TRACK::srclang", "UL::compact", "UL::type", "VIDEO::controls", "VIDEO::height", "VIDEO::loop", "VIDEO::mediagroup", "VIDEO::muted", "VIDEO::preload", "VIDEO::width"]), type$.JSArray_String); B.Type_ConnectRequest_K1W = A.typeLiteral("ConnectRequest"); B.Type__$ConnectRequest_IoR = A.typeLiteral("_$ConnectRequest"); B.List_Avr = A._setArrayType(makeConstList([B.Type_ConnectRequest_K1W, B.Type__$ConnectRequest_IoR]), type$.JSArray_Type); @@ -27723,11 +23088,9 @@ B.Type__$ErrorResponse_ShF = A.typeLiteral("_$ErrorResponse"); B.List_UKD = A._setArrayType(makeConstList([B.Type_ErrorResponse_r9K, B.Type__$ErrorResponse_ShF]), type$.JSArray_Type); B.List_VOY = A._setArrayType(makeConstList([0, 0, 32776, 33792, 1, 10240, 0, 0]), type$.JSArray_int); - B.List_Vet = A._setArrayType(makeConstList(["HEAD", "AREA", "BASE", "BASEFONT", "BR", "COL", "COLGROUP", "EMBED", "FRAME", "FRAMESET", "HR", "IMAGE", "IMG", "INPUT", "ISINDEX", "LINK", "META", "PARAM", "SOURCE", "STYLE", "TITLE", "WBR"]), type$.JSArray_String); B.Type_BuildResult_XjJ = A.typeLiteral("BuildResult"); B.Type__$BuildResult_Tpm = A.typeLiteral("_$BuildResult"); B.List_Yiv = A._setArrayType(makeConstList([B.Type_BuildResult_XjJ, B.Type__$BuildResult_Tpm]), type$.JSArray_Type); - B.List_empty0 = A._setArrayType(makeConstList([]), type$.JSArray_String); B.List_empty = A._setArrayType(makeConstList([]), type$.JSArray_dynamic); B.Type__$ExtensionEvent_23h = A.typeLiteral("_$ExtensionEvent"); B.List_i7r = A._setArrayType(makeConstList([B.Type_ExtensionEvent_6Rj, B.Type__$ExtensionEvent_23h]), type$.JSArray_Type); @@ -27749,11 +23112,8 @@ B.Type_DevToolsResponse_7BT = A.typeLiteral("DevToolsResponse"); B.Type__$DevToolsResponse_kWM = A.typeLiteral("_$DevToolsResponse"); B.List_w61 = A._setArrayType(makeConstList([B.Type_DevToolsResponse_7BT, B.Type__$DevToolsResponse_kWM]), type$.JSArray_Type); - B.List_ym9 = A._setArrayType(makeConstList(["bind", "if", "ref", "repeat", "syntax"]), type$.JSArray_String); B.Object_empty = {}; - B.Map_empty = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); - B.Map_empty0 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<@,@>")); - B.Symbol_call = new A.Symbol("call"); + B.Map_empty = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<@,@>")); B.Type_BigInt_C3o = A.typeLiteral("BigInt"); B.Type_BoolJsonObject_Ocu = A.typeLiteral("BoolJsonObject"); B.Type_ByteBuffer_EOZ = A.typeLiteral("ByteBuffer"); @@ -27825,11 +23185,6 @@ $._BigIntImpl____lastQuoRemUsed = A._Cell$named("_lastQuoRemUsed"); $._BigIntImpl____lastRemUsed = A._Cell$named("_lastRemUsed"); $._BigIntImpl____lastRem_nsh = A._Cell$named("_lastRem_nsh"); - $.Element__parseDocument = null; - $.Element__parseRange = null; - $.Element__defaultValidator = null; - $.Element__defaultSanitizer = null; - $._Html5NodeValidator__attributeValidators = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Function); $._indentingBuiltValueToStringHelperIndent = 0; $.LogRecord__nextNumber = 0; $.Logger__loggers = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Logger); @@ -27838,7 +23193,7 @@ $.V1State_mSecs = 0; $.V1State_nSecs = 0; $.V1State_initialized = false; - $.___lastKnownDigests = A._Cell$named("_lastKnownDigests"); + $.RequireRestarter____lastKnownDigests = A._Cell$named("_lastKnownDigests"); })(); (function lazyInitializers() { var _lazyFinal = hunkHelpers.lazyFinal, @@ -27905,10 +23260,11 @@ _lazyFinal($, "_Uri__needsNoEncoding", "$get$_Uri__needsNoEncoding", () => A.RegExp_RegExp("^[\\-\\.0-9A-Z_a-z~]*$", true, false)); _lazyFinal($, "_hashSeed", "$get$_hashSeed", () => A.objectHashCode(B.Type_Object_QJv)); _lazyFinal($, "_scannerTables", "$get$_scannerTables", () => A._createTables()); - _lazyFinal($, "_Html5NodeValidator__allowedElements", "$get$_Html5NodeValidator__allowedElements", () => A.LinkedHashSet_LinkedHashSet$from(["A", "ABBR", "ACRONYM", "ADDRESS", "AREA", "ARTICLE", "ASIDE", "AUDIO", "B", "BDI", "BDO", "BIG", "BLOCKQUOTE", "BR", "BUTTON", "CANVAS", "CAPTION", "CENTER", "CITE", "CODE", "COL", "COLGROUP", "COMMAND", "DATA", "DATALIST", "DD", "DEL", "DETAILS", "DFN", "DIR", "DIV", "DL", "DT", "EM", "FIELDSET", "FIGCAPTION", "FIGURE", "FONT", "FOOTER", "FORM", "H1", "H2", "H3", "H4", "H5", "H6", "HEADER", "HGROUP", "HR", "I", "IFRAME", "IMG", "INPUT", "INS", "KBD", "LABEL", "LEGEND", "LI", "MAP", "MARK", "MENU", "METER", "NAV", "NOBR", "OL", "OPTGROUP", "OPTION", "OUTPUT", "P", "PRE", "PROGRESS", "Q", "S", "SAMP", "SECTION", "SELECT", "SMALL", "SOURCE", "SPAN", "STRIKE", "STRONG", "SUB", "SUMMARY", "SUP", "TABLE", "TBODY", "TD", "TEXTAREA", "TFOOT", "TH", "THEAD", "TIME", "TR", "TRACK", "TT", "U", "UL", "VAR", "VIDEO", "WBR"], type$.String)); - _lazyFinal($, "_DART_OBJECT_PROPERTY_NAME", "$get$_DART_OBJECT_PROPERTY_NAME", () => A.getIsolateAffinityTag("_$dart_dartObject")); - _lazyFinal($, "_dartProxyCtor", "$get$_dartProxyCtor", () => function DartObject(o) { - this.o = o; + _lazyFinal($, "_jsBoxedDartObjectProperty", "$get$_jsBoxedDartObjectProperty", () => Symbol("jsBoxedDartObjectProperty")); + _lazyFinal($, "Random__secureRandom", "$get$Random__secureRandom", () => { + var t1 = new A._JSSecureRandom(new DataView(new ArrayBuffer(A._checkLength(8)))); + t1._JSSecureRandom$0(); + return t1; }); _lazyFinal($, "isSoundMode", "$get$isSoundMode", () => !type$.List_int._is(A._setArrayType([], A.findType("JSArray")))); _lazy($, "newBuiltValueToStringHelper", "$get$newBuiltValueToStringHelper", () => new A.newBuiltValueToStringHelper_closure()); @@ -27966,10 +23322,7 @@ t4 = A.Completer_Completer(type$.dynamic); return new A.Pool(t2, t3, t1, 1000, new A.AsyncMemoizer(t4, A.findType("AsyncMemoizer<@>"))); }); - _lazy($, "V1State_random", "$get$V1State_random", () => { - var t1 = A.Random_Random(null); - return new A.MathRNG(t1); - }); + _lazy($, "V1State_random", "$get$V1State_random", () => new A.CryptoRNG()); _lazyFinal($, "UuidParsing__byteToHex", "$get$UuidParsing__byteToHex", () => { var i, _list = J.JSArray_JSArray$allocateGrowable(256, type$.String); @@ -27977,8 +23330,9 @@ _list[i] = B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(i, 16), 2, "0"); return _list; }); - _lazyFinal($, "_createScript", "$get$_createScript", () => new A._createScript_closure().call$0()); + _lazyFinal($, "CryptoRNG__secureRandom", "$get$CryptoRNG__secureRandom", () => $.$get$Random__secureRandom()); _lazyFinal($, "_noncePattern", "$get$_noncePattern", () => A.RegExp_RegExp("^[\\w+/_-]+[=]{0,2}$", true, false)); + _lazyFinal($, "_createScript", "$get$_createScript", () => new A._createScript_closure().call$0()); })(); (function nativeSupport() { !function() { @@ -28003,8 +23357,8 @@ } init.dispatchPropertyName = init.getIsolateTag("dispatch_record"); }(); - hunkHelpers.setOrUpdateInterceptorsByTag({WebGL: J.Interceptor, AnimationEffectReadOnly: J.JavaScriptObject, AnimationEffectTiming: J.JavaScriptObject, AnimationEffectTimingReadOnly: J.JavaScriptObject, AnimationTimeline: J.JavaScriptObject, AnimationWorkletGlobalScope: J.JavaScriptObject, AuthenticatorAssertionResponse: J.JavaScriptObject, AuthenticatorAttestationResponse: J.JavaScriptObject, AuthenticatorResponse: J.JavaScriptObject, BackgroundFetchFetch: J.JavaScriptObject, BackgroundFetchManager: J.JavaScriptObject, BackgroundFetchSettledFetch: J.JavaScriptObject, BarProp: J.JavaScriptObject, BarcodeDetector: J.JavaScriptObject, BluetoothRemoteGATTDescriptor: J.JavaScriptObject, Body: J.JavaScriptObject, BudgetState: J.JavaScriptObject, CacheStorage: J.JavaScriptObject, CanvasGradient: J.JavaScriptObject, CanvasPattern: J.JavaScriptObject, CanvasRenderingContext2D: J.JavaScriptObject, Client: J.JavaScriptObject, Clients: J.JavaScriptObject, CookieStore: J.JavaScriptObject, Coordinates: J.JavaScriptObject, Credential: J.JavaScriptObject, CredentialUserData: J.JavaScriptObject, CredentialsContainer: J.JavaScriptObject, Crypto: J.JavaScriptObject, CryptoKey: J.JavaScriptObject, CSS: J.JavaScriptObject, CSSVariableReferenceValue: J.JavaScriptObject, CustomElementRegistry: J.JavaScriptObject, DataTransfer: J.JavaScriptObject, DataTransferItem: J.JavaScriptObject, DeprecatedStorageInfo: J.JavaScriptObject, DeprecatedStorageQuota: J.JavaScriptObject, DeprecationReport: J.JavaScriptObject, DetectedBarcode: J.JavaScriptObject, DetectedFace: J.JavaScriptObject, DetectedText: J.JavaScriptObject, DeviceAcceleration: J.JavaScriptObject, DeviceRotationRate: J.JavaScriptObject, DirectoryEntry: J.JavaScriptObject, webkitFileSystemDirectoryEntry: J.JavaScriptObject, FileSystemDirectoryEntry: J.JavaScriptObject, DirectoryReader: J.JavaScriptObject, WebKitDirectoryReader: J.JavaScriptObject, webkitFileSystemDirectoryReader: J.JavaScriptObject, FileSystemDirectoryReader: J.JavaScriptObject, DocumentOrShadowRoot: J.JavaScriptObject, DocumentTimeline: J.JavaScriptObject, DOMError: J.JavaScriptObject, Iterator: J.JavaScriptObject, DOMMatrix: J.JavaScriptObject, DOMMatrixReadOnly: J.JavaScriptObject, DOMParser: J.JavaScriptObject, DOMPoint: J.JavaScriptObject, DOMPointReadOnly: J.JavaScriptObject, DOMQuad: J.JavaScriptObject, DOMStringMap: J.JavaScriptObject, Entry: J.JavaScriptObject, webkitFileSystemEntry: J.JavaScriptObject, FileSystemEntry: J.JavaScriptObject, External: J.JavaScriptObject, FaceDetector: J.JavaScriptObject, FederatedCredential: J.JavaScriptObject, FileEntry: J.JavaScriptObject, webkitFileSystemFileEntry: J.JavaScriptObject, FileSystemFileEntry: J.JavaScriptObject, DOMFileSystem: J.JavaScriptObject, WebKitFileSystem: J.JavaScriptObject, webkitFileSystem: J.JavaScriptObject, FileSystem: J.JavaScriptObject, FontFace: J.JavaScriptObject, FontFaceSource: J.JavaScriptObject, FormData: J.JavaScriptObject, GamepadButton: J.JavaScriptObject, GamepadPose: J.JavaScriptObject, Geolocation: J.JavaScriptObject, Position: J.JavaScriptObject, GeolocationPosition: J.JavaScriptObject, Headers: J.JavaScriptObject, HTMLHyperlinkElementUtils: J.JavaScriptObject, IdleDeadline: J.JavaScriptObject, ImageBitmap: J.JavaScriptObject, ImageBitmapRenderingContext: J.JavaScriptObject, ImageCapture: J.JavaScriptObject, InputDeviceCapabilities: J.JavaScriptObject, IntersectionObserver: J.JavaScriptObject, IntersectionObserverEntry: J.JavaScriptObject, InterventionReport: J.JavaScriptObject, KeyframeEffect: J.JavaScriptObject, KeyframeEffectReadOnly: J.JavaScriptObject, MediaCapabilities: J.JavaScriptObject, MediaCapabilitiesInfo: J.JavaScriptObject, MediaDeviceInfo: J.JavaScriptObject, MediaError: J.JavaScriptObject, MediaKeyStatusMap: J.JavaScriptObject, MediaKeySystemAccess: J.JavaScriptObject, MediaKeys: J.JavaScriptObject, MediaKeysPolicy: J.JavaScriptObject, MediaMetadata: J.JavaScriptObject, MediaSession: J.JavaScriptObject, MediaSettingsRange: J.JavaScriptObject, MemoryInfo: J.JavaScriptObject, MessageChannel: J.JavaScriptObject, Metadata: J.JavaScriptObject, MutationObserver: J.JavaScriptObject, WebKitMutationObserver: J.JavaScriptObject, MutationRecord: J.JavaScriptObject, NavigationPreloadManager: J.JavaScriptObject, Navigator: J.JavaScriptObject, NavigatorAutomationInformation: J.JavaScriptObject, NavigatorConcurrentHardware: J.JavaScriptObject, NavigatorCookies: J.JavaScriptObject, NavigatorUserMediaError: J.JavaScriptObject, NodeFilter: J.JavaScriptObject, NodeIterator: J.JavaScriptObject, NonDocumentTypeChildNode: J.JavaScriptObject, NonElementParentNode: J.JavaScriptObject, NoncedElement: J.JavaScriptObject, OffscreenCanvasRenderingContext2D: J.JavaScriptObject, OverconstrainedError: J.JavaScriptObject, PaintRenderingContext2D: J.JavaScriptObject, PaintSize: J.JavaScriptObject, PaintWorkletGlobalScope: J.JavaScriptObject, PasswordCredential: J.JavaScriptObject, Path2D: J.JavaScriptObject, PaymentAddress: J.JavaScriptObject, PaymentInstruments: J.JavaScriptObject, PaymentManager: J.JavaScriptObject, PaymentResponse: J.JavaScriptObject, PerformanceEntry: J.JavaScriptObject, PerformanceLongTaskTiming: J.JavaScriptObject, PerformanceMark: J.JavaScriptObject, PerformanceMeasure: J.JavaScriptObject, PerformanceNavigation: J.JavaScriptObject, PerformanceNavigationTiming: J.JavaScriptObject, PerformanceObserver: J.JavaScriptObject, PerformanceObserverEntryList: J.JavaScriptObject, PerformancePaintTiming: J.JavaScriptObject, PerformanceResourceTiming: J.JavaScriptObject, PerformanceServerTiming: J.JavaScriptObject, PerformanceTiming: J.JavaScriptObject, Permissions: J.JavaScriptObject, PhotoCapabilities: J.JavaScriptObject, PositionError: J.JavaScriptObject, GeolocationPositionError: J.JavaScriptObject, Presentation: J.JavaScriptObject, PresentationReceiver: J.JavaScriptObject, PublicKeyCredential: J.JavaScriptObject, PushManager: J.JavaScriptObject, PushMessageData: J.JavaScriptObject, PushSubscription: J.JavaScriptObject, PushSubscriptionOptions: J.JavaScriptObject, Range: J.JavaScriptObject, RelatedApplication: J.JavaScriptObject, ReportBody: J.JavaScriptObject, ReportingObserver: J.JavaScriptObject, ResizeObserver: J.JavaScriptObject, ResizeObserverEntry: J.JavaScriptObject, RTCCertificate: J.JavaScriptObject, RTCIceCandidate: J.JavaScriptObject, mozRTCIceCandidate: J.JavaScriptObject, RTCLegacyStatsReport: J.JavaScriptObject, RTCRtpContributingSource: J.JavaScriptObject, RTCRtpReceiver: J.JavaScriptObject, RTCRtpSender: J.JavaScriptObject, RTCSessionDescription: J.JavaScriptObject, mozRTCSessionDescription: J.JavaScriptObject, RTCStatsResponse: J.JavaScriptObject, Screen: J.JavaScriptObject, ScrollState: J.JavaScriptObject, ScrollTimeline: J.JavaScriptObject, Selection: J.JavaScriptObject, SpeechRecognitionAlternative: J.JavaScriptObject, SpeechSynthesisVoice: J.JavaScriptObject, StaticRange: J.JavaScriptObject, StorageManager: J.JavaScriptObject, StyleMedia: J.JavaScriptObject, StylePropertyMap: J.JavaScriptObject, StylePropertyMapReadonly: J.JavaScriptObject, SyncManager: J.JavaScriptObject, TaskAttributionTiming: J.JavaScriptObject, TextDetector: J.JavaScriptObject, TextMetrics: J.JavaScriptObject, TrackDefault: J.JavaScriptObject, TreeWalker: J.JavaScriptObject, TrustedHTML: J.JavaScriptObject, TrustedScriptURL: J.JavaScriptObject, TrustedURL: J.JavaScriptObject, UnderlyingSourceBase: J.JavaScriptObject, URLSearchParams: J.JavaScriptObject, VRCoordinateSystem: J.JavaScriptObject, VRDisplayCapabilities: J.JavaScriptObject, VREyeParameters: J.JavaScriptObject, VRFrameData: J.JavaScriptObject, VRFrameOfReference: J.JavaScriptObject, VRPose: J.JavaScriptObject, VRStageBounds: J.JavaScriptObject, VRStageBoundsPoint: J.JavaScriptObject, VRStageParameters: J.JavaScriptObject, ValidityState: J.JavaScriptObject, VideoPlaybackQuality: J.JavaScriptObject, VideoTrack: J.JavaScriptObject, VTTRegion: J.JavaScriptObject, WindowClient: J.JavaScriptObject, WorkletAnimation: J.JavaScriptObject, WorkletGlobalScope: J.JavaScriptObject, XPathEvaluator: J.JavaScriptObject, XPathExpression: J.JavaScriptObject, XPathNSResolver: J.JavaScriptObject, XPathResult: J.JavaScriptObject, XMLSerializer: J.JavaScriptObject, XSLTProcessor: J.JavaScriptObject, Bluetooth: J.JavaScriptObject, BluetoothCharacteristicProperties: J.JavaScriptObject, BluetoothRemoteGATTServer: J.JavaScriptObject, BluetoothRemoteGATTService: J.JavaScriptObject, BluetoothUUID: J.JavaScriptObject, BudgetService: J.JavaScriptObject, Cache: J.JavaScriptObject, DOMFileSystemSync: J.JavaScriptObject, DirectoryEntrySync: J.JavaScriptObject, DirectoryReaderSync: J.JavaScriptObject, EntrySync: J.JavaScriptObject, FileEntrySync: J.JavaScriptObject, FileReaderSync: J.JavaScriptObject, FileWriterSync: J.JavaScriptObject, HTMLAllCollection: J.JavaScriptObject, Mojo: J.JavaScriptObject, MojoHandle: J.JavaScriptObject, MojoWatcher: J.JavaScriptObject, NFC: J.JavaScriptObject, PagePopupController: J.JavaScriptObject, Report: J.JavaScriptObject, Request: J.JavaScriptObject, Response: J.JavaScriptObject, SubtleCrypto: J.JavaScriptObject, USBAlternateInterface: J.JavaScriptObject, USBConfiguration: J.JavaScriptObject, USBDevice: J.JavaScriptObject, USBEndpoint: J.JavaScriptObject, USBInTransferResult: J.JavaScriptObject, USBInterface: J.JavaScriptObject, USBIsochronousInTransferPacket: J.JavaScriptObject, USBIsochronousInTransferResult: J.JavaScriptObject, USBIsochronousOutTransferPacket: J.JavaScriptObject, USBIsochronousOutTransferResult: J.JavaScriptObject, USBOutTransferResult: J.JavaScriptObject, WorkerLocation: J.JavaScriptObject, WorkerNavigator: J.JavaScriptObject, Worklet: J.JavaScriptObject, IDBCursor: J.JavaScriptObject, IDBCursorWithValue: J.JavaScriptObject, IDBFactory: J.JavaScriptObject, IDBIndex: J.JavaScriptObject, IDBObjectStore: J.JavaScriptObject, IDBObservation: J.JavaScriptObject, IDBObserver: J.JavaScriptObject, IDBObserverChanges: J.JavaScriptObject, SVGAngle: J.JavaScriptObject, SVGAnimatedAngle: J.JavaScriptObject, SVGAnimatedBoolean: J.JavaScriptObject, SVGAnimatedEnumeration: J.JavaScriptObject, SVGAnimatedInteger: J.JavaScriptObject, SVGAnimatedLength: J.JavaScriptObject, SVGAnimatedLengthList: J.JavaScriptObject, SVGAnimatedNumber: J.JavaScriptObject, SVGAnimatedNumberList: J.JavaScriptObject, SVGAnimatedPreserveAspectRatio: J.JavaScriptObject, SVGAnimatedRect: J.JavaScriptObject, SVGAnimatedString: J.JavaScriptObject, SVGAnimatedTransformList: J.JavaScriptObject, SVGMatrix: J.JavaScriptObject, SVGPoint: J.JavaScriptObject, SVGPreserveAspectRatio: J.JavaScriptObject, SVGRect: J.JavaScriptObject, SVGUnitTypes: J.JavaScriptObject, AudioListener: J.JavaScriptObject, AudioParam: J.JavaScriptObject, AudioTrack: J.JavaScriptObject, AudioWorkletGlobalScope: J.JavaScriptObject, AudioWorkletProcessor: J.JavaScriptObject, PeriodicWave: J.JavaScriptObject, WebGLActiveInfo: J.JavaScriptObject, ANGLEInstancedArrays: J.JavaScriptObject, ANGLE_instanced_arrays: J.JavaScriptObject, WebGLBuffer: J.JavaScriptObject, WebGLCanvas: J.JavaScriptObject, WebGLColorBufferFloat: J.JavaScriptObject, WebGLCompressedTextureASTC: J.JavaScriptObject, WebGLCompressedTextureATC: J.JavaScriptObject, WEBGL_compressed_texture_atc: J.JavaScriptObject, WebGLCompressedTextureETC1: J.JavaScriptObject, WEBGL_compressed_texture_etc1: J.JavaScriptObject, WebGLCompressedTextureETC: J.JavaScriptObject, WebGLCompressedTexturePVRTC: J.JavaScriptObject, WEBGL_compressed_texture_pvrtc: J.JavaScriptObject, WebGLCompressedTextureS3TC: J.JavaScriptObject, WEBGL_compressed_texture_s3tc: J.JavaScriptObject, WebGLCompressedTextureS3TCsRGB: J.JavaScriptObject, WebGLDebugRendererInfo: J.JavaScriptObject, WEBGL_debug_renderer_info: J.JavaScriptObject, WebGLDebugShaders: J.JavaScriptObject, WEBGL_debug_shaders: J.JavaScriptObject, WebGLDepthTexture: J.JavaScriptObject, WEBGL_depth_texture: J.JavaScriptObject, WebGLDrawBuffers: J.JavaScriptObject, WEBGL_draw_buffers: J.JavaScriptObject, EXTsRGB: J.JavaScriptObject, EXT_sRGB: J.JavaScriptObject, EXTBlendMinMax: J.JavaScriptObject, EXT_blend_minmax: J.JavaScriptObject, EXTColorBufferFloat: J.JavaScriptObject, EXTColorBufferHalfFloat: J.JavaScriptObject, EXTDisjointTimerQuery: J.JavaScriptObject, EXTDisjointTimerQueryWebGL2: J.JavaScriptObject, EXTFragDepth: J.JavaScriptObject, EXT_frag_depth: J.JavaScriptObject, EXTShaderTextureLOD: J.JavaScriptObject, EXT_shader_texture_lod: J.JavaScriptObject, EXTTextureFilterAnisotropic: J.JavaScriptObject, EXT_texture_filter_anisotropic: J.JavaScriptObject, WebGLFramebuffer: J.JavaScriptObject, WebGLGetBufferSubDataAsync: J.JavaScriptObject, WebGLLoseContext: J.JavaScriptObject, WebGLExtensionLoseContext: J.JavaScriptObject, WEBGL_lose_context: J.JavaScriptObject, OESElementIndexUint: J.JavaScriptObject, OES_element_index_uint: J.JavaScriptObject, OESStandardDerivatives: J.JavaScriptObject, OES_standard_derivatives: J.JavaScriptObject, OESTextureFloat: J.JavaScriptObject, OES_texture_float: J.JavaScriptObject, OESTextureFloatLinear: J.JavaScriptObject, OES_texture_float_linear: J.JavaScriptObject, OESTextureHalfFloat: J.JavaScriptObject, OES_texture_half_float: J.JavaScriptObject, OESTextureHalfFloatLinear: J.JavaScriptObject, OES_texture_half_float_linear: J.JavaScriptObject, OESVertexArrayObject: J.JavaScriptObject, OES_vertex_array_object: J.JavaScriptObject, WebGLProgram: J.JavaScriptObject, WebGLQuery: J.JavaScriptObject, WebGLRenderbuffer: J.JavaScriptObject, WebGLRenderingContext: J.JavaScriptObject, WebGL2RenderingContext: J.JavaScriptObject, WebGLSampler: J.JavaScriptObject, WebGLShader: J.JavaScriptObject, WebGLShaderPrecisionFormat: J.JavaScriptObject, WebGLSync: J.JavaScriptObject, WebGLTexture: J.JavaScriptObject, WebGLTimerQueryEXT: J.JavaScriptObject, WebGLTransformFeedback: J.JavaScriptObject, WebGLUniformLocation: J.JavaScriptObject, WebGLVertexArrayObject: J.JavaScriptObject, WebGLVertexArrayObjectOES: J.JavaScriptObject, WebGL2RenderingContextBase: J.JavaScriptObject, ArrayBuffer: A.NativeByteBuffer, ArrayBufferView: A.NativeTypedData, DataView: A.NativeByteData, Float32Array: A.NativeFloat32List, Float64Array: A.NativeFloat64List, Int16Array: A.NativeInt16List, Int32Array: A.NativeInt32List, Int8Array: A.NativeInt8List, Uint16Array: A.NativeUint16List, Uint32Array: A.NativeUint32List, Uint8ClampedArray: A.NativeUint8ClampedList, CanvasPixelArray: A.NativeUint8ClampedList, Uint8Array: A.NativeUint8List, HTMLAudioElement: A.HtmlElement, HTMLBRElement: A.HtmlElement, HTMLButtonElement: A.HtmlElement, HTMLCanvasElement: A.HtmlElement, HTMLContentElement: A.HtmlElement, HTMLDListElement: A.HtmlElement, HTMLDataElement: A.HtmlElement, HTMLDataListElement: A.HtmlElement, HTMLDetailsElement: A.HtmlElement, HTMLDialogElement: A.HtmlElement, HTMLDivElement: A.HtmlElement, HTMLEmbedElement: A.HtmlElement, HTMLFieldSetElement: A.HtmlElement, HTMLHRElement: A.HtmlElement, HTMLHeadElement: A.HtmlElement, HTMLHeadingElement: A.HtmlElement, HTMLHtmlElement: A.HtmlElement, HTMLIFrameElement: A.HtmlElement, HTMLImageElement: A.HtmlElement, HTMLInputElement: A.HtmlElement, HTMLLIElement: A.HtmlElement, HTMLLabelElement: A.HtmlElement, HTMLLegendElement: A.HtmlElement, HTMLLinkElement: A.HtmlElement, HTMLMapElement: A.HtmlElement, HTMLMediaElement: A.HtmlElement, HTMLMenuElement: A.HtmlElement, HTMLMetaElement: A.HtmlElement, HTMLMeterElement: A.HtmlElement, HTMLModElement: A.HtmlElement, HTMLOListElement: A.HtmlElement, HTMLObjectElement: A.HtmlElement, HTMLOptGroupElement: A.HtmlElement, HTMLOptionElement: A.HtmlElement, HTMLOutputElement: A.HtmlElement, HTMLParagraphElement: A.HtmlElement, HTMLParamElement: A.HtmlElement, HTMLPictureElement: A.HtmlElement, HTMLPreElement: A.HtmlElement, HTMLProgressElement: A.HtmlElement, HTMLQuoteElement: A.HtmlElement, HTMLShadowElement: A.HtmlElement, HTMLSlotElement: A.HtmlElement, HTMLSourceElement: A.HtmlElement, HTMLSpanElement: A.HtmlElement, HTMLStyleElement: A.HtmlElement, HTMLTableCaptionElement: A.HtmlElement, HTMLTableCellElement: A.HtmlElement, HTMLTableDataCellElement: A.HtmlElement, HTMLTableHeaderCellElement: A.HtmlElement, HTMLTableColElement: A.HtmlElement, HTMLTextAreaElement: A.HtmlElement, HTMLTimeElement: A.HtmlElement, HTMLTitleElement: A.HtmlElement, HTMLTrackElement: A.HtmlElement, HTMLUListElement: A.HtmlElement, HTMLUnknownElement: A.HtmlElement, HTMLVideoElement: A.HtmlElement, HTMLDirectoryElement: A.HtmlElement, HTMLFontElement: A.HtmlElement, HTMLFrameElement: A.HtmlElement, HTMLFrameSetElement: A.HtmlElement, HTMLMarqueeElement: A.HtmlElement, HTMLElement: A.HtmlElement, AccessibleNodeList: A.AccessibleNodeList, HTMLAnchorElement: A.AnchorElement, HTMLAreaElement: A.AreaElement, HTMLBaseElement: A.BaseElement, Blob: A.Blob, HTMLBodyElement: A.BodyElement, CDATASection: A.CharacterData, CharacterData: A.CharacterData, Comment: A.CharacterData, ProcessingInstruction: A.CharacterData, Text: A.CharacterData, CSSPerspective: A.CssPerspective, CSSCharsetRule: A.CssRule, CSSConditionRule: A.CssRule, CSSFontFaceRule: A.CssRule, CSSGroupingRule: A.CssRule, CSSImportRule: A.CssRule, CSSKeyframeRule: A.CssRule, MozCSSKeyframeRule: A.CssRule, WebKitCSSKeyframeRule: A.CssRule, CSSKeyframesRule: A.CssRule, MozCSSKeyframesRule: A.CssRule, WebKitCSSKeyframesRule: A.CssRule, CSSMediaRule: A.CssRule, CSSNamespaceRule: A.CssRule, CSSPageRule: A.CssRule, CSSRule: A.CssRule, CSSStyleRule: A.CssRule, CSSSupportsRule: A.CssRule, CSSViewportRule: A.CssRule, CSSStyleDeclaration: A.CssStyleDeclaration, MSStyleCSSProperties: A.CssStyleDeclaration, CSS2Properties: A.CssStyleDeclaration, CSSImageValue: A.CssStyleValue, CSSKeywordValue: A.CssStyleValue, CSSNumericValue: A.CssStyleValue, CSSPositionValue: A.CssStyleValue, CSSResourceValue: A.CssStyleValue, CSSUnitValue: A.CssStyleValue, CSSURLImageValue: A.CssStyleValue, CSSStyleValue: A.CssStyleValue, CSSMatrixComponent: A.CssTransformComponent, CSSRotation: A.CssTransformComponent, CSSScale: A.CssTransformComponent, CSSSkew: A.CssTransformComponent, CSSTranslation: A.CssTransformComponent, CSSTransformComponent: A.CssTransformComponent, CSSTransformValue: A.CssTransformValue, CSSUnparsedValue: A.CssUnparsedValue, CustomEvent: A.CustomEvent, DataTransferItemList: A.DataTransferItemList, XMLDocument: A.Document, Document: A.Document, DOMException: A.DomException, DOMImplementation: A.DomImplementation, ClientRectList: A.DomRectList, DOMRectList: A.DomRectList, DOMRectReadOnly: A.DomRectReadOnly, DOMStringList: A.DomStringList, DOMTokenList: A.DomTokenList, MathMLElement: A.Element, Element: A.Element, AbortPaymentEvent: A.Event, AnimationEvent: A.Event, AnimationPlaybackEvent: A.Event, ApplicationCacheErrorEvent: A.Event, BackgroundFetchClickEvent: A.Event, BackgroundFetchEvent: A.Event, BackgroundFetchFailEvent: A.Event, BackgroundFetchedEvent: A.Event, BeforeInstallPromptEvent: A.Event, BeforeUnloadEvent: A.Event, BlobEvent: A.Event, CanMakePaymentEvent: A.Event, ClipboardEvent: A.Event, CloseEvent: A.Event, DeviceMotionEvent: A.Event, DeviceOrientationEvent: A.Event, ErrorEvent: A.Event, ExtendableEvent: A.Event, ExtendableMessageEvent: A.Event, FetchEvent: A.Event, FontFaceSetLoadEvent: A.Event, ForeignFetchEvent: A.Event, GamepadEvent: A.Event, HashChangeEvent: A.Event, InstallEvent: A.Event, MediaEncryptedEvent: A.Event, MediaKeyMessageEvent: A.Event, MediaQueryListEvent: A.Event, MediaStreamEvent: A.Event, MediaStreamTrackEvent: A.Event, MIDIConnectionEvent: A.Event, MIDIMessageEvent: A.Event, MutationEvent: A.Event, NotificationEvent: A.Event, PageTransitionEvent: A.Event, PaymentRequestEvent: A.Event, PaymentRequestUpdateEvent: A.Event, PopStateEvent: A.Event, PresentationConnectionAvailableEvent: A.Event, PresentationConnectionCloseEvent: A.Event, PromiseRejectionEvent: A.Event, PushEvent: A.Event, RTCDataChannelEvent: A.Event, RTCDTMFToneChangeEvent: A.Event, RTCPeerConnectionIceEvent: A.Event, RTCTrackEvent: A.Event, SecurityPolicyViolationEvent: A.Event, SensorErrorEvent: A.Event, SpeechRecognitionError: A.Event, SpeechRecognitionEvent: A.Event, SpeechSynthesisEvent: A.Event, StorageEvent: A.Event, SyncEvent: A.Event, TrackEvent: A.Event, TransitionEvent: A.Event, WebKitTransitionEvent: A.Event, VRDeviceEvent: A.Event, VRDisplayEvent: A.Event, VRSessionEvent: A.Event, MojoInterfaceRequestEvent: A.Event, USBConnectionEvent: A.Event, IDBVersionChangeEvent: A.Event, AudioProcessingEvent: A.Event, OfflineAudioCompletionEvent: A.Event, WebGLContextEvent: A.Event, Event: A.Event, InputEvent: A.Event, SubmitEvent: A.Event, AbsoluteOrientationSensor: A.EventTarget, Accelerometer: A.EventTarget, AccessibleNode: A.EventTarget, AmbientLightSensor: A.EventTarget, Animation: A.EventTarget, ApplicationCache: A.EventTarget, DOMApplicationCache: A.EventTarget, OfflineResourceList: A.EventTarget, BackgroundFetchRegistration: A.EventTarget, BatteryManager: A.EventTarget, BroadcastChannel: A.EventTarget, CanvasCaptureMediaStreamTrack: A.EventTarget, EventSource: A.EventTarget, FileReader: A.EventTarget, FontFaceSet: A.EventTarget, Gyroscope: A.EventTarget, LinearAccelerationSensor: A.EventTarget, Magnetometer: A.EventTarget, MediaDevices: A.EventTarget, MediaKeySession: A.EventTarget, MediaQueryList: A.EventTarget, MediaRecorder: A.EventTarget, MediaSource: A.EventTarget, MediaStream: A.EventTarget, MediaStreamTrack: A.EventTarget, MIDIAccess: A.EventTarget, MIDIInput: A.EventTarget, MIDIOutput: A.EventTarget, MIDIPort: A.EventTarget, NetworkInformation: A.EventTarget, Notification: A.EventTarget, OffscreenCanvas: A.EventTarget, OrientationSensor: A.EventTarget, PaymentRequest: A.EventTarget, Performance: A.EventTarget, PermissionStatus: A.EventTarget, PresentationAvailability: A.EventTarget, PresentationConnection: A.EventTarget, PresentationConnectionList: A.EventTarget, PresentationRequest: A.EventTarget, RelativeOrientationSensor: A.EventTarget, RemotePlayback: A.EventTarget, RTCDataChannel: A.EventTarget, DataChannel: A.EventTarget, RTCDTMFSender: A.EventTarget, RTCPeerConnection: A.EventTarget, webkitRTCPeerConnection: A.EventTarget, mozRTCPeerConnection: A.EventTarget, ScreenOrientation: A.EventTarget, Sensor: A.EventTarget, ServiceWorker: A.EventTarget, ServiceWorkerContainer: A.EventTarget, ServiceWorkerRegistration: A.EventTarget, SharedWorker: A.EventTarget, SpeechRecognition: A.EventTarget, webkitSpeechRecognition: A.EventTarget, SpeechSynthesis: A.EventTarget, SpeechSynthesisUtterance: A.EventTarget, VR: A.EventTarget, VRDevice: A.EventTarget, VRDisplay: A.EventTarget, VRSession: A.EventTarget, VisualViewport: A.EventTarget, WebSocket: A.EventTarget, Worker: A.EventTarget, WorkerPerformance: A.EventTarget, BluetoothDevice: A.EventTarget, BluetoothRemoteGATTCharacteristic: A.EventTarget, Clipboard: A.EventTarget, MojoInterfaceInterceptor: A.EventTarget, USB: A.EventTarget, IDBDatabase: A.EventTarget, IDBOpenDBRequest: A.EventTarget, IDBVersionChangeRequest: A.EventTarget, IDBRequest: A.EventTarget, IDBTransaction: A.EventTarget, AnalyserNode: A.EventTarget, RealtimeAnalyserNode: A.EventTarget, AudioBufferSourceNode: A.EventTarget, AudioDestinationNode: A.EventTarget, AudioNode: A.EventTarget, AudioScheduledSourceNode: A.EventTarget, AudioWorkletNode: A.EventTarget, BiquadFilterNode: A.EventTarget, ChannelMergerNode: A.EventTarget, AudioChannelMerger: A.EventTarget, ChannelSplitterNode: A.EventTarget, AudioChannelSplitter: A.EventTarget, ConstantSourceNode: A.EventTarget, ConvolverNode: A.EventTarget, DelayNode: A.EventTarget, DynamicsCompressorNode: A.EventTarget, GainNode: A.EventTarget, AudioGainNode: A.EventTarget, IIRFilterNode: A.EventTarget, MediaElementAudioSourceNode: A.EventTarget, MediaStreamAudioDestinationNode: A.EventTarget, MediaStreamAudioSourceNode: A.EventTarget, OscillatorNode: A.EventTarget, Oscillator: A.EventTarget, PannerNode: A.EventTarget, AudioPannerNode: A.EventTarget, webkitAudioPannerNode: A.EventTarget, ScriptProcessorNode: A.EventTarget, JavaScriptAudioNode: A.EventTarget, StereoPannerNode: A.EventTarget, WaveShaperNode: A.EventTarget, EventTarget: A.EventTarget, File: A.File, FileList: A.FileList, FileWriter: A.FileWriter, HTMLFormElement: A.FormElement, Gamepad: A.Gamepad, History: A.History, HTMLCollection: A.HtmlCollection, HTMLFormControlsCollection: A.HtmlCollection, HTMLOptionsCollection: A.HtmlCollection, HTMLDocument: A.HtmlDocument, XMLHttpRequest: A.HttpRequest, XMLHttpRequestUpload: A.HttpRequestEventTarget, XMLHttpRequestEventTarget: A.HttpRequestEventTarget, ImageData: A.ImageData, KeyboardEvent: A.KeyboardEvent, Location: A.Location, MediaList: A.MediaList, MessageEvent: A.MessageEvent, MessagePort: A.MessagePort, MIDIInputMap: A.MidiInputMap, MIDIOutputMap: A.MidiOutputMap, MimeType: A.MimeType, MimeTypeArray: A.MimeTypeArray, DocumentFragment: A.Node, ShadowRoot: A.Node, DocumentType: A.Node, Node: A.Node, NodeList: A.NodeList, RadioNodeList: A.NodeList, Plugin: A.Plugin, PluginArray: A.PluginArray, ProgressEvent: A.ProgressEvent, ResourceProgressEvent: A.ProgressEvent, RTCStatsReport: A.RtcStatsReport, HTMLScriptElement: A.ScriptElement, HTMLSelectElement: A.SelectElement, SharedArrayBuffer: A.SharedArrayBuffer, SourceBuffer: A.SourceBuffer, SourceBufferList: A.SourceBufferList, SpeechGrammar: A.SpeechGrammar, SpeechGrammarList: A.SpeechGrammarList, SpeechRecognitionResult: A.SpeechRecognitionResult, Storage: A.Storage, CSSStyleSheet: A.StyleSheet, StyleSheet: A.StyleSheet, HTMLTableElement: A.TableElement, HTMLTableRowElement: A.TableRowElement, HTMLTableSectionElement: A.TableSectionElement, HTMLTemplateElement: A.TemplateElement, TextTrack: A.TextTrack, TextTrackCue: A.TextTrackCue, VTTCue: A.TextTrackCue, TextTrackCueList: A.TextTrackCueList, TextTrackList: A.TextTrackList, TimeRanges: A.TimeRanges, Touch: A.Touch, TouchList: A.TouchList, TrackDefaultList: A.TrackDefaultList, CompositionEvent: A.UIEvent, FocusEvent: A.UIEvent, MouseEvent: A.UIEvent, DragEvent: A.UIEvent, PointerEvent: A.UIEvent, TextEvent: A.UIEvent, TouchEvent: A.UIEvent, WheelEvent: A.UIEvent, UIEvent: A.UIEvent, URL: A.Url, VideoTrackList: A.VideoTrackList, Window: A.Window, DOMWindow: A.Window, DedicatedWorkerGlobalScope: A.WorkerGlobalScope, ServiceWorkerGlobalScope: A.WorkerGlobalScope, SharedWorkerGlobalScope: A.WorkerGlobalScope, WorkerGlobalScope: A.WorkerGlobalScope, Attr: A._Attr, CSSRuleList: A._CssRuleList, ClientRect: A._DomRect, DOMRect: A._DomRect, GamepadList: A._GamepadList, NamedNodeMap: A._NamedNodeMap, MozNamedAttrMap: A._NamedNodeMap, SpeechRecognitionResultList: A._SpeechRecognitionResultList, StyleSheetList: A._StyleSheetList, IDBKeyRange: A.KeyRange, SVGLength: A.Length, SVGLengthList: A.LengthList, SVGNumber: A.Number, SVGNumberList: A.NumberList, SVGPointList: A.PointList, SVGScriptElement: A.ScriptElement0, SVGStringList: A.StringList, SVGAElement: A.SvgElement, SVGAnimateElement: A.SvgElement, SVGAnimateMotionElement: A.SvgElement, SVGAnimateTransformElement: A.SvgElement, SVGAnimationElement: A.SvgElement, SVGCircleElement: A.SvgElement, SVGClipPathElement: A.SvgElement, SVGDefsElement: A.SvgElement, SVGDescElement: A.SvgElement, SVGDiscardElement: A.SvgElement, SVGEllipseElement: A.SvgElement, SVGFEBlendElement: A.SvgElement, SVGFEColorMatrixElement: A.SvgElement, SVGFEComponentTransferElement: A.SvgElement, SVGFECompositeElement: A.SvgElement, SVGFEConvolveMatrixElement: A.SvgElement, SVGFEDiffuseLightingElement: A.SvgElement, SVGFEDisplacementMapElement: A.SvgElement, SVGFEDistantLightElement: A.SvgElement, SVGFEFloodElement: A.SvgElement, SVGFEFuncAElement: A.SvgElement, SVGFEFuncBElement: A.SvgElement, SVGFEFuncGElement: A.SvgElement, SVGFEFuncRElement: A.SvgElement, SVGFEGaussianBlurElement: A.SvgElement, SVGFEImageElement: A.SvgElement, SVGFEMergeElement: A.SvgElement, SVGFEMergeNodeElement: A.SvgElement, SVGFEMorphologyElement: A.SvgElement, SVGFEOffsetElement: A.SvgElement, SVGFEPointLightElement: A.SvgElement, SVGFESpecularLightingElement: A.SvgElement, SVGFESpotLightElement: A.SvgElement, SVGFETileElement: A.SvgElement, SVGFETurbulenceElement: A.SvgElement, SVGFilterElement: A.SvgElement, SVGForeignObjectElement: A.SvgElement, SVGGElement: A.SvgElement, SVGGeometryElement: A.SvgElement, SVGGraphicsElement: A.SvgElement, SVGImageElement: A.SvgElement, SVGLineElement: A.SvgElement, SVGLinearGradientElement: A.SvgElement, SVGMarkerElement: A.SvgElement, SVGMaskElement: A.SvgElement, SVGMetadataElement: A.SvgElement, SVGPathElement: A.SvgElement, SVGPatternElement: A.SvgElement, SVGPolygonElement: A.SvgElement, SVGPolylineElement: A.SvgElement, SVGRadialGradientElement: A.SvgElement, SVGRectElement: A.SvgElement, SVGSetElement: A.SvgElement, SVGStopElement: A.SvgElement, SVGStyleElement: A.SvgElement, SVGSVGElement: A.SvgElement, SVGSwitchElement: A.SvgElement, SVGSymbolElement: A.SvgElement, SVGTSpanElement: A.SvgElement, SVGTextContentElement: A.SvgElement, SVGTextElement: A.SvgElement, SVGTextPathElement: A.SvgElement, SVGTextPositioningElement: A.SvgElement, SVGTitleElement: A.SvgElement, SVGUseElement: A.SvgElement, SVGViewElement: A.SvgElement, SVGGradientElement: A.SvgElement, SVGComponentTransferFunctionElement: A.SvgElement, SVGFEDropShadowElement: A.SvgElement, SVGMPathElement: A.SvgElement, SVGElement: A.SvgElement, SVGTransform: A.Transform, SVGTransformList: A.TransformList, AudioBuffer: A.AudioBuffer, AudioParamMap: A.AudioParamMap, AudioTrackList: A.AudioTrackList, AudioContext: A.BaseAudioContext, webkitAudioContext: A.BaseAudioContext, BaseAudioContext: A.BaseAudioContext, OfflineAudioContext: A.OfflineAudioContext}); - hunkHelpers.setOrUpdateLeafTags({WebGL: true, AnimationEffectReadOnly: true, AnimationEffectTiming: true, AnimationEffectTimingReadOnly: true, AnimationTimeline: true, AnimationWorkletGlobalScope: true, AuthenticatorAssertionResponse: true, AuthenticatorAttestationResponse: true, AuthenticatorResponse: true, BackgroundFetchFetch: true, BackgroundFetchManager: true, BackgroundFetchSettledFetch: true, BarProp: true, BarcodeDetector: true, BluetoothRemoteGATTDescriptor: true, Body: true, BudgetState: true, CacheStorage: true, CanvasGradient: true, CanvasPattern: true, CanvasRenderingContext2D: true, Client: true, Clients: true, CookieStore: true, Coordinates: true, Credential: true, CredentialUserData: true, CredentialsContainer: true, Crypto: true, CryptoKey: true, CSS: true, CSSVariableReferenceValue: true, CustomElementRegistry: true, DataTransfer: true, DataTransferItem: true, DeprecatedStorageInfo: true, DeprecatedStorageQuota: true, DeprecationReport: true, DetectedBarcode: true, DetectedFace: true, DetectedText: true, DeviceAcceleration: true, DeviceRotationRate: true, DirectoryEntry: true, webkitFileSystemDirectoryEntry: true, FileSystemDirectoryEntry: true, DirectoryReader: true, WebKitDirectoryReader: true, webkitFileSystemDirectoryReader: true, FileSystemDirectoryReader: true, DocumentOrShadowRoot: true, DocumentTimeline: true, DOMError: true, Iterator: true, DOMMatrix: true, DOMMatrixReadOnly: true, DOMParser: true, DOMPoint: true, DOMPointReadOnly: true, DOMQuad: true, DOMStringMap: true, Entry: true, webkitFileSystemEntry: true, FileSystemEntry: true, External: true, FaceDetector: true, FederatedCredential: true, FileEntry: true, webkitFileSystemFileEntry: true, FileSystemFileEntry: true, DOMFileSystem: true, WebKitFileSystem: true, webkitFileSystem: true, FileSystem: true, FontFace: true, FontFaceSource: true, FormData: true, GamepadButton: true, GamepadPose: true, Geolocation: true, Position: true, GeolocationPosition: true, Headers: true, HTMLHyperlinkElementUtils: true, IdleDeadline: true, ImageBitmap: true, ImageBitmapRenderingContext: true, ImageCapture: true, InputDeviceCapabilities: true, IntersectionObserver: true, IntersectionObserverEntry: true, InterventionReport: true, KeyframeEffect: true, KeyframeEffectReadOnly: true, MediaCapabilities: true, MediaCapabilitiesInfo: true, MediaDeviceInfo: true, MediaError: true, MediaKeyStatusMap: true, MediaKeySystemAccess: true, MediaKeys: true, MediaKeysPolicy: true, MediaMetadata: true, MediaSession: true, MediaSettingsRange: true, MemoryInfo: true, MessageChannel: true, Metadata: true, MutationObserver: true, WebKitMutationObserver: true, MutationRecord: true, NavigationPreloadManager: true, Navigator: true, NavigatorAutomationInformation: true, NavigatorConcurrentHardware: true, NavigatorCookies: true, NavigatorUserMediaError: true, NodeFilter: true, NodeIterator: true, NonDocumentTypeChildNode: true, NonElementParentNode: true, NoncedElement: true, OffscreenCanvasRenderingContext2D: true, OverconstrainedError: true, PaintRenderingContext2D: true, PaintSize: true, PaintWorkletGlobalScope: true, PasswordCredential: true, Path2D: true, PaymentAddress: true, PaymentInstruments: true, PaymentManager: true, PaymentResponse: true, PerformanceEntry: true, PerformanceLongTaskTiming: true, PerformanceMark: true, PerformanceMeasure: true, PerformanceNavigation: true, PerformanceNavigationTiming: true, PerformanceObserver: true, PerformanceObserverEntryList: true, PerformancePaintTiming: true, PerformanceResourceTiming: true, PerformanceServerTiming: true, PerformanceTiming: true, Permissions: true, PhotoCapabilities: true, PositionError: true, GeolocationPositionError: true, Presentation: true, PresentationReceiver: true, PublicKeyCredential: true, PushManager: true, PushMessageData: true, PushSubscription: true, PushSubscriptionOptions: true, Range: true, RelatedApplication: true, ReportBody: true, ReportingObserver: true, ResizeObserver: true, ResizeObserverEntry: true, RTCCertificate: true, RTCIceCandidate: true, mozRTCIceCandidate: true, RTCLegacyStatsReport: true, RTCRtpContributingSource: true, RTCRtpReceiver: true, RTCRtpSender: true, RTCSessionDescription: true, mozRTCSessionDescription: true, RTCStatsResponse: true, Screen: true, ScrollState: true, ScrollTimeline: true, Selection: true, SpeechRecognitionAlternative: true, SpeechSynthesisVoice: true, StaticRange: true, StorageManager: true, StyleMedia: true, StylePropertyMap: true, StylePropertyMapReadonly: true, SyncManager: true, TaskAttributionTiming: true, TextDetector: true, TextMetrics: true, TrackDefault: true, TreeWalker: true, TrustedHTML: true, TrustedScriptURL: true, TrustedURL: true, UnderlyingSourceBase: true, URLSearchParams: true, VRCoordinateSystem: true, VRDisplayCapabilities: true, VREyeParameters: true, VRFrameData: true, VRFrameOfReference: true, VRPose: true, VRStageBounds: true, VRStageBoundsPoint: true, VRStageParameters: true, ValidityState: true, VideoPlaybackQuality: true, VideoTrack: true, VTTRegion: true, WindowClient: true, WorkletAnimation: true, WorkletGlobalScope: true, XPathEvaluator: true, XPathExpression: true, XPathNSResolver: true, XPathResult: true, XMLSerializer: true, XSLTProcessor: true, Bluetooth: true, BluetoothCharacteristicProperties: true, BluetoothRemoteGATTServer: true, BluetoothRemoteGATTService: true, BluetoothUUID: true, BudgetService: true, Cache: true, DOMFileSystemSync: true, DirectoryEntrySync: true, DirectoryReaderSync: true, EntrySync: true, FileEntrySync: true, FileReaderSync: true, FileWriterSync: true, HTMLAllCollection: true, Mojo: true, MojoHandle: true, MojoWatcher: true, NFC: true, PagePopupController: true, Report: true, Request: true, Response: true, SubtleCrypto: true, USBAlternateInterface: true, USBConfiguration: true, USBDevice: true, USBEndpoint: true, USBInTransferResult: true, USBInterface: true, USBIsochronousInTransferPacket: true, USBIsochronousInTransferResult: true, USBIsochronousOutTransferPacket: true, USBIsochronousOutTransferResult: true, USBOutTransferResult: true, WorkerLocation: true, WorkerNavigator: true, Worklet: true, IDBCursor: true, IDBCursorWithValue: true, IDBFactory: true, IDBIndex: true, IDBObjectStore: true, IDBObservation: true, IDBObserver: true, IDBObserverChanges: true, SVGAngle: true, SVGAnimatedAngle: true, SVGAnimatedBoolean: true, SVGAnimatedEnumeration: true, SVGAnimatedInteger: true, SVGAnimatedLength: true, SVGAnimatedLengthList: true, SVGAnimatedNumber: true, SVGAnimatedNumberList: true, SVGAnimatedPreserveAspectRatio: true, SVGAnimatedRect: true, SVGAnimatedString: true, SVGAnimatedTransformList: true, SVGMatrix: true, SVGPoint: true, SVGPreserveAspectRatio: true, SVGRect: true, SVGUnitTypes: true, AudioListener: true, AudioParam: true, AudioTrack: true, AudioWorkletGlobalScope: true, AudioWorkletProcessor: true, PeriodicWave: true, WebGLActiveInfo: true, ANGLEInstancedArrays: true, ANGLE_instanced_arrays: true, WebGLBuffer: true, WebGLCanvas: true, WebGLColorBufferFloat: true, WebGLCompressedTextureASTC: true, WebGLCompressedTextureATC: true, WEBGL_compressed_texture_atc: true, WebGLCompressedTextureETC1: true, WEBGL_compressed_texture_etc1: true, WebGLCompressedTextureETC: true, WebGLCompressedTexturePVRTC: true, WEBGL_compressed_texture_pvrtc: true, WebGLCompressedTextureS3TC: true, WEBGL_compressed_texture_s3tc: true, WebGLCompressedTextureS3TCsRGB: true, WebGLDebugRendererInfo: true, WEBGL_debug_renderer_info: true, WebGLDebugShaders: true, WEBGL_debug_shaders: true, WebGLDepthTexture: true, WEBGL_depth_texture: true, WebGLDrawBuffers: true, WEBGL_draw_buffers: true, EXTsRGB: true, EXT_sRGB: true, EXTBlendMinMax: true, EXT_blend_minmax: true, EXTColorBufferFloat: true, EXTColorBufferHalfFloat: true, EXTDisjointTimerQuery: true, EXTDisjointTimerQueryWebGL2: true, EXTFragDepth: true, EXT_frag_depth: true, EXTShaderTextureLOD: true, EXT_shader_texture_lod: true, EXTTextureFilterAnisotropic: true, EXT_texture_filter_anisotropic: true, WebGLFramebuffer: true, WebGLGetBufferSubDataAsync: true, WebGLLoseContext: true, WebGLExtensionLoseContext: true, WEBGL_lose_context: true, OESElementIndexUint: true, OES_element_index_uint: true, OESStandardDerivatives: true, OES_standard_derivatives: true, OESTextureFloat: true, OES_texture_float: true, OESTextureFloatLinear: true, OES_texture_float_linear: true, OESTextureHalfFloat: true, OES_texture_half_float: true, OESTextureHalfFloatLinear: true, OES_texture_half_float_linear: true, OESVertexArrayObject: true, OES_vertex_array_object: true, WebGLProgram: true, WebGLQuery: true, WebGLRenderbuffer: true, WebGLRenderingContext: true, WebGL2RenderingContext: true, WebGLSampler: true, WebGLShader: true, WebGLShaderPrecisionFormat: true, WebGLSync: true, WebGLTexture: true, WebGLTimerQueryEXT: true, WebGLTransformFeedback: true, WebGLUniformLocation: true, WebGLVertexArrayObject: true, WebGLVertexArrayObjectOES: true, WebGL2RenderingContextBase: true, ArrayBuffer: true, ArrayBufferView: false, DataView: true, Float32Array: true, Float64Array: true, Int16Array: true, Int32Array: true, Int8Array: true, Uint16Array: true, Uint32Array: true, Uint8ClampedArray: true, CanvasPixelArray: true, Uint8Array: false, HTMLAudioElement: true, HTMLBRElement: true, HTMLButtonElement: true, HTMLCanvasElement: true, HTMLContentElement: true, HTMLDListElement: true, HTMLDataElement: true, HTMLDataListElement: true, HTMLDetailsElement: true, HTMLDialogElement: true, HTMLDivElement: true, HTMLEmbedElement: true, HTMLFieldSetElement: true, HTMLHRElement: true, HTMLHeadElement: true, HTMLHeadingElement: true, HTMLHtmlElement: true, HTMLIFrameElement: true, HTMLImageElement: true, HTMLInputElement: true, HTMLLIElement: true, HTMLLabelElement: true, HTMLLegendElement: true, HTMLLinkElement: true, HTMLMapElement: true, HTMLMediaElement: true, HTMLMenuElement: true, HTMLMetaElement: true, HTMLMeterElement: true, HTMLModElement: true, HTMLOListElement: true, HTMLObjectElement: true, HTMLOptGroupElement: true, HTMLOptionElement: true, HTMLOutputElement: true, HTMLParagraphElement: true, HTMLParamElement: true, HTMLPictureElement: true, HTMLPreElement: true, HTMLProgressElement: true, HTMLQuoteElement: true, HTMLShadowElement: true, HTMLSlotElement: true, HTMLSourceElement: true, HTMLSpanElement: true, HTMLStyleElement: true, HTMLTableCaptionElement: true, HTMLTableCellElement: true, HTMLTableDataCellElement: true, HTMLTableHeaderCellElement: true, HTMLTableColElement: true, HTMLTextAreaElement: true, HTMLTimeElement: true, HTMLTitleElement: true, HTMLTrackElement: true, HTMLUListElement: true, HTMLUnknownElement: true, HTMLVideoElement: true, HTMLDirectoryElement: true, HTMLFontElement: true, HTMLFrameElement: true, HTMLFrameSetElement: true, HTMLMarqueeElement: true, HTMLElement: false, AccessibleNodeList: true, HTMLAnchorElement: true, HTMLAreaElement: true, HTMLBaseElement: true, Blob: false, HTMLBodyElement: true, CDATASection: true, CharacterData: true, Comment: true, ProcessingInstruction: true, Text: true, CSSPerspective: true, CSSCharsetRule: true, CSSConditionRule: true, CSSFontFaceRule: true, CSSGroupingRule: true, CSSImportRule: true, CSSKeyframeRule: true, MozCSSKeyframeRule: true, WebKitCSSKeyframeRule: true, CSSKeyframesRule: true, MozCSSKeyframesRule: true, WebKitCSSKeyframesRule: true, CSSMediaRule: true, CSSNamespaceRule: true, CSSPageRule: true, CSSRule: true, CSSStyleRule: true, CSSSupportsRule: true, CSSViewportRule: true, CSSStyleDeclaration: true, MSStyleCSSProperties: true, CSS2Properties: true, CSSImageValue: true, CSSKeywordValue: true, CSSNumericValue: true, CSSPositionValue: true, CSSResourceValue: true, CSSUnitValue: true, CSSURLImageValue: true, CSSStyleValue: false, CSSMatrixComponent: true, CSSRotation: true, CSSScale: true, CSSSkew: true, CSSTranslation: true, CSSTransformComponent: false, CSSTransformValue: true, CSSUnparsedValue: true, CustomEvent: true, DataTransferItemList: true, XMLDocument: true, Document: false, DOMException: true, DOMImplementation: true, ClientRectList: true, DOMRectList: true, DOMRectReadOnly: false, DOMStringList: true, DOMTokenList: true, MathMLElement: true, Element: false, AbortPaymentEvent: true, AnimationEvent: true, AnimationPlaybackEvent: true, ApplicationCacheErrorEvent: true, BackgroundFetchClickEvent: true, BackgroundFetchEvent: true, BackgroundFetchFailEvent: true, BackgroundFetchedEvent: true, BeforeInstallPromptEvent: true, BeforeUnloadEvent: true, BlobEvent: true, CanMakePaymentEvent: true, ClipboardEvent: true, CloseEvent: true, DeviceMotionEvent: true, DeviceOrientationEvent: true, ErrorEvent: true, ExtendableEvent: true, ExtendableMessageEvent: true, FetchEvent: true, FontFaceSetLoadEvent: true, ForeignFetchEvent: true, GamepadEvent: true, HashChangeEvent: true, InstallEvent: true, MediaEncryptedEvent: true, MediaKeyMessageEvent: true, MediaQueryListEvent: true, MediaStreamEvent: true, MediaStreamTrackEvent: true, MIDIConnectionEvent: true, MIDIMessageEvent: true, MutationEvent: true, NotificationEvent: true, PageTransitionEvent: true, PaymentRequestEvent: true, PaymentRequestUpdateEvent: true, PopStateEvent: true, PresentationConnectionAvailableEvent: true, PresentationConnectionCloseEvent: true, PromiseRejectionEvent: true, PushEvent: true, RTCDataChannelEvent: true, RTCDTMFToneChangeEvent: true, RTCPeerConnectionIceEvent: true, RTCTrackEvent: true, SecurityPolicyViolationEvent: true, SensorErrorEvent: true, SpeechRecognitionError: true, SpeechRecognitionEvent: true, SpeechSynthesisEvent: true, StorageEvent: true, SyncEvent: true, TrackEvent: true, TransitionEvent: true, WebKitTransitionEvent: true, VRDeviceEvent: true, VRDisplayEvent: true, VRSessionEvent: true, MojoInterfaceRequestEvent: true, USBConnectionEvent: true, IDBVersionChangeEvent: true, AudioProcessingEvent: true, OfflineAudioCompletionEvent: true, WebGLContextEvent: true, Event: false, InputEvent: false, SubmitEvent: false, AbsoluteOrientationSensor: true, Accelerometer: true, AccessibleNode: true, AmbientLightSensor: true, Animation: true, ApplicationCache: true, DOMApplicationCache: true, OfflineResourceList: true, BackgroundFetchRegistration: true, BatteryManager: true, BroadcastChannel: true, CanvasCaptureMediaStreamTrack: true, EventSource: true, FileReader: true, FontFaceSet: true, Gyroscope: true, LinearAccelerationSensor: true, Magnetometer: true, MediaDevices: true, MediaKeySession: true, MediaQueryList: true, MediaRecorder: true, MediaSource: true, MediaStream: true, MediaStreamTrack: true, MIDIAccess: true, MIDIInput: true, MIDIOutput: true, MIDIPort: true, NetworkInformation: true, Notification: true, OffscreenCanvas: true, OrientationSensor: true, PaymentRequest: true, Performance: true, PermissionStatus: true, PresentationAvailability: true, PresentationConnection: true, PresentationConnectionList: true, PresentationRequest: true, RelativeOrientationSensor: true, RemotePlayback: true, RTCDataChannel: true, DataChannel: true, RTCDTMFSender: true, RTCPeerConnection: true, webkitRTCPeerConnection: true, mozRTCPeerConnection: true, ScreenOrientation: true, Sensor: true, ServiceWorker: true, ServiceWorkerContainer: true, ServiceWorkerRegistration: true, SharedWorker: true, SpeechRecognition: true, webkitSpeechRecognition: true, SpeechSynthesis: true, SpeechSynthesisUtterance: true, VR: true, VRDevice: true, VRDisplay: true, VRSession: true, VisualViewport: true, WebSocket: true, Worker: true, WorkerPerformance: true, BluetoothDevice: true, BluetoothRemoteGATTCharacteristic: true, Clipboard: true, MojoInterfaceInterceptor: true, USB: true, IDBDatabase: true, IDBOpenDBRequest: true, IDBVersionChangeRequest: true, IDBRequest: true, IDBTransaction: true, AnalyserNode: true, RealtimeAnalyserNode: true, AudioBufferSourceNode: true, AudioDestinationNode: true, AudioNode: true, AudioScheduledSourceNode: true, AudioWorkletNode: true, BiquadFilterNode: true, ChannelMergerNode: true, AudioChannelMerger: true, ChannelSplitterNode: true, AudioChannelSplitter: true, ConstantSourceNode: true, ConvolverNode: true, DelayNode: true, DynamicsCompressorNode: true, GainNode: true, AudioGainNode: true, IIRFilterNode: true, MediaElementAudioSourceNode: true, MediaStreamAudioDestinationNode: true, MediaStreamAudioSourceNode: true, OscillatorNode: true, Oscillator: true, PannerNode: true, AudioPannerNode: true, webkitAudioPannerNode: true, ScriptProcessorNode: true, JavaScriptAudioNode: true, StereoPannerNode: true, WaveShaperNode: true, EventTarget: false, File: true, FileList: true, FileWriter: true, HTMLFormElement: true, Gamepad: true, History: true, HTMLCollection: true, HTMLFormControlsCollection: true, HTMLOptionsCollection: true, HTMLDocument: true, XMLHttpRequest: true, XMLHttpRequestUpload: true, XMLHttpRequestEventTarget: false, ImageData: true, KeyboardEvent: true, Location: true, MediaList: true, MessageEvent: true, MessagePort: true, MIDIInputMap: true, MIDIOutputMap: true, MimeType: true, MimeTypeArray: true, DocumentFragment: true, ShadowRoot: true, DocumentType: true, Node: false, NodeList: true, RadioNodeList: true, Plugin: true, PluginArray: true, ProgressEvent: true, ResourceProgressEvent: true, RTCStatsReport: true, HTMLScriptElement: true, HTMLSelectElement: true, SharedArrayBuffer: true, SourceBuffer: true, SourceBufferList: true, SpeechGrammar: true, SpeechGrammarList: true, SpeechRecognitionResult: true, Storage: true, CSSStyleSheet: true, StyleSheet: true, HTMLTableElement: true, HTMLTableRowElement: true, HTMLTableSectionElement: true, HTMLTemplateElement: true, TextTrack: true, TextTrackCue: true, VTTCue: true, TextTrackCueList: true, TextTrackList: true, TimeRanges: true, Touch: true, TouchList: true, TrackDefaultList: true, CompositionEvent: true, FocusEvent: true, MouseEvent: true, DragEvent: true, PointerEvent: true, TextEvent: true, TouchEvent: true, WheelEvent: true, UIEvent: false, URL: true, VideoTrackList: true, Window: true, DOMWindow: true, DedicatedWorkerGlobalScope: true, ServiceWorkerGlobalScope: true, SharedWorkerGlobalScope: true, WorkerGlobalScope: true, Attr: true, CSSRuleList: true, ClientRect: true, DOMRect: true, GamepadList: true, NamedNodeMap: true, MozNamedAttrMap: true, SpeechRecognitionResultList: true, StyleSheetList: true, IDBKeyRange: true, SVGLength: true, SVGLengthList: true, SVGNumber: true, SVGNumberList: true, SVGPointList: true, SVGScriptElement: true, SVGStringList: true, SVGAElement: true, SVGAnimateElement: true, SVGAnimateMotionElement: true, SVGAnimateTransformElement: true, SVGAnimationElement: true, SVGCircleElement: true, SVGClipPathElement: true, SVGDefsElement: true, SVGDescElement: true, SVGDiscardElement: true, SVGEllipseElement: true, SVGFEBlendElement: true, SVGFEColorMatrixElement: true, SVGFEComponentTransferElement: true, SVGFECompositeElement: true, SVGFEConvolveMatrixElement: true, SVGFEDiffuseLightingElement: true, SVGFEDisplacementMapElement: true, SVGFEDistantLightElement: true, SVGFEFloodElement: true, SVGFEFuncAElement: true, SVGFEFuncBElement: true, SVGFEFuncGElement: true, SVGFEFuncRElement: true, SVGFEGaussianBlurElement: true, SVGFEImageElement: true, SVGFEMergeElement: true, SVGFEMergeNodeElement: true, SVGFEMorphologyElement: true, SVGFEOffsetElement: true, SVGFEPointLightElement: true, SVGFESpecularLightingElement: true, SVGFESpotLightElement: true, SVGFETileElement: true, SVGFETurbulenceElement: true, SVGFilterElement: true, SVGForeignObjectElement: true, SVGGElement: true, SVGGeometryElement: true, SVGGraphicsElement: true, SVGImageElement: true, SVGLineElement: true, SVGLinearGradientElement: true, SVGMarkerElement: true, SVGMaskElement: true, SVGMetadataElement: true, SVGPathElement: true, SVGPatternElement: true, SVGPolygonElement: true, SVGPolylineElement: true, SVGRadialGradientElement: true, SVGRectElement: true, SVGSetElement: true, SVGStopElement: true, SVGStyleElement: true, SVGSVGElement: true, SVGSwitchElement: true, SVGSymbolElement: true, SVGTSpanElement: true, SVGTextContentElement: true, SVGTextElement: true, SVGTextPathElement: true, SVGTextPositioningElement: true, SVGTitleElement: true, SVGUseElement: true, SVGViewElement: true, SVGGradientElement: true, SVGComponentTransferFunctionElement: true, SVGFEDropShadowElement: true, SVGMPathElement: true, SVGElement: false, SVGTransform: true, SVGTransformList: true, AudioBuffer: true, AudioParamMap: true, AudioTrackList: true, AudioContext: true, webkitAudioContext: true, BaseAudioContext: false, OfflineAudioContext: true}); + hunkHelpers.setOrUpdateInterceptorsByTag({ArrayBuffer: A.NativeByteBuffer, ArrayBufferView: A.NativeTypedData, DataView: A.NativeByteData, Float32Array: A.NativeFloat32List, Float64Array: A.NativeFloat64List, Int16Array: A.NativeInt16List, Int32Array: A.NativeInt32List, Int8Array: A.NativeInt8List, Uint16Array: A.NativeUint16List, Uint32Array: A.NativeUint32List, Uint8ClampedArray: A.NativeUint8ClampedList, CanvasPixelArray: A.NativeUint8ClampedList, Uint8Array: A.NativeUint8List}); + hunkHelpers.setOrUpdateLeafTags({ArrayBuffer: true, ArrayBufferView: false, DataView: true, Float32Array: true, Float64Array: true, Int16Array: true, Int32Array: true, Int8Array: true, Uint16Array: true, Uint32Array: true, Uint8ClampedArray: true, CanvasPixelArray: true, Uint8Array: false}); A.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView"; A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView"; A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView"; @@ -28012,10 +23366,6 @@ A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView"; A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView"; A.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView"; - A._SourceBufferList_EventTarget_ListMixin.$nativeSuperclassTag = "EventTarget"; - A._SourceBufferList_EventTarget_ListMixin_ImmutableListMixin.$nativeSuperclassTag = "EventTarget"; - A._TextTrackList_EventTarget_ListMixin.$nativeSuperclassTag = "EventTarget"; - A._TextTrackList_EventTarget_ListMixin_ImmutableListMixin.$nativeSuperclassTag = "EventTarget"; })(); Function.prototype.call$0 = function() { return this(); @@ -28074,9 +23424,6 @@ Function.prototype.call$2$0 = function() { return this(); }; - Function.prototype.call$1$0 = function() { - return this(); - }; convertAllToFastObject(holders); convertToFastObject($); (function(callback) { diff --git a/dwds/pubspec.yaml b/dwds/pubspec.yaml index c3e3f9d08..49d518d4a 100644 --- a/dwds/pubspec.yaml +++ b/dwds/pubspec.yaml @@ -36,6 +36,7 @@ dependencies: vm_service: ^14.2.4 vm_service_interface: 1.1.0 web_socket_channel: '>=2.2.0 <4.0.0' + web: ">=0.3.0 <0.5.0" webkit_inspection_protocol: ^1.0.1 dev_dependencies: diff --git a/dwds/web/client.dart b/dwds/web/client.dart index e43ec90b7..2a016d698 100644 --- a/dwds/web/client.dart +++ b/dwds/web/client.dart @@ -2,13 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -@JS() -library; - import 'dart:async'; import 'dart:convert'; -import 'dart:html'; -import 'dart:js'; +import 'dart:js_interop'; import 'package:built_collection/built_collection.dart'; import 'package:dwds/data/build_result.dart'; @@ -23,17 +19,17 @@ import 'package:dwds/data/run_request.dart'; import 'package:dwds/data/serializers.dart'; import 'package:dwds/shared/batched_stream.dart'; import 'package:dwds/src/sockets.dart'; -import 'package:js/js.dart'; import 'package:sse/client/sse_client.dart'; import 'package:uuid/uuid.dart'; +import 'package:web/helpers.dart'; import 'package:web_socket_channel/web_socket_channel.dart'; -import 'promise.dart'; import 'reloader/ddc_restarter.dart'; import 'reloader/manager.dart'; import 'reloader/require_restarter.dart'; import 'reloader/restarter.dart'; import 'run_main.dart'; +import 'web_utils.dart'; const _batchDelayMilliseconds = 1000; @@ -64,26 +60,26 @@ Future? main() { Completer? readyToRunMainCompleter; - hotRestartJs = allowInterop((String runId, [bool? pauseIsolatesOnStart]) { + hotRestartJs = (String runId, [bool? pauseIsolatesOnStart]) { if (pauseIsolatesOnStart ?? false) { readyToRunMainCompleter = Completer(); - return toPromise( - manager.hotRestart( - runId: runId, - readyToRunMain: readyToRunMainCompleter!.future, - ), - ); + return manager + .hotRestart( + runId: runId, + readyToRunMain: readyToRunMainCompleter!.future, + ) + .toJS; } else { - return toPromise(manager.hotRestart(runId: runId)); + return manager.hotRestart(runId: runId).toJS; } - }); + }.toJS; - readyToRunMainJs = allowInterop(() { + readyToRunMainJs = () { if (readyToRunMainCompleter == null) return; if (readyToRunMainCompleter!.isCompleted) return; readyToRunMainCompleter!.complete(); readyToRunMainCompleter = null; - }); + }.toJS; final debugEventController = BatchedStreamController(delay: _batchDelayMilliseconds); @@ -102,7 +98,7 @@ Future? main() { } }); - emitDebugEvent = allowInterop((String kind, String eventData) { + emitDebugEvent = (String kind, String eventData) { if (dartEmitDebugEvents) { _trySendEvent( debugEventController.sink, @@ -114,9 +110,9 @@ Future? main() { ), ); } - }); + }.toJS; - emitRegisterEvent = allowInterop((String eventData) { + emitRegisterEvent = (String eventData) { _trySendEvent( client.sink, jsonEncode( @@ -129,9 +125,9 @@ Future? main() { ), ), ); - }); + }.toJS; - launchDevToolsJs = allowInterop(() { + launchDevToolsJs = () { if (!_isChromium) { window.alert( 'Dart DevTools is only supported on Chromium based browsers.', @@ -150,7 +146,7 @@ Future? main() { ), ), ); - }); + }.toJS; client.stream.listen( (serialized) async { @@ -175,9 +171,12 @@ Future? main() { } else if (event is RunRequest) { runMain(); } else if (event is ErrorResponse) { - window.console - .error('Error from backend:\n\nError: ${event.error}\n\n' - 'Stack Trace:\n${event.stackTrace}'); + window.reportError( + 'Error from backend:\n\n' + 'Error: ${event.error}\n\n' + 'Stack Trace:\n${event.stackTrace}' + .toJS, + ); } }, onError: (error) { @@ -201,7 +200,7 @@ Future? main() { !e.ctrlKey && !e.metaKey) { e.preventDefault(); - launchDevToolsJs(); + launchDevToolsJs.callAsFunction(); } }); } @@ -283,47 +282,56 @@ void _launchCommunicationWithDebugExtension() { DebugInfo( (b) => b ..appEntrypointPath = dartEntrypointPath - ..appId = _appId + ..appId = windowContext.$dartAppId ..appInstanceId = dartAppInstanceId ..appOrigin = window.location.origin ..appUrl = window.location.href ..authUrl = _authUrl - ..extensionUrl = _extensionUrl - ..isInternalBuild = _isInternalBuild - ..isFlutterApp = _isFlutterApp + ..extensionUrl = windowContext.$dartExtensionUri + ..isInternalBuild = windowContext.$isInternalBuild + ..isFlutterApp = windowContext.$isFlutterApp ..workspaceName = dartWorkspaceName, ), ), ); - dispatchEvent(CustomEvent('dart-app-ready', detail: debugInfoJson)); + _dispatchEvent('dart-app-ready', debugInfoJson); +} + +void _dispatchEvent(String message, String detail) { + final event = CustomEvent(message, CustomEventInit(detail: detail.toJS)); + document.dispatchEvent(event); } void _listenForDebugExtensionAuthRequest() { window.addEventListener( 'message', - allowInterop((event) async { - final messageEvent = event as MessageEvent; - if (messageEvent.data is! String) return; - if (messageEvent.data as String != 'dart-auth-request') return; - - // Notify the Dart Debug Extension of authentication status: - if (_authUrl != null) { - final isAuthenticated = await _authenticateUser(_authUrl!); - dispatchEvent( - CustomEvent('dart-auth-response', detail: '$isAuthenticated'), - ); - } - }), + _handleAuthRequest.toJS, ); } +void _handleAuthRequest(Event event) { + final messageEvent = event as MessageEvent; + final data = messageEvent.data; + + if (!data.typeofEquals('string')) return; + if ((data as JSString).toDart != 'dart-auth-request') return; + + // Notify the Dart Debug Extension of authentication status: + if (_authUrl != null) { + _authenticateUser(_authUrl!).then( + (isAuthenticated) => + _dispatchEvent('dart-auth-response', '$isAuthenticated'), + ); + } +} + Future _authenticateUser(String authUrl) async { final response = await HttpRequest.request( authUrl, method: 'GET', withCredentials: true, ); - final responseText = response.responseText ?? ''; + final responseText = response.responseText; return responseText.contains('Dart Debug Authentication Success!'); } @@ -343,18 +351,16 @@ external set dartAppInstanceId(String? id); external String get dartModuleStrategy; @JS(r'$dartHotRestartDwds') -external set hotRestartJs( - Promise Function(String runId, [bool? pauseIsolatesOnStart]) cb, -); +external set hotRestartJs(JSFunction cb); @JS(r'$dartReadyToRunMain') -external set readyToRunMainJs(void Function() cb); +external set readyToRunMainJs(JSFunction cb); @JS(r'$launchDevTools') -external void Function() get launchDevToolsJs; +external JSFunction get launchDevToolsJs; @JS(r'$launchDevTools') -external set launchDevToolsJs(void Function() cb); +external set launchDevToolsJs(JSFunction cb); @JS(r'$dartReloadConfiguration') external String get reloadConfiguration; @@ -372,10 +378,10 @@ external void dispatchEvent(CustomEvent event); external bool get dartEmitDebugEvents; @JS(r'$emitDebugEvent') -external set emitDebugEvent(void Function(String, String) func); +external set emitDebugEvent(JSFunction func); @JS(r'$emitRegisterEvent') -external set emitRegisterEvent(void Function(String) func); +external set emitRegisterEvent(JSFunction func); @JS(r'$isInternalBuild') external bool get isInternalBuild; @@ -388,18 +394,8 @@ external String? get dartWorkspaceName; bool get _isChromium => window.navigator.vendor.contains('Google'); -JsObject get _windowContext => JsObject.fromBrowserObject(window); - -bool? get _isInternalBuild => _windowContext['\$isInternalBuild']; - -bool? get _isFlutterApp => _windowContext['\$isFlutterApp']; - -String? get _appId => _windowContext['\$dartAppId']; - -String? get _extensionUrl => _windowContext['\$dartExtensionUri']; - String? get _authUrl { - final extensionUrl = _extensionUrl; + final extensionUrl = windowContext.$dartExtensionUri; if (extensionUrl == null) return null; final authUrl = Uri.parse(extensionUrl).replace(path: authenticationPath); switch (authUrl.scheme) { diff --git a/dwds/web/promise.dart b/dwds/web/promise.dart deleted file mode 100644 index 21510e416..000000000 --- a/dwds/web/promise.dart +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -@JS() -library; - -import 'dart:async'; - -import 'package:js/js.dart'; - -/// Dart wrapper for native JavaScript Promise class. -@JS('Promise') -class Promise { - /// Constructs a new [Promise] object. - /// - /// The executor function is executed immediately by the Promise - /// implementation. The resolve and reject functions, when called, resolve or - /// reject the promise, respectively. If an error is thrown in the executor - /// function, the promise is rejected. - external Promise( - void Function(void Function(T) resolve, void Function(dynamic) reject) - executor, - ); - - /// Appends fulfillment and rejection handlers to the promise. - /// - /// Returns a new promise resolving to the return value of the called handler, - /// or to its original settled value if the promise was not handled. - external Promise then( - dynamic Function(T value) onSuccess, [ - dynamic Function(dynamic reason) onError, - ]); -} - -/// Returns a [Promise] that resolves once the given [future] resolves. -/// -/// This also propagates errors to the returned [Promise]. -Promise toPromise(Future future) { - return Promise( - allowInterop((void Function(T) resolve, void Function(dynamic) reject) { - future.then(resolve).catchError(reject); - }), - ); -} - -/// Returns a [Future] that resolves once the given [promise] resolves. -/// -/// This also propagates [Promise] rejection through to the returned [Future]. -Future toFuture(Promise promise) { - final completer = Completer(); - promise.then( - allowInterop(completer.complete), - // TODO(annagrin): propagate stack trace from promise instead. - allowInterop((e) => completer.completeError(e, StackTrace.current)), - ); - return completer.future; -} diff --git a/dwds/web/reloader/ddc_restarter.dart b/dwds/web/reloader/ddc_restarter.dart index 444723444..854a5d0fd 100644 --- a/dwds/web/reloader/ddc_restarter.dart +++ b/dwds/web/reloader/ddc_restarter.dart @@ -3,28 +3,31 @@ // BSD-style license that can be found in the LICENSE file. import 'dart:async'; -import 'dart:html'; -import 'dart:js_util'; +import 'dart:js_interop'; + +import 'package:web/helpers.dart'; -import '../promise.dart'; import 'restarter.dart'; +@anonymous +@JS() +@staticInterop +class DartLibrary {} + +@JS(r'dart_library') +external DartLibrary dartLibrary; + +extension DartLibraryExtension on DartLibrary { + external void reload(String? runId, JSPromise? readyToRunMain); +} + class DdcRestarter implements Restarter { @override Future restart({String? runId, Future? readyToRunMain}) async { - final dartLibrary = getProperty(globalThis, 'dart_library'); - if (runId == null && readyToRunMain == null) { - callMethod(dartLibrary, 'reload', []); - } else { - final restartConfig = { - if (runId != null) 'runId': runId, - if (readyToRunMain != null) 'readyToRunMain': toPromise(readyToRunMain), - }; - callMethod(dartLibrary, 'reload', [jsify(restartConfig)]); - } + dartLibrary.reload(runId, readyToRunMain?.toJS); final reloadCompleter = Completer(); final sub = window.onMessage.listen((event) { - final message = event.data; + final message = event.data?.dartify(); if (message is Map && message['type'] == 'DDC_STATE_CHANGE' && message['state'] == 'restart_end') { diff --git a/dwds/web/reloader/manager.dart b/dwds/web/reloader/manager.dart index 2b763c0ab..acd7cf166 100644 --- a/dwds/web/reloader/manager.dart +++ b/dwds/web/reloader/manager.dart @@ -3,11 +3,11 @@ // BSD-style license that can be found in the LICENSE file. import 'dart:convert'; -import 'dart:html'; import 'package:dwds/data/isolate_events.dart'; import 'package:dwds/data/serializers.dart'; import 'package:dwds/src/sockets.dart'; +import 'package:web/helpers.dart'; import 'restarter.dart'; diff --git a/dwds/web/reloader/require_restarter.dart b/dwds/web/reloader/require_restarter.dart index 0990b3052..feb3f89f2 100644 --- a/dwds/web/reloader/require_restarter.dart +++ b/dwds/web/reloader/require_restarter.dart @@ -2,96 +2,124 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -@JS() -library; - import 'dart:async'; import 'dart:collection'; -import 'dart:html'; -import 'dart:js_util'; +import 'dart:js_interop'; import 'package:dwds/src/utilities/shared.dart'; import 'package:graphs/graphs.dart' as graphs; -import 'package:js/js.dart'; -import 'package:js/js_util.dart'; +import 'package:web/helpers.dart'; -import '../promise.dart'; import '../run_main.dart'; +import '../web_utils.dart'; import 'restarter.dart'; -/// The last known digests of all the modules in the application. -/// -/// This is updated in place during calls to hotRestart. -/// TODO(annagrin): can this be a private field in RequireRestarter? -late Map _lastKnownDigests; +@JS(r'$dartRunMain') +external set dartRunMain(JSFunction func); + +@JS(r'$dartRunMain') +external JSFunction get dartRunMain; @JS(r'$requireLoader') external RequireLoader get requireLoader; -@JS(r'$loadModuleConfig') -external Object Function(String module) get require; +@anonymous +@JS() +@staticInterop +class RequireLoader {} -@JS(r'$dartRunMain') -external set dartRunMain(Function() func); +extension RequireLoaderExtension on RequireLoader { + external String get digestsPath; -@JS(r'$dartRunMain') -external Function() get dartRunMain; + external JsMap get moduleParentsGraph; -List keys(JsMap map) { - return List.from(_jsArrayFrom(map.keys())); + external void forceLoadModule( + JSString moduleId, + JSFunction callback, + JSFunction onError, + ); } -@JS('Array.from') -external List _jsArrayFrom(Object any); +@anonymous +@JS() +@staticInterop +class Sdk {} -@JS('Object.values') -external List _jsObjectValues(Object any); +@anonymous +@JS() +@staticInterop +class SdkDeveloper {} @anonymous @JS() -class RequireLoader { - @JS() - external String get digestsPath; +@staticInterop +class SdkDart {} - @JS() - external JsMap> get moduleParentsGraph; +@anonymous +@JS() +@staticInterop +class SdkExt {} - @JS() - external void forceLoadModule( - String moduleId, - void Function() callback, - void Function(JsError e) onError, - ); +@anonymous +@JS() +@staticInterop +class MainLibrary {} + +@JS(r'$loadModuleConfig') +external Sdk require(String value); + +Sdk get sdk => require('dart_sdk'); + +extension SdkExtension on Sdk { + external SdkDart get dart; + external SdkDeveloper get developer; } -class HotReloadFailedException implements Exception { - final String _s; +extension SdkDeveloperExtension on SdkDeveloper { + external JSPromise invokeExtension(String key, String params); + external SdkExt get _extensions; - HotReloadFailedException(this._s); - @override - String toString() => "HotReloadFailedException: '$_s'"; + Future maybeInvokeFlutterDisassemble() async { + final method = 'ext.flutter.disassemble'; + if (_extensions.containsKey(method)) { + await invokeExtension(method, '{}').toDart; + } + } } -@JS('Error') -abstract class JsError { - @JS() - external String get message; +extension SdkDartExtension on SdkDart { + external void hotRestart(); + external JSObject getModuleLibraries(String? moduleId); - @JS() - external String get stack; + MainLibrary getMainLibrary(String? moduleId) { + final libraries = getModuleLibraries(moduleId).values; + return libraries.first! as MainLibrary; + } } -@JS('Map') -abstract class JsMap { - @JS() - external V? get(K key); +extension SdkExtExtension on SdkExt { + external bool containsKey(String key); +} - @JS() - external Object keys(); +extension MainLibraryExtension on MainLibrary { + external void main(); +} + +class HotReloadFailedException implements Exception { + final String _s; + + HotReloadFailedException(this._s); + @override + String toString() => "HotReloadFailedException: '$_s'"; } /// Handles hot restart reloading for use with the require module system. class RequireRestarter implements Restarter { + /// The last known digests of all the modules in the application. + /// + /// This is updated in place during calls to hotRestart. + static late Map _lastKnownDigests; + final _moduleOrdering = HashMap(); late SplayTreeSet _dirtyModules; var _running = Completer()..complete(true); @@ -104,20 +132,7 @@ class RequireRestarter implements Restarter { @override Future restart({String? runId, Future? readyToRunMain}) async { - final developer = getProperty(require('dart_sdk'), 'developer'); - if (callMethod( - getProperty(developer, '_extensions'), - 'containsKey', - ['ext.flutter.disassemble'], - ) as bool) { - await toFuture( - callMethod( - developer, - 'invokeExtension', - ['ext.flutter.disassemble', '{}'], - ) as Promise, - ); - } + await sdk.developer.maybeInvokeFlutterDisassemble(); final newDigests = await _getDigests(); final modulesToLoad = []; @@ -137,7 +152,7 @@ class RequireRestarter implements Restarter { _updateGraph(); result = await _reload(modulesToLoad); } - callMethod(getProperty(require('dart_sdk'), 'dart'), 'hotRestart', []); + sdk.dart.hotRestart(); safeUnawaited(_runMainWhenReady(readyToRunMain)); return result; } @@ -149,7 +164,7 @@ class RequireRestarter implements Restarter { runMain(); } - List _allModules() => keys(requireLoader.moduleParentsGraph); + Iterable _allModules() => requireLoader.moduleParentsGraph.modules; Future> _getDigests() async { final request = await HttpRequest.request( @@ -157,7 +172,9 @@ class RequireRestarter implements Restarter { responseType: 'json', method: 'GET', ); - return (request.response as Map).cast(); + + final response = request.response.dartify(); + return (response as Map).cast(); } Future _initialize() async { @@ -165,7 +182,7 @@ class RequireRestarter implements Restarter { } List _moduleParents(String module) => - requireLoader.moduleParentsGraph.get(module)?.cast() ?? []; + requireLoader.moduleParentsGraph.parents(module); int _moduleTopologicalCompare(String module1, String module2) { var topological = 0; @@ -197,6 +214,8 @@ class RequireRestarter implements Restarter { /// Returns `true` if the reload was fully handled, `false` if it failed /// explicitly, or `null` for an unhandled reload. Future _reload(List modules) async { + final dart = sdk.dart; + // As function is async, it can potentially be called second time while // first invocation is still running. In this case just mark as dirty and // wait until loop from the first call will do the work @@ -215,14 +234,10 @@ class RequireRestarter implements Restarter { if (parentIds.isEmpty) { // The bootstrap module is not reloaded but we need to update the // $dartRunMain reference to the newly loaded child module. - final childModule = callMethod( - getProperty(require('dart_sdk'), 'dart'), - 'getModuleLibraries', - [previousModuleId], - ); - dartRunMain = allowInterop(() { - callMethod(_jsObjectValues(childModule).first, 'main', []); - }); + // ignore: unnecessary_lambdas + dartRunMain = () { + dart.getMainLibrary(previousModuleId).main(); + }.toJS; } else { ++reloadedModules; await _reloadModule(moduleId); @@ -245,14 +260,18 @@ class RequireRestarter implements Restarter { final completer = Completer(); final stackTrace = StackTrace.current; requireLoader.forceLoadModule( - moduleId, - allowInterop(completer.complete), - allowInterop((e) { + moduleId.toJS, + // Removing the argument type in complete() + // ignore: unnecessary_lambdas + () { + completer.complete(); + }.toJS, + (JsError e) { completer.completeError( HotReloadFailedException(e.message), stackTrace, ); - }), + }.toJS, ); return completer.future; } @@ -263,6 +282,7 @@ class RequireRestarter implements Restarter { void _updateGraph() { final allModules = _allModules(); + final stronglyConnectedComponents = graphs.stronglyConnectedComponents(allModules, _moduleParents); _moduleOrdering.clear(); diff --git a/dwds/web/run_main.dart b/dwds/web/run_main.dart index 23f490ebf..c1fd97a48 100644 --- a/dwds/web/run_main.dart +++ b/dwds/web/run_main.dart @@ -2,17 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -import 'dart:html'; - -/// Creates a script that will run properly when strict CSP is enforced. -/// -/// More specifically, the script has the correct `nonce` value set. -final ScriptElement Function() _createScript = (() { - final nonce = _findNonce(); - if (nonce == null) return ScriptElement.new; - - return () => ScriptElement()..setAttribute('nonce', nonce); -})(); +import 'dart:js_interop'; +import 'package:web/helpers.dart'; // According to the CSP3 spec a nonce must be a valid base64 string. final _noncePattern = RegExp('^[\\w+/_-]+[=]{0,2}\$'); @@ -20,22 +11,37 @@ final _noncePattern = RegExp('^[\\w+/_-]+[=]{0,2}\$'); /// Returns CSP nonce, if set for any script tag. String? _findNonce() { final elements = window.document.querySelectorAll('script'); - for (final element in elements) { - final nonceValue = - (element as HtmlElement).nonce ?? element.attributes['nonce']; - if (nonceValue != null && _noncePattern.hasMatch(nonceValue)) { + + for (var i = 0; i < elements.length; i++) { + final element = elements.item(i); + final nonceValue = (element as HtmlElement).nonce; + if (_noncePattern.hasMatch(nonceValue)) { return nonceValue; } } return null; } +/// Creates a script that will run properly when strict CSP is enforced. +/// +/// More specifically, the script has the correct `nonce` value set. +final HTMLElement Function() _createScript = (() { + final scriptElement = document.createElement('script') as HTMLElement; + + final nonce = _findNonce(); + if (nonce == null) return () => scriptElement; + + return () => scriptElement..setAttribute('nonce', nonce); +})(); + /// Runs `window.$dartRunMain()` by injecting a script tag. /// /// We do this so that we don't see user exceptions bubble up in our own error /// handling zone. void runMain() { - final scriptElement = _createScript()..innerHtml = r'window.$dartRunMain();'; - document.body!.append(scriptElement); - Future.microtask(scriptElement.remove); + final scriptElement = _createScript()..innerHTML = r'window.$dartRunMain();'; + document.body!.append(scriptElement.jsify()!); + // External tear-offs are not allowed. + // ignore: unnecessary_lambdas + Future.microtask(() => scriptElement.remove()); } diff --git a/dwds/web/web_utils.dart b/dwds/web/web_utils.dart new file mode 100644 index 000000000..c82c6ed54 --- /dev/null +++ b/dwds/web/web_utils.dart @@ -0,0 +1,59 @@ +// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +import 'dart:js_interop'; + +@JS('window') +external WindowContext get windowContext; + +@JS('Error') +@staticInterop +abstract class WindowContext {} + +extension WindowContextExtension on WindowContext { + external bool? get $isInternalBuild; + external bool? get $isFlutterApp; + external String? get $dartAppId; + external String? get $dartExtensionUri; +} + +@JS('Array.from') +external JSArray _jsArrayFrom(JSAny any); + +@JS('Object.values') +external JSArray _jsObjectValues(JSAny any); + +@JS('Error') +@staticInterop +abstract class JsError {} + +extension JsErrorExtension on JsError { + external String get message; + external String get stack; +} + +@JS('Map') +@staticInterop +abstract class JsMap {} + +extension JsMapExtension on JsMap { + external V? get(K key); + external JSObject keys(); +} + +extension JSObjectExtension on JSObject { + Iterable get values => _jsObjectValues(this).toDartIterable(); +} + +extension JSArrayExtension on JSArray { + Iterable toDartIterable() => toDart.map((e) => e.dartify() as T); + + List toDartList() => toDartIterable().toList(); +} + +extension ModuleDependencyGraph on JsMap { + Iterable get modules => _jsArrayFrom(keys()).toDartIterable(); + + List parents(String key) => get(key.toJS)?.toDartList() ?? []; +}