OLD | NEW |
1 // Generated by dart2js, the Dart to JavaScript compiler. | 1 // Generated by dart2js, the Dart to JavaScript compiler. |
2 // The code supports the following hooks: | 2 (function($){function dart(){this.x=0}var A=new dart |
3 // dartPrint(message) - if this function is defined it is called | 3 delete A.x |
4 // instead of the Dart [print] method. | 4 var B=new dart |
5 // dartMainRunner(main) - if this function is defined, the Dart [main] | 5 delete B.x |
6 // method will not be invoked directly. | 6 var C=new dart |
7 // Instead, a closure that will invoke [main] is | 7 delete C.x |
8 // passed to [dartMainRunner]. | 8 var D=new dart |
9 (function($) { | 9 delete D.x |
10 var A = {}; | 10 var E=new dart |
11 delete A.x; | 11 delete E.x |
12 var B = {}; | 12 var F=new dart |
13 delete B.x; | 13 delete F.x |
14 var C = {}; | 14 var G=new dart |
15 delete C.x; | 15 delete G.x |
16 var D = {}; | 16 var H=new dart |
17 delete D.x; | 17 delete H.x |
18 var E = {}; | 18 var J=new dart |
19 delete E.x; | 19 delete J.x |
20 var F = {}; | 20 var K=new dart |
21 delete F.x; | 21 delete K.x |
22 var G = {}; | 22 var L=new dart |
23 delete G.x; | 23 delete L.x |
24 var H = {}; | 24 var M=new dart |
25 delete H.x; | 25 delete M.x |
26 var J = {}; | 26 var N=new dart |
27 delete J.x; | 27 delete N.x |
28 var K = {}; | 28 var O=new dart |
29 delete K.x; | 29 delete O.x |
30 var L = {}; | 30 var P=new dart |
31 delete L.x; | 31 delete P.x |
32 var M = {}; | 32 var Q=new dart |
33 delete M.x; | 33 delete Q.x |
34 var N = {}; | 34 var R=new dart |
35 delete N.x; | 35 delete R.x |
36 var O = {}; | 36 var S=new dart |
37 delete O.x; | 37 delete S.x |
38 var P = {}; | 38 var T=new dart |
39 delete P.x; | 39 delete T.x |
40 var Q = {}; | 40 var U=new dart |
41 delete Q.x; | 41 delete U.x |
42 var R = {}; | 42 var V=new dart |
43 delete R.x; | 43 delete V.x |
44 var S = {}; | 44 var W=new dart |
45 delete S.x; | 45 delete W.x |
46 var T = {}; | 46 var X=new dart |
47 delete T.x; | 47 delete X.x |
48 var U = {}; | 48 var Y=new dart |
49 delete U.x; | 49 delete Y.x |
50 var V = {}; | 50 var Z=new dart |
51 delete V.x; | 51 delete Z.x |
52 var W = {}; | 52 function I(){} |
53 delete W.x; | 53 init() |
54 var X = {}; | 54 $=I.p |
55 delete X.x; | 55 var $$={} |
56 var Y = {}; | 56 ;(function(a){"use strict" |
57 delete Y.x; | 57 function map(b){b={x:b} |
58 var Z = {}; | 58 delete b.x |
59 delete Z.x; | 59 return b}function processStatics(a3){for(var h in a3){if(!u.call(a3,h))continue |
60 function Isolate() {} | 60 if(h==="^")continue |
61 init(); | 61 var g=a3[h] |
62 | 62 var f=h.substring(0,1) |
63 $ = Isolate.$isolateProperties; | 63 var e |
64 var $$ = {}; | 64 if(f==="+"){v[e]=h.substring(1) |
65 | 65 var d=a3[h] |
66 // Native classes | 66 if(d>0)a3[e].$reflectable=d |
67 // Method closures | 67 if(g&&g.length)init.typeInformation[e]=g}else if(f==="@"){h=h.substring(1) |
68 $$.BoundClosure$i0 = [H, {"": "BoundClosure;_self,__js_helper$_target,_receiver,
__js_helper$_name", | 68 $[h]["@"]=g}else if(f==="*"){n[e].$defaultValues=g |
69 call$0: function() { | 69 var c=a3.$methodsWithOptionalArguments |
70 return this.__js_helper$_target.call(this._self, this._receiver); | 70 if(!c){a3.$methodsWithOptionalArguments=c={}}c[h]=e}else if(typeof g==="function
"){n[e=h]=g |
| 71 i.push(h) |
| 72 init.globalFunctions[h]=g}else if(g.constructor===Array){addStubs(n,g,h,true,a3,
i)}else{e=h |
| 73 var b={} |
| 74 var a0 |
| 75 for(var a1 in g){if(!u.call(g,a1))continue |
| 76 f=a1.substring(0,1) |
| 77 if(a1==="static"){processStatics(init.statics[h]=g[a1])}else if(f==="+"){w[a0]=a
1.substring(1) |
| 78 var d=g[a1] |
| 79 if(d>0)g[a0].$reflectable=d}else if(f==="@"&&a1!=="@"){b[a1.substring(1)]["@"]=g
[a1]}else if(f==="*"){b[a0].$defaultValues=g[a1] |
| 80 var c=b.$methodsWithOptionalArguments |
| 81 if(!c){b.$methodsWithOptionalArguments=c={}}c[a1]=a0}else{var a2=g[a1] |
| 82 if(a1!=="^"&&a2!=null&&a2.constructor===Array&&a1!=="<>"){addStubs(b,a2,a1,false
,g,[])}else{b[a0=a1]=a2}}}$$[h]=[n,b] |
| 83 j.push(h)}}}function addStubs(b3,b4,b5,b6,b7,b8){var h,g=[b7[b5]=b3[b5]=h=b4[0]] |
| 84 h.$stubName=b5 |
| 85 b8.push(b5) |
| 86 for(var f=0;f<b4.length;f+=2){h=b4[f+1] |
| 87 if(typeof h!="function")break |
| 88 h.$stubName=b4[f+2] |
| 89 g.push(h) |
| 90 if(h.$stubName){b7[h.$stubName]=b3[h.$stubName]=h |
| 91 b8.push(h.$stubName)}}for(var e=0;e<g.length;f++,e++){g[e].$callName=b4[f+1]}var
d=b4[++f] |
| 92 b4=b4.slice(++f) |
| 93 var c=b4[0] |
| 94 var b=c>>1 |
| 95 var a0=(c&1)===1 |
| 96 var a1=c===3 |
| 97 var a2=c===1 |
| 98 var a3=b4[1] |
| 99 var a4=a3>>1 |
| 100 var a5=(a3&1)===1 |
| 101 var a6=b+a4!=g[0].length |
| 102 var a7=b4[2] |
| 103 var a8=2*a4+b+3 |
| 104 var a9=b4.length>a8 |
| 105 if(d){h=tearOff(g,b4,b6,b5,a6) |
| 106 b3[b5].$getter=h |
| 107 h.$getterStub=true |
| 108 if(b6)init.globalFunctions[b5]=h |
| 109 b7[d]=b3[d]=h |
| 110 g.push(h) |
| 111 if(d)b8.push(d) |
| 112 h.$stubName=d |
| 113 h.$callName=null |
| 114 if(a6)init.interceptedNames[d]=true}if(a9){for(var e=0;e<g.length;e++){g[e].$ref
lectable=1 |
| 115 g[e].$reflectionInfo=b4}var b0=b6?init.mangledGlobalNames:init.mangledNames |
| 116 var b1=b4[a8] |
| 117 var b2=b1 |
| 118 if(d)b0[d]=b2 |
| 119 if(a1){b2+="="}else if(!a2){b2+=":"+b+":"+a4}b0[b5]=b2 |
| 120 g[0].$reflectionName=b2 |
| 121 g[0].$metadataIndex=a8+1 |
| 122 if(a4)b3[b1+"*"]=g[0]}}function tearOffGetterNoCsp(b,c,d,e){return e?new Functio
n("funcs","reflectionInfo","name","H","c","return function tearOff_"+d+z+++"(x)
{"+"if (c === null) c = H.qm("+"this, funcs, reflectionInfo, false, [x], name);"
+"return new c(this, funcs[0], x, name);"+"}")(b,c,d,H,null):new Function("funcs
","reflectionInfo","name","H","c","return function tearOff_"+d+z+++"() {"+"if (c
=== null) c = H.qm("+"this, funcs, reflectionInfo, false, [], name);"+"return n
ew c(this, funcs[0], null, name);"+"}")(b,c,d,H,null)}function tearOffGetterCsp(
b,c,d,e){var h=null |
| 123 return e?function(f){if(h===null)h=H.qm(this,b,c,false,[f],d) |
| 124 return new h(this,b[0],f,d)}:function(){if(h===null)h=H.qm(this,b,c,false,[],d) |
| 125 return new h(this,b[0],null,d)}}function tearOff(b,c,d,e,f){var h |
| 126 return d?function(){if(h===void 0)h=H.qm(this,b,c,true,[],e).prototype |
| 127 return h}:y(b,c,e,f)}var z=0 |
| 128 var y=typeof dart_precompiled=="function"?tearOffGetterCsp:tearOffGetterNoCsp |
| 129 if(!init.libraries)init.libraries=[] |
| 130 if(!init.mangledNames)init.mangledNames=map() |
| 131 if(!init.mangledGlobalNames)init.mangledGlobalNames=map() |
| 132 if(!init.statics)init.statics=map() |
| 133 if(!init.typeInformation)init.typeInformation=map() |
| 134 if(!init.globalFunctions)init.globalFunctions=map() |
| 135 if(!init.interceptedNames)init.interceptedNames=map() |
| 136 var x=init.libraries |
| 137 var w=init.mangledNames |
| 138 var v=init.mangledGlobalNames |
| 139 var u=Object.prototype.hasOwnProperty |
| 140 var t=a.length |
| 141 for(var s=0;s<t;s++){var r=a[s] |
| 142 var q=r[0] |
| 143 var p=r[1] |
| 144 var o=r[2] |
| 145 var n=r[3] |
| 146 var m=r[4] |
| 147 var l=!!r[5] |
| 148 var k=m&&m["^"] |
| 149 var j=[] |
| 150 var i=[] |
| 151 processStatics(m) |
| 152 x.push([q,p,j,i,o,k,l,n])}})([["_foreign_helper","dart:_foreign_helper",,H,{ |
| 153 "^":"", |
| 154 FK:{ |
| 155 "^":"a;tT"}}],["_interceptors","dart:_interceptors",,J,{ |
| 156 "^":"", |
| 157 x:function(a){return void 0}, |
| 158 Qu:function(a,b,c,d){return{i:a,p:b,e:c,x:d}}, |
| 159 ks:function(a){var z,y,x,w |
| 160 z=a[init.dispatchPropertyName] |
| 161 if(z==null)if($.Bv==null){H.XD() |
| 162 z=a[init.dispatchPropertyName]}if(z!=null){y=z.p |
| 163 if(!1===y)return z.i |
| 164 if(!0===y)return a |
| 165 x=Object.getPrototypeOf(a) |
| 166 if(y===x)return z.i |
| 167 if(z.e===x)throw H.b(P.SY("Return interceptor for "+H.d(y(a,z))))}w=H.w3(a) |
| 168 if(w==null){y=Object.getPrototypeOf(a) |
| 169 if(y==null||y===Object.prototype)return C.ZQ |
| 170 else return C.vB}return w}, |
| 171 Gv:{ |
| 172 "^":"a;", |
| 173 n:function(a,b){return a===b}, |
| 174 giO:function(a){return H.eQ(a)}, |
| 175 bu:function(a){return H.a5(a)}, |
| 176 "%":"DOMError|FileError|MediaError|MediaKeyError|Navigator|NavigatorUserMediaErr
or|PositionError|SQLError|SVGAnimatedNumberList|SVGAnimatedString"}, |
| 177 kn:{ |
| 178 "^":"Gv;", |
| 179 bu:function(a){return String(a)}, |
| 180 giO:function(a){return a?519018:218159}, |
| 181 $isa2:true}, |
| 182 YE:{ |
| 183 "^":"Gv;", |
| 184 n:function(a,b){return null==b}, |
| 185 bu:function(a){return"null"}, |
| 186 giO:function(a){return 0}}, |
| 187 Ue:{ |
| 188 "^":"Gv;", |
| 189 giO:function(a){return 0}}, |
| 190 iC:{ |
| 191 "^":"Ue;"}, |
| 192 is:{ |
| 193 "^":"Ue;"}, |
| 194 Q:{ |
| 195 "^":"Gv;", |
| 196 Rz:function(a,b){var z |
| 197 if(!!a.fixed$length)H.vh(P.f("remove")) |
| 198 for(z=0;z<a.length;++z)if(J.de(a[z],b)){a.splice(z,1) |
| 199 return!0}return!1}, |
| 200 aN:function(a,b){return H.bQ(a,b)}, |
| 201 Zv:function(a,b){if(b<0||b>=a.length)return H.e(a,b) |
| 202 return a[b]}, |
| 203 tg:function(a,b){var z |
| 204 for(z=0;z<a.length;++z)if(J.de(a[z],b))return!0 |
| 205 return!1}, |
| 206 bu:function(a){return H.mx(a,"[","]")}, |
| 207 gA:function(a){return new H.a7(a,a.length,0,null)}, |
| 208 giO:function(a){return H.eQ(a)}, |
| 209 gB:function(a){return a.length}, |
| 210 sB:function(a,b){if(b<0)throw H.b(P.N(b)) |
| 211 if(!!a.fixed$length)H.vh(P.f("set length")) |
| 212 a.length=b}, |
| 213 t:function(a,b){if(typeof b!=="number"||Math.floor(b)!==b)throw H.b(P.u(b)) |
| 214 if(b>=a.length||b<0)throw H.b(P.N(b)) |
| 215 return a[b]}, |
| 216 u:function(a,b,c){if(!!a.immutable$list)H.vh(P.f("indexed set")) |
| 217 if(typeof b!=="number"||Math.floor(b)!==b)throw H.b(P.u(b)) |
| 218 if(b>=a.length||b<0)throw H.b(P.N(b)) |
| 219 a[b]=c}, |
| 220 $isQ:true, |
| 221 $iszM:true, |
| 222 $aszM:null}, |
| 223 P:{ |
| 224 "^":"Gv;", |
| 225 JV:function(a,b){return a%b}, |
| 226 yu:function(a){var z |
| 227 if(a>=-2147483648&&a<=2147483647)return a|0 |
| 228 if(isFinite(a)){z=a<0?Math.ceil(a):Math.floor(a) |
| 229 return z+0}throw H.b(P.f(''+a))}, |
| 230 bu:function(a){if(a===0&&1/a<0)return"-0.0" |
| 231 else return""+a}, |
| 232 giO:function(a){return a&0x1FFFFFFF}, |
| 233 g:function(a,b){return a+b}, |
| 234 cU:function(a,b){return(a|0)===a?a/b|0:this.yu(a/b)}, |
| 235 GG:function(a,b){var z |
| 236 if(a>0)z=b>31?0:a>>>b |
| 237 else{z=b>31?31:b |
| 238 z=a>>z>>>0}return z}, |
| 239 C:function(a,b){if(typeof b!=="number")throw H.b(P.u(b)) |
| 240 return a<b}, |
| 241 F:function(a,b){if(typeof b!=="number")throw H.b(P.u(b)) |
| 242 return a>=b}, |
| 243 $islf:true, |
| 244 static:{"^":"SA,yc"}}, |
| 245 im:{ |
| 246 "^":"P;", |
| 247 $islf:true, |
| 248 $isKN:true}, |
| 249 VA:{ |
| 250 "^":"P;", |
| 251 $islf:true}, |
| 252 O:{ |
| 253 "^":"Gv;", |
| 254 j:function(a,b){if(b<0)throw H.b(P.N(b)) |
| 255 if(b>=a.length)throw H.b(P.N(b)) |
| 256 return a.charCodeAt(b)}, |
| 257 g:function(a,b){if(typeof b!=="string")throw H.b(P.u(b)) |
| 258 return a+b}, |
| 259 Nj:function(a,b,c){if(c==null)c=a.length |
| 260 if(typeof c!=="number"||Math.floor(c)!==c)H.vh(P.u(c)) |
| 261 if(b<0)throw H.b(P.N(b)) |
| 262 if(typeof c!=="number")return H.s(c) |
| 263 if(b>c)throw H.b(P.N(b)) |
| 264 if(c>a.length)throw H.b(P.N(c)) |
| 265 return a.substring(b,c)}, |
| 266 yn:function(a,b){return this.Nj(a,b,null)}, |
| 267 bS:function(a){var z,y,x,w,v |
| 268 z=a.trim() |
| 269 y=z.length |
| 270 if(y===0)return z |
| 271 if(this.j(z,0)===133){x=J.mm(z,1) |
| 272 if(x===y)return""}else x=0 |
| 273 w=y-1 |
| 274 v=this.j(z,w)===133?J.r9(z,w):y |
| 275 if(x===0&&v===y)return z |
| 276 return z.substring(x,v)}, |
| 277 gl0:function(a){return a.length===0}, |
| 278 bu:function(a){return a}, |
| 279 giO:function(a){var z,y,x |
| 280 for(z=a.length,y=0,x=0;x<z;++x){y=536870911&y+a.charCodeAt(x) |
| 281 y=536870911&y+((524287&y)<<10>>>0) |
| 282 y^=y>>6}y=536870911&y+((67108863&y)<<3>>>0) |
| 283 y^=y>>11 |
| 284 return 536870911&y+((16383&y)<<15>>>0)}, |
| 285 gB:function(a){return a.length}, |
| 286 t:function(a,b){if(typeof b!=="number"||Math.floor(b)!==b)throw H.b(P.u(b)) |
| 287 if(b>=a.length||b<0)throw H.b(P.N(b)) |
| 288 return a[b]}, |
| 289 $isqU:true, |
| 290 static:{Ga:function(a){if(a<256)switch(a){case 9:case 10:case 11:case 12:case 13
:case 32:case 133:case 160:return!0 |
| 291 default:return!1}switch(a){case 5760:case 6158:case 8192:case 8193:case 8194:cas
e 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:cas
e 8232:case 8233:case 8239:case 8287:case 12288:case 65279:return!0 |
| 292 default:return!1}},mm:function(a,b){var z,y |
| 293 for(z=a.length;b<z;){if(b>=z)H.vh(P.N(b)) |
| 294 y=a.charCodeAt(b) |
| 295 if(y!==32&&y!==13&&!J.Ga(y))break;++b}return b},r9:function(a,b){var z,y,x |
| 296 for(z=a.length;b>0;b=y){y=b-1 |
| 297 if(y>=z)H.vh(P.N(y)) |
| 298 x=a.charCodeAt(y) |
| 299 if(x!==32&&x!==13&&!J.Ga(x))break}return b}}}}],["_isolate_helper","dart:_isolat
e_helper",,H,{ |
| 300 "^":"", |
| 301 zd:function(a,b){var z=a.vV(b) |
| 302 init.globalState.Xz.bL() |
| 303 return z}, |
| 304 ox:function(){--init.globalState.Xz.GL}, |
| 305 Rq:function(a,b){var z,y,x,w,v,u |
| 306 z={} |
| 307 z.a=b |
| 308 b=b |
| 309 z.a=b |
| 310 if(b==null){b=[] |
| 311 z.a=b |
| 312 y=b}else y=b |
| 313 if(!J.x(y).$iszM)throw H.b(P.u("Arguments to main must be a List: "+H.d(y))) |
| 314 y=new H.O2(0,0,1,null,null,null,null,null,null,null,null,null,a) |
| 315 y.i6(a) |
| 316 init.globalState=y |
| 317 if(init.globalState.EF===!0)return |
| 318 y=init.globalState.Hg++ |
| 319 x=P.L5(null,null,null,P.KN,H.yo) |
| 320 w=P.Ls(null,null,null,P.KN) |
| 321 v=new H.yo(0,null,!1) |
| 322 u=new H.aX(y,x,w,new I(),v,P.N3(),P.N3(),!1,[],P.Ls(null,null,null,null),null,nu
ll,!1,!1) |
| 323 w.h(0,0) |
| 324 u.aU(0,v) |
| 325 init.globalState.yc=u |
| 326 init.globalState.N0=u |
| 327 y=H.N7() |
| 328 x=H.KT(y,[y]).BD(a) |
| 329 if(x)u.vV(new H.PK(z,a)) |
| 330 else{y=H.KT(y,[y,y]).BD(a) |
| 331 if(y)u.vV(new H.JO(z,a)) |
| 332 else u.vV(a)}init.globalState.Xz.bL()}, |
| 333 Td:function(){var z=init.currentScript |
| 334 if(z!=null)return String(z.src) |
| 335 if(typeof version=="function"&&typeof os=="object"&&"system" in os)return H.mf() |
| 336 if(typeof version=="function"&&typeof system=="function")return thisFilename() |
| 337 if(init.globalState.EF===!0)return H.mf() |
| 338 return}, |
| 339 mf:function(){var z,y |
| 340 z=new Error().stack |
| 341 if(z==null){z=function(){try{throw new Error()}catch(x){return x.stack}}() |
| 342 if(z==null)throw H.b(P.f("No stack trace"))}y=z.match(new RegExp("^ *at [^(]*\\(
(.*):[0-9]*:[0-9]*\\)$","m")) |
| 343 if(y!=null)return y[1] |
| 344 y=z.match(new RegExp("^[^@]*@(.*):[0-9]*$","m")) |
| 345 if(y!=null)return y[1] |
| 346 throw H.b(P.f("Cannot extract URI from \""+H.d(z)+"\""))}, |
| 347 Mg:function(a,b){var z,y,x,w,v,u,t,s,r,q,p,o,n,m,l,k,j,i |
| 348 z=H.Hh(b.data) |
| 349 y=J.U6(z) |
| 350 switch(y.t(z,"command")){case"start":init.globalState.oL=y.t(z,"id") |
| 351 x=y.t(z,"functionName") |
| 352 w=x==null?init.globalState.w2:init.globalFunctions[x]() |
| 353 v=y.t(z,"args") |
| 354 u=H.Hh(y.t(z,"msg")) |
| 355 t=y.t(z,"isSpawnUri") |
| 356 s=y.t(z,"startPaused") |
| 357 r=H.Hh(y.t(z,"replyTo")) |
| 358 y=init.globalState.Hg++ |
| 359 q=P.L5(null,null,null,P.KN,H.yo) |
| 360 p=P.Ls(null,null,null,P.KN) |
| 361 o=new H.yo(0,null,!1) |
| 362 n=new H.aX(y,q,p,new I(),o,P.N3(),P.N3(),!1,[],P.Ls(null,null,null,null),null,nu
ll,!1,!1) |
| 363 p.h(0,0) |
| 364 n.aU(0,o) |
| 365 init.globalState.Xz.Rk.NZ(new H.IY(n,new H.jl(w,v,u,t,s,r),"worker-start")) |
| 366 init.globalState.N0=n |
| 367 init.globalState.Xz.bL() |
| 368 break |
| 369 case"spawn-worker":q=y.t(z,"functionName") |
| 370 m=y.t(z,"uri") |
| 371 p=y.t(z,"args") |
| 372 o=y.t(z,"msg") |
| 373 l=y.t(z,"isSpawnUri") |
| 374 k=y.t(z,"startPaused") |
| 375 y=y.t(z,"replyPort") |
| 376 if(m==null)m=$.Rs() |
| 377 j=new Worker(m) |
| 378 j.onmessage=function(c,d){return function(e){c(d,e)}}(H.Mg,j) |
| 379 i=init.globalState.Y7++ |
| 380 $.p6().u(0,j,i) |
| 381 init.globalState.XC.u(0,i,j) |
| 382 j.postMessage(H.Gy(P.EF(["command","start","id",i,"replyTo",H.Gy(y),"args",p,"ms
g",H.Gy(o),"isSpawnUri",l,"startPaused",k,"functionName",q],null,null))) |
| 383 break |
| 384 case"message":if(y.t(z,"port")!=null)y.t(z,"port").wR(y.t(z,"msg")) |
| 385 init.globalState.Xz.bL() |
| 386 break |
| 387 case"close":init.globalState.XC.Rz(0,$.p6().t(0,a)) |
| 388 a.terminate() |
| 389 init.globalState.Xz.bL() |
| 390 break |
| 391 case"log":H.VL(y.t(z,"msg")) |
| 392 break |
| 393 case"print":if(init.globalState.EF===!0){y=init.globalState.vd |
| 394 q=H.Gy(P.EF(["command","print","msg",z],null,null)) |
| 395 y.toString |
| 396 self.postMessage(q)}else P.JS(y.t(z,"msg")) |
| 397 break |
| 398 case"error":throw H.b(y.t(z,"msg"))}}, |
| 399 VL:function(a){var z,y,x,w |
| 400 if(init.globalState.EF===!0){y=init.globalState.vd |
| 401 x=H.Gy(P.EF(["command","log","msg",a],null,null)) |
| 402 y.toString |
| 403 self.postMessage(x)}else try{$.jk().console.log(a)}catch(w){H.Ru(w) |
| 404 z=new H.XO(w,null) |
| 405 throw H.b(P.FM(z))}}, |
| 406 Z7:function(a,b,c,d,e,f){var z,y,x,w |
| 407 z=init.globalState.N0 |
| 408 y=z.jO |
| 409 $.te=$.te+("_"+y) |
| 410 $.eb=$.eb+("_"+y) |
| 411 y=z.EE |
| 412 x=init.globalState.N0.jO |
| 413 w=z.Qy |
| 414 f.wR(["spawned",new H.JM(y,x),w,z.PX]) |
| 415 x=new H.vK(a,b,c,d) |
| 416 if(e===!0){z.v8(w,w) |
| 417 init.globalState.Xz.Rk.NZ(new H.IY(z,x,"start isolate"))}else x.$0()}, |
| 418 Gy:function(a){var z |
| 419 if(init.globalState.ji===!0){z=new H.Bj(0,new H.X1()) |
| 420 z.iq=new H.fP(null) |
| 421 return z.h7(a)}else{z=new H.NO(new H.X1()) |
| 422 z.iq=new H.fP(null) |
| 423 return z.h7(a)}}, |
| 424 Hh:function(a){if(init.globalState.ji===!0)return new H.II(null).QS(a) |
| 425 else return a}, |
| 426 vM:function(a){return a==null||typeof a==="string"||typeof a==="number"||typeof
a==="boolean"}, |
| 427 uu:function(a){return a==null||typeof a==="string"||typeof a==="number"||typeof
a==="boolean"}, |
| 428 PK:{ |
| 429 "^":"Tp:7;a,b", |
| 430 $0:function(){this.b.$1(this.a.a)}}, |
| 431 JO:{ |
| 432 "^":"Tp:7;a,c", |
| 433 $0:function(){this.c.$2(this.a.a,null)}}, |
| 434 O2:{ |
| 435 "^":"a;Hg,oL,Y7,N0,yc,Xz,Ai,EF,ji,i2,vd,XC,w2", |
| 436 i6:function(a){var z,y,x,w |
| 437 z=$.C5()==null |
| 438 y=$.vy() |
| 439 x=z&&$.Iz()===!0 |
| 440 this.EF=x |
| 441 if(!x)y=y!=null&&$.Rs()!=null |
| 442 else y=!0 |
| 443 this.ji=y |
| 444 this.Ai=z&&!x |
| 445 y=H.IY |
| 446 x=H.VM(new P.Sw(null,0,0,0),[y]) |
| 447 x.Eo(null,y) |
| 448 this.Xz=new H.cC(x,0) |
| 449 this.i2=P.L5(null,null,null,P.KN,H.aX) |
| 450 this.XC=P.L5(null,null,null,P.KN,null) |
| 451 if(this.EF===!0){z=new H.JH() |
| 452 this.vd=z |
| 453 w=function(b,c){return function(d){b(c,d)}}(H.Mg,z) |
| 454 $.jk().onmessage=w |
| 455 $.jk().dartPrint=function(b){}}}}, |
| 456 aX:{ |
| 457 "^":"a;jO,Gx,fW,En<,EE<,Qy,PX,UF,C9,lJ,Jp,ml,mf,pa", |
| 458 v8:function(a,b){if(!this.Qy.n(0,a))return |
| 459 if(this.lJ.h(0,b)&&!this.UF)this.UF=!0 |
| 460 this.PC()}, |
| 461 cK:function(a){var z,y,x,w,v,u |
| 462 if(!this.UF)return |
| 463 z=this.lJ |
| 464 z.Rz(0,a) |
| 465 if(z.X5===0){for(z=this.C9;y=z.length,y!==0;){if(0>=y)return H.e(z,0) |
| 466 x=z.pop() |
| 467 y=init.globalState.Xz.Rk |
| 468 w=y.av |
| 469 v=y.v5 |
| 470 u=v.length |
| 471 w=(w-1&u-1)>>>0 |
| 472 y.av=w |
| 473 if(w<0||w>=u)return H.e(v,w) |
| 474 v[w]=x |
| 475 if(w===y.HV)y.VW();++y.qT}this.UF=!1}this.PC()}, |
| 476 iK:function(a){var z=this.Jp |
| 477 if(z==null){z=[] |
| 478 this.Jp=z}if(J.kE(z,a))return |
| 479 this.Jp.push(a)}, |
| 480 Hh:function(a){var z=this.Jp |
| 481 if(z==null)return |
| 482 J.V1(z,a)}, |
| 483 MZ:function(a,b){if(!this.PX.n(0,a))return |
| 484 this.pa=b}, |
| 485 Wq:function(a,b){var z,y |
| 486 z=J.x(b) |
| 487 if(!z.n(b,0))y=z.n(b,1)&&!this.mf |
| 488 else y=!0 |
| 489 if(y){a.wR(null) |
| 490 return}y=new H.NY(a) |
| 491 if(z.n(b,2)){init.globalState.Xz.Rk.NZ(new H.IY(this,y,"ping")) |
| 492 return}z=this.ml |
| 493 if(z==null){z=H.VM(new P.Sw(null,0,0,0),[null]) |
| 494 z.Eo(null,null) |
| 495 this.ml=z}z.NZ(y)}, |
| 496 bc:function(a,b){var z,y |
| 497 if(!this.PX.n(0,a))return |
| 498 z=J.x(b) |
| 499 if(!z.n(b,0))y=z.n(b,1)&&!this.mf |
| 500 else y=!0 |
| 501 if(y){this.Dm() |
| 502 return}if(z.n(b,2)){z=init.globalState.Xz |
| 503 y=this.gIm() |
| 504 z.Rk.NZ(new H.IY(this,y,"kill")) |
| 505 return}z=this.ml |
| 506 if(z==null){z=H.VM(new P.Sw(null,0,0,0),[null]) |
| 507 z.Eo(null,null) |
| 508 this.ml=z}z.NZ(this.gIm())}, |
| 509 vV:function(a){var z,y,x |
| 510 z=init.globalState.N0 |
| 511 init.globalState.N0=this |
| 512 $=this.En |
| 513 y=null |
| 514 this.mf=!0 |
| 515 try{y=a.$0()}finally{this.mf=!1 |
| 516 init.globalState.N0=z |
| 517 if(z!=null)$=z.gEn() |
| 518 if(this.ml!=null)for(;x=this.ml,!x.gl0(x);)this.ml.Ux().$0()}return y}, |
| 519 hV:function(a){return this.Gx.t(0,a)}, |
| 520 aU:function(a,b){var z=this.Gx |
| 521 if(z.x4(a))throw H.b(P.FM("Registry: ports must be registered only once.")) |
| 522 z.u(0,a,b)}, |
| 523 PC:function(){if(this.Gx.X5-this.fW.X5>0||this.UF)init.globalState.i2.u(0,this.j
O,this) |
| 524 else this.Dm()}, |
| 525 Dm:[function(){var z,y,x |
| 526 z=this.ml |
| 527 if(z!=null)z.V1(0) |
| 528 for(z=this.Gx,y=z.gUQ(z),x=y.l6,y=H.VM(new H.MH(null,x.gA(x),y.T6),[H.Kp(y,0),H.
Kp(y,1)]);y.G();)y.lo.pr() |
| 529 if(z.X5>0){z.lX=null |
| 530 z.H9=null |
| 531 z.OB=null |
| 532 z.OX=null |
| 533 z.vv=null |
| 534 z.X5=0 |
| 535 z.zN=z.zN+1&67108863}z=this.fW |
| 536 if(z.X5>0){z.lX=null |
| 537 z.H9=null |
| 538 z.OB=null |
| 539 z.OX=null |
| 540 z.vv=null |
| 541 z.X5=0 |
| 542 z.zN=z.zN+1&67108863}init.globalState.i2.Rz(0,this.jO) |
| 543 z=this.Jp |
| 544 if(z!=null){for(z=new H.a7(z,z.length,0,null);z.G();)z.lo.wR(null) |
| 545 this.Jp=null}},"$0","gIm",0,0,1]}, |
| 546 NY:{ |
| 547 "^":"Tp:1;a", |
| 548 $0:function(){this.a.wR(null)}}, |
| 549 cC:{ |
| 550 "^":"a;Rk,GL", |
| 551 Jc:function(){var z=this.Rk |
| 552 if(z.av===z.HV)return |
| 553 return z.Ux()}, |
| 554 xB:function(){var z,y,x |
| 555 z=this.Jc() |
| 556 if(z==null){if(init.globalState.yc!=null&&init.globalState.i2.x4(init.globalStat
e.yc.jO)&&init.globalState.Ai===!0&&init.globalState.yc.Gx.X5===0)H.vh(P.FM("Pro
gram exited with open ReceivePorts.")) |
| 557 y=init.globalState |
| 558 if(y.EF===!0&&y.i2.X5===0&&y.Xz.GL===0){y=y.vd |
| 559 x=H.Gy(P.EF(["command","close"],null,null)) |
| 560 y.toString |
| 561 self.postMessage(x)}return!1}z.VU() |
| 562 return!0}, |
| 563 Wu:function(){if($.C5()!=null)new H.RA(this).$0() |
| 564 else for(;this.xB(););}, |
| 565 bL:function(){var z,y,x,w,v |
| 566 if(init.globalState.EF!==!0)this.Wu() |
| 567 else try{this.Wu()}catch(x){w=H.Ru(x) |
| 568 z=w |
| 569 y=new H.XO(x,null) |
| 570 w=init.globalState.vd |
| 571 v=H.Gy(P.EF(["command","error","msg",H.d(z)+"\n"+H.d(y)],null,null)) |
| 572 w.toString |
| 573 self.postMessage(v)}}}, |
| 574 RA:{ |
| 575 "^":"Tp:1;a", |
| 576 $0:function(){if(!this.a.xB())return |
| 577 P.rT(C.RT,this)}}, |
| 578 IY:{ |
| 579 "^":"a;od,i3,G1", |
| 580 VU:function(){var z=this.od |
| 581 if(z.UF){z.C9.push(this) |
| 582 return}z.vV(this.i3)}}, |
| 583 JH:{ |
| 584 "^":"a;"}, |
| 585 jl:{ |
| 586 "^":"Tp:7;a,b,c,d,e,f", |
| 587 $0:function(){H.Z7(this.a,this.b,this.c,this.d,this.e,this.f)}}, |
| 588 vK:{ |
| 589 "^":"Tp:1;a,b,c,d", |
| 590 $0:function(){var z,y,x |
| 591 if(this.d!==!0)this.a.$1(this.c) |
| 592 else{z=this.a |
| 593 y=H.N7() |
| 594 x=H.KT(y,[y,y]).BD(z) |
| 595 if(x)z.$2(this.b,this.c) |
| 596 else{y=H.KT(y,[y]).BD(z) |
| 597 if(y)z.$1(this.b) |
| 598 else z.$0()}}}}, |
| 599 Iy:{ |
| 600 "^":"a;", |
| 601 $isbC:true, |
| 602 $isIU:true}, |
| 603 JM:{ |
| 604 "^":"Iy;JE,Jz", |
| 605 wR:function(a){var z,y,x,w,v |
| 606 z={} |
| 607 y=this.Jz |
| 608 x=init.globalState.i2.t(0,y) |
| 609 if(x==null)return |
| 610 w=this.JE |
| 611 if(w.gKS())return |
| 612 v=init.globalState.N0!=null&&init.globalState.N0.jO!==y |
| 613 z.a=a |
| 614 if(v)z.a=H.Gy(a) |
| 615 if(x.gEE()===w){z=z.a |
| 616 y=J.U6(z) |
| 617 switch(y.t(z,0)){case"pause":x.v8(y.t(z,1),y.t(z,2)) |
| 618 break |
| 619 case"resume":x.cK(y.t(z,1)) |
| 620 break |
| 621 case"add-ondone":x.iK(y.t(z,1)) |
| 622 break |
| 623 case"remove-ondone":x.Hh(y.t(z,1)) |
| 624 break |
| 625 case"set-errors-fatal":x.MZ(y.t(z,1),y.t(z,2)) |
| 626 break |
| 627 case"ping":x.Wq(y.t(z,1),y.t(z,2)) |
| 628 break |
| 629 case"kill":x.bc(y.t(z,1),y.t(z,2)) |
| 630 break}return}y=init.globalState.Xz |
| 631 w="receive "+H.d(a) |
| 632 y.Rk.NZ(new H.IY(x,new H.Ua(z,this,v),w))}, |
| 633 n:function(a,b){if(b==null)return!1 |
| 634 return!!J.x(b).$isJM&&J.de(this.JE,b.JE)}, |
| 635 giO:function(a){return this.JE.gx6()}, |
| 636 $isJM:true, |
| 637 $isbC:true, |
| 638 $isIU:true}, |
| 639 Ua:{ |
| 640 "^":"Tp:7;a,b,c", |
| 641 $0:function(){var z,y |
| 642 z=this.b.JE |
| 643 if(!z.gKS()){if(this.c){y=this.a |
| 644 y.a=H.Hh(y.a)}z.FL(this.a.a)}}}, |
| 645 ns:{ |
| 646 "^":"Iy;Ws,bv,Jz", |
| 647 wR:function(a){var z,y |
| 648 z=H.Gy(P.EF(["command","message","port",this,"msg",a],null,null)) |
| 649 if(init.globalState.EF===!0){init.globalState.vd.toString |
| 650 self.postMessage(z)}else{y=init.globalState.XC.t(0,this.Ws) |
| 651 if(y!=null)y.postMessage(z)}}, |
| 652 n:function(a,b){if(b==null)return!1 |
| 653 return!!J.x(b).$isns&&J.de(this.Ws,b.Ws)&&J.de(this.Jz,b.Jz)&&J.de(this.bv,b.bv)
}, |
| 654 giO:function(a){var z,y,x |
| 655 z=this.Ws |
| 656 if(typeof z!=="number")return z.O() |
| 657 y=this.Jz |
| 658 if(typeof y!=="number")return y.O() |
| 659 x=this.bv |
| 660 if(typeof x!=="number")return H.s(x) |
| 661 return(z<<16^y<<8^x)>>>0}, |
| 662 $isns:true, |
| 663 $isbC:true, |
| 664 $isIU:true}, |
| 665 yo:{ |
| 666 "^":"a;x6<,Sy,KS<", |
| 667 aV:function(a){return this.Sy.$1(a)}, |
| 668 pr:function(){this.KS=!0 |
| 669 this.Sy=null}, |
| 670 FL:function(a){if(this.KS)return |
| 671 this.aV(a)}, |
| 672 static:{"^":"ty"}}, |
| 673 Bj:{ |
| 674 "^":"Tf;CN,iq", |
| 675 aC:function(a){if(!!a.$isJM)return["sendport",init.globalState.oL,a.Jz,a.JE.gx6(
)] |
| 676 if(!!a.$isns)return["sendport",a.Ws,a.Jz,a.bv] |
| 677 throw H.b("Illegal underlying port "+a.bu(0))}, |
| 678 yf:function(a){if(!!a.$isku)return["capability",a.x6] |
| 679 throw H.b("Capability not serializable: "+a.bu(0))}}, |
| 680 NO:{ |
| 681 "^":"oo;iq", |
| 682 aC:function(a){if(!!a.$isJM)return new H.JM(a.JE,a.Jz) |
| 683 if(!!a.$isns)return new H.ns(a.Ws,a.bv,a.Jz) |
| 684 throw H.b("Illegal underlying port "+a.bu(0))}, |
| 685 yf:function(a){if(!!a.$isku)return new H.ku(a.x6) |
| 686 throw H.b("Capability not serializable: "+a.bu(0))}}, |
| 687 II:{ |
| 688 "^":"iY;RZ", |
| 689 Vf:function(a){var z,y,x,w,v,u |
| 690 z=J.U6(a) |
| 691 y=z.t(a,1) |
| 692 x=z.t(a,2) |
| 693 w=z.t(a,3) |
| 694 if(J.de(y,init.globalState.oL)){v=init.globalState.i2.t(0,x) |
| 695 if(v==null)return |
| 696 u=v.hV(w) |
| 697 if(u==null)return |
| 698 return new H.JM(u,x)}else return new H.ns(y,w,x)}, |
| 699 Op:function(a){return new H.ku(J.UQ(a,1))}}, |
| 700 fP:{ |
| 701 "^":"a;kw", |
| 702 t:function(a,b){return b.__MessageTraverser__attached_info__}, |
| 703 u:function(a,b,c){this.kw.push(b) |
| 704 b.__MessageTraverser__attached_info__=c}, |
| 705 CH:function(a){this.kw=[]}, |
| 706 F4:function(){var z,y,x |
| 707 for(z=this.kw.length,y=0;y<z;++y){x=this.kw |
| 708 if(y>=x.length)return H.e(x,y) |
| 709 x[y].__MessageTraverser__attached_info__=null}this.kw=null}}, |
| 710 X1:{ |
| 711 "^":"a;", |
| 712 t:function(a,b){return}, |
| 713 u:function(a,b,c){}, |
| 714 CH:function(a){}, |
| 715 F4:function(){}}, |
| 716 HU:{ |
| 717 "^":"a;", |
| 718 h7:function(a){var z |
| 719 if(H.vM(a))return this.Pq(a) |
| 720 this.iq.CH(0) |
| 721 z=null |
| 722 try{z=this.I8(a)}finally{this.iq.F4()}return z}, |
| 723 I8:function(a){var z |
| 724 if(a==null||typeof a==="string"||typeof a==="number"||typeof a==="boolean")retur
n this.Pq(a) |
| 725 z=J.x(a) |
| 726 if(!!z.$iszM)return this.wb(a) |
| 727 if(!!z.$isZ0)return this.w5(a) |
| 728 if(!!z.$isbC)return this.aC(a) |
| 729 if(!!z.$isIU)return this.yf(a) |
| 730 return this.N1(a)}, |
| 731 N1:function(a){throw H.b("Message serialization: Illegal value "+H.d(a)+" passed
")}}, |
| 732 oo:{ |
| 733 "^":"HU;", |
| 734 Pq:function(a){return a}, |
| 735 wb:function(a){var z,y,x |
| 736 z=this.iq.t(0,a) |
| 737 if(z!=null)return z |
| 738 y=J.q8(a) |
| 739 z=Array(y) |
| 740 z.fixed$length=init |
| 741 this.iq.u(0,a,z) |
| 742 for(x=0;x<y;++x){if(x>=a.length)return H.e(a,x) |
| 743 z[x]=this.I8(a[x])}return z}, |
| 744 w5:function(a){var z,y |
| 745 z={} |
| 746 y=this.iq.t(0,a) |
| 747 z.a=y |
| 748 if(y!=null)return y |
| 749 y=P.L5(null,null,null,null,null) |
| 750 z.a=y |
| 751 this.iq.u(0,a,y) |
| 752 a.aN(0,new H.OW(z,this)) |
| 753 return z.a}, |
| 754 aC:function(a){return H.vh(P.SY(null))}, |
| 755 yf:function(a){return H.vh(P.SY(null))}}, |
| 756 OW:{ |
| 757 "^":"Tp:8;a,b", |
| 758 $2:function(a,b){var z=this.b |
| 759 J.kW(this.a.a,z.I8(a),z.I8(b))}}, |
| 760 Tf:{ |
| 761 "^":"HU;", |
| 762 Pq:function(a){return a}, |
| 763 wb:function(a){var z,y |
| 764 z=this.iq.t(0,a) |
| 765 if(z!=null)return["ref",z] |
| 766 y=this.CN++ |
| 767 this.iq.u(0,a,y) |
| 768 return["list",y,this.mE(a)]}, |
| 769 w5:function(a){var z,y,x,w |
| 770 z=this.iq.t(0,a) |
| 771 if(z!=null)return["ref",z] |
| 772 y=this.CN++ |
| 773 this.iq.u(0,a,y) |
| 774 x=a.gvc() |
| 775 w=this.mE(P.F(x,!0,H.ip(x,"mW",0))) |
| 776 x=a.gUQ(a) |
| 777 return["map",y,w,this.mE(P.F(x,!0,H.ip(x,"mW",0)))]}, |
| 778 mE:function(a){var z,y,x,w |
| 779 z=J.q8(a) |
| 780 y=[] |
| 781 C.Nm.sB(y,z) |
| 782 for(x=0;x<z;++x){if(x>=a.length)return H.e(a,x) |
| 783 w=this.I8(a[x]) |
| 784 if(x>=y.length)return H.e(y,x) |
| 785 y[x]=w}return y}, |
| 786 aC:function(a){return H.vh(P.SY(null))}, |
| 787 yf:function(a){return H.vh(P.SY(null))}}, |
| 788 iY:{ |
| 789 "^":"a;", |
| 790 QS:function(a){if(H.uu(a))return a |
| 791 this.RZ=P.Py(null,null,null,null,null) |
| 792 return this.XE(a)}, |
| 793 XE:function(a){var z,y |
| 794 if(a==null||typeof a==="string"||typeof a==="number"||typeof a==="boolean")retur
n a |
| 795 z=J.U6(a) |
| 796 switch(z.t(a,0)){case"ref":y=z.t(a,1) |
| 797 return this.RZ.t(0,y) |
| 798 case"list":return this.Dj(a) |
| 799 case"map":return this.tv(a) |
| 800 case"sendport":return this.Vf(a) |
| 801 case"capability":return this.Op(a) |
| 802 default:return this.PR(a)}}, |
| 803 Dj:function(a){var z,y,x,w,v |
| 804 z=J.U6(a) |
| 805 y=z.t(a,1) |
| 806 x=z.t(a,2) |
| 807 this.RZ.u(0,y,x) |
| 808 z=J.U6(x) |
| 809 w=z.gB(x) |
| 810 if(typeof w!=="number")return H.s(w) |
| 811 v=0 |
| 812 for(;v<w;++v)z.u(x,v,this.XE(z.t(x,v))) |
| 813 return x}, |
| 814 tv:function(a){var z,y,x,w,v,u,t,s |
| 815 z=P.L5(null,null,null,null,null) |
| 816 y=J.U6(a) |
| 817 x=y.t(a,1) |
| 818 this.RZ.u(0,x,z) |
| 819 w=y.t(a,2) |
| 820 v=y.t(a,3) |
| 821 y=J.U6(w) |
| 822 u=y.gB(w) |
| 823 if(typeof u!=="number")return H.s(u) |
| 824 t=J.U6(v) |
| 825 s=0 |
| 826 for(;s<u;++s)z.u(0,this.XE(y.t(w,s)),this.XE(t.t(v,s))) |
| 827 return z}, |
| 828 PR:function(a){throw H.b("Unexpected serialized object")}}, |
| 829 yH:{ |
| 830 "^":"a;Kf,zu,p9", |
| 831 Qa:function(a,b){var z,y |
| 832 if(a===0)z=$.jk().setTimeout==null||init.globalState.EF===!0 |
| 833 else z=!1 |
| 834 if(z){this.p9=1 |
| 835 z=init.globalState.Xz |
| 836 y=init.globalState.N0 |
| 837 z.Rk.NZ(new H.IY(y,new H.FA(this,b),"timer")) |
| 838 this.zu=!0}else{z=$.jk() |
| 839 if(z.setTimeout!=null){++init.globalState.Xz.GL |
| 840 this.p9=z.setTimeout(H.tR(new H.Av(this,b),0),a)}else throw H.b(P.f("Timer great
er than 0."))}}, |
| 841 static:{cy:function(a,b){var z=new H.yH(!0,!1,null) |
| 842 z.Qa(a,b) |
| 843 return z}}}, |
| 844 FA:{ |
| 845 "^":"Tp:1;a,b", |
| 846 $0:function(){this.a.p9=null |
| 847 this.b.$0()}}, |
| 848 Av:{ |
| 849 "^":"Tp:1;c,d", |
| 850 $0:function(){this.c.p9=null |
| 851 H.ox() |
| 852 this.d.$0()}}, |
| 853 ku:{ |
| 854 "^":"a;x6<", |
| 855 giO:function(a){var z=this.x6 |
| 856 if(typeof z!=="number")return z.m() |
| 857 z=C.CD.GG(z,0)^C.CD.cU(z,4294967296) |
| 858 z=(~z>>>0)+(z<<15>>>0)&4294967295 |
| 859 z=((z^z>>>12)>>>0)*5&4294967295 |
| 860 z=((z^z>>>4)>>>0)*2057&4294967295 |
| 861 return(z^z>>>16)>>>0}, |
| 862 n:function(a,b){var z,y |
| 863 if(b==null)return!1 |
| 864 if(b===this)return!0 |
| 865 if(!!J.x(b).$isku){z=this.x6 |
| 866 y=b.x6 |
| 867 return z==null?y==null:z===y}return!1}, |
| 868 $isku:true, |
| 869 $isIU:true}}],["_js_helper","dart:_js_helper",,H,{ |
| 870 "^":"", |
| 871 wV:function(a,b){var z |
| 872 if(b!=null){z=b.x |
| 873 if(z!=null)return z}return!!J.x(a).$isXj}, |
| 874 d:function(a){var z |
| 875 if(typeof a==="string")return a |
| 876 if(typeof a==="number"){if(a!==0)return""+a}else if(!0===a)return"true" |
| 877 else if(!1===a)return"false" |
| 878 else if(a==null)return"null" |
| 879 z=J.AG(a) |
| 880 if(typeof z!=="string")throw H.b(P.u(a)) |
| 881 return z}, |
| 882 eQ:function(a){var z=a.$identityHash |
| 883 if(z==null){z=Math.random()*0x3fffffff|0 |
| 884 a.$identityHash=z}return z}, |
| 885 lh:function(a){var z,y |
| 886 z=C.w2(J.x(a)) |
| 887 if(z==="Object"){y=String(a.constructor).match(/^\s*function\s*(\S*)\s*\(/)[1] |
| 888 if(typeof y==="string")z=/^\w+$/.test(y)?y:z}if(z.length>1&&C.xB.j(z,0)===36)z=C
.xB.yn(z,1) |
| 889 return(z+H.ia(H.oX(a),0,null)).replace(/[^<,> ]+/g,function(b){return init.mangl
edGlobalNames[b]||b})}, |
| 890 a5:function(a){return"Instance of '"+H.lh(a)+"'"}, |
| 891 Lw:function(a){var z |
| 892 if(0<=a){if(a<=65535)return String.fromCharCode(a) |
| 893 if(a<=1114111){z=a-65536 |
| 894 return String.fromCharCode((55296|C.jn.GG(z,10))>>>0,56320|z&1023)}}throw H.b(P.
TE(a,0,1114111))}, |
| 895 VK:function(a,b){if(a==null||typeof a==="boolean"||typeof a==="number"||typeof a
==="string")throw H.b(P.u(a)) |
| 896 return a[b]}, |
| 897 aw:function(a,b,c){if(a==null||typeof a==="boolean"||typeof a==="number"||typeof
a==="string")throw H.b(P.u(a)) |
| 898 a[b]=c}, |
| 899 s:function(a){throw H.b(P.u(a))}, |
| 900 e:function(a,b){if(a==null)J.q8(a) |
| 901 if(typeof b!=="number"||Math.floor(b)!==b)H.s(b) |
| 902 throw H.b(P.N(b))}, |
| 903 b:function(a){var z |
| 904 if(a==null)a=new P.LK() |
| 905 z=new Error() |
| 906 z.dartException=a |
| 907 if("defineProperty" in Object){Object.defineProperty(z,"message",{get:H.Ju}) |
| 908 z.name=""}else z.toString=H.Ju |
| 909 return z}, |
| 910 Ju:function(){return J.AG(this.dartException)}, |
| 911 vh:function(a){throw H.b(a)}, |
| 912 Ru:function(a){var z,y,x,w,v,u,t,s,r,q,p,o,n,m |
| 913 z=new H.Am(a) |
| 914 if(a==null)return |
| 915 if(typeof a!=="object")return a |
| 916 if("dartException" in a)return z.$1(a.dartException) |
| 917 else if(!("message" in a))return a |
| 918 y=a.message |
| 919 if("number" in a&&typeof a.number=="number"){x=a.number |
| 920 w=x&65535 |
| 921 if((C.jn.GG(x,16)&8191)===10)switch(w){case 438:return z.$1(H.T3(H.d(y)+" (Error
"+w+")",null)) |
| 922 case 445:case 5007:v=H.d(y)+" (Error "+w+")" |
| 923 return z.$1(new H.W0(v,null))}}if(a instanceof TypeError){v=$.WD() |
| 924 u=$.OI() |
| 925 t=$.PH() |
| 926 s=$.D1() |
| 927 r=$.rx() |
| 928 q=$.Y9() |
| 929 p=$.zO() |
| 930 $.Bi() |
| 931 o=$.eA() |
| 932 n=$.ko() |
| 933 m=v.qS(y) |
| 934 if(m!=null)return z.$1(H.T3(y,m)) |
| 935 else{m=u.qS(y) |
| 936 if(m!=null){m.method="call" |
| 937 return z.$1(H.T3(y,m))}else{m=t.qS(y) |
| 938 if(m==null){m=s.qS(y) |
| 939 if(m==null){m=r.qS(y) |
| 940 if(m==null){m=q.qS(y) |
| 941 if(m==null){m=p.qS(y) |
| 942 if(m==null){m=s.qS(y) |
| 943 if(m==null){m=o.qS(y) |
| 944 if(m==null){m=n.qS(y) |
| 945 v=m!=null}else v=!0}else v=!0}else v=!0}else v=!0}else v=!0}else v=!0}else v=!0 |
| 946 if(v){v=m==null?null:m.method |
| 947 return z.$1(new H.W0(y,v))}}}v=typeof y==="string"?y:"" |
| 948 return z.$1(new H.vV(v))}if(a instanceof RangeError){if(typeof y==="string"&&y.i
ndexOf("call stack")!==-1)return new P.VS() |
| 949 return z.$1(new P.AT(null))}if(typeof InternalError=="function"&&a instanceof In
ternalError)if(typeof y==="string"&&y==="too much recursion")return new P.VS() |
| 950 return a}, |
| 951 CU:function(a){if(a==null||typeof a!='object')return J.v1(a) |
| 952 else return H.eQ(a)}, |
| 953 B7:function(a,b){var z,y,x,w |
| 954 z=a.length |
| 955 for(y=0;y<z;y=w){x=y+1 |
| 956 w=x+1 |
| 957 b.u(0,a[y],a[x])}return b}, |
| 958 ft:function(a,b,c,d,e,f,g){var z=J.x(c) |
| 959 if(z.n(c,0))return H.zd(b,new H.dr(a)) |
| 960 else if(z.n(c,1))return H.zd(b,new H.TL(a,d)) |
| 961 else if(z.n(c,2))return H.zd(b,new H.KX(a,d,e)) |
| 962 else if(z.n(c,3))return H.zd(b,new H.uZ(a,d,e,f)) |
| 963 else if(z.n(c,4))return H.zd(b,new H.OQ(a,d,e,f,g)) |
| 964 else throw H.b(P.FM("Unsupported number of arguments for wrapped closure"))}, |
| 965 tR:function(a,b){var z |
| 966 if(a==null)return |
| 967 z=a.$identity |
| 968 if(!!z)return z |
| 969 z=function(c,d,e,f){return function(g,h,i,j){return f(c,e,d,g,h,i,j)}}(a,b,init.
globalState.N0,H.ft) |
| 970 a.$identity=z |
| 971 return z}, |
| 972 iA:function(a,b,c,d,e,f){var z,y,x,w,v,u,t,s,r,q,p,o,n,m |
| 973 z=b[0] |
| 974 z.$stubName |
| 975 y=z.$callName |
| 976 z.$reflectionInfo=c |
| 977 x=H.zh(z).AM |
| 978 w=d?Object.create(new H.Bp().constructor.prototype):Object.create(new H.v(null,n
ull,null,null).constructor.prototype) |
| 979 w.$initialize=w.constructor |
| 980 if(d)v=function(){this.$initialize()} |
| 981 else if(typeof dart_precompiled=="function"){u=function(g,h,i,j){this.$initializ
e(g,h,i,j)} |
| 982 v=u}else{u=$.yj |
| 983 $.yj=J.WB(u,1) |
| 984 u=new Function("a","b","c","d","this.$initialize(a,b,c,d);"+u) |
| 985 v=u}w.constructor=v |
| 986 v.prototype=w |
| 987 u=!d |
| 988 if(u){t=e.length==1&&!0 |
| 989 s=H.bx(a,z,t) |
| 990 s.$reflectionInfo=c}else{w.$name=f |
| 991 s=z |
| 992 t=!1}if(typeof x=="number")r=function(g){return function(){return init.metadata[
g]}}(x) |
| 993 else if(u&&typeof x=="function"){q=t?H.yS:H.DV |
| 994 r=function(g,h){return function(){return g.apply({$receiver:h(this)},arguments)}
}(x,q)}else throw H.b("Error in reflectionInfo.") |
| 995 w.$signature=r |
| 996 w[y]=s |
| 997 for(u=b.length,p=1;p<u;++p){o=b[p] |
| 998 n=o.$callName |
| 999 if(n!=null){m=d?o:H.bx(a,o,t) |
| 1000 w[n]=m}}w["call*"]=s |
| 1001 return v}, |
| 1002 vq:function(a,b,c,d){var z=H.DV |
| 1003 switch(b?-1:a){case 0:return function(e,f){return function(){return f(this)[e]()
}}(c,z) |
| 1004 case 1:return function(e,f){return function(g){return f(this)[e](g)}}(c,z) |
| 1005 case 2:return function(e,f){return function(g,h){return f(this)[e](g,h)}}(c,z) |
| 1006 case 3:return function(e,f){return function(g,h,i){return f(this)[e](g,h,i)}}(c,
z) |
| 1007 case 4:return function(e,f){return function(g,h,i,j){return f(this)[e](g,h,i,j)}
}(c,z) |
| 1008 case 5:return function(e,f){return function(g,h,i,j,k){return f(this)[e](g,h,i,j
,k)}}(c,z) |
| 1009 default:return function(e,f){return function(){return e.apply(f(this),arguments)
}}(d,z)}}, |
| 1010 bx:function(a,b,c){var z,y,x,w,v,u |
| 1011 if(c)return H.Hf(a,b) |
| 1012 z=b.$stubName |
| 1013 y=b.length |
| 1014 x=a[z] |
| 1015 w=b==null?x==null:b===x |
| 1016 if(typeof dart_precompiled=="function"||!w||y>=27)return H.vq(y,!w,z,b) |
| 1017 if(y===0){w=$.mJ |
| 1018 if(w==null){w=H.E2("self") |
| 1019 $.mJ=w}w="return function(){return this."+H.d(w)+"."+H.d(z)+"();" |
| 1020 v=$.yj |
| 1021 $.yj=J.WB(v,1) |
| 1022 return new Function(w+H.d(v)+"}")()}u="abcdefghijklmnopqrstuvwxyz".split("").spl
ice(0,y).join(",") |
| 1023 w="return function("+u+"){return this." |
| 1024 v=$.mJ |
| 1025 if(v==null){v=H.E2("self") |
| 1026 $.mJ=v}v=w+H.d(v)+"."+H.d(z)+"("+u+");" |
| 1027 w=$.yj |
| 1028 $.yj=J.WB(w,1) |
| 1029 return new Function(v+H.d(w)+"}")()}, |
| 1030 Z4:function(a,b,c,d){var z,y |
| 1031 z=H.DV |
| 1032 y=H.yS |
| 1033 switch(b?-1:a){case 0:throw H.b(H.Ef("Intercepted function with no arguments.")) |
| 1034 case 1:return function(e,f,g){return function(){return f(this)[e](g(this))}}(c,z
,y) |
| 1035 case 2:return function(e,f,g){return function(h){return f(this)[e](g(this),h)}}(
c,z,y) |
| 1036 case 3:return function(e,f,g){return function(h,i){return f(this)[e](g(this),h,i
)}}(c,z,y) |
| 1037 case 4:return function(e,f,g){return function(h,i,j){return f(this)[e](g(this),h
,i,j)}}(c,z,y) |
| 1038 case 5:return function(e,f,g){return function(h,i,j,k){return f(this)[e](g(this)
,h,i,j,k)}}(c,z,y) |
| 1039 case 6:return function(e,f,g){return function(h,i,j,k,l){return f(this)[e](g(thi
s),h,i,j,k,l)}}(c,z,y) |
| 1040 default:return function(e,f,g,h){return function(){h=[g(this)] |
| 1041 Array.prototype.push.apply(h,arguments) |
| 1042 return e.apply(f(this),h)}}(d,z,y)}}, |
| 1043 Hf:function(a,b){var z,y,x,w,v,u,t,s |
| 1044 z=H.oN() |
| 1045 y=$.P4 |
| 1046 if(y==null){y=H.E2("receiver") |
| 1047 $.P4=y}x=b.$stubName |
| 1048 w=b.length |
| 1049 v=typeof dart_precompiled=="function" |
| 1050 u=a[x] |
| 1051 t=b==null?u==null:b===u |
| 1052 if(v||!t||w>=28)return H.Z4(w,!t,x,b) |
| 1053 if(w===1){y="return function(){return this."+H.d(z)+"."+H.d(x)+"(this."+H.d(y)+"
);" |
| 1054 t=$.yj |
| 1055 $.yj=J.WB(t,1) |
| 1056 return new Function(y+H.d(t)+"}")()}s="abcdefghijklmnopqrstuvwxyz".split("").spl
ice(0,w-1).join(",") |
| 1057 y="return function("+s+"){return this."+H.d(z)+"."+H.d(x)+"(this."+H.d(y)+", "+s
+");" |
| 1058 t=$.yj |
| 1059 $.yj=J.WB(t,1) |
| 1060 return new Function(y+H.d(t)+"}")()}, |
| 1061 qm:function(a,b,c,d,e,f){b.fixed$length=init |
| 1062 c.fixed$length=init |
| 1063 return H.iA(a,b,c,!!d,e,f)}, |
| 1064 aE:function(a,b){var z=J.U6(b) |
| 1065 throw H.b(H.aq(H.lh(a),z.Nj(b,3,z.gB(b))))}, |
| 1066 Go:function(a,b){var z |
| 1067 if(a!=null)z=typeof a==="object"&&J.x(a)[b] |
| 1068 else z=!0 |
| 1069 if(z)return a |
| 1070 H.aE(a,b)}, |
| 1071 ag:function(a){throw H.b(P.Gz("Cyclic initialization for static "+H.d(a)))}, |
| 1072 KT:function(a,b,c){return new H.tD(a,b,c,null)}, |
| 1073 N7:function(){return C.KZ}, |
| 1074 VM:function(a,b){if(a!=null)a.$builtinTypeInfo=b |
| 1075 return a}, |
| 1076 oX:function(a){if(a==null)return |
| 1077 return a.$builtinTypeInfo}, |
| 1078 IM:function(a,b){return H.Z9(a["$as"+H.d(b)],H.oX(a))}, |
| 1079 ip:function(a,b,c){var z=H.IM(a,b) |
| 1080 return z==null?null:z[c]}, |
| 1081 Kp:function(a,b){var z=H.oX(a) |
| 1082 return z==null?null:z[b]}, |
| 1083 Ko:function(a,b){if(a==null)return"dynamic" |
| 1084 else if(typeof a==="object"&&a!==null&&a.constructor===Array)return a[0].builtin
$cls+H.ia(a,1,b) |
| 1085 else if(typeof a=="function")return a.builtin$cls |
| 1086 else if(typeof a==="number"&&Math.floor(a)===a)return C.jn.bu(a) |
| 1087 else return}, |
| 1088 ia:function(a,b,c){var z,y,x,w,v,u |
| 1089 if(a==null)return"" |
| 1090 z=P.p9("") |
| 1091 for(y=b,x=!0,w=!0;y<a.length;++y){if(x)x=!1 |
| 1092 else z.vM+=", " |
| 1093 v=a[y] |
| 1094 if(v!=null)w=!1 |
| 1095 u=H.Ko(v,c) |
| 1096 z.vM+=typeof u==="string"?u:H.d(u)}return w?"":"<"+H.d(z)+">"}, |
| 1097 Z9:function(a,b){if(typeof a==="object"&&a!==null&&a.constructor===Array)b=a |
| 1098 else if(typeof a=="function"){a=H.ml(a,null,b) |
| 1099 if(typeof a==="object"&&a!==null&&a.constructor===Array)b=a |
| 1100 else if(typeof a=="function")b=H.ml(a,null,b)}return b}, |
| 1101 hv:function(a,b){var z,y |
| 1102 if(a==null||b==null)return!0 |
| 1103 z=a.length |
| 1104 for(y=0;y<z;++y)if(!H.t1(a[y],b[y]))return!1 |
| 1105 return!0}, |
| 1106 IG:function(a,b,c){return H.ml(a,b,H.IM(b,c))}, |
| 1107 t1:function(a,b){var z,y,x,w,v,u,t |
| 1108 if(a===b)return!0 |
| 1109 if(a==null||b==null)return!0 |
| 1110 if("func" in b){if(!("func" in a)){if("$is_"+H.d(b.func) in a)return!0 |
| 1111 z=a.$signature |
| 1112 if(z==null)return!1 |
| 1113 a=z.apply(a,null)}return H.Ly(a,b)}if(b.builtin$cls==="EH"&&"func" in a)return!0 |
| 1114 y=typeof a==="object"&&a!==null&&a.constructor===Array |
| 1115 x=y?a[0]:a |
| 1116 w=typeof b==="object"&&b!==null&&b.constructor===Array |
| 1117 v=w?b[0]:b |
| 1118 u=H.Ko(v,null) |
| 1119 if(v!==x){if(!("$is"+H.d(u) in x))return!1 |
| 1120 t=x["$as"+H.d(H.Ko(v,null))]}else t=null |
| 1121 if(!y&&t==null||!w)return!0 |
| 1122 y=y?a.slice(1):null |
| 1123 w=w?b.slice(1):null |
| 1124 return H.hv(H.Z9(t,y),w)}, |
| 1125 Hc:function(a,b,c){var z,y,x,w,v |
| 1126 if(b==null&&a==null)return!0 |
| 1127 if(b==null)return c |
| 1128 if(a==null)return!1 |
| 1129 z=a.length |
| 1130 y=b.length |
| 1131 if(c){if(z<y)return!1}else if(z!==y)return!1 |
| 1132 for(x=0;x<y;++x){w=a[x] |
| 1133 v=b[x] |
| 1134 if(!(H.t1(w,v)||H.t1(v,w)))return!1}return!0}, |
| 1135 Vt:function(a,b){var z,y,x,w,v,u |
| 1136 if(b==null)return!0 |
| 1137 if(a==null)return!1 |
| 1138 z=Object.getOwnPropertyNames(b) |
| 1139 z.fixed$length=init |
| 1140 y=z |
| 1141 for(z=y.length,x=0;x<z;++x){w=y[x] |
| 1142 if(!Object.hasOwnProperty.call(a,w))return!1 |
| 1143 v=b[w] |
| 1144 u=a[w] |
| 1145 if(!(H.t1(v,u)||H.t1(u,v)))return!1}return!0}, |
| 1146 Ly:function(a,b){var z,y,x,w,v,u,t,s,r,q,p,o,n,m,l |
| 1147 if(!("func" in a))return!1 |
| 1148 if("void" in a){if(!("void" in b)&&"ret" in b)return!1}else if(!("void" in b)){z
=a.ret |
| 1149 y=b.ret |
| 1150 if(!(H.t1(z,y)||H.t1(y,z)))return!1}x=a.args |
| 1151 w=b.args |
| 1152 v=a.opt |
| 1153 u=b.opt |
| 1154 t=x!=null?x.length:0 |
| 1155 s=w!=null?w.length:0 |
| 1156 r=v!=null?v.length:0 |
| 1157 q=u!=null?u.length:0 |
| 1158 if(t>s)return!1 |
| 1159 if(t+r<s+q)return!1 |
| 1160 if(t===s){if(!H.Hc(x,w,!1))return!1 |
| 1161 if(!H.Hc(v,u,!0))return!1}else{for(p=0;p<t;++p){o=x[p] |
| 1162 n=w[p] |
| 1163 if(!(H.t1(o,n)||H.t1(n,o)))return!1}for(m=p,l=0;m<s;++l,++m){o=v[l] |
| 1164 n=w[m] |
| 1165 if(!(H.t1(o,n)||H.t1(n,o)))return!1}for(m=0;m<q;++l,++m){o=v[l] |
| 1166 n=u[m] |
| 1167 if(!(H.t1(o,n)||H.t1(n,o)))return!1}}return H.Vt(a.named,b.named)}, |
| 1168 ml:function(a,b,c){return a.apply(b,c)}, |
| 1169 or:function(a){var z=$.NF |
| 1170 return"Instance of "+(z==null?"<Unknown>":z.$1(a))}, |
| 1171 wz:function(a){return H.eQ(a)}, |
| 1172 iw:function(a,b,c){Object.defineProperty(a,b,{value:c,enumerable:false,writable:
true,configurable:true})}, |
| 1173 w3:function(a){var z,y,x,w,v,u |
| 1174 z=$.NF.$1(a) |
| 1175 y=$.nw[z] |
| 1176 if(y!=null){Object.defineProperty(a,init.dispatchPropertyName,{value:y,enumerabl
e:false,writable:true,configurable:true}) |
| 1177 return y.i}x=$.vv[z] |
| 1178 if(x!=null)return x |
| 1179 w=init.interceptorsByTag[z] |
| 1180 if(w==null){z=$.TX.$2(a,z) |
| 1181 if(z!=null){y=$.nw[z] |
| 1182 if(y!=null){Object.defineProperty(a,init.dispatchPropertyName,{value:y,enumerabl
e:false,writable:true,configurable:true}) |
| 1183 return y.i}x=$.vv[z] |
| 1184 if(x!=null)return x |
| 1185 w=init.interceptorsByTag[z]}}if(w==null)return |
| 1186 x=w.prototype |
| 1187 v=z[0] |
| 1188 if(v==="!"){y=H.Va(x) |
| 1189 $.nw[z]=y |
| 1190 Object.defineProperty(a,init.dispatchPropertyName,{value:y,enumerable:false,writ
able:true,configurable:true}) |
| 1191 return y.i}if(v==="~"){$.vv[z]=x |
| 1192 return x}if(v==="-"){u=H.Va(x) |
| 1193 Object.defineProperty(Object.getPrototypeOf(a),init.dispatchPropertyName,{value:
u,enumerable:false,writable:true,configurable:true}) |
| 1194 return u.i}if(v==="+")return H.Lc(a,x) |
| 1195 if(v==="*")throw H.b(P.SY(z)) |
| 1196 if(init.leafTags[z]===true){u=H.Va(x) |
| 1197 Object.defineProperty(Object.getPrototypeOf(a),init.dispatchPropertyName,{value:
u,enumerable:false,writable:true,configurable:true}) |
| 1198 return u.i}else return H.Lc(a,x)}, |
| 1199 Lc:function(a,b){var z,y |
| 1200 z=Object.getPrototypeOf(a) |
| 1201 y=J.Qu(b,z,null,null) |
| 1202 Object.defineProperty(z,init.dispatchPropertyName,{value:y,enumerable:false,writ
able:true,configurable:true}) |
| 1203 return b}, |
| 1204 Va:function(a){return J.Qu(a,!1,null,!!a.$isXj)}, |
| 1205 ow:function(a,b,c){var z=b.prototype |
| 1206 if(init.leafTags[a]===true)return J.Qu(z,!1,null,!!z.$isXj) |
| 1207 else return J.Qu(z,c,null,null)}, |
| 1208 XD:function(){if(!0===$.Bv)return |
| 1209 $.Bv=!0 |
| 1210 H.Z1()}, |
| 1211 Z1:function(){var z,y,x,w,v,u,t,s |
| 1212 $.nw=Object.create(null) |
| 1213 $.vv=Object.create(null) |
| 1214 H.kO() |
| 1215 z=init.interceptorsByTag |
| 1216 y=Object.getOwnPropertyNames(z) |
| 1217 if(typeof window!="undefined"){window |
| 1218 x=function(){} |
| 1219 for(w=0;w<y.length;++w){v=y[w] |
| 1220 u=$.x7.$1(v) |
| 1221 if(u!=null){t=H.ow(v,z[v],u) |
| 1222 if(t!=null){Object.defineProperty(u,init.dispatchPropertyName,{value:t,enumerabl
e:false,writable:true,configurable:true}) |
| 1223 x.prototype=u}}}}for(w=0;w<y.length;++w){v=y[w] |
| 1224 if(/^[A-Za-z_]/.test(v)){s=z[v] |
| 1225 z["!"+v]=s |
| 1226 z["~"+v]=s |
| 1227 z["-"+v]=s |
| 1228 z["+"+v]=s |
| 1229 z["*"+v]=s}}}, |
| 1230 kO:function(){var z,y,x,w,v,u,t |
| 1231 z=C.MA() |
| 1232 z=H.ud(C.Mc,H.ud(C.hQ,H.ud(C.XQ,H.ud(C.XQ,H.ud(C.M1,H.ud(C.lR,H.ud(C.ur(C.w2),z)
)))))) |
| 1233 if(typeof dartNativeDispatchHooksTransformer!="undefined"){y=dartNativeDispatchH
ooksTransformer |
| 1234 if(typeof y=="function")y=[y] |
| 1235 if(y.constructor==Array)for(x=0;x<y.length;++x){w=y[x] |
| 1236 if(typeof w=="function")z=w(z)||z}}v=z.getTag |
| 1237 u=z.getUnknownTag |
| 1238 t=z.prototypeForTag |
| 1239 $.NF=new H.dC(v) |
| 1240 $.TX=new H.wN(u) |
| 1241 $.x7=new H.VX(t)}, |
| 1242 ud:function(a,b){return a(b)||b}, |
| 1243 FD:{ |
| 1244 "^":"a;mr,Rn,XZ,Rv,hG,Mo,AM,NE", |
| 1245 static:{"^":"t4,FV,Oc,pv",zh:function(a){var z,y,x |
| 1246 z=a.$reflectionInfo |
| 1247 if(z==null)return |
| 1248 z.fixed$length=init |
| 1249 z=z |
| 1250 y=z[0] |
| 1251 x=z[1] |
| 1252 return new H.FD(a,z,(y&1)===1,y>>1,x>>1,(x&1)===1,z[2],null)}}}, |
| 1253 Zr:{ |
| 1254 "^":"a;bT,rq,Xs,Fa,Ga,EP", |
| 1255 qS:function(a){var z,y,x |
| 1256 z=new RegExp(this.bT).exec(a) |
| 1257 if(z==null)return |
| 1258 y={} |
| 1259 x=this.rq |
| 1260 if(x!==-1)y.arguments=z[x+1] |
| 1261 x=this.Xs |
| 1262 if(x!==-1)y.argumentsExpr=z[x+1] |
| 1263 x=this.Fa |
| 1264 if(x!==-1)y.expr=z[x+1] |
| 1265 x=this.Ga |
| 1266 if(x!==-1)y.method=z[x+1] |
| 1267 x=this.EP |
| 1268 if(x!==-1)y.receiver=z[x+1] |
| 1269 return y}, |
| 1270 static:{"^":"lm,k1,Re,fN,qi,rZ,BX,tt,dt,A7",cM:function(a){var z,y,x,w,v,u |
| 1271 a=a.replace(String({}),'$receiver$').replace(new RegExp("[[\\]{}()*+?.\\\\^$|]",
'g'),'\\$&') |
| 1272 z=a.match(/\\\$[a-zA-Z]+\\\$/g) |
| 1273 if(z==null)z=[] |
| 1274 y=z.indexOf("\\$arguments\\$") |
| 1275 x=z.indexOf("\\$argumentsExpr\\$") |
| 1276 w=z.indexOf("\\$expr\\$") |
| 1277 v=z.indexOf("\\$method\\$") |
| 1278 u=z.indexOf("\\$receiver\\$") |
| 1279 return new H.Zr(a.replace('\\$arguments\\$','((?:x|[^x])*)').replace('\\$argumen
tsExpr\\$','((?:x|[^x])*)').replace('\\$expr\\$','((?:x|[^x])*)').replace('\\$me
thod\\$','((?:x|[^x])*)').replace('\\$receiver\\$','((?:x|[^x])*)'),y,x,w,v,u)},
S7:function(a){return function($expr$){var $argumentsExpr$='$arguments$' |
| 1280 try{$expr$.$method$($argumentsExpr$)}catch(z){return z.message}}(a)},Mj:function
(a){return function($expr$){try{$expr$.$method$}catch(z){return z.message}}(a)}}
}, |
| 1281 W0:{ |
| 1282 "^":"Ge;V7,Ga", |
| 1283 bu:function(a){var z=this.Ga |
| 1284 if(z==null)return"NullError: "+H.d(this.V7) |
| 1285 return"NullError: Cannot call \""+H.d(z)+"\" on null"}, |
| 1286 $isGe:true}, |
| 1287 az:{ |
| 1288 "^":"Ge;V7,Ga,EP", |
| 1289 bu:function(a){var z,y |
| 1290 z=this.Ga |
| 1291 if(z==null)return"NoSuchMethodError: "+H.d(this.V7) |
| 1292 y=this.EP |
| 1293 if(y==null)return"NoSuchMethodError: Cannot call \""+H.d(z)+"\" ("+H.d(this.V7)+
")" |
| 1294 return"NoSuchMethodError: Cannot call \""+H.d(z)+"\" on \""+H.d(y)+"\" ("+H.d(th
is.V7)+")"}, |
| 1295 $isGe:true, |
| 1296 static:{T3:function(a,b){var z,y |
| 1297 z=b==null |
| 1298 y=z?null:b.method |
| 1299 z=z?null:b.receiver |
| 1300 return new H.az(a,y,z)}}}, |
| 1301 vV:{ |
| 1302 "^":"Ge;V7", |
| 1303 bu:function(a){var z=this.V7 |
| 1304 return C.xB.gl0(z)?"Error":"Error: "+z}}, |
| 1305 Am:{ |
| 1306 "^":"Tp:9;a", |
| 1307 $1:function(a){if(!!J.x(a).$isGe)if(a.$thrownJsError==null)a.$thrownJsError=this
.a |
| 1308 return a}}, |
| 1309 XO:{ |
| 1310 "^":"a;lA,ui", |
| 1311 bu:function(a){var z,y |
| 1312 z=this.ui |
| 1313 if(z!=null)return z |
| 1314 z=this.lA |
| 1315 y=typeof z==="object"?z.stack:null |
| 1316 z=y==null?"":y |
| 1317 this.ui=z |
| 1318 return z}}, |
| 1319 dr:{ |
| 1320 "^":"Tp:7;a", |
| 1321 $0:function(){return this.a.$0()}}, |
| 1322 TL:{ |
| 1323 "^":"Tp:7;b,c", |
| 1324 $0:function(){return this.b.$1(this.c)}}, |
| 1325 KX:{ |
| 1326 "^":"Tp:7;d,e,f", |
| 1327 $0:function(){return this.d.$2(this.e,this.f)}}, |
| 1328 uZ:{ |
| 1329 "^":"Tp:7;UI,bK,Gq,Rm", |
| 1330 $0:function(){return this.UI.$3(this.bK,this.Gq,this.Rm)}}, |
| 1331 OQ:{ |
| 1332 "^":"Tp:7;w3,HZ,mG,xC,cj", |
| 1333 $0:function(){return this.w3.$4(this.HZ,this.mG,this.xC,this.cj)}}, |
| 1334 Tp:{ |
| 1335 "^":"a;", |
| 1336 bu:function(a){return"Closure"}, |
| 1337 gKu:function(){return this}}, |
| 1338 Bp:{ |
| 1339 "^":"Tp;"}, |
| 1340 v:{ |
| 1341 "^":"Bp;nw,jm,EP,RA", |
| 1342 n:function(a,b){if(b==null)return!1 |
| 1343 if(this===b)return!0 |
| 1344 if(!J.x(b).$isv)return!1 |
| 1345 return this.nw===b.nw&&this.jm===b.jm&&this.EP===b.EP}, |
| 1346 giO:function(a){var z,y |
| 1347 z=this.EP |
| 1348 if(z==null)y=H.eQ(this.nw) |
| 1349 else y=typeof z!=="object"?J.v1(z):H.eQ(z) |
| 1350 z=H.eQ(this.jm) |
| 1351 if(typeof y!=="number")return y.w() |
| 1352 return(y^z)>>>0}, |
| 1353 $isv:true, |
| 1354 static:{"^":"mJ,P4",DV:function(a){return a.nw},yS:function(a){return a.EP},oN:f
unction(){var z=$.mJ |
| 1355 if(z==null){z=H.E2("self") |
| 1356 $.mJ=z}return z},E2:function(a){var z,y,x,w,v |
| 1357 z=new H.v("self","target","receiver","name") |
| 1358 y=Object.getOwnPropertyNames(z) |
| 1359 y.fixed$length=init |
| 1360 x=y |
| 1361 for(y=x.length,w=0;w<y;++w){v=x[w] |
| 1362 if(z[v]===a)return v}}}}, |
| 1363 Pe:{ |
| 1364 "^":"Ge;G1", |
| 1365 bu:function(a){return this.G1}, |
| 1366 $isGe:true, |
| 1367 static:{aq:function(a,b){return new H.Pe("CastError: Casting value of type "+H.d
(a)+" to incompatible type "+H.d(b))}}}, |
| 1368 Eq:{ |
| 1369 "^":"Ge;G1", |
| 1370 bu:function(a){return"RuntimeError: "+H.d(this.G1)}, |
| 1371 static:{Ef:function(a){return new H.Eq(a)}}}, |
| 1372 lb:{ |
| 1373 "^":"a;"}, |
| 1374 tD:{ |
| 1375 "^":"lb;dw,Iq,is,p6", |
| 1376 BD:function(a){var z=this.rP(a) |
| 1377 return z==null?!1:H.Ly(z,this.za())}, |
| 1378 rP:function(a){var z=J.x(a) |
| 1379 return"$signature" in z?z.$signature():null}, |
| 1380 za:function(){var z,y,x,w,v,u,t |
| 1381 z={func:"dynafunc"} |
| 1382 y=this.dw |
| 1383 x=J.x(y) |
| 1384 if(!!x.$isnr)z.void=true |
| 1385 else if(!x.$ishJ)z.ret=y.za() |
| 1386 y=this.Iq |
| 1387 if(y!=null&&y.length!==0)z.args=H.Dz(y) |
| 1388 y=this.is |
| 1389 if(y!=null&&y.length!==0)z.opt=H.Dz(y) |
| 1390 y=this.p6 |
| 1391 if(y!=null){w={} |
| 1392 v=H.kU(y) |
| 1393 for(x=v.length,u=0;u<x;++u){t=v[u] |
| 1394 w[t]=y[t].za()}z.named=w}return z}, |
| 1395 bu:function(a){var z,y,x,w,v,u,t,s |
| 1396 z=this.Iq |
| 1397 if(z!=null)for(y=z.length,x="(",w=!1,v=0;v<y;++v,w=!0){u=z[v] |
| 1398 if(w)x+=", " |
| 1399 x+=H.d(u)}else{x="(" |
| 1400 w=!1}z=this.is |
| 1401 if(z!=null&&z.length!==0){x=(w?x+", ":x)+"[" |
| 1402 for(y=z.length,w=!1,v=0;v<y;++v,w=!0){u=z[v] |
| 1403 if(w)x+=", " |
| 1404 x+=H.d(u)}x+="]"}else{z=this.p6 |
| 1405 if(z!=null){x=(w?x+", ":x)+"{" |
| 1406 t=H.kU(z) |
| 1407 for(y=t.length,w=!1,v=0;v<y;++v,w=!0){s=t[v] |
| 1408 if(w)x+=", " |
| 1409 x+=H.d(z[s].za())+" "+s}x+="}"}}return x+(") -> "+H.d(this.dw))}, |
| 1410 static:{"^":"lc",Dz:function(a){var z,y,x |
| 1411 a=a |
| 1412 z=[] |
| 1413 for(y=a.length,x=0;x<y;++x)z.push(a[x].za()) |
| 1414 return z}}}, |
| 1415 hJ:{ |
| 1416 "^":"lb;", |
| 1417 bu:function(a){return"dynamic"}, |
| 1418 za:function(){return}, |
| 1419 $ishJ:true}, |
| 1420 dC:{ |
| 1421 "^":"Tp:9;a", |
| 1422 $1:function(a){return this.a(a)}}, |
| 1423 wN:{ |
| 1424 "^":"Tp:10;b", |
| 1425 $2:function(a,b){return this.b(a,b)}}, |
| 1426 VX:{ |
| 1427 "^":"Tp:11;c", |
| 1428 $1:function(a){return this.c(a)}}}],["dart._internal","dart:_internal",,H,{ |
| 1429 "^":"", |
| 1430 bQ:function(a,b){var z |
| 1431 for(z=new H.a7(a,a.length,0,null);z.G();)b.$1(z.lo)}, |
| 1432 mx:function(a,b,c){var z,y,x,w |
| 1433 for(y=0;x=$.RM(),y<x.length;++y){x=x[y] |
| 1434 w=a |
| 1435 if(x==null?w==null:x===w)return H.d(b)+"..."+H.d(c)}z=P.p9("") |
| 1436 try{$.RM().push(a) |
| 1437 z.KF(b) |
| 1438 z.We(a,", ") |
| 1439 z.KF(c)}finally{x=$.RM() |
| 1440 if(0>=x.length)return H.e(x,0) |
| 1441 x.pop()}return z.gvM()}, |
| 1442 qG:function(a,b,c,d,e){var z |
| 1443 if(b<0||b>a.length)H.vh(P.TE(b,0,a.length)) |
| 1444 if(c<b||c>a.length)H.vh(P.TE(c,b,a.length)) |
| 1445 z=c-b |
| 1446 if(z===0)return |
| 1447 if(e+z>d.length)throw H.b(H.ar()) |
| 1448 H.Gj(d,e,a,b,z)}, |
| 1449 ar:function(){return new P.lj("Too few elements")}, |
| 1450 Gj:function(a,b,c,d,e){var z,y,x,w |
| 1451 if(b<d)for(z=b+e-1,y=d+e-1,x=a.length;z>=b;--z,--y){if(z>=x)return H.e(a,z) |
| 1452 C.Nm.u(c,y,a[z])}else for(x=b+e,w=a.length,y=d,z=b;z<x;++z,++y){if(z>=w)return H
.e(a,z) |
| 1453 C.Nm.u(c,y,a[z])}}, |
| 1454 Fv:function(a){return a.gfN()}, |
| 1455 a7:{ |
| 1456 "^":"a;l6,SW,G7,lo", |
| 1457 gl:function(){return this.lo}, |
| 1458 G:function(){var z,y,x,w |
| 1459 z=this.l6 |
| 1460 y=J.U6(z) |
| 1461 x=y.gB(z) |
| 1462 if(this.SW!==x)throw H.b(P.a4(z)) |
| 1463 w=this.G7 |
| 1464 if(w>=x){this.lo=null |
| 1465 return!1}this.lo=y.Zv(z,w);++this.G7 |
| 1466 return!0}}, |
| 1467 i1:{ |
| 1468 "^":"mW;l6,T6", |
| 1469 gA:function(a){var z=this.l6 |
| 1470 z=new H.MH(null,z.gA(z),this.T6) |
| 1471 z.$builtinTypeInfo=this.$builtinTypeInfo |
| 1472 return z}, |
| 1473 gB:function(a){var z=this.l6 |
| 1474 return z.gB(z)}, |
| 1475 $asmW:function(a,b){return[b]}, |
| 1476 static:{K1:function(a,b,c,d){return H.VM(new H.xy(a,b),[c,d])}}}, |
| 1477 xy:{ |
| 1478 "^":"i1;l6,T6"}, |
| 1479 MH:{ |
| 1480 "^":"An;lo,OI,T6", |
| 1481 mb:function(a){return this.T6.$1(a)}, |
| 1482 G:function(){var z=this.OI |
| 1483 if(z.G()){this.lo=this.mb(z.gl()) |
| 1484 return!0}this.lo=null |
| 1485 return!1}, |
| 1486 gl:function(){return this.lo}}, |
| 1487 SU:{ |
| 1488 "^":"a;"}}],["dart._js_names","dart:_js_names",,H,{ |
| 1489 "^":"", |
| 1490 kU:function(a){var z=H.VM(function(b,c){var y=[] |
| 1491 for(var x in b){if(c.call(b,x))y.push(x)}return y}(a,Object.prototype.hasOwnProp
erty),[null]) |
| 1492 z.fixed$length=init |
| 1493 return z}}],["dart.async","dart:async",,P,{ |
| 1494 "^":"", |
| 1495 xg:function(){if($.jk().scheduleImmediate!=null)return P.Sx() |
| 1496 return P.K7()}, |
| 1497 ZV:[function(a){++init.globalState.Xz.GL |
| 1498 $.jk().scheduleImmediate(H.tR(new P.C6(a),0))},"$1","Sx",2,0,0], |
| 1499 Bz:[function(a){P.jL(C.RT,a)},"$1","K7",2,0,0], |
| 1500 VH:function(a,b){var z=H.N7() |
| 1501 z=H.KT(z,[z,z]).BD(a) |
| 1502 if(z){b.toString |
| 1503 return a}else{b.toString |
| 1504 return a}}, |
| 1505 Cx:function(){var z=$.S6 |
| 1506 for(;z!=null;){z.Ki() |
| 1507 z=z.aw |
| 1508 $.S6=z}$.k8=null}, |
| 1509 BG:[function(){var z |
| 1510 try{P.Cx()}catch(z){H.Ru(z) |
| 1511 $.ej().$1(P.qZ()) |
| 1512 $.S6=$.S6.aw |
| 1513 throw z}},"$0","qZ",0,0,1], |
| 1514 IA:function(a){var z,y |
| 1515 z=$.k8 |
| 1516 if(z==null){z=new P.OM(a,null) |
| 1517 $.k8=z |
| 1518 $.S6=z |
| 1519 $.ej().$1(P.qZ())}else{y=new P.OM(a,null) |
| 1520 z.aw=y |
| 1521 $.k8=y}}, |
| 1522 FE:function(a,b,c){var z,y,x,w |
| 1523 try{b.$1(a.$0())}catch(x){w=H.Ru(x) |
| 1524 z=w |
| 1525 y=new H.XO(x,null) |
| 1526 c.$2(z,y)}}, |
| 1527 NX:function(a,b,c,d){a.ed() |
| 1528 b.K5(c,d)}, |
| 1529 TB:function(a,b){return new P.uR(a,b)}, |
| 1530 rT:function(a,b){var z=$.X3 |
| 1531 if(z===C.NU){z.toString |
| 1532 return P.h8(z,null,z,a,b)}return P.h8(z,null,z,a,z.xi(b,!0))}, |
| 1533 jL:function(a,b){var z=C.jn.cU(a.Fq,1000) |
| 1534 return H.cy(z<0?0:z,b)}, |
| 1535 PJ:function(a){var z=$.X3 |
| 1536 $.X3=a |
| 1537 return z}, |
| 1538 L2:function(a,b,c,d,e){P.T8(a,null,a,new P.pK(d,e))}, |
| 1539 T8:function(a,b,c,d){var z,y |
| 1540 if($.X3===c)return d.$0() |
| 1541 z=P.PJ(c) |
| 1542 try{y=d.$0() |
| 1543 return y}finally{$.X3=z}}, |
| 1544 V7:function(a,b,c,d,e){var z,y |
| 1545 if($.X3===c)return d.$1(e) |
| 1546 z=P.PJ(c) |
| 1547 try{y=d.$1(e) |
| 1548 return y}finally{$.X3=z}}, |
| 1549 Qx:function(a,b,c,d,e,f){var z,y |
| 1550 if($.X3===c)return d.$2(e,f) |
| 1551 z=P.PJ(c) |
| 1552 try{y=d.$2(e,f) |
| 1553 return y}finally{$.X3=z}}, |
| 1554 Tk:function(a,b,c,d){P.IA(C.NU!==c?c.ce(d):d)}, |
| 1555 h8:function(a,b,c,d,e){return P.jL(d,C.NU!==c?c.ce(e):e)}, |
| 1556 C6:{ |
| 1557 "^":"Tp:7;a", |
| 1558 $0:function(){H.ox() |
| 1559 this.a.$0()}}, |
| 1560 Ca:{ |
| 1561 "^":"a;kc>,I4<", |
| 1562 $isGe:true}, |
| 1563 vs:{ |
| 1564 "^":"a;Gv,Lj<,jk,BQ<,OY,As,qV,o4", |
| 1565 gcg:function(){return this.Gv>=4}, |
| 1566 gWj:function(){return this.Gv===4}, |
| 1567 gNm:function(){return this.Gv===8}, |
| 1568 swG:function(a){if(a)this.Gv=2 |
| 1569 else this.Gv=0}, |
| 1570 Rx:function(a,b){var z,y |
| 1571 z=$.X3 |
| 1572 z.toString |
| 1573 y=H.VM(new P.vs(0,z,null,null,a,null,P.VH(b,z),null),[null]) |
| 1574 this.au(y) |
| 1575 return y}, |
| 1576 gDL:function(){return this.jk}, |
| 1577 gcG:function(){return this.jk}, |
| 1578 Am:function(a){this.Gv=4 |
| 1579 this.jk=a}, |
| 1580 E6:function(a,b){this.Gv=8 |
| 1581 this.jk=new P.Ca(a,b)}, |
| 1582 au:function(a){var z |
| 1583 if(this.Gv>=4){z=this.Lj |
| 1584 z.toString |
| 1585 P.Tk(z,null,z,new P.da(this,a))}else{a.BQ=this.jk |
| 1586 this.jk=a}}, |
| 1587 L3:function(){var z,y,x |
| 1588 z=this.jk |
| 1589 this.jk=null |
| 1590 for(y=null;z!=null;y=z,z=x){x=z.gBQ() |
| 1591 z.BQ=y}return y}, |
| 1592 rX:function(a){var z,y |
| 1593 z=J.x(a) |
| 1594 if(!!z.$isb8)if(!!z.$isvs)P.A9(a,this) |
| 1595 else P.k3(a,this) |
| 1596 else{y=this.L3() |
| 1597 this.Am(a) |
| 1598 P.HZ(this,y)}}, |
| 1599 K5:[function(a,b){var z=this.L3() |
| 1600 this.E6(a,b) |
| 1601 P.HZ(this,z)},function(a){return this.K5(a,null)},"Lp","$2","$1","gbY",2,2,12,13
], |
| 1602 $isvs:true, |
| 1603 $isb8:true, |
| 1604 static:{"^":"Gn,Ry,C3,UX,NK",Dt:function(a){return H.VM(new P.vs(0,$.X3,null,nul
l,null,null,null,null),[a])},k3:function(a,b){b.Gv=2 |
| 1605 a.Rx(new P.pV(b),new P.U7(b))},A9:function(a,b){b.Gv=2 |
| 1606 if(a.Gv>=4)P.HZ(a,b) |
| 1607 else a.au(b)},yE:function(a,b){var z |
| 1608 do{z=b.gBQ() |
| 1609 b.BQ=null |
| 1610 P.HZ(a,b) |
| 1611 if(z!=null){b=z |
| 1612 continue}else break}while(!0)},HZ:function(a,b){var z,y,x,w,v,u,t,s,r,q,p,o |
| 1613 z={} |
| 1614 z.e=a |
| 1615 for(y=a;!0;){x={} |
| 1616 if(!y.gcg())return |
| 1617 w=z.e.gNm() |
| 1618 if(w&&b==null){v=z.e.gcG() |
| 1619 y=z.e.gLj() |
| 1620 x=J.w8(v) |
| 1621 u=v.gI4() |
| 1622 y.toString |
| 1623 P.L2(y,null,y,x,u) |
| 1624 return}if(b==null)return |
| 1625 if(b.BQ!=null){P.yE(z.e,b) |
| 1626 return}x.b=!0 |
| 1627 t=z.e.gWj()?z.e.gDL():null |
| 1628 x.c=t |
| 1629 x.d=!1 |
| 1630 y=!w |
| 1631 if(y){u=b.Gv===2 |
| 1632 if((u?null:b.OY)==null){s=(u?null:b.o4)!=null |
| 1633 u=s}else u=!0}else u=!0 |
| 1634 if(u){r=b.Lj |
| 1635 if(w){u=z.e.gLj() |
| 1636 u.toString |
| 1637 r.toString |
| 1638 u=r==null?u!=null:r!==u}else u=!1 |
| 1639 if(u){v=z.e.gcG() |
| 1640 y=z.e.gLj() |
| 1641 x=J.w8(v) |
| 1642 u=v.gI4() |
| 1643 y.toString |
| 1644 P.L2(y,null,y,x,u) |
| 1645 return}q=$.X3 |
| 1646 if(q==null?r!=null:q!==r)$.X3=r |
| 1647 else q=null |
| 1648 if(y){if((b.Gv===2?null:b.OY)!=null)x.b=new P.rq(x,b,t,r).$0()}else new P.RW(z,x
,b,r).$0() |
| 1649 if((b.Gv===2?null:b.o4)!=null)new P.YP(z,x,w,b,r).$0() |
| 1650 if(q!=null)$.X3=q |
| 1651 if(x.d)return |
| 1652 if(x.b===!0){y=x.c |
| 1653 y=(t==null?y!=null:t!==y)&&!!J.x(y).$isb8}else y=!1 |
| 1654 if(y){p=x.c |
| 1655 if(!!J.x(p).$isvs)if(p.Gv>=4){b.Gv=2 |
| 1656 z.e=p |
| 1657 y=p |
| 1658 continue}else P.A9(p,b) |
| 1659 else P.k3(p,b) |
| 1660 return}}if(x.b===!0){o=b.L3() |
| 1661 y=x.c |
| 1662 b.Gv=4 |
| 1663 b.jk=y}else{o=b.L3() |
| 1664 v=x.c |
| 1665 y=J.w8(v) |
| 1666 x=v.gI4() |
| 1667 b.Gv=8 |
| 1668 b.jk=new P.Ca(y,x)}z.e=b |
| 1669 y=b |
| 1670 b=o}}}}, |
| 1671 da:{ |
| 1672 "^":"Tp:7;a,b", |
| 1673 $0:function(){P.HZ(this.a,this.b)}}, |
| 1674 pV:{ |
| 1675 "^":"Tp:9;a", |
| 1676 $1:function(a){var z,y |
| 1677 z=this.a |
| 1678 y=z.L3() |
| 1679 z.Am(a) |
| 1680 P.HZ(z,y)}}, |
| 1681 U7:{ |
| 1682 "^":"Tp:14;b", |
| 1683 $2:function(a,b){this.b.K5(a,b)}, |
| 1684 $1:function(a){return this.$2(a,null)}}, |
| 1685 rq:{ |
| 1686 "^":"Tp:15;b,d,e,f", |
| 1687 $0:function(){var z,y,x,w,v |
| 1688 try{x=this.f |
| 1689 w=this.d |
| 1690 w=w.Gv===2?null:w.OY |
| 1691 x.toString |
| 1692 this.b.c=P.V7(x,null,x,w,this.e) |
| 1693 return!0}catch(v){x=H.Ru(v) |
| 1694 z=x |
| 1695 y=new H.XO(v,null) |
| 1696 this.b.c=new P.Ca(z,y) |
| 1697 return!1}}}, |
| 1698 RW:{ |
| 1699 "^":"Tp:1;c,b,UI,bK", |
| 1700 $0:function(){var z,y,x,w,v,u,t,s,r,q,p,o,n,m |
| 1701 z=this.c.e.gcG() |
| 1702 r=this.UI |
| 1703 y=r.Gv===2?null:r.As |
| 1704 x=!0 |
| 1705 if(y!=null)try{q=this.bK |
| 1706 p=J.w8(z) |
| 1707 q.toString |
| 1708 x=P.V7(q,null,q,y,p)}catch(o){r=H.Ru(o) |
| 1709 w=r |
| 1710 v=new H.XO(o,null) |
| 1711 r=J.w8(z) |
| 1712 q=w |
| 1713 n=(r==null?q==null:r===q)?z:new P.Ca(w,v) |
| 1714 r=this.b |
| 1715 r.c=n |
| 1716 r.b=!1 |
| 1717 return}u=r.Gv===2?null:r.qV |
| 1718 if(x===!0&&u!=null){try{r=u |
| 1719 q=H.N7() |
| 1720 q=H.KT(q,[q,q]).BD(r) |
| 1721 p=this.bK |
| 1722 m=this.b |
| 1723 if(q){r=J.w8(z) |
| 1724 q=z.gI4() |
| 1725 p.toString |
| 1726 m.c=P.Qx(p,null,p,u,r,q)}else{r=J.w8(z) |
| 1727 p.toString |
| 1728 m.c=P.V7(p,null,p,u,r)}}catch(o){r=H.Ru(o) |
| 1729 t=r |
| 1730 s=new H.XO(o,null) |
| 1731 r=J.w8(z) |
| 1732 q=t |
| 1733 n=(r==null?q==null:r===q)?z:new P.Ca(t,s) |
| 1734 r=this.b |
| 1735 r.c=n |
| 1736 r.b=!1 |
| 1737 return}this.b.b=!0}else{r=this.b |
| 1738 r.c=z |
| 1739 r.b=!1}}}, |
| 1740 YP:{ |
| 1741 "^":"Tp:1;c,b,Gq,Rm,w3", |
| 1742 $0:function(){var z,y,x,w,v,u |
| 1743 z={} |
| 1744 z.a=null |
| 1745 try{w=this.w3 |
| 1746 v=this.Rm |
| 1747 v=v.Gv===2?null:v.o4 |
| 1748 w.toString |
| 1749 z.a=P.T8(w,null,w,v)}catch(u){w=H.Ru(u) |
| 1750 y=w |
| 1751 x=new H.XO(u,null) |
| 1752 if(this.Gq){w=J.w8(this.c.e.gcG()) |
| 1753 v=y |
| 1754 v=w==null?v==null:w===v |
| 1755 w=v}else w=!1 |
| 1756 v=this.b |
| 1757 if(w)v.c=this.c.e.gcG() |
| 1758 else v.c=new P.Ca(y,x) |
| 1759 v.b=!1}if(!!J.x(z.a).$isb8){w=this.Rm |
| 1760 w.swG(!0) |
| 1761 this.b.d=!0 |
| 1762 z.a.Rx(new P.jZ(this.c,w),new P.FZ(z,w))}}}, |
| 1763 jZ:{ |
| 1764 "^":"Tp:9;c,HZ", |
| 1765 $1:function(a){P.HZ(this.c.e,this.HZ)}}, |
| 1766 FZ:{ |
| 1767 "^":"Tp:14;a,mG", |
| 1768 $2:function(a,b){var z,y |
| 1769 z=this.a |
| 1770 if(!J.x(z.a).$isvs){y=P.Dt(null) |
| 1771 z.a=y |
| 1772 y.E6(a,b)}P.HZ(z.a,this.mG)}, |
| 1773 $1:function(a){return this.$2(a,null)}}, |
| 1774 OM:{ |
| 1775 "^":"a;FR,aw", |
| 1776 Ki:function(){return this.FR.$0()}}, |
| 1777 qh:{ |
| 1778 "^":"a;", |
| 1779 aN:function(a,b){var z,y |
| 1780 z={} |
| 1781 y=P.Dt(null) |
| 1782 z.a=null |
| 1783 z.a=this.KR(new P.lz(z,this,b,y),!0,new P.M4(y),y.gbY()) |
| 1784 return y}, |
| 1785 gB:function(a){var z,y |
| 1786 z={} |
| 1787 y=P.Dt(P.KN) |
| 1788 z.a=0 |
| 1789 this.KR(new P.B5(z),!0,new P.PI(z,y),y.gbY()) |
| 1790 return y}}, |
| 1791 lz:{ |
| 1792 "^":"Tp;a,b,c,d", |
| 1793 $1:function(a){P.FE(new P.Rl(this.c,a),new P.Jb(),P.TB(this.a.a,this.d))}, |
| 1794 $signature:function(){return H.IG(function(a){return{func:"Lf",args:[a]}},this.b
,"qh")}}, |
| 1795 Rl:{ |
| 1796 "^":"Tp:7;e,f", |
| 1797 $0:function(){return this.e.$1(this.f)}}, |
| 1798 Jb:{ |
| 1799 "^":"Tp:9;", |
| 1800 $1:function(a){}}, |
| 1801 M4:{ |
| 1802 "^":"Tp:7;UI", |
| 1803 $0:function(){this.UI.rX(null)}}, |
| 1804 B5:{ |
| 1805 "^":"Tp:9;a", |
| 1806 $1:function(a){++this.a.a}}, |
| 1807 PI:{ |
| 1808 "^":"Tp:7;a,b", |
| 1809 $0:function(){this.b.rX(this.a.a)}}, |
| 1810 MO:{ |
| 1811 "^":"a;"}, |
| 1812 nP:{ |
| 1813 "^":"a;"}, |
| 1814 dR:{ |
| 1815 "^":"Tp:7;a,b,c", |
| 1816 $0:function(){return this.a.K5(this.b,this.c)}}, |
| 1817 uR:{ |
| 1818 "^":"Tp:16;a,b", |
| 1819 $2:function(a,b){return P.NX(this.a,this.b,a,b)}}, |
| 1820 fZ:{ |
| 1821 "^":"a;", |
| 1822 bH:function(a){var z,y,x,w |
| 1823 try{x=this.Gr(a) |
| 1824 return x}catch(w){x=H.Ru(w) |
| 1825 z=x |
| 1826 y=new H.XO(w,null) |
| 1827 return this.hk(z,y)}}, |
| 1828 m1:function(a,b){var z,y,x,w |
| 1829 try{x=this.FI(a,b) |
| 1830 return x}catch(w){x=H.Ru(w) |
| 1831 z=x |
| 1832 y=new H.XO(w,null) |
| 1833 return this.hk(z,y)}}, |
| 1834 xi:function(a,b){var z=this.Al(a) |
| 1835 if(b)return new P.TF(this,z) |
| 1836 else return new P.K5(this,z)}, |
| 1837 ce:function(a){return this.xi(a,!0)}, |
| 1838 oj:function(a,b){var z=this.cR(a) |
| 1839 if(b)return new P.Cg(this,z) |
| 1840 else return new P.Hs(this,z)}}, |
| 1841 TF:{ |
| 1842 "^":"Tp:7;a,b", |
| 1843 $0:function(){return this.a.bH(this.b)}}, |
| 1844 K5:{ |
| 1845 "^":"Tp:7;c,d", |
| 1846 $0:function(){return this.c.Gr(this.d)}}, |
| 1847 Cg:{ |
| 1848 "^":"Tp:9;a,b", |
| 1849 $1:function(a){return this.a.m1(this.b,a)}}, |
| 1850 Hs:{ |
| 1851 "^":"Tp:9;c,d", |
| 1852 $1:function(a){return this.c.FI(this.d,a)}}, |
| 1853 pK:{ |
| 1854 "^":"Tp:7;a,b", |
| 1855 $0:function(){P.IA(new P.eM(this.a,this.b))}}, |
| 1856 eM:{ |
| 1857 "^":"Tp:7;c,d", |
| 1858 $0:function(){var z,y |
| 1859 z=this.c |
| 1860 P.JS("Uncaught Error: "+H.d(z)) |
| 1861 y=this.d |
| 1862 if(y==null&&!!J.x(z).$isGe)y=z.gI4() |
| 1863 if(y!=null)P.JS("Stack Trace: \n"+H.d(y)+"\n") |
| 1864 throw H.b(z)}}, |
| 1865 R8:{ |
| 1866 "^":"fZ;", |
| 1867 t:function(a,b){return}, |
| 1868 hk:function(a,b){return P.L2(this,null,this,a,b)}, |
| 1869 Gr:function(a){return P.T8(this,null,this,a)}, |
| 1870 FI:function(a,b){return P.V7(this,null,this,a,b)}, |
| 1871 Al:function(a){return a}, |
| 1872 cR:function(a){return a}}}],["dart.collection","dart:collection",,P,{ |
| 1873 "^":"", |
| 1874 EF:function(a,b,c){return H.B7(a,H.VM(new P.YB(0,null,null,null,null,null,0),[b,
c]))}, |
| 1875 jB:function(){var z=Object.create(null) |
| 1876 z["<non-identifier-key>"]=z |
| 1877 delete z["<non-identifier-key>"] |
| 1878 return z}, |
| 1879 Ou:[function(a,b){return J.de(a,b)},"$2","iv",4,0,2], |
| 1880 T9:[function(a){return J.v1(a)},"$1","py",2,0,3], |
| 1881 Py:function(a,b,c,d,e){return H.VM(new P.k6(0,null,null,null,null),[d,e])}, |
| 1882 yv:function(a){return H.VM(new P.YO(0,null,null,null,null),[a])}, |
| 1883 FO:function(a){var z,y |
| 1884 if($.hi().tg(0,a))return"(...)" |
| 1885 $.hi().h(0,a) |
| 1886 z=[] |
| 1887 try{P.Vr(a,z)}finally{$.hi().Rz(0,a)}y=P.p9("(") |
| 1888 y.We(z,", ") |
| 1889 y.KF(")") |
| 1890 return y.vM}, |
| 1891 Vr:function(a,b){var z,y,x,w,v,u,t,s,r,q,p |
| 1892 z=a.gA(a) |
| 1893 y=0 |
| 1894 x=0 |
| 1895 while(!0){if(!(y<80||x<3))break |
| 1896 if(!z.G())return |
| 1897 w=H.d(z.gl()) |
| 1898 b.push(w) |
| 1899 y+=w.length+2;++x}if(!z.G()){if(x<=5)return |
| 1900 if(0>=b.length)return H.e(b,0) |
| 1901 v=b.pop() |
| 1902 if(0>=b.length)return H.e(b,0) |
| 1903 u=b.pop()}else{t=z.gl();++x |
| 1904 if(!z.G()){if(x<=4){b.push(H.d(t)) |
| 1905 return}v=H.d(t) |
| 1906 if(0>=b.length)return H.e(b,0) |
| 1907 u=b.pop() |
| 1908 y+=v.length+2}else{s=z.gl();++x |
| 1909 for(;z.G();t=s,s=r){r=z.gl();++x |
| 1910 if(x>100){while(!0){if(!(y>75&&x>3))break |
| 1911 if(0>=b.length)return H.e(b,0) |
| 1912 q=J.q8(b.pop()) |
| 1913 if(typeof q!=="number")return q.g() |
| 1914 y-=q+2;--x}b.push("...") |
| 1915 return}}u=H.d(t) |
| 1916 v=H.d(s) |
| 1917 y+=v.length+u.length+4}}if(x>b.length+2){y+=5 |
| 1918 p="..."}else p=null |
| 1919 while(!0){if(!(y>80&&b.length>3))break |
| 1920 if(0>=b.length)return H.e(b,0) |
| 1921 q=J.q8(b.pop()) |
| 1922 if(typeof q!=="number")return q.g() |
| 1923 y-=q+2 |
| 1924 if(p==null){y+=5 |
| 1925 p="..."}}if(p!=null)b.push(p) |
| 1926 b.push(u) |
| 1927 b.push(v)}, |
| 1928 L5:function(a,b,c,d,e){return H.VM(new P.YB(0,null,null,null,null,null,0),[d,e])
}, |
| 1929 Ls:function(a,b,c,d){return H.VM(new P.b6(0,null,null,null,null,null,0),[d])}, |
| 1930 vW:function(a){var z,y,x,w,v |
| 1931 z={} |
| 1932 for(x=0;w=$.tw(),x<w.length;++x){w=w[x] |
| 1933 v=a |
| 1934 if(w==null?v==null:w===v)return"{...}"}y=P.p9("") |
| 1935 try{$.tw().push(a) |
| 1936 y.KF("{") |
| 1937 z.a=!0 |
| 1938 J.kH(a,new P.LG(z,y)) |
| 1939 y.KF("}")}finally{z=$.tw() |
| 1940 if(0>=z.length)return H.e(z,0) |
| 1941 z.pop()}return y.gvM()}, |
| 1942 k6:{ |
| 1943 "^":"a;X5,vv,OX,OB,wV", |
| 1944 gB:function(a){return this.X5}, |
| 1945 gvc:function(){return H.VM(new P.fG(this),[H.Kp(this,0)])}, |
| 1946 gUQ:function(a){return H.K1(H.VM(new P.fG(this),[H.Kp(this,0)]),new P.oi(this),H
.Kp(this,0),H.Kp(this,1))}, |
| 1947 t:function(a,b){var z,y,x,w |
| 1948 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 1949 if(z==null)y=null |
| 1950 else{x=z[b] |
| 1951 y=x===z?null:x}return y}else if(typeof b==="number"&&(b&0x3ffffff)===b){w=this.O
X |
| 1952 if(w==null)y=null |
| 1953 else{x=w[b] |
| 1954 y=x===w?null:x}return y}else return this.Dl(b)}, |
| 1955 Dl:function(a){var z,y,x |
| 1956 z=this.OB |
| 1957 if(z==null)return |
| 1958 y=z[this.nm(a)] |
| 1959 x=this.aH(y,a) |
| 1960 return x<0?null:y[x+1]}, |
| 1961 u:function(a,b,c){var z,y |
| 1962 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 1963 if(z==null){z=P.a0() |
| 1964 this.vv=z}this.dg(z,b,c)}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=this.
OX |
| 1965 if(y==null){y=P.a0() |
| 1966 this.OX=y}this.dg(y,b,c)}else this.ms(b,c)}, |
| 1967 ms:function(a,b){var z,y,x,w |
| 1968 z=this.OB |
| 1969 if(z==null){z=P.a0() |
| 1970 this.OB=z}y=this.nm(a) |
| 1971 x=z[y] |
| 1972 if(x==null){P.cW(z,y,[a,b]);++this.X5 |
| 1973 this.wV=null}else{w=this.aH(x,a) |
| 1974 if(w>=0)x[w+1]=b |
| 1975 else{x.push(a,b);++this.X5 |
| 1976 this.wV=null}}}, |
| 1977 aN:function(a,b){var z,y,x,w |
| 1978 z=this.Ig() |
| 1979 for(y=z.length,x=0;x<y;++x){w=z[x] |
| 1980 b.$2(w,this.t(0,w)) |
| 1981 if(z!==this.wV)throw H.b(P.a4(this))}}, |
| 1982 Ig:function(){var z,y,x,w,v,u,t,s,r,q,p,o |
| 1983 z=this.wV |
| 1984 if(z!=null)return z |
| 1985 y=Array(this.X5) |
| 1986 y.fixed$length=init |
| 1987 x=this.vv |
| 1988 if(x!=null){w=Object.getOwnPropertyNames(x) |
| 1989 v=w.length |
| 1990 for(u=0,t=0;t<v;++t){y[u]=w[t];++u}}else u=0 |
| 1991 s=this.OX |
| 1992 if(s!=null){w=Object.getOwnPropertyNames(s) |
| 1993 v=w.length |
| 1994 for(t=0;t<v;++t){y[u]=+w[t];++u}}r=this.OB |
| 1995 if(r!=null){w=Object.getOwnPropertyNames(r) |
| 1996 v=w.length |
| 1997 for(t=0;t<v;++t){q=r[w[t]] |
| 1998 p=q.length |
| 1999 for(o=0;o<p;o+=2){y[u]=q[o];++u}}}this.wV=y |
| 2000 return y}, |
| 2001 dg:function(a,b,c){if(a[b]==null){++this.X5 |
| 2002 this.wV=null}P.cW(a,b,c)}, |
| 2003 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2004 aH:function(a,b){var z,y |
| 2005 if(a==null)return-1 |
| 2006 z=a.length |
| 2007 for(y=0;y<z;y+=2)if(J.de(a[y],b))return y |
| 2008 return-1}, |
| 2009 $isZ0:true, |
| 2010 static:{cW:function(a,b,c){if(c==null)a[b]=a |
| 2011 else a[b]=c},a0:function(){var z=Object.create(null) |
| 2012 P.cW(z,"<non-identifier-key>",z) |
| 2013 delete z["<non-identifier-key>"] |
| 2014 return z}}}, |
| 2015 oi:{ |
| 2016 "^":"Tp:9;a", |
| 2017 $1:function(a){return this.a.t(0,a)}}, |
| 2018 fG:{ |
| 2019 "^":"mW;Fb", |
| 2020 gB:function(a){return this.Fb.X5}, |
| 2021 gA:function(a){var z=this.Fb |
| 2022 return new P.EQ(z,z.Ig(),0,null)}, |
| 2023 aN:function(a,b){var z,y,x,w |
| 2024 z=this.Fb |
| 2025 y=z.Ig() |
| 2026 for(x=y.length,w=0;w<x;++w){b.$1(y[w]) |
| 2027 if(y!==z.wV)throw H.b(P.a4(z))}}}, |
| 2028 EQ:{ |
| 2029 "^":"a;Fb,wV,zi,fD", |
| 2030 gl:function(){return this.fD}, |
| 2031 G:function(){var z,y,x |
| 2032 z=this.wV |
| 2033 y=this.zi |
| 2034 x=this.Fb |
| 2035 if(z!==x.wV)throw H.b(P.a4(x)) |
| 2036 else if(y>=z.length){this.fD=null |
| 2037 return!1}else{this.fD=z[y] |
| 2038 this.zi=y+1 |
| 2039 return!0}}}, |
| 2040 YB:{ |
| 2041 "^":"a;X5,vv,OX,OB,H9,lX,zN", |
| 2042 gB:function(a){return this.X5}, |
| 2043 gvc:function(){return H.VM(new P.i5(this),[H.Kp(this,0)])}, |
| 2044 gUQ:function(a){return H.K1(H.VM(new P.i5(this),[H.Kp(this,0)]),new P.a1(this),H
.Kp(this,0),H.Kp(this,1))}, |
| 2045 x4:function(a){var z |
| 2046 if((a&0x3ffffff)===a){z=this.OX |
| 2047 if(z==null)return!1 |
| 2048 return z[a]!=null}else return this.Zt(a)}, |
| 2049 Zt:function(a){var z=this.OB |
| 2050 if(z==null)return!1 |
| 2051 return this.aH(z[this.nm(a)],a)>=0}, |
| 2052 t:function(a,b){var z,y,x |
| 2053 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2054 if(z==null)return |
| 2055 y=z[b] |
| 2056 return y==null?null:y.gS4()}else if(typeof b==="number"&&(b&0x3ffffff)===b){x=th
is.OX |
| 2057 if(x==null)return |
| 2058 y=x[b] |
| 2059 return y==null?null:y.gS4()}else return this.Dl(b)}, |
| 2060 Dl:function(a){var z,y,x |
| 2061 z=this.OB |
| 2062 if(z==null)return |
| 2063 y=z[this.nm(a)] |
| 2064 x=this.aH(y,a) |
| 2065 if(x<0)return |
| 2066 return y[x].gS4()}, |
| 2067 u:function(a,b,c){var z,y |
| 2068 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2069 if(z==null){z=P.Qs() |
| 2070 this.vv=z}this.dg(z,b,c)}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=this.
OX |
| 2071 if(y==null){y=P.Qs() |
| 2072 this.OX=y}this.dg(y,b,c)}else this.ms(b,c)}, |
| 2073 ms:function(a,b){var z,y,x,w |
| 2074 z=this.OB |
| 2075 if(z==null){z=P.Qs() |
| 2076 this.OB=z}y=this.nm(a) |
| 2077 x=z[y] |
| 2078 if(x==null)z[y]=[this.pE(a,b)] |
| 2079 else{w=this.aH(x,a) |
| 2080 if(w>=0)x[w].sS4(b) |
| 2081 else x.push(this.pE(a,b))}}, |
| 2082 Rz:function(a,b){if(typeof b==="string"&&b!=="__proto__")return this.Nv(this.vv,
b) |
| 2083 else if(typeof b==="number"&&(b&0x3ffffff)===b)return this.Nv(this.OX,b) |
| 2084 else return this.bB(b)}, |
| 2085 bB:function(a){var z,y,x,w |
| 2086 z=this.OB |
| 2087 if(z==null)return |
| 2088 y=z[this.nm(a)] |
| 2089 x=this.aH(y,a) |
| 2090 if(x<0)return |
| 2091 w=y.splice(x,1)[0] |
| 2092 this.Vb(w) |
| 2093 return w.gS4()}, |
| 2094 aN:function(a,b){var z,y |
| 2095 z=this.H9 |
| 2096 y=this.zN |
| 2097 for(;z!=null;){b.$2(z.gkh(),z.S4) |
| 2098 if(y!==this.zN)throw H.b(P.a4(this)) |
| 2099 z=z.DG}}, |
| 2100 dg:function(a,b,c){var z=a[b] |
| 2101 if(z==null)a[b]=this.pE(b,c) |
| 2102 else z.sS4(c)}, |
| 2103 Nv:function(a,b){var z |
| 2104 if(a==null)return |
| 2105 z=a[b] |
| 2106 if(z==null)return |
| 2107 this.Vb(z) |
| 2108 delete a[b] |
| 2109 return z.gS4()}, |
| 2110 pE:function(a,b){var z,y |
| 2111 z=new P.db(a,b,null,null) |
| 2112 if(this.H9==null){this.lX=z |
| 2113 this.H9=z}else{y=this.lX |
| 2114 z.zQ=y |
| 2115 y.sDG(z) |
| 2116 this.lX=z}++this.X5 |
| 2117 this.zN=this.zN+1&67108863 |
| 2118 return z}, |
| 2119 Vb:function(a){var z,y |
| 2120 z=a.gzQ() |
| 2121 y=a.gDG() |
| 2122 if(z==null)this.H9=y |
| 2123 else z.sDG(y) |
| 2124 if(y==null)this.lX=z |
| 2125 else y.szQ(z);--this.X5 |
| 2126 this.zN=this.zN+1&67108863}, |
| 2127 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2128 aH:function(a,b){var z,y |
| 2129 if(a==null)return-1 |
| 2130 z=a.length |
| 2131 for(y=0;y<z;++y)if(J.de(a[y].gkh(),b))return y |
| 2132 return-1}, |
| 2133 bu:function(a){return P.vW(this)}, |
| 2134 $isZ0:true, |
| 2135 static:{Qs:function(){var z=Object.create(null) |
| 2136 z["<non-identifier-key>"]=z |
| 2137 delete z["<non-identifier-key>"] |
| 2138 return z}}}, |
| 2139 a1:{ |
| 2140 "^":"Tp:9;a", |
| 2141 $1:function(a){return this.a.t(0,a)}}, |
| 2142 db:{ |
| 2143 "^":"a;kh<,S4@,DG@,zQ@"}, |
| 2144 i5:{ |
| 2145 "^":"mW;Fb", |
| 2146 gB:function(a){return this.Fb.X5}, |
| 2147 gA:function(a){var z,y |
| 2148 z=this.Fb |
| 2149 y=new P.N6(z,z.zN,null,null) |
| 2150 y.zq=z.H9 |
| 2151 return y}, |
| 2152 aN:function(a,b){var z,y,x |
| 2153 z=this.Fb |
| 2154 y=z.H9 |
| 2155 x=z.zN |
| 2156 for(;y!=null;){b.$1(y.gkh()) |
| 2157 if(x!==z.zN)throw H.b(P.a4(z)) |
| 2158 y=y.DG}}}, |
| 2159 N6:{ |
| 2160 "^":"a;Fb,zN,zq,fD", |
| 2161 gl:function(){return this.fD}, |
| 2162 G:function(){var z=this.Fb |
| 2163 if(this.zN!==z.zN)throw H.b(P.a4(z)) |
| 2164 else{z=this.zq |
| 2165 if(z==null){this.fD=null |
| 2166 return!1}else{this.fD=z.gkh() |
| 2167 this.zq=this.zq.gDG() |
| 2168 return!0}}}}, |
| 2169 jg:{ |
| 2170 "^":"u3;", |
| 2171 gA:function(a){return new P.oz(this,this.Zl(),0,null)}, |
| 2172 gB:function(a){return this.X5}, |
| 2173 tg:function(a,b){var z,y |
| 2174 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2175 return z==null?!1:z[b]!=null}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=t
his.OX |
| 2176 return y==null?!1:y[b]!=null}else return this.bk(b)}, |
| 2177 bk:function(a){var z=this.OB |
| 2178 if(z==null)return!1 |
| 2179 return this.aH(z[this.nm(a)],a)>=0}, |
| 2180 hV:function(a){var z |
| 2181 if(!(typeof a==="string"&&a!=="__proto__"))z=typeof a==="number"&&(a&0x3ffffff)=
==a |
| 2182 else z=!0 |
| 2183 if(z)return this.tg(0,a)?a:null |
| 2184 return this.AD(a)}, |
| 2185 AD:function(a){var z,y,x |
| 2186 z=this.OB |
| 2187 if(z==null)return |
| 2188 y=z[this.nm(a)] |
| 2189 x=this.aH(y,a) |
| 2190 if(x<0)return |
| 2191 return J.UQ(y,x)}, |
| 2192 h:function(a,b){return this.NZ(b)}, |
| 2193 NZ:function(a){var z,y,x |
| 2194 z=this.OB |
| 2195 if(z==null){z=P.jB() |
| 2196 this.OB=z}y=this.nm(a) |
| 2197 x=z[y] |
| 2198 if(x==null)z[y]=[a] |
| 2199 else{if(this.aH(x,a)>=0)return!1 |
| 2200 x.push(a)}++this.X5 |
| 2201 this.DM=null |
| 2202 return!0}, |
| 2203 Rz:function(a,b){return this.bB(b)}, |
| 2204 bB:function(a){var z,y,x |
| 2205 z=this.OB |
| 2206 if(z==null)return!1 |
| 2207 y=z[this.nm(a)] |
| 2208 x=this.aH(y,a) |
| 2209 if(x<0)return!1;--this.X5 |
| 2210 this.DM=null |
| 2211 y.splice(x,1) |
| 2212 return!0}, |
| 2213 Zl:function(){var z,y,x,w,v,u,t,s,r,q,p,o |
| 2214 z=this.DM |
| 2215 if(z!=null)return z |
| 2216 y=Array(this.X5) |
| 2217 y.fixed$length=init |
| 2218 x=this.vv |
| 2219 if(x!=null){w=Object.getOwnPropertyNames(x) |
| 2220 v=w.length |
| 2221 for(u=0,t=0;t<v;++t){y[u]=w[t];++u}}else u=0 |
| 2222 s=this.OX |
| 2223 if(s!=null){w=Object.getOwnPropertyNames(s) |
| 2224 v=w.length |
| 2225 for(t=0;t<v;++t){y[u]=+w[t];++u}}r=this.OB |
| 2226 if(r!=null){w=Object.getOwnPropertyNames(r) |
| 2227 v=w.length |
| 2228 for(t=0;t<v;++t){q=r[w[t]] |
| 2229 p=q.length |
| 2230 for(o=0;o<p;++o){y[u]=q[o];++u}}}this.DM=y |
| 2231 return y}, |
| 2232 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2233 aH:function(a,b){var z,y |
| 2234 if(a==null)return-1 |
| 2235 z=a.length |
| 2236 for(y=0;y<z;++y)if(J.de(a[y],b))return y |
| 2237 return-1}}, |
| 2238 YO:{ |
| 2239 "^":"jg;X5,vv,OX,OB,DM", |
| 2240 nm:function(a){return H.CU(a)&0x3ffffff}, |
| 2241 aH:function(a,b){var z,y,x |
| 2242 if(a==null)return-1 |
| 2243 z=a.length |
| 2244 for(y=0;y<z;++y){x=a[y] |
| 2245 if(x==null?b==null:x===b)return y}return-1}}, |
| 2246 oz:{ |
| 2247 "^":"a;O2,DM,zi,fD", |
| 2248 gl:function(){return this.fD}, |
| 2249 G:function(){var z,y,x |
| 2250 z=this.DM |
| 2251 y=this.zi |
| 2252 x=this.O2 |
| 2253 if(z!==x.DM)throw H.b(P.a4(x)) |
| 2254 else if(y>=z.length){this.fD=null |
| 2255 return!1}else{this.fD=z[y] |
| 2256 this.zi=y+1 |
| 2257 return!0}}}, |
| 2258 b6:{ |
| 2259 "^":"u3;X5,vv,OX,OB,H9,lX,zN", |
| 2260 gA:function(a){var z=new P.zQ(this,this.zN,null,null) |
| 2261 z.zq=this.H9 |
| 2262 return z}, |
| 2263 gB:function(a){return this.X5}, |
| 2264 tg:function(a,b){var z,y |
| 2265 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2266 if(z==null)return!1 |
| 2267 return z[b]!=null}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=this.OX |
| 2268 if(y==null)return!1 |
| 2269 return y[b]!=null}else return this.bk(b)}, |
| 2270 bk:function(a){var z=this.OB |
| 2271 if(z==null)return!1 |
| 2272 return this.aH(z[this.nm(a)],a)>=0}, |
| 2273 hV:function(a){var z |
| 2274 if(!(typeof a==="string"&&a!=="__proto__"))z=typeof a==="number"&&(a&0x3ffffff)=
==a |
| 2275 else z=!0 |
| 2276 if(z)return this.tg(0,a)?a:null |
| 2277 else return this.AD(a)}, |
| 2278 AD:function(a){var z,y,x |
| 2279 z=this.OB |
| 2280 if(z==null)return |
| 2281 y=z[this.nm(a)] |
| 2282 x=this.aH(y,a) |
| 2283 if(x<0)return |
| 2284 return J.UQ(y,x).gGc()}, |
| 2285 aN:function(a,b){var z,y |
| 2286 z=this.H9 |
| 2287 y=this.zN |
| 2288 for(;z!=null;){b.$1(z.gGc()) |
| 2289 if(y!==this.zN)throw H.b(P.a4(this)) |
| 2290 z=z.DG}}, |
| 2291 h:function(a,b){var z,y |
| 2292 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2293 if(z==null){z=P.T2() |
| 2294 this.vv=z}return this.cA(z,b)}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=
this.OX |
| 2295 if(y==null){y=P.T2() |
| 2296 this.OX=y}return this.cA(y,b)}else return this.NZ(b)}, |
| 2297 NZ:function(a){var z,y,x |
| 2298 z=this.OB |
| 2299 if(z==null){z=P.T2() |
| 2300 this.OB=z}y=this.nm(a) |
| 2301 x=z[y] |
| 2302 if(x==null)z[y]=[this.xf(a)] |
| 2303 else{if(this.aH(x,a)>=0)return!1 |
| 2304 x.push(this.xf(a))}return!0}, |
| 2305 Rz:function(a,b){if(typeof b==="string"&&b!=="__proto__")return this.Nv(this.vv,
b) |
| 2306 else if(typeof b==="number"&&(b&0x3ffffff)===b)return this.Nv(this.OX,b) |
| 2307 else return this.bB(b)}, |
| 2308 bB:function(a){var z,y,x |
| 2309 z=this.OB |
| 2310 if(z==null)return!1 |
| 2311 y=z[this.nm(a)] |
| 2312 x=this.aH(y,a) |
| 2313 if(x<0)return!1 |
| 2314 this.Vb(y.splice(x,1)[0]) |
| 2315 return!0}, |
| 2316 cA:function(a,b){if(a[b]!=null)return!1 |
| 2317 a[b]=this.xf(b) |
| 2318 return!0}, |
| 2319 Nv:function(a,b){var z |
| 2320 if(a==null)return!1 |
| 2321 z=a[b] |
| 2322 if(z==null)return!1 |
| 2323 this.Vb(z) |
| 2324 delete a[b] |
| 2325 return!0}, |
| 2326 xf:function(a){var z,y |
| 2327 z=new P.tj(a,null,null) |
| 2328 if(this.H9==null){this.lX=z |
| 2329 this.H9=z}else{y=this.lX |
| 2330 z.zQ=y |
| 2331 y.sDG(z) |
| 2332 this.lX=z}++this.X5 |
| 2333 this.zN=this.zN+1&67108863 |
| 2334 return z}, |
| 2335 Vb:function(a){var z,y |
| 2336 z=a.gzQ() |
| 2337 y=a.gDG() |
| 2338 if(z==null)this.H9=y |
| 2339 else z.sDG(y) |
| 2340 if(y==null)this.lX=z |
| 2341 else y.szQ(z);--this.X5 |
| 2342 this.zN=this.zN+1&67108863}, |
| 2343 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2344 aH:function(a,b){var z,y |
| 2345 if(a==null)return-1 |
| 2346 z=a.length |
| 2347 for(y=0;y<z;++y)if(J.de(a[y].gGc(),b))return y |
| 2348 return-1}, |
| 2349 static:{T2:function(){var z=Object.create(null) |
| 2350 z["<non-identifier-key>"]=z |
| 2351 delete z["<non-identifier-key>"] |
| 2352 return z}}}, |
| 2353 tj:{ |
| 2354 "^":"a;Gc<,DG@,zQ@"}, |
| 2355 zQ:{ |
| 2356 "^":"a;O2,zN,zq,fD", |
| 2357 gl:function(){return this.fD}, |
| 2358 G:function(){var z=this.O2 |
| 2359 if(this.zN!==z.zN)throw H.b(P.a4(z)) |
| 2360 else{z=this.zq |
| 2361 if(z==null){this.fD=null |
| 2362 return!1}else{this.fD=z.gGc() |
| 2363 this.zq=this.zq.gDG() |
| 2364 return!0}}}}, |
| 2365 u3:{ |
| 2366 "^":"mW;", |
| 2367 bu:function(a){return H.mx(this,"{","}")}}, |
| 2368 mW:{ |
| 2369 "^":"a;", |
| 2370 aN:function(a,b){var z |
| 2371 for(z=this.gA(this);z.G();)b.$1(z.gl())}, |
| 2372 gB:function(a){var z,y |
| 2373 z=this.gA(this) |
| 2374 for(y=0;z.G();)++y |
| 2375 return y}, |
| 2376 Zv:function(a,b){var z,y,x |
| 2377 if(b<0)throw H.b(P.N(b)) |
| 2378 for(z=this.gA(this),y=b;z.G();){x=z.gl() |
| 2379 if(y===0)return x;--y}throw H.b(P.N(b))}, |
| 2380 bu:function(a){return P.FO(this)}}, |
| 2381 FN:{ |
| 2382 "^":"a;", |
| 2383 gA:function(a){return new H.a7(a,this.gB(a),0,null)}, |
| 2384 Zv:function(a,b){return this.t(a,b)}, |
| 2385 aN:function(a,b){var z,y,x |
| 2386 z=this.gB(a) |
| 2387 for(y=a.length,x=0;x<z;++x){if(x>=y)return H.e(a,x) |
| 2388 b.$1(a[x]) |
| 2389 if(z!==y)throw H.b(P.a4(a))}}, |
| 2390 bu:function(a){var z |
| 2391 if($.hi().tg(0,a))return"[...]" |
| 2392 z=P.p9("") |
| 2393 try{$.hi().h(0,a) |
| 2394 z.KF("[") |
| 2395 z.We(a,", ") |
| 2396 z.KF("]")}finally{$.hi().Rz(0,a)}return z.gvM()}, |
| 2397 $iszM:true, |
| 2398 $aszM:null}, |
| 2399 LG:{ |
| 2400 "^":"Tp:8;a,b", |
| 2401 $2:function(a,b){var z=this.a |
| 2402 if(!z.a)this.b.KF(", ") |
| 2403 z.a=!1 |
| 2404 z=this.b |
| 2405 z.KF(a) |
| 2406 z.KF(": ") |
| 2407 z.KF(b)}}, |
| 2408 Sw:{ |
| 2409 "^":"mW;v5,av,HV,qT", |
| 2410 gA:function(a){return new P.o0(this,this.HV,this.qT,this.av,null)}, |
| 2411 aN:function(a,b){var z,y,x |
| 2412 z=this.qT |
| 2413 for(y=this.av;y!==this.HV;y=(y+1&this.v5.length-1)>>>0){x=this.v5 |
| 2414 if(y<0||y>=x.length)return H.e(x,y) |
| 2415 b.$1(x[y]) |
| 2416 if(z!==this.qT)H.vh(P.a4(this))}}, |
| 2417 gl0:function(a){return this.av===this.HV}, |
| 2418 gB:function(a){return(this.HV-this.av&this.v5.length-1)>>>0}, |
| 2419 V1:function(a){var z,y,x,w,v |
| 2420 z=this.av |
| 2421 y=this.HV |
| 2422 if(z!==y){for(x=this.v5,w=x.length,v=w-1;z!==y;z=(z+1&v)>>>0){if(z<0||z>=w)retur
n H.e(x,z) |
| 2423 x[z]=null}this.HV=0 |
| 2424 this.av=0;++this.qT}}, |
| 2425 bu:function(a){return H.mx(this,"{","}")}, |
| 2426 Ux:function(){var z,y,x,w |
| 2427 z=this.av |
| 2428 if(z===this.HV)throw H.b(P.w("No elements"));++this.qT |
| 2429 y=this.v5 |
| 2430 x=y.length |
| 2431 if(z>=x)return H.e(y,z) |
| 2432 w=y[z] |
| 2433 y[z]=null |
| 2434 this.av=(z+1&x-1)>>>0 |
| 2435 return w}, |
| 2436 NZ:function(a){var z,y,x |
| 2437 z=this.v5 |
| 2438 y=this.HV |
| 2439 x=z.length |
| 2440 if(y>=x)return H.e(z,y) |
| 2441 z[y]=a |
| 2442 x=(y+1&x-1)>>>0 |
| 2443 this.HV=x |
| 2444 if(this.av===x)this.VW();++this.qT}, |
| 2445 VW:function(){var z,y,x,w |
| 2446 z=Array(this.v5.length*2) |
| 2447 z.fixed$length=init |
| 2448 y=H.VM(z,[H.Kp(this,0)]) |
| 2449 z=this.v5 |
| 2450 x=this.av |
| 2451 w=z.length-x |
| 2452 H.qG(y,0,w,z,x) |
| 2453 z=this.av |
| 2454 x=this.v5 |
| 2455 H.qG(y,w,w+z,x,0) |
| 2456 this.av=0 |
| 2457 this.HV=this.v5.length |
| 2458 this.v5=y}, |
| 2459 Eo:function(a,b){var z=Array(8) |
| 2460 z.fixed$length=init |
| 2461 this.v5=H.VM(z,[b])}, |
| 2462 static:{"^":"TN"}}, |
| 2463 o0:{ |
| 2464 "^":"a;Lz,dP,qT,Dc,fD", |
| 2465 gl:function(){return this.fD}, |
| 2466 G:function(){var z,y,x |
| 2467 z=this.Lz |
| 2468 if(this.qT!==z.qT)H.vh(P.a4(z)) |
| 2469 y=this.Dc |
| 2470 if(y===this.dP){this.fD=null |
| 2471 return!1}z=z.v5 |
| 2472 x=z.length |
| 2473 if(y>=x)return H.e(z,y) |
| 2474 this.fD=z[y] |
| 2475 this.Dc=(y+1&x-1)>>>0 |
| 2476 return!0}}}],["dart.core","dart:core",,P,{ |
| 2477 "^":"", |
| 2478 Hp:function(a){return H.Fv(a)}, |
| 2479 hl:function(a){var z,y,x,w,v |
| 2480 if(typeof a==="number"||typeof a==="boolean"||null==a)return J.AG(a) |
| 2481 if(typeof a==="string"){z=new P.Rn("") |
| 2482 z.vM="\"" |
| 2483 for(y=a.length,x=0,w="\"";x<y;++x){v=C.xB.j(a,x) |
| 2484 if(v<=31)if(v===10)w=z.vM+="\\n" |
| 2485 else if(v===13)w=z.vM+="\\r" |
| 2486 else if(v===9)w=z.vM+="\\t" |
| 2487 else{w=z.vM+="\\x" |
| 2488 if(v<16)z.vM=w+"0" |
| 2489 else{z.vM=w+"1" |
| 2490 v-=16}w=H.Lw(v<10?48+v:87+v) |
| 2491 w=z.vM+=w}else if(v===92)w=z.vM+="\\\\" |
| 2492 else if(v===34)w=z.vM+="\\\"" |
| 2493 else{w=H.Lw(v) |
| 2494 w=z.vM+=w}}y=w+"\"" |
| 2495 z.vM=y |
| 2496 return y}return"Instance of '"+H.lh(a)+"'"}, |
| 2497 FM:function(a){return new P.HG(a)}, |
| 2498 ad:[function(a,b){return a==null?b==null:a===b},"$2","n0",4,0,4], |
| 2499 xv:[function(a){return H.CU(a)},"$1","J2",2,0,5], |
| 2500 F:function(a,b,c){var z,y |
| 2501 z=H.VM([],[c]) |
| 2502 for(y=a.gA(a);y.G();)z.push(y.gl()) |
| 2503 if(b)return z |
| 2504 z.fixed$length=init |
| 2505 return z}, |
| 2506 JS:function(a){var z=H.d(a) |
| 2507 H.qw(z)}, |
| 2508 CL:{ |
| 2509 "^":"Tp:17;a", |
| 2510 $2:function(a,b){var z=this.a |
| 2511 if(z.b>0)z.a.KF(", ") |
| 2512 z.a.KF(P.Hp(a))}}, |
| 2513 a2:{ |
| 2514 "^":"a;", |
| 2515 $isa2:true}, |
| 2516 "+bool":0, |
| 2517 CP:{ |
| 2518 "^":"lf;"}, |
| 2519 "+double":0, |
| 2520 a6:{ |
| 2521 "^":"a;Fq", |
| 2522 g:function(a,b){return P.k5(0,0,C.jn.g(this.Fq,b.gFq()),0,0,0)}, |
| 2523 C:function(a,b){return C.jn.C(this.Fq,b.gFq())}, |
| 2524 F:function(a,b){return C.jn.F(this.Fq,b.gFq())}, |
| 2525 n:function(a,b){if(b==null)return!1 |
| 2526 if(!J.x(b).$isa6)return!1 |
| 2527 return this.Fq===b.Fq}, |
| 2528 giO:function(a){return this.Fq&0x1FFFFFFF}, |
| 2529 bu:function(a){var z,y,x,w,v |
| 2530 z=new P.DW() |
| 2531 y=this.Fq |
| 2532 if(y<0)return"-"+P.k5(0,0,-y,0,0,0).bu(0) |
| 2533 x=z.$1(C.jn.JV(C.jn.cU(y,60000000),60)) |
| 2534 w=z.$1(C.jn.JV(C.jn.cU(y,1000000),60)) |
| 2535 v=new P.P7().$1(C.jn.JV(y,1000000)) |
| 2536 return""+C.jn.cU(y,3600000000)+":"+H.d(x)+":"+H.d(w)+"."+H.d(v)}, |
| 2537 $isa6:true, |
| 2538 static:{"^":"Wt,S4,dk,Lo,zj,b2,q9,Ie,Do,Cv,kT,IJ,D9,Vk,S8,rG",k5:function(a,b,c,
d,e,f){return new P.a6(a*86400000000+b*3600000000+e*60000000+f*1000000+d*1000+c)
}}}, |
| 2539 P7:{ |
| 2540 "^":"Tp:18;", |
| 2541 $1:function(a){if(a>=100000)return""+a |
| 2542 if(a>=10000)return"0"+a |
| 2543 if(a>=1000)return"00"+a |
| 2544 if(a>=100)return"000"+a |
| 2545 if(a>=10)return"0000"+a |
| 2546 return"00000"+a}}, |
| 2547 DW:{ |
| 2548 "^":"Tp:18;", |
| 2549 $1:function(a){if(a>=10)return""+a |
| 2550 return"0"+a}}, |
| 2551 Ge:{ |
| 2552 "^":"a;", |
| 2553 gI4:function(){return new H.XO(this.$thrownJsError,null)}, |
| 2554 $isGe:true}, |
| 2555 LK:{ |
| 2556 "^":"Ge;", |
| 2557 bu:function(a){return"Throw of null."}}, |
| 2558 AT:{ |
| 2559 "^":"Ge;G1", |
| 2560 bu:function(a){var z=this.G1 |
| 2561 if(z!=null)return"Illegal argument(s): "+H.d(z) |
| 2562 return"Illegal argument(s)"}, |
| 2563 static:{u:function(a){return new P.AT(a)}}}, |
| 2564 bJ:{ |
| 2565 "^":"AT;G1", |
| 2566 bu:function(a){return"RangeError: "+H.d(this.G1)}, |
| 2567 static:{N:function(a){return new P.bJ("value "+H.d(a))},TE:function(a,b,c){retur
n new P.bJ("value "+H.d(a)+" not in range "+b+".."+H.d(c))}}}, |
| 2568 ub:{ |
| 2569 "^":"Ge;G1", |
| 2570 bu:function(a){return"Unsupported operation: "+this.G1}, |
| 2571 static:{f:function(a){return new P.ub(a)}}}, |
| 2572 ds:{ |
| 2573 "^":"Ge;G1", |
| 2574 bu:function(a){var z=this.G1 |
| 2575 return z!=null?"UnimplementedError: "+H.d(z):"UnimplementedError"}, |
| 2576 $isGe:true, |
| 2577 static:{SY:function(a){return new P.ds(a)}}}, |
| 2578 lj:{ |
| 2579 "^":"Ge;G1", |
| 2580 bu:function(a){return"Bad state: "+this.G1}, |
| 2581 static:{w:function(a){return new P.lj(a)}}}, |
| 2582 UV:{ |
| 2583 "^":"Ge;YA", |
| 2584 bu:function(a){var z=this.YA |
| 2585 if(z==null)return"Concurrent modification during iteration." |
| 2586 return"Concurrent modification during iteration: "+H.d(P.hl(z))+"."}, |
| 2587 static:{a4:function(a){return new P.UV(a)}}}, |
| 2588 VS:{ |
| 2589 "^":"a;", |
| 2590 bu:function(a){return"Stack Overflow"}, |
| 2591 gI4:function(){return}, |
| 2592 $isGe:true}, |
| 2593 t7:{ |
| 2594 "^":"Ge;Wo", |
| 2595 bu:function(a){return"Reading static variable '"+this.Wo+"' during its initializ
ation"}, |
| 2596 static:{Gz:function(a){return new P.t7(a)}}}, |
| 2597 HG:{ |
| 2598 "^":"a;G1", |
| 2599 bu:function(a){var z=this.G1 |
| 2600 if(z==null)return"Exception" |
| 2601 return"Exception: "+H.d(z)}}, |
| 2602 kM:{ |
| 2603 "^":"a;oc", |
| 2604 bu:function(a){return"Expando:"+H.d(this.oc)}, |
| 2605 t:function(a,b){var z=H.VK(b,"expando$values") |
| 2606 return z==null?null:H.VK(z,this.J4())}, |
| 2607 u:function(a,b,c){var z=H.VK(b,"expando$values") |
| 2608 if(z==null){z=new P.a() |
| 2609 H.aw(b,"expando$values",z)}H.aw(z,this.J4(),c)}, |
| 2610 J4:function(){var z,y |
| 2611 z=H.VK(this,"expando$key") |
| 2612 if(z==null){y=$.Ss |
| 2613 $.Ss=y+1 |
| 2614 z="expando$key$"+y |
| 2615 H.aw(this,"expando$key",z)}return z}, |
| 2616 static:{"^":"bZ,rl,Ss"}}, |
| 2617 KN:{ |
| 2618 "^":"lf;", |
| 2619 $isKN:true}, |
| 2620 "+int":0, |
| 2621 An:{ |
| 2622 "^":"a;"}, |
| 2623 zM:{ |
| 2624 "^":"a;", |
| 2625 $iszM:true, |
| 2626 $aszM:null}, |
| 2627 "+List":0, |
| 2628 c8:{ |
| 2629 "^":"a;", |
| 2630 bu:function(a){return"null"}}, |
| 2631 "+Null":0, |
| 2632 lf:{ |
| 2633 "^":"a;", |
| 2634 $islf:true}, |
| 2635 "+num":0, |
| 2636 a:{ |
| 2637 "^":";", |
| 2638 n:function(a,b){return this===b}, |
| 2639 giO:function(a){return H.eQ(this)}, |
| 2640 bu:function(a){return H.a5(this)}}, |
| 2641 mE:{ |
| 2642 "^":"a;"}, |
| 2643 qU:{ |
| 2644 "^":"a;", |
| 2645 $isqU:true}, |
| 2646 "+String":0, |
| 2647 Rn:{ |
| 2648 "^":"a;vM<", |
| 2649 gB:function(a){return this.vM.length}, |
| 2650 KF:function(a){this.vM+=typeof a==="string"?a:H.d(a)}, |
| 2651 We:function(a,b){var z,y |
| 2652 z=J.GP(a) |
| 2653 if(!z.G())return |
| 2654 if(b.length===0)do{y=z.gl() |
| 2655 this.vM+=typeof y==="string"?y:H.d(y)}while(z.G()) |
| 2656 else{this.KF(z.gl()) |
| 2657 for(;z.G();){this.vM+=b |
| 2658 y=z.gl() |
| 2659 this.vM+=typeof y==="string"?y:H.d(y)}}}, |
| 2660 bu:function(a){return this.vM}, |
| 2661 PD:function(a){this.vM=a}, |
| 2662 static:{p9:function(a){var z=new P.Rn("") |
| 2663 z.PD(a) |
| 2664 return z}}}, |
| 2665 wv:{ |
| 2666 "^":"a;"}}],["dart.dom.html","dart:html",,W,{ |
| 2667 "^":"", |
| 2668 qc:function(a){var z |
| 2669 if(a==null)return |
| 2670 if("setInterval" in a){z=W.P1(a) |
| 2671 if(!!J.x(z).$isD0)return z |
| 2672 return}else return a}, |
| 2673 VF:function(a){var z=$.X3 |
| 2674 if(z===C.NU)return a |
| 2675 return z.oj(a,!0)}, |
| 2676 qE:{ |
| 2677 "^":"cv;", |
| 2678 "%":"HTMLAppletElement|HTMLBRElement|HTMLCanvasElement|HTMLContentElement|HTMLDL
istElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirector
yElement|HTMLDivElement|HTMLEmbedElement|HTMLFontElement|HTMLFrameElement|HTMLHR
Element|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTM
LImageElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLMapElement|HT
MLMarqueeElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLModElement
|HTMLOListElement|HTMLObjectElement|HTMLOutputElement|HTMLParagraphElement|HTMLP
aramElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLScriptElemen
t|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLTableCaptionElement|HT
MLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement
|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemp
lateElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknownElemen
t;HTMLElement"}, |
| 2679 Gh:{ |
| 2680 "^":"qE;N:target=", |
| 2681 bu:function(a){return a.toString()}, |
| 2682 "%":"HTMLAnchorElement"}, |
| 2683 fY:{ |
| 2684 "^":"qE;N:target=", |
| 2685 bu:function(a){return a.toString()}, |
| 2686 "%":"HTMLAreaElement"}, |
| 2687 nB:{ |
| 2688 "^":"qE;N:target=", |
| 2689 "%":"HTMLBaseElement"}, |
| 2690 QP:{ |
| 2691 "^":"qE;", |
| 2692 $isD0:true, |
| 2693 "%":"HTMLBodyElement"}, |
| 2694 IF:{ |
| 2695 "^":"qE;lz:disabled}", |
| 2696 "%":"HTMLButtonElement"}, |
| 2697 nx:{ |
| 2698 "^":"KV;B:length=", |
| 2699 "%":"CDATASection|Comment|Text;CharacterData"}, |
| 2700 Nh:{ |
| 2701 "^":"Gv;", |
| 2702 bu:function(a){return a.toString()}, |
| 2703 "%":"DOMException"}, |
| 2704 cv:{ |
| 2705 "^":"KV;", |
| 2706 bu:function(a){return a.localName}, |
| 2707 gVl:function(a){return H.VM(new W.Cq(a,C.T1.Ph,!1),[null])}, |
| 2708 gLm:function(a){return H.VM(new W.Cq(a,C.io.Ph,!1),[null])}, |
| 2709 $isD0:true, |
| 2710 "%":";Element"}, |
| 2711 hY:{ |
| 2712 "^":"ea;kc:error=", |
| 2713 "%":"ErrorEvent"}, |
| 2714 ea:{ |
| 2715 "^":"Gv;", |
| 2716 gN:function(a){return W.qc(a.target)}, |
| 2717 "%":"AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEvent|BeforeUnloadEve
nt|CSSFontFaceLoadEvent|CloseEvent|CustomEvent|DeviceMotionEvent|DeviceOrientati
onEvent|HashChangeEvent|IDBVersionChangeEvent|InstallEvent|InstallPhaseEvent|MID
IConnectionEvent|MIDIMessageEvent|MediaKeyEvent|MediaKeyMessageEvent|MediaKeyNee
dedEvent|MediaStreamEvent|MediaStreamTrackEvent|MessageEvent|MutationEvent|Offli
neAudioCompletionEvent|OverflowEvent|PageTransitionEvent|PopStateEvent|ProgressE
vent|RTCDTMFToneChangeEvent|RTCDataChannelEvent|RTCIceCandidateEvent|ResourcePro
gressEvent|SecurityPolicyViolationEvent|SpeechInputEvent|SpeechRecognitionEvent|
SpeechSynthesisEvent|StorageEvent|TrackEvent|TransitionEvent|WebGLContextEvent|W
ebKitAnimationEvent|WebKitTransitionEvent|XMLHttpRequestProgressEvent;Event"}, |
| 2718 D0:{ |
| 2719 "^":"Gv;", |
| 2720 On:function(a,b,c,d){return a.addEventListener(b,H.tR(c,1),d)}, |
| 2721 Y9:function(a,b,c,d){return a.removeEventListener(b,H.tR(c,1),d)}, |
| 2722 $isD0:true, |
| 2723 "%":";EventTarget"}, |
| 2724 as:{ |
| 2725 "^":"qE;lz:disabled}", |
| 2726 "%":"HTMLFieldSetElement"}, |
| 2727 Yu:{ |
| 2728 "^":"qE;B:length=,N:target=", |
| 2729 "%":"HTMLFormElement"}, |
| 2730 Mi:{ |
| 2731 "^":"qE;lz:disabled}", |
| 2732 $isMi:true, |
| 2733 $isD0:true, |
| 2734 "%":"HTMLInputElement"}, |
| 2735 In:{ |
| 2736 "^":"qE;lz:disabled}", |
| 2737 "%":"HTMLKeygenElement"}, |
| 2738 Og:{ |
| 2739 "^":"qE;lz:disabled}", |
| 2740 "%":"HTMLLinkElement"}, |
| 2741 El:{ |
| 2742 "^":"qE;kc:error=", |
| 2743 "%":"HTMLAudioElement|HTMLMediaElement|HTMLVideoElement"}, |
| 2744 Aj:{ |
| 2745 "^":"w6;", |
| 2746 "%":"DragEvent|MSPointerEvent|MouseEvent|MouseScrollEvent|MouseWheelEvent|Pointe
rEvent|WheelEvent"}, |
| 2747 KV:{ |
| 2748 "^":"D0;", |
| 2749 bu:function(a){var z=a.nodeValue |
| 2750 return z==null?J.Gv.prototype.bu.call(this,a):z}, |
| 2751 "%":"Attr|Document|DocumentFragment|DocumentType|HTMLDocument|Notation|ShadowRoo
t|XMLDocument;Node"}, |
| 2752 l9:{ |
| 2753 "^":"qE;lz:disabled}", |
| 2754 "%":"HTMLOptGroupElement"}, |
| 2755 Ql:{ |
| 2756 "^":"qE;lz:disabled}", |
| 2757 "%":"HTMLOptionElement"}, |
| 2758 nC:{ |
| 2759 "^":"nx;N:target=", |
| 2760 "%":"ProcessingInstruction"}, |
| 2761 lp:{ |
| 2762 "^":"qE;lz:disabled},B:length=", |
| 2763 "%":"HTMLSelectElement"}, |
| 2764 HN:{ |
| 2765 "^":"ea;kc:error=", |
| 2766 "%":"SpeechRecognitionError"}, |
| 2767 fq:{ |
| 2768 "^":"qE;lz:disabled}", |
| 2769 "%":"HTMLStyleElement"}, |
| 2770 FB:{ |
| 2771 "^":"qE;lz:disabled}", |
| 2772 "%":"HTMLTextAreaElement"}, |
| 2773 w6:{ |
| 2774 "^":"ea;", |
| 2775 "%":"CompositionEvent|FocusEvent|KeyboardEvent|SVGZoomEvent|TextEvent|TouchEvent
;UIEvent"}, |
| 2776 Oi:{ |
| 2777 "^":"D0;", |
| 2778 bu:function(a){return a.toString()}, |
| 2779 $isD0:true, |
| 2780 "%":"DOMWindow|Window"}, |
| 2781 Nf:{ |
| 2782 "^":"qE;", |
| 2783 $isD0:true, |
| 2784 "%":"HTMLFrameSetElement"}, |
| 2785 Fk:{ |
| 2786 "^":"a;Ph"}, |
| 2787 RO:{ |
| 2788 "^":"qh;", |
| 2789 KR:function(a,b,c,d){var z=new W.xC(0,this.uv,this.Ph,W.VF(a),this.Sg) |
| 2790 z.$builtinTypeInfo=this.$builtinTypeInfo |
| 2791 z.Zz() |
| 2792 return z}}, |
| 2793 Cq:{ |
| 2794 "^":"RO;uv,Ph,Sg"}, |
| 2795 xC:{ |
| 2796 "^":"MO;VP,uv,Ph,u7,Sg", |
| 2797 ed:function(){if(this.uv==null)return |
| 2798 this.Ns() |
| 2799 this.uv=null |
| 2800 this.u7=null |
| 2801 return}, |
| 2802 Zz:function(){var z=this.u7 |
| 2803 if(z!=null&&this.VP<=0)J.qV(this.uv,this.Ph,z,this.Sg)}, |
| 2804 Ns:function(){var z=this.u7 |
| 2805 if(z!=null)J.GJ(this.uv,this.Ph,z,this.Sg)}}, |
| 2806 dW:{ |
| 2807 "^":"a;Ui", |
| 2808 $isD0:true, |
| 2809 static:{P1:function(a){if(a===window)return a |
| 2810 else return new W.dW(a)}}}}],["dart.dom.svg","dart:svg",,P,{ |
| 2811 "^":"", |
| 2812 Y0:{ |
| 2813 "^":"tp;N:target=", |
| 2814 "%":"SVGAElement"}, |
| 2815 tp:{ |
| 2816 "^":"d5;", |
| 2817 "%":"SVGAltGlyphElement|SVGCircleElement|SVGClipPathElement|SVGDefsElement|SVGEl
lipseElement|SVGForeignObjectElement|SVGGElement|SVGGeometryElement|SVGImageElem
ent|SVGLineElement|SVGPathElement|SVGPolygonElement|SVGPolylineElement|SVGRectEl
ement|SVGSVGElement|SVGSwitchElement|SVGTSpanElement|SVGTextContentElement|SVGTe
xtElement|SVGTextPathElement|SVGTextPositioningElement|SVGUseElement;SVGGraphics
Element"}, |
| 2818 Lx:{ |
| 2819 "^":"d5;lz:disabled}", |
| 2820 "%":"SVGStyleElement"}, |
| 2821 d5:{ |
| 2822 "^":"cv;", |
| 2823 gVl:function(a){return H.VM(new W.Cq(a,C.T1.Ph,!1),[null])}, |
| 2824 gLm:function(a){return H.VM(new W.Cq(a,C.io.Ph,!1),[null])}, |
| 2825 $isD0:true, |
| 2826 "%":"SVGAltGlyphDefElement|SVGAltGlyphItemElement|SVGAnimateElement|SVGAnimateMo
tionElement|SVGAnimateTransformElement|SVGAnimationElement|SVGComponentTransferF
unctionElement|SVGCursorElement|SVGDescElement|SVGDiscardElement|SVGFEBlendEleme
nt|SVGFEColorMatrixElement|SVGFEComponentTransferElement|SVGFECompositeElement|S
VGFEConvolveMatrixElement|SVGFEDiffuseLightingElement|SVGFEDisplacementMapElemen
t|SVGFEDistantLightElement|SVGFEDropShadowElement|SVGFEFloodElement|SVGFEFuncAEl
ement|SVGFEFuncBElement|SVGFEFuncGElement|SVGFEFuncRElement|SVGFEGaussianBlurEle
ment|SVGFEImageElement|SVGFEMergeElement|SVGFEMergeNodeElement|SVGFEMorphologyEl
ement|SVGFEOffsetElement|SVGFEPointLightElement|SVGFESpecularLightingElement|SVG
FESpotLightElement|SVGFETileElement|SVGFETurbulenceElement|SVGFilterElement|SVGF
ontElement|SVGFontFaceElement|SVGFontFaceFormatElement|SVGFontFaceNameElement|SV
GFontFaceSrcElement|SVGFontFaceUriElement|SVGGlyphElement|SVGGlyphRefElement|SVG
GradientElement|SVGHKernElement|SVGLinearGradientElement|SVGMPathElement|SVGMark
erElement|SVGMaskElement|SVGMetadataElement|SVGMissingGlyphElement|SVGPatternEle
ment|SVGRadialGradientElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGS
ymbolElement|SVGTitleElement|SVGVKernElement|SVGViewElement;SVGElement"}}],["dar
t.isolate","dart:isolate",,P,{ |
| 2827 "^":"", |
| 2828 IU:{ |
| 2829 "^":"a;", |
| 2830 $isIU:true, |
| 2831 static:{N3:function(){return new H.ku((Math.random()*0x100000000>>>0)+(Math.rand
om()*0x100000000>>>0)*4294967296)}}}}],["dart.typed_data.implementation","dart:_
native_typed_data",,H,{ |
| 2832 "^":"", |
| 2833 ET:{ |
| 2834 "^":"Gv;", |
| 2835 J2:function(a,b,c){var z=J.Wx(b) |
| 2836 if(z.C(b,0)||z.F(b,c))throw H.b(P.TE(b,0,c)) |
| 2837 else throw H.b(P.u("Invalid list index "+H.d(b)))}, |
| 2838 "%":";ArrayBufferView;b0|Ob|GV|Pg"}, |
| 2839 V6:{ |
| 2840 "^":"Pg;", |
| 2841 gB:function(a){return a.length}, |
| 2842 t:function(a,b){var z=a.length |
| 2843 if(b>>>0!==b||b>=z)this.J2(a,b,z) |
| 2844 return a[b]}, |
| 2845 u:function(a,b,c){var z=a.length |
| 2846 if(b>>>0!==b||b>=z)this.J2(a,b,z) |
| 2847 a[b]=c}, |
| 2848 $iszM:true, |
| 2849 $aszM:function(){return[P.KN]}, |
| 2850 "%":";Uint8Array"}, |
| 2851 b0:{ |
| 2852 "^":"ET;", |
| 2853 gB:function(a){return a.length}, |
| 2854 $isXj:true}, |
| 2855 Pg:{ |
| 2856 "^":"GV;", |
| 2857 $iszM:true, |
| 2858 $aszM:function(){return[P.KN]}}, |
| 2859 Ob:{ |
| 2860 "^":"b0+FN;", |
| 2861 $iszM:true, |
| 2862 $aszM:function(){return[P.KN]}}, |
| 2863 GV:{ |
| 2864 "^":"Ob+SU;"}}],["dart2js._js_primitives","dart:_js_primitives",,H,{ |
| 2865 "^":"", |
| 2866 qw:function(a){if(typeof dartPrint=="function"){dartPrint(a) |
| 2867 return}if(typeof console=="object"&&typeof console.log=="function"){console.log(
a) |
| 2868 return}if(typeof window=="object")return |
| 2869 if(typeof print=="function"){print(a) |
| 2870 return}throw"Unable to print message: "+String(a)}}],["","file:///Users/kathyw/S
pot/one-hour-codelab/web/3-buttonbadge/piratebadge.dart",,A,{ |
| 2871 "^":"", |
| 2872 Iq:[function(){var z=J.q0(document.querySelector("#inputName")) |
| 2873 H.VM(new W.xC(0,z.uv,z.Ph,W.VF(A.qC()),z.Sg),[H.Kp(z,0)]).Zz() |
| 2874 z=document.querySelector("#generateButton") |
| 2875 $.Tn=z |
| 2876 z=J.Vg(z) |
| 2877 H.VM(new W.xC(0,z.uv,z.Ph,W.VF(A.OL()),z.Sg),[H.Kp(z,0)]).Zz()},"$0","eE",0,0,1]
, |
| 2878 zL:[function(a){var z,y,x |
| 2879 z=H.Go(J.l2(a),"$isMi").value |
| 2880 document.querySelector("#badgeName").textContent=z |
| 2881 y=J.rr(z) |
| 2882 x=$.Tn |
| 2883 if(y.length===0){J.lo(x,!1) |
| 2884 x.textContent="Aye! Gimme a name!"}else{J.lo(x,!0) |
| 2885 x.textContent="Arrr! Write yer name!"}},"$1","qC",2,0,6], |
| 2886 KL:[function(a){document.querySelector("#badgeName").textContent="Anne Bonney"},
"$1","OL",2,0,6]},1],]) |
| 2887 I.$finishClasses($$,$,null) |
| 2888 $$=null |
| 2889 P.KN.$isKN=true |
| 2890 P.KN.$isa=true |
| 2891 P.qU.$isqU=true |
| 2892 P.qU.$isa=true |
| 2893 P.lf.$isa=true |
| 2894 P.a6.$isa=true |
| 2895 W.Aj.$isea=true |
| 2896 W.Aj.$isa=true |
| 2897 W.ea.$isea=true |
| 2898 W.ea.$isa=true |
| 2899 H.yo.$isa=true |
| 2900 H.IY.$isa=true |
| 2901 H.aX.$isa=true |
| 2902 P.wv.$iswv=true |
| 2903 P.wv.$isa=true |
| 2904 P.a2.$isa2=true |
| 2905 P.a2.$isa=true |
| 2906 P.mE.$ismE=true |
| 2907 P.mE.$isa=true |
| 2908 P.a.$isa=true |
| 2909 P.nP.$isnP=true |
| 2910 P.nP.$isa=true |
| 2911 J.Qc=function(a){if(typeof a=="number")return J.P.prototype |
| 2912 if(typeof a=="string")return J.O.prototype |
| 2913 if(a==null)return a |
| 2914 if(!(a instanceof P.a))return J.is.prototype |
| 2915 return a} |
| 2916 J.RE=function(a){if(a==null)return a |
| 2917 if(typeof a!="object")return a |
| 2918 if(a instanceof P.a)return a |
| 2919 return J.ks(a)} |
| 2920 J.U6=function(a){if(typeof a=="string")return J.O.prototype |
| 2921 if(a==null)return a |
| 2922 if(a.constructor==Array)return J.Q.prototype |
| 2923 if(typeof a!="object")return a |
| 2924 if(a instanceof P.a)return a |
| 2925 return J.ks(a)} |
| 2926 J.Wx=function(a){if(typeof a=="number")return J.P.prototype |
| 2927 if(a==null)return a |
| 2928 if(!(a instanceof P.a))return J.is.prototype |
| 2929 return a} |
| 2930 J.rY=function(a){if(typeof a=="string")return J.O.prototype |
| 2931 if(a==null)return a |
| 2932 if(!(a instanceof P.a))return J.is.prototype |
| 2933 return a} |
| 2934 J.w1=function(a){if(a==null)return a |
| 2935 if(a.constructor==Array)return J.Q.prototype |
| 2936 if(typeof a!="object")return a |
| 2937 if(a instanceof P.a)return a |
| 2938 return J.ks(a)} |
| 2939 J.x=function(a){if(typeof a=="number"){if(Math.floor(a)==a)return J.im.prototype |
| 2940 return J.VA.prototype}if(typeof a=="string")return J.O.prototype |
| 2941 if(a==null)return J.YE.prototype |
| 2942 if(typeof a=="boolean")return J.kn.prototype |
| 2943 if(a.constructor==Array)return J.Q.prototype |
| 2944 if(typeof a!="object")return a |
| 2945 if(a instanceof P.a)return a |
| 2946 return J.ks(a)} |
| 2947 J.AG=function(a){return J.x(a).bu(a)} |
| 2948 J.GJ=function(a,b,c,d){return J.RE(a).Y9(a,b,c,d)} |
| 2949 J.GP=function(a){return J.w1(a).gA(a)} |
| 2950 J.UQ=function(a,b){if(a.constructor==Array||typeof a=="string"||H.wV(a,a[init.di
spatchPropertyName]))if(b>>>0===b&&b<a.length)return a[b] |
| 2951 return J.U6(a).t(a,b)} |
| 2952 J.V1=function(a,b){return J.w1(a).Rz(a,b)} |
| 2953 J.Vg=function(a){return J.RE(a).gVl(a)} |
| 2954 J.WB=function(a,b){if(typeof a=="number"&&typeof b=="number")return a+b |
| 2955 return J.Qc(a).g(a,b)} |
| 2956 J.de=function(a,b){if(a==null)return b==null |
| 2957 if(typeof a!="object")return b!=null&&a===b |
| 2958 return J.x(a).n(a,b)} |
| 2959 J.kE=function(a,b){return J.U6(a).tg(a,b)} |
| 2960 J.kH=function(a,b){return J.w1(a).aN(a,b)} |
| 2961 J.kW=function(a,b,c){if((a.constructor==Array||H.wV(a,a[init.dispatchPropertyNam
e]))&&!a.immutable$list&&b>>>0===b&&b<a.length)return a[b]=c |
| 2962 return J.w1(a).u(a,b,c)} |
| 2963 J.l2=function(a){return J.RE(a).gN(a)} |
| 2964 J.lo=function(a,b){return J.RE(a).slz(a,b)} |
| 2965 J.q0=function(a){return J.RE(a).gLm(a)} |
| 2966 J.q8=function(a){return J.U6(a).gB(a)} |
| 2967 J.qV=function(a,b,c,d){return J.RE(a).On(a,b,c,d)} |
| 2968 J.rr=function(a){return J.rY(a).bS(a)} |
| 2969 J.v1=function(a){return J.x(a).giO(a)} |
| 2970 J.w8=function(a){return J.RE(a).gkc(a)} |
| 2971 C.Nm=J.Q.prototype |
| 2972 C.jn=J.im.prototype |
| 2973 C.CD=J.P.prototype |
| 2974 C.xB=J.O.prototype |
| 2975 C.ZQ=J.iC.prototype |
| 2976 C.vB=J.is.prototype |
| 2977 C.KZ=new H.hJ() |
| 2978 C.NU=new P.R8() |
| 2979 C.RT=new P.a6(0) |
| 2980 C.T1=new W.Fk("click") |
| 2981 C.io=new W.Fk("input") |
| 2982 C.Mc=function(hooks) { |
| 2983 if (typeof dartExperimentalFixupGetTag != "function") return hooks; |
| 2984 hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); |
| 2985 } |
| 2986 C.lR=function(hooks) { |
| 2987 var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; |
| 2988 if (userAgent.indexOf("Firefox") == -1) return hooks; |
| 2989 var getTag = hooks.getTag; |
| 2990 var quickMap = { |
| 2991 "BeforeUnloadEvent": "Event", |
| 2992 "DataTransfer": "Clipboard", |
| 2993 "GeoGeolocation": "Geolocation", |
| 2994 "Location": "!Location", |
| 2995 "WorkerMessageEvent": "MessageEvent", |
| 2996 "XMLDocument": "!Document"}; |
| 2997 function getTagFirefox(o) { |
| 2998 var tag = getTag(o); |
| 2999 return quickMap[tag] || tag; |
71 } | 3000 } |
72 }]; | 3001 hooks.getTag = getTagFirefox; |
73 | |
74 $$.BoundClosure$1 = [H, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | |
75 call$1: function(p0) { | |
76 return this.__js_helper$_target.call(this._self, p0); | |
77 }, | |
78 $is_args1: true | |
79 }]; | |
80 | |
81 $$.BoundClosure$2 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | |
82 call$2: function(p0, p1) { | |
83 return this.__js_helper$_target.call(this._self, p0, p1); | |
84 }, | |
85 call$1: function(p0) { | |
86 return this.call$2(p0, null); | |
87 }, | |
88 $is_args2: true, | |
89 $is_args1: true | |
90 }]; | |
91 | |
92 $$.BoundClosure$0 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | |
93 call$0: function() { | |
94 return this.__js_helper$_target.call(this._self); | |
95 } | |
96 }]; | |
97 | |
98 $$.Closure$2 = [H, {"": "Closure;call$2,$name", $is_args2: true}]; | |
99 | |
100 $$.Closure$0 = [H, {"": "Closure;call$0,$name"}]; | |
101 | |
102 $$.Closure$7 = [H, {"": "Closure;call$7,$name"}]; | |
103 | |
104 $$.Closure$1 = [H, {"": "Closure;call$1,$name", $is_args1: true}]; | |
105 | |
106 $$.Closure$21 = [P, {"": "Closure;call$2,$name", | |
107 call$1: function(p0) { | |
108 return this.call$2(p0, null); | |
109 }, | |
110 $is_args2: true, | |
111 $is_args1: true | |
112 }]; | |
113 | |
114 (function (reflectionData) { | |
115 function map(x){x={x:x};delete x.x;return x} | |
116 if (!init.libraries) init.libraries = []; | |
117 if (!init.mangledNames) init.mangledNames = map(); | |
118 if (!init.mangledGlobalNames) init.mangledGlobalNames = map(); | |
119 if (!init.statics) init.statics = map(); | |
120 if (!init.interfaces) init.interfaces = map(); | |
121 if (!init.globalFunctions) init.globalFunctions = map(); | |
122 var libraries = init.libraries; | |
123 var mangledNames = init.mangledNames; | |
124 var mangledGlobalNames = init.mangledGlobalNames; | |
125 var hasOwnProperty = Object.prototype.hasOwnProperty; | |
126 var length = reflectionData.length; | |
127 for (var i = 0; i < length; i++) { | |
128 var data = reflectionData[i]; | |
129 var name = data[0]; | |
130 var uri = data[1]; | |
131 var metadata = data[2]; | |
132 var globalObject = data[3]; | |
133 var descriptor = data[4]; | |
134 var isRoot = !!data[5]; | |
135 var fields = descriptor && descriptor[""]; | |
136 var classes = []; | |
137 var functions = []; | |
138 function processStatics(descriptor) { | |
139 for (var property in descriptor) { | |
140 if (!hasOwnProperty.call(descriptor, property)) continue; | |
141 if (property === "") continue; | |
142 var element = descriptor[property]; | |
143 var firstChar = property.substring(0, 1); | |
144 var previousProperty; | |
145 if (firstChar === "+") { | |
146 mangledGlobalNames[previousProperty] = property.substring(1); | |
147 if (descriptor[property] == 1) descriptor[previousProperty].$reflectab
le = 1; | |
148 if (element && element.length) init.interfaces[previousProperty] = ele
ment; | |
149 } else if (firstChar === "@") { | |
150 property = property.substring(1); | |
151 $[property]["@"] = element; | |
152 } else if (firstChar === "*") { | |
153 globalObject[previousProperty].$defaultValues = element; | |
154 var optionalMethods = descriptor.$methodsWithOptionalArguments; | |
155 if (!optionalMethods) { | |
156 descriptor.$methodsWithOptionalArguments = optionalMethods = {} | |
157 } | |
158 optionalMethods[property] = previousProperty; | |
159 } else if (typeof element === "function") { | |
160 globalObject[previousProperty = property] = element; | |
161 functions.push(property); | |
162 init.globalFunctions[property] = element; | |
163 } else { | |
164 previousProperty = property; | |
165 var newDesc = {}; | |
166 var previousProp; | |
167 for (var prop in element) { | |
168 if (!hasOwnProperty.call(element, prop)) continue; | |
169 firstChar = prop.substring(0, 1); | |
170 if (prop === "static") { | |
171 processStatics(init.statics[property] = element[prop]); | |
172 } else if (firstChar === "+") { | |
173 mangledNames[previousProp] = prop.substring(1); | |
174 if (element[prop] == 1) element[previousProp].$reflectable = 1; | |
175 } else if (firstChar === "@" && prop !== "@") { | |
176 newDesc[prop.substring(1)]["@"] = element[prop]; | |
177 } else if (firstChar === "*") { | |
178 newDesc[previousProp].$defaultValues = element[prop]; | |
179 var optionalMethods = newDesc.$methodsWithOptionalArguments; | |
180 if (!optionalMethods) { | |
181 newDesc.$methodsWithOptionalArguments = optionalMethods={} | |
182 } | |
183 optionalMethods[prop] = previousProp; | |
184 } else { | |
185 newDesc[previousProp = prop] = element[prop]; | |
186 } | |
187 } | |
188 $$[property] = [globalObject, newDesc]; | |
189 classes.push(property); | |
190 } | |
191 } | |
192 } | |
193 processStatics(descriptor); | |
194 libraries.push([name, uri, classes, functions, metadata, fields, isRoot, | |
195 globalObject]); | |
196 } | |
197 })([ | |
198 ["_foreign_helper", "dart:_foreign_helper", , H, { | |
199 JS_CONST: {"": "Object;code"}}], | |
200 ["_interceptors", "dart:_interceptors", , J, { | |
201 getInterceptor: function(object) { | |
202 return void 0; | |
203 }, | |
204 | |
205 makeDispatchRecord: function(interceptor, proto, extension, indexability) { | |
206 return {i: interceptor, p: proto, e: extension, x: indexability}; | |
207 }, | |
208 | |
209 getNativeInterceptor: function(object) { | |
210 var record, proto, objectProto; | |
211 record = object[init.dispatchPropertyName]; | |
212 if (record == null) | |
213 if ($.initNativeDispatchFlag == null) { | |
214 H.initNativeDispatch(); | |
215 record = object[init.dispatchPropertyName]; | |
216 } | |
217 if (record != null) { | |
218 proto = record.p; | |
219 if (false === proto) | |
220 return record.i; | |
221 if (true === proto) | |
222 return object; | |
223 objectProto = Object.getPrototypeOf(object); | |
224 if (proto === objectProto) | |
225 return record.i; | |
226 if (record.e === objectProto) | |
227 return proto(object, record); | |
228 } | |
229 record = H.lookupDispatchRecord(object); | |
230 if (record == null) | |
231 return C.C_UnknownJavaScriptObject; | |
232 Object.defineProperty(Object.getPrototypeOf(object), init.dispatchPropertyName
, {value: record, enumerable: false, writable: true, configurable: true}); | |
233 return J.getNativeInterceptor(object); | |
234 }, | |
235 | |
236 Interceptor: {"": "Object;", | |
237 $eq: function(receiver, other) { | |
238 return receiver === other; | |
239 }, | |
240 get$hashCode: function(receiver) { | |
241 return H.Primitives_objectHashCode(receiver); | |
242 }, | |
243 toString$0: function(receiver) { | |
244 return H.Primitives_objectToString(receiver); | |
245 } | |
246 }, | |
247 | |
248 JSBool: {"": "bool/Interceptor;", | |
249 toString$0: function(receiver) { | |
250 return String(receiver); | |
251 }, | |
252 get$hashCode: function(receiver) { | |
253 return receiver ? 519018 : 218159; | |
254 }, | |
255 $isbool: true | |
256 }, | |
257 | |
258 JSNull: {"": "Interceptor;", | |
259 $eq: function(receiver, other) { | |
260 return null == other; | |
261 }, | |
262 toString$0: function(receiver) { | |
263 return "null"; | |
264 }, | |
265 get$hashCode: function(receiver) { | |
266 return 0; | |
267 } | |
268 }, | |
269 | |
270 JavaScriptObject: {"": "Interceptor;", | |
271 get$hashCode: function(_) { | |
272 return 0; | |
273 } | |
274 }, | |
275 | |
276 PlainJavaScriptObject: {"": "JavaScriptObject;"}, | |
277 | |
278 UnknownJavaScriptObject: {"": "JavaScriptObject;"}, | |
279 | |
280 JSArray: {"": "List/Interceptor;", | |
281 forEach$1: function(receiver, f) { | |
282 return H.IterableMixinWorkaround_forEach(receiver, f); | |
283 }, | |
284 elementAt$1: function(receiver, index) { | |
285 if (index < 0 || index >= receiver.length) | |
286 throw H.ioore(receiver, index); | |
287 return receiver[index]; | |
288 }, | |
289 toString$0: function(receiver) { | |
290 return H.IterableMixinWorkaround_toStringIterable(receiver, "[", "]"); | |
291 }, | |
292 get$iterator: function(receiver) { | |
293 return new H.ListIterator(receiver, receiver.length, 0, null); | |
294 }, | |
295 get$hashCode: function(receiver) { | |
296 return H.Primitives_objectHashCode(receiver); | |
297 }, | |
298 get$length: function(receiver) { | |
299 return receiver.length; | |
300 }, | |
301 $index: function(receiver, index) { | |
302 if (typeof index !== "number" || Math.floor(index) !== index) | |
303 throw H.wrapException(new P.ArgumentError(index)); | |
304 if (index >= receiver.length || index < 0) | |
305 throw H.wrapException(P.RangeError$value(index)); | |
306 return receiver[index]; | |
307 }, | |
308 $indexSet: function(receiver, index, value) { | |
309 if (!!receiver.immutable$list) | |
310 H.throwExpression(P.UnsupportedError$("indexed set")); | |
311 if (typeof index !== "number" || Math.floor(index) !== index) | |
312 throw H.wrapException(new P.ArgumentError(index)); | |
313 if (index >= receiver.length || index < 0) | |
314 throw H.wrapException(P.RangeError$value(index)); | |
315 receiver[index] = value; | |
316 }, | |
317 $isList: true, | |
318 $asList: null, | |
319 $isList: true, | |
320 $isEfficientLength: true | |
321 }, | |
322 | |
323 JSMutableArray: {"": "JSArray;", $isJSMutableArray: true, | |
324 $asJSArray: function() { | |
325 return [null]; | |
326 }, | |
327 $asList: function() { | |
328 return [null]; | |
329 } | |
330 }, | |
331 | |
332 JSFixedArray: {"": "JSMutableArray;"}, | |
333 | |
334 JSExtendableArray: {"": "JSMutableArray;"}, | |
335 | |
336 JSNumber: {"": "num/Interceptor;", | |
337 remainder$1: function(receiver, b) { | |
338 return receiver % b; | |
339 }, | |
340 toInt$0: function(receiver) { | |
341 var t1; | |
342 if (receiver >= -2147483648 && receiver <= 2147483647) | |
343 return receiver | 0; | |
344 if (isFinite(receiver)) { | |
345 t1 = receiver < 0 ? Math.ceil(receiver) : Math.floor(receiver); | |
346 return t1 + 0; | |
347 } | |
348 throw H.wrapException(P.UnsupportedError$('' + receiver)); | |
349 }, | |
350 toString$0: function(receiver) { | |
351 if (receiver === 0 && 1 / receiver < 0) | |
352 return "-0.0"; | |
353 else | |
354 return "" + receiver; | |
355 }, | |
356 get$hashCode: function(receiver) { | |
357 return receiver & 0x1FFFFFFF; | |
358 }, | |
359 $tdiv: function(receiver, other) { | |
360 if ((receiver | 0) === receiver && (other | 0) === other && 0 !== other && -
1 !== other) | |
361 return receiver / other | 0; | |
362 else | |
363 return this._slowTdiv$1(receiver, other); | |
364 }, | |
365 _slowTdiv$1: function(receiver, other) { | |
366 return this.toInt$0(receiver / other); | |
367 }, | |
368 $shr: function(receiver, other) { | |
369 if (other < 0) | |
370 throw H.wrapException(new P.ArgumentError(other)); | |
371 if (receiver > 0) { | |
372 if (other > 31) | |
373 return 0; | |
374 return receiver >>> other; | |
375 } | |
376 if (other > 31) | |
377 other = 31; | |
378 return receiver >> other >>> 0; | |
379 }, | |
380 $lt: function(receiver, other) { | |
381 if (typeof other !== "number") | |
382 throw H.wrapException(new P.ArgumentError(other)); | |
383 return receiver < other; | |
384 }, | |
385 $gt: function(receiver, other) { | |
386 if (typeof other !== "number") | |
387 throw H.wrapException(new P.ArgumentError(other)); | |
388 return receiver > other; | |
389 }, | |
390 $ge: function(receiver, other) { | |
391 if (typeof other !== "number") | |
392 throw H.wrapException(new P.ArgumentError(other)); | |
393 return receiver >= other; | |
394 }, | |
395 $isnum: true, | |
396 static: { | |
397 "": "JSNumber__MIN_INT32,JSNumber__MAX_INT32", | |
398 } | 3002 } |
399 | 3003 C.w2=function getTagFallback(o) { |
400 }, | 3004 var constructor = o.constructor; |
401 | 3005 if (typeof constructor == "function") { |
402 JSInt: {"": "int/JSNumber;", $isdouble: true, $isnum: true, $isint: true}, | 3006 var name = constructor.name; |
403 | 3007 if (typeof name == "string" && |
404 JSDouble: {"": "double/JSNumber;", $isdouble: true, $isnum: true}, | 3008 name.length > 2 && |
405 | 3009 name !== "Object" && |
406 JSString: {"": "String/Interceptor;", | 3010 name !== "Function.prototype") { |
407 codeUnitAt$1: function(receiver, index) { | 3011 return name; |
408 if (index < 0) | |
409 throw H.wrapException(P.RangeError$value(index)); | |
410 if (index >= receiver.length) | |
411 throw H.wrapException(P.RangeError$value(index)); | |
412 return receiver.charCodeAt(index); | |
413 }, | |
414 substring$2: function(receiver, startIndex, endIndex) { | |
415 if (endIndex == null) | |
416 endIndex = receiver.length; | |
417 if (typeof endIndex !== "number") | |
418 H.throwExpression(P.ArgumentError$(endIndex)); | |
419 if (startIndex < 0) | |
420 throw H.wrapException(P.RangeError$value(startIndex)); | |
421 if (typeof endIndex !== "number") | |
422 throw H.iae(endIndex); | |
423 if (startIndex > endIndex) | |
424 throw H.wrapException(P.RangeError$value(startIndex)); | |
425 if (endIndex > receiver.length) | |
426 throw H.wrapException(P.RangeError$value(endIndex)); | |
427 return receiver.substring(startIndex, endIndex); | |
428 }, | |
429 substring$1: function($receiver, startIndex) { | |
430 return this.substring$2($receiver, startIndex, null); | |
431 }, | |
432 trim$0: function(receiver) { | |
433 var endIndex, startIndex, codeUnit, endIndex0, endIndex1; | |
434 for (endIndex = receiver.length, startIndex = 0; startIndex < endIndex;) { | |
435 if (startIndex >= endIndex) | |
436 H.throwExpression(P.RangeError$value(startIndex)); | |
437 codeUnit = receiver.charCodeAt(startIndex); | |
438 if (codeUnit === 32 || codeUnit === 13 || J.JSString__isWhitespace(codeUni
t)) | |
439 ++startIndex; | |
440 else | |
441 break; | |
442 } | |
443 if (startIndex === endIndex) | |
444 return ""; | |
445 for (endIndex0 = endIndex; true; endIndex0 = endIndex1) { | |
446 endIndex1 = endIndex0 - 1; | |
447 if (endIndex1 < 0) | |
448 H.throwExpression(P.RangeError$value(endIndex1)); | |
449 if (endIndex1 >= endIndex) | |
450 H.throwExpression(P.RangeError$value(endIndex1)); | |
451 codeUnit = receiver.charCodeAt(endIndex1); | |
452 if (codeUnit === 32 || codeUnit === 13 || J.JSString__isWhitespace(codeUni
t)) | |
453 ; | |
454 else | |
455 break; | |
456 } | |
457 if (startIndex === 0 && endIndex0 === endIndex) | |
458 return receiver; | |
459 return receiver.substring(startIndex, endIndex0); | |
460 }, | |
461 get$isEmpty: function(receiver) { | |
462 return receiver.length === 0; | |
463 }, | |
464 toString$0: function(receiver) { | |
465 return receiver; | |
466 }, | |
467 get$hashCode: function(receiver) { | |
468 var t1, hash, i; | |
469 for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) { | |
470 hash = 536870911 & hash + receiver.charCodeAt(i); | |
471 hash = 536870911 & hash + ((524287 & hash) << 10 >>> 0); | |
472 hash ^= hash >> 6; | |
473 } | |
474 hash = 536870911 & hash + ((67108863 & hash) << 3 >>> 0); | |
475 hash ^= hash >> 11; | |
476 return 536870911 & hash + ((16383 & hash) << 15 >>> 0); | |
477 }, | |
478 get$length: function(receiver) { | |
479 return receiver.length; | |
480 }, | |
481 $index: function(receiver, index) { | |
482 if (typeof index !== "number" || Math.floor(index) !== index) | |
483 throw H.wrapException(new P.ArgumentError(index)); | |
484 if (index >= receiver.length || index < 0) | |
485 throw H.wrapException(P.RangeError$value(index)); | |
486 return receiver[index]; | |
487 }, | |
488 $isString: true, | |
489 static: { | |
490 JSString__isWhitespace: function(codeUnit) { | |
491 if (codeUnit < 256) | |
492 switch (codeUnit) { | |
493 case 9: | |
494 case 10: | |
495 case 11: | |
496 case 12: | |
497 case 13: | |
498 case 32: | |
499 case 133: | |
500 case 160: | |
501 return true; | |
502 default: | |
503 return false; | |
504 } | |
505 switch (codeUnit) { | |
506 case 5760: | |
507 case 6158: | |
508 case 8192: | |
509 case 8193: | |
510 case 8194: | |
511 case 8195: | |
512 case 8196: | |
513 case 8197: | |
514 case 8198: | |
515 case 8199: | |
516 case 8200: | |
517 case 8201: | |
518 case 8202: | |
519 case 8232: | |
520 case 8233: | |
521 case 8239: | |
522 case 8287: | |
523 case 12288: | |
524 case 65279: | |
525 return true; | |
526 default: | |
527 return false; | |
528 } | |
529 }} | |
530 | |
531 }}], | |
532 ["_isolate_helper", "dart:_isolate_helper", , H, { | |
533 _callInIsolate: function(isolate, $function) { | |
534 var result = isolate.eval$1($function); | |
535 $globalState.topEventLoop.run$0(); | |
536 return result; | |
537 }, | |
538 | |
539 startRootIsolate: function(entry) { | |
540 var rootContext, t1; | |
541 $globalState = H._Manager$(entry); | |
542 if ($globalState.isWorker === true) | |
543 return; | |
544 rootContext = H._IsolateContext$(); | |
545 $globalState.rootContext = rootContext; | |
546 $globalState.currentContext = rootContext; | |
547 t1 = J.getInterceptor(entry); | |
548 if (!!t1.$is_args1) | |
549 rootContext.eval$1(new H.startRootIsolate_closure(entry)); | |
550 else if (!!t1.$is_args2) | |
551 rootContext.eval$1(new H.startRootIsolate_closure0(entry)); | |
552 else | |
553 rootContext.eval$1(entry); | |
554 $globalState.topEventLoop.run$0(); | |
555 }, | |
556 | |
557 IsolateNatives_computeThisScript: function() { | |
558 var currentScript = init.currentScript; | |
559 if (currentScript != null) | |
560 return String(currentScript.src); | |
561 if (typeof version == "function" && typeof os == "object" && "system" in os) | |
562 return H.IsolateNatives_computeThisScriptD8(); | |
563 if (typeof version == "function" && typeof system == "function") | |
564 return thisFilename(); | |
565 return; | |
566 }, | |
567 | |
568 IsolateNatives_computeThisScriptD8: function() { | |
569 var stack, matches; | |
570 stack = new Error().stack; | |
571 if (stack == null) { | |
572 stack = (function() {try { throw new Error() } catch(e) { return e.stack }})
(); | |
573 if (stack == null) | |
574 throw H.wrapException(P.UnsupportedError$("No stack trace")); | |
575 } | |
576 matches = stack.match(new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "m"))
; | |
577 if (matches != null) | |
578 return matches[1]; | |
579 matches = stack.match(new RegExp("^[^@]*@(.*):[0-9]*$", "m")); | |
580 if (matches != null) | |
581 return matches[1]; | |
582 throw H.wrapException(P.UnsupportedError$("Cannot extract URI from \"" + stack
+ "\"")); | |
583 }, | |
584 | |
585 IsolateNatives__processWorkerMessage: function(sender, e) { | |
586 var msg, t1, functionName, entryPoint, args, message, isSpawnUri, replyTo, con
text, t2; | |
587 msg = H._deserializeMessage(e.data); | |
588 t1 = J.getInterceptor$asx(msg); | |
589 switch (t1.$index(msg, "command")) { | |
590 case "start": | |
591 $globalState.currentManagerId = t1.$index(msg, "id"); | |
592 functionName = t1.$index(msg, "functionName"); | |
593 entryPoint = functionName == null ? $globalState.entry : init.globalFuncti
ons[functionName]; | |
594 args = t1.$index(msg, "args"); | |
595 message = H._deserializeMessage(t1.$index(msg, "msg")); | |
596 isSpawnUri = t1.$index(msg, "isSpawnUri"); | |
597 replyTo = H._deserializeMessage(t1.$index(msg, "replyTo")); | |
598 context = H._IsolateContext$(); | |
599 $globalState.topEventLoop.events._add$1(new H._IsolateEvent(context, new H
.IsolateNatives__processWorkerMessage_closure(entryPoint, args, message, isSpawn
Uri, replyTo), "worker-start")); | |
600 $globalState.currentContext = context; | |
601 $globalState.topEventLoop.run$0(); | |
602 break; | |
603 case "spawn-worker": | |
604 H.IsolateNatives__spawnWorker(t1.$index(msg, "functionName"), t1.$index(ms
g, "uri"), t1.$index(msg, "args"), t1.$index(msg, "msg"), t1.$index(msg, "isSpaw
nUri"), t1.$index(msg, "replyPort")); | |
605 break; | |
606 case "message": | |
607 if (t1.$index(msg, "port") != null) | |
608 t1.$index(msg, "port").send$1(t1.$index(msg, "msg")); | |
609 $globalState.topEventLoop.run$0(); | |
610 break; | |
611 case "close": | |
612 t1 = $globalState.managers; | |
613 t2 = $.get$IsolateNatives_workerIds(); | |
614 t1.remove$1(t1, t2.$index(t2, sender)); | |
615 sender.terminate(); | |
616 $globalState.topEventLoop.run$0(); | |
617 break; | |
618 case "log": | |
619 H.IsolateNatives__log(t1.$index(msg, "msg")); | |
620 break; | |
621 case "print": | |
622 if ($globalState.isWorker === true) { | |
623 t1 = $globalState.mainManager; | |
624 t2 = H._serializeMessage(H.fillLiteralMap(["command", "print", "msg", ms
g], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null))); | |
625 t1.toString; | |
626 self.postMessage(t2); | |
627 } else | |
628 P.print(t1.$index(msg, "msg")); | |
629 break; | |
630 case "error": | |
631 throw H.wrapException(t1.$index(msg, "msg")); | |
632 default: | |
633 } | |
634 }, | |
635 | |
636 IsolateNatives__log: function(msg) { | |
637 var trace, t1, t2, exception; | |
638 if ($globalState.isWorker === true) { | |
639 t1 = $globalState.mainManager; | |
640 t2 = H._serializeMessage(H.fillLiteralMap(["command", "log", "msg", msg], P.
LinkedHashMap_LinkedHashMap(null, null, null, null, null))); | |
641 t1.toString; | |
642 self.postMessage(t2); | |
643 } else | |
644 try { | |
645 $.get$globalThis().console.log(msg); | |
646 } catch (exception) { | |
647 H.unwrapException(exception); | |
648 trace = new H._StackTrace(exception, null); | |
649 throw H.wrapException(P.Exception_Exception(trace)); | |
650 } | |
651 | |
652 }, | |
653 | |
654 IsolateNatives__startIsolate: function(topLevel, args, message, isSpawnUri, repl
yTo) { | |
655 var t1; | |
656 H.Primitives_initializeStatics($globalState.currentContext.id); | |
657 $.lazyPort = H.ReceivePortImpl$(); | |
658 t1 = $.lazyPort; | |
659 t1.toString; | |
660 replyTo.send$1(["spawned", new H._NativeJsSendPort(t1, $globalState.currentCon
text.id)]); | |
661 if (isSpawnUri !== true) | |
662 topLevel.call$1(message); | |
663 else { | |
664 t1 = J.getInterceptor(topLevel); | |
665 if (!!t1.$is_args2) | |
666 topLevel.call$2(args, message); | |
667 else if (!!t1.$is_args1) | |
668 topLevel.call$1(args); | |
669 else | |
670 topLevel.call$0(); | |
671 } | |
672 }, | |
673 | |
674 IsolateNatives__spawnWorker: function(functionName, uri, args, message, isSpawnU
ri, replyPort) { | |
675 var worker, t1, workerId; | |
676 if (uri == null) | |
677 uri = $.get$IsolateNatives_thisScript(); | |
678 worker = new Worker(uri); | |
679 worker.onmessage = function(e) { H.IsolateNatives__processWorkerMessage$closur
e.call$2(worker, e); }; | |
680 t1 = $globalState; | |
681 workerId = t1.nextManagerId; | |
682 t1.nextManagerId = workerId + 1; | |
683 t1 = $.get$IsolateNatives_workerIds(); | |
684 t1.$indexSet(t1, worker, workerId); | |
685 t1 = $globalState.managers; | |
686 t1.$indexSet(t1, workerId, worker); | |
687 worker.postMessage(H._serializeMessage(H.fillLiteralMap(["command", "start", "
id", workerId, "replyTo", H._serializeMessage(replyPort), "args", args, "msg", H
._serializeMessage(message), "isSpawnUri", isSpawnUri, "functionName", functionN
ame], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)))); | |
688 }, | |
689 | |
690 _waitForPendingPorts: function(message, callback) { | |
691 var finder = H._PendingSendPortFinder$(); | |
692 finder.traverse$1(message); | |
693 P.Future_wait(finder.ports).then$1(new H._waitForPendingPorts_closure(callback
)); | |
694 }, | |
695 | |
696 _serializeMessage: function(message) { | |
697 var t1; | |
698 if ($globalState.supportsWorkers === true) { | |
699 t1 = new H._JsSerializer(0, new H._MessageTraverserVisitedMap()); | |
700 t1._visited = new H._JsVisitedMap(null); | |
701 return t1.traverse$1(message); | |
702 } else { | |
703 t1 = new H._JsCopier(new H._MessageTraverserVisitedMap()); | |
704 t1._visited = new H._JsVisitedMap(null); | |
705 return t1.traverse$1(message); | |
706 } | |
707 }, | |
708 | |
709 _deserializeMessage: function(message) { | |
710 if ($globalState.supportsWorkers === true) | |
711 return new H._JsDeserializer(null).deserialize$1(message); | |
712 else | |
713 return message; | |
714 }, | |
715 | |
716 _MessageTraverser_isPrimitive: function(x) { | |
717 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; | |
718 }, | |
719 | |
720 _Deserializer_isPrimitive: function(x) { | |
721 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; | |
722 }, | |
723 | |
724 startRootIsolate_closure: {"": "Closure;entry_0", | |
725 call$0: function() { | |
726 this.entry_0.call$1([]); | |
727 } | |
728 }, | |
729 | |
730 startRootIsolate_closure0: {"": "Closure;entry_1", | |
731 call$0: function() { | |
732 this.entry_1.call$2([], null); | |
733 } | |
734 }, | |
735 | |
736 _Manager: {"": "Object;nextIsolateId,currentManagerId,nextManagerId,currentConte
xt,rootContext,topEventLoop,fromCommandLine,isWorker,supportsWorkers,isolates,ma
inManager,managers,entry", | |
737 _nativeDetectEnvironment$0: function() { | |
738 var t1, t2; | |
739 t1 = $.get$globalWindow() == null; | |
740 t2 = $.get$globalWorker(); | |
741 this.isWorker = t1 && $.get$globalPostMessageDefined() === true; | |
742 if (this.isWorker !== true) | |
743 t2 = t2 != null && $.get$IsolateNatives_thisScript() != null; | |
744 else | |
745 t2 = true; | |
746 this.supportsWorkers = t2; | |
747 this.fromCommandLine = t1 && this.isWorker !== true; | |
748 }, | |
749 _nativeInitWorkerMessageHandler$0: function() { | |
750 var $function = function (e) { H.IsolateNatives__processWorkerMessage$closur
e.call$2(this.mainManager, e); }; | |
751 $.get$globalThis().onmessage = $function; | |
752 $.get$globalThis().dartPrint = function (object) {}; | |
753 }, | |
754 _Manager$1: function(entry) { | |
755 this._nativeDetectEnvironment$0(); | |
756 this.topEventLoop = new H._EventLoop(P.ListQueue$(null, H._IsolateEvent), 0)
; | |
757 this.isolates = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, H._
IsolateContext); | |
758 this.managers = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, nul
l); | |
759 if (this.isWorker === true) { | |
760 this.mainManager = new H._MainManagerStub(); | |
761 this._nativeInitWorkerMessageHandler$0(); | |
762 } | |
763 }, | |
764 static: { | |
765 _Manager$: function(entry) { | |
766 var t1 = new H._Manager(0, 0, 1, null, null, null, null, null, null, null, nul
l, null, entry); | |
767 t1._Manager$1(entry); | |
768 return t1; | |
769 }} | |
770 | |
771 }, | |
772 | |
773 _IsolateContext: {"": "Object;id,ports,isolateStatics<", | |
774 eval$1: function(code) { | |
775 var old, result; | |
776 old = $globalState.currentContext; | |
777 $globalState.currentContext = this; | |
778 $ = this.isolateStatics; | |
779 result = null; | |
780 try { | |
781 result = code.call$0(); | |
782 } finally { | |
783 $globalState.currentContext = old; | |
784 if (old != null) | |
785 $ = old.get$isolateStatics(); | |
786 } | |
787 return result; | |
788 }, | |
789 lookup$1: function(portId) { | |
790 var t1 = this.ports; | |
791 return t1.$index(t1, portId); | |
792 }, | |
793 register$2: function(_, portId, port) { | |
794 var t1; | |
795 if (this.ports.containsKey$1(portId)) | |
796 throw H.wrapException(P.Exception_Exception("Registry: ports must be regis
tered only once.")); | |
797 t1 = this.ports; | |
798 t1.$indexSet(t1, portId, port); | |
799 t1 = $globalState.isolates; | |
800 t1.$indexSet(t1, this.id, this); | |
801 }, | |
802 unregister$1: function(portId) { | |
803 var t1 = this.ports; | |
804 t1.remove$1(t1, portId); | |
805 if (this.ports._collection$_length === 0) { | |
806 t1 = $globalState.isolates; | |
807 t1.remove$1(t1, this.id); | |
808 } | |
809 }, | |
810 _IsolateContext$0: function() { | |
811 var t1, t2; | |
812 t1 = $globalState; | |
813 t2 = t1.nextIsolateId; | |
814 t1.nextIsolateId = t2 + 1; | |
815 this.id = t2; | |
816 this.ports = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, P.Rece
ivePort); | |
817 this.isolateStatics = new Isolate(); | |
818 }, | |
819 static: { | |
820 _IsolateContext$: function() { | |
821 var t1 = new H._IsolateContext(null, null, null); | |
822 t1._IsolateContext$0(); | |
823 return t1; | |
824 }} | |
825 | |
826 }, | |
827 | |
828 _EventLoop: {"": "Object;events,activeTimerCount", | |
829 dequeue$0: function() { | |
830 var t1 = this.events; | |
831 if (t1._head === t1._tail) | |
832 return; | |
833 return t1.removeFirst$0(); | |
834 }, | |
835 checkOpenReceivePortsFromCommandLine$0: function() { | |
836 if ($globalState.rootContext != null && $globalState.isolates.containsKey$1(
$globalState.rootContext.id) && $globalState.fromCommandLine === true && $global
State.rootContext.ports._collection$_length === 0) | |
837 throw H.wrapException(P.Exception_Exception("Program exited with open Rece
ivePorts.")); | |
838 }, | |
839 runIteration$0: function() { | |
840 var $event, t1, t2; | |
841 $event = this.dequeue$0(); | |
842 if ($event == null) { | |
843 this.checkOpenReceivePortsFromCommandLine$0(); | |
844 t1 = $globalState; | |
845 if (t1.isWorker === true && t1.isolates._collection$_length === 0 && t1.to
pEventLoop.activeTimerCount === 0) { | |
846 t1 = t1.mainManager; | |
847 t2 = H._serializeMessage(H.fillLiteralMap(["command", "close"], P.Linked
HashMap_LinkedHashMap(null, null, null, null, null))); | |
848 t1.toString; | |
849 self.postMessage(t2); | |
850 } | |
851 return false; | |
852 } | |
853 $event.process$0(); | |
854 return true; | |
855 }, | |
856 _runHelper$0: function() { | |
857 if ($.get$globalWindow() != null) | |
858 new H._EventLoop__runHelper_next(this).call$0(); | |
859 else | |
860 for (; this.runIteration$0();) | |
861 ; | |
862 }, | |
863 run$0: function() { | |
864 var e, trace, exception, t1, t2; | |
865 if ($globalState.isWorker !== true) | |
866 this._runHelper$0(); | |
867 else | |
868 try { | |
869 this._runHelper$0(); | |
870 } catch (exception) { | |
871 t1 = H.unwrapException(exception); | |
872 e = t1; | |
873 trace = new H._StackTrace(exception, null); | |
874 t1 = $globalState.mainManager; | |
875 t2 = H._serializeMessage(H.fillLiteralMap(["command", "error", "msg", H.
S(e) + "\n" + H.S(trace)], P.LinkedHashMap_LinkedHashMap(null, null, null, null,
null))); | |
876 t1.toString; | |
877 self.postMessage(t2); | |
878 } | |
879 | |
880 } | |
881 }, | |
882 | |
883 _EventLoop__runHelper_next: {"": "Closure;this_0", | |
884 call$0: function() { | |
885 if (!this.this_0.runIteration$0()) | |
886 return; | |
887 P.Timer_Timer(C.Duration_0, this); | |
888 } | |
889 }, | |
890 | |
891 _IsolateEvent: {"": "Object;isolate,fn,message", | |
892 process$0: function() { | |
893 this.isolate.eval$1(this.fn); | |
894 } | |
895 }, | |
896 | |
897 _MainManagerStub: {"": "Object;"}, | |
898 | |
899 IsolateNatives__processWorkerMessage_closure: {"": "Closure;entryPoint_0,args_1,
message_2,isSpawnUri_3,replyTo_4", | |
900 call$0: function() { | |
901 H.IsolateNatives__startIsolate(this.entryPoint_0, this.args_1, this.message_
2, this.isSpawnUri_3, this.replyTo_4); | |
902 } | |
903 }, | |
904 | |
905 _BaseSendPort: {"": "Object;", $isSendPort: true}, | |
906 | |
907 _NativeJsSendPort: {"": "_BaseSendPort;_receivePort,_isolateId", | |
908 send$2: function(message, replyTo) { | |
909 H._waitForPendingPorts(message, new H._NativeJsSendPort_send_closure(this, m
essage)); | |
910 }, | |
911 send$1: function(message) { | |
912 return this.send$2(message, null); | |
913 }, | |
914 $eq: function(_, other) { | |
915 var t1; | |
916 if (other == null) | |
917 return false; | |
918 t1 = J.getInterceptor(other); | |
919 return typeof other === "object" && other !== null && !!t1.$is_NativeJsSendP
ort && J.$eq(this._receivePort, other._receivePort); | |
920 }, | |
921 get$hashCode: function(_) { | |
922 return this._receivePort.get$_id(); | |
923 }, | |
924 $is_NativeJsSendPort: true, | |
925 $isSendPort: true | |
926 }, | |
927 | |
928 _NativeJsSendPort_send_closure: {"": "Closure;this_1,message_2", | |
929 call$0: function() { | |
930 var t1, t2, t3, t4, isolate, shouldSerialize, msg; | |
931 t1 = {}; | |
932 t2 = $globalState.isolates; | |
933 t3 = this.this_1; | |
934 t4 = t3._isolateId; | |
935 isolate = t2.$index(t2, t4); | |
936 if (isolate == null) | |
937 return; | |
938 if ((t3._receivePort.get$_controller()._state & 4) !== 0) | |
939 return; | |
940 shouldSerialize = $globalState.currentContext != null && $globalState.curren
tContext.id !== t4; | |
941 msg = this.message_2; | |
942 t1.msg_0 = msg; | |
943 if (shouldSerialize) | |
944 t1.msg_0 = H._serializeMessage(t1.msg_0); | |
945 t2 = $globalState.topEventLoop; | |
946 t4 = "receive " + H.S(msg); | |
947 t2.events._add$1(new H._IsolateEvent(isolate, new H._NativeJsSendPort_send__
closure(t1, t3, shouldSerialize), t4)); | |
948 } | |
949 }, | |
950 | |
951 _NativeJsSendPort_send__closure: {"": "Closure;box_0,this_3,shouldSerialize_4", | |
952 call$0: function() { | |
953 var t1, t2; | |
954 t1 = this.this_3._receivePort; | |
955 if ((t1.get$_controller()._state & 4) === 0) { | |
956 if (this.shouldSerialize_4) { | |
957 t2 = this.box_0; | |
958 t2.msg_0 = H._deserializeMessage(t2.msg_0); | |
959 } | |
960 t1 = t1.get$_controller(); | |
961 t2 = this.box_0.msg_0; | |
962 if (t1._state >= 4) | |
963 H.throwExpression(t1._badEventState$0()); | |
964 t1._async$_add$1(t2); | |
965 } | 3012 } |
966 } | 3013 } |
967 }, | 3014 var s = Object.prototype.toString.call(o); |
| 3015 return s.substring(8, s.length - 1); |
| 3016 } |
| 3017 C.XQ=function(hooks) { return hooks; } |
968 | 3018 |
969 _WorkerSendPort: {"": "_BaseSendPort;_workerId,_receivePortId,_isolateId", | 3019 C.ur=function(getTagFallback) { |
970 send$2: function(message, replyTo) { | 3020 return function(hooks) { |
971 H._waitForPendingPorts(message, new H._WorkerSendPort_send_closure(this, mes
sage)); | 3021 if (typeof navigator != "object") return hooks; |
972 }, | 3022 var ua = navigator.userAgent; |
973 send$1: function(message) { | 3023 if (ua.indexOf("DumpRenderTree") >= 0) return hooks; |
974 return this.send$2(message, null); | 3024 if (ua.indexOf("Chrome") >= 0) { |
975 }, | 3025 function confirm(p) { |
976 $eq: function(_, other) { | 3026 return typeof window == "object" && window[p] && window[p].name == p; |
977 var t1; | 3027 } |
978 if (other == null) | 3028 if (confirm("Window") && confirm("HTMLElement")) return hooks; |
979 return false; | 3029 } |
980 t1 = J.getInterceptor(other); | 3030 hooks.getTag = getTagFallback; |
981 if (typeof other === "object" && other !== null && !!t1.$is_WorkerSendPort) | 3031 }; |
982 t1 = J.$eq(this._workerId, other._workerId) && J.$eq(this._isolateId, othe
r._isolateId) && J.$eq(this._receivePortId, other._receivePortId); | 3032 } |
983 else | 3033 C.MA=function() { |
984 t1 = false; | 3034 function typeNameInChrome(o) { |
985 return t1; | 3035 var name = o.constructor.name; |
986 }, | 3036 if (name) return name; |
987 get$hashCode: function(_) { | 3037 var s = Object.prototype.toString.call(o); |
988 var t1, t2, t3; | 3038 return s.substring(8, s.length - 1); |
989 t1 = this._workerId; | 3039 } |
990 if (typeof t1 !== "number") | 3040 function getUnknownTag(object, tag) { |
991 throw t1.$shl(); | 3041 if (/^HTML[A-Z].*Element$/.test(tag)) { |
992 t2 = this._isolateId; | 3042 var name = Object.prototype.toString.call(object); |
993 if (typeof t2 !== "number") | 3043 if (name == "[object Object]") return null; |
994 throw t2.$shl(); | 3044 return "HTMLElement"; |
995 t3 = this._receivePortId; | |
996 if (typeof t3 !== "number") | |
997 throw H.iae(t3); | |
998 return (t1 << 16 ^ t2 << 8 ^ t3) >>> 0; | |
999 }, | |
1000 $is_WorkerSendPort: true, | |
1001 $isSendPort: true | |
1002 }, | |
1003 | |
1004 _WorkerSendPort_send_closure: {"": "Closure;this_0,message_1", | |
1005 call$0: function() { | |
1006 var t1, workerMessage, t2, manager; | |
1007 t1 = this.this_0; | |
1008 workerMessage = H._serializeMessage(H.fillLiteralMap(["command", "message",
"port", t1, "msg", this.message_1], P.LinkedHashMap_LinkedHashMap(null, null, nu
ll, null, null))); | |
1009 if ($globalState.isWorker === true) { | |
1010 $globalState.mainManager.toString; | |
1011 self.postMessage(workerMessage); | |
1012 } else { | |
1013 t2 = $globalState.managers; | |
1014 manager = t2.$index(t2, t1._workerId); | |
1015 if (manager != null) | |
1016 manager.postMessage(workerMessage); | |
1017 } | 3045 } |
1018 } | 3046 } |
1019 }, | 3047 function getUnknownTagGenericBrowser(object, tag) { |
| 3048 if (object instanceof HTMLElement) return "HTMLElement"; |
| 3049 return getUnknownTag(object, tag); |
| 3050 } |
| 3051 function prototypeForTag(tag) { |
| 3052 if (typeof window == "undefined") return null; |
| 3053 if (typeof window[tag] == "undefined") return null; |
| 3054 var constructor = window[tag]; |
| 3055 if (typeof constructor != "function") return null; |
| 3056 return constructor.prototype; |
| 3057 } |
| 3058 function discriminator(tag) { return null; } |
| 3059 var isBrowser = typeof navigator == "object"; |
| 3060 return { |
| 3061 getTag: typeNameInChrome, |
| 3062 getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag, |
| 3063 prototypeForTag: prototypeForTag, |
| 3064 discriminator: discriminator }; |
| 3065 } |
| 3066 C.M1=function(hooks) { |
| 3067 var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; |
| 3068 if (userAgent.indexOf("Trident/") == -1) return hooks; |
| 3069 var getTag = hooks.getTag; |
| 3070 var quickMap = { |
| 3071 "BeforeUnloadEvent": "Event", |
| 3072 "DataTransfer": "Clipboard", |
| 3073 "HTMLDDElement": "HTMLElement", |
| 3074 "HTMLDTElement": "HTMLElement", |
| 3075 "HTMLPhraseElement": "HTMLElement", |
| 3076 "Position": "Geoposition" |
| 3077 }; |
| 3078 function getTagIE(o) { |
| 3079 var tag = getTag(o); |
| 3080 var newTag = quickMap[tag]; |
| 3081 if (newTag) return newTag; |
| 3082 if (tag == "Object") { |
| 3083 if (window.DataView && (o instanceof window.DataView)) return "DataView"; |
| 3084 } |
| 3085 return tag; |
| 3086 } |
| 3087 function prototypeForTagIE(tag) { |
| 3088 var constructor = window[tag]; |
| 3089 if (constructor == null) return null; |
| 3090 return constructor.prototype; |
| 3091 } |
| 3092 hooks.getTag = getTagIE; |
| 3093 hooks.prototypeForTag = prototypeForTagIE; |
| 3094 } |
| 3095 C.hQ=function(hooks) { |
| 3096 var getTag = hooks.getTag; |
| 3097 var prototypeForTag = hooks.prototypeForTag; |
| 3098 function getTagFixed(o) { |
| 3099 var tag = getTag(o); |
| 3100 if (tag == "Document") { |
| 3101 if (!!o.xmlVersion) return "!Document"; |
| 3102 return "!HTMLDocument"; |
| 3103 } |
| 3104 return tag; |
| 3105 } |
| 3106 function prototypeForTagFixed(tag) { |
| 3107 if (tag == "Document") return null; |
| 3108 return prototypeForTag(tag); |
| 3109 } |
| 3110 hooks.getTag = getTagFixed; |
| 3111 hooks.prototypeForTag = prototypeForTagFixed; |
| 3112 } |
| 3113 $.libraries_to_load = {} |
| 3114 $.te="$cachedFunction" |
| 3115 $.eb="$cachedInvocation" |
| 3116 $.yj=0 |
| 3117 $.mJ=null |
| 3118 $.P4=null |
| 3119 $.lc=!1 |
| 3120 $.NF=null |
| 3121 $.TX=null |
| 3122 $.x7=null |
| 3123 $.nw=null |
| 3124 $.vv=null |
| 3125 $.Bv=null |
| 3126 $.oK=null |
| 3127 $.S6=null |
| 3128 $.k8=null |
| 3129 $.X3=C.NU |
| 3130 $.Ss=0 |
| 3131 $.Qz=null |
| 3132 $.PN=null |
| 3133 $.Tn=null |
| 3134 I.$lazy($,"globalThis","DX","jk",function(){return function(){return this}()}) |
| 3135 I.$lazy($,"globalWindow","cO","C5",function(){return $.jk().window}) |
| 3136 I.$lazy($,"globalWorker","u9","vy",function(){return $.jk().Worker}) |
| 3137 I.$lazy($,"globalPostMessageDefined","Wd","Iz",function(){return $.jk().postMess
age!==void 0}) |
| 3138 I.$lazy($,"thisScript","Kb","Rs",function(){return H.Td()}) |
| 3139 I.$lazy($,"workerIds","rS","p6",function(){return new P.kM(null)}) |
| 3140 I.$lazy($,"noSuchMethodPattern","lm","WD",function(){return H.cM(H.S7({toString:
function(){return"$receiver$"}}))}) |
| 3141 I.$lazy($,"notClosurePattern","k1","OI",function(){return H.cM(H.S7({$method$:nu
ll,toString:function(){return"$receiver$"}}))}) |
| 3142 I.$lazy($,"nullCallPattern","Re","PH",function(){return H.cM(H.S7(null))}) |
| 3143 I.$lazy($,"nullLiteralCallPattern","fN","D1",function(){return H.cM(function(){v
ar $argumentsExpr$='$arguments$' |
| 3144 try{null.$method$($argumentsExpr$)}catch(z){return z.message}}())}) |
| 3145 I.$lazy($,"undefinedCallPattern","qi","rx",function(){return H.cM(H.S7(void 0))}
) |
| 3146 I.$lazy($,"undefinedLiteralCallPattern","rZ","Y9",function(){return H.cM(functio
n(){var $argumentsExpr$='$arguments$' |
| 3147 try{(void 0).$method$($argumentsExpr$)}catch(z){return z.message}}())}) |
| 3148 I.$lazy($,"nullPropertyPattern","BX","zO",function(){return H.cM(H.Mj(null))}) |
| 3149 I.$lazy($,"nullLiteralPropertyPattern","tt","Bi",function(){return H.cM(function
(){try{null.$method$}catch(z){return z.message}}())}) |
| 3150 I.$lazy($,"undefinedPropertyPattern","dt","eA",function(){return H.cM(H.Mj(void
0))}) |
| 3151 I.$lazy($,"undefinedLiteralPropertyPattern","A7","ko",function(){return H.cM(fun
ction(){try{(void 0).$method$}catch(z){return z.message}}())}) |
| 3152 I.$lazy($,"_toStringList","Ml","RM",function(){return[]}) |
| 3153 I.$lazy($,"scheduleImmediateClosure","lI","ej",function(){return P.xg()}) |
| 3154 I.$lazy($,"_toStringVisiting","d2","hi",function(){return P.yv(null)}) |
| 3155 I.$lazy($,"_toStringList","yu","tw",function(){return[]}) |
1020 | 3156 |
1021 ReceivePortImpl: {"": "Stream;_id<,_controller<", | 3157 init.functionAliases={} |
1022 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | 3158 init.metadata=[{func:"n9",void:true,args:[{func:"X0",void:true}]},{func:"X0",voi
d:true},{func:"Gl",ret:P.a2,args:[null,null]},{func:"bX",ret:P.KN,args:[null]},{
func:"E0",ret:P.a2,args:[P.a,P.a]},{func:"ZY",ret:P.KN,args:[P.a]},{func:"WW",vo
id:true,args:[W.ea]},{func:"NT"},{func:"bh",args:[null,null]},{func:"aB",args:[n
ull]},{func:"TS",args:[null,P.qU]},{func:"uO",args:[P.qU]},{func:"Vx",void:true,
args:[null],opt:[P.mE]},,{func:"BG",args:[null],opt:[null]},{func:"Uf",ret:P.a2}
,{func:"bb",args:[null,P.mE]},{func:"lv",args:[P.wv,null]},{func:"Pt",ret:P.qU,a
rgs:[P.KN]},];$=null |
1023 var t1 = this._controller; | 3159 I = I.$finishIsolateConstructor(I) |
1024 t1.toString; | 3160 $=new I() |
1025 t1 = new P._ControllerStream(t1); | |
1026 H.setRuntimeTypeInfo(t1, [null]); | |
1027 return t1.listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDon
e, onError); | |
1028 }, | |
1029 close$0: function(_) { | |
1030 var t1 = this._controller; | |
1031 if ((t1._state & 4) !== 0) | |
1032 return; | |
1033 t1.close$0(t1); | |
1034 $globalState.currentContext.unregister$1(this._id); | |
1035 }, | |
1036 get$close: function(_receiver) { | |
1037 return new H.BoundClosure$i0(this, H.ReceivePortImpl.prototype.close$0, _rec
eiver, "close$0"); | |
1038 }, | |
1039 ReceivePortImpl$0: function() { | |
1040 this._controller = P.StreamController_StreamController(this.get$close(this),
null, null, null, true, null); | |
1041 var t1 = $globalState.currentContext; | |
1042 t1.register$2(t1, this._id, this); | |
1043 }, | |
1044 static: { | |
1045 "": "ReceivePortImpl__nextFreeId", | |
1046 ReceivePortImpl$: function() { | |
1047 var t1 = $.ReceivePortImpl__nextFreeId; | |
1048 $.ReceivePortImpl__nextFreeId = t1 + 1; | |
1049 t1 = new H.ReceivePortImpl(t1, null); | |
1050 t1.ReceivePortImpl$0(); | |
1051 return t1; | |
1052 }} | |
1053 | |
1054 }, | |
1055 | |
1056 _waitForPendingPorts_closure: {"": "Closure;callback_0", | |
1057 call$1: function(_) { | |
1058 return this.callback_0.call$0(); | |
1059 }, | |
1060 $is_args1: true | |
1061 }, | |
1062 | |
1063 _PendingSendPortFinder: {"": "_MessageTraverser;ports,_visited", | |
1064 visitPrimitive$1: function(x) { | |
1065 }, | |
1066 visitList$1: function(list) { | |
1067 var t1 = this._visited; | |
1068 if (t1.$index(t1, list) != null) | |
1069 return; | |
1070 t1 = this._visited; | |
1071 t1.$indexSet(t1, list, true); | |
1072 J.forEach$1$ax(list, this.get$_dispatch()); | |
1073 }, | |
1074 visitMap$1: function(map) { | |
1075 var t1 = this._visited; | |
1076 if (t1.$index(t1, map) != null) | |
1077 return; | |
1078 t1 = this._visited; | |
1079 t1.$indexSet(t1, map, true); | |
1080 t1 = map.get$values(map); | |
1081 t1.forEach$1(t1, this.get$_dispatch()); | |
1082 }, | |
1083 visitSendPort$1: function(port) { | |
1084 }, | |
1085 _PendingSendPortFinder$0: function() { | |
1086 this._visited = new H._JsVisitedMap(null); | |
1087 }, | |
1088 static: { | |
1089 _PendingSendPortFinder$: function() { | |
1090 var t1 = new H._PendingSendPortFinder([], new H._MessageTraverserVisitedMap())
; | |
1091 t1._PendingSendPortFinder$0(); | |
1092 return t1; | |
1093 }} | |
1094 | |
1095 }, | |
1096 | |
1097 _JsSerializer: {"": "_Serializer;_nextFreeRefId,_visited", | |
1098 visitSendPort$1: function(x) { | |
1099 if (!!x.$is_NativeJsSendPort) | |
1100 return ["sendport", $globalState.currentManagerId, x._isolateId, x._receiv
ePort.get$_id()]; | |
1101 if (!!x.$is_WorkerSendPort) | |
1102 return ["sendport", x._workerId, x._isolateId, x._receivePortId]; | |
1103 throw H.wrapException("Illegal underlying port " + H.S(x)); | |
1104 } | |
1105 }, | |
1106 | |
1107 _JsCopier: {"": "_Copier;_visited", | |
1108 visitSendPort$1: function(x) { | |
1109 if (!!x.$is_NativeJsSendPort) | |
1110 return new H._NativeJsSendPort(x._receivePort, x._isolateId); | |
1111 if (!!x.$is_WorkerSendPort) | |
1112 return new H._WorkerSendPort(x._workerId, x._receivePortId, x._isolateId); | |
1113 throw H.wrapException("Illegal underlying port " + H.S(x)); | |
1114 } | |
1115 }, | |
1116 | |
1117 _JsDeserializer: {"": "_Deserializer;_deserialized", | |
1118 deserializeSendPort$1: function(list) { | |
1119 var t1, managerId, isolateId, receivePortId, isolate, receivePort; | |
1120 t1 = J.getInterceptor$asx(list); | |
1121 managerId = t1.$index(list, 1); | |
1122 isolateId = t1.$index(list, 2); | |
1123 receivePortId = t1.$index(list, 3); | |
1124 if (J.$eq(managerId, $globalState.currentManagerId)) { | |
1125 t1 = $globalState.isolates; | |
1126 isolate = t1.$index(t1, isolateId); | |
1127 if (isolate == null) | |
1128 return; | |
1129 receivePort = isolate.lookup$1(receivePortId); | |
1130 if (receivePort == null) | |
1131 return; | |
1132 return new H._NativeJsSendPort(receivePort, isolateId); | |
1133 } else | |
1134 return new H._WorkerSendPort(managerId, receivePortId, isolateId); | |
1135 } | |
1136 }, | |
1137 | |
1138 _JsVisitedMap: {"": "Object;tagged", | |
1139 $index: function(_, object) { | |
1140 return object.__MessageTraverser__attached_info__; | |
1141 }, | |
1142 $indexSet: function(_, object, info) { | |
1143 this.tagged.push(object); | |
1144 object.__MessageTraverser__attached_info__ = info; | |
1145 }, | |
1146 reset$0: function(_) { | |
1147 this.tagged = P.List_List(null, null); | |
1148 }, | |
1149 cleanup$0: function() { | |
1150 var $length, i, t1; | |
1151 for ($length = this.tagged.length, i = 0; i < $length; ++i) { | |
1152 t1 = this.tagged; | |
1153 if (i >= t1.length) | |
1154 throw H.ioore(t1, i); | |
1155 t1[i].__MessageTraverser__attached_info__ = null; | |
1156 } | |
1157 this.tagged = null; | |
1158 } | |
1159 }, | |
1160 | |
1161 _MessageTraverserVisitedMap: {"": "Object;", | |
1162 $index: function(_, object) { | |
1163 return; | |
1164 }, | |
1165 $indexSet: function(_, object, info) { | |
1166 }, | |
1167 reset$0: function(_) { | |
1168 }, | |
1169 cleanup$0: function() { | |
1170 } | |
1171 }, | |
1172 | |
1173 _MessageTraverser: {"": "Object;", | |
1174 traverse$1: function(x) { | |
1175 var result, t1; | |
1176 if (H._MessageTraverser_isPrimitive(x)) | |
1177 return this.visitPrimitive$1(x); | |
1178 t1 = this._visited; | |
1179 t1.reset$0(t1); | |
1180 result = null; | |
1181 try { | |
1182 result = this._dispatch$1(x); | |
1183 } finally { | |
1184 this._visited.cleanup$0(); | |
1185 } | |
1186 return result; | |
1187 }, | |
1188 _dispatch$1: function(x) { | |
1189 var t1; | |
1190 if (x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean") | |
1191 return this.visitPrimitive$1(x); | |
1192 t1 = J.getInterceptor(x); | |
1193 if (typeof x === "object" && x !== null && (x.constructor === Array || !!t1.
$isList)) | |
1194 return this.visitList$1(x); | |
1195 if (typeof x === "object" && x !== null && !!t1.$isMap) | |
1196 return this.visitMap$1(x); | |
1197 if (typeof x === "object" && x !== null && !!t1.$isSendPort) | |
1198 return this.visitSendPort$1(x); | |
1199 return this.visitObject$1(x); | |
1200 }, | |
1201 get$_dispatch: function() { | |
1202 return new H.BoundClosure$1(this, H._MessageTraverser.prototype._dispatch$1,
null, "_dispatch$1"); | |
1203 }, | |
1204 visitObject$1: function(x) { | |
1205 throw H.wrapException("Message serialization: Illegal value " + H.S(x) + " p
assed"); | |
1206 } | |
1207 }, | |
1208 | |
1209 _Copier: {"": "_MessageTraverser;", | |
1210 visitPrimitive$1: function(x) { | |
1211 return x; | |
1212 }, | |
1213 visitList$1: function(list) { | |
1214 var t1, copy, len, t2, i, t3; | |
1215 t1 = this._visited; | |
1216 copy = t1.$index(t1, list); | |
1217 if (copy != null) | |
1218 return copy; | |
1219 t1 = J.getInterceptor$asx(list); | |
1220 len = t1.get$length(list); | |
1221 copy = P.List_List(len, null); | |
1222 t2 = this._visited; | |
1223 t2.$indexSet(t2, list, copy); | |
1224 for (t2 = copy.length, i = 0; i < len; ++i) { | |
1225 t3 = this._dispatch$1(t1.$index(list, i)); | |
1226 if (i >= t2) | |
1227 throw H.ioore(copy, i); | |
1228 copy[i] = t3; | |
1229 } | |
1230 return copy; | |
1231 }, | |
1232 visitMap$1: function(map) { | |
1233 var t1, t2; | |
1234 t1 = {}; | |
1235 t2 = this._visited; | |
1236 t1.copy_0 = t2.$index(t2, map); | |
1237 t2 = t1.copy_0; | |
1238 if (t2 != null) | |
1239 return t2; | |
1240 t1.copy_0 = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null); | |
1241 t2 = this._visited; | |
1242 t2.$indexSet(t2, map, t1.copy_0); | |
1243 map.forEach$1(map, new H._Copier_visitMap_closure(t1, this)); | |
1244 return t1.copy_0; | |
1245 } | |
1246 }, | |
1247 | |
1248 _Copier_visitMap_closure: {"": "Closure;box_0,this_1", | |
1249 call$2: function(key, val) { | |
1250 var t1 = this.this_1; | |
1251 J.$indexSet$ax(this.box_0.copy_0, t1._dispatch$1(key), t1._dispatch$1(val)); | |
1252 }, | |
1253 $is_args2: true | |
1254 }, | |
1255 | |
1256 _Serializer: {"": "_MessageTraverser;", | |
1257 visitPrimitive$1: function(x) { | |
1258 return x; | |
1259 }, | |
1260 visitList$1: function(list) { | |
1261 var t1, copyId, id; | |
1262 t1 = this._visited; | |
1263 copyId = t1.$index(t1, list); | |
1264 if (copyId != null) | |
1265 return ["ref", copyId]; | |
1266 id = this._nextFreeRefId; | |
1267 this._nextFreeRefId = id + 1; | |
1268 t1 = this._visited; | |
1269 t1.$indexSet(t1, list, id); | |
1270 return ["list", id, this._serializeList$1(list)]; | |
1271 }, | |
1272 visitMap$1: function(map) { | |
1273 var t1, copyId, id, keys; | |
1274 t1 = this._visited; | |
1275 copyId = t1.$index(t1, map); | |
1276 if (copyId != null) | |
1277 return ["ref", copyId]; | |
1278 id = this._nextFreeRefId; | |
1279 this._nextFreeRefId = id + 1; | |
1280 t1 = this._visited; | |
1281 t1.$indexSet(t1, map, id); | |
1282 t1 = map.get$keys(); | |
1283 keys = this._serializeList$1(P.List_List$from(t1, true, H.getRuntimeTypeArgu
ment(t1, "IterableBase", 0))); | |
1284 t1 = map.get$values(map); | |
1285 return ["map", id, keys, this._serializeList$1(P.List_List$from(t1, true, H.
getRuntimeTypeArgument(t1, "IterableBase", 0)))]; | |
1286 }, | |
1287 _serializeList$1: function(list) { | |
1288 var t1, len, result, t2, i, t3; | |
1289 t1 = J.getInterceptor$asx(list); | |
1290 len = t1.get$length(list); | |
1291 result = P.List_List(len, null); | |
1292 for (t2 = result.length, i = 0; i < len; ++i) { | |
1293 t3 = this._dispatch$1(t1.$index(list, i)); | |
1294 if (i >= t2) | |
1295 throw H.ioore(result, i); | |
1296 result[i] = t3; | |
1297 } | |
1298 return result; | |
1299 } | |
1300 }, | |
1301 | |
1302 _Deserializer: {"": "Object;", | |
1303 deserialize$1: function(x) { | |
1304 if (H._Deserializer_isPrimitive(x)) | |
1305 return x; | |
1306 this._deserialized = P.HashMap_HashMap(null, null, null, null, null); | |
1307 return this._deserializeHelper$1(x); | |
1308 }, | |
1309 _deserializeHelper$1: function(x) { | |
1310 var t1, id; | |
1311 if (x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean") | |
1312 return x; | |
1313 t1 = J.getInterceptor$asx(x); | |
1314 switch (t1.$index(x, 0)) { | |
1315 case "ref": | |
1316 id = t1.$index(x, 1); | |
1317 t1 = this._deserialized; | |
1318 return t1.$index(t1, id); | |
1319 case "list": | |
1320 return this._deserializeList$1(x); | |
1321 case "map": | |
1322 return this._deserializeMap$1(x); | |
1323 case "sendport": | |
1324 return this.deserializeSendPort$1(x); | |
1325 default: | |
1326 return this.deserializeObject$1(x); | |
1327 } | |
1328 }, | |
1329 _deserializeList$1: function(x) { | |
1330 var t1, id, dartList, len, i; | |
1331 t1 = J.getInterceptor$asx(x); | |
1332 id = t1.$index(x, 1); | |
1333 dartList = t1.$index(x, 2); | |
1334 t1 = this._deserialized; | |
1335 t1.$indexSet(t1, id, dartList); | |
1336 t1 = J.getInterceptor$asx(dartList); | |
1337 len = t1.get$length(dartList); | |
1338 if (typeof len !== "number") | |
1339 throw H.iae(len); | |
1340 i = 0; | |
1341 for (; i < len; ++i) | |
1342 t1.$indexSet(dartList, i, this._deserializeHelper$1(t1.$index(dartList, i)
)); | |
1343 return dartList; | |
1344 }, | |
1345 _deserializeMap$1: function(x) { | |
1346 var result, t1, id, t2, keys, values, len, i; | |
1347 result = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null); | |
1348 t1 = J.getInterceptor$asx(x); | |
1349 id = t1.$index(x, 1); | |
1350 t2 = this._deserialized; | |
1351 t2.$indexSet(t2, id, result); | |
1352 keys = t1.$index(x, 2); | |
1353 values = t1.$index(x, 3); | |
1354 t1 = J.getInterceptor$asx(keys); | |
1355 len = t1.get$length(keys); | |
1356 if (typeof len !== "number") | |
1357 throw H.iae(len); | |
1358 t2 = J.getInterceptor$asx(values); | |
1359 i = 0; | |
1360 for (; i < len; ++i) | |
1361 result.$indexSet(result, this._deserializeHelper$1(t1.$index(keys, i)), th
is._deserializeHelper$1(t2.$index(values, i))); | |
1362 return result; | |
1363 }, | |
1364 deserializeObject$1: function(x) { | |
1365 throw H.wrapException("Unexpected serialized object"); | |
1366 } | |
1367 }, | |
1368 | |
1369 TimerImpl: {"": "Object;_once,_inEventLoop,_handle", | |
1370 TimerImpl$2: function(milliseconds, callback) { | |
1371 var t1, t2; | |
1372 if (milliseconds === 0) | |
1373 t1 = $.get$globalThis().setTimeout == null || $globalState.isWorker === tr
ue; | |
1374 else | |
1375 t1 = false; | |
1376 if (t1) { | |
1377 this._handle = 1; | |
1378 t1 = $globalState.topEventLoop; | |
1379 t2 = $globalState.currentContext; | |
1380 t1.events._add$1(new H._IsolateEvent(t2, new H.TimerImpl_internalCallback(
this, callback), "timer")); | |
1381 this._inEventLoop = true; | |
1382 } else if ($.get$globalThis().setTimeout != null) { | |
1383 t1 = $globalState.topEventLoop; | |
1384 t1.activeTimerCount = t1.activeTimerCount + 1; | |
1385 this._handle = $.get$globalThis().setTimeout(H.convertDartClosureToJS(new
H.TimerImpl_internalCallback0(this, callback), 0), milliseconds); | |
1386 } else | |
1387 throw H.wrapException(P.UnsupportedError$("Timer greater than 0.")); | |
1388 }, | |
1389 static: { | |
1390 TimerImpl$: function(milliseconds, callback) { | |
1391 var t1 = new H.TimerImpl(true, false, null); | |
1392 t1.TimerImpl$2(milliseconds, callback); | |
1393 return t1; | |
1394 }} | |
1395 | |
1396 }, | |
1397 | |
1398 TimerImpl_internalCallback: {"": "Closure;this_0,callback_1", | |
1399 call$0: function() { | |
1400 this.this_0._handle = null; | |
1401 this.callback_1.call$0(); | |
1402 } | |
1403 }, | |
1404 | |
1405 TimerImpl_internalCallback0: {"": "Closure;this_2,callback_3", | |
1406 call$0: function() { | |
1407 this.this_2._handle = null; | |
1408 var t1 = $globalState.topEventLoop; | |
1409 t1.activeTimerCount = t1.activeTimerCount - 1; | |
1410 this.callback_3.call$0(); | |
1411 } | |
1412 }}], | |
1413 ["_js_helper", "dart:_js_helper", , H, { | |
1414 isJsIndexable: function(object, record) { | |
1415 var result, t1; | |
1416 if (record != null) { | |
1417 result = record.x; | |
1418 if (result != null) | |
1419 return result; | |
1420 } | |
1421 t1 = J.getInterceptor(object); | |
1422 return typeof object === "object" && object !== null && !!t1.$isJavaScriptInde
xingBehavior; | |
1423 }, | |
1424 | |
1425 S: function(value) { | |
1426 var res; | |
1427 if (typeof value === "string") | |
1428 return value; | |
1429 if (typeof value === "number") { | |
1430 if (value !== 0) | |
1431 return "" + value; | |
1432 } else if (true === value) | |
1433 return "true"; | |
1434 else if (false === value) | |
1435 return "false"; | |
1436 else if (value == null) | |
1437 return "null"; | |
1438 res = J.toString$0(value); | |
1439 if (typeof res !== "string") | |
1440 throw H.wrapException(P.ArgumentError$(value)); | |
1441 return res; | |
1442 }, | |
1443 | |
1444 Primitives_initializeStatics: function(id) { | |
1445 $.Primitives_mirrorFunctionCacheName = $.Primitives_mirrorFunctionCacheName +
("_" + H.S(id)); | |
1446 $.Primitives_mirrorInvokeCacheName = $.Primitives_mirrorInvokeCacheName + ("_"
+ H.S(id)); | |
1447 }, | |
1448 | |
1449 Primitives_objectHashCode: function(object) { | |
1450 var hash = object.$identityHash; | |
1451 if (hash == null) { | |
1452 hash = Math.random() * 0x3fffffff | 0; | |
1453 object.$identityHash = hash; | |
1454 } | |
1455 return hash; | |
1456 }, | |
1457 | |
1458 Primitives_objectTypeName: function(object) { | |
1459 var $name, decompiled, t1; | |
1460 $name = H.constructorNameFallback(J.getInterceptor(object)); | |
1461 if (J.$eq($name, "Object")) { | |
1462 decompiled = String(object.constructor).match(/^\s*function\s*(\S*)\s*\(/)[1
]; | |
1463 if (typeof decompiled === "string") | |
1464 $name = decompiled; | |
1465 } | |
1466 t1 = J.getInterceptor$s($name); | |
1467 if (t1.codeUnitAt$1($name, 0) === 36) | |
1468 $name = t1.substring$1($name, 1); | |
1469 t1 = H.getRuntimeTypeInfo(object); | |
1470 return H.S($name) + H.joinArguments(t1, 0); | |
1471 }, | |
1472 | |
1473 Primitives_objectToString: function(object) { | |
1474 return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; | |
1475 }, | |
1476 | |
1477 Primitives_newFixedList: function($length) { | |
1478 var result = new Array($length); | |
1479 result.fixed$length = true; | |
1480 return result; | |
1481 }, | |
1482 | |
1483 Primitives__fromCharCodeApply: function(array) { | |
1484 var end, t1, result, i, subarray, t2; | |
1485 end = array.length; | |
1486 for (t1 = end <= 500, result = "", i = 0; i < end; i += 500) { | |
1487 if (t1) | |
1488 subarray = array; | |
1489 else { | |
1490 t2 = i + 500; | |
1491 t2 = t2 < end ? t2 : end; | |
1492 subarray = array.slice(i, t2); | |
1493 } | |
1494 result += String.fromCharCode.apply(null, subarray); | |
1495 } | |
1496 return result; | |
1497 }, | |
1498 | |
1499 Primitives_stringFromCodePoints: function(codePoints) { | |
1500 var a, t1, i; | |
1501 a = []; | |
1502 for (t1 = new H.ListIterator(codePoints, codePoints.length, 0, null); t1.moveN
ext$0();) { | |
1503 i = t1._current; | |
1504 if (typeof i !== "number" || Math.floor(i) !== i) | |
1505 throw H.wrapException(new P.ArgumentError(i)); | |
1506 if (i <= 65535) | |
1507 a.push(i); | |
1508 else if (i <= 1114111) { | |
1509 a.push(55296 + (C.JSInt_methods.$shr(i - 65536, 10) & 1023)); | |
1510 a.push(56320 + (i & 1023)); | |
1511 } else | |
1512 throw H.wrapException(new P.ArgumentError(i)); | |
1513 } | |
1514 return H.Primitives__fromCharCodeApply(a); | |
1515 }, | |
1516 | |
1517 Primitives_stringFromCharCodes: function(charCodes) { | |
1518 var t1, i; | |
1519 for (t1 = new H.ListIterator(charCodes, charCodes.length, 0, null); t1.moveNex
t$0();) { | |
1520 i = t1._current; | |
1521 if (typeof i !== "number" || Math.floor(i) !== i) | |
1522 throw H.wrapException(new P.ArgumentError(i)); | |
1523 if (i < 0) | |
1524 throw H.wrapException(new P.ArgumentError(i)); | |
1525 if (i > 65535) | |
1526 return H.Primitives_stringFromCodePoints(charCodes); | |
1527 } | |
1528 return H.Primitives__fromCharCodeApply(charCodes); | |
1529 }, | |
1530 | |
1531 Primitives_getProperty: function(object, key) { | |
1532 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") | |
1533 throw H.wrapException(new P.ArgumentError(object)); | |
1534 return object[key]; | |
1535 }, | |
1536 | |
1537 Primitives_setProperty: function(object, key, value) { | |
1538 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") | |
1539 throw H.wrapException(new P.ArgumentError(object)); | |
1540 object[key] = value; | |
1541 }, | |
1542 | |
1543 iae: function(argument) { | |
1544 throw H.wrapException(P.ArgumentError$(argument)); | |
1545 }, | |
1546 | |
1547 ioore: function(receiver, index) { | |
1548 if (receiver == null) | |
1549 J.get$length$asx(receiver); | |
1550 if (typeof index !== "number" || Math.floor(index) !== index) | |
1551 H.iae(index); | |
1552 throw H.wrapException(P.RangeError$value(index)); | |
1553 }, | |
1554 | |
1555 wrapException: function(ex) { | |
1556 var wrapper; | |
1557 if (ex == null) | |
1558 ex = new P.NullThrownError(); | |
1559 wrapper = new Error(); | |
1560 wrapper.dartException = ex; | |
1561 if ("defineProperty" in Object) { | |
1562 Object.defineProperty(wrapper, "message", { get: H.toStringWrapper$closure.c
all$0 }); | |
1563 wrapper.name = ""; | |
1564 } else | |
1565 wrapper.toString = H.toStringWrapper$closure.call$0; | |
1566 return wrapper; | |
1567 }, | |
1568 | |
1569 toStringWrapper: function() { | |
1570 return J.toString$0(this.dartException); | |
1571 }, | |
1572 | |
1573 throwExpression: function(ex) { | |
1574 throw H.wrapException(ex); | |
1575 }, | |
1576 | |
1577 unwrapException: function(ex) { | |
1578 var t1, message, number, ieErrorCode, t2, t3, t4, nullLiteralCall, t5, t6, t7,
t8, t9, match; | |
1579 t1 = new H.unwrapException_saveStackTrace(ex); | |
1580 if (ex == null) | |
1581 return; | |
1582 if (typeof ex !== "object") | |
1583 return ex; | |
1584 if ("dartException" in ex) | |
1585 return t1.call$1(ex.dartException); | |
1586 else if (!("message" in ex)) | |
1587 return ex; | |
1588 message = ex.message; | |
1589 if ("number" in ex && typeof ex.number == "number") { | |
1590 number = ex.number; | |
1591 ieErrorCode = number & 65535; | |
1592 if ((C.JSInt_methods.$shr(number, 16) & 8191) === 10) | |
1593 switch (ieErrorCode) { | |
1594 case 438: | |
1595 return t1.call$1(H.JsNoSuchMethodError$(H.S(message) + " (Error " + ie
ErrorCode + ")", null)); | |
1596 case 445: | |
1597 case 5007: | |
1598 t2 = H.S(message) + " (Error " + ieErrorCode + ")"; | |
1599 return t1.call$1(new H.NullError(t2, null)); | |
1600 default: | |
1601 } | |
1602 } | |
1603 if (ex instanceof TypeError) { | |
1604 t2 = $.get$TypeErrorDecoder_noSuchMethodPattern(); | |
1605 t3 = $.get$TypeErrorDecoder_notClosurePattern(); | |
1606 t4 = $.get$TypeErrorDecoder_nullCallPattern(); | |
1607 nullLiteralCall = $.get$TypeErrorDecoder_nullLiteralCallPattern(); | |
1608 t5 = $.get$TypeErrorDecoder_undefinedCallPattern(); | |
1609 t6 = $.get$TypeErrorDecoder_undefinedLiteralCallPattern(); | |
1610 t7 = $.get$TypeErrorDecoder_nullPropertyPattern(); | |
1611 $.get$TypeErrorDecoder_nullLiteralPropertyPattern(); | |
1612 t8 = $.get$TypeErrorDecoder_undefinedPropertyPattern(); | |
1613 t9 = $.get$TypeErrorDecoder_undefinedLiteralPropertyPattern(); | |
1614 match = t2.matchTypeError$1(message); | |
1615 if (match != null) | |
1616 return t1.call$1(H.JsNoSuchMethodError$(message, match)); | |
1617 else { | |
1618 match = t3.matchTypeError$1(message); | |
1619 if (match != null) { | |
1620 match.method = "call"; | |
1621 return t1.call$1(H.JsNoSuchMethodError$(message, match)); | |
1622 } else { | |
1623 match = t4.matchTypeError$1(message); | |
1624 if (match == null) { | |
1625 match = nullLiteralCall.matchTypeError$1(message); | |
1626 if (match == null) { | |
1627 match = t5.matchTypeError$1(message); | |
1628 if (match == null) { | |
1629 match = t6.matchTypeError$1(message); | |
1630 if (match == null) { | |
1631 match = t7.matchTypeError$1(message); | |
1632 if (match == null) { | |
1633 match = nullLiteralCall.matchTypeError$1(message); | |
1634 if (match == null) { | |
1635 match = t8.matchTypeError$1(message); | |
1636 if (match == null) { | |
1637 match = t9.matchTypeError$1(message); | |
1638 t2 = match != null; | |
1639 } else | |
1640 t2 = true; | |
1641 } else | |
1642 t2 = true; | |
1643 } else | |
1644 t2 = true; | |
1645 } else | |
1646 t2 = true; | |
1647 } else | |
1648 t2 = true; | |
1649 } else | |
1650 t2 = true; | |
1651 } else | |
1652 t2 = true; | |
1653 if (t2) { | |
1654 t2 = match == null ? null : match.method; | |
1655 return t1.call$1(new H.NullError(message, t2)); | |
1656 } | |
1657 } | |
1658 } | |
1659 t2 = typeof message === "string" ? message : ""; | |
1660 return t1.call$1(new H.UnknownJsTypeError(t2)); | |
1661 } | |
1662 if (ex instanceof RangeError) { | |
1663 if (typeof message === "string" && message.indexOf("call stack") !== -1) | |
1664 return new P.StackOverflowError(); | |
1665 return t1.call$1(new P.ArgumentError(null)); | |
1666 } | |
1667 if (typeof InternalError == "function" && ex instanceof InternalError) | |
1668 if (typeof message === "string" && message === "too much recursion") | |
1669 return new P.StackOverflowError(); | |
1670 return ex; | |
1671 }, | |
1672 | |
1673 objectHashCode: function(object) { | |
1674 if (object == null || typeof object != 'object') | |
1675 return J.get$hashCode$(object); | |
1676 else | |
1677 return H.Primitives_objectHashCode(object); | |
1678 }, | |
1679 | |
1680 fillLiteralMap: function(keyValuePairs, result) { | |
1681 var $length, index, index0, index1; | |
1682 $length = keyValuePairs.length; | |
1683 for (index = 0; index < $length; index = index1) { | |
1684 index0 = index + 1; | |
1685 index1 = index0 + 1; | |
1686 result.$indexSet(result, keyValuePairs[index], keyValuePairs[index0]); | |
1687 } | |
1688 return result; | |
1689 }, | |
1690 | |
1691 invokeClosure: function(closure, isolate, numberOfArguments, arg1, arg2, arg3, a
rg4) { | |
1692 var t1 = J.getInterceptor(numberOfArguments); | |
1693 if (t1.$eq(numberOfArguments, 0)) | |
1694 return H._callInIsolate(isolate, new H.invokeClosure_closure(closure)); | |
1695 else if (t1.$eq(numberOfArguments, 1)) | |
1696 return H._callInIsolate(isolate, new H.invokeClosure_closure0(closure, arg1)
); | |
1697 else if (t1.$eq(numberOfArguments, 2)) | |
1698 return H._callInIsolate(isolate, new H.invokeClosure_closure1(closure, arg1,
arg2)); | |
1699 else if (t1.$eq(numberOfArguments, 3)) | |
1700 return H._callInIsolate(isolate, new H.invokeClosure_closure2(closure, arg1,
arg2, arg3)); | |
1701 else if (t1.$eq(numberOfArguments, 4)) | |
1702 return H._callInIsolate(isolate, new H.invokeClosure_closure3(closure, arg1,
arg2, arg3, arg4)); | |
1703 else | |
1704 throw H.wrapException(P.Exception_Exception("Unsupported number of arguments
for wrapped closure")); | |
1705 }, | |
1706 | |
1707 convertDartClosureToJS: function(closure, arity) { | |
1708 var $function; | |
1709 if (closure == null) | |
1710 return; | |
1711 $function = closure.$identity; | |
1712 if (!!$function) | |
1713 return $function; | |
1714 $function = (function(closure, arity, context, invoke) { return function(a1,
a2, a3, a4) { return invoke(closure, context, arity, a1, a2, a3, a4); };})(
closure,arity,$globalState.currentContext,H.invokeClosure$closure.call$7); | |
1715 closure.$identity = $function; | |
1716 return $function; | |
1717 }, | |
1718 | |
1719 propertyTypeCastError: function(value, property) { | |
1720 var t1 = J.getInterceptor$asx(property); | |
1721 throw H.wrapException(H.CastErrorImplementation$(H.Primitives_objectTypeName(v
alue), t1.substring$2(property, 3, t1.get$length(property)))); | |
1722 }, | |
1723 | |
1724 interceptedTypeCast: function(value, property) { | |
1725 var t1; | |
1726 if (value != null) | |
1727 t1 = typeof value === "object" && J.getInterceptor(value)[property]; | |
1728 else | |
1729 t1 = true; | |
1730 if (t1) | |
1731 return value; | |
1732 H.propertyTypeCastError(value, property); | |
1733 }, | |
1734 | |
1735 throwCyclicInit: function(staticName) { | |
1736 throw H.wrapException(P.CyclicInitializationError$("Cyclic initialization for
static " + H.S(staticName))); | |
1737 }, | |
1738 | |
1739 setRuntimeTypeInfo: function(target, typeInfo) { | |
1740 if (target != null) | |
1741 target.$builtinTypeInfo = typeInfo; | |
1742 return target; | |
1743 }, | |
1744 | |
1745 getRuntimeTypeInfo: function(target) { | |
1746 if (target == null) | |
1747 return; | |
1748 return target.$builtinTypeInfo; | |
1749 }, | |
1750 | |
1751 getRuntimeTypeArguments: function(target, substitutionName) { | |
1752 return H.substitute(target["$as" + H.S(substitutionName)], H.getRuntimeTypeInf
o(target)); | |
1753 }, | |
1754 | |
1755 getRuntimeTypeArgument: function(target, substitutionName, index) { | |
1756 var $arguments = H.getRuntimeTypeArguments(target, substitutionName); | |
1757 return $arguments == null ? null : $arguments[index]; | |
1758 }, | |
1759 | |
1760 runtimeTypeToString: function(type) { | |
1761 if (type == null) | |
1762 return "dynamic"; | |
1763 else if (typeof type === "object" && type !== null && type.constructor === Arr
ay) | |
1764 return type[0].builtin$cls + H.joinArguments(type, 1); | |
1765 else if (typeof type == "function") | |
1766 return type.builtin$cls; | |
1767 else if (typeof type === "number" && Math.floor(type) === type) | |
1768 return C.JSInt_methods.toString$0(type); | |
1769 else | |
1770 return; | |
1771 }, | |
1772 | |
1773 joinArguments: function(types, startIndex) { | |
1774 var buffer, index, firstArgument, allDynamic, argument, str; | |
1775 if (types == null) | |
1776 return ""; | |
1777 buffer = P.StringBuffer$(""); | |
1778 for (index = startIndex, firstArgument = true, allDynamic = true; index < type
s.length; ++index) { | |
1779 if (firstArgument) | |
1780 firstArgument = false; | |
1781 else | |
1782 buffer._contents = buffer._contents + ", "; | |
1783 argument = types[index]; | |
1784 if (argument != null) | |
1785 allDynamic = false; | |
1786 str = H.runtimeTypeToString(argument); | |
1787 str = typeof str === "string" ? str : str; | |
1788 buffer._contents = buffer._contents + str; | |
1789 } | |
1790 return allDynamic ? "" : "<" + H.S(buffer) + ">"; | |
1791 }, | |
1792 | |
1793 substitute: function(substitution, $arguments) { | |
1794 if (typeof substitution === "object" && substitution !== null && substitution.
constructor === Array) | |
1795 $arguments = substitution; | |
1796 else if (typeof substitution == "function") { | |
1797 substitution = H.invokeOn(substitution, null, $arguments); | |
1798 if (typeof substitution === "object" && substitution !== null && substitutio
n.constructor === Array) | |
1799 $arguments = substitution; | |
1800 else if (typeof substitution == "function") | |
1801 $arguments = H.invokeOn(substitution, null, $arguments); | |
1802 } | |
1803 return $arguments; | |
1804 }, | |
1805 | |
1806 computeSignature: function(signature, context, contextName) { | |
1807 return H.invokeOn(signature, context, H.getRuntimeTypeArguments(context, conte
xtName)); | |
1808 }, | |
1809 | |
1810 invokeOn: function($function, receiver, $arguments) { | |
1811 return $function.apply(receiver, $arguments); | |
1812 }, | |
1813 | |
1814 typeNameInChrome: function(obj) { | |
1815 return obj.constructor.name; | |
1816 }, | |
1817 | |
1818 typeNameInSafari: function(obj) { | |
1819 return H.constructorNameFallback(obj); | |
1820 }, | |
1821 | |
1822 typeNameInOpera: function(obj) { | |
1823 return H.constructorNameFallback(obj); | |
1824 }, | |
1825 | |
1826 typeNameInFirefox: function(obj) { | |
1827 var $name = H.constructorNameFallback(obj); | |
1828 if ($name === "BeforeUnloadEvent") | |
1829 return "Event"; | |
1830 if ($name === "DataTransfer") | |
1831 return "Clipboard"; | |
1832 if ($name === "GeoGeolocation") | |
1833 return "Geolocation"; | |
1834 if ($name === "WorkerMessageEvent") | |
1835 return "MessageEvent"; | |
1836 if ($name === "XMLDocument") | |
1837 return "Document"; | |
1838 return $name; | |
1839 }, | |
1840 | |
1841 typeNameInIE: function(obj) { | |
1842 var $name = H.constructorNameFallback(obj); | |
1843 if ($name === "Document") { | |
1844 if (!!obj.xmlVersion) | |
1845 return "Document"; | |
1846 return "HTMLDocument"; | |
1847 } | |
1848 if ($name === "BeforeUnloadEvent") | |
1849 return "Event"; | |
1850 if ($name === "DataTransfer") | |
1851 return "Clipboard"; | |
1852 if ($name === "HTMLDDElement") | |
1853 return "HTMLElement"; | |
1854 if ($name === "HTMLDTElement") | |
1855 return "HTMLElement"; | |
1856 if ($name === "HTMLPhraseElement") | |
1857 return "HTMLElement"; | |
1858 if ($name === "Position") | |
1859 return "Geoposition"; | |
1860 if ($name === "Object") | |
1861 if (window.DataView && obj instanceof window.DataView) | |
1862 return "DataView"; | |
1863 return $name; | |
1864 }, | |
1865 | |
1866 constructorNameFallback: function(object) { | |
1867 var $constructor, $name, t1, string; | |
1868 if (object == null) | |
1869 return "Null"; | |
1870 $constructor = object.constructor; | |
1871 if (typeof $constructor === "function") { | |
1872 $name = $constructor.builtin$cls; | |
1873 if ($name != null) | |
1874 return $name; | |
1875 $name = $constructor.name; | |
1876 if (typeof $name === "string") | |
1877 t1 = $name !== "" && $name !== "Object" && $name !== "Function.prototype"; | |
1878 else | |
1879 t1 = false; | |
1880 if (t1) | |
1881 return $name; | |
1882 } | |
1883 string = Object.prototype.toString.call(object); | |
1884 return string.substring(8, string.length - 1); | |
1885 }, | |
1886 | |
1887 alternateTag: function(object, tag) { | |
1888 if (!!/^HTML[A-Z].*Element$/.test(tag)) { | |
1889 if (Object.prototype.toString.call(object) === "[object Object]") | |
1890 return; | |
1891 return "HTMLElement"; | |
1892 } | |
1893 return; | |
1894 }, | |
1895 | |
1896 getFunctionForTypeNameOf: function() { | |
1897 var getTagFunction = H.getBaseFunctionForTypeNameOf(); | |
1898 if (typeof dartExperimentalFixupGetTag == "function") | |
1899 return H.applyExperimentalFixup(dartExperimentalFixupGetTag, getTagFunction)
; | |
1900 return getTagFunction; | |
1901 }, | |
1902 | |
1903 getBaseFunctionForTypeNameOf: function() { | |
1904 if (typeof navigator !== "object") | |
1905 return H.typeNameInChrome$closure; | |
1906 var userAgent = navigator.userAgent; | |
1907 if (userAgent.indexOf("Chrome") !== -1 || userAgent.indexOf("DumpRenderTree")
!== -1) | |
1908 return H.typeNameInChrome$closure; | |
1909 else if (userAgent.indexOf("Firefox") !== -1) | |
1910 return H.typeNameInFirefox$closure; | |
1911 else if (userAgent.indexOf("Trident/") !== -1) | |
1912 return H.typeNameInIE$closure; | |
1913 else if (userAgent.indexOf("Opera") !== -1) | |
1914 return H.typeNameInOpera$closure; | |
1915 else if (userAgent.indexOf("AppleWebKit") !== -1) | |
1916 return H.typeNameInSafari$closure; | |
1917 else | |
1918 return H.constructorNameFallback$closure; | |
1919 }, | |
1920 | |
1921 applyExperimentalFixup: function(fixupJSFunction, originalGetTagDartFunction) { | |
1922 return new H.applyExperimentalFixup_newGetTagDartFunction(fixupJSFunction((fun
ction(invoke, closure){return function(arg){ return invoke(closure, arg); };})(H
.callDartFunctionWith1Arg$closure.call$2, originalGetTagDartFunction))); | |
1923 }, | |
1924 | |
1925 callDartFunctionWith1Arg: function(fn, arg) { | |
1926 return fn.call$1(arg); | |
1927 }, | |
1928 | |
1929 toStringForNativeObject: function(obj) { | |
1930 return "Instance of " + $.get$getTypeNameOf().call$1(obj); | |
1931 }, | |
1932 | |
1933 hashCodeForNativeObject: function(object) { | |
1934 return H.Primitives_objectHashCode(object); | |
1935 }, | |
1936 | |
1937 defineProperty: function(obj, property, value) { | |
1938 Object.defineProperty(obj, property, {value: value, enumerable: false, writabl
e: true, configurable: true}); | |
1939 }, | |
1940 | |
1941 lookupInterceptor: function(hasOwnPropertyFunction, tag) { | |
1942 var map = init.interceptorsByTag; | |
1943 return hasOwnPropertyFunction.call(map, tag) ? map[tag] : null; | |
1944 }, | |
1945 | |
1946 lookupDispatchRecord: function(obj) { | |
1947 var hasOwnPropertyFunction, tag, interceptorClass, secondTag, interceptor; | |
1948 hasOwnPropertyFunction = Object.prototype.hasOwnProperty; | |
1949 tag = $.get$getTypeNameOf().call$1(obj); | |
1950 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, tag); | |
1951 if (interceptorClass == null) { | |
1952 secondTag = H.alternateTag(obj, tag); | |
1953 if (secondTag != null) | |
1954 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, secondTag); | |
1955 } | |
1956 if (interceptorClass == null) | |
1957 return; | |
1958 interceptor = interceptorClass.prototype; | |
1959 if (init.leafTags[tag] === true) | |
1960 return H.makeLeafDispatchRecord(interceptor); | |
1961 else | |
1962 return J.makeDispatchRecord(interceptor, Object.getPrototypeOf(obj), null, n
ull); | |
1963 }, | |
1964 | |
1965 makeLeafDispatchRecord: function(interceptor) { | |
1966 return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScr
iptIndexingBehavior); | |
1967 }, | |
1968 | |
1969 makeDefaultDispatchRecord: function(tag, interceptorClass, proto) { | |
1970 var interceptor = interceptorClass.prototype; | |
1971 if (init.leafTags[tag] === true) | |
1972 return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaS
criptIndexingBehavior); | |
1973 else | |
1974 return J.makeDispatchRecord(interceptor, proto, null, null); | |
1975 }, | |
1976 | |
1977 initNativeDispatch: function() { | |
1978 var context, map, tags, i, tag, proto, record; | |
1979 $.initNativeDispatchFlag = true; | |
1980 if (typeof window != "undefined") { | |
1981 context = window; | |
1982 map = init.interceptorsByTag; | |
1983 tags = Object.getOwnPropertyNames(map); | |
1984 for (i = 0; i < tags.length; ++i) { | |
1985 tag = tags[i]; | |
1986 if (typeof context[tag] == "function") { | |
1987 proto = context[tag].prototype; | |
1988 if (proto != null) { | |
1989 record = H.makeDefaultDispatchRecord(tag, map[tag], proto); | |
1990 if (record != null) | |
1991 Object.defineProperty(proto, init.dispatchPropertyName, {value: reco
rd, enumerable: false, writable: true, configurable: true}); | |
1992 } | |
1993 } | |
1994 } | |
1995 } | |
1996 }, | |
1997 | |
1998 TypeErrorDecoder: {"": "Object;_pattern,_arguments,_argumentsExpr,_expr,_method,
_receiver", | |
1999 matchTypeError$1: function(message) { | |
2000 var match, result, t1; | |
2001 match = new RegExp(this._pattern).exec(message); | |
2002 if (match == null) | |
2003 return; | |
2004 result = {}; | |
2005 t1 = this._arguments; | |
2006 if (t1 !== -1) | |
2007 result.arguments = match[t1 + 1]; | |
2008 t1 = this._argumentsExpr; | |
2009 if (t1 !== -1) | |
2010 result.argumentsExpr = match[t1 + 1]; | |
2011 t1 = this._expr; | |
2012 if (t1 !== -1) | |
2013 result.expr = match[t1 + 1]; | |
2014 t1 = this._method; | |
2015 if (t1 !== -1) | |
2016 result.method = match[t1 + 1]; | |
2017 t1 = this._receiver; | |
2018 if (t1 !== -1) | |
2019 result.receiver = match[t1 + 1]; | |
2020 return result; | |
2021 }, | |
2022 static: { | |
2023 "": "TypeErrorDecoder_noSuchMethodPattern,TypeErrorDecoder_notClosurePattern,Typ
eErrorDecoder_nullCallPattern,TypeErrorDecoder_nullLiteralCallPattern,TypeErrorD
ecoder_undefinedCallPattern,TypeErrorDecoder_undefinedLiteralCallPattern,TypeErr
orDecoder_nullPropertyPattern,TypeErrorDecoder_nullLiteralPropertyPattern,TypeEr
rorDecoder_undefinedPropertyPattern,TypeErrorDecoder_undefinedLiteralPropertyPat
tern", | |
2024 TypeErrorDecoder_extractPattern: function(message) { | |
2025 var match, $arguments, argumentsExpr, expr, method, receiver; | |
2026 message = message.replace(String({}), '$receiver$').replace(new RegExp("[[\\]{
}()*+?.\\\\^$|]", 'g'), '\\$&'); | |
2027 match = message.match(/\\\$[a-zA-Z]+\\\$/g); | |
2028 if (match == null) | |
2029 match = []; | |
2030 $arguments = match.indexOf("\\$arguments\\$"); | |
2031 argumentsExpr = match.indexOf("\\$argumentsExpr\\$"); | |
2032 expr = match.indexOf("\\$expr\\$"); | |
2033 method = match.indexOf("\\$method\\$"); | |
2034 receiver = match.indexOf("\\$receiver\\$"); | |
2035 return new H.TypeErrorDecoder(message.replace('\\$arguments\\$', '((?:x|[^x])*
)').replace('\\$argumentsExpr\\$', '((?:x|[^x])*)').replace('\\$expr\\$', '((?:x
|[^x])*)').replace('\\$method\\$', '((?:x|[^x])*)').replace('\\$receiver\\$', '(
(?:x|[^x])*)'), $arguments, argumentsExpr, expr, method, receiver); | |
2036 }, | |
2037 | |
2038 TypeErrorDecoder_provokeCallErrorOn: function(expression) { | |
2039 return function($expr$) { | |
2040 var $argumentsExpr$ = '$arguments$' | |
2041 try { | |
2042 $expr$.$method$($argumentsExpr$); | |
2043 } catch (e) { | |
2044 return e.message; | |
2045 } | |
2046 }(expression); | |
2047 }, | |
2048 | |
2049 TypeErrorDecoder_provokeCallErrorOnNull: function() { | |
2050 return function() { | |
2051 var $argumentsExpr$ = '$arguments$' | |
2052 try { | |
2053 null.$method$($argumentsExpr$); | |
2054 } catch (e) { | |
2055 return e.message; | |
2056 } | |
2057 }(); | |
2058 }, | |
2059 | |
2060 TypeErrorDecoder_provokeCallErrorOnUndefined: function() { | |
2061 return function() { | |
2062 var $argumentsExpr$ = '$arguments$' | |
2063 try { | |
2064 (void 0).$method$($argumentsExpr$); | |
2065 } catch (e) { | |
2066 return e.message; | |
2067 } | |
2068 }(); | |
2069 }, | |
2070 | |
2071 TypeErrorDecoder_provokePropertyErrorOn: function(expression) { | |
2072 return function($expr$) { | |
2073 try { | |
2074 $expr$.$method$; | |
2075 } catch (e) { | |
2076 return e.message; | |
2077 } | |
2078 }(expression); | |
2079 }, | |
2080 | |
2081 TypeErrorDecoder_provokePropertyErrorOnNull: function() { | |
2082 return function() { | |
2083 try { | |
2084 null.$method$; | |
2085 } catch (e) { | |
2086 return e.message; | |
2087 } | |
2088 }(); | |
2089 }, | |
2090 | |
2091 TypeErrorDecoder_provokePropertyErrorOnUndefined: function() { | |
2092 return function() { | |
2093 try { | |
2094 (void 0).$method$; | |
2095 } catch (e) { | |
2096 return e.message; | |
2097 } | |
2098 }(); | |
2099 }} | |
2100 | |
2101 }, | |
2102 | |
2103 NullError: {"": "Error;_message,_method", | |
2104 toString$0: function(_) { | |
2105 var t1 = this._method; | |
2106 if (t1 == null) | |
2107 return "NullError: " + H.S(this._message); | |
2108 return "NullError: Cannot call \"" + H.S(t1) + "\" on null"; | |
2109 }, | |
2110 $isError: true | |
2111 }, | |
2112 | |
2113 JsNoSuchMethodError: {"": "Error;_message,_method,_receiver", | |
2114 toString$0: function(_) { | |
2115 var t1, t2; | |
2116 t1 = this._method; | |
2117 if (t1 == null) | |
2118 return "NoSuchMethodError: " + H.S(this._message); | |
2119 t2 = this._receiver; | |
2120 if (t2 == null) | |
2121 return "NoSuchMethodError: Cannot call \"" + t1 + "\" (" + H.S(this._messa
ge) + ")"; | |
2122 return "NoSuchMethodError: Cannot call \"" + t1 + "\" on \"" + t2 + "\" (" +
H.S(this._message) + ")"; | |
2123 }, | |
2124 $isError: true, | |
2125 static: { | |
2126 JsNoSuchMethodError$: function(_message, match) { | |
2127 var t1, t2; | |
2128 t1 = match == null; | |
2129 t2 = t1 ? null : match.method; | |
2130 t1 = t1 ? null : match.receiver; | |
2131 return new H.JsNoSuchMethodError(_message, t2, t1); | |
2132 }} | |
2133 | |
2134 }, | |
2135 | |
2136 UnknownJsTypeError: {"": "Error;_message", | |
2137 toString$0: function(_) { | |
2138 var t1 = this._message; | |
2139 return C.JSString_methods.get$isEmpty(t1) ? "Error" : "Error: " + t1; | |
2140 } | |
2141 }, | |
2142 | |
2143 unwrapException_saveStackTrace: {"": "Closure;ex_0", | |
2144 call$1: function(error) { | |
2145 var t1 = J.getInterceptor(error); | |
2146 if (typeof error === "object" && error !== null && !!t1.$isError) | |
2147 if (error.$thrownJsError == null) | |
2148 error.$thrownJsError = this.ex_0; | |
2149 return error; | |
2150 }, | |
2151 $is_args1: true | |
2152 }, | |
2153 | |
2154 _StackTrace: {"": "Object;_exception,_trace", | |
2155 toString$0: function(_) { | |
2156 var t1, trace; | |
2157 t1 = this._trace; | |
2158 if (t1 != null) | |
2159 return t1; | |
2160 t1 = this._exception; | |
2161 trace = typeof t1 === "object" ? t1.stack : null; | |
2162 t1 = trace == null ? "" : trace; | |
2163 this._trace = t1; | |
2164 return t1; | |
2165 } | |
2166 }, | |
2167 | |
2168 invokeClosure_closure: {"": "Closure;closure_0", | |
2169 call$0: function() { | |
2170 return this.closure_0.call$0(); | |
2171 } | |
2172 }, | |
2173 | |
2174 invokeClosure_closure0: {"": "Closure;closure_1,arg1_2", | |
2175 call$0: function() { | |
2176 return this.closure_1.call$1(this.arg1_2); | |
2177 } | |
2178 }, | |
2179 | |
2180 invokeClosure_closure1: {"": "Closure;closure_3,arg1_4,arg2_5", | |
2181 call$0: function() { | |
2182 return this.closure_3.call$2(this.arg1_4, this.arg2_5); | |
2183 } | |
2184 }, | |
2185 | |
2186 invokeClosure_closure2: {"": "Closure;closure_6,arg1_7,arg2_8,arg3_9", | |
2187 call$0: function() { | |
2188 return this.closure_6.call$3(this.arg1_7, this.arg2_8, this.arg3_9); | |
2189 } | |
2190 }, | |
2191 | |
2192 invokeClosure_closure3: {"": "Closure;closure_10,arg1_11,arg2_12,arg3_13,arg4_14
", | |
2193 call$0: function() { | |
2194 return this.closure_10.call$4(this.arg1_11, this.arg2_12, this.arg3_13, this
.arg4_14); | |
2195 } | |
2196 }, | |
2197 | |
2198 Closure: {"": "Object;", | |
2199 toString$0: function(_) { | |
2200 return "Closure"; | |
2201 } | |
2202 }, | |
2203 | |
2204 BoundClosure: {"": "Closure;_self,__js_helper$_target,_receiver,__js_helper$_nam
e", | |
2205 $eq: function(_, other) { | |
2206 var t1; | |
2207 if (other == null) | |
2208 return false; | |
2209 if (this === other) | |
2210 return true; | |
2211 t1 = J.getInterceptor(other); | |
2212 if (typeof other !== "object" || other === null || !t1.$isBoundClosure) | |
2213 return false; | |
2214 return this._self === other._self && this.__js_helper$_target === other.__js
_helper$_target && this._receiver === other._receiver; | |
2215 }, | |
2216 get$hashCode: function(_) { | |
2217 var t1, receiverHashCode; | |
2218 t1 = this._receiver; | |
2219 if (t1 == null) | |
2220 receiverHashCode = H.Primitives_objectHashCode(this._self); | |
2221 else | |
2222 receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primit
ives_objectHashCode(t1); | |
2223 return (receiverHashCode ^ H.Primitives_objectHashCode(this.__js_helper$_tar
get)) >>> 0; | |
2224 }, | |
2225 $isBoundClosure: true | |
2226 }, | |
2227 | |
2228 CastErrorImplementation: {"": "Error;message", | |
2229 toString$0: function(_) { | |
2230 return this.message; | |
2231 }, | |
2232 $isError: true, | |
2233 static: { | |
2234 CastErrorImplementation$: function(actualType, expectedType) { | |
2235 return new H.CastErrorImplementation("CastError: Casting value of type " + act
ualType + " to incompatible type " + H.S(expectedType)); | |
2236 }} | |
2237 | |
2238 }, | |
2239 | |
2240 applyExperimentalFixup_newGetTagDartFunction: {"": "Closure;newGetTagJSFunction_
0", | |
2241 call$1: function(object) { | |
2242 return this.newGetTagJSFunction_0(object); | |
2243 }, | |
2244 $is_args1: true | |
2245 }}], | |
2246 ["dart._collection.dev", "dart:_collection-dev", , H, { | |
2247 Arrays_copy: function(src, srcStart, dst, dstStart, count) { | |
2248 var i, j, t1; | |
2249 if (srcStart < dstStart) | |
2250 for (i = srcStart + count - 1, j = dstStart + count - 1; i >= srcStart; --i,
--j) { | |
2251 if (i < 0 || i >= src.length) | |
2252 throw H.ioore(src, i); | |
2253 C.JSArray_methods.$indexSet(dst, j, src[i]); | |
2254 } | |
2255 else | |
2256 for (t1 = srcStart + count, j = dstStart, i = srcStart; i < t1; ++i, ++j) { | |
2257 if (i < 0 || i >= src.length) | |
2258 throw H.ioore(src, i); | |
2259 C.JSArray_methods.$indexSet(dst, j, src[i]); | |
2260 } | |
2261 }, | |
2262 | |
2263 IterableMixinWorkaround_forEach: function(iterable, f) { | |
2264 var t1; | |
2265 for (t1 = new H.ListIterator(iterable, iterable.length, 0, null); t1.moveNext$
0();) | |
2266 f.call$1(t1._current); | |
2267 }, | |
2268 | |
2269 IterableMixinWorkaround_toStringIterable: function(iterable, leftDelimiter, righ
tDelimiter) { | |
2270 var result, i, t1; | |
2271 for (i = 0; i < $.get$IterableMixinWorkaround__toStringList().length; ++i) { | |
2272 t1 = $.get$IterableMixinWorkaround__toStringList(); | |
2273 if (i >= t1.length) | |
2274 throw H.ioore(t1, i); | |
2275 if (t1[i] === iterable) | |
2276 return H.S(leftDelimiter) + "..." + H.S(rightDelimiter); | |
2277 } | |
2278 result = P.StringBuffer$(""); | |
2279 try { | |
2280 $.get$IterableMixinWorkaround__toStringList().push(iterable); | |
2281 result.write$1(leftDelimiter); | |
2282 result.writeAll$2(iterable, ", "); | |
2283 result.write$1(rightDelimiter); | |
2284 } finally { | |
2285 t1 = $.get$IterableMixinWorkaround__toStringList(); | |
2286 if (0 >= t1.length) | |
2287 throw H.ioore(t1, 0); | |
2288 t1.pop(); | |
2289 } | |
2290 return result.get$_contents(); | |
2291 }, | |
2292 | |
2293 IterableMixinWorkaround__rangeCheck: function(list, start, end) { | |
2294 if (start < 0 || start > list.length) | |
2295 throw H.wrapException(P.RangeError$range(start, 0, list.length)); | |
2296 if (end < start || end > list.length) | |
2297 throw H.wrapException(P.RangeError$range(end, start, list.length)); | |
2298 }, | |
2299 | |
2300 IterableMixinWorkaround_setRangeList: function(list, start, end, from, skipCount
) { | |
2301 var $length; | |
2302 H.IterableMixinWorkaround__rangeCheck(list, start, end); | |
2303 $length = end - start; | |
2304 if ($length === 0) | |
2305 return; | |
2306 if (skipCount < 0) | |
2307 throw H.wrapException(new P.ArgumentError(skipCount)); | |
2308 if (skipCount + $length > from.length) | |
2309 throw H.wrapException(P.StateError$("Not enough elements")); | |
2310 H.Arrays_copy(from, skipCount, list, start, $length); | |
2311 }, | |
2312 | |
2313 printToConsole: function(line) { | |
2314 if (typeof dartPrint == "function") { | |
2315 dartPrint(line); | |
2316 return; | |
2317 } | |
2318 if (typeof console == "object" && typeof console.log == "function") { | |
2319 console.log(line); | |
2320 return; | |
2321 } | |
2322 if (typeof window == "object") | |
2323 return; | |
2324 if (typeof print == "function") { | |
2325 print(line); | |
2326 return; | |
2327 } | |
2328 throw "Unable to print message: " + String(line); | |
2329 }, | |
2330 | |
2331 Symbol_getName: function(symbol) { | |
2332 return symbol.get$_name(); | |
2333 }, | |
2334 | |
2335 ListIterator: {"": "Object;_iterable,_length,_index,_current", | |
2336 get$current: function() { | |
2337 return this._current; | |
2338 }, | |
2339 moveNext$0: function() { | |
2340 var t1, t2, $length, t3; | |
2341 t1 = this._iterable; | |
2342 t2 = J.getInterceptor$asx(t1); | |
2343 $length = t2.get$length(t1); | |
2344 if (this._length !== $length) | |
2345 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
2346 t3 = this._index; | |
2347 if (t3 >= $length) { | |
2348 this._current = null; | |
2349 return false; | |
2350 } | |
2351 this._current = t2.elementAt$1(t1, t3); | |
2352 this._index = this._index + 1; | |
2353 return true; | |
2354 } | |
2355 }, | |
2356 | |
2357 MappedIterable: {"": "IterableBase;_iterable,_f", | |
2358 get$iterator: function(_) { | |
2359 var t1 = this._iterable; | |
2360 t1 = t1.get$iterator(t1); | |
2361 t1 = new H.MappedIterator(null, t1, this._f); | |
2362 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "MappedIterable", 0
), H.getRuntimeTypeArgument(this, "MappedIterable", 1)]); | |
2363 return t1; | |
2364 }, | |
2365 get$length: function(_) { | |
2366 var t1 = this._iterable; | |
2367 return t1.get$length(t1); | |
2368 }, | |
2369 $asIterableBase: function($S, $T) { | |
2370 return [$T]; | |
2371 }, | |
2372 static: { | |
2373 MappedIterable_MappedIterable: function(iterable, $function, $S, $T) { | |
2374 var t1; | |
2375 if (!!iterable.$isEfficientLength) { | |
2376 t1 = new H.EfficientLengthMappedIterable(iterable, $function); | |
2377 H.setRuntimeTypeInfo(t1, [$S, $T]); | |
2378 return t1; | |
2379 } | |
2380 t1 = new H.MappedIterable(iterable, $function); | |
2381 H.setRuntimeTypeInfo(t1, [$S, $T]); | |
2382 return t1; | |
2383 }} | |
2384 | |
2385 }, | |
2386 | |
2387 EfficientLengthMappedIterable: {"": "MappedIterable;_iterable,_f", $asMappedIter
able: null, $isEfficientLength: true}, | |
2388 | |
2389 MappedIterator: {"": "Iterator;_current,_iterator,_f", | |
2390 _f$1: function(arg0) { | |
2391 return this._f.call$1(arg0); | |
2392 }, | |
2393 moveNext$0: function() { | |
2394 var t1 = this._iterator; | |
2395 if (t1.moveNext$0()) { | |
2396 this._current = this._f$1(t1.get$current()); | |
2397 return true; | |
2398 } | |
2399 this._current = null; | |
2400 return false; | |
2401 }, | |
2402 get$current: function() { | |
2403 return this._current; | |
2404 }, | |
2405 $asIterator: function($S, $T) { | |
2406 return [$T]; | |
2407 } | |
2408 }, | |
2409 | |
2410 FixedLengthListMixin: {"": "Object;"}}], | |
2411 ["dart.async", "dart:async", , P, { | |
2412 _attachStackTrace: function(o, st) { | |
2413 var t1; | |
2414 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") | |
2415 return; | |
2416 t1 = $.get$_stackTraceExpando(); | |
2417 t1.$indexSet(t1, o, st); | |
2418 }, | |
2419 | |
2420 _invokeErrorHandler: function(errorHandler, error, stackTrace) { | |
2421 var t1 = J.getInterceptor(errorHandler); | |
2422 if (!!t1.$is_args2) | |
2423 return errorHandler.call$2(error, stackTrace); | |
2424 else | |
2425 return errorHandler.call$1(error); | |
2426 }, | |
2427 | |
2428 _registerErrorHandler: function(errorHandler, zone) { | |
2429 var t1 = J.getInterceptor(errorHandler); | |
2430 zone.toString; | |
2431 if (!!t1.$is_args2) | |
2432 return errorHandler; | |
2433 else | |
2434 return errorHandler; | |
2435 }, | |
2436 | |
2437 getAttachedStackTrace: function(o) { | |
2438 var t1; | |
2439 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") | |
2440 return; | |
2441 t1 = $.get$_stackTraceExpando(); | |
2442 return t1.$index(t1, o); | |
2443 }, | |
2444 | |
2445 Future_wait: function(futures) { | |
2446 var t1, t2, t3, future, pos, t4, t5, result, completer; | |
2447 t1 = {}; | |
2448 t1.completer_0 = null; | |
2449 t1.values_1 = null; | |
2450 t2 = new P.Future_wait_handleError(t1); | |
2451 t1.remaining_2 = 0; | |
2452 for (t3 = new H.ListIterator(futures, futures.length, 0, null); t3.moveNext$0(
);) { | |
2453 future = t3._current; | |
2454 pos = t1.remaining_2; | |
2455 t1.remaining_2 = pos + 1; | |
2456 t4 = future.catchError$1(t2); | |
2457 t5 = $.Zone__current; | |
2458 t5.toString; | |
2459 result = new P._Future(0, t5, null, null, new P.Future_wait_closure(t1, pos)
, null, P._registerErrorHandler(null, t5), null); | |
2460 result.$builtinTypeInfo = [null]; | |
2461 t4._addListener$1(result); | |
2462 } | |
2463 t2 = t1.remaining_2; | |
2464 if (t2 === 0) | |
2465 return P._Future$immediate(C.List_empty, null); | |
2466 t1.values_1 = P.List_List(t2, null); | |
2467 t2 = J.JSArray; | |
2468 completer = new P._AsyncCompleter(P._Future$(t2)); | |
2469 H.setRuntimeTypeInfo(completer, [t2]); | |
2470 t1.completer_0 = completer; | |
2471 return t1.completer_0.future; | |
2472 }, | |
2473 | |
2474 _asyncRunCallback: function() { | |
2475 var callback, t1, exception, milliseconds; | |
2476 for (; t1 = $.get$_asyncCallbacks(), t1._head !== t1._tail;) { | |
2477 callback = $.get$_asyncCallbacks().removeFirst$0(); | |
2478 try { | |
2479 callback.call$0(); | |
2480 } catch (exception) { | |
2481 H.unwrapException(exception); | |
2482 milliseconds = C.JSNumber_methods.$tdiv(C.Duration_0._duration, 1000); | |
2483 H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, P._asyncRunCallback$clos
ure); | |
2484 throw exception; | |
2485 } | |
2486 | |
2487 } | |
2488 $._callbacksAreEnqueued = false; | |
2489 }, | |
2490 | |
2491 _scheduleAsyncCallback: function(callback) { | |
2492 $.get$_asyncCallbacks()._add$1(callback); | |
2493 if (!$._callbacksAreEnqueued) { | |
2494 P._createTimer(C.Duration_0, P._asyncRunCallback$closure); | |
2495 $._callbacksAreEnqueued = true; | |
2496 } | |
2497 }, | |
2498 | |
2499 scheduleMicrotask: function(callback) { | |
2500 var t1, t2; | |
2501 t1 = $.Zone__current; | |
2502 if (t1 === C.C__RootZone) { | |
2503 t1.toString; | |
2504 P._scheduleAsyncCallback(callback); | |
2505 return; | |
2506 } | |
2507 t2 = t1.bindCallback$2$runGuarded(callback, true); | |
2508 t1.toString; | |
2509 P._scheduleAsyncCallback(t2); | |
2510 }, | |
2511 | |
2512 StreamController_StreamController: function(onCancel, onListen, onPause, onResum
e, sync, $T) { | |
2513 var t1; | |
2514 if (sync) { | |
2515 t1 = new P._SyncStreamController(onListen, onPause, onResume, onCancel, null
, 0, null); | |
2516 H.setRuntimeTypeInfo(t1, [$T]); | |
2517 } else { | |
2518 t1 = new P._AsyncStreamController(onListen, onPause, onResume, onCancel, nul
l, 0, null); | |
2519 H.setRuntimeTypeInfo(t1, [$T]); | |
2520 } | |
2521 return t1; | |
2522 }, | |
2523 | |
2524 _runGuarded: function(notificationHandler) { | |
2525 var result, e, s, t1, t2, exception; | |
2526 if (notificationHandler == null) | |
2527 return; | |
2528 try { | |
2529 result = notificationHandler.call$0(); | |
2530 t1 = result; | |
2531 t2 = J.getInterceptor(t1); | |
2532 if (typeof t1 === "object" && t1 !== null && !!t2.$isFuture) | |
2533 return result; | |
2534 return; | |
2535 } catch (exception) { | |
2536 t1 = H.unwrapException(exception); | |
2537 e = t1; | |
2538 s = new H._StackTrace(exception, null); | |
2539 t1 = $.Zone__current; | |
2540 t2 = P._asyncError(e, s); | |
2541 t1.toString; | |
2542 P._rootHandleUncaughtError(t1, null, t1, t2, s); | |
2543 } | |
2544 | |
2545 }, | |
2546 | |
2547 _nullDataHandler: function(value) { | |
2548 }, | |
2549 | |
2550 _nullErrorHandler: function(error, stackTrace) { | |
2551 var t1 = $.Zone__current; | |
2552 t1.toString; | |
2553 P._rootHandleUncaughtError(t1, null, t1, error, stackTrace); | |
2554 }, | |
2555 | |
2556 _nullDoneHandler: function() { | |
2557 }, | |
2558 | |
2559 _asyncError: function(error, stackTrace) { | |
2560 if (stackTrace == null) | |
2561 return error; | |
2562 if (P.getAttachedStackTrace(error) != null) | |
2563 return error; | |
2564 P._attachStackTrace(error, stackTrace); | |
2565 return error; | |
2566 }, | |
2567 | |
2568 _runUserCode: function(userCode, onSuccess, onError) { | |
2569 var e, s, exception, t1; | |
2570 try { | |
2571 onSuccess.call$1(userCode.call$0()); | |
2572 } catch (exception) { | |
2573 t1 = H.unwrapException(exception); | |
2574 e = t1; | |
2575 s = new H._StackTrace(exception, null); | |
2576 onError.call$2(P._asyncError(e, s), s); | |
2577 } | |
2578 | |
2579 }, | |
2580 | |
2581 _cancelAndError: function(subscription, future, error, stackTrace) { | |
2582 var cancelFuture, t1; | |
2583 cancelFuture = subscription.cancel$0(); | |
2584 t1 = J.getInterceptor(cancelFuture); | |
2585 if (typeof cancelFuture === "object" && cancelFuture !== null && !!t1.$isFutur
e) | |
2586 cancelFuture.whenComplete$1(new P._cancelAndError_closure(future, error, sta
ckTrace)); | |
2587 else | |
2588 future._completeError$2(error, stackTrace); | |
2589 }, | |
2590 | |
2591 _cancelAndErrorClosure: function(subscription, future) { | |
2592 return new P._cancelAndErrorClosure_closure(subscription, future); | |
2593 }, | |
2594 | |
2595 Timer_Timer: function(duration, callback) { | |
2596 var t1, t2; | |
2597 t1 = $.Zone__current; | |
2598 if (t1 === C.C__RootZone) { | |
2599 t1.toString; | |
2600 return P._createTimer(duration, callback); | |
2601 } | |
2602 t2 = t1.bindCallback$2$runGuarded(callback, true); | |
2603 t1.toString; | |
2604 return P._createTimer(duration, t2); | |
2605 }, | |
2606 | |
2607 _createTimer: function(duration, callback) { | |
2608 var milliseconds = C.JSNumber_methods.$tdiv(duration._duration, 1000); | |
2609 return H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback); | |
2610 }, | |
2611 | |
2612 _rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) { | |
2613 P._rootRun($self, null, $self, new P._rootHandleUncaughtError_closure(error, s
tackTrace)); | |
2614 }, | |
2615 | |
2616 _rootRun: function($self, $parent, zone, f) { | |
2617 var old, t1, t2; | |
2618 t1 = $.Zone__current; | |
2619 t2 = zone; | |
2620 if (t1 == null ? t2 == null : t1 === t2) | |
2621 return f.call$0(); | |
2622 old = t1; | |
2623 try { | |
2624 $.Zone__current = zone; | |
2625 t1 = f.call$0(); | |
2626 return t1; | |
2627 } finally { | |
2628 $.Zone__current = old; | |
2629 } | |
2630 }, | |
2631 | |
2632 _rootRunUnary: function($self, $parent, zone, f, arg) { | |
2633 var old, t1, t2; | |
2634 t1 = $.Zone__current; | |
2635 t2 = zone; | |
2636 if (t1 == null ? t2 == null : t1 === t2) | |
2637 return f.call$1(arg); | |
2638 old = t1; | |
2639 try { | |
2640 $.Zone__current = zone; | |
2641 t1 = f.call$1(arg); | |
2642 return t1; | |
2643 } finally { | |
2644 $.Zone__current = old; | |
2645 } | |
2646 }, | |
2647 | |
2648 _AsyncError: {"": "Object;error>,stackTrace<", $isError: true}, | |
2649 | |
2650 Future: {"": "Object;", $isFuture: true}, | |
2651 | |
2652 Future_wait_handleError: {"": "Closure;box_0", | |
2653 call$1: function(error) { | |
2654 var t1 = this.box_0; | |
2655 if (t1.values_1 != null) { | |
2656 t1.values_1 = null; | |
2657 t1 = t1.completer_0.future; | |
2658 if (t1._state !== 0) | |
2659 H.throwExpression(P.StateError$("Future already completed")); | |
2660 t1._asyncCompleteError$2(error, null); | |
2661 } | |
2662 return; | |
2663 }, | |
2664 $is_args1: true | |
2665 }, | |
2666 | |
2667 Future_wait_closure: {"": "Closure;box_0,pos_1", | |
2668 call$1: function(value) { | |
2669 var t1, t2, t3; | |
2670 t1 = this.box_0; | |
2671 t2 = t1.values_1; | |
2672 if (t2 == null) | |
2673 return; | |
2674 t3 = this.pos_1; | |
2675 if (t3 < 0 || t3 >= t2.length) | |
2676 throw H.ioore(t2, t3); | |
2677 t2[t3] = value; | |
2678 t1.remaining_2 = t1.remaining_2 - 1; | |
2679 if (t1.remaining_2 === 0) { | |
2680 t2 = t1.completer_0; | |
2681 t1 = t1.values_1; | |
2682 t2 = t2.future; | |
2683 if (t2._state !== 0) | |
2684 H.throwExpression(P.StateError$("Future already completed")); | |
2685 t2._asyncComplete$1(t1); | |
2686 } | |
2687 }, | |
2688 $is_args1: true | |
2689 }, | |
2690 | |
2691 _Completer: {"": "Object;"}, | |
2692 | |
2693 _AsyncCompleter: {"": "_Completer;future", $as_Completer: null}, | |
2694 | |
2695 _Future: {"": "Object;_state,_zone<,_resultOrListeners,_nextListener@,_onValueCa
llback,_errorTestCallback,_onErrorCallback,_whenCompleteActionCallback", | |
2696 get$_isComplete: function() { | |
2697 return this._state >= 4; | |
2698 }, | |
2699 get$_hasError: function() { | |
2700 return this._state === 8; | |
2701 }, | |
2702 set$_isChained: function(value) { | |
2703 if (value) | |
2704 this._state = 2; | |
2705 else | |
2706 this._state = 0; | |
2707 }, | |
2708 get$_onValue: function() { | |
2709 return this._state === 2 ? null : this._onValueCallback; | |
2710 }, | |
2711 _onValue$1: function(arg0) { | |
2712 return this.get$_onValue().call$1(arg0); | |
2713 }, | |
2714 get$_whenCompleteAction: function() { | |
2715 return this._state === 2 ? null : this._whenCompleteActionCallback; | |
2716 }, | |
2717 _whenCompleteAction$0: function() { | |
2718 return this.get$_whenCompleteAction().call$0(); | |
2719 }, | |
2720 then$2$onError: function(f, onError) { | |
2721 var result = P._Future$_then(f, onError, null); | |
2722 this._addListener$1(result); | |
2723 return result; | |
2724 }, | |
2725 then$1: function(f) { | |
2726 return this.then$2$onError(f, null); | |
2727 }, | |
2728 catchError$2$test: function(onError, test) { | |
2729 var result = P._Future$_catchError(onError, test, null); | |
2730 this._addListener$1(result); | |
2731 return result; | |
2732 }, | |
2733 catchError$1: function(onError) { | |
2734 return this.catchError$2$test(onError, null); | |
2735 }, | |
2736 whenComplete$1: function(action) { | |
2737 var result = P._Future$_whenComplete(action, H.getRuntimeTypeArgument(this,
"_Future", 0)); | |
2738 this._addListener$1(result); | |
2739 return result; | |
2740 }, | |
2741 get$_value: function() { | |
2742 return this._resultOrListeners; | |
2743 }, | |
2744 get$_error: function() { | |
2745 return this._resultOrListeners; | |
2746 }, | |
2747 _setValue$1: function(value) { | |
2748 this._state = 4; | |
2749 this._resultOrListeners = value; | |
2750 }, | |
2751 _setError$2: function(error, stackTrace) { | |
2752 this._state = 8; | |
2753 this._resultOrListeners = new P._AsyncError(error, stackTrace); | |
2754 }, | |
2755 _addListener$1: function(listener) { | |
2756 if (this._state >= 4) { | |
2757 this._zone.toString; | |
2758 P._scheduleAsyncCallback(new P._Future__addListener_closure(this, listener
)); | |
2759 } else { | |
2760 listener._nextListener = this._resultOrListeners; | |
2761 this._resultOrListeners = listener; | |
2762 } | |
2763 }, | |
2764 _removeListeners$0: function() { | |
2765 var current, prev, next; | |
2766 current = this._resultOrListeners; | |
2767 this._resultOrListeners = null; | |
2768 for (prev = null; current != null; prev = current, current = next) { | |
2769 next = current.get$_nextListener(); | |
2770 current.set$_nextListener(prev); | |
2771 } | |
2772 return prev; | |
2773 }, | |
2774 _complete$1: function(value) { | |
2775 var t1, listeners; | |
2776 t1 = J.getInterceptor(value); | |
2777 if (typeof value === "object" && value !== null && !!t1.$isFuture) { | |
2778 P._Future__chainFutures(value, this); | |
2779 return; | |
2780 } | |
2781 listeners = this._removeListeners$0(); | |
2782 this._setValue$1(value); | |
2783 P._Future__propagateToListeners(this, listeners); | |
2784 }, | |
2785 _completeError$2: function(error, stackTrace) { | |
2786 var listeners; | |
2787 if (stackTrace != null) | |
2788 P._attachStackTrace(error, stackTrace); | |
2789 listeners = this._state === 2 ? null : this._removeListeners$0(); | |
2790 this._setError$2(error, stackTrace); | |
2791 P._Future__propagateToListeners(this, listeners); | |
2792 }, | |
2793 get$_completeError: function() { | |
2794 return new P.BoundClosure$2(this, P._Future.prototype._completeError$2, null
, "_completeError$2"); | |
2795 }, | |
2796 _asyncComplete$1: function(value) { | |
2797 if (this._state !== 0) | |
2798 H.throwExpression(P.StateError$("Future already completed")); | |
2799 this._state = 1; | |
2800 this._zone.toString; | |
2801 P._scheduleAsyncCallback(new P._Future__asyncComplete_closure(this, value)); | |
2802 }, | |
2803 _asyncCompleteError$2: function(error, stackTrace) { | |
2804 if (this._state !== 0) | |
2805 H.throwExpression(P.StateError$("Future already completed")); | |
2806 this._state = 1; | |
2807 this._zone.toString; | |
2808 P._scheduleAsyncCallback(new P._Future__asyncCompleteError_closure(this, err
or, stackTrace)); | |
2809 }, | |
2810 _async$_Future$immediate$1: function(value, $T) { | |
2811 this._asyncComplete$1(value); | |
2812 }, | |
2813 $is_Future: true, | |
2814 $isFuture: true, | |
2815 static: { | |
2816 "": "_Future__INCOMPLETE,_Future__PENDING_COMPLETE,_Future__CHAINED,_Future__VAL
UE,_Future__ERROR", | |
2817 _Future$: function($T) { | |
2818 var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null)
; | |
2819 H.setRuntimeTypeInfo(t1, [$T]); | |
2820 return t1; | |
2821 }, | |
2822 | |
2823 _Future$immediate: function(value, $T) { | |
2824 var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null)
; | |
2825 H.setRuntimeTypeInfo(t1, [$T]); | |
2826 t1._async$_Future$immediate$1(value, $T); | |
2827 return t1; | |
2828 }, | |
2829 | |
2830 _Future$_then: function(onValueCallback, onErrorCallback, $T) { | |
2831 var t1 = $.Zone__current; | |
2832 t1.toString; | |
2833 t1 = new P._Future(0, t1, null, null, onValueCallback, null, P._registerErrorH
andler(onErrorCallback, t1), null); | |
2834 H.setRuntimeTypeInfo(t1, [$T]); | |
2835 return t1; | |
2836 }, | |
2837 | |
2838 _Future$_catchError: function(onErrorCallback, errorTestCallback, $T) { | |
2839 var t1, t2; | |
2840 t1 = $.Zone__current; | |
2841 t2 = P._registerErrorHandler(onErrorCallback, t1); | |
2842 t1.toString; | |
2843 t2 = new P._Future(0, t1, null, null, null, errorTestCallback, t2, null); | |
2844 H.setRuntimeTypeInfo(t2, [$T]); | |
2845 return t2; | |
2846 }, | |
2847 | |
2848 _Future$_whenComplete: function(whenCompleteActionCallback, $T) { | |
2849 var t1 = $.Zone__current; | |
2850 t1.toString; | |
2851 t1 = new P._Future(0, t1, null, null, null, null, null, whenCompleteActionCall
back); | |
2852 H.setRuntimeTypeInfo(t1, [$T]); | |
2853 return t1; | |
2854 }, | |
2855 | |
2856 _Future__chainFutures: function(source, target) { | |
2857 var t1; | |
2858 target._state = 2; | |
2859 t1 = J.getInterceptor(source); | |
2860 if (typeof source === "object" && source !== null && !!t1.$is_Future) | |
2861 if (source._state >= 4) | |
2862 P._Future__propagateToListeners(source, target); | |
2863 else | |
2864 source._addListener$1(target); | |
2865 else | |
2866 source.then$2$onError(new P._Future__chainFutures_closure(target), new P._Fu
ture__chainFutures_closure0(target)); | |
2867 }, | |
2868 | |
2869 _Future__propagateMultipleListeners: function(source, listeners) { | |
2870 var listeners0; | |
2871 do { | |
2872 listeners0 = listeners.get$_nextListener(); | |
2873 listeners.set$_nextListener(null); | |
2874 P._Future__propagateToListeners(source, listeners); | |
2875 if (listeners0 != null) { | |
2876 listeners = listeners0; | |
2877 continue; | |
2878 } else | |
2879 break; | |
2880 } while (true); | |
2881 }, | |
2882 | |
2883 _Future__propagateToListeners: function(source, listeners) { | |
2884 var t1, t2, hasError, asyncError, t3, t4, t5, chainSource, listeners0; | |
2885 t1 = {}; | |
2886 t1.source_4 = source; | |
2887 for (; true;) { | |
2888 t2 = {}; | |
2889 if (!t1.source_4.get$_isComplete()) | |
2890 return; | |
2891 hasError = t1.source_4.get$_hasError(); | |
2892 if (hasError && listeners == null) { | |
2893 t2 = t1.source_4; | |
2894 asyncError = t2.get$_error(); | |
2895 t2 = t2.get$_zone(); | |
2896 t3 = J.get$error$x(asyncError); | |
2897 t4 = asyncError.get$stackTrace(); | |
2898 t2.toString; | |
2899 P._rootHandleUncaughtError(t2, null, t2, t3, t4); | |
2900 return; | |
2901 } | |
2902 if (listeners == null) | |
2903 return; | |
2904 if (listeners._nextListener != null) { | |
2905 P._Future__propagateMultipleListeners(t1.source_4, listeners); | |
2906 return; | |
2907 } | |
2908 if (hasError) { | |
2909 t3 = t1.source_4.get$_zone(); | |
2910 t4 = listeners._zone; | |
2911 t3.toString; | |
2912 t4.toString; | |
2913 t3 = t4 == null ? t3 != null : t4 !== t3; | |
2914 } else | |
2915 t3 = false; | |
2916 if (t3) { | |
2917 t2 = t1.source_4; | |
2918 asyncError = t2.get$_error(); | |
2919 t2 = t2.get$_zone(); | |
2920 t3 = J.get$error$x(asyncError); | |
2921 t4 = asyncError.get$stackTrace(); | |
2922 t2.toString; | |
2923 P._rootHandleUncaughtError(t2, null, t2, t3, t4); | |
2924 return; | |
2925 } | |
2926 t3 = $.Zone__current; | |
2927 t4 = listeners._zone; | |
2928 if (t3 == null ? t4 != null : t3 !== t4) { | |
2929 t4.toString; | |
2930 P._rootRun(t4, null, t4, new P._Future__propagateToListeners_closure(t1, l
isteners)); | |
2931 return; | |
2932 } | |
2933 t2.listenerHasValue_1 = null; | |
2934 t2.listenerValueOrError_2 = null; | |
2935 t2.isPropagationAborted_3 = false; | |
2936 t4.toString; | |
2937 P._rootRun(t4, null, t4, new P._Future__propagateToListeners_closure0(t1, t2
, hasError, listeners)); | |
2938 if (t2.isPropagationAborted_3) | |
2939 return; | |
2940 t3 = t2.listenerHasValue_1 === true; | |
2941 if (t3) { | |
2942 t4 = t2.listenerValueOrError_2; | |
2943 t5 = J.getInterceptor(t4); | |
2944 t5 = typeof t4 === "object" && t4 !== null && !!t5.$isFuture; | |
2945 t4 = t5; | |
2946 } else | |
2947 t4 = false; | |
2948 if (t4) { | |
2949 chainSource = t2.listenerValueOrError_2; | |
2950 t2 = J.getInterceptor(chainSource); | |
2951 if (typeof chainSource === "object" && chainSource !== null && !!t2.$is_Fu
ture && chainSource._state >= 4) { | |
2952 listeners._state = 2; | |
2953 t1.source_4 = chainSource; | |
2954 continue; | |
2955 } | |
2956 P._Future__chainFutures(chainSource, listeners); | |
2957 return; | |
2958 } | |
2959 if (t3) { | |
2960 listeners0 = listeners._removeListeners$0(); | |
2961 t2 = t2.listenerValueOrError_2; | |
2962 listeners._state = 4; | |
2963 listeners._resultOrListeners = t2; | |
2964 } else { | |
2965 listeners0 = listeners._removeListeners$0(); | |
2966 asyncError = t2.listenerValueOrError_2; | |
2967 t2 = J.get$error$x(asyncError); | |
2968 t3 = asyncError.get$stackTrace(); | |
2969 listeners._state = 8; | |
2970 listeners._resultOrListeners = new P._AsyncError(t2, t3); | |
2971 } | |
2972 t1.source_4 = listeners; | |
2973 listeners = listeners0; | |
2974 } | |
2975 }} | |
2976 | |
2977 }, | |
2978 | |
2979 _Future__addListener_closure: {"": "Closure;this_0,listener_1", | |
2980 call$0: function() { | |
2981 P._Future__propagateToListeners(this.this_0, this.listener_1); | |
2982 } | |
2983 }, | |
2984 | |
2985 _Future__chainFutures_closure: {"": "Closure;target_0", | |
2986 call$1: function(value) { | |
2987 this.target_0._complete$1(value); | |
2988 }, | |
2989 $is_args1: true | |
2990 }, | |
2991 | |
2992 _Future__chainFutures_closure0: {"": "Closure;target_1", | |
2993 call$2: function(error, stackTrace) { | |
2994 this.target_1._completeError$2(error, stackTrace); | |
2995 }, | |
2996 call$1: function(error) { | |
2997 return this.call$2(error, null); | |
2998 }, | |
2999 $is_args2: true, | |
3000 $is_args1: true | |
3001 }, | |
3002 | |
3003 _Future__asyncComplete_closure: {"": "Closure;this_0,value_1", | |
3004 call$0: function() { | |
3005 this.this_0._complete$1(this.value_1); | |
3006 } | |
3007 }, | |
3008 | |
3009 _Future__asyncCompleteError_closure: {"": "Closure;this_0,error_1,stackTrace_2", | |
3010 call$0: function() { | |
3011 this.this_0._completeError$2(this.error_1, this.stackTrace_2); | |
3012 } | |
3013 }, | |
3014 | |
3015 _Future__propagateToListeners_closure: {"": "Closure;box_2,listener_3", | |
3016 call$0: function() { | |
3017 P._Future__propagateToListeners(this.box_2.source_4, this.listener_3); | |
3018 } | |
3019 }, | |
3020 | |
3021 _Future__propagateToListeners_closure0: {"": "Closure;box_2,box_1,hasError_4,lis
tener_5", | |
3022 call$0: function() { | |
3023 var t1, value, asyncError, test, matchesTest, errorCallback, e, s, t2, t3, t
4, exception; | |
3024 t1 = {}; | |
3025 try { | |
3026 t2 = this.box_2; | |
3027 if (!this.hasError_4) { | |
3028 value = t2.source_4.get$_value(); | |
3029 t2 = this.listener_5; | |
3030 t3 = t2._state === 2 ? null : t2._onValueCallback; | |
3031 t4 = this.box_1; | |
3032 if (t3 != null) { | |
3033 t4.listenerValueOrError_2 = t2._onValue$1(value); | |
3034 t4.listenerHasValue_1 = true; | |
3035 } else { | |
3036 t4.listenerValueOrError_2 = value; | |
3037 t4.listenerHasValue_1 = true; | |
3038 } | |
3039 } else { | |
3040 asyncError = t2.source_4.get$_error(); | |
3041 t2 = this.listener_5; | |
3042 test = t2._state === 2 ? null : t2._errorTestCallback; | |
3043 matchesTest = true; | |
3044 if (test != null) | |
3045 matchesTest = test.call$1(J.get$error$x(asyncError)); | |
3046 if (matchesTest === true) | |
3047 t3 = (t2._state === 2 ? null : t2._onErrorCallback) != null; | |
3048 else | |
3049 t3 = false; | |
3050 if (t3) { | |
3051 errorCallback = t2._state === 2 ? null : t2._onErrorCallback; | |
3052 t2 = this.box_1; | |
3053 t2.listenerValueOrError_2 = P._invokeErrorHandler(errorCallback, J.get
$error$x(asyncError), asyncError.get$stackTrace()); | |
3054 t2.listenerHasValue_1 = true; | |
3055 } else { | |
3056 t2 = this.box_1; | |
3057 t2.listenerValueOrError_2 = asyncError; | |
3058 t2.listenerHasValue_1 = false; | |
3059 } | |
3060 } | |
3061 t2 = this.listener_5; | |
3062 if ((t2._state === 2 ? null : t2._whenCompleteActionCallback) != null) { | |
3063 t1.completeResult_0 = t2._whenCompleteAction$0(); | |
3064 t3 = t1.completeResult_0; | |
3065 t4 = J.getInterceptor(t3); | |
3066 if (typeof t3 === "object" && t3 !== null && !!t4.$isFuture) { | |
3067 t2.set$_isChained(true); | |
3068 t1.completeResult_0.then$2$onError(new P._Future__propagateToListeners
__closure(this.box_2, t2), new P._Future__propagateToListeners__closure0(t1, t2)
); | |
3069 this.box_1.isPropagationAborted_3 = true; | |
3070 } | |
3071 } | |
3072 } catch (exception) { | |
3073 t1 = H.unwrapException(exception); | |
3074 e = t1; | |
3075 s = new H._StackTrace(exception, null); | |
3076 if (this.hasError_4) { | |
3077 t1 = J.get$error$x(this.box_2.source_4.get$_error()); | |
3078 t2 = e; | |
3079 t2 = t1 == null ? t2 == null : t1 === t2; | |
3080 t1 = t2; | |
3081 } else | |
3082 t1 = false; | |
3083 t2 = this.box_1; | |
3084 if (t1) | |
3085 t2.listenerValueOrError_2 = this.box_2.source_4.get$_error(); | |
3086 else | |
3087 t2.listenerValueOrError_2 = new P._AsyncError(P._asyncError(e, s), s); | |
3088 this.box_1.listenerHasValue_1 = false; | |
3089 } | |
3090 | |
3091 } | |
3092 }, | |
3093 | |
3094 _Future__propagateToListeners__closure: {"": "Closure;box_2,listener_6", | |
3095 call$1: function(ignored) { | |
3096 P._Future__propagateToListeners(this.box_2.source_4, this.listener_6); | |
3097 }, | |
3098 $is_args1: true | |
3099 }, | |
3100 | |
3101 _Future__propagateToListeners__closure0: {"": "Closure;box_0,listener_7", | |
3102 call$2: function(error, stackTrace) { | |
3103 var t1, t2, t3; | |
3104 t1 = this.box_0; | |
3105 t2 = t1.completeResult_0; | |
3106 t3 = J.getInterceptor(t2); | |
3107 if (typeof t2 !== "object" || t2 === null || !t3.$is_Future) { | |
3108 t1.completeResult_0 = P._Future$(null); | |
3109 t1.completeResult_0._setError$2(error, stackTrace); | |
3110 } | |
3111 P._Future__propagateToListeners(t1.completeResult_0, this.listener_7); | |
3112 }, | |
3113 call$1: function(error) { | |
3114 return this.call$2(error, null); | |
3115 }, | |
3116 $is_args2: true, | |
3117 $is_args1: true | |
3118 }, | |
3119 | |
3120 Stream: {"": "Object;", | |
3121 forEach$1: function(_, action) { | |
3122 var t1, future; | |
3123 t1 = {}; | |
3124 future = P._Future$(null); | |
3125 t1.subscription_0 = null; | |
3126 t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_
forEach_closure(t1, this, action, future), true, new P.Stream_forEach_closure0(f
uture), future.get$_completeError()); | |
3127 return future; | |
3128 }, | |
3129 get$length: function(_) { | |
3130 var t1, future; | |
3131 t1 = {}; | |
3132 future = P._Future$(J.JSInt); | |
3133 t1.count_0 = 0; | |
3134 this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1),
true, new P.Stream_length_closure0(t1, future), future.get$_completeError()); | |
3135 return future; | |
3136 } | |
3137 }, | |
3138 | |
3139 Stream_forEach_closure: {"": "Closure;box_0,this_1,action_2,future_3", | |
3140 call$1: function(element) { | |
3141 P._runUserCode(new P.Stream_forEach__closure(this.action_2, element), new P.
Stream_forEach__closure0(), P._cancelAndErrorClosure(this.box_0.subscription_0,
this.future_3)); | |
3142 }, | |
3143 $is_args1: true | |
3144 }, | |
3145 | |
3146 Stream_forEach__closure: {"": "Closure;action_4,element_5", | |
3147 call$0: function() { | |
3148 return this.action_4.call$1(this.element_5); | |
3149 } | |
3150 }, | |
3151 | |
3152 Stream_forEach__closure0: {"": "Closure;", | |
3153 call$1: function(_) { | |
3154 }, | |
3155 $is_args1: true | |
3156 }, | |
3157 | |
3158 Stream_forEach_closure0: {"": "Closure;future_6", | |
3159 call$0: function() { | |
3160 this.future_6._complete$1(null); | |
3161 } | |
3162 }, | |
3163 | |
3164 Stream_length_closure: {"": "Closure;box_0", | |
3165 call$1: function(_) { | |
3166 var t1 = this.box_0; | |
3167 t1.count_0 = t1.count_0 + 1; | |
3168 }, | |
3169 $is_args1: true | |
3170 }, | |
3171 | |
3172 Stream_length_closure0: {"": "Closure;box_0,future_1", | |
3173 call$0: function() { | |
3174 this.future_1._complete$1(this.box_0.count_0); | |
3175 } | |
3176 }, | |
3177 | |
3178 StreamSubscription: {"": "Object;"}, | |
3179 | |
3180 _StreamController: {"": "Object;", | |
3181 get$_pendingEvents: function() { | |
3182 if ((this._state & 8) === 0) | |
3183 return this._varData; | |
3184 return this._varData.get$varData(); | |
3185 }, | |
3186 _ensurePendingEvents$0: function() { | |
3187 if ((this._state & 8) === 0) { | |
3188 if (this._varData == null) | |
3189 this._varData = new P._StreamImplEvents(null, null, 0); | |
3190 return this._varData; | |
3191 } | |
3192 var t1 = this._varData.get$varData(); | |
3193 return t1; | |
3194 }, | |
3195 get$_subscription: function() { | |
3196 if ((this._state & 8) !== 0) | |
3197 return this._varData.get$varData(); | |
3198 return this._varData; | |
3199 }, | |
3200 _badEventState$0: function() { | |
3201 if ((this._state & 4) !== 0) | |
3202 return new P.StateError("Cannot add event after closing"); | |
3203 return new P.StateError("Cannot add event while adding a stream"); | |
3204 }, | |
3205 _ensureDoneFuture$0: function() { | |
3206 if (this._doneFuture == null) { | |
3207 this._doneFuture = P._Future$(null); | |
3208 if ((this._state & 2) !== 0) | |
3209 this._doneFuture._complete$1(null); | |
3210 } | |
3211 return this._doneFuture; | |
3212 }, | |
3213 close$0: function(_) { | |
3214 var t1 = this._state; | |
3215 if ((t1 & 4) !== 0) | |
3216 return this._doneFuture; | |
3217 if (t1 >= 4) | |
3218 throw H.wrapException(this._badEventState$0()); | |
3219 this._state = (t1 | 4) >>> 0; | |
3220 this._ensureDoneFuture$0(); | |
3221 t1 = this._state; | |
3222 if ((t1 & 1) !== 0) | |
3223 this._sendDone$0(); | |
3224 else if ((t1 & 3) === 0) { | |
3225 t1 = this._ensurePendingEvents$0(); | |
3226 t1.add$1(t1, C.C__DelayedDone); | |
3227 } | |
3228 return this._doneFuture; | |
3229 }, | |
3230 _async$_add$1: function(value) { | |
3231 var t1 = this._state; | |
3232 if ((t1 & 1) !== 0) | |
3233 this._sendData$1(value); | |
3234 else if ((t1 & 3) === 0) { | |
3235 t1 = this._ensurePendingEvents$0(); | |
3236 t1.add$1(t1, new P._DelayedData(value, null)); | |
3237 } | |
3238 }, | |
3239 _subscribe$1: function(cancelOnError) { | |
3240 var t1, t2, subscription, pendingEvents; | |
3241 if ((this._state & 3) !== 0) | |
3242 throw H.wrapException(P.StateError$("Stream has already been listened to."
)); | |
3243 t1 = $.Zone__current; | |
3244 t2 = cancelOnError ? 1 : 0; | |
3245 subscription = new P._ControllerSubscription(this, null, null, null, t1, t2,
null, null); | |
3246 H.setRuntimeTypeInfo(subscription, [null]); | |
3247 pendingEvents = this.get$_pendingEvents(); | |
3248 this._state = (this._state | 1) >>> 0; | |
3249 if ((this._state & 8) !== 0) | |
3250 this._varData.set$varData(subscription); | |
3251 else | |
3252 this._varData = subscription; | |
3253 subscription._setPendingEvents$1(pendingEvents); | |
3254 subscription._guardCallback$1(new P._StreamController__subscribe_closure(thi
s)); | |
3255 return subscription; | |
3256 }, | |
3257 _recordCancel$1: function(subscription) { | |
3258 var t1, future; | |
3259 if ((this._state & 8) !== 0) | |
3260 this._varData.cancel$0(); | |
3261 this._varData = null; | |
3262 this._state = (this._state & 4294967286 | 2) >>> 0; | |
3263 t1 = new P._StreamController__recordCancel_complete(this); | |
3264 future = P._runGuarded(this.get$_onCancel()); | |
3265 if (future != null) | |
3266 future = future.whenComplete$1(t1); | |
3267 else | |
3268 t1.call$0(); | |
3269 return future; | |
3270 } | |
3271 }, | |
3272 | |
3273 _StreamController__subscribe_closure: {"": "Closure;this_0", | |
3274 call$0: function() { | |
3275 P._runGuarded(this.this_0.get$_onListen()); | |
3276 } | |
3277 }, | |
3278 | |
3279 _StreamController__recordCancel_complete: {"": "Closure;this_0", | |
3280 call$0: function() { | |
3281 var t1 = this.this_0._doneFuture; | |
3282 if (t1 != null && t1._state === 0) | |
3283 t1._asyncComplete$1(null); | |
3284 } | |
3285 }, | |
3286 | |
3287 _SyncStreamControllerDispatch: {"": "Object;", | |
3288 _sendData$1: function(data) { | |
3289 this.get$_subscription()._async$_add$1(data); | |
3290 }, | |
3291 _sendDone$0: function() { | |
3292 this.get$_subscription()._close$0(); | |
3293 } | |
3294 }, | |
3295 | |
3296 _AsyncStreamControllerDispatch: {"": "Object;", | |
3297 _sendData$1: function(data) { | |
3298 this.get$_subscription()._addPending$1(new P._DelayedData(data, null)); | |
3299 }, | |
3300 _sendDone$0: function() { | |
3301 this.get$_subscription()._addPending$1(C.C__DelayedDone); | |
3302 } | |
3303 }, | |
3304 | |
3305 _AsyncStreamController: {"": "_StreamController__AsyncStreamControllerDispatch;_
onListen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, | |
3306 | |
3307 _StreamController__AsyncStreamControllerDispatch: {"": "_StreamController+_Async
StreamControllerDispatch;"}, | |
3308 | |
3309 _SyncStreamController: {"": "_StreamController__SyncStreamControllerDispatch;_on
Listen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, | |
3310 | |
3311 _StreamController__SyncStreamControllerDispatch: {"": "_StreamController+_SyncSt
reamControllerDispatch;"}, | |
3312 | |
3313 _ControllerStream: {"": "_StreamImpl;_async$_controller", | |
3314 _createSubscription$1: function(cancelOnError) { | |
3315 return this._async$_controller._subscribe$1(cancelOnError); | |
3316 }, | |
3317 get$hashCode: function(_) { | |
3318 return (H.Primitives_objectHashCode(this._async$_controller) ^ 892482866) >>
> 0; | |
3319 }, | |
3320 $eq: function(_, other) { | |
3321 var t1; | |
3322 if (other == null) | |
3323 return false; | |
3324 if (this === other) | |
3325 return true; | |
3326 t1 = J.getInterceptor(other); | |
3327 if (typeof other !== "object" || other === null || !t1.$is_ControllerStream) | |
3328 return false; | |
3329 return other._async$_controller === this._async$_controller; | |
3330 }, | |
3331 $is_ControllerStream: true, | |
3332 $as_StreamImpl: null | |
3333 }, | |
3334 | |
3335 _ControllerSubscription: {"": "_BufferingStreamSubscription;_async$_controller,_
async$_onData,_onError,_onDone,_zone,_state,_cancelFuture,_pending", | |
3336 _onCancel$0: function() { | |
3337 return this._async$_controller._recordCancel$1(this); | |
3338 }, | |
3339 _onPause$0: function() { | |
3340 var t1, addState; | |
3341 t1 = this._async$_controller; | |
3342 if ((t1._state & 8) !== 0) { | |
3343 addState = t1._varData; | |
3344 addState.pause$0(addState); | |
3345 } | |
3346 P._runGuarded(t1.get$_onPause()); | |
3347 }, | |
3348 get$_onPause: function() { | |
3349 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onPau
se$0, null, "_onPause$0"); | |
3350 }, | |
3351 _onResume$0: function() { | |
3352 var t1 = this._async$_controller; | |
3353 if ((t1._state & 8) !== 0) | |
3354 t1._varData.resume$0(); | |
3355 P._runGuarded(t1.get$_onResume()); | |
3356 }, | |
3357 get$_onResume: function() { | |
3358 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onRes
ume$0, null, "_onResume$0"); | |
3359 }, | |
3360 $as_BufferingStreamSubscription: null | |
3361 }, | |
3362 | |
3363 _EventSink: {"": "Object;"}, | |
3364 | |
3365 _BufferingStreamSubscription: {"": "Object;_async$_onData,_onError,_onDone,_zone
<,_state,_cancelFuture,_pending", | |
3366 _setPendingEvents$1: function(pendingEvents) { | |
3367 if (pendingEvents == null) | |
3368 return; | |
3369 this._pending = pendingEvents; | |
3370 if (!pendingEvents.get$isEmpty(pendingEvents)) { | |
3371 this._state = (this._state | 64) >>> 0; | |
3372 this._pending.schedule$1(this); | |
3373 } | |
3374 }, | |
3375 onData$1: function(handleData) { | |
3376 $.Zone__current.toString; | |
3377 this._async$_onData = handleData; | |
3378 }, | |
3379 onError$1: function(_, handleError) { | |
3380 this._onError = P._registerErrorHandler(handleError, $.Zone__current); | |
3381 }, | |
3382 onDone$1: function(handleDone) { | |
3383 $.Zone__current.toString; | |
3384 this._onDone = handleDone; | |
3385 }, | |
3386 pause$1: function(_, resumeSignal) { | |
3387 var t1 = this._state; | |
3388 if ((t1 & 8) !== 0) | |
3389 return; | |
3390 this._state = (t1 + 128 | 4) >>> 0; | |
3391 if (t1 < 128 && this._pending != null) | |
3392 this._pending.cancelSchedule$0(); | |
3393 if ((t1 & 4) === 0 && (this._state & 32) === 0) | |
3394 this._guardCallback$1(this.get$_onPause()); | |
3395 }, | |
3396 pause$0: function($receiver) { | |
3397 return this.pause$1($receiver, null); | |
3398 }, | |
3399 resume$0: function() { | |
3400 var t1, t2; | |
3401 t1 = this._state; | |
3402 if ((t1 & 8) !== 0) | |
3403 return; | |
3404 if (t1 >= 128) { | |
3405 this._state = t1 - 128; | |
3406 t1 = this._state; | |
3407 if (t1 < 128) { | |
3408 if ((t1 & 64) !== 0) { | |
3409 t2 = this._pending; | |
3410 t2 = !t2.get$isEmpty(t2); | |
3411 } else | |
3412 t2 = false; | |
3413 if (t2) | |
3414 this._pending.schedule$1(this); | |
3415 else { | |
3416 this._state = (t1 & 4294967291) >>> 0; | |
3417 if ((this._state & 32) === 0) | |
3418 this._guardCallback$1(this.get$_onResume()); | |
3419 } | |
3420 } | |
3421 } | |
3422 }, | |
3423 cancel$0: function() { | |
3424 this._state = (this._state & 4294967279) >>> 0; | |
3425 if ((this._state & 8) !== 0) | |
3426 return this._cancelFuture; | |
3427 this._cancel$0(); | |
3428 return this._cancelFuture; | |
3429 }, | |
3430 get$_mayResumeInput: function() { | |
3431 if (this._state < 128) { | |
3432 var t1 = this._pending; | |
3433 t1 = t1 == null || t1.get$isEmpty(t1); | |
3434 } else | |
3435 t1 = false; | |
3436 return t1; | |
3437 }, | |
3438 _cancel$0: function() { | |
3439 this._state = (this._state | 8) >>> 0; | |
3440 if ((this._state & 64) !== 0) | |
3441 this._pending.cancelSchedule$0(); | |
3442 if ((this._state & 32) === 0) | |
3443 this._pending = null; | |
3444 this._cancelFuture = this._onCancel$0(); | |
3445 }, | |
3446 _async$_add$1: function(data) { | |
3447 var t1 = this._state; | |
3448 if ((t1 & 8) !== 0) | |
3449 return; | |
3450 if (t1 < 32) | |
3451 this._sendData$1(data); | |
3452 else | |
3453 this._addPending$1(new P._DelayedData(data, null)); | |
3454 }, | |
3455 _close$0: function() { | |
3456 var t1 = this._state; | |
3457 if ((t1 & 8) !== 0) | |
3458 return; | |
3459 this._state = (t1 | 2) >>> 0; | |
3460 if (this._state < 32) | |
3461 this._sendDone$0(); | |
3462 else | |
3463 this._addPending$1(C.C__DelayedDone); | |
3464 }, | |
3465 _onPause$0: function() { | |
3466 }, | |
3467 get$_onPause: function() { | |
3468 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onPause$0, null, "_onPause$0"); | |
3469 }, | |
3470 _onResume$0: function() { | |
3471 }, | |
3472 get$_onResume: function() { | |
3473 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onResume$0, null, "_onResume$0"); | |
3474 }, | |
3475 _onCancel$0: function() { | |
3476 }, | |
3477 _addPending$1: function($event) { | |
3478 var pending, t1; | |
3479 pending = this._pending; | |
3480 if (pending == null) { | |
3481 pending = new P._StreamImplEvents(null, null, 0); | |
3482 this._pending = pending; | |
3483 } | |
3484 pending.add$1(pending, $event); | |
3485 t1 = this._state; | |
3486 if ((t1 & 64) === 0) { | |
3487 this._state = (t1 | 64) >>> 0; | |
3488 if (this._state < 128) | |
3489 this._pending.schedule$1(this); | |
3490 } | |
3491 }, | |
3492 _sendData$1: function(data) { | |
3493 var t1 = this._state; | |
3494 this._state = (t1 | 32) >>> 0; | |
3495 this._zone.runUnaryGuarded$2(this._async$_onData, data); | |
3496 this._state = (this._state & 4294967263) >>> 0; | |
3497 this._checkState$1((t1 & 4) !== 0); | |
3498 }, | |
3499 _sendDone$0: function() { | |
3500 var t1, t2, t3; | |
3501 t1 = new P._BufferingStreamSubscription__sendDone_sendDone(this); | |
3502 this._cancel$0(); | |
3503 this._state = (this._state | 16) >>> 0; | |
3504 t2 = this._cancelFuture; | |
3505 t3 = J.getInterceptor(t2); | |
3506 if (typeof t2 === "object" && t2 !== null && !!t3.$isFuture) | |
3507 t2.whenComplete$1(t1); | |
3508 else | |
3509 t1.call$0(); | |
3510 }, | |
3511 _guardCallback$1: function(callback) { | |
3512 var t1 = this._state; | |
3513 this._state = (t1 | 32) >>> 0; | |
3514 callback.call$0(); | |
3515 this._state = (this._state & 4294967263) >>> 0; | |
3516 this._checkState$1((t1 & 4) !== 0); | |
3517 }, | |
3518 _checkState$1: function(wasInputPaused) { | |
3519 var t1, t2, isInputPaused; | |
3520 t1 = this._state; | |
3521 if ((t1 & 64) !== 0) { | |
3522 t2 = this._pending; | |
3523 t2 = t2.get$isEmpty(t2); | |
3524 } else | |
3525 t2 = false; | |
3526 if (t2) { | |
3527 this._state = (t1 & 4294967231) >>> 0; | |
3528 if ((this._state & 4) !== 0 && this.get$_mayResumeInput()) | |
3529 this._state = (this._state & 4294967291) >>> 0; | |
3530 } | |
3531 for (; true; wasInputPaused = isInputPaused) { | |
3532 t1 = this._state; | |
3533 if ((t1 & 8) !== 0) { | |
3534 this._pending = null; | |
3535 return; | |
3536 } | |
3537 isInputPaused = (t1 & 4) !== 0; | |
3538 if (wasInputPaused === isInputPaused) | |
3539 break; | |
3540 this._state = (t1 ^ 32) >>> 0; | |
3541 if (isInputPaused) | |
3542 this._onPause$0(); | |
3543 else | |
3544 this._onResume$0(); | |
3545 this._state = (this._state & 4294967263) >>> 0; | |
3546 } | |
3547 t1 = this._state; | |
3548 if ((t1 & 64) !== 0 && t1 < 128) | |
3549 this._pending.schedule$1(this); | |
3550 }, | |
3551 static: { | |
3552 "": "_BufferingStreamSubscription__STATE_CANCEL_ON_ERROR,_BufferingStreamSubscri
ption__STATE_CLOSED,_BufferingStreamSubscription__STATE_INPUT_PAUSED,_BufferingS
treamSubscription__STATE_CANCELED,_BufferingStreamSubscription__STATE_WAIT_FOR_C
ANCEL,_BufferingStreamSubscription__STATE_IN_CALLBACK,_BufferingStreamSubscripti
on__STATE_HAS_PENDING,_BufferingStreamSubscription__STATE_PAUSE_COUNT,_Buffering
StreamSubscription__STATE_PAUSE_COUNT_SHIFT", | |
3553 } | |
3554 | |
3555 }, | |
3556 | |
3557 _BufferingStreamSubscription__sendDone_sendDone: {"": "Closure;this_0", | |
3558 call$0: function() { | |
3559 var t1, t2; | |
3560 t1 = this.this_0; | |
3561 t2 = t1._state; | |
3562 if ((t2 & 16) === 0) | |
3563 return; | |
3564 t1._state = (t2 | 42) >>> 0; | |
3565 t1._zone.runGuarded$1(t1._onDone); | |
3566 t1._state = (t1._state & 4294967263) >>> 0; | |
3567 } | |
3568 }, | |
3569 | |
3570 _StreamImpl: {"": "Stream;", | |
3571 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | |
3572 var subscription = this._createSubscription$1(true === cancelOnError); | |
3573 subscription.onData$1(onData); | |
3574 subscription.onError$1(subscription, onError); | |
3575 subscription.onDone$1(onDone); | |
3576 return subscription; | |
3577 }, | |
3578 _createSubscription$1: function(cancelOnError) { | |
3579 var t1, t2; | |
3580 t1 = $.Zone__current; | |
3581 t2 = cancelOnError ? 1 : 0; | |
3582 return new P._BufferingStreamSubscription(null, null, null, t1, t2, null, nu
ll); | |
3583 }, | |
3584 $asStream: null | |
3585 }, | |
3586 | |
3587 _DelayedEvent: {"": "Object;next@"}, | |
3588 | |
3589 _DelayedData: {"": "_DelayedEvent;value,next", | |
3590 perform$1: function(dispatch) { | |
3591 dispatch._sendData$1(this.value); | |
3592 } | |
3593 }, | |
3594 | |
3595 _DelayedDone: {"": "Object;", | |
3596 perform$1: function(dispatch) { | |
3597 dispatch._sendDone$0(); | |
3598 }, | |
3599 get$next: function() { | |
3600 return; | |
3601 }, | |
3602 set$next: function(_) { | |
3603 throw H.wrapException(P.StateError$("No events after a done.")); | |
3604 } | |
3605 }, | |
3606 | |
3607 _PendingEvents: {"": "Object;", | |
3608 schedule$1: function(dispatch) { | |
3609 var t1 = this._state; | |
3610 if (t1 === 1) | |
3611 return; | |
3612 if (t1 >= 1) { | |
3613 this._state = 1; | |
3614 return; | |
3615 } | |
3616 P.scheduleMicrotask(new P._PendingEvents_schedule_closure(this, dispatch)); | |
3617 this._state = 1; | |
3618 }, | |
3619 cancelSchedule$0: function() { | |
3620 if (this._state === 1) | |
3621 this._state = 3; | |
3622 } | |
3623 }, | |
3624 | |
3625 _PendingEvents_schedule_closure: {"": "Closure;this_0,dispatch_1", | |
3626 call$0: function() { | |
3627 var t1, oldState; | |
3628 t1 = this.this_0; | |
3629 oldState = t1._state; | |
3630 t1._state = 0; | |
3631 if (oldState === 3) | |
3632 return; | |
3633 t1.handleNext$1(this.dispatch_1); | |
3634 } | |
3635 }, | |
3636 | |
3637 _StreamImplEvents: {"": "_PendingEvents;firstPendingEvent,lastPendingEvent,_stat
e", | |
3638 get$isEmpty: function(_) { | |
3639 return this.lastPendingEvent == null; | |
3640 }, | |
3641 add$1: function(_, $event) { | |
3642 var t1 = this.lastPendingEvent; | |
3643 if (t1 == null) { | |
3644 this.lastPendingEvent = $event; | |
3645 this.firstPendingEvent = $event; | |
3646 } else { | |
3647 t1.set$next($event); | |
3648 this.lastPendingEvent = $event; | |
3649 } | |
3650 }, | |
3651 handleNext$1: function(dispatch) { | |
3652 var $event = this.firstPendingEvent; | |
3653 this.firstPendingEvent = $event.get$next(); | |
3654 if (this.firstPendingEvent == null) | |
3655 this.lastPendingEvent = null; | |
3656 $event.perform$1(dispatch); | |
3657 } | |
3658 }, | |
3659 | |
3660 _cancelAndError_closure: {"": "Closure;future_0,error_1,stackTrace_2", | |
3661 call$0: function() { | |
3662 return this.future_0._completeError$2(this.error_1, this.stackTrace_2); | |
3663 } | |
3664 }, | |
3665 | |
3666 _cancelAndErrorClosure_closure: {"": "Closure;subscription_0,future_1", | |
3667 call$2: function(error, stackTrace) { | |
3668 return P._cancelAndError(this.subscription_0, this.future_1, error, stackTra
ce); | |
3669 }, | |
3670 $is_args2: true | |
3671 }, | |
3672 | |
3673 _BaseZone: {"": "Object;", | |
3674 runGuarded$1: function(f) { | |
3675 var e, s, t1, exception; | |
3676 try { | |
3677 t1 = this.run$1(f); | |
3678 return t1; | |
3679 } catch (exception) { | |
3680 t1 = H.unwrapException(exception); | |
3681 e = t1; | |
3682 s = new H._StackTrace(exception, null); | |
3683 return this.handleUncaughtError$2(e, s); | |
3684 } | |
3685 | |
3686 }, | |
3687 runUnaryGuarded$2: function(f, arg) { | |
3688 var e, s, t1, exception; | |
3689 try { | |
3690 t1 = this.runUnary$2(f, arg); | |
3691 return t1; | |
3692 } catch (exception) { | |
3693 t1 = H.unwrapException(exception); | |
3694 e = t1; | |
3695 s = new H._StackTrace(exception, null); | |
3696 return this.handleUncaughtError$2(e, s); | |
3697 } | |
3698 | |
3699 }, | |
3700 bindCallback$2$runGuarded: function(f, runGuarded) { | |
3701 var registered = this.registerCallback$1(f); | |
3702 if (runGuarded) | |
3703 return new P._BaseZone_bindCallback_closure(this, registered); | |
3704 else | |
3705 return new P._BaseZone_bindCallback_closure0(this, registered); | |
3706 }, | |
3707 bindUnaryCallback$2$runGuarded: function(f, runGuarded) { | |
3708 var registered = this.registerUnaryCallback$1(f); | |
3709 if (runGuarded) | |
3710 return new P._BaseZone_bindUnaryCallback_closure(this, registered); | |
3711 else | |
3712 return new P._BaseZone_bindUnaryCallback_closure0(this, registered); | |
3713 } | |
3714 }, | |
3715 | |
3716 _BaseZone_bindCallback_closure: {"": "Closure;this_0,registered_1", | |
3717 call$0: function() { | |
3718 return this.this_0.runGuarded$1(this.registered_1); | |
3719 } | |
3720 }, | |
3721 | |
3722 _BaseZone_bindCallback_closure0: {"": "Closure;this_2,registered_3", | |
3723 call$0: function() { | |
3724 return this.this_2.run$1(this.registered_3); | |
3725 } | |
3726 }, | |
3727 | |
3728 _BaseZone_bindUnaryCallback_closure: {"": "Closure;this_0,registered_1", | |
3729 call$1: function(arg) { | |
3730 return this.this_0.runUnaryGuarded$2(this.registered_1, arg); | |
3731 }, | |
3732 $is_args1: true | |
3733 }, | |
3734 | |
3735 _BaseZone_bindUnaryCallback_closure0: {"": "Closure;this_2,registered_3", | |
3736 call$1: function(arg) { | |
3737 return this.this_2.runUnary$2(this.registered_3, arg); | |
3738 }, | |
3739 $is_args1: true | |
3740 }, | |
3741 | |
3742 _rootHandleUncaughtError_closure: {"": "Closure;error_0,stackTrace_1", | |
3743 call$0: function() { | |
3744 P._scheduleAsyncCallback(new P._rootHandleUncaughtError__closure(this.error_
0, this.stackTrace_1)); | |
3745 } | |
3746 }, | |
3747 | |
3748 _rootHandleUncaughtError__closure: {"": "Closure;error_2,stackTrace_3", | |
3749 call$0: function() { | |
3750 var t1, trace; | |
3751 t1 = this.error_2; | |
3752 P.print("Uncaught Error: " + H.S(t1)); | |
3753 trace = this.stackTrace_3; | |
3754 if (trace == null) | |
3755 trace = P.getAttachedStackTrace(t1); | |
3756 P._attachStackTrace(t1, null); | |
3757 if (trace != null) | |
3758 P.print("Stack Trace: \n" + H.S(trace) + "\n"); | |
3759 throw H.wrapException(t1); | |
3760 } | |
3761 }, | |
3762 | |
3763 _RootZone: {"": "_BaseZone;", | |
3764 $index: function(_, key) { | |
3765 return; | |
3766 }, | |
3767 handleUncaughtError$2: function(error, stackTrace) { | |
3768 return P._rootHandleUncaughtError(this, null, this, error, stackTrace); | |
3769 }, | |
3770 run$1: function(f) { | |
3771 return P._rootRun(this, null, this, f); | |
3772 }, | |
3773 runUnary$2: function(f, arg) { | |
3774 return P._rootRunUnary(this, null, this, f, arg); | |
3775 }, | |
3776 registerCallback$1: function(f) { | |
3777 return f; | |
3778 }, | |
3779 registerUnaryCallback$1: function(f) { | |
3780 return f; | |
3781 } | |
3782 }}], | |
3783 ["dart.collection", "dart:collection", , P, { | |
3784 _HashSet__newHashTable: function() { | |
3785 var table = Object.create(null); | |
3786 table["<non-identifier-key>"] = table; | |
3787 delete table["<non-identifier-key>"]; | |
3788 return table; | |
3789 }, | |
3790 | |
3791 _defaultEquals: function(a, b) { | |
3792 return J.$eq(a, b); | |
3793 }, | |
3794 | |
3795 _defaultHashCode: function(a) { | |
3796 return J.get$hashCode$(a); | |
3797 }, | |
3798 | |
3799 HashMap_HashMap: function(equals, hashCode, isValidKey, $K, $V) { | |
3800 var t1 = new P._HashMap(0, null, null, null, null); | |
3801 H.setRuntimeTypeInfo(t1, [$K, $V]); | |
3802 return t1; | |
3803 }, | |
3804 | |
3805 _iterableToString: function(iterable) { | |
3806 var parts, t1; | |
3807 t1 = $.get$_toStringVisiting(); | |
3808 if (t1.contains$1(t1, iterable)) | |
3809 return "(...)"; | |
3810 t1 = $.get$_toStringVisiting(); | |
3811 t1.add$1(t1, iterable); | |
3812 parts = []; | |
3813 try { | |
3814 P._iterablePartsToStrings(iterable, parts); | |
3815 } finally { | |
3816 t1 = $.get$_toStringVisiting(); | |
3817 t1.remove$1(t1, iterable); | |
3818 } | |
3819 t1 = P.StringBuffer$("("); | |
3820 t1.writeAll$2(parts, ", "); | |
3821 t1.write$1(")"); | |
3822 return t1._contents; | |
3823 }, | |
3824 | |
3825 _iterablePartsToStrings: function(iterable, parts) { | |
3826 var it, $length, count, next, ultimateString, penultimateString, penultimate,
ultimate, ultimate0, elision; | |
3827 it = iterable.get$iterator(iterable); | |
3828 $length = 0; | |
3829 count = 0; | |
3830 while (true) { | |
3831 if (!($length < 80 || count < 3)) | |
3832 break; | |
3833 if (!it.moveNext$0()) | |
3834 return; | |
3835 next = H.S(it.get$current()); | |
3836 parts.push(next); | |
3837 $length += next.length + 2; | |
3838 ++count; | |
3839 } | |
3840 if (!it.moveNext$0()) { | |
3841 if (count <= 5) | |
3842 return; | |
3843 if (0 >= parts.length) | |
3844 throw H.ioore(parts, 0); | |
3845 ultimateString = parts.pop(); | |
3846 if (0 >= parts.length) | |
3847 throw H.ioore(parts, 0); | |
3848 penultimateString = parts.pop(); | |
3849 } else { | |
3850 penultimate = it.get$current(); | |
3851 ++count; | |
3852 if (!it.moveNext$0()) { | |
3853 if (count <= 4) { | |
3854 parts.push(H.S(penultimate)); | |
3855 return; | |
3856 } | |
3857 ultimateString = H.S(penultimate); | |
3858 if (0 >= parts.length) | |
3859 throw H.ioore(parts, 0); | |
3860 penultimateString = parts.pop(); | |
3861 $length += ultimateString.length + 2; | |
3862 } else { | |
3863 ultimate = it.get$current(); | |
3864 ++count; | |
3865 for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) { | |
3866 ultimate0 = it.get$current(); | |
3867 ++count; | |
3868 if (count > 100) { | |
3869 while (true) { | |
3870 if (!($length > 75 && count > 3)) | |
3871 break; | |
3872 if (0 >= parts.length) | |
3873 throw H.ioore(parts, 0); | |
3874 $length -= parts.pop().length + 2; | |
3875 --count; | |
3876 } | |
3877 parts.push("..."); | |
3878 return; | |
3879 } | |
3880 } | |
3881 penultimateString = H.S(penultimate); | |
3882 ultimateString = H.S(ultimate); | |
3883 $length += ultimateString.length + penultimateString.length + 4; | |
3884 } | |
3885 } | |
3886 if (count > parts.length + 2) { | |
3887 $length += 5; | |
3888 elision = "..."; | |
3889 } else | |
3890 elision = null; | |
3891 while (true) { | |
3892 if (!($length > 80 && parts.length > 3)) | |
3893 break; | |
3894 if (0 >= parts.length) | |
3895 throw H.ioore(parts, 0); | |
3896 $length -= parts.pop().length + 2; | |
3897 if (elision == null) { | |
3898 $length += 5; | |
3899 elision = "..."; | |
3900 } | |
3901 } | |
3902 if (elision != null) | |
3903 parts.push(elision); | |
3904 parts.push(penultimateString); | |
3905 parts.push(ultimateString); | |
3906 }, | |
3907 | |
3908 LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) { | |
3909 var t1 = new P._LinkedHashMap(0, null, null, null, null, null, 0); | |
3910 H.setRuntimeTypeInfo(t1, [$K, $V]); | |
3911 return t1; | |
3912 }, | |
3913 | |
3914 Maps_mapToString: function(m) { | |
3915 var t1, result, i, t2; | |
3916 t1 = {}; | |
3917 for (i = 0; i < $.get$Maps__toStringList().length; ++i) { | |
3918 t2 = $.get$Maps__toStringList(); | |
3919 if (i >= t2.length) | |
3920 throw H.ioore(t2, i); | |
3921 if (t2[i] === m) | |
3922 return "{...}"; | |
3923 } | |
3924 result = P.StringBuffer$(""); | |
3925 try { | |
3926 $.get$Maps__toStringList().push(m); | |
3927 result.write$1("{"); | |
3928 t1.first_0 = true; | |
3929 J.forEach$1$ax(m, new P.Maps_mapToString_closure(t1, result)); | |
3930 result.write$1("}"); | |
3931 } finally { | |
3932 t1 = $.get$Maps__toStringList(); | |
3933 if (0 >= t1.length) | |
3934 throw H.ioore(t1, 0); | |
3935 t1.pop(); | |
3936 } | |
3937 return result.get$_contents(); | |
3938 }, | |
3939 | |
3940 _HashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_keys", | |
3941 get$length: function(_) { | |
3942 return this._collection$_length; | |
3943 }, | |
3944 get$keys: function() { | |
3945 var t1 = new P.HashMapKeyIterable(this); | |
3946 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); | |
3947 return t1; | |
3948 }, | |
3949 get$values: function(_) { | |
3950 var t1 = new P.HashMapKeyIterable(this); | |
3951 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); | |
3952 return H.MappedIterable_MappedIterable(t1, new P._HashMap_values_closure(thi
s), H.getRuntimeTypeArgument(t1, "IterableBase", 0), null); | |
3953 }, | |
3954 $index: function(_, key) { | |
3955 var strings, t1, entry, nums, rest, bucket, index; | |
3956 if (typeof key === "string" && key !== "__proto__") { | |
3957 strings = this._strings; | |
3958 if (strings == null) | |
3959 t1 = null; | |
3960 else { | |
3961 entry = strings[key]; | |
3962 t1 = entry === strings ? null : entry; | |
3963 } | |
3964 return t1; | |
3965 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
3966 nums = this._nums; | |
3967 if (nums == null) | |
3968 t1 = null; | |
3969 else { | |
3970 entry = nums[key]; | |
3971 t1 = entry === nums ? null : entry; | |
3972 } | |
3973 return t1; | |
3974 } else { | |
3975 rest = this._rest; | |
3976 if (rest == null) | |
3977 return; | |
3978 bucket = rest[this._computeHashCode$1(key)]; | |
3979 index = this._findBucketIndex$2(bucket, key); | |
3980 return index < 0 ? null : bucket[index + 1]; | |
3981 } | |
3982 }, | |
3983 $indexSet: function(_, key, value) { | |
3984 var strings, nums, rest, hash, bucket, index; | |
3985 if (typeof key === "string" && key !== "__proto__") { | |
3986 strings = this._strings; | |
3987 if (strings == null) { | |
3988 strings = P._HashMap__newHashTable(); | |
3989 this._strings = strings; | |
3990 } | |
3991 this._addHashTableEntry$3(strings, key, value); | |
3992 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
3993 nums = this._nums; | |
3994 if (nums == null) { | |
3995 nums = P._HashMap__newHashTable(); | |
3996 this._nums = nums; | |
3997 } | |
3998 this._addHashTableEntry$3(nums, key, value); | |
3999 } else { | |
4000 rest = this._rest; | |
4001 if (rest == null) { | |
4002 rest = P._HashMap__newHashTable(); | |
4003 this._rest = rest; | |
4004 } | |
4005 hash = this._computeHashCode$1(key); | |
4006 bucket = rest[hash]; | |
4007 if (bucket == null) { | |
4008 P._HashMap__setTableEntry(rest, hash, [key, value]); | |
4009 this._collection$_length = this._collection$_length + 1; | |
4010 this._keys = null; | |
4011 } else { | |
4012 index = this._findBucketIndex$2(bucket, key); | |
4013 if (index >= 0) | |
4014 bucket[index + 1] = value; | |
4015 else { | |
4016 bucket.push(key, value); | |
4017 this._collection$_length = this._collection$_length + 1; | |
4018 this._keys = null; | |
4019 } | |
4020 } | |
4021 } | |
4022 }, | |
4023 forEach$1: function(_, action) { | |
4024 var keys, $length, i, key; | |
4025 keys = this._computeKeys$0(); | |
4026 for ($length = keys.length, i = 0; i < $length; ++i) { | |
4027 key = keys[i]; | |
4028 action.call$2(key, this.$index(this, key)); | |
4029 if (keys !== this._keys) | |
4030 throw H.wrapException(P.ConcurrentModificationError$(this)); | |
4031 } | |
4032 }, | |
4033 _computeKeys$0: function() { | |
4034 var t1, result, strings, names, entries, index, i, nums, rest, bucket, $leng
th, i0; | |
4035 t1 = this._keys; | |
4036 if (t1 != null) | |
4037 return t1; | |
4038 result = P.List_List(this._collection$_length, null); | |
4039 strings = this._strings; | |
4040 if (strings != null) { | |
4041 names = Object.getOwnPropertyNames(strings); | |
4042 entries = names.length; | |
4043 for (index = 0, i = 0; i < entries; ++i) { | |
4044 result[index] = names[i]; | |
4045 ++index; | |
4046 } | |
4047 } else | |
4048 index = 0; | |
4049 nums = this._nums; | |
4050 if (nums != null) { | |
4051 names = Object.getOwnPropertyNames(nums); | |
4052 entries = names.length; | |
4053 for (i = 0; i < entries; ++i) { | |
4054 result[index] = +names[i]; | |
4055 ++index; | |
4056 } | |
4057 } | |
4058 rest = this._rest; | |
4059 if (rest != null) { | |
4060 names = Object.getOwnPropertyNames(rest); | |
4061 entries = names.length; | |
4062 for (i = 0; i < entries; ++i) { | |
4063 bucket = rest[names[i]]; | |
4064 $length = bucket.length; | |
4065 for (i0 = 0; i0 < $length; i0 += 2) { | |
4066 result[index] = bucket[i0]; | |
4067 ++index; | |
4068 } | |
4069 } | |
4070 } | |
4071 this._keys = result; | |
4072 return result; | |
4073 }, | |
4074 _addHashTableEntry$3: function(table, key, value) { | |
4075 if (table[key] == null) { | |
4076 this._collection$_length = this._collection$_length + 1; | |
4077 this._keys = null; | |
4078 } | |
4079 P._HashMap__setTableEntry(table, key, value); | |
4080 }, | |
4081 _computeHashCode$1: function(key) { | |
4082 return J.get$hashCode$(key) & 0x3ffffff; | |
4083 }, | |
4084 _findBucketIndex$2: function(bucket, key) { | |
4085 var $length, i; | |
4086 if (bucket == null) | |
4087 return -1; | |
4088 $length = bucket.length; | |
4089 for (i = 0; i < $length; i += 2) | |
4090 if (J.$eq(bucket[i], key)) | |
4091 return i; | |
4092 return -1; | |
4093 }, | |
4094 $isMap: true, | |
4095 static: { | |
4096 _HashMap__setTableEntry: function(table, key, value) { | |
4097 if (value == null) | |
4098 table[key] = table; | |
4099 else | |
4100 table[key] = value; | |
4101 }, | |
4102 | |
4103 _HashMap__newHashTable: function() { | |
4104 var table = Object.create(null); | |
4105 P._HashMap__setTableEntry(table, "<non-identifier-key>", table); | |
4106 delete table["<non-identifier-key>"]; | |
4107 return table; | |
4108 }} | |
4109 | |
4110 }, | |
4111 | |
4112 _HashMap_values_closure: {"": "Closure;this_0", | |
4113 call$1: function(each) { | |
4114 var t1 = this.this_0; | |
4115 return t1.$index(t1, each); | |
4116 }, | |
4117 $is_args1: true | |
4118 }, | |
4119 | |
4120 HashMapKeyIterable: {"": "IterableBase;_map", | |
4121 get$length: function(_) { | |
4122 return this._map._collection$_length; | |
4123 }, | |
4124 get$iterator: function(_) { | |
4125 var t1 = this._map; | |
4126 return new P.HashMapKeyIterator(t1, t1._computeKeys$0(), 0, null); | |
4127 }, | |
4128 forEach$1: function(_, f) { | |
4129 var t1, keys, $length, i; | |
4130 t1 = this._map; | |
4131 keys = t1._computeKeys$0(); | |
4132 for ($length = keys.length, i = 0; i < $length; ++i) { | |
4133 f.call$1(keys[i]); | |
4134 if (keys !== t1._keys) | |
4135 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4136 } | |
4137 }, | |
4138 $asIterableBase: null, | |
4139 $isEfficientLength: true | |
4140 }, | |
4141 | |
4142 HashMapKeyIterator: {"": "Object;_map,_keys,_offset,_collection$_current", | |
4143 get$current: function() { | |
4144 return this._collection$_current; | |
4145 }, | |
4146 moveNext$0: function() { | |
4147 var keys, offset, t1; | |
4148 keys = this._keys; | |
4149 offset = this._offset; | |
4150 t1 = this._map; | |
4151 if (keys !== t1._keys) | |
4152 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4153 else if (offset >= keys.length) { | |
4154 this._collection$_current = null; | |
4155 return false; | |
4156 } else { | |
4157 this._collection$_current = keys[offset]; | |
4158 this._offset = offset + 1; | |
4159 return true; | |
4160 } | |
4161 } | |
4162 }, | |
4163 | |
4164 _LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_la
st,_modifications", | |
4165 get$length: function(_) { | |
4166 return this._collection$_length; | |
4167 }, | |
4168 get$keys: function() { | |
4169 var t1 = new P.LinkedHashMapKeyIterable(this); | |
4170 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0
)]); | |
4171 return t1; | |
4172 }, | |
4173 get$values: function(_) { | |
4174 var t1 = new P.LinkedHashMapKeyIterable(this); | |
4175 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0
)]); | |
4176 return H.MappedIterable_MappedIterable(t1, new P._LinkedHashMap_values_closu
re(this), H.getRuntimeTypeArgument(t1, "IterableBase", 0), null); | |
4177 }, | |
4178 containsKey$1: function(key) { | |
4179 var nums, rest; | |
4180 if ((key & 0x3ffffff) === key) { | |
4181 nums = this._nums; | |
4182 if (nums == null) | |
4183 return false; | |
4184 return nums[key] != null; | |
4185 } else { | |
4186 rest = this._rest; | |
4187 if (rest == null) | |
4188 return false; | |
4189 return this._findBucketIndex$2(rest[this._computeHashCode$1(key)], key) >=
0; | |
4190 } | |
4191 }, | |
4192 $index: function(_, key) { | |
4193 var strings, cell, nums, rest, bucket, index; | |
4194 if (typeof key === "string" && key !== "__proto__") { | |
4195 strings = this._strings; | |
4196 if (strings == null) | |
4197 return; | |
4198 cell = strings[key]; | |
4199 return cell == null ? null : cell.get$_collection$_value(); | |
4200 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
4201 nums = this._nums; | |
4202 if (nums == null) | |
4203 return; | |
4204 cell = nums[key]; | |
4205 return cell == null ? null : cell.get$_collection$_value(); | |
4206 } else { | |
4207 rest = this._rest; | |
4208 if (rest == null) | |
4209 return; | |
4210 bucket = rest[this._computeHashCode$1(key)]; | |
4211 index = this._findBucketIndex$2(bucket, key); | |
4212 if (index < 0) | |
4213 return; | |
4214 return bucket[index].get$_collection$_value(); | |
4215 } | |
4216 }, | |
4217 $indexSet: function(_, key, value) { | |
4218 var strings, nums, rest, hash, bucket, index; | |
4219 if (typeof key === "string" && key !== "__proto__") { | |
4220 strings = this._strings; | |
4221 if (strings == null) { | |
4222 strings = P._LinkedHashMap__newHashTable(); | |
4223 this._strings = strings; | |
4224 } | |
4225 this._addHashTableEntry$3(strings, key, value); | |
4226 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
4227 nums = this._nums; | |
4228 if (nums == null) { | |
4229 nums = P._LinkedHashMap__newHashTable(); | |
4230 this._nums = nums; | |
4231 } | |
4232 this._addHashTableEntry$3(nums, key, value); | |
4233 } else { | |
4234 rest = this._rest; | |
4235 if (rest == null) { | |
4236 rest = P._LinkedHashMap__newHashTable(); | |
4237 this._rest = rest; | |
4238 } | |
4239 hash = this._computeHashCode$1(key); | |
4240 bucket = rest[hash]; | |
4241 if (bucket == null) | |
4242 rest[hash] = [this._newLinkedCell$2(key, value)]; | |
4243 else { | |
4244 index = this._findBucketIndex$2(bucket, key); | |
4245 if (index >= 0) | |
4246 bucket[index].set$_collection$_value(value); | |
4247 else | |
4248 bucket.push(this._newLinkedCell$2(key, value)); | |
4249 } | |
4250 } | |
4251 }, | |
4252 remove$1: function(_, key) { | |
4253 var rest, bucket, index, cell; | |
4254 if (typeof key === "string" && key !== "__proto__") | |
4255 return this._removeHashTableEntry$2(this._strings, key); | |
4256 else if (typeof key === "number" && (key & 0x3ffffff) === key) | |
4257 return this._removeHashTableEntry$2(this._nums, key); | |
4258 else { | |
4259 rest = this._rest; | |
4260 if (rest == null) | |
4261 return; | |
4262 bucket = rest[this._computeHashCode$1(key)]; | |
4263 index = this._findBucketIndex$2(bucket, key); | |
4264 if (index < 0) | |
4265 return; | |
4266 cell = bucket.splice(index, 1)[0]; | |
4267 this._unlinkCell$1(cell); | |
4268 return cell.get$_collection$_value(); | |
4269 } | |
4270 }, | |
4271 forEach$1: function(_, action) { | |
4272 var cell, modifications; | |
4273 cell = this._first; | |
4274 modifications = this._modifications; | |
4275 for (; cell != null;) { | |
4276 action.call$2(cell._key, cell._collection$_value); | |
4277 if (modifications !== this._modifications) | |
4278 throw H.wrapException(P.ConcurrentModificationError$(this)); | |
4279 cell = cell._next; | |
4280 } | |
4281 }, | |
4282 _addHashTableEntry$3: function(table, key, value) { | |
4283 var cell = table[key]; | |
4284 if (cell == null) | |
4285 table[key] = this._newLinkedCell$2(key, value); | |
4286 else | |
4287 cell.set$_collection$_value(value); | |
4288 }, | |
4289 _removeHashTableEntry$2: function(table, key) { | |
4290 var cell; | |
4291 if (table == null) | |
4292 return; | |
4293 cell = table[key]; | |
4294 if (cell == null) | |
4295 return; | |
4296 this._unlinkCell$1(cell); | |
4297 delete table[key]; | |
4298 return cell.get$_collection$_value(); | |
4299 }, | |
4300 _newLinkedCell$2: function(key, value) { | |
4301 var cell, last; | |
4302 cell = new P.LinkedHashMapCell(key, value, null, null); | |
4303 if (this._first == null) { | |
4304 this._last = cell; | |
4305 this._first = cell; | |
4306 } else { | |
4307 last = this._last; | |
4308 cell._previous = last; | |
4309 last._next = cell; | |
4310 this._last = cell; | |
4311 } | |
4312 this._collection$_length = this._collection$_length + 1; | |
4313 this._modifications = this._modifications + 1 & 67108863; | |
4314 return cell; | |
4315 }, | |
4316 _unlinkCell$1: function(cell) { | |
4317 var previous, next; | |
4318 previous = cell.get$_previous(); | |
4319 next = cell.get$_next(); | |
4320 if (previous == null) | |
4321 this._first = next; | |
4322 else | |
4323 previous._next = next; | |
4324 if (next == null) | |
4325 this._last = previous; | |
4326 else | |
4327 next._previous = previous; | |
4328 this._collection$_length = this._collection$_length - 1; | |
4329 this._modifications = this._modifications + 1 & 67108863; | |
4330 }, | |
4331 _computeHashCode$1: function(key) { | |
4332 return J.get$hashCode$(key) & 0x3ffffff; | |
4333 }, | |
4334 _findBucketIndex$2: function(bucket, key) { | |
4335 var $length, i; | |
4336 if (bucket == null) | |
4337 return -1; | |
4338 $length = bucket.length; | |
4339 for (i = 0; i < $length; ++i) | |
4340 if (J.$eq(bucket[i].get$_key(), key)) | |
4341 return i; | |
4342 return -1; | |
4343 }, | |
4344 toString$0: function(_) { | |
4345 return P.Maps_mapToString(this); | |
4346 }, | |
4347 $isMap: true, | |
4348 static: { | |
4349 _LinkedHashMap__newHashTable: function() { | |
4350 var table = Object.create(null); | |
4351 table["<non-identifier-key>"] = table; | |
4352 delete table["<non-identifier-key>"]; | |
4353 return table; | |
4354 }} | |
4355 | |
4356 }, | |
4357 | |
4358 _LinkedHashMap_values_closure: {"": "Closure;this_0", | |
4359 call$1: function(each) { | |
4360 var t1 = this.this_0; | |
4361 return t1.$index(t1, each); | |
4362 }, | |
4363 $is_args1: true | |
4364 }, | |
4365 | |
4366 LinkedHashMapCell: {"": "Object;_key<,_collection$_value@,_next<,_previous<"}, | |
4367 | |
4368 LinkedHashMapKeyIterable: {"": "IterableBase;_map", | |
4369 get$length: function(_) { | |
4370 return this._map._collection$_length; | |
4371 }, | |
4372 get$iterator: function(_) { | |
4373 var t1 = this._map; | |
4374 t1 = new P.LinkedHashMapKeyIterator(t1, t1._modifications, null, null); | |
4375 t1._cell = t1._map._first; | |
4376 return t1; | |
4377 }, | |
4378 forEach$1: function(_, f) { | |
4379 var t1, cell, modifications; | |
4380 t1 = this._map; | |
4381 cell = t1._first; | |
4382 modifications = t1._modifications; | |
4383 for (; cell != null;) { | |
4384 f.call$1(cell._key); | |
4385 if (modifications !== t1._modifications) | |
4386 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4387 cell = cell._next; | |
4388 } | |
4389 }, | |
4390 $asIterableBase: null, | |
4391 $isEfficientLength: true | |
4392 }, | |
4393 | |
4394 LinkedHashMapKeyIterator: {"": "Object;_map,_modifications,_cell,_collection$_cu
rrent", | |
4395 get$current: function() { | |
4396 return this._collection$_current; | |
4397 }, | |
4398 moveNext$0: function() { | |
4399 var t1 = this._map; | |
4400 if (this._modifications !== t1._modifications) | |
4401 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4402 else { | |
4403 t1 = this._cell; | |
4404 if (t1 == null) { | |
4405 this._collection$_current = null; | |
4406 return false; | |
4407 } else { | |
4408 this._collection$_current = t1._key; | |
4409 this._cell = this._cell._next; | |
4410 return true; | |
4411 } | |
4412 } | |
4413 } | |
4414 }, | |
4415 | |
4416 _HashSet: {"": "_HashSetBase;", | |
4417 get$iterator: function(_) { | |
4418 return new P.HashSetIterator(this, this._computeElements$0(), 0, null); | |
4419 }, | |
4420 get$length: function(_) { | |
4421 return this._collection$_length; | |
4422 }, | |
4423 contains$1: function(_, object) { | |
4424 var strings, nums, rest; | |
4425 if (typeof object === "string" && object !== "__proto__") { | |
4426 strings = this._strings; | |
4427 return strings == null ? false : strings[object] != null; | |
4428 } else if (typeof object === "number" && (object & 0x3ffffff) === object) { | |
4429 nums = this._nums; | |
4430 return nums == null ? false : nums[object] != null; | |
4431 } else { | |
4432 rest = this._rest; | |
4433 if (rest == null) | |
4434 return false; | |
4435 return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], obje
ct) >= 0; | |
4436 } | |
4437 }, | |
4438 lookup$1: function(object) { | |
4439 var t1, rest, bucket, index; | |
4440 if (!(typeof object === "string" && object !== "__proto__")) | |
4441 t1 = typeof object === "number" && (object & 0x3ffffff) === object; | |
4442 else | |
4443 t1 = true; | |
4444 if (t1) | |
4445 return this.contains$1(this, object) ? object : null; | |
4446 rest = this._rest; | |
4447 if (rest == null) | |
4448 return; | |
4449 bucket = rest[this._computeHashCode$1(object)]; | |
4450 index = this._findBucketIndex$2(bucket, object); | |
4451 if (index < 0) | |
4452 return; | |
4453 return J.$index$asx(bucket, index); | |
4454 }, | |
4455 add$1: function(_, element) { | |
4456 var rest, hash, bucket; | |
4457 rest = this._rest; | |
4458 if (rest == null) { | |
4459 rest = P._HashSet__newHashTable(); | |
4460 this._rest = rest; | |
4461 } | |
4462 hash = this._computeHashCode$1(element); | |
4463 bucket = rest[hash]; | |
4464 if (bucket == null) | |
4465 rest[hash] = [element]; | |
4466 else { | |
4467 if (this._findBucketIndex$2(bucket, element) >= 0) | |
4468 return false; | |
4469 bucket.push(element); | |
4470 } | |
4471 this._collection$_length = this._collection$_length + 1; | |
4472 this._elements = null; | |
4473 return true; | |
4474 }, | |
4475 remove$1: function(_, object) { | |
4476 var rest, bucket, index; | |
4477 rest = this._rest; | |
4478 if (rest == null) | |
4479 return false; | |
4480 bucket = rest[this._computeHashCode$1(object)]; | |
4481 index = this._findBucketIndex$2(bucket, object); | |
4482 if (index < 0) | |
4483 return false; | |
4484 this._collection$_length = this._collection$_length - 1; | |
4485 this._elements = null; | |
4486 bucket.splice(index, 1); | |
4487 return true; | |
4488 }, | |
4489 _computeElements$0: function() { | |
4490 var t1, result, strings, names, entries, index, i, nums, rest, bucket, $leng
th, i0; | |
4491 t1 = this._elements; | |
4492 if (t1 != null) | |
4493 return t1; | |
4494 result = P.List_List(this._collection$_length, null); | |
4495 strings = this._strings; | |
4496 if (strings != null) { | |
4497 names = Object.getOwnPropertyNames(strings); | |
4498 entries = names.length; | |
4499 for (index = 0, i = 0; i < entries; ++i) { | |
4500 result[index] = names[i]; | |
4501 ++index; | |
4502 } | |
4503 } else | |
4504 index = 0; | |
4505 nums = this._nums; | |
4506 if (nums != null) { | |
4507 names = Object.getOwnPropertyNames(nums); | |
4508 entries = names.length; | |
4509 for (i = 0; i < entries; ++i) { | |
4510 result[index] = +names[i]; | |
4511 ++index; | |
4512 } | |
4513 } | |
4514 rest = this._rest; | |
4515 if (rest != null) { | |
4516 names = Object.getOwnPropertyNames(rest); | |
4517 entries = names.length; | |
4518 for (i = 0; i < entries; ++i) { | |
4519 bucket = rest[names[i]]; | |
4520 $length = bucket.length; | |
4521 for (i0 = 0; i0 < $length; ++i0) { | |
4522 result[index] = bucket[i0]; | |
4523 ++index; | |
4524 } | |
4525 } | |
4526 } | |
4527 this._elements = result; | |
4528 return result; | |
4529 }, | |
4530 _computeHashCode$1: function(element) { | |
4531 return J.get$hashCode$(element) & 0x3ffffff; | |
4532 }, | |
4533 _findBucketIndex$2: function(bucket, element) { | |
4534 var $length, i; | |
4535 if (bucket == null) | |
4536 return -1; | |
4537 $length = bucket.length; | |
4538 for (i = 0; i < $length; ++i) | |
4539 if (J.$eq(bucket[i], element)) | |
4540 return i; | |
4541 return -1; | |
4542 }, | |
4543 $as_HashSetBase: null, | |
4544 $isEfficientLength: true | |
4545 }, | |
4546 | |
4547 _IdentityHashSet: {"": "_HashSet;_collection$_length,_strings,_nums,_rest,_eleme
nts", | |
4548 _computeHashCode$1: function(key) { | |
4549 return H.objectHashCode(key) & 0x3ffffff; | |
4550 }, | |
4551 _findBucketIndex$2: function(bucket, element) { | |
4552 var $length, i, t1; | |
4553 if (bucket == null) | |
4554 return -1; | |
4555 $length = bucket.length; | |
4556 for (i = 0; i < $length; ++i) { | |
4557 t1 = bucket[i]; | |
4558 if (t1 == null ? element == null : t1 === element) | |
4559 return i; | |
4560 } | |
4561 return -1; | |
4562 }, | |
4563 $as_HashSet: null | |
4564 }, | |
4565 | |
4566 HashSetIterator: {"": "Object;_set,_elements,_offset,_collection$_current", | |
4567 get$current: function() { | |
4568 return this._collection$_current; | |
4569 }, | |
4570 moveNext$0: function() { | |
4571 var elements, offset, t1; | |
4572 elements = this._elements; | |
4573 offset = this._offset; | |
4574 t1 = this._set; | |
4575 if (elements !== t1._elements) | |
4576 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4577 else if (offset >= elements.length) { | |
4578 this._collection$_current = null; | |
4579 return false; | |
4580 } else { | |
4581 this._collection$_current = elements[offset]; | |
4582 this._offset = offset + 1; | |
4583 return true; | |
4584 } | |
4585 } | |
4586 }, | |
4587 | |
4588 _HashSetBase: {"": "IterableBase;", | |
4589 toString$0: function(_) { | |
4590 return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); | |
4591 }, | |
4592 $asIterableBase: null, | |
4593 $isEfficientLength: true | |
4594 }, | |
4595 | |
4596 HashSet: {"": "Object;", $isEfficientLength: true, static: { | |
4597 HashSet_HashSet$identity: function($E) { | |
4598 var t1 = new P._IdentityHashSet(0, null, null, null, null); | |
4599 H.setRuntimeTypeInfo(t1, [$E]); | |
4600 return t1; | |
4601 }} | |
4602 }, | |
4603 | |
4604 IterableBase: {"": "Object;", | |
4605 forEach$1: function(_, f) { | |
4606 var t1; | |
4607 for (t1 = this.get$iterator(this); t1.moveNext$0();) | |
4608 f.call$1(t1.get$current()); | |
4609 }, | |
4610 get$length: function(_) { | |
4611 var it, count; | |
4612 it = this.get$iterator(this); | |
4613 for (count = 0; it.moveNext$0();) | |
4614 ++count; | |
4615 return count; | |
4616 }, | |
4617 elementAt$1: function(_, index) { | |
4618 var t1, remaining, element; | |
4619 if (index < 0) | |
4620 throw H.wrapException(P.RangeError$value(index)); | |
4621 for (t1 = this.get$iterator(this), remaining = index; t1.moveNext$0();) { | |
4622 element = t1.get$current(); | |
4623 if (remaining === 0) | |
4624 return element; | |
4625 --remaining; | |
4626 } | |
4627 throw H.wrapException(P.RangeError$value(index)); | |
4628 }, | |
4629 toString$0: function(_) { | |
4630 return P._iterableToString(this); | |
4631 } | |
4632 }, | |
4633 | |
4634 ListMixin: {"": "Object;", | |
4635 get$iterator: function(receiver) { | |
4636 return new H.ListIterator(receiver, this.get$length(receiver), 0, null); | |
4637 }, | |
4638 elementAt$1: function(receiver, index) { | |
4639 return this.$index(receiver, index); | |
4640 }, | |
4641 forEach$1: function(receiver, action) { | |
4642 var $length, i; | |
4643 $length = this.get$length(receiver); | |
4644 for (i = 0; i < $length; ++i) { | |
4645 action.call$1(this.$index(receiver, i)); | |
4646 if ($length !== this.get$length(receiver)) | |
4647 throw H.wrapException(P.ConcurrentModificationError$(receiver)); | |
4648 } | |
4649 }, | |
4650 toString$0: function(receiver) { | |
4651 var result, t1; | |
4652 t1 = $.get$_toStringVisiting(); | |
4653 if (t1.contains$1(t1, receiver)) | |
4654 return "[...]"; | |
4655 result = P.StringBuffer$(""); | |
4656 try { | |
4657 t1 = $.get$_toStringVisiting(); | |
4658 t1.add$1(t1, receiver); | |
4659 result.write$1("["); | |
4660 result.writeAll$2(receiver, ", "); | |
4661 result.write$1("]"); | |
4662 } finally { | |
4663 t1 = $.get$_toStringVisiting(); | |
4664 t1.remove$1(t1, receiver); | |
4665 } | |
4666 return result.get$_contents(); | |
4667 }, | |
4668 $isList: true, | |
4669 $asList: null, | |
4670 $isEfficientLength: true | |
4671 }, | |
4672 | |
4673 Maps_mapToString_closure: {"": "Closure;box_0,result_1", | |
4674 call$2: function(k, v) { | |
4675 var t1 = this.box_0; | |
4676 if (!t1.first_0) | |
4677 this.result_1.write$1(", "); | |
4678 t1.first_0 = false; | |
4679 t1 = this.result_1; | |
4680 t1.write$1(k); | |
4681 t1.write$1(": "); | |
4682 t1.write$1(v); | |
4683 }, | |
4684 $is_args2: true | |
4685 }, | |
4686 | |
4687 ListQueue: {"": "IterableBase;_table,_head,_tail,_modificationCount", | |
4688 get$iterator: function(_) { | |
4689 return P._ListQueueIterator$(this); | |
4690 }, | |
4691 forEach$1: function(_, action) { | |
4692 var modificationCount, i, t1; | |
4693 modificationCount = this._modificationCount; | |
4694 for (i = this._head; i !== this._tail; i = (i + 1 & this._table.length - 1)
>>> 0) { | |
4695 t1 = this._table; | |
4696 if (i < 0 || i >= t1.length) | |
4697 throw H.ioore(t1, i); | |
4698 action.call$1(t1[i]); | |
4699 if (modificationCount !== this._modificationCount) | |
4700 H.throwExpression(P.ConcurrentModificationError$(this)); | |
4701 } | |
4702 }, | |
4703 get$length: function(_) { | |
4704 return (this._tail - this._head & this._table.length - 1) >>> 0; | |
4705 }, | |
4706 toString$0: function(_) { | |
4707 return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); | |
4708 }, | |
4709 removeFirst$0: function() { | |
4710 var t1, t2, t3, result; | |
4711 if (this._head === this._tail) | |
4712 throw H.wrapException(P.StateError$("No elements")); | |
4713 this._modificationCount = this._modificationCount + 1; | |
4714 t1 = this._table; | |
4715 t2 = this._head; | |
4716 t3 = t1.length; | |
4717 if (t2 < 0 || t2 >= t3) | |
4718 throw H.ioore(t1, t2); | |
4719 result = t1[t2]; | |
4720 this._head = (t2 + 1 & t3 - 1) >>> 0; | |
4721 return result; | |
4722 }, | |
4723 _add$1: function(element) { | |
4724 var t1, t2, t3; | |
4725 t1 = this._table; | |
4726 t2 = this._tail; | |
4727 t3 = t1.length; | |
4728 if (t2 < 0 || t2 >= t3) | |
4729 throw H.ioore(t1, t2); | |
4730 t1[t2] = element; | |
4731 this._tail = (t2 + 1 & t3 - 1) >>> 0; | |
4732 if (this._head === this._tail) | |
4733 this._grow$0(); | |
4734 this._modificationCount = this._modificationCount + 1; | |
4735 }, | |
4736 _grow$0: function() { | |
4737 var newTable, t1, t2, split; | |
4738 newTable = P.List_List(this._table.length * 2, H.getRuntimeTypeArgument(this
, "ListQueue", 0)); | |
4739 H.setRuntimeTypeInfo(newTable, [H.getRuntimeTypeArgument(this, "ListQueue",
0)]); | |
4740 t1 = this._table; | |
4741 t2 = this._head; | |
4742 split = t1.length - t2; | |
4743 H.IterableMixinWorkaround_setRangeList(newTable, 0, split, t1, t2); | |
4744 t1 = this._head; | |
4745 t2 = this._table; | |
4746 H.IterableMixinWorkaround_setRangeList(newTable, split, split + t1, t2, 0); | |
4747 this._head = 0; | |
4748 this._tail = this._table.length; | |
4749 this._table = newTable; | |
4750 }, | |
4751 ListQueue$1: function(initialCapacity, $E) { | |
4752 var t1 = P.List_List(8, $E); | |
4753 H.setRuntimeTypeInfo(t1, [$E]); | |
4754 this._table = t1; | |
4755 }, | |
4756 $asIterableBase: null, | |
4757 $isEfficientLength: true, | |
4758 static: { | |
4759 "": "ListQueue__INITIAL_CAPACITY", | |
4760 ListQueue$: function(initialCapacity, $E) { | |
4761 var t1 = new P.ListQueue(null, 0, 0, 0); | |
4762 H.setRuntimeTypeInfo(t1, [$E]); | |
4763 t1.ListQueue$1(initialCapacity, $E); | |
4764 return t1; | |
4765 }} | |
4766 | |
4767 }, | |
4768 | |
4769 _ListQueueIterator: {"": "Object;_queue,_end,_modificationCount,_position,_colle
ction$_current", | |
4770 get$current: function() { | |
4771 return this._collection$_current; | |
4772 }, | |
4773 moveNext$0: function() { | |
4774 var t1, t2, t3; | |
4775 t1 = this._queue; | |
4776 if (this._modificationCount !== t1._modificationCount) | |
4777 H.throwExpression(P.ConcurrentModificationError$(t1)); | |
4778 t2 = this._position; | |
4779 if (t2 === this._end) { | |
4780 this._collection$_current = null; | |
4781 return false; | |
4782 } | |
4783 t3 = t1._table; | |
4784 if (t2 < 0 || t2 >= t3.length) | |
4785 throw H.ioore(t3, t2); | |
4786 this._collection$_current = t3[t2]; | |
4787 this._position = (this._position + 1 & t1._table.length - 1) >>> 0; | |
4788 return true; | |
4789 }, | |
4790 static: { | |
4791 _ListQueueIterator$: function(queue) { | |
4792 return new P._ListQueueIterator(queue, queue._tail, queue._modificationCount,
queue._head, null); | |
4793 }} | |
4794 | |
4795 }}], | |
4796 ["dart.core", "dart:core", , P, { | |
4797 _symbolToString: function(symbol) { | |
4798 return H.Symbol_getName(symbol); | |
4799 }, | |
4800 | |
4801 Error_safeToString: function(object) { | |
4802 var buffer, t1, i, codeUnit, t2, charCodes; | |
4803 if (typeof object === "number" && Math.floor(object) === object || typeof obje
ct === "number" || typeof object === "boolean" || null == object) | |
4804 return J.toString$0(object); | |
4805 if (typeof object === "string") { | |
4806 buffer = new P.StringBuffer(""); | |
4807 buffer._contents = "\""; | |
4808 for (t1 = object.length, i = 0; i < t1; ++i) { | |
4809 codeUnit = C.JSString_methods.codeUnitAt$1(object, i); | |
4810 if (codeUnit <= 31) | |
4811 if (codeUnit === 10) | |
4812 buffer._contents = buffer._contents + "\\n"; | |
4813 else if (codeUnit === 13) | |
4814 buffer._contents = buffer._contents + "\\r"; | |
4815 else if (codeUnit === 9) | |
4816 buffer._contents = buffer._contents + "\\t"; | |
4817 else { | |
4818 buffer._contents = buffer._contents + "\\x"; | |
4819 if (codeUnit < 16) | |
4820 buffer._contents = buffer._contents + "0"; | |
4821 else { | |
4822 buffer._contents = buffer._contents + "1"; | |
4823 codeUnit -= 16; | |
4824 } | |
4825 t2 = codeUnit < 10 ? 48 + codeUnit : 87 + codeUnit; | |
4826 charCodes = P.List_List$filled(1, t2, J.JSInt); | |
4827 charCodes.$builtinTypeInfo = [J.JSInt]; | |
4828 t2 = H.Primitives_stringFromCharCodes(charCodes); | |
4829 buffer._contents = buffer._contents + t2; | |
4830 } | |
4831 else if (codeUnit === 92) | |
4832 buffer._contents = buffer._contents + "\\\\"; | |
4833 else if (codeUnit === 34) | |
4834 buffer._contents = buffer._contents + "\\\""; | |
4835 else { | |
4836 charCodes = P.List_List$filled(1, codeUnit, J.JSInt); | |
4837 charCodes.$builtinTypeInfo = [J.JSInt]; | |
4838 t2 = H.Primitives_stringFromCharCodes(charCodes); | |
4839 buffer._contents = buffer._contents + t2; | |
4840 } | |
4841 } | |
4842 buffer._contents = buffer._contents + "\""; | |
4843 return buffer._contents; | |
4844 } | |
4845 return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; | |
4846 }, | |
4847 | |
4848 Exception_Exception: function(message) { | |
4849 return new P._ExceptionImplementation(message); | |
4850 }, | |
4851 | |
4852 identical: function(a, b) { | |
4853 return a == null ? b == null : a === b; | |
4854 }, | |
4855 | |
4856 identityHashCode: function(object) { | |
4857 return H.objectHashCode(object); | |
4858 }, | |
4859 | |
4860 List_List: function($length, $E) { | |
4861 if ($length == null) | |
4862 return new Array(0); | |
4863 if (typeof $length !== "number" || Math.floor($length) !== $length || $length
< 0) | |
4864 throw H.wrapException(new P.ArgumentError("Length must be a positive integer
: " + H.S($length) + ".")); | |
4865 return H.Primitives_newFixedList($length); | |
4866 }, | |
4867 | |
4868 List_List$filled: function($length, fill, $E) { | |
4869 var result, t1, i; | |
4870 if ($length < 0) | |
4871 throw H.wrapException(new P.ArgumentError("Length must be a positive integer
: " + $length + ".")); | |
4872 result = H.Primitives_newFixedList($length); | |
4873 if ($length !== 0 && true) | |
4874 for (t1 = result.length, i = 0; i < t1; ++i) | |
4875 result[i] = fill; | |
4876 return result; | |
4877 }, | |
4878 | |
4879 List_List$from: function(other, growable, $E) { | |
4880 var list, t1, $length, fixedList, t2, i, t3; | |
4881 list = P.List_List(null, $E); | |
4882 H.setRuntimeTypeInfo(list, [$E]); | |
4883 for (t1 = J.get$iterator$ax(other); t1.moveNext$0();) | |
4884 list.push(t1.get$current()); | |
4885 if (growable) | |
4886 return list; | |
4887 $length = list.length; | |
4888 fixedList = P.List_List($length, $E); | |
4889 H.setRuntimeTypeInfo(fixedList, [$E]); | |
4890 for (t1 = list.length, t2 = fixedList.length, i = 0; i < $length; ++i) { | |
4891 if (i >= t1) | |
4892 throw H.ioore(list, i); | |
4893 t3 = list[i]; | |
4894 if (i >= t2) | |
4895 throw H.ioore(fixedList, i); | |
4896 fixedList[i] = t3; | |
4897 } | |
4898 return fixedList; | |
4899 }, | |
4900 | |
4901 print: function(object) { | |
4902 var line = J.toString$0(object); | |
4903 H.printToConsole(line); | |
4904 }, | |
4905 | |
4906 NoSuchMethodError_toString_closure: {"": "Closure;box_0", | |
4907 call$2: function(key, value) { | |
4908 var t1 = this.box_0; | |
4909 if (t1.i_1 > 0) | |
4910 t1.sb_0.write$1(", "); | |
4911 t1.sb_0.write$1(P._symbolToString(key)); | |
4912 }, | |
4913 $is_args2: true | |
4914 }, | |
4915 | |
4916 Duration: {"": "Object;_duration", | |
4917 $lt: function(_, other) { | |
4918 return C.JSNumber_methods.$lt(this._duration, other.get$_duration()); | |
4919 }, | |
4920 $gt: function(_, other) { | |
4921 return C.JSNumber_methods.$gt(this._duration, other.get$_duration()); | |
4922 }, | |
4923 $ge: function(_, other) { | |
4924 return C.JSNumber_methods.$ge(this._duration, other.get$_duration()); | |
4925 }, | |
4926 $eq: function(_, other) { | |
4927 var t1; | |
4928 if (other == null) | |
4929 return false; | |
4930 t1 = J.getInterceptor(other); | |
4931 if (typeof other !== "object" || other === null || !t1.$isDuration) | |
4932 return false; | |
4933 return this._duration === other._duration; | |
4934 }, | |
4935 get$hashCode: function(_) { | |
4936 return this._duration & 0x1FFFFFFF; | |
4937 }, | |
4938 toString$0: function(_) { | |
4939 var t1, t2, twoDigitMinutes, twoDigitSeconds, sixDigitUs; | |
4940 t1 = new P.Duration_toString_twoDigits(); | |
4941 t2 = this._duration; | |
4942 if (t2 < 0) | |
4943 return "-" + H.S(P.Duration$(0, 0, -t2, 0, 0, 0)); | |
4944 twoDigitMinutes = t1.call$1(C.JSNumber_methods.remainder$1(C.JSNumber_method
s.$tdiv(t2, 60000000), 60)); | |
4945 twoDigitSeconds = t1.call$1(C.JSNumber_methods.remainder$1(C.JSNumber_method
s.$tdiv(t2, 1000000), 60)); | |
4946 sixDigitUs = new P.Duration_toString_sixDigits().call$1(C.JSNumber_methods.r
emainder$1(t2, 1000000)); | |
4947 return H.S(C.JSNumber_methods.$tdiv(t2, 3600000000)) + ":" + H.S(twoDigitMin
utes) + ":" + H.S(twoDigitSeconds) + "." + H.S(sixDigitUs); | |
4948 }, | |
4949 $isDuration: true, | |
4950 static: { | |
4951 "": "Duration_MICROSECONDS_PER_MILLISECOND,Duration_MILLISECONDS_PER_SECOND,Dura
tion_SECONDS_PER_MINUTE,Duration_MINUTES_PER_HOUR,Duration_HOURS_PER_DAY,Duratio
n_MICROSECONDS_PER_SECOND,Duration_MICROSECONDS_PER_MINUTE,Duration_MICROSECONDS
_PER_HOUR,Duration_MICROSECONDS_PER_DAY,Duration_MILLISECONDS_PER_MINUTE,Duratio
n_MILLISECONDS_PER_HOUR,Duration_MILLISECONDS_PER_DAY,Duration_SECONDS_PER_HOUR,
Duration_SECONDS_PER_DAY,Duration_MINUTES_PER_DAY,Duration_ZERO", | |
4952 Duration$: function(days, hours, microseconds, milliseconds, minutes, seconds) { | |
4953 return new P.Duration(days * 86400000000 + hours * 3600000000 + minutes * 6000
0000 + seconds * 1000000 + milliseconds * 1000 + microseconds); | |
4954 }} | |
4955 | |
4956 }, | |
4957 | |
4958 Duration_toString_sixDigits: {"": "Closure;", | |
4959 call$1: function(n) { | |
4960 var t1 = J.getInterceptor$n(n); | |
4961 if (t1.$ge(n, 100000)) | |
4962 return H.S(n); | |
4963 if (t1.$ge(n, 10000)) | |
4964 return "0" + H.S(n); | |
4965 if (t1.$ge(n, 1000)) | |
4966 return "00" + H.S(n); | |
4967 if (t1.$ge(n, 100)) | |
4968 return "000" + H.S(n); | |
4969 if (t1.$gt(n, 10)) | |
4970 return "0000" + H.S(n); | |
4971 return "00000" + H.S(n); | |
4972 }, | |
4973 $is_args1: true | |
4974 }, | |
4975 | |
4976 Duration_toString_twoDigits: {"": "Closure;", | |
4977 call$1: function(n) { | |
4978 if (J.$ge$n(n, 10)) | |
4979 return H.S(n); | |
4980 return "0" + H.S(n); | |
4981 }, | |
4982 $is_args1: true | |
4983 }, | |
4984 | |
4985 Error: {"": "Object;", | |
4986 get$stackTrace: function() { | |
4987 return new H._StackTrace(this.$thrownJsError, null); | |
4988 }, | |
4989 $isError: true | |
4990 }, | |
4991 | |
4992 NullThrownError: {"": "Error;", | |
4993 toString$0: function(_) { | |
4994 return "Throw of null."; | |
4995 } | |
4996 }, | |
4997 | |
4998 ArgumentError: {"": "Error;message", | |
4999 toString$0: function(_) { | |
5000 var t1 = this.message; | |
5001 if (t1 != null) | |
5002 return "Illegal argument(s): " + H.S(t1); | |
5003 return "Illegal argument(s)"; | |
5004 }, | |
5005 static: { | |
5006 ArgumentError$: function(message) { | |
5007 return new P.ArgumentError(message); | |
5008 }} | |
5009 | |
5010 }, | |
5011 | |
5012 RangeError: {"": "ArgumentError;message", | |
5013 toString$0: function(_) { | |
5014 return "RangeError: " + H.S(this.message); | |
5015 }, | |
5016 static: { | |
5017 RangeError$value: function(value) { | |
5018 return new P.RangeError("value " + H.S(value)); | |
5019 }, | |
5020 | |
5021 RangeError$range: function(value, start, end) { | |
5022 return new P.RangeError("value " + H.S(value) + " not in range " + start + "..
" + H.S(end)); | |
5023 }} | |
5024 | |
5025 }, | |
5026 | |
5027 UnsupportedError: {"": "Error;message", | |
5028 toString$0: function(_) { | |
5029 return "Unsupported operation: " + this.message; | |
5030 }, | |
5031 static: { | |
5032 UnsupportedError$: function(message) { | |
5033 return new P.UnsupportedError(message); | |
5034 }} | |
5035 | |
5036 }, | |
5037 | |
5038 StateError: {"": "Error;message", | |
5039 toString$0: function(_) { | |
5040 return "Bad state: " + this.message; | |
5041 }, | |
5042 static: { | |
5043 StateError$: function(message) { | |
5044 return new P.StateError(message); | |
5045 }} | |
5046 | |
5047 }, | |
5048 | |
5049 ConcurrentModificationError: {"": "Error;modifiedObject", | |
5050 toString$0: function(_) { | |
5051 var t1 = this.modifiedObject; | |
5052 if (t1 == null) | |
5053 return "Concurrent modification during iteration."; | |
5054 return "Concurrent modification during iteration: " + P.Error_safeToString(t
1) + "."; | |
5055 }, | |
5056 static: { | |
5057 ConcurrentModificationError$: function(modifiedObject) { | |
5058 return new P.ConcurrentModificationError(modifiedObject); | |
5059 }} | |
5060 | |
5061 }, | |
5062 | |
5063 StackOverflowError: {"": "Object;", | |
5064 toString$0: function(_) { | |
5065 return "Stack Overflow"; | |
5066 }, | |
5067 get$stackTrace: function() { | |
5068 return; | |
5069 }, | |
5070 $isError: true | |
5071 }, | |
5072 | |
5073 CyclicInitializationError: {"": "Error;variableName", | |
5074 toString$0: function(_) { | |
5075 return "Reading static variable '" + this.variableName + "' during its initi
alization"; | |
5076 }, | |
5077 static: { | |
5078 CyclicInitializationError$: function(variableName) { | |
5079 return new P.CyclicInitializationError(variableName); | |
5080 }} | |
5081 | |
5082 }, | |
5083 | |
5084 _ExceptionImplementation: {"": "Object;message", | |
5085 toString$0: function(_) { | |
5086 var t1 = this.message; | |
5087 if (t1 == null) | |
5088 return "Exception"; | |
5089 return "Exception: " + H.S(t1); | |
5090 } | |
5091 }, | |
5092 | |
5093 Expando: {"": "Object;name", | |
5094 toString$0: function(_) { | |
5095 return "Expando:" + this.name; | |
5096 }, | |
5097 $index: function(_, object) { | |
5098 var values = H.Primitives_getProperty(object, "expando$values"); | |
5099 return values == null ? null : H.Primitives_getProperty(values, this._getKey
$0()); | |
5100 }, | |
5101 $indexSet: function(_, object, value) { | |
5102 var values = H.Primitives_getProperty(object, "expando$values"); | |
5103 if (values == null) { | |
5104 values = new P.Object(); | |
5105 H.Primitives_setProperty(object, "expando$values", values); | |
5106 } | |
5107 H.Primitives_setProperty(values, this._getKey$0(), value); | |
5108 }, | |
5109 _getKey$0: function() { | |
5110 var key, t1; | |
5111 key = H.Primitives_getProperty(this, "expando$key"); | |
5112 if (key == null) { | |
5113 t1 = $.Expando__keyCount; | |
5114 $.Expando__keyCount = t1 + 1; | |
5115 key = "expando$key$" + t1; | |
5116 H.Primitives_setProperty(this, "expando$key", key); | |
5117 } | |
5118 return key; | |
5119 }, | |
5120 static: { | |
5121 "": "Expando__KEY_PROPERTY_NAME,Expando__EXPANDO_PROPERTY_NAME,Expando__keyCount
", | |
5122 } | |
5123 | |
5124 }, | |
5125 | |
5126 Function: {"": "Object;"}, | |
5127 | |
5128 Iterator: {"": "Object;"}, | |
5129 | |
5130 Null: {"": "Object;", | |
5131 toString$0: function(_) { | |
5132 return "null"; | |
5133 } | |
5134 }, | |
5135 | |
5136 Object: {"": ";", | |
5137 $eq: function(_, other) { | |
5138 return this === other; | |
5139 }, | |
5140 get$hashCode: function(_) { | |
5141 return H.Primitives_objectHashCode(this); | |
5142 }, | |
5143 toString$0: function(_) { | |
5144 return H.Primitives_objectToString(this); | |
5145 } | |
5146 }, | |
5147 | |
5148 StackTrace: {"": "Object;"}, | |
5149 | |
5150 StringBuffer: {"": "Object;_contents<", | |
5151 get$length: function(_) { | |
5152 return this._contents.length; | |
5153 }, | |
5154 write$1: function(obj) { | |
5155 var str = typeof obj === "string" ? obj : H.S(obj); | |
5156 this._contents = this._contents + str; | |
5157 }, | |
5158 writeAll$2: function(objects, separator) { | |
5159 var iterator, str; | |
5160 iterator = J.get$iterator$ax(objects); | |
5161 if (!iterator.moveNext$0()) | |
5162 return; | |
5163 if (separator.length === 0) | |
5164 do { | |
5165 str = iterator.get$current(); | |
5166 str = typeof str === "string" ? str : H.S(str); | |
5167 this._contents = this._contents + str; | |
5168 } while (iterator.moveNext$0()); | |
5169 else { | |
5170 this.write$1(iterator.get$current()); | |
5171 for (; iterator.moveNext$0();) { | |
5172 this._contents = this._contents + separator; | |
5173 str = iterator.get$current(); | |
5174 str = typeof str === "string" ? str : H.S(str); | |
5175 this._contents = this._contents + str; | |
5176 } | |
5177 } | |
5178 }, | |
5179 toString$0: function(_) { | |
5180 return this._contents; | |
5181 }, | |
5182 StringBuffer$1: function($content) { | |
5183 this._contents = $content; | |
5184 }, | |
5185 static: { | |
5186 StringBuffer$: function($content) { | |
5187 var t1 = new P.StringBuffer(""); | |
5188 t1.StringBuffer$1($content); | |
5189 return t1; | |
5190 }} | |
5191 | |
5192 }, | |
5193 | |
5194 Symbol: {"": "Object;"}}], | |
5195 ["dart.dom.html", "dart:html", , W, { | |
5196 _convertNativeToDart_EventTarget: function(e) { | |
5197 var $window, t1; | |
5198 if (e == null) | |
5199 return; | |
5200 if ("setInterval" in e) { | |
5201 $window = W._DOMWindowCrossFrame__createSafe(e); | |
5202 t1 = J.getInterceptor($window); | |
5203 if (typeof $window === "object" && $window !== null && !!t1.$isEventTarget) | |
5204 return $window; | |
5205 return; | |
5206 } else | |
5207 return e; | |
5208 }, | |
5209 | |
5210 _wrapZone: function(callback) { | |
5211 var t1 = $.Zone__current; | |
5212 if (t1 === C.C__RootZone) | |
5213 return callback; | |
5214 return t1.bindUnaryCallback$2$runGuarded(callback, true); | |
5215 }, | |
5216 | |
5217 _EventStream: {"": "Stream;", | |
5218 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | |
5219 var t1 = new W._EventStreamSubscription(0, this._target, this._eventType, W.
_wrapZone(onData), this._useCapture); | |
5220 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_EventStream", 0)]
); | |
5221 t1._tryResume$0(); | |
5222 return t1; | |
5223 }, | |
5224 $asStream: null | |
5225 }, | |
5226 | |
5227 _ElementEventStreamImpl: {"": "_EventStream;_target,_eventType,_useCapture", $as
_EventStream: null}, | |
5228 | |
5229 _EventStreamSubscription: {"": "StreamSubscription;_pauseCount,_target,_eventTyp
e,_onData,_useCapture", | |
5230 cancel$0: function() { | |
5231 if (this._target == null) | |
5232 return; | |
5233 this._unlisten$0(); | |
5234 this._target = null; | |
5235 this._onData = null; | |
5236 }, | |
5237 _tryResume$0: function() { | |
5238 var t1 = this._onData; | |
5239 if (t1 != null && this._pauseCount <= 0) | |
5240 J.addEventListener$3$x(this._target, this._eventType, t1, this._useCapture
); | |
5241 }, | |
5242 _unlisten$0: function() { | |
5243 var t1 = this._onData; | |
5244 if (t1 != null) | |
5245 J.removeEventListener$3$x(this._target, this._eventType, t1, this._useCapt
ure); | |
5246 }, | |
5247 $asStreamSubscription: null | |
5248 }, | |
5249 | |
5250 EventStreamProvider: {"": "Object;_eventType"}, | |
5251 | |
5252 _DOMWindowCrossFrame: {"": "Object;_window", $isEventTarget: true, static: { | |
5253 _DOMWindowCrossFrame__createSafe: function(w) { | |
5254 if (w === window) | |
5255 return w; | |
5256 else | |
5257 return new W._DOMWindowCrossFrame(w); | |
5258 }} | |
5259 }, | |
5260 | |
5261 HtmlElement: {"": "Element;", "%": "HTMLAppletElement|HTMLBRElement|HTMLBaseFont
Element|HTMLBodyElement|HTMLCanvasElement|HTMLContentElement|HTMLDListElement|HT
MLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirectoryElement|HTML
DivElement|HTMLEmbedElement|HTMLFontElement|HTMLFrameElement|HTMLFrameSetElement
|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElem
ent|HTMLImageElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLMapEle
ment|HTMLMarqueeElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLMod
Element|HTMLOListElement|HTMLObjectElement|HTMLOutputElement|HTMLParagraphElemen
t|HTMLParamElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLScrip
tElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLTableCaptionEle
ment|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTable
Element|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|H
TMLTemplateElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknow
nElement;HTMLElement"}, | |
5262 | |
5263 AnchorElement: {"": "HtmlElement;target=", | |
5264 toString$0: function(receiver) { | |
5265 return receiver.toString(); | |
5266 }, | |
5267 "%": "HTMLAnchorElement" | |
5268 }, | |
5269 | |
5270 AreaElement: {"": "HtmlElement;target=", "%": "HTMLAreaElement"}, | |
5271 | |
5272 BaseElement: {"": "HtmlElement;target=", "%": "HTMLBaseElement"}, | |
5273 | |
5274 ButtonElement: {"": "HtmlElement;disabled}", "%": "HTMLButtonElement"}, | |
5275 | |
5276 CharacterData: {"": "Node;length=", "%": "CDATASection|Comment|Text;CharacterDat
a"}, | |
5277 | |
5278 DomException: {"": "Interceptor;", | |
5279 toString$0: function(receiver) { | |
5280 return receiver.toString(); | |
5281 }, | |
5282 "%": "DOMException" | |
5283 }, | |
5284 | |
5285 Element: {"": "Node;", | |
5286 toString$0: function(receiver) { | |
5287 return receiver.localName; | |
5288 }, | |
5289 "%": ";Element" | |
5290 }, | |
5291 | |
5292 ErrorEvent: {"": "Event;error=", "%": "ErrorEvent"}, | |
5293 | |
5294 Event: {"": "Interceptor;", | |
5295 get$target: function(receiver) { | |
5296 return W._convertNativeToDart_EventTarget(receiver.target); | |
5297 }, | |
5298 "%": "AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEvent|BeforeUnload
Event|CSSFontFaceLoadEvent|CloseEvent|CustomEvent|DeviceMotionEvent|DeviceOrient
ationEvent|HashChangeEvent|IDBVersionChangeEvent|MIDIConnectionEvent|MIDIMessage
Event|MediaKeyEvent|MediaKeyMessageEvent|MediaKeyNeededEvent|MediaStreamEvent|Me
diaStreamTrackEvent|MessageEvent|MutationEvent|OfflineAudioCompletionEvent|Overf
lowEvent|PageTransitionEvent|PopStateEvent|ProgressEvent|RTCDTMFToneChangeEvent|
RTCDataChannelEvent|RTCIceCandidateEvent|ResourceProgressEvent|SecurityPolicyVio
lationEvent|SpeechInputEvent|SpeechRecognitionEvent|SpeechSynthesisEvent|Storage
Event|TrackEvent|TransitionEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTr
ansitionEvent|XMLHttpRequestProgressEvent;Event" | |
5299 }, | |
5300 | |
5301 EventTarget: {"": "Interceptor;", | |
5302 addEventListener$3: function(receiver, type, listener, useCapture) { | |
5303 return receiver.addEventListener(type, H.convertDartClosureToJS(listener, 1)
, useCapture); | |
5304 }, | |
5305 removeEventListener$3: function(receiver, type, listener, useCapture) { | |
5306 return receiver.removeEventListener(type, H.convertDartClosureToJS(listener,
1), useCapture); | |
5307 }, | |
5308 $isEventTarget: true, | |
5309 "%": "MediaStream;EventTarget" | |
5310 }, | |
5311 | |
5312 FieldSetElement: {"": "HtmlElement;disabled}", "%": "HTMLFieldSetElement"}, | |
5313 | |
5314 FormElement: {"": "HtmlElement;length=,target=", "%": "HTMLFormElement"}, | |
5315 | |
5316 InputElement: {"": "HtmlElement;disabled}", $isInputElement: true, $isEventTarge
t: true, "%": "HTMLInputElement"}, | |
5317 | |
5318 KeygenElement: {"": "HtmlElement;disabled}", "%": "HTMLKeygenElement"}, | |
5319 | |
5320 LinkElement: {"": "HtmlElement;disabled}", "%": "HTMLLinkElement"}, | |
5321 | |
5322 MediaElement: {"": "HtmlElement;error=", "%": "HTMLAudioElement|HTMLMediaElement
|HTMLVideoElement"}, | |
5323 | |
5324 MouseEvent: {"": "UIEvent;", "%": "DragEvent|MSPointerEvent|MouseEvent|MouseScro
llEvent|MouseWheelEvent|PointerEvent|WheelEvent"}, | |
5325 | |
5326 Node: {"": "EventTarget;", | |
5327 toString$0: function(receiver) { | |
5328 var t1 = receiver.nodeValue; | |
5329 return t1 == null ? J.Interceptor.prototype.toString$0.call(this, receiver)
: t1; | |
5330 }, | |
5331 "%": "Attr|Document|DocumentFragment|DocumentType|Entity|HTMLDocument|Notation
|SVGDocument|ShadowRoot;Node" | |
5332 }, | |
5333 | |
5334 OptGroupElement: {"": "HtmlElement;disabled}", "%": "HTMLOptGroupElement"}, | |
5335 | |
5336 OptionElement: {"": "HtmlElement;disabled}", "%": "HTMLOptionElement"}, | |
5337 | |
5338 ProcessingInstruction: {"": "CharacterData;target=", "%": "ProcessingInstruction
"}, | |
5339 | |
5340 SelectElement: {"": "HtmlElement;disabled},length=", "%": "HTMLSelectElement"}, | |
5341 | |
5342 SpeechRecognitionError: {"": "Event;error=", "%": "SpeechRecognitionError"}, | |
5343 | |
5344 StyleElement: {"": "HtmlElement;disabled}", "%": "HTMLStyleElement"}, | |
5345 | |
5346 TextAreaElement: {"": "HtmlElement;disabled}", "%": "HTMLTextAreaElement"}, | |
5347 | |
5348 UIEvent: {"": "Event;", "%": "CompositionEvent|FocusEvent|KeyboardEvent|SVGZoomE
vent|TextEvent|TouchEvent;UIEvent"}, | |
5349 | |
5350 Window: {"": "EventTarget;", | |
5351 toString$0: function(receiver) { | |
5352 return receiver.toString(); | |
5353 }, | |
5354 $isEventTarget: true, | |
5355 "%": "DOMWindow|Window" | |
5356 }}], | |
5357 ["dart.dom.svg", "dart:svg", , P, { | |
5358 AElement: {"": "GraphicsElement;target=", "%": "SVGAElement"}, | |
5359 | |
5360 GraphicsElement: {"": "SvgElement;", "%": "SVGAltGlyphElement|SVGCircleElement|S
VGClipPathElement|SVGDefsElement|SVGEllipseElement|SVGForeignObjectElement|SVGGE
lement|SVGImageElement|SVGLineElement|SVGPathElement|SVGPolygonElement|SVGPolyli
neElement|SVGRectElement|SVGSVGElement|SVGSwitchElement|SVGTSpanElement|SVGTextC
ontentElement|SVGTextElement|SVGTextPathElement|SVGTextPositioningElement|SVGUse
Element;SVGGraphicsElement"}, | |
5361 | |
5362 StyleElement0: {"": "SvgElement;disabled}", "%": "SVGStyleElement"}, | |
5363 | |
5364 SvgElement: {"": "Element;", "%": "SVGAltGlyphDefElement|SVGAltGlyphItemElement|
SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnimateTrans
formElement|SVGAnimationElement|SVGComponentTransferFunctionElement|SVGCursorEle
ment|SVGDescElement|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponentTran
sferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLightin
gElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShadowEle
ment|SVGFEFloodElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement|SVG
FEFuncRElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|SVGF
EMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightEleme
nt|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFETurb
ulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFaceForm
atElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement|SVG
GlyphElement|SVGGlyphRefElement|SVGGradientElement|SVGHKernElement|SVGLinearGrad
ientElement|SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMetadataElement|S
VGMissingGlyphElement|SVGPatternElement|SVGRadialGradientElement|SVGScriptElemen
t|SVGSetElement|SVGStopElement|SVGSymbolElement|SVGTitleElement|SVGVKernElement|
SVGViewElement;SVGElement"}}], | |
5365 ["dart.isolate", "dart:isolate", , P, { | |
5366 ReceivePort: {"": "Object;"}}], | |
5367 ["dart.typed_data", "dart:typed_data", , P, { | |
5368 TypedData_ListMixin: {"": "TypedData+ListMixin;", $isList: true, $asList: null,
$isEfficientLength: true}, | |
5369 | |
5370 TypedData_ListMixin_FixedLengthListMixin: {"": "TypedData_ListMixin+FixedLengthL
istMixin;", $asList: null}, | |
5371 | |
5372 TypedData: {"": "Interceptor;", | |
5373 _invalidIndex$2: function(receiver, index, $length) { | |
5374 var t1 = J.getInterceptor$n(index); | |
5375 if (t1.$lt(index, 0) || t1.$ge(index, $length)) | |
5376 throw H.wrapException(P.RangeError$range(index, 0, $length)); | |
5377 else | |
5378 throw H.wrapException(new P.ArgumentError("Invalid list index " + H.S(inde
x))); | |
5379 }, | |
5380 "%": ";ArrayBufferView;TypedData_ListMixin|TypedData_ListMixin_FixedLengthList
Mixin" | |
5381 }, | |
5382 | |
5383 Uint8List: {"": "TypedData_ListMixin_FixedLengthListMixin;", | |
5384 get$length: function(receiver) { | |
5385 return C.JS_CONST_ZYJ(receiver); | |
5386 }, | |
5387 $index: function(receiver, index) { | |
5388 var t1 = C.JS_CONST_ZYJ(receiver); | |
5389 if (index >>> 0 != index || J.$ge$n(index, t1)) | |
5390 this._invalidIndex$2(receiver, index, t1); | |
5391 return receiver[index]; | |
5392 }, | |
5393 $indexSet: function(receiver, index, value) { | |
5394 var t1 = C.JS_CONST_ZYJ(receiver); | |
5395 if (index >>> 0 != index || J.$ge$n(index, t1)) | |
5396 this._invalidIndex$2(receiver, index, t1); | |
5397 receiver[index] = value; | |
5398 }, | |
5399 $asList: function() { | |
5400 return [J.JSInt]; | |
5401 }, | |
5402 $isList: true, | |
5403 $isEfficientLength: true, | |
5404 $isJavaScriptIndexingBehavior: true, | |
5405 "%": ";Uint8Array" | |
5406 }}], | |
5407 ["", "piratebadge.dart", , A, { | |
5408 main: function() { | |
5409 var t1, t2; | |
5410 t1 = document.querySelector("#inputName"); | |
5411 t1.toString; | |
5412 t1 = new W._ElementEventStreamImpl(t1, C.EventStreamProvider_input._eventType,
false); | |
5413 H.setRuntimeTypeInfo(t1, [null]); | |
5414 t2 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._wrapZone(
A.updateBadge$closure), t1._useCapture); | |
5415 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]); | |
5416 t2._tryResume$0(); | |
5417 $.genButton = document.querySelector("#generateButton"); | |
5418 t2 = $.genButton; | |
5419 t2.toString; | |
5420 t2 = new W._ElementEventStreamImpl(t2, C.EventStreamProvider_click._eventType,
false); | |
5421 H.setRuntimeTypeInfo(t2, [null]); | |
5422 t1 = new W._EventStreamSubscription(0, t2._target, t2._eventType, W._wrapZone(
A.generateBadge$closure), t2._useCapture); | |
5423 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(t2, "_EventStream", 0)]); | |
5424 t1._tryResume$0(); | |
5425 }, | |
5426 | |
5427 updateBadge: function(e) { | |
5428 var inputName, t1, t2; | |
5429 inputName = H.interceptedTypeCast(J.get$target$x(e), "$isInputElement").value; | |
5430 document.querySelector("#badgeName").textContent = inputName; | |
5431 t1 = J.trim$0$s(inputName); | |
5432 t2 = $.genButton; | |
5433 if (t1.length === 0) { | |
5434 J.set$disabled$x(t2, false); | |
5435 t2.textContent = "Aye! Gimme a name!"; | |
5436 } else { | |
5437 J.set$disabled$x(t2, true); | |
5438 t2.textContent = "Arrr! Write yer name!"; | |
5439 } | |
5440 }, | |
5441 | |
5442 generateBadge: function(e) { | |
5443 document.querySelector("#badgeName").textContent = "Anne Bonney"; | |
5444 }}, | |
5445 1], | |
5446 ]); | |
5447 Isolate.$finishClasses($$, $, null); | |
5448 $$ = null; | |
5449 | |
5450 // Static function getters | |
5451 init.globalFunctions.IsolateNatives__processWorkerMessage$closure = H.IsolateNat
ives__processWorkerMessage$closure = new H.Closure$2(H.IsolateNatives__processWo
rkerMessage, "IsolateNatives__processWorkerMessage$closure"); | |
5452 init.globalFunctions.toStringWrapper$closure = H.toStringWrapper$closure = new H
.Closure$0(H.toStringWrapper, "toStringWrapper$closure"); | |
5453 init.globalFunctions.invokeClosure$closure = H.invokeClosure$closure = new H.Clo
sure$7(H.invokeClosure, "invokeClosure$closure"); | |
5454 init.globalFunctions.typeNameInChrome$closure = H.typeNameInChrome$closure = new
H.Closure$1(H.typeNameInChrome, "typeNameInChrome$closure"); | |
5455 init.globalFunctions.typeNameInSafari$closure = H.typeNameInSafari$closure = new
H.Closure$1(H.typeNameInSafari, "typeNameInSafari$closure"); | |
5456 init.globalFunctions.typeNameInOpera$closure = H.typeNameInOpera$closure = new H
.Closure$1(H.typeNameInOpera, "typeNameInOpera$closure"); | |
5457 init.globalFunctions.typeNameInFirefox$closure = H.typeNameInFirefox$closure = n
ew H.Closure$1(H.typeNameInFirefox, "typeNameInFirefox$closure"); | |
5458 init.globalFunctions.typeNameInIE$closure = H.typeNameInIE$closure = new H.Closu
re$1(H.typeNameInIE, "typeNameInIE$closure"); | |
5459 init.globalFunctions.constructorNameFallback$closure = H.constructorNameFallback
$closure = new H.Closure$1(H.constructorNameFallback, "constructorNameFallback$c
losure"); | |
5460 init.globalFunctions.callDartFunctionWith1Arg$closure = H.callDartFunctionWith1A
rg$closure = new H.Closure$2(H.callDartFunctionWith1Arg, "callDartFunctionWith1A
rg$closure"); | |
5461 init.globalFunctions._asyncRunCallback$closure = P._asyncRunCallback$closure = n
ew H.Closure$0(P._asyncRunCallback, "_asyncRunCallback$closure"); | |
5462 init.globalFunctions._nullDataHandler$closure = P._nullDataHandler$closure = new
H.Closure$1(P._nullDataHandler, "_nullDataHandler$closure"); | |
5463 init.globalFunctions._nullErrorHandler$closure = P._nullErrorHandler$closure = n
ew P.Closure$21(P._nullErrorHandler, "_nullErrorHandler$closure"); | |
5464 init.globalFunctions._nullDoneHandler$closure = P._nullDoneHandler$closure = new
H.Closure$0(P._nullDoneHandler, "_nullDoneHandler$closure"); | |
5465 init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new H.C
losure$2(P._defaultEquals, "_defaultEquals$closure"); | |
5466 init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new
H.Closure$1(P._defaultHashCode, "_defaultHashCode$closure"); | |
5467 init.globalFunctions.identical$closure = P.identical$closure = new H.Closure$2(P
.identical, "identical$closure"); | |
5468 init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new
H.Closure$1(P.identityHashCode, "identityHashCode$closure"); | |
5469 init.globalFunctions.main$closure = A.main$closure = new H.Closure$0(A.main, "ma
in$closure"); | |
5470 init.globalFunctions.updateBadge$closure = A.updateBadge$closure = new H.Closure
$1(A.updateBadge, "updateBadge$closure"); | |
5471 init.globalFunctions.generateBadge$closure = A.generateBadge$closure = new H.Clo
sure$1(A.generateBadge, "generateBadge$closure"); | |
5472 // Runtime type support | |
5473 J.JSInt.$isint = true; | |
5474 J.JSInt.$isObject = true; | |
5475 J.JSString.$isString = true; | |
5476 J.JSString.$isObject = true; | |
5477 J.JSNumber.$isObject = true; | |
5478 P.Duration.$isObject = true; | |
5479 W.Event.$isEvent = true; | |
5480 W.Event.$isObject = true; | |
5481 W.MouseEvent.$isEvent = true; | |
5482 W.MouseEvent.$isObject = true; | |
5483 P.ReceivePort.$isObject = true; | |
5484 H._IsolateEvent.$isObject = true; | |
5485 H._IsolateContext.$isObject = true; | |
5486 J.JSArray.$isObject = true; | |
5487 P.Symbol.$isSymbol = true; | |
5488 P.Symbol.$isObject = true; | |
5489 P.StackTrace.$isStackTrace = true; | |
5490 P.StackTrace.$isObject = true; | |
5491 P.Object.$isObject = true; | |
5492 P.Function.$isFunction = true; | |
5493 P.Function.$isObject = true; | |
5494 J.JSBool.$isbool = true; | |
5495 J.JSBool.$isObject = true; | |
5496 P._EventSink.$is_EventSink = true; | |
5497 P._EventSink.$isObject = true; | |
5498 P.Future.$isFuture = true; | |
5499 P.Future.$isObject = true; | |
5500 P.StreamSubscription.$isStreamSubscription = true; | |
5501 P.StreamSubscription.$isObject = true; | |
5502 // getInterceptor methods | |
5503 J.getInterceptor = function(receiver) { | |
5504 if (typeof receiver == "number") { | |
5505 if (Math.floor(receiver) == receiver) | |
5506 return J.JSInt.prototype; | |
5507 return J.JSDouble.prototype; | |
5508 } | |
5509 if (typeof receiver == "string") | |
5510 return J.JSString.prototype; | |
5511 if (receiver == null) | |
5512 return J.JSNull.prototype; | |
5513 if (typeof receiver == "boolean") | |
5514 return J.JSBool.prototype; | |
5515 if (receiver.constructor == Array) | |
5516 return J.JSArray.prototype; | |
5517 if (typeof receiver != "object") | |
5518 return receiver; | |
5519 if (receiver instanceof P.Object) | |
5520 return receiver; | |
5521 return J.getNativeInterceptor(receiver); | |
5522 }; | |
5523 J.getInterceptor$asx = function(receiver) { | |
5524 if (typeof receiver == "string") | |
5525 return J.JSString.prototype; | |
5526 if (receiver == null) | |
5527 return receiver; | |
5528 if (receiver.constructor == Array) | |
5529 return J.JSArray.prototype; | |
5530 if (typeof receiver != "object") | |
5531 return receiver; | |
5532 if (receiver instanceof P.Object) | |
5533 return receiver; | |
5534 return J.getNativeInterceptor(receiver); | |
5535 }; | |
5536 J.getInterceptor$ax = function(receiver) { | |
5537 if (receiver == null) | |
5538 return receiver; | |
5539 if (receiver.constructor == Array) | |
5540 return J.JSArray.prototype; | |
5541 if (typeof receiver != "object") | |
5542 return receiver; | |
5543 if (receiver instanceof P.Object) | |
5544 return receiver; | |
5545 return J.getNativeInterceptor(receiver); | |
5546 }; | |
5547 J.getInterceptor$n = function(receiver) { | |
5548 if (typeof receiver == "number") | |
5549 return J.JSNumber.prototype; | |
5550 if (receiver == null) | |
5551 return receiver; | |
5552 if (!(receiver instanceof P.Object)) | |
5553 return J.UnknownJavaScriptObject.prototype; | |
5554 return receiver; | |
5555 }; | |
5556 J.getInterceptor$s = function(receiver) { | |
5557 if (typeof receiver == "string") | |
5558 return J.JSString.prototype; | |
5559 if (receiver == null) | |
5560 return receiver; | |
5561 if (!(receiver instanceof P.Object)) | |
5562 return J.UnknownJavaScriptObject.prototype; | |
5563 return receiver; | |
5564 }; | |
5565 J.getInterceptor$x = function(receiver) { | |
5566 if (receiver == null) | |
5567 return receiver; | |
5568 if (typeof receiver != "object") | |
5569 return receiver; | |
5570 if (receiver instanceof P.Object) | |
5571 return receiver; | |
5572 return J.getNativeInterceptor(receiver); | |
5573 }; | |
5574 C.C_UnknownJavaScriptObject = new J.UnknownJavaScriptObject(); | |
5575 C.C__DelayedDone = new P._DelayedDone(); | |
5576 C.C__RootZone = new P._RootZone(); | |
5577 C.Duration_0 = new P.Duration(0); | |
5578 C.EventStreamProvider_click = new W.EventStreamProvider("click"); | |
5579 C.EventStreamProvider_input = new W.EventStreamProvider("input"); | |
5580 C.JSArray_methods = J.JSArray.prototype; | |
5581 C.JSInt_methods = J.JSInt.prototype; | |
5582 C.JSNumber_methods = J.JSNumber.prototype; | |
5583 C.JSString_methods = J.JSString.prototype; | |
5584 C.JS_CONST_ZYJ = ((typeof version == "function" && typeof os == "object" &&
"system" in os) | |
5585 || (typeof navigator == "object" | |
5586 && navigator.userAgent.indexOf('Chrome') != -1)) | |
5587 ? function(x) { return x.$dartCachedLength || x.length; } | |
5588 : function(x) { return x.length; }; | |
5589 ; | |
5590 Isolate.makeConstantList = function(list) { | |
5591 list.immutable$list = true; | |
5592 list.fixed$length = true; | |
5593 return list; | |
5594 }; | |
5595 C.List_empty = Isolate.makeConstantList([]); | |
5596 $.lazyPort = null; | |
5597 $.ReceivePortImpl__nextFreeId = 1; | |
5598 $.Primitives_mirrorFunctionCacheName = "$cachedFunction"; | |
5599 $.Primitives_mirrorInvokeCacheName = "$cachedInvocation"; | |
5600 $.initNativeDispatchFlag = null; | |
5601 $.printToZone = null; | |
5602 $._callbacksAreEnqueued = false; | |
5603 $.Zone__current = C.C__RootZone; | |
5604 $.Expando__keyCount = 0; | |
5605 $.Device__isOpera = null; | |
5606 $.Device__isWebKit = null; | |
5607 $.genButton = null; | |
5608 J.$eq = function(receiver, a0) { | |
5609 if (receiver == null) | |
5610 return a0 == null; | |
5611 if (typeof receiver != "object") | |
5612 return a0 != null && receiver === a0; | |
5613 return J.getInterceptor(receiver).$eq(receiver, a0); | |
5614 }; | |
5615 J.$ge$n = function(receiver, a0) { | |
5616 if (typeof receiver == "number" && typeof a0 == "number") | |
5617 return receiver >= a0; | |
5618 return J.getInterceptor$n(receiver).$ge(receiver, a0); | |
5619 }; | |
5620 J.$index$asx = function(receiver, a0) { | |
5621 if (receiver.constructor == Array || typeof receiver == "string" || H.isJsInde
xable(receiver, receiver[init.dispatchPropertyName])) | |
5622 if (a0 >>> 0 === a0 && a0 < receiver.length) | |
5623 return receiver[a0]; | |
5624 return J.getInterceptor$asx(receiver).$index(receiver, a0); | |
5625 }; | |
5626 J.$indexSet$ax = function(receiver, a0, a1) { | |
5627 if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.
dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < r
eceiver.length) | |
5628 return receiver[a0] = a1; | |
5629 return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1); | |
5630 }; | |
5631 J.addEventListener$3$x = function(receiver, a0, a1, a2) { | |
5632 return J.getInterceptor$x(receiver).addEventListener$3(receiver, a0, a1, a2); | |
5633 }; | |
5634 J.forEach$1$ax = function(receiver, a0) { | |
5635 return J.getInterceptor$ax(receiver).forEach$1(receiver, a0); | |
5636 }; | |
5637 J.get$error$x = function(receiver) { | |
5638 return J.getInterceptor$x(receiver).get$error(receiver); | |
5639 }; | |
5640 J.get$hashCode$ = function(receiver) { | |
5641 return J.getInterceptor(receiver).get$hashCode(receiver); | |
5642 }; | |
5643 J.get$iterator$ax = function(receiver) { | |
5644 return J.getInterceptor$ax(receiver).get$iterator(receiver); | |
5645 }; | |
5646 J.get$length$asx = function(receiver) { | |
5647 return J.getInterceptor$asx(receiver).get$length(receiver); | |
5648 }; | |
5649 J.get$target$x = function(receiver) { | |
5650 return J.getInterceptor$x(receiver).get$target(receiver); | |
5651 }; | |
5652 J.removeEventListener$3$x = function(receiver, a0, a1, a2) { | |
5653 return J.getInterceptor$x(receiver).removeEventListener$3(receiver, a0, a1, a2
); | |
5654 }; | |
5655 J.set$disabled$x = function(receiver, value) { | |
5656 return J.getInterceptor$x(receiver).set$disabled(receiver, value); | |
5657 }; | |
5658 J.toString$0 = function(receiver) { | |
5659 return J.getInterceptor(receiver).toString$0(receiver); | |
5660 }; | |
5661 J.trim$0$s = function(receiver) { | |
5662 return J.getInterceptor$s(receiver).trim$0(receiver); | |
5663 }; | |
5664 Isolate.$lazy($, "globalThis", "globalThis", "get$globalThis", function() { | |
5665 return function() { return this; }(); | |
5666 }); | |
5667 Isolate.$lazy($, "globalWindow", "globalWindow", "get$globalWindow", function()
{ | |
5668 return $.get$globalThis().window; | |
5669 }); | |
5670 Isolate.$lazy($, "globalWorker", "globalWorker", "get$globalWorker", function()
{ | |
5671 return $.get$globalThis().Worker; | |
5672 }); | |
5673 Isolate.$lazy($, "globalPostMessageDefined", "globalPostMessageDefined", "get$gl
obalPostMessageDefined", function() { | |
5674 return $.get$globalThis().postMessage !== void 0; | |
5675 }); | |
5676 Isolate.$lazy($, "thisScript", "IsolateNatives_thisScript", "get$IsolateNatives_
thisScript", function() { | |
5677 return H.IsolateNatives_computeThisScript(); | |
5678 }); | |
5679 Isolate.$lazy($, "workerIds", "IsolateNatives_workerIds", "get$IsolateNatives_wo
rkerIds", function() { | |
5680 return new P.Expando(null); | |
5681 }); | |
5682 Isolate.$lazy($, "noSuchMethodPattern", "TypeErrorDecoder_noSuchMethodPattern",
"get$TypeErrorDecoder_noSuchMethodPattern", function() { | |
5683 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
({ toString: function() { return "$receiver$"; } })); | |
5684 }); | |
5685 Isolate.$lazy($, "notClosurePattern", "TypeErrorDecoder_notClosurePattern", "get
$TypeErrorDecoder_notClosurePattern", function() { | |
5686 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
({ $method$: null, toString: function() { return "$receiver$"; } })); | |
5687 }); | |
5688 Isolate.$lazy($, "nullCallPattern", "TypeErrorDecoder_nullCallPattern", "get$Typ
eErrorDecoder_nullCallPattern", function() { | |
5689 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
(null)); | |
5690 }); | |
5691 Isolate.$lazy($, "nullLiteralCallPattern", "TypeErrorDecoder_nullLiteralCallPatt
ern", "get$TypeErrorDecoder_nullLiteralCallPattern", function() { | |
5692 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
Null()); | |
5693 }); | |
5694 Isolate.$lazy($, "undefinedCallPattern", "TypeErrorDecoder_undefinedCallPattern"
, "get$TypeErrorDecoder_undefinedCallPattern", function() { | |
5695 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
(void 0)); | |
5696 }); | |
5697 Isolate.$lazy($, "undefinedLiteralCallPattern", "TypeErrorDecoder_undefinedLiter
alCallPattern", "get$TypeErrorDecoder_undefinedLiteralCallPattern", function() { | |
5698 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
Undefined()); | |
5699 }); | |
5700 Isolate.$lazy($, "nullPropertyPattern", "TypeErrorDecoder_nullPropertyPattern",
"get$TypeErrorDecoder_nullPropertyPattern", function() { | |
5701 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOn(null)); | |
5702 }); | |
5703 Isolate.$lazy($, "nullLiteralPropertyPattern", "TypeErrorDecoder_nullLiteralProp
ertyPattern", "get$TypeErrorDecoder_nullLiteralPropertyPattern", function() { | |
5704 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOnNull()); | |
5705 }); | |
5706 Isolate.$lazy($, "undefinedPropertyPattern", "TypeErrorDecoder_undefinedProperty
Pattern", "get$TypeErrorDecoder_undefinedPropertyPattern", function() { | |
5707 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOn(void 0)); | |
5708 }); | |
5709 Isolate.$lazy($, "undefinedLiteralPropertyPattern", "TypeErrorDecoder_undefinedL
iteralPropertyPattern", "get$TypeErrorDecoder_undefinedLiteralPropertyPattern",
function() { | |
5710 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOnUndefined()); | |
5711 }); | |
5712 Isolate.$lazy($, "getTypeNameOf", "getTypeNameOf", "get$getTypeNameOf", function
() { | |
5713 return H.getFunctionForTypeNameOf(); | |
5714 }); | |
5715 Isolate.$lazy($, "_toStringList", "IterableMixinWorkaround__toStringList", "get$
IterableMixinWorkaround__toStringList", function() { | |
5716 return P.List_List(null, null); | |
5717 }); | |
5718 Isolate.$lazy($, "_stackTraceExpando", "_stackTraceExpando", "get$_stackTraceExp
ando", function() { | |
5719 return new P.Expando("asynchronous error"); | |
5720 }); | |
5721 Isolate.$lazy($, "_asyncCallbacks", "_asyncCallbacks", "get$_asyncCallbacks", fu
nction() { | |
5722 return P.ListQueue$(null, {func: "void_", void: true}); | |
5723 }); | |
5724 Isolate.$lazy($, "_toStringVisiting", "_toStringVisiting", "get$_toStringVisitin
g", function() { | |
5725 return P.HashSet_HashSet$identity(null); | |
5726 }); | |
5727 Isolate.$lazy($, "_toStringList", "Maps__toStringList", "get$Maps__toStringList"
, function() { | |
5728 return P.List_List(null, null); | |
5729 }); | |
5730 // Native classes | |
5731 J.Interceptor["%"] = "DOMError|FileError|MediaError|MediaKeyError|Navigator|Navi
gatorUserMediaError|PositionError|SQLError|SVGAnimatedNumberList|SVGAnimatedStri
ng"; | |
5732 | |
5733 | |
5734 init.functionAliases = {}; | |
5735 ; | |
5736 init.metadata = []; | |
5737 $ = null; | |
5738 Isolate = Isolate.$finishIsolateConstructor(Isolate); | |
5739 $ = new Isolate(); | |
5740 function convertToFastObject(properties) { | 3161 function convertToFastObject(properties) { |
5741 function MyClass() {}; | 3162 function MyClass() {}; |
5742 MyClass.prototype = properties; | 3163 MyClass.prototype = properties; |
5743 new MyClass(); | 3164 new MyClass(); |
5744 return properties; | 3165 return properties; |
5745 } | 3166 } |
5746 A = convertToFastObject(A); | 3167 A = convertToFastObject(A) |
5747 B = convertToFastObject(B); | 3168 B = convertToFastObject(B) |
5748 C = convertToFastObject(C); | 3169 C = convertToFastObject(C) |
5749 D = convertToFastObject(D); | 3170 D = convertToFastObject(D) |
5750 E = convertToFastObject(E); | 3171 E = convertToFastObject(E) |
5751 F = convertToFastObject(F); | 3172 F = convertToFastObject(F) |
5752 G = convertToFastObject(G); | 3173 G = convertToFastObject(G) |
5753 H = convertToFastObject(H); | 3174 H = convertToFastObject(H) |
5754 J = convertToFastObject(J); | 3175 J = convertToFastObject(J) |
5755 K = convertToFastObject(K); | 3176 K = convertToFastObject(K) |
5756 L = convertToFastObject(L); | 3177 L = convertToFastObject(L) |
5757 M = convertToFastObject(M); | 3178 M = convertToFastObject(M) |
5758 N = convertToFastObject(N); | 3179 N = convertToFastObject(N) |
5759 O = convertToFastObject(O); | 3180 O = convertToFastObject(O) |
5760 P = convertToFastObject(P); | 3181 P = convertToFastObject(P) |
5761 Q = convertToFastObject(Q); | 3182 Q = convertToFastObject(Q) |
5762 R = convertToFastObject(R); | 3183 R = convertToFastObject(R) |
5763 S = convertToFastObject(S); | 3184 S = convertToFastObject(S) |
5764 T = convertToFastObject(T); | 3185 T = convertToFastObject(T) |
5765 U = convertToFastObject(U); | 3186 U = convertToFastObject(U) |
5766 V = convertToFastObject(V); | 3187 V = convertToFastObject(V) |
5767 W = convertToFastObject(W); | 3188 W = convertToFastObject(W) |
5768 X = convertToFastObject(X); | 3189 X = convertToFastObject(X) |
5769 Y = convertToFastObject(Y); | 3190 Y = convertToFastObject(Y) |
5770 Z = convertToFastObject(Z); | 3191 Z = convertToFastObject(Z) |
5771 !function() { | 3192 !function(){function intern(a){var u={} |
5772 var objectProto = Object.prototype; | 3193 u[a]=1 |
5773 for (var i = 0;; i++) { | 3194 return Object.keys(convertToFastObject(u))[0]}init.getIsolateTag=function(a){ret
urn intern("___dart_"+a+init.isolateTag)} |
5774 var property = "___dart_dispatch_record_ZxYxX_0_"; | 3195 var z="___dart_isolate_tags_" |
5775 if (i > 0) | 3196 var y=Object[z]||(Object[z]=Object.create(null)) |
5776 property = rootProperty + "_" + i; | 3197 var x="_ZxYxX" |
5777 if (!(property in objectProto)) | 3198 for(var w=0;;w++){var v=intern(x+"_"+w+"_") |
5778 return init.dispatchPropertyName = property; | 3199 if(!(v in y)){y[v]=1 |
5779 } | 3200 init.isolateTag=v |
5780 }(); | 3201 break}}}() |
5781 // BEGIN invoke [main]. | 3202 init.dispatchPropertyName=init.getIsolateTag("dispatch_record") |
5782 ;(function (callback) { | 3203 ;(function (callback) { |
5783 if (typeof document === "undefined") { | 3204 if (typeof document === "undefined") { |
5784 callback(null); | 3205 callback(null); |
5785 return; | 3206 return; |
5786 } | 3207 } |
5787 if (document.currentScript) { | 3208 if (document.currentScript) { |
5788 callback(document.currentScript); | 3209 callback(document.currentScript); |
5789 return; | 3210 return; |
5790 } | 3211 } |
5791 | 3212 |
5792 var scripts = document.scripts; | 3213 var scripts = document.scripts; |
5793 function onLoad(event) { | 3214 function onLoad(event) { |
5794 for (var i = 0; i < scripts.length; ++i) { | 3215 for (var i = 0; i < scripts.length; ++i) { |
5795 scripts[i].removeEventListener("load", onLoad, false); | 3216 scripts[i].removeEventListener("load", onLoad, false); |
5796 } | 3217 } |
5797 callback(event.target); | 3218 callback(event.target); |
5798 } | 3219 } |
5799 for (var i = 0; i < scripts.length; ++i) { | 3220 for (var i = 0; i < scripts.length; ++i) { |
5800 scripts[i].addEventListener("load", onLoad, false); | 3221 scripts[i].addEventListener("load", onLoad, false); |
5801 } | 3222 } |
5802 })(function(currentScript) { | 3223 })(function(currentScript) { |
5803 init.currentScript = currentScript; | 3224 init.currentScript = currentScript; |
5804 | 3225 |
5805 if (typeof dartMainRunner === "function") { | 3226 if (typeof dartMainRunner === "function") { |
5806 dartMainRunner(function() { H.startRootIsolate(A.main$closure); }); | 3227 dartMainRunner((function(a){H.Rq(A.eE(),a)}), []); |
5807 } else { | 3228 } else { |
5808 H.startRootIsolate(A.main$closure); | 3229 (function(a){H.Rq(A.eE(),a)})([]); |
5809 } | 3230 } |
5810 }); | 3231 }) |
5811 // END invoke [main]. | 3232 function init(){I.p={} |
5812 function init() { | 3233 function generateAccessor(a,b,c){var y=a.split("-") |
5813 Isolate.$isolateProperties = {}; | 3234 var x=y[0] |
5814 function generateAccessor(field, accessors, cls) { | 3235 var w=x.length |
5815 var len = field.length; | 3236 var v=x.charCodeAt(w-1) |
5816 var code = field.charCodeAt(len - 1); | 3237 var u |
5817 var reflectable = false; | 3238 if(y.length>1)u=true |
5818 if (code == 45) { | 3239 else u=false |
5819 len--; | 3240 v=v>=60&&v<=64?v-59:v>=123&&v<=126?v-117:v>=37&&v<=43?v-27:0 |
5820 code = field.charCodeAt(len - 1); | 3241 if(v){var t=v&3 |
5821 field = field.substring(0, len); | 3242 var s=v>>2 |
5822 reflectable = true; | 3243 var r=x=x.substring(0,w-1) |
5823 } | 3244 var q=x.indexOf(":") |
5824 code = code >= 60 && code <= 64 ? code - 59 : code >= 123 && code <= 126 ? c
ode - 117 : code >= 37 && code <= 43 ? code - 27 : 0; | 3245 if(q>0){r=x.substring(0,q) |
5825 if (code) { | 3246 x=x.substring(q+1)}if(t){var p=t&2?"r":"" |
5826 var getterCode = code & 3; | 3247 var o=t&1?"this":"r" |
5827 var setterCode = code >> 2; | 3248 var n="return "+o+"."+x |
5828 var accessorName = field = field.substring(0, len - 1); | 3249 var m=c+".prototype.g"+r+"=" |
5829 var divider = field.indexOf(":"); | 3250 var l="function("+p+"){"+n+"}" |
5830 if (divider > 0) { | 3251 if(u)b.push(m+"$reflectable("+l+");\n") |
5831 accessorName = field.substring(0, divider); | 3252 else b.push(m+l+";\n")}if(s){var p=s&2?"r,v":"v" |
5832 field = field.substring(divider + 1); | 3253 var o=s&1?"this":"r" |
5833 } | 3254 var n=o+"."+x+"=v" |
5834 if (getterCode) { | 3255 var m=c+".prototype.s"+r+"=" |
5835 var args = getterCode & 2 ? "receiver" : ""; | 3256 var l="function("+p+"){"+n+"}" |
5836 var receiver = getterCode & 1 ? "this" : "receiver"; | 3257 if(u)b.push(m+"$reflectable("+l+");\n") |
5837 var body = "return " + receiver + "." + field; | 3258 else b.push(m+l+";\n")}}return x}I.p.$generateAccessor=generateAccessor |
5838 var property = cls + ".prototype.get$" + accessorName + "="; | 3259 function defineClass(a,b,c){var y=[] |
5839 var fn = "function(" + args + "){" + body + "}"; | 3260 var x="function "+b+"(" |
5840 if (reflectable) | 3261 var w="" |
5841 accessors.push(property + "$reflectable(" + fn + ");\n"); | 3262 for(var v=0;v<c.length;v++){if(v!=0)x+=", " |
5842 else | 3263 var u=generateAccessor(c[v],y,b) |
5843 accessors.push(property + fn + ";\n"); | 3264 var t="parameter_"+u |
5844 } | 3265 x+=t |
5845 if (setterCode) { | 3266 w+="this."+u+" = "+t+";\n"}x+=") {\n"+w+"}\n" |
5846 var args = setterCode & 2 ? "receiver, value" : "value"; | 3267 x+=b+".builtin$cls=\""+a+"\";\n" |
5847 var receiver = setterCode & 1 ? "this" : "receiver"; | 3268 x+="$desc=$collectedClasses."+b+";\n" |
5848 var body = receiver + "." + field + " = value"; | 3269 x+="if($desc instanceof Array) $desc = $desc[1];\n" |
5849 var property = cls + ".prototype.set$" + accessorName + "="; | 3270 x+=b+".prototype = $desc;\n" |
5850 var fn = "function(" + args + "){" + body + "}"; | 3271 if(typeof defineClass.name!="string"){x+=b+".name=\""+b+"\";\n"}x+=y.join("") |
5851 if (reflectable) | 3272 return x}var z=function(){function tmp(){}var y=Object.prototype.hasOwnProperty |
5852 accessors.push(property + "$reflectable(" + fn + ");\n"); | 3273 return function(a,b){tmp.prototype=b.prototype |
5853 else | 3274 var x=new tmp() |
5854 accessors.push(property + fn + ";\n"); | 3275 var w=a.prototype |
5855 } | 3276 for(var v in w)if(y.call(w,v))x[v]=w[v] |
5856 } | 3277 x.constructor=a |
5857 return field; | 3278 a.prototype=x |
5858 } | 3279 return x}}() |
5859 Isolate.$isolateProperties.$generateAccessor = generateAccessor; | 3280 I.$finishClasses=function(a,b,c){var y={} |
5860 function defineClass(name, cls, fields) { | 3281 if(!init.allClasses)init.allClasses={} |
5861 var accessors = []; | 3282 var x=init.allClasses |
5862 var str = "function " + cls + "("; | 3283 var w=Object.prototype.hasOwnProperty |
5863 var body = ""; | 3284 if(typeof dart_precompiled=="function"){var v=dart_precompiled(a)}else{var u="fu
nction $reflectable(fn){fn.$reflectable=1;return fn};\n"+"var $desc;\n" |
5864 for (var i = 0; i < fields.length; i++) { | 3285 var t=[]}for(var s in a){if(w.call(a,s)){var r=a[s] |
5865 if (i != 0) | 3286 if(r instanceof Array)r=r[1] |
5866 str += ", "; | 3287 var q=r["^"],p,o=s,n=q |
5867 var field = generateAccessor(fields[i], accessors, cls); | 3288 if(typeof q=="string"){var m=q.split("/") |
5868 var parameter = "parameter_" + field; | 3289 if(m.length==2){o=m[0] |
5869 str += parameter; | 3290 n=m[1]}}var l=n.split(";") |
5870 body += "this." + field + " = " + parameter + ";\n"; | 3291 n=l[1]==""?[]:l[1].split(",") |
5871 } | 3292 p=l[0] |
5872 str += ") {\n" + body + "}\n"; | 3293 m=p.split(":") |
5873 str += cls + ".builtin$cls=\"" + name + "\";\n"; | 3294 if(m.length==2){p=m[0] |
5874 str += "$desc=$collectedClasses." + cls + ";\n"; | 3295 var k=m[1] |
5875 str += "if($desc instanceof Array) $desc = $desc[1];\n"; | 3296 if(k)r.$signature=function(d){return function(){return init.metadata[d]}}(k)}if(
p&&p.indexOf("+")>0){l=p.split("+") |
5876 str += cls + ".prototype = $desc;\n"; | 3297 p=l[0] |
5877 if (typeof defineClass.name != "string") { | 3298 var j=a[l[1]] |
5878 str += cls + ".name=\"" + cls + "\";\n"; | 3299 if(j instanceof Array)j=j[1] |
5879 } | 3300 for(var i in j){if(w.call(j,i)&&!w.call(r,i))r[i]=j[i]}}if(typeof dart_precompil
ed!="function"){u+=defineClass(o,s,n) |
5880 str += accessors.join(""); | 3301 t.push(s)}if(p)y[s]=p}}if(typeof dart_precompiled!="function"){u+="return [\n "
+t.join(",\n ")+"\n]" |
5881 return str; | 3302 var v=new Function("$collectedClasses",u)(a) |
5882 } | 3303 u=null}for(var h=0;h<v.length;h++){var g=v[h] |
5883 var inheritFrom = function() { | 3304 var s=g.name |
5884 function tmp() { | 3305 var r=a[s] |
5885 } | 3306 var f=b |
5886 var hasOwnProperty = Object.prototype.hasOwnProperty; | 3307 if(r instanceof Array){f=r[0]||b |
5887 return function(constructor, superConstructor) { | 3308 r=r[1]}x[s]=g |
5888 tmp.prototype = superConstructor.prototype; | 3309 f[s]=g}v=null |
5889 var object = new tmp(); | 3310 var e={} |
5890 var properties = constructor.prototype; | 3311 init.interceptorsByTag=Object.create(null) |
5891 for (var member in properties) | 3312 init.leafTags={} |
5892 if (hasOwnProperty.call(properties, member)) | 3313 function finishClass(a9){var d=Object.prototype.hasOwnProperty |
5893 object[member] = properties[member]; | 3314 if(d.call(e,a9))return |
5894 object.constructor = constructor; | 3315 e[a9]=true |
5895 constructor.prototype = object; | 3316 var a0=y[a9] |
5896 return object; | 3317 if(!a0||typeof a0!="string")return |
5897 }; | 3318 finishClass(a0) |
5898 }(); | 3319 var a1=x[a9] |
5899 Isolate.$finishClasses = function(collectedClasses, isolateProperties, existin
gIsolateProperties) { | 3320 var a2=x[a0] |
5900 var pendingClasses = {}; | 3321 if(!a2)a2=c[a0] |
5901 if (!init.allClasses) | 3322 var a3=z(a1,a2) |
5902 init.allClasses = {}; | 3323 if(d.call(a3,"%")){var a4=a3["%"].split(";") |
5903 var allClasses = init.allClasses; | 3324 if(a4[0]){var a5=a4[0].split("|") |
5904 var hasOwnProperty = Object.prototype.hasOwnProperty; | 3325 for(var a6=0;a6<a5.length;a6++){init.interceptorsByTag[a5[a6]]=a1 |
5905 if (typeof dart_precompiled == "function") { | 3326 init.leafTags[a5[a6]]=true}}if(a4[1]){a5=a4[1].split("|") |
5906 var constructors = dart_precompiled(collectedClasses); | 3327 if(a4[2]){var a7=a4[2].split("|") |
5907 } else { | 3328 for(var a6=0;a6<a7.length;a6++){var a8=x[a7[a6]] |
5908 var combinedConstructorFunction = "function $reflectable(fn){fn.$reflectab
le=1;return fn};\n" + "var $desc;\n"; | 3329 a8.$nativeSuperclassTag=a5[0]}}for(a6=0;a6<a5.length;a6++){init.interceptorsByTa
g[a5[a6]]=a1 |
5909 var constructorsList = []; | 3330 init.leafTags[a5[a6]]=false}}}}for(var s in y)finishClass(s)} |
5910 } | 3331 I.$lazy=function(a,b,c,d,e){var y={} |
5911 for (var cls in collectedClasses) { | 3332 var x={} |
5912 if (hasOwnProperty.call(collectedClasses, cls)) { | 3333 a[c]=y |
5913 var desc = collectedClasses[cls]; | 3334 a[d]=function(){var w=$[c] |
5914 if (desc instanceof Array) | 3335 try{if(w===y){$[c]=x |
5915 desc = desc[1]; | 3336 try{w=$[c]=e()}finally{if(w===y)if($[c]===x)$[c]=null}}else{if(w===x)H.ag(b)}ret
urn w}finally{$[d]=function(){return this[c]}}}} |
5916 var classData = desc[""], supr, name = cls, fields = classData; | 3337 I.$finishIsolateConstructor=function(a){var y=a.p |
5917 if (typeof classData == "string") { | 3338 function Isolate(){var x=Object.prototype.hasOwnProperty |
5918 var split = classData.split("/"); | 3339 for(var w in y)if(x.call(y,w))this[w]=y[w] |
5919 if (split.length == 2) { | 3340 function ForceEfficientMap(){}ForceEfficientMap.prototype=this |
5920 name = split[0]; | 3341 new ForceEfficientMap()}Isolate.prototype=a.prototype |
5921 fields = split[1]; | 3342 Isolate.prototype.constructor=Isolate |
5922 } | 3343 Isolate.p=y |
5923 } | 3344 Isolate.$finishClasses=a.$finishClasses |
5924 var s = fields.split(";"); | 3345 return Isolate}} |
5925 fields = s[1] == "" ? [] : s[1].split(","); | |
5926 supr = s[0]; | |
5927 if (supr && supr.indexOf("+") > 0) { | |
5928 s = supr.split("+"); | |
5929 supr = s[0]; | |
5930 var mixin = collectedClasses[s[1]]; | |
5931 if (mixin instanceof Array) | |
5932 mixin = mixin[1]; | |
5933 for (var d in mixin) { | |
5934 if (hasOwnProperty.call(mixin, d) && !hasOwnProperty.call(desc, d)) | |
5935 desc[d] = mixin[d]; | |
5936 } | |
5937 } | |
5938 if (typeof dart_precompiled != "function") { | |
5939 combinedConstructorFunction += defineClass(name, cls, fields); | |
5940 constructorsList.push(cls); | |
5941 } | |
5942 if (supr) | |
5943 pendingClasses[cls] = supr; | |
5944 } | |
5945 } | |
5946 if (typeof dart_precompiled != "function") { | |
5947 combinedConstructorFunction += "return [\n " + constructorsList.join(",\n
") + "\n]"; | |
5948 var constructors = new Function("$collectedClasses", combinedConstructorFu
nction)(collectedClasses); | |
5949 combinedConstructorFunction = null; | |
5950 } | |
5951 for (var i = 0; i < constructors.length; i++) { | |
5952 var constructor = constructors[i]; | |
5953 var cls = constructor.name; | |
5954 var desc = collectedClasses[cls]; | |
5955 var globalObject = isolateProperties; | |
5956 if (desc instanceof Array) { | |
5957 globalObject = desc[0] || isolateProperties; | |
5958 desc = desc[1]; | |
5959 } | |
5960 allClasses[cls] = constructor; | |
5961 globalObject[cls] = constructor; | |
5962 } | |
5963 constructors = null; | |
5964 var finishedClasses = {}; | |
5965 init.interceptorsByTag = {}; | |
5966 init.leafTags = {}; | |
5967 function finishClass(cls) { | |
5968 var hasOwnProperty = Object.prototype.hasOwnProperty; | |
5969 if (hasOwnProperty.call(finishedClasses, cls)) | |
5970 return; | |
5971 finishedClasses[cls] = true; | |
5972 var superclass = pendingClasses[cls]; | |
5973 if (!superclass || typeof superclass != "string") | |
5974 return; | |
5975 finishClass(superclass); | |
5976 var constructor = allClasses[cls]; | |
5977 var superConstructor = allClasses[superclass]; | |
5978 if (!superConstructor) | |
5979 superConstructor = existingIsolateProperties[superclass]; | |
5980 var prototype = inheritFrom(constructor, superConstructor); | |
5981 if (hasOwnProperty.call(prototype, "%")) { | |
5982 var nativeSpec = prototype["%"].split(";"); | |
5983 if (nativeSpec[0]) { | |
5984 var tags = nativeSpec[0].split("|"); | |
5985 for (var i = 0; i < tags.length; i++) { | |
5986 init.interceptorsByTag[tags[i]] = constructor; | |
5987 init.leafTags[tags[i]] = true; | |
5988 } | |
5989 } | |
5990 if (nativeSpec[1]) { | |
5991 tags = nativeSpec[1].split("|"); | |
5992 if (nativeSpec[2]) { | |
5993 var subclasses = nativeSpec[2].split("|"); | |
5994 for (var i = 0; i < subclasses.length; i++) { | |
5995 var subclass = allClasses[subclasses[i]]; | |
5996 subclass.$nativeSuperclassTag = tags[0]; | |
5997 } | |
5998 } | |
5999 for (i = 0; i < tags.length; i++) { | |
6000 init.interceptorsByTag[tags[i]] = constructor; | |
6001 init.leafTags[tags[i]] = false; | |
6002 } | |
6003 } | |
6004 } | |
6005 } | |
6006 for (var cls in pendingClasses) | |
6007 finishClass(cls); | |
6008 }; | |
6009 Isolate.$lazy = function(prototype, staticName, fieldName, getterName, lazyVal
ue) { | |
6010 var sentinelUndefined = {}; | |
6011 var sentinelInProgress = {}; | |
6012 prototype[fieldName] = sentinelUndefined; | |
6013 prototype[getterName] = function() { | |
6014 var result = $[fieldName]; | |
6015 try { | |
6016 if (result === sentinelUndefined) { | |
6017 $[fieldName] = sentinelInProgress; | |
6018 try { | |
6019 result = $[fieldName] = lazyValue(); | |
6020 } finally { | |
6021 if (result === sentinelUndefined) { | |
6022 if ($[fieldName] === sentinelInProgress) { | |
6023 $[fieldName] = null; | |
6024 } | |
6025 } | |
6026 } | |
6027 } else { | |
6028 if (result === sentinelInProgress) | |
6029 H.throwCyclicInit(staticName); | |
6030 } | |
6031 return result; | |
6032 } finally { | |
6033 $[getterName] = function() { | |
6034 return this[fieldName]; | |
6035 }; | |
6036 } | |
6037 }; | |
6038 }; | |
6039 Isolate.$finishIsolateConstructor = function(oldIsolate) { | |
6040 var isolateProperties = oldIsolate.$isolateProperties; | |
6041 function Isolate() { | |
6042 var hasOwnProperty = Object.prototype.hasOwnProperty; | |
6043 for (var staticName in isolateProperties) | |
6044 if (hasOwnProperty.call(isolateProperties, staticName)) | |
6045 this[staticName] = isolateProperties[staticName]; | |
6046 function ForceEfficientMap() { | |
6047 } | |
6048 ForceEfficientMap.prototype = this; | |
6049 new ForceEfficientMap(); | |
6050 } | |
6051 Isolate.prototype = oldIsolate.prototype; | |
6052 Isolate.prototype.constructor = Isolate; | |
6053 Isolate.$isolateProperties = isolateProperties; | |
6054 Isolate.$finishClasses = oldIsolate.$finishClasses; | |
6055 Isolate.makeConstantList = oldIsolate.makeConstantList; | |
6056 return Isolate; | |
6057 }; | |
6058 } | |
6059 })() | 3346 })() |
6060 | |
6061 //# sourceMappingURL=piratebadge.dart.js.map | |
6062 //@ sourceMappingURL=piratebadge.dart.js.map | |
OLD | NEW |