@supraio/client-daemon-js 0.0.0-mzresolution.238 → 0.0.0-mzresolution.240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/daemon.html +1 -1
- package/daemon.js +2 -2
- package/package.json +1 -1
- package/screen.css +4 -0
- package/screen.html +1 -1
- package/screen.js +2 -2
- package/sdk.js +4 -4
- package/supra-client-daemon.js +249 -98
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +247 -96
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/supra-client-daemon.js
CHANGED
|
@@ -55567,6 +55567,9 @@ $packages["crypto/elliptic"] = (function() {
|
|
|
55567
55567
|
var _r, _r$1, _r$2, _r$3, curve, x, y, y2, $s, $r;
|
|
55568
55568
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1; _r$2 = $f._r$2; _r$3 = $f._r$3; curve = $f.curve; x = $f.x; y = $f.y; y2 = $f.y2; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
55569
55569
|
curve = this;
|
|
55570
|
+
if (x.Sign() < 0 || x.Cmp(curve.P) >= 0 || y.Sign() < 0 || y.Cmp(curve.P) >= 0) {
|
|
55571
|
+
$s = -1; return false;
|
|
55572
|
+
}
|
|
55570
55573
|
_r = new big.Int.ptr(false, big.nat.nil).Mul(y, y); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
55571
55574
|
y2 = _r;
|
|
55572
55575
|
_r$1 = y2.Mod(y2, curve.P); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
@@ -56129,6 +56132,9 @@ $packages["crypto/elliptic"] = (function() {
|
|
|
56129
56132
|
p224Curve.ptr.prototype.IsOnCurve = function(bigX, bigY) {
|
|
56130
56133
|
var _tmp, _tmp$1, bigX, bigY, curve, i, i$1, tmp, x, x3, y;
|
|
56131
56134
|
curve = this;
|
|
56135
|
+
if (bigX.Sign() < 0 || bigX.Cmp(curve.CurveParams.P) >= 0 || bigY.Sign() < 0 || bigY.Cmp(curve.CurveParams.P) >= 0) {
|
|
56136
|
+
return false;
|
|
56137
|
+
}
|
|
56132
56138
|
_tmp = arrayType.zero();
|
|
56133
56139
|
_tmp$1 = arrayType.zero();
|
|
56134
56140
|
x = $clone(_tmp, p224FieldElement);
|
|
@@ -91589,7 +91595,7 @@ $packages["net/http/internal"] = (function() {
|
|
|
91589
91595
|
$r = io.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
91590
91596
|
$r = strings.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
91591
91597
|
$pkg.ErrLineTooLong = errors.New("header line too long");
|
|
91592
|
-
$pkg.LocalhostKey = (new sliceType($stringToBytes(testingKey("-----BEGIN RSA TESTING KEY-----\
|
|
91598
|
+
$pkg.LocalhostKey = (new sliceType($stringToBytes(testingKey("-----BEGIN RSA TESTING KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDoZtrm0dXV0Aqi\n4Bpc7f95sNRTiu/AJSD8I1onY9PnEsPg3VVxvytsVJbYdcqr4w99V3AgpH/UNzMS\ngAZ/8lZBNbsSDOVesJ3euVqMRfYPvd9pYl6QPRRpSDPm+2tNdn3QFAvta9EgJ3sW\nURnoU85w+W6aLI2bNSq3AaE771p3VbkGolpEjo9h+i42TBHo1rhPNKPkGupR8/QX\nAOLMpInRdeaHyDwb2a3DE5I3dG7VAVzrVfJ6W6Q84YoFX+rpEE2SVM17SAjy6xQy\nVjKgLvK2mk0xbtfa+h0B6VK7bmODHZqeP18NVm6HsBcXn7iclLgAC3SfWU1jucZK\nx1lqzw9tAgMBAAECggEABWzxS1Y2wckblnXY57Z+sl6YdmLV+gxj2r8Qib7g4ZIk\nlIlWR1OJNfw7kU4eryib4fc6nOh6O4AWZyYqAK6tqNQSS/eVG0LQTLTTEldHyVJL\ndvBe+MsUQOj4nTndZW+QvFzbcm2D8lY5n2nBSxU5ypVoKZ1EqQzytFcLZpTN7d89\nEPj0qDyrV4NZlWAwL1AygCwnlwhMQjXEalVF1ylXwU3QzyZ/6MgvF6d3SSUlh+sq\nXefuyigXw484cQQgbzopv6niMOmGP3of+yV4JQqUSb3IDmmT68XjGd2Dkxl4iPki\n6ZwXf3CCi+c+i/zVEcufgZ3SLf8D99kUGE7v7fZ6AQKBgQD1ZX3RAla9hIhxCf+O\n3D+I1j2LMrdjAh0ZKKqwMR4JnHX3mjQI6LwqIctPWTU8wYFECSh9klEclSdCa64s\nuI/GNpcqPXejd0cAAdqHEEeG5sHMDt0oFSurL4lyud0GtZvwlzLuwEweuDtvT9cJ\nWfvl86uyO36IW8JdvUprYDctrQKBgQDycZ697qutBieZlGkHpnYWUAeImVA878sJ\nw44NuXHvMxBPz+lbJGAg8Cn8fcxNAPqHIraK+kx3po8cZGQywKHUWsxi23ozHoxo\n+bGqeQb9U661TnfdDspIXia+xilZt3mm5BPzOUuRqlh4Y9SOBpSWRmEhyw76w4ZP\nOPxjWYAgwQKBgA/FehSYxeJgRjSdo+MWnK66tjHgDJE8bYpUZsP0JC4R9DL5oiaA\nbrd2fI6Y+SbyeNBallObt8LSgzdtnEAbjIH8uDJqyOmknNePRvAvR6mP4xyuR+Bv\nm+Lgp0DMWTw5J9CKpydZDItc49T/mJ5tPhdFVd+am0NAQnmr1MCZ6nHxAoGABS3Y\nLkaC9FdFUUqSU8+Chkd/YbOkuyiENdkvl6t2e52jo5DVc1T7mLiIrRQi4SI8N9bN\n/3oJWCT+uaSLX2ouCtNFunblzWHBrhxnZzTeqVq4SLc8aESAnbslKL4i8/+vYZlN\ns8xtiNcSvL+lMsOBORSXzpj/4Ot8WwTkn1qyGgECgYBKNTypzAHeLE6yVadFp3nQ\nCkq9yzvP/ib05rvgbvrne00YeOxqJ9gtTrzgh7koqJyX1L4NwdkEza4ilDWpucn0\nxiUZS4SoaJq6ZvcBYS62Yr1t8n09iG47YL8ibgtmH3L+svaotvpVxVK+d7BLevA/\nZboOWVe3icTy64BT3OQhmg==\n-----END RSA TESTING KEY-----"))));
|
|
91593
91599
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
91594
91600
|
};
|
|
91595
91601
|
$pkg.$init = $init;
|
|
@@ -119920,7 +119926,7 @@ $packages["github.com/BurntSushi/toml"] = (function() {
|
|
|
119920
119926
|
return $pkg;
|
|
119921
119927
|
})();
|
|
119922
119928
|
$packages["regexp/syntax"] = (function() {
|
|
119923
|
-
var $pkg = {}, $init, sort, strconv, strings, unicode, utf8, patchList, frag, compiler, Error, ErrorCode, Flags, parser, charGroup, ranges, Prog, InstOp, EmptyOp, Inst, Regexp, Op, sliceType, sliceType$1, sliceType$2, sliceType$3, ptrType, sliceType$4, ptrType$1, sliceType$5, arrayType, arrayType$1, ptrType$2, ptrType$3, ptrType$4, sliceType$6, ptrType$5, ptrType$6, ptrType$7, ptrType$8, anyRuneNotNL, anyRune, _Op_index_0, anyTable, code1, code2, code3, perlGroup, code4, code5, code6, code7, code8, code9, code10, code11, code12, code13, code14, code15, code16, code17, posixGroup, instOpNames, makePatchList, Compile, minFoldRune, repeatIsValid, cleanAlt, literalRegexp, Parse, isValidCaptureName, isCharClass, matchRune, mergeCharClass, unicodeTable, cleanClass, appendLiteral, appendRange, appendFoldedRange, appendClass, appendFoldedClass, appendNegatedClass, appendTable, appendNegatedTable, negateClass, checkUTF8, nextRune, isalnum, unhex, IsWordChar, bw, dumpProg, u32, dumpInst, writeRegexp, escape, simplify1;
|
|
119929
|
+
var $pkg = {}, $init, sort, strconv, strings, unicode, utf8, patchList, frag, compiler, Error, ErrorCode, Flags, parser, charGroup, ranges, Prog, InstOp, EmptyOp, Inst, Regexp, Op, sliceType, sliceType$1, sliceType$2, sliceType$3, ptrType, sliceType$4, ptrType$1, sliceType$5, arrayType, arrayType$1, ptrType$2, ptrType$3, ptrType$4, sliceType$6, ptrType$5, ptrType$6, ptrType$7, mapType, ptrType$8, anyRuneNotNL, anyRune, _Op_index_0, anyTable, code1, code2, code3, perlGroup, code4, code5, code6, code7, code8, code9, code10, code11, code12, code13, code14, code15, code16, code17, posixGroup, instOpNames, makePatchList, Compile, minFoldRune, repeatIsValid, cleanAlt, literalRegexp, Parse, parse, isValidCaptureName, isCharClass, matchRune, mergeCharClass, unicodeTable, cleanClass, appendLiteral, appendRange, appendFoldedRange, appendClass, appendFoldedClass, appendNegatedClass, appendTable, appendNegatedTable, negateClass, checkUTF8, nextRune, isalnum, unhex, IsWordChar, bw, dumpProg, u32, dumpInst, writeRegexp, escape, simplify1;
|
|
119924
119930
|
sort = $packages["sort"];
|
|
119925
119931
|
strconv = $packages["strconv"];
|
|
119926
119932
|
strings = $packages["strings"];
|
|
@@ -119966,7 +119972,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
119966
119972
|
});
|
|
119967
119973
|
ErrorCode = $pkg.ErrorCode = $newType(8, $kindString, "syntax.ErrorCode", true, "regexp/syntax", true, null);
|
|
119968
119974
|
Flags = $pkg.Flags = $newType(2, $kindUint16, "syntax.Flags", true, "regexp/syntax", true, null);
|
|
119969
|
-
parser = $pkg.parser = $newType(0, $kindStruct, "syntax.parser", true, "regexp/syntax", false, function(flags_, stack_, free_, numCap_, wholeRegexp_, tmpClass_) {
|
|
119975
|
+
parser = $pkg.parser = $newType(0, $kindStruct, "syntax.parser", true, "regexp/syntax", false, function(flags_, stack_, free_, numCap_, wholeRegexp_, tmpClass_, numRegexp_, height_) {
|
|
119970
119976
|
this.$val = this;
|
|
119971
119977
|
if (arguments.length === 0) {
|
|
119972
119978
|
this.flags = 0;
|
|
@@ -119975,6 +119981,8 @@ $packages["regexp/syntax"] = (function() {
|
|
|
119975
119981
|
this.numCap = 0;
|
|
119976
119982
|
this.wholeRegexp = "";
|
|
119977
119983
|
this.tmpClass = sliceType.nil;
|
|
119984
|
+
this.numRegexp = 0;
|
|
119985
|
+
this.height = false;
|
|
119978
119986
|
return;
|
|
119979
119987
|
}
|
|
119980
119988
|
this.flags = flags_;
|
|
@@ -119983,6 +119991,8 @@ $packages["regexp/syntax"] = (function() {
|
|
|
119983
119991
|
this.numCap = numCap_;
|
|
119984
119992
|
this.wholeRegexp = wholeRegexp_;
|
|
119985
119993
|
this.tmpClass = tmpClass_;
|
|
119994
|
+
this.numRegexp = numRegexp_;
|
|
119995
|
+
this.height = height_;
|
|
119986
119996
|
});
|
|
119987
119997
|
charGroup = $pkg.charGroup = $newType(0, $kindStruct, "syntax.charGroup", true, "regexp/syntax", false, function(sign_, class$1_) {
|
|
119988
119998
|
this.$val = this;
|
|
@@ -120074,6 +120084,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
120074
120084
|
ptrType$5 = $ptrType(compiler);
|
|
120075
120085
|
ptrType$6 = $ptrType(Error);
|
|
120076
120086
|
ptrType$7 = $ptrType(parser);
|
|
120087
|
+
mapType = $mapType(ptrType$1, $Int);
|
|
120077
120088
|
ptrType$8 = $ptrType(Inst);
|
|
120078
120089
|
makePatchList = function(n) {
|
|
120079
120090
|
var n;
|
|
@@ -120386,6 +120397,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
120386
120397
|
Regexp.copy(re, new Regexp.ptr(0, 0, sliceType$5.nil, arrayType.zero(), sliceType.nil, arrayType$1.zero(), 0, 0, 0, ""));
|
|
120387
120398
|
} else {
|
|
120388
120399
|
re = new Regexp.ptr(0, 0, sliceType$5.nil, arrayType.zero(), sliceType.nil, arrayType$1.zero(), 0, 0, 0, "");
|
|
120400
|
+
p.numRegexp = p.numRegexp + (1) >> 0;
|
|
120389
120401
|
}
|
|
120390
120402
|
re.Op = op;
|
|
120391
120403
|
return re;
|
|
@@ -120394,10 +120406,62 @@ $packages["regexp/syntax"] = (function() {
|
|
|
120394
120406
|
parser.ptr.prototype.reuse = function(re) {
|
|
120395
120407
|
var p, re;
|
|
120396
120408
|
p = this;
|
|
120409
|
+
if (!(p.height === false)) {
|
|
120410
|
+
delete p.height[ptrType$1.keyFor(re)];
|
|
120411
|
+
}
|
|
120397
120412
|
re.Sub0[0] = p.free;
|
|
120398
120413
|
p.free = re;
|
|
120399
120414
|
};
|
|
120400
120415
|
parser.prototype.reuse = function(re) { return this.$val.reuse(re); };
|
|
120416
|
+
parser.ptr.prototype.checkHeight = function(re) {
|
|
120417
|
+
var _i, _ref, p, re, re$1;
|
|
120418
|
+
p = this;
|
|
120419
|
+
if (p.numRegexp < 1000) {
|
|
120420
|
+
return;
|
|
120421
|
+
}
|
|
120422
|
+
if (p.height === false) {
|
|
120423
|
+
p.height = {};
|
|
120424
|
+
_ref = p.stack;
|
|
120425
|
+
_i = 0;
|
|
120426
|
+
while (true) {
|
|
120427
|
+
if (!(_i < _ref.$length)) { break; }
|
|
120428
|
+
re$1 = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
120429
|
+
p.checkHeight(re$1);
|
|
120430
|
+
_i++;
|
|
120431
|
+
}
|
|
120432
|
+
}
|
|
120433
|
+
if (p.calcHeight(re, true) > 1000) {
|
|
120434
|
+
$panic(new ErrorCode("regexp/syntax: internal error"));
|
|
120435
|
+
}
|
|
120436
|
+
};
|
|
120437
|
+
parser.prototype.checkHeight = function(re) { return this.$val.checkHeight(re); };
|
|
120438
|
+
parser.ptr.prototype.calcHeight = function(re, force) {
|
|
120439
|
+
var _entry, _i, _key, _ref, _tuple, force, h, h$1, hsub, ok, p, re, sub;
|
|
120440
|
+
p = this;
|
|
120441
|
+
if (!force) {
|
|
120442
|
+
_tuple = (_entry = p.height[ptrType$1.keyFor(re)], _entry !== undefined ? [_entry.v, true] : [0, false]);
|
|
120443
|
+
h = _tuple[0];
|
|
120444
|
+
ok = _tuple[1];
|
|
120445
|
+
if (ok) {
|
|
120446
|
+
return h;
|
|
120447
|
+
}
|
|
120448
|
+
}
|
|
120449
|
+
h$1 = 1;
|
|
120450
|
+
_ref = re.Sub;
|
|
120451
|
+
_i = 0;
|
|
120452
|
+
while (true) {
|
|
120453
|
+
if (!(_i < _ref.$length)) { break; }
|
|
120454
|
+
sub = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
120455
|
+
hsub = p.calcHeight(sub, false);
|
|
120456
|
+
if (h$1 < (1 + hsub >> 0)) {
|
|
120457
|
+
h$1 = 1 + hsub >> 0;
|
|
120458
|
+
}
|
|
120459
|
+
_i++;
|
|
120460
|
+
}
|
|
120461
|
+
_key = re; (p.height || $throwRuntimeError("assignment to entry in nil map"))[ptrType$1.keyFor(_key)] = { k: _key, v: h$1 };
|
|
120462
|
+
return h$1;
|
|
120463
|
+
};
|
|
120464
|
+
parser.prototype.calcHeight = function(re, force) { return this.$val.calcHeight(re, force); };
|
|
120401
120465
|
parser.ptr.prototype.push = function(re) {
|
|
120402
120466
|
var p, re, x, x$1, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$2, x$3, x$4, x$5, x$6, x$7, x$8, x$9;
|
|
120403
120467
|
p = this;
|
|
@@ -120419,6 +120483,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
120419
120483
|
p.maybeConcat(-1, 0);
|
|
120420
120484
|
}
|
|
120421
120485
|
p.stack = $append(p.stack, re);
|
|
120486
|
+
p.checkHeight(re);
|
|
120422
120487
|
return re;
|
|
120423
120488
|
};
|
|
120424
120489
|
parser.prototype.push = function(re) { return this.$val.push(re); };
|
|
@@ -120512,6 +120577,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
120512
120577
|
re.Sub = $subslice(new sliceType$5(re.Sub0), 0, 1);
|
|
120513
120578
|
(x$2 = re.Sub, (0 >= x$2.$length ? ($throwRuntimeError("index out of range"), undefined) : x$2.$array[x$2.$offset + 0] = sub));
|
|
120514
120579
|
(x$3 = p.stack, x$4 = n - 1 >> 0, ((x$4 < 0 || x$4 >= x$3.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$3.$array[x$3.$offset + x$4] = re));
|
|
120580
|
+
p.checkHeight(re);
|
|
120515
120581
|
if ((op === 17) && (min >= 2 || max >= 2) && !repeatIsValid(re, 1000)) {
|
|
120516
120582
|
return ["", new Error.ptr("invalid repeat count", $substring(before, 0, (before.length - after.length >> 0)))];
|
|
120517
120583
|
}
|
|
@@ -120942,45 +121008,79 @@ $packages["regexp/syntax"] = (function() {
|
|
|
120942
121008
|
return re;
|
|
120943
121009
|
};
|
|
120944
121010
|
Parse = function(s, flags) {
|
|
120945
|
-
var
|
|
120946
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true;
|
|
121011
|
+
var _r, flags, s, $s, $r;
|
|
121012
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; flags = $f.flags; s = $f.s; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
121013
|
+
_r = parse(s, flags); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
121014
|
+
$s = -1; return _r;
|
|
121015
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: Parse }; } $f._r = _r; $f.flags = flags; $f.s = s; $f.$s = $s; $f.$r = $r; return $f;
|
|
121016
|
+
};
|
|
121017
|
+
$pkg.Parse = Parse;
|
|
121018
|
+
parse = function(s, flags) {
|
|
121019
|
+
var _, _2, _3, _4, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _struct, _tmp, _tmp$1, _tmp$10, _tmp$11, _tmp$12, _tmp$13, _tmp$14, _tmp$15, _tmp$16, _tmp$17, _tmp$18, _tmp$19, _tmp$2, _tmp$20, _tmp$21, _tmp$22, _tmp$23, _tmp$24, _tmp$25, _tmp$26, _tmp$27, _tmp$28, _tmp$29, _tmp$3, _tmp$30, _tmp$31, _tmp$4, _tmp$5, _tmp$6, _tmp$7, _tmp$8, _tmp$9, _tuple, _tuple$1, _tuple$2, _tuple$3, _tuple$4, _tuple$5, _tuple$6, _tuple$7, _tuple$8, _tuple$9, after, after$1, before, before$1, c, c$1, err, err$1, err$2, err$3, flags, i, lastRepeat, lit, max, min, n, ok, op, p, r, r$1, re, repeat, rest, rest$1, rest$2, s, t, x, $s, $deferred, $r;
|
|
121020
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _ = $f._; _2 = $f._2; _3 = $f._3; _4 = $f._4; _r = $f._r; _r$1 = $f._r$1; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _r$5 = $f._r$5; _r$6 = $f._r$6; _r$7 = $f._r$7; _struct = $f._struct; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; _tmp$10 = $f._tmp$10; _tmp$11 = $f._tmp$11; _tmp$12 = $f._tmp$12; _tmp$13 = $f._tmp$13; _tmp$14 = $f._tmp$14; _tmp$15 = $f._tmp$15; _tmp$16 = $f._tmp$16; _tmp$17 = $f._tmp$17; _tmp$18 = $f._tmp$18; _tmp$19 = $f._tmp$19; _tmp$2 = $f._tmp$2; _tmp$20 = $f._tmp$20; _tmp$21 = $f._tmp$21; _tmp$22 = $f._tmp$22; _tmp$23 = $f._tmp$23; _tmp$24 = $f._tmp$24; _tmp$25 = $f._tmp$25; _tmp$26 = $f._tmp$26; _tmp$27 = $f._tmp$27; _tmp$28 = $f._tmp$28; _tmp$29 = $f._tmp$29; _tmp$3 = $f._tmp$3; _tmp$30 = $f._tmp$30; _tmp$31 = $f._tmp$31; _tmp$4 = $f._tmp$4; _tmp$5 = $f._tmp$5; _tmp$6 = $f._tmp$6; _tmp$7 = $f._tmp$7; _tmp$8 = $f._tmp$8; _tmp$9 = $f._tmp$9; _tuple = $f._tuple; _tuple$1 = $f._tuple$1; _tuple$2 = $f._tuple$2; _tuple$3 = $f._tuple$3; _tuple$4 = $f._tuple$4; _tuple$5 = $f._tuple$5; _tuple$6 = $f._tuple$6; _tuple$7 = $f._tuple$7; _tuple$8 = $f._tuple$8; _tuple$9 = $f._tuple$9; after = $f.after; after$1 = $f.after$1; before = $f.before; before$1 = $f.before$1; c = $f.c; c$1 = $f.c$1; err = $f.err; err$1 = $f.err$1; err$2 = $f.err$2; err$3 = $f.err$3; flags = $f.flags; i = $f.i; lastRepeat = $f.lastRepeat; lit = $f.lit; max = $f.max; min = $f.min; n = $f.n; ok = $f.ok; op = $f.op; p = $f.p; r = $f.r; r$1 = $f.r$1; re = $f.re; repeat = $f.repeat; rest = $f.rest; rest$1 = $f.rest$1; rest$2 = $f.rest$2; s = $f.s; t = $f.t; x = $f.x; $s = $f.$s; $deferred = $f.$deferred; $r = $f.$r; } var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
|
|
121021
|
+
err = [err];
|
|
121022
|
+
s = [s];
|
|
121023
|
+
_ = ptrType$1.nil;
|
|
121024
|
+
err[0] = $ifaceNil;
|
|
121025
|
+
$deferred.push([(function(err, s) { return function() {
|
|
121026
|
+
var _1, r;
|
|
121027
|
+
r = $recover();
|
|
121028
|
+
_1 = r;
|
|
121029
|
+
if ($interfaceIsEqual(_1, $ifaceNil)) {
|
|
121030
|
+
} else if ($interfaceIsEqual(_1, new ErrorCode(("regexp/syntax: internal error")))) {
|
|
121031
|
+
err[0] = new Error.ptr("regexp/syntax: internal error", s[0]);
|
|
121032
|
+
} else {
|
|
121033
|
+
$panic(r);
|
|
121034
|
+
}
|
|
121035
|
+
}; })(err, s), []]);
|
|
120947
121036
|
if (!((((flags & 2) >>> 0) === 0))) {
|
|
120948
|
-
err = checkUTF8(s);
|
|
120949
|
-
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
120950
|
-
|
|
121037
|
+
err$1 = checkUTF8(s[0]);
|
|
121038
|
+
if (!($interfaceIsEqual(err$1, $ifaceNil))) {
|
|
121039
|
+
_tmp = ptrType$1.nil;
|
|
121040
|
+
_tmp$1 = err$1;
|
|
121041
|
+
_ = _tmp;
|
|
121042
|
+
err[0] = _tmp$1;
|
|
121043
|
+
$s = -1; return [_, err[0]];
|
|
120951
121044
|
}
|
|
120952
|
-
$
|
|
121045
|
+
_tmp$2 = literalRegexp(s[0], flags);
|
|
121046
|
+
_tmp$3 = $ifaceNil;
|
|
121047
|
+
_ = _tmp$2;
|
|
121048
|
+
err[0] = _tmp$3;
|
|
121049
|
+
$s = -1; return [_, err[0]];
|
|
120953
121050
|
}
|
|
120954
|
-
p = new parser.ptr(0, sliceType$5.nil, ptrType$1.nil, 0, "", sliceType.nil);
|
|
120955
|
-
err$1 = $ifaceNil;
|
|
121051
|
+
p = new parser.ptr(0, sliceType$5.nil, ptrType$1.nil, 0, "", sliceType.nil, 0, false);
|
|
120956
121052
|
c = 0;
|
|
120957
121053
|
op = 0;
|
|
120958
121054
|
lastRepeat = "";
|
|
120959
121055
|
p.flags = flags;
|
|
120960
|
-
p.wholeRegexp = s;
|
|
120961
|
-
t = s;
|
|
121056
|
+
p.wholeRegexp = s[0];
|
|
121057
|
+
t = s[0];
|
|
120962
121058
|
/* while (true) { */ case 1:
|
|
120963
121059
|
/* if (!(!(t === ""))) { break; } */ if(!(!(t === ""))) { $s = 2; continue; }
|
|
120964
121060
|
repeat = "";
|
|
120965
|
-
|
|
120966
|
-
/* */ if (
|
|
120967
|
-
/* */ if (
|
|
120968
|
-
/* */ if (
|
|
120969
|
-
/* */ if (
|
|
120970
|
-
/* */ if (
|
|
120971
|
-
/* */ if (
|
|
120972
|
-
/* */ if (
|
|
120973
|
-
/* */ if ((
|
|
120974
|
-
/* */ if (
|
|
120975
|
-
/* */ if (
|
|
121061
|
+
_2 = t.charCodeAt(0);
|
|
121062
|
+
/* */ if (_2 === (40)) { $s = 4; continue; }
|
|
121063
|
+
/* */ if (_2 === (124)) { $s = 5; continue; }
|
|
121064
|
+
/* */ if (_2 === (41)) { $s = 6; continue; }
|
|
121065
|
+
/* */ if (_2 === (94)) { $s = 7; continue; }
|
|
121066
|
+
/* */ if (_2 === (36)) { $s = 8; continue; }
|
|
121067
|
+
/* */ if (_2 === (46)) { $s = 9; continue; }
|
|
121068
|
+
/* */ if (_2 === (91)) { $s = 10; continue; }
|
|
121069
|
+
/* */ if ((_2 === (42)) || (_2 === (43)) || (_2 === (63))) { $s = 11; continue; }
|
|
121070
|
+
/* */ if (_2 === (123)) { $s = 12; continue; }
|
|
121071
|
+
/* */ if (_2 === (92)) { $s = 13; continue; }
|
|
120976
121072
|
/* */ $s = 14; continue;
|
|
120977
|
-
/* if (
|
|
121073
|
+
/* if (_2 === (40)) { */ case 4:
|
|
120978
121074
|
if (!((((p.flags & 64) >>> 0) === 0)) && t.length >= 2 && (t.charCodeAt(1) === 63)) {
|
|
120979
121075
|
_tuple = p.parsePerlFlags(t);
|
|
120980
121076
|
t = _tuple[0];
|
|
120981
|
-
err
|
|
120982
|
-
if (!($interfaceIsEqual(err
|
|
120983
|
-
$
|
|
121077
|
+
err[0] = _tuple[1];
|
|
121078
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
121079
|
+
_tmp$4 = ptrType$1.nil;
|
|
121080
|
+
_tmp$5 = err[0];
|
|
121081
|
+
_ = _tmp$4;
|
|
121082
|
+
err[0] = _tmp$5;
|
|
121083
|
+
$s = -1; return [_, err[0]];
|
|
120984
121084
|
}
|
|
120985
121085
|
/* break; */ $s = 3; continue;
|
|
120986
121086
|
}
|
|
@@ -120988,23 +121088,31 @@ $packages["regexp/syntax"] = (function() {
|
|
|
120988
121088
|
p.op(128).Cap = p.numCap;
|
|
120989
121089
|
t = $substring(t, 1);
|
|
120990
121090
|
$s = 15; continue;
|
|
120991
|
-
/* } else if (
|
|
121091
|
+
/* } else if (_2 === (124)) { */ case 5:
|
|
120992
121092
|
_r = p.parseVerticalBar(); /* */ $s = 16; case 16: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
120993
|
-
err
|
|
120994
|
-
if (!($interfaceIsEqual(err
|
|
120995
|
-
$
|
|
121093
|
+
err[0] = _r;
|
|
121094
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
121095
|
+
_tmp$6 = ptrType$1.nil;
|
|
121096
|
+
_tmp$7 = err[0];
|
|
121097
|
+
_ = _tmp$6;
|
|
121098
|
+
err[0] = _tmp$7;
|
|
121099
|
+
$s = -1; return [_, err[0]];
|
|
120996
121100
|
}
|
|
120997
121101
|
t = $substring(t, 1);
|
|
120998
121102
|
$s = 15; continue;
|
|
120999
|
-
/* } else if (
|
|
121103
|
+
/* } else if (_2 === (41)) { */ case 6:
|
|
121000
121104
|
_r$1 = p.parseRightParen(); /* */ $s = 17; case 17: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
121001
|
-
err
|
|
121002
|
-
if (!($interfaceIsEqual(err
|
|
121003
|
-
$
|
|
121105
|
+
err[0] = _r$1;
|
|
121106
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
121107
|
+
_tmp$8 = ptrType$1.nil;
|
|
121108
|
+
_tmp$9 = err[0];
|
|
121109
|
+
_ = _tmp$8;
|
|
121110
|
+
err[0] = _tmp$9;
|
|
121111
|
+
$s = -1; return [_, err[0]];
|
|
121004
121112
|
}
|
|
121005
121113
|
t = $substring(t, 1);
|
|
121006
121114
|
$s = 15; continue;
|
|
121007
|
-
/* } else if (
|
|
121115
|
+
/* } else if (_2 === (94)) { */ case 7:
|
|
121008
121116
|
if (!((((p.flags & 16) >>> 0) === 0))) {
|
|
121009
121117
|
p.op(9);
|
|
121010
121118
|
} else {
|
|
@@ -121012,7 +121120,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
121012
121120
|
}
|
|
121013
121121
|
t = $substring(t, 1);
|
|
121014
121122
|
$s = 15; continue;
|
|
121015
|
-
/* } else if (
|
|
121123
|
+
/* } else if (_2 === (36)) { */ case 8:
|
|
121016
121124
|
if (!((((p.flags & 16) >>> 0) === 0))) {
|
|
121017
121125
|
_struct = p.op(10);
|
|
121018
121126
|
_struct.Flags = (_struct.Flags | (256)) >>> 0;
|
|
@@ -121021,7 +121129,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
121021
121129
|
}
|
|
121022
121130
|
t = $substring(t, 1);
|
|
121023
121131
|
$s = 15; continue;
|
|
121024
|
-
/* } else if (
|
|
121132
|
+
/* } else if (_2 === (46)) { */ case 9:
|
|
121025
121133
|
if (!((((p.flags & 8) >>> 0) === 0))) {
|
|
121026
121134
|
p.op(6);
|
|
121027
121135
|
} else {
|
|
@@ -121029,36 +121137,44 @@ $packages["regexp/syntax"] = (function() {
|
|
|
121029
121137
|
}
|
|
121030
121138
|
t = $substring(t, 1);
|
|
121031
121139
|
$s = 15; continue;
|
|
121032
|
-
/* } else if (
|
|
121140
|
+
/* } else if (_2 === (91)) { */ case 10:
|
|
121033
121141
|
_r$2 = p.parseClass(t); /* */ $s = 18; case 18: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
121034
121142
|
_tuple$1 = _r$2;
|
|
121035
121143
|
t = _tuple$1[0];
|
|
121036
|
-
err
|
|
121037
|
-
if (!($interfaceIsEqual(err
|
|
121038
|
-
$
|
|
121144
|
+
err[0] = _tuple$1[1];
|
|
121145
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
121146
|
+
_tmp$10 = ptrType$1.nil;
|
|
121147
|
+
_tmp$11 = err[0];
|
|
121148
|
+
_ = _tmp$10;
|
|
121149
|
+
err[0] = _tmp$11;
|
|
121150
|
+
$s = -1; return [_, err[0]];
|
|
121039
121151
|
}
|
|
121040
121152
|
$s = 15; continue;
|
|
121041
|
-
/* } else if ((
|
|
121153
|
+
/* } else if ((_2 === (42)) || (_2 === (43)) || (_2 === (63))) { */ case 11:
|
|
121042
121154
|
before = t;
|
|
121043
|
-
|
|
121044
|
-
if (
|
|
121155
|
+
_3 = t.charCodeAt(0);
|
|
121156
|
+
if (_3 === (42)) {
|
|
121045
121157
|
op = 14;
|
|
121046
|
-
} else if (
|
|
121158
|
+
} else if (_3 === (43)) {
|
|
121047
121159
|
op = 15;
|
|
121048
|
-
} else if (
|
|
121160
|
+
} else if (_3 === (63)) {
|
|
121049
121161
|
op = 16;
|
|
121050
121162
|
}
|
|
121051
121163
|
after = $substring(t, 1);
|
|
121052
121164
|
_tuple$2 = p.repeat(op, 0, 0, before, after, lastRepeat);
|
|
121053
121165
|
after = _tuple$2[0];
|
|
121054
|
-
err
|
|
121055
|
-
if (!($interfaceIsEqual(err
|
|
121056
|
-
$
|
|
121166
|
+
err[0] = _tuple$2[1];
|
|
121167
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
121168
|
+
_tmp$12 = ptrType$1.nil;
|
|
121169
|
+
_tmp$13 = err[0];
|
|
121170
|
+
_ = _tmp$12;
|
|
121171
|
+
err[0] = _tmp$13;
|
|
121172
|
+
$s = -1; return [_, err[0]];
|
|
121057
121173
|
}
|
|
121058
121174
|
repeat = before;
|
|
121059
121175
|
t = after;
|
|
121060
121176
|
$s = 15; continue;
|
|
121061
|
-
/* } else if (
|
|
121177
|
+
/* } else if (_2 === (123)) { */ case 12:
|
|
121062
121178
|
op = 17;
|
|
121063
121179
|
before$1 = t;
|
|
121064
121180
|
_tuple$3 = p.parseRepeat(t);
|
|
@@ -121072,35 +121188,47 @@ $packages["regexp/syntax"] = (function() {
|
|
|
121072
121188
|
/* break; */ $s = 3; continue;
|
|
121073
121189
|
}
|
|
121074
121190
|
if (min < 0 || min > 1000 || max > 1000 || max >= 0 && min > max) {
|
|
121075
|
-
$
|
|
121191
|
+
_tmp$14 = ptrType$1.nil;
|
|
121192
|
+
_tmp$15 = new Error.ptr("invalid repeat count", $substring(before$1, 0, (before$1.length - after$1.length >> 0)));
|
|
121193
|
+
_ = _tmp$14;
|
|
121194
|
+
err[0] = _tmp$15;
|
|
121195
|
+
$s = -1; return [_, err[0]];
|
|
121076
121196
|
}
|
|
121077
121197
|
_tuple$4 = p.repeat(op, min, max, before$1, after$1, lastRepeat);
|
|
121078
121198
|
after$1 = _tuple$4[0];
|
|
121079
|
-
err
|
|
121080
|
-
if (!($interfaceIsEqual(err
|
|
121081
|
-
$
|
|
121199
|
+
err[0] = _tuple$4[1];
|
|
121200
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
121201
|
+
_tmp$16 = ptrType$1.nil;
|
|
121202
|
+
_tmp$17 = err[0];
|
|
121203
|
+
_ = _tmp$16;
|
|
121204
|
+
err[0] = _tmp$17;
|
|
121205
|
+
$s = -1; return [_, err[0]];
|
|
121082
121206
|
}
|
|
121083
121207
|
repeat = before$1;
|
|
121084
121208
|
t = after$1;
|
|
121085
121209
|
$s = 15; continue;
|
|
121086
|
-
/* } else if (
|
|
121210
|
+
/* } else if (_2 === (92)) { */ case 13:
|
|
121087
121211
|
if (!((((p.flags & 64) >>> 0) === 0)) && t.length >= 2) {
|
|
121088
|
-
|
|
121089
|
-
if (
|
|
121212
|
+
_4 = t.charCodeAt(1);
|
|
121213
|
+
if (_4 === (65)) {
|
|
121090
121214
|
p.op(9);
|
|
121091
121215
|
t = $substring(t, 2);
|
|
121092
121216
|
/* break BigSwitch; */ $s = 3; continue s;
|
|
121093
|
-
} else if (
|
|
121217
|
+
} else if (_4 === (98)) {
|
|
121094
121218
|
p.op(11);
|
|
121095
121219
|
t = $substring(t, 2);
|
|
121096
121220
|
/* break BigSwitch; */ $s = 3; continue s;
|
|
121097
|
-
} else if (
|
|
121221
|
+
} else if (_4 === (66)) {
|
|
121098
121222
|
p.op(12);
|
|
121099
121223
|
t = $substring(t, 2);
|
|
121100
121224
|
/* break BigSwitch; */ $s = 3; continue s;
|
|
121101
|
-
} else if (
|
|
121102
|
-
$
|
|
121103
|
-
|
|
121225
|
+
} else if (_4 === (67)) {
|
|
121226
|
+
_tmp$18 = ptrType$1.nil;
|
|
121227
|
+
_tmp$19 = new Error.ptr("invalid escape sequence", $substring(t, 0, 2));
|
|
121228
|
+
_ = _tmp$18;
|
|
121229
|
+
err[0] = _tmp$19;
|
|
121230
|
+
$s = -1; return [_, err[0]];
|
|
121231
|
+
} else if (_4 === (81)) {
|
|
121104
121232
|
lit = "";
|
|
121105
121233
|
i = strings.Index(t, "\\E");
|
|
121106
121234
|
if (i < 0) {
|
|
@@ -121117,13 +121245,17 @@ $packages["regexp/syntax"] = (function() {
|
|
|
121117
121245
|
rest = _tuple$5[1];
|
|
121118
121246
|
err$2 = _tuple$5[2];
|
|
121119
121247
|
if (!($interfaceIsEqual(err$2, $ifaceNil))) {
|
|
121120
|
-
$
|
|
121248
|
+
_tmp$20 = ptrType$1.nil;
|
|
121249
|
+
_tmp$21 = err$2;
|
|
121250
|
+
_ = _tmp$20;
|
|
121251
|
+
err[0] = _tmp$21;
|
|
121252
|
+
$s = -1; return [_, err[0]];
|
|
121121
121253
|
}
|
|
121122
121254
|
p.literal(c$1);
|
|
121123
121255
|
lit = rest;
|
|
121124
121256
|
}
|
|
121125
121257
|
/* break BigSwitch; */ $s = 3; continue s;
|
|
121126
|
-
} else if (
|
|
121258
|
+
} else if (_4 === (122)) {
|
|
121127
121259
|
p.op(10);
|
|
121128
121260
|
t = $substring(t, 2);
|
|
121129
121261
|
/* break BigSwitch; */ $s = 3; continue s;
|
|
@@ -121140,7 +121272,11 @@ $packages["regexp/syntax"] = (function() {
|
|
|
121140
121272
|
rest$1 = _tuple$6[1];
|
|
121141
121273
|
err$3 = _tuple$6[2];
|
|
121142
121274
|
if (!($interfaceIsEqual(err$3, $ifaceNil))) {
|
|
121143
|
-
$
|
|
121275
|
+
_tmp$22 = ptrType$1.nil;
|
|
121276
|
+
_tmp$23 = err$3;
|
|
121277
|
+
_ = _tmp$22;
|
|
121278
|
+
err[0] = _tmp$23;
|
|
121279
|
+
$s = -1; return [_, err[0]];
|
|
121144
121280
|
}
|
|
121145
121281
|
if (!(r === sliceType.nil)) {
|
|
121146
121282
|
re.Rune = r;
|
|
@@ -121163,9 +121299,13 @@ $packages["regexp/syntax"] = (function() {
|
|
|
121163
121299
|
_tuple$8 = p.parseEscape(t);
|
|
121164
121300
|
c = _tuple$8[0];
|
|
121165
121301
|
t = _tuple$8[1];
|
|
121166
|
-
err
|
|
121167
|
-
if (!($interfaceIsEqual(err
|
|
121168
|
-
$
|
|
121302
|
+
err[0] = _tuple$8[2];
|
|
121303
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
121304
|
+
_tmp$24 = ptrType$1.nil;
|
|
121305
|
+
_tmp$25 = err[0];
|
|
121306
|
+
_ = _tmp$24;
|
|
121307
|
+
err[0] = _tmp$25;
|
|
121308
|
+
$s = -1; return [_, err[0]];
|
|
121169
121309
|
}
|
|
121170
121310
|
p.literal(c);
|
|
121171
121311
|
$s = 15; continue;
|
|
@@ -121173,9 +121313,13 @@ $packages["regexp/syntax"] = (function() {
|
|
|
121173
121313
|
_tuple$9 = nextRune(t);
|
|
121174
121314
|
c = _tuple$9[0];
|
|
121175
121315
|
t = _tuple$9[1];
|
|
121176
|
-
err
|
|
121177
|
-
if (!($interfaceIsEqual(err
|
|
121178
|
-
$
|
|
121316
|
+
err[0] = _tuple$9[2];
|
|
121317
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
121318
|
+
_tmp$26 = ptrType$1.nil;
|
|
121319
|
+
_tmp$27 = err[0];
|
|
121320
|
+
_ = _tmp$26;
|
|
121321
|
+
err[0] = _tmp$27;
|
|
121322
|
+
$s = -1; return [_, err[0]];
|
|
121179
121323
|
}
|
|
121180
121324
|
p.literal(c);
|
|
121181
121325
|
/* } */ case 15:
|
|
@@ -121194,12 +121338,19 @@ $packages["regexp/syntax"] = (function() {
|
|
|
121194
121338
|
_r$7;
|
|
121195
121339
|
n = p.stack.$length;
|
|
121196
121340
|
if (!((n === 1))) {
|
|
121197
|
-
$
|
|
121198
|
-
|
|
121199
|
-
|
|
121200
|
-
|
|
121341
|
+
_tmp$28 = ptrType$1.nil;
|
|
121342
|
+
_tmp$29 = new Error.ptr("missing closing )", s[0]);
|
|
121343
|
+
_ = _tmp$28;
|
|
121344
|
+
err[0] = _tmp$29;
|
|
121345
|
+
$s = -1; return [_, err[0]];
|
|
121346
|
+
}
|
|
121347
|
+
_tmp$30 = (x = p.stack, (0 >= x.$length ? ($throwRuntimeError("index out of range"), undefined) : x.$array[x.$offset + 0]));
|
|
121348
|
+
_tmp$31 = $ifaceNil;
|
|
121349
|
+
_ = _tmp$30;
|
|
121350
|
+
err[0] = _tmp$31;
|
|
121351
|
+
$s = -1; return [_, err[0]];
|
|
121352
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if (!$curGoroutine.asleep) { return [_, err[0]]; } if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: parse }; } $f._ = _; $f._2 = _2; $f._3 = _3; $f._4 = _4; $f._r = _r; $f._r$1 = _r$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f._r$5 = _r$5; $f._r$6 = _r$6; $f._r$7 = _r$7; $f._struct = _struct; $f._tmp = _tmp; $f._tmp$1 = _tmp$1; $f._tmp$10 = _tmp$10; $f._tmp$11 = _tmp$11; $f._tmp$12 = _tmp$12; $f._tmp$13 = _tmp$13; $f._tmp$14 = _tmp$14; $f._tmp$15 = _tmp$15; $f._tmp$16 = _tmp$16; $f._tmp$17 = _tmp$17; $f._tmp$18 = _tmp$18; $f._tmp$19 = _tmp$19; $f._tmp$2 = _tmp$2; $f._tmp$20 = _tmp$20; $f._tmp$21 = _tmp$21; $f._tmp$22 = _tmp$22; $f._tmp$23 = _tmp$23; $f._tmp$24 = _tmp$24; $f._tmp$25 = _tmp$25; $f._tmp$26 = _tmp$26; $f._tmp$27 = _tmp$27; $f._tmp$28 = _tmp$28; $f._tmp$29 = _tmp$29; $f._tmp$3 = _tmp$3; $f._tmp$30 = _tmp$30; $f._tmp$31 = _tmp$31; $f._tmp$4 = _tmp$4; $f._tmp$5 = _tmp$5; $f._tmp$6 = _tmp$6; $f._tmp$7 = _tmp$7; $f._tmp$8 = _tmp$8; $f._tmp$9 = _tmp$9; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f._tuple$2 = _tuple$2; $f._tuple$3 = _tuple$3; $f._tuple$4 = _tuple$4; $f._tuple$5 = _tuple$5; $f._tuple$6 = _tuple$6; $f._tuple$7 = _tuple$7; $f._tuple$8 = _tuple$8; $f._tuple$9 = _tuple$9; $f.after = after; $f.after$1 = after$1; $f.before = before; $f.before$1 = before$1; $f.c = c; $f.c$1 = c$1; $f.err = err; $f.err$1 = err$1; $f.err$2 = err$2; $f.err$3 = err$3; $f.flags = flags; $f.i = i; $f.lastRepeat = lastRepeat; $f.lit = lit; $f.max = max; $f.min = min; $f.n = n; $f.ok = ok; $f.op = op; $f.p = p; $f.r = r; $f.r$1 = r$1; $f.re = re; $f.repeat = repeat; $f.rest = rest; $f.rest$1 = rest$1; $f.rest$2 = rest$2; $f.s = s; $f.t = t; $f.x = x; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
121201
121353
|
};
|
|
121202
|
-
$pkg.Parse = Parse;
|
|
121203
121354
|
parser.ptr.prototype.parseRepeat = function(s) {
|
|
121204
121355
|
var _tuple, _tuple$1, max, min, ok, ok1, p, rest, s;
|
|
121205
121356
|
min = 0;
|
|
@@ -123220,7 +123371,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
123220
123371
|
ptrType$5.methods = [{prop: "init", name: "init", pkg: "regexp/syntax", typ: $funcType([], [], false)}, {prop: "compile", name: "compile", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [frag], false)}, {prop: "inst", name: "inst", pkg: "regexp/syntax", typ: $funcType([InstOp], [frag], false)}, {prop: "nop", name: "nop", pkg: "regexp/syntax", typ: $funcType([], [frag], false)}, {prop: "fail", name: "fail", pkg: "regexp/syntax", typ: $funcType([], [frag], false)}, {prop: "cap", name: "cap", pkg: "regexp/syntax", typ: $funcType([$Uint32], [frag], false)}, {prop: "cat", name: "cat", pkg: "regexp/syntax", typ: $funcType([frag, frag], [frag], false)}, {prop: "alt", name: "alt", pkg: "regexp/syntax", typ: $funcType([frag, frag], [frag], false)}, {prop: "quest", name: "quest", pkg: "regexp/syntax", typ: $funcType([frag, $Bool], [frag], false)}, {prop: "star", name: "star", pkg: "regexp/syntax", typ: $funcType([frag, $Bool], [frag], false)}, {prop: "plus", name: "plus", pkg: "regexp/syntax", typ: $funcType([frag, $Bool], [frag], false)}, {prop: "empty", name: "empty", pkg: "regexp/syntax", typ: $funcType([EmptyOp], [frag], false)}, {prop: "rune", name: "rune", pkg: "regexp/syntax", typ: $funcType([sliceType, Flags], [frag], false)}];
|
|
123221
123372
|
ptrType$6.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
123222
123373
|
ErrorCode.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
123223
|
-
ptrType$7.methods = [{prop: "newRegexp", name: "newRegexp", pkg: "regexp/syntax", typ: $funcType([Op], [ptrType$1], false)}, {prop: "reuse", name: "reuse", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [], false)}, {prop: "push", name: "push", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [ptrType$1], false)}, {prop: "maybeConcat", name: "maybeConcat", pkg: "regexp/syntax", typ: $funcType([$Int32, Flags], [$Bool], false)}, {prop: "literal", name: "literal", pkg: "regexp/syntax", typ: $funcType([$Int32], [], false)}, {prop: "op", name: "op", pkg: "regexp/syntax", typ: $funcType([Op], [ptrType$1], false)}, {prop: "repeat", name: "repeat", pkg: "regexp/syntax", typ: $funcType([Op, $Int, $Int, $String, $String, $String], [$String, $error], false)}, {prop: "concat", name: "concat", pkg: "regexp/syntax", typ: $funcType([], [ptrType$1], false)}, {prop: "alternate", name: "alternate", pkg: "regexp/syntax", typ: $funcType([], [ptrType$1], false)}, {prop: "collapse", name: "collapse", pkg: "regexp/syntax", typ: $funcType([sliceType$5, Op], [ptrType$1], false)}, {prop: "factor", name: "factor", pkg: "regexp/syntax", typ: $funcType([sliceType$5], [sliceType$5], false)}, {prop: "leadingString", name: "leadingString", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [sliceType, Flags], false)}, {prop: "removeLeadingString", name: "removeLeadingString", pkg: "regexp/syntax", typ: $funcType([ptrType$1, $Int], [ptrType$1], false)}, {prop: "leadingRegexp", name: "leadingRegexp", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [ptrType$1], false)}, {prop: "removeLeadingRegexp", name: "removeLeadingRegexp", pkg: "regexp/syntax", typ: $funcType([ptrType$1, $Bool], [ptrType$1], false)}, {prop: "parseRepeat", name: "parseRepeat", pkg: "regexp/syntax", typ: $funcType([$String], [$Int, $Int, $String, $Bool], false)}, {prop: "parsePerlFlags", name: "parsePerlFlags", pkg: "regexp/syntax", typ: $funcType([$String], [$String, $error], false)}, {prop: "parseInt", name: "parseInt", pkg: "regexp/syntax", typ: $funcType([$String], [$Int, $String, $Bool], false)}, {prop: "parseVerticalBar", name: "parseVerticalBar", pkg: "regexp/syntax", typ: $funcType([], [$error], false)}, {prop: "swapVerticalBar", name: "swapVerticalBar", pkg: "regexp/syntax", typ: $funcType([], [$Bool], false)}, {prop: "parseRightParen", name: "parseRightParen", pkg: "regexp/syntax", typ: $funcType([], [$error], false)}, {prop: "parseEscape", name: "parseEscape", pkg: "regexp/syntax", typ: $funcType([$String], [$Int32, $String, $error], false)}, {prop: "parseClassChar", name: "parseClassChar", pkg: "regexp/syntax", typ: $funcType([$String, $String], [$Int32, $String, $error], false)}, {prop: "parsePerlClassEscape", name: "parsePerlClassEscape", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String], false)}, {prop: "parseNamedClass", name: "parseNamedClass", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String, $error], false)}, {prop: "appendGroup", name: "appendGroup", pkg: "regexp/syntax", typ: $funcType([sliceType, charGroup], [sliceType], false)}, {prop: "parseUnicodeClass", name: "parseUnicodeClass", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String, $error], false)}, {prop: "parseClass", name: "parseClass", pkg: "regexp/syntax", typ: $funcType([$String], [$String, $error], false)}];
|
|
123374
|
+
ptrType$7.methods = [{prop: "newRegexp", name: "newRegexp", pkg: "regexp/syntax", typ: $funcType([Op], [ptrType$1], false)}, {prop: "reuse", name: "reuse", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [], false)}, {prop: "checkHeight", name: "checkHeight", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [], false)}, {prop: "calcHeight", name: "calcHeight", pkg: "regexp/syntax", typ: $funcType([ptrType$1, $Bool], [$Int], false)}, {prop: "push", name: "push", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [ptrType$1], false)}, {prop: "maybeConcat", name: "maybeConcat", pkg: "regexp/syntax", typ: $funcType([$Int32, Flags], [$Bool], false)}, {prop: "literal", name: "literal", pkg: "regexp/syntax", typ: $funcType([$Int32], [], false)}, {prop: "op", name: "op", pkg: "regexp/syntax", typ: $funcType([Op], [ptrType$1], false)}, {prop: "repeat", name: "repeat", pkg: "regexp/syntax", typ: $funcType([Op, $Int, $Int, $String, $String, $String], [$String, $error], false)}, {prop: "concat", name: "concat", pkg: "regexp/syntax", typ: $funcType([], [ptrType$1], false)}, {prop: "alternate", name: "alternate", pkg: "regexp/syntax", typ: $funcType([], [ptrType$1], false)}, {prop: "collapse", name: "collapse", pkg: "regexp/syntax", typ: $funcType([sliceType$5, Op], [ptrType$1], false)}, {prop: "factor", name: "factor", pkg: "regexp/syntax", typ: $funcType([sliceType$5], [sliceType$5], false)}, {prop: "leadingString", name: "leadingString", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [sliceType, Flags], false)}, {prop: "removeLeadingString", name: "removeLeadingString", pkg: "regexp/syntax", typ: $funcType([ptrType$1, $Int], [ptrType$1], false)}, {prop: "leadingRegexp", name: "leadingRegexp", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [ptrType$1], false)}, {prop: "removeLeadingRegexp", name: "removeLeadingRegexp", pkg: "regexp/syntax", typ: $funcType([ptrType$1, $Bool], [ptrType$1], false)}, {prop: "parseRepeat", name: "parseRepeat", pkg: "regexp/syntax", typ: $funcType([$String], [$Int, $Int, $String, $Bool], false)}, {prop: "parsePerlFlags", name: "parsePerlFlags", pkg: "regexp/syntax", typ: $funcType([$String], [$String, $error], false)}, {prop: "parseInt", name: "parseInt", pkg: "regexp/syntax", typ: $funcType([$String], [$Int, $String, $Bool], false)}, {prop: "parseVerticalBar", name: "parseVerticalBar", pkg: "regexp/syntax", typ: $funcType([], [$error], false)}, {prop: "swapVerticalBar", name: "swapVerticalBar", pkg: "regexp/syntax", typ: $funcType([], [$Bool], false)}, {prop: "parseRightParen", name: "parseRightParen", pkg: "regexp/syntax", typ: $funcType([], [$error], false)}, {prop: "parseEscape", name: "parseEscape", pkg: "regexp/syntax", typ: $funcType([$String], [$Int32, $String, $error], false)}, {prop: "parseClassChar", name: "parseClassChar", pkg: "regexp/syntax", typ: $funcType([$String, $String], [$Int32, $String, $error], false)}, {prop: "parsePerlClassEscape", name: "parsePerlClassEscape", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String], false)}, {prop: "parseNamedClass", name: "parseNamedClass", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String, $error], false)}, {prop: "appendGroup", name: "appendGroup", pkg: "regexp/syntax", typ: $funcType([sliceType, charGroup], [sliceType], false)}, {prop: "parseUnicodeClass", name: "parseUnicodeClass", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String, $error], false)}, {prop: "parseClass", name: "parseClass", pkg: "regexp/syntax", typ: $funcType([$String], [$String, $error], false)}];
|
|
123224
123375
|
ranges.methods = [{prop: "Less", name: "Less", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Swap", name: "Swap", pkg: "", typ: $funcType([$Int, $Int], [], false)}];
|
|
123225
123376
|
ptrType.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}, {prop: "skipNop", name: "skipNop", pkg: "regexp/syntax", typ: $funcType([$Uint32], [ptrType$8], false)}, {prop: "Prefix", name: "Prefix", pkg: "", typ: $funcType([], [$String, $Bool], false)}, {prop: "StartCond", name: "StartCond", pkg: "", typ: $funcType([], [EmptyOp], false)}];
|
|
123226
123377
|
InstOp.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
@@ -123231,7 +123382,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
123231
123382
|
frag.init("regexp/syntax", [{prop: "i", name: "i", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "out", name: "out", embedded: false, exported: false, typ: patchList, tag: ""}]);
|
|
123232
123383
|
compiler.init("regexp/syntax", [{prop: "p", name: "p", embedded: false, exported: false, typ: ptrType, tag: ""}]);
|
|
123233
123384
|
Error.init("", [{prop: "Code", name: "Code", embedded: false, exported: true, typ: ErrorCode, tag: ""}, {prop: "Expr", name: "Expr", embedded: false, exported: true, typ: $String, tag: ""}]);
|
|
123234
|
-
parser.init("regexp/syntax", [{prop: "flags", name: "flags", embedded: false, exported: false, typ: Flags, tag: ""}, {prop: "stack", name: "stack", embedded: false, exported: false, typ: sliceType$5, tag: ""}, {prop: "free", name: "free", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "numCap", name: "numCap", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "wholeRegexp", name: "wholeRegexp", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "tmpClass", name: "tmpClass", embedded: false, exported: false, typ: sliceType, tag: ""}]);
|
|
123385
|
+
parser.init("regexp/syntax", [{prop: "flags", name: "flags", embedded: false, exported: false, typ: Flags, tag: ""}, {prop: "stack", name: "stack", embedded: false, exported: false, typ: sliceType$5, tag: ""}, {prop: "free", name: "free", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "numCap", name: "numCap", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "wholeRegexp", name: "wholeRegexp", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "tmpClass", name: "tmpClass", embedded: false, exported: false, typ: sliceType, tag: ""}, {prop: "numRegexp", name: "numRegexp", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "height", name: "height", embedded: false, exported: false, typ: mapType, tag: ""}]);
|
|
123235
123386
|
charGroup.init("regexp/syntax", [{prop: "sign", name: "sign", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "class$1", name: "class", embedded: false, exported: false, typ: sliceType, tag: ""}]);
|
|
123236
123387
|
ranges.init("regexp/syntax", [{prop: "p", name: "p", embedded: false, exported: false, typ: ptrType$2, tag: ""}]);
|
|
123237
123388
|
Prog.init("", [{prop: "Inst", name: "Inst", embedded: false, exported: true, typ: sliceType$4, tag: ""}, {prop: "Start", name: "Start", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "NumCap", name: "NumCap", embedded: false, exported: true, typ: $Int, tag: ""}]);
|
|
@@ -136769,24 +136920,24 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136769
136920
|
/* */ if ($assertType(_ref, sliceType$9, true)[1]) { $s = 10; continue; }
|
|
136770
136921
|
/* */ $s = 11; continue;
|
|
136771
136922
|
/* if ($assertType(_ref, sliceType, true)[1]) { */ case 1:
|
|
136772
|
-
s$
|
|
136773
|
-
h = ($pointerOfStructConversion(((s$
|
|
136923
|
+
s$1[0] = _ref.$val;
|
|
136924
|
+
h = ($pointerOfStructConversion(((s$1.$ptr || (s$1.$ptr = new ptrType$1(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$1)))), ptrType));
|
|
136774
136925
|
$s = -1; return ((h)).$get();
|
|
136775
136926
|
/* } else if ($assertType(_ref, sliceType$1, true)[1]) { */ case 2:
|
|
136776
|
-
s$
|
|
136777
|
-
h$1 = ($pointerOfStructConversion(((s$
|
|
136927
|
+
s$5[0] = _ref.$val;
|
|
136928
|
+
h$1 = ($pointerOfStructConversion(((s$5.$ptr || (s$5.$ptr = new ptrType$2(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$5)))), ptrType));
|
|
136778
136929
|
h$1.Len = $imul(h$1.Len, (2));
|
|
136779
136930
|
h$1.Cap = $imul(h$1.Cap, (2));
|
|
136780
136931
|
$s = -1; return ((h$1)).$get();
|
|
136781
136932
|
/* } else if ($assertType(_ref, sliceType$2, true)[1]) { */ case 3:
|
|
136782
|
-
s$
|
|
136783
|
-
h$2 = ($pointerOfStructConversion(((s$
|
|
136933
|
+
s$6[0] = _ref.$val;
|
|
136934
|
+
h$2 = ($pointerOfStructConversion(((s$6.$ptr || (s$6.$ptr = new ptrType$3(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$6)))), ptrType));
|
|
136784
136935
|
h$2.Len = $imul(h$2.Len, (4));
|
|
136785
136936
|
h$2.Cap = $imul(h$2.Cap, (4));
|
|
136786
136937
|
$s = -1; return ((h$2)).$get();
|
|
136787
136938
|
/* } else if ($assertType(_ref, sliceType$3, true)[1]) { */ case 4:
|
|
136788
|
-
s$
|
|
136789
|
-
h$3 = ($pointerOfStructConversion(((s$
|
|
136939
|
+
s$7[0] = _ref.$val;
|
|
136940
|
+
h$3 = ($pointerOfStructConversion(((s$7.$ptr || (s$7.$ptr = new ptrType$4(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$7)))), ptrType));
|
|
136790
136941
|
h$3.Len = $imul(h$3.Len, (8));
|
|
136791
136942
|
h$3.Cap = $imul(h$3.Cap, (8));
|
|
136792
136943
|
$s = -1; return ((h$3)).$get();
|
|
@@ -136794,32 +136945,32 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136794
136945
|
s$10 = _ref.$val;
|
|
136795
136946
|
$s = -1; return s$10;
|
|
136796
136947
|
/* } else if ($assertType(_ref, sliceType$5, true)[1]) { */ case 6:
|
|
136797
|
-
s$
|
|
136798
|
-
h$4 = ($pointerOfStructConversion(((s$
|
|
136948
|
+
s$8[0] = _ref.$val;
|
|
136949
|
+
h$4 = ($pointerOfStructConversion(((s$8.$ptr || (s$8.$ptr = new ptrType$5(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$8)))), ptrType));
|
|
136799
136950
|
h$4.Len = $imul(h$4.Len, (2));
|
|
136800
136951
|
h$4.Cap = $imul(h$4.Cap, (2));
|
|
136801
136952
|
$s = -1; return ((h$4)).$get();
|
|
136802
136953
|
/* } else if ($assertType(_ref, sliceType$6, true)[1]) { */ case 7:
|
|
136803
|
-
s$
|
|
136804
|
-
h$5 = ($pointerOfStructConversion(((s$
|
|
136954
|
+
s$2[0] = _ref.$val;
|
|
136955
|
+
h$5 = ($pointerOfStructConversion(((s$2.$ptr || (s$2.$ptr = new ptrType$6(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$2)))), ptrType));
|
|
136805
136956
|
h$5.Len = $imul(h$5.Len, (4));
|
|
136806
136957
|
h$5.Cap = $imul(h$5.Cap, (4));
|
|
136807
136958
|
$s = -1; return ((h$5)).$get();
|
|
136808
136959
|
/* } else if ($assertType(_ref, sliceType$7, true)[1]) { */ case 8:
|
|
136809
|
-
s$
|
|
136810
|
-
h$6 = ($pointerOfStructConversion(((s$
|
|
136960
|
+
s$9[0] = _ref.$val;
|
|
136961
|
+
h$6 = ($pointerOfStructConversion(((s$9.$ptr || (s$9.$ptr = new ptrType$7(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$9)))), ptrType));
|
|
136811
136962
|
h$6.Len = $imul(h$6.Len, (8));
|
|
136812
136963
|
h$6.Cap = $imul(h$6.Cap, (8));
|
|
136813
136964
|
$s = -1; return ((h$6)).$get();
|
|
136814
136965
|
/* } else if ($assertType(_ref, sliceType$8, true)[1]) { */ case 9:
|
|
136815
|
-
s$
|
|
136816
|
-
h$7 = ($pointerOfStructConversion(((s$
|
|
136966
|
+
s$4[0] = _ref.$val;
|
|
136967
|
+
h$7 = ($pointerOfStructConversion(((s$4.$ptr || (s$4.$ptr = new ptrType$8(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$4)))), ptrType));
|
|
136817
136968
|
h$7.Len = $imul(h$7.Len, (4));
|
|
136818
136969
|
h$7.Cap = $imul(h$7.Cap, (4));
|
|
136819
136970
|
$s = -1; return ((h$7)).$get();
|
|
136820
136971
|
/* } else if ($assertType(_ref, sliceType$9, true)[1]) { */ case 10:
|
|
136821
|
-
s$
|
|
136822
|
-
h$8 = ($pointerOfStructConversion(((s$
|
|
136972
|
+
s$3[0] = _ref.$val;
|
|
136973
|
+
h$8 = ($pointerOfStructConversion(((s$3.$ptr || (s$3.$ptr = new ptrType$9(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$3)))), ptrType));
|
|
136823
136974
|
h$8.Len = $imul(h$8.Len, (8));
|
|
136824
136975
|
h$8.Cap = $imul(h$8.Cap, (8));
|
|
136825
136976
|
$s = -1; return ((h$8)).$get();
|