@supraio/client-daemon-js 1.1.0-master.541 → 1.1.0-master.553
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.html +1 -1
- package/screen.js +3 -3
- package/sdk.js +5 -5
- package/supra-client-daemon.js +177 -84
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +147 -51
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/supra-client-daemon.wasm
CHANGED
|
Binary file
|
package/supra-client-screen.js
CHANGED
|
@@ -64413,7 +64413,7 @@ $packages["github.com/supraio/client-daemon/pkg/config"] = (function() {
|
|
|
64413
64413
|
return $pkg;
|
|
64414
64414
|
})();
|
|
64415
64415
|
$packages["github.com/go-errors/errors"] = (function() {
|
|
64416
|
-
var $pkg = {}, $init, bufio, bytes, errors, fmt, os, reflect, runtime, strconv, strings, StackFrame, uncaughtPanic, Error, ptrType, sliceType, sliceType$1, ptrType$1, sliceType$2, ptrType$2, sliceType$3, NewStackFrame, packageAndName, New, Wrap, Errorf;
|
|
64416
|
+
var $pkg = {}, $init, bufio, bytes, errors, fmt, os, reflect, runtime, strconv, strings, StackFrame, uncaughtPanic, joinError, Error, ptrType, sliceType, sliceType$1, ptrType$1, sliceType$2, ptrType$2, sliceType$3, sliceType$4, ptrType$3, NewStackFrame, packageAndName, Join, New, Wrap, Errorf;
|
|
64417
64417
|
bufio = $packages["bufio"];
|
|
64418
64418
|
bytes = $packages["bytes"];
|
|
64419
64419
|
errors = $packages["errors"];
|
|
@@ -64447,6 +64447,14 @@ $packages["github.com/go-errors/errors"] = (function() {
|
|
|
64447
64447
|
}
|
|
64448
64448
|
this.message = message_;
|
|
64449
64449
|
});
|
|
64450
|
+
joinError = $pkg.joinError = $newType(0, $kindStruct, "errors.joinError", true, "github.com/go-errors/errors", false, function(errs_) {
|
|
64451
|
+
this.$val = this;
|
|
64452
|
+
if (arguments.length === 0) {
|
|
64453
|
+
this.errs = sliceType$3.nil;
|
|
64454
|
+
return;
|
|
64455
|
+
}
|
|
64456
|
+
this.errs = errs_;
|
|
64457
|
+
});
|
|
64450
64458
|
Error = $pkg.Error = $newType(0, $kindStruct, "errors.Error", true, "github.com/go-errors/errors", true, function(Err_, stack_, frames_, prefix_) {
|
|
64451
64459
|
this.$val = this;
|
|
64452
64460
|
if (arguments.length === 0) {
|
|
@@ -64467,7 +64475,9 @@ $packages["github.com/go-errors/errors"] = (function() {
|
|
|
64467
64475
|
ptrType$1 = $ptrType(Error);
|
|
64468
64476
|
sliceType$2 = $sliceType($Uintptr);
|
|
64469
64477
|
ptrType$2 = $ptrType(StackFrame);
|
|
64470
|
-
sliceType$3 = $sliceType($
|
|
64478
|
+
sliceType$3 = $sliceType($error);
|
|
64479
|
+
sliceType$4 = $sliceType($Uint8);
|
|
64480
|
+
ptrType$3 = $ptrType(joinError);
|
|
64471
64481
|
NewStackFrame = function(pc) {
|
|
64472
64482
|
var _tuple, _tuple$1, frame, pc;
|
|
64473
64483
|
frame = new StackFrame.ptr("", 0, "", "", 0);
|
|
@@ -64499,7 +64509,7 @@ $packages["github.com/go-errors/errors"] = (function() {
|
|
|
64499
64509
|
frame = this;
|
|
64500
64510
|
_r = fmt.Sprintf("%s:%d (0x%x)\n", new sliceType([new $String(frame.File), new $Int(frame.LineNumber), new $Uintptr(frame.ProgramCounter)])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
64501
64511
|
str = _r;
|
|
64502
|
-
_r$1 = frame.
|
|
64512
|
+
_r$1 = frame.sourceLine(); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
64503
64513
|
_tuple = _r$1;
|
|
64504
64514
|
source = _tuple[0];
|
|
64505
64515
|
err = _tuple[1];
|
|
@@ -64513,7 +64523,26 @@ $packages["github.com/go-errors/errors"] = (function() {
|
|
|
64513
64523
|
};
|
|
64514
64524
|
StackFrame.prototype.String = function() { return this.$val.String(); };
|
|
64515
64525
|
StackFrame.ptr.prototype.SourceLine = function() {
|
|
64516
|
-
var {$24r,
|
|
64526
|
+
var {$24r, _r, _r$1, _tuple, err, frame, source, $s, $r, $c} = $restore(this, {});
|
|
64527
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
64528
|
+
frame = this;
|
|
64529
|
+
_r = frame.sourceLine(); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
64530
|
+
_tuple = _r;
|
|
64531
|
+
source = _tuple[0];
|
|
64532
|
+
err = _tuple[1];
|
|
64533
|
+
/* */ if (!($interfaceIsEqual(err, $ifaceNil))) { $s = 2; continue; }
|
|
64534
|
+
/* */ $s = 3; continue;
|
|
64535
|
+
/* if (!($interfaceIsEqual(err, $ifaceNil))) { */ case 2:
|
|
64536
|
+
_r$1 = New(err); /* */ $s = 4; case 4: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
64537
|
+
$24r = [source, _r$1];
|
|
64538
|
+
$s = 5; case 5: return $24r;
|
|
64539
|
+
/* } */ case 3:
|
|
64540
|
+
$s = -1; return [source, err];
|
|
64541
|
+
/* */ } return; } var $f = {$blk: StackFrame.ptr.prototype.SourceLine, $c: true, $r, $24r, _r, _r$1, _tuple, err, frame, source, $s};return $f;
|
|
64542
|
+
};
|
|
64543
|
+
StackFrame.prototype.SourceLine = function() { return this.$val.SourceLine(); };
|
|
64544
|
+
StackFrame.ptr.prototype.sourceLine = function() {
|
|
64545
|
+
var {$24r, $24r$1, $24r$2, $24r$3, $24r$4, _r, _r$1, _tuple, currentLine, err, err$1, file, frame, scanner, $s, $deferred, $r, $c} = $restore(this, {});
|
|
64517
64546
|
/* */ $s = $s || 0; var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $curGoroutine.deferStack.push($deferred);
|
|
64518
64547
|
frame = this;
|
|
64519
64548
|
/* */ if (frame.LineNumber <= 0) { $s = 1; continue; }
|
|
@@ -64529,38 +64558,36 @@ $packages["github.com/go-errors/errors"] = (function() {
|
|
|
64529
64558
|
/* */ if (!($interfaceIsEqual(err, $ifaceNil))) { $s = 5; continue; }
|
|
64530
64559
|
/* */ $s = 6; continue;
|
|
64531
64560
|
/* if (!($interfaceIsEqual(err, $ifaceNil))) { */ case 5:
|
|
64532
|
-
|
|
64533
|
-
$
|
|
64534
|
-
$s = 8; case 8: return $24r$1;
|
|
64561
|
+
$24r$1 = ["", err];
|
|
64562
|
+
$s = 7; case 7: return $24r$1;
|
|
64535
64563
|
/* } */ case 6:
|
|
64536
64564
|
$deferred.push([$methodVal(file, "Close"), []]);
|
|
64537
64565
|
scanner = bufio.NewScanner(file);
|
|
64538
64566
|
currentLine = 1;
|
|
64539
|
-
/* while (true) { */ case
|
|
64540
|
-
_r$
|
|
64541
|
-
/* if (!(_r$
|
|
64542
|
-
/* */ if (currentLine === frame.LineNumber) { $s =
|
|
64543
|
-
/* */ $s =
|
|
64544
|
-
/* if (currentLine === frame.LineNumber) { */ case
|
|
64567
|
+
/* while (true) { */ case 8:
|
|
64568
|
+
_r$1 = scanner.Scan(); /* */ $s = 10; case 10: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
64569
|
+
/* if (!(_r$1)) { break; } */ if(!(_r$1)) { $s = 9; continue; }
|
|
64570
|
+
/* */ if (currentLine === frame.LineNumber) { $s = 11; continue; }
|
|
64571
|
+
/* */ $s = 12; continue;
|
|
64572
|
+
/* if (currentLine === frame.LineNumber) { */ case 11:
|
|
64545
64573
|
$24r$2 = [($bytesToString(bytes.Trim(scanner.Bytes(), " \t"))), $ifaceNil];
|
|
64546
|
-
$s =
|
|
64547
|
-
/* } */ case
|
|
64574
|
+
$s = 13; case 13: return $24r$2;
|
|
64575
|
+
/* } */ case 12:
|
|
64548
64576
|
currentLine = currentLine + (1) >> 0;
|
|
64549
|
-
$s =
|
|
64550
|
-
case
|
|
64577
|
+
$s = 8; continue;
|
|
64578
|
+
case 9:
|
|
64551
64579
|
err$1 = scanner.Err();
|
|
64552
|
-
/* */ if (!($interfaceIsEqual(err$1, $ifaceNil))) { $s =
|
|
64553
|
-
/* */ $s =
|
|
64554
|
-
/* if (!($interfaceIsEqual(err$1, $ifaceNil))) { */ case
|
|
64555
|
-
|
|
64556
|
-
$
|
|
64557
|
-
|
|
64558
|
-
/* } */ case 16:
|
|
64580
|
+
/* */ if (!($interfaceIsEqual(err$1, $ifaceNil))) { $s = 14; continue; }
|
|
64581
|
+
/* */ $s = 15; continue;
|
|
64582
|
+
/* if (!($interfaceIsEqual(err$1, $ifaceNil))) { */ case 14:
|
|
64583
|
+
$24r$3 = ["", err$1];
|
|
64584
|
+
$s = 16; case 16: return $24r$3;
|
|
64585
|
+
/* } */ case 15:
|
|
64559
64586
|
$24r$4 = ["???", $ifaceNil];
|
|
64560
|
-
$s =
|
|
64561
|
-
/* */ } return; } } catch(err) { $err = err; $s = -1; return ["", $ifaceNil]; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { var $f = {$blk: StackFrame.ptr.prototype.
|
|
64587
|
+
$s = 17; case 17: return $24r$4;
|
|
64588
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; return ["", $ifaceNil]; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { var $f = {$blk: StackFrame.ptr.prototype.sourceLine, $c: true, $r, $24r, $24r$1, $24r$2, $24r$3, $24r$4, _r, _r$1, _tuple, currentLine, err, err$1, file, frame, scanner, $s, $deferred};return $f; } }
|
|
64562
64589
|
};
|
|
64563
|
-
StackFrame.prototype.
|
|
64590
|
+
StackFrame.prototype.sourceLine = function() { return this.$val.sourceLine(); };
|
|
64564
64591
|
packageAndName = function(fn) {
|
|
64565
64592
|
var fn, lastslash, name, period, pkg;
|
|
64566
64593
|
name = fn.Name();
|
|
@@ -64584,6 +64611,67 @@ $packages["github.com/go-errors/errors"] = (function() {
|
|
|
64584
64611
|
return p.message;
|
|
64585
64612
|
};
|
|
64586
64613
|
uncaughtPanic.prototype.Error = function() { return this.$val.Error(); };
|
|
64614
|
+
Join = function(errs) {
|
|
64615
|
+
var _i, _i$1, _ref, _ref$1, e, err, err$1, errs, n;
|
|
64616
|
+
n = 0;
|
|
64617
|
+
_ref = errs;
|
|
64618
|
+
_i = 0;
|
|
64619
|
+
while (true) {
|
|
64620
|
+
if (!(_i < _ref.$length)) { break; }
|
|
64621
|
+
err = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
64622
|
+
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
64623
|
+
n = n + (1) >> 0;
|
|
64624
|
+
}
|
|
64625
|
+
_i++;
|
|
64626
|
+
}
|
|
64627
|
+
if (n === 0) {
|
|
64628
|
+
return $ifaceNil;
|
|
64629
|
+
}
|
|
64630
|
+
e = new joinError.ptr($makeSlice(sliceType$3, 0, n));
|
|
64631
|
+
_ref$1 = errs;
|
|
64632
|
+
_i$1 = 0;
|
|
64633
|
+
while (true) {
|
|
64634
|
+
if (!(_i$1 < _ref$1.$length)) { break; }
|
|
64635
|
+
err$1 = ((_i$1 < 0 || _i$1 >= _ref$1.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref$1.$array[_ref$1.$offset + _i$1]);
|
|
64636
|
+
if (!($interfaceIsEqual(err$1, $ifaceNil))) {
|
|
64637
|
+
e.errs = $append(e.errs, err$1);
|
|
64638
|
+
}
|
|
64639
|
+
_i$1++;
|
|
64640
|
+
}
|
|
64641
|
+
return e;
|
|
64642
|
+
};
|
|
64643
|
+
$pkg.Join = Join;
|
|
64644
|
+
joinError.ptr.prototype.Error = function() {
|
|
64645
|
+
var {_arg, _arg$1, _i, _r, _ref, b, e, err, i, $s, $r, $c} = $restore(this, {});
|
|
64646
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
64647
|
+
e = this;
|
|
64648
|
+
b = sliceType$4.nil;
|
|
64649
|
+
_ref = e.errs;
|
|
64650
|
+
_i = 0;
|
|
64651
|
+
/* while (true) { */ case 1:
|
|
64652
|
+
/* if (!(_i < _ref.$length)) { break; } */ if(!(_i < _ref.$length)) { $s = 2; continue; }
|
|
64653
|
+
i = _i;
|
|
64654
|
+
err = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
64655
|
+
if (i > 0) {
|
|
64656
|
+
b = $append(b, 10);
|
|
64657
|
+
}
|
|
64658
|
+
_arg = b;
|
|
64659
|
+
_r = err.Error(); /* */ $s = 3; case 3: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
64660
|
+
_arg$1 = _r;
|
|
64661
|
+
b = $appendSlice(_arg, _arg$1);
|
|
64662
|
+
_i++;
|
|
64663
|
+
$s = 1; continue;
|
|
64664
|
+
case 2:
|
|
64665
|
+
$s = -1; return ($bytesToString(b));
|
|
64666
|
+
/* */ } return; } var $f = {$blk: joinError.ptr.prototype.Error, $c: true, $r, _arg, _arg$1, _i, _r, _ref, b, e, err, i, $s};return $f;
|
|
64667
|
+
};
|
|
64668
|
+
joinError.prototype.Error = function() { return this.$val.Error(); };
|
|
64669
|
+
joinError.ptr.prototype.Unwrap = function() {
|
|
64670
|
+
var e;
|
|
64671
|
+
e = this;
|
|
64672
|
+
return e.errs;
|
|
64673
|
+
};
|
|
64674
|
+
joinError.prototype.Unwrap = function() { return this.$val.Unwrap(); };
|
|
64587
64675
|
New = function(e) {
|
|
64588
64676
|
var {_r, _ref, e, e$1, e$2, err, length, stack, $s, $r, $c} = $restore(this, {e});
|
|
64589
64677
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
@@ -64665,7 +64753,7 @@ $packages["github.com/go-errors/errors"] = (function() {
|
|
|
64665
64753
|
var {_i, _r, _r$1, _ref, buf, err, frame, $s, $r, $c} = $restore(this, {});
|
|
64666
64754
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
64667
64755
|
err = this;
|
|
64668
|
-
buf = new bytes.Buffer.ptr(sliceType$
|
|
64756
|
+
buf = new bytes.Buffer.ptr(sliceType$4.nil, 0, 0);
|
|
64669
64757
|
_ref = err.StackFrames();
|
|
64670
64758
|
_i = 0;
|
|
64671
64759
|
/* while (true) { */ case 1:
|
|
@@ -64732,11 +64820,19 @@ $packages["github.com/go-errors/errors"] = (function() {
|
|
|
64732
64820
|
/* */ } return; } var $f = {$blk: Error.ptr.prototype.TypeName, $c: true, $r, $24r, _r, _tuple, err, ok, $s};return $f;
|
|
64733
64821
|
};
|
|
64734
64822
|
Error.prototype.TypeName = function() { return this.$val.TypeName(); };
|
|
64735
|
-
|
|
64823
|
+
Error.ptr.prototype.Unwrap = function() {
|
|
64824
|
+
var err;
|
|
64825
|
+
err = this;
|
|
64826
|
+
return err.Err;
|
|
64827
|
+
};
|
|
64828
|
+
Error.prototype.Unwrap = function() { return this.$val.Unwrap(); };
|
|
64829
|
+
ptrType$2.methods = [{prop: "Func", name: "Func", pkg: "", typ: $funcType([], [ptrType], false)}, {prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}, {prop: "SourceLine", name: "SourceLine", pkg: "", typ: $funcType([], [$String, $error], false)}, {prop: "sourceLine", name: "sourceLine", pkg: "github.com/go-errors/errors", typ: $funcType([], [$String, $error], false)}];
|
|
64736
64830
|
uncaughtPanic.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
64737
|
-
ptrType$
|
|
64831
|
+
ptrType$3.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}, {prop: "Unwrap", name: "Unwrap", pkg: "", typ: $funcType([], [sliceType$3], false)}];
|
|
64832
|
+
ptrType$1.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}, {prop: "Stack", name: "Stack", pkg: "", typ: $funcType([], [sliceType$4], false)}, {prop: "Callers", name: "Callers", pkg: "", typ: $funcType([], [sliceType$2], false)}, {prop: "ErrorStack", name: "ErrorStack", pkg: "", typ: $funcType([], [$String], false)}, {prop: "StackFrames", name: "StackFrames", pkg: "", typ: $funcType([], [sliceType$1], false)}, {prop: "TypeName", name: "TypeName", pkg: "", typ: $funcType([], [$String], false)}, {prop: "Unwrap", name: "Unwrap", pkg: "", typ: $funcType([], [$error], false)}];
|
|
64738
64833
|
StackFrame.init("", [{prop: "File", name: "File", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "LineNumber", name: "LineNumber", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Name", name: "Name", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "Package", name: "Package", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "ProgramCounter", name: "ProgramCounter", embedded: false, exported: true, typ: $Uintptr, tag: ""}]);
|
|
64739
64834
|
uncaughtPanic.init("github.com/go-errors/errors", [{prop: "message", name: "message", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
64835
|
+
joinError.init("github.com/go-errors/errors", [{prop: "errs", name: "errs", embedded: false, exported: false, typ: sliceType$3, tag: ""}]);
|
|
64740
64836
|
Error.init("github.com/go-errors/errors", [{prop: "Err", name: "Err", embedded: false, exported: true, typ: $error, tag: ""}, {prop: "stack", name: "stack", embedded: false, exported: false, typ: sliceType$2, tag: ""}, {prop: "frames", name: "frames", embedded: false, exported: false, typ: sliceType$1, tag: ""}, {prop: "prefix", name: "prefix", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
64741
64837
|
$init = function() {
|
|
64742
64838
|
$pkg.$init = function() {};
|
|
@@ -65223,24 +65319,25 @@ $packages["github.com/supraio/client-daemon/pkg/errs"] = (function() {
|
|
|
65223
65319
|
/* */ } return; } var $f = {$blk: Errorf, $c: true, $r, $24r, _r, extra, msg, $s};return $f;
|
|
65224
65320
|
};
|
|
65225
65321
|
$pkg.Errorf = Errorf;
|
|
65226
|
-
CombineErrors = function(
|
|
65227
|
-
var
|
|
65228
|
-
|
|
65229
|
-
|
|
65230
|
-
message = "";
|
|
65231
|
-
_ref = errs;
|
|
65322
|
+
CombineErrors = function(errList) {
|
|
65323
|
+
var _i, _ref, err, errList, single;
|
|
65324
|
+
single = $ifaceNil;
|
|
65325
|
+
_ref = errList;
|
|
65232
65326
|
_i = 0;
|
|
65233
65327
|
while (true) {
|
|
65234
65328
|
if (!(_i < _ref.$length)) { break; }
|
|
65235
65329
|
err = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
65236
|
-
|
|
65237
|
-
|
|
65330
|
+
if ($interfaceIsEqual(err, $ifaceNil)) {
|
|
65331
|
+
_i++;
|
|
65332
|
+
continue;
|
|
65333
|
+
}
|
|
65334
|
+
if (!($interfaceIsEqual(single, $ifaceNil))) {
|
|
65335
|
+
return errors.Join(errList);
|
|
65336
|
+
}
|
|
65337
|
+
single = err;
|
|
65238
65338
|
_i++;
|
|
65239
65339
|
}
|
|
65240
|
-
|
|
65241
|
-
$24r = _r;
|
|
65242
|
-
$s = 2; case 2: return $24r;
|
|
65243
|
-
/* */ } return; } var $f = {$blk: CombineErrors, $c: true, $r, $24r, _i, _r, _ref, err, errs, message, untypedErrs, $s};return $f;
|
|
65340
|
+
return single;
|
|
65244
65341
|
};
|
|
65245
65342
|
$pkg.CombineErrors = CombineErrors;
|
|
65246
65343
|
$init = function() {
|
|
@@ -195770,21 +195867,22 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
195770
195867
|
return $div64(sum, (new time.Duration(0, values.$length)), false);
|
|
195771
195868
|
};
|
|
195772
195869
|
variance = function(values) {
|
|
195773
|
-
var _i, _ref, avg, sum, v, values
|
|
195870
|
+
var _i, _ref, avg, deviation, sum, v, values;
|
|
195774
195871
|
if (values.$length === 0) {
|
|
195775
195872
|
return new time.Duration(0, 0);
|
|
195776
195873
|
}
|
|
195777
195874
|
avg = average(values);
|
|
195778
|
-
sum =
|
|
195875
|
+
sum = 0;
|
|
195779
195876
|
_ref = values;
|
|
195780
195877
|
_i = 0;
|
|
195781
195878
|
while (true) {
|
|
195782
195879
|
if (!(_i < _ref.$length)) { break; }
|
|
195783
195880
|
v = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
195784
|
-
|
|
195881
|
+
deviation = ($flatten64(new time.Duration(v.$high - avg.$high, v.$low - avg.$low)));
|
|
195882
|
+
sum = sum + (deviation * deviation);
|
|
195785
195883
|
_i++;
|
|
195786
195884
|
}
|
|
195787
|
-
return (new time.Duration(0, math.Sqrt(
|
|
195885
|
+
return (new time.Duration(0, math.Sqrt(sum / (values.$length))));
|
|
195788
195886
|
};
|
|
195789
195887
|
ptrType$1.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([$String], [], false)}, {prop: "Stop", name: "Stop", pkg: "", typ: $funcType([$String], [time.Duration], false)}];
|
|
195790
195888
|
ptrType$5.methods = [{prop: "Stop", name: "Stop", pkg: "", typ: $funcType([], [], false)}, {prop: "GetClientStats", name: "GetClientStats", pkg: "", typ: $funcType([], [ptrType$3], false)}, {prop: "SetLatency", name: "SetLatency", pkg: "", typ: $funcType([time.Duration], [], false)}, {prop: "UpdateServerTimestampAhead", name: "UpdateServerTimestampAhead", pkg: "", typ: $funcType([time.Duration], [], false)}, {prop: "SetScreenResolution", name: "SetScreenResolution", pkg: "", typ: $funcType([ptrType$4], [], false)}, {prop: "NotifyFrame", name: "NotifyFrame", pkg: "", typ: $funcType([Frame], [], false)}, {prop: "NotifyScreenPing", name: "NotifyScreenPing", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameCollectionStarted", name: "NotifyFrameCollectionStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameCollectionEnded", name: "NotifyFrameCollectionEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameCollectionDuration", name: "NotifyFrameCollectionDuration", pkg: "", typ: $funcType([time.Duration], [], false)}, {prop: "NotifyThrottledCollectionFrame", name: "NotifyThrottledCollectionFrame", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeWriteStarted", name: "NotifyFrameDecodeWriteStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeWriteEnded", name: "NotifyFrameDecodeWriteEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeOutputStarted", name: "NotifyFrameDecodeOutputStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeOutputEnded", name: "NotifyFrameDecodeOutputEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyThrottledDecodeFrame", name: "NotifyThrottledDecodeFrame", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameRenderStarted", name: "NotifyFrameRenderStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameRenderEnded", name: "NotifyFrameRenderEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyThrottledRenderFrame", name: "NotifyThrottledRenderFrame", pkg: "", typ: $funcType([], [], false)}, {prop: "GetLastFrameAt", name: "GetLastFrameAt", pkg: "", typ: $funcType([], [time.Time], false)}, {prop: "GetLastScreenPingAt", name: "GetLastScreenPingAt", pkg: "", typ: $funcType([], [time.Time], false)}, {prop: "GetLastScreenImpulseAt", name: "GetLastScreenImpulseAt", pkg: "", typ: $funcType([], [time.Time], false)}, {prop: "GetFrameRate", name: "GetFrameRate", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "startCalculations", name: "startCalculations", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [], false)}, {prop: "print", name: "print", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [], false)}, {prop: "GetServerTime", name: "GetServerTime", pkg: "", typ: $funcType([], [time.Time], false)}, {prop: "NotifyInteraction", name: "NotifyInteraction", pkg: "", typ: $funcType([], [], false)}, {prop: "GetInteractionWaitMultiplier", name: "GetInteractionWaitMultiplier", pkg: "", typ: $funcType([], [$Float64], false)}, {prop: "SetEncodingPreferences", name: "SetEncodingPreferences", pkg: "", typ: $funcType([EncodingPreferences], [], false)}];
|
|
@@ -198343,7 +198441,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
198343
198441
|
};
|
|
198344
198442
|
ScreenWindow.prototype.closeScreen = function() { return this.$val.closeScreen(); };
|
|
198345
198443
|
ScreenWindow.ptr.prototype.closeScreenLocked = function() {
|
|
198346
|
-
var {
|
|
198444
|
+
var {_r, _r$1, _r$2, _r$3, _r$4, _r$5, _r$6, _tuple, canceler, err, err$1, errList, ok, pingerStopped, screenSender, w, waitDuration, $s, $r, $c} = $restore(this, {});
|
|
198347
198445
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
198348
198446
|
w = this;
|
|
198349
198447
|
pingerStopped = true;
|
|
@@ -198465,10 +198563,8 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
198465
198563
|
if (errList.$length === 0) {
|
|
198466
198564
|
$s = -1; return $ifaceNil;
|
|
198467
198565
|
}
|
|
198468
|
-
|
|
198469
|
-
$
|
|
198470
|
-
$s = 65; case 65: return $24r;
|
|
198471
|
-
/* */ } return; } var $f = {$blk: ScreenWindow.ptr.prototype.closeScreenLocked, $c: true, $r, $24r, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _tuple, canceler, err, err$1, errList, ok, pingerStopped, screenSender, w, waitDuration, $s};return $f;
|
|
198566
|
+
$s = -1; return errs.CombineErrors(errList);
|
|
198567
|
+
/* */ } return; } var $f = {$blk: ScreenWindow.ptr.prototype.closeScreenLocked, $c: true, $r, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _r$6, _tuple, canceler, err, err$1, errList, ok, pingerStopped, screenSender, w, waitDuration, $s};return $f;
|
|
198472
198568
|
};
|
|
198473
198569
|
ScreenWindow.prototype.closeScreenLocked = function() { return this.$val.closeScreenLocked(); };
|
|
198474
198570
|
ScreenWindow.ptr.prototype.createScreenBuffer = function() {
|