/var/www/cobraambalaj/node_modules/sass
Edit: /var/www/cobraambalaj/node_modules/sass/sass.dart.js (3958098B)
// make sure to keep this as 'var'
// we don't want block scoping
var dartNodePreambleSelf = typeof global !== "undefined" ? global : window;
var self = Object.create(dartNodePreambleSelf);
self.scheduleImmediate = typeof setImmediate !== "undefined"
? function (cb) {
setImmediate(cb);
}
: function(cb) {
setTimeout(cb, 0);
};
// CommonJS globals.
self.exports = exports;
// Node.js specific exports, check to see if they exist & or polyfilled
if (typeof process !== "undefined") {
self.process = process;
}
if (typeof __dirname !== "undefined") {
self.__dirname = __dirname;
}
if (typeof __filename !== "undefined") {
self.__filename = __filename;
}
if (typeof Buffer !== "undefined") {
self.Buffer = Buffer;
}
// if we're running in a browser, Dart supports most of this out of box
// make sure we only run these in Node.js environment
var dartNodeIsActuallyNode = !dartNodePreambleSelf.window
try {
// Check if we're in a Web Worker instead.
if ("undefined" !== typeof WorkerGlobalScope && dartNodePreambleSelf instanceof WorkerGlobalScope) {
dartNodeIsActuallyNode = false;
}
// Check if we're in Electron, with Node.js integration, and override if true.
if ("undefined" !== typeof process && process.versions && process.versions.hasOwnProperty('electron') && process.versions.hasOwnProperty('node')) {
dartNodeIsActuallyNode = true;
}
} catch(e) {}
if (dartNodeIsActuallyNode) {
// This line is to:
// 1) Prevent Webpack from bundling.
// 2) In Webpack on Node.js, make sure we're using the native Node.js require, which is available via __non_webpack_require__
// https://github.com/mbullington/node_preamble.dart/issues/18#issuecomment-527305561
var url = ("undefined" !== typeof __webpack_require__ ? __non_webpack_require__ : require)("url");
self.location = {
get href() {
if (url.pathToFileURL) {
return url.pathToFileURL(process.cwd()).href + "/";
} else {
// This isn't really a correct transformation, but it's the best we have
// for versions of Node <10.12.0 which introduced `url.pathToFileURL()`.
// For example, it will fail for paths that contain characters that need
// to be escaped in URLs.
return "file://" + (function() {
var cwd = process.cwd();
if (process.platform != "win32") return cwd;
return "/" + cwd.replace(/\\/g, "/");
})() + "/"
}
}
};
(function() {
function computeCurrentScript() {
try {
throw new Error();
} catch(e) {
var stack = e.stack;
var re = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg");
var lastMatch = null;
do {
var match = re.exec(stack);
if (match != null) lastMatch = match;
} while (match != null);
return lastMatch[1];
}
}
var cachedCurrentScript = null;
self.document = {
get currentScript() {
if (cachedCurrentScript == null) {
cachedCurrentScript = {src: computeCurrentScript()};
}
return cachedCurrentScript;
}
};
})();
self.dartDeferredLibraryLoader = function(uri, successCallback, errorCallback) {
try {
load(uri);
successCallback();
} catch (error) {
errorCallback(error);
}
};
}
self.chokidar = require("chokidar");
self.readline = require("readline");
self.fs = require("fs");
// Generated by dart2js (fast startup emitter, strong, trust primitives, omit checks, lax runtime type), the Dart to JavaScript compiler version: 2.10.5.
// The code supports the following hooks:
// dartPrint(message):
// if this function is defined it is called instead of the Dart [print]
// method.
//
// dartMainRunner(main, args):
// if this function is defined, the Dart [main] method will not be invoked
// directly. Instead, a closure that will invoke [main], and its arguments
// [args] is passed to [dartMainRunner].
//
// dartDeferredLibraryLoader(uri, successCallback, errorCallback):
// if this function is defined, it will be called when a deferred library
// is loaded. It should load and eval the javascript of `uri`, and call
// successCallback. If it fails to do so, it should call errorCallback with
// an error.
//
// dartCallInstrumentation(id, qualifiedName):
// if this function is defined, it will be called at each entry of a
// method or constructor. Used only when compiling programs with
// --experiment-call-instrumentation.
(function dartProgram() {
function copyProperties(from, to) {
var keys = Object.keys(from);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
to[key] = from[key];
}
}
var supportsDirectProtoAccess = function() {
var cls = function() {
};
cls.prototype = {p: {}};
var object = new cls();
if (!(object.__proto__ && object.__proto__.p === cls.prototype.p))
return false;
try {
if (typeof navigator != "undefined" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome/") >= 0)
return true;
if (typeof version == "function" && version.length == 0) {
var v = version();
if (/^\d+\.\d+\.\d+\.\d+$/.test(v))
return true;
}
} catch (_) {
}
return false;
}();
function setFunctionNamesIfNecessary(holders) {
function t() {
}
;
if (typeof t.name == "string")
return;
for (var i = 0; i < holders.length; i++) {
var holder = holders[i];
var keys = Object.keys(holder);
for (var j = 0; j < keys.length; j++) {
var key = keys[j];
var f = holder[key];
if (typeof f == 'function')
f.name = key;
}
}
}
function inherit(cls, sup) {
cls.prototype.constructor = cls;
cls.prototype["$is" + cls.name] = cls;
if (sup != null) {
if (supportsDirectProtoAccess) {
cls.prototype.__proto__ = sup.prototype;
return;
}
var clsPrototype = Object.create(sup.prototype);
copyProperties(cls.prototype, clsPrototype);
cls.prototype = clsPrototype;
}
}
function inheritMany(sup, classes) {
for (var i = 0; i < classes.length; i++)
inherit(classes[i], sup);
}
function mixin(cls, mixin) {
copyProperties(mixin.prototype, cls.prototype);
cls.prototype.constructor = cls;
}
function lazyOld(holder, name, getterName, initializer) {
var uninitializedSentinel = holder;
holder[name] = uninitializedSentinel;
holder[getterName] = function() {
holder[getterName] = function() {
H.throwCyclicInit(name);
};
var result;
var sentinelInProgress = initializer;
try {
if (holder[name] === uninitializedSentinel) {
result = holder[name] = sentinelInProgress;
result = holder[name] = initializer();
} else
result = holder[name];
} finally {
if (result === sentinelInProgress)
holder[name] = null;
holder[getterName] = function() {
return this[name];
};
}
return result;
};
}
function lazy(holder, name, getterName, initializer) {
var uninitializedSentinel = holder;
holder[name] = uninitializedSentinel;
holder[getterName] = function() {
if (holder[name] === uninitializedSentinel)
holder[name] = initializer();
holder[getterName] = function() {
return this[name];
};
return holder[name];
};
}
function makeConstList(list) {
list.immutable$list = Array;
list.fixed$length = Array;
return list;
}
function convertToFastObject(properties) {
function t() {
}
t.prototype = properties;
new t();
return properties;
}
function convertAllToFastObject(arrayOfObjects) {
for (var i = 0; i < arrayOfObjects.length; ++i)
convertToFastObject(arrayOfObjects[i]);
}
var functionCounter = 0;
function tearOffGetter(funcs, applyTrampolineIndex, reflectionInfo, name, isIntercepted) {
return isIntercepted ? new Function("funcs", "applyTrampolineIndex", "reflectionInfo", "name", "H", "c", "return function tearOff_" + name + functionCounter++ + "(receiver) {" + "if (c === null) c = " + "H.closureFromTearOff" + "(" + "this, funcs, applyTrampolineIndex, reflectionInfo, false, true, name);" + "return new c(this, funcs[0], receiver, name);" + "}")(funcs, applyTrampolineIndex, reflectionInfo, name, H, null) : new Function("funcs", "applyTrampolineIndex", "reflectionInfo", "name", "H", "c", "return function tearOff_" + name + functionCounter++ + "() {" + "if (c === null) c = " + "H.closureFromTearOff" + "(" + "this, funcs, applyTrampolineIndex, reflectionInfo, false, false, name);" + "return new c(this, funcs[0], null, name);" + "}")(funcs, applyTrampolineIndex, reflectionInfo, name, H, null);
}
function tearOff(funcs, applyTrampolineIndex, reflectionInfo, isStatic, name, isIntercepted) {
var cache = null;
return isStatic ? function() {
if (cache === null)
cache = H.closureFromTearOff(this, funcs, applyTrampolineIndex, reflectionInfo, true, false, name).prototype;
return cache;
} : tearOffGetter(funcs, applyTrampolineIndex, reflectionInfo, name, isIntercepted);
}
var typesOffset = 0;
function installTearOff(container, getterName, isStatic, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
var funs = [];
for (var i = 0; i < funsOrNames.length; i++) {
var fun = funsOrNames[i];
if (typeof fun == 'string')
fun = container[fun];
fun.$callName = callNames[i];
funs.push(fun);
}
var fun = funs[0];
fun.$requiredArgCount = requiredParameterCount;
fun.$defaultValues = optionalParameterDefaultValues;
var reflectionInfo = funType;
if (typeof reflectionInfo == "number")
reflectionInfo += typesOffset;
var name = funsOrNames[0];
fun.$stubName = name;
var getterFunction = tearOff(funs, applyIndex || 0, reflectionInfo, isStatic, name, isIntercepted);
container[getterName] = getterFunction;
if (isStatic)
fun.$tearOff = getterFunction;
}
function installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
return installTearOff(container, getterName, true, false, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex);
}
function installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
return installTearOff(container, getterName, false, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex);
}
function setOrUpdateInterceptorsByTag(newTags) {
var tags = init.interceptorsByTag;
if (!tags) {
init.interceptorsByTag = newTags;
return;
}
copyProperties(newTags, tags);
}
function setOrUpdateLeafTags(newTags) {
var tags = init.leafTags;
if (!tags) {
init.leafTags = newTags;
return;
}
copyProperties(newTags, tags);
}
function updateTypes(newTypes) {
var types = init.types;
var length = types.length;
types.push.apply(types, newTypes);
return length;
}
function updateHolder(holder, newHolder) {
copyProperties(newHolder, holder);
return holder;
}
var hunkHelpers = function() {
var mkInstance = function(isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
return function(container, getterName, name, funType) {
return installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
};
},
mkStatic = function(requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
return function(container, getterName, name, funType) {
return installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
};
};
return {inherit: inherit, inheritMany: inheritMany, mixin: mixin, installStaticTearOff: installStaticTearOff, installInstanceTearOff: installInstanceTearOff, _instance_0u: mkInstance(0, 0, null, ["call$0"], 0), _instance_1u: mkInstance(0, 1, null, ["call$1"], 0), _instance_2u: mkInstance(0, 2, null, ["call$2"], 0), _instance_0i: mkInstance(1, 0, null, ["call$0"], 0), _instance_1i: mkInstance(1, 1, null, ["call$1"], 0), _instance_2i: mkInstance(1, 2, null, ["call$2"], 0), _static_0: mkStatic(0, null, ["call$0"], 0), _static_1: mkStatic(1, null, ["call$1"], 0), _static_2: mkStatic(2, null, ["call$2"], 0), makeConstList: makeConstList, lazy: lazy, lazyOld: lazyOld, updateHolder: updateHolder, convertToFastObject: convertToFastObject, setFunctionNamesIfNecessary: setFunctionNamesIfNecessary, updateTypes: updateTypes, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateLeafTags: setOrUpdateLeafTags};
}();
function initializeDeferredHunk(hunk) {
typesOffset = init.types.length;
hunk(hunkHelpers, init, holders, $);
}
function getGlobalFromName(name) {
for (var i = 0; i < holders.length; i++) {
if (holders[i] == C)
continue;
if (holders[i][name])
return holders[i][name];
}
}
var C = {},
H = {JS_CONST: function JS_CONST() {
},
CastIterable_CastIterable: function(source, $S, $T) {
if ($S._eval$1("EfficientLengthIterable<0>")._is(source))
return new H._EfficientLengthCastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("_EfficientLengthCastIterable<1,2>"));
return new H.CastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastIterable<1,2>"));
},
LateInitializationErrorImpl$: function(_message) {
return new H.LateInitializationErrorImpl(_message);
},
hexDigitValue: function(char) {
var letter,
digit = char ^ 48;
if (digit <= 9)
return digit;
letter = char | 32;
if (97 <= letter && letter <= 102)
return letter - 87;
return -1;
},
SubListIterable$: function(_iterable, _start, _endOrLength, $E) {
P.RangeError_checkNotNegative(_start, "start");
if (_endOrLength != null) {
P.RangeError_checkNotNegative(_endOrLength, "end");
if (_start > _endOrLength)
H.throwExpression(P.RangeError$range(_start, 0, _endOrLength, "start", null));
}
return new H.SubListIterable(_iterable, _start, _endOrLength, $E._eval$1("SubListIterable<0>"));
},
MappedIterable_MappedIterable: function(iterable, $function, $S, $T) {
if (type$.EfficientLengthIterable_dynamic._is(iterable))
return new H.EfficientLengthMappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
return new H.MappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
},
TakeIterable_TakeIterable: function(iterable, takeCount, $E) {
var _s9_ = "takeCount";
P.ArgumentError_checkNotNull(takeCount, _s9_);
P.RangeError_checkNotNegative(takeCount, _s9_);
if (type$.EfficientLengthIterable_dynamic._is(iterable))
return new H.EfficientLengthTakeIterable(iterable, takeCount, $E._eval$1("EfficientLengthTakeIterable<0>"));
return new H.TakeIterable(iterable, takeCount, $E._eval$1("TakeIterable<0>"));
},
SkipIterable_SkipIterable: function(iterable, count, $E) {
var _s5_ = "count";
if (type$.EfficientLengthIterable_dynamic._is(iterable)) {
P.ArgumentError_checkNotNull(count, _s5_);
P.RangeError_checkNotNegative(count, _s5_);
return new H.EfficientLengthSkipIterable(iterable, count, $E._eval$1("EfficientLengthSkipIterable<0>"));
}
P.ArgumentError_checkNotNull(count, _s5_);
P.RangeError_checkNotNegative(count, _s5_);
return new H.SkipIterable(iterable, count, $E._eval$1("SkipIterable<0>"));
},
FollowedByIterable_FollowedByIterable$firstEfficient: function(first, second, $E) {
if ($E._eval$1("EfficientLengthIterable<0>")._is(second))
return new H.EfficientLengthFollowedByIterable(first, second, $E._eval$1("EfficientLengthFollowedByIterable<0>"));
return new H.FollowedByIterable(first, second, $E._eval$1("FollowedByIterable<0>"));
},
IterableElementError_noElement: function() {
return new P.StateError("No element");
},
IterableElementError_tooMany: function() {
return new P.StateError("Too many elements");
},
IterableElementError_tooFew: function() {
return new P.StateError("Too few elements");
},
Sort_sort: function(a, compare) {
H.Sort__doSort(a, 0, J.get$length$asx(a) - 1, compare);
},
Sort__doSort: function(a, left, right, compare) {
if (right - left <= 32)
H.Sort__insertionSort(a, left, right, compare);
else
H.Sort__dualPivotQuicksort(a, left, right, compare);
},
Sort__insertionSort: function(a, left, right, compare) {
var i, t1, el, j, 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 && compare.call$2(t1.$index(a, j - 1), el) > 0))
break;
j0 = j - 1;
t1.$indexSet(a, j, t1.$index(a, j0));
j = j0;
}
t1.$indexSet(a, j, el);
}
},
Sort__dualPivotQuicksort: function(a, left, right, compare) {
var t0, less, great, k, ak, comp, great0, less0, pivots_are_equal, t2,
sixth = C.JSInt_methods._tdivFast$1(right - left + 1, 6),
index1 = left + sixth,
index5 = right - sixth,
index3 = C.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);
if (compare.call$2(el1, el2) > 0) {
t0 = el2;
el2 = el1;
el1 = t0;
}
if (compare.call$2(el4, el5) > 0) {
t0 = el5;
el5 = el4;
el4 = t0;
}
if (compare.call$2(el1, el3) > 0) {
t0 = el3;
el3 = el1;
el1 = t0;
}
if (compare.call$2(el2, el3) > 0) {
t0 = el3;
el3 = el2;
el2 = t0;
}
if (compare.call$2(el1, el4) > 0) {
t0 = el4;
el4 = el1;
el1 = t0;
}
if (compare.call$2(el3, el4) > 0) {
t0 = el4;
el4 = el3;
el3 = t0;
}
if (compare.call$2(el2, el5) > 0) {
t0 = el5;
el5 = el2;
el2 = t0;
}
if (compare.call$2(el2, el3) > 0) {
t0 = el3;
el3 = el2;
el2 = t0;
}
if (compare.call$2(el4, el5) > 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;
if (J.$eq$(compare.call$2(el2, el4), 0)) {
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;
}
}
}
}
pivots_are_equal = true;
} 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;
}
}
pivots_are_equal = false;
}
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);
H.Sort__doSort(a, left, less - 2, compare);
H.Sort__doSort(a, great + 2, right, compare);
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;
}
}
H.Sort__doSort(a, less, great, compare);
} else
H.Sort__doSort(a, less, great, compare);
},
_CastIterableBase: function _CastIterableBase() {
},
CastIterator: function CastIterator(t0, t1) {
this._source = t0;
this.$ti = t1;
},
CastIterable: function CastIterable(t0, t1) {
this._source = t0;
this.$ti = t1;
},
_EfficientLengthCastIterable: function _EfficientLengthCastIterable(t0, t1) {
this._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._source = t0;
this.$ti = t1;
},
CastSet: function CastSet(t0, t1, t2) {
this._source = t0;
this._emptySet = t1;
this.$ti = t2;
},
CastQueue: function CastQueue(t0, t1) {
this._source = t0;
this.$ti = t1;
},
LateInitializationErrorImpl: function LateInitializationErrorImpl(t0) {
this.__internal$_message = t0;
},
CodeUnits: function CodeUnits(t0) {
this._string = t0;
},
EfficientLengthIterable: function EfficientLengthIterable() {
},
ListIterable: function ListIterable() {
},
SubListIterable: function SubListIterable(t0, t1, t2, t3) {
var _ = this;
_.__internal$_iterable = t0;
_._start = t1;
_._endOrLength = t2;
_.$ti = t3;
},
ListIterator: function ListIterator(t0, t1) {
var _ = this;
_.__internal$_iterable = t0;
_.__internal$_length = t1;
_.__internal$_index = 0;
_.__internal$_current = null;
},
MappedIterable: function MappedIterable(t0, t1, t2) {
this.__internal$_iterable = t0;
this._f = t1;
this.$ti = t2;
},
EfficientLengthMappedIterable: function EfficientLengthMappedIterable(t0, t1, t2) {
this.__internal$_iterable = t0;
this._f = t1;
this.$ti = t2;
},
MappedIterator: function MappedIterator(t0, t1) {
this.__internal$_current = null;
this._iterator = t0;
this._f = t1;
},
MappedListIterable: function MappedListIterable(t0, t1, t2) {
this._source = t0;
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) {
this._iterator = t0;
this._f = t1;
},
ExpandIterable: function ExpandIterable(t0, t1, t2) {
this.__internal$_iterable = t0;
this._f = t1;
this.$ti = t2;
},
ExpandIterator: function ExpandIterator(t0, t1, t2) {
var _ = this;
_._iterator = t0;
_._f = t1;
_._currentExpansion = t2;
_.__internal$_current = null;
},
TakeIterable: function TakeIterable(t0, t1, t2) {
this.__internal$_iterable = t0;
this._takeCount = t1;
this.$ti = t2;
},
EfficientLengthTakeIterable: function EfficientLengthTakeIterable(t0, t1, t2) {
this.__internal$_iterable = t0;
this._takeCount = t1;
this.$ti = t2;
},
TakeIterator: function TakeIterator(t0, t1) {
this._iterator = t0;
this._remaining = t1;
},
SkipIterable: function SkipIterable(t0, t1, t2) {
this.__internal$_iterable = t0;
this._skipCount = t1;
this.$ti = t2;
},
EfficientLengthSkipIterable: function EfficientLengthSkipIterable(t0, t1, t2) {
this.__internal$_iterable = t0;
this._skipCount = t1;
this.$ti = t2;
},
SkipIterator: function SkipIterator(t0, t1) {
this._iterator = t0;
this._skipCount = t1;
},
SkipWhileIterable: function SkipWhileIterable(t0, t1, t2) {
this.__internal$_iterable = t0;
this._f = t1;
this.$ti = t2;
},
SkipWhileIterator: function SkipWhileIterator(t0, t1) {
this._iterator = t0;
this._f = t1;
this._hasSkipped = false;
},
EmptyIterable: function EmptyIterable(t0) {
this.$ti = t0;
},
EmptyIterator: function EmptyIterator() {
},
FollowedByIterable: function FollowedByIterable(t0, t1, t2) {
this.__internal$_first = t0;
this._second = t1;
this.$ti = t2;
},
EfficientLengthFollowedByIterable: function EfficientLengthFollowedByIterable(t0, t1, t2) {
this.__internal$_first = t0;
this._second = t1;
this.$ti = t2;
},
FollowedByIterator: function FollowedByIterator(t0, t1) {
this._currentIterator = t0;
this._nextIterable = t1;
},
WhereTypeIterable: function WhereTypeIterable(t0, t1) {
this._source = t0;
this.$ti = t1;
},
WhereTypeIterator: function WhereTypeIterator(t0, t1) {
this._source = t0;
this.$ti = t1;
},
FixedLengthListMixin: function FixedLengthListMixin() {
},
UnmodifiableListMixin: function UnmodifiableListMixin() {
},
UnmodifiableListBase: function UnmodifiableListBase() {
},
ReversedListIterable: function ReversedListIterable(t0, t1) {
this._source = t0;
this.$ti = t1;
},
Symbol: function Symbol(t0) {
this.__internal$_name = t0;
},
__CastListBase__CastIterableBase_ListMixin: function __CastListBase__CastIterableBase_ListMixin() {
},
ConstantMap_ConstantMap$from: function(other, $K, $V) {
var allStrings, object, containsProto, protoValue, $length, k, v,
keys = P.List_List$from(other.get$keys(other), true, $K),
t1 = keys.length,
_i = 0;
while (true) {
if (!(_i < t1)) {
allStrings = true;
break;
}
if (typeof keys[_i] != "string") {
allStrings = false;
break;
}
++_i;
}
if (allStrings) {
object = {};
for (containsProto = false, protoValue = null, $length = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
k = keys[_i];
v = other.$index(0, k);
if (!J.$eq$(k, "__proto__")) {
H._asStringS(k);
if (!object.hasOwnProperty(k))
++$length;
object[k] = v;
} else {
protoValue = v;
containsProto = true;
}
}
if (containsProto)
return new H.ConstantProtoMap(protoValue, $length + 1, object, keys, $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantProtoMap<1,2>"));
return new H.ConstantStringMap($length, object, keys, $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantStringMap<1,2>"));
}
return new H.ConstantMapView(P.LinkedHashMap_LinkedHashMap$from(other, $K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantMapView<1,2>"));
},
ConstantMap__throwUnmodifiable: function() {
throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable Map"));
},
instantiate1: function(f, T1) {
var t1 = new H.Instantiation1(f, T1._eval$1("Instantiation1<0>"));
t1.Instantiation$1(f);
return t1;
},
unminifyOrTag: function(rawClassName) {
var preserved = H.unmangleGlobalNameIfPreservedAnyways(rawClassName);
if (preserved != null)
return preserved;
return rawClassName;
},
isJsIndexable: function(object, record) {
var result;
if (record != null) {
result = record.x;
if (result != null)
return result;
}
return type$.JavaScriptIndexingBehavior_dynamic._is(object);
},
S: function(value) {
var res;
if (typeof value == "string")
return value;
if (typeof value == "number") {
if (value !== 0)
return "" + value;
} else if (true === value)
return "true";
else if (false === value)
return "false";
else if (value == null)
return "null";
res = J.toString$0$(value);
if (typeof res != "string")
throw H.wrapException(H.argumentErrorValue(value));
return res;
},
Primitives_objectHashCode: function(object) {
var hash = object.$identityHash;
if (hash == null) {
hash = Math.random() * 0x3fffffff | 0;
object.$identityHash = hash;
}
return hash;
},
Primitives_parseInt: function(source, radix) {
var match, decimalMatch, maxCharCode, digitsPart, t1, i, _null = null;
if (typeof source != "string")
H.throwExpression(H.argumentErrorValue(source));
match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
if (match == null)
return _null;
decimalMatch = match[3];
if (radix == null) {
if (decimalMatch != null)
return parseInt(source, 10);
if (match[2] != null)
return parseInt(source, 16);
return _null;
}
if (radix < 2 || radix > 36)
throw H.wrapException(P.RangeError$range(radix, 2, 36, "radix", _null));
if (radix === 10 && decimalMatch != null)
return parseInt(source, 10);
if (radix < 10 || decimalMatch == null) {
maxCharCode = radix <= 10 ? 47 + radix : 86 + radix;
digitsPart = match[1];
for (t1 = digitsPart.length, i = 0; i < t1; ++i)
if ((C.JSString_methods._codeUnitAt$1(digitsPart, i) | 32) > maxCharCode)
return _null;
}
return parseInt(source, radix);
},
Primitives_parseDouble: function(source) {
var result, trimmed;
if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(source))
return null;
result = parseFloat(source);
if (isNaN(result)) {
trimmed = C.JSString_methods.trim$0(source);
if (trimmed === "NaN" || trimmed === "+NaN" || trimmed === "-NaN")
return result;
return null;
}
return result;
},
Primitives_objectTypeName: function(object) {
return H.Primitives__objectTypeNameNewRti(object);
},
Primitives__objectTypeNameNewRti: function(object) {
var dispatchName, $constructor, constructorName;
if (object instanceof P.Object)
return H._rtiToString(H.instanceType(object), null);
if (J.getInterceptor$(object) === C.Interceptor_methods || type$.UnknownJavaScriptObject._is(object)) {
dispatchName = C.C_JS_CONST(object);
if (H.Primitives__saneNativeClassName(dispatchName))
return dispatchName;
$constructor = object.constructor;
if (typeof $constructor == "function") {
constructorName = $constructor.name;
if (typeof constructorName == "string" && H.Primitives__saneNativeClassName(constructorName))
return constructorName;
}
}
return H._rtiToString(H.instanceType(object), null);
},
Primitives__saneNativeClassName: function($name) {
var t1 = $name !== "Object" && $name !== "";
return t1;
},
Primitives_currentUri: function() {
if (!!self.location)
return self.location.href;
return null;
},
Primitives__fromCharCodeApply: function(array) {
var result, i, i0, chunkEnd,
end = array.length;
if (end <= 500)
return String.fromCharCode.apply(null, array);
for (result = "", i = 0; i < end; i = i0) {
i0 = i + 500;
chunkEnd = i0 < end ? i0 : end;
result += String.fromCharCode.apply(null, array.slice(i, chunkEnd));
}
return result;
},
Primitives_stringFromCodePoints: function(codePoints) {
var t1, _i, i,
a = H.setRuntimeTypeInfo([], type$.JSArray_int);
for (t1 = codePoints.length, _i = 0; _i < codePoints.length; codePoints.length === t1 || (0, H.throwConcurrentModificationError)(codePoints), ++_i) {
i = codePoints[_i];
if (!H._isInt(i))
throw H.wrapException(H.argumentErrorValue(i));
if (i <= 65535)
a.push(i);
else if (i <= 1114111) {
a.push(55296 + (C.JSInt_methods._shrOtherPositive$1(i - 65536, 10) & 1023));
a.push(56320 + (i & 1023));
} else
throw H.wrapException(H.argumentErrorValue(i));
}
return H.Primitives__fromCharCodeApply(a);
},
Primitives_stringFromCharCodes: function(charCodes) {
var t1, _i, i;
for (t1 = charCodes.length, _i = 0; _i < t1; ++_i) {
i = charCodes[_i];
if (!H._isInt(i))
throw H.wrapException(H.argumentErrorValue(i));
if (i < 0)
throw H.wrapException(H.argumentErrorValue(i));
if (i > 65535)
return H.Primitives_stringFromCodePoints(charCodes);
}
return H.Primitives__fromCharCodeApply(charCodes);
},
Primitives_stringFromNativeUint8List: function(charCodes, start, end) {
var i, result, i0, chunkEnd;
if (end <= 500 && start === 0 && end === charCodes.length)
return String.fromCharCode.apply(null, charCodes);
for (i = start, result = ""; i < end; i = i0) {
i0 = i + 500;
chunkEnd = i0 < end ? i0 : end;
result += String.fromCharCode.apply(null, charCodes.subarray(i, chunkEnd));
}
return result;
},
Primitives_stringFromCharCode: function(charCode) {
var bits;
if (0 <= charCode) {
if (charCode <= 65535)
return String.fromCharCode(charCode);
if (charCode <= 1114111) {
bits = charCode - 65536;
return String.fromCharCode((55296 | C.JSInt_methods._shrOtherPositive$1(bits, 10)) >>> 0, 56320 | bits & 1023);
}
}
throw H.wrapException(P.RangeError$range(charCode, 0, 1114111, null, null));
},
Primitives_lazyAsJsDate: function(receiver) {
if (receiver.date === void 0)
receiver.date = new Date(receiver._value);
return receiver.date;
},
Primitives_getYear: function(receiver) {
var t1 = H.Primitives_lazyAsJsDate(receiver).getFullYear() + 0;
return t1;
},
Primitives_getMonth: function(receiver) {
var t1 = H.Primitives_lazyAsJsDate(receiver).getMonth() + 1;
return t1;
},
Primitives_getDay: function(receiver) {
var t1 = H.Primitives_lazyAsJsDate(receiver).getDate() + 0;
return t1;
},
Primitives_getHours: function(receiver) {
var t1 = H.Primitives_lazyAsJsDate(receiver).getHours() + 0;
return t1;
},
Primitives_getMinutes: function(receiver) {
var t1 = H.Primitives_lazyAsJsDate(receiver).getMinutes() + 0;
return t1;
},
Primitives_getSeconds: function(receiver) {
var t1 = H.Primitives_lazyAsJsDate(receiver).getSeconds() + 0;
return t1;
},
Primitives_getMilliseconds: function(receiver) {
var t1 = H.Primitives_lazyAsJsDate(receiver).getMilliseconds() + 0;
return t1;
},
Primitives_functionNoSuchMethod: function($function, positionalArguments, namedArguments) {
var $arguments, namedArgumentList, t1 = {};
t1.argumentCount = 0;
$arguments = [];
namedArgumentList = [];
t1.argumentCount = positionalArguments.length;
C.JSArray_methods.addAll$1($arguments, positionalArguments);
t1.names = "";
if (namedArguments != null && !namedArguments.get$isEmpty(namedArguments))
namedArguments.forEach$1(0, new H.Primitives_functionNoSuchMethod_closure(t1, namedArgumentList, $arguments));
"" + t1.argumentCount;
return J.noSuchMethod$1$($function, new H.JSInvocationMirror(C.Symbol_call, 0, $arguments, namedArgumentList, 0));
},
Primitives_applyFunction: function($function, positionalArguments, namedArguments) {
var t1, $arguments, argumentCount, jsStub;
if (positionalArguments instanceof Array)
t1 = namedArguments == null || namedArguments.get$isEmpty(namedArguments);
else
t1 = false;
if (t1) {
$arguments = positionalArguments;
argumentCount = $arguments.length;
if (argumentCount === 0) {
if (!!$function.call$0)
return $function.call$0();
} else if (argumentCount === 1) {
if (!!$function.call$1)
return $function.call$1($arguments[0]);
} else if (argumentCount === 2) {
if (!!$function.call$2)
return $function.call$2($arguments[0], $arguments[1]);
} else if (argumentCount === 3) {
if (!!$function.call$3)
return $function.call$3($arguments[0], $arguments[1], $arguments[2]);
} else if (argumentCount === 4) {
if (!!$function.call$4)
return $function.call$4($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
} else if (argumentCount === 5)
if (!!$function.call$5)
return $function.call$5($arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4]);
jsStub = $function["call" + "$" + argumentCount];
if (jsStub != null)
return jsStub.apply($function, $arguments);
}
return H.Primitives__genericApplyFunction2($function, positionalArguments, namedArguments);
},
Primitives__genericApplyFunction2: function($function, positionalArguments, namedArguments) {
var $arguments, argumentCount, requiredParameterCount, defaultValuesClosure, t1, defaultValues, interceptor, jsFunction, keys, _i, defaultValue, used, t2;
if (positionalArguments != null)
$arguments = positionalArguments instanceof Array ? positionalArguments : P.List_List$from(positionalArguments, true, type$.dynamic);
else
$arguments = [];
argumentCount = $arguments.length;
requiredParameterCount = $function.$requiredArgCount;
if (argumentCount < requiredParameterCount)
return H.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.get$isNotEmpty(namedArguments))
return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
if (argumentCount === requiredParameterCount)
return jsFunction.apply($function, $arguments);
return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
}
if (defaultValues instanceof Array) {
if (namedArguments != null && namedArguments.get$isNotEmpty(namedArguments))
return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
if (argumentCount > requiredParameterCount + defaultValues.length)
return H.Primitives_functionNoSuchMethod($function, $arguments, null);
C.JSArray_methods.addAll$1($arguments, defaultValues.slice(argumentCount - requiredParameterCount));
return jsFunction.apply($function, $arguments);
} else {
if (argumentCount > requiredParameterCount)
return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
keys = Object.keys(defaultValues);
if (namedArguments == null)
for (t1 = keys.length, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
defaultValue = defaultValues[keys[_i]];
if (C.C__Required === defaultValue)
return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
C.JSArray_methods.add$1($arguments, defaultValue);
}
else {
for (t1 = keys.length, used = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
t2 = keys[_i];
if (namedArguments.containsKey$1(t2)) {
++used;
C.JSArray_methods.add$1($arguments, namedArguments.$index(0, t2));
} else {
defaultValue = defaultValues[t2];
if (C.C__Required === defaultValue)
return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
C.JSArray_methods.add$1($arguments, defaultValue);
}
}
if (used !== namedArguments.get$length(namedArguments))
return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
}
return jsFunction.apply($function, $arguments);
}
},
diagnoseIndexError: function(indexable, index) {
var $length, _s5_ = "index";
if (!H._isInt(index))
return new P.ArgumentError(true, index, _s5_, null);
$length = J.get$length$asx(indexable);
if (index < 0 || index >= $length)
return P.IndexError$(index, indexable, _s5_, null, $length);
return P.RangeError$value(index, _s5_, null);
},
diagnoseRangeError: function(start, end, $length) {
if (start < 0 || start > $length)
return P.RangeError$range(start, 0, $length, "start", null);
if (end != null)
if (end < start || end > $length)
return P.RangeError$range(end, start, $length, "end", null);
return new P.ArgumentError(true, end, "end", null);
},
argumentErrorValue: function(object) {
return new P.ArgumentError(true, object, null, null);
},
checkNum: function(value) {
if (typeof value != "number")
throw H.wrapException(H.argumentErrorValue(value));
return value;
},
wrapException: function(ex) {
var wrapper, t1;
if (ex == null)
ex = new P.NullThrownError();
wrapper = new Error();
wrapper.dartException = ex;
t1 = H.toStringWrapper;
if ("defineProperty" in Object) {
Object.defineProperty(wrapper, "message", {get: t1});
wrapper.name = "";
} else
wrapper.toString = t1;
return wrapper;
},
toStringWrapper: function() {
return J.toString$0$(this.dartException);
},
throwExpression: function(ex) {
throw H.wrapException(ex);
},
throwConcurrentModificationError: function(collection) {
throw H.wrapException(P.ConcurrentModificationError$(collection));
},
TypeErrorDecoder_extractPattern: function(message) {
var match, $arguments, argumentsExpr, expr, method, receiver;
message = H.quoteStringForRegExp(message.replace(String({}), '$receiver$'));
match = message.match(/\\\$[a-zA-Z]+\\\$/g);
if (match == null)
match = H.setRuntimeTypeInfo([], type$.JSArray_String);
$arguments = match.indexOf("\\$arguments\\$");
argumentsExpr = match.indexOf("\\$argumentsExpr\\$");
expr = match.indexOf("\\$expr\\$");
method = match.indexOf("\\$method\\$");
receiver = match.indexOf("\\$receiver\\$");
return new H.TypeErrorDecoder(message.replace(new RegExp('\\\\\\$arguments\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$argumentsExpr\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$expr\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$method\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$receiver\\\\\\$', 'g'), '((?:x|[^x])*)'), $arguments, argumentsExpr, expr, method, receiver);
},
TypeErrorDecoder_provokeCallErrorOn: function(expression) {
return function($expr$) {
var $argumentsExpr$ = '$arguments$';
try {
$expr$.$method$($argumentsExpr$);
} catch (e) {
return e.message;
}
}(expression);
},
TypeErrorDecoder_provokePropertyErrorOn: function(expression) {
return function($expr$) {
try {
$expr$.$method$;
} catch (e) {
return e.message;
}
}(expression);
},
NullError$: function(_message, match) {
return new H.NullError(_message, match == null ? null : match.method);
},
JsNoSuchMethodError$: function(_message, match) {
var t1 = match == null,
t2 = t1 ? null : match.method;
return new H.JsNoSuchMethodError(_message, t2, t1 ? null : match.receiver);
},
unwrapException: function(ex) {
if (ex == null)
return new H.NullThrownFromJavaScriptException(ex);
if (ex instanceof H.ExceptionAndStackTrace)
return H.saveStackTrace(ex, ex.dartException);
if (typeof ex !== "object")
return ex;
if ("dartException" in ex)
return H.saveStackTrace(ex, ex.dartException);
return H._unwrapNonDartException(ex);
},
saveStackTrace: function(ex, error) {
if (type$.Error._is(error))
if (error.$thrownJsError == null)
error.$thrownJsError = ex;
return error;
},
_unwrapNonDartException: function(ex) {
var message, number, ieErrorCode, nsme, notClosure, nullCall, nullLiteralCall, undefCall, undefLiteralCall, nullProperty, undefProperty, undefLiteralProperty, match, t1, _null = null;
if (!("message" in ex))
return ex;
message = ex.message;
if ("number" in ex && typeof ex.number == "number") {
number = ex.number;
ieErrorCode = number & 65535;
if ((C.JSInt_methods._shrOtherPositive$1(number, 16) & 8191) === 10)
switch (ieErrorCode) {
case 438:
return H.saveStackTrace(ex, H.JsNoSuchMethodError$(H.S(message) + " (Error " + ieErrorCode + ")", _null));
case 445:
case 5007:
return H.saveStackTrace(ex, H.NullError$(H.S(message) + " (Error " + ieErrorCode + ")", _null));
}
}
if (ex instanceof TypeError) {
nsme = $.$get$TypeErrorDecoder_noSuchMethodPattern();
notClosure = $.$get$TypeErrorDecoder_notClosurePattern();
nullCall = $.$get$TypeErrorDecoder_nullCallPattern();
nullLiteralCall = $.$get$TypeErrorDecoder_nullLiteralCallPattern();
undefCall = $.$get$TypeErrorDecoder_undefinedCallPattern();
undefLiteralCall = $.$get$TypeErrorDecoder_undefinedLiteralCallPattern();
nullProperty = $.$get$TypeErrorDecoder_nullPropertyPattern();
$.$get$TypeErrorDecoder_nullLiteralPropertyPattern();
undefProperty = $.$get$TypeErrorDecoder_undefinedPropertyPattern();
undefLiteralProperty = $.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern();
match = nsme.matchTypeError$1(message);
if (match != null)
return H.saveStackTrace(ex, H.JsNoSuchMethodError$(message, match));
else {
match = notClosure.matchTypeError$1(message);
if (match != null) {
match.method = "call";
return H.saveStackTrace(ex, H.JsNoSuchMethodError$(message, match));
} else {
match = nullCall.matchTypeError$1(message);
if (match == null) {
match = nullLiteralCall.matchTypeError$1(message);
if (match == null) {
match = undefCall.matchTypeError$1(message);
if (match == null) {
match = undefLiteralCall.matchTypeError$1(message);
if (match == null) {
match = nullProperty.matchTypeError$1(message);
if (match == null) {
match = nullLiteralCall.matchTypeError$1(message);
if (match == null) {
match = undefProperty.matchTypeError$1(message);
if (match == null) {
match = undefLiteralProperty.matchTypeError$1(message);
t1 = match != null;
} else
t1 = true;
} else
t1 = true;
} else
t1 = true;
} else
t1 = true;
} else
t1 = true;
} else
t1 = true;
} else
t1 = true;
if (t1)
return H.saveStackTrace(ex, H.NullError$(message, match));
}
}
return H.saveStackTrace(ex, new H.UnknownJsTypeError(typeof message == "string" ? message : ""));
}
if (ex instanceof RangeError) {
if (typeof message == "string" && message.indexOf("call stack") !== -1)
return new P.StackOverflowError();
message = function(ex) {
try {
return String(ex);
} catch (e) {
}
return null;
}(ex);
return H.saveStackTrace(ex, new P.ArgumentError(false, _null, _null, typeof message == "string" ? message.replace(/^RangeError:\s*/, "") : message));
}
if (typeof InternalError == "function" && ex instanceof InternalError)
if (typeof message == "string" && message === "too much recursion")
return new P.StackOverflowError();
return ex;
},
getTraceFromException: function(exception) {
var trace;
if (exception instanceof H.ExceptionAndStackTrace)
return exception.stackTrace;
if (exception == null)
return new H._StackTrace(exception);
trace = exception.$cachedTrace;
if (trace != null)
return trace;
return exception.$cachedTrace = new H._StackTrace(exception);
},
objectHashCode: function(object) {
if (object == null || typeof object != 'object')
return J.get$hashCode$(object);
else
return H.Primitives_objectHashCode(object);
},
fillLiteralMap: function(keyValuePairs, result) {
var index, index0, index1,
$length = keyValuePairs.length;
for (index = 0; index < $length; index = index1) {
index0 = index + 1;
index1 = index0 + 1;
result.$indexSet(0, keyValuePairs[index], keyValuePairs[index0]);
}
return result;
},
fillLiteralSet: function(values, result) {
var index,
$length = values.length;
for (index = 0; index < $length; ++index)
result.add$1(0, values[index]);
return result;
},
invokeClosure: function(closure, numberOfArguments, arg1, arg2, arg3, arg4) {
switch (numberOfArguments) {
case 0:
return closure.call$0();
case 1:
return closure.call$1(arg1);
case 2:
return closure.call$2(arg1, arg2);
case 3:
return closure.call$3(arg1, arg2, arg3);
case 4:
return closure.call$4(arg1, arg2, arg3, arg4);
}
throw H.wrapException(new P._Exception("Unsupported number of arguments for wrapped closure"));
},
convertDartClosureToJS: function(closure, arity) {
var $function;
if (closure == null)
return null;
$function = closure.$identity;
if (!!$function)
return $function;
$function = function(closure, arity, invoke) {
return function(a1, a2, a3, a4) {
return invoke(closure, arity, a1, a2, a3, a4);
};
}(closure, arity, H.invokeClosure);
closure.$identity = $function;
return $function;
},
Closure_fromTearOff: function(receiver, functions, applyTrampolineIndex, reflectionInfo, isStatic, isIntercepted, propertyName) {
var $constructor, t1, trampoline, applyTrampoline, i, stub, stubCallName,
$function = functions[0],
callName = $function.$callName,
$prototype = isStatic ? Object.create(new H.StaticClosure().constructor.prototype) : Object.create(new H.BoundClosure(null, null, null, "").constructor.prototype);
$prototype.$initialize = $prototype.constructor;
if (isStatic)
$constructor = function static_tear_off() {
this.$initialize();
};
else {
t1 = $.Closure_functionCounter;
$.Closure_functionCounter = t1 + 1;
t1 = new Function("a,b,c,d" + t1, "this.$initialize(a,b,c,d" + t1 + ")");
$constructor = t1;
}
$prototype.constructor = $constructor;
$constructor.prototype = $prototype;
if (!isStatic) {
trampoline = H.Closure_forwardCallTo(receiver, $function, isIntercepted);
trampoline.$reflectionInfo = reflectionInfo;
} else {
$prototype.$static_name = propertyName;
trampoline = $function;
}
$prototype.$signature = H.Closure__computeSignatureFunctionNewRti(reflectionInfo, isStatic, isIntercepted);
$prototype[callName] = trampoline;
for (applyTrampoline = trampoline, i = 1; i < functions.length; ++i) {
stub = functions[i];
stubCallName = stub.$callName;
if (stubCallName != null) {
stub = isStatic ? stub : H.Closure_forwardCallTo(receiver, stub, isIntercepted);
$prototype[stubCallName] = stub;
}
if (i === applyTrampolineIndex) {
stub.$reflectionInfo = reflectionInfo;
applyTrampoline = stub;
}
}
$prototype["call*"] = applyTrampoline;
$prototype.$requiredArgCount = $function.$requiredArgCount;
$prototype.$defaultValues = $function.$defaultValues;
return $constructor;
},
Closure__computeSignatureFunctionNewRti: function(functionType, isStatic, isIntercepted) {
var typeEvalMethod;
if (typeof functionType == "number")
return function(getType, t) {
return function() {
return getType(t);
};
}(H.getTypeFromTypesTable, functionType);
if (typeof functionType == "string") {
if (isStatic)
throw H.wrapException("Cannot compute signature for static tearoff.");
typeEvalMethod = isIntercepted ? H.BoundClosure_evalRecipeIntercepted : H.BoundClosure_evalRecipe;
return function(recipe, evalOnReceiver) {
return function() {
return evalOnReceiver(this, recipe);
};
}(functionType, typeEvalMethod);
}
throw H.wrapException("Error in functionType of tearoff");
},
Closure_cspForwardCall: function(arity, isSuperCall, stubName, $function) {
var getSelf = H.BoundClosure_selfOf;
switch (isSuperCall ? -1 : arity) {
case 0:
return function(n, S) {
return function() {
return S(this)[n]();
};
}(stubName, getSelf);
case 1:
return function(n, S) {
return function(a) {
return S(this)[n](a);
};
}(stubName, getSelf);
case 2:
return function(n, S) {
return function(a, b) {
return S(this)[n](a, b);
};
}(stubName, getSelf);
case 3:
return function(n, S) {
return function(a, b, c) {
return S(this)[n](a, b, c);
};
}(stubName, getSelf);
case 4:
return function(n, S) {
return function(a, b, c, d) {
return S(this)[n](a, b, c, d);
};
}(stubName, getSelf);
case 5:
return function(n, S) {
return function(a, b, c, d, e) {
return S(this)[n](a, b, c, d, e);
};
}(stubName, getSelf);
default:
return function(f, s) {
return function() {
return f.apply(s(this), arguments);
};
}($function, getSelf);
}
},
Closure_forwardCallTo: function(receiver, $function, isIntercepted) {
var stubName, arity, lookedUpFunction, t1, t2, selfName, $arguments;
if (isIntercepted)
return H.Closure_forwardInterceptedCallTo(receiver, $function);
stubName = $function.$stubName;
arity = $function.length;
lookedUpFunction = receiver[stubName];
t1 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
t2 = !t1 || arity >= 27;
if (t2)
return H.Closure_cspForwardCall(arity, !t1, stubName, $function);
if (arity === 0) {
t1 = $.Closure_functionCounter;
$.Closure_functionCounter = t1 + 1;
selfName = "self" + H.S(t1);
return new Function("return function(){var " + selfName + " = this." + H.S(H.BoundClosure_selfFieldName()) + ";return " + selfName + "." + H.S(stubName) + "();}")();
}
$arguments = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity).join(",");
t1 = $.Closure_functionCounter;
$.Closure_functionCounter = t1 + 1;
$arguments += H.S(t1);
return new Function("return function(" + $arguments + "){return this." + H.S(H.BoundClosure_selfFieldName()) + "." + H.S(stubName) + "(" + $arguments + ");}")();
},
Closure_cspForwardInterceptedCall: function(arity, isSuperCall, $name, $function) {
var getSelf = H.BoundClosure_selfOf,
getReceiver = H.BoundClosure_receiverOf;
switch (isSuperCall ? -1 : arity) {
case 0:
throw H.wrapException(new H.RuntimeError("Intercepted function with no arguments."));
case 1:
return function(n, s, r) {
return function() {
return s(this)[n](r(this));
};
}($name, getSelf, getReceiver);
case 2:
return function(n, s, r) {
return function(a) {
return s(this)[n](r(this), a);
};
}($name, getSelf, getReceiver);
case 3:
return function(n, s, r) {
return function(a, b) {
return s(this)[n](r(this), a, b);
};
}($name, getSelf, getReceiver);
case 4:
return function(n, s, r) {
return function(a, b, c) {
return s(this)[n](r(this), a, b, c);
};
}($name, getSelf, getReceiver);
case 5:
return function(n, s, r) {
return function(a, b, c, d) {
return s(this)[n](r(this), a, b, c, d);
};
}($name, getSelf, getReceiver);
case 6:
return function(n, s, r) {
return function(a, b, c, d, e) {
return s(this)[n](r(this), a, b, c, d, e);
};
}($name, getSelf, getReceiver);
default:
return function(f, s, r, a) {
return function() {
a = [r(this)];
Array.prototype.push.apply(a, arguments);
return f.apply(s(this), a);
};
}($function, getSelf, getReceiver);
}
},
Closure_forwardInterceptedCallTo: function(receiver, $function) {
var stubName, arity, lookedUpFunction, t1, t2, $arguments,
selfField = H.BoundClosure_selfFieldName(),
receiverField = $.BoundClosure_receiverFieldNameCache;
if (receiverField == null)
receiverField = $.BoundClosure_receiverFieldNameCache = H.BoundClosure_computeFieldNamed("receiver");
stubName = $function.$stubName;
arity = $function.length;
lookedUpFunction = receiver[stubName];
t1 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
t2 = !t1 || arity >= 28;
if (t2)
return H.Closure_cspForwardInterceptedCall(arity, !t1, stubName, $function);
if (arity === 1) {
t1 = "return function(){return this." + H.S(selfField) + "." + H.S(stubName) + "(this." + receiverField + ");";
t2 = $.Closure_functionCounter;
$.Closure_functionCounter = t2 + 1;
return new Function(t1 + H.S(t2) + "}")();
}
$arguments = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity - 1).join(",");
t1 = "return function(" + $arguments + "){return this." + H.S(selfField) + "." + H.S(stubName) + "(this." + receiverField + ", " + $arguments + ");";
t2 = $.Closure_functionCounter;
$.Closure_functionCounter = t2 + 1;
return new Function(t1 + H.S(t2) + "}")();
},
closureFromTearOff: function(receiver, functions, applyTrampolineIndex, reflectionInfo, isStatic, isIntercepted, $name) {
return H.Closure_fromTearOff(receiver, functions, applyTrampolineIndex, reflectionInfo, !!isStatic, !!isIntercepted, $name);
},
BoundClosure_evalRecipe: function(closure, recipe) {
return H._Universe_evalInEnvironment(init.typeUniverse, H.instanceType(closure._self), recipe);
},
BoundClosure_evalRecipeIntercepted: function(closure, recipe) {
return H._Universe_evalInEnvironment(init.typeUniverse, H.instanceType(closure._receiver), recipe);
},
BoundClosure_selfOf: function(closure) {
return closure._self;
},
BoundClosure_receiverOf: function(closure) {
return closure._receiver;
},
BoundClosure_selfFieldName: function() {
var t1 = $.BoundClosure_selfFieldNameCache;
return t1 == null ? $.BoundClosure_selfFieldNameCache = H.BoundClosure_computeFieldNamed("self") : t1;
},
BoundClosure_computeFieldNamed: function(fieldName) {
var t1, i, $name,
template = new H.BoundClosure("self", "target", "receiver", "name"),
names = J.JSArray_markFixedList(Object.getOwnPropertyNames(template));
for (t1 = names.length, i = 0; i < t1; ++i) {
$name = names[i];
if (template[$name] === fieldName)
return $name;
}
throw H.wrapException(P.ArgumentError$("Field name " + fieldName + " not found."));
},
throwCyclicInit: function(staticName) {
throw H.wrapException(new P.CyclicInitializationError(staticName));
},
getIsolateAffinityTag: function($name) {
return init.getIsolateTag($name);
},
defineProperty: function(obj, property, value) {
Object.defineProperty(obj, property, {value: value, enumerable: false, writable: true, configurable: true});
},
lookupAndCacheInterceptor: function(obj) {
var interceptor, interceptorClass, altTag, mark, t1,
tag = $.getTagFunction.call$1(obj),
record = $.dispatchRecordsForInstanceTags[tag];
if (record != null) {
Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
return record.i;
}
interceptor = $.interceptorsForUncacheableTags[tag];
if (interceptor != null)
return interceptor;
interceptorClass = init.interceptorsByTag[tag];
if (interceptorClass == null) {
altTag = $.alternateTagFunction.call$2(obj, tag);
if (altTag != null) {
record = $.dispatchRecordsForInstanceTags[altTag];
if (record != null) {
Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
return record.i;
}
interceptor = $.interceptorsForUncacheableTags[altTag];
if (interceptor != null)
return interceptor;
interceptorClass = init.interceptorsByTag[altTag];
tag = altTag;
}
}
if (interceptorClass == null)
return null;
interceptor = interceptorClass.prototype;
mark = tag[0];
if (mark === "!") {
record = H.makeLeafDispatchRecord(interceptor);
$.dispatchRecordsForInstanceTags[tag] = record;
Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
return record.i;
}
if (mark === "~") {
$.interceptorsForUncacheableTags[tag] = interceptor;
return interceptor;
}
if (mark === "-") {
t1 = H.makeLeafDispatchRecord(interceptor);
Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
return t1.i;
}
if (mark === "+")
return H.patchInteriorProto(obj, interceptor);
if (mark === "*")
throw H.wrapException(P.UnimplementedError$(tag));
if (init.leafTags[tag] === true) {
t1 = H.makeLeafDispatchRecord(interceptor);
Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
return t1.i;
} else
return H.patchInteriorProto(obj, interceptor);
},
patchInteriorProto: function(obj, interceptor) {
var proto = Object.getPrototypeOf(obj);
Object.defineProperty(proto, init.dispatchPropertyName, {value: J.makeDispatchRecord(interceptor, proto, null, null), enumerable: false, writable: true, configurable: true});
return interceptor;
},
makeLeafDispatchRecord: function(interceptor) {
return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior);
},
makeDefaultDispatchRecord: function(tag, interceptorClass, proto) {
var interceptor = interceptorClass.prototype;
if (init.leafTags[tag] === true)
return H.makeLeafDispatchRecord(interceptor);
else
return J.makeDispatchRecord(interceptor, proto, null, null);
},
initNativeDispatch: function() {
if (true === $.initNativeDispatchFlag)
return;
$.initNativeDispatchFlag = true;
H.initNativeDispatchContinue();
},
initNativeDispatchContinue: function() {
var map, tags, fun, i, tag, proto, record, interceptorClass;
$.dispatchRecordsForInstanceTags = Object.create(null);
$.interceptorsForUncacheableTags = Object.create(null);
H.initHooks();
map = init.interceptorsByTag;
tags = Object.getOwnPropertyNames(map);
if (typeof window != "undefined") {
window;
fun = function() {
};
for (i = 0; i < tags.length; ++i) {
tag = tags[i];
proto = $.prototypeForTagFunction.call$1(tag);
if (proto != null) {
record = H.makeDefaultDispatchRecord(tag, map[tag], proto);
if (record != null) {
Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
fun.prototype = proto;
}
}
}
}
for (i = 0; i < tags.length; ++i) {
tag = tags[i];
if (/^[A-Za-z_]/.test(tag)) {
interceptorClass = map[tag];
map["!" + tag] = interceptorClass;
map["~" + tag] = interceptorClass;
map["-" + tag] = interceptorClass;
map["+" + tag] = interceptorClass;
map["*" + tag] = interceptorClass;
}
}
},
initHooks: function() {
var transformers, i, transformer, getTag, getUnknownTag, prototypeForTag,
hooks = C.C_JS_CONST0();
hooks = H.applyHooksTransformer(C.C_JS_CONST1, H.applyHooksTransformer(C.C_JS_CONST2, H.applyHooksTransformer(C.C_JS_CONST3, H.applyHooksTransformer(C.C_JS_CONST3, H.applyHooksTransformer(C.C_JS_CONST4, H.applyHooksTransformer(C.C_JS_CONST5, H.applyHooksTransformer(C.C_JS_CONST6(C.C_JS_CONST), hooks)))))));
if (typeof dartNativeDispatchHooksTransformer != "undefined") {
transformers = dartNativeDispatchHooksTransformer;
if (typeof transformers == "function")
transformers = [transformers];
if (transformers.constructor == Array)
for (i = 0; i < transformers.length; ++i) {
transformer = transformers[i];
if (typeof transformer == "function")
hooks = transformer(hooks) || hooks;
}
}
getTag = hooks.getTag;
getUnknownTag = hooks.getUnknownTag;
prototypeForTag = hooks.prototypeForTag;
$.getTagFunction = new H.initHooks_closure(getTag);
$.alternateTagFunction = new H.initHooks_closure0(getUnknownTag);
$.prototypeForTagFunction = new H.initHooks_closure1(prototypeForTag);
},
applyHooksTransformer: function(transformer, hooks) {
return transformer(hooks) || hooks;
},
JSSyntaxRegExp_makeNative: function(source, multiLine, caseSensitive, unicode, dotAll, global) {
var m = multiLine ? "m" : "",
i = caseSensitive ? "" : "i",
u = unicode ? "u" : "",
s = dotAll ? "s" : "",
g = global ? "g" : "",
regexp = function(source, modifiers) {
try {
return new RegExp(source, modifiers);
} catch (e) {
return e;
}
}(source, m + i + u + s + g);
if (regexp instanceof RegExp)
return regexp;
throw H.wrapException(P.FormatException$("Illegal RegExp pattern (" + String(regexp) + ")", source, null));
},
stringContainsUnchecked: function(receiver, other, startIndex) {
var t1, t2;
if (typeof other == "string")
return receiver.indexOf(other, startIndex) >= 0;
else if (other instanceof H.JSSyntaxRegExp) {
t1 = C.JSString_methods.substring$1(receiver, startIndex);
t2 = other._nativeRegExp;
return t2.test(t1);
} else {
t1 = J.allMatches$1$s(other, C.JSString_methods.substring$1(receiver, startIndex));
return !t1.get$isEmpty(t1);
}
},
escapeReplacement: function(replacement) {
if (replacement.indexOf("$", 0) >= 0)
return replacement.replace(/\$/g, "$$$$");
return replacement;
},
stringReplaceFirstRE: function(receiver, regexp, replacement, startIndex) {
var match = regexp._execGlobal$2(receiver, startIndex);
if (match == null)
return receiver;
return H.stringReplaceRangeUnchecked(receiver, match._match.index, match.get$end(match), replacement);
},
quoteStringForRegExp: function(string) {
if (/[[\]{}()*+?.\\^$|]/.test(string))
return string.replace(/[[\]{}()*+?.\\^$|]/g, "\\$&");
return string;
},
stringReplaceAllUnchecked: function(receiver, pattern, replacement) {
var nativeRegexp;
if (typeof pattern == "string")
return H.stringReplaceAllUncheckedString(receiver, pattern, replacement);
if (pattern instanceof H.JSSyntaxRegExp) {
nativeRegexp = pattern.get$_nativeGlobalVersion();
nativeRegexp.lastIndex = 0;
return receiver.replace(nativeRegexp, H.escapeReplacement(replacement));
}
if (pattern == null)
H.throwExpression(H.argumentErrorValue(pattern));
throw H.wrapException("String.replaceAll(Pattern) UNIMPLEMENTED");
},
stringReplaceAllUncheckedString: function(receiver, pattern, replacement) {
var $length, t1, i, index;
if (pattern === "") {
if (receiver === "")
return replacement;
$length = receiver.length;
for (t1 = replacement, i = 0; i < $length; ++i)
t1 = t1 + receiver[i] + replacement;
return t1.charCodeAt(0) == 0 ? t1 : t1;
}
index = receiver.indexOf(pattern, 0);
if (index < 0)
return receiver;
if (receiver.length < 500 || replacement.indexOf("$", 0) >= 0)
return receiver.split(pattern).join(replacement);
return receiver.replace(new RegExp(H.quoteStringForRegExp(pattern), 'g'), H.escapeReplacement(replacement));
},
stringReplaceFirstUnchecked: function(receiver, pattern, replacement, startIndex) {
var index, t1, matches, match;
if (typeof pattern == "string") {
index = receiver.indexOf(pattern, startIndex);
if (index < 0)
return receiver;
return H.stringReplaceRangeUnchecked(receiver, index, index + pattern.length, replacement);
}
if (pattern instanceof H.JSSyntaxRegExp)
return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, H.escapeReplacement(replacement)) : H.stringReplaceFirstRE(receiver, pattern, replacement, startIndex);
if (pattern == null)
H.throwExpression(H.argumentErrorValue(pattern));
t1 = J.allMatches$2$s(pattern, receiver, startIndex);
matches = t1.get$iterator(t1);
if (!matches.moveNext$0())
return receiver;
match = matches.get$current(matches);
return C.JSString_methods.replaceRange$3(receiver, match.get$start(match), match.get$end(match), replacement);
},
stringReplaceRangeUnchecked: function(receiver, start, end, replacement) {
var prefix = receiver.substring(0, start),
suffix = receiver.substring(end);
return prefix + H.S(replacement) + suffix;
},
ConstantMapView: function ConstantMapView(t0, t1) {
this._collection$_map = t0;
this.$ti = t1;
},
ConstantMap: function ConstantMap() {
},
ConstantStringMap: function ConstantStringMap(t0, t1, t2, t3) {
var _ = this;
_.__js_helper$_length = t0;
_._jsObject = t1;
_.__js_helper$_keys = t2;
_.$ti = t3;
},
ConstantStringMap_values_closure: function ConstantStringMap_values_closure(t0) {
this.$this = t0;
},
ConstantProtoMap: function ConstantProtoMap(t0, t1, t2, t3, t4) {
var _ = this;
_._protoValue = t0;
_.__js_helper$_length = t1;
_._jsObject = t2;
_.__js_helper$_keys = t3;
_.$ti = t4;
},
_ConstantMapKeyIterable: function _ConstantMapKeyIterable(t0, t1) {
this._map = t0;
this.$ti = t1;
},
Instantiation: function Instantiation() {
},
Instantiation1: function Instantiation1(t0, t1) {
this._genericClosure = t0;
this.$ti = t1;
},
JSInvocationMirror: function JSInvocationMirror(t0, t1, t2, t3, t4) {
var _ = this;
_.__js_helper$_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;
_._arguments = t1;
_._argumentsExpr = t2;
_._expr = t3;
_._method = t4;
_._receiver = t5;
},
NullError: function NullError(t0, t1) {
this.__js_helper$_message = t0;
this._method = t1;
},
JsNoSuchMethodError: function JsNoSuchMethodError(t0, t1, t2) {
this.__js_helper$_message = t0;
this._method = t1;
this._receiver = t2;
},
UnknownJsTypeError: function UnknownJsTypeError(t0) {
this.__js_helper$_message = t0;
},
NullThrownFromJavaScriptException: function NullThrownFromJavaScriptException(t0) {
this._irritant = t0;
},
ExceptionAndStackTrace: function ExceptionAndStackTrace(t0, t1) {
this.dartException = t0;
this.stackTrace = t1;
},
_StackTrace: function _StackTrace(t0) {
this._exception = t0;
this._trace = null;
},
Closure: function Closure() {
},
TearOffClosure: function TearOffClosure() {
},
StaticClosure: function StaticClosure() {
},
BoundClosure: function BoundClosure(t0, t1, t2, t3) {
var _ = this;
_._self = t0;
_._target = t1;
_._receiver = t2;
_.__js_helper$_name = t3;
},
RuntimeError: function RuntimeError(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;
_._modifications = 0;
_.$ti = t0;
},
JsLinkedHashMap_values_closure: function JsLinkedHashMap_values_closure(t0) {
this.$this = t0;
},
JsLinkedHashMap_addAll_closure: function JsLinkedHashMap_addAll_closure(t0) {
this.$this = t0;
},
LinkedHashMapCell: function LinkedHashMapCell(t0, t1) {
var _ = this;
_.hashMapCellKey = t0;
_.hashMapCellValue = t1;
_._previous = _._next = null;
},
LinkedHashMapKeyIterable: function LinkedHashMapKeyIterable(t0, t1) {
this._map = t0;
this.$ti = t1;
},
LinkedHashMapKeyIterator: function LinkedHashMapKeyIterator(t0, t1) {
var _ = this;
_._map = t0;
_._modifications = t1;
_.__js_helper$_current = _._cell = null;
},
initHooks_closure: function initHooks_closure(t0) {
this.getTag = t0;
},
initHooks_closure0: function initHooks_closure0(t0) {
this.getUnknownTag = t0;
},
initHooks_closure1: function initHooks_closure1(t0) {
this.prototypeForTag = t0;
},
JSSyntaxRegExp: function JSSyntaxRegExp(t0, t1) {
var _ = this;
_.pattern = t0;
_._nativeRegExp = t1;
_._nativeAnchoredRegExp = _._nativeGlobalRegExp = null;
},
_MatchImplementation: function _MatchImplementation(t0) {
this._match = t0;
},
_AllMatchesIterable: function _AllMatchesIterable(t0, t1, t2) {
this._re = t0;
this.__js_helper$_string = t1;
this.__js_helper$_start = t2;
},
_AllMatchesIterator: function _AllMatchesIterator(t0, t1, t2) {
var _ = this;
_._regExp = t0;
_.__js_helper$_string = t1;
_._nextIndex = t2;
_.__js_helper$_current = null;
},
StringMatch: function StringMatch(t0, t1) {
this.start = t0;
this.pattern = t1;
},
_StringAllMatchesIterable: function _StringAllMatchesIterable(t0, t1, t2) {
this._input = t0;
this._pattern = t1;
this.__js_helper$_index = t2;
},
_StringAllMatchesIterator: function _StringAllMatchesIterator(t0, t1, t2) {
var _ = this;
_._input = t0;
_._pattern = t1;
_.__js_helper$_index = t2;
_.__js_helper$_current = null;
},
_ensureNativeList: function(list) {
return list;
},
NativeInt8List__create1: function(arg) {
return new Int8Array(arg);
},
NativeUint8List_NativeUint8List$view: function(buffer, offsetInBytes, $length) {
var t1;
if (!H._isInt(offsetInBytes))
H.throwExpression(P.ArgumentError$("Invalid view offsetInBytes " + H.S(offsetInBytes)));
t1 = new Uint8Array(buffer, offsetInBytes, $length);
return t1;
},
_checkValidIndex: function(index, list, $length) {
if (index >>> 0 !== index || index >= $length)
throw H.wrapException(H.diagnoseIndexError(list, index));
},
_checkValidRange: function(start, end, $length) {
var t1;
if (!(start >>> 0 !== start))
if (end == null)
t1 = start > $length;
else
t1 = end >>> 0 !== end || start > end || end > $length;
else
t1 = true;
if (t1)
throw H.wrapException(H.diagnoseRangeError(start, end, $length));
if (end == null)
return $length;
return end;
},
NativeTypedData: function NativeTypedData() {
},
NativeTypedArray: function NativeTypedArray() {
},
NativeTypedArrayOfDouble: function NativeTypedArrayOfDouble() {
},
NativeTypedArrayOfInt: function NativeTypedArrayOfInt() {
},
NativeFloat32List: function NativeFloat32List() {
},
NativeFloat64List: function NativeFloat64List() {
},
NativeInt16List: function NativeInt16List() {
},
NativeInt32List: function NativeInt32List() {
},
NativeInt8List: function NativeInt8List() {
},
NativeUint16List: function NativeUint16List() {
},
NativeUint32List: function NativeUint32List() {
},
NativeUint8ClampedList: function NativeUint8ClampedList() {
},
NativeUint8List: function NativeUint8List() {
},
_NativeTypedArrayOfDouble_NativeTypedArray_ListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin() {
},
_NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin() {
},
_NativeTypedArrayOfInt_NativeTypedArray_ListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin() {
},
_NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin() {
},
Rti__getQuestionFromStar: function(universe, rti) {
var question = rti._precomputed1;
return question == null ? rti._precomputed1 = H._Universe__lookupQuestionRti(universe, rti._primary, true) : question;
},
Rti__getFutureFromFutureOr: function(universe, rti) {
var future = rti._precomputed1;
return future == null ? rti._precomputed1 = H._Universe__lookupInterfaceRti(universe, "Future", [rti._primary]) : future;
},
Rti__isUnionOfFunctionType: function(rti) {
var kind = rti._kind;
if (kind === 6 || kind === 7 || kind === 8)
return H.Rti__isUnionOfFunctionType(rti._primary);
return kind === 11 || kind === 12;
},
Rti__getCanonicalRecipe: function(rti) {
return rti._canonicalRecipe;
},
findType: function(recipe) {
return H._Universe_eval(init.typeUniverse, recipe, false);
},
instantiatedGenericFunctionType: function(genericFunctionRti, instantiationRti) {
var t1, cache, key, probe, rti;
if (genericFunctionRti == null)
return null;
t1 = instantiationRti._rest;
cache = genericFunctionRti._bindCache;
if (cache == null)
cache = genericFunctionRti._bindCache = new Map();
key = instantiationRti._canonicalRecipe;
probe = cache.get(key);
if (probe != null)
return probe;
rti = H._substitute(init.typeUniverse, genericFunctionRti._primary, t1, 0);
cache.set(key, rti);
return rti;
},
_substitute: function(universe, rti, typeArguments, depth) {
var baseType, substitutedBaseType, interfaceTypeArguments, substitutedInterfaceTypeArguments, base, substitutedBase, $arguments, substitutedArguments, returnType, substitutedReturnType, functionParameters, substitutedFunctionParameters, bounds, substitutedBounds, index, argument,
kind = rti._kind;
switch (kind) {
case 5:
case 1:
case 2:
case 3:
case 4:
return rti;
case 6:
baseType = rti._primary;
substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
if (substitutedBaseType === baseType)
return rti;
return H._Universe__lookupStarRti(universe, substitutedBaseType, true);
case 7:
baseType = rti._primary;
substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
if (substitutedBaseType === baseType)
return rti;
return H._Universe__lookupQuestionRti(universe, substitutedBaseType, true);
case 8:
baseType = rti._primary;
substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
if (substitutedBaseType === baseType)
return rti;
return H._Universe__lookupFutureOrRti(universe, substitutedBaseType, true);
case 9:
interfaceTypeArguments = rti._rest;
substitutedInterfaceTypeArguments = H._substituteArray(universe, interfaceTypeArguments, typeArguments, depth);
if (substitutedInterfaceTypeArguments === interfaceTypeArguments)
return rti;
return H._Universe__lookupInterfaceRti(universe, rti._primary, substitutedInterfaceTypeArguments);
case 10:
base = rti._primary;
substitutedBase = H._substitute(universe, base, typeArguments, depth);
$arguments = rti._rest;
substitutedArguments = H._substituteArray(universe, $arguments, typeArguments, depth);
if (substitutedBase === base && substitutedArguments === $arguments)
return rti;
return H._Universe__lookupBindingRti(universe, substitutedBase, substitutedArguments);
case 11:
returnType = rti._primary;
substitutedReturnType = H._substitute(universe, returnType, typeArguments, depth);
functionParameters = rti._rest;
substitutedFunctionParameters = H._substituteFunctionParameters(universe, functionParameters, typeArguments, depth);
if (substitutedReturnType === returnType && substitutedFunctionParameters === functionParameters)
return rti;
return H._Universe__lookupFunctionRti(universe, substitutedReturnType, substitutedFunctionParameters);
case 12:
bounds = rti._rest;
depth += bounds.length;
substitutedBounds = H._substituteArray(universe, bounds, typeArguments, depth);
base = rti._primary;
substitutedBase = H._substitute(universe, base, typeArguments, depth);
if (substitutedBounds === bounds && substitutedBase === base)
return rti;
return H._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, true);
case 13:
index = rti._primary;
if (index < depth)
return rti;
argument = typeArguments[index - depth];
if (argument == null)
return rti;
return argument;
default:
throw H.wrapException(P.AssertionError$("Attempted to substitute unexpected RTI kind " + kind));
}
},
_substituteArray: function(universe, rtiArray, typeArguments, depth) {
var changed, i, rti, substitutedRti,
$length = rtiArray.length,
result = [];
for (changed = false, i = 0; i < $length; ++i) {
rti = rtiArray[i];
substitutedRti = H._substitute(universe, rti, typeArguments, depth);
if (substitutedRti !== rti)
changed = true;
result.push(substitutedRti);
}
return changed ? result : rtiArray;
},
_substituteNamed: function(universe, namedArray, typeArguments, depth) {
var changed, i, t1, t2, rti, substitutedRti,
$length = namedArray.length,
result = [];
for (changed = false, i = 0; i < $length; i += 3) {
t1 = namedArray[i];
t2 = namedArray[i + 1];
rti = namedArray[i + 2];
substitutedRti = H._substitute(universe, rti, typeArguments, depth);
if (substitutedRti !== rti)
changed = true;
result.push(t1);
result.push(t2);
result.push(substitutedRti);
}
return changed ? result : namedArray;
},
_substituteFunctionParameters: function(universe, functionParameters, typeArguments, depth) {
var result,
requiredPositional = functionParameters._requiredPositional,
substitutedRequiredPositional = H._substituteArray(universe, requiredPositional, typeArguments, depth),
optionalPositional = functionParameters._optionalPositional,
substitutedOptionalPositional = H._substituteArray(universe, optionalPositional, typeArguments, depth),
named = functionParameters._named,
substitutedNamed = H._substituteNamed(universe, named, typeArguments, depth);
if (substitutedRequiredPositional === requiredPositional && substitutedOptionalPositional === optionalPositional && substitutedNamed === named)
return functionParameters;
result = new H._FunctionParameters();
result._requiredPositional = substitutedRequiredPositional;
result._optionalPositional = substitutedOptionalPositional;
result._named = substitutedNamed;
return result;
},
setRuntimeTypeInfo: function(target, rti) {
target[init.arrayRti] = rti;
return target;
},
closureFunctionType: function(closure) {
var signature = closure.$signature;
if (signature != null) {
if (typeof signature == "number")
return H.getTypeFromTypesTable(signature);
return closure.$signature();
}
return null;
},
instanceOrFunctionType: function(object, testRti) {
var rti;
if (H.Rti__isUnionOfFunctionType(testRti))
if (object instanceof H.Closure) {
rti = H.closureFunctionType(object);
if (rti != null)
return rti;
}
return H.instanceType(object);
},
instanceType: function(object) {
var rti;
if (object instanceof P.Object) {
rti = object.$ti;
return rti != null ? rti : H._instanceTypeFromConstructor(object);
}
if (Array.isArray(object))
return H._arrayInstanceType(object);
return H._instanceTypeFromConstructor(J.getInterceptor$(object));
},
_arrayInstanceType: function(object) {
var rti = object[init.arrayRti],
defaultRti = type$.JSArray_dynamic;
if (rti == null)
return defaultRti;
if (rti.constructor !== defaultRti.constructor)
return defaultRti;
return rti;
},
_instanceType: function(object) {
var rti = object.$ti;
return rti != null ? rti : H._instanceTypeFromConstructor(object);
},
_instanceTypeFromConstructor: function(instance) {
var $constructor = instance.constructor,
probe = $constructor.$ccache;
if (probe != null)
return probe;
return H._instanceTypeFromConstructorMiss(instance, $constructor);
},
_instanceTypeFromConstructorMiss: function(instance, $constructor) {
var effectiveConstructor = instance instanceof H.Closure ? instance.__proto__.__proto__.constructor : $constructor,
rti = H._Universe_findErasedType(init.typeUniverse, effectiveConstructor.name);
$constructor.$ccache = rti;
return rti;
},
getTypeFromTypesTable: function(index) {
var rti,
table = init.types,
type = table[index];
if (typeof type == "string") {
rti = H._Universe_eval(init.typeUniverse, type, false);
table[index] = rti;
return rti;
}
return type;
},
getRuntimeType: function(object) {
var rti = object instanceof H.Closure ? H.closureFunctionType(object) : null;
return H.createRuntimeType(rti == null ? H.instanceType(object) : rti);
},
createRuntimeType: function(rti) {
var recipe, starErasedRecipe, starErasedRti,
type = rti._cachedRuntimeType;
if (type != null)
return type;
recipe = rti._canonicalRecipe;
starErasedRecipe = recipe.replace(/\*/g, "");
if (starErasedRecipe === recipe)
return rti._cachedRuntimeType = new H._Type(rti);
starErasedRti = H._Universe_eval(init.typeUniverse, starErasedRecipe, true);
type = starErasedRti._cachedRuntimeType;
return rti._cachedRuntimeType = type == null ? starErasedRti._cachedRuntimeType = new H._Type(starErasedRti) : type;
},
typeLiteral: function(recipe) {
return H.createRuntimeType(H._Universe_eval(init.typeUniverse, recipe, false));
},
_installSpecializedIsTest: function(object) {
var unstarred, isFn, testRti = this,
t1 = type$.Object;
if (testRti === t1)
return H._finishIsFn(testRti, object, H._isObject);
if (!H.isStrongTopType(testRti))
if (!(testRti === type$.legacy_Object))
t1 = testRti === t1;
else
t1 = true;
else
t1 = true;
if (t1)
return H._finishIsFn(testRti, object, H._isTop);
t1 = testRti._kind;
unstarred = t1 === 6 ? testRti._primary : testRti;
if (unstarred === type$.int)
isFn = H._isInt;
else if (unstarred === type$.double || unstarred === type$.num)
isFn = H._isNum;
else if (unstarred === type$.String)
isFn = H._isString;
else
isFn = unstarred === type$.bool ? H._isBool : null;
if (isFn != null)
return H._finishIsFn(testRti, object, isFn);
if (unstarred._kind === 9) {
t1 = unstarred._primary;
if (unstarred._rest.every(H.isTopType)) {
testRti._specializedTestResource = "$is" + t1;
return H._finishIsFn(testRti, object, H._isTestViaProperty);
}
} else if (t1 === 7)
return H._finishIsFn(testRti, object, H._generalNullableIsTestImplementation);
return H._finishIsFn(testRti, object, H._generalIsTestImplementation);
},
_finishIsFn: function(testRti, object, isFn) {
testRti._is = isFn;
return testRti._is(object);
},
_installSpecializedAsCheck: function(object) {
var t1, asFn, testRti = this;
if (!H.isStrongTopType(testRti))
if (!(testRti === type$.legacy_Object))
t1 = testRti === type$.Object;
else
t1 = true;
else
t1 = true;
if (t1)
asFn = H._asTop;
else if (testRti === type$.Object)
asFn = H._asObject;
else
asFn = H._generalNullableAsCheckImplementation;
testRti._as = asFn;
return testRti._as(object);
},
_nullIs: function(testRti) {
var t2,
t1 = testRti._kind;
if (!H.isStrongTopType(testRti))
if (!(testRti === type$.legacy_Object))
t2 = testRti === type$.Object;
else
t2 = true;
else
t2 = true;
return t2 || testRti === type$.legacy_Never || t1 === 7 || testRti === type$.Null || testRti === type$.JSNull;
},
_generalIsTestImplementation: function(object) {
var testRti = this;
if (object == null)
return H._nullIs(testRti);
return H._isSubtype(init.typeUniverse, H.instanceOrFunctionType(object, testRti), null, testRti, null);
},
_generalNullableIsTestImplementation: function(object) {
if (object == null)
return true;
return this._primary._is(object);
},
_isTestViaProperty: function(object) {
var t1 = this,
tag = t1._specializedTestResource;
if (object instanceof P.Object)
return !!object[tag];
return !!J.getInterceptor$(object)[tag];
},
_generalAsCheckImplementation: function(object) {
var testRti = this;
if (object == null)
return object;
else if (testRti._is(object))
return object;
H._failedAsCheck(object, testRti);
},
_generalNullableAsCheckImplementation: function(object) {
var testRti = this;
if (object == null)
return object;
else if (testRti._is(object))
return object;
H._failedAsCheck(object, testRti);
},
_failedAsCheck: function(object, testRti) {
throw H.wrapException(H._TypeError$fromMessage(H._Error_compose(object, H.instanceOrFunctionType(object, testRti), H._rtiToString(testRti, null))));
},
_Error_compose: function(object, objectRti, checkedTypeDescription) {
var objectDescription = P.Error_safeToString(object),
objectTypeDescription = H._rtiToString(objectRti == null ? H.instanceType(object) : objectRti, null);
return objectDescription + ": type '" + H.S(objectTypeDescription) + "' is not a subtype of type '" + H.S(checkedTypeDescription) + "'";
},
_TypeError$fromMessage: function(message) {
return new H._TypeError("TypeError: " + message);
},
_TypeError__TypeError$forType: function(object, type) {
return new H._TypeError("TypeError: " + H._Error_compose(object, null, type));
},
_isObject: function(object) {
return object != null;
},
_asObject: function(object) {
return object;
},
_isTop: function(object) {
return true;
},
_asTop: function(object) {
return object;
},
_isBool: function(object) {
return true === object || false === object;
},
_asBool: function(object) {
if (true === object)
return true;
if (false === object)
return false;
throw H.wrapException(H._TypeError__TypeError$forType(object, "bool"));
},
_asBoolS: function(object) {
if (true === object)
return true;
if (false === object)
return false;
if (object == null)
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "bool"));
},
_asBoolQ: function(object) {
if (true === object)
return true;
if (false === object)
return false;
if (object == null)
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "bool?"));
},
_asDouble: function(object) {
if (typeof object == "number")
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "double"));
},
_asDoubleS: function(object) {
if (typeof object == "number")
return object;
if (object == null)
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "double"));
},
_asDoubleQ: function(object) {
if (typeof object == "number")
return object;
if (object == null)
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "double?"));
},
_isInt: function(object) {
return typeof object == "number" && Math.floor(object) === object;
},
_asInt: function(object) {
if (typeof object == "number" && Math.floor(object) === object)
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "int"));
},
_asIntS: function(object) {
if (typeof object == "number" && Math.floor(object) === object)
return object;
if (object == null)
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "int"));
},
_asIntQ: function(object) {
if (typeof object == "number" && Math.floor(object) === object)
return object;
if (object == null)
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "int?"));
},
_isNum: function(object) {
return typeof object == "number";
},
_asNum: function(object) {
if (typeof object == "number")
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "num"));
},
_asNumS: function(object) {
if (typeof object == "number")
return object;
if (object == null)
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "num"));
},
_asNumQ: function(object) {
if (typeof object == "number")
return object;
if (object == null)
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "num?"));
},
_isString: function(object) {
return typeof object == "string";
},
_asString: function(object) {
if (typeof object == "string")
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "String"));
},
_asStringS: function(object) {
if (typeof object == "string")
return object;
if (object == null)
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "String"));
},
_asStringQ: function(object) {
if (typeof object == "string")
return object;
if (object == null)
return object;
throw H.wrapException(H._TypeError__TypeError$forType(object, "String?"));
},
_rtiArrayToString: function(array, genericContext) {
var s, sep, i;
for (s = "", sep = "", i = 0; i < array.length; ++i, sep = ", ")
s += C.JSString_methods.$add(sep, H._rtiToString(array[i], genericContext));
return s;
},
_functionRtiToString: function(functionType, genericContext, bounds) {
var boundsLength, outerContextLength, offset, i, t1, t2, t3, typeParametersText, typeSep, boundRti, kind, t4, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, named, namedLength, returnTypeText, argumentsText, sep, _s2_ = ", ";
if (bounds != null) {
boundsLength = bounds.length;
if (genericContext == null) {
genericContext = H.setRuntimeTypeInfo([], type$.JSArray_String);
outerContextLength = null;
} else
outerContextLength = genericContext.length;
offset = genericContext.length;
for (i = boundsLength; i > 0; --i)
genericContext.push("T" + (offset + i));
for (t1 = type$.nullable_Object, t2 = type$.legacy_Object, t3 = type$.Object, typeParametersText = "<", typeSep = "", i = 0; i < boundsLength; ++i, typeSep = _s2_) {
typeParametersText = C.JSString_methods.$add(typeParametersText + typeSep, genericContext[genericContext.length - 1 - i]);
boundRti = bounds[i];
kind = boundRti._kind;
if (!(kind === 2 || kind === 3 || kind === 4 || kind === 5 || boundRti === t1))
if (!(boundRti === t2))
t4 = boundRti === t3;
else
t4 = true;
else
t4 = true;
if (!t4)
typeParametersText += C.JSString_methods.$add(" extends ", H._rtiToString(boundRti, genericContext));
}
typeParametersText += ">";
} else {
typeParametersText = "";
outerContextLength = null;
}
t1 = functionType._primary;
parameters = functionType._rest;
requiredPositional = parameters._requiredPositional;
requiredPositionalLength = requiredPositional.length;
optionalPositional = parameters._optionalPositional;
optionalPositionalLength = optionalPositional.length;
named = parameters._named;
namedLength = named.length;
returnTypeText = H._rtiToString(t1, genericContext);
for (argumentsText = "", sep = "", i = 0; i < requiredPositionalLength; ++i, sep = _s2_)
argumentsText += C.JSString_methods.$add(sep, H._rtiToString(requiredPositional[i], genericContext));
if (optionalPositionalLength > 0) {
argumentsText += sep + "[";
for (sep = "", i = 0; i < optionalPositionalLength; ++i, sep = _s2_)
argumentsText += C.JSString_methods.$add(sep, H._rtiToString(optionalPositional[i], genericContext));
argumentsText += "]";
}
if (namedLength > 0) {
argumentsText += sep + "{";
for (sep = "", i = 0; i < namedLength; i += 3, sep = _s2_) {
argumentsText += sep;
if (named[i + 1])
argumentsText += "required ";
argumentsText += J.$add$ansx(H._rtiToString(named[i + 2], genericContext), " ") + named[i];
}
argumentsText += "}";
}
if (outerContextLength != null) {
genericContext.toString;
genericContext.length = outerContextLength;
}
return typeParametersText + "(" + argumentsText + ") => " + H.S(returnTypeText);
},
_rtiToString: function(rti, genericContext) {
var s, questionArgument, argumentKind, $name, $arguments, t1,
kind = rti._kind;
if (kind === 5)
return "erased";
if (kind === 2)
return "dynamic";
if (kind === 3)
return "void";
if (kind === 1)
return "Never";
if (kind === 4)
return "any";
if (kind === 6) {
s = H._rtiToString(rti._primary, genericContext);
return s;
}
if (kind === 7) {
questionArgument = rti._primary;
s = H._rtiToString(questionArgument, genericContext);
argumentKind = questionArgument._kind;
return J.$add$ansx(argumentKind === 11 || argumentKind === 12 ? C.JSString_methods.$add("(", s) + ")" : s, "?");
}
if (kind === 8)
return "FutureOr<" + H.S(H._rtiToString(rti._primary, genericContext)) + ">";
if (kind === 9) {
$name = H._unminifyOrTag(rti._primary);
$arguments = rti._rest;
return $arguments.length !== 0 ? $name + ("<" + H._rtiArrayToString($arguments, genericContext) + ">") : $name;
}
if (kind === 11)
return H._functionRtiToString(rti, genericContext, null);
if (kind === 12)
return H._functionRtiToString(rti._primary, genericContext, rti._rest);
if (kind === 13) {
genericContext.toString;
t1 = rti._primary;
return genericContext[genericContext.length - 1 - t1];
}
return "?";
},
_unminifyOrTag: function(rawClassName) {
var preserved = H.unmangleGlobalNameIfPreservedAnyways(rawClassName);
if (preserved != null)
return preserved;
return rawClassName;
},
_Universe_findRule: function(universe, targetType) {
var rule = universe.tR[targetType];
for (; typeof rule == "string";)
rule = universe.tR[rule];
return rule;
},
_Universe_findErasedType: function(universe, cls) {
var $length, erased, $arguments, i, $interface,
metadata = universe.eT,
probe = metadata[cls];
if (probe == null)
return H._Universe_eval(universe, cls, false);
else if (typeof probe == "number") {
$length = probe;
erased = H._Universe__lookupTerminalRti(universe, 5, "#");
$arguments = [];
for (i = 0; i < $length; ++i)
$arguments.push(erased);
$interface = H._Universe__lookupInterfaceRti(universe, cls, $arguments);
metadata[cls] = $interface;
return $interface;
} else
return probe;
},
_Universe_addRules: function(universe, rules) {
return H._Utils_objectAssign(universe.tR, rules);
},
_Universe_addErasedTypes: function(universe, types) {
return H._Utils_objectAssign(universe.eT, types);
},
_Universe_eval: function(universe, recipe, normalize) {
var rti,
cache = universe.eC,
probe = cache.get(recipe);
if (probe != null)
return probe;
rti = H._Parser_parse(H._Parser_create(universe, null, recipe, normalize));
cache.set(recipe, rti);
return rti;
},
_Universe_evalInEnvironment: function(universe, environment, recipe) {
var probe, rti,
cache = environment._evalCache;
if (cache == null)
cache = environment._evalCache = new Map();
probe = cache.get(recipe);
if (probe != null)
return probe;
rti = H._Parser_parse(H._Parser_create(universe, environment, recipe, true));
cache.set(recipe, rti);
return rti;
},
_Universe_bind: function(universe, environment, argumentsRti) {
var argumentsRecipe, probe, rti,
cache = environment._bindCache;
if (cache == null)
cache = environment._bindCache = new Map();
argumentsRecipe = argumentsRti._canonicalRecipe;
probe = cache.get(argumentsRecipe);
if (probe != null)
return probe;
rti = H._Universe__lookupBindingRti(universe, environment, argumentsRti._kind === 10 ? argumentsRti._rest : [argumentsRti]);
cache.set(argumentsRecipe, rti);
return rti;
},
_Universe__installTypeTests: function(universe, rti) {
rti._as = H._installSpecializedAsCheck;
rti._is = H._installSpecializedIsTest;
return rti;
},
_Universe__lookupTerminalRti: function(universe, kind, key) {
var rti, t1,
probe = universe.eC.get(key);
if (probe != null)
return probe;
rti = new H.Rti(null, null);
rti._kind = kind;
rti._canonicalRecipe = key;
t1 = H._Universe__installTypeTests(universe, rti);
universe.eC.set(key, t1);
return t1;
},
_Universe__lookupStarRti: function(universe, baseType, normalize) {
var t1,
key = baseType._canonicalRecipe + "*",
probe = universe.eC.get(key);
if (probe != null)
return probe;
t1 = H._Universe__createStarRti(universe, baseType, key, normalize);
universe.eC.set(key, t1);
return t1;
},
_Universe__createStarRti: function(universe, baseType, key, normalize) {
var baseKind, t1, rti;
if (normalize) {
baseKind = baseType._kind;
if (!H.isStrongTopType(baseType))
t1 = baseType === type$.Null || baseType === type$.JSNull || baseKind === 7 || baseKind === 6;
else
t1 = true;
if (t1)
return baseType;
}
rti = new H.Rti(null, null);
rti._kind = 6;
rti._primary = baseType;
rti._canonicalRecipe = key;
return H._Universe__installTypeTests(universe, rti);
},
_Universe__lookupQuestionRti: function(universe, baseType, normalize) {
var t1,
key = baseType._canonicalRecipe + "?",
probe = universe.eC.get(key);
if (probe != null)
return probe;
t1 = H._Universe__createQuestionRti(universe, baseType, key, normalize);
universe.eC.set(key, t1);
return t1;
},
_Universe__createQuestionRti: function(universe, baseType, key, normalize) {
var baseKind, t1, starArgument, rti;
if (normalize) {
baseKind = baseType._kind;
if (!H.isStrongTopType(baseType))
if (!(baseType === type$.Null || baseType === type$.JSNull))
if (baseKind !== 7)
t1 = baseKind === 8 && H.isNullable(baseType._primary);
else
t1 = true;
else
t1 = true;
else
t1 = true;
if (t1)
return baseType;
else if (baseKind === 1 || baseType === type$.legacy_Never)
return type$.Null;
else if (baseKind === 6) {
starArgument = baseType._primary;
if (starArgument._kind === 8 && H.isNullable(starArgument._primary))
return starArgument;
else
return H.Rti__getQuestionFromStar(universe, baseType);
}
}
rti = new H.Rti(null, null);
rti._kind = 7;
rti._primary = baseType;
rti._canonicalRecipe = key;
return H._Universe__installTypeTests(universe, rti);
},
_Universe__lookupFutureOrRti: function(universe, baseType, normalize) {
var t1,
key = baseType._canonicalRecipe + "/",
probe = universe.eC.get(key);
if (probe != null)
return probe;
t1 = H._Universe__createFutureOrRti(universe, baseType, key, normalize);
universe.eC.set(key, t1);
return t1;
},
_Universe__createFutureOrRti: function(universe, baseType, key, normalize) {
var t1, t2, rti;
if (normalize) {
t1 = baseType._kind;
if (!H.isStrongTopType(baseType))
if (!(baseType === type$.legacy_Object))
t2 = baseType === type$.Object;
else
t2 = true;
else
t2 = true;
if (t2 || baseType === type$.Object)
return baseType;
else if (t1 === 1)
return H._Universe__lookupInterfaceRti(universe, "Future", [baseType]);
else if (baseType === type$.Null || baseType === type$.JSNull)
return type$.nullable_Future_Null;
}
rti = new H.Rti(null, null);
rti._kind = 8;
rti._primary = baseType;
rti._canonicalRecipe = key;
return H._Universe__installTypeTests(universe, rti);
},
_Universe__lookupGenericFunctionParameterRti: function(universe, index) {
var rti, t1,
key = "" + index + "^",
probe = universe.eC.get(key);
if (probe != null)
return probe;
rti = new H.Rti(null, null);
rti._kind = 13;
rti._primary = index;
rti._canonicalRecipe = key;
t1 = H._Universe__installTypeTests(universe, rti);
universe.eC.set(key, t1);
return t1;
},
_Universe__canonicalRecipeJoin: function($arguments) {
var s, sep, i,
$length = $arguments.length;
for (s = "", sep = "", i = 0; i < $length; ++i, sep = ",")
s += sep + $arguments[i]._canonicalRecipe;
return s;
},
_Universe__canonicalRecipeJoinNamed: function($arguments) {
var s, sep, i, t1, nameSep, s0,
$length = $arguments.length;
for (s = "", sep = "", i = 0; i < $length; i += 3, sep = ",") {
t1 = $arguments[i];
nameSep = $arguments[i + 1] ? "!" : ":";
s0 = $arguments[i + 2]._canonicalRecipe;
s += sep + t1 + nameSep + s0;
}
return s;
},
_Universe__lookupInterfaceRti: function(universe, $name, $arguments) {
var probe, rti, t1,
s = $name;
if ($arguments.length !== 0)
s += "<" + H._Universe__canonicalRecipeJoin($arguments) + ">";
probe = universe.eC.get(s);
if (probe != null)
return probe;
rti = new H.Rti(null, null);
rti._kind = 9;
rti._primary = $name;
rti._rest = $arguments;
if ($arguments.length > 0)
rti._precomputed1 = $arguments[0];
rti._canonicalRecipe = s;
t1 = H._Universe__installTypeTests(universe, rti);
universe.eC.set(s, t1);
return t1;
},
_Universe__lookupBindingRti: function(universe, base, $arguments) {
var newBase, newArguments, key, probe, rti, t1;
if (base._kind === 10) {
newBase = base._primary;
newArguments = base._rest.concat($arguments);
} else {
newArguments = $arguments;
newBase = base;
}
key = newBase._canonicalRecipe + (";<" + H._Universe__canonicalRecipeJoin(newArguments) + ">");
probe = universe.eC.get(key);
if (probe != null)
return probe;
rti = new H.Rti(null, null);
rti._kind = 10;
rti._primary = newBase;
rti._rest = newArguments;
rti._canonicalRecipe = key;
t1 = H._Universe__installTypeTests(universe, rti);
universe.eC.set(key, t1);
return t1;
},
_Universe__lookupFunctionRti: function(universe, returnType, parameters) {
var sep, t1, key, probe, rti,
s = returnType._canonicalRecipe,
requiredPositional = parameters._requiredPositional,
requiredPositionalLength = requiredPositional.length,
optionalPositional = parameters._optionalPositional,
optionalPositionalLength = optionalPositional.length,
named = parameters._named,
namedLength = named.length,
recipe = "(" + H._Universe__canonicalRecipeJoin(requiredPositional);
if (optionalPositionalLength > 0) {
sep = requiredPositionalLength > 0 ? "," : "";
t1 = H._Universe__canonicalRecipeJoin(optionalPositional);
recipe += sep + "[" + t1 + "]";
}
if (namedLength > 0) {
sep = requiredPositionalLength > 0 ? "," : "";
t1 = H._Universe__canonicalRecipeJoinNamed(named);
recipe += sep + "{" + t1 + "}";
}
key = s + (recipe + ")");
probe = universe.eC.get(key);
if (probe != null)
return probe;
rti = new H.Rti(null, null);
rti._kind = 11;
rti._primary = returnType;
rti._rest = parameters;
rti._canonicalRecipe = key;
t1 = H._Universe__installTypeTests(universe, rti);
universe.eC.set(key, t1);
return t1;
},
_Universe__lookupGenericFunctionRti: function(universe, baseFunctionType, bounds, normalize) {
var t1,
key = baseFunctionType._canonicalRecipe + ("<" + H._Universe__canonicalRecipeJoin(bounds) + ">"),
probe = universe.eC.get(key);
if (probe != null)
return probe;
t1 = H._Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize);
universe.eC.set(key, t1);
return t1;
},
_Universe__createGenericFunctionRti: function(universe, baseFunctionType, bounds, key, normalize) {
var $length, typeArguments, count, i, bound, substitutedBase, substitutedBounds, rti;
if (normalize) {
$length = bounds.length;
typeArguments = new Array($length);
for (count = 0, i = 0; i < $length; ++i) {
bound = bounds[i];
if (bound._kind === 1) {
typeArguments[i] = bound;
++count;
}
}
if (count > 0) {
substitutedBase = H._substitute(universe, baseFunctionType, typeArguments, 0);
substitutedBounds = H._substituteArray(universe, bounds, typeArguments, 0);
return H._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, bounds !== substitutedBounds);
}
}
rti = new H.Rti(null, null);
rti._kind = 12;
rti._primary = baseFunctionType;
rti._rest = bounds;
rti._canonicalRecipe = key;
return H._Universe__installTypeTests(universe, rti);
},
_Parser_create: function(universe, environment, recipe, normalize) {
return {u: universe, e: environment, r: recipe, s: [], p: 0, n: normalize};
},
_Parser_parse: function(parser) {
var t1, i, ch, universe, array, head, base, u, parameters, optionalPositional, named, item,
source = parser.r,
stack = parser.s;
for (t1 = source.length, i = 0; i < t1;) {
ch = source.charCodeAt(i);
if (ch >= 48 && ch <= 57)
i = H._Parser_handleDigit(i + 1, ch, source, stack);
else if ((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36)
i = H._Parser_handleIdentifier(parser, i, source, stack, false);
else if (ch === 46)
i = H._Parser_handleIdentifier(parser, i, source, stack, true);
else {
++i;
switch (ch) {
case 44:
break;
case 58:
stack.push(false);
break;
case 33:
stack.push(true);
break;
case 59:
stack.push(H._Parser_toType(parser.u, parser.e, stack.pop()));
break;
case 94:
stack.push(H._Universe__lookupGenericFunctionParameterRti(parser.u, stack.pop()));
break;
case 35:
stack.push(H._Universe__lookupTerminalRti(parser.u, 5, "#"));
break;
case 64:
stack.push(H._Universe__lookupTerminalRti(parser.u, 2, "@"));
break;
case 126:
stack.push(H._Universe__lookupTerminalRti(parser.u, 3, "~"));
break;
case 60:
stack.push(parser.p);
parser.p = stack.length;
break;
case 62:
universe = parser.u;
array = stack.splice(parser.p);
H._Parser_toTypes(parser.u, parser.e, array);
parser.p = stack.pop();
head = stack.pop();
if (typeof head == "string")
stack.push(H._Universe__lookupInterfaceRti(universe, head, array));
else {
base = H._Parser_toType(universe, parser.e, head);
switch (base._kind) {
case 11:
stack.push(H._Universe__lookupGenericFunctionRti(universe, base, array, parser.n));
break;
default:
stack.push(H._Universe__lookupBindingRti(universe, base, array));
break;
}
}
break;
case 38:
H._Parser_handleExtendedOperations(parser, stack);
break;
case 42:
u = parser.u;
stack.push(H._Universe__lookupStarRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
break;
case 63:
u = parser.u;
stack.push(H._Universe__lookupQuestionRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
break;
case 47:
u = parser.u;
stack.push(H._Universe__lookupFutureOrRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
break;
case 40:
stack.push(parser.p);
parser.p = stack.length;
break;
case 41:
universe = parser.u;
parameters = new H._FunctionParameters();
optionalPositional = universe.sEA;
named = universe.sEA;
head = stack.pop();
if (typeof head == "number")
switch (head) {
case -1:
optionalPositional = stack.pop();
break;
case -2:
named = stack.pop();
break;
default:
stack.push(head);
break;
}
else
stack.push(head);
array = stack.splice(parser.p);
H._Parser_toTypes(parser.u, parser.e, array);
parser.p = stack.pop();
parameters._requiredPositional = array;
parameters._optionalPositional = optionalPositional;
parameters._named = named;
stack.push(H._Universe__lookupFunctionRti(universe, H._Parser_toType(universe, parser.e, stack.pop()), parameters));
break;
case 91:
stack.push(parser.p);
parser.p = stack.length;
break;
case 93:
array = stack.splice(parser.p);
H._Parser_toTypes(parser.u, parser.e, array);
parser.p = stack.pop();
stack.push(array);
stack.push(-1);
break;
case 123:
stack.push(parser.p);
parser.p = stack.length;
break;
case 125:
array = stack.splice(parser.p);
H._Parser_toTypesNamed(parser.u, parser.e, array);
parser.p = stack.pop();
stack.push(array);
stack.push(-2);
break;
default:
throw "Bad character " + ch;
}
}
}
item = stack.pop();
return H._Parser_toType(parser.u, parser.e, item);
},
_Parser_handleDigit: function(i, digit, source, stack) {
var t1, ch,
value = digit - 48;
for (t1 = source.length; i < t1; ++i) {
ch = source.charCodeAt(i);
if (!(ch >= 48 && ch <= 57))
break;
value = value * 10 + (ch - 48);
}
stack.push(value);
return i;
},
_Parser_handleIdentifier: function(parser, start, source, stack, hasPeriod) {
var t1, ch, t2, string, environment, recipe,
i = start + 1;
for (t1 = source.length; i < t1; ++i) {
ch = source.charCodeAt(i);
if (ch === 46) {
if (hasPeriod)
break;
hasPeriod = true;
} else {
if (!((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36))
t2 = ch >= 48 && ch <= 57;
else
t2 = true;
if (!t2)
break;
}
}
string = source.substring(start, i);
if (hasPeriod) {
t1 = parser.u;
environment = parser.e;
if (environment._kind === 10)
environment = environment._primary;
recipe = H._Universe_findRule(t1, environment._primary)[string];
if (recipe == null)
H.throwExpression('No "' + string + '" in "' + H.Rti__getCanonicalRecipe(environment) + '"');
stack.push(H._Universe_evalInEnvironment(t1, environment, recipe));
} else
stack.push(string);
return i;
},
_Parser_handleExtendedOperations: function(parser, stack) {
var $top = stack.pop();
if (0 === $top) {
stack.push(H._Universe__lookupTerminalRti(parser.u, 1, "0&"));
return;
}
if (1 === $top) {
stack.push(H._Universe__lookupTerminalRti(parser.u, 4, "1&"));
return;
}
throw H.wrapException(P.AssertionError$("Unexpected extended operation " + H.S($top)));
},
_Parser_toType: function(universe, environment, item) {
if (typeof item == "string")
return H._Universe__lookupInterfaceRti(universe, item, universe.sEA);
else if (typeof item == "number")
return H._Parser_indexToType(universe, environment, item);
else
return item;
},
_Parser_toTypes: function(universe, environment, items) {
var i,
$length = items.length;
for (i = 0; i < $length; ++i)
items[i] = H._Parser_toType(universe, environment, items[i]);
},
_Parser_toTypesNamed: function(universe, environment, items) {
var i,
$length = items.length;
for (i = 2; i < $length; i += 3)
items[i] = H._Parser_toType(universe, environment, items[i]);
},
_Parser_indexToType: function(universe, environment, index) {
var typeArguments, len,
kind = environment._kind;
if (kind === 10) {
if (index === 0)
return environment._primary;
typeArguments = environment._rest;
len = typeArguments.length;
if (index <= len)
return typeArguments[index - 1];
index -= len;
environment = environment._primary;
kind = environment._kind;
} else if (index === 0)
return environment;
if (kind !== 9)
throw H.wrapException(P.AssertionError$("Indexed base must be an interface type"));
typeArguments = environment._rest;
if (index <= typeArguments.length)
return typeArguments[index - 1];
throw H.wrapException(P.AssertionError$("Bad index " + index + " for " + environment.toString$0(0)));
},
_isSubtype: function(universe, s, sEnv, t, tEnv) {
var t1, sKind, leftTypeVariable, tKind, sBounds, tBounds, sLength, i, sBound, tBound;
if (s === t)
return true;
if (!H.isStrongTopType(t))
if (!(t === type$.legacy_Object))
t1 = t === type$.Object;
else
t1 = true;
else
t1 = true;
if (t1)
return true;
sKind = s._kind;
if (sKind === 4)
return true;
if (H.isStrongTopType(s))
return false;
if (s._kind !== 1)
t1 = s === type$.Null || s === type$.JSNull;
else
t1 = true;
if (t1)
return true;
leftTypeVariable = sKind === 13;
if (leftTypeVariable)
if (H._isSubtype(universe, sEnv[s._primary], sEnv, t, tEnv))
return true;
tKind = t._kind;
if (sKind === 6)
return H._isSubtype(universe, s._primary, sEnv, t, tEnv);
if (tKind === 6) {
t1 = t._primary;
return H._isSubtype(universe, s, sEnv, t1, tEnv);
}
if (sKind === 8) {
if (!H._isSubtype(universe, s._primary, sEnv, t, tEnv))
return false;
return H._isSubtype(universe, H.Rti__getFutureFromFutureOr(universe, s), sEnv, t, tEnv);
}
if (sKind === 7) {
t1 = H._isSubtype(universe, s._primary, sEnv, t, tEnv);
return t1;
}
if (tKind === 8) {
if (H._isSubtype(universe, s, sEnv, t._primary, tEnv))
return true;
return H._isSubtype(universe, s, sEnv, H.Rti__getFutureFromFutureOr(universe, t), tEnv);
}
if (tKind === 7) {
t1 = H._isSubtype(universe, s, sEnv, t._primary, tEnv);
return t1;
}
if (leftTypeVariable)
return false;
t1 = sKind !== 11;
if ((!t1 || sKind === 12) && t === type$.Function)
return true;
if (tKind === 12) {
if (s === type$.JavaScriptFunction)
return true;
if (sKind !== 12)
return false;
sBounds = s._rest;
tBounds = t._rest;
sLength = sBounds.length;
if (sLength !== tBounds.length)
return false;
sEnv = sEnv == null ? sBounds : sBounds.concat(sEnv);
tEnv = tEnv == null ? tBounds : tBounds.concat(tEnv);
for (i = 0; i < sLength; ++i) {
sBound = sBounds[i];
tBound = tBounds[i];
if (!H._isSubtype(universe, sBound, sEnv, tBound, tEnv) || !H._isSubtype(universe, tBound, tEnv, sBound, sEnv))
return false;
}
return H._isFunctionSubtype(universe, s._primary, sEnv, t._primary, tEnv);
}
if (tKind === 11) {
if (s === type$.JavaScriptFunction)
return true;
if (t1)
return false;
return H._isFunctionSubtype(universe, s, sEnv, t, tEnv);
}
if (sKind === 9) {
if (tKind !== 9)
return false;
return H._isInterfaceSubtype(universe, s, sEnv, t, tEnv);
}
return false;
},
_isFunctionSubtype: function(universe, s, sEnv, t, tEnv) {
var sParameters, tParameters, sRequiredPositional, tRequiredPositional, sRequiredPositionalLength, tRequiredPositionalLength, requiredPositionalDelta, sOptionalPositional, tOptionalPositional, sOptionalPositionalLength, tOptionalPositionalLength, i, t1, sNamed, tNamed, sNamedLength, tNamedLength, sIndex, tIndex, tName, sName;
if (!H._isSubtype(universe, s._primary, sEnv, t._primary, tEnv))
return false;
sParameters = s._rest;
tParameters = t._rest;
sRequiredPositional = sParameters._requiredPositional;
tRequiredPositional = tParameters._requiredPositional;
sRequiredPositionalLength = sRequiredPositional.length;
tRequiredPositionalLength = tRequiredPositional.length;
if (sRequiredPositionalLength > tRequiredPositionalLength)
return false;
requiredPositionalDelta = tRequiredPositionalLength - sRequiredPositionalLength;
sOptionalPositional = sParameters._optionalPositional;
tOptionalPositional = tParameters._optionalPositional;
sOptionalPositionalLength = sOptionalPositional.length;
tOptionalPositionalLength = tOptionalPositional.length;
if (sRequiredPositionalLength + sOptionalPositionalLength < tRequiredPositionalLength + tOptionalPositionalLength)
return false;
for (i = 0; i < sRequiredPositionalLength; ++i) {
t1 = sRequiredPositional[i];
if (!H._isSubtype(universe, tRequiredPositional[i], tEnv, t1, sEnv))
return false;
}
for (i = 0; i < requiredPositionalDelta; ++i) {
t1 = sOptionalPositional[i];
if (!H._isSubtype(universe, tRequiredPositional[sRequiredPositionalLength + i], tEnv, t1, sEnv))
return false;
}
for (i = 0; i < tOptionalPositionalLength; ++i) {
t1 = sOptionalPositional[requiredPositionalDelta + i];
if (!H._isSubtype(universe, tOptionalPositional[i], tEnv, t1, sEnv))
return false;
}
sNamed = sParameters._named;
tNamed = tParameters._named;
sNamedLength = sNamed.length;
tNamedLength = tNamed.length;
for (sIndex = 0, tIndex = 0; tIndex < tNamedLength; tIndex += 3) {
tName = tNamed[tIndex];
for (; true;) {
if (sIndex >= sNamedLength)
return false;
sName = sNamed[sIndex];
sIndex += 3;
if (tName < sName)
return false;
if (sName < tName)
continue;
t1 = sNamed[sIndex - 1];
if (!H._isSubtype(universe, tNamed[tIndex + 2], tEnv, t1, sEnv))
return false;
break;
}
}
return true;
},
_isInterfaceSubtype: function(universe, s, sEnv, t, tEnv) {
var sArgs, tArgs, $length, i, t1, t2, rule, supertypeArgs,
sName = s._primary,
tName = t._primary;
if (sName === tName) {
sArgs = s._rest;
tArgs = t._rest;
$length = sArgs.length;
for (i = 0; i < $length; ++i) {
t1 = sArgs[i];
t2 = tArgs[i];
if (!H._isSubtype(universe, t1, sEnv, t2, tEnv))
return false;
}
return true;
}
if (t === type$.Object)
return true;
rule = H._Universe_findRule(universe, sName);
if (rule == null)
return false;
supertypeArgs = rule[tName];
if (supertypeArgs == null)
return false;
$length = supertypeArgs.length;
tArgs = t._rest;
for (i = 0; i < $length; ++i)
if (!H._isSubtype(universe, H._Universe_evalInEnvironment(universe, s, supertypeArgs[i]), sEnv, tArgs[i], tEnv))
return false;
return true;
},
isNullable: function(t) {
var t1,
kind = t._kind;
if (!(t === type$.Null || t === type$.JSNull))
if (!H.isStrongTopType(t))
if (kind !== 7)
if (!(kind === 6 && H.isNullable(t._primary)))
t1 = kind === 8 && H.isNullable(t._primary);
else
t1 = true;
else
t1 = true;
else
t1 = true;
else
t1 = true;
return t1;
},
isTopType: function(t) {
var t1;
if (!H.isStrongTopType(t))
if (!(t === type$.legacy_Object))
t1 = t === type$.Object;
else
t1 = true;
else
t1 = true;
return t1;
},
isStrongTopType: function(t) {
var kind = t._kind;
return kind === 2 || kind === 3 || kind === 4 || kind === 5 || t === type$.nullable_Object;
},
_Utils_objectAssign: function(o, other) {
var i, key,
keys = Object.keys(other),
$length = keys.length;
for (i = 0; i < $length; ++i) {
key = keys[i];
o[key] = other[key];
}
},
Rti: function Rti(t0, t1) {
var _ = this;
_._as = t0;
_._is = t1;
_._cachedRuntimeType = _._specializedTestResource = _._precomputed1 = null;
_._kind = 0;
_._canonicalRecipe = _._bindCache = _._evalCache = _._rest = _._primary = null;
},
_FunctionParameters: function _FunctionParameters() {
this._named = this._optionalPositional = this._requiredPositional = null;
},
_Type: function _Type(t0) {
this._rti = t0;
},
_Error: function _Error() {
},
_TypeError: function _TypeError(t0) {
this._message = t0;
},
unmangleGlobalNameIfPreservedAnyways: function($name) {
return init.mangledGlobalNames[$name];
},
printString: function(string) {
if (typeof dartPrint == "function") {
dartPrint(string);
return;
}
if (typeof console == "object" && typeof console.log != "undefined") {
console.log(string);
return;
}
if (typeof window == "object")
return;
if (typeof print == "function") {
print(string);
return;
}
throw "Unable to print message: " + String(string);
}
},
J = {
makeDispatchRecord: function(interceptor, proto, extension, indexability) {
return {i: interceptor, p: proto, e: extension, x: indexability};
},
getNativeInterceptor: function(object) {
var proto, objectProto, $constructor, interceptor,
record = object[init.dispatchPropertyName];
if (record == null)
if ($.initNativeDispatchFlag == null) {
H.initNativeDispatch();
record = object[init.dispatchPropertyName];
}
if (record != null) {
proto = record.p;
if (false === proto)
return record.i;
if (true === proto)
return object;
objectProto = Object.getPrototypeOf(object);
if (proto === objectProto)
return record.i;
if (record.e === objectProto)
throw H.wrapException(P.UnimplementedError$("Return interceptor for " + H.S(proto(object, record))));
}
$constructor = object.constructor;
interceptor = $constructor == null ? null : $constructor[J.JS_INTEROP_INTERCEPTOR_TAG()];
if (interceptor != null)
return interceptor;
interceptor = H.lookupAndCacheInterceptor(object);
if (interceptor != null)
return interceptor;
if (typeof object == "function")
return C.JavaScriptFunction_methods;
proto = Object.getPrototypeOf(object);
if (proto == null)
return C.PlainJavaScriptObject_methods;
if (proto === Object.prototype)
return C.PlainJavaScriptObject_methods;
if (typeof $constructor == "function") {
Object.defineProperty($constructor, J.JS_INTEROP_INTERCEPTOR_TAG(), {value: C.UnknownJavaScriptObject_methods, enumerable: false, writable: true, configurable: true});
return C.UnknownJavaScriptObject_methods;
}
return C.UnknownJavaScriptObject_methods;
},
JS_INTEROP_INTERCEPTOR_TAG: function() {
var t1 = $._JS_INTEROP_INTERCEPTOR_TAG;
return t1 == null ? $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js") : t1;
},
JSArray_JSArray$fixed: function($length, $E) {
if (!H._isInt($length))
throw H.wrapException(P.ArgumentError$value($length, "length", "is not an integer"));
if ($length < 0 || $length > 4294967295)
throw H.wrapException(P.RangeError$range($length, 0, 4294967295, "length", null));
return J.JSArray_JSArray$markFixed(new Array($length), $E);
},
JSArray_JSArray$growable: function($length, $E) {
if (!H._isInt($length) || $length < 0)
throw H.wrapException(P.ArgumentError$("Length must be a non-negative integer: " + H.S($length)));
return H.setRuntimeTypeInfo(new Array($length), $E._eval$1("JSArray<0>"));
},
JSArray_JSArray$markFixed: function(allocation, $E) {
return J.JSArray_markFixedList(H.setRuntimeTypeInfo(allocation, $E._eval$1("JSArray<0>")));
},
JSArray_markFixedList: function(list) {
list.fixed$length = Array;
return list;
},
JSArray_markUnmodifiableList: function(list) {
list.fixed$length = Array;
list.immutable$list = Array;
return list;
},
JSArray__compareAny: function(a, b) {
return J.compareTo$1$ns(a, b);
},
JSString__isWhitespace: function(codeUnit) {
if (codeUnit < 256)
switch (codeUnit) {
case 9:
case 10:
case 11:
case 12:
case 13:
case 32:
case 133:
case 160:
return true;
default:
return false;
}
switch (codeUnit) {
case 5760:
case 8192:
case 8193:
case 8194:
case 8195:
case 8196:
case 8197:
case 8198:
case 8199:
case 8200:
case 8201:
case 8202:
case 8232:
case 8233:
case 8239:
case 8287:
case 12288:
case 65279:
return true;
default:
return false;
}
},
JSString__skipLeadingWhitespace: function(string, index) {
var t1, codeUnit;
for (t1 = string.length; index < t1;) {
codeUnit = C.JSString_methods._codeUnitAt$1(string, index);
if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
break;
++index;
}
return index;
},
JSString__skipTrailingWhitespace: function(string, index) {
var index0, codeUnit;
for (; index > 0; index = index0) {
index0 = index - 1;
codeUnit = C.JSString_methods.codeUnitAt$1(string, index0);
if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
break;
}
return index;
},
getInterceptor$: function(receiver) {
if (typeof receiver == "number") {
if (Math.floor(receiver) == receiver)
return J.JSInt.prototype;
return J.JSDouble.prototype;
}
if (typeof receiver == "string")
return J.JSString.prototype;
if (receiver == null)
return J.JSNull.prototype;
if (typeof receiver == "boolean")
return J.JSBool.prototype;
if (receiver.constructor == Array)
return J.JSArray.prototype;
if (typeof receiver != "object") {
if (typeof receiver == "function")
return J.JavaScriptFunction.prototype;
return receiver;
}
if (receiver instanceof P.Object)
return receiver;
return J.getNativeInterceptor(receiver);
},
getInterceptor$ansx: function(receiver) {
if (typeof receiver == "number")
return J.JSNumber.prototype;
if (typeof receiver == "string")
return J.JSString.prototype;
if (receiver == null)
return receiver;
if (receiver.constructor == Array)
return J.JSArray.prototype;
if (typeof receiver != "object") {
if (typeof receiver == "function")
return J.JavaScriptFunction.prototype;
return receiver;
}
if (receiver instanceof P.Object)
return receiver;
return J.getNativeInterceptor(receiver);
},
getInterceptor$asx: function(receiver) {
if (typeof receiver == "string")
return J.JSString.prototype;
if (receiver == null)
return receiver;
if (receiver.constructor == Array)
return J.JSArray.prototype;
if (typeof receiver != "object") {
if (typeof receiver == "function")
return J.JavaScriptFunction.prototype;
return receiver;
}
if (receiver instanceof P.Object)
return receiver;
return J.getNativeInterceptor(receiver);
},
getInterceptor$ax: function(receiver) {
if (receiver == null)
return receiver;
if (receiver.constructor == Array)
return J.JSArray.prototype;
if (typeof receiver != "object") {
if (typeof receiver == "function")
return J.JavaScriptFunction.prototype;
return receiver;
}
if (receiver instanceof P.Object)
return receiver;
return J.getNativeInterceptor(receiver);
},
getInterceptor$n: function(receiver) {
if (typeof receiver == "number")
return J.JSNumber.prototype;
if (receiver == null)
return receiver;
if (!(receiver instanceof P.Object))
return J.UnknownJavaScriptObject.prototype;
return receiver;
},
getInterceptor$ns: function(receiver) {
if (typeof receiver == "number")
return J.JSNumber.prototype;
if (typeof receiver == "string")
return J.JSString.prototype;
if (receiver == null)
return receiver;
if (!(receiver instanceof P.Object))
return J.UnknownJavaScriptObject.prototype;
return receiver;
},
getInterceptor$s: function(receiver) {
if (typeof receiver == "string")
return J.JSString.prototype;
if (receiver == null)
return receiver;
if (!(receiver instanceof P.Object))
return J.UnknownJavaScriptObject.prototype;
return receiver;
},
getInterceptor$u: function(receiver) {
if (receiver == null)
return J.JSNull.prototype;
if (!(receiver instanceof P.Object))
return J.UnknownJavaScriptObject.prototype;
return receiver;
},
getInterceptor$x: function(receiver) {
if (receiver == null)
return receiver;
if (typeof receiver != "object") {
if (typeof receiver == "function")
return J.JavaScriptFunction.prototype;
return receiver;
}
if (receiver instanceof P.Object)
return receiver;
return J.getNativeInterceptor(receiver);
},
getInterceptor$z: function(receiver) {
if (receiver == null)
return receiver;
if (!(receiver instanceof P.Object))
return J.UnknownJavaScriptObject.prototype;
return receiver;
},
set$FALSE$x: function(receiver, value) {
return J.getInterceptor$x(receiver).set$FALSE(receiver, value);
},
set$NULL$x: function(receiver, value) {
return J.getInterceptor$x(receiver).set$NULL(receiver, value);
},
set$TRUE$x: function(receiver, value) {
return J.getInterceptor$x(receiver).set$TRUE(receiver, value);
},
set$cli_pkg_main_0_$x: function(receiver, value) {
return J.getInterceptor$x(receiver).set$cli_pkg_main_0_(receiver, value);
},
set$context$x: function(receiver, value) {
return J.getInterceptor$x(receiver).set$context(receiver, value);
},
set$dartValue$x: function(receiver, value) {
return J.getInterceptor$x(receiver).set$dartValue(receiver, value);
},
set$exitCode$x: function(receiver, value) {
return J.getInterceptor$x(receiver).set$exitCode(receiver, value);
},
set$info$x: function(receiver, value) {
return J.getInterceptor$x(receiver).set$info(receiver, value);
},
set$length$asx: function(receiver, value) {
return J.getInterceptor$asx(receiver).set$length(receiver, value);
},
set$render$x: function(receiver, value) {
return J.getInterceptor$x(receiver).set$render(receiver, value);
},
set$renderSync$x: function(receiver, value) {
return J.getInterceptor$x(receiver).set$renderSync(receiver, value);
},
set$types$x: function(receiver, value) {
return J.getInterceptor$x(receiver).set$types(receiver, value);
},
get$code$x: function(receiver) {
return J.getInterceptor$x(receiver).get$code(receiver);
},
get$current$x: function(receiver) {
return J.getInterceptor$x(receiver).get$current(receiver);
},
get$dartValue$x: function(receiver) {
return J.getInterceptor$x(receiver).get$dartValue(receiver);
},
get$end$x: function(receiver) {
return J.getInterceptor$x(receiver).get$end(receiver);
},
get$env$x: function(receiver) {
return J.getInterceptor$x(receiver).get$env(receiver);
},
get$exitCode$x: function(receiver) {
return J.getInterceptor$x(receiver).get$exitCode(receiver);
},
get$fiber$x: function(receiver) {
return J.getInterceptor$x(receiver).get$fiber(receiver);
},
get$file$x: function(receiver) {
return J.getInterceptor$x(receiver).get$file(receiver);
},
get$first$ax: function(receiver) {
return J.getInterceptor$ax(receiver).get$first(receiver);
},
get$hashCode$: function(receiver) {
return J.getInterceptor$(receiver).get$hashCode(receiver);
},
get$isEmpty$asx: function(receiver) {
return J.getInterceptor$asx(receiver).get$isEmpty(receiver);
},
get$isNotEmpty$asx: function(receiver) {
return J.getInterceptor$asx(receiver).get$isNotEmpty(receiver);
},
get$isTTY$x: function(receiver) {
return J.getInterceptor$x(receiver).get$isTTY(receiver);
},
get$iterator$ax: function(receiver) {
return J.getInterceptor$ax(receiver).get$iterator(receiver);
},
get$keys$z: function(receiver) {
return J.getInterceptor$z(receiver).get$keys(receiver);
},
get$last$ax: function(receiver) {
return J.getInterceptor$ax(receiver).get$last(receiver);
},
get$length$asx: function(receiver) {
return J.getInterceptor$asx(receiver).get$length(receiver);
},
get$message$x: function(receiver) {
return J.getInterceptor$x(receiver).get$message(receiver);
},
get$mtime$x: function(receiver) {
return J.getInterceptor$x(receiver).get$mtime(receiver);
},
get$options$x: function(receiver) {
return J.getInterceptor$x(receiver).get$options(receiver);
},
get$path$x: function(receiver) {
return J.getInterceptor$x(receiver).get$path(receiver);
},
get$platform$x: function(receiver) {
return J.getInterceptor$x(receiver).get$platform(receiver);
},
get$reversed$ax: function(receiver) {
return J.getInterceptor$ax(receiver).get$reversed(receiver);
},
get$runtimeType$u: function(receiver) {
return J.getInterceptor$u(receiver).get$runtimeType(receiver);
},
get$single$ax: function(receiver) {
return J.getInterceptor$ax(receiver).get$single(receiver);
},
get$sourceUrl$x: function(receiver) {
return J.getInterceptor$x(receiver).get$sourceUrl(receiver);
},
get$stderr$x: function(receiver) {
return J.getInterceptor$x(receiver).get$stderr(receiver);
},
get$stdin$x: function(receiver) {
return J.getInterceptor$x(receiver).get$stdin(receiver);
},
get$stdout$x: function(receiver) {
return J.getInterceptor$x(receiver).get$stdout(receiver);
},
get$values$z: function(receiver) {
return J.getInterceptor$z(receiver).get$values(receiver);
},
$add$ansx: function(receiver, a0) {
if (typeof receiver == "number" && typeof a0 == "number")
return receiver + a0;
return J.getInterceptor$ansx(receiver).$add(receiver, a0);
},
$eq$: function(receiver, a0) {
if (receiver == null)
return a0 == null;
if (typeof receiver != "object")
return a0 != null && receiver === a0;
return J.getInterceptor$(receiver).$eq(receiver, a0);
},
$index$asx: function(receiver, a0) {
if (typeof a0 === "number")
if (receiver.constructor == Array || typeof receiver == "string" || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName]))
if (a0 >>> 0 === a0 && a0 < receiver.length)
return receiver[a0];
return J.getInterceptor$asx(receiver).$index(receiver, a0);
},
$indexSet$ax: function(receiver, a0, a1) {
if (typeof a0 === "number")
if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < receiver.length)
return receiver[a0] = a1;
return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1);
},
_codeUnitAt$1$s: function(receiver, a0) {
return J.getInterceptor$s(receiver)._codeUnitAt$1(receiver, a0);
},
add$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).add$1(receiver, a0);
},
addAll$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).addAll$1(receiver, a0);
},
allMatches$1$s: function(receiver, a0) {
return J.getInterceptor$s(receiver).allMatches$1(receiver, a0);
},
allMatches$2$s: function(receiver, a0, a1) {
return J.getInterceptor$s(receiver).allMatches$2(receiver, a0, a1);
},
any$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).any$1(receiver, a0);
},
apply$2$x: function(receiver, a0, a1) {
return J.getInterceptor$x(receiver).apply$2(receiver, a0, a1);
},
cast$1$0$ax: function(receiver, $T1) {
return J.getInterceptor$ax(receiver).cast$1$0(receiver, $T1);
},
ceil$0$n: function(receiver) {
return J.getInterceptor$n(receiver).ceil$0(receiver);
},
clamp$2$n: function(receiver, a0, a1) {
return J.getInterceptor$n(receiver).clamp$2(receiver, a0, a1);
},
close$0$x: function(receiver) {
return J.getInterceptor$x(receiver).close$0(receiver);
},
codeUnitAt$1$s: function(receiver, a0) {
return J.getInterceptor$s(receiver).codeUnitAt$1(receiver, a0);
},
compareTo$1$ns: function(receiver, a0) {
return J.getInterceptor$ns(receiver).compareTo$1(receiver, a0);
},
contains$1$asx: function(receiver, a0) {
return J.getInterceptor$asx(receiver).contains$1(receiver, a0);
},
createInterface$1$x: function(receiver, a0) {
return J.getInterceptor$x(receiver).createInterface$1(receiver, a0);
},
elementAt$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0);
},
endsWith$1$s: function(receiver, a0) {
return J.getInterceptor$s(receiver).endsWith$1(receiver, a0);
},
every$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).every$1(receiver, a0);
},
existsSync$1$x: function(receiver, a0) {
return J.getInterceptor$x(receiver).existsSync$1(receiver, a0);
},
expand$1$1$ax: function(receiver, a0, $T1) {
return J.getInterceptor$ax(receiver).expand$1$1(receiver, a0, $T1);
},
fillRange$3$ax: function(receiver, a0, a1, a2) {
return J.getInterceptor$ax(receiver).fillRange$3(receiver, a0, a1, a2);
},
floor$0$n: function(receiver) {
return J.getInterceptor$n(receiver).floor$0(receiver);
},
fold$2$ax: function(receiver, a0, a1) {
return J.getInterceptor$ax(receiver).fold$2(receiver, a0, a1);
},
getRange$2$ax: function(receiver, a0, a1) {
return J.getInterceptor$ax(receiver).getRange$2(receiver, a0, a1);
},
getTime$0$x: function(receiver) {
return J.getInterceptor$x(receiver).getTime$0(receiver);
},
indexOf$1$asx: function(receiver, a0) {
return J.getInterceptor$asx(receiver).indexOf$1(receiver, a0);
},
isDirectory$0$x: function(receiver) {
return J.getInterceptor$x(receiver).isDirectory$0(receiver);
},
isFile$0$x: function(receiver) {
return J.getInterceptor$x(receiver).isFile$0(receiver);
},
join$0$ax: function(receiver) {
return J.getInterceptor$ax(receiver).join$0(receiver);
},
join$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).join$1(receiver, a0);
},
map$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).map$1(receiver, a0);
},
map$1$1$ax: function(receiver, a0, $T1) {
return J.getInterceptor$ax(receiver).map$1$1(receiver, a0, $T1);
},
matchAsPrefix$2$s: function(receiver, a0, a1) {
return J.getInterceptor$s(receiver).matchAsPrefix$2(receiver, a0, a1);
},
mkdirSync$1$x: function(receiver, a0) {
return J.getInterceptor$x(receiver).mkdirSync$1(receiver, a0);
},
noSuchMethod$1$: function(receiver, a0) {
return J.getInterceptor$(receiver).noSuchMethod$1(receiver, a0);
},
on$2$x: function(receiver, a0, a1) {
return J.getInterceptor$x(receiver).on$2(receiver, a0, a1);
},
padRight$1$s: function(receiver, a0) {
return J.getInterceptor$s(receiver).padRight$1(receiver, a0);
},
readFileSync$2$x: function(receiver, a0, a1) {
return J.getInterceptor$x(receiver).readFileSync$2(receiver, a0, a1);
},
readdirSync$1$x: function(receiver, a0) {
return J.getInterceptor$x(receiver).readdirSync$1(receiver, a0);
},
remove$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).remove$1(receiver, a0);
},
replaceRange$3$asx: function(receiver, a0, a1, a2) {
return J.getInterceptor$asx(receiver).replaceRange$3(receiver, a0, a1, a2);
},
round$0$n: function(receiver) {
return J.getInterceptor$n(receiver).round$0(receiver);
},
run$0$x: function(receiver) {
return J.getInterceptor$x(receiver).run$0(receiver);
},
run$1$x: function(receiver, a0) {
return J.getInterceptor$x(receiver).run$1(receiver, a0);
},
setPrompt$1$x: function(receiver, a0) {
return J.getInterceptor$x(receiver).setPrompt$1(receiver, a0);
},
setRange$4$ax: function(receiver, a0, a1, a2, a3) {
return J.getInterceptor$ax(receiver).setRange$4(receiver, a0, a1, a2, a3);
},
skip$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).skip$1(receiver, a0);
},
sort$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).sort$1(receiver, a0);
},
startsWith$1$s: function(receiver, a0) {
return J.getInterceptor$s(receiver).startsWith$1(receiver, a0);
},
startsWith$2$s: function(receiver, a0, a1) {
return J.getInterceptor$s(receiver).startsWith$2(receiver, a0, a1);
},
statSync$1$x: function(receiver, a0) {
return J.getInterceptor$x(receiver).statSync$1(receiver, a0);
},
substring$1$s: function(receiver, a0) {
return J.getInterceptor$s(receiver).substring$1(receiver, a0);
},
substring$2$s: function(receiver, a0, a1) {
return J.getInterceptor$s(receiver).substring$2(receiver, a0, a1);
},
take$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).take$1(receiver, a0);
},
then$1$1$x: function(receiver, a0, $T1) {
return J.getInterceptor$x(receiver).then$1$1(receiver, a0, $T1);
},
then$1$2$onError$x: function(receiver, a0, a1, $T1) {
return J.getInterceptor$x(receiver).then$1$2$onError(receiver, a0, a1, $T1);
},
toList$0$ax: function(receiver) {
return J.getInterceptor$ax(receiver).toList$0(receiver);
},
toList$1$growable$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).toList$1$growable(receiver, a0);
},
toRadixString$1$n: function(receiver, a0) {
return J.getInterceptor$n(receiver).toRadixString$1(receiver, a0);
},
toSet$0$ax: function(receiver) {
return J.getInterceptor$ax(receiver).toSet$0(receiver);
},
toString$0$: function(receiver) {
return J.getInterceptor$(receiver).toString$0(receiver);
},
toString$1$color$: function(receiver, a0) {
return J.getInterceptor$(receiver).toString$1$color(receiver, a0);
},
trim$0$s: function(receiver) {
return J.getInterceptor$s(receiver).trim$0(receiver);
},
unlinkSync$1$x: function(receiver, a0) {
return J.getInterceptor$x(receiver).unlinkSync$1(receiver, a0);
},
watch$2$x: function(receiver, a0, a1) {
return J.getInterceptor$x(receiver).watch$2(receiver, a0, a1);
},
where$1$ax: function(receiver, a0) {
return J.getInterceptor$ax(receiver).where$1(receiver, a0);
},
write$1$x: function(receiver, a0) {
return J.getInterceptor$x(receiver).write$1(receiver, a0);
},
writeFileSync$2$x: function(receiver, a0, a1) {
return J.getInterceptor$x(receiver).writeFileSync$2(receiver, a0, a1);
},
yield$0$x: function(receiver) {
return J.getInterceptor$x(receiver).yield$0(receiver);
},
Interceptor: function Interceptor() {
},
JSBool: function JSBool() {
},
JSNull: function JSNull() {
},
JavaScriptObject: function JavaScriptObject() {
},
PlainJavaScriptObject: function PlainJavaScriptObject() {
},
UnknownJavaScriptObject: function UnknownJavaScriptObject() {
},
JavaScriptFunction: function JavaScriptFunction() {
},
JSArray: function JSArray(t0) {
this.$ti = t0;
},
JSUnmodifiableArray: function JSUnmodifiableArray(t0) {
this.$ti = t0;
},
ArrayIterator: function ArrayIterator(t0, t1) {
var _ = this;
_._iterable = t0;
_._length = t1;
_._index = 0;
_._current = null;
},
JSNumber: function JSNumber() {
},
JSInt: function JSInt() {
},
JSDouble: function JSDouble() {
},
JSString: function JSString() {
}
},
P = {
_AsyncRun__initializeScheduleImmediate: function() {
var div, span, t1 = {};
if (self.scheduleImmediate != null)
return P.async__AsyncRun__scheduleImmediateJsOverride$closure();
if (self.MutationObserver != null && self.document != null) {
div = self.document.createElement("div");
span = self.document.createElement("span");
t1.storedCallback = null;
new self.MutationObserver(H.convertDartClosureToJS(new P._AsyncRun__initializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true});
return new P._AsyncRun__initializeScheduleImmediate_closure(t1, div, span);
} else if (self.setImmediate != null)
return P.async__AsyncRun__scheduleImmediateWithSetImmediate$closure();
return P.async__AsyncRun__scheduleImmediateWithTimer$closure();
},
_AsyncRun__scheduleImmediateJsOverride: function(callback) {
self.scheduleImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateJsOverride_internalCallback(callback), 0));
},
_AsyncRun__scheduleImmediateWithSetImmediate: function(callback) {
self.setImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(callback), 0));
},
_AsyncRun__scheduleImmediateWithTimer: function(callback) {
P.Timer__createTimer(C.Duration_0, callback);
},
Timer__createTimer: function(duration, callback) {
var milliseconds = C.JSInt_methods._tdivFast$1(duration._duration, 1000);
return P._TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback);
},
_TimerImpl$: function(milliseconds, callback) {
var t1 = new P._TimerImpl(true);
t1._TimerImpl$2(milliseconds, callback);
return t1;
},
_TimerImpl$periodic: function(milliseconds, callback) {
var t1 = new P._TimerImpl(false);
t1._TimerImpl$periodic$2(milliseconds, callback);
return t1;
},
_makeAsyncAwaitCompleter: function($T) {
return new P._AsyncAwaitCompleter(new P._Future($.Zone__current, $T._eval$1("_Future<0>")), $T._eval$1("_AsyncAwaitCompleter<0>"));
},
_asyncStartSync: function(bodyFunction, completer) {
bodyFunction.call$2(0, null);
completer.isSync = true;
return completer._future;
},
_asyncAwait: function(object, bodyFunction) {
P._awaitOnObject(object, bodyFunction);
},
_asyncReturn: function(object, completer) {
completer.complete$1(object);
},
_asyncRethrow: function(object, completer) {
completer.completeError$2(H.unwrapException(object), H.getTraceFromException(object));
},
_awaitOnObject: function(object, bodyFunction) {
var t1, future,
thenCallback = new P._awaitOnObject_closure(bodyFunction),
errorCallback = new P._awaitOnObject_closure0(bodyFunction);
if (object instanceof P._Future)
object._thenAwait$1$2(thenCallback, errorCallback, type$.dynamic);
else {
t1 = type$.dynamic;
if (type$.Future_dynamic._is(object))
object.then$1$2$onError(0, thenCallback, errorCallback, t1);
else {
future = new P._Future($.Zone__current, type$._Future_dynamic);
future._state = 4;
future._resultOrListeners = object;
future._thenAwait$1$2(thenCallback, errorCallback, t1);
}
}
},
_wrapJsFunctionForAsync: function($function) {
var $protected = function(fn, ERROR) {
return function(errorCode, result) {
while (true)
try {
fn(errorCode, result);
break;
} catch (error) {
result = error;
errorCode = ERROR;
}
};
}($function, 1);
return $.Zone__current.registerBinaryCallback$3$1(new P._wrapJsFunctionForAsync_closure($protected), type$.void, type$.int, type$.dynamic);
},
_asyncStarHelper: function(object, bodyFunctionOrErrorCode, controller) {
var t1, t2, stream;
if (bodyFunctionOrErrorCode === 0) {
t1 = controller.cancelationFuture;
if (t1 != null)
t1._completeWithValue$1(null);
else
controller.get$controller().close$0(0);
return;
} else if (bodyFunctionOrErrorCode === 1) {
t1 = controller.cancelationFuture;
if (t1 != null)
t1._completeError$2(H.unwrapException(object), H.getTraceFromException(object));
else {
t1 = H.unwrapException(object);
t2 = H.getTraceFromException(object);
controller.get$controller().addError$2(t1, t2);
controller.get$controller().close$0(0);
}
return;
}
if (object instanceof P._IterationMarker) {
if (controller.cancelationFuture != null) {
bodyFunctionOrErrorCode.call$2(2, null);
return;
}
t1 = object.state;
if (t1 === 0) {
t1 = object.value;
controller.get$controller().add$1(0, t1);
P.scheduleMicrotask(new P._asyncStarHelper_closure(controller, bodyFunctionOrErrorCode));
return;
} else if (t1 === 1) {
stream = object.value;
controller.get$controller().addStream$2$cancelOnError(stream, false).then$1(0, new P._asyncStarHelper_closure0(controller, bodyFunctionOrErrorCode));
return;
}
}
P._awaitOnObject(object, bodyFunctionOrErrorCode);
},
_streamOfController: function(controller) {
var t1 = controller.get$controller();
return new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>"));
},
_AsyncStarStreamController$: function(body, $T) {
var t1 = new P._AsyncStarStreamController($T._eval$1("_AsyncStarStreamController<0>"));
t1._AsyncStarStreamController$1(body, $T);
return t1;
},
_makeAsyncStarStreamController: function(body, $T) {
return P._AsyncStarStreamController$(body, $T);
},
_IterationMarker_yieldStar: function(values) {
return new P._IterationMarker(values, 1);
},
_IterationMarker_endOfIteration: function() {
return C._IterationMarker_null_2;
},
_IterationMarker_yieldSingle: function(value) {
return new P._IterationMarker(value, 0);
},
_IterationMarker_uncaughtError: function(error) {
return new P._IterationMarker(error, 3);
},
_makeSyncStarIterable: function(body, $T) {
return new P._SyncStarIterable(body, $T._eval$1("_SyncStarIterable<0>"));
},
Future_Future$value: function(value, $T) {
var t1 = new P._Future($.Zone__current, $T._eval$1("_Future<0>"));
t1._asyncComplete$1(value);
return t1;
},
Future_Future$error: function(error, stackTrace, $T) {
var t1, replacement;
P.ArgumentError_checkNotNull(error, "error");
t1 = $.Zone__current;
if (t1 !== C.C__RootZone) {
replacement = t1.errorCallback$2(error, stackTrace);
if (replacement != null) {
error = replacement.error;
stackTrace = replacement.stackTrace;
}
}
if (stackTrace == null)
stackTrace = P.AsyncError_defaultStackTrace(error);
t1 = new P._Future($.Zone__current, $T._eval$1("_Future<0>"));
t1._asyncCompleteError$2(error, stackTrace);
return t1;
},
Future_wait: function(futures, $T) {
var _error_get, _error_set, _stackTrace_get, _stackTrace_set, handleError, future, pos, e, st, t1, t2, exception, _box_0 = {}, cleanUp = null,
eagerError = false,
_future = new P._Future($.Zone__current, $T._eval$1("_Future
>"));
_box_0.values = null;
_box_0.remaining = 0;
_box_0.error = null;
_error_get = new P.Future_wait__error_get(_box_0);
_error_set = new P.Future_wait__error_set(_box_0);
_box_0.stackTrace = null;
_stackTrace_get = new P.Future_wait__stackTrace_get(_box_0);
_stackTrace_set = new P.Future_wait__stackTrace_set(_box_0);
handleError = new P.Future_wait_handleError(_box_0, cleanUp, eagerError, _future, _error_set, _stackTrace_set, _error_get, _stackTrace_get);
try {
for (t1 = J.get$iterator$ax(futures), t2 = type$.Null; t1.moveNext$0();) {
future = t1.get$current(t1);
pos = _box_0.remaining;
J.then$1$2$onError$x(future, new P.Future_wait_closure(_box_0, pos, _future, cleanUp, eagerError, _error_get, _stackTrace_get, $T), handleError, t2);
++_box_0.remaining;
}
t1 = _box_0.remaining;
if (t1 === 0) {
t1 = P.Future_Future$value(C.List_empty9, $T._eval$1("List<0>"));
return t1;
}
_box_0.values = P.List_List$filled(t1, null, false, $T._eval$1("0?"));
} catch (exception) {
e = H.unwrapException(exception);
st = H.getTraceFromException(exception);
if (_box_0.remaining === 0 || eagerError)
return P.Future_Future$error(e, st, $T._eval$1("List<0>"));
else {
_error_set.call$1(e);
_stackTrace_set.call$1(st);
}
}
return _future;
},
_Future$zoneValue: function(value, _zone, $T) {
var t1 = new P._Future(_zone, $T._eval$1("_Future<0>"));
t1._state = 4;
t1._resultOrListeners = value;
return t1;
},
_Future__chainForeignFuture: function(source, target) {
var e, s, exception;
target._state = 1;
try {
source.then$1$2$onError(0, new P._Future__chainForeignFuture_closure(target), new P._Future__chainForeignFuture_closure0(target), type$.Null);
} catch (exception) {
e = H.unwrapException(exception);
s = H.getTraceFromException(exception);
P.scheduleMicrotask(new P._Future__chainForeignFuture_closure1(target, e, s));
}
},
_Future__chainCoreFuture: function(source, target) {
var t1, listeners;
for (; t1 = source._state, t1 === 2;)
source = source._resultOrListeners;
if (t1 >= 4) {
listeners = target._removeListeners$0();
target._state = source._state;
target._resultOrListeners = source._resultOrListeners;
P._Future__propagateToListeners(target, listeners);
} else {
listeners = target._resultOrListeners;
target._state = 2;
target._resultOrListeners = source;
source._prependListeners$1(listeners);
}
},
_Future__propagateToListeners: function(source, listeners) {
var t2, _box_0, hasError, nextListener, nextListener0, t3, sourceResult, t4, t5, zone, oldZone, result, current, _box_1 = {},
t1 = _box_1.source = source;
for (t2 = type$.Future_dynamic; true;) {
_box_0 = {};
hasError = t1._state === 8;
if (listeners == null) {
if (hasError) {
t2 = t1._resultOrListeners;
t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
}
return;
}
_box_0.listener = listeners;
nextListener = listeners._nextListener;
for (t1 = listeners; nextListener != null; t1 = nextListener, nextListener = nextListener0) {
t1._nextListener = null;
P._Future__propagateToListeners(_box_1.source, t1);
_box_0.listener = nextListener;
nextListener0 = nextListener._nextListener;
}
t3 = _box_1.source;
sourceResult = t3._resultOrListeners;
_box_0.listenerHasError = hasError;
_box_0.listenerValueOrError = sourceResult;
t4 = !hasError;
if (t4) {
t5 = t1.state;
t5 = (t5 & 1) !== 0 || (t5 & 15) === 8;
} else
t5 = true;
if (t5) {
zone = t1.result._zone;
if (hasError) {
t1 = t3._zone;
t1 = !(t1 === zone || t1.get$errorZone() === zone.get$errorZone());
} else
t1 = false;
if (t1) {
t1 = _box_1.source;
t2 = t1._resultOrListeners;
t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
return;
}
oldZone = $.Zone__current;
if (oldZone !== zone)
$.Zone__current = zone;
else
oldZone = null;
t1 = _box_0.listener.state;
if ((t1 & 15) === 8)
new P._Future__propagateToListeners_handleWhenCompleteCallback(_box_0, _box_1, hasError).call$0();
else if (t4) {
if ((t1 & 1) !== 0)
new P._Future__propagateToListeners_handleValueCallback(_box_0, sourceResult).call$0();
} else if ((t1 & 2) !== 0)
new P._Future__propagateToListeners_handleError(_box_1, _box_0).call$0();
if (oldZone != null)
$.Zone__current = oldZone;
t1 = _box_0.listenerValueOrError;
if (t2._is(t1)) {
result = _box_0.listener.result;
if (t1._state >= 4) {
current = result._resultOrListeners;
result._resultOrListeners = null;
listeners = result._reverseListeners$1(current);
result._state = t1._state;
result._resultOrListeners = t1._resultOrListeners;
_box_1.source = t1;
continue;
} else
P._Future__chainCoreFuture(t1, result);
return;
}
}
result = _box_0.listener.result;
current = result._resultOrListeners;
result._resultOrListeners = null;
listeners = result._reverseListeners$1(current);
t1 = _box_0.listenerHasError;
t3 = _box_0.listenerValueOrError;
if (!t1) {
result._state = 4;
result._resultOrListeners = t3;
} else {
result._state = 8;
result._resultOrListeners = t3;
}
_box_1.source = result;
t1 = result;
}
},
_registerErrorHandler: function(errorHandler, zone) {
if (type$.dynamic_Function_Object_StackTrace._is(errorHandler))
return zone.registerBinaryCallback$3$1(errorHandler, type$.dynamic, type$.Object, type$.StackTrace);
if (type$.dynamic_Function_Object._is(errorHandler))
return zone.registerUnaryCallback$2$1(errorHandler, type$.dynamic, type$.Object);
throw H.wrapException(P.ArgumentError$value(errorHandler, "onError", "Error handler must accept one Object or one Object and a StackTrace as arguments, and return a a valid result"));
},
_microtaskLoop: function() {
var entry, next;
for (entry = $._nextCallback; entry != null; entry = $._nextCallback) {
$._lastPriorityCallback = null;
next = entry.next;
$._nextCallback = next;
if (next == null)
$._lastCallback = null;
entry.callback.call$0();
}
},
_startMicrotaskLoop: function() {
$._isInCallbackLoop = true;
try {
P._microtaskLoop();
} finally {
$._lastPriorityCallback = null;
$._isInCallbackLoop = false;
if ($._nextCallback != null)
$.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMicrotaskLoop$closure());
}
},
_scheduleAsyncCallback: function(callback) {
var newEntry = new P._AsyncCallbackEntry(callback),
lastCallback = $._lastCallback;
if (lastCallback == null) {
$._nextCallback = $._lastCallback = newEntry;
if (!$._isInCallbackLoop)
$.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMicrotaskLoop$closure());
} else
$._lastCallback = lastCallback.next = newEntry;
},
_schedulePriorityAsyncCallback: function(callback) {
var entry, lastPriorityCallback, next,
t1 = $._nextCallback;
if (t1 == null) {
P._scheduleAsyncCallback(callback);
$._lastPriorityCallback = $._lastCallback;
return;
}
entry = new P._AsyncCallbackEntry(callback);
lastPriorityCallback = $._lastPriorityCallback;
if (lastPriorityCallback == null) {
entry.next = t1;
$._nextCallback = $._lastPriorityCallback = entry;
} else {
next = lastPriorityCallback.next;
entry.next = next;
$._lastPriorityCallback = lastPriorityCallback.next = entry;
if (next == null)
$._lastCallback = entry;
}
},
scheduleMicrotask: function(callback) {
var t1, _null = null,
currentZone = $.Zone__current;
if (C.C__RootZone === currentZone) {
P._rootScheduleMicrotask(_null, _null, C.C__RootZone, callback);
return;
}
if (C.C__RootZone === currentZone.get$_scheduleMicrotask().zone)
t1 = C.C__RootZone.get$errorZone() === currentZone.get$errorZone();
else
t1 = false;
if (t1) {
P._rootScheduleMicrotask(_null, _null, currentZone, currentZone.registerCallback$1$1(callback, type$.void));
return;
}
t1 = $.Zone__current;
t1.scheduleMicrotask$1(t1.bindCallbackGuarded$1(callback));
},
Stream_Stream$fromFuture: function(future, $T) {
var _null = null,
t1 = $T._eval$1("_SyncStreamController<0>"),
controller = new P._SyncStreamController(_null, _null, _null, _null, t1);
future.then$1$2$onError(0, new P.Stream_Stream$fromFuture_closure(controller, $T), new P.Stream_Stream$fromFuture_closure0(controller), type$.Null);
return new P._ControllerStream(controller, t1._eval$1("_ControllerStream<1>"));
},
StreamIterator_StreamIterator: function(stream) {
P.ArgumentError_checkNotNull(stream, "stream");
return new P._StreamIterator(stream);
},
StreamController_StreamController: function(onCancel, onListen, onPause, onResume, sync, $T) {
return sync ? new P._SyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_SyncStreamController<0>")) : new P._AsyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_AsyncStreamController<0>"));
},
_runGuarded: function(notificationHandler) {
var e, s, exception;
if (notificationHandler == null)
return;
try {
notificationHandler.call$0();
} catch (exception) {
e = H.unwrapException(exception);
s = H.getTraceFromException(exception);
$.Zone__current.handleUncaughtError$2(e, s);
}
},
_ControllerSubscription$: function(_controller, onData, onError, onDone, cancelOnError, $T) {
var t1 = $.Zone__current,
t2 = cancelOnError ? 1 : 0,
t3 = P._BufferingStreamSubscription__registerDataHandler(t1, onData, $T),
t4 = P._BufferingStreamSubscription__registerErrorHandler(t1, onError),
t5 = onDone == null ? P.async___nullDoneHandler$closure() : onDone;
return new P._ControllerSubscription(_controller, t3, t4, t1.registerCallback$1$1(t5, type$.void), t1, t2, $T._eval$1("_ControllerSubscription<0>"));
},
_BufferingStreamSubscription__registerDataHandler: function(zone, handleData, $T) {
var t1 = handleData == null ? P.async___nullDataHandler$closure() : handleData;
return zone.registerUnaryCallback$2$1(t1, type$.void, $T);
},
_BufferingStreamSubscription__registerErrorHandler: function(zone, handleError) {
if (handleError == null)
handleError = P.async___nullErrorHandler$closure();
if (type$.void_Function_Object_StackTrace._is(handleError))
return zone.registerBinaryCallback$3$1(handleError, type$.dynamic, type$.Object, type$.StackTrace);
if (type$.void_Function_Object._is(handleError))
return zone.registerUnaryCallback$2$1(handleError, type$.dynamic, type$.Object);
throw H.wrapException(P.ArgumentError$("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace."));
},
_nullDataHandler: function(value) {
},
_nullErrorHandler: function(error, stackTrace) {
$.Zone__current.handleUncaughtError$2(error, stackTrace);
},
_nullDoneHandler: function() {
},
_addErrorWithReplacement: function(sink, error, stackTrace) {
var replacement = $.Zone__current.errorCallback$2(error, stackTrace);
if (replacement != null) {
error = replacement.error;
stackTrace = replacement.stackTrace;
}
sink._addError$2(error, stackTrace);
},
Timer_Timer: function(duration, callback) {
var t1 = $.Zone__current;
if (t1 === C.C__RootZone)
return t1.createTimer$2(duration, callback);
return t1.createTimer$2(duration, t1.bindCallbackGuarded$1(callback));
},
AsyncError$: function(error, stackTrace) {
var t1 = stackTrace == null ? P.AsyncError_defaultStackTrace(error) : stackTrace;
P.ArgumentError_checkNotNull(error, "error");
return new P.AsyncError(error, t1);
},
AsyncError_defaultStackTrace: function(error) {
var stackTrace;
if (type$.Error._is(error)) {
stackTrace = error.get$stackTrace();
if (stackTrace != null)
return stackTrace;
}
return C._StringStackTrace_3uE;
},
_rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) {
P._schedulePriorityAsyncCallback(new P._rootHandleUncaughtError_closure(error, stackTrace));
},
_rootRun: function($self, $parent, zone, f) {
var old,
t1 = $.Zone__current;
if (t1 === zone)
return f.call$0();
if (!(zone instanceof P._Zone))
throw H.wrapException(P.ArgumentError$value(zone, "zone", "Can only run in platform zones"));
$.Zone__current = zone;
old = t1;
try {
t1 = f.call$0();
return t1;
} finally {
$.Zone__current = old;
}
},
_rootRunUnary: function($self, $parent, zone, f, arg) {
var old,
t1 = $.Zone__current;
if (t1 === zone)
return f.call$1(arg);
if (!(zone instanceof P._Zone))
throw H.wrapException(P.ArgumentError$value(zone, "zone", "Can only run in platform zones"));
$.Zone__current = zone;
old = t1;
try {
t1 = f.call$1(arg);
return t1;
} finally {
$.Zone__current = old;
}
},
_rootRunBinary: function($self, $parent, zone, f, arg1, arg2) {
var old,
t1 = $.Zone__current;
if (t1 === zone)
return f.call$2(arg1, arg2);
if (!(zone instanceof P._Zone))
throw H.wrapException(P.ArgumentError$value(zone, "zone", "Can only run in platform zones"));
$.Zone__current = zone;
old = t1;
try {
t1 = f.call$2(arg1, arg2);
return t1;
} finally {
$.Zone__current = old;
}
},
_rootRegisterCallback: function($self, $parent, zone, f) {
return f;
},
_rootRegisterUnaryCallback: function($self, $parent, zone, f) {
return f;
},
_rootRegisterBinaryCallback: function($self, $parent, zone, f) {
return f;
},
_rootErrorCallback: function($self, $parent, zone, error, stackTrace) {
return null;
},
_rootScheduleMicrotask: function($self, $parent, zone, f) {
var t1 = C.C__RootZone !== zone;
if (t1)
f = !(!t1 || C.C__RootZone.get$errorZone() === zone.get$errorZone()) ? zone.bindCallbackGuarded$1(f) : zone.bindCallback$1$1(f, type$.void);
P._scheduleAsyncCallback(f);
},
_rootCreateTimer: function($self, $parent, zone, duration, callback) {
callback = zone.bindCallback$1$1(callback, type$.void);
return P.Timer__createTimer(duration, callback);
},
_rootCreatePeriodicTimer: function($self, $parent, zone, duration, callback) {
var milliseconds;
callback = zone.bindUnaryCallback$2$1(callback, type$.void, type$.Timer);
milliseconds = C.JSInt_methods._tdivFast$1(duration._duration, 1000);
return P._TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback);
},
_rootPrint: function($self, $parent, zone, line) {
H.printString(H.S(line));
},
_printToZone: function(line) {
$.Zone__current.print$1(line);
},
_rootFork: function($self, $parent, zone, specification, zoneValues) {
var valueMap, t1, handleUncaughtError;
$.printToZone = P.async___printToZone$closure();
if (specification == null)
specification = C._ZoneSpecification_ALf;
if (zoneValues == null)
valueMap = zone.get$_async$_map();
else {
t1 = type$.nullable_Object;
valueMap = P.HashMap_HashMap$from(zoneValues, t1, t1);
}
t1 = new P._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)
t1._handleUncaughtError = new P._ZoneFunction(t1, handleUncaughtError);
return t1;
},
runZoned: function(body, zoneValues, $R) {
P.ArgumentError_checkNotNull(body, "body");
return P._runZoned(body, zoneValues, null, $R);
},
_runZoned: function(body, zoneValues, specification, $R) {
return $.Zone__current.fork$2$specification$zoneValues(specification, zoneValues).run$1$1(0, body, $R);
},
_AsyncRun__initializeScheduleImmediate_internalCallback: function _AsyncRun__initializeScheduleImmediate_internalCallback(t0) {
this._box_0 = t0;
},
_AsyncRun__initializeScheduleImmediate_closure: function _AsyncRun__initializeScheduleImmediate_closure(t0, t1, t2) {
this._box_0 = t0;
this.div = t1;
this.span = t2;
},
_AsyncRun__scheduleImmediateJsOverride_internalCallback: function _AsyncRun__scheduleImmediateJsOverride_internalCallback(t0) {
this.callback = t0;
},
_AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: function _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(t0) {
this.callback = t0;
},
_TimerImpl: function _TimerImpl(t0) {
this._once = t0;
this._handle = null;
this._tick = 0;
},
_TimerImpl_internalCallback: function _TimerImpl_internalCallback(t0, t1) {
this.$this = t0;
this.callback = t1;
},
_TimerImpl$periodic_closure: function _TimerImpl$periodic_closure(t0, t1, t2, t3) {
var _ = this;
_.$this = t0;
_.milliseconds = t1;
_.start = t2;
_.callback = t3;
},
_AsyncAwaitCompleter: function _AsyncAwaitCompleter(t0, t1) {
this._future = t0;
this.isSync = false;
this.$ti = t1;
},
_awaitOnObject_closure: function _awaitOnObject_closure(t0) {
this.bodyFunction = t0;
},
_awaitOnObject_closure0: function _awaitOnObject_closure0(t0) {
this.bodyFunction = t0;
},
_wrapJsFunctionForAsync_closure: function _wrapJsFunctionForAsync_closure(t0) {
this.$protected = t0;
},
_asyncStarHelper_closure: function _asyncStarHelper_closure(t0, t1) {
this.controller = t0;
this.bodyFunction = t1;
},
_asyncStarHelper_closure0: function _asyncStarHelper_closure0(t0, t1) {
this.controller = t0;
this.bodyFunction = t1;
},
_AsyncStarStreamController: function _AsyncStarStreamController(t0) {
var _ = this;
_.___AsyncStarStreamController_controller = null;
_.isSuspended = false;
_.cancelationFuture = null;
_.$ti = t0;
},
_AsyncStarStreamController__resumeBody: function _AsyncStarStreamController__resumeBody(t0) {
this.body = t0;
},
_AsyncStarStreamController__resumeBody_closure: function _AsyncStarStreamController__resumeBody_closure(t0) {
this.body = t0;
},
_AsyncStarStreamController_closure0: function _AsyncStarStreamController_closure0(t0) {
this._resumeBody = t0;
},
_AsyncStarStreamController_closure1: function _AsyncStarStreamController_closure1(t0, t1) {
this.$this = t0;
this._resumeBody = t1;
},
_AsyncStarStreamController_closure: function _AsyncStarStreamController_closure(t0, t1) {
this.$this = t0;
this.body = t1;
},
_AsyncStarStreamController__closure: function _AsyncStarStreamController__closure(t0) {
this.body = t0;
},
_IterationMarker: function _IterationMarker(t0, t1) {
this.value = t0;
this.state = t1;
},
_SyncStarIterator: function _SyncStarIterator(t0) {
var _ = this;
_._body = t0;
_._suspendedBodies = _._nestedIterator = _._async$_current = null;
},
_SyncStarIterable: function _SyncStarIterable(t0, t1) {
this._outerHelper = t0;
this.$ti = t1;
},
_BroadcastStream: function _BroadcastStream(t0, t1) {
this._async$_controller = t0;
this.$ti = t1;
},
_BroadcastSubscription: function _BroadcastSubscription(t0, t1, t2, t3, t4, t5, t6) {
var _ = this;
_._eventState = 0;
_._async$_previous = _._async$_next = null;
_._async$_controller = t0;
_._onData = t1;
_._onError = t2;
_._onDone = t3;
_._zone = t4;
_._state = t5;
_._pending = _._cancelFuture = null;
_.$ti = t6;
},
_BroadcastStreamController: function _BroadcastStreamController() {
},
_SyncBroadcastStreamController: function _SyncBroadcastStreamController(t0, t1, t2) {
var _ = this;
_.onListen = t0;
_.onCancel = t1;
_._state = 0;
_._doneFuture = _._addStreamState = _._lastSubscription = _._firstSubscription = null;
_.$ti = t2;
},
_SyncBroadcastStreamController__sendData_closure: function _SyncBroadcastStreamController__sendData_closure(t0, t1) {
this.$this = t0;
this.data = t1;
},
_SyncBroadcastStreamController__sendError_closure: function _SyncBroadcastStreamController__sendError_closure(t0, t1, t2) {
this.$this = t0;
this.error = t1;
this.stackTrace = t2;
},
_SyncBroadcastStreamController__sendDone_closure: function _SyncBroadcastStreamController__sendDone_closure(t0) {
this.$this = t0;
},
Future_wait__error_set: function Future_wait__error_set(t0) {
this._box_0 = t0;
},
Future_wait__stackTrace_set: function Future_wait__stackTrace_set(t0) {
this._box_0 = t0;
},
Future_wait__error_get: function Future_wait__error_get(t0) {
this._box_0 = t0;
},
Future_wait__stackTrace_get: function Future_wait__stackTrace_get(t0) {
this._box_0 = t0;
},
Future_wait_handleError: function Future_wait_handleError(t0, t1, t2, t3, t4, t5, t6, t7) {
var _ = this;
_._box_0 = t0;
_.cleanUp = t1;
_.eagerError = t2;
_._future = t3;
_._error_set = t4;
_._stackTrace_set = t5;
_._error_get = t6;
_._stackTrace_get = t7;
},
Future_wait_closure: function Future_wait_closure(t0, t1, t2, t3, t4, t5, t6, t7) {
var _ = this;
_._box_0 = t0;
_.pos = t1;
_._future = t2;
_.cleanUp = t3;
_.eagerError = t4;
_._error_get = t5;
_._stackTrace_get = t6;
_.T = t7;
},
_Completer: function _Completer() {
},
_AsyncCompleter: function _AsyncCompleter(t0, t1) {
this.future = t0;
this.$ti = t1;
},
_FutureListener: function _FutureListener(t0, t1, t2, t3, t4) {
var _ = this;
_._nextListener = null;
_.result = t0;
_.state = t1;
_.callback = t2;
_.errorCallback = t3;
_.$ti = t4;
},
_Future: function _Future(t0, t1) {
var _ = this;
_._state = 0;
_._zone = t0;
_._resultOrListeners = null;
_.$ti = t1;
},
_Future__addListener_closure: function _Future__addListener_closure(t0, t1) {
this.$this = t0;
this.listener = t1;
},
_Future__prependListeners_closure: function _Future__prependListeners_closure(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
_Future__chainForeignFuture_closure: function _Future__chainForeignFuture_closure(t0) {
this.target = t0;
},
_Future__chainForeignFuture_closure0: function _Future__chainForeignFuture_closure0(t0) {
this.target = t0;
},
_Future__chainForeignFuture_closure1: function _Future__chainForeignFuture_closure1(t0, t1, t2) {
this.target = t0;
this.e = t1;
this.s = t2;
},
_Future__asyncCompleteWithValue_closure: function _Future__asyncCompleteWithValue_closure(t0, t1) {
this.$this = t0;
this.value = t1;
},
_Future__chainFuture_closure: function _Future__chainFuture_closure(t0, t1) {
this.$this = t0;
this.value = t1;
},
_Future__asyncCompleteError_closure: function _Future__asyncCompleteError_closure(t0, t1, t2) {
this.$this = t0;
this.error = t1;
this.stackTrace = t2;
},
_Future__propagateToListeners_handleWhenCompleteCallback: function _Future__propagateToListeners_handleWhenCompleteCallback(t0, t1, t2) {
this._box_0 = t0;
this._box_1 = t1;
this.hasError = t2;
},
_Future__propagateToListeners_handleWhenCompleteCallback_closure: function _Future__propagateToListeners_handleWhenCompleteCallback_closure(t0) {
this.originalSource = t0;
},
_Future__propagateToListeners_handleValueCallback: function _Future__propagateToListeners_handleValueCallback(t0, t1) {
this._box_0 = t0;
this.sourceResult = t1;
},
_Future__propagateToListeners_handleError: function _Future__propagateToListeners_handleError(t0, t1) {
this._box_1 = t0;
this._box_0 = t1;
},
_AsyncCallbackEntry: function _AsyncCallbackEntry(t0) {
this.callback = t0;
this.next = null;
},
Stream: function Stream() {
},
Stream_Stream$fromFuture_closure: function Stream_Stream$fromFuture_closure(t0, t1) {
this.controller = t0;
this.T = t1;
},
Stream_Stream$fromFuture_closure0: function Stream_Stream$fromFuture_closure0(t0) {
this.controller = t0;
},
Stream_length_closure: function Stream_length_closure(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
Stream_length_closure0: function Stream_length_closure0(t0, t1) {
this._box_0 = t0;
this.future = t1;
},
StreamTransformerBase: function StreamTransformerBase() {
},
_StreamController: function _StreamController() {
},
_StreamController__subscribe_closure: function _StreamController__subscribe_closure(t0) {
this.$this = t0;
},
_StreamController__recordCancel_complete: function _StreamController__recordCancel_complete(t0) {
this.$this = t0;
},
_SyncStreamControllerDispatch: function _SyncStreamControllerDispatch() {
},
_AsyncStreamControllerDispatch: function _AsyncStreamControllerDispatch() {
},
_AsyncStreamController: function _AsyncStreamController(t0, t1, t2, t3, t4) {
var _ = this;
_._varData = null;
_._state = 0;
_._doneFuture = null;
_.onListen = t0;
_.onPause = t1;
_.onResume = t2;
_.onCancel = t3;
_.$ti = t4;
},
_SyncStreamController: function _SyncStreamController(t0, t1, t2, t3, t4) {
var _ = this;
_._varData = null;
_._state = 0;
_._doneFuture = null;
_.onListen = t0;
_.onPause = t1;
_.onResume = t2;
_.onCancel = t3;
_.$ti = t4;
},
_ControllerStream: function _ControllerStream(t0, t1) {
this._async$_controller = t0;
this.$ti = t1;
},
_ControllerSubscription: function _ControllerSubscription(t0, t1, t2, t3, t4, t5, t6) {
var _ = this;
_._async$_controller = t0;
_._onData = t1;
_._onError = t2;
_._onDone = t3;
_._zone = t4;
_._state = t5;
_._pending = _._cancelFuture = null;
_.$ti = t6;
},
_AddStreamState: function _AddStreamState() {
},
_AddStreamState_cancel_closure: function _AddStreamState_cancel_closure(t0) {
this.$this = t0;
},
_StreamControllerAddStreamState: function _StreamControllerAddStreamState(t0, t1, t2) {
this.varData = t0;
this.addStreamFuture = t1;
this.addSubscription = t2;
},
_BufferingStreamSubscription: function _BufferingStreamSubscription() {
},
_BufferingStreamSubscription__sendError_sendError: function _BufferingStreamSubscription__sendError_sendError(t0, t1, t2) {
this.$this = t0;
this.error = t1;
this.stackTrace = t2;
},
_BufferingStreamSubscription__sendDone_sendDone: function _BufferingStreamSubscription__sendDone_sendDone(t0) {
this.$this = t0;
},
_StreamImpl: function _StreamImpl() {
},
_DelayedEvent: function _DelayedEvent() {
},
_DelayedData: function _DelayedData(t0) {
this.value = t0;
this.next = null;
},
_DelayedError: function _DelayedError(t0, t1) {
this.error = t0;
this.stackTrace = t1;
this.next = null;
},
_DelayedDone: function _DelayedDone() {
},
_PendingEvents: function _PendingEvents() {
},
_PendingEvents_schedule_closure: function _PendingEvents_schedule_closure(t0, t1) {
this.$this = t0;
this.dispatch = t1;
},
_StreamImplEvents: function _StreamImplEvents() {
this.lastPendingEvent = this.firstPendingEvent = null;
this._state = 0;
},
_DoneStreamSubscription: function _DoneStreamSubscription(t0, t1, t2) {
var _ = this;
_._zone = t0;
_._state = 0;
_._onDone = t1;
_.$ti = t2;
},
_StreamIterator: function _StreamIterator(t0) {
this._subscription = null;
this._stateData = t0;
this._isPaused = false;
},
_ForwardingStream: function _ForwardingStream() {
},
_ForwardingStreamSubscription: function _ForwardingStreamSubscription(t0, t1, t2, t3, t4, t5, t6) {
var _ = this;
_._stream = t0;
_._subscription = null;
_._onData = t1;
_._onError = t2;
_._onDone = t3;
_._zone = t4;
_._state = t5;
_._pending = _._cancelFuture = null;
_.$ti = t6;
},
_ExpandStream: function _ExpandStream(t0, t1, t2) {
this._expand = t0;
this._async$_source = t1;
this.$ti = t2;
},
AsyncError: function AsyncError(t0, t1) {
this.error = t0;
this.stackTrace = t1;
},
_ZoneFunction: function _ZoneFunction(t0, t1) {
this.zone = t0;
this.$function = t1;
},
_RunNullaryZoneFunction: function _RunNullaryZoneFunction(t0, t1) {
this.zone = t0;
this.$function = t1;
},
_RunUnaryZoneFunction: function _RunUnaryZoneFunction(t0, t1) {
this.zone = t0;
this.$function = t1;
},
_RunBinaryZoneFunction: function _RunBinaryZoneFunction(t0, t1) {
this.zone = t0;
this.$function = t1;
},
_RegisterNullaryZoneFunction: function _RegisterNullaryZoneFunction(t0, t1) {
this.zone = t0;
this.$function = t1;
},
_RegisterUnaryZoneFunction: function _RegisterUnaryZoneFunction(t0, t1) {
this.zone = t0;
this.$function = t1;
},
_RegisterBinaryZoneFunction: function _RegisterBinaryZoneFunction(t0, t1) {
this.zone = t0;
this.$function = t1;
},
_ZoneSpecification: function _ZoneSpecification(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
var _ = this;
_.handleUncaughtError = t0;
_.run = t1;
_.runUnary = t2;
_.runBinary = t3;
_.registerCallback = t4;
_.registerUnaryCallback = t5;
_.registerBinaryCallback = t6;
_.errorCallback = t7;
_.scheduleMicrotask = t8;
_.createTimer = t9;
_.createPeriodicTimer = t10;
_.print = t11;
_.fork = t12;
},
_ZoneDelegate: function _ZoneDelegate(t0) {
this._delegationTarget = t0;
},
_Zone: function _Zone() {
},
_CustomZone: function _CustomZone(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
var _ = this;
_._run = t0;
_._runUnary = t1;
_._runBinary = t2;
_._registerCallback = t3;
_._registerUnaryCallback = t4;
_._registerBinaryCallback = t5;
_._errorCallback = t6;
_._scheduleMicrotask = t7;
_._createTimer = t8;
_._createPeriodicTimer = t9;
_._print = t10;
_._fork = t11;
_._handleUncaughtError = t12;
_._delegateCache = null;
_.parent = t13;
_._async$_map = t14;
},
_CustomZone_bindCallback_closure: function _CustomZone_bindCallback_closure(t0, t1, t2) {
this.$this = t0;
this.registered = t1;
this.R = t2;
},
_CustomZone_bindUnaryCallback_closure: function _CustomZone_bindUnaryCallback_closure(t0, t1, t2, t3) {
var _ = this;
_.$this = t0;
_.registered = t1;
_.T = t2;
_.R = t3;
},
_CustomZone_bindCallbackGuarded_closure: function _CustomZone_bindCallbackGuarded_closure(t0, t1) {
this.$this = t0;
this.registered = t1;
},
_rootHandleUncaughtError_closure: function _rootHandleUncaughtError_closure(t0, t1) {
this.error = t0;
this.stackTrace = t1;
},
_RootZone: function _RootZone() {
},
_RootZone_bindCallback_closure: function _RootZone_bindCallback_closure(t0, t1, t2) {
this.$this = t0;
this.f = t1;
this.R = t2;
},
_RootZone_bindCallbackGuarded_closure: function _RootZone_bindCallbackGuarded_closure(t0, t1) {
this.$this = t0;
this.f = t1;
},
HashMap_HashMap: function($K, $V) {
return new P._HashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_HashMap<1,2>"));
},
_HashMap__getTableEntry: function(table, key) {
var entry = table[key];
return entry === table ? null : entry;
},
_HashMap__setTableEntry: function(table, key, value) {
if (value == null)
table[key] = table;
else
table[key] = value;
},
_HashMap__newHashTable: function() {
var table = Object.create(null);
P._HashMap__setTableEntry(table, "", table);
delete table[""];
return table;
},
LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) {
if (isValidKey == null)
if (hashCode == null) {
if (equals == null)
return new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
hashCode = P.collection___defaultHashCode$closure();
} else {
if (P.core__identityHashCode$closure() === hashCode && P.core__identical$closure() === equals)
return P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6($K, $V);
if (equals == null)
equals = P.collection___defaultEquals$closure();
}
else {
if (hashCode == null)
hashCode = P.collection___defaultHashCode$closure();
if (equals == null)
equals = P.collection___defaultEquals$closure();
}
return P._LinkedCustomHashMap$(equals, hashCode, isValidKey, $K, $V);
},
LinkedHashMap_LinkedHashMap$_literal: function(keyValuePairs, $K, $V) {
return H.fillLiteralMap(keyValuePairs, new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")));
},
LinkedHashMap_LinkedHashMap$_empty: function($K, $V) {
return new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
},
_LinkedIdentityHashMap__LinkedIdentityHashMap$es6: function($K, $V) {
return new P._LinkedIdentityHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedIdentityHashMap<1,2>"));
},
_LinkedCustomHashMap$: function(_equals, _hashCode, validKey, $K, $V) {
var t1 = validKey != null ? validKey : new P._LinkedCustomHashMap_closure($K);
return new P._LinkedCustomHashMap(_equals, _hashCode, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedCustomHashMap<1,2>"));
},
LinkedHashSet_LinkedHashSet: function($E) {
return new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
},
LinkedHashSet_LinkedHashSet$_empty: function($E) {
return new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
},
LinkedHashSet_LinkedHashSet$_literal: function(values, $E) {
return H.fillLiteralSet(values, new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>")));
},
_LinkedHashSet__newHashTable: function() {
var table = Object.create(null);
table[""] = table;
delete table[""];
return table;
},
_LinkedHashSetIterator$: function(_set, _modifications) {
var t1 = new P._LinkedHashSetIterator(_set, _modifications);
t1._collection$_cell = _set._collection$_first;
return t1;
},
UnmodifiableListView$: function(source, $E) {
return new P.UnmodifiableListView(source, $E._eval$1("UnmodifiableListView<0>"));
},
_defaultEquals: function(a, b) {
return J.$eq$(a, b);
},
_defaultHashCode: function(a) {
return J.get$hashCode$(a);
},
HashMap_HashMap$from: function(other, $K, $V) {
var result = P.HashMap_HashMap($K, $V);
other.forEach$1(0, new P.HashMap_HashMap$from_closure(result, $K, $V));
return result;
},
IterableBase_iterableToShortString: function(iterable, leftDelimiter, rightDelimiter) {
var parts, t1;
if (P._isToStringVisiting(iterable)) {
if (leftDelimiter === "(" && rightDelimiter === ")")
return "(...)";
return leftDelimiter + "..." + rightDelimiter;
}
parts = H.setRuntimeTypeInfo([], type$.JSArray_String);
$._toStringVisiting.push(iterable);
try {
P._iterablePartsToStrings(iterable, parts);
} finally {
$._toStringVisiting.pop();
}
t1 = P.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter;
return t1.charCodeAt(0) == 0 ? t1 : t1;
},
IterableBase_iterableToFullString: function(iterable, leftDelimiter, rightDelimiter) {
var buffer, t1;
if (P._isToStringVisiting(iterable))
return leftDelimiter + "..." + rightDelimiter;
buffer = new P.StringBuffer(leftDelimiter);
$._toStringVisiting.push(iterable);
try {
t1 = buffer;
t1._contents = P.StringBuffer__writeAll(t1._contents, iterable, ", ");
} finally {
$._toStringVisiting.pop();
}
buffer._contents += rightDelimiter;
t1 = buffer._contents;
return t1.charCodeAt(0) == 0 ? t1 : t1;
},
_isToStringVisiting: function(o) {
var t1, i;
for (t1 = $._toStringVisiting.length, i = 0; i < t1; ++i)
if (o === $._toStringVisiting[i])
return true;
return false;
},
_iterablePartsToStrings: function(iterable, parts) {
var next, ultimateString, penultimateString, penultimate, ultimate, ultimate0, elision,
it = iterable.get$iterator(iterable),
$length = 0, count = 0;
while (true) {
if (!($length < 80 || count < 3))
break;
if (!it.moveNext$0())
return;
next = H.S(it.get$current(it));
parts.push(next);
$length += next.length + 2;
++count;
}
if (!it.moveNext$0()) {
if (count <= 5)
return;
ultimateString = parts.pop();
penultimateString = parts.pop();
} else {
penultimate = it.get$current(it);
++count;
if (!it.moveNext$0()) {
if (count <= 4) {
parts.push(H.S(penultimate));
return;
}
ultimateString = H.S(penultimate);
penultimateString = parts.pop();
$length += ultimateString.length + 2;
} else {
ultimate = it.get$current(it);
++count;
for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) {
ultimate0 = it.get$current(it);
++count;
if (count > 100) {
while (true) {
if (!($length > 75 && count > 3))
break;
$length -= parts.pop().length + 2;
--count;
}
parts.push("...");
return;
}
}
penultimateString = H.S(penultimate);
ultimateString = H.S(ultimate);
$length += ultimateString.length + penultimateString.length + 4;
}
}
if (count > parts.length + 2) {
$length += 5;
elision = "...";
} else
elision = null;
while (true) {
if (!($length > 80 && parts.length > 3))
break;
$length -= parts.pop().length + 2;
if (elision == null) {
$length += 5;
elision = "...";
}
}
if (elision != null)
parts.push(elision);
parts.push(penultimateString);
parts.push(ultimateString);
},
LinkedHashMap_LinkedHashMap$from: function(other, $K, $V) {
var result = P.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
other.forEach$1(0, new P.LinkedHashMap_LinkedHashMap$from_closure(result, $K, $V));
return result;
},
LinkedHashMap_LinkedHashMap$of: function(other, $K, $V) {
var t1 = P.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
t1.addAll$1(0, other);
return t1;
},
LinkedHashSet_LinkedHashSet$from: function(elements, $E) {
var t1, _i,
result = P.LinkedHashSet_LinkedHashSet($E);
for (t1 = elements.length, _i = 0; _i < elements.length; elements.length === t1 || (0, H.throwConcurrentModificationError)(elements), ++_i)
result.add$1(0, $E._as(elements[_i]));
return result;
},
LinkedHashSet_LinkedHashSet$of: function(elements, $E) {
var t1 = P.LinkedHashSet_LinkedHashSet($E);
t1.addAll$1(0, elements);
return t1;
},
ListMixin__compareAny: function(a, b) {
var t1 = type$.Comparable_dynamic;
return J.compareTo$1$ns(t1._as(a), t1._as(b));
},
MapBase_mapToString: function(m) {
var result, t1 = {};
if (P._isToStringVisiting(m))
return "{...}";
result = new P.StringBuffer("");
try {
$._toStringVisiting.push(m);
result._contents += "{";
t1.first = true;
m.forEach$1(0, new P.MapBase_mapToString_closure(t1, result));
result._contents += "}";
} finally {
$._toStringVisiting.pop();
}
t1 = result._contents;
return t1.charCodeAt(0) == 0 ? t1 : t1;
},
MapBase__fillMapWithIterables: function(map, keys, values) {
var keyIterator = keys.get$iterator(keys),
valueIterator = values.get$iterator(values),
hasNextKey = keyIterator.moveNext$0(),
hasNextValue = valueIterator.moveNext$0();
while (true) {
if (!(hasNextKey && hasNextValue))
break;
map.$indexSet(0, keyIterator.get$current(keyIterator), valueIterator.get$current(valueIterator));
hasNextKey = keyIterator.moveNext$0();
hasNextValue = valueIterator.moveNext$0();
}
if (hasNextKey || hasNextValue)
throw H.wrapException(P.ArgumentError$("Iterables do not have same length."));
},
ListQueue$: function($E) {
return new P.ListQueue(P.List_List$filled(P.ListQueue__calculateCapacity(null), null, false, $E._eval$1("0?")), $E._eval$1("ListQueue<0>"));
},
ListQueue__calculateCapacity: function(initialCapacity) {
return 8;
},
ListQueue_ListQueue$of: function(elements, $E) {
var t1 = P.ListQueue$($E);
t1.addAll$1(0, elements);
return t1;
},
ListQueue__nextPowerOf2: function(number) {
var nextNumber;
number = (number << 1 >>> 0) - 1;
for (; true; number = nextNumber) {
nextNumber = (number & number - 1) >>> 0;
if (nextNumber === 0)
return number;
}
},
_ListQueueIterator$: function(queue) {
return new P._ListQueueIterator(queue, queue._collection$_tail, queue._modificationCount, queue._collection$_head);
},
_HashMap: function _HashMap(t0) {
var _ = this;
_._collection$_length = 0;
_._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
_.$ti = t0;
},
_HashMap_values_closure: function _HashMap_values_closure(t0) {
this.$this = t0;
},
_HashMap_addAll_closure: function _HashMap_addAll_closure(t0) {
this.$this = t0;
},
_HashMapKeyIterable: function _HashMapKeyIterable(t0, t1) {
this._collection$_map = t0;
this.$ti = t1;
},
_HashMapKeyIterator: function _HashMapKeyIterator(t0, t1) {
var _ = this;
_._collection$_map = t0;
_._keys = t1;
_._offset = 0;
_._collection$_current = null;
},
_LinkedIdentityHashMap: function _LinkedIdentityHashMap(t0) {
var _ = this;
_.__js_helper$_length = 0;
_._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
_._modifications = 0;
_.$ti = t0;
},
_LinkedCustomHashMap: function _LinkedCustomHashMap(t0, t1, t2, t3) {
var _ = this;
_._equals = t0;
_._hashCode = t1;
_._validKey = t2;
_.__js_helper$_length = 0;
_._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
_._modifications = 0;
_.$ti = t3;
},
_LinkedCustomHashMap_closure: function _LinkedCustomHashMap_closure(t0) {
this.K = t0;
},
_LinkedHashSet: function _LinkedHashSet(t0) {
var _ = this;
_._collection$_length = 0;
_._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
_._collection$_modifications = 0;
_.$ti = t0;
},
_LinkedIdentityHashSet: function _LinkedIdentityHashSet(t0) {
var _ = this;
_._collection$_length = 0;
_._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
_._collection$_modifications = 0;
_.$ti = t0;
},
_LinkedHashSetCell: function _LinkedHashSetCell(t0) {
this._element = t0;
this._collection$_previous = this._collection$_next = null;
},
_LinkedHashSetIterator: function _LinkedHashSetIterator(t0, t1) {
var _ = this;
_._set = t0;
_._collection$_modifications = t1;
_._collection$_current = _._collection$_cell = null;
},
UnmodifiableListView: function UnmodifiableListView(t0, t1) {
this._collection$_source = t0;
this.$ti = t1;
},
HashMap_HashMap$from_closure: function HashMap_HashMap$from_closure(t0, t1, t2) {
this.result = t0;
this.K = t1;
this.V = t2;
},
IterableBase: function IterableBase() {
},
LinkedHashMap_LinkedHashMap$from_closure: function LinkedHashMap_LinkedHashMap$from_closure(t0, t1, t2) {
this.result = t0;
this.K = t1;
this.V = t2;
},
ListBase: function ListBase() {
},
ListMixin: function ListMixin() {
},
MapBase: function MapBase() {
},
MapBase_mapToString_closure: function MapBase_mapToString_closure(t0, t1) {
this._box_0 = t0;
this.result = t1;
},
MapMixin: function MapMixin() {
},
MapMixin_entries_closure: function MapMixin_entries_closure(t0) {
this.$this = t0;
},
UnmodifiableMapBase: function UnmodifiableMapBase() {
},
_MapBaseValueIterable: function _MapBaseValueIterable(t0, t1) {
this._collection$_map = t0;
this.$ti = t1;
},
_MapBaseValueIterator: function _MapBaseValueIterator(t0, t1) {
this._keys = t0;
this._collection$_map = t1;
this._collection$_current = null;
},
_UnmodifiableMapMixin: function _UnmodifiableMapMixin() {
},
MapView: function MapView() {
},
UnmodifiableMapView: function UnmodifiableMapView(t0, t1) {
this._collection$_map = t0;
this.$ti = t1;
},
ListQueue: function ListQueue(t0, t1) {
var _ = this;
_._collection$_table = t0;
_._modificationCount = _._collection$_tail = _._collection$_head = 0;
_.$ti = t1;
},
_ListQueueIterator: function _ListQueueIterator(t0, t1, t2, t3) {
var _ = this;
_._queue = t0;
_._collection$_end = t1;
_._modificationCount = t2;
_._collection$_position = t3;
_._collection$_current = null;
},
_SetBase: function _SetBase() {
},
_UnmodifiableSet: function _UnmodifiableSet(t0, t1) {
this._collection$_map = t0;
this.$ti = t1;
},
_ListBase_Object_ListMixin: function _ListBase_Object_ListMixin() {
},
_UnmodifiableMapView_MapView__UnmodifiableMapMixin: function _UnmodifiableMapView_MapView__UnmodifiableMapMixin() {
},
Utf8Decoder__convertIntercepted: function(allowMalformed, codeUnits, start, end) {
var casted, result;
if (codeUnits instanceof Uint8Array) {
casted = codeUnits;
end = casted.length;
if (end - start < 15)
return null;
result = P.Utf8Decoder__convertInterceptedUint8List(allowMalformed, casted, start, end);
if (result != null && allowMalformed)
if (result.indexOf("\ufffd") >= 0)
return null;
return result;
}
return null;
},
Utf8Decoder__convertInterceptedUint8List: function(allowMalformed, codeUnits, start, end) {
var decoder = allowMalformed ? $.$get$Utf8Decoder__decoderNonfatal() : $.$get$Utf8Decoder__decoder();
if (decoder == null)
return null;
if (0 === start && end === codeUnits.length)
return P.Utf8Decoder__useTextDecoder(decoder, codeUnits);
return P.Utf8Decoder__useTextDecoder(decoder, codeUnits.subarray(start, P.RangeError_checkValidRange(start, end, codeUnits.length)));
},
Utf8Decoder__useTextDecoder: function(decoder, codeUnits) {
var t1, exception;
try {
t1 = decoder.decode(codeUnits);
return t1;
} catch (exception) {
H.unwrapException(exception);
}
return null;
},
Base64Codec__checkPadding: function(source, sourceIndex, sourceEnd, firstPadding, paddingCount, $length) {
if (C.JSInt_methods.$mod($length, 4) !== 0)
throw H.wrapException(P.FormatException$("Invalid base64 padding, padded length must be multiple of four, is " + $length, source, sourceEnd));
if (firstPadding + paddingCount !== $length)
throw H.wrapException(P.FormatException$("Invalid base64 padding, '=' not at the end", source, sourceIndex));
if (paddingCount > 2)
throw H.wrapException(P.FormatException$("Invalid base64 padding, more than two '=' characters", source, sourceIndex));
},
_Base64Encoder_encodeChunk: function(alphabet, bytes, start, end, isLast, output, outputIndex, state) {
var t1, i, byteOr, byte, outputIndex0, outputIndex1,
bits = state >>> 2,
expectedChars = 3 - (state & 3);
for (t1 = J.getInterceptor$asx(bytes), i = start, byteOr = 0; i < end; ++i) {
byte = t1.$index(bytes, i);
byteOr = (byteOr | byte) >>> 0;
bits = (bits << 8 | byte) & 16777215;
--expectedChars;
if (expectedChars === 0) {
outputIndex0 = outputIndex + 1;
output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 18 & 63);
outputIndex = outputIndex0 + 1;
output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 12 & 63);
outputIndex0 = outputIndex + 1;
output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 6 & 63);
outputIndex = outputIndex0 + 1;
output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits & 63);
bits = 0;
expectedChars = 3;
}
}
if (byteOr >= 0 && byteOr <= 255) {
if (isLast && expectedChars < 3) {
outputIndex0 = outputIndex + 1;
outputIndex1 = outputIndex0 + 1;
if (3 - expectedChars === 1) {
output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 2 & 63);
output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits << 4 & 63);
output[outputIndex1] = 61;
output[outputIndex1 + 1] = 61;
} else {
output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 10 & 63);
output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 4 & 63);
output[outputIndex1] = C.JSString_methods._codeUnitAt$1(alphabet, bits << 2 & 63);
output[outputIndex1 + 1] = 61;
}
return 0;
}
return (bits << 2 | 3 - expectedChars) >>> 0;
}
for (i = start; i < end;) {
byte = t1.$index(bytes, i);
if (byte < 0 || byte > 255)
break;
++i;
}
throw H.wrapException(P.ArgumentError$value(bytes, "Not a byte value at index " + i + ": 0x" + J.toRadixString$1$n(t1.$index(bytes, i), 16), null));
},
JsonUnsupportedObjectError$: function(unsupportedObject, cause, partialResult) {
return new P.JsonUnsupportedObjectError(unsupportedObject, cause);
},
_defaultToEncodable: function(object) {
return object.toJson$0();
},
_JsonStringStringifier$: function(_sink, _toEncodable) {
return new P._JsonStringStringifier(_sink, [], P.convert___defaultToEncodable$closure());
},
_JsonStringStringifier_stringify: function(object, toEncodable, indent) {
var t1,
output = new P.StringBuffer("");
P._JsonStringStringifier_printOn(object, output, toEncodable, indent);
t1 = output._contents;
return t1.charCodeAt(0) == 0 ? t1 : t1;
},
_JsonStringStringifier_printOn: function(object, output, toEncodable, indent) {
var stringifier = P._JsonStringStringifier$(output, toEncodable);
stringifier.writeObject$1(object);
},
_Utf8Decoder_errorDescription: function(state) {
switch (state) {
case 65:
return "Missing extension byte";
case 67:
return "Unexpected extension byte";
case 69:
return "Invalid UTF-8 byte";
case 71:
return "Overlong encoding";
case 73:
return "Out of unicode range";
case 75:
return "Encoded surrogate";
case 77:
return "Unfinished UTF-8 octet sequence";
default:
return "";
}
},
_Utf8Decoder__makeUint8List: function(codeUnits, start, end) {
var t1, i, b,
$length = end - start,
bytes = new Uint8Array($length);
for (t1 = J.getInterceptor$asx(codeUnits), i = 0; i < $length; ++i) {
b = t1.$index(codeUnits, start + i);
bytes[i] = (b & 4294967040) >>> 0 !== 0 ? 255 : b;
}
return bytes;
},
Utf8Decoder_closure: function Utf8Decoder_closure() {
},
Utf8Decoder_closure0: function Utf8Decoder_closure0() {
},
AsciiCodec: function AsciiCodec() {
},
_UnicodeSubsetEncoder: function _UnicodeSubsetEncoder() {
},
AsciiEncoder: function AsciiEncoder(t0) {
this._subsetMask = t0;
},
Base64Codec: function Base64Codec() {
},
Base64Encoder: function Base64Encoder() {
},
_Base64Encoder: function _Base64Encoder(t0) {
this._convert$_state = 0;
this._alphabet = t0;
},
_BufferCachingBase64Encoder: function _BufferCachingBase64Encoder(t0) {
this.bufferCache = null;
this._convert$_state = 0;
this._alphabet = t0;
},
_Base64EncoderSink: function _Base64EncoderSink() {
},
_AsciiBase64EncoderSink: function _AsciiBase64EncoderSink(t0, t1) {
this._sink = t0;
this._encoder = t1;
},
_Utf8Base64EncoderSink: function _Utf8Base64EncoderSink(t0, t1) {
this._sink = t0;
this._encoder = t1;
},
ByteConversionSink: function ByteConversionSink() {
},
ByteConversionSinkBase: function ByteConversionSinkBase() {
},
ChunkedConversionSink: function ChunkedConversionSink() {
},
Codec: function Codec() {
},
Converter: function Converter() {
},
Encoding: function Encoding() {
},
JsonUnsupportedObjectError: function JsonUnsupportedObjectError(t0, t1) {
this.unsupportedObject = t0;
this.cause = t1;
},
JsonCyclicError: function JsonCyclicError(t0, t1) {
this.unsupportedObject = t0;
this.cause = t1;
},
JsonCodec: function JsonCodec() {
},
JsonEncoder: function JsonEncoder(t0) {
this._toEncodable = t0;
},
_JsonStringifier: function _JsonStringifier() {
},
_JsonStringifier_writeMap_closure: function _JsonStringifier_writeMap_closure(t0, t1) {
this._box_0 = t0;
this.keyValueList = t1;
},
_JsonStringStringifier: function _JsonStringStringifier(t0, t1, t2) {
this._sink = t0;
this._seen = t1;
this._toEncodable = t2;
},
StringConversionSinkBase: function StringConversionSinkBase() {
},
StringConversionSinkMixin: function StringConversionSinkMixin() {
},
_StringSinkConversionSink: function _StringSinkConversionSink(t0) {
this._stringSink = t0;
},
_StringCallbackSink: function _StringCallbackSink(t0, t1) {
this._convert$_callback = t0;
this._stringSink = t1;
},
_StringAdapterSink: function _StringAdapterSink(t0) {
this._sink = t0;
},
_Utf8StringSinkAdapter: function _Utf8StringSinkAdapter(t0, t1, t2) {
this._decoder = t0;
this._sink = t1;
this._stringSink = t2;
},
_Utf8ConversionSink: function _Utf8ConversionSink(t0, t1, t2) {
this._decoder = t0;
this._chunkedSink = t1;
this._convert$_buffer = t2;
},
Utf8Codec: function Utf8Codec() {
},
Utf8Encoder: function Utf8Encoder() {
},
_Utf8Encoder: function _Utf8Encoder(t0) {
this._bufferIndex = this._carry = 0;
this._convert$_buffer = t0;
},
Utf8Decoder: function Utf8Decoder(t0) {
this._allowMalformed = t0;
},
_Utf8Decoder: function _Utf8Decoder(t0) {
this.allowMalformed = t0;
this._convert$_state = 16;
this._charOrIndex = 0;
},
identityHashCode: function(object) {
return H.objectHashCode(object);
},
Function_apply: function($function, positionalArguments) {
return H.Primitives_applyFunction($function, positionalArguments, null);
},
int_parse: function(source, radix) {
var value = H.Primitives_parseInt(source, radix);
if (value != null)
return value;
throw H.wrapException(P.FormatException$(source, null, null));
},
double_parse: function(source) {
var value = H.Primitives_parseDouble(source);
if (value != null)
return value;
throw H.wrapException(P.FormatException$("Invalid double", source, null));
},
Error__objectToString: function(object) {
if (object instanceof H.Closure)
return object.toString$0(0);
return "Instance of '" + H.S(H.Primitives_objectTypeName(object)) + "'";
},
List_List$filled: function($length, fill, growable, $E) {
var i,
result = growable ? J.JSArray_JSArray$growable($length, $E) : J.JSArray_JSArray$fixed($length, $E);
if ($length !== 0 && fill != null)
for (i = 0; i < result.length; ++i)
result[i] = fill;
return result;
},
List_List$from: function(elements, growable, $E) {
var t1,
list = H.setRuntimeTypeInfo([], $E._eval$1("JSArray<0>"));
for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
list.push(t1.get$current(t1));
if (growable)
return list;
return J.JSArray_markFixedList(list);
},
List_List$generate: function($length, generator, growable, $E) {
var i,
result = growable ? J.JSArray_JSArray$growable($length, $E) : J.JSArray_JSArray$fixed($length, $E);
for (i = 0; i < $length; ++i)
result[i] = generator.call$1(i);
return result;
},
List_List$unmodifiable: function(elements, $E) {
return J.JSArray_markUnmodifiableList(P.List_List$from(elements, false, $E));
},
String_String$fromCharCodes: function(charCodes, start, end) {
var array, len;
if (Array.isArray(charCodes)) {
array = charCodes;
len = array.length;
end = P.RangeError_checkValidRange(start, end, len);
return H.Primitives_stringFromCharCodes(start > 0 || end < len ? array.slice(start, end) : array);
}
if (type$.NativeUint8List._is(charCodes))
return H.Primitives_stringFromNativeUint8List(charCodes, start, P.RangeError_checkValidRange(start, end, charCodes.length));
return P.String__stringFromIterable(charCodes, start, end);
},
String_String$fromCharCode: function(charCode) {
return H.Primitives_stringFromCharCode(charCode);
},
String__stringFromIterable: function(charCodes, start, end) {
var t1, it, i, list, _null = null;
if (start < 0)
throw H.wrapException(P.RangeError$range(start, 0, J.get$length$asx(charCodes), _null, _null));
t1 = end == null;
if (!t1 && end < start)
throw H.wrapException(P.RangeError$range(end, start, J.get$length$asx(charCodes), _null, _null));
it = J.get$iterator$ax(charCodes);
for (i = 0; i < start; ++i)
if (!it.moveNext$0())
throw H.wrapException(P.RangeError$range(start, 0, i, _null, _null));
list = [];
if (t1)
for (; it.moveNext$0();)
list.push(it.get$current(it));
else
for (i = start; i < end; ++i) {
if (!it.moveNext$0())
throw H.wrapException(P.RangeError$range(end, start, i, _null, _null));
list.push(it.get$current(it));
}
return H.Primitives_stringFromCharCodes(list);
},
RegExp_RegExp: function(source, multiLine) {
return new H.JSSyntaxRegExp(source, H.JSSyntaxRegExp_makeNative(source, multiLine, true, false, false, false));
},
identical: function(a, b) {
return a == null ? b == null : a === b;
},
StringBuffer__writeAll: function(string, objects, separator) {
var iterator = J.get$iterator$ax(objects);
if (!iterator.moveNext$0())
return string;
if (separator.length === 0) {
do
string += H.S(iterator.get$current(iterator));
while (iterator.moveNext$0());
} else {
string += H.S(iterator.get$current(iterator));
for (; iterator.moveNext$0();)
string = string + separator + H.S(iterator.get$current(iterator));
}
return string;
},
NoSuchMethodError$: function(receiver, memberName, positionalArguments, namedArguments) {
return new P.NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments);
},
Uri_base: function() {
var uri = H.Primitives_currentUri();
if (uri != null)
return P.Uri_parse(uri);
throw H.wrapException(P.UnsupportedError$("'Uri.base' is not supported"));
},
_Uri__uriEncode: function(canonicalTable, text, encoding, spaceToPlus) {
var t1, bytes, i, t2, byte,
_s16_ = "0123456789ABCDEF";
if (encoding === C.C_Utf8Codec) {
t1 = $.$get$_Uri__needsNoEncoding()._nativeRegExp;
if (typeof text != "string")
H.throwExpression(H.argumentErrorValue(text));
t1 = t1.test(text);
} else
t1 = false;
if (t1)
return text;
bytes = encoding.get$encoder().convert$1(text);
for (t1 = bytes.length, i = 0, t2 = ""; i < t1; ++i) {
byte = bytes[i];
if (byte < 128 && (canonicalTable[byte >>> 4] & 1 << (byte & 15)) !== 0)
t2 += H.Primitives_stringFromCharCode(byte);
else
t2 = spaceToPlus && byte === 32 ? t2 + "+" : t2 + "%" + _s16_[byte >>> 4 & 15] + _s16_[byte & 15];
}
return t2.charCodeAt(0) == 0 ? t2 : t2;
},
StackTrace_current: function() {
var stackTrace, exception;
if ($.$get$_hasErrorStackProperty())
return H.getTraceFromException(new Error());
try {
throw H.wrapException("");
} catch (exception) {
H.unwrapException(exception);
stackTrace = H.getTraceFromException(exception);
return stackTrace;
}
},
DateTime$_withValue: function(_value, isUtc) {
var t1;
if (Math.abs(_value) <= 864e13)
t1 = false;
else
t1 = true;
if (t1)
H.throwExpression(P.ArgumentError$("DateTime is outside valid range: " + _value));
P.ArgumentError_checkNotNull(false, "isUtc");
return new P.DateTime(_value, false);
},
DateTime__fourDigits: function(n) {
var absN = Math.abs(n),
sign = n < 0 ? "-" : "";
if (absN >= 1000)
return "" + n;
if (absN >= 100)
return sign + "0" + absN;
if (absN >= 10)
return sign + "00" + absN;
return sign + "000" + absN;
},
DateTime__threeDigits: function(n) {
if (n >= 100)
return "" + n;
if (n >= 10)
return "0" + n;
return "00" + n;
},
DateTime__twoDigits: function(n) {
if (n >= 10)
return "" + n;
return "0" + n;
},
Duration$: function(milliseconds) {
return new P.Duration(1000 * milliseconds);
},
Error_safeToString: function(object) {
if (typeof object == "number" || H._isBool(object) || null == object)
return J.toString$0$(object);
if (typeof object == "string")
return JSON.stringify(object);
return P.Error__objectToString(object);
},
AssertionError$: function(message) {
return new P.AssertionError(message);
},
ArgumentError$: function(message) {
return new P.ArgumentError(false, null, null, message);
},
ArgumentError$value: function(value, $name, message) {
return new P.ArgumentError(true, value, $name, message);
},
ArgumentError$notNull: function($name) {
return new P.ArgumentError(false, null, $name, "Must not be null");
},
ArgumentError_checkNotNull: function(argument, $name) {
if (argument == null)
throw H.wrapException(P.ArgumentError$notNull($name));
return argument;
},
RangeError$: function(message) {
var _null = null;
return new P.RangeError(_null, _null, false, _null, _null, message);
},
RangeError$value: function(value, $name, message) {
return new P.RangeError(null, null, true, value, $name, message == null ? "Value not in range" : message);
},
RangeError$range: function(invalidValue, minValue, maxValue, $name, message) {
return new P.RangeError(minValue, maxValue, true, invalidValue, $name, message == null ? "Invalid value" : message);
},
RangeError_checkValueInInterval: function(value, minValue, maxValue, $name) {
if (value < minValue || value > maxValue)
throw H.wrapException(P.RangeError$range(value, minValue, maxValue, $name, null));
return value;
},
RangeError_checkValidIndex: function(index, indexable, $name) {
var $length = indexable.get$length(indexable);
if (0 > index || index >= $length)
throw H.wrapException(P.IndexError$(index, indexable, $name == null ? "index" : $name, null, $length));
return index;
},
RangeError_checkValidRange: function(start, end, $length) {
if (0 > start || start > $length)
throw H.wrapException(P.RangeError$range(start, 0, $length, "start", null));
if (end != null) {
if (start > end || end > $length)
throw H.wrapException(P.RangeError$range(end, start, $length, "end", null));
return end;
}
return $length;
},
RangeError_checkNotNegative: function(value, $name) {
if (value < 0)
throw H.wrapException(P.RangeError$range(value, 0, null, $name, null));
return value;
},
IndexError$: function(invalidValue, indexable, $name, message, $length) {
var t1 = $length == null ? J.get$length$asx(indexable) : $length;
return new P.IndexError(t1, true, invalidValue, $name, "Index out of range");
},
UnsupportedError$: function(message) {
return new P.UnsupportedError(message);
},
UnimplementedError$: function(message) {
return new P.UnimplementedError(message);
},
StateError$: function(message) {
return new P.StateError(message);
},
ConcurrentModificationError$: function(modifiedObject) {
return new P.ConcurrentModificationError(modifiedObject);
},
FormatException$: function(message, source, offset) {
return new P.FormatException(message, source, offset);
},
Iterable_Iterable$generate: function(count, generator, $E) {
if (count <= 0)
return new H.EmptyIterable($E._eval$1("EmptyIterable<0>"));
return new P._GeneratorIterable(count, generator, $E._eval$1("_GeneratorIterable<0>"));
},
print: function(object) {
var line = J.toString$0$(object),
toZone = $.printToZone;
if (toZone == null)
H.printString(H.S(line));
else
toZone.call$1(line);
},
Set_castFrom: function(source, newSet, $S, $T) {
return new H.CastSet(source, newSet, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastSet<1,2>"));
},
_combineSurrogatePair: function(start, end) {
return 65536 + ((start & 1023) << 10) + (end & 1023);
},
RuneIterator$: function(string) {
return new P.RuneIterator(string);
},
Uri_Uri$dataFromString: function($content, encoding, mimeType) {
var encodingName, t1,
buffer = new P.StringBuffer(""),
indices = H.setRuntimeTypeInfo([-1], type$.JSArray_int);
if (encoding == null)
encodingName = null;
else
encodingName = "utf-8";
if (encoding == null)
encoding = C.C_AsciiCodec;
P.UriData__writeUri(mimeType, encodingName, null, buffer, indices);
indices.push(buffer._contents.length);
buffer._contents += ",";
P.UriData__uriEncodeBytes(C.List_CVk, encoding.encode$1($content), buffer);
t1 = buffer._contents;
return new P.UriData(t1.charCodeAt(0) == 0 ? t1 : t1, indices, null).get$uri();
},
Uri_parse: function(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,
end = uri.length;
if (end >= 5) {
delta = ((J._codeUnitAt$1$s(uri, 4) ^ 58) * 3 | C.JSString_methods._codeUnitAt$1(uri, 0) ^ 100 | C.JSString_methods._codeUnitAt$1(uri, 1) ^ 97 | C.JSString_methods._codeUnitAt$1(uri, 2) ^ 116 | C.JSString_methods._codeUnitAt$1(uri, 3) ^ 97) >>> 0;
if (delta === 0)
return P.UriData__parse(end < end ? C.JSString_methods.substring$2(uri, 0, end) : uri, 5, _null).get$uri();
else if (delta === 32)
return P.UriData__parse(C.JSString_methods.substring$2(uri, 5, end), 0, _null).get$uri();
}
indices = P.List_List$filled(8, 0, false, type$.int);
indices[0] = 0;
indices[1] = -1;
indices[2] = -1;
indices[7] = -1;
indices[3] = 0;
indices[4] = 0;
indices[5] = end;
indices[6] = end;
if (P._scan(uri, 0, end, 0, indices) >= 14)
indices[7] = end;
schemeEnd = indices[1];
if (schemeEnd >= 0)
if (P._scan(uri, 0, schemeEnd, 20, indices) === 20)
indices[7] = schemeEnd;
hostStart = indices[2] + 1;
portStart = indices[3];
pathStart = indices[4];
queryStart = indices[5];
fragmentStart = indices[6];
if (fragmentStart < queryStart)
queryStart = fragmentStart;
if (pathStart < hostStart)
pathStart = queryStart;
else if (pathStart <= schemeEnd)
pathStart = schemeEnd + 1;
if (portStart < hostStart)
portStart = pathStart;
isSimple = indices[7] < 0;
if (isSimple)
if (hostStart > schemeEnd + 3) {
scheme = _null;
isSimple = false;
} else {
t1 = portStart > 0;
if (t1 && portStart + 1 === pathStart) {
scheme = _null;
isSimple = false;
} else {
if (!(queryStart < end && queryStart === pathStart + 2 && J.startsWith$2$s(uri, "..", pathStart)))
t2 = queryStart > pathStart + 2 && J.startsWith$2$s(uri, "/..", queryStart - 3);
else
t2 = true;
if (t2) {
scheme = _null;
isSimple = false;
} else {
if (schemeEnd === 4)
if (J.startsWith$2$s(uri, "file", 0)) {
if (hostStart <= 0) {
if (!C.JSString_methods.startsWith$2(uri, "/", pathStart)) {
schemeAuth = "file:///";
delta = 3;
} else {
schemeAuth = "file://";
delta = 2;
}
uri = schemeAuth + C.JSString_methods.substring$2(uri, pathStart, end);
schemeEnd -= 0;
t1 = delta - 0;
queryStart += t1;
fragmentStart += t1;
end = uri.length;
hostStart = 7;
portStart = 7;
pathStart = 7;
} else if (pathStart === queryStart) {
++fragmentStart;
queryStart0 = queryStart + 1;
uri = C.JSString_methods.replaceRange$3(uri, pathStart, queryStart, "/");
++end;
queryStart = queryStart0;
}
scheme = "file";
} else if (C.JSString_methods.startsWith$2(uri, "http", 0)) {
if (t1 && portStart + 3 === pathStart && C.JSString_methods.startsWith$2(uri, "80", portStart + 1)) {
fragmentStart -= 3;
pathStart0 = pathStart - 3;
queryStart -= 3;
uri = C.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
end -= 3;
pathStart = pathStart0;
}
scheme = "http";
} else
scheme = _null;
else if (schemeEnd === 5 && J.startsWith$2$s(uri, "https", 0)) {
if (t1 && portStart + 4 === pathStart && J.startsWith$2$s(uri, "443", portStart + 1)) {
fragmentStart -= 4;
pathStart0 = pathStart - 4;
queryStart -= 4;
uri = J.replaceRange$3$asx(uri, portStart, pathStart, "");
end -= 3;
pathStart = pathStart0;
}
scheme = "https";
} else
scheme = _null;
isSimple = true;
}
}
}
else
scheme = _null;
if (isSimple) {
t1 = uri.length;
if (end < t1) {
uri = J.substring$2$s(uri, 0, end);
schemeEnd -= 0;
hostStart -= 0;
portStart -= 0;
pathStart -= 0;
queryStart -= 0;
fragmentStart -= 0;
}
return new P._SimpleUri(uri, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme);
}
if (scheme == null)
if (schemeEnd > 0)
scheme = P._Uri__makeScheme(uri, 0, schemeEnd);
else {
if (schemeEnd === 0)
P._Uri__fail(uri, 0, "Invalid empty scheme");
scheme = "";
}
if (hostStart > 0) {
userInfoStart = schemeEnd + 3;
userInfo = userInfoStart < hostStart ? P._Uri__makeUserInfo(uri, userInfoStart, hostStart - 1) : "";
host = P._Uri__makeHost(uri, hostStart, portStart, false);
t1 = portStart + 1;
if (t1 < pathStart) {
portNumber = H.Primitives_parseInt(J.substring$2$s(uri, t1, pathStart), _null);
port = P._Uri__makePort(portNumber == null ? H.throwExpression(P.FormatException$("Invalid port", uri, t1)) : portNumber, scheme);
} else
port = _null;
} else {
port = _null;
host = port;
userInfo = "";
}
path = P._Uri__makePath(uri, pathStart, queryStart, _null, scheme, host != null);
query = queryStart < fragmentStart ? P._Uri__makeQuery(uri, queryStart + 1, fragmentStart, _null) : _null;
return new P._Uri(scheme, userInfo, host, port, path, query, fragmentStart < end ? P._Uri__makeFragment(uri, fragmentStart + 1, end) : _null);
},
Uri_decodeComponent: function(encodedComponent) {
return P._Uri__uriDecode(encodedComponent, 0, encodedComponent.length, C.C_Utf8Codec, false);
},
Uri__parseIPv4Address: function(host, start, end) {
var i, partStart, partIndex, char, part, partIndex0,
_s43_ = "IPv4 address should contain exactly 4 parts",
_s37_ = "each part must be in the range 0..255",
error = new P.Uri__parseIPv4Address_error(host),
result = new Uint8Array(4);
for (i = start, partStart = i, partIndex = 0; i < end; ++i) {
char = C.JSString_methods.codeUnitAt$1(host, i);
if (char !== 46) {
if ((char ^ 48) > 9)
error.call$2("invalid character", i);
} else {
if (partIndex === 3)
error.call$2(_s43_, i);
part = P.int_parse(C.JSString_methods.substring$2(host, partStart, i), null);
if (part > 255)
error.call$2(_s37_, partStart);
partIndex0 = partIndex + 1;
result[partIndex] = part;
partStart = i + 1;
partIndex = partIndex0;
}
}
if (partIndex !== 3)
error.call$2(_s43_, end);
part = P.int_parse(C.JSString_methods.substring$2(host, partStart, end), null);
if (part > 255)
error.call$2(_s37_, partStart);
result[partIndex] = part;
return result;
},
Uri_parseIPv6Address: function(host, start, end) {
var parts, i, partStart, wildcardSeen, seenDot, char, atEnd, t1, last, bytes, wildCardLength, index, value, j,
error = new P.Uri_parseIPv6Address_error(host),
parseHex = new P.Uri_parseIPv6Address_parseHex(error, host);
if (host.length < 2)
error.call$1("address is too short");
parts = H.setRuntimeTypeInfo([], type$.JSArray_int);
for (i = start, partStart = i, wildcardSeen = false, seenDot = false; i < end; ++i) {
char = C.JSString_methods.codeUnitAt$1(host, i);
if (char === 58) {
if (i === start) {
++i;
if (C.JSString_methods.codeUnitAt$1(host, i) !== 58)
error.call$2("invalid start colon.", i);
partStart = i;
}
if (i === partStart) {
if (wildcardSeen)
error.call$2("only one wildcard `::` is allowed", i);
parts.push(-1);
wildcardSeen = true;
} else
parts.push(parseHex.call$2(partStart, i));
partStart = i + 1;
} else if (char === 46)
seenDot = true;
}
if (parts.length === 0)
error.call$1("too few parts");
atEnd = partStart === end;
t1 = C.JSArray_methods.get$last(parts);
if (atEnd && t1 !== -1)
error.call$2("expected a part after last `:`", end);
if (!atEnd)
if (!seenDot)
parts.push(parseHex.call$2(partStart, end));
else {
last = P.Uri__parseIPv4Address(host, partStart, end);
parts.push((last[0] << 8 | last[1]) >>> 0);
parts.push((last[2] << 8 | last[3]) >>> 0);
}
if (wildcardSeen) {
if (parts.length > 7)
error.call$1("an address with a wildcard must have less than 7 parts");
} else if (parts.length !== 8)
error.call$1("an address without a wildcard must contain exactly 8 parts");
bytes = new Uint8Array(16);
for (t1 = parts.length, wildCardLength = 9 - t1, i = 0, index = 0; i < t1; ++i) {
value = parts[i];
if (value === -1)
for (j = 0; j < wildCardLength; ++j) {
bytes[index] = 0;
bytes[index + 1] = 0;
index += 2;
}
else {
bytes[index] = C.JSInt_methods._shrOtherPositive$1(value, 8);
bytes[index + 1] = value & 255;
index += 2;
}
}
return bytes;
},
_Uri__Uri: function(host, path, pathSegments, scheme) {
var userInfo, query, fragment, port, isFile, t1, hasAuthority, t2, _null = null;
scheme = scheme == null ? "" : P._Uri__makeScheme(scheme, 0, scheme.length);
userInfo = P._Uri__makeUserInfo(_null, 0, 0);
host = P._Uri__makeHost(host, 0, host == null ? 0 : host.length, false);
query = P._Uri__makeQuery(_null, 0, 0, _null);
fragment = P._Uri__makeFragment(_null, 0, 0);
port = P._Uri__makePort(_null, scheme);
isFile = scheme === "file";
if (host == null)
t1 = userInfo.length !== 0 || port != null || isFile;
else
t1 = false;
if (t1)
host = "";
t1 = host == null;
hasAuthority = !t1;
path = P._Uri__makePath(path, 0, path == null ? 0 : path.length, pathSegments, scheme, hasAuthority);
t2 = scheme.length === 0;
if (t2 && t1 && !C.JSString_methods.startsWith$1(path, "/"))
path = P._Uri__normalizeRelativePath(path, !t2 || hasAuthority);
else
path = P._Uri__removeDotSegments(path);
return new P._Uri(scheme, userInfo, t1 && C.JSString_methods.startsWith$1(path, "//") ? "" : host, port, path, query, fragment);
},
_Uri__defaultPort: function(scheme) {
if (scheme === "http")
return 80;
if (scheme === "https")
return 443;
return 0;
},
_Uri__fail: function(uri, index, message) {
throw H.wrapException(P.FormatException$(message, uri, index));
},
_Uri__Uri$file: function(path, windows) {
return windows ? P._Uri__makeWindowsFileUrl(path, false) : P._Uri__makeFileUri(path, false);
},
_Uri__checkNonWindowsPathReservedCharacters: function(segments, argumentError) {
var t1, _i, segment, t2, t3;
for (t1 = segments.length, _i = 0; _i < t1; ++_i) {
segment = segments[_i];
segment.toString;
t2 = J.getInterceptor$asx(segment);
t3 = t2.get$length(segment);
if (0 > t3)
H.throwExpression(P.RangeError$range(0, 0, t2.get$length(segment), null, null));
if (H.stringContainsUnchecked(segment, "/", 0)) {
t1 = P.UnsupportedError$("Illegal path character " + H.S(segment));
throw H.wrapException(t1);
}
}
},
_Uri__checkWindowsPathReservedCharacters: function(segments, argumentError, firstSegment) {
var t1, cur, t2;
for (t1 = H.SubListIterable$(segments, firstSegment, null, H._arrayInstanceType(segments)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
cur = t1.__internal$_current;
t2 = P.RegExp_RegExp('["*/:<>?\\\\|]', false);
cur.toString;
if (H.stringContainsUnchecked(cur, t2, 0))
if (argumentError)
throw H.wrapException(P.ArgumentError$("Illegal character in path"));
else
throw H.wrapException(P.UnsupportedError$("Illegal character in path: " + cur));
}
},
_Uri__checkWindowsDriveLetter: function(charCode, argumentError) {
var t1,
_s21_ = "Illegal drive letter ";
if (!(65 <= charCode && charCode <= 90))
t1 = 97 <= charCode && charCode <= 122;
else
t1 = true;
if (t1)
return;
if (argumentError)
throw H.wrapException(P.ArgumentError$(_s21_ + P.String_String$fromCharCode(charCode)));
else
throw H.wrapException(P.UnsupportedError$(_s21_ + P.String_String$fromCharCode(charCode)));
},
_Uri__makeFileUri: function(path, slashTerminated) {
var _null = null,
segments = H.setRuntimeTypeInfo(path.split("/"), type$.JSArray_String);
if (C.JSString_methods.startsWith$1(path, "/"))
return P._Uri__Uri(_null, _null, segments, "file");
else
return P._Uri__Uri(_null, _null, segments, _null);
},
_Uri__makeWindowsFileUrl: function(path, slashTerminated) {
var t1, pathSegments, pathStart, hostPart, _s1_ = "\\", _null = null, _s4_ = "file";
if (C.JSString_methods.startsWith$1(path, "\\\\?\\"))
if (C.JSString_methods.startsWith$2(path, "UNC\\", 4))
path = C.JSString_methods.replaceRange$3(path, 0, 7, _s1_);
else {
path = C.JSString_methods.substring$1(path, 4);
if (path.length < 3 || C.JSString_methods._codeUnitAt$1(path, 1) !== 58 || C.JSString_methods._codeUnitAt$1(path, 2) !== 92)
throw H.wrapException(P.ArgumentError$("Windows paths with \\\\?\\ prefix must be absolute"));
}
else
path = H.stringReplaceAllUnchecked(path, "/", _s1_);
t1 = path.length;
if (t1 > 1 && C.JSString_methods._codeUnitAt$1(path, 1) === 58) {
P._Uri__checkWindowsDriveLetter(C.JSString_methods._codeUnitAt$1(path, 0), true);
if (t1 === 2 || C.JSString_methods._codeUnitAt$1(path, 2) !== 92)
throw H.wrapException(P.ArgumentError$("Windows paths with drive letter must be absolute"));
pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 1);
return P._Uri__Uri(_null, _null, pathSegments, _s4_);
}
if (C.JSString_methods.startsWith$1(path, _s1_))
if (C.JSString_methods.startsWith$2(path, _s1_, 1)) {
pathStart = C.JSString_methods.indexOf$2(path, _s1_, 2);
t1 = pathStart < 0;
hostPart = t1 ? C.JSString_methods.substring$1(path, 2) : C.JSString_methods.substring$2(path, 2, pathStart);
pathSegments = H.setRuntimeTypeInfo((t1 ? "" : C.JSString_methods.substring$1(path, pathStart + 1)).split(_s1_), type$.JSArray_String);
P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
return P._Uri__Uri(hostPart, _null, pathSegments, _s4_);
} else {
pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
return P._Uri__Uri(_null, _null, pathSegments, _s4_);
}
else {
pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
return P._Uri__Uri(_null, _null, pathSegments, _null);
}
},
_Uri__makePort: function(port, scheme) {
if (port != null && port === P._Uri__defaultPort(scheme))
return null;
return port;
},
_Uri__makeHost: function(host, start, end, strictIPv6) {
var t1, t2, index, zoneIDstart, zoneID, i;
if (host == null)
return null;
if (start === end)
return "";
if (C.JSString_methods.codeUnitAt$1(host, start) === 91) {
t1 = end - 1;
if (C.JSString_methods.codeUnitAt$1(host, t1) !== 93)
P._Uri__fail(host, start, "Missing end `]` to match `[` in host");
t2 = start + 1;
index = P._Uri__checkZoneID(host, t2, t1);
if (index < t1) {
zoneIDstart = index + 1;
zoneID = P._Uri__normalizeZoneID(host, C.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, t1, "%25");
} else
zoneID = "";
P.Uri_parseIPv6Address(host, t2, index);
return C.JSString_methods.substring$2(host, start, index).toLowerCase() + zoneID + "]";
}
for (i = start; i < end; ++i)
if (C.JSString_methods.codeUnitAt$1(host, i) === 58) {
index = C.JSString_methods.indexOf$2(host, "%", start);
index = index >= start && index < end ? index : end;
if (index < end) {
zoneIDstart = index + 1;
zoneID = P._Uri__normalizeZoneID(host, C.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, end, "%25");
} else
zoneID = "";
P.Uri_parseIPv6Address(host, start, index);
return "[" + C.JSString_methods.substring$2(host, start, index) + zoneID + "]";
}
return P._Uri__normalizeRegName(host, start, end);
},
_Uri__checkZoneID: function(host, start, end) {
var index = C.JSString_methods.indexOf$2(host, "%", start);
return index >= start && index < end ? index : end;
},
_Uri__normalizeZoneID: function(host, start, end, prefix) {
var index, sectionStart, isNormalized, char, replacement, t1, t2, tail, sourceLength, slice,
buffer = prefix !== "" ? new P.StringBuffer(prefix) : null;
for (index = start, sectionStart = index, isNormalized = true; index < end;) {
char = C.JSString_methods.codeUnitAt$1(host, index);
if (char === 37) {
replacement = P._Uri__normalizeEscape(host, index, true);
t1 = replacement == null;
if (t1 && isNormalized) {
index += 3;
continue;
}
if (buffer == null)
buffer = new P.StringBuffer("");
t2 = buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
if (t1)
replacement = C.JSString_methods.substring$2(host, index, index + 3);
else if (replacement === "%")
P._Uri__fail(host, index, "ZoneID should not contain % anymore");
buffer._contents = t2 + replacement;
index += 3;
sectionStart = index;
isNormalized = true;
} else if (char < 127 && (C.List_nxB[char >>> 4] & 1 << (char & 15)) !== 0) {
if (isNormalized && 65 <= char && 90 >= char) {
if (buffer == null)
buffer = new P.StringBuffer("");
if (sectionStart < index) {
buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
sectionStart = index;
}
isNormalized = false;
}
++index;
} else {
if ((char & 64512) === 55296 && index + 1 < end) {
tail = C.JSString_methods.codeUnitAt$1(host, index + 1);
if ((tail & 64512) === 56320) {
char = 65536 | (char & 1023) << 10 | tail & 1023;
sourceLength = 2;
} else
sourceLength = 1;
} else
sourceLength = 1;
slice = C.JSString_methods.substring$2(host, sectionStart, index);
if (buffer == null) {
buffer = new P.StringBuffer("");
t1 = buffer;
} else
t1 = buffer;
t1._contents += slice;
t1._contents += P._Uri__escapeChar(char);
index += sourceLength;
sectionStart = index;
}
}
if (buffer == null)
return C.JSString_methods.substring$2(host, start, end);
if (sectionStart < end)
buffer._contents += C.JSString_methods.substring$2(host, sectionStart, end);
t1 = buffer._contents;
return t1.charCodeAt(0) == 0 ? t1 : t1;
},
_Uri__normalizeRegName: function(host, start, end) {
var index, sectionStart, buffer, isNormalized, char, replacement, t1, slice, t2, sourceLength, tail;
for (index = start, sectionStart = index, buffer = null, isNormalized = true; index < end;) {
char = C.JSString_methods.codeUnitAt$1(host, index);
if (char === 37) {
replacement = P._Uri__normalizeEscape(host, index, true);
t1 = replacement == null;
if (t1 && isNormalized) {
index += 3;
continue;
}
if (buffer == null)
buffer = new P.StringBuffer("");
slice = C.JSString_methods.substring$2(host, sectionStart, index);
t2 = buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
if (t1) {
replacement = C.JSString_methods.substring$2(host, index, index + 3);
sourceLength = 3;
} else if (replacement === "%") {
replacement = "%25";
sourceLength = 1;
} else
sourceLength = 3;
buffer._contents = t2 + replacement;
index += sourceLength;
sectionStart = index;
isNormalized = true;
} else if (char < 127 && (C.List_qNA[char >>> 4] & 1 << (char & 15)) !== 0) {
if (isNormalized && 65 <= char && 90 >= char) {
if (buffer == null)
buffer = new P.StringBuffer("");
if (sectionStart < index) {
buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
sectionStart = index;
}
isNormalized = false;
}
++index;
} else if (char <= 93 && (C.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0)
P._Uri__fail(host, index, "Invalid character");
else {
if ((char & 64512) === 55296 && index + 1 < end) {
tail = C.JSString_methods.codeUnitAt$1(host, index + 1);
if ((tail & 64512) === 56320) {
char = 65536 | (char & 1023) << 10 | tail & 1023;
sourceLength = 2;
} else
sourceLength = 1;
} else
sourceLength = 1;
slice = C.JSString_methods.substring$2(host, sectionStart, index);
if (!isNormalized)
slice = slice.toLowerCase();
if (buffer == null) {
buffer = new P.StringBuffer("");
t1 = buffer;
} else
t1 = buffer;
t1._contents += slice;
t1._contents += P._Uri__escapeChar(char);
index += sourceLength;
sectionStart = index;
}
}
if (buffer == null)
return C.JSString_methods.substring$2(host, start, end);
if (sectionStart < end) {
slice = C.JSString_methods.substring$2(host, sectionStart, end);
buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
}
t1 = buffer._contents;
return t1.charCodeAt(0) == 0 ? t1 : t1;
},
_Uri__makeScheme: function(scheme, start, end) {
var i, containsUpperCase, codeUnit;
if (start === end)
return "";
if (!P._Uri__isAlphabeticCharacter(J.getInterceptor$s(scheme)._codeUnitAt$1(scheme, start)))
P._Uri__fail(scheme, start, "Scheme not starting with alphabetic character");
for (i = start, containsUpperCase = false; i < end; ++i) {
codeUnit = C.JSString_methods._codeUnitAt$1(scheme, i);
if (!(codeUnit < 128 && (C.List_JYB[codeUnit >>> 4] & 1 << (codeUnit & 15)) !== 0))
P._Uri__fail(scheme, i, "Illegal scheme character");
if (65 <= codeUnit && codeUnit <= 90)
containsUpperCase = true;
}
scheme = C.JSString_methods.substring$2(scheme, start, end);
return P._Uri__canonicalizeScheme(containsUpperCase ? scheme.toLowerCase() : scheme);
},
_Uri__canonicalizeScheme: function(scheme) {
if (scheme === "http")
return "http";
if (scheme === "file")
return "file";
if (scheme === "https")
return "https";
if (scheme === "package")
return "package";
return scheme;
},
_Uri__makeUserInfo: function(userInfo, start, end) {
if (userInfo == null)
return "";
return P._Uri__normalizeOrSubstring(userInfo, start, end, C.List_gRj, false);
},
_Uri__makePath: function(path, start, end, pathSegments, scheme, hasAuthority) {
var result,
isFile = scheme === "file",
ensureLeadingSlash = isFile || hasAuthority;
if (path == null) {
if (pathSegments == null)
return isFile ? "/" : "";
result = new H.MappedListIterable(pathSegments, new P._Uri__makePath_closure(), H._arrayInstanceType(pathSegments)._eval$1("MappedListIterable<1,String>")).join$1(0, "/");
} else if (pathSegments != null)
throw H.wrapException(P.ArgumentError$("Both path and pathSegments specified"));
else
result = P._Uri__normalizeOrSubstring(path, start, end, C.List_qg4, true);
if (result.length === 0) {
if (isFile)
return "/";
} else if (ensureLeadingSlash && !C.JSString_methods.startsWith$1(result, "/"))
result = "/" + result;
return P._Uri__normalizePath(result, scheme, hasAuthority);
},
_Uri__normalizePath: function(path, scheme, hasAuthority) {
var t1 = scheme.length === 0;
if (t1 && !hasAuthority && !C.JSString_methods.startsWith$1(path, "/"))
return P._Uri__normalizeRelativePath(path, !t1 || hasAuthority);
return P._Uri__removeDotSegments(path);
},
_Uri__makeQuery: function(query, start, end, queryParameters) {
if (query != null)
return P._Uri__normalizeOrSubstring(query, start, end, C.List_CVk, true);
return null;
},
_Uri__makeFragment: function(fragment, start, end) {
if (fragment == null)
return null;
return P._Uri__normalizeOrSubstring(fragment, start, end, C.List_CVk, true);
},
_Uri__normalizeEscape: function(source, index, lowerCase) {
var firstDigit, secondDigit, firstDigitValue, secondDigitValue, value,
t1 = index + 2;
if (t1 >= source.length)
return "%";
firstDigit = C.JSString_methods.codeUnitAt$1(source, index + 1);
secondDigit = C.JSString_methods.codeUnitAt$1(source, t1);
firstDigitValue = H.hexDigitValue(firstDigit);
secondDigitValue = H.hexDigitValue(secondDigit);
if (firstDigitValue < 0 || secondDigitValue < 0)
return "%";
value = firstDigitValue * 16 + secondDigitValue;
if (value < 127 && (C.List_nxB[C.JSInt_methods._shrOtherPositive$1(value, 4)] & 1 << (value & 15)) !== 0)
return H.Primitives_stringFromCharCode(lowerCase && 65 <= value && 90 >= value ? (value | 32) >>> 0 : value);
if (firstDigit >= 97 || secondDigit >= 97)
return C.JSString_methods.substring$2(source, index, index + 3).toUpperCase();
return null;
},
_Uri__escapeChar: function(char) {
var codeUnits, flag, encodedBytes, index, byte,
_s16_ = "0123456789ABCDEF";
if (char < 128) {
codeUnits = new Uint8Array(3);
codeUnits[0] = 37;
codeUnits[1] = C.JSString_methods._codeUnitAt$1(_s16_, char >>> 4);
codeUnits[2] = C.JSString_methods._codeUnitAt$1(_s16_, char & 15);
} else {
if (char > 2047)
if (char > 65535) {
flag = 240;
encodedBytes = 4;
} else {
flag = 224;
encodedBytes = 3;
}
else {
flag = 192;
encodedBytes = 2;
}
codeUnits = new Uint8Array(3 * encodedBytes);
for (index = 0; --encodedBytes, encodedBytes >= 0; flag = 128) {
byte = C.JSInt_methods._shrReceiverPositive$1(char, 6 * encodedBytes) & 63 | flag;
codeUnits[index] = 37;
codeUnits[index + 1] = C.JSString_methods._codeUnitAt$1(_s16_, byte >>> 4);
codeUnits[index + 2] = C.JSString_methods._codeUnitAt$1(_s16_, byte & 15);
index += 3;
}
}
return P.String_String$fromCharCodes(codeUnits, 0, null);
},
_Uri__normalizeOrSubstring: function(component, start, end, charTable, escapeDelimiters) {
var t1 = P._Uri__normalize(component, start, end, charTable, escapeDelimiters);
return t1 == null ? C.JSString_methods.substring$2(component, start, end) : t1;
},
_Uri__normalize: function(component, start, end, charTable, escapeDelimiters) {
var t1, index, sectionStart, buffer, char, replacement, sourceLength, t2, tail, _null = null;
for (t1 = !escapeDelimiters, index = start, sectionStart = index, buffer = _null; index < end;) {
char = C.JSString_methods.codeUnitAt$1(component, index);
if (char < 127 && (charTable[char >>> 4] & 1 << (char & 15)) !== 0)
++index;
else {
if (char === 37) {
replacement = P._Uri__normalizeEscape(component, index, false);
if (replacement == null) {
index += 3;
continue;
}
if ("%" === replacement) {
replacement = "%25";
sourceLength = 1;
} else
sourceLength = 3;
} else if (t1 && char <= 93 && (C.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0) {
P._Uri__fail(component, index, "Invalid character");
sourceLength = _null;
replacement = sourceLength;
} else {
if ((char & 64512) === 55296) {
t2 = index + 1;
if (t2 < end) {
tail = C.JSString_methods.codeUnitAt$1(component, t2);
if ((tail & 64512) === 56320) {
char = 65536 | (char & 1023) << 10 | tail & 1023;
sourceLength = 2;
} else
sourceLength = 1;
} else
sourceLength = 1;
} else
sourceLength = 1;
replacement = P._Uri__escapeChar(char);
}
if (buffer == null) {
buffer = new P.StringBuffer("");
t2 = buffer;
} else
t2 = buffer;
t2._contents += C.JSString_methods.substring$2(component, sectionStart, index);
t2._contents += H.S(replacement);
index += sourceLength;
sectionStart = index;
}
}
if (buffer == null)
return _null;
if (sectionStart < end)
buffer._contents += C.JSString_methods.substring$2(component, sectionStart, end);
t1 = buffer._contents;
return t1.charCodeAt(0) == 0 ? t1 : t1;
},
_Uri__mayContainDotSegments: function(path) {
if (C.JSString_methods.startsWith$1(path, "."))
return true;
return C.JSString_methods.indexOf$1(path, "/.") !== -1;
},
_Uri__removeDotSegments: function(path) {
var output, t1, t2, appendSlash, _i, segment;
if (!P._Uri__mayContainDotSegments(path))
return path;
output = H.setRuntimeTypeInfo([], type$.JSArray_String);
for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
segment = t1[_i];
if (J.$eq$(segment, "..")) {
if (output.length !== 0) {
output.pop();
if (output.length === 0)
output.push("");
}
appendSlash = true;
} else if ("." === segment)
appendSlash = true;
else {
output.push(segment);
appendSlash = false;
}
}
if (appendSlash)
output.push("");
return C.JSArray_methods.join$1(output, "/");
},
_Uri__normalizeRelativePath: function(path, allowScheme) {
var output, t1, t2, appendSlash, _i, segment;
if (!P._Uri__mayContainDotSegments(path))
return !allowScheme ? P._Uri__escapeScheme(path) : path;
output = H.setRuntimeTypeInfo([], type$.JSArray_String);
for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
segment = t1[_i];
if (".." === segment)
if (output.length !== 0 && C.JSArray_methods.get$last(output) !== "..") {
output.pop();
appendSlash = true;
} else {
output.push("..");
appendSlash = false;
}
else if ("." === segment)
appendSlash = true;
else {
output.push(segment);
appendSlash = false;
}
}
t1 = output.length;
if (t1 !== 0)
t1 = t1 === 1 && output[0].length === 0;
else
t1 = true;
if (t1)
return "./";
if (appendSlash || C.JSArray_methods.get$last(output) === "..")
output.push("");
if (!allowScheme)
output[0] = P._Uri__escapeScheme(output[0]);
return C.JSArray_methods.join$1(output, "/");
},
_Uri__escapeScheme: function(path) {
var i, char,
t1 = path.length;
if (t1 >= 2 && P._Uri__isAlphabeticCharacter(J._codeUnitAt$1$s(path, 0)))
for (i = 1; i < t1; ++i) {
char = C.JSString_methods._codeUnitAt$1(path, i);
if (char === 58)
return C.JSString_methods.substring$2(path, 0, i) + "%3A" + C.JSString_methods.substring$1(path, i + 1);
if (char > 127 || (C.List_JYB[char >>> 4] & 1 << (char & 15)) === 0)
break;
}
return path;
},
_Uri__toWindowsFilePath: function(uri) {
var hasDriveLetter, t2, host,
segments = uri.get$pathSegments(),
t1 = segments.length;
if (t1 > 0 && J.get$length$asx(segments[0]) === 2 && J.codeUnitAt$1$s(segments[0], 1) === 58) {
P._Uri__checkWindowsDriveLetter(J.codeUnitAt$1$s(segments[0], 0), false);
P._Uri__checkWindowsPathReservedCharacters(segments, false, 1);
hasDriveLetter = true;
} else {
P._Uri__checkWindowsPathReservedCharacters(segments, false, 0);
hasDriveLetter = false;
}
t2 = uri.get$hasAbsolutePath() && !hasDriveLetter ? "\\" : "";
if (uri.get$hasAuthority()) {
host = uri.get$host();
if (host.length !== 0)
t2 = t2 + "\\" + host + "\\";
}
t2 = P.StringBuffer__writeAll(t2, segments, "\\");
t1 = hasDriveLetter && t1 === 1 ? t2 + "\\" : t2;
return t1.charCodeAt(0) == 0 ? t1 : t1;
},
_Uri__hexCharPairToByte: function(s, pos) {
var byte, i, charCode;
for (byte = 0, i = 0; i < 2; ++i) {
charCode = C.JSString_methods._codeUnitAt$1(s, pos + i);
if (48 <= charCode && charCode <= 57)
byte = byte * 16 + charCode - 48;
else {
charCode |= 32;
if (97 <= charCode && charCode <= 102)
byte = byte * 16 + charCode - 87;
else
throw H.wrapException(P.ArgumentError$("Invalid URL encoding"));
}
}
return byte;
},
_Uri__uriDecode: function(text, start, end, encoding, plusToSpace) {
var simple, codeUnit, t2, bytes,
t1 = J.getInterceptor$s(text),
i = start;
while (true) {
if (!(i < end)) {
simple = true;
break;
}
codeUnit = t1._codeUnitAt$1(text, i);
if (codeUnit <= 127)
if (codeUnit !== 37)
t2 = false;
else
t2 = true;
else
t2 = true;
if (t2) {
simple = false;
break;
}
++i;
}
if (simple) {
if (C.C_Utf8Codec !== encoding)
t2 = false;
else
t2 = true;
if (t2)
return t1.substring$2(text, start, end);
else
bytes = new H.CodeUnits(t1.substring$2(text, start, end));
} else {
bytes = H.setRuntimeTypeInfo([], type$.JSArray_int);
for (i = start; i < end; ++i) {
codeUnit = t1._codeUnitAt$1(text, i);
if (codeUnit > 127)
throw H.wrapException(P.ArgumentError$("Illegal percent encoding in URI"));
if (codeUnit === 37) {
if (i + 3 > text.length)
throw H.wrapException(P.ArgumentError$("Truncated URI"));
bytes.push(P._Uri__hexCharPairToByte(text, i + 1));
i += 2;
} else
bytes.push(codeUnit);
}
}
return C.Utf8Decoder_false.convert$1(bytes);
},
_Uri__isAlphabeticCharacter: function(codeUnit) {
var lowerCase = codeUnit | 32;
return 97 <= lowerCase && lowerCase <= 122;
},
UriData__writeUri: function(mimeType, charsetName, parameters, buffer, indices) {
var t1, slashIndex;
if (mimeType == null || mimeType === "text/plain")
mimeType = "";
if (mimeType.length === 0 || mimeType === "application/octet-stream")
t1 = buffer._contents += mimeType;
else {
slashIndex = P.UriData__validateMimeType(mimeType);
if (slashIndex < 0)
throw H.wrapException(P.ArgumentError$value(mimeType, "mimeType", "Invalid MIME type"));
t1 = buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, C.JSString_methods.substring$2(mimeType, 0, slashIndex), C.C_Utf8Codec, false));
buffer._contents = t1 + "/";
t1 = buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, C.JSString_methods.substring$1(mimeType, slashIndex + 1), C.C_Utf8Codec, false));
}
if (charsetName != null) {
indices.push(t1.length);
indices.push(buffer._contents.length + 8);
buffer._contents += ";charset=";
buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, charsetName, C.C_Utf8Codec, false));
}
},
UriData__validateMimeType: function(mimeType) {
var t1, slashIndex, i;
for (t1 = mimeType.length, slashIndex = -1, i = 0; i < t1; ++i) {
if (C.JSString_methods._codeUnitAt$1(mimeType, i) !== 47)
continue;
if (slashIndex < 0) {
slashIndex = i;
continue;
}
return -1;
}
return slashIndex;
},
UriData__parse: function(text, start, sourceUri) {
var t1, i, slashIndex, char, equalsIndex, lastSeparator, t2, data,
_s17_ = "Invalid MIME type",
indices = H.setRuntimeTypeInfo([start - 1], type$.JSArray_int);
for (t1 = text.length, i = start, slashIndex = -1, char = null; i < t1; ++i) {
char = C.JSString_methods._codeUnitAt$1(text, i);
if (char === 44 || char === 59)
break;
if (char === 47) {
if (slashIndex < 0) {
slashIndex = i;
continue;
}
throw H.wrapException(P.FormatException$(_s17_, text, i));
}
}
if (slashIndex < 0 && i > start)
throw H.wrapException(P.FormatException$(_s17_, text, i));
for (; char !== 44;) {
indices.push(i);
++i;
for (equalsIndex = -1; i < t1; ++i) {
char = C.JSString_methods._codeUnitAt$1(text, i);
if (char === 61) {
if (equalsIndex < 0)
equalsIndex = i;
} else if (char === 59 || char === 44)
break;
}
if (equalsIndex >= 0)
indices.push(equalsIndex);
else {
lastSeparator = C.JSArray_methods.get$last(indices);
if (char !== 44 || i !== lastSeparator + 7 || !C.JSString_methods.startsWith$2(text, "base64", lastSeparator + 1))
throw H.wrapException(P.FormatException$("Expecting '='", text, i));
break;
}
}
indices.push(i);
t2 = i + 1;
if ((indices.length & 1) === 1)
text = C.C_Base64Codec.normalize$3(text, t2, t1);
else {
data = P._Uri__normalize(text, t2, t1, C.List_CVk, true);
if (data != null)
text = C.JSString_methods.replaceRange$3(text, t2, t1, data);
}
return new P.UriData(text, indices, sourceUri);
},
UriData__uriEncodeBytes: function(canonicalTable, bytes, buffer) {
var t1, byteOr, i, byte,
_s16_ = "0123456789ABCDEF";
for (t1 = J.getInterceptor$asx(bytes), byteOr = 0, i = 0; i < t1.get$length(bytes); ++i) {
byte = t1.$index(bytes, i);
byteOr |= byte;
if (byte < 128 && (canonicalTable[C.JSInt_methods._shrOtherPositive$1(byte, 4)] & 1 << (byte & 15)) !== 0)
buffer._contents += H.Primitives_stringFromCharCode(byte);
else {
buffer._contents += H.Primitives_stringFromCharCode(37);
buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(_s16_, C.JSInt_methods._shrOtherPositive$1(byte, 4)));
buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(_s16_, byte & 15));
}
}
if ((byteOr & 4294967040) >>> 0 !== 0)
for (i = 0; i < t1.get$length(bytes); ++i) {
byte = t1.$index(bytes, i);
if (byte < 0 || byte > 255)
throw H.wrapException(P.ArgumentError$value(byte, "non-byte value", null));
}
},
_createTables: function() {
var _s77_ = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",
_s1_ = ".", _s1_0 = ":", _s1_1 = "/", _s1_2 = "?", _s1_3 = "#",
tables = P.List_List$generate(22, new P._createTables_closure(), true, type$.Uint8List),
t1 = new P._createTables_build(tables),
t2 = new P._createTables_setChars(),
t3 = new P._createTables_setRange(),
b = t1.call$2(0, 225);
t2.call$3(b, _s77_, 1);
t2.call$3(b, _s1_, 14);
t2.call$3(b, _s1_0, 34);
t2.call$3(b, _s1_1, 3);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(14, 225);
t2.call$3(b, _s77_, 1);
t2.call$3(b, _s1_, 15);
t2.call$3(b, _s1_0, 34);
t2.call$3(b, _s1_1, 234);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(15, 225);
t2.call$3(b, _s77_, 1);
t2.call$3(b, "%", 225);
t2.call$3(b, _s1_0, 34);
t2.call$3(b, _s1_1, 9);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(1, 225);
t2.call$3(b, _s77_, 1);
t2.call$3(b, _s1_0, 34);
t2.call$3(b, _s1_1, 10);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(2, 235);
t2.call$3(b, _s77_, 139);
t2.call$3(b, _s1_1, 131);
t2.call$3(b, _s1_, 146);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(3, 235);
t2.call$3(b, _s77_, 11);
t2.call$3(b, _s1_1, 68);
t2.call$3(b, _s1_, 18);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(4, 229);
t2.call$3(b, _s77_, 5);
t3.call$3(b, "AZ", 229);
t2.call$3(b, _s1_0, 102);
t2.call$3(b, "@", 68);
t2.call$3(b, "[", 232);
t2.call$3(b, _s1_1, 138);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(5, 229);
t2.call$3(b, _s77_, 5);
t3.call$3(b, "AZ", 229);
t2.call$3(b, _s1_0, 102);
t2.call$3(b, "@", 68);
t2.call$3(b, _s1_1, 138);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(6, 231);
t3.call$3(b, "19", 7);
t2.call$3(b, "@", 68);
t2.call$3(b, _s1_1, 138);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(7, 231);
t3.call$3(b, "09", 7);
t2.call$3(b, "@", 68);
t2.call$3(b, _s1_1, 138);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
t2.call$3(t1.call$2(8, 8), "]", 5);
b = t1.call$2(9, 235);
t2.call$3(b, _s77_, 11);
t2.call$3(b, _s1_, 16);
t2.call$3(b, _s1_1, 234);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(16, 235);
t2.call$3(b, _s77_, 11);
t2.call$3(b, _s1_, 17);
t2.call$3(b, _s1_1, 234);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(17, 235);
t2.call$3(b, _s77_, 11);
t2.call$3(b, _s1_1, 9);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(10, 235);
t2.call$3(b, _s77_, 11);
t2.call$3(b, _s1_, 18);
t2.call$3(b, _s1_1, 234);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(18, 235);
t2.call$3(b, _s77_, 11);
t2.call$3(b, _s1_, 19);
t2.call$3(b, _s1_1, 234);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(19, 235);
t2.call$3(b, _s77_, 11);
t2.call$3(b, _s1_1, 234);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(11, 235);
t2.call$3(b, _s77_, 11);
t2.call$3(b, _s1_1, 10);
t2.call$3(b, _s1_2, 172);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(12, 236);
t2.call$3(b, _s77_, 12);
t2.call$3(b, _s1_2, 12);
t2.call$3(b, _s1_3, 205);
b = t1.call$2(13, 237);
t2.call$3(b, _s77_, 13);
t2.call$3(b, _s1_2, 13);
t3.call$3(t1.call$2(20, 245), "az", 21);
b = t1.call$2(21, 245);
t3.call$3(b, "az", 21);
t3.call$3(b, "09", 21);
t2.call$3(b, "+-.", 21);
return tables;
},
_scan: function(uri, start, end, state, indices) {
var t1, i, table, char, transition,
tables = $.$get$_scannerTables();
for (t1 = J.getInterceptor$s(uri), i = start; i < end; ++i) {
table = tables[state];
char = t1._codeUnitAt$1(uri, i) ^ 96;
transition = table[char > 95 ? 31 : char];
state = transition & 31;
indices[transition >>> 5] = i;
}
return state;
},
NoSuchMethodError_toString_closure: function NoSuchMethodError_toString_closure(t0, t1) {
this._box_0 = t0;
this.sb = t1;
},
DateTime: function DateTime(t0, t1) {
this._value = t0;
this.isUtc = t1;
},
Duration: function Duration(t0) {
this._duration = t0;
},
Duration_toString_sixDigits: function Duration_toString_sixDigits() {
},
Duration_toString_twoDigits: function Duration_toString_twoDigits() {
},
Error: function Error() {
},
AssertionError: function AssertionError(t0) {
this.message = t0;
},
TypeError: function TypeError() {
},
NullThrownError: function NullThrownError() {
},
ArgumentError: function ArgumentError(t0, t1, t2, t3) {
var _ = this;
_._hasValue = t0;
_.invalidValue = t1;
_.name = t2;
_.message = t3;
},
RangeError: function RangeError(t0, t1, t2, t3, t4, t5) {
var _ = this;
_.start = t0;
_.end = t1;
_._hasValue = t2;
_.invalidValue = t3;
_.name = t4;
_.message = t5;
},
IndexError: function IndexError(t0, t1, t2, t3, t4) {
var _ = this;
_.length = t0;
_._hasValue = t1;
_.invalidValue = t2;
_.name = t3;
_.message = t4;
},
NoSuchMethodError: function NoSuchMethodError(t0, t1, t2, t3) {
var _ = this;
_._core$_receiver = t0;
_._memberName = t1;
_._core$_arguments = t2;
_._namedArguments = t3;
},
UnsupportedError: function UnsupportedError(t0) {
this.message = t0;
},
UnimplementedError: function UnimplementedError(t0) {
this.message = t0;
},
StateError: function StateError(t0) {
this.message = t0;
},
ConcurrentModificationError: function ConcurrentModificationError(t0) {
this.modifiedObject = t0;
},
OutOfMemoryError: function OutOfMemoryError() {
},
StackOverflowError: function StackOverflowError() {
},
CyclicInitializationError: function CyclicInitializationError(t0) {
this.variableName = t0;
},
_Exception: function _Exception(t0) {
this.message = t0;
},
FormatException: function FormatException(t0, t1, t2) {
this.message = t0;
this.source = t1;
this.offset = t2;
},
Iterable: function Iterable() {
},
_GeneratorIterable: function _GeneratorIterable(t0, t1, t2) {
this.length = t0;
this._generator = t1;
this.$ti = t2;
},
Iterator: function Iterator() {
},
MapEntry: function MapEntry(t0, t1, t2) {
this.key = t0;
this.value = t1;
this.$ti = t2;
},
Null: function Null() {
},
Object: function Object() {
},
_StringStackTrace: function _StringStackTrace(t0) {
this._stackTrace = t0;
},
Runes: function Runes(t0) {
this.string = t0;
},
RuneIterator: function RuneIterator(t0) {
var _ = this;
_.string = t0;
_._nextPosition = _._position = 0;
_._currentCodePoint = -1;
},
StringBuffer: function StringBuffer(t0) {
this._contents = t0;
},
Uri__parseIPv4Address_error: function Uri__parseIPv4Address_error(t0) {
this.host = t0;
},
Uri_parseIPv6Address_error: function Uri_parseIPv6Address_error(t0) {
this.host = t0;
},
Uri_parseIPv6Address_parseHex: function Uri_parseIPv6Address_parseHex(t0, t1) {
this.error = t0;
this.host = t1;
},
_Uri: function _Uri(t0, t1, t2, t3, t4, t5, t6) {
var _ = this;
_.scheme = t0;
_._userInfo = t1;
_._host = t2;
_._port = t3;
_.path = t4;
_._query = t5;
_._fragment = t6;
_.___Uri_hashCode = _.___Uri_pathSegments = _.___Uri__text = null;
},
_Uri__makePath_closure: function _Uri__makePath_closure() {
},
UriData: function UriData(t0, t1, t2) {
this._text = t0;
this._separatorIndices = t1;
this._uriCache = t2;
},
_createTables_closure: function _createTables_closure() {
},
_createTables_build: function _createTables_build(t0) {
this.tables = t0;
},
_createTables_setChars: function _createTables_setChars() {
},
_createTables_setRange: function _createTables_setRange() {
},
_SimpleUri: function _SimpleUri(t0, t1, t2, t3, t4, t5, t6, t7) {
var _ = this;
_._uri = t0;
_._schemeEnd = t1;
_._hostStart = t2;
_._portStart = t3;
_._pathStart = t4;
_._queryStart = t5;
_._fragmentStart = t6;
_._schemeCache = t7;
_._hashCodeCache = null;
},
_DataUri: function _DataUri(t0, t1, t2, t3, t4, t5, t6) {
var _ = this;
_.scheme = t0;
_._userInfo = t1;
_._host = t2;
_._port = t3;
_.path = t4;
_._query = t5;
_._fragment = t6;
_.___Uri_hashCode = _.___Uri_pathSegments = _.___Uri__text = null;
},
max: function(a, b) {
return Math.max(H.checkNum(a), H.checkNum(b));
},
pow: function(x, exponent) {
H.checkNum(x);
H.checkNum(exponent);
return Math.pow(x, exponent);
},
Random_Random: function() {
return C.C__JSRandom;
},
_JSRandom: function _JSRandom() {
},
_convertDartFunctionFast: function(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));
};
}(P._callDartFunctionFast, f);
ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
f.$dart_jsFunction = ret;
return ret;
},
_convertDartFunctionFastCaptureThis: function(f) {
var ret,
existing = f._$dart_jsFunctionCaptureThis;
if (existing != null)
return existing;
ret = function(_call, f) {
return function() {
return _call(f, this, Array.prototype.slice.apply(arguments));
};
}(P._callDartFunctionFastCaptureThis, f);
ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
f._$dart_jsFunctionCaptureThis = ret;
return ret;
},
_callDartFunctionFast: function(callback, $arguments) {
return P.Function_apply(callback, $arguments);
},
_callDartFunctionFastCaptureThis: function(callback, $self, $arguments) {
var t1 = [$self];
C.JSArray_methods.addAll$1(t1, $arguments);
return P.Function_apply(callback, t1);
},
allowInterop: function(f) {
if (typeof f == "function")
return f;
else
return P._convertDartFunctionFast(f);
},
allowInteropCaptureThis: function(f) {
if (typeof f == "function")
throw H.wrapException(P.ArgumentError$("Function is already a JS function so cannot capture this."));
else
return P._convertDartFunctionFastCaptureThis(f);
},
callConstructor: function(constr, $arguments) {
var args, factoryFunction;
if ($arguments instanceof Array)
switch ($arguments.length) {
case 0:
return new constr();
case 1:
return new constr($arguments[0]);
case 2:
return new constr($arguments[0], $arguments[1]);
case 3:
return new constr($arguments[0], $arguments[1], $arguments[2]);
case 4:
return new constr($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
}
args = [null];
C.JSArray_methods.addAll$1(args, $arguments);
factoryFunction = constr.bind.apply(constr, args);
String(factoryFunction);
return new factoryFunction();
}
},
N = {ArgParser: function ArgParser(t0, t1, t2, t3, t4, t5) {
var _ = this;
_._arg_parser$_options = t0;
_.options = t1;
_.commands = t2;
_._optionsAndSeparators = t3;
_.allowTrailingOptions = t4;
_.usageLineLength = t5;
}, ArgParser_findByAbbreviation_closure: function ArgParser_findByAbbreviation_closure(t0) {
this.abbr = t0;
}, ArgParser_findByAbbreviation_closure0: function ArgParser_findByAbbreviation_closure0() {
}, TTY: function TTY() {
}, TTYReadStream: function TTYReadStream() {
}, TTYWriteStream: function TTYWriteStream() {
}, AttributeSelector: function AttributeSelector(t0, t1, t2, t3) {
var _ = this;
_.name = t0;
_.op = t1;
_.value = t2;
_.modifier = t3;
}, AttributeOperator: function AttributeOperator(t0) {
this._attribute$_text = t0;
}, IDSelector: function IDSelector(t0) {
this.name = t0;
}, IDSelector_unify_closure: function IDSelector_unify_closure(t0) {
this.$this = t0;
}, PlaceholderSelector: function PlaceholderSelector(t0) {
this.name = t0;
}, UniversalSelector: function UniversalSelector(t0) {
this.namespace = t0;
}, NoSourceMapBuffer0: function NoSourceMapBuffer0(t0) {
this._no_source_map_buffer0$_buffer = t0;
}, UnitlessSassNumber: function UnitlessSassNumber(t0, t1) {
this.value = t0;
this.asSlash = t1;
},
serialize: function(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
var t1, css, t2, prefix, t3,
visitor = N._SerializeVisitor$0(2, inspect, lineFeed, true, sourceMap, style, true);
node.accept$1(visitor);
t1 = visitor._serialize$_buffer;
css = t1.toString$0(0);
if (charset) {
t2 = new H.CodeUnits(css);
t2 = t2.any$1(t2, new N.serialize_closure());
} else
t2 = false;
if (t2)
prefix = style === C.OutputStyle_compressed ? "\ufeff" : '@charset "UTF-8";\n';
else
prefix = "";
t2 = prefix + css;
t3 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
if (sourceMap)
t1.get$sourceFiles();
return new N.SerializeResult(t2, t3);
},
serializeValue0: function(value, inspect, quote) {
var visitor = N._SerializeVisitor$0(null, inspect, null, quote, false, null, true);
value.accept$1(visitor);
return visitor._serialize$_buffer.toString$0(0);
},
_SerializeVisitor$0: function(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
var t1 = sourceMap ? new D.SourceMapBuffer0(new P.StringBuffer(""), H.setRuntimeTypeInfo([], type$.JSArray_legacy_Entry), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_SourceFile)) : new N.NoSourceMapBuffer0(new P.StringBuffer("")),
t2 = style == null ? C.OutputStyle_expanded0 : style,
t3 = indentWidth == null ? 2 : indentWidth;
P.RangeError_checkValueInInterval(t3, 0, 10, "indentWidth");
return new N._SerializeVisitor0(t1, t2, inspect, quote, 32, t3, C.C_LineFeed);
},
serialize_closure: function serialize_closure() {
},
_SerializeVisitor0: function _SerializeVisitor0(t0, t1, t2, t3, t4, t5, t6) {
var _ = this;
_._serialize$_buffer = t0;
_._indentation = 0;
_._style = t1;
_._serialize$_inspect = t2;
_._quote = t3;
_._indentCharacter = t4;
_._indentWidth = t5;
_._serialize$_lineFeed = t6;
},
_SerializeVisitor_visitCssComment_closure: function _SerializeVisitor_visitCssComment_closure(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssAtRule_closure: function _SerializeVisitor_visitCssAtRule_closure(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssMediaRule_closure: function _SerializeVisitor_visitCssMediaRule_closure(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssImport_closure: function _SerializeVisitor_visitCssImport_closure(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssImport__closure: function _SerializeVisitor_visitCssImport__closure(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssKeyframeBlock_closure: function _SerializeVisitor_visitCssKeyframeBlock_closure(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssStyleRule_closure: function _SerializeVisitor_visitCssStyleRule_closure(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssSupportsRule_closure: function _SerializeVisitor_visitCssSupportsRule_closure(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssDeclaration_closure: function _SerializeVisitor_visitCssDeclaration_closure(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssDeclaration_closure0: function _SerializeVisitor_visitCssDeclaration_closure0(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitList_closure: function _SerializeVisitor_visitList_closure() {
},
_SerializeVisitor_visitList_closure0: function _SerializeVisitor_visitList_closure0(t0, t1) {
this.$this = t0;
this.value = t1;
},
_SerializeVisitor_visitList_closure1: function _SerializeVisitor_visitList_closure1(t0) {
this.$this = t0;
},
_SerializeVisitor_visitMap_closure: function _SerializeVisitor_visitMap_closure(t0, t1) {
this.$this = t0;
this.map = t1;
},
_SerializeVisitor_visitSelectorList_closure: function _SerializeVisitor_visitSelectorList_closure() {
},
_SerializeVisitor__write_closure: function _SerializeVisitor__write_closure(t0, t1) {
this.$this = t0;
this.value = t1;
},
_SerializeVisitor__visitChildren_closure: function _SerializeVisitor__visitChildren_closure(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.children = t2;
},
OutputStyle: function OutputStyle(t0) {
this._serialize$_name = t0;
},
LineFeed: function LineFeed() {
},
SerializeResult: function SerializeResult(t0, t1) {
this.css = t0;
this.sourceMap = t1;
},
warn: function(message, deprecation) {
var warnDefinition = $.Zone__current.$index(0, C.Symbol__warn);
if (warnDefinition == null)
throw H.wrapException(P.ArgumentError$(string$.warn__));
warnDefinition.call$2(message, true);
},
withWarnCallback: function(warn, callback, $T) {
var t1 = type$.legacy_Object;
return P.runZoned(new N.withWarnCallback_closure(callback, $T), P.LinkedHashMap_LinkedHashMap$_literal([C.Symbol__warn, warn], t1, t1), $T._eval$1("0*"));
},
withWarnCallback_closure: function withWarnCallback_closure(t0, t1) {
this.callback = t0;
this.T = t1;
},
UnparsedFrame: function UnparsedFrame(t0, t1) {
this.uri = t0;
this.member = t1;
},
AttributeSelector0: function AttributeSelector0(t0, t1, t2, t3) {
var _ = this;
_.name = t0;
_.op = t1;
_.value = t2;
_.modifier = t3;
},
AttributeOperator0: function AttributeOperator0(t0) {
this._attribute0$_text = t0;
},
IDSelector0: function IDSelector0(t0) {
this.name = t0;
},
IDSelector_unify_closure0: function IDSelector_unify_closure0(t0) {
this.$this = t0;
},
NoSourceMapBuffer: function NoSourceMapBuffer(t0) {
this._no_source_map_buffer$_buffer = t0;
},
PlaceholderSelector0: function PlaceholderSelector0(t0) {
this.name = t0;
},
serialize0: function(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
var t1, css, t2, prefix, t3,
visitor = N._SerializeVisitor$(indentWidth == null ? 2 : indentWidth, inspect, lineFeed, true, sourceMap, style, useSpaces);
node.accept$1(visitor);
t1 = visitor._buffer;
css = t1.toString$0(0);
t2 = new H.CodeUnits(css);
t2 = t2.any$1(t2, new N.serialize_closure0());
if (t2)
prefix = style === C.OutputStyle_compressed0 ? "\ufeff" : '@charset "UTF-8";\n';
else
prefix = "";
t2 = prefix + css;
t3 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
if (sourceMap)
t1.get$sourceFiles();
return new N.SerializeResult0(t2, t3);
},
serializeValue: function(value, inspect, quote) {
var visitor = N._SerializeVisitor$(null, inspect, null, quote, false, null, true);
value.accept$1(visitor);
return visitor._buffer.toString$0(0);
},
_SerializeVisitor$: function(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
var t1 = sourceMap ? new D.SourceMapBuffer(new P.StringBuffer(""), H.setRuntimeTypeInfo([], type$.JSArray_legacy_Entry), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_SourceFile)) : new N.NoSourceMapBuffer(new P.StringBuffer("")),
t2 = style == null ? C.OutputStyle_expanded : style,
t3 = useSpaces ? 32 : 9,
t4 = indentWidth == null ? 2 : indentWidth,
t5 = lineFeed == null ? C.LineFeed_D6m : lineFeed;
P.RangeError_checkValueInInterval(t4, 0, 10, "indentWidth");
return new N._SerializeVisitor(t1, t2, inspect, quote, t3, t4, t5);
},
serialize_closure0: function serialize_closure0() {
},
_SerializeVisitor: function _SerializeVisitor(t0, t1, t2, t3, t4, t5, t6) {
var _ = this;
_._buffer = t0;
_._serialize0$_indentation = 0;
_._serialize0$_style = t1;
_._inspect = t2;
_._serialize0$_quote = t3;
_._serialize0$_indentCharacter = t4;
_._serialize0$_indentWidth = t5;
_._lineFeed = t6;
},
_SerializeVisitor_visitCssComment_closure0: function _SerializeVisitor_visitCssComment_closure0(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssAtRule_closure0: function _SerializeVisitor_visitCssAtRule_closure0(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssMediaRule_closure0: function _SerializeVisitor_visitCssMediaRule_closure0(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssImport_closure0: function _SerializeVisitor_visitCssImport_closure0(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssImport__closure0: function _SerializeVisitor_visitCssImport__closure0(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssKeyframeBlock_closure0: function _SerializeVisitor_visitCssKeyframeBlock_closure0(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssStyleRule_closure0: function _SerializeVisitor_visitCssStyleRule_closure0(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssSupportsRule_closure0: function _SerializeVisitor_visitCssSupportsRule_closure0(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssDeclaration_closure1: function _SerializeVisitor_visitCssDeclaration_closure1(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitCssDeclaration_closure2: function _SerializeVisitor_visitCssDeclaration_closure2(t0, t1) {
this.$this = t0;
this.node = t1;
},
_SerializeVisitor_visitList_closure2: function _SerializeVisitor_visitList_closure2() {
},
_SerializeVisitor_visitList_closure3: function _SerializeVisitor_visitList_closure3(t0, t1) {
this.$this = t0;
this.value = t1;
},
_SerializeVisitor_visitList_closure4: function _SerializeVisitor_visitList_closure4(t0) {
this.$this = t0;
},
_SerializeVisitor_visitMap_closure0: function _SerializeVisitor_visitMap_closure0(t0, t1) {
this.$this = t0;
this.map = t1;
},
_SerializeVisitor_visitSelectorList_closure0: function _SerializeVisitor_visitSelectorList_closure0() {
},
_SerializeVisitor__write_closure0: function _SerializeVisitor__write_closure0(t0, t1) {
this.$this = t0;
this.value = t1;
},
_SerializeVisitor__visitChildren_closure0: function _SerializeVisitor__visitChildren_closure0(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.children = t2;
},
OutputStyle0: function OutputStyle0(t0) {
this._name = t0;
},
LineFeed0: function LineFeed0(t0, t1) {
this.name = t0;
this.text = t1;
},
SerializeResult0: function SerializeResult0(t0, t1) {
this.css = t0;
this.sourceMap = t1;
},
UnitlessSassNumber0: function UnitlessSassNumber0(t0, t1) {
this.value = t0;
this.asSlash = t1;
},
UniversalSelector0: function UniversalSelector0(t0) {
this.namespace = t0;
},
warn0: function(message, deprecation) {
var warnDefinition = $.Zone__current.$index(0, C.Symbol__warn);
if (warnDefinition == null)
throw H.wrapException(P.ArgumentError$(string$.warn__));
warnDefinition.call$2(message, true);
},
withWarnCallback0: function(warn, callback, $T) {
var t1 = type$.legacy_Object;
return P.runZoned(new N.withWarnCallback_closure0(callback, $T), P.LinkedHashMap_LinkedHashMap$_literal([C.Symbol__warn, warn], t1, t1), $T._eval$1("0*"));
},
withWarnCallback_closure0: function withWarnCallback_closure0(t0, t1) {
this.callback = t0;
this.T = t1;
}
},
Z = {
ArgParserException$: function(message, commands) {
return new Z.ArgParserException(commands == null ? C.List_empty : P.List_List$unmodifiable(commands, type$.legacy_String), message, null, null);
},
ArgParserException: function ArgParserException(t0, t1, t2, t3) {
var _ = this;
_.commands = t0;
_.message = t1;
_.source = t2;
_.offset = t3;
},
Argument: function Argument(t0, t1, t2) {
this.name = t0;
this.defaultValue = t1;
this.span = t2;
},
ConfiguredVariable: function ConfiguredVariable(t0, t1, t2, t3) {
var _ = this;
_.name = t0;
_.expression = t1;
_.isGuarded = t2;
_.span = t3;
},
BooleanExpression: function BooleanExpression(t0, t1) {
this.value = t0;
this.span = t1;
},
VariableDeclaration$: function($name, expression, span, comment, global, guarded, namespace) {
if (namespace != null && global)
H.throwExpression(P.ArgumentError$(string$.Other_));
return new Z.VariableDeclaration(namespace, $name, expression, guarded, global, span);
},
VariableDeclaration: function VariableDeclaration(t0, t1, t2, t3, t4, t5) {
var _ = this;
_.namespace = t0;
_.name = t1;
_.expression = t2;
_.isGuarded = t3;
_.isGlobal = t4;
_.span = t5;
},
ConfiguredValue: function ConfiguredValue(t0, t1, t2) {
this.value = t0;
this.configurationSpan = t1;
this.assignmentNode = t2;
},
InterpolationBuffer: function InterpolationBuffer(t0, t1) {
this._interpolation_buffer$_text = t0;
this._interpolation_buffer$_contents = t1;
},
MergedMapView$: function(maps, $K, $V) {
var t1 = $K._eval$1("@<0>")._bind$1($V);
t1 = new Z.MergedMapView(P.LinkedHashMap_LinkedHashMap$_empty($K._eval$1("0*"), t1._eval$1("Map<1*,2*>*")), t1._eval$1("MergedMapView<1,2>"));
t1.MergedMapView$1(maps, $K, $V);
return t1;
},
MergedMapView: function MergedMapView(t0, t1) {
this._mapsByKey = t0;
this.$ti = t1;
},
SassBoolean: function SassBoolean(t0) {
this.value = t0;
},
LineScanner$: function(string) {
return new Z.LineScanner(null, string);
},
LineScanner: function LineScanner(t0, t1) {
var _ = this;
_._line_scanner$_column = _._line_scanner$_line = 0;
_.sourceUrl = t0;
_.string = t1;
_._string_scanner$_position = 0;
_._lastMatchPosition = _._lastMatch = null;
},
Argument0: function Argument0(t0, t1, t2) {
this.name = t0;
this.defaultValue = t1;
this.span = t2;
},
BooleanExpression0: function BooleanExpression0(t0, t1) {
this.value = t0;
this.span = t1;
},
closure263: function closure263() {
},
_closure34: function _closure34() {
},
_closure35: function _closure35() {
},
SassBoolean0: function SassBoolean0(t0) {
this.value = t0;
},
ConfiguredValue0: function ConfiguredValue0(t0, t1, t2) {
this.value = t0;
this.configurationSpan = t1;
this.assignmentNode = t2;
},
ConfiguredVariable0: function ConfiguredVariable0(t0, t1, t2, t3) {
var _ = this;
_.name = t0;
_.expression = t1;
_.isGuarded = t2;
_.span = t3;
},
InterpolationBuffer0: function InterpolationBuffer0(t0, t1) {
this._interpolation_buffer0$_text = t0;
this._interpolation_buffer0$_contents = t1;
},
MergedMapView$0: function(maps, $K, $V) {
var t1 = $K._eval$1("@<0>")._bind$1($V);
t1 = new Z.MergedMapView0(P.LinkedHashMap_LinkedHashMap$_empty($K._eval$1("0*"), t1._eval$1("Map<1*,2*>*")), t1._eval$1("MergedMapView0<1,2>"));
t1.MergedMapView$10(maps, $K, $V);
return t1;
},
MergedMapView0: function MergedMapView0(t0, t1) {
this._merged_map_view$_mapsByKey = t0;
this.$ti = t1;
},
RenderContext: function RenderContext() {
},
VariableDeclaration$0: function($name, expression, span, comment, global, guarded, namespace) {
if (namespace != null && global)
H.throwExpression(P.ArgumentError$(string$.Other_));
return new Z.VariableDeclaration0(namespace, $name, expression, guarded, global, span);
},
VariableDeclaration0: function VariableDeclaration0(t0, t1, t2, t3, t4, t5) {
var _ = this;
_.namespace = t0;
_.name = t1;
_.expression = t2;
_.isGuarded = t3;
_.isGlobal = t4;
_.span = t5;
}
},
V = {ArgResults: function ArgResults(t0, t1, t2, t3) {
var _ = this;
_._parser = t0;
_._parsed = t1;
_.name = t2;
_.rest = t3;
}, ErrorResult: function ErrorResult(t0, t1) {
this.error = t0;
this.stackTrace = t1;
}, BufferModule: function BufferModule() {
}, BufferConstants: function BufferConstants() {
}, Buffer: function Buffer() {
},
ModifiableCssStylesheet$: function(span) {
var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
return new V.ModifiableCssStylesheet(span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1);
},
ModifiableCssStylesheet: function ModifiableCssStylesheet(t0, t1, t2) {
var _ = this;
_.span = t0;
_.children = t1;
_._children = t2;
_._indexInParent = _._parent = null;
_.isGroupEnd = false;
},
CssStylesheet: function CssStylesheet(t0, t1) {
this.children = t0;
this.span = t1;
},
AtRootQuery: function AtRootQuery(t0, t1, t2, t3) {
var _ = this;
_.include = t0;
_.names = t1;
_._all = t2;
_._at_root_query$_rule = t3;
},
BinaryOperationExpression: function BinaryOperationExpression(t0, t1, t2, t3) {
var _ = this;
_.operator = t0;
_.left = t1;
_.right = t2;
_.allowsSlash = t3;
},
BinaryOperator: function BinaryOperator(t0, t1, t2) {
this.name = t0;
this.operator = t1;
this.precedence = t2;
},
AtRootRule$: function(children, span, query) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
return new V.AtRootRule(query, span, t1, t2);
},
AtRootRule: function AtRootRule(t0, t1, t2, t3) {
var _ = this;
_.query = t0;
_.span = t1;
_.children = t2;
_.hasDeclarations = t3;
},
EachRule$: function(variables, list, children, span) {
var t1 = P.List_List$unmodifiable(variables, type$.legacy_String),
t2 = P.List_List$unmodifiable(children, type$.legacy_Statement),
t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
return new V.EachRule(t1, list, span, t2, t3);
},
EachRule: function EachRule(t0, t1, t2, t3, t4) {
var _ = this;
_.variables = t0;
_.list = t1;
_.span = t2;
_.children = t3;
_.hasDeclarations = t4;
},
EachRule_toString_closure: function EachRule_toString_closure() {
},
IfClause$: function(expression, children) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement);
return new V.IfClause(expression, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure()));
},
IfClause$last: function(children) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement);
return new V.IfClause(null, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure()));
},
IfRule: function IfRule(t0, t1, t2) {
this.clauses = t0;
this.lastClause = t1;
this.span = t2;
},
IfRule_toString_closure: function IfRule_toString_closure(t0) {
this._box_0 = t0;
},
IfClause: function IfClause(t0, t1, t2) {
this.expression = t0;
this.children = t1;
this.hasDeclarations = t2;
},
IfClause$__closure: function IfClause$__closure() {
},
IfClause$___closure: function IfClause$___closure() {
},
Stylesheet$: function(children, span, plainCss) {
var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_UseRule),
t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ForwardRule),
t3 = P.List_List$unmodifiable(children, type$.legacy_Statement),
t4 = C.JSArray_methods.any$1(t3, new M.ParentStatement_closure());
t1 = new V.Stylesheet(span, plainCss, t1, t2, t3, t4);
t1.Stylesheet$3$plainCss(children, span, plainCss);
return t1;
},
Stylesheet_Stylesheet$parse: function(contents, syntax, logger, url) {
var t1, t2;
switch (syntax) {
case C.Syntax_Sass:
t1 = S.SpanScanner$(contents, url);
t2 = logger == null ? C.StderrLogger_false : logger;
return new U.SassParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, t2).parse$0();
case C.Syntax_SCSS:
return L.ScssParser$(contents, logger, url).parse$0();
case C.Syntax_CSS:
t1 = S.SpanScanner$(contents, url);
t2 = logger == null ? C.StderrLogger_false : logger;
return new Q.CssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, t2).parse$0();
default:
throw H.wrapException(P.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + "."));
}
},
Stylesheet: function Stylesheet(t0, t1, t2, t3, t4, t5) {
var _ = this;
_.span = t0;
_.plainCss = t1;
_._uses = t2;
_._forwards = t3;
_.children = t4;
_.hasDeclarations = t5;
},
AtRootQueryParser$: function(contents, logger, url) {
var t1 = S.SpanScanner$(contents, url);
return new V.AtRootQueryParser(t1, logger);
},
AtRootQueryParser: function AtRootQueryParser(t0, t1) {
this.scanner = t0;
this.logger = t1;
},
AtRootQueryParser_parse_closure: function AtRootQueryParser_parse_closure(t0) {
this.$this = t0;
},
StylesheetParser: function StylesheetParser() {
},
StylesheetParser_parse_closure: function StylesheetParser_parse_closure(t0) {
this.$this = t0;
},
StylesheetParser_parse__closure: function StylesheetParser_parse__closure(t0) {
this.$this = t0;
},
StylesheetParser_parse__closure0: function StylesheetParser_parse__closure0() {
},
StylesheetParser_parseArgumentDeclaration_closure: function StylesheetParser_parseArgumentDeclaration_closure(t0) {
this.$this = t0;
},
StylesheetParser_parseVariableDeclaration_closure: function StylesheetParser_parseVariableDeclaration_closure(t0) {
this.$this = t0;
},
StylesheetParser_parseUseRule_closure: function StylesheetParser_parseUseRule_closure(t0) {
this.$this = t0;
},
StylesheetParser__parseSingleProduction_closure: function StylesheetParser__parseSingleProduction_closure(t0, t1, t2) {
this.$this = t0;
this.production = t1;
this.T = t2;
},
StylesheetParser__statement_closure: function StylesheetParser__statement_closure(t0) {
this.$this = t0;
},
StylesheetParser_variableDeclarationWithoutNamespace_closure: function StylesheetParser_variableDeclarationWithoutNamespace_closure(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
StylesheetParser_variableDeclarationWithoutNamespace_closure0: function StylesheetParser_variableDeclarationWithoutNamespace_closure0(t0) {
this.declaration = t0;
},
StylesheetParser__declarationOrBuffer_closure: function StylesheetParser__declarationOrBuffer_closure(t0) {
this.name = t0;
},
StylesheetParser__declarationOrBuffer_closure0: function StylesheetParser__declarationOrBuffer_closure0(t0, t1) {
this._box_0 = t0;
this.name = t1;
},
StylesheetParser__styleRule_closure: function StylesheetParser__styleRule_closure(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.wasInStyleRule = t2;
},
StylesheetParser__propertyOrVariableDeclaration_closure: function StylesheetParser__propertyOrVariableDeclaration_closure(t0) {
this._box_0 = t0;
},
StylesheetParser__propertyOrVariableDeclaration_closure0: function StylesheetParser__propertyOrVariableDeclaration_closure0(t0, t1) {
this._box_0 = t0;
this.value = t1;
},
StylesheetParser__atRootRule_closure: function StylesheetParser__atRootRule_closure(t0) {
this.query = t0;
},
StylesheetParser__atRootRule_closure0: function StylesheetParser__atRootRule_closure0() {
},
StylesheetParser__eachRule_closure: function StylesheetParser__eachRule_closure(t0, t1, t2, t3) {
var _ = this;
_.$this = t0;
_.wasInControlDirective = t1;
_.variables = t2;
_.list = t3;
},
StylesheetParser__functionRule_closure: function StylesheetParser__functionRule_closure(t0, t1, t2) {
this.name = t0;
this.$arguments = t1;
this.precedingComment = t2;
},
StylesheetParser__forRule_closure: function StylesheetParser__forRule_closure(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
StylesheetParser__forRule_closure0: function StylesheetParser__forRule_closure0(t0, t1, t2, t3, t4, t5) {
var _ = this;
_._box_0 = t0;
_.$this = t1;
_.wasInControlDirective = t2;
_.variable = t3;
_.from = t4;
_.to = t5;
},
StylesheetParser__memberList_closure: function StylesheetParser__memberList_closure(t0, t1, t2) {
this.$this = t0;
this.variables = t1;
this.identifiers = t2;
},
StylesheetParser__includeRule_closure: function StylesheetParser__includeRule_closure(t0) {
this._box_0 = t0;
},
StylesheetParser_mediaRule_closure: function StylesheetParser_mediaRule_closure(t0) {
this.query = t0;
},
StylesheetParser__mixinRule_closure: function StylesheetParser__mixinRule_closure(t0, t1, t2, t3) {
var _ = this;
_.$this = t0;
_.name = t1;
_.$arguments = t2;
_.precedingComment = t3;
},
StylesheetParser_mozDocumentRule_closure: function StylesheetParser_mozDocumentRule_closure(t0, t1, t2, t3) {
var _ = this;
_._box_0 = t0;
_.$this = t1;
_.name = t2;
_.value = t3;
},
StylesheetParser_supportsRule_closure: function StylesheetParser_supportsRule_closure(t0) {
this.condition = t0;
},
StylesheetParser__whileRule_closure: function StylesheetParser__whileRule_closure(t0, t1, t2) {
this.$this = t0;
this.wasInControlDirective = t1;
this.condition = t2;
},
StylesheetParser_unknownAtRule_closure: function StylesheetParser_unknownAtRule_closure(t0, t1) {
this._box_0 = t0;
this.name = t1;
},
StylesheetParser_expression_resetState: function StylesheetParser_expression_resetState(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.start = t2;
},
StylesheetParser_expression_resolveOneOperation: function StylesheetParser_expression_resolveOneOperation(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
StylesheetParser_expression_resolveOperations: function StylesheetParser_expression_resolveOperations(t0, t1) {
this._box_0 = t0;
this.resolveOneOperation = t1;
},
StylesheetParser_expression_addSingleExpression: function StylesheetParser_expression_addSingleExpression(t0, t1, t2, t3) {
var _ = this;
_._box_0 = t0;
_.$this = t1;
_.resetState = t2;
_.resolveOperations = t3;
},
StylesheetParser_expression_addOperator: function StylesheetParser_expression_addOperator(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.resolveOneOperation = t2;
},
StylesheetParser_expression_resolveSpaceExpressions: function StylesheetParser_expression_resolveSpaceExpressions(t0, t1) {
this._box_0 = t0;
this.resolveOperations = t1;
},
StylesheetParser__expressionUntilComma_closure: function StylesheetParser__expressionUntilComma_closure(t0) {
this.$this = t0;
},
StylesheetParser__unicodeRange_closure: function StylesheetParser__unicodeRange_closure() {
},
StylesheetParser__unicodeRange_closure0: function StylesheetParser__unicodeRange_closure0() {
},
StylesheetParser_identifierLike_closure: function StylesheetParser_identifierLike_closure(t0, t1) {
this.$this = t0;
this.start = t1;
},
StylesheetParser__expressionUntilComparison_closure: function StylesheetParser__expressionUntilComparison_closure(t0) {
this.$this = t0;
},
StylesheetParser__publicIdentifier_closure: function StylesheetParser__publicIdentifier_closure(t0, t1) {
this.$this = t0;
this.start = t1;
},
cloneCssStylesheet: function(stylesheet, extender) {
var result = extender.clone$0();
return new S.Tuple2(new V._CloneCssVisitor(result.item2)._visitChildren$2(V.ModifiableCssStylesheet$(stylesheet.get$span()), stylesheet), result.item1, type$.Tuple2_of_legacy_ModifiableCssStylesheet_and_legacy_Extender);
},
_CloneCssVisitor: function _CloneCssVisitor(t0) {
this._oldToNewSelectors = t0;
},
SourceLocation$: function(offset, column, line, sourceUrl) {
var t1 = line == null,
t2 = t1 ? 0 : line;
if (offset < 0)
H.throwExpression(P.RangeError$("Offset may not be negative, was " + offset + "."));
else if (!t1 && line < 0)
H.throwExpression(P.RangeError$("Line may not be negative, was " + H.S(line) + "."));
else if (column < 0)
H.throwExpression(P.RangeError$("Column may not be negative, was " + column + "."));
return new V.SourceLocation(sourceUrl, offset, t2, column);
},
SourceLocation: function SourceLocation(t0, t1, t2, t3) {
var _ = this;
_.sourceUrl = t0;
_.offset = t1;
_.line = t2;
_.column = t3;
},
SourceSpanBase: function SourceSpanBase() {
},
AtRootQueryParser$0: function(contents, logger, url) {
var t1 = S.SpanScanner$(contents, url);
return new V.AtRootQueryParser0(t1, logger);
},
AtRootQueryParser0: function AtRootQueryParser0(t0, t1) {
this.scanner = t0;
this.logger = t1;
},
AtRootQueryParser_parse_closure0: function AtRootQueryParser_parse_closure0(t0) {
this.$this = t0;
},
AtRootQuery0: function AtRootQuery0(t0, t1, t2, t3) {
var _ = this;
_.include = t0;
_.names = t1;
_._at_root_query0$_all = t2;
_._at_root_query0$_rule = t3;
},
AtRootRule$0: function(children, span, query) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
return new V.AtRootRule0(query, span, t1, t2);
},
AtRootRule0: function AtRootRule0(t0, t1, t2, t3) {
var _ = this;
_.query = t0;
_.span = t1;
_.children = t2;
_.hasDeclarations = t3;
},
BinaryOperationExpression0: function BinaryOperationExpression0(t0, t1, t2, t3) {
var _ = this;
_.operator = t0;
_.left = t1;
_.right = t2;
_.allowsSlash = t3;
},
BinaryOperator0: function BinaryOperator0(t0, t1, t2) {
this.name = t0;
this.operator = t1;
this.precedence = t2;
},
cloneCssStylesheet0: function(stylesheet, extender) {
var result = extender.clone$0();
return new S.Tuple2(new V._CloneCssVisitor0(result.item2)._clone_css$_visitChildren$2(V.ModifiableCssStylesheet$0(stylesheet.get$span()), stylesheet), result.item1, type$.Tuple2_of_legacy_ModifiableCssStylesheet_and_legacy_Extender_2);
},
_CloneCssVisitor0: function _CloneCssVisitor0(t0) {
this._clone_css$_oldToNewSelectors = t0;
},
EachRule$0: function(variables, list, children, span) {
var t1 = P.List_List$unmodifiable(variables, type$.legacy_String),
t2 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
return new V.EachRule0(t1, list, span, t2, t3);
},
EachRule0: function EachRule0(t0, t1, t2, t3, t4) {
var _ = this;
_.variables = t0;
_.list = t1;
_.span = t2;
_.children = t3;
_.hasDeclarations = t4;
},
EachRule_toString_closure0: function EachRule_toString_closure0() {
},
IfClause$0: function(expression, children) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2);
return new V.IfClause0(expression, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure0()));
},
IfClause$last0: function(children) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2);
return new V.IfClause0(null, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure0()));
},
IfRule0: function IfRule0(t0, t1, t2) {
this.clauses = t0;
this.lastClause = t1;
this.span = t2;
},
IfRule_toString_closure0: function IfRule_toString_closure0(t0) {
this._box_0 = t0;
},
IfClause0: function IfClause0(t0, t1, t2) {
this.expression = t0;
this.children = t1;
this.hasDeclarations = t2;
},
IfClause$__closure0: function IfClause$__closure0() {
},
IfClause$___closure0: function IfClause$___closure0() {
},
CssStylesheet0: function CssStylesheet0(t0, t1) {
this.children = t0;
this.span = t1;
},
ModifiableCssStylesheet$0: function(span) {
var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
return new V.ModifiableCssStylesheet0(span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1);
},
ModifiableCssStylesheet0: function ModifiableCssStylesheet0(t0, t1, t2) {
var _ = this;
_.span = t0;
_.children = t1;
_._node2$_children = t2;
_._node2$_indexInParent = _._node2$_parent = null;
_.isGroupEnd = false;
},
StylesheetParser0: function StylesheetParser0() {
},
StylesheetParser_parse_closure0: function StylesheetParser_parse_closure0(t0) {
this.$this = t0;
},
StylesheetParser_parse__closure1: function StylesheetParser_parse__closure1(t0) {
this.$this = t0;
},
StylesheetParser_parse__closure2: function StylesheetParser_parse__closure2() {
},
StylesheetParser_parseArgumentDeclaration_closure0: function StylesheetParser_parseArgumentDeclaration_closure0(t0) {
this.$this = t0;
},
StylesheetParser__parseSingleProduction_closure0: function StylesheetParser__parseSingleProduction_closure0(t0, t1, t2) {
this.$this = t0;
this.production = t1;
this.T = t2;
},
StylesheetParser_parseSignature_closure: function StylesheetParser_parseSignature_closure(t0) {
this.$this = t0;
},
StylesheetParser__statement_closure0: function StylesheetParser__statement_closure0(t0) {
this.$this = t0;
},
StylesheetParser_variableDeclarationWithoutNamespace_closure1: function StylesheetParser_variableDeclarationWithoutNamespace_closure1(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
StylesheetParser_variableDeclarationWithoutNamespace_closure2: function StylesheetParser_variableDeclarationWithoutNamespace_closure2(t0) {
this.declaration = t0;
},
StylesheetParser__declarationOrBuffer_closure1: function StylesheetParser__declarationOrBuffer_closure1(t0) {
this.name = t0;
},
StylesheetParser__declarationOrBuffer_closure2: function StylesheetParser__declarationOrBuffer_closure2(t0, t1) {
this._box_0 = t0;
this.name = t1;
},
StylesheetParser__styleRule_closure0: function StylesheetParser__styleRule_closure0(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.wasInStyleRule = t2;
},
StylesheetParser__propertyOrVariableDeclaration_closure1: function StylesheetParser__propertyOrVariableDeclaration_closure1(t0) {
this._box_0 = t0;
},
StylesheetParser__propertyOrVariableDeclaration_closure2: function StylesheetParser__propertyOrVariableDeclaration_closure2(t0, t1) {
this._box_0 = t0;
this.value = t1;
},
StylesheetParser__atRootRule_closure1: function StylesheetParser__atRootRule_closure1(t0) {
this.query = t0;
},
StylesheetParser__atRootRule_closure2: function StylesheetParser__atRootRule_closure2() {
},
StylesheetParser__eachRule_closure0: function StylesheetParser__eachRule_closure0(t0, t1, t2, t3) {
var _ = this;
_.$this = t0;
_.wasInControlDirective = t1;
_.variables = t2;
_.list = t3;
},
StylesheetParser__functionRule_closure0: function StylesheetParser__functionRule_closure0(t0, t1, t2) {
this.name = t0;
this.$arguments = t1;
this.precedingComment = t2;
},
StylesheetParser__forRule_closure1: function StylesheetParser__forRule_closure1(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
StylesheetParser__forRule_closure2: function StylesheetParser__forRule_closure2(t0, t1, t2, t3, t4, t5) {
var _ = this;
_._box_0 = t0;
_.$this = t1;
_.wasInControlDirective = t2;
_.variable = t3;
_.from = t4;
_.to = t5;
},
StylesheetParser__memberList_closure0: function StylesheetParser__memberList_closure0(t0, t1, t2) {
this.$this = t0;
this.variables = t1;
this.identifiers = t2;
},
StylesheetParser__includeRule_closure0: function StylesheetParser__includeRule_closure0(t0) {
this._box_0 = t0;
},
StylesheetParser_mediaRule_closure0: function StylesheetParser_mediaRule_closure0(t0) {
this.query = t0;
},
StylesheetParser__mixinRule_closure0: function StylesheetParser__mixinRule_closure0(t0, t1, t2, t3) {
var _ = this;
_.$this = t0;
_.name = t1;
_.$arguments = t2;
_.precedingComment = t3;
},
StylesheetParser_mozDocumentRule_closure0: function StylesheetParser_mozDocumentRule_closure0(t0, t1, t2, t3) {
var _ = this;
_._box_0 = t0;
_.$this = t1;
_.name = t2;
_.value = t3;
},
StylesheetParser_supportsRule_closure0: function StylesheetParser_supportsRule_closure0(t0) {
this.condition = t0;
},
StylesheetParser__whileRule_closure0: function StylesheetParser__whileRule_closure0(t0, t1, t2) {
this.$this = t0;
this.wasInControlDirective = t1;
this.condition = t2;
},
StylesheetParser_unknownAtRule_closure0: function StylesheetParser_unknownAtRule_closure0(t0, t1) {
this._box_0 = t0;
this.name = t1;
},
StylesheetParser_expression_resetState0: function StylesheetParser_expression_resetState0(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.start = t2;
},
StylesheetParser_expression_resolveOneOperation0: function StylesheetParser_expression_resolveOneOperation0(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
StylesheetParser_expression_resolveOperations0: function StylesheetParser_expression_resolveOperations0(t0, t1) {
this._box_0 = t0;
this.resolveOneOperation = t1;
},
StylesheetParser_expression_addSingleExpression0: function StylesheetParser_expression_addSingleExpression0(t0, t1, t2, t3) {
var _ = this;
_._box_0 = t0;
_.$this = t1;
_.resetState = t2;
_.resolveOperations = t3;
},
StylesheetParser_expression_addOperator0: function StylesheetParser_expression_addOperator0(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.resolveOneOperation = t2;
},
StylesheetParser_expression_resolveSpaceExpressions0: function StylesheetParser_expression_resolveSpaceExpressions0(t0, t1) {
this._box_0 = t0;
this.resolveOperations = t1;
},
StylesheetParser__expressionUntilComma_closure0: function StylesheetParser__expressionUntilComma_closure0(t0) {
this.$this = t0;
},
StylesheetParser__unicodeRange_closure1: function StylesheetParser__unicodeRange_closure1() {
},
StylesheetParser__unicodeRange_closure2: function StylesheetParser__unicodeRange_closure2() {
},
StylesheetParser_identifierLike_closure0: function StylesheetParser_identifierLike_closure0(t0, t1) {
this.$this = t0;
this.start = t1;
},
StylesheetParser__expressionUntilComparison_closure0: function StylesheetParser__expressionUntilComparison_closure0(t0) {
this.$this = t0;
},
StylesheetParser__publicIdentifier_closure0: function StylesheetParser__publicIdentifier_closure0(t0, t1) {
this.$this = t0;
this.start = t1;
},
Stylesheet$0: function(children, span, plainCss) {
var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_UseRule_2),
t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ForwardRule_2),
t3 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
t4 = C.JSArray_methods.any$1(t3, new M.ParentStatement_closure0());
t1 = new V.Stylesheet0(span, plainCss, t1, t2, t3, t4);
t1.Stylesheet$3$plainCss0(children, span, plainCss);
return t1;
},
Stylesheet_Stylesheet$parse0: function(contents, syntax, logger, url) {
var t1, t2;
switch (syntax) {
case C.Syntax_Sass0:
t1 = S.SpanScanner$(contents, url);
t2 = logger == null ? C.C_StderrLogger : logger;
return new U.SassParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, t2).parse$0();
case C.Syntax_SCSS0:
return L.ScssParser$0(contents, logger, url).parse$0();
case C.Syntax_CSS0:
t1 = S.SpanScanner$(contents, url);
t2 = logger == null ? C.C_StderrLogger : logger;
return new Q.CssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, t2).parse$0();
default:
throw H.wrapException(P.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + "."));
}
},
Stylesheet0: function Stylesheet0(t0, t1, t2, t3, t4, t5) {
var _ = this;
_.span = t0;
_.plainCss = t1;
_._stylesheet1$_uses = t2;
_._stylesheet1$_forwards = t3;
_.children = t4;
_.hasDeclarations = t5;
}
},
G = {Option: function Option(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
var _ = this;
_.name = t0;
_.abbr = t1;
_.help = t2;
_.valueHelp = t3;
_.allowed = t4;
_.allowedHelp = t5;
_.defaultsTo = t6;
_.negatable = t7;
_.callback = t8;
_.type = t9;
_.splitCommas = t10;
_.hide = t11;
}, OptionType: function OptionType(t0) {
this.name = t0;
},
Parser$: function(commandName, grammar, args, $parent, rest) {
var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
if (rest != null)
C.JSArray_methods.addAll$1(t1, rest);
return new G.Parser0(commandName, $parent, grammar, args, t1, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.dynamic));
},
_isLetterOrDigit: function(codeUnit) {
var t1;
if (!(codeUnit >= 65 && codeUnit <= 90))
if (!(codeUnit >= 97 && codeUnit <= 122))
t1 = codeUnit >= 48 && codeUnit <= 57;
else
t1 = true;
else
t1 = true;
return t1;
},
Parser0: function Parser0(t0, t1, t2, t3, t4, t5) {
var _ = this;
_.commandName = t0;
_.parent = t1;
_.grammar = t2;
_.args = t3;
_.rest = t4;
_.results = t5;
},
Parser_parse_closure: function Parser_parse_closure(t0) {
this.$this = t0;
},
Parser_setOption_closure: function Parser_setOption_closure() {
},
Usage: function Usage(t0, t1) {
var _ = this;
_.optionsAndSeparators = t0;
_.buffer = null;
_.currentColumn = 0;
_.columnWidths = null;
_.newlinesNeeded = _.numHelpLines = 0;
_.lineLength = t1;
},
Usage_generate_closure: function Usage_generate_closure() {
},
Usage_buildAllowedList_closure: function Usage_buildAllowedList_closure(t0) {
this.option = t0;
},
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;
},
StreamQueue__ensureListening_closure: function StreamQueue__ensureListening_closure(t0) {
this.$this = t0;
},
StreamQueue__ensureListening_closure1: function StreamQueue__ensureListening_closure1(t0) {
this.$this = t0;
},
StreamQueue__ensureListening_closure0: function StreamQueue__ensureListening_closure0(t0) {
this.$this = t0;
},
_NextRequest: function _NextRequest(t0, t1) {
this._completer = t0;
this.$ti = t1;
},
ModifiableCssMediaRule$: function(queries, span) {
var t1 = P.List_List$unmodifiable(queries, type$.legacy_CssMediaQuery),
t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
if (J.get$isEmpty$asx(queries))
H.throwExpression(P.ArgumentError$value(queries, "queries", "may not be empty."));
return new G.ModifiableCssMediaRule(t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2);
},
ModifiableCssMediaRule: function ModifiableCssMediaRule(t0, t1, t2, t3) {
var _ = this;
_.queries = t0;
_.span = t1;
_.children = t2;
_._children = t3;
_._indexInParent = _._parent = null;
_.isGroupEnd = false;
},
MediaRule$: function(query, children, span) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
return new G.MediaRule(query, span, t1, t2);
},
MediaRule: function MediaRule(t0, t1, t2, t3) {
var _ = this;
_.query = t0;
_.span = t1;
_.children = t2;
_.hasDeclarations = t3;
},
WhileRule$: function(condition, children, span) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
return new G.WhileRule(condition, span, t1, t2);
},
WhileRule: function WhileRule(t0, t1, t2, t3) {
var _ = this;
_.condition = t0;
_.span = t1;
_.children = t2;
_.hasDeclarations = t3;
},
Parser_isIdentifier: function(text) {
var t1, t2, exception, logger = null;
try {
t1 = logger;
t2 = S.SpanScanner$(text, null);
new G.Parser(t2, t1 == null ? C.StderrLogger_false : t1)._parseIdentifier$0();
return true;
} catch (exception) {
if (H.unwrapException(exception) instanceof E.SassFormatException)
return false;
else
throw exception;
}
},
Parser: function Parser(t0, t1) {
this.scanner = t0;
this.logger = t1;
},
Parser__parseIdentifier_closure: function Parser__parseIdentifier_closure(t0) {
this.$this = t0;
},
Parser_scanIdentChar_matches: function Parser_scanIdentChar_matches(t0, t1) {
this.caseSensitive = t0;
this.char = t1;
},
FixedLengthListBuilder: function FixedLengthListBuilder(t0, t1) {
this._list = t0;
this._fixed_length_list_builder$_index = 0;
this.$ti = t1;
},
SourceSpanFormatException$: function(message, span, source) {
return new G.SourceSpanFormatException(source, message, span);
},
SourceSpanException: function SourceSpanException() {
},
SourceSpanFormatException: function SourceSpanFormatException(t0, t1, t2) {
this.source = t0;
this._span_exception$_message = t1;
this._span = t2;
},
FixedLengthListBuilder0: function FixedLengthListBuilder0(t0, t1) {
this._fixed_length_list_builder0$_list = t0;
this._fixed_length_list_builder0$_index = 0;
this.$ti = t1;
},
ModifiableCssMediaRule$0: function(queries, span) {
var t1 = P.List_List$unmodifiable(queries, type$.legacy_CssMediaQuery_2),
t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
if (J.get$isEmpty$asx(queries))
H.throwExpression(P.ArgumentError$value(queries, "queries", "may not be empty."));
return new G.ModifiableCssMediaRule0(t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2);
},
ModifiableCssMediaRule0: function ModifiableCssMediaRule0(t0, t1, t2, t3) {
var _ = this;
_.queries = t0;
_.span = t1;
_.children = t2;
_._node2$_children = t3;
_._node2$_indexInParent = _._node2$_parent = null;
_.isGroupEnd = false;
},
MediaRule$0: function(query, children, span) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
return new G.MediaRule0(query, span, t1, t2);
},
MediaRule0: function MediaRule0(t0, t1, t2, t3) {
var _ = this;
_.query = t0;
_.span = t1;
_.children = t2;
_.hasDeclarations = t3;
},
Parser_isIdentifier0: function(text) {
var t1, t2, exception, logger = null;
try {
t1 = logger;
t2 = S.SpanScanner$(text, null);
new G.Parser1(t2, t1 == null ? C.C_StderrLogger : t1)._parser$_parseIdentifier$0();
return true;
} catch (exception) {
if (H.unwrapException(exception) instanceof E.SassFormatException0)
return false;
else
throw exception;
}
},
Parser1: function Parser1(t0, t1) {
this.scanner = t0;
this.logger = t1;
},
Parser__parseIdentifier_closure0: function Parser__parseIdentifier_closure0(t0) {
this.$this = t0;
},
Parser_scanIdentChar_matches0: function Parser_scanIdentChar_matches0(t0, t1) {
this.caseSensitive = t0;
this.char = t1;
},
Types: function Types() {
},
WhileRule$0: function(condition, children, span) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
return new G.WhileRule0(condition, span, t1, t2);
},
WhileRule0: function WhileRule0(t0, t1, t2, t3) {
var _ = this;
_.condition = t0;
_.span = t1;
_.children = t2;
_.hasDeclarations = t3;
}
},
F = {ValueResult: function ValueResult(t0, t1) {
this.value = t0;
this.$ti = t1;
}, ConsoleModule: function ConsoleModule() {
}, Console: function Console() {
}, EventEmitter: function EventEmitter() {
}, UrlStyle: function UrlStyle(t0, t1, t2, t3) {
var _ = this;
_.separatorPattern = t0;
_.needsSeparatorPattern = t1;
_.rootPattern = t2;
_.relativeRootPattern = t3;
}, CssMediaQuery: function CssMediaQuery(t0, t1, t2) {
this.modifier = t0;
this.type = t1;
this.features = t2;
}, _SingletonCssMediaQueryMergeResult: function _SingletonCssMediaQueryMergeResult(t0) {
this._media_query$_name = t0;
}, MediaQuerySuccessfulMergeResult: function MediaQuerySuccessfulMergeResult(t0) {
this.query = t0;
},
ModifiableCssImport$: function(url, span, media, supports) {
return new F.ModifiableCssImport(url, supports, media == null ? null : P.List_List$unmodifiable(media, type$.legacy_CssMediaQuery), span);
},
ModifiableCssImport: function ModifiableCssImport(t0, t1, t2, t3) {
var _ = this;
_.url = t0;
_.supports = t1;
_.media = t2;
_.span = t3;
_._indexInParent = _._parent = null;
_.isGroupEnd = false;
},
ModifiableCssValue: function ModifiableCssValue(t0, t1, t2) {
this.value = t0;
this.span = t1;
this.$ti = t2;
},
CssValue: function CssValue(t0, t1, t2) {
this.value = t0;
this.span = t1;
this.$ti = t2;
},
FunctionExpression: function FunctionExpression(t0, t1, t2, t3) {
var _ = this;
_.namespace = t0;
_.name = t1;
_.$arguments = t2;
_.span = t3;
},
ValueExpression: function ValueExpression(t0, t1) {
this.value = t0;
this.span = t1;
},
SupportsFunction: function SupportsFunction(t0, t1, t2) {
this.name = t0;
this.$arguments = t1;
this.span = t2;
},
TypeSelector: function TypeSelector(t0) {
this.name = t0;
},
Extender__extendOrReplace: function(selector, source, targets, mode) {
var t2, t3, _i, complex, t4, t5, t6, _i0, extender, _null = null,
t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector, type$.legacy_Extension);
for (t2 = source.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
complex = t2[_i];
if (complex._maxSpecificity == null)
complex._computeSpecificity$0();
t4 = complex._maxSpecificity;
t1.$indexSet(0, complex, new S.Extension(complex, _null, t4, true, false, _null, _null, _null));
}
t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CompoundSelector);
for (t3 = targets.components, t4 = t3.length, t5 = type$.legacy_CompoundSelector, _i = 0; _i < t4; ++_i) {
complex = t3[_i];
t6 = complex.components;
if (t6.length !== 1)
t2.push(H.throwExpression(E.SassScriptException$("Can't extend complex selector " + H.S(complex) + ".")));
else
t2.push(t5._as(C.JSArray_methods.get$first(t6)));
}
t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension);
for (t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, H.throwConcurrentModificationError)(t2), ++_i)
for (t5 = t2[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
t3.$indexSet(0, t5[_i0], t1);
extender = F.Extender$_mode(mode);
if (!selector.get$isInvisible())
extender._originals.addAll$1(0, selector.components);
return extender._extendList$3(selector, t3, _null);
},
Extender$: function() {
var t1 = type$.legacy_SimpleSelector;
return new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_List_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList, type$.legacy_List_legacy_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector), C.ExtendMode_normal);
},
Extender$_mode: function(_mode) {
var t1 = type$.legacy_SimpleSelector;
return new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_List_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList, type$.legacy_List_legacy_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector), _mode);
},
Extender: function Extender(t0, t1, t2, t3, t4, t5, t6) {
var _ = this;
_._selectors = t0;
_._extensions = t1;
_._extensionsByExtender = t2;
_._mediaContexts = t3;
_._sourceSpecificity = t4;
_._originals = t5;
_._mode = t6;
},
Extender_extensionsWhereTarget_closure: function Extender_extensionsWhereTarget_closure() {
},
Extender__registerSelector_closure: function Extender__registerSelector_closure() {
},
Extender_addExtension_closure: function Extender_addExtension_closure() {
},
Extender_addExtension_closure0: function Extender_addExtension_closure0() {
},
Extender_addExtension_closure1: function Extender_addExtension_closure1(t0) {
this.complex = t0;
},
Extender__extendExistingExtensions_closure: function Extender__extendExistingExtensions_closure() {
},
Extender__extendExistingExtensions_closure0: function Extender__extendExistingExtensions_closure0() {
},
Extender_addExtensions_closure: function Extender_addExtensions_closure(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.extender = t2;
},
Extender_addExtensions__closure: function Extender_addExtensions__closure(t0, t1, t2, t3, t4) {
var _ = this;
_._box_0 = t0;
_.existingSources = t1;
_.extensionsForTarget = t2;
_.selectorsForTarget = t3;
_.target = t4;
},
Extender_addExtensions___closure: function Extender_addExtensions___closure() {
},
Extender_addExtensions___closure0: function Extender_addExtensions___closure0(t0) {
this.extension = t0;
},
Extender__extendList_closure: function Extender__extendList_closure() {
},
Extender__extendComplex_closure: function Extender__extendComplex_closure(t0) {
this.complex = t0;
},
Extender__extendComplex_closure0: function Extender__extendComplex_closure0(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.complex = t2;
},
Extender__extendComplex__closure: function Extender__extendComplex__closure() {
},
Extender__extendComplex__closure0: function Extender__extendComplex__closure0(t0, t1, t2, t3) {
var _ = this;
_._box_0 = t0;
_.$this = t1;
_.complex = t2;
_.path = t3;
},
Extender__extendComplex___closure: function Extender__extendComplex___closure() {
},
Extender__extendCompound_closure: function Extender__extendCompound_closure(t0) {
this.mediaQueryContext = t0;
},
Extender__extendCompound_closure0: function Extender__extendCompound_closure0(t0, t1) {
this._box_1 = t0;
this.mediaQueryContext = t1;
},
Extender__extendCompound__closure: function Extender__extendCompound__closure() {
},
Extender__extendCompound__closure0: function Extender__extendCompound__closure0(t0) {
this._box_0 = t0;
},
Extender__extendCompound_closure1: function Extender__extendCompound_closure1() {
},
Extender__extendCompound_closure2: function Extender__extendCompound_closure2(t0) {
this.original = t0;
},
Extender__extendCompound_closure3: function Extender__extendCompound_closure3() {
},
Extender__extendCompound_closure4: function Extender__extendCompound_closure4() {
},
Extender__extendSimple_withoutPseudo: function Extender__extendSimple_withoutPseudo(t0, t1, t2) {
this.$this = t0;
this.extensions = t1;
this.targetsUsed = t2;
},
Extender__extendSimple_closure: function Extender__extendSimple_closure(t0, t1) {
this.$this = t0;
this.withoutPseudo = t1;
},
Extender__extendPseudo_closure: function Extender__extendPseudo_closure() {
},
Extender__extendPseudo_closure0: function Extender__extendPseudo_closure0() {
},
Extender__extendPseudo_closure1: function Extender__extendPseudo_closure1() {
},
Extender__extendPseudo_closure2: function Extender__extendPseudo_closure2(t0) {
this.pseudo = t0;
},
Extender__extendPseudo_closure3: function Extender__extendPseudo_closure3(t0) {
this.pseudo = t0;
},
Extender__trim_closure: function Extender__trim_closure(t0, t1) {
this._box_0 = t0;
this.complex1 = t1;
},
Extender__trim_closure0: function Extender__trim_closure0(t0, t1) {
this._box_0 = t0;
this.complex1 = t1;
},
Extender_clone_closure: function Extender_clone_closure(t0, t1, t2, t3) {
var _ = this;
_.$this = t0;
_.newSelectors = t1;
_.oldToNewSelectors = t2;
_.newMediaContexts = t3;
},
FilesystemImporter: function FilesystemImporter(t0) {
this._loadPath = t0;
},
_realCasePath: function(path) {
var prefix, t1;
if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
return path;
if (J.$eq$(J.get$platform$x(self.process), "win32")) {
prefix = J.getInterceptor$s(path).substring$2(path, 0, $.$get$context().style.rootLength$1(path));
t1 = prefix.length;
if (t1 !== 0 && T.isAlphabetic0(C.JSString_methods._codeUnitAt$1(prefix, 0)))
path = prefix.toUpperCase() + C.JSString_methods.substring$1(path, t1);
}
return new F._realCasePath_helper().call$1(path);
},
_realCasePath_helper: function _realCasePath_helper() {
},
_realCasePath_helper_closure: function _realCasePath_helper_closure(t0, t1, t2) {
this.helper = t0;
this.dirname = t1;
this.path = t2;
},
_realCasePath_helper__closure: function _realCasePath_helper__closure(t0) {
this.basename = t0;
},
_QuietLogger: function _QuietLogger() {
},
JSFunction: function JSFunction() {
},
NodeImporterResult: function NodeImporterResult() {
},
MediaQueryParser$: function(contents, logger, url) {
var t1 = S.SpanScanner$(contents, url);
return new F.MediaQueryParser(t1, logger);
},
MediaQueryParser: function MediaQueryParser(t0, t1) {
this.scanner = t0;
this.logger = t1;
},
MediaQueryParser_parse_closure: function MediaQueryParser_parse_closure(t0) {
this.$this = t0;
},
PrefixedMapView: function PrefixedMapView(t0, t1, t2) {
this._prefixed_map_view$_map = t0;
this._prefix = t1;
this.$ti = t2;
},
_PrefixedKeys: function _PrefixedKeys(t0) {
this._view = t0;
},
_PrefixedKeys_iterator_closure: function _PrefixedKeys_iterator_closure(t0) {
this.$this = t0;
},
Value: function Value() {
},
SassFunction: function SassFunction(t0) {
this.callable = t0;
},
_FindDependenciesVisitor: function _FindDependenciesVisitor(t0, t1) {
this._usesAndForwards = t0;
this._imports = t1;
},
Extender__extendOrReplace0: function(selector, source, targets, mode) {
var t2, t3, _i, complex, t4, t5, t6, _i0, extender, _null = null,
t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector_2, type$.legacy_Extension_2);
for (t2 = source.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
complex = t2[_i];
if (complex._complex0$_maxSpecificity == null)
complex._complex0$_computeSpecificity$0();
t4 = complex._complex0$_maxSpecificity;
t1.$indexSet(0, complex, new S.Extension0(complex, _null, t4, true, false, _null, _null, _null));
}
t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CompoundSelector_2);
for (t3 = targets.components, t4 = t3.length, t5 = type$.legacy_CompoundSelector_2, _i = 0; _i < t4; ++_i) {
complex = t3[_i];
t6 = complex.components;
if (t6.length !== 1)
t2.push(H.throwExpression(E.SassScriptException$0("Can't extend complex selector " + H.S(complex) + ".")));
else
t2.push(t5._as(C.JSArray_methods.get$first(t6)));
}
t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector_2, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2);
for (t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, H.throwConcurrentModificationError)(t2), ++_i)
for (t5 = t2[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
t3.$indexSet(0, t5[_i0], t1);
extender = F.Extender$_mode0(mode);
if (!selector.get$isInvisible())
extender._extender$_originals.addAll$1(0, selector.components);
return extender._extender$_extendList$3(selector, t3, _null);
},
Extender$0: function() {
var t1 = type$.legacy_SimpleSelector_2;
return new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_List_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2, type$.legacy_List_legacy_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector_2), C.ExtendMode_normal0);
},
Extender$_mode0: function(_mode) {
var t1 = type$.legacy_SimpleSelector_2;
return new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_List_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2, type$.legacy_List_legacy_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector_2), _mode);
},
Extender0: function Extender0(t0, t1, t2, t3, t4, t5, t6) {
var _ = this;
_._extender$_selectors = t0;
_._extender$_extensions = t1;
_._extender$_extensionsByExtender = t2;
_._extender$_mediaContexts = t3;
_._extender$_sourceSpecificity = t4;
_._extender$_originals = t5;
_._extender$_mode = t6;
},
Extender_extensionsWhereTarget_closure0: function Extender_extensionsWhereTarget_closure0() {
},
Extender__registerSelector_closure0: function Extender__registerSelector_closure0() {
},
Extender_addExtension_closure2: function Extender_addExtension_closure2() {
},
Extender_addExtension_closure3: function Extender_addExtension_closure3() {
},
Extender_addExtension_closure4: function Extender_addExtension_closure4(t0) {
this.complex = t0;
},
Extender__extendExistingExtensions_closure1: function Extender__extendExistingExtensions_closure1() {
},
Extender__extendExistingExtensions_closure2: function Extender__extendExistingExtensions_closure2() {
},
Extender_addExtensions_closure0: function Extender_addExtensions_closure0(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.extender = t2;
},
Extender_addExtensions__closure0: function Extender_addExtensions__closure0(t0, t1, t2, t3, t4) {
var _ = this;
_._box_0 = t0;
_.existingSources = t1;
_.extensionsForTarget = t2;
_.selectorsForTarget = t3;
_.target = t4;
},
Extender_addExtensions___closure1: function Extender_addExtensions___closure1() {
},
Extender_addExtensions___closure2: function Extender_addExtensions___closure2(t0) {
this.extension = t0;
},
Extender__extendList_closure0: function Extender__extendList_closure0() {
},
Extender__extendComplex_closure1: function Extender__extendComplex_closure1(t0) {
this.complex = t0;
},
Extender__extendComplex_closure2: function Extender__extendComplex_closure2(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.complex = t2;
},
Extender__extendComplex__closure1: function Extender__extendComplex__closure1() {
},
Extender__extendComplex__closure2: function Extender__extendComplex__closure2(t0, t1, t2, t3) {
var _ = this;
_._box_0 = t0;
_.$this = t1;
_.complex = t2;
_.path = t3;
},
Extender__extendComplex___closure0: function Extender__extendComplex___closure0() {
},
Extender__extendCompound_closure5: function Extender__extendCompound_closure5(t0) {
this.mediaQueryContext = t0;
},
Extender__extendCompound_closure6: function Extender__extendCompound_closure6(t0, t1) {
this._box_1 = t0;
this.mediaQueryContext = t1;
},
Extender__extendCompound__closure1: function Extender__extendCompound__closure1() {
},
Extender__extendCompound__closure2: function Extender__extendCompound__closure2(t0) {
this._box_0 = t0;
},
Extender__extendCompound_closure7: function Extender__extendCompound_closure7() {
},
Extender__extendCompound_closure8: function Extender__extendCompound_closure8(t0) {
this.original = t0;
},
Extender__extendCompound_closure9: function Extender__extendCompound_closure9() {
},
Extender__extendCompound_closure10: function Extender__extendCompound_closure10() {
},
Extender__extendSimple_withoutPseudo0: function Extender__extendSimple_withoutPseudo0(t0, t1, t2) {
this.$this = t0;
this.extensions = t1;
this.targetsUsed = t2;
},
Extender__extendSimple_closure0: function Extender__extendSimple_closure0(t0, t1) {
this.$this = t0;
this.withoutPseudo = t1;
},
Extender__extendPseudo_closure4: function Extender__extendPseudo_closure4() {
},
Extender__extendPseudo_closure5: function Extender__extendPseudo_closure5() {
},
Extender__extendPseudo_closure6: function Extender__extendPseudo_closure6() {
},
Extender__extendPseudo_closure7: function Extender__extendPseudo_closure7(t0) {
this.pseudo = t0;
},
Extender__extendPseudo_closure8: function Extender__extendPseudo_closure8(t0) {
this.pseudo = t0;
},
Extender__trim_closure1: function Extender__trim_closure1(t0, t1) {
this._box_0 = t0;
this.complex1 = t1;
},
Extender__trim_closure2: function Extender__trim_closure2(t0, t1) {
this._box_0 = t0;
this.complex1 = t1;
},
Extender_clone_closure0: function Extender_clone_closure0(t0, t1, t2, t3) {
var _ = this;
_.$this = t0;
_.newSelectors = t1;
_.oldToNewSelectors = t2;
_.newMediaContexts = t3;
},
FilesystemImporter0: function FilesystemImporter0(t0) {
this._filesystem$_loadPath = t0;
},
FunctionExpression0: function FunctionExpression0(t0, t1, t2, t3) {
var _ = this;
_.namespace = t0;
_.name = t1;
_.$arguments = t2;
_.span = t3;
},
JSFunction0: function JSFunction0() {
},
SupportsFunction0: function SupportsFunction0(t0, t1, t2) {
this.name = t0;
this.$arguments = t1;
this.span = t2;
},
SassFunction0: function SassFunction0(t0) {
this.callable = t0;
},
NodeImporter__addSassPath: function($async$includePaths) {
return P._makeSyncStarIterable(function() {
var includePaths = $async$includePaths;
var $async$goto = 0, $async$handler = 2, $async$currentError, sassPath;
return function $async$NodeImporter__addSassPath($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$goto = 3;
return P._IterationMarker_yieldStar(includePaths);
case 3:
// after yield
sassPath = H._asStringS(J.get$env$x(self.process).SASS_PATH);
if (sassPath == null) {
// goto return
$async$goto = 1;
break;
}
$async$goto = 4;
return P._IterationMarker_yieldStar(H.setRuntimeTypeInfo(sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":"), type$.JSArray_String));
case 4:
// after yield
case 1:
// return
return P._IterationMarker_endOfIteration();
case 2:
// rethrow
return P._IterationMarker_uncaughtError($async$currentError);
}
};
}, type$.legacy_String);
},
NodeImporter: function NodeImporter(t0, t1, t2) {
this._implementation$_context = t0;
this._includePaths = t1;
this._implementation$_importers = t2;
},
NodeImporter__tryPath_closure: function NodeImporter__tryPath_closure(t0) {
this.path = t0;
},
ModifiableCssImport$0: function(url, span, media, supports) {
return new F.ModifiableCssImport0(url, supports, media == null ? null : P.List_List$unmodifiable(media, type$.legacy_CssMediaQuery_2), span);
},
ModifiableCssImport0: function ModifiableCssImport0(t0, t1, t2, t3) {
var _ = this;
_.url = t0;
_.supports = t1;
_.media = t2;
_.span = t3;
_._node2$_indexInParent = _._node2$_parent = null;
_.isGroupEnd = false;
},
NodeImporterResult0: function NodeImporterResult0() {
},
_realCasePath0: function(path) {
var prefix, t1;
if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
return path;
if (J.$eq$(J.get$platform$x(self.process), "win32")) {
prefix = J.getInterceptor$s(path).substring$2(path, 0, $.$get$context().style.rootLength$1(path));
t1 = prefix.length;
if (t1 !== 0 && T.isAlphabetic1(C.JSString_methods._codeUnitAt$1(prefix, 0)))
path = prefix.toUpperCase() + C.JSString_methods.substring$1(path, t1);
}
return new F._realCasePath_helper0().call$1(path);
},
_realCasePath_helper0: function _realCasePath_helper0() {
},
_realCasePath_helper_closure0: function _realCasePath_helper_closure0(t0, t1, t2) {
this.helper = t0;
this.dirname = t1;
this.path = t2;
},
_realCasePath_helper__closure0: function _realCasePath_helper__closure0(t0) {
this.basename = t0;
},
CssMediaQuery0: function CssMediaQuery0(t0, t1, t2) {
this.modifier = t0;
this.type = t1;
this.features = t2;
},
_SingletonCssMediaQueryMergeResult0: function _SingletonCssMediaQueryMergeResult0(t0) {
this._media_query1$_name = t0;
},
MediaQuerySuccessfulMergeResult0: function MediaQuerySuccessfulMergeResult0(t0) {
this.query = t0;
},
MediaQueryParser$0: function(contents, logger, url) {
var t1 = S.SpanScanner$(contents, url);
return new F.MediaQueryParser0(t1, logger);
},
MediaQueryParser0: function MediaQueryParser0(t0, t1) {
this.scanner = t0;
this.logger = t1;
},
MediaQueryParser_parse_closure0: function MediaQueryParser_parse_closure0(t0) {
this.$this = t0;
},
PrefixedMapView0: function PrefixedMapView0(t0, t1, t2) {
this._prefixed_map_view0$_map = t0;
this._prefixed_map_view0$_prefix = t1;
this.$ti = t2;
},
_PrefixedKeys0: function _PrefixedKeys0(t0) {
this._prefixed_map_view0$_view = t0;
},
_PrefixedKeys_iterator_closure0: function _PrefixedKeys_iterator_closure0(t0) {
this.$this = t0;
},
TypeSelector0: function TypeSelector0(t0) {
this.name = t0;
},
CssValue0: function CssValue0(t0, t1, t2) {
this.value = t0;
this.span = t1;
this.$ti = t2;
},
ValueExpression0: function ValueExpression0(t0, t1) {
this.value = t0;
this.span = t1;
},
ModifiableCssValue0: function ModifiableCssValue0(t0, t1, t2) {
this.value = t0;
this.span = t1;
this.$ti = t2;
},
Value0: function Value0() {
},
unwrapValue: function(object) {
var value, t1;
if (object != null) {
if (object instanceof F.Value0)
return object;
value = object.dartValue;
if (value != null && value instanceof F.Value0)
return value;
t1 = self.Error;
if (H._asBoolS($.$get$_jsInstanceOf().call$2(object, t1)))
throw H.wrapException(object);
}
throw H.wrapException(H.S(object) + " must be a Sass value type.");
},
wrapValue: function(value) {
if (value instanceof K.SassColor0)
return P.callConstructor($.$get$colorConstructor(), H.setRuntimeTypeInfo([null, null, null, null, value], type$.JSArray_legacy_Object));
if (value instanceof D.SassList0)
return P.callConstructor($.$get$listConstructor(), H.setRuntimeTypeInfo([null, null, value], type$.JSArray_legacy_Object));
if (value instanceof A.SassMap0)
return P.callConstructor($.$get$mapConstructor(), H.setRuntimeTypeInfo([null, value], type$.JSArray_legacy_Object));
if (value instanceof T.SassNumber0)
return P.callConstructor($.$get$numberConstructor(), H.setRuntimeTypeInfo([null, null, value], type$.JSArray_legacy_Object));
if (value instanceof D.SassString0)
return P.callConstructor($.$get$stringConstructor(), H.setRuntimeTypeInfo([null, value], type$.JSArray_legacy_Object));
return value;
}
},
Y = {StreamCompleter: function StreamCompleter(t0, t1) {
this._stream_completer$_stream = t0;
this.$ti = t1;
}, _CompleterStream: function _CompleterStream(t0) {
this._sourceStream = this._stream_completer$_controller = null;
this.$ti = t0;
}, Modules: function Modules() {
}, Module1: function Module1() {
}, Net: function Net() {
}, Socket: function Socket() {
}, NetAddress: function NetAddress() {
}, NetServer: function NetServer() {
},
ContentBlock$: function($arguments, children, span) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
return new Y.ContentBlock(null, $arguments, span, t1, t2);
},
ContentBlock: function ContentBlock(t0, t1, t2, t3, t4) {
var _ = this;
_.name = t0;
_.$arguments = t1;
_.span = t2;
_.children = t3;
_.hasDeclarations = t4;
},
WarnRule: function WarnRule(t0, t1) {
this.expression = t0;
this.span = t1;
},
SupportsAnything: function SupportsAnything(t0, t1) {
this.contents = t0;
this.span = t1;
},
unifyComplex: function(complexes) {
var t2, unifiedBase, base, t3, t4, _i, complexesWithoutBases,
t1 = J.getInterceptor$asx(complexes);
if (t1.get$length(complexes) === 1)
return complexes;
for (t2 = t1.get$iterator(complexes), unifiedBase = null; t2.moveNext$0();) {
base = J.get$last$ax(t2.get$current(t2));
if (base instanceof X.CompoundSelector)
if (unifiedBase == null)
unifiedBase = base.components;
else
for (t3 = base.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
unifiedBase = t3[_i].unify$1(unifiedBase);
if (unifiedBase == null)
return null;
}
else
return null;
}
t1 = t1.map$1$1(complexes, new Y.unifyComplex_closure(), type$.legacy_List_legacy_ComplexSelectorComponent);
complexesWithoutBases = P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
J.add$1$ax(C.JSArray_methods.get$last(complexesWithoutBases), X.CompoundSelector$(unifiedBase));
return Y.weave(complexesWithoutBases);
},
unifyCompound: function(compound1, compound2) {
var t1, result, _i;
for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i) {
result = compound1[_i].unify$1(result);
if (result == null)
return null;
}
return X.CompoundSelector$(result);
},
unifyUniversalAndElement: function(selector1, selector2) {
var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
_s45_ = string$.must_b;
if (selector1 instanceof N.UniversalSelector) {
namespace1 = selector1.namespace;
name1 = _null;
} else if (selector1 instanceof F.TypeSelector) {
t1 = selector1.name;
namespace1 = t1.namespace;
name1 = t1.name;
} else
throw H.wrapException(P.ArgumentError$value(selector1, "selector1", _s45_));
if (selector2 instanceof N.UniversalSelector) {
namespace2 = selector2.namespace;
name2 = _null;
} else if (selector2 instanceof F.TypeSelector) {
t1 = selector2.name;
namespace2 = t1.namespace;
name2 = t1.name;
} else
throw H.wrapException(P.ArgumentError$value(selector2, "selector2", _s45_));
if (namespace1 == namespace2 || namespace2 === "*")
namespace = namespace1;
else {
if (namespace1 !== "*")
return _null;
namespace = namespace2;
}
if (name1 == name2 || name2 == null)
$name = name1;
else {
if (!(name1 == null || name1 === "*"))
return _null;
$name = name2;
}
return $name == null ? new N.UniversalSelector(namespace) : new F.TypeSelector(new D.QualifiedName($name, namespace));
},
weave: function(complexes) {
var t2, cur, t3, target, _i, parents, newPrefixes, parentPrefixes, t4, t5,
t1 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent,
prefixes = H.setRuntimeTypeInfo([J.toList$0$ax(C.JSArray_methods.get$first(complexes))], t1);
for (t2 = H.SubListIterable$(complexes, 1, null, H._arrayInstanceType(complexes)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
cur = t2.__internal$_current;
t3 = J.getInterceptor$asx(cur);
if (t3.get$isEmpty(cur))
continue;
target = t3.get$last(cur);
if (t3.get$length(cur) === 1) {
for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i)
J.add$1$ax(prefixes[_i], target);
continue;
}
parents = t3.take$1(cur, t3.get$length(cur) - 1).toList$0(0);
newPrefixes = H.setRuntimeTypeInfo([], t1);
for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i) {
parentPrefixes = Y._weaveParents(prefixes[_i], parents);
if (parentPrefixes == null)
continue;
for (t4 = parentPrefixes.get$iterator(parentPrefixes); t4.moveNext$0();) {
t5 = t4.get$current(t4);
J.add$1$ax(t5, target);
newPrefixes.push(t5);
}
}
prefixes = newPrefixes;
}
return prefixes;
},
_weaveParents: function(parents1, parents2) {
var finalCombinators, root1, root2, root, groups1, groups2, lcs, t2, choices, t3, _i, group, t4, t5, _null = null,
t1 = type$.legacy_ComplexSelectorComponent,
queue1 = P.ListQueue_ListQueue$of(parents1, t1),
queue2 = P.ListQueue_ListQueue$of(parents2, t1),
initialCombinators = Y._mergeInitialCombinators(queue1, queue2);
if (initialCombinators == null)
return _null;
finalCombinators = Y._mergeFinalCombinators(queue1, queue2, _null);
if (finalCombinators == null)
return _null;
root1 = Y._firstIfRoot(queue1);
root2 = Y._firstIfRoot(queue2);
t1 = root1 != null;
if (t1 && root2 != null) {
root = Y.unifyCompound(root1.components, root2.components);
if (root == null)
return _null;
queue1.addFirst$1(root);
queue2.addFirst$1(root);
} else if (t1)
queue2.addFirst$1(root1);
else if (root2 != null)
queue1.addFirst$1(root2);
groups1 = Y._groupSelectors(queue1);
groups2 = Y._groupSelectors(queue2);
t1 = type$.legacy_List_legacy_ComplexSelectorComponent;
lcs = B.longestCommonSubsequence(groups2, groups1, new Y._weaveParents_closure(), t1);
t2 = type$.JSArray_legacy_Iterable_legacy_ComplexSelectorComponent;
choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([initialCombinators], t2)], type$.JSArray_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent);
for (t3 = lcs.length, _i = 0; _i < lcs.length; lcs.length === t3 || (0, H.throwConcurrentModificationError)(lcs), ++_i) {
group = lcs[_i];
t4 = Y._chunks(groups1, groups2, new Y._weaveParents_closure0(group), t1);
t5 = H._arrayInstanceType(t4)._eval$1("MappedListIterable<1,Iterable*>");
choices.push(P.List_List$from(new H.MappedListIterable(t4, new Y._weaveParents_closure1(), t5), true, t5._eval$1("ListIterable.E")));
choices.push(H.setRuntimeTypeInfo([group], t2));
groups1.removeFirst$0();
groups2.removeFirst$0();
}
t2 = Y._chunks(groups1, groups2, new Y._weaveParents_closure2(), t1);
t3 = H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Iterable*>");
choices.push(P.List_List$from(new H.MappedListIterable(t2, new Y._weaveParents_closure3(), t3), true, t3._eval$1("ListIterable.E")));
C.JSArray_methods.addAll$1(choices, finalCombinators);
return J.map$1$1$ax(Y.paths(new H.WhereIterable(choices, new Y._weaveParents_closure4(), type$.WhereIterable_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent), type$.legacy_Iterable_legacy_ComplexSelectorComponent), new Y._weaveParents_closure5(), t1);
},
_firstIfRoot: function(queue) {
var first;
if (queue._collection$_head === queue._collection$_tail)
return null;
first = queue.get$first(queue);
if (first instanceof X.CompoundSelector) {
if (!Y._hasRoot(first))
return null;
queue.removeFirst$0();
return first;
} else
return null;
},
_mergeInitialCombinators: function(components1, components2) {
var t3, combinators2, lcs,
t1 = type$.JSArray_legacy_Combinator,
combinators1 = H.setRuntimeTypeInfo([], t1),
t2 = type$.legacy_Combinator;
while (true) {
if (!components1.get$isEmpty(components1)) {
t3 = components1._collection$_head;
if (t3 === components1._collection$_tail)
H.throwExpression(H.IterableElementError_noElement());
t3 = components1._collection$_table[t3] instanceof S.Combinator;
} else
t3 = false;
if (!t3)
break;
combinators1.push(t2._as(components1.removeFirst$0()));
}
combinators2 = H.setRuntimeTypeInfo([], t1);
while (true) {
if (!components2.get$isEmpty(components2)) {
t1 = components2._collection$_head;
if (t1 === components2._collection$_tail)
H.throwExpression(H.IterableElementError_noElement());
t1 = components2._collection$_table[t1] instanceof S.Combinator;
} else
t1 = false;
if (!t1)
break;
combinators2.push(t2._as(components2.removeFirst$0()));
}
lcs = B.longestCommonSubsequence(combinators1, combinators2, null, t2);
if (C.C_ListEquality.equals$2(0, lcs, combinators1))
return combinators2;
if (C.C_ListEquality.equals$2(0, lcs, combinators2))
return combinators1;
return null;
},
_mergeFinalCombinators: function(components1, components2, result) {
var t1, combinators1, t2, combinators2, lcs, combinator1, combinator2, compound1, compound2, choices, unified, followingSiblingSelector, nextSiblingSelector, _null = null;
if (result == null)
result = Q.QueueList$(_null, type$.legacy_List_legacy_List_legacy_ComplexSelectorComponent);
if (components1._collection$_head === components1._collection$_tail || !(components1.get$last(components1) instanceof S.Combinator))
t1 = components2._collection$_head === components2._collection$_tail || !(components2.get$last(components2) instanceof S.Combinator);
else
t1 = false;
if (t1)
return result;
t1 = type$.JSArray_legacy_Combinator;
combinators1 = H.setRuntimeTypeInfo([], t1);
t2 = type$.legacy_Combinator;
while (true) {
if (!(!components1.get$isEmpty(components1) && components1.get$last(components1) instanceof S.Combinator))
break;
combinators1.push(t2._as(components1.removeLast$0(0)));
}
combinators2 = H.setRuntimeTypeInfo([], t1);
while (true) {
if (!(!components2.get$isEmpty(components2) && components2.get$last(components2) instanceof S.Combinator))
break;
combinators2.push(t2._as(components2.removeLast$0(0)));
}
t1 = combinators1.length;
if (t1 > 1 || combinators2.length > 1) {
lcs = B.longestCommonSubsequence(combinators1, combinators2, _null, t2);
if (C.C_ListEquality.equals$2(0, lcs, combinators1))
result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators2, type$.ReversedListIterable_legacy_Combinator), true, type$.legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
else if (C.C_ListEquality.equals$2(0, lcs, combinators2))
result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators1, type$.ReversedListIterable_legacy_Combinator), true, type$.legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
else
return _null;
return result;
}
combinator1 = t1 === 0 ? _null : C.JSArray_methods.get$first(combinators1);
combinator2 = combinators2.length === 0 ? _null : C.JSArray_methods.get$first(combinators2);
t1 = combinator1 != null;
if (t1 && combinator2 != null) {
t1 = type$.legacy_CompoundSelector;
compound1 = t1._as(components1.removeLast$0(0));
compound2 = t1._as(components2.removeLast$0(0));
t1 = combinator1 === C.Combinator_CzM;
if (t1 && combinator2 === C.Combinator_CzM) {
compound1.toString;
if (Y.compoundIsSuperselector(compound1, compound2, _null))
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, C.Combinator_CzM], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
else {
compound2.toString;
t1 = type$.JSArray_legacy_ComplexSelectorComponent;
t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent;
if (Y.compoundIsSuperselector(compound2, compound1, _null))
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM], t1)], t2));
else {
choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM, compound2, C.Combinator_CzM], t1), H.setRuntimeTypeInfo([compound2, C.Combinator_CzM, compound1, C.Combinator_CzM], t1)], t2);
unified = Y.unifyCompound(compound1.components, compound2.components);
if (unified != null)
choices.push(H.setRuntimeTypeInfo([unified, C.Combinator_CzM], t1));
result.addFirst$1(choices);
}
}
} else {
if (!(t1 && combinator2 === C.Combinator_uzg))
t2 = combinator1 === C.Combinator_uzg && combinator2 === C.Combinator_CzM;
else
t2 = true;
if (t2) {
followingSiblingSelector = t1 ? compound1 : compound2;
nextSiblingSelector = t1 ? compound2 : compound1;
followingSiblingSelector.toString;
t1 = type$.JSArray_legacy_ComplexSelectorComponent;
t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent;
if (Y.compoundIsSuperselector(followingSiblingSelector, nextSiblingSelector, _null))
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([nextSiblingSelector, C.Combinator_uzg], t1)], t2));
else {
unified = Y.unifyCompound(compound1.components, compound2.components);
t2 = H.setRuntimeTypeInfo([], t2);
t2.push(H.setRuntimeTypeInfo([followingSiblingSelector, C.Combinator_CzM, nextSiblingSelector, C.Combinator_uzg], t1));
if (unified != null)
t2.push(H.setRuntimeTypeInfo([unified, C.Combinator_uzg], t1));
result.addFirst$1(t2);
}
} else {
if (combinator1 === C.Combinator_sgq)
t2 = combinator2 === C.Combinator_uzg || combinator2 === C.Combinator_CzM;
else
t2 = false;
if (t2) {
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, combinator2], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
components1._add$1(compound1);
components1._add$1(C.Combinator_sgq);
} else {
if (combinator2 === C.Combinator_sgq)
t1 = combinator1 === C.Combinator_uzg || t1;
else
t1 = false;
if (t1) {
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, combinator1], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
components2._add$1(compound2);
components2._add$1(C.Combinator_sgq);
} else if (combinator1 === combinator2) {
unified = Y.unifyCompound(compound1.components, compound2.components);
if (unified == null)
return _null;
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([unified, combinator1], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
} else
return _null;
}
}
}
return Y._mergeFinalCombinators(components1, components2, result);
} else if (t1) {
if (combinator1 === C.Combinator_sgq)
if (!components2.get$isEmpty(components2)) {
t1 = type$.legacy_CompoundSelector;
t2 = t1._as(components2.get$last(components2));
t1 = t1._as(components1.get$last(components1));
t2.toString;
t1 = Y.compoundIsSuperselector(t2, t1, _null);
} else
t1 = false;
else
t1 = false;
if (t1)
components2.removeLast$0(0);
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components1.removeLast$0(0), combinator1], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
return Y._mergeFinalCombinators(components1, components2, result);
} else {
if (combinator2 === C.Combinator_sgq)
if (!components1.get$isEmpty(components1)) {
t1 = type$.legacy_CompoundSelector;
t2 = t1._as(components1.get$last(components1));
t1 = t1._as(components2.get$last(components2));
t2.toString;
t1 = Y.compoundIsSuperselector(t2, t1, _null);
} else
t1 = false;
else
t1 = false;
if (t1)
components1.removeLast$0(0);
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components2.removeLast$0(0), combinator2], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
return Y._mergeFinalCombinators(components1, components2, result);
}
},
_mustUnify: function(complex1, complex2) {
var t2, t3, t4,
t1 = P.LinkedHashSet_LinkedHashSet(type$.legacy_SimpleSelector);
for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) {
t3 = t2.get$current(t2);
if (t3 instanceof X.CompoundSelector)
for (t3 = C.JSArray_methods.get$iterator(t3.components), t4 = new H.WhereIterator(t3, Y.functions___isUnique$closure()); t4.moveNext$0();)
t1.add$1(0, t3.get$current(t3));
}
if (t1._collection$_length === 0)
return false;
return J.any$1$ax(complex2, new Y._mustUnify_closure(t1));
},
_isUnique: function(simple) {
var t1;
if (!(simple instanceof N.IDSelector))
t1 = simple instanceof D.PseudoSelector && !simple.isClass;
else
t1 = true;
return t1;
},
_chunks: function(queue1, queue2, done, $T) {
var chunk2, t2, t3, _i,
t1 = $T._eval$1("JSArray<0*>"),
chunk1 = H.setRuntimeTypeInfo([], t1);
for (; !done.call$1(queue1);)
chunk1.push(queue1.removeFirst$0());
chunk2 = H.setRuntimeTypeInfo([], t1);
for (; !done.call$1(queue2);)
chunk2.push(queue2.removeFirst$0());
t2 = chunk1.length === 0;
if (t2 && chunk2.length === 0)
return H.setRuntimeTypeInfo([], $T._eval$1("JSArray*>"));
if (t2)
return H.setRuntimeTypeInfo([chunk2], $T._eval$1("JSArray*>"));
if (chunk2.length === 0)
return H.setRuntimeTypeInfo([chunk1], $T._eval$1("JSArray*>"));
t2 = H.setRuntimeTypeInfo([], t1);
for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
t2.push(chunk1[_i]);
for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
t2.push(chunk2[_i]);
t1 = H.setRuntimeTypeInfo([], t1);
for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
t1.push(chunk2[_i]);
for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
t1.push(chunk1[_i]);
return H.setRuntimeTypeInfo([t2, t1], $T._eval$1("JSArray*>"));
},
paths: function(choices, $T) {
return J.fold$2$ax(choices, H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"))], $T._eval$1("JSArray*>")), new Y.paths_closure($T));
},
_groupSelectors: function(complex) {
var t1, group, cur, t2,
groups = Q.QueueList$(null, type$.legacy_List_legacy_ComplexSelectorComponent),
iterator = P._ListQueueIterator$(complex);
if (!iterator.moveNext$0())
return groups;
t1 = type$.JSArray_legacy_ComplexSelectorComponent;
group = H.setRuntimeTypeInfo([iterator.get$current(iterator)], t1);
groups._queue_list$_add$1(group);
for (; iterator.moveNext$0();) {
if (!(C.JSArray_methods.get$last(group) instanceof S.Combinator)) {
cur = iterator._collection$_current;
t2 = cur instanceof S.Combinator;
} else
t2 = true;
cur = iterator._collection$_current;
if (t2)
group.push(cur);
else {
group = H.setRuntimeTypeInfo([cur], t1);
groups._queue_list$_add$1(group);
}
}
return groups;
},
_hasRoot: function(compound) {
return C.JSArray_methods.any$1(compound.components, new Y._hasRoot_closure());
},
listIsSuperselector: function(list1, list2) {
return C.JSArray_methods.every$1(list2, new Y.listIsSuperselector_closure(list1));
},
complexIsParentSuperselector: function(complex1, complex2) {
var t2, base, t3, t4,
t1 = J.getInterceptor$ax(complex1);
if (t1.get$first(complex1) instanceof S.Combinator)
return false;
t2 = J.getInterceptor$ax(complex2);
if (t2.get$first(complex2) instanceof S.Combinator)
return false;
if (t1.get$length(complex1) > t2.get$length(complex2))
return false;
base = X.CompoundSelector$(H.setRuntimeTypeInfo([new N.PlaceholderSelector("")], type$.JSArray_legacy_SimpleSelector));
t3 = type$.JSArray_legacy_ComplexSelectorComponent;
t4 = H.setRuntimeTypeInfo([], t3);
for (t1 = t1.get$iterator(complex1); t1.moveNext$0();)
t4.push(t1.get$current(t1));
t4.push(base);
t1 = H.setRuntimeTypeInfo([], t3);
for (t2 = t2.get$iterator(complex2); t2.moveNext$0();)
t1.push(t2.get$current(t2));
t1.push(base);
return Y.complexIsSuperselector(t4, t1);
},
complexIsSuperselector: function(complex1, complex2) {
var t1, t2, t3, i1, i2, remaining1, remaining2, t4, t5, t6, t7, afterSuperselector, afterSuperselector0, compound2, i10, combinator1, combinator2;
if (C.JSArray_methods.get$last(complex1) instanceof S.Combinator)
return false;
if (C.JSArray_methods.get$last(complex2) instanceof S.Combinator)
return false;
for (t1 = H._arrayInstanceType(complex2), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), t3 = type$.legacy_CompoundSelector, i1 = 0, i2 = 0; true;) {
remaining1 = complex1.length - i1;
remaining2 = complex2.length - i2;
if (remaining1 === 0 || remaining2 === 0)
return false;
if (remaining1 > remaining2)
return false;
t4 = complex1[i1];
if (t4 instanceof S.Combinator)
return false;
if (complex2[i2] instanceof S.Combinator)
return false;
t3._as(t4);
if (remaining1 === 1) {
t5 = t3._as(C.JSArray_methods.get$last(complex2));
t6 = complex2.length - 1;
t7 = new H.SubListIterable(complex2, 0, t6, t1);
t7.SubListIterable$3(complex2, 0, t6, t2);
return Y.compoundIsSuperselector(t4, t5, t7.skip$1(0, i2));
}
afterSuperselector = i2 + 1;
for (afterSuperselector0 = afterSuperselector; afterSuperselector0 < complex2.length; ++afterSuperselector0) {
t5 = afterSuperselector0 - 1;
compound2 = complex2[t5];
if (compound2 instanceof X.CompoundSelector) {
t6 = new H.SubListIterable(complex2, 0, t5, t1);
t6.SubListIterable$3(complex2, 0, t5, t2);
if (Y.compoundIsSuperselector(t4, compound2, t6.skip$1(0, afterSuperselector)))
break;
}
}
if (afterSuperselector0 === complex2.length)
return false;
i10 = i1 + 1;
combinator1 = complex1[i10];
combinator2 = complex2[afterSuperselector0];
if (combinator1 instanceof S.Combinator) {
if (!(combinator2 instanceof S.Combinator))
return false;
if (combinator1 === C.Combinator_CzM) {
if (combinator2 === C.Combinator_sgq)
return false;
} else if (combinator2 !== combinator1)
return false;
if (remaining1 === 3 && remaining2 > 3)
return false;
i1 += 2;
i2 = afterSuperselector0 + 1;
} else {
if (combinator2 instanceof S.Combinator) {
if (combinator2 !== C.Combinator_sgq)
return false;
i2 = afterSuperselector0 + 1;
} else
i2 = afterSuperselector0;
i1 = i10;
}
}
},
compoundIsSuperselector: function(compound1, compound2, parents) {
var t1, t2, _i, simple1, simple2;
for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
simple1 = t1[_i];
if (simple1 instanceof D.PseudoSelector && simple1.selector != null) {
if (!Y._selectorPseudoIsSuperselector(simple1, compound2, parents))
return false;
} else if (!Y._simpleIsSuperselectorOfCompound(simple1, compound2))
return false;
}
for (t1 = compound2.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
simple2 = t1[_i];
if (simple2 instanceof D.PseudoSelector && !simple2.isClass && simple2.selector == null && !Y._simpleIsSuperselectorOfCompound(simple2, compound1))
return false;
}
return true;
},
_simpleIsSuperselectorOfCompound: function(simple, compound) {
return C.JSArray_methods.any$1(compound.components, new Y._simpleIsSuperselectorOfCompound_closure(simple));
},
_selectorPseudoIsSuperselector: function(pseudo1, compound2, parents) {
switch (pseudo1.normalizedName) {
case "matches":
case "any":
return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure(pseudo1)) || C.JSArray_methods.any$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure0(parents, compound2));
case "has":
case "host":
case "host-context":
return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure1(pseudo1));
case "slotted":
return Y._selectorPseudosNamed(compound2, pseudo1.name, false).any$1(0, new Y._selectorPseudoIsSuperselector_closure2(pseudo1));
case "not":
return C.JSArray_methods.every$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure3(compound2, pseudo1));
case "current":
return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure4(pseudo1));
case "nth-child":
case "nth-last-child":
return C.JSArray_methods.any$1(compound2.components, new Y._selectorPseudoIsSuperselector_closure5(pseudo1));
default:
throw H.wrapException("unreachable");
}
},
_selectorPseudosNamed: function(compound, $name, isClass) {
var t1 = type$.WhereTypeIterable_legacy_PseudoSelector;
return new H.WhereIterable(new H.WhereTypeIterable(compound.components, t1), new Y._selectorPseudosNamed_closure(isClass, $name), t1._eval$1("WhereIterable"));
},
unifyComplex_closure: function unifyComplex_closure() {
},
_weaveParents_closure: function _weaveParents_closure() {
},
_weaveParents_closure0: function _weaveParents_closure0(t0) {
this.group = t0;
},
_weaveParents_closure1: function _weaveParents_closure1() {
},
_weaveParents__closure1: function _weaveParents__closure1() {
},
_weaveParents_closure2: function _weaveParents_closure2() {
},
_weaveParents_closure3: function _weaveParents_closure3() {
},
_weaveParents__closure0: function _weaveParents__closure0() {
},
_weaveParents_closure4: function _weaveParents_closure4() {
},
_weaveParents_closure5: function _weaveParents_closure5() {
},
_weaveParents__closure: function _weaveParents__closure() {
},
_mustUnify_closure: function _mustUnify_closure(t0) {
this.uniqueSelectors = t0;
},
_mustUnify__closure: function _mustUnify__closure(t0) {
this.uniqueSelectors = t0;
},
paths_closure: function paths_closure(t0) {
this.T = t0;
},
paths__closure: function paths__closure(t0, t1) {
this.paths = t0;
this.T = t1;
},
paths___closure: function paths___closure(t0, t1) {
this.option = t0;
this.T = t1;
},
_hasRoot_closure: function _hasRoot_closure() {
},
listIsSuperselector_closure: function listIsSuperselector_closure(t0) {
this.list1 = t0;
},
listIsSuperselector__closure: function listIsSuperselector__closure(t0) {
this.complex1 = t0;
},
_simpleIsSuperselectorOfCompound_closure: function _simpleIsSuperselectorOfCompound_closure(t0) {
this.simple = t0;
},
_simpleIsSuperselectorOfCompound__closure: function _simpleIsSuperselectorOfCompound__closure(t0) {
this.simple = t0;
},
_selectorPseudoIsSuperselector_closure: function _selectorPseudoIsSuperselector_closure(t0) {
this.pseudo1 = t0;
},
_selectorPseudoIsSuperselector_closure0: function _selectorPseudoIsSuperselector_closure0(t0, t1) {
this.parents = t0;
this.compound2 = t1;
},
_selectorPseudoIsSuperselector_closure1: function _selectorPseudoIsSuperselector_closure1(t0) {
this.pseudo1 = t0;
},
_selectorPseudoIsSuperselector_closure2: function _selectorPseudoIsSuperselector_closure2(t0) {
this.pseudo1 = t0;
},
_selectorPseudoIsSuperselector_closure3: function _selectorPseudoIsSuperselector_closure3(t0, t1) {
this.compound2 = t0;
this.pseudo1 = t1;
},
_selectorPseudoIsSuperselector__closure: function _selectorPseudoIsSuperselector__closure(t0, t1) {
this.complex = t0;
this.pseudo1 = t1;
},
_selectorPseudoIsSuperselector___closure: function _selectorPseudoIsSuperselector___closure(t0) {
this.simple2 = t0;
},
_selectorPseudoIsSuperselector___closure0: function _selectorPseudoIsSuperselector___closure0(t0) {
this.simple2 = t0;
},
_selectorPseudoIsSuperselector_closure4: function _selectorPseudoIsSuperselector_closure4(t0) {
this.pseudo1 = t0;
},
_selectorPseudoIsSuperselector_closure5: function _selectorPseudoIsSuperselector_closure5(t0) {
this.pseudo1 = t0;
},
_selectorPseudosNamed_closure: function _selectorPseudosNamed_closure(t0, t1) {
this.isClass = t0;
this.name = t1;
},
closure: function closure() {
},
Chokidar: function Chokidar() {
},
ChokidarOptions: function ChokidarOptions() {
},
ChokidarWatcher: function ChokidarWatcher() {
},
SourceFile$fromString: function(text, url) {
var t1, t2, t3;
text.toString;
t1 = new H.CodeUnits(text);
t2 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int);
t3 = typeof url == "string" ? P.Uri_parse(url) : type$.legacy_Uri._as(url);
t2 = new Y.SourceFile(t3, t2, new Uint32Array(H._ensureNativeList(t1.toList$0(t1))));
t2.SourceFile$decoded$2$url(t1, url);
return t2;
},
SourceFile$decoded: function(decodedChars, url) {
var t1 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int),
t2 = typeof url == "string" ? P.Uri_parse(url) : type$.legacy_Uri._as(url);
t1 = new Y.SourceFile(t2, t1, new Uint32Array(H._ensureNativeList(J.toList$0$ax(decodedChars))));
t1.SourceFile$decoded$2$url(decodedChars, url);
return t1;
},
FileLocation$_: function(file, offset) {
if (offset < 0)
H.throwExpression(P.RangeError$("Offset may not be negative, was " + offset + "."));
else if (offset > file._decodedChars.length)
H.throwExpression(P.RangeError$("Offset " + offset + string$.x20must_ + file.get$length(file) + "."));
return new Y.FileLocation(file, offset);
},
_FileSpan$: function(file, _start, _end) {
if (_end < _start)
H.throwExpression(P.ArgumentError$("End " + _end + " must come after start " + _start + "."));
else if (_end > file._decodedChars.length)
H.throwExpression(P.RangeError$("End " + _end + string$.x20must_ + file.get$length(file) + "."));
else if (_start < 0)
H.throwExpression(P.RangeError$("Start may not be negative, was " + _start + "."));
return new Y._FileSpan(file, _start, _end);
},
SourceFile: function SourceFile(t0, t1, t2) {
var _ = this;
_.url = t0;
_._lineStarts = t1;
_._decodedChars = t2;
_._cachedLine = null;
},
FileLocation: function FileLocation(t0, t1) {
this.file = t0;
this.offset = t1;
},
_FileSpan: function _FileSpan(t0, t1, t2) {
this.file = t0;
this._file$_start = t1;
this._end = t2;
},
SourceSpanMixin: function SourceSpanMixin() {
},
Trace_Trace$from: function(trace) {
if (trace == null)
throw H.wrapException(P.ArgumentError$("Cannot create a Trace from null."));
if (type$.legacy_Trace._is(trace))
return trace;
if (trace instanceof U.Chain)
return trace.toTrace$0();
return new T.LazyTrace(new Y.Trace_Trace$from_closure(trace));
},
Trace_Trace$parse: function(trace) {
var error, t1, exception;
try {
if (trace.length === 0) {
t1 = P.List_List$unmodifiable(H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame), type$.legacy_Frame);
return new Y.Trace(t1, new P._StringStackTrace(null));
}
if (C.JSString_methods.contains$1(trace, $.$get$_v8Trace())) {
t1 = Y.Trace$parseV8(trace);
return t1;
}
if (C.JSString_methods.contains$1(trace, "\tat ")) {
t1 = Y.Trace$parseJSCore(trace);
return t1;
}
if (C.JSString_methods.contains$1(trace, $.$get$_firefoxSafariTrace()) || C.JSString_methods.contains$1(trace, $.$get$_firefoxEvalTrace())) {
t1 = Y.Trace$parseFirefox(trace);
return t1;
}
if (C.JSString_methods.contains$1(trace, string$.x3d_____)) {
t1 = U.Chain_Chain$parse(trace).toTrace$0();
return t1;
}
if (C.JSString_methods.contains$1(trace, $.$get$_friendlyTrace())) {
t1 = Y.Trace$parseFriendly(trace);
return t1;
}
t1 = P.List_List$unmodifiable(Y.Trace__parseVM(trace), type$.legacy_Frame);
return new Y.Trace(t1, new P._StringStackTrace(trace));
} catch (exception) {
t1 = H.unwrapException(exception);
if (type$.legacy_FormatException._is(t1)) {
error = t1;
throw H.wrapException(P.FormatException$(H.S(J.get$message$x(error)) + "\nStack trace:\n" + H.S(trace), null, null));
} else
throw exception;
}
},
Trace__parseVM: function(trace) {
var $frames,
t1 = J.trim$0$s(trace),
t2 = $.$get$vmChainGap(),
t3 = type$.WhereIterable_String,
lines = new H.WhereIterable(H.setRuntimeTypeInfo(H.stringReplaceAllUnchecked(t1, t2, "").split("\n"), type$.JSArray_String), new Y.Trace__parseVM_closure(), t3);
if (!lines.get$iterator(lines).moveNext$0())
return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
t1 = H.TakeIterable_TakeIterable(lines, lines.get$length(lines) - 1, t3._eval$1("Iterable.E"));
t1 = H.MappedIterable_MappedIterable(t1, new Y.Trace__parseVM_closure0(), H._instanceType(t1)._eval$1("Iterable.E"), type$.legacy_Frame);
$frames = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
if (!J.endsWith$1$s(lines.get$last(lines), ".da"))
C.JSArray_methods.add$1($frames, A.Frame_Frame$parseVM(lines.get$last(lines)));
return $frames;
},
Trace$parseV8: function(trace) {
var t1 = H.SubListIterable$(H.setRuntimeTypeInfo(trace.split("\n"), type$.JSArray_String), 1, null, type$.String).super$Iterable$skipWhile(0, new Y.Trace$parseV8_closure()),
t2 = type$.legacy_Frame;
return new Y.Trace(P.List_List$unmodifiable(H.MappedIterable_MappedIterable(t1, new Y.Trace$parseV8_closure0(), t1.$ti._eval$1("Iterable.E"), t2), t2), new P._StringStackTrace(trace));
},
Trace$parseJSCore: function(trace) {
return new Y.Trace(P.List_List$unmodifiable(new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(trace.split("\n"), type$.JSArray_String), new Y.Trace$parseJSCore_closure(), type$.WhereIterable_String), new Y.Trace$parseJSCore_closure0(), type$.MappedIterable_of_String_and_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(trace));
},
Trace$parseFirefox: function(trace) {
return new Y.Trace(P.List_List$unmodifiable(new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(C.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new Y.Trace$parseFirefox_closure(), type$.WhereIterable_String), new Y.Trace$parseFirefox_closure0(), type$.MappedIterable_of_String_and_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(trace));
},
Trace$parseFriendly: function(trace) {
var t1 = trace.length === 0 ? H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame) : new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(C.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new Y.Trace$parseFriendly_closure(), type$.WhereIterable_String), new Y.Trace$parseFriendly_closure0(), type$.MappedIterable_of_String_and_legacy_Frame);
return new Y.Trace(P.List_List$unmodifiable(t1, type$.legacy_Frame), new P._StringStackTrace(trace));
},
Trace: function Trace(t0, t1) {
this.frames = t0;
this.original = t1;
},
Trace_Trace$from_closure: function Trace_Trace$from_closure(t0) {
this.trace = t0;
},
Trace__parseVM_closure: function Trace__parseVM_closure() {
},
Trace__parseVM_closure0: function Trace__parseVM_closure0() {
},
Trace$parseV8_closure: function Trace$parseV8_closure() {
},
Trace$parseV8_closure0: function Trace$parseV8_closure0() {
},
Trace$parseJSCore_closure: function Trace$parseJSCore_closure() {
},
Trace$parseJSCore_closure0: function Trace$parseJSCore_closure0() {
},
Trace$parseFirefox_closure: function Trace$parseFirefox_closure() {
},
Trace$parseFirefox_closure0: function Trace$parseFirefox_closure0() {
},
Trace$parseFriendly_closure: function Trace$parseFriendly_closure() {
},
Trace$parseFriendly_closure0: function Trace$parseFriendly_closure0() {
},
Trace_terse_closure: function Trace_terse_closure() {
},
Trace_foldFrames_closure: function Trace_foldFrames_closure(t0) {
this.oldPredicate = t0;
},
Trace_foldFrames_closure0: function Trace_foldFrames_closure0(t0) {
this._box_0 = t0;
},
Trace_toString_closure0: function Trace_toString_closure0() {
},
Trace_toString_closure: function Trace_toString_closure(t0) {
this.longest = t0;
},
SupportsAnything0: function SupportsAnything0(t0, t1) {
this.contents = t0;
this.span = t1;
},
Chokidar0: function Chokidar0() {
},
ChokidarOptions0: function ChokidarOptions0() {
},
ChokidarWatcher0: function ChokidarWatcher0() {
},
ContentBlock$0: function($arguments, children, span) {
var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
return new Y.ContentBlock0(null, $arguments, span, t1, t2);
},
ContentBlock0: function ContentBlock0(t0, t1, t2, t3, t4) {
var _ = this;
_.name = t0;
_.$arguments = t1;
_.span = t2;
_.children = t3;
_.hasDeclarations = t4;
},
unifyComplex0: function(complexes) {
var t2, unifiedBase, base, t3, t4, _i, complexesWithoutBases,
t1 = J.getInterceptor$asx(complexes);
if (t1.get$length(complexes) === 1)
return complexes;
for (t2 = t1.get$iterator(complexes), unifiedBase = null; t2.moveNext$0();) {
base = J.get$last$ax(t2.get$current(t2));
if (base instanceof X.CompoundSelector0)
if (unifiedBase == null)
unifiedBase = base.components;
else
for (t3 = base.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
unifiedBase = t3[_i].unify$1(unifiedBase);
if (unifiedBase == null)
return null;
}
else
return null;
}
t1 = t1.map$1$1(complexes, new Y.unifyComplex_closure0(), type$.legacy_List_legacy_ComplexSelectorComponent_2);
complexesWithoutBases = P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
J.add$1$ax(C.JSArray_methods.get$last(complexesWithoutBases), X.CompoundSelector$0(unifiedBase));
return Y.weave0(complexesWithoutBases);
},
unifyCompound0: function(compound1, compound2) {
var t1, result, _i;
for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i) {
result = compound1[_i].unify$1(result);
if (result == null)
return null;
}
return X.CompoundSelector$0(result);
},
unifyUniversalAndElement0: function(selector1, selector2) {
var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
_s45_ = string$.must_b;
if (selector1 instanceof N.UniversalSelector0) {
namespace1 = selector1.namespace;
name1 = _null;
} else if (selector1 instanceof F.TypeSelector0) {
t1 = selector1.name;
namespace1 = t1.namespace;
name1 = t1.name;
} else
throw H.wrapException(P.ArgumentError$value(selector1, "selector1", _s45_));
if (selector2 instanceof N.UniversalSelector0) {
namespace2 = selector2.namespace;
name2 = _null;
} else if (selector2 instanceof F.TypeSelector0) {
t1 = selector2.name;
namespace2 = t1.namespace;
name2 = t1.name;
} else
throw H.wrapException(P.ArgumentError$value(selector2, "selector2", _s45_));
if (namespace1 == namespace2 || namespace2 === "*")
namespace = namespace1;
else {
if (namespace1 !== "*")
return _null;
namespace = namespace2;
}
if (name1 == name2 || name2 == null)
$name = name1;
else {
if (!(name1 == null || name1 === "*"))
return _null;
$name = name2;
}
return $name == null ? new N.UniversalSelector0(namespace) : new F.TypeSelector0(new D.QualifiedName0($name, namespace));
},
weave0: function(complexes) {
var t2, cur, t3, target, _i, parents, newPrefixes, parentPrefixes, t4, t5,
t1 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2,
prefixes = H.setRuntimeTypeInfo([J.toList$0$ax(C.JSArray_methods.get$first(complexes))], t1);
for (t2 = H.SubListIterable$(complexes, 1, null, H._arrayInstanceType(complexes)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
cur = t2.__internal$_current;
t3 = J.getInterceptor$asx(cur);
if (t3.get$isEmpty(cur))
continue;
target = t3.get$last(cur);
if (t3.get$length(cur) === 1) {
for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i)
J.add$1$ax(prefixes[_i], target);
continue;
}
parents = t3.take$1(cur, t3.get$length(cur) - 1).toList$0(0);
newPrefixes = H.setRuntimeTypeInfo([], t1);
for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i) {
parentPrefixes = Y._weaveParents0(prefixes[_i], parents);
if (parentPrefixes == null)
continue;
for (t4 = parentPrefixes.get$iterator(parentPrefixes); t4.moveNext$0();) {
t5 = t4.get$current(t4);
J.add$1$ax(t5, target);
newPrefixes.push(t5);
}
}
prefixes = newPrefixes;
}
return prefixes;
},
_weaveParents0: function(parents1, parents2) {
var finalCombinators, root1, root2, root, groups1, groups2, lcs, t2, choices, t3, _i, group, t4, t5, _null = null,
t1 = type$.legacy_ComplexSelectorComponent_2,
queue1 = P.ListQueue_ListQueue$of(parents1, t1),
queue2 = P.ListQueue_ListQueue$of(parents2, t1),
initialCombinators = Y._mergeInitialCombinators0(queue1, queue2);
if (initialCombinators == null)
return _null;
finalCombinators = Y._mergeFinalCombinators0(queue1, queue2, _null);
if (finalCombinators == null)
return _null;
root1 = Y._firstIfRoot0(queue1);
root2 = Y._firstIfRoot0(queue2);
t1 = root1 != null;
if (t1 && root2 != null) {
root = Y.unifyCompound0(root1.components, root2.components);
if (root == null)
return _null;
queue1.addFirst$1(root);
queue2.addFirst$1(root);
} else if (t1)
queue2.addFirst$1(root1);
else if (root2 != null)
queue1.addFirst$1(root2);
groups1 = Y._groupSelectors0(queue1);
groups2 = Y._groupSelectors0(queue2);
t1 = type$.legacy_List_legacy_ComplexSelectorComponent_2;
lcs = B.longestCommonSubsequence0(groups2, groups1, new Y._weaveParents_closure6(), t1);
t2 = type$.JSArray_legacy_Iterable_legacy_ComplexSelectorComponent_2;
choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([initialCombinators], t2)], type$.JSArray_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent_2);
for (t3 = lcs.length, _i = 0; _i < lcs.length; lcs.length === t3 || (0, H.throwConcurrentModificationError)(lcs), ++_i) {
group = lcs[_i];
t4 = Y._chunks0(groups1, groups2, new Y._weaveParents_closure7(group), t1);
t5 = H._arrayInstanceType(t4)._eval$1("MappedListIterable<1,Iterable*>");
choices.push(P.List_List$from(new H.MappedListIterable(t4, new Y._weaveParents_closure8(), t5), true, t5._eval$1("ListIterable.E")));
choices.push(H.setRuntimeTypeInfo([group], t2));
groups1.removeFirst$0();
groups2.removeFirst$0();
}
t2 = Y._chunks0(groups1, groups2, new Y._weaveParents_closure9(), t1);
t3 = H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Iterable*>");
choices.push(P.List_List$from(new H.MappedListIterable(t2, new Y._weaveParents_closure10(), t3), true, t3._eval$1("ListIterable.E")));
C.JSArray_methods.addAll$1(choices, finalCombinators);
return J.map$1$1$ax(Y.paths0(new H.WhereIterable(choices, new Y._weaveParents_closure11(), type$.WhereIterable_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent_2), type$.legacy_Iterable_legacy_ComplexSelectorComponent_2), new Y._weaveParents_closure12(), t1);
},
_firstIfRoot0: function(queue) {
var first;
if (queue._collection$_head === queue._collection$_tail)
return null;
first = queue.get$first(queue);
if (first instanceof X.CompoundSelector0) {
if (!Y._hasRoot0(first))
return null;
queue.removeFirst$0();
return first;
} else
return null;
},
_mergeInitialCombinators0: function(components1, components2) {
var t3, combinators2, lcs,
t1 = type$.JSArray_legacy_Combinator_2,
combinators1 = H.setRuntimeTypeInfo([], t1),
t2 = type$.legacy_Combinator_2;
while (true) {
if (!components1.get$isEmpty(components1)) {
t3 = components1._collection$_head;
if (t3 === components1._collection$_tail)
H.throwExpression(H.IterableElementError_noElement());
t3 = components1._collection$_table[t3] instanceof S.Combinator0;
} else
t3 = false;
if (!t3)
break;
combinators1.push(t2._as(components1.removeFirst$0()));
}
combinators2 = H.setRuntimeTypeInfo([], t1);
while (true) {
if (!components2.get$isEmpty(components2)) {
t1 = components2._collection$_head;
if (t1 === components2._collection$_tail)
H.throwExpression(H.IterableElementError_noElement());
t1 = components2._collection$_table[t1] instanceof S.Combinator0;
} else
t1 = false;
if (!t1)
break;
combinators2.push(t2._as(components2.removeFirst$0()));
}
lcs = B.longestCommonSubsequence0(combinators1, combinators2, null, t2);
if (C.C_ListEquality.equals$2(0, lcs, combinators1))
return combinators2;
if (C.C_ListEquality.equals$2(0, lcs, combinators2))
return combinators1;
return null;
},
_mergeFinalCombinators0: function(components1, components2, result) {
var t1, combinators1, t2, combinators2, lcs, combinator1, combinator2, compound1, compound2, choices, unified, followingSiblingSelector, nextSiblingSelector, _null = null;
if (result == null)
result = Q.QueueList$(_null, type$.legacy_List_legacy_List_legacy_ComplexSelectorComponent_2);
if (components1._collection$_head === components1._collection$_tail || !(components1.get$last(components1) instanceof S.Combinator0))
t1 = components2._collection$_head === components2._collection$_tail || !(components2.get$last(components2) instanceof S.Combinator0);
else
t1 = false;
if (t1)
return result;
t1 = type$.JSArray_legacy_Combinator_2;
combinators1 = H.setRuntimeTypeInfo([], t1);
t2 = type$.legacy_Combinator_2;
while (true) {
if (!(!components1.get$isEmpty(components1) && components1.get$last(components1) instanceof S.Combinator0))
break;
combinators1.push(t2._as(components1.removeLast$0(0)));
}
combinators2 = H.setRuntimeTypeInfo([], t1);
while (true) {
if (!(!components2.get$isEmpty(components2) && components2.get$last(components2) instanceof S.Combinator0))
break;
combinators2.push(t2._as(components2.removeLast$0(0)));
}
t1 = combinators1.length;
if (t1 > 1 || combinators2.length > 1) {
lcs = B.longestCommonSubsequence0(combinators1, combinators2, _null, t2);
if (C.C_ListEquality.equals$2(0, lcs, combinators1))
result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators2, type$.ReversedListIterable_legacy_Combinator_2), true, type$.legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
else if (C.C_ListEquality.equals$2(0, lcs, combinators2))
result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators1, type$.ReversedListIterable_legacy_Combinator_2), true, type$.legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
else
return _null;
return result;
}
combinator1 = t1 === 0 ? _null : C.JSArray_methods.get$first(combinators1);
combinator2 = combinators2.length === 0 ? _null : C.JSArray_methods.get$first(combinators2);
t1 = combinator1 != null;
if (t1 && combinator2 != null) {
t1 = type$.legacy_CompoundSelector_2;
compound1 = t1._as(components1.removeLast$0(0));
compound2 = t1._as(components2.removeLast$0(0));
t1 = combinator1 === C.Combinator_CzM0;
if (t1 && combinator2 === C.Combinator_CzM0) {
compound1.toString;
if (Y.compoundIsSuperselector0(compound1, compound2, _null))
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, C.Combinator_CzM0], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
else {
compound2.toString;
t1 = type$.JSArray_legacy_ComplexSelectorComponent_2;
t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2;
if (Y.compoundIsSuperselector0(compound2, compound1, _null))
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM0], t1)], t2));
else {
choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM0, compound2, C.Combinator_CzM0], t1), H.setRuntimeTypeInfo([compound2, C.Combinator_CzM0, compound1, C.Combinator_CzM0], t1)], t2);
unified = Y.unifyCompound0(compound1.components, compound2.components);
if (unified != null)
choices.push(H.setRuntimeTypeInfo([unified, C.Combinator_CzM0], t1));
result.addFirst$1(choices);
}
}
} else {
if (!(t1 && combinator2 === C.Combinator_uzg0))
t2 = combinator1 === C.Combinator_uzg0 && combinator2 === C.Combinator_CzM0;
else
t2 = true;
if (t2) {
followingSiblingSelector = t1 ? compound1 : compound2;
nextSiblingSelector = t1 ? compound2 : compound1;
followingSiblingSelector.toString;
t1 = type$.JSArray_legacy_ComplexSelectorComponent_2;
t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2;
if (Y.compoundIsSuperselector0(followingSiblingSelector, nextSiblingSelector, _null))
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([nextSiblingSelector, C.Combinator_uzg0], t1)], t2));
else {
unified = Y.unifyCompound0(compound1.components, compound2.components);
t2 = H.setRuntimeTypeInfo([], t2);
t2.push(H.setRuntimeTypeInfo([followingSiblingSelector, C.Combinator_CzM0, nextSiblingSelector, C.Combinator_uzg0], t1));
if (unified != null)
t2.push(H.setRuntimeTypeInfo([unified, C.Combinator_uzg0], t1));
result.addFirst$1(t2);
}
} else {
if (combinator1 === C.Combinator_sgq0)
t2 = combinator2 === C.Combinator_uzg0 || combinator2 === C.Combinator_CzM0;
else
t2 = false;
if (t2) {
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, combinator2], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
components1._add$1(compound1);
components1._add$1(C.Combinator_sgq0);
} else {
if (combinator2 === C.Combinator_sgq0)
t1 = combinator1 === C.Combinator_uzg0 || t1;
else
t1 = false;
if (t1) {
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, combinator1], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
components2._add$1(compound2);
components2._add$1(C.Combinator_sgq0);
} else if (combinator1 === combinator2) {
unified = Y.unifyCompound0(compound1.components, compound2.components);
if (unified == null)
return _null;
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([unified, combinator1], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
} else
return _null;
}
}
}
return Y._mergeFinalCombinators0(components1, components2, result);
} else if (t1) {
if (combinator1 === C.Combinator_sgq0)
if (!components2.get$isEmpty(components2)) {
t1 = type$.legacy_CompoundSelector_2;
t2 = t1._as(components2.get$last(components2));
t1 = t1._as(components1.get$last(components1));
t2.toString;
t1 = Y.compoundIsSuperselector0(t2, t1, _null);
} else
t1 = false;
else
t1 = false;
if (t1)
components2.removeLast$0(0);
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components1.removeLast$0(0), combinator1], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
return Y._mergeFinalCombinators0(components1, components2, result);
} else {
if (combinator2 === C.Combinator_sgq0)
if (!components1.get$isEmpty(components1)) {
t1 = type$.legacy_CompoundSelector_2;
t2 = t1._as(components1.get$last(components1));
t1 = t1._as(components2.get$last(components2));
t2.toString;
t1 = Y.compoundIsSuperselector0(t2, t1, _null);
} else
t1 = false;
else
t1 = false;
if (t1)
components1.removeLast$0(0);
result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components2.removeLast$0(0), combinator2], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
return Y._mergeFinalCombinators0(components1, components2, result);
}
},
_mustUnify0: function(complex1, complex2) {
var t2, t3, t4,
t1 = P.LinkedHashSet_LinkedHashSet(type$.legacy_SimpleSelector_2);
for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) {
t3 = t2.get$current(t2);
if (t3 instanceof X.CompoundSelector0)
for (t3 = C.JSArray_methods.get$iterator(t3.components), t4 = new H.WhereIterator(t3, Y.functions0___isUnique$closure()); t4.moveNext$0();)
t1.add$1(0, t3.get$current(t3));
}
if (t1._collection$_length === 0)
return false;
return J.any$1$ax(complex2, new Y._mustUnify_closure0(t1));
},
_isUnique0: function(simple) {
var t1;
if (!(simple instanceof N.IDSelector0))
t1 = simple instanceof D.PseudoSelector0 && !simple.isClass;
else
t1 = true;
return t1;
},
_chunks0: function(queue1, queue2, done, $T) {
var chunk2, t2, t3, _i,
t1 = $T._eval$1("JSArray<0*>"),
chunk1 = H.setRuntimeTypeInfo([], t1);
for (; !done.call$1(queue1);)
chunk1.push(queue1.removeFirst$0());
chunk2 = H.setRuntimeTypeInfo([], t1);
for (; !done.call$1(queue2);)
chunk2.push(queue2.removeFirst$0());
t2 = chunk1.length === 0;
if (t2 && chunk2.length === 0)
return H.setRuntimeTypeInfo([], $T._eval$1("JSArray*>"));
if (t2)
return H.setRuntimeTypeInfo([chunk2], $T._eval$1("JSArray*>"));
if (chunk2.length === 0)
return H.setRuntimeTypeInfo([chunk1], $T._eval$1("JSArray*>"));
t2 = H.setRuntimeTypeInfo([], t1);
for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
t2.push(chunk1[_i]);
for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
t2.push(chunk2[_i]);
t1 = H.setRuntimeTypeInfo([], t1);
for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
t1.push(chunk2[_i]);
for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
t1.push(chunk1[_i]);
return H.setRuntimeTypeInfo([t2, t1], $T._eval$1("JSArray*>"));
},
paths0: function(choices, $T) {
return J.fold$2$ax(choices, H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"))], $T._eval$1("JSArray*>")), new Y.paths_closure0($T));
},
_groupSelectors0: function(complex) {
var t1, group, cur, t2,
groups = Q.QueueList$(null, type$.legacy_List_legacy_ComplexSelectorComponent_2),
iterator = P._ListQueueIterator$(complex);
if (!iterator.moveNext$0())
return groups;
t1 = type$.JSArray_legacy_ComplexSelectorComponent_2;
group = H.setRuntimeTypeInfo([iterator.get$current(iterator)], t1);
groups._queue_list$_add$1(group);
for (; iterator.moveNext$0();) {
if (!(C.JSArray_methods.get$last(group) instanceof S.Combinator0)) {
cur = iterator._collection$_current;
t2 = cur instanceof S.Combinator0;
} else
t2 = true;
cur = iterator._collection$_current;
if (t2)
group.push(cur);
else {
group = H.setRuntimeTypeInfo([cur], t1);
groups._queue_list$_add$1(group);
}
}
return groups;
},
_hasRoot0: function(compound) {
return C.JSArray_methods.any$1(compound.components, new Y._hasRoot_closure0());
},
listIsSuperselector0: function(list1, list2) {
return C.JSArray_methods.every$1(list2, new Y.listIsSuperselector_closure0(list1));
},
complexIsParentSuperselector0: function(complex1, complex2) {
var t2, base, t3, t4,
t1 = J.getInterceptor$ax(complex1);
if (t1.get$first(complex1) instanceof S.Combinator0)
return false;
t2 = J.getInterceptor$ax(complex2);
if (t2.get$first(complex2) instanceof S.Combinator0)
return false;
if (t1.get$length(complex1) > t2.get$length(complex2))
return false;
base = X.CompoundSelector$0(H.setRuntimeTypeInfo([new N.PlaceholderSelector0("")], type$.JSArray_legacy_SimpleSelector_2));
t3 = type$.JSArray_legacy_ComplexSelectorComponent_2;
t4 = H.setRuntimeTypeInfo([], t3);
for (t1 = t1.get$iterator(complex1); t1.moveNext$0();)
t4.push(t1.get$current(t1));
t4.push(base);
t1 = H.setRuntimeTypeInfo([], t3);
for (t2 = t2.get$iterator(complex2); t2.moveNext$0();)
t1.push(t2.get$current(t2));
t1.push(base);
return Y.complexIsSuperselector0(t4, t1);
},
complexIsSuperselector0: function(complex1, complex2) {
var t1, t2, t3, i1, i2, remaining1, remaining2, t4, t5, t6, t7, afterSuperselector, afterSuperselector0, compound2, i10, combinator1, combinator2;
if (C.JSArray_methods.get$last(complex1) instanceof S.Combinator0)
return false;
if (C.JSArray_methods.get$last(complex2) instanceof S.Combinator0)
return false;
for (t1 = H._arrayInstanceType(complex2), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), t3 = type$.legacy_CompoundSelector_2, i1 = 0, i2 = 0; true;) {
remaining1 = complex1.length - i1;
remaining2 = complex2.length - i2;
if (remaining1 === 0 || remaining2 === 0)
return false;
if (remaining1 > remaining2)
return false;
t4 = complex1[i1];
if (t4 instanceof S.Combinator0)
return false;
if (complex2[i2] instanceof S.Combinator0)
return false;
t3._as(t4);
if (remaining1 === 1) {
t5 = t3._as(C.JSArray_methods.get$last(complex2));
t6 = complex2.length - 1;
t7 = new H.SubListIterable(complex2, 0, t6, t1);
t7.SubListIterable$3(complex2, 0, t6, t2);
return Y.compoundIsSuperselector0(t4, t5, t7.skip$1(0, i2));
}
afterSuperselector = i2 + 1;
for (afterSuperselector0 = afterSuperselector; afterSuperselector0 < complex2.length; ++afterSuperselector0) {
t5 = afterSuperselector0 - 1;
compound2 = complex2[t5];
if (compound2 instanceof X.CompoundSelector0) {
t6 = new H.SubListIterable(complex2, 0, t5, t1);
t6.SubListIterable$3(complex2, 0, t5, t2);
if (Y.compoundIsSuperselector0(t4, compound2, t6.skip$1(0, afterSuperselector)))
break;
}
}
if (afterSuperselector0 === complex2.length)
return false;
i10 = i1 + 1;
combinator1 = complex1[i10];
combinator2 = complex2[afterSuperselector0];
if (combinator1 instanceof S.Combinator0) {
if (!(combinator2 instanceof S.Combinator0))
return false;
if (combinator1 === C.Combinator_CzM0) {
if (combinator2 === C.Combinator_sgq0)
return false;
} else if (combinator2 !== combinator1)
return false;
if (remaining1 === 3 && remaining2 > 3)
return false;
i1 += 2;
i2 = afterSuperselector0 + 1;
} else {
if (combinator2 instanceof S.Combinator0) {
if (combinator2 !== C.Combinator_sgq0)
return false;
i2 = afterSuperselector0 + 1;
} else
i2 = afterSuperselector0;
i1 = i10;
}
}
},
compoundIsSuperselector0: function(compound1, compound2, parents) {
var t1, t2, _i, simple1, simple2;
for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
simple1 = t1[_i];
if (simple1 instanceof D.PseudoSelector0 && simple1.selector != null) {
if (!Y._selectorPseudoIsSuperselector0(simple1, compound2, parents))
return false;
} else if (!Y._simpleIsSuperselectorOfCompound0(simple1, compound2))
return false;
}
for (t1 = compound2.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
simple2 = t1[_i];
if (simple2 instanceof D.PseudoSelector0 && !simple2.isClass && simple2.selector == null && !Y._simpleIsSuperselectorOfCompound0(simple2, compound1))
return false;
}
return true;
},
_simpleIsSuperselectorOfCompound0: function(simple, compound) {
return C.JSArray_methods.any$1(compound.components, new Y._simpleIsSuperselectorOfCompound_closure0(simple));
},
_selectorPseudoIsSuperselector0: function(pseudo1, compound2, parents) {
switch (pseudo1.normalizedName) {
case "matches":
case "any":
return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure6(pseudo1)) || C.JSArray_methods.any$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure7(parents, compound2));
case "has":
case "host":
case "host-context":
return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure8(pseudo1));
case "slotted":
return Y._selectorPseudosNamed0(compound2, pseudo1.name, false).any$1(0, new Y._selectorPseudoIsSuperselector_closure9(pseudo1));
case "not":
return C.JSArray_methods.every$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure10(compound2, pseudo1));
case "current":
return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure11(pseudo1));
case "nth-child":
case "nth-last-child":
return C.JSArray_methods.any$1(compound2.components, new Y._selectorPseudoIsSuperselector_closure12(pseudo1));
default:
throw H.wrapException("unreachable");
}
},
_selectorPseudosNamed0: function(compound, $name, isClass) {
var t1 = type$.WhereTypeIterable_legacy_PseudoSelector_2;
return new H.WhereIterable(new H.WhereTypeIterable(compound.components, t1), new Y._selectorPseudosNamed_closure0(isClass, $name), t1._eval$1("WhereIterable"));
},
unifyComplex_closure0: function unifyComplex_closure0() {
},
_weaveParents_closure6: function _weaveParents_closure6() {
},
_weaveParents_closure7: function _weaveParents_closure7(t0) {
this.group = t0;
},
_weaveParents_closure8: function _weaveParents_closure8() {
},
_weaveParents__closure4: function _weaveParents__closure4() {
},
_weaveParents_closure9: function _weaveParents_closure9() {
},
_weaveParents_closure10: function _weaveParents_closure10() {
},
_weaveParents__closure3: function _weaveParents__closure3() {
},
_weaveParents_closure11: function _weaveParents_closure11() {
},
_weaveParents_closure12: function _weaveParents_closure12() {
},
_weaveParents__closure2: function _weaveParents__closure2() {
},
_mustUnify_closure0: function _mustUnify_closure0(t0) {
this.uniqueSelectors = t0;
},
_mustUnify__closure0: function _mustUnify__closure0(t0) {
this.uniqueSelectors = t0;
},
paths_closure0: function paths_closure0(t0) {
this.T = t0;
},
paths__closure0: function paths__closure0(t0, t1) {
this.paths = t0;
this.T = t1;
},
paths___closure0: function paths___closure0(t0, t1) {
this.option = t0;
this.T = t1;
},
_hasRoot_closure0: function _hasRoot_closure0() {
},
listIsSuperselector_closure0: function listIsSuperselector_closure0(t0) {
this.list1 = t0;
},
listIsSuperselector__closure0: function listIsSuperselector__closure0(t0) {
this.complex1 = t0;
},
_simpleIsSuperselectorOfCompound_closure0: function _simpleIsSuperselectorOfCompound_closure0(t0) {
this.simple = t0;
},
_simpleIsSuperselectorOfCompound__closure0: function _simpleIsSuperselectorOfCompound__closure0(t0) {
this.simple = t0;
},
_selectorPseudoIsSuperselector_closure6: function _selectorPseudoIsSuperselector_closure6(t0) {
this.pseudo1 = t0;
},
_selectorPseudoIsSuperselector_closure7: function _selectorPseudoIsSuperselector_closure7(t0, t1) {
this.parents = t0;
this.compound2 = t1;
},
_selectorPseudoIsSuperselector_closure8: function _selectorPseudoIsSuperselector_closure8(t0) {
this.pseudo1 = t0;
},
_selectorPseudoIsSuperselector_closure9: function _selectorPseudoIsSuperselector_closure9(t0) {
this.pseudo1 = t0;
},
_selectorPseudoIsSuperselector_closure10: function _selectorPseudoIsSuperselector_closure10(t0, t1) {
this.compound2 = t0;
this.pseudo1 = t1;
},
_selectorPseudoIsSuperselector__closure0: function _selectorPseudoIsSuperselector__closure0(t0, t1) {
this.complex = t0;
this.pseudo1 = t1;
},
_selectorPseudoIsSuperselector___closure1: function _selectorPseudoIsSuperselector___closure1(t0) {
this.simple2 = t0;
},
_selectorPseudoIsSuperselector___closure2: function _selectorPseudoIsSuperselector___closure2(t0) {
this.simple2 = t0;
},
_selectorPseudoIsSuperselector_closure11: function _selectorPseudoIsSuperselector_closure11(t0) {
this.pseudo1 = t0;
},
_selectorPseudoIsSuperselector_closure12: function _selectorPseudoIsSuperselector_closure12(t0) {
this.pseudo1 = t0;
},
_selectorPseudosNamed_closure0: function _selectorPseudosNamed_closure0(t0, t1) {
this.isClass = t0;
this.name = t1;
},
closure114: function closure114() {
},
WarnRule0: function WarnRule0(t0, t1) {
this.expression = t0;
this.span = t1;
},
mergeMaps: function(map1, map2, $K, $V) {
var result = P.LinkedHashMap_LinkedHashMap$from(map1, $K._eval$1("0*"), $V._eval$1("0*"));
result.addAll$1(0, map2);
return result;
},
groupBy: function(values, key, $S, $T) {
var t1, t2, _i, element, t3, t4,
map = P.LinkedHashMap_LinkedHashMap$_empty($T._eval$1("0*"), $S._eval$1("List<0*>*"));
for (t1 = values.length, t2 = $S._eval$1("JSArray<0*>"), _i = 0; _i < values.length; values.length === t1 || (0, H.throwConcurrentModificationError)(values), ++_i) {
element = values[_i];
t3 = key.call$1(element);
t4 = map.$index(0, t3);
if (t4 == null) {
t4 = H.setRuntimeTypeInfo([], t2);
map.$indexSet(0, t3, t4);
t3 = t4;
} else
t3 = t4;
t3.push(element);
}
return map;
},
minBy: function(values, orderBy, $S, $T) {
var t1, minValue, minOrderBy, cur, elementOrderBy,
compare = B.defaultCompare($T._eval$1("0*"));
for (t1 = new H.MappedIterator(J.get$iterator$ax(values.__internal$_iterable), values._f), minValue = null, minOrderBy = null; t1.moveNext$0();) {
cur = t1.__internal$_current;
elementOrderBy = orderBy.call$1(cur);
if (minOrderBy == null || compare.call$2(elementOrderBy, minOrderBy) < 0) {
minOrderBy = elementOrderBy;
minValue = cur;
}
}
return minValue;
},
repl: function(options) {
return Y.repl$body(options);
},
repl$body: function(options) {
var $async$goto = 0,
$async$completer = P._makeAsyncAwaitCompleter(type$.void),
$async$handler = 1, $async$currentError, $async$next = [], repl, logger, evaluator, line, declaration, error, stackTrace, t4, t5, t6, t7, t8, line0, toZone, exception, t1, t2, t3, repl0;
var $async$repl = P._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
t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
t2 = C.JSString_methods.$mul(" ", 3);
t3 = $.$get$alwaysValid();
repl0 = new Q.Repl(">> ", t2, t3, t1);
repl0._adapter = new B.ReplAdapter(repl0);
repl = repl0;
t1 = options._options;
logger = new T.TrackingLogger(H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color()));
t2 = D.absolute(".");
evaluator = new R.Evaluator(R._EvaluateVisitor$(null, R.ImportCache$(C.List_empty10, type$.legacy_List_legacy_String._as(t1.$index(0, "load-path")), logger), logger, null, false), new F.FilesystemImporter(t2));
t2 = repl._adapter.runAsync$0();
t1 = new P._StreamIterator(t2);
P.ArgumentError_checkNotNull(t2, "stream");
$async$handler = 2;
t2 = type$.legacy_Expression, t3 = type$.legacy_String, t4 = type$.legacy_VariableDeclaration;
case 5:
// for condition
$async$goto = 7;
return P._asyncAwait(t1.moveNext$0(), $async$repl);
case 7:
// returning from await.
if (!$async$result) {
// goto after for
$async$goto = 6;
break;
}
line = t1.get$current(t1);
if (J.trim$0$s(line).length === 0) {
// goto for condition
$async$goto = 5;
break;
}
try {
if (J.startsWith$1$s(line, "@")) {
t5 = evaluator;
t6 = logger;
t7 = S.SpanScanner$(line, null);
if (t6 == null)
t6 = C.StderrLogger_false;
t6 = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t7, t6).parseUseRule$0();
t5._visitor.runStatement$2(t5._importer, t6);
// goto for condition
$async$goto = 5;
break;
}
t5 = S.SpanScanner$(line, null);
if (new G.Parser(t5, C.StderrLogger_false)._isVariableDeclarationLike$0()) {
t5 = logger;
t6 = S.SpanScanner$(line, null);
if (t5 == null)
t5 = C.StderrLogger_false;
declaration = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t6, t5).parseVariableDeclaration$0();
t5 = evaluator;
t5._visitor.runStatement$2(t5._importer, declaration);
t5 = evaluator;
t6 = declaration.name;
t7 = declaration.span;
t8 = declaration.namespace;
line0 = J.toString$0$(t5._visitor.runExpression$2(t5._importer, new S.VariableExpression(t8, t6, t7)));
toZone = $.printToZone;
if (toZone == null)
H.printString(line0);
else
toZone.call$1(line0);
} else {
t5 = evaluator;
t6 = logger;
t7 = S.SpanScanner$(line, null);
if (t6 == null)
t6 = C.StderrLogger_false;
t6 = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t7, t6);
t6 = t6._parseSingleProduction$1$1(t6.get$expression(), t2);
line0 = J.toString$0$(t5._visitor.runExpression$2(t5._importer, t6));
toZone = $.printToZone;
if (toZone == null)
H.printString(line0);
else
toZone.call$1(line0);
}
} catch (exception) {
t5 = H.unwrapException(exception);
if (t5 instanceof E.SassException) {
error = t5;
stackTrace = H.getTraceFromException(exception);
Y._logError(error, stackTrace, line, repl, options, logger);
} else
throw exception;
}
// goto for condition
$async$goto = 5;
break;
case 6:
// after for
$async$next.push(4);
// goto finally
$async$goto = 3;
break;
case 2:
// uncaught
$async$next = [1];
case 3:
// finally
$async$handler = 1;
$async$goto = 8;
return P._asyncAwait(t1.cancel$0(), $async$repl);
case 8:
// returning from await.
// goto the next finally handler
$async$goto = $async$next.pop();
break;
case 4:
// after finally
// implicit return
return P._asyncReturn(null, $async$completer);
case 1:
// rethrow
return P._asyncRethrow($async$currentError, $async$completer);
}
});
return P._asyncStartSync($async$repl, $async$completer);
},
_logError: function(error, stackTrace, line, repl, options, logger) {
var t1, t2, spacesBeforeError;
if (G.SourceSpanException.prototype.get$span.call(error).file.url == null)
if (!H._asBoolS(options._options.$index(0, "quiet")))
t1 = logger._emittedDebug || logger._emittedWarning;
else
t1 = false;
else
t1 = true;
if (t1) {
P.print(error.toString$1$color(0, options.get$color()));
return;
}
t1 = options.get$color() ? "\x1b[31m" : "";
t2 = G.SourceSpanException.prototype.get$span.call(error);
t2 = Y.FileLocation$_(t2.file, t2._file$_start);
spacesBeforeError = repl.prompt.length + t2.file.getColumn$1(t2.offset);
if (options.get$color()) {
t2 = G.SourceSpanException.prototype.get$span.call(error);
t2 = Y.FileLocation$_(t2.file, t2._file$_start);
t2 = t2.file.getColumn$1(t2.offset) < line.length;
} else
t2 = false;
if (t2) {
t1 += "\x1b[1F\x1b[" + spacesBeforeError + "C";
t2 = G.SourceSpanException.prototype.get$span.call(error);
t2 = t1 + (P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null) + "\n");
t1 = t2;
}
t1 += C.JSString_methods.$mul(" ", spacesBeforeError);
t2 = G.SourceSpanException.prototype.get$span.call(error);
t2 = t1 + (C.JSString_methods.$mul("^", Math.max(1, t2._end - t2._file$_start)) + "\n");
t1 = options.get$color() ? t2 + "\x1b[0m" : t2;
t1 += "Error: " + H.S(error._span_exception$_message) + "\n";
if (H._asBoolS(options._options.$index(0, "trace")))
t1 += Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0);
P.print(C.JSString_methods.trimRight$0(t1.charCodeAt(0) == 0 ? t1 : t1));
}
},
L = {StreamGroup: function StreamGroup(t0, t1, t2) {
var _ = this;
_._controller = null;
_._closed = false;
_._stream_group$_state = t0;
_._subscriptions = t1;
_.$ti = t2;
}, StreamGroup_add_closure: function StreamGroup_add_closure() {
}, StreamGroup_add_closure0: function StreamGroup_add_closure0(t0, t1) {
this.$this = t0;
this.stream = t1;
}, StreamGroup__onListen_closure: function StreamGroup__onListen_closure(t0) {
this.$this = t0;
}, StreamGroup__onCancel_closure: function StreamGroup__onCancel_closure(t0) {
this.$this = t0;
}, StreamGroup__onCancel_closure0: function StreamGroup__onCancel_closure0() {
}, StreamGroup__listenToStream_closure: function StreamGroup__listenToStream_closure(t0, t1) {
this.$this = t0;
this.stream = t1;
}, _StreamGroupState: function _StreamGroupState(t0) {
this.name = t0;
},
UnmodifiableSetMixin__throw: function() {
throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable Set"));
},
UnmodifiableSetView: function UnmodifiableSetView(t0, t1) {
this._base = t0;
this.$ti = t1;
},
UnmodifiableSetMixin: function UnmodifiableSetMixin() {
},
_UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin: function _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin() {
},
Immediate: function Immediate() {
},
Timeout: function Timeout() {
},
WindowsStyle: function WindowsStyle(t0, t1, t2, t3) {
var _ = this;
_.separatorPattern = t0;
_.needsSeparatorPattern = t1;
_.rootPattern = t2;
_.relativeRootPattern = t3;
},
WindowsStyle_absolutePathToUri_closure: function WindowsStyle_absolutePathToUri_closure() {
},
ModifiableCssDeclaration$: function($name, value, span, parsedAsCustomProperty, valueSpanForMap) {
var t2,
t1 = valueSpanForMap == null ? span : valueSpanForMap;
if (parsedAsCustomProperty)
if (!J.startsWith$1$s($name.get$value($name), "--"))
H.throwExpression(P.ArgumentError$(string$.parsed));
else {
t2 = value.value;
if (!(t2 instanceof D.SassString))
H.throwExpression(P.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + J.get$runtimeType$u(t2).toString$0(0) + ")."));
}
return new L.ModifiableCssDeclaration($name, value, parsedAsCustomProperty, t1, span);
},
ModifiableCssDeclaration: function ModifiableCssDeclaration(t0, t1, t2, t3, t4) {
var _ = this;
_.name = t0;
_.value = t1;
_.parsedAsCustomProperty = t2;
_.valueSpanForMap = t3;
_.span = t4;
_._indexInParent = _._parent = null;
_.isGroupEnd = false;
},
IfExpression: function IfExpression(t0, t1) {
this.$arguments = t0;
this.span = t1;
},
Declaration$: function($name, span, children, value) {
var t1;
children = children == null ? null : P.List_List$unmodifiable(children, type$.legacy_Statement);
t1 = children == null ? null : C.JSArray_methods.any$1(children, new M.ParentStatement_closure());
if (C.JSString_methods.startsWith$1($name.get$initialPlain(), "--") && !(value instanceof D.StringExpression))
H.throwExpression(P.ArgumentError$(string$.Declarw + H.S(value) + "` of type " + J.get$runtimeType$u(value).toString$0(0) + ")."));
return new L.Declaration($name, value, span, children, t1 === true);
},
Declaration: function Declaration(t0, t1, t2, t3, t4) {
var _ = this;
_.name = t0;
_.value = t1;
_.span = t2;
_.children = t3;
_.hasDeclarations = t4;
},
ForwardRule: function ForwardRule(t0, t1, t2, t3, t4, t5, t6, t7) {
var _ = this;
_.url = t0;
_.shownMixinsAndFunctions = t1;
_.shownVariables = t2;
_.hiddenMixinsAndFunctions = t3;
_.hiddenVariables = t4;
_.prefix = t5;
_.configuration = t6;
_.span = t7;
},
LoudComment: function LoudComment(t0) {
this.text = t0;
},
SupportsDeclaration: function SupportsDeclaration(t0, t1, t2) {
this.name = t0;
this.value = t1;
this.span = t2;
},
PlainCssCallable: function PlainCssCallable(t0) {
this.name = t0;
},
ExtendMode: function ExtendMode(t0) {
this.name = t0;
},
ScssParser$: function(contents, logger, url) {
var t1 = S.SpanScanner$(contents, url),
t2 = logger == null ? C.StderrLogger_false : logger;
return new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, t2);
},
ScssParser: function ScssParser(t0, t1, t2) {
var _ = this;
_._isUseAllowed = true;
_._stylesheet$_inMixin = false;
_._mixinHasContent = null;
_._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
_._globalVariables = t0;
_.lastSilentComment = null;
_.scanner = t1;
_.logger = t2;
},
SingleUnitSassNumber: function SingleUnitSassNumber(t0, t1, t2) {
this._unit = t0;
this.value = t1;
this.asSlash = t2;
},
SingleUnitSassNumber_multiplyUnits_closure: function SingleUnitSassNumber_multiplyUnits_closure(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
SingleUnitSassNumber_multiplyUnits_closure0: function SingleUnitSassNumber_multiplyUnits_closure0(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
Entry: function Entry(t0, t1, t2) {
this.source = t0;
this.target = t1;
this.identifierName = t2;
},
_StreamTransformer__defaultHandleError: function(error, stackTrace, sink) {
sink.addError$2(error, stackTrace);
},
_StreamTransformer: function _StreamTransformer(t0, t1, t2, t3) {
var _ = this;
_._from_handlers$_handleData = t0;
_._from_handlers$_handleDone = t1;
_._from_handlers$_handleError = t2;
_.$ti = t3;
},
_StreamTransformer_bind_closure: function _StreamTransformer_bind_closure(t0, t1, t2, t3) {
var _ = this;
_._box_1 = t0;
_.$this = t1;
_.values = t2;
_.controller = t3;
},
_StreamTransformer_bind__closure: function _StreamTransformer_bind__closure(t0, t1) {
this.$this = t0;
this.controller = t1;
},
_StreamTransformer_bind__closure1: function _StreamTransformer_bind__closure1(t0, t1) {
this.$this = t0;
this.controller = t1;
},
_StreamTransformer_bind__closure0: function _StreamTransformer_bind__closure0(t0, t1, t2) {
this._box_0 = t0;
this.$this = t1;
this.controller = t2;
},
_StreamTransformer_bind__closure2: function _StreamTransformer_bind__closure2(t0, t1) {
this._box_1 = t0;
this._box_0 = t1;
},
ModifiableCssDeclaration$0: function($name, value, span, parsedAsCustomProperty, valueSpanForMap) {
var t2,
t1 = valueSpanForMap == null ? span : valueSpanForMap;
if (parsedAsCustomProperty)
if (!J.startsWith$1$s($name.get$value($name), "--"))
H.throwExpression(P.ArgumentError$(string$.parsed));
else {
t2 = value.value;
if (!(t2 instanceof D.SassString0))
H.throwExpression(P.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + J.get$runtimeType$u(t2).toString$0(0) + ")."));
}
return new L.ModifiableCssDeclaration0($name, value, parsedAsCustomProperty, t1, span);
},
ModifiableCssDeclaration0: function ModifiableCssDeclaration0(t0, t1, t2, t3, t4) {
var _ = this;
_.name = t0;
_.value = t1;
_.parsedAsCustomProperty = t2;
_.valueSpanForMap = t3;
_.span = t4;
_._node2$_indexInParent = _._node2$_parent = null;
_.isGroupEnd = false;
},
Declaration$0: function($name, span, children, value) {
var t1;
children = children == null ? null : P.List_List$unmodifiable(children, type$.legacy_Statement_2);
t1 = children == null ? null : C.JSArray_methods.any$1(children, new M.ParentStatement_closure0());
if (C.JSString_methods.startsWith$1($name.get$initialPlain(), "--") && !(value instanceof D.StringExpression0))
H.throwExpression(P.ArgumentError$(string$.Declarw + H.S(value) + "` of type " + J.get$runtimeType$u(value).toString$0(0) + ")."));
return new L.Declaration0($name, value, span, children, t1 === true);
},
Declaration0: function Declaration0(t0, t1, t2, t3, t4) {
var _ = this;
_.name = t0;
_.value = t1;
_.span = t2;
_.children = t3;
_.hasDeclarations = t4;
},
SupportsDeclaration0: function SupportsDeclaration0(t0, t1, t2) {
this.name = t0;
this.value = t1;
this.span = t2;
},
ForwardRule0: function ForwardRule0(t0, t1, t2, t3, t4, t5, t6, t7) {
var _ = this;
_.url = t0;
_.shownMixinsAndFunctions = t1;
_.shownVariables = t2;
_.hiddenMixinsAndFunctions = t3;
_.hiddenVariables = t4;
_.prefix = t5;
_.configuration = t6;
_.span = t7;
},
IfExpression0: function IfExpression0(t0, t1) {
this.$arguments = t0;
this.span = t1;
},
LoudComment0: function LoudComment0(t0) {
this.text = t0;
},
ExtendMode0: function ExtendMode0(t0) {
this.name = t0;
},
PlainCssCallable0: function PlainCssCallable0(t0) {
this.name = t0;
},
RenderContextOptions: function RenderContextOptions() {
},
ScssParser$0: function(contents, logger, url) {
var t1 = S.SpanScanner$(contents, url),
t2 = logger == null ? C.C_StderrLogger : logger;
return new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, t2);
},
ScssParser0: function ScssParser0(t0, t1, t2) {
var _ = this;
_._stylesheet0$_isUseAllowed = true;
_._stylesheet0$_inMixin = false;
_._stylesheet0$_mixinHasContent = null;
_._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
_._stylesheet0$_globalVariables = t0;
_.lastSilentComment = null;
_.scanner = t1;
_.logger = t2;
},
SingleUnitSassNumber0: function SingleUnitSassNumber0(t0, t1, t2) {
this._single_unit$_unit = t0;
this.value = t1;
this.asSlash = t2;
},
SingleUnitSassNumber_multiplyUnits_closure1: function SingleUnitSassNumber_multiplyUnits_closure1(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
SingleUnitSassNumber_multiplyUnits_closure2: function SingleUnitSassNumber_multiplyUnits_closure2(t0, t1) {
this._box_0 = t0;
this.$this = t1;
},
encodeVlq: function(value) {
var res, signBit, digit, t1;
if (value < $.$get$MIN_INT32() || value > $.$get$MAX_INT32())
throw H.wrapException(P.ArgumentError$("expected 32 bit int, got: " + value));
res = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
if (value < 0) {
value = -value;
signBit = 1;
} else
signBit = 0;
value = value << 1 | signBit;
do {
digit = value & 31;
value = value >>> 5;
t1 = value > 0;
res.push(string$.ABCDEF[t1 ? digit | 32 : digit]);
} while (t1);
return res;
}
},
Q = {Repl: function Repl(t0, t1, t2, t3) {
var _ = this;
_.prompt = t0;
_.continuation = t1;
_.validator = t2;
_._adapter = null;
_.history = t3;
}, closure113: function closure113() {
},
QueueList$: function(initialCapacity, $E) {
var t1 = new Q.QueueList(0, 0, $E._eval$1("QueueList<0>"));
t1.QueueList$1(initialCapacity, $E);
return t1;
},
QueueList_QueueList$from: function(source, $E) {
var $length, queue,
t1 = $E._eval$1("0*");
if (type$.legacy_List_dynamic._is(source)) {
$length = J.get$length$asx(source);
queue = Q.QueueList$($length + 1, t1);
J.setRange$4$ax(queue._table, 0, $length, source, 0);
queue._tail = $length;
return queue;
} else {
t1 = Q.QueueList$(null, t1);
t1.addAll$1(0, source);
return t1;
}
},
QueueList__nextPowerOf2: function(number) {
var nextNumber;
number = (number << 1 >>> 0) - 1;
for (; true; number = nextNumber) {
nextNumber = (number & number - 1) >>> 0;
if (nextNumber === 0)
return number;
}
},
QueueList: function QueueList(t0, t1, t2) {
var _ = this;
_._table = null;
_._head = t0;
_._tail = t1;
_.$ti = t2;
},
_CastQueueList: function _CastQueueList(t0, t1, t2, t3) {
var _ = this;
_._queue_list$_delegate = t0;
_._table = null;
_._head = t1;
_._tail = t2;
_.$ti = t3;
},
_QueueList_Object_ListMixin: function _QueueList_Object_ListMixin() {
},
StaticImport: function StaticImport(t0, t1, t2, t3) {
var _ = this;
_.url = t0;
_.supports = t1;
_.media = t2;
_.span = t3;
},
ContentRule: function ContentRule(t0, t1) {
this.span = t0;
this.$arguments = t1;
},
DebugRule: function DebugRule(t0, t1) {
this.expression = t0;
this.span = t1;
},
AsyncEnvironment$: function(sourceMap) {
var _null = null,
t1 = type$.legacy_String,
t2 = type$.legacy_Module_legacy_AsyncCallable,
t3 = type$.legacy_AstNode,
t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable),
t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Value)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Value),
t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode) : _null,
t7 = type$.legacy_int,
t8 = type$.legacy_AsyncCallable,
t9 = type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AsyncCallable;
return new Q.AsyncEnvironment(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
},
AsyncEnvironment$_: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
var t1 = type$.legacy_String,
t2 = type$.legacy_int;
return new Q.AsyncEnvironment(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
},
_EnvironmentModule__EnvironmentModule0: function(environment, css, extender, forwarded) {
var t1, t2, t3, t4, t5, t6;
if (forwarded == null)
forwarded = C.Set_empty0;
t1 = Q._EnvironmentModule__makeModulesByVariable0(forwarded);
t2 = H._instanceType(forwarded);
t3 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_variables), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure5(), t2._eval$1("EfficientLengthMappedIterable<1,Map*>")), type$.legacy_Value);
t4 = environment._async_environment$_variableNodes;
t4 = t4 == null ? null : Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure6(), t2._eval$1("EfficientLengthMappedIterable<1,Map*>")), type$.legacy_AstNode);
t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map*>");
t5 = type$.legacy_AsyncCallable;
t6 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_functions), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure7(), t2), t5);
t5 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_mixins), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure8(), t2), t5);
t2 = J.get$isNotEmpty$asx(css.get$children(css)) || C.JSArray_methods.any$1(environment._async_environment$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure9());
return Q._EnvironmentModule$_0(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._async_environment$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure10()));
},
_EnvironmentModule__makeModulesByVariable0: function(forwarded) {
var modulesByVariable, t1, t2, t3, t4, t5;
if (forwarded.get$isEmpty(forwarded))
return C.Map_empty4;
modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Module_legacy_AsyncCallable);
for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
t2 = t1.get$current(t1);
if (t2 instanceof Q._EnvironmentModule0) {
for (t3 = t2._async_environment$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
t4 = t3.get$current(t3);
t5 = t4.get$variables();
B.setAll(modulesByVariable, t5.get$keys(t5), t4);
}
B.setAll(modulesByVariable, J.get$keys$z(C.JSArray_methods.get$first(t2._async_environment$_environment._async_environment$_variables)), t2);
} else {
t3 = t2.get$variables();
B.setAll(modulesByVariable, t3.get$keys(t3), t2);
}
}
return modulesByVariable;
},
_EnvironmentModule__memberMap0: function(localMap, otherMaps, $V) {
var t1, t2, t3, cur;
localMap = new U.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0*>"));
t1 = otherMaps.__internal$_iterable;
t2 = J.getInterceptor$asx(t1);
if (t2.get$isEmpty(t1))
return localMap;
t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray