From 49fdacdb8199921a322d2da4c83b31cfd56935ad Mon Sep 17 00:00:00 2001 From: Anna Gringauze Date: Fri, 24 Feb 2023 11:20:21 -0800 Subject: [PATCH 1/5] Prepare to release dwds --- dwds/CHANGELOG.md | 2 +- dwds/lib/src/injected/client.js | 61 +++++++++++++++++---------------- dwds/lib/src/version.dart | 2 +- dwds/pubspec.yaml | 2 +- 4 files changed, 35 insertions(+), 32 deletions(-) diff --git a/dwds/CHANGELOG.md b/dwds/CHANGELOG.md index 54de17e8c..80fa155b1 100644 --- a/dwds/CHANGELOG.md +++ b/dwds/CHANGELOG.md @@ -1,4 +1,4 @@ -## 18.0.0-dev +## 18.0.0 - Cleanup `getObject` code for lists and maps. - Now works with offset `0` and `null` count. diff --git a/dwds/lib/src/injected/client.js b/dwds/lib/src/injected/client.js index c2f537631..72916003d 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, deferred-serialization, intern-composite-values), the Dart to JavaScript compiler version: 3.0.0-edge.1bf4dd4595ab960b1ad4aebad986fa20cb261889. +// Generated by dart2js (NullSafetyMode.sound, csp, deferred-serialization, intern-composite-values), the Dart to JavaScript compiler version: 3.0.0-263.0.dev. // The code supports the following hooks: // dartPrint(message): // if this function is defined it is called instead of the Dart [print] @@ -8028,7 +8028,7 @@ t2.add$1(0, new A.DoubleSerializer(A.BuiltList_BuiltList$from([B.Type_double_K1J], t1))); t2.add$1(0, new A.DurationSerializer(A.BuiltList_BuiltList$from([B.Type_Duration_SnA], t1))); t2.add$1(0, new A.IntSerializer(A.BuiltList_BuiltList$from([B.Type_int_tHn], t1))); - t2.add$1(0, new A.Int64Serializer(A.BuiltList_BuiltList$from([B.Type_Int64_gc6], t1))); + t2.add$1(0, new A.Int64Serializer(A.BuiltList_BuiltList$from([B.Type_Int64_ww8], t1))); t2.add$1(0, new A.JsonObjectSerializer(A.BuiltList_BuiltList$from([B.Type_JsonObject_gyf, B.Type_BoolJsonObject_8HQ, B.Type_ListJsonObject_yPV, B.Type_MapJsonObject_bBG, B.Type_NumJsonObject_H9C, B.Type_StringJsonObject_GAC], t1))); t2.add$1(0, new A.NullSerializer(A.BuiltList_BuiltList$from([B.Type_Null_Yyn], t1))); t2.add$1(0, new A.NumSerializer(A.BuiltList_BuiltList$from([B.Type_num_cv7], t1))); @@ -8472,38 +8472,28 @@ }, safeUnawaited_closure: function safeUnawaited_closure() { }, - Int32__decodeDigit(c) { - if (c >= 48 && c <= 57) - return c - 48; - else if (c >= 97 && c <= 122) - return c - 97 + 10; - else if (c >= 65 && c <= 90) - return c - 65 + 10; - else - return -1; - }, - Int64__parseRadix(s, radix) { - var i, negative, d0, d1, d2, c, digit, d00, d10, _null = null, - t1 = s.length; - if (0 < t1 && s[0] === "-") { + Int64__parseRadix(s, radix, throwOnError) { + var i, negative, t1, d0, d1, d2, digit, d00, d10; + if (B.JSString_methods.startsWith$1(s, "-")) { i = 1; negative = true; } else { i = 0; negative = false; } + t1 = s.length; if (i >= t1) - throw A.wrapException(A.FormatException$("No digits in '" + s + "'", _null, _null)); + throw A.wrapException(A.FormatException$("No digits", s, i)); for (d0 = 0, d1 = 0, d2 = 0; i < t1; ++i, d1 = d10, d0 = d00) { - c = B.JSString_methods._codeUnitAt$1(s, i); - digit = A.Int32__decodeDigit(c); - if (digit < 0 || digit >= radix) - throw A.wrapException(A.FormatException$("Non-radix char code: " + c, _null, _null)); - 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; + digit = A.decodeDigit(B.JSString_methods._codeUnitAt$1(s, 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); @@ -8529,7 +8519,7 @@ return value; else if (A._isInt(value)) return A.Int64_Int64(value); - throw A.wrapException(A.ArgumentError$value(value, null, null)); + throw A.wrapException(A.ArgumentError$value(value, "other", "not an int, Int32 or Int64")); }, Int64__toRadixStringUnsigned(radix, d0, d1, d2, sign) { var d4, d3, fatRadix, chunk1, chunk2, chunk3, q, q0, q1, q2, q3, chunk10, residue; @@ -9065,6 +9055,17 @@ } throw "Unable to print message: " + String(string); }, + 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; + }, UuidUtil_mathRNG() { var i, t1, b = new Uint8Array(16), @@ -21802,7 +21803,9 @@ return this.serialize$3$specifiedType(serializers, int64, B.FullType_null_List_empty_false); }, deserialize$3$specifiedType(serializers, serialized, specifiedType) { - return A.Int64__parseRadix(A._asString(serialized), 10); + var t1 = A.Int64__parseRadix(A._asString(serialized), 10, true); + t1.toString; + return t1; }, deserialize$2(serializers, serialized) { return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false); @@ -26963,7 +26966,7 @@ B.Type_Float64List_LB7 = A.typeLiteral("Float64List"); B.Type_Int16List_uXf = A.typeLiteral("Int16List"); B.Type_Int32List_O50 = A.typeLiteral("Int32List"); - B.Type_Int64_gc6 = A.typeLiteral("Int64"); + B.Type_Int64_ww8 = A.typeLiteral("Int64"); B.Type_Int8List_ekJ = A.typeLiteral("Int8List"); B.Type_JSObject_8k0 = A.typeLiteral("JSObject"); B.Type_JsonObject_gyf = A.typeLiteral("JsonObject"); diff --git a/dwds/lib/src/version.dart b/dwds/lib/src/version.dart index 378dae623..2f64088a5 100644 --- a/dwds/lib/src/version.dart +++ b/dwds/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '18.0.0-dev'; +const packageVersion = '18.0.0'; diff --git a/dwds/pubspec.yaml b/dwds/pubspec.yaml index af0f93ec0..93e1ad902 100644 --- a/dwds/pubspec.yaml +++ b/dwds/pubspec.yaml @@ -1,6 +1,6 @@ name: dwds # Every time this changes you need to run `dart run build_runner build`. -version: 18.0.0-dev +version: 18.0.0 description: >- A service that proxies between the Chrome debug protocol and the Dart VM service protocol. From f2f7329f8c2eb160c35b44276b3f01fe5c805988 Mon Sep 17 00:00:00 2001 From: Anna Gringauze Date: Fri, 24 Feb 2023 12:08:23 -0800 Subject: [PATCH 2/5] Use dev channel to run publish --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 91f6a69c4..58a6b56b6 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -11,4 +11,4 @@ on: jobs: publish: if: ${{ github.repository_owner == 'dart-lang' }} - uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main + uses: dart-lang/ecosystem/.github/workflows/publish.yaml@dev From 5039b5e95c20c90326b50a2242b4ba87bd36050f Mon Sep 17 00:00:00 2001 From: Anna Gringauze Date: Fri, 24 Feb 2023 16:11:39 -0800 Subject: [PATCH 3/5] Correctly switch to using dev SDK for publish task --- .github/workflows/publish.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 58a6b56b6..7f773dc2f 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -11,4 +11,6 @@ on: jobs: publish: if: ${{ github.repository_owner == 'dart-lang' }} - uses: dart-lang/ecosystem/.github/workflows/publish.yaml@dev + uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main + with: + sdk: dev From b62f6c3e69d4be5bbc9e9fb57127243bdb82fa24 Mon Sep 17 00:00:00 2001 From: Anna Gringauze Date: Mon, 27 Feb 2023 10:25:24 -0800 Subject: [PATCH 4/5] Try disabling publsh verification --- .github/workflows/publish.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7f773dc2f..1aefdf28a 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,16 +1,16 @@ # A CI configuration to auto-publish pub packages. -name: Publish +# name: Publish -on: - pull_request: - branches: [ master ] - push: - tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+*' ] +# on: +# pull_request: +# branches: [ master ] +# push: +# tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+*' ] -jobs: - publish: - if: ${{ github.repository_owner == 'dart-lang' }} - uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main - with: - sdk: dev +# jobs: +# publish: +# if: ${{ github.repository_owner == 'dart-lang' }} +# uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main +# with: +# sdk: dev From f74aa98f52164d3184f14f64cc18278925d7f994 Mon Sep 17 00:00:00 2001 From: Anna Gringauze Date: Mon, 27 Feb 2023 15:02:06 -0800 Subject: [PATCH 5/5] Merge with master --- dwds/lib/src/injected/client.js | 1062 +++++++++---------------------- 1 file changed, 299 insertions(+), 763 deletions(-) diff --git a/dwds/lib/src/injected/client.js b/dwds/lib/src/injected/client.js index 72916003d..652dad761 100644 --- a/dwds/lib/src/injected/client.js +++ b/dwds/lib/src/injected/client.js @@ -6861,13 +6861,11 @@ this.$ti = t1; }, CustomEvent_CustomEvent(type, detail) { - var e, t1, exception, + var e, exception, canBubble = true, cancelable = true; detail = detail; - t1 = document.createEvent("CustomEvent"); - t1.toString; - e = type$.CustomEvent._as(t1); + e = type$.CustomEvent._as(document.createEvent("CustomEvent")); e._dartDetail = detail; if (type$.List_dynamic._is(detail) || type$.Map_dynamic_dynamic._is(detail) || typeof detail == "string" || typeof detail == "number") try { @@ -6889,50 +6887,42 @@ return type$.Element._as(t2.get$single(t2)); }, Element__safeTagName(element) { - var t1, exception, + var exception, result = "element tag unavailable"; try { - t1 = element.tagName; - t1.toString; - result = t1; + result = element.tagName; } catch (exception) { } return result; }, EventSource__factoryEventSource(url, eventSourceInitDict) { var t1 = new EventSource(url, A.convertDartToNative_Dictionary(eventSourceInitDict)); - t1.toString; return t1; }, HttpRequest_request(url, method, responseType, withCredentials) { - var t3, t4, t5, + var t2, 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); + xhr = new XMLHttpRequest(); + B.HttpRequest_methods.open$3$async(xhr, method, url, true); if (withCredentials != null) - B.HttpRequest_methods.set$withCredentials(t2, withCredentials); + B.HttpRequest_methods.set$withCredentials(xhr, withCredentials); if (responseType != null) - t2.responseType = responseType; - t3 = type$.nullable_void_Function_ProgressEvent; - t4 = t3._as(new A.HttpRequest_request_closure(t2, completer)); + xhr.responseType = responseType; + t2 = type$.nullable_void_Function_ProgressEvent; + t3 = t2._as(new A.HttpRequest_request_closure(xhr, completer)); type$.nullable_void_Function._as(null); - t5 = type$.ProgressEvent; - A._EventStreamSubscription$(t2, "load", t4, false, t5); - A._EventStreamSubscription$(t2, "error", t3._as(completer.get$completeError()), false, t5); - t2.send(); + t4 = type$.ProgressEvent; + A._EventStreamSubscription$(xhr, "load", t3, false, t4); + A._EventStreamSubscription$(xhr, "error", t2._as(completer.get$completeError()), false, t4); + xhr.send(); return t1; }, ScriptElement___new_tearOff() { - var t1 = document.createElement("script"); - t1.toString; - return t1; + return document.createElement("script"); }, WebSocket_WebSocket(url, protocols) { - var t1 = new WebSocket(url); - t1.toString; - return t1; + return new WebSocket(url); }, _EventStreamSubscription$(_target, _eventType, onData, _useCapture, $T) { var t1 = onData == null ? null : A._wrapZone(new A._EventStreamSubscription_closure(onData), type$.Event); @@ -6941,9 +6931,8 @@ return t1; }, _Html5NodeValidator$(uriPolicy) { - var t1 = document.createElement("a"); - t1.toString; - t1 = new A._SameOriginUriPolicy(t1, type$.Location._as(window.location)); + var e = document.createElement("a"), + t1 = new A._SameOriginUriPolicy(e, type$.Location._as(window.location)); t1 = new A._Html5NodeValidator(t1); t1._Html5NodeValidator$1$uriPolicy(uriPolicy); return t1; @@ -6956,7 +6945,7 @@ return true; }, _Html5NodeValidator__uriAttributeValidator(element, attributeName, value, context) { - var t1, t2, t3, t4, t5; + var t1, t2, t3; type$.Element._as(element); A._asString(attributeName); A._asString(value); @@ -6965,20 +6954,7 @@ 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 == t1.hostname && t2.port === t1.port && t2.protocol === t1.protocol)) if (t3 === "") if (t2.port === "") { t1 = t2.protocol; @@ -7006,9 +6982,7 @@ return new A._AcceptStructuredCloneDart2Js([], []).convertNativeToDart_AcceptStructuredClone$2$mustCopy(o, true); }, _DOMWindowCrossFrame__createSafe(w) { - var t1 = window; - t1.toString; - if (w === t1) + if (w === window) return type$.WindowBase._as(w); else return new A._DOMWindowCrossFrame(); @@ -7391,41 +7365,30 @@ __StyleSheetList_JavaScriptObject_ListMixin_ImmutableListMixin: function __StyleSheetList_JavaScriptObject_ListMixin_ImmutableListMixin() { }, _convertNativeToDart_Value(value) { - var t1, values, i; + var 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) { + if (Array.isArray(value)) { values = []; - i = 0; - while (true) { - t1 = value.length; - t1.toString; - if (!(i < t1)) - break; + for (i = 0; i < value.length; ++i) values.push(A._convertNativeToDart_Value(value[i])); - ++i; - } return values; } return value; }, convertNativeToDart_Dictionary(object) { - var dict, keys, t1, _i, key, t2; + var dict, keys, t1, _i, key; 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])); + dict.$indexSet(0, key, A._convertNativeToDart_Value(object[key])); } return dict; }, @@ -7450,15 +7413,8 @@ return object; }, 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; + var proto = Object.getPrototypeOf(value); + return proto === Object.prototype || proto === null; }, _StructuredClone: function _StructuredClone() { }, @@ -8819,9 +8775,7 @@ 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))); }, _listenForDebugExtensionAuthRequest() { - var t1 = window; - t1.toString; - B.Window_methods.addEventListener$2(t1, "message", A.allowInterop(new A._listenForDebugExtensionAuthRequest_closure(), type$.dynamic_Function_Event)); + B.Window_methods.addEventListener$2(window, "message", A.allowInterop(new A._listenForDebugExtensionAuthRequest_closure(), type$.dynamic_Function_Event)); }, _authenticateUser(authUrl) { var $async$goto = 0, @@ -8851,10 +8805,8 @@ 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")); + var authUrl, + extensionUrl = A._asStringQ(A.JsObject_JsObject$fromBrowserObject(window).$index(0, "$dartExtensionUri")); if (extensionUrl == null) return null; authUrl = A.Uri_parse(extensionUrl).replace$1$path(0, "$dwdsExtensionAuthentication"); @@ -8998,15 +8950,12 @@ this.stackTrace = t1; }, _findNonce() { - var t2, elements, t3, t4, nonceValue, - t1 = window.document; - t1.toString; - t2 = type$.Element; + var elements, t3, t4, nonceValue, + t1 = window.document, + 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); + elements = new A._FrozenElementList(t1.querySelectorAll("script"), t2); for (t1 = new A.ListIterator(elements, elements.get$length(elements), t2._eval$1("ListIterator")), t3 = type$.HtmlElement, t2 = t2._eval$1("ListMixin.E"); t1.moveNext$0();) { t4 = t1.__internal$_current; t4 = t3._as(t4 == null ? t2._as(t4) : t4); @@ -9027,7 +8976,7 @@ var scriptElement = $.$get$_createScript().call$0(), t1 = J.getInterceptor$x(scriptElement); t1.setInnerHtml$1(scriptElement, "window.$dartRunMain();"); - document.body.appendChild(scriptElement).toString; + document.body.appendChild(scriptElement); A.Future_Future$microtask(t1.get$remove(scriptElement), type$.void); }, _createScript_closure: function _createScript_closure() { @@ -16769,17 +16718,13 @@ receiver.href = value; }, toString$0(receiver) { - var t1 = String(receiver); - t1.toString; - return t1; + return String(receiver); }, $isAnchorElement: 1 }; A.AreaElement.prototype = { toString$0(receiver) { - var t1 = String(receiver); - t1.toString; - return t1; + return String(receiver); } }; A.BaseElement.prototype = {$isBaseElement: 1}; @@ -16799,9 +16744,7 @@ A.CssRule.prototype = {$isCssRule: 1}; A.CssStyleDeclaration.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; } }; A.CssStyleDeclarationBase.prototype = {}; @@ -16831,45 +16774,31 @@ A.Document.prototype = {$isDocument: 1}; A.DomException.prototype = { toString$0(receiver) { - var t1 = String(receiver); - t1.toString; - return t1; + return String(receiver); } }; A.DomImplementation.prototype = { createHtmlDocument$1(receiver, title) { - var t1 = receiver.createHTMLDocument(title); - t1.toString; - return t1; + return receiver.createHTMLDocument(title); } }; A.DomRectList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -16944,31 +16873,21 @@ }; A.DomStringList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -16983,9 +16902,7 @@ }; A.DomTokenList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; } }; A._FrozenElementList.prototype = { @@ -17015,9 +16932,7 @@ return new A._ElementAttributeMap(receiver); }, toString$0(receiver) { - var t1 = receiver.localName; - t1.toString; - return t1; + return receiver.localName; }, createFragment$3$treeSanitizer$validator(receiver, html, treeSanitizer, validator) { var t1, t2, contextElement, fragment; @@ -17050,15 +16965,13 @@ t2.toString; t2 = B.DomImplementation_methods.createHtmlDocument$1(t2, ""); $.Element__parseDocument = t2; - t2 = t2.createRange(); - t2.toString; - $.Element__parseRange = t2; + $.Element__parseRange = t2.createRange(); t2 = $.Element__parseDocument.createElement("base"); type$.BaseElement._as(t2); t1 = t1.baseURI; t1.toString; t2.href = t1; - $.Element__parseDocument.head.appendChild(t2).toString; + $.Element__parseDocument.head.appendChild(t2); } t1 = $.Element__parseDocument; if (t1.body == null) { @@ -17072,37 +16985,23 @@ contextElement = t1; } else { t1.toString; - t2 = receiver.tagName; - t2.toString; - contextElement = t1.createElement(t2); - $.Element__parseDocument.body.appendChild(contextElement).toString; + contextElement = t1.createElement(receiver.tagName); + $.Element__parseDocument.body.appendChild(contextElement); } - t1 = "createContextualFragment" in window.Range.prototype; - t1.toString; - if (t1) { - t1 = receiver.tagName; - t1.toString; - t1 = !B.JSArray_methods.contains$1(B.List_ME0, t1); - } else - t1 = false; - if (t1) { + if ("createContextualFragment" in window.Range.prototype && !B.JSArray_methods.contains$1(B.List_ME0, receiver.tagName)) { $.Element__parseRange.selectNodeContents(contextElement); t1 = $.Element__parseRange; - t1 = t1.createContextualFragment(html); - t1.toString; - fragment = t1; + fragment = t1.createContextualFragment(html); } 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; + fragment = $.Element__parseDocument.createDocumentFragment(); + for (; t1 = contextElement.firstChild, t1 != null;) + fragment.appendChild(t1); } if (contextElement !== $.Element__parseDocument.body) J.remove$0$x(contextElement); treeSanitizer.sanitizeTree$1(fragment); - document.adoptNode(fragment).toString; + document.adoptNode(fragment); return fragment; }, createFragment$2$treeSanitizer($receiver, html, treeSanitizer) { @@ -17110,7 +17009,7 @@ }, setInnerHtml$1(receiver, html) { this.set$text(receiver, null); - receiver.appendChild(this.createFragment$3$treeSanitizer$validator(receiver, html, null, null)).toString; + receiver.appendChild(this.createFragment$3$treeSanitizer$validator(receiver, html, null, null)); }, set$_innerHtml(receiver, value) { receiver.innerHTML = value; @@ -17145,31 +17044,21 @@ A.File.prototype = {$isFile: 1}; A.FileList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -17196,38 +17085,26 @@ A.Gamepad.prototype = {$isGamepad: 1}; A.History.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; } }; A.HtmlCollection.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -17277,24 +17154,12 @@ 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; + if ("origin" in receiver) + return receiver.origin; + return receiver.protocol + "//" + receiver.host; }, toString$0(receiver) { - var t1 = String(receiver); - t1.toString; - return t1; + return String(receiver); }, $isLocation: 1 }; @@ -17313,18 +17178,14 @@ return A.convertNativeToDart_Dictionary(receiver.get(A._asString(key))); }, forEach$1(receiver, f) { - var entries, entry, t1; + var entries, entry; type$.void_Function_String_dynamic._as(f); entries = receiver.entries(); for (; true;) { entry = entries.next(); - t1 = entry.done; - t1.toString; - if (t1) + if (entry.done) return; - t1 = entry.value[0]; - t1.toString; - f.call$2(t1, A.convertNativeToDart_Dictionary(entry.value[1])); + f.call$2(entry.value[0], A.convertNativeToDart_Dictionary(entry.value[1])); } }, get$keys(receiver) { @@ -17333,14 +17194,10 @@ return keys; }, get$length(receiver) { - var t1 = receiver.size; - t1.toString; - return t1; + return receiver.size; }, get$isEmpty(receiver) { - var t1 = receiver.size; - t1.toString; - return t1 === 0; + return receiver.size === 0; }, $indexSet(receiver, key, value) { A._asString(key); @@ -17362,18 +17219,14 @@ return A.convertNativeToDart_Dictionary(receiver.get(A._asString(key))); }, forEach$1(receiver, f) { - var entries, entry, t1; + var entries, entry; type$.void_Function_String_dynamic._as(f); entries = receiver.entries(); for (; true;) { entry = entries.next(); - t1 = entry.done; - t1.toString; - if (t1) + if (entry.done) return; - t1 = entry.value[0]; - t1.toString; - f.call$2(t1, A.convertNativeToDart_Dictionary(entry.value[1])); + f.call$2(entry.value[0], A.convertNativeToDart_Dictionary(entry.value[1])); } }, get$keys(receiver) { @@ -17382,14 +17235,10 @@ return keys; }, get$length(receiver) { - var t1 = receiver.size; - t1.toString; - return t1; + return receiver.size; }, get$isEmpty(receiver) { - var t1 = receiver.size; - t1.toString; - return t1 === 0; + return receiver.size === 0; }, $indexSet(receiver, key, value) { A._asString(key); @@ -17406,31 +17255,21 @@ A.MimeType.prototype = {$isMimeType: 1}; A.MimeTypeArray.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -17471,12 +17310,12 @@ for (len = t1.childNodes.length, i = 0; i < len; ++i) { t3 = t1.firstChild; t3.toString; - t2.appendChild(t3).toString; + t2.appendChild(t3); } return; } for (t1 = iterable.get$iterator(iterable), t2 = this._this; t1.moveNext$0();) - t2.appendChild(t1.get$current(t1)).toString; + t2.appendChild(t1.get$current(t1)); }, $indexSet(_, index, value) { var t1, t2; @@ -17485,7 +17324,7 @@ t2 = t1.childNodes; if (!(index >= 0 && index < t2.length)) return A.ioore(t2, index); - t1.replaceChild(value, t2[index]).toString; + t1.replaceChild(value, t2[index]); }, get$iterator(_) { var t1 = this._this.childNodes; @@ -17509,12 +17348,12 @@ remove$0(receiver) { var t1 = receiver.parentNode; if (t1 != null) - t1.removeChild(receiver).toString; + t1.removeChild(receiver); }, _clearChildren$0(receiver) { var t1; for (; t1 = receiver.firstChild, t1 != null;) - receiver.removeChild(t1).toString; + receiver.removeChild(t1); }, toString$0(receiver) { var value = receiver.nodeValue; @@ -17527,31 +17366,21 @@ }; A.NodeList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -17572,31 +17401,21 @@ }; A.PluginArray.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -17618,18 +17437,14 @@ return A.convertNativeToDart_Dictionary(receiver.get(A._asString(key))); }, forEach$1(receiver, f) { - var entries, entry, t1; + var entries, entry; type$.void_Function_String_dynamic._as(f); entries = receiver.entries(); for (; true;) { entry = entries.next(); - t1 = entry.done; - t1.toString; - if (t1) + if (entry.done) return; - t1 = entry.value[0]; - t1.toString; - f.call$2(t1, A.convertNativeToDart_Dictionary(entry.value[1])); + f.call$2(entry.value[0], A.convertNativeToDart_Dictionary(entry.value[1])); } }, get$keys(receiver) { @@ -17638,14 +17453,10 @@ return keys; }, get$length(receiver) { - var t1 = receiver.size; - t1.toString; - return t1; + return receiver.size; }, get$isEmpty(receiver) { - var t1 = receiver.size; - t1.toString; - return t1 === 0; + return receiver.size === 0; }, $indexSet(receiver, key, value) { A._asString(key); @@ -17669,31 +17480,21 @@ A.SourceBuffer.prototype = {$isSourceBuffer: 1}; A.SourceBufferList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $indexSet(receiver, index, value) { type$.SourceBuffer._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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -17709,31 +17510,21 @@ A.SpeechGrammar.prototype = {$isSpeechGrammar: 1}; A.SpeechGrammarList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $indexSet(receiver, index, value) { type$.SpeechGrammar._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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -17780,9 +17571,7 @@ return keys; }, get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, get$isEmpty(receiver) { return receiver.key(0) == null; @@ -17798,51 +17587,38 @@ 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) + var table, fragment; + if ("createContextualFragment" in window.Range.prototype) 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; + fragment = document.createDocumentFragment(); + new A._ChildNodeListLazy(fragment).addAll$1(0, new A._ChildNodeListLazy(table)); + return fragment; } }; A.TableRowElement.prototype = { createFragment$3$treeSanitizer$validator(receiver, html, treeSanitizer, validator) { - var t2, - t1 = "createContextualFragment" in window.Range.prototype; - t1.toString; - if (t1) + var t1, fragment; + if ("createContextualFragment" in window.Range.prototype) return this.super$Element$createFragment(receiver, html, treeSanitizer, validator); t1 = document; - t2 = t1.createDocumentFragment(); - t2.toString; - t1 = t1.createElement("table"); - t1.toString; - t1 = new A._ChildNodeListLazy(B.TableElement_methods.createFragment$3$treeSanitizer$validator(t1, html, treeSanitizer, validator)); + fragment = t1.createDocumentFragment(); + t1 = new A._ChildNodeListLazy(B.TableElement_methods.createFragment$3$treeSanitizer$validator(t1.createElement("table"), html, treeSanitizer, validator)); t1 = new A._ChildNodeListLazy(t1.get$single(t1)); - new A._ChildNodeListLazy(t2).addAll$1(0, new A._ChildNodeListLazy(t1.get$single(t1))); - return t2; + new A._ChildNodeListLazy(fragment).addAll$1(0, new A._ChildNodeListLazy(t1.get$single(t1))); + return fragment; } }; A.TableSectionElement.prototype = { createFragment$3$treeSanitizer$validator(receiver, html, treeSanitizer, validator) { - var t2, - t1 = "createContextualFragment" in window.Range.prototype; - t1.toString; - if (t1) + var t1, fragment; + if ("createContextualFragment" in window.Range.prototype) return this.super$Element$createFragment(receiver, html, treeSanitizer, validator); t1 = document; - t2 = t1.createDocumentFragment(); - t2.toString; - t1 = t1.createElement("table"); - t1.toString; - t1 = new A._ChildNodeListLazy(B.TableElement_methods.createFragment$3$treeSanitizer$validator(t1, html, treeSanitizer, validator)); - new A._ChildNodeListLazy(t2).addAll$1(0, new A._ChildNodeListLazy(t1.get$single(t1))); - return t2; + fragment = t1.createDocumentFragment(); + t1 = new A._ChildNodeListLazy(B.TableElement_methods.createFragment$3$treeSanitizer$validator(t1.createElement("table"), html, treeSanitizer, validator)); + new A._ChildNodeListLazy(fragment).addAll$1(0, new A._ChildNodeListLazy(t1.get$single(t1))); + return fragment; } }; A.TemplateElement.prototype = { @@ -17853,7 +17629,7 @@ t1.toString; J._clearChildren$0$x(t1); fragment = this.createFragment$3$treeSanitizer$validator(receiver, html, null, null); - receiver.content.appendChild(fragment).toString; + receiver.content.appendChild(fragment); }, $isTemplateElement: 1 }; @@ -17861,31 +17637,21 @@ A.TextTrackCue.prototype = {$isTextTrackCue: 1}; A.TextTrackCueList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $indexSet(receiver, index, value) { type$.TextTrackCue._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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -17900,31 +17666,21 @@ }; A.TextTrackList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $indexSet(receiver, index, value) { type$.TextTrack._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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -17939,39 +17695,27 @@ }; A.TimeRanges.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; } }; A.Touch.prototype = {$isTouch: 1}; A.TouchList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $indexSet(receiver, index, value) { type$.Touch._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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -17992,9 +17736,7 @@ A.UIEvent.prototype = {}; A.Url.prototype = { toString$0(receiver) { - var t1 = String(receiver); - t1.toString; - return t1; + return String(receiver); } }; A.VideoTrackList.prototype = { @@ -18020,9 +17762,7 @@ return receiver.alert(message); }, confirm$1(receiver, message) { - var t1 = receiver.confirm(message); - t1.toString; - return t1; + return receiver.confirm(message); }, $isWindow: 1, $isWindowBase: 1 @@ -18031,31 +17771,21 @@ A._Attr.prototype = {$is_Attr: 1}; A._CssRuleList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -18145,15 +17875,11 @@ }; A._GamepadList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); return receiver[index]; }, @@ -18178,31 +17904,21 @@ }; A._NamedNodeMap.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -18217,31 +17933,21 @@ }; A._SpeechRecognitionResultList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $indexSet(receiver, index, value) { type$.SpeechRecognitionResult._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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -18256,31 +17962,21 @@ }; A._StyleSheetList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length, - t2 = index >>> 0 !== index || index >= t1; - t2.toString; - if (t2) + var t1 = receiver.length; + if (index >>> 0 !== index || index >= t1) throw A.wrapException(A.IndexError$withLength(index, t1, receiver, null, null)); - t1 = receiver[index]; - t1.toString; - return t1; + return receiver[index]; }, $indexSet(receiver, index, value) { type$.StyleSheet._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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -18331,7 +18027,6 @@ A._ElementAttributeMap.prototype = { containsKey$1(_, key) { var t1 = this._element.hasAttribute(key); - t1.toString; return t1; }, $index(_, key) { @@ -18604,17 +18299,17 @@ if ($parent == null || $parent !== node.parentNode) J.remove$0$x(node); else - $parent.removeChild(node).toString; + $parent.removeChild(node); }, _sanitizeUntrustedElement$2(element, $parent) { - var corruptedTest1, elementText, elementTagName, t1, corrupted0, exception, t2, + var corruptedTest1, elementText, elementTagName, exception, t1, 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) { + corruptedTest1 = 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") @@ -18635,16 +18330,7 @@ } 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; + corrupted = A.boolConversionCheck(corruptedTest1) ? true : !(element.attributes instanceof NamedNodeMap); } catch (exception) { } elementText = "element unprintable"; @@ -18660,43 +18346,35 @@ throw exception; else { this._removeNode$2(element, $parent); - window.toString; + window; t1 = A.S(elementText); - t2 = typeof console != "undefined"; - t2.toString; - if (t2) + if (typeof console != "undefined") window.console.warn("Removing corrupted element " + t1); } } }, _sanitizeElement$7(element, $parent, corrupted, text, tag, attrs, isAttr) { - var t1, t2, keys, i, $name, t3, t4, _this = this; + var t1, keys, i, t2, $name, t3, t4, _this = this; if (corrupted) { _this._removeNode$2(element, $parent); - window.toString; - t1 = typeof console != "undefined"; - t1.toString; - if (t1) + window; + if (typeof console != "undefined") 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; + window; t1 = A.S($parent); - t2 = typeof console != "undefined"; - t2.toString; - if (t2) + if (typeof console != "undefined") 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; + if (typeof console != "undefined") window.console.warn("Removing disallowed type extension <" + tag + ' is="' + isAttr + '">'); return; } @@ -18710,11 +18388,9 @@ t4 = J.toLowerCase$0$s($name); A._asString($name); if (!t3.allowsAttribute$3(element, t4, A._asString(t1.getAttribute($name)))) { - window.toString; + window; t3 = t1.getAttribute($name); - t4 = typeof console != "undefined"; - t4.toString; - if (t4) + if (typeof console != "undefined") window.console.warn(t2 + $name + '="' + A.S(t3) + '">'); t1.removeAttribute($name); } @@ -18729,11 +18405,9 @@ }; A._ValidatingTreeSanitizer_sanitizeTree_walk.prototype = { call$2(node, $parent) { - var child, nextChild, t3, t4, exception, - t1 = this.$this, - t2 = node.nodeType; - t2.toString; - switch (t2) { + var child, nextChild, t2, t3, t4, exception, + t1 = this.$this; + switch (node.nodeType) { case 1: t1._sanitizeUntrustedElement$2(node, $parent); break; @@ -18767,9 +18441,9 @@ t4 = t3.parentNode; if (node !== t4) { if (t4 != null) - t4.removeChild(t3).toString; + t4.removeChild(t3); } else - node.removeChild(t3).toString; + node.removeChild(t3); child = null; nextChild = node.lastChild; } @@ -18832,7 +18506,7 @@ return $length; }, walk$1(e) { - var slot, t2, copy, t3, _this = this, t1 = {}; + var slot, t2, copy, _this = this, t1 = {}; if (e == null) return e; if (A._isBool(e)) @@ -18887,10 +18561,9 @@ copy = t1.copy = t2[slot]; if (copy != null) return copy; - t3 = {}; - t3.toString; - t1.copy = t3; - B.JSArray_methods.$indexSet(t2, slot, t3); + copy = {}; + t1.copy = copy; + B.JSArray_methods.$indexSet(t2, slot, copy); _this.forEachObjectKey$2(e, new A._StructuredClone_walk_closure0(t1, _this)); return t1.copy; } @@ -18900,12 +18573,11 @@ 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); + copy = new Array($length); + B.JSArray_methods.$indexSet(this.copies, slot, copy); for (i = 0; i < $length; ++i) - B.JSArray_methods.$indexSet(t2, i, this.walk$1(t1.$index(e, i))); - return t2; + B.JSArray_methods.$indexSet(copy, i, this.walk$1(t1.$index(e, i))); + return copy; } }; A._StructuredClone_walk_closure.prototype = { @@ -18933,7 +18605,7 @@ return $length; }, walk$1(e) { - var t1, slot, copy, t2, map, t3, $length, t4, i, _this = this; + var slot, t1, copy, t2, map, l, $length, i, _this = this; if (e == null) return e; if (A._isBool(e)) @@ -18942,20 +18614,11 @@ 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) + if (e instanceof Date) + return A.DateTime$fromMillisecondsSinceEpoch(e.getTime(), true); + if (e instanceof RegExp) throw A.wrapException(A.UnimplementedError$("structured clone of RegExp")); - t1 = typeof Promise != "undefined" && e instanceof Promise; - t1.toString; - if (t1) + if (typeof Promise != "undefined" && e instanceof Promise) return A.promiseToFuture(e, type$.dynamic); if (A.isJavaScriptSimpleObject(e)) { slot = _this.findSlot$1(e); @@ -18971,29 +18634,21 @@ _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 (e instanceof Array) { + l = e; + slot = _this.findSlot$1(l); + t1 = _this.copies; + if (!(slot < t1.length)) + return A.ioore(t1, slot); + copy = t1[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; - } 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))); + t2 = J.getInterceptor$asx(l); + $length = t2.get$length(l); + copy = _this.mustCopy ? new Array($length) : l; + B.JSArray_methods.$indexSet(t1, slot, copy); + for (t1 = J.getInterceptor$ax(copy), i = 0; i < $length; ++i) + t1.$indexSet(copy, i, _this.walk$1(t2.$index(l, i))); return copy; } return e; @@ -19027,7 +18682,7 @@ 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) { + for (t1 = Object.keys(object), t2 = t1.length, _i = 0; _i < t2; ++_i) { key = t1[_i]; action.call$2(key, object[key]); } @@ -19284,33 +18939,20 @@ A.Length.prototype = {$isLength: 1}; A.LengthList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length; - t1.toString; - t1 = index >>> 0 !== index || index >= t1; - t1.toString; - if (t1) + if (index >>> 0 !== index || index >= receiver.length) throw A.wrapException(A.IndexError$withLength(index, this.get$length(receiver), receiver, null, null)); - t1 = receiver.getItem(index); - t1.toString; - return t1; + return receiver.getItem(index); }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -19323,33 +18965,20 @@ A.Number.prototype = {$isNumber: 1}; A.NumberList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length; - t1.toString; - t1 = index >>> 0 !== index || index >= t1; - t1.toString; - if (t1) + if (index >>> 0 !== index || index >= receiver.length) throw A.wrapException(A.IndexError$withLength(index, this.get$length(receiver), receiver, null, null)); - t1 = receiver.getItem(index); - t1.toString; - return t1; + return receiver.getItem(index); }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -19367,33 +18996,20 @@ A.ScriptElement0.prototype = {$isScriptElement0: 1}; A.StringList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length; - t1.toString; - t1 = index >>> 0 !== index || index >= t1; - t1.toString; - if (t1) + if (index >>> 0 !== index || index >= receiver.length) throw A.wrapException(A.IndexError$withLength(index, this.get$length(receiver), receiver, null, null)); - t1 = receiver.getItem(index); - t1.toString; - return t1; + return receiver.getItem(index); }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -19405,7 +19021,7 @@ }; A.SvgElement.prototype = { createFragment$3$treeSanitizer$validator(receiver, svg, treeSanitizer, validator) { - var t2, fragment, root, + var t2, fragment, svgFragment, root, t1 = A._setArrayType([], type$.JSArray_NodeValidator); B.JSArray_methods.add$1(t1, A._Html5NodeValidator$(null)); B.JSArray_methods.add$1(t1, A._TemplatingNodeValidator$()); @@ -19415,46 +19031,32 @@ t2 = t1.body; t2.toString; fragment = B.BodyElement_methods.createFragment$2$treeSanitizer(t2, '' + svg + "", treeSanitizer); - t1 = t1.createDocumentFragment(); - t1.toString; - t2 = new A._ChildNodeListLazy(fragment); - root = t2.get$single(t2); - for (; t2 = root.firstChild, t2 != null;) - t1.appendChild(t2).toString; - return t1; + svgFragment = t1.createDocumentFragment(); + t1 = new A._ChildNodeListLazy(fragment); + root = t1.get$single(t1); + for (; t1 = root.firstChild, t1 != null;) + svgFragment.appendChild(t1); + return svgFragment; }, $isSvgElement: 1 }; A.Transform.prototype = {$isTransform: 1}; A.TransformList.prototype = { get$length(receiver) { - var t1 = receiver.length; - t1.toString; - return t1; + return receiver.length; }, $index(receiver, index) { - var t1 = receiver.length; - t1.toString; - t1 = index >>> 0 !== index || index >= t1; - t1.toString; - if (t1) + if (index >>> 0 !== index || index >= receiver.length) throw A.wrapException(A.IndexError$withLength(index, this.get$length(receiver), receiver, null, null)); - t1 = receiver.getItem(index); - t1.toString; - return t1; + return receiver.getItem(index); }, $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; - } + if (receiver.length > 0) + return receiver[0]; throw A.wrapException(A.StateError$("No elements")); }, elementAt$1(receiver, index) { @@ -19485,18 +19087,14 @@ return A.convertNativeToDart_Dictionary(receiver.get(A._asString(key))); }, forEach$1(receiver, f) { - var entries, entry, t1; + var entries, entry; type$.void_Function_String_dynamic._as(f); entries = receiver.entries(); for (; true;) { entry = entries.next(); - t1 = entry.done; - t1.toString; - if (t1) + if (entry.done) return; - t1 = entry.value[0]; - t1.toString; - f.call$2(t1, A.convertNativeToDart_Dictionary(entry.value[1])); + f.call$2(entry.value[0], A.convertNativeToDart_Dictionary(entry.value[1])); } }, get$keys(receiver) { @@ -19505,14 +19103,10 @@ return keys; }, get$length(receiver) { - var t1 = receiver.size; - t1.toString; - return t1; + return receiver.size; }, get$isEmpty(receiver) { - var t1 = receiver.size; - t1.toString; - return t1 === 0; + return receiver.size === 0; }, $indexSet(receiver, key, value) { A._asString(key); @@ -25043,7 +24637,6 @@ t1 = _this.__HtmlWebSocketChannel__readyCompleter_A = new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_void), type$._AsyncCompleter_void), t2 = _this.innerWebSocket, t3 = t2.readyState; - t3.toString; if (t3 === 1) { t1.complete$0(0); _this._listen$0(); @@ -25148,7 +24741,7 @@ call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), - uri, t1, t2, fixedPath, fixedUri, client, restarter, manager, t3, debugEventController, t4, t5; + uri, t1, fixedPath, fixedUri, client, restarter, manager, t2, t3, debugEventController, t4, t5; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -25160,16 +24753,10 @@ self.$dartAppInstanceId = B.C_Uuid.v1$0(); uri = A.Uri_parse(self.$dwdsDevHandlerPath); t1 = type$.Location; - t2 = t1._as(window.location).protocol; - t2.toString; - if (t2 === "https:" && uri.get$scheme() === "http" && uri.get$host(uri) !== "localhost") + if (t1._as(window.location).protocol === "https:" && uri.get$scheme() === "http" && uri.get$host(uri) !== "localhost") uri = uri.replace$1$scheme(0, "https"); - else { - t1 = t1._as(window.location).protocol; - t1.toString; - if (t1 === "wss:" && uri.get$scheme() === "ws" && uri.get$host(uri) !== "localhost") - uri = uri.replace$1$scheme(0, "wss"); - } + else if (t1._as(window.location).protocol === "wss:" && uri.get$scheme() === "ws" && uri.get$host(uri) !== "localhost") + uri = uri.replace$1$scheme(0, "wss"); fixedPath = uri.toString$0(0); fixedUri = A.Uri_parse(fixedPath); client = fixedUri.isScheme$1("ws") || fixedUri.isScheme$1("wss") ? new A.WebSocketClient(A.HtmlWebSocketChannel$connect(fixedUri, null)) : new A.SseSocketClient(A.SseClient$(fixedPath, "InjectedClient")); @@ -25211,14 +24798,11 @@ client.get$stream(client).listen$2$onError(new A.main__closure4(manager), new A.main__closure5()); if (A.boolConversionCheck(self.$dwdsEnableDevtoolsLaunch)) { t1 = window; - t1.toString; t2 = type$.nullable_void_Function_KeyboardEvent._as(new A.main__closure6()); type$.nullable_void_Function._as(null); A._EventStreamSubscription$(t1, "keydown", t2, false, type$.KeyboardEvent); } - t1 = window.navigator.vendor; - t1.toString; - if (B.JSString_methods.contains$1(t1, "Google")) { + if (B.JSString_methods.contains$1(window.navigator.vendor, "Google")) { t1 = client.get$sink(); t2 = $.$get$serializers(); t3 = new A.ConnectRequestBuilder(); @@ -25311,13 +24895,9 @@ }; A.main__closure3.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 (!B.JSString_methods.contains$1(window.navigator.vendor, "Google")) { + B.Window_methods.alert$1(window, "Dart DevTools is only supported on Chromium based browsers."); return; } t1 = this.client.get$sink(); @@ -25345,7 +24925,7 @@ $call$body$main__closure(serialized) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), - $async$self = this, $alert, t1, t2, t3, $event; + $async$self = this, $alert, t1, t2, $event; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -25395,31 +24975,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) { - t1 = window; - t1.toString; - B.Window_methods.open$2(t1, "https://goo.gle/dart-debug-extension", "_blank"); - } else { - t1 = window; - t1.toString; - B.Window_methods.alert$1(t1, $alert); - } + if ($event.promptExtension && B.Window_methods.confirm$1(window, $alert)) + B.Window_methods.open$2(window, "https://goo.gle/dart-debug-extension", "_blank"); + else + B.Window_methods.alert$1(window, $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) + if (typeof console != "undefined") window.console.error("Error from backend:\n\nError: " + t1 + "\n\nStack Trace:\n" + t2); } case 3: @@ -25439,27 +25005,7 @@ }; A.main__closure6.prototype = { call$1(e) { - var t1; - if (type$.KeyboardEvent._is(e)) - if (B.JSArray_methods.contains$1(B.List_er0, 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 (type$.KeyboardEvent._is(e) && B.JSArray_methods.contains$1(B.List_er0, e.key) && e.altKey && !e.ctrlKey && !e.metaKey) { e.preventDefault(); self.$launchDevTools.call$0(); } @@ -25491,9 +25037,7 @@ 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")); + t1 = A._asStringQ(A.JsObject_JsObject$fromBrowserObject(window).$index(0, "$dartAppId")); b.get$_$this()._debug_info$_appId = t1; t1 = A._asStringQ(self.$dartAppInstanceId); b.get$_$this()._appInstanceId = t1; @@ -25501,21 +25045,14 @@ 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")); + t1 = A._asStringQ(A.JsObject_JsObject$fromBrowserObject(window).$index(0, "$dartExtensionUri")); b.get$_$this()._extensionUrl = t1; - t1 = window; - t1.toString; - t1 = A._asBoolQ(A.JsObject_JsObject$fromBrowserObject(t1).$index(0, "$isInternalBuild")); + t1 = A._asBoolQ(A.JsObject_JsObject$fromBrowserObject(window).$index(0, "$isInternalBuild")); b.get$_$this()._isInternalBuild = t1; - t1 = window; - t1.toString; - t1 = A._asBoolQ(A.JsObject_JsObject$fromBrowserObject(t1).$index(0, "$isFlutterApp")); + t1 = A._asBoolQ(A.JsObject_JsObject$fromBrowserObject(window).$index(0, "$isFlutterApp")); b.get$_$this()._isFlutterApp = t1; return b; }, @@ -25595,7 +25132,6 @@ } t1 = new A._Future($.Zone__current, type$._Future_bool); t2 = window; - t2.toString; t3 = type$.nullable_void_Function_MessageEvent._as(new A.LegacyRestarter_restart_closure(new A._AsyncCompleter(t1, type$._AsyncCompleter_bool))); type$.nullable_void_Function._as(null); $async$returnValue = t1.then$1$1(0, new A.LegacyRestarter_restart_closure0(A._EventStreamSubscription$(t2, "message", t3, false, type$.MessageEvent)), type$.bool);