@supraio/client-daemon-js 0.0.1-changedeploystructure.6 → 0.0.1-master.11
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/plain.d.ts +1 -0
- package/daemon/wasm.d.ts +2 -0
- package/daemon.d.ts +1 -0
- package/daemon.js +334 -91
- package/daemon.js.map +3 -3
- package/dom/script.d.ts +1 -0
- package/env/consts.d.ts +1 -0
- package/fs/browserfs.d.ts +5 -0
- package/go/go.d.ts +25 -0
- package/package.json +7 -4
- package/screen/options.d.ts +10 -0
- package/screen/plain.d.ts +1 -0
- package/screen/wasm.d.ts +10 -0
- package/screen.d.ts +1 -0
- package/screen.js +33 -17
- package/screen.js.map +3 -3
- package/sdk.d.ts +4 -0
- package/sdk.js +17563 -0
- package/sdk.js.map +7 -0
- package/supra-client-daemon.js +1343 -825
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +1861 -937
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
- package/wasm_exec.js +7 -0
package/supra-client-daemon.js
CHANGED
|
@@ -21005,8 +21005,8 @@ $packages["time"] = (function() {
|
|
|
21005
21005
|
return [nhi, nlo];
|
|
21006
21006
|
};
|
|
21007
21007
|
Date = function(year, month, day, hour, min, sec, nsec, loc) {
|
|
21008
|
-
var _r, _r$1,
|
|
21009
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1;
|
|
21008
|
+
var _r, _r$1, _tuple, _tuple$1, _tuple$2, _tuple$3, _tuple$4, _tuple$5, _tuple$6, abs, d, day, end, hour, loc, m, min, month, nsec, offset, sec, start, t, unix, utc, x$1, x$2, x$3, x$4, x$5, x$6, x$7, x$8, year, $s, $r;
|
|
21009
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1; _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; abs = $f.abs; d = $f.d; day = $f.day; end = $f.end; hour = $f.hour; loc = $f.loc; m = $f.m; min = $f.min; month = $f.month; nsec = $f.nsec; offset = $f.offset; sec = $f.sec; start = $f.start; t = $f.t; unix = $f.unix; utc = $f.utc; x$1 = $f.x$1; x$2 = $f.x$2; x$3 = $f.x$3; x$4 = $f.x$4; x$5 = $f.x$5; x$6 = $f.x$6; x$7 = $f.x$7; x$8 = $f.x$8; year = $f.year; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
21010
21010
|
if (loc === ptrType$2.nil) {
|
|
21011
21011
|
$panic(new $String("time: missing Location in call to Date"));
|
|
21012
21012
|
}
|
|
@@ -21044,27 +21044,20 @@ $packages["time"] = (function() {
|
|
|
21044
21044
|
/* */ if (!((offset === 0))) { $s = 2; continue; }
|
|
21045
21045
|
/* */ $s = 3; continue;
|
|
21046
21046
|
/* if (!((offset === 0))) { */ case 2:
|
|
21047
|
-
|
|
21048
|
-
|
|
21049
|
-
|
|
21050
|
-
|
|
21051
|
-
|
|
21052
|
-
|
|
21053
|
-
|
|
21054
|
-
|
|
21055
|
-
$s = 7; continue;
|
|
21056
|
-
/* } else if ((utc.$high > end.$high || (utc.$high === end.$high && utc.$low >= end.$low))) { */ case 6:
|
|
21057
|
-
_r$2 = loc.lookup(end); /* */ $s = 9; case 9: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
21058
|
-
_tuple$7 = _r$2;
|
|
21059
|
-
offset = _tuple$7[1];
|
|
21060
|
-
/* } */ case 7:
|
|
21061
|
-
case 4:
|
|
21047
|
+
utc = (x$7 = (new $Int64(0, offset)), new $Int64(unix.$high - x$7.$high, unix.$low - x$7.$low));
|
|
21048
|
+
/* */ if ((utc.$high < start.$high || (utc.$high === start.$high && utc.$low < start.$low)) || (utc.$high > end.$high || (utc.$high === end.$high && utc.$low >= end.$low))) { $s = 4; continue; }
|
|
21049
|
+
/* */ $s = 5; continue;
|
|
21050
|
+
/* if ((utc.$high < start.$high || (utc.$high === start.$high && utc.$low < start.$low)) || (utc.$high > end.$high || (utc.$high === end.$high && utc.$low >= end.$low))) { */ case 4:
|
|
21051
|
+
_r$1 = loc.lookup(utc); /* */ $s = 6; case 6: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
21052
|
+
_tuple$6 = _r$1;
|
|
21053
|
+
offset = _tuple$6[1];
|
|
21054
|
+
/* } */ case 5:
|
|
21062
21055
|
unix = (x$8 = (new $Int64(0, offset)), new $Int64(unix.$high - x$8.$high, unix.$low - x$8.$low));
|
|
21063
21056
|
/* } */ case 3:
|
|
21064
21057
|
t = $clone(unixTime(unix, ((nsec >> 0))), Time);
|
|
21065
21058
|
t.setLoc(loc);
|
|
21066
21059
|
$s = -1; return t;
|
|
21067
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: Date }; } $f._r = _r; $f._r$1 = _r$1; $f.
|
|
21060
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: Date }; } $f._r = _r; $f._r$1 = _r$1; $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.abs = abs; $f.d = d; $f.day = day; $f.end = end; $f.hour = hour; $f.loc = loc; $f.m = m; $f.min = min; $f.month = month; $f.nsec = nsec; $f.offset = offset; $f.sec = sec; $f.start = start; $f.t = t; $f.unix = unix; $f.utc = utc; $f.x$1 = x$1; $f.x$2 = x$2; $f.x$3 = x$3; $f.x$4 = x$4; $f.x$5 = x$5; $f.x$6 = x$6; $f.x$7 = x$7; $f.x$8 = x$8; $f.year = year; $f.$s = $s; $f.$r = $r; return $f;
|
|
21068
21061
|
};
|
|
21069
21062
|
$pkg.Date = Date;
|
|
21070
21063
|
Time.ptr.prototype.Truncate = function(d) {
|
|
@@ -98053,7 +98046,7 @@ $packages["vendor/golang.org/x/net/http2/hpack"] = (function() {
|
|
|
98053
98046
|
return $pkg;
|
|
98054
98047
|
})();
|
|
98055
98048
|
$packages["net/http"] = (function() {
|
|
98056
|
-
var $pkg = {}, $init, bufio, bytes, gzip, list, context, rand, tls, base64, binary, errors, fmt, io, fs, ioutil, log, math, rand$1, mime, multipart, net, httptrace, internal, textproto, url, os, path, filepath, reflect, runtime, sort, strconv, strings, sync, atomic, js, time, utf8, httpguts, httpproxy, hpack, idna, Cookie, SameSite, http2dataBuffer, http2ErrCode, http2ConnectionError, http2StreamError, http2goAwayFlowError, http2connError, http2pseudoHeaderError, http2duplicatePseudoHeaderError, http2headerFieldNameError, http2headerFieldValueError, http2flow, http2FrameType, http2Flags, http2FrameHeader, http2Frame, http2Framer, http2frameCache, http2DataFrame, http2SettingsFrame, http2PingFrame, http2GoAwayFrame, http2UnknownFrame, http2WindowUpdateFrame, http2HeadersFrame, http2HeadersFrameParam, http2PriorityFrame, http2PriorityParam, http2RSTStreamFrame, http2ContinuationFrame, http2PushPromiseFrame, http2PushPromiseParam, http2MetaHeadersFrame, http2goroutineLock, http2streamState, http2Setting, http2SettingID, http2gate, http2closeWaiter, http2bufferedWriter, http2connectionStater, http2sorter, http2incomparable, http2pipe, http2pipeBuffer, http2Server, http2serverInternalState, http2ServeConnOpts, http2serverConn, http2stream, http2readFrameResult, http2frameWriteResult, http2serverMessage, http2requestParam, http2bodyReadMsg, http2requestBody, http2responseWriter, http2responseWriterState, http2chunkWriter, http2startPushRequest, http2writeFramer, http2writeContext, http2flushFrameWriter, http2writeSettings, http2writeGoAway, http2writeData, http2handlerPanicRST, http2writePingAck, http2writeSettingsAck, http2writeResHeaders, http2writePushPromise, http2write100ContinueHeadersFrame, http2writeWindowUpdate, http2WriteScheduler, http2OpenStreamOptions, http2FrameWriteRequest, http2writeQueue, http2writeQueuePool, http2PriorityWriteSchedulerConfig, http2priorityNodeState, http2priorityNode, http2sortPriorityNodeSiblings, http2priorityWriteScheduler, http2randomWriteScheduler, Header, stringWriter, keyValues, headerSorter, incomparable, contextKey, noBody, PushOptions, ProtocolError, Request, requestBodyReadError, maxBytesReader, Response, Handler, ResponseWriter, conn, chunkWriter, response, atomicBool, writerOnly, readResult, connReader, expectContinueReader, extraHeader, closeWriter, statusError, HandlerFunc, redirectHandler, ServeMux, muxEntry, Server, ConnState, serverHandler, onceCloseListener, globalOptionsHandler, initALPNRequest, loggingConn, checkConnErrorWriter, sniffSig, exactSig, maskedSig, htmlSig, mp4Sig, textSig, errorReader, byteReader, transferWriter, transferReader, unsupportedTEError, body, bodyLocked, finishAsyncByteRead, bufioFlushWriter, readTrackingBody, baseContexter, I, requestTooLarger, ptrType, sliceType, sliceType$1, ptrType$1, sliceType$2, sliceType$3, sliceType$4, ptrType$4, funcType, arrayType, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, ptrType$10, chanType, ptrType$11, sliceType$5, sliceType$6, sliceType$7, ptrType$15, ptrType$17, ptrType$18, ptrType$19, ptrType$20, ptrType$21, structType, ptrType$24, ptrType$26, sliceType$9, ptrType$27, sliceType$10, ptrType$28, arrayType$1, ptrType$34, ptrType$35, ptrType$36, arrayType$3, ptrType$37, ptrType$38, ptrType$39, arrayType$4, sliceType$15, ptrType$40, ptrType$41, ptrType$42, ptrType$43, ptrType$44, ptrType$45, ptrType$46, ptrType$47, ptrType$48, ptrType$49, ptrType$50, ptrType$51, ptrType$52, sliceType$16, sliceType$17, ptrType$53, arrayType$5, sliceType$18, sliceType$19, ptrType$54, ptrType$55, sliceType$20, ptrType$56, ptrType$57, ptrType$58, ptrType$59, sliceType$21, sliceType$22, ptrType$60, ptrType$61, funcType$1, ptrType$62, ptrType$63, ptrType$64, ptrType$65, ptrType$66, ptrType$67, ptrType$68, ptrType$69, ptrType$70, ptrType$71, ptrType$72, ptrType$74, ptrType$75, sliceType$23, ptrType$76, sliceType$24, ptrType$80, ptrType$81, ptrType$82, sliceType$25, ptrType$83, ptrType$84, ptrType$85, ptrType$86, ptrType$87, ptrType$88, ptrType$89, ptrType$90, arrayType$6, sliceType$26, structType$1, ptrType$91, ptrType$92, ptrType$93, structType$2, ptrType$94, ptrType$95, ptrType$96, ptrType$97, arrayType$7, arrayType$8, sliceType$27, ptrType$98, ptrType$99, ptrType$100, ptrType$101, arrayType$9, ptrType$102, ptrType$105, ptrType$106, ptrType$107, ptrType$108, funcType$2, funcType$3, chanType$2, ptrType$117, ptrType$118, funcType$6, funcType$7, ptrType$119, chanType$3, funcType$8, mapType$5, funcType$9, chanType$4, chanType$5, chanType$6, chanType$7, chanType$8, mapType$6, mapType$7, chanType$9, chanType$10, ptrType$123, funcType$12, ptrType$124, funcType$13, ptrType$125, mapType$10, ptrType$126, mapType$11, mapType$12, ptrType$127, ptrType$128, funcType$14, ptrType$131, ptrType$132, ptrType$133, mapType$13, funcType$15, mapType$14, funcType$16, funcType$17, funcType$18, mapType$15, mapType$16, ptrType$135, ptrType$136, ptrType$137, ptrType$138, ptrType$141, chanType$12, ptrType$142, cookieNameSanitizer, errSeeker, errNoOverlap, unixEpochTime, errMissingSeek, errMissingReadDir, http2dataChunkSizeClasses, http2dataChunkPools, http2errReadEmpty, http2errCodeName, http2errMixPseudoHeaderTypes, http2errPseudoAfterRegular, http2padZeros, http2frameName, http2flagName, http2frameParsers, http2fhBytes, http2ErrFrameTooLarge, http2errStreamID, http2errDepStreamID, http2errPadLength, http2errPadBytes, http2DebugGoroutines, http2goroutineSpace, http2littleBuf, http2commonBuildOnce, http2commonLowerHeader, http2commonCanonHeader, http2VerboseLogs, http2logFrameWrites, http2logFrameReads, http2inTests, http2clientPreface, http2stateName, http2settingName, http2bufWriterPool, http2sorterPool, http2errClosedPipeWrite, http2errClientDisconnected, http2errClosedBody, http2errHandlerComplete, http2errStreamClosed, http2responseWriterStatePool, http2testHookOnConn, http2testHookGetServerConn, http2testHookOnPanicMu, http2testHookOnPanic, http2settingsTimerMsg, http2idleTimerMsg, http2shutdownTimerMsg, http2gracefulShutdownMsg, http2errPrefaceTimeout, http2errChanPool, http2writeDataPool, http2errHandlerPanicked, http2goAwayTimeout, http2ErrRecursivePush, http2ErrPushLimitReached, http2connHeaders, http2errClientConnClosed, http2errClientConnUnusable, http2errClientConnGotGoAway, http2errRequestCanceled, http2errStopReqBodyWrite, http2errStopReqBodyWriteAndCancel, http2errReqBodyTooLong, http2errClosedResponseBody, http2errResponseHeaderListSize, http2errRequestHeaderListSize, http2noBody, headerNewlineToSpace, headerSorterPool, aLongTimeAgo, omitBundledHTTP2, reqWriteExcludeHeader, multipartByReader, errMissingHost, textprotoReaderPool, respExcludeHeader, uint8Array, useFakeNetwork, errClosed, crlf, colonSpace, bufioReaderPool, bufioWriter2kPool, bufioWriter2kPool$24ptr, bufioWriter4kPool, bufioWriter4kPool$24ptr, copyBufPool, errTooLarge, extraHeaderKeys, headerContentLength, headerDate, htmlReplacer, defaultServeMux, defaultServeMux$24ptr, stateName, testHookServerServe, uniqNameMu, uniqNameNext, sniffSignatures, mp4ftype, mp4, socksaLongTimeAgo, statusText, suppressedHeaders304, suppressedHeadersNoBody, singleCRLF, doubleCRLF, errTrailerEOF, nopCloserType, errCannotRewind, errKeepAlivesDisabled, errConnBroken, errCloseIdle, errTooManyIdle, errTooManyIdleHost, errCloseIdleConns, errReadLoopExiting, errIdleConnTimeout, errServerClosedIdle, errCallerOwnsConn, errRequestCanceledConn, errReadOnClosedResBody, _r, x$1, x$2, _r$1, basicAuth, cloneURLValues, cloneURL, cloneMultipartForm, cloneMultipartFileHeader, readSetCookies, readCookies, validCookieDomain, validCookieExpires, isCookieDomainName, sanitizeCookieName, sanitizeCookieValue, validCookieValueByte, sanitizeCookiePath, validCookiePathByte, sanitizeOrWarn, parseCookieValue, isCookieNameValid, http2isBadCipher, http2getDataBufferChunk, http2putDataBufferChunk, http2streamError, http2typeFrameParser, http2readFrameHeader, http2NewFramer, http2terminalReadFrameError, http2parseDataFrame, http2validStreamIDOrZero, http2validStreamID, http2parseSettingsFrame, http2parsePingFrame, http2parseGoAwayFrame, http2parseUnknownFrame, http2parseWindowUpdateFrame, http2parseHeadersFrame, http2parsePriorityFrame, http2parseRSTStreamFrame, http2parseContinuationFrame, http2parsePushPromise, http2readByte, http2readUint32, http2summarizeFrame, http2newGoroutineLock, http2curGoroutineID, http2parseUintBytes, http2cutoff64, http2buildCommonHeaderMapsOnce, http2buildCommonHeaderMaps, http2lowerHeader, init, http2validWireHeaderFieldName, http2httpCodeString, http2newBufferedWriter, http2bodyAllowedForStatus, http2ConfigureServer, http2serverConnBaseContext, http2errno, http2isClosedConnError, http2checkPriority, http2handleHeaderListTooLong, http2checkWriteHeaderCode, http2cloneHeader, http2foreachHeaderElement, http2checkValidHTTP2RequestHeaders, http2new400Handler, http2h1ServerKeepAlivesDisabled, http2strSliceContains, http2writeEndsStream, http2splitHeaderBlock, http2encKV, http2encodeHeaders, http2NewPriorityWriteScheduler, http2NewRandomWriteScheduler, CanonicalHeaderKey, hasToken, isTokenBoundary, isNotToken, isASCII, stringContainsCTLByte, hexEscapeNonASCII, badStringError, valueOrDefault, idnaASCII, cleanHost, removeZone, ParseHTTPVersion, validMethod, parseBasicAuth, parseRequestLine, newTextprotoReader, putTextprotoReader, readRequest, MaxBytesReader, copyValues, parsePostForm, requestMethodUsuallyLacksBody, fixPragmaCacheControl, isProtocolSwitchResponse, isProtocolSwitchHeader, bufioWriterPool, newBufioReader, putBufioReader, newBufioWriterSize, putBufioWriter, appendTime, http1ServerSupportsRequest, checkWriteHeaderCode, relevantCaller, foreachHeaderElement, writeStatusLine, validNextProto, badRequestError, isCommonNetReadError, registerOnHitEOF, requestBodyRemains, Error, NotFound, NotFoundHandler, Redirect, htmlEscape, RedirectHandler, cleanPath, stripHostPort, appendSorted, newLoggingConn, numLeadingCRorLF, strSliceContains, tlsRecordHeaderLooksLikeHTTP, DetectContentType, isWS, isTT, StatusText, newTransferWriter, noResponseBodyExpected, bodyAllowedForStatus, suppressedHeaders, readTransfer, chunked, isIdentity, isUnsupportedTEError, fixLength, shouldClose, fixTrailer, seeUpcomingDoubleCRLF, mergeSetHeader, parseContentLength, isKnownInMemoryReader, cloneTLSConfig;
|
|
98049
|
+
var $pkg = {}, $init, bufio, bytes, gzip, list, context, rand, tls, base64, binary, errors, fmt, io, fs, ioutil, log, math, rand$1, mime, multipart, net, httptrace, internal, textproto, url, os, path, filepath, reflect, runtime, sort, strconv, strings, sync, atomic, js, time, utf8, httpguts, httpproxy, hpack, idna, Cookie, SameSite, http2dataBuffer, http2ErrCode, http2ConnectionError, http2StreamError, http2goAwayFlowError, http2connError, http2pseudoHeaderError, http2duplicatePseudoHeaderError, http2headerFieldNameError, http2headerFieldValueError, http2flow, http2FrameType, http2Flags, http2FrameHeader, http2Frame, http2Framer, http2frameCache, http2DataFrame, http2SettingsFrame, http2PingFrame, http2GoAwayFrame, http2UnknownFrame, http2WindowUpdateFrame, http2HeadersFrame, http2HeadersFrameParam, http2PriorityFrame, http2PriorityParam, http2RSTStreamFrame, http2ContinuationFrame, http2PushPromiseFrame, http2PushPromiseParam, http2MetaHeadersFrame, http2goroutineLock, http2streamState, http2Setting, http2SettingID, http2gate, http2closeWaiter, http2bufferedWriter, http2connectionStater, http2sorter, http2incomparable, http2pipe, http2pipeBuffer, http2Server, http2serverInternalState, http2ServeConnOpts, http2serverConn, http2stream, http2readFrameResult, http2frameWriteResult, http2serverMessage, http2requestParam, http2bodyReadMsg, http2requestBody, http2responseWriter, http2responseWriterState, http2chunkWriter, http2startPushRequest, http2writeFramer, http2writeContext, http2flushFrameWriter, http2writeSettings, http2writeGoAway, http2writeData, http2handlerPanicRST, http2writePingAck, http2writeSettingsAck, http2writeResHeaders, http2writePushPromise, http2write100ContinueHeadersFrame, http2writeWindowUpdate, http2WriteScheduler, http2OpenStreamOptions, http2FrameWriteRequest, http2writeQueue, http2writeQueuePool, http2PriorityWriteSchedulerConfig, http2priorityNodeState, http2priorityNode, http2sortPriorityNodeSiblings, http2priorityWriteScheduler, http2randomWriteScheduler, Header, stringWriter, keyValues, headerSorter, incomparable, contextKey, noBody, PushOptions, ProtocolError, Request, requestBodyReadError, maxBytesReader, Response, Handler, ResponseWriter, conn, chunkWriter, response, atomicBool, writerOnly, readResult, connReader, expectContinueReader, extraHeader, closeWriter, statusError, HandlerFunc, redirectHandler, ServeMux, muxEntry, Server, ConnState, serverHandler, onceCloseListener, globalOptionsHandler, initALPNRequest, loggingConn, checkConnErrorWriter, sniffSig, exactSig, maskedSig, htmlSig, mp4Sig, textSig, errorReader, byteReader, transferWriter, transferReader, unsupportedTEError, body, bodyLocked, finishAsyncByteRead, bufioFlushWriter, readTrackingBody, baseContexter, I, requestTooLarger, ptrType, sliceType, sliceType$1, ptrType$1, sliceType$2, sliceType$3, sliceType$4, ptrType$4, funcType, arrayType, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, ptrType$10, chanType, ptrType$11, sliceType$5, sliceType$6, sliceType$7, ptrType$15, ptrType$17, ptrType$18, ptrType$19, ptrType$20, ptrType$21, structType, ptrType$24, ptrType$26, sliceType$9, ptrType$27, sliceType$10, ptrType$28, arrayType$1, ptrType$34, ptrType$35, ptrType$36, arrayType$3, ptrType$37, ptrType$38, ptrType$39, arrayType$4, sliceType$15, ptrType$40, ptrType$41, ptrType$42, ptrType$43, ptrType$44, ptrType$45, ptrType$46, ptrType$47, ptrType$48, ptrType$49, ptrType$50, ptrType$51, ptrType$52, sliceType$16, sliceType$17, ptrType$53, arrayType$5, sliceType$18, sliceType$19, ptrType$54, ptrType$55, sliceType$20, ptrType$56, ptrType$57, ptrType$58, ptrType$59, sliceType$21, sliceType$22, ptrType$60, ptrType$61, funcType$1, ptrType$62, ptrType$63, ptrType$64, ptrType$65, ptrType$66, ptrType$67, ptrType$68, ptrType$69, ptrType$70, ptrType$71, ptrType$72, ptrType$73, ptrType$76, ptrType$77, sliceType$23, ptrType$78, arrayType$6, sliceType$24, ptrType$81, ptrType$82, ptrType$83, sliceType$25, ptrType$84, ptrType$85, ptrType$86, ptrType$87, ptrType$88, ptrType$89, ptrType$90, ptrType$91, sliceType$26, structType$1, ptrType$92, ptrType$93, ptrType$94, structType$2, ptrType$95, ptrType$96, ptrType$97, ptrType$98, arrayType$7, arrayType$8, sliceType$27, ptrType$99, ptrType$100, ptrType$101, arrayType$9, ptrType$102, ptrType$105, ptrType$106, ptrType$107, ptrType$108, funcType$2, funcType$3, chanType$2, ptrType$117, ptrType$118, funcType$6, funcType$7, ptrType$119, chanType$3, funcType$8, mapType$5, funcType$9, chanType$4, chanType$5, chanType$6, chanType$7, chanType$8, mapType$6, mapType$7, chanType$9, chanType$10, ptrType$123, funcType$12, ptrType$124, funcType$13, ptrType$125, mapType$10, ptrType$126, mapType$11, mapType$12, ptrType$127, ptrType$128, funcType$14, ptrType$131, ptrType$132, ptrType$133, mapType$13, funcType$15, mapType$14, funcType$16, funcType$17, funcType$18, mapType$15, mapType$16, ptrType$135, ptrType$136, ptrType$137, ptrType$138, ptrType$141, chanType$11, ptrType$142, cookieNameSanitizer, errSeeker, errNoOverlap, unixEpochTime, errMissingSeek, errMissingReadDir, http2dataChunkSizeClasses, http2dataChunkPools, http2errReadEmpty, http2errCodeName, http2errFromPeer, http2errMixPseudoHeaderTypes, http2errPseudoAfterRegular, http2padZeros, http2frameName, http2flagName, http2frameParsers, http2fhBytes, http2ErrFrameTooLarge, http2errStreamID, http2errDepStreamID, http2errPadLength, http2errPadBytes, http2DebugGoroutines, http2goroutineSpace, http2littleBuf, http2commonBuildOnce, http2commonLowerHeader, http2commonCanonHeader, http2VerboseLogs, http2logFrameWrites, http2logFrameReads, http2inTests, http2clientPreface, http2stateName, http2settingName, http2bufWriterPool, http2sorterPool, http2errClosedPipeWrite, http2errClientDisconnected, http2errClosedBody, http2errHandlerComplete, http2errStreamClosed, http2responseWriterStatePool, http2testHookOnConn, http2testHookGetServerConn, http2testHookOnPanicMu, http2testHookOnPanic, http2settingsTimerMsg, http2idleTimerMsg, http2shutdownTimerMsg, http2gracefulShutdownMsg, http2errPrefaceTimeout, http2errChanPool, http2writeDataPool, http2errHandlerPanicked, http2goAwayTimeout, http2ErrRecursivePush, http2ErrPushLimitReached, http2connHeaders, http2errClientConnClosed, http2errClientConnUnusable, http2errClientConnGotGoAway, http2errRequestCanceled, http2errStopReqBodyWrite, http2errStopReqBodyWriteAndCancel, http2errReqBodyTooLong, http2errNilRequestURL, http2errClosedResponseBody, http2errResponseHeaderListSize, http2errRequestHeaderListSize, http2noBody, headerNewlineToSpace, headerSorterPool, aLongTimeAgo, omitBundledHTTP2, reqWriteExcludeHeader, multipartByReader, errMissingHost, textprotoReaderPool, respExcludeHeader, uint8Array, useFakeNetwork, errClosed, crlf, colonSpace, bufioReaderPool, bufioWriter2kPool, bufioWriter2kPool$24ptr, bufioWriter4kPool, bufioWriter4kPool$24ptr, copyBufPool, errTooLarge, extraHeaderKeys, headerContentLength, headerDate, htmlReplacer, defaultServeMux, defaultServeMux$24ptr, stateName, testHookServerServe, uniqNameMu, uniqNameNext, sniffSignatures, mp4ftype, mp4, socksaLongTimeAgo, statusText, suppressedHeaders304, suppressedHeadersNoBody, singleCRLF, doubleCRLF, errTrailerEOF, nopCloserType, errCannotRewind, errKeepAlivesDisabled, errConnBroken, errCloseIdle, errTooManyIdle, errTooManyIdleHost, errCloseIdleConns, errReadLoopExiting, errIdleConnTimeout, errServerClosedIdle, errCallerOwnsConn, errRequestCanceledConn, errReadOnClosedResBody, _r, x$1, x$2, _r$1, basicAuth, cloneURLValues, cloneURL, cloneMultipartForm, cloneMultipartFileHeader, readSetCookies, readCookies, validCookieDomain, validCookieExpires, isCookieDomainName, sanitizeCookieName, sanitizeCookieValue, validCookieValueByte, sanitizeCookiePath, validCookiePathByte, sanitizeOrWarn, parseCookieValue, isCookieNameValid, http2asciiEqualFold, http2lower, http2isASCIIPrint, http2asciiToLower, http2isBadCipher, http2getDataBufferChunk, http2putDataBufferChunk, http2streamError, http2typeFrameParser, http2readFrameHeader, http2NewFramer, http2terminalReadFrameError, http2parseDataFrame, http2validStreamIDOrZero, http2validStreamID, http2parseSettingsFrame, http2parsePingFrame, http2parseGoAwayFrame, http2parseUnknownFrame, http2parseWindowUpdateFrame, http2parseHeadersFrame, http2parsePriorityFrame, http2parseRSTStreamFrame, http2parseContinuationFrame, http2parsePushPromise, http2readByte, http2readUint32, http2summarizeFrame, http2newGoroutineLock, http2curGoroutineID, http2parseUintBytes, http2cutoff64, http2buildCommonHeaderMapsOnce, http2buildCommonHeaderMaps, http2lowerHeader, init, http2validWireHeaderFieldName, http2httpCodeString, http2newBufferedWriter, http2bodyAllowedForStatus, http2ConfigureServer, http2serverConnBaseContext, http2errno, http2isClosedConnError, http2checkPriority, http2handleHeaderListTooLong, http2checkWriteHeaderCode, http2cloneHeader, http2foreachHeaderElement, http2checkValidHTTP2RequestHeaders, http2new400Handler, http2h1ServerKeepAlivesDisabled, http2strSliceContains, http2writeEndsStream, http2splitHeaderBlock, http2encKV, http2encodeHeaders, http2NewPriorityWriteScheduler, http2NewRandomWriteScheduler, CanonicalHeaderKey, hasToken, isTokenBoundary, isNotToken, isASCII, stringContainsCTLByte, hexEscapeNonASCII, badStringError, valueOrDefault, idnaASCII, cleanHost, removeZone, ParseHTTPVersion, validMethod, parseBasicAuth, parseRequestLine, newTextprotoReader, putTextprotoReader, readRequest, MaxBytesReader, copyValues, parsePostForm, requestMethodUsuallyLacksBody, fixPragmaCacheControl, isProtocolSwitchResponse, isProtocolSwitchHeader, bufioWriterPool, newBufioReader, putBufioReader, newBufioWriterSize, putBufioWriter, appendTime, http1ServerSupportsRequest, checkWriteHeaderCode, relevantCaller, foreachHeaderElement, writeStatusLine, validNextProto, badRequestError, isCommonNetReadError, registerOnHitEOF, requestBodyRemains, Error, NotFound, NotFoundHandler, Redirect, htmlEscape, RedirectHandler, cleanPath, stripHostPort, appendSorted, newLoggingConn, numLeadingCRorLF, strSliceContains, tlsRecordHeaderLooksLikeHTTP, DetectContentType, isWS, isTT, StatusText, newTransferWriter, noResponseBodyExpected, bodyAllowedForStatus, suppressedHeaders, readTransfer, chunked, isIdentity, isUnsupportedTEError, fixLength, shouldClose, fixTrailer, seeUpcomingDoubleCRLF, mergeSetHeader, parseContentLength, isKnownInMemoryReader, cloneTLSConfig;
|
|
98057
98050
|
bufio = $packages["bufio"];
|
|
98058
98051
|
bytes = $packages["bytes"];
|
|
98059
98052
|
gzip = $packages["compress/gzip"];
|
|
@@ -98995,10 +98988,10 @@ $packages["net/http"] = (function() {
|
|
|
98995
98988
|
this.state = 0;
|
|
98996
98989
|
this.bytes = new $Int64(0, 0);
|
|
98997
98990
|
this.subtreeBytes = new $Int64(0, 0);
|
|
98998
|
-
this.parent = ptrType$
|
|
98999
|
-
this.kids = ptrType$
|
|
99000
|
-
this.prev = ptrType$
|
|
99001
|
-
this.next = ptrType$
|
|
98991
|
+
this.parent = ptrType$83.nil;
|
|
98992
|
+
this.kids = ptrType$83.nil;
|
|
98993
|
+
this.prev = ptrType$83.nil;
|
|
98994
|
+
this.next = ptrType$83.nil;
|
|
99002
98995
|
return;
|
|
99003
98996
|
}
|
|
99004
98997
|
this.q = q_;
|
|
@@ -99016,7 +99009,7 @@ $packages["net/http"] = (function() {
|
|
|
99016
99009
|
http2priorityWriteScheduler = $pkg.http2priorityWriteScheduler = $newType(0, $kindStruct, "http.http2priorityWriteScheduler", true, "net/http", false, function(root_, nodes_, maxID_, closedNodes_, idleNodes_, maxClosedNodesInTree_, maxIdleNodesInTree_, writeThrottleLimit_, enableWriteThrottle_, tmp_, queuePool_) {
|
|
99017
99010
|
this.$val = this;
|
|
99018
99011
|
if (arguments.length === 0) {
|
|
99019
|
-
this.root = new http2priorityNode.ptr(new http2writeQueue.ptr(sliceType$24.nil), 0, 0, 0, new $Int64(0, 0), new $Int64(0, 0), ptrType$
|
|
99012
|
+
this.root = new http2priorityNode.ptr(new http2writeQueue.ptr(sliceType$24.nil), 0, 0, 0, new $Int64(0, 0), new $Int64(0, 0), ptrType$83.nil, ptrType$83.nil, ptrType$83.nil, ptrType$83.nil);
|
|
99020
99013
|
this.nodes = false;
|
|
99021
99014
|
this.maxID = 0;
|
|
99022
99015
|
this.closedNodes = sliceType$25.nil;
|
|
@@ -99230,8 +99223,8 @@ $packages["net/http"] = (function() {
|
|
|
99230
99223
|
this.remoteAddr = "";
|
|
99231
99224
|
this.tlsState = ptrType$21.nil;
|
|
99232
99225
|
this.werr = $ifaceNil;
|
|
99233
|
-
this.r = ptrType$
|
|
99234
|
-
this.bufr = ptrType$
|
|
99226
|
+
this.r = ptrType$94.nil;
|
|
99227
|
+
this.bufr = ptrType$77.nil;
|
|
99235
99228
|
this.bufw = ptrType$9.nil;
|
|
99236
99229
|
this.lastMethod = "";
|
|
99237
99230
|
this.curReq = new atomic.Value.ptr($ifaceNil);
|
|
@@ -99258,7 +99251,7 @@ $packages["net/http"] = (function() {
|
|
|
99258
99251
|
chunkWriter = $pkg.chunkWriter = $newType(0, $kindStruct, "http.chunkWriter", true, "net/http", false, function(res_, header_, wroteHeader_, chunking_) {
|
|
99259
99252
|
this.$val = this;
|
|
99260
99253
|
if (arguments.length === 0) {
|
|
99261
|
-
this.res = ptrType$
|
|
99254
|
+
this.res = ptrType$95.nil;
|
|
99262
99255
|
this.header = false;
|
|
99263
99256
|
this.wroteHeader = false;
|
|
99264
99257
|
this.chunking = false;
|
|
@@ -99272,7 +99265,7 @@ $packages["net/http"] = (function() {
|
|
|
99272
99265
|
response = $pkg.response = $newType(0, $kindStruct, "http.response", true, "net/http", false, function(conn_, req_, reqBody_, cancelCtx_, wroteHeader_, wroteContinue_, wants10KeepAlive_, wantsClose_, canWriteContinue_, writeContinueMu_, w_, cw_, handlerHeader_, calledHeader_, written_, contentLength_, status_, closeAfterReply_, requestBodyLimitHit_, trailers_, handlerDone_, dateBuf_, clenBuf_, statusBuf_, closeNotifyCh_, didCloseNotify_) {
|
|
99273
99266
|
this.$val = this;
|
|
99274
99267
|
if (arguments.length === 0) {
|
|
99275
|
-
this.conn = ptrType$
|
|
99268
|
+
this.conn = ptrType$98.nil;
|
|
99276
99269
|
this.req = ptrType$6.nil;
|
|
99277
99270
|
this.reqBody = $ifaceNil;
|
|
99278
99271
|
this.cancelCtx = $throwNilPointerError;
|
|
@@ -99283,7 +99276,7 @@ $packages["net/http"] = (function() {
|
|
|
99283
99276
|
this.canWriteContinue = 0;
|
|
99284
99277
|
this.writeContinueMu = new sync.Mutex.ptr(0, 0);
|
|
99285
99278
|
this.w = ptrType$9.nil;
|
|
99286
|
-
this.cw = new chunkWriter.ptr(ptrType$
|
|
99279
|
+
this.cw = new chunkWriter.ptr(ptrType$95.nil, false, false, false);
|
|
99287
99280
|
this.handlerHeader = false;
|
|
99288
99281
|
this.calledHeader = false;
|
|
99289
99282
|
this.written = new $Int64(0, 0);
|
|
@@ -99353,11 +99346,11 @@ $packages["net/http"] = (function() {
|
|
|
99353
99346
|
connReader = $pkg.connReader = $newType(0, $kindStruct, "http.connReader", true, "net/http", false, function(conn_, mu_, hasByte_, byteBuf_, cond_, inRead_, aborted_, remain_) {
|
|
99354
99347
|
this.$val = this;
|
|
99355
99348
|
if (arguments.length === 0) {
|
|
99356
|
-
this.conn = ptrType$
|
|
99349
|
+
this.conn = ptrType$98.nil;
|
|
99357
99350
|
this.mu = new sync.Mutex.ptr(0, 0);
|
|
99358
99351
|
this.hasByte = false;
|
|
99359
99352
|
this.byteBuf = arrayType$6.zero();
|
|
99360
|
-
this.cond = ptrType$
|
|
99353
|
+
this.cond = ptrType$73.nil;
|
|
99361
99354
|
this.inRead = false;
|
|
99362
99355
|
this.aborted = false;
|
|
99363
99356
|
this.remain = new $Int64(0, 0);
|
|
@@ -99375,7 +99368,7 @@ $packages["net/http"] = (function() {
|
|
|
99375
99368
|
expectContinueReader = $pkg.expectContinueReader = $newType(0, $kindStruct, "http.expectContinueReader", true, "net/http", false, function(resp_, readCloser_, closed_, sawEOF_) {
|
|
99376
99369
|
this.$val = this;
|
|
99377
99370
|
if (arguments.length === 0) {
|
|
99378
|
-
this.resp = ptrType$
|
|
99371
|
+
this.resp = ptrType$95.nil;
|
|
99379
99372
|
this.readCloser = $ifaceNil;
|
|
99380
99373
|
this.closed = 0;
|
|
99381
99374
|
this.sawEOF = 0;
|
|
@@ -99529,7 +99522,7 @@ $packages["net/http"] = (function() {
|
|
|
99529
99522
|
this.$val = this;
|
|
99530
99523
|
if (arguments.length === 0) {
|
|
99531
99524
|
this.ctx = $ifaceNil;
|
|
99532
|
-
this.c = ptrType$
|
|
99525
|
+
this.c = ptrType$76.nil;
|
|
99533
99526
|
this.h = new serverHandler.ptr(ptrType$51.nil);
|
|
99534
99527
|
return;
|
|
99535
99528
|
}
|
|
@@ -99550,7 +99543,7 @@ $packages["net/http"] = (function() {
|
|
|
99550
99543
|
checkConnErrorWriter = $pkg.checkConnErrorWriter = $newType(0, $kindStruct, "http.checkConnErrorWriter", true, "net/http", false, function(c_) {
|
|
99551
99544
|
this.$val = this;
|
|
99552
99545
|
if (arguments.length === 0) {
|
|
99553
|
-
this.c = ptrType$
|
|
99546
|
+
this.c = ptrType$98.nil;
|
|
99554
99547
|
return;
|
|
99555
99548
|
}
|
|
99556
99549
|
this.c = c_;
|
|
@@ -99682,7 +99675,7 @@ $packages["net/http"] = (function() {
|
|
|
99682
99675
|
if (arguments.length === 0) {
|
|
99683
99676
|
this.src = $ifaceNil;
|
|
99684
99677
|
this.hdr = $ifaceNil;
|
|
99685
|
-
this.r = ptrType$
|
|
99678
|
+
this.r = ptrType$77.nil;
|
|
99686
99679
|
this.closing = false;
|
|
99687
99680
|
this.doEarlyClose = false;
|
|
99688
99681
|
this.mu = new sync.Mutex.ptr(0, 0);
|
|
@@ -99706,7 +99699,7 @@ $packages["net/http"] = (function() {
|
|
|
99706
99699
|
bodyLocked = $pkg.bodyLocked = $newType(0, $kindStruct, "http.bodyLocked", true, "net/http", false, function(b_) {
|
|
99707
99700
|
this.$val = this;
|
|
99708
99701
|
if (arguments.length === 0) {
|
|
99709
|
-
this.b = ptrType$
|
|
99702
|
+
this.b = ptrType$97.nil;
|
|
99710
99703
|
return;
|
|
99711
99704
|
}
|
|
99712
99705
|
this.b = b_;
|
|
@@ -99828,41 +99821,41 @@ $packages["net/http"] = (function() {
|
|
|
99828
99821
|
ptrType$70 = $ptrType(http2responseWriterState);
|
|
99829
99822
|
ptrType$71 = $ptrType(http2sorter);
|
|
99830
99823
|
ptrType$72 = $ptrType(PushOptions);
|
|
99831
|
-
ptrType$
|
|
99832
|
-
ptrType$
|
|
99824
|
+
ptrType$73 = $ptrType(sync.Cond);
|
|
99825
|
+
ptrType$76 = $ptrType(tls.Conn);
|
|
99826
|
+
ptrType$77 = $ptrType(bufio.Reader);
|
|
99833
99827
|
sliceType$23 = $sliceType(http2Setting);
|
|
99834
|
-
ptrType$
|
|
99835
|
-
sliceType$24 = $sliceType(http2FrameWriteRequest);
|
|
99836
|
-
ptrType$80 = $ptrType(http2writeQueue);
|
|
99837
|
-
ptrType$81 = $ptrType(http2PriorityWriteSchedulerConfig);
|
|
99838
|
-
ptrType$82 = $ptrType(http2priorityNode);
|
|
99839
|
-
sliceType$25 = $sliceType(ptrType$82);
|
|
99840
|
-
ptrType$83 = $ptrType(http2writeQueuePool);
|
|
99841
|
-
ptrType$84 = $ptrType(sliceType$25);
|
|
99842
|
-
ptrType$85 = $ptrType(headerSorter);
|
|
99843
|
-
ptrType$86 = $ptrType(multipart.Reader);
|
|
99844
|
-
ptrType$87 = $ptrType(bytes.Reader);
|
|
99845
|
-
ptrType$88 = $ptrType(strings.Reader);
|
|
99846
|
-
ptrType$89 = $ptrType(textproto.Reader);
|
|
99847
|
-
ptrType$90 = $ptrType(maxBytesReader);
|
|
99828
|
+
ptrType$78 = $ptrType(Header);
|
|
99848
99829
|
arrayType$6 = $arrayType($Uint8, 1);
|
|
99830
|
+
sliceType$24 = $sliceType(http2FrameWriteRequest);
|
|
99831
|
+
ptrType$81 = $ptrType(http2writeQueue);
|
|
99832
|
+
ptrType$82 = $ptrType(http2PriorityWriteSchedulerConfig);
|
|
99833
|
+
ptrType$83 = $ptrType(http2priorityNode);
|
|
99834
|
+
sliceType$25 = $sliceType(ptrType$83);
|
|
99835
|
+
ptrType$84 = $ptrType(http2writeQueuePool);
|
|
99836
|
+
ptrType$85 = $ptrType(sliceType$25);
|
|
99837
|
+
ptrType$86 = $ptrType(headerSorter);
|
|
99838
|
+
ptrType$87 = $ptrType(multipart.Reader);
|
|
99839
|
+
ptrType$88 = $ptrType(bytes.Reader);
|
|
99840
|
+
ptrType$89 = $ptrType(strings.Reader);
|
|
99841
|
+
ptrType$90 = $ptrType(textproto.Reader);
|
|
99842
|
+
ptrType$91 = $ptrType(maxBytesReader);
|
|
99849
99843
|
sliceType$26 = $sliceType(io.Reader);
|
|
99850
99844
|
structType$1 = $structType("", [{prop: "Reader", name: "Reader", embedded: true, exported: true, typ: io.Reader, tag: ""}, {prop: "Closer", name: "Closer", embedded: true, exported: true, typ: io.Closer, tag: ""}]);
|
|
99851
|
-
ptrType$
|
|
99852
|
-
ptrType$
|
|
99853
|
-
ptrType$
|
|
99845
|
+
ptrType$92 = $ptrType(bufio.ReadWriter);
|
|
99846
|
+
ptrType$93 = $ptrType($Int32);
|
|
99847
|
+
ptrType$94 = $ptrType(connReader);
|
|
99854
99848
|
structType$2 = $structType("net/http", [{prop: "atomic", name: "atomic", embedded: false, exported: false, typ: $Uint64, tag: ""}]);
|
|
99855
|
-
ptrType$
|
|
99856
|
-
ptrType$
|
|
99857
|
-
ptrType$
|
|
99858
|
-
ptrType$
|
|
99849
|
+
ptrType$95 = $ptrType(response);
|
|
99850
|
+
ptrType$96 = $ptrType(sync.Pool);
|
|
99851
|
+
ptrType$97 = $ptrType(body);
|
|
99852
|
+
ptrType$98 = $ptrType(conn);
|
|
99859
99853
|
arrayType$7 = $arrayType($Uint8, 10);
|
|
99860
99854
|
arrayType$8 = $arrayType($Uint8, 3);
|
|
99861
99855
|
sliceType$27 = $sliceType($Uintptr);
|
|
99862
|
-
ptrType$
|
|
99863
|
-
ptrType$
|
|
99864
|
-
ptrType$
|
|
99865
|
-
ptrType$101 = $ptrType(tls.Conn);
|
|
99856
|
+
ptrType$99 = $ptrType(runtime.Func);
|
|
99857
|
+
ptrType$100 = $ptrType(expectContinueReader);
|
|
99858
|
+
ptrType$101 = $ptrType($Uint64);
|
|
99866
99859
|
arrayType$9 = $arrayType($Uint8, 5);
|
|
99867
99860
|
ptrType$102 = $ptrType(net.Listener);
|
|
99868
99861
|
ptrType$105 = $ptrType(transferWriter);
|
|
@@ -99893,11 +99886,11 @@ $packages["net/http"] = (function() {
|
|
|
99893
99886
|
ptrType$123 = $ptrType(http2writeGoAway);
|
|
99894
99887
|
funcType$12 = $funcType([], [$Uint32, $error], false);
|
|
99895
99888
|
ptrType$124 = $ptrType(http2FrameWriteRequest);
|
|
99896
|
-
funcType$13 = $funcType([ptrType$
|
|
99889
|
+
funcType$13 = $funcType([ptrType$83, $Bool], [$Bool], false);
|
|
99897
99890
|
ptrType$125 = $ptrType(http2priorityWriteScheduler);
|
|
99898
|
-
mapType$10 = $mapType($Uint32, ptrType$
|
|
99891
|
+
mapType$10 = $mapType($Uint32, ptrType$83);
|
|
99899
99892
|
ptrType$126 = $ptrType(http2randomWriteScheduler);
|
|
99900
|
-
mapType$11 = $mapType($Uint32, ptrType$
|
|
99893
|
+
mapType$11 = $mapType($Uint32, ptrType$81);
|
|
99901
99894
|
mapType$12 = $mapType($String, $Bool);
|
|
99902
99895
|
ptrType$127 = $ptrType(contextKey);
|
|
99903
99896
|
ptrType$128 = $ptrType(ProtocolError);
|
|
@@ -99906,19 +99899,19 @@ $packages["net/http"] = (function() {
|
|
|
99906
99899
|
ptrType$132 = $ptrType(redirectHandler);
|
|
99907
99900
|
ptrType$133 = $ptrType(ServeMux);
|
|
99908
99901
|
mapType$13 = $mapType($String, muxEntry);
|
|
99909
|
-
funcType$15 = $funcType([ptrType$51, ptrType$
|
|
99902
|
+
funcType$15 = $funcType([ptrType$51, ptrType$76, Handler], [], false);
|
|
99910
99903
|
mapType$14 = $mapType($String, funcType$15);
|
|
99911
99904
|
funcType$16 = $funcType([net.Conn, ConnState], [], false);
|
|
99912
99905
|
funcType$17 = $funcType([net.Listener], [context.Context], false);
|
|
99913
99906
|
funcType$18 = $funcType([context.Context, net.Conn], [context.Context], false);
|
|
99914
99907
|
mapType$15 = $mapType(ptrType$102, structType);
|
|
99915
|
-
mapType$16 = $mapType(ptrType$
|
|
99908
|
+
mapType$16 = $mapType(ptrType$98, structType);
|
|
99916
99909
|
ptrType$135 = $ptrType(onceCloseListener);
|
|
99917
99910
|
ptrType$136 = $ptrType(loggingConn);
|
|
99918
99911
|
ptrType$137 = $ptrType(exactSig);
|
|
99919
99912
|
ptrType$138 = $ptrType(maskedSig);
|
|
99920
99913
|
ptrType$141 = $ptrType(byteReader);
|
|
99921
|
-
chanType$
|
|
99914
|
+
chanType$11 = $chanType(readResult, false, false);
|
|
99922
99915
|
ptrType$142 = $ptrType(transferReader);
|
|
99923
99916
|
basicAuth = function(username, password) {
|
|
99924
99917
|
var auth, password, username;
|
|
@@ -100474,6 +100467,60 @@ $packages["net/http"] = (function() {
|
|
|
100474
100467
|
$s = -1; return _r$2 < 0;
|
|
100475
100468
|
/* */ } return; } if ($f === undefined) { $f = { $blk: isCookieNameValid }; } $f._r$2 = _r$2; $f.raw = raw; $f.$s = $s; $f.$r = $r; return $f;
|
|
100476
100469
|
};
|
|
100470
|
+
http2asciiEqualFold = function(s, t) {
|
|
100471
|
+
var i, s, t;
|
|
100472
|
+
if (!((s.length === t.length))) {
|
|
100473
|
+
return false;
|
|
100474
|
+
}
|
|
100475
|
+
i = 0;
|
|
100476
|
+
while (true) {
|
|
100477
|
+
if (!(i < s.length)) { break; }
|
|
100478
|
+
if (!((http2lower(s.charCodeAt(i)) === http2lower(t.charCodeAt(i))))) {
|
|
100479
|
+
return false;
|
|
100480
|
+
}
|
|
100481
|
+
i = i + (1) >> 0;
|
|
100482
|
+
}
|
|
100483
|
+
return true;
|
|
100484
|
+
};
|
|
100485
|
+
http2lower = function(b) {
|
|
100486
|
+
var b;
|
|
100487
|
+
if (65 <= b && b <= 90) {
|
|
100488
|
+
return b + 32 << 24 >>> 24;
|
|
100489
|
+
}
|
|
100490
|
+
return b;
|
|
100491
|
+
};
|
|
100492
|
+
http2isASCIIPrint = function(s) {
|
|
100493
|
+
var i, s;
|
|
100494
|
+
i = 0;
|
|
100495
|
+
while (true) {
|
|
100496
|
+
if (!(i < s.length)) { break; }
|
|
100497
|
+
if (s.charCodeAt(i) < 32 || s.charCodeAt(i) > 126) {
|
|
100498
|
+
return false;
|
|
100499
|
+
}
|
|
100500
|
+
i = i + (1) >> 0;
|
|
100501
|
+
}
|
|
100502
|
+
return true;
|
|
100503
|
+
};
|
|
100504
|
+
http2asciiToLower = function(s) {
|
|
100505
|
+
var _r$2, _tmp, _tmp$1, _tmp$2, _tmp$3, lower, ok, s, $s, $r;
|
|
100506
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; _tmp$2 = $f._tmp$2; _tmp$3 = $f._tmp$3; lower = $f.lower; ok = $f.ok; s = $f.s; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
100507
|
+
lower = "";
|
|
100508
|
+
ok = false;
|
|
100509
|
+
if (!http2isASCIIPrint(s)) {
|
|
100510
|
+
_tmp = "";
|
|
100511
|
+
_tmp$1 = false;
|
|
100512
|
+
lower = _tmp;
|
|
100513
|
+
ok = _tmp$1;
|
|
100514
|
+
$s = -1; return [lower, ok];
|
|
100515
|
+
}
|
|
100516
|
+
_r$2 = strings.ToLower(s); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
100517
|
+
_tmp$2 = _r$2;
|
|
100518
|
+
_tmp$3 = true;
|
|
100519
|
+
lower = _tmp$2;
|
|
100520
|
+
ok = _tmp$3;
|
|
100521
|
+
$s = -1; return [lower, ok];
|
|
100522
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: http2asciiToLower }; } $f._r$2 = _r$2; $f._tmp = _tmp; $f._tmp$1 = _tmp$1; $f._tmp$2 = _tmp$2; $f._tmp$3 = _tmp$3; $f.lower = lower; $f.ok = ok; $f.s = s; $f.$s = $s; $f.$r = $r; return $f;
|
|
100523
|
+
};
|
|
100477
100524
|
http2isBadCipher = function(cipher) {
|
|
100478
100525
|
var _1, cipher;
|
|
100479
100526
|
_1 = cipher;
|
|
@@ -101554,7 +101601,7 @@ $packages["net/http"] = (function() {
|
|
|
101554
101601
|
return [_, err];
|
|
101555
101602
|
}
|
|
101556
101603
|
}
|
|
101557
|
-
if ((p.$length - ((padLength >> 0)) >> 0)
|
|
101604
|
+
if ((p.$length - ((padLength >> 0)) >> 0) < 0) {
|
|
101558
101605
|
_tmp$6 = $ifaceNil;
|
|
101559
101606
|
_tmp$7 = (x$5 = http2streamError(fh.StreamID, 1), new x$5.constructor.elem(x$5));
|
|
101560
101607
|
_ = _tmp$6;
|
|
@@ -102382,18 +102429,27 @@ $packages["net/http"] = (function() {
|
|
|
102382
102429
|
/* */ } return; } if ($f === undefined) { $f = { $blk: http2buildCommonHeaderMaps }; } $f._i = _i; $f._key = _key; $f._key$1 = _key$1; $f._r$2 = _r$2; $f._ref = _ref; $f.chk = chk; $f.common = common; $f.v = v; $f.x$4 = x$4; $f.x$5 = x$5; $f.$s = $s; $f.$r = $r; return $f;
|
|
102383
102430
|
};
|
|
102384
102431
|
http2lowerHeader = function(v) {
|
|
102385
|
-
var _entry, _r$2, _tuple, ok, s, v, $s, $r;
|
|
102386
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _r$2 = $f._r$2; _tuple = $f._tuple; ok = $f.ok; s = $f.s; v = $f.v; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
102432
|
+
var _entry, _r$2, _tmp, _tmp$1, _tuple, _tuple$1, ascii, lower, ok, s, v, $s, $r;
|
|
102433
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _r$2 = $f._r$2; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; _tuple = $f._tuple; _tuple$1 = $f._tuple$1; ascii = $f.ascii; lower = $f.lower; ok = $f.ok; s = $f.s; v = $f.v; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
102434
|
+
lower = "";
|
|
102435
|
+
ascii = false;
|
|
102387
102436
|
$r = http2buildCommonHeaderMapsOnce(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
102388
102437
|
_tuple = (_entry = http2commonLowerHeader[$String.keyFor(v)], _entry !== undefined ? [_entry.v, true] : ["", false]);
|
|
102389
102438
|
s = _tuple[0];
|
|
102390
102439
|
ok = _tuple[1];
|
|
102391
102440
|
if (ok) {
|
|
102392
|
-
|
|
102441
|
+
_tmp = s;
|
|
102442
|
+
_tmp$1 = true;
|
|
102443
|
+
lower = _tmp;
|
|
102444
|
+
ascii = _tmp$1;
|
|
102445
|
+
$s = -1; return [lower, ascii];
|
|
102393
102446
|
}
|
|
102394
|
-
_r$2 =
|
|
102395
|
-
$
|
|
102396
|
-
|
|
102447
|
+
_r$2 = http2asciiToLower(v); /* */ $s = 2; case 2: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
102448
|
+
_tuple$1 = _r$2;
|
|
102449
|
+
lower = _tuple$1[0];
|
|
102450
|
+
ascii = _tuple$1[1];
|
|
102451
|
+
$s = -1; return [lower, ascii];
|
|
102452
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: http2lowerHeader }; } $f._entry = _entry; $f._r$2 = _r$2; $f._tmp = _tmp; $f._tmp$1 = _tmp$1; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f.ascii = ascii; $f.lower = lower; $f.ok = ok; $f.s = s; $f.v = v; $f.$s = $s; $f.$r = $r; return $f;
|
|
102397
102453
|
};
|
|
102398
102454
|
init = function() {
|
|
102399
102455
|
var _r$2, e, $s, $r;
|
|
@@ -102960,8 +103016,8 @@ $packages["net/http"] = (function() {
|
|
|
102960
103016
|
};
|
|
102961
103017
|
http2serverInternalState.prototype.startGracefulShutdown = function() { return this.$val.startGracefulShutdown(); };
|
|
102962
103018
|
http2ConfigureServer = function(s, conf) {
|
|
102963
|
-
var _1, _i,
|
|
102964
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _1 = $f._1; _i = $f._i;
|
|
103019
|
+
var _1, _i, _key, _r$2, _r$3, _ref, _tmp, _tmp$1, conf, cs, h1, h2, haveRequired, i, protoHandler, s, sawBad, x$4, x$5, $s, $r;
|
|
103020
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _1 = $f._1; _i = $f._i; _key = $f._key; _r$2 = $f._r$2; _r$3 = $f._r$3; _ref = $f._ref; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; conf = $f.conf; cs = $f.cs; h1 = $f.h1; h2 = $f.h2; haveRequired = $f.haveRequired; i = $f.i; protoHandler = $f.protoHandler; s = $f.s; sawBad = $f.sawBad; x$4 = $f.x$4; x$5 = $f.x$5; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
102965
103021
|
conf = [conf];
|
|
102966
103022
|
if (s === ptrType$51.nil) {
|
|
102967
103023
|
$panic(new $String("nil *http.Server"));
|
|
@@ -103021,21 +103077,12 @@ $packages["net/http"] = (function() {
|
|
|
103021
103077
|
/* } */ case 12:
|
|
103022
103078
|
/* } */ case 4:
|
|
103023
103079
|
s.TLSConfig.PreferServerCipherSuites = true;
|
|
103024
|
-
|
|
103025
|
-
_ref$1 = s.TLSConfig.NextProtos;
|
|
103026
|
-
_i$1 = 0;
|
|
103027
|
-
while (true) {
|
|
103028
|
-
if (!(_i$1 < _ref$1.$length)) { break; }
|
|
103029
|
-
p = ((_i$1 < 0 || _i$1 >= _ref$1.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref$1.$array[_ref$1.$offset + _i$1]);
|
|
103030
|
-
if (p === "h2") {
|
|
103031
|
-
haveNPN = true;
|
|
103032
|
-
break;
|
|
103033
|
-
}
|
|
103034
|
-
_i$1++;
|
|
103035
|
-
}
|
|
103036
|
-
if (!haveNPN) {
|
|
103080
|
+
if (!http2strSliceContains(s.TLSConfig.NextProtos, "h2")) {
|
|
103037
103081
|
s.TLSConfig.NextProtos = $append(s.TLSConfig.NextProtos, "h2");
|
|
103038
103082
|
}
|
|
103083
|
+
if (!http2strSliceContains(s.TLSConfig.NextProtos, "http/1.1")) {
|
|
103084
|
+
s.TLSConfig.NextProtos = $append(s.TLSConfig.NextProtos, "http/1.1");
|
|
103085
|
+
}
|
|
103039
103086
|
if (s.TLSNextProto === false) {
|
|
103040
103087
|
s.TLSNextProto = $makeMap($String.keyFor, []);
|
|
103041
103088
|
}
|
|
@@ -103063,7 +103110,7 @@ $packages["net/http"] = (function() {
|
|
|
103063
103110
|
}; })(conf);
|
|
103064
103111
|
_key = "h2"; (s.TLSNextProto || $throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(_key)] = { k: _key, v: protoHandler };
|
|
103065
103112
|
$s = -1; return $ifaceNil;
|
|
103066
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: http2ConfigureServer }; } $f._1 = _1; $f._i = _i; $f.
|
|
103113
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: http2ConfigureServer }; } $f._1 = _1; $f._i = _i; $f._key = _key; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._ref = _ref; $f._tmp = _tmp; $f._tmp$1 = _tmp$1; $f.conf = conf; $f.cs = cs; $f.h1 = h1; $f.h2 = h2; $f.haveRequired = haveRequired; $f.i = i; $f.protoHandler = protoHandler; $f.s = s; $f.sawBad = sawBad; $f.x$4 = x$4; $f.x$5 = x$5; $f.$s = $s; $f.$r = $r; return $f;
|
|
103067
103114
|
};
|
|
103068
103115
|
http2ServeConnOpts.ptr.prototype.context = function() {
|
|
103069
103116
|
var o;
|
|
@@ -103423,7 +103470,9 @@ $packages["net/http"] = (function() {
|
|
|
103423
103470
|
}
|
|
103424
103471
|
_r$2 = CanonicalHeaderKey(v); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
103425
103472
|
cv = _r$2;
|
|
103426
|
-
|
|
103473
|
+
if ($keys(sc.canonHeader).length < 32) {
|
|
103474
|
+
_key = v; (sc.canonHeader || $throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(_key)] = { k: _key, v: cv };
|
|
103475
|
+
}
|
|
103427
103476
|
$s = -1; return cv;
|
|
103428
103477
|
/* */ } return; } if ($f === undefined) { $f = { $blk: http2serverConn.ptr.prototype.canonicalHeader }; } $f._entry = _entry; $f._entry$1 = _entry$1; $f._key = _key; $f._r$2 = _r$2; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f.cv = cv; $f.ok = ok; $f.sc = sc; $f.v = v; $f.$s = $s; $f.$r = $r; return $f;
|
|
103429
103478
|
};
|
|
@@ -104552,11 +104601,11 @@ $packages["net/http"] = (function() {
|
|
|
104552
104601
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _tuple = $f._tuple; _tuple$1 = $f._tuple$1; data = $f.data; err = $f.err; f = $f.f; id = $f.id; pad = $f.pad; sc = $f.sc; st = $f.st; state = $f.state; wrote = $f.wrote; x$10 = $f.x$10; x$11 = $f.x$11; x$12 = $f.x$12; x$13 = $f.x$13; x$14 = $f.x$14; x$15 = $f.x$15; x$4 = $f.x$4; x$5 = $f.x$5; x$6 = $f.x$6; x$7 = $f.x$7; x$8 = $f.x$8; x$9 = $f.x$9; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
104553
104602
|
sc = this;
|
|
104554
104603
|
$r = sc.serveG.check(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
104555
|
-
|
|
104604
|
+
id = $clone(f.http2FrameHeader, http2FrameHeader).Header().StreamID;
|
|
104605
|
+
if (sc.inGoAway && (!((sc.goAwayCode === 0)) || id > sc.maxClientStreamID)) {
|
|
104556
104606
|
$s = -1; return $ifaceNil;
|
|
104557
104607
|
}
|
|
104558
104608
|
data = f.Data();
|
|
104559
|
-
id = $clone(f.http2FrameHeader, http2FrameHeader).Header().StreamID;
|
|
104560
104609
|
_r$2 = sc.state(id); /* */ $s = 2; case 2: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
104561
104610
|
_tuple = _r$2;
|
|
104562
104611
|
state = _tuple[0];
|
|
@@ -105755,8 +105804,8 @@ $packages["net/http"] = (function() {
|
|
|
105755
105804
|
};
|
|
105756
105805
|
http2responseWriter.prototype.handlerDone = function() { return this.$val.handlerDone(); };
|
|
105757
105806
|
http2responseWriter.ptr.prototype.Push = function(target, opts) {
|
|
105758
|
-
var
|
|
105759
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true;
|
|
105807
|
+
var _entry, _i, _keys, _r$10, _r$11, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, _ref, _selection, _selection$1, _tuple, err, err$1, err$2, k, msg, opts, sc, st, target, u, w, wantScheme, $s, $r;
|
|
105808
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _i = $f._i; _keys = $f._keys; _r$10 = $f._r$10; _r$11 = $f._r$11; _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; _r$8 = $f._r$8; _r$9 = $f._r$9; _ref = $f._ref; _selection = $f._selection; _selection$1 = $f._selection$1; _tuple = $f._tuple; err = $f.err; err$1 = $f.err$1; err$2 = $f.err$2; k = $f.k; msg = $f.msg; opts = $f.opts; sc = $f.sc; st = $f.st; target = $f.target; u = $f.u; w = $f.w; wantScheme = $f.wantScheme; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
105760
105809
|
w = this;
|
|
105761
105810
|
st = w.rws.stream;
|
|
105762
105811
|
sc = st.sc;
|
|
@@ -105824,44 +105873,41 @@ $packages["net/http"] = (function() {
|
|
|
105824
105873
|
_r$5 = fmt.Errorf("promised request headers cannot include pseudo header %q", new sliceType([new $String(k)])); /* */ $s = 16; case 16: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
105825
105874
|
$s = -1; return _r$5;
|
|
105826
105875
|
/* } */ case 15:
|
|
105827
|
-
|
|
105828
|
-
|
|
105829
|
-
|
|
105830
|
-
/* */ $s =
|
|
105831
|
-
|
|
105832
|
-
|
|
105833
|
-
$s = -1; return _r$7;
|
|
105834
|
-
/* } */ case 20:
|
|
105835
|
-
case 17:
|
|
105876
|
+
/* */ if (http2asciiEqualFold(k, "content-length") || http2asciiEqualFold(k, "content-encoding") || http2asciiEqualFold(k, "trailer") || http2asciiEqualFold(k, "te") || http2asciiEqualFold(k, "expect") || http2asciiEqualFold(k, "host")) { $s = 17; continue; }
|
|
105877
|
+
/* */ $s = 18; continue;
|
|
105878
|
+
/* if (http2asciiEqualFold(k, "content-length") || http2asciiEqualFold(k, "content-encoding") || http2asciiEqualFold(k, "trailer") || http2asciiEqualFold(k, "te") || http2asciiEqualFold(k, "expect") || http2asciiEqualFold(k, "host")) { */ case 17:
|
|
105879
|
+
_r$6 = fmt.Errorf("promised request headers cannot include %q", new sliceType([new $String(k)])); /* */ $s = 19; case 19: if($c) { $c = false; _r$6 = _r$6.$blk(); } if (_r$6 && _r$6.$blk !== undefined) { break s; }
|
|
105880
|
+
$s = -1; return _r$6;
|
|
105881
|
+
/* } */ case 18:
|
|
105836
105882
|
_i++;
|
|
105837
105883
|
/* } */ $s = 12; continue; case 13:
|
|
105838
|
-
_r$
|
|
105839
|
-
err$1 = _r$
|
|
105884
|
+
_r$7 = http2checkValidHTTP2RequestHeaders(opts.Header); /* */ $s = 20; case 20: if($c) { $c = false; _r$7 = _r$7.$blk(); } if (_r$7 && _r$7.$blk !== undefined) { break s; }
|
|
105885
|
+
err$1 = _r$7;
|
|
105840
105886
|
if (!($interfaceIsEqual(err$1, $ifaceNil))) {
|
|
105841
105887
|
$s = -1; return err$1;
|
|
105842
105888
|
}
|
|
105843
|
-
/* */ if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { $s =
|
|
105844
|
-
/* */ $s =
|
|
105845
|
-
/* if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { */ case
|
|
105846
|
-
_r$
|
|
105847
|
-
$s = -1; return _r$
|
|
105848
|
-
/* } */ case
|
|
105849
|
-
_r$
|
|
105850
|
-
msg = new http2startPushRequest.ptr(st, opts.Method, u, http2cloneHeader(opts.Header), $assertType(_r$
|
|
105851
|
-
_r$
|
|
105852
|
-
_selection = _r$
|
|
105853
|
-
/* */ if (_selection[0] === 0) { $s =
|
|
105854
|
-
/* */ if (_selection[0] === 1) { $s =
|
|
105855
|
-
/* */ if (_selection[0] === 2) { $s =
|
|
105856
|
-
/* */ $s =
|
|
105857
|
-
/* if (_selection[0] === 0) { */ case
|
|
105889
|
+
/* */ if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { $s = 21; continue; }
|
|
105890
|
+
/* */ $s = 22; continue;
|
|
105891
|
+
/* if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { */ case 21:
|
|
105892
|
+
_r$8 = fmt.Errorf("method %q must be GET or HEAD", new sliceType([new $String(opts.Method)])); /* */ $s = 23; case 23: if($c) { $c = false; _r$8 = _r$8.$blk(); } if (_r$8 && _r$8.$blk !== undefined) { break s; }
|
|
105893
|
+
$s = -1; return _r$8;
|
|
105894
|
+
/* } */ case 22:
|
|
105895
|
+
_r$9 = http2errChanPool.Get(); /* */ $s = 24; case 24: if($c) { $c = false; _r$9 = _r$9.$blk(); } if (_r$9 && _r$9.$blk !== undefined) { break s; }
|
|
105896
|
+
msg = new http2startPushRequest.ptr(st, opts.Method, u, http2cloneHeader(opts.Header), $assertType(_r$9, chanType));
|
|
105897
|
+
_r$10 = $select([[sc.doneServing], [st.cw], [sc.serveMsgCh, msg]]); /* */ $s = 25; case 25: if($c) { $c = false; _r$10 = _r$10.$blk(); } if (_r$10 && _r$10.$blk !== undefined) { break s; }
|
|
105898
|
+
_selection = _r$10;
|
|
105899
|
+
/* */ if (_selection[0] === 0) { $s = 26; continue; }
|
|
105900
|
+
/* */ if (_selection[0] === 1) { $s = 27; continue; }
|
|
105901
|
+
/* */ if (_selection[0] === 2) { $s = 28; continue; }
|
|
105902
|
+
/* */ $s = 29; continue;
|
|
105903
|
+
/* if (_selection[0] === 0) { */ case 26:
|
|
105858
105904
|
$s = -1; return http2errClientDisconnected;
|
|
105859
|
-
/* } else if (_selection[0] === 1) { */ case
|
|
105905
|
+
/* } else if (_selection[0] === 1) { */ case 27:
|
|
105860
105906
|
$s = -1; return http2errStreamClosed;
|
|
105861
|
-
/* } else if (_selection[0] === 2) { */ case
|
|
105862
|
-
/* } */ case
|
|
105863
|
-
_r$
|
|
105864
|
-
_selection$1 = _r$
|
|
105907
|
+
/* } else if (_selection[0] === 2) { */ case 28:
|
|
105908
|
+
/* } */ case 29:
|
|
105909
|
+
_r$11 = $select([[sc.doneServing], [st.cw], [msg.done]]); /* */ $s = 30; case 30: if($c) { $c = false; _r$11 = _r$11.$blk(); } if (_r$11 && _r$11.$blk !== undefined) { break s; }
|
|
105910
|
+
_selection$1 = _r$11;
|
|
105865
105911
|
if (_selection$1[0] === 0) {
|
|
105866
105912
|
$s = -1; return http2errClientDisconnected;
|
|
105867
105913
|
} else if (_selection$1[0] === 1) {
|
|
@@ -105872,7 +105918,7 @@ $packages["net/http"] = (function() {
|
|
|
105872
105918
|
$s = -1; return err$2;
|
|
105873
105919
|
}
|
|
105874
105920
|
$s = -1; return $ifaceNil;
|
|
105875
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: http2responseWriter.ptr.prototype.Push }; } $f.
|
|
105921
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: http2responseWriter.ptr.prototype.Push }; } $f._entry = _entry; $f._i = _i; $f._keys = _keys; $f._r$10 = _r$10; $f._r$11 = _r$11; $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._r$8 = _r$8; $f._r$9 = _r$9; $f._ref = _ref; $f._selection = _selection; $f._selection$1 = _selection$1; $f._tuple = _tuple; $f.err = err; $f.err$1 = err$1; $f.err$2 = err$2; $f.k = k; $f.msg = msg; $f.opts = opts; $f.sc = sc; $f.st = st; $f.target = target; $f.u = u; $f.w = w; $f.wantScheme = wantScheme; $f.$s = $s; $f.$r = $r; return $f;
|
|
105876
105922
|
};
|
|
105877
105923
|
http2responseWriter.prototype.Push = function(target, opts) { return this.$val.Push(target, opts); };
|
|
105878
105924
|
http2serverConn.ptr.prototype.startPush = function(msg) {
|
|
@@ -106365,8 +106411,8 @@ $packages["net/http"] = (function() {
|
|
|
106365
106411
|
};
|
|
106366
106412
|
http2writeWindowUpdate.prototype.writeFrame = function(ctx) { return this.$val.writeFrame(ctx); };
|
|
106367
106413
|
http2encodeHeaders = function(enc, h, keys) {
|
|
106368
|
-
var _entry, _i, _i$1, _r$2, _r$3, _r$4, _ref, _ref$1, enc, h, isTE, k, keys, sorter, v, vv, $s, $deferred, $r;
|
|
106369
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _i = $f._i; _i$1 = $f._i$1; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _ref = $f._ref; _ref$1 = $f._ref$1; enc = $f.enc; h = $f.h; isTE = $f.isTE; k = $f.k; keys = $f.keys; sorter = $f.sorter; v = $f.v; vv = $f.vv; $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);
|
|
106414
|
+
var _entry, _i, _i$1, _r$2, _r$3, _r$4, _ref, _ref$1, _tuple, ascii, enc, h, isTE, k, k$1, keys, sorter, v, vv, $s, $deferred, $r;
|
|
106415
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _i = $f._i; _i$1 = $f._i$1; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _ref = $f._ref; _ref$1 = $f._ref$1; _tuple = $f._tuple; ascii = $f.ascii; enc = $f.enc; h = $f.h; isTE = $f.isTE; k = $f.k; k$1 = $f.k$1; keys = $f.keys; sorter = $f.sorter; v = $f.v; vv = $f.vv; $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);
|
|
106370
106416
|
/* */ if (keys === sliceType$2.nil) { $s = 1; continue; }
|
|
106371
106417
|
/* */ $s = 2; continue;
|
|
106372
106418
|
/* if (keys === sliceType$2.nil) { */ case 1:
|
|
@@ -106383,38 +106429,46 @@ $packages["net/http"] = (function() {
|
|
|
106383
106429
|
k = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
106384
106430
|
vv = (_entry = h[$String.keyFor(k)], _entry !== undefined ? _entry.v : sliceType$2.nil);
|
|
106385
106431
|
_r$4 = http2lowerHeader(k); /* */ $s = 7; case 7: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
106386
|
-
|
|
106387
|
-
|
|
106432
|
+
_tuple = _r$4;
|
|
106433
|
+
k$1 = _tuple[0];
|
|
106434
|
+
ascii = _tuple[1];
|
|
106435
|
+
/* */ if (!ascii) { $s = 8; continue; }
|
|
106388
106436
|
/* */ $s = 9; continue;
|
|
106389
|
-
/* if (!
|
|
106437
|
+
/* if (!ascii) { */ case 8:
|
|
106390
106438
|
_i++;
|
|
106391
106439
|
/* continue; */ $s = 5; continue;
|
|
106392
106440
|
/* } */ case 9:
|
|
106393
|
-
|
|
106441
|
+
/* */ if (!http2validWireHeaderFieldName(k$1)) { $s = 10; continue; }
|
|
106442
|
+
/* */ $s = 11; continue;
|
|
106443
|
+
/* if (!http2validWireHeaderFieldName(k$1)) { */ case 10:
|
|
106444
|
+
_i++;
|
|
106445
|
+
/* continue; */ $s = 5; continue;
|
|
106446
|
+
/* } */ case 11:
|
|
106447
|
+
isTE = k$1 === "transfer-encoding";
|
|
106394
106448
|
_ref$1 = vv;
|
|
106395
106449
|
_i$1 = 0;
|
|
106396
|
-
/* while (true) { */ case
|
|
106397
|
-
/* if (!(_i$1 < _ref$1.$length)) { break; } */ if(!(_i$1 < _ref$1.$length)) { $s =
|
|
106450
|
+
/* while (true) { */ case 12:
|
|
106451
|
+
/* if (!(_i$1 < _ref$1.$length)) { break; } */ if(!(_i$1 < _ref$1.$length)) { $s = 13; continue; }
|
|
106398
106452
|
v = ((_i$1 < 0 || _i$1 >= _ref$1.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref$1.$array[_ref$1.$offset + _i$1]);
|
|
106399
|
-
/* */ if (!httpguts.ValidHeaderFieldValue(v)) { $s =
|
|
106400
|
-
/* */ $s = 13; continue;
|
|
106401
|
-
/* if (!httpguts.ValidHeaderFieldValue(v)) { */ case 12:
|
|
106402
|
-
_i$1++;
|
|
106403
|
-
/* continue; */ $s = 10; continue;
|
|
106404
|
-
/* } */ case 13:
|
|
106405
|
-
/* */ if (isTE && !(v === "trailers")) { $s = 14; continue; }
|
|
106453
|
+
/* */ if (!httpguts.ValidHeaderFieldValue(v)) { $s = 14; continue; }
|
|
106406
106454
|
/* */ $s = 15; continue;
|
|
106407
|
-
/* if (
|
|
106455
|
+
/* if (!httpguts.ValidHeaderFieldValue(v)) { */ case 14:
|
|
106408
106456
|
_i$1++;
|
|
106409
|
-
/* continue; */ $s =
|
|
106457
|
+
/* continue; */ $s = 12; continue;
|
|
106410
106458
|
/* } */ case 15:
|
|
106411
|
-
|
|
106459
|
+
/* */ if (isTE && !(v === "trailers")) { $s = 16; continue; }
|
|
106460
|
+
/* */ $s = 17; continue;
|
|
106461
|
+
/* if (isTE && !(v === "trailers")) { */ case 16:
|
|
106462
|
+
_i$1++;
|
|
106463
|
+
/* continue; */ $s = 12; continue;
|
|
106464
|
+
/* } */ case 17:
|
|
106465
|
+
$r = http2encKV(enc, k$1, v); /* */ $s = 18; case 18: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
106412
106466
|
_i$1++;
|
|
106413
|
-
/* } */ $s =
|
|
106467
|
+
/* } */ $s = 12; continue; case 13:
|
|
106414
106468
|
_i++;
|
|
106415
106469
|
/* } */ $s = 5; continue; case 6:
|
|
106416
106470
|
$s = -1; return;
|
|
106417
|
-
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: http2encodeHeaders }; } $f._entry = _entry; $f._i = _i; $f._i$1 = _i$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f._ref = _ref; $f._ref$1 = _ref$1; $f.enc = enc; $f.h = h; $f.isTE = isTE; $f.k = k; $f.keys = keys; $f.sorter = sorter; $f.v = v; $f.vv = vv; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
106471
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: http2encodeHeaders }; } $f._entry = _entry; $f._i = _i; $f._i$1 = _i$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f._ref = _ref; $f._ref$1 = _ref$1; $f._tuple = _tuple; $f.ascii = ascii; $f.enc = enc; $f.h = h; $f.isTE = isTE; $f.k = k; $f.k$1 = k$1; $f.keys = keys; $f.sorter = sorter; $f.v = v; $f.vv = vv; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
106418
106472
|
};
|
|
106419
106473
|
http2FrameWriteRequest.ptr.prototype.StreamID = function() {
|
|
106420
106474
|
var _tuple, ok, se, wr;
|
|
@@ -106593,16 +106647,16 @@ $packages["net/http"] = (function() {
|
|
|
106593
106647
|
}
|
|
106594
106648
|
x$4 = ln - 1 >> 0;
|
|
106595
106649
|
q = (x$5 = p.$get(), ((x$4 < 0 || x$4 >= x$5.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$5.$array[x$5.$offset + x$4]));
|
|
106596
|
-
(x$6 = p.$get(), ((x$4 < 0 || x$4 >= x$6.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$6.$array[x$6.$offset + x$4] = ptrType$
|
|
106650
|
+
(x$6 = p.$get(), ((x$4 < 0 || x$4 >= x$6.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$6.$array[x$6.$offset + x$4] = ptrType$81.nil));
|
|
106597
106651
|
p.$set($subslice((p.$get()), 0, x$4));
|
|
106598
106652
|
return q;
|
|
106599
106653
|
};
|
|
106600
106654
|
http2NewPriorityWriteScheduler = function(cfg) {
|
|
106601
106655
|
var _key, cfg, ws;
|
|
106602
|
-
if (cfg === ptrType$
|
|
106656
|
+
if (cfg === ptrType$82.nil) {
|
|
106603
106657
|
cfg = new http2PriorityWriteSchedulerConfig.ptr(10, 10, false);
|
|
106604
106658
|
}
|
|
106605
|
-
ws = new http2priorityWriteScheduler.ptr(new http2priorityNode.ptr(new http2writeQueue.ptr(sliceType$24.nil), 0, 0, 0, new $Int64(0, 0), new $Int64(0, 0), ptrType$
|
|
106659
|
+
ws = new http2priorityWriteScheduler.ptr(new http2priorityNode.ptr(new http2writeQueue.ptr(sliceType$24.nil), 0, 0, 0, new $Int64(0, 0), new $Int64(0, 0), ptrType$83.nil, ptrType$83.nil, ptrType$83.nil, ptrType$83.nil), {}, 0, sliceType$25.nil, sliceType$25.nil, cfg.MaxClosedNodesInTree, cfg.MaxIdleNodesInTree, 0, cfg.ThrottleOutOfOrderWrites, sliceType$25.nil, http2writeQueuePool.nil);
|
|
106606
106660
|
_key = 0; (ws.nodes || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: ws.root };
|
|
106607
106661
|
if (cfg.ThrottleOutOfOrderWrites) {
|
|
106608
106662
|
ws.writeThrottleLimit = 1024;
|
|
@@ -106621,24 +106675,24 @@ $packages["net/http"] = (function() {
|
|
|
106621
106675
|
return;
|
|
106622
106676
|
}
|
|
106623
106677
|
parent$1 = n.parent;
|
|
106624
|
-
if (!(parent$1 === ptrType$
|
|
106625
|
-
if (n.prev === ptrType$
|
|
106678
|
+
if (!(parent$1 === ptrType$83.nil)) {
|
|
106679
|
+
if (n.prev === ptrType$83.nil) {
|
|
106626
106680
|
parent$1.kids = n.next;
|
|
106627
106681
|
} else {
|
|
106628
106682
|
n.prev.next = n.next;
|
|
106629
106683
|
}
|
|
106630
|
-
if (!(n.next === ptrType$
|
|
106684
|
+
if (!(n.next === ptrType$83.nil)) {
|
|
106631
106685
|
n.next.prev = n.prev;
|
|
106632
106686
|
}
|
|
106633
106687
|
}
|
|
106634
106688
|
n.parent = parent;
|
|
106635
|
-
if (parent === ptrType$
|
|
106636
|
-
n.next = ptrType$
|
|
106637
|
-
n.prev = ptrType$
|
|
106689
|
+
if (parent === ptrType$83.nil) {
|
|
106690
|
+
n.next = ptrType$83.nil;
|
|
106691
|
+
n.prev = ptrType$83.nil;
|
|
106638
106692
|
} else {
|
|
106639
106693
|
n.next = parent.kids;
|
|
106640
|
-
n.prev = ptrType$
|
|
106641
|
-
if (!(n.next === ptrType$
|
|
106694
|
+
n.prev = ptrType$83.nil;
|
|
106695
|
+
if (!(n.next === ptrType$83.nil)) {
|
|
106642
106696
|
n.next.prev = n;
|
|
106643
106697
|
}
|
|
106644
106698
|
parent.kids = n;
|
|
@@ -106650,7 +106704,7 @@ $packages["net/http"] = (function() {
|
|
|
106650
106704
|
n = this;
|
|
106651
106705
|
n.bytes = (x$4 = n.bytes, x$5 = b, new $Int64(x$4.$high + x$5.$high, x$4.$low + x$5.$low));
|
|
106652
106706
|
while (true) {
|
|
106653
|
-
if (!(!(n === ptrType$
|
|
106707
|
+
if (!(!(n === ptrType$83.nil))) { break; }
|
|
106654
106708
|
n.subtreeBytes = (x$6 = n.subtreeBytes, x$7 = b, new $Int64(x$6.$high + x$7.$high, x$6.$low + x$7.$low));
|
|
106655
106709
|
n = n.parent;
|
|
106656
106710
|
}
|
|
@@ -106668,7 +106722,7 @@ $packages["net/http"] = (function() {
|
|
|
106668
106722
|
/* if (_v) { */ case 1:
|
|
106669
106723
|
$s = -1; return true;
|
|
106670
106724
|
/* } */ case 2:
|
|
106671
|
-
if (n.kids === ptrType$
|
|
106725
|
+
if (n.kids === ptrType$83.nil) {
|
|
106672
106726
|
$s = -1; return false;
|
|
106673
106727
|
}
|
|
106674
106728
|
if (!((n.id === 0))) {
|
|
@@ -106678,7 +106732,7 @@ $packages["net/http"] = (function() {
|
|
|
106678
106732
|
needSort = false;
|
|
106679
106733
|
k = n.kids.next;
|
|
106680
106734
|
while (true) {
|
|
106681
|
-
if (!(!(k === ptrType$
|
|
106735
|
+
if (!(!(k === ptrType$83.nil))) { break; }
|
|
106682
106736
|
if (!((k.weight === w))) {
|
|
106683
106737
|
needSort = true;
|
|
106684
106738
|
break;
|
|
@@ -106690,7 +106744,7 @@ $packages["net/http"] = (function() {
|
|
|
106690
106744
|
/* if (!needSort) { */ case 5:
|
|
106691
106745
|
k$1 = n.kids;
|
|
106692
106746
|
/* while (true) { */ case 7:
|
|
106693
|
-
/* if (!(!(k$1 === ptrType$
|
|
106747
|
+
/* if (!(!(k$1 === ptrType$83.nil))) { break; } */ if(!(!(k$1 === ptrType$83.nil))) { $s = 8; continue; }
|
|
106694
106748
|
_r$3 = k$1.walkReadyInOrder(openParent, tmp, f); /* */ $s = 11; case 11: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
106695
106749
|
/* */ if (_r$3) { $s = 9; continue; }
|
|
106696
106750
|
/* */ $s = 10; continue;
|
|
@@ -106703,9 +106757,9 @@ $packages["net/http"] = (function() {
|
|
|
106703
106757
|
/* } */ case 6:
|
|
106704
106758
|
tmp.$set($subslice((tmp.$get()), 0, 0));
|
|
106705
106759
|
while (true) {
|
|
106706
|
-
if (!(!(n.kids === ptrType$
|
|
106760
|
+
if (!(!(n.kids === ptrType$83.nil))) { break; }
|
|
106707
106761
|
tmp.$set($append(tmp.$get(), n.kids));
|
|
106708
|
-
n.kids.setParent(ptrType$
|
|
106762
|
+
n.kids.setParent(ptrType$83.nil);
|
|
106709
106763
|
}
|
|
106710
106764
|
$r = sort.Sort(((x$4 = tmp.$get(), $subslice(new http2sortPriorityNodeSiblings(x$4.$array), x$4.$offset, x$4.$offset + x$4.$length)))); /* */ $s = 12; case 12: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
106711
106765
|
i = tmp.$get().$length - 1 >> 0;
|
|
@@ -106716,7 +106770,7 @@ $packages["net/http"] = (function() {
|
|
|
106716
106770
|
}
|
|
106717
106771
|
k$2 = n.kids;
|
|
106718
106772
|
/* while (true) { */ case 13:
|
|
106719
|
-
/* if (!(!(k$2 === ptrType$
|
|
106773
|
+
/* if (!(!(k$2 === ptrType$83.nil))) { break; } */ if(!(!(k$2 === ptrType$83.nil))) { $s = 14; continue; }
|
|
106720
106774
|
_r$4 = k$2.walkReadyInOrder(openParent, tmp, f); /* */ $s = 17; case 17: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
106721
106775
|
/* */ if (_r$4) { $s = 15; continue; }
|
|
106722
106776
|
/* */ $s = 16; continue;
|
|
@@ -106768,10 +106822,10 @@ $packages["net/http"] = (function() {
|
|
|
106768
106822
|
var _entry, _entry$1, _key, _r$2, curr, n, options, parent, streamID, ws, $s, $r;
|
|
106769
106823
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _entry$1 = $f._entry$1; _key = $f._key; _r$2 = $f._r$2; curr = $f.curr; n = $f.n; options = $f.options; parent = $f.parent; streamID = $f.streamID; ws = $f.ws; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
106770
106824
|
ws = this;
|
|
106771
|
-
curr = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
106772
|
-
/* */ if (!(curr === ptrType$
|
|
106825
|
+
curr = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil);
|
|
106826
|
+
/* */ if (!(curr === ptrType$83.nil)) { $s = 1; continue; }
|
|
106773
106827
|
/* */ $s = 2; continue;
|
|
106774
|
-
/* if (!(curr === ptrType$
|
|
106828
|
+
/* if (!(curr === ptrType$83.nil)) { */ case 1:
|
|
106775
106829
|
/* */ if (!((curr.state === 2))) { $s = 3; continue; }
|
|
106776
106830
|
/* */ $s = 4; continue;
|
|
106777
106831
|
/* if (!((curr.state === 2))) { */ case 3:
|
|
@@ -106781,11 +106835,11 @@ $packages["net/http"] = (function() {
|
|
|
106781
106835
|
curr.state = 0;
|
|
106782
106836
|
$s = -1; return;
|
|
106783
106837
|
/* } */ case 2:
|
|
106784
|
-
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(options.PusherID)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
106785
|
-
if (parent === ptrType$
|
|
106838
|
+
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(options.PusherID)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil);
|
|
106839
|
+
if (parent === ptrType$83.nil) {
|
|
106786
106840
|
parent = ws.root;
|
|
106787
106841
|
}
|
|
106788
|
-
n = new http2priorityNode.ptr($clone((ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
106842
|
+
n = new http2priorityNode.ptr($clone((ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).get(), http2writeQueue), streamID, 15, 0, new $Int64(0, 0), new $Int64(0, 0), ptrType$83.nil, ptrType$83.nil, ptrType$83.nil, ptrType$83.nil);
|
|
106789
106843
|
n.setParent(parent);
|
|
106790
106844
|
_key = streamID; (ws.nodes || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: n };
|
|
106791
106845
|
if (streamID > ws.maxID) {
|
|
@@ -106803,26 +106857,26 @@ $packages["net/http"] = (function() {
|
|
|
106803
106857
|
if (streamID === 0) {
|
|
106804
106858
|
$panic(new $String("violation of WriteScheduler interface: cannot close stream 0"));
|
|
106805
106859
|
}
|
|
106806
|
-
/* */ if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
106860
|
+
/* */ if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil) === ptrType$83.nil) { $s = 1; continue; }
|
|
106807
106861
|
/* */ $s = 2; continue;
|
|
106808
|
-
/* if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
106862
|
+
/* if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil) === ptrType$83.nil) { */ case 1:
|
|
106809
106863
|
_r$2 = fmt.Sprintf("violation of WriteScheduler interface: unknown stream %d", new sliceType([new $Uint32(streamID)])); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
106810
106864
|
$panic(new $String(_r$2));
|
|
106811
106865
|
/* } */ case 2:
|
|
106812
|
-
/* */ if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
106866
|
+
/* */ if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil).state === 0))) { $s = 4; continue; }
|
|
106813
106867
|
/* */ $s = 5; continue;
|
|
106814
|
-
/* if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
106868
|
+
/* if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil).state === 0))) { */ case 4:
|
|
106815
106869
|
_r$3 = fmt.Sprintf("violation of WriteScheduler interface: stream %d already closed", new sliceType([new $Uint32(streamID)])); /* */ $s = 6; case 6: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
106816
106870
|
$panic(new $String(_r$3));
|
|
106817
106871
|
/* } */ case 5:
|
|
106818
|
-
n = (_entry$2 = ws.nodes[$Uint32.keyFor(streamID)], _entry$2 !== undefined ? _entry$2.v : ptrType$
|
|
106872
|
+
n = (_entry$2 = ws.nodes[$Uint32.keyFor(streamID)], _entry$2 !== undefined ? _entry$2.v : ptrType$83.nil);
|
|
106819
106873
|
n.state = 1;
|
|
106820
106874
|
n.addBytes((x$4 = n.bytes, new $Int64(-x$4.$high, -x$4.$low)));
|
|
106821
106875
|
q[0] = $clone(n.q, http2writeQueue);
|
|
106822
|
-
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
106876
|
+
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).put(q[0]);
|
|
106823
106877
|
n.q.s = sliceType$24.nil;
|
|
106824
106878
|
if (ws.maxClosedNodesInTree > 0) {
|
|
106825
|
-
ws.addClosedOrIdleNode((ws.$ptr_closedNodes || (ws.$ptr_closedNodes = new ptrType$
|
|
106879
|
+
ws.addClosedOrIdleNode((ws.$ptr_closedNodes || (ws.$ptr_closedNodes = new ptrType$85(function() { return this.$target.closedNodes; }, function($v) { this.$target.closedNodes = $v; }, ws))), ws.maxClosedNodesInTree, n);
|
|
106826
106880
|
} else {
|
|
106827
106881
|
ws.removeNode(n);
|
|
106828
106882
|
}
|
|
@@ -106836,19 +106890,19 @@ $packages["net/http"] = (function() {
|
|
|
106836
106890
|
if (streamID === 0) {
|
|
106837
106891
|
$panic(new $String("adjustPriority on root"));
|
|
106838
106892
|
}
|
|
106839
|
-
n = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
106840
|
-
if (n === ptrType$
|
|
106893
|
+
n = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil);
|
|
106894
|
+
if (n === ptrType$83.nil) {
|
|
106841
106895
|
if (streamID <= ws.maxID || (ws.maxIdleNodesInTree === 0)) {
|
|
106842
106896
|
return;
|
|
106843
106897
|
}
|
|
106844
106898
|
ws.maxID = streamID;
|
|
106845
|
-
n = new http2priorityNode.ptr($clone((ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
106899
|
+
n = new http2priorityNode.ptr($clone((ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).get(), http2writeQueue), streamID, 15, 2, new $Int64(0, 0), new $Int64(0, 0), ptrType$83.nil, ptrType$83.nil, ptrType$83.nil, ptrType$83.nil);
|
|
106846
106900
|
n.setParent(ws.root);
|
|
106847
106901
|
_key = streamID; (ws.nodes || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: n };
|
|
106848
|
-
ws.addClosedOrIdleNode((ws.$ptr_idleNodes || (ws.$ptr_idleNodes = new ptrType$
|
|
106902
|
+
ws.addClosedOrIdleNode((ws.$ptr_idleNodes || (ws.$ptr_idleNodes = new ptrType$85(function() { return this.$target.idleNodes; }, function($v) { this.$target.idleNodes = $v; }, ws))), ws.maxIdleNodesInTree, n);
|
|
106849
106903
|
}
|
|
106850
|
-
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(priority.StreamDep)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
106851
|
-
if (parent === ptrType$
|
|
106904
|
+
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(priority.StreamDep)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil);
|
|
106905
|
+
if (parent === ptrType$83.nil) {
|
|
106852
106906
|
n.setParent(ws.root);
|
|
106853
106907
|
n.weight = 15;
|
|
106854
106908
|
return;
|
|
@@ -106858,7 +106912,7 @@ $packages["net/http"] = (function() {
|
|
|
106858
106912
|
}
|
|
106859
106913
|
x$4 = parent.parent;
|
|
106860
106914
|
while (true) {
|
|
106861
|
-
if (!(!(x$4 === ptrType$
|
|
106915
|
+
if (!(!(x$4 === ptrType$83.nil))) { break; }
|
|
106862
106916
|
if (x$4 === n) {
|
|
106863
106917
|
parent.setParent(n.parent);
|
|
106864
106918
|
break;
|
|
@@ -106868,7 +106922,7 @@ $packages["net/http"] = (function() {
|
|
|
106868
106922
|
if (priority.Exclusive) {
|
|
106869
106923
|
k = parent.kids;
|
|
106870
106924
|
while (true) {
|
|
106871
|
-
if (!(!(k === ptrType$
|
|
106925
|
+
if (!(!(k === ptrType$83.nil))) { break; }
|
|
106872
106926
|
next = k.next;
|
|
106873
106927
|
if (!(k === n)) {
|
|
106874
106928
|
k.setParent(n);
|
|
@@ -106883,13 +106937,13 @@ $packages["net/http"] = (function() {
|
|
|
106883
106937
|
http2priorityWriteScheduler.ptr.prototype.Push = function(wr) {
|
|
106884
106938
|
var _entry, id, n, wr, ws;
|
|
106885
106939
|
ws = this;
|
|
106886
|
-
n = ptrType$
|
|
106940
|
+
n = ptrType$83.nil;
|
|
106887
106941
|
id = $clone(wr, http2FrameWriteRequest).StreamID();
|
|
106888
106942
|
if (id === 0) {
|
|
106889
106943
|
n = ws.root;
|
|
106890
106944
|
} else {
|
|
106891
|
-
n = (_entry = ws.nodes[$Uint32.keyFor(id)], _entry !== undefined ? _entry.v : ptrType$
|
|
106892
|
-
if (n === ptrType$
|
|
106945
|
+
n = (_entry = ws.nodes[$Uint32.keyFor(id)], _entry !== undefined ? _entry.v : ptrType$83.nil);
|
|
106946
|
+
if (n === ptrType$83.nil) {
|
|
106893
106947
|
if ($clone(wr, http2FrameWriteRequest).DataSize() > 0) {
|
|
106894
106948
|
$panic(new $String("add DATA on non-open stream"));
|
|
106895
106949
|
}
|
|
@@ -106908,7 +106962,7 @@ $packages["net/http"] = (function() {
|
|
|
106908
106962
|
wr[0] = new http2FrameWriteRequest.ptr($ifaceNil, ptrType$5.nil, $chanNil);
|
|
106909
106963
|
ok[0] = false;
|
|
106910
106964
|
ws[0] = this;
|
|
106911
|
-
_r$2 = ws[0].root.walkReadyInOrder(false, (ws[0].$ptr_tmp || (ws[0].$ptr_tmp = new ptrType$
|
|
106965
|
+
_r$2 = ws[0].root.walkReadyInOrder(false, (ws[0].$ptr_tmp || (ws[0].$ptr_tmp = new ptrType$85(function() { return this.$target.tmp; }, function($v) { this.$target.tmp = $v; }, ws[0]))), (function(ok, wr, ws) { return function(n, openParent) {
|
|
106912
106966
|
var _tuple, limit, n, openParent;
|
|
106913
106967
|
limit = 2147483647;
|
|
106914
106968
|
if (openParent) {
|
|
@@ -106960,11 +107014,11 @@ $packages["net/http"] = (function() {
|
|
|
106960
107014
|
ws = this;
|
|
106961
107015
|
k = n.kids;
|
|
106962
107016
|
while (true) {
|
|
106963
|
-
if (!(!(k === ptrType$
|
|
107017
|
+
if (!(!(k === ptrType$83.nil))) { break; }
|
|
106964
107018
|
k.setParent(n.parent);
|
|
106965
107019
|
k = k.next;
|
|
106966
107020
|
}
|
|
106967
|
-
n.setParent(ptrType$
|
|
107021
|
+
n.setParent(ptrType$83.nil);
|
|
106968
107022
|
delete ws.nodes[$Uint32.keyFor(n.id)];
|
|
106969
107023
|
};
|
|
106970
107024
|
http2priorityWriteScheduler.prototype.removeNode = function(n) { return this.$val.removeNode(n); };
|
|
@@ -106979,14 +107033,14 @@ $packages["net/http"] = (function() {
|
|
|
106979
107033
|
http2randomWriteScheduler.ptr.prototype.CloseStream = function(streamID) {
|
|
106980
107034
|
var _entry, _tuple, ok, q, streamID, ws;
|
|
106981
107035
|
ws = this;
|
|
106982
|
-
_tuple = (_entry = ws.sq[$Uint32.keyFor(streamID)], _entry !== undefined ? [_entry.v, true] : [ptrType$
|
|
107036
|
+
_tuple = (_entry = ws.sq[$Uint32.keyFor(streamID)], _entry !== undefined ? [_entry.v, true] : [ptrType$81.nil, false]);
|
|
106983
107037
|
q = _tuple[0];
|
|
106984
107038
|
ok = _tuple[1];
|
|
106985
107039
|
if (!ok) {
|
|
106986
107040
|
return;
|
|
106987
107041
|
}
|
|
106988
107042
|
delete ws.sq[$Uint32.keyFor(streamID)];
|
|
106989
|
-
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
107043
|
+
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).put(q);
|
|
106990
107044
|
};
|
|
106991
107045
|
http2randomWriteScheduler.prototype.CloseStream = function(streamID) { return this.$val.CloseStream(streamID); };
|
|
106992
107046
|
http2randomWriteScheduler.ptr.prototype.AdjustStream = function(streamID, priority) {
|
|
@@ -107002,11 +107056,11 @@ $packages["net/http"] = (function() {
|
|
|
107002
107056
|
ws.zero.push($clone(wr, http2FrameWriteRequest));
|
|
107003
107057
|
return;
|
|
107004
107058
|
}
|
|
107005
|
-
_tuple = (_entry = ws.sq[$Uint32.keyFor(id)], _entry !== undefined ? [_entry.v, true] : [ptrType$
|
|
107059
|
+
_tuple = (_entry = ws.sq[$Uint32.keyFor(id)], _entry !== undefined ? [_entry.v, true] : [ptrType$81.nil, false]);
|
|
107006
107060
|
q = _tuple[0];
|
|
107007
107061
|
ok = _tuple[1];
|
|
107008
107062
|
if (!ok) {
|
|
107009
|
-
q = (ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
107063
|
+
q = (ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).get();
|
|
107010
107064
|
_key = id; (ws.sq || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: q };
|
|
107011
107065
|
}
|
|
107012
107066
|
q.push($clone(wr, http2FrameWriteRequest));
|
|
@@ -107036,7 +107090,7 @@ $packages["net/http"] = (function() {
|
|
|
107036
107090
|
if (ok) {
|
|
107037
107091
|
if (q.empty()) {
|
|
107038
107092
|
delete ws.sq[$Uint32.keyFor(streamID)];
|
|
107039
|
-
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
107093
|
+
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).put(q);
|
|
107040
107094
|
}
|
|
107041
107095
|
return [wr, true];
|
|
107042
107096
|
}
|
|
@@ -107208,10 +107262,10 @@ $packages["net/http"] = (function() {
|
|
|
107208
107262
|
var _entry, _entry$1, _i, _keys, _r$2, _ref, _tmp, _tmp$1, exclude, h, hs, k, kvs, vv, $s, $r;
|
|
107209
107263
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _entry$1 = $f._entry$1; _i = $f._i; _keys = $f._keys; _r$2 = $f._r$2; _ref = $f._ref; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; exclude = $f.exclude; h = $f.h; hs = $f.hs; k = $f.k; kvs = $f.kvs; vv = $f.vv; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
107210
107264
|
kvs = sliceType$5.nil;
|
|
107211
|
-
hs = ptrType$
|
|
107265
|
+
hs = ptrType$86.nil;
|
|
107212
107266
|
h = this.$val;
|
|
107213
107267
|
_r$2 = headerSorterPool.Get(); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
107214
|
-
hs = $assertType(_r$2, ptrType$
|
|
107268
|
+
hs = $assertType(_r$2, ptrType$86);
|
|
107215
107269
|
if (hs.kvs.$capacity < $keys(h).length) {
|
|
107216
107270
|
hs.kvs = $makeSlice(sliceType$5, 0, $keys(h).length);
|
|
107217
107271
|
}
|
|
@@ -107576,10 +107630,10 @@ $packages["net/http"] = (function() {
|
|
|
107576
107630
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; r = $f.r; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
107577
107631
|
r = this;
|
|
107578
107632
|
if (r.MultipartForm === multipartByReader) {
|
|
107579
|
-
$s = -1; return [ptrType$
|
|
107633
|
+
$s = -1; return [ptrType$87.nil, errors.New("http: MultipartReader called twice")];
|
|
107580
107634
|
}
|
|
107581
107635
|
if (!(r.MultipartForm === ptrType$20.nil)) {
|
|
107582
|
-
$s = -1; return [ptrType$
|
|
107636
|
+
$s = -1; return [ptrType$87.nil, errors.New("http: multipart handled by ParseMultipartForm")];
|
|
107583
107637
|
}
|
|
107584
107638
|
r.MultipartForm = multipartByReader;
|
|
107585
107639
|
_r$2 = r.multipartReader(true); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
@@ -107594,7 +107648,7 @@ $packages["net/http"] = (function() {
|
|
|
107594
107648
|
_r$2 = new Header(r.Header).Get("Content-Type"); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
107595
107649
|
v = _r$2;
|
|
107596
107650
|
if (v === "") {
|
|
107597
|
-
$s = -1; return [ptrType$
|
|
107651
|
+
$s = -1; return [ptrType$87.nil, $pkg.ErrNotMultipart];
|
|
107598
107652
|
}
|
|
107599
107653
|
_r$3 = mime.ParseMediaType(v); /* */ $s = 2; case 2: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
107600
107654
|
_tuple = _r$3;
|
|
@@ -107602,13 +107656,13 @@ $packages["net/http"] = (function() {
|
|
|
107602
107656
|
params = _tuple[1];
|
|
107603
107657
|
err = _tuple[2];
|
|
107604
107658
|
if (!($interfaceIsEqual(err, $ifaceNil)) || !(d === "multipart/form-data" || allowMixed && d === "multipart/mixed")) {
|
|
107605
|
-
$s = -1; return [ptrType$
|
|
107659
|
+
$s = -1; return [ptrType$87.nil, $pkg.ErrNotMultipart];
|
|
107606
107660
|
}
|
|
107607
107661
|
_tuple$1 = (_entry = params[$String.keyFor("boundary")], _entry !== undefined ? [_entry.v, true] : ["", false]);
|
|
107608
107662
|
boundary = _tuple$1[0];
|
|
107609
107663
|
ok = _tuple$1[1];
|
|
107610
107664
|
if (!ok) {
|
|
107611
|
-
$s = -1; return [ptrType$
|
|
107665
|
+
$s = -1; return [ptrType$87.nil, $pkg.ErrMissingBoundary];
|
|
107612
107666
|
}
|
|
107613
107667
|
$s = -1; return [multipart.NewReader(r.Body, boundary), $ifaceNil];
|
|
107614
107668
|
/* */ } return; } if ($f === undefined) { $f = { $blk: Request.ptr.prototype.multipartReader }; } $f._entry = _entry; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f.allowMixed = allowMixed; $f.boundary = boundary; $f.d = d; $f.err = err; $f.ok = ok; $f.params = params; $f.r = r; $f.v = v; $f.$s = $s; $f.$r = $r; return $f;
|
|
@@ -108093,7 +108147,7 @@ $packages["net/http"] = (function() {
|
|
|
108093
108147
|
_r$2 = textprotoReaderPool.Get(); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
108094
108148
|
v = _r$2;
|
|
108095
108149
|
if (!($interfaceIsEqual(v, $ifaceNil))) {
|
|
108096
|
-
tr = $assertType(v, ptrType$
|
|
108150
|
+
tr = $assertType(v, ptrType$90);
|
|
108097
108151
|
tr.R = br;
|
|
108098
108152
|
$s = -1; return tr;
|
|
108099
108153
|
}
|
|
@@ -108103,7 +108157,7 @@ $packages["net/http"] = (function() {
|
|
|
108103
108157
|
};
|
|
108104
108158
|
putTextprotoReader = function(r) {
|
|
108105
108159
|
var r;
|
|
108106
|
-
r.R = ptrType$
|
|
108160
|
+
r.R = ptrType$77.nil;
|
|
108107
108161
|
textprotoReaderPool.Put(r);
|
|
108108
108162
|
};
|
|
108109
108163
|
readRequest = function(b, deleteHostHeader) {
|
|
@@ -108347,7 +108401,7 @@ $packages["net/http"] = (function() {
|
|
|
108347
108401
|
/* if (ct === "application/x-www-form-urlencoded") { */ case 4:
|
|
108348
108402
|
reader = r.Body;
|
|
108349
108403
|
maxFormSize = new $Int64(2147483647, 4294967295);
|
|
108350
|
-
_tuple$1 = $assertType(r.Body, ptrType$
|
|
108404
|
+
_tuple$1 = $assertType(r.Body, ptrType$91, true);
|
|
108351
108405
|
ok = _tuple$1[1];
|
|
108352
108406
|
if (!ok) {
|
|
108353
108407
|
maxFormSize = new $Int64(0, 10485760);
|
|
@@ -108791,12 +108845,12 @@ $packages["net/http"] = (function() {
|
|
|
108791
108845
|
var _r$2, _r$3, _r$4, _tmp, _tmp$1, _tmp$2, _tmp$3, _tmp$4, _tmp$5, _tuple, buf, c, err, err$1, rwc, $s, $r;
|
|
108792
108846
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; _tmp$2 = $f._tmp$2; _tmp$3 = $f._tmp$3; _tmp$4 = $f._tmp$4; _tmp$5 = $f._tmp$5; _tuple = $f._tuple; buf = $f.buf; c = $f.c; err = $f.err; err$1 = $f.err$1; rwc = $f.rwc; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
108793
108847
|
rwc = $ifaceNil;
|
|
108794
|
-
buf = ptrType$
|
|
108848
|
+
buf = ptrType$92.nil;
|
|
108795
108849
|
err = $ifaceNil;
|
|
108796
108850
|
c = this;
|
|
108797
108851
|
if (c.hijackedv) {
|
|
108798
108852
|
_tmp = $ifaceNil;
|
|
108799
|
-
_tmp$1 = ptrType$
|
|
108853
|
+
_tmp$1 = ptrType$92.nil;
|
|
108800
108854
|
_tmp$2 = $pkg.ErrHijacked;
|
|
108801
108855
|
rwc = _tmp;
|
|
108802
108856
|
buf = _tmp$1;
|
|
@@ -108819,7 +108873,7 @@ $packages["net/http"] = (function() {
|
|
|
108819
108873
|
/* */ $s = 7; continue;
|
|
108820
108874
|
/* if (!($interfaceIsEqual(err$1, $ifaceNil))) { */ case 6:
|
|
108821
108875
|
_tmp$3 = $ifaceNil;
|
|
108822
|
-
_tmp$4 = ptrType$
|
|
108876
|
+
_tmp$4 = ptrType$92.nil;
|
|
108823
108877
|
_r$4 = fmt.Errorf("unexpected Peek failure reading buffered byte: %v", new sliceType([err$1])); /* */ $s = 8; case 8: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
108824
108878
|
_tmp$5 = _r$4;
|
|
108825
108879
|
rwc = _tmp$3;
|
|
@@ -108981,17 +109035,17 @@ $packages["net/http"] = (function() {
|
|
|
108981
109035
|
$ptrType(atomicBool).prototype.isSet = function() {
|
|
108982
109036
|
var _ptr, b;
|
|
108983
109037
|
b = this;
|
|
108984
|
-
return !((atomic.LoadInt32(((_ptr = b, new ptrType$
|
|
109038
|
+
return !((atomic.LoadInt32(((_ptr = b, new ptrType$93(function() { return (_ptr.$get() >> 0); }, function($v) { _ptr.$set(($v >> 0)); }, _ptr.$target)))) === 0));
|
|
108985
109039
|
};
|
|
108986
109040
|
$ptrType(atomicBool).prototype.setTrue = function() {
|
|
108987
109041
|
var _ptr, b;
|
|
108988
109042
|
b = this;
|
|
108989
|
-
atomic.StoreInt32(((_ptr = b, new ptrType$
|
|
109043
|
+
atomic.StoreInt32(((_ptr = b, new ptrType$93(function() { return (_ptr.$get() >> 0); }, function($v) { _ptr.$set(($v >> 0)); }, _ptr.$target))), 1);
|
|
108990
109044
|
};
|
|
108991
109045
|
$ptrType(atomicBool).prototype.setFalse = function() {
|
|
108992
109046
|
var _ptr, b;
|
|
108993
109047
|
b = this;
|
|
108994
|
-
atomic.StoreInt32(((_ptr = b, new ptrType$
|
|
109048
|
+
atomic.StoreInt32(((_ptr = b, new ptrType$93(function() { return (_ptr.$get() >> 0); }, function($v) { _ptr.$set(($v >> 0)); }, _ptr.$target))), 0);
|
|
108995
109049
|
};
|
|
108996
109050
|
response.ptr.prototype.declareTrailer = function(k) {
|
|
108997
109051
|
var _r$2, _r$3, k, w, $s, $r;
|
|
@@ -109098,7 +109152,7 @@ $packages["net/http"] = (function() {
|
|
|
109098
109152
|
var _r$2, c, rwc, srv, $s, $r;
|
|
109099
109153
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; c = $f.c; rwc = $f.rwc; srv = $f.srv; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
109100
109154
|
srv = this;
|
|
109101
|
-
c = new conn.ptr(srv, $throwNilPointerError, rwc, "", ptrType$21.nil, $ifaceNil, ptrType$
|
|
109155
|
+
c = new conn.ptr(srv, $throwNilPointerError, rwc, "", ptrType$21.nil, $ifaceNil, ptrType$94.nil, ptrType$77.nil, ptrType$9.nil, "", new atomic.Value.ptr($ifaceNil), new structType$2.ptr(new $Uint64(0, 0)), new sync.Mutex.ptr(0, 0), false);
|
|
109102
109156
|
/* */ if (false) { $s = 1; continue; }
|
|
109103
109157
|
/* */ $s = 2; continue;
|
|
109104
109158
|
/* if (false) { */ case 1:
|
|
@@ -109114,7 +109168,7 @@ $packages["net/http"] = (function() {
|
|
|
109114
109168
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; cr = $f.cr; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
109115
109169
|
cr = this;
|
|
109116
109170
|
$r = cr.mu.Lock(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
109117
|
-
if (cr.cond === ptrType$
|
|
109171
|
+
if (cr.cond === ptrType$73.nil) {
|
|
109118
109172
|
cr.cond = sync.NewCond(cr.mu);
|
|
109119
109173
|
}
|
|
109120
109174
|
$s = -1; return;
|
|
@@ -109238,11 +109292,11 @@ $packages["net/http"] = (function() {
|
|
|
109238
109292
|
var _tuple, cr, res, $s, $r;
|
|
109239
109293
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _tuple = $f._tuple; cr = $f.cr; res = $f.res; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
109240
109294
|
cr = this;
|
|
109241
|
-
_tuple = $assertType(cr.conn.curReq.Load(), ptrType$
|
|
109295
|
+
_tuple = $assertType(cr.conn.curReq.Load(), ptrType$95, true);
|
|
109242
109296
|
res = _tuple[0];
|
|
109243
|
-
/* */ if (!(res === ptrType$
|
|
109297
|
+
/* */ if (!(res === ptrType$95.nil) && atomic.CompareAndSwapInt32((res.$ptr_didCloseNotify || (res.$ptr_didCloseNotify = new ptrType$93(function() { return this.$target.didCloseNotify; }, function($v) { this.$target.didCloseNotify = $v; }, res))), 0, 1)) { $s = 1; continue; }
|
|
109244
109298
|
/* */ $s = 2; continue;
|
|
109245
|
-
/* if (!(res === ptrType$
|
|
109299
|
+
/* if (!(res === ptrType$95.nil) && atomic.CompareAndSwapInt32((res.$ptr_didCloseNotify || (res.$ptr_didCloseNotify = new ptrType$93(function() { return this.$target.didCloseNotify; }, function($v) { this.$target.didCloseNotify = $v; }, res))), 0, 1)) { */ case 1:
|
|
109246
109300
|
$r = $send(res.closeNotifyCh, true); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
109247
109301
|
/* } */ case 2:
|
|
109248
109302
|
$s = -1; return;
|
|
@@ -109335,7 +109389,7 @@ $packages["net/http"] = (function() {
|
|
|
109335
109389
|
} else if (_1 === (4096)) {
|
|
109336
109390
|
return bufioWriter4kPool;
|
|
109337
109391
|
}
|
|
109338
|
-
return ptrType$
|
|
109392
|
+
return ptrType$96.nil;
|
|
109339
109393
|
};
|
|
109340
109394
|
newBufioReader = function(r) {
|
|
109341
109395
|
var _r$2, br, r, v, $s, $r;
|
|
@@ -109343,7 +109397,7 @@ $packages["net/http"] = (function() {
|
|
|
109343
109397
|
_r$2 = bufioReaderPool.Get(); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
109344
109398
|
v = _r$2;
|
|
109345
109399
|
if (!($interfaceIsEqual(v, $ifaceNil))) {
|
|
109346
|
-
br = $assertType(v, ptrType$
|
|
109400
|
+
br = $assertType(v, ptrType$77);
|
|
109347
109401
|
br.Reset(r);
|
|
109348
109402
|
$s = -1; return br;
|
|
109349
109403
|
}
|
|
@@ -109359,9 +109413,9 @@ $packages["net/http"] = (function() {
|
|
|
109359
109413
|
var _r$2, bw, pool, size, v, w, $s, $r;
|
|
109360
109414
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; bw = $f.bw; pool = $f.pool; size = $f.size; v = $f.v; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
109361
109415
|
pool = bufioWriterPool(size);
|
|
109362
|
-
/* */ if (!(pool === ptrType$
|
|
109416
|
+
/* */ if (!(pool === ptrType$96.nil)) { $s = 1; continue; }
|
|
109363
109417
|
/* */ $s = 2; continue;
|
|
109364
|
-
/* if (!(pool === ptrType$
|
|
109418
|
+
/* if (!(pool === ptrType$96.nil)) { */ case 1:
|
|
109365
109419
|
_r$2 = pool.Get(); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
109366
109420
|
v = _r$2;
|
|
109367
109421
|
if (!($interfaceIsEqual(v, $ifaceNil))) {
|
|
@@ -109377,7 +109431,7 @@ $packages["net/http"] = (function() {
|
|
|
109377
109431
|
var bw, pool;
|
|
109378
109432
|
bw.Reset($ifaceNil);
|
|
109379
109433
|
pool = bufioWriterPool(bw.Available());
|
|
109380
|
-
if (!(pool === ptrType$
|
|
109434
|
+
if (!(pool === ptrType$96.nil)) {
|
|
109381
109435
|
pool.Put(bw);
|
|
109382
109436
|
}
|
|
109383
109437
|
};
|
|
@@ -109475,14 +109529,14 @@ $packages["net/http"] = (function() {
|
|
|
109475
109529
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _entry$1 = $f._entry$1; _i = $f._i; _i$1 = $f._i$1; _keys = $f._keys; _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; _r$8 = $f._r$8; _r$9 = $f._r$9; _ref = $f._ref; _ref$1 = $f._ref$1; _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$3 = $f._tmp$3; _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; body$1 = $f.body$1; c = $f.c; cancelCtx = $f.cancelCtx; ctx = $f.ctx; d = $f.d; d$1 = $f.d$1; d$2 = $f.d$2; err = $f.err; haveHost = $f.haveHost; hdrDeadline = $f.hdrDeadline; hosts = $f.hosts; isH2Upgrade = $f.isH2Upgrade; k = $f.k; ok = $f.ok; peek = $f.peek; req = $f.req; t0 = $f.t0; v = $f.v; vv = $f.vv; w = $f.w; wholeReqDeadline = $f.wholeReqDeadline; x$4 = $f.x$4; $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);
|
|
109476
109530
|
c = [c];
|
|
109477
109531
|
d = [d];
|
|
109478
|
-
w = ptrType$
|
|
109532
|
+
w = ptrType$95.nil;
|
|
109479
109533
|
err = $ifaceNil;
|
|
109480
109534
|
c[0] = this;
|
|
109481
109535
|
_r$2 = c[0].hijacked(); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
109482
109536
|
/* */ if (_r$2) { $s = 1; continue; }
|
|
109483
109537
|
/* */ $s = 2; continue;
|
|
109484
109538
|
/* if (_r$2) { */ case 1:
|
|
109485
|
-
_tmp = ptrType$
|
|
109539
|
+
_tmp = ptrType$95.nil;
|
|
109486
109540
|
_tmp$1 = $pkg.ErrHijacked;
|
|
109487
109541
|
w = _tmp;
|
|
109488
109542
|
err = _tmp$1;
|
|
@@ -109530,20 +109584,20 @@ $packages["net/http"] = (function() {
|
|
|
109530
109584
|
err = _tuple$1[1];
|
|
109531
109585
|
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
109532
109586
|
if (c[0].r.hitReadLimit()) {
|
|
109533
|
-
_tmp$2 = ptrType$
|
|
109587
|
+
_tmp$2 = ptrType$95.nil;
|
|
109534
109588
|
_tmp$3 = errTooLarge;
|
|
109535
109589
|
w = _tmp$2;
|
|
109536
109590
|
err = _tmp$3;
|
|
109537
109591
|
$s = -1; return [w, err];
|
|
109538
109592
|
}
|
|
109539
|
-
_tmp$4 = ptrType$
|
|
109593
|
+
_tmp$4 = ptrType$95.nil;
|
|
109540
109594
|
_tmp$5 = err;
|
|
109541
109595
|
w = _tmp$4;
|
|
109542
109596
|
err = _tmp$5;
|
|
109543
109597
|
$s = -1; return [w, err];
|
|
109544
109598
|
}
|
|
109545
109599
|
if (!http1ServerSupportsRequest(req)) {
|
|
109546
|
-
_tmp$6 = ptrType$
|
|
109600
|
+
_tmp$6 = ptrType$95.nil;
|
|
109547
109601
|
_tmp$7 = (x$4 = new statusError.ptr(505, "unsupported protocol version"), new x$4.constructor.elem(x$4));
|
|
109548
109602
|
w = _tmp$6;
|
|
109549
109603
|
err = _tmp$7;
|
|
@@ -109556,21 +109610,21 @@ $packages["net/http"] = (function() {
|
|
|
109556
109610
|
haveHost = _tuple$2[1];
|
|
109557
109611
|
isH2Upgrade = req.isH2Upgrade();
|
|
109558
109612
|
if (req.ProtoAtLeast(1, 1) && (!haveHost || (hosts.$length === 0)) && !isH2Upgrade && !(req.Method === "CONNECT")) {
|
|
109559
|
-
_tmp$8 = ptrType$
|
|
109613
|
+
_tmp$8 = ptrType$95.nil;
|
|
109560
109614
|
_tmp$9 = badRequestError("missing required Host header");
|
|
109561
109615
|
w = _tmp$8;
|
|
109562
109616
|
err = _tmp$9;
|
|
109563
109617
|
$s = -1; return [w, err];
|
|
109564
109618
|
}
|
|
109565
109619
|
if (hosts.$length > 1) {
|
|
109566
|
-
_tmp$10 = ptrType$
|
|
109620
|
+
_tmp$10 = ptrType$95.nil;
|
|
109567
109621
|
_tmp$11 = badRequestError("too many Host headers");
|
|
109568
109622
|
w = _tmp$10;
|
|
109569
109623
|
err = _tmp$11;
|
|
109570
109624
|
$s = -1; return [w, err];
|
|
109571
109625
|
}
|
|
109572
109626
|
if ((hosts.$length === 1) && !httpguts.ValidHostHeader((0 >= hosts.$length ? ($throwRuntimeError("index out of range"), undefined) : hosts.$array[hosts.$offset + 0]))) {
|
|
109573
|
-
_tmp$12 = ptrType$
|
|
109627
|
+
_tmp$12 = ptrType$95.nil;
|
|
109574
109628
|
_tmp$13 = badRequestError("malformed Host header");
|
|
109575
109629
|
w = _tmp$12;
|
|
109576
109630
|
err = _tmp$13;
|
|
@@ -109589,7 +109643,7 @@ $packages["net/http"] = (function() {
|
|
|
109589
109643
|
k = _entry$1.k;
|
|
109590
109644
|
vv = _entry$1.v;
|
|
109591
109645
|
if (!httpguts.ValidHeaderFieldName(k)) {
|
|
109592
|
-
_tmp$14 = ptrType$
|
|
109646
|
+
_tmp$14 = ptrType$95.nil;
|
|
109593
109647
|
_tmp$15 = badRequestError("invalid header name");
|
|
109594
109648
|
w = _tmp$14;
|
|
109595
109649
|
err = _tmp$15;
|
|
@@ -109601,7 +109655,7 @@ $packages["net/http"] = (function() {
|
|
|
109601
109655
|
if (!(_i$1 < _ref$1.$length)) { break; }
|
|
109602
109656
|
v = ((_i$1 < 0 || _i$1 >= _ref$1.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref$1.$array[_ref$1.$offset + _i$1]);
|
|
109603
109657
|
if (!httpguts.ValidHeaderFieldValue(v)) {
|
|
109604
|
-
_tmp$16 = ptrType$
|
|
109658
|
+
_tmp$16 = ptrType$95.nil;
|
|
109605
109659
|
_tmp$17 = badRequestError("invalid header value");
|
|
109606
109660
|
w = _tmp$16;
|
|
109607
109661
|
err = _tmp$17;
|
|
@@ -109619,7 +109673,7 @@ $packages["net/http"] = (function() {
|
|
|
109619
109673
|
req.ctx = ctx;
|
|
109620
109674
|
req.RemoteAddr = c[0].remoteAddr;
|
|
109621
109675
|
req.TLS = c[0].tlsState;
|
|
109622
|
-
_tuple$4 = $assertType(req.Body, ptrType$
|
|
109676
|
+
_tuple$4 = $assertType(req.Body, ptrType$97, true);
|
|
109623
109677
|
body$1 = _tuple$4[0];
|
|
109624
109678
|
ok = _tuple$4[1];
|
|
109625
109679
|
if (ok) {
|
|
@@ -109631,7 +109685,7 @@ $packages["net/http"] = (function() {
|
|
|
109631
109685
|
_r$8 = c[0].rwc.SetReadDeadline($clone(wholeReqDeadline, time.Time)); /* */ $s = 15; case 15: if($c) { $c = false; _r$8 = _r$8.$blk(); } if (_r$8 && _r$8.$blk !== undefined) { break s; }
|
|
109632
109686
|
_r$8;
|
|
109633
109687
|
/* } */ case 14:
|
|
109634
|
-
w = new response.ptr(c[0], req, req.Body, cancelCtx, false, false, req.wantsHttp10KeepAlive(), req.wantsClose(), 0, new sync.Mutex.ptr(0, 0), ptrType$9.nil, new chunkWriter.ptr(ptrType$
|
|
109688
|
+
w = new response.ptr(c[0], req, req.Body, cancelCtx, false, false, req.wantsHttp10KeepAlive(), req.wantsClose(), 0, new sync.Mutex.ptr(0, 0), ptrType$9.nil, new chunkWriter.ptr(ptrType$95.nil, false, false, false), {}, false, new $Int64(0, 0), new $Int64(-1, 4294967295), 0, false, false, sliceType$2.nil, 0, arrayType$1.zero(), arrayType$7.zero(), arrayType$8.zero(), new $Chan($Bool, 1), 0);
|
|
109635
109689
|
if (isH2Upgrade) {
|
|
109636
109690
|
w.closeAfterReply = true;
|
|
109637
109691
|
}
|
|
@@ -109683,7 +109737,7 @@ $packages["net/http"] = (function() {
|
|
|
109683
109737
|
pc = $makeSlice(sliceType$27, 16);
|
|
109684
109738
|
n = runtime.Callers(1, pc);
|
|
109685
109739
|
frames = runtime.CallersFrames($subslice(pc, 0, n));
|
|
109686
|
-
frame = new runtime.Frame.ptr(0, ptrType$
|
|
109740
|
+
frame = new runtime.Frame.ptr(0, ptrType$99.nil, "", "", 0, 0);
|
|
109687
109741
|
while (true) {
|
|
109688
109742
|
_tuple = frames.Next();
|
|
109689
109743
|
frame$1 = $clone(_tuple[0], runtime.Frame);
|
|
@@ -109888,7 +109942,7 @@ $packages["net/http"] = (function() {
|
|
|
109888
109942
|
if (new Header(header[0]).get("Connection") === "close" || !keepAlivesEnabled) {
|
|
109889
109943
|
w.closeAfterReply = true;
|
|
109890
109944
|
}
|
|
109891
|
-
_tuple$1 = $assertType(w.req.Body, ptrType$
|
|
109945
|
+
_tuple$1 = $assertType(w.req.Body, ptrType$100, true);
|
|
109892
109946
|
ecr = _tuple$1[0];
|
|
109893
109947
|
ok = _tuple$1[1];
|
|
109894
109948
|
if (ok && !(ecr.$ptr_sawEOF || (ecr.$ptr_sawEOF = new ptrType$24(function() { return this.$target.sawEOF; }, function($v) { this.$target.sawEOF = $v; }, ecr))).isSet()) {
|
|
@@ -109902,16 +109956,16 @@ $packages["net/http"] = (function() {
|
|
|
109902
109956
|
discard = _tmp;
|
|
109903
109957
|
tooBig = _tmp$1;
|
|
109904
109958
|
_ref$2 = w.req.Body;
|
|
109905
|
-
/* */ if ($assertType(_ref$2, ptrType$
|
|
109906
|
-
/* */ if ($assertType(_ref$2, ptrType$
|
|
109959
|
+
/* */ if ($assertType(_ref$2, ptrType$100, true)[1]) { $s = 6; continue; }
|
|
109960
|
+
/* */ if ($assertType(_ref$2, ptrType$97, true)[1]) { $s = 7; continue; }
|
|
109907
109961
|
/* */ $s = 8; continue;
|
|
109908
|
-
/* if ($assertType(_ref$2, ptrType$
|
|
109962
|
+
/* if ($assertType(_ref$2, ptrType$100, true)[1]) { */ case 6:
|
|
109909
109963
|
bdy = _ref$2.$val;
|
|
109910
109964
|
if (bdy.resp.wroteContinue) {
|
|
109911
109965
|
discard = true;
|
|
109912
109966
|
}
|
|
109913
109967
|
$s = 9; continue;
|
|
109914
|
-
/* } else if ($assertType(_ref$2, ptrType$
|
|
109968
|
+
/* } else if ($assertType(_ref$2, ptrType$97, true)[1]) { */ case 7:
|
|
109915
109969
|
bdy$1 = _ref$2.$val;
|
|
109916
109970
|
$r = bdy$1.mu.Lock(); /* */ $s = 10; case 10: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
109917
109971
|
if (bdy$1.closed) {
|
|
@@ -110004,27 +110058,25 @@ $packages["net/http"] = (function() {
|
|
|
110004
110058
|
$r = delHeader("Content-Length"); /* */ $s = 42; case 42: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110005
110059
|
hasCL = false;
|
|
110006
110060
|
/* } */ case 40:
|
|
110007
|
-
/* */ if (w.req.Method === "HEAD" || !bodyAllowedForStatus(code)) { $s = 43; continue; }
|
|
110008
|
-
/* */ if (
|
|
110009
|
-
/* */ if (
|
|
110010
|
-
/* */
|
|
110011
|
-
/*
|
|
110012
|
-
|
|
110013
|
-
$s =
|
|
110014
|
-
/* } else if (
|
|
110061
|
+
/* */ if (w.req.Method === "HEAD" || !bodyAllowedForStatus(code) || (code === 204)) { $s = 43; continue; }
|
|
110062
|
+
/* */ if (hasCL) { $s = 44; continue; }
|
|
110063
|
+
/* */ if (w.req.ProtoAtLeast(1, 1)) { $s = 45; continue; }
|
|
110064
|
+
/* */ $s = 46; continue;
|
|
110065
|
+
/* if (w.req.Method === "HEAD" || !bodyAllowedForStatus(code) || (code === 204)) { */ case 43:
|
|
110066
|
+
$r = delHeader("Transfer-Encoding"); /* */ $s = 48; case 48: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110067
|
+
$s = 47; continue;
|
|
110068
|
+
/* } else if (hasCL) { */ case 44:
|
|
110015
110069
|
$r = delHeader("Transfer-Encoding"); /* */ $s = 49; case 49: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110016
|
-
$s =
|
|
110017
|
-
/* } else if (
|
|
110018
|
-
|
|
110019
|
-
$s =
|
|
110020
|
-
|
|
110021
|
-
/* */ if (hasTE && te === "identity") { $s = 51; continue; }
|
|
110022
|
-
/* */ $s = 52; continue;
|
|
110023
|
-
/* if (hasTE && te === "identity") { */ case 51:
|
|
110070
|
+
$s = 47; continue;
|
|
110071
|
+
/* } else if (w.req.ProtoAtLeast(1, 1)) { */ case 45:
|
|
110072
|
+
/* */ if (hasTE && te === "identity") { $s = 50; continue; }
|
|
110073
|
+
/* */ $s = 51; continue;
|
|
110074
|
+
/* if (hasTE && te === "identity") { */ case 50:
|
|
110024
110075
|
cw.chunking = false;
|
|
110025
110076
|
w.closeAfterReply = true;
|
|
110026
|
-
$s = 53;
|
|
110027
|
-
|
|
110077
|
+
$r = delHeader("Transfer-Encoding"); /* */ $s = 53; case 53: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110078
|
+
$s = 52; continue;
|
|
110079
|
+
/* } else { */ case 51:
|
|
110028
110080
|
cw.chunking = true;
|
|
110029
110081
|
setHeader.transferEncoding = "chunked";
|
|
110030
110082
|
/* */ if (hasTE && te === "chunked") { $s = 54; continue; }
|
|
@@ -110032,12 +110084,12 @@ $packages["net/http"] = (function() {
|
|
|
110032
110084
|
/* if (hasTE && te === "chunked") { */ case 54:
|
|
110033
110085
|
$r = delHeader("Transfer-Encoding"); /* */ $s = 56; case 56: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110034
110086
|
/* } */ case 55:
|
|
110035
|
-
/* } */ case
|
|
110036
|
-
$s =
|
|
110037
|
-
/* } else { */ case
|
|
110087
|
+
/* } */ case 52:
|
|
110088
|
+
$s = 47; continue;
|
|
110089
|
+
/* } else { */ case 46:
|
|
110038
110090
|
w.closeAfterReply = true;
|
|
110039
110091
|
$r = delHeader("Transfer-Encoding"); /* */ $s = 57; case 57: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110040
|
-
/* } */ case
|
|
110092
|
+
/* } */ case 47:
|
|
110041
110093
|
/* */ if (cw.chunking) { $s = 58; continue; }
|
|
110042
110094
|
/* */ $s = 59; continue;
|
|
110043
110095
|
/* if (cw.chunking) { */ case 58:
|
|
@@ -110300,7 +110352,7 @@ $packages["net/http"] = (function() {
|
|
|
110300
110352
|
var _r$2, _tuple, _v, body$1, ok, w, $s, $r;
|
|
110301
110353
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _tuple = $f._tuple; _v = $f._v; body$1 = $f.body$1; ok = $f.ok; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
110302
110354
|
w = this;
|
|
110303
|
-
_tuple = $assertType(w.req.Body, ptrType$
|
|
110355
|
+
_tuple = $assertType(w.req.Body, ptrType$97, true);
|
|
110304
110356
|
body$1 = _tuple[0];
|
|
110305
110357
|
ok = _tuple[1];
|
|
110306
110358
|
if (!(ok)) { _v = false; $s = 1; continue s; }
|
|
@@ -110330,9 +110382,9 @@ $packages["net/http"] = (function() {
|
|
|
110330
110382
|
var _r$2, c, $s, $r;
|
|
110331
110383
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; c = $f.c; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
110332
110384
|
c = this;
|
|
110333
|
-
if (!(c.bufr === ptrType$
|
|
110385
|
+
if (!(c.bufr === ptrType$77.nil)) {
|
|
110334
110386
|
putBufioReader(c.bufr);
|
|
110335
|
-
c.bufr = ptrType$
|
|
110387
|
+
c.bufr = ptrType$77.nil;
|
|
110336
110388
|
}
|
|
110337
110389
|
/* */ if (!(c.bufw === ptrType$9.nil)) { $s = 1; continue; }
|
|
110338
110390
|
/* */ $s = 2; continue;
|
|
@@ -110404,7 +110456,7 @@ $packages["net/http"] = (function() {
|
|
|
110404
110456
|
$panic(new $String("internal error"));
|
|
110405
110457
|
}
|
|
110406
110458
|
packedState = (x$4 = ((x$5 = $shiftLeft64($clone(time.Now(), time.Time).Unix(), 8), new $Uint64(x$5.$high, x$5.$low))), x$6 = (new $Uint64(0, state)), new $Uint64(x$4.$high | x$6.$high, (x$4.$low | x$6.$low) >>> 0));
|
|
110407
|
-
atomic.StoreUint64((x$7 = c.curState, (x$7.$ptr_atomic || (x$7.$ptr_atomic = new ptrType$
|
|
110459
|
+
atomic.StoreUint64((x$7 = c.curState, (x$7.$ptr_atomic || (x$7.$ptr_atomic = new ptrType$101(function() { return this.$target.atomic; }, function($v) { this.$target.atomic = $v; }, x$7)))), packedState);
|
|
110408
110460
|
if (!runHook) {
|
|
110409
110461
|
$s = -1; return;
|
|
110410
110462
|
}
|
|
@@ -110423,7 +110475,7 @@ $packages["net/http"] = (function() {
|
|
|
110423
110475
|
state = 0;
|
|
110424
110476
|
unixSec = new $Int64(0, 0);
|
|
110425
110477
|
c = this;
|
|
110426
|
-
packedState = atomic.LoadUint64((x$4 = c.curState, (x$4.$ptr_atomic || (x$4.$ptr_atomic = new ptrType$
|
|
110478
|
+
packedState = atomic.LoadUint64((x$4 = c.curState, (x$4.$ptr_atomic || (x$4.$ptr_atomic = new ptrType$101(function() { return this.$target.atomic; }, function($v) { this.$target.atomic = $v; }, x$4)))));
|
|
110427
110479
|
_tmp = ((new $Uint64(packedState.$high & 0, (packedState.$low & 255) >>> 0).$low >> 0));
|
|
110428
110480
|
_tmp$1 = ((x$5 = $shiftRightUint64(packedState, 8), new $Int64(x$5.$high, x$5.$low)));
|
|
110429
110481
|
state = _tmp;
|
|
@@ -110502,7 +110554,7 @@ $packages["net/http"] = (function() {
|
|
|
110502
110554
|
$s = -1; return;
|
|
110503
110555
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$6 = _r$6; $f.buf = buf; $f.err = err; $f.$s = $s; $f.$r = $r; return $f;
|
|
110504
110556
|
}; })(c), []]);
|
|
110505
|
-
_tuple = $assertType(c[0].rwc, ptrType$
|
|
110557
|
+
_tuple = $assertType(c[0].rwc, ptrType$76, true);
|
|
110506
110558
|
tlsConn = _tuple[0];
|
|
110507
110559
|
ok = _tuple[1];
|
|
110508
110560
|
/* */ if (ok) { $s = 5; continue; }
|
|
@@ -110569,7 +110621,7 @@ $packages["net/http"] = (function() {
|
|
|
110569
110621
|
cancelCtx = _tuple$2[1];
|
|
110570
110622
|
c[0].cancelCtx = cancelCtx;
|
|
110571
110623
|
$deferred.push([cancelCtx, []]);
|
|
110572
|
-
c[0].r = new connReader.ptr(c[0], new sync.Mutex.ptr(0, 0), false, arrayType$6.zero(), ptrType$
|
|
110624
|
+
c[0].r = new connReader.ptr(c[0], new sync.Mutex.ptr(0, 0), false, arrayType$6.zero(), ptrType$73.nil, false, false, new $Int64(0, 0));
|
|
110573
110625
|
_r$14 = newBufioReader(c[0].r); /* */ $s = 30; case 30: if($c) { $c = false; _r$14 = _r$14.$blk(); } if (_r$14 && _r$14.$blk !== undefined) { break s; }
|
|
110574
110626
|
c[0].bufr = _r$14;
|
|
110575
110627
|
_r$15 = newBufioWriterSize((x$4 = new checkConnErrorWriter.ptr(c[0]), new x$4.constructor.elem(x$4)), 4096); /* */ $s = 31; case 31: if($c) { $c = false; _r$15 = _r$15.$blk(); } if (_r$15 && _r$15.$blk !== undefined) { break s; }
|
|
@@ -110670,7 +110722,7 @@ $packages["net/http"] = (function() {
|
|
|
110670
110722
|
$s = -1; return;
|
|
110671
110723
|
/* } */ case 71:
|
|
110672
110724
|
$r = c[0].setState(c[0].rwc, 2, true); /* */ $s = 78; case 78: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110673
|
-
c[0].curReq.Store((ptrType$
|
|
110725
|
+
c[0].curReq.Store((ptrType$95.nil));
|
|
110674
110726
|
if (!w.conn.server.doKeepAlives()) {
|
|
110675
110727
|
$s = -1; return;
|
|
110676
110728
|
}
|
|
@@ -110709,7 +110761,7 @@ $packages["net/http"] = (function() {
|
|
|
110709
110761
|
var _r$2, _tmp, _tmp$1, _tmp$2, _tuple, buf, c, err, rwc, w, $s, $deferred, $r;
|
|
110710
110762
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; _tmp$2 = $f._tmp$2; _tuple = $f._tuple; buf = $f.buf; c = $f.c; err = $f.err; rwc = $f.rwc; w = $f.w; $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);
|
|
110711
110763
|
rwc = $ifaceNil;
|
|
110712
|
-
buf = ptrType$
|
|
110764
|
+
buf = ptrType$92.nil;
|
|
110713
110765
|
err = $ifaceNil;
|
|
110714
110766
|
w = this;
|
|
110715
110767
|
if ((w.$ptr_handlerDone || (w.$ptr_handlerDone = new ptrType$24(function() { return this.$target.handlerDone; }, function($v) { this.$target.handlerDone = $v; }, w))).isSet()) {
|
|
@@ -110755,14 +110807,14 @@ $packages["net/http"] = (function() {
|
|
|
110755
110807
|
var _r$2, _ref, fn, rc, v, v$1, v$2, $s, $r;
|
|
110756
110808
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _ref = $f._ref; fn = $f.fn; rc = $f.rc; v = $f.v; v$1 = $f.v$1; v$2 = $f.v$2; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
110757
110809
|
_ref = rc;
|
|
110758
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
110759
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
110810
|
+
/* */ if ($assertType(_ref, ptrType$100, true)[1]) { $s = 1; continue; }
|
|
110811
|
+
/* */ if ($assertType(_ref, ptrType$97, true)[1]) { $s = 2; continue; }
|
|
110760
110812
|
/* */ $s = 3; continue;
|
|
110761
|
-
/* if ($assertType(_ref, ptrType$
|
|
110813
|
+
/* if ($assertType(_ref, ptrType$100, true)[1]) { */ case 1:
|
|
110762
110814
|
v = _ref.$val;
|
|
110763
110815
|
$r = registerOnHitEOF(v.readCloser, fn); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110764
110816
|
$s = 4; continue;
|
|
110765
|
-
/* } else if ($assertType(_ref, ptrType$
|
|
110817
|
+
/* } else if ($assertType(_ref, ptrType$97, true)[1]) { */ case 2:
|
|
110766
110818
|
v$1 = _ref.$val;
|
|
110767
110819
|
$r = v$1.registerOnHitEOF(fn); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110768
110820
|
$s = 4; continue;
|
|
@@ -110781,14 +110833,14 @@ $packages["net/http"] = (function() {
|
|
|
110781
110833
|
$s = -1; return false;
|
|
110782
110834
|
}
|
|
110783
110835
|
_ref = rc;
|
|
110784
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
110785
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
110836
|
+
/* */ if ($assertType(_ref, ptrType$100, true)[1]) { $s = 1; continue; }
|
|
110837
|
+
/* */ if ($assertType(_ref, ptrType$97, true)[1]) { $s = 2; continue; }
|
|
110786
110838
|
/* */ $s = 3; continue;
|
|
110787
|
-
/* if ($assertType(_ref, ptrType$
|
|
110839
|
+
/* if ($assertType(_ref, ptrType$100, true)[1]) { */ case 1:
|
|
110788
110840
|
v = _ref.$val;
|
|
110789
110841
|
_r$2 = requestBodyRemains(v.readCloser); /* */ $s = 5; case 5: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
110790
110842
|
$s = -1; return _r$2;
|
|
110791
|
-
/* } else if ($assertType(_ref, ptrType$
|
|
110843
|
+
/* } else if ($assertType(_ref, ptrType$97, true)[1]) { */ case 2:
|
|
110792
110844
|
v$1 = _ref.$val;
|
|
110793
110845
|
_r$3 = v$1.bodyRemains(); /* */ $s = 6; case 6: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
110794
110846
|
$s = -1; return _r$3;
|
|
@@ -111270,7 +111322,7 @@ $packages["net/http"] = (function() {
|
|
|
111270
111322
|
c = _entry.k;
|
|
111271
111323
|
_r$3 = c.rwc.Close(); /* */ $s = 5; case 5: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
111272
111324
|
_r$3;
|
|
111273
|
-
delete srv.activeConn[ptrType$
|
|
111325
|
+
delete srv.activeConn[ptrType$98.keyFor(c)];
|
|
111274
111326
|
_i++;
|
|
111275
111327
|
/* } */ $s = 3; continue; case 4:
|
|
111276
111328
|
$s = -1; return err;
|
|
@@ -111396,7 +111448,7 @@ $packages["net/http"] = (function() {
|
|
|
111396
111448
|
/* } */ case 5:
|
|
111397
111449
|
_r$2 = c.rwc.Close(); /* */ $s = 6; case 6: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
111398
111450
|
_r$2;
|
|
111399
|
-
delete s.activeConn[ptrType$
|
|
111451
|
+
delete s.activeConn[ptrType$98.keyFor(c)];
|
|
111400
111452
|
_i++;
|
|
111401
111453
|
/* } */ $s = 2; continue; case 3:
|
|
111402
111454
|
$s = -1; return quiescent;
|
|
@@ -111650,9 +111702,9 @@ $packages["net/http"] = (function() {
|
|
|
111650
111702
|
s.activeConn = {};
|
|
111651
111703
|
}
|
|
111652
111704
|
if (add) {
|
|
111653
|
-
_key = c; (s.activeConn || $throwRuntimeError("assignment to entry in nil map"))[ptrType$
|
|
111705
|
+
_key = c; (s.activeConn || $throwRuntimeError("assignment to entry in nil map"))[ptrType$98.keyFor(_key)] = { k: _key, v: new structType.ptr() };
|
|
111654
111706
|
} else {
|
|
111655
|
-
delete s.activeConn[ptrType$
|
|
111707
|
+
delete s.activeConn[ptrType$98.keyFor(c)];
|
|
111656
111708
|
}
|
|
111657
111709
|
$s = -1; return;
|
|
111658
111710
|
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: Server.ptr.prototype.trackConn }; } $f._key = _key; $f.add = add; $f.c = c; $f.s = s; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
@@ -111679,7 +111731,7 @@ $packages["net/http"] = (function() {
|
|
|
111679
111731
|
Server.ptr.prototype.doKeepAlives = function() {
|
|
111680
111732
|
var s;
|
|
111681
111733
|
s = this;
|
|
111682
|
-
return (atomic.LoadInt32((s.$ptr_disableKeepAlives || (s.$ptr_disableKeepAlives = new ptrType$
|
|
111734
|
+
return (atomic.LoadInt32((s.$ptr_disableKeepAlives || (s.$ptr_disableKeepAlives = new ptrType$93(function() { return this.$target.disableKeepAlives; }, function($v) { this.$target.disableKeepAlives = $v; }, s)))) === 0) && !s.shuttingDown();
|
|
111683
111735
|
};
|
|
111684
111736
|
Server.prototype.doKeepAlives = function() { return this.$val.doKeepAlives(); };
|
|
111685
111737
|
Server.ptr.prototype.shuttingDown = function() {
|
|
@@ -111693,10 +111745,10 @@ $packages["net/http"] = (function() {
|
|
|
111693
111745
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; srv = $f.srv; v = $f.v; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
111694
111746
|
srv = this;
|
|
111695
111747
|
if (v) {
|
|
111696
|
-
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$
|
|
111748
|
+
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$93(function() { return this.$target.disableKeepAlives; }, function($v) { this.$target.disableKeepAlives = $v; }, srv))), 0);
|
|
111697
111749
|
$s = -1; return;
|
|
111698
111750
|
}
|
|
111699
|
-
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$
|
|
111751
|
+
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$93(function() { return this.$target.disableKeepAlives; }, function($v) { this.$target.disableKeepAlives = $v; }, srv))), 1);
|
|
111700
111752
|
_r$2 = srv.closeIdleConns(); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
111701
111753
|
_r$2;
|
|
111702
111754
|
$s = -1; return;
|
|
@@ -111791,7 +111843,7 @@ $packages["net/http"] = (function() {
|
|
|
111791
111843
|
/* */ $s = 7; continue;
|
|
111792
111844
|
/* if (srv.TLSNextProto === false) { */ case 6:
|
|
111793
111845
|
conf = new http2Server.ptr(0, 0, 0, false, new time.Duration(0, 0), 0, 0, (function() {
|
|
111794
|
-
return http2NewPriorityWriteScheduler(ptrType$
|
|
111846
|
+
return http2NewPriorityWriteScheduler(ptrType$82.nil);
|
|
111795
111847
|
}), ptrType$50.nil);
|
|
111796
111848
|
_r$4 = http2ConfigureServer(srv, conf); /* */ $s = 8; case 8: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
111797
111849
|
srv.nextProtoErr = _r$4;
|
|
@@ -112748,9 +112800,9 @@ $packages["net/http"] = (function() {
|
|
|
112748
112800
|
} else if ((realLength.$high === 0 && realLength.$low === 0)) {
|
|
112749
112801
|
t.Body = new $pkg.NoBody.constructor.elem($pkg.NoBody);
|
|
112750
112802
|
} else if ((realLength.$high > 0 || (realLength.$high === 0 && realLength.$low > 0))) {
|
|
112751
|
-
t.Body = new body.ptr(io.LimitReader(r, realLength), $ifaceNil, ptrType$
|
|
112803
|
+
t.Body = new body.ptr(io.LimitReader(r, realLength), $ifaceNil, ptrType$77.nil, t.Close, false, new sync.Mutex.ptr(0, 0), false, false, false, $throwNilPointerError);
|
|
112752
112804
|
} else if (t.Close) {
|
|
112753
|
-
t.Body = new body.ptr(r, $ifaceNil, ptrType$
|
|
112805
|
+
t.Body = new body.ptr(r, $ifaceNil, ptrType$77.nil, t.Close, false, new sync.Mutex.ptr(0, 0), false, false, false, $throwNilPointerError);
|
|
112754
112806
|
} else {
|
|
112755
112807
|
t.Body = new $pkg.NoBody.constructor.elem($pkg.NoBody);
|
|
112756
112808
|
}
|
|
@@ -113123,10 +113175,10 @@ $packages["net/http"] = (function() {
|
|
|
113123
113175
|
_ref = b.hdr;
|
|
113124
113176
|
if ($assertType(_ref, ptrType$6, true)[1]) {
|
|
113125
113177
|
rr = _ref.$val;
|
|
113126
|
-
mergeSetHeader((rr.$ptr_Trailer || (rr.$ptr_Trailer = new ptrType$
|
|
113178
|
+
mergeSetHeader((rr.$ptr_Trailer || (rr.$ptr_Trailer = new ptrType$78(function() { return this.$target.Trailer; }, function($v) { this.$target.Trailer = $v; }, rr))), (hdr));
|
|
113127
113179
|
} else if ($assertType(_ref, ptrType$18, true)[1]) {
|
|
113128
113180
|
rr$1 = _ref.$val;
|
|
113129
|
-
mergeSetHeader((rr$1.$ptr_Trailer || (rr$1.$ptr_Trailer = new ptrType$
|
|
113181
|
+
mergeSetHeader((rr$1.$ptr_Trailer || (rr$1.$ptr_Trailer = new ptrType$78(function() { return this.$target.Trailer; }, function($v) { this.$target.Trailer = $v; }, rr$1))), (hdr));
|
|
113130
113182
|
}
|
|
113131
113183
|
$s = -1; return $ifaceNil;
|
|
113132
113184
|
/* */ } return; } if ($f === undefined) { $f = { $blk: body.ptr.prototype.readTrailer }; } $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._ref = _ref; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f.b = b; $f.buf = buf; $f.err = err; $f.hdr = hdr; $f.rr = rr; $f.rr$1 = rr$1; $f.$s = $s; $f.$r = $r; return $f;
|
|
@@ -113315,7 +113367,7 @@ $packages["net/http"] = (function() {
|
|
|
113315
113367
|
var _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _ref, _tuple, ok, r, r$1, $s, $r;
|
|
113316
113368
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _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; _ref = $f._ref; _tuple = $f._tuple; ok = $f.ok; r = $f.r; r$1 = $f.r$1; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
113317
113369
|
_ref = r;
|
|
113318
|
-
if ($assertType(_ref, ptrType$
|
|
113370
|
+
if ($assertType(_ref, ptrType$88, true)[1] || $assertType(_ref, ptrType$38, true)[1] || $assertType(_ref, ptrType$89, true)[1]) {
|
|
113319
113371
|
$s = -1; return true;
|
|
113320
113372
|
}
|
|
113321
113373
|
_r$2 = reflect.TypeOf(r); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
@@ -113433,7 +113485,7 @@ $packages["net/http"] = (function() {
|
|
|
113433
113485
|
ptrType$69.methods = [{prop: "Init", name: "Init", pkg: "", typ: $funcType([], [], false)}];
|
|
113434
113486
|
ptrType$56.methods = [{prop: "Available", name: "Available", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Flush", name: "Flush", pkg: "", typ: $funcType([], [$error], false)}];
|
|
113435
113487
|
ptrType$71.methods = [{prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Swap", name: "Swap", pkg: "", typ: $funcType([$Int, $Int], [], false)}, {prop: "Less", name: "Less", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "Keys", name: "Keys", pkg: "", typ: $funcType([Header], [sliceType$2], false)}, {prop: "SortStrings", name: "SortStrings", pkg: "", typ: $funcType([sliceType$2], [], false)}];
|
|
113436
|
-
ptrType$68.methods = [{prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "CloseWithError", name: "CloseWithError", pkg: "", typ: $funcType([$error], [], false)}, {prop: "BreakWithError", name: "BreakWithError", pkg: "", typ: $funcType([$error], [], false)}, {prop: "closeWithErrorAndCode", name: "closeWithErrorAndCode", pkg: "net/http", typ: $funcType([$error, funcType], [], false)}, {prop: "closeWithError", name: "closeWithError", pkg: "net/http", typ: $funcType([ptrType$49, $error, funcType], [], false)}, {prop: "closeDoneLocked", name: "closeDoneLocked", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "Err", name: "Err", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Done", name: "Done", pkg: "", typ: $funcType([], [chanType$3], false)}];
|
|
113488
|
+
ptrType$68.methods = [{prop: "setBuffer", name: "setBuffer", pkg: "net/http", typ: $funcType([http2pipeBuffer], [], false)}, {prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "CloseWithError", name: "CloseWithError", pkg: "", typ: $funcType([$error], [], false)}, {prop: "BreakWithError", name: "BreakWithError", pkg: "", typ: $funcType([$error], [], false)}, {prop: "closeWithErrorAndCode", name: "closeWithErrorAndCode", pkg: "net/http", typ: $funcType([$error, funcType], [], false)}, {prop: "closeWithError", name: "closeWithError", pkg: "net/http", typ: $funcType([ptrType$49, $error, funcType], [], false)}, {prop: "closeDoneLocked", name: "closeDoneLocked", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "Err", name: "Err", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Done", name: "Done", pkg: "", typ: $funcType([], [chanType$3], false)}];
|
|
113437
113489
|
ptrType$52.methods = [{prop: "initialConnRecvWindowSize", name: "initialConnRecvWindowSize", pkg: "net/http", typ: $funcType([], [$Int32], false)}, {prop: "initialStreamRecvWindowSize", name: "initialStreamRecvWindowSize", pkg: "net/http", typ: $funcType([], [$Int32], false)}, {prop: "maxReadFrameSize", name: "maxReadFrameSize", pkg: "net/http", typ: $funcType([], [$Uint32], false)}, {prop: "maxConcurrentStreams", name: "maxConcurrentStreams", pkg: "net/http", typ: $funcType([], [$Uint32], false)}, {prop: "maxQueuedControlFrames", name: "maxQueuedControlFrames", pkg: "net/http", typ: $funcType([], [$Int], false)}, {prop: "ServeConn", name: "ServeConn", pkg: "", typ: $funcType([net.Conn, ptrType$54], [], false)}];
|
|
113438
113490
|
ptrType$50.methods = [{prop: "registerConn", name: "registerConn", pkg: "net/http", typ: $funcType([ptrType$8], [], false)}, {prop: "unregisterConn", name: "unregisterConn", pkg: "net/http", typ: $funcType([ptrType$8], [], false)}, {prop: "startGracefulShutdown", name: "startGracefulShutdown", pkg: "net/http", typ: $funcType([], [], false)}];
|
|
113439
113491
|
ptrType$54.methods = [{prop: "context", name: "context", pkg: "net/http", typ: $funcType([], [context.Context], false)}, {prop: "baseConfig", name: "baseConfig", pkg: "net/http", typ: $funcType([], [ptrType$51], false)}, {prop: "handler", name: "handler", pkg: "net/http", typ: $funcType([], [Handler], false)}];
|
|
@@ -113456,33 +113508,33 @@ $packages["net/http"] = (function() {
|
|
|
113456
113508
|
http2writeWindowUpdate.methods = [{prop: "staysWithinBuffer", name: "staysWithinBuffer", pkg: "net/http", typ: $funcType([$Int], [$Bool], false)}, {prop: "writeFrame", name: "writeFrame", pkg: "net/http", typ: $funcType([http2writeContext], [$error], false)}];
|
|
113457
113509
|
http2FrameWriteRequest.methods = [{prop: "StreamID", name: "StreamID", pkg: "", typ: $funcType([], [$Uint32], false)}, {prop: "isControl", name: "isControl", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "DataSize", name: "DataSize", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Consume", name: "Consume", pkg: "", typ: $funcType([$Int32], [http2FrameWriteRequest, http2FrameWriteRequest, $Int], false)}, {prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113458
113510
|
ptrType$124.methods = [{prop: "replyToWriter", name: "replyToWriter", pkg: "net/http", typ: $funcType([$error], [], false)}];
|
|
113459
|
-
ptrType$
|
|
113460
|
-
ptrType$
|
|
113461
|
-
ptrType$
|
|
113511
|
+
ptrType$81.methods = [{prop: "empty", name: "empty", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "push", name: "push", pkg: "net/http", typ: $funcType([http2FrameWriteRequest], [], false)}, {prop: "shift", name: "shift", pkg: "net/http", typ: $funcType([], [http2FrameWriteRequest], false)}, {prop: "consume", name: "consume", pkg: "net/http", typ: $funcType([$Int32], [http2FrameWriteRequest, $Bool], false)}];
|
|
113512
|
+
ptrType$84.methods = [{prop: "put", name: "put", pkg: "net/http", typ: $funcType([ptrType$81], [], false)}, {prop: "get", name: "get", pkg: "net/http", typ: $funcType([], [ptrType$81], false)}];
|
|
113513
|
+
ptrType$83.methods = [{prop: "setParent", name: "setParent", pkg: "net/http", typ: $funcType([ptrType$83], [], false)}, {prop: "addBytes", name: "addBytes", pkg: "net/http", typ: $funcType([$Int64], [], false)}, {prop: "walkReadyInOrder", name: "walkReadyInOrder", pkg: "net/http", typ: $funcType([$Bool, ptrType$85, funcType$13], [$Bool], false)}];
|
|
113462
113514
|
http2sortPriorityNodeSiblings.methods = [{prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Swap", name: "Swap", pkg: "", typ: $funcType([$Int, $Int], [], false)}, {prop: "Less", name: "Less", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}];
|
|
113463
|
-
ptrType$125.methods = [{prop: "OpenStream", name: "OpenStream", pkg: "", typ: $funcType([$Uint32, http2OpenStreamOptions], [], false)}, {prop: "CloseStream", name: "CloseStream", pkg: "", typ: $funcType([$Uint32], [], false)}, {prop: "AdjustStream", name: "AdjustStream", pkg: "", typ: $funcType([$Uint32, http2PriorityParam], [], false)}, {prop: "Push", name: "Push", pkg: "", typ: $funcType([http2FrameWriteRequest], [], false)}, {prop: "Pop", name: "Pop", pkg: "", typ: $funcType([], [http2FrameWriteRequest, $Bool], false)}, {prop: "addClosedOrIdleNode", name: "addClosedOrIdleNode", pkg: "net/http", typ: $funcType([ptrType$
|
|
113515
|
+
ptrType$125.methods = [{prop: "OpenStream", name: "OpenStream", pkg: "", typ: $funcType([$Uint32, http2OpenStreamOptions], [], false)}, {prop: "CloseStream", name: "CloseStream", pkg: "", typ: $funcType([$Uint32], [], false)}, {prop: "AdjustStream", name: "AdjustStream", pkg: "", typ: $funcType([$Uint32, http2PriorityParam], [], false)}, {prop: "Push", name: "Push", pkg: "", typ: $funcType([http2FrameWriteRequest], [], false)}, {prop: "Pop", name: "Pop", pkg: "", typ: $funcType([], [http2FrameWriteRequest, $Bool], false)}, {prop: "addClosedOrIdleNode", name: "addClosedOrIdleNode", pkg: "net/http", typ: $funcType([ptrType$85, $Int, ptrType$83], [], false)}, {prop: "removeNode", name: "removeNode", pkg: "net/http", typ: $funcType([ptrType$83], [], false)}];
|
|
113464
113516
|
ptrType$126.methods = [{prop: "OpenStream", name: "OpenStream", pkg: "", typ: $funcType([$Uint32, http2OpenStreamOptions], [], false)}, {prop: "CloseStream", name: "CloseStream", pkg: "", typ: $funcType([$Uint32], [], false)}, {prop: "AdjustStream", name: "AdjustStream", pkg: "", typ: $funcType([$Uint32, http2PriorityParam], [], false)}, {prop: "Push", name: "Push", pkg: "", typ: $funcType([http2FrameWriteRequest], [], false)}, {prop: "Pop", name: "Pop", pkg: "", typ: $funcType([], [http2FrameWriteRequest, $Bool], false)}];
|
|
113465
|
-
Header.methods = [{prop: "Add", name: "Add", pkg: "", typ: $funcType([$String, $String], [], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$String, $String], [], false)}, {prop: "Get", name: "Get", pkg: "", typ: $funcType([$String], [$String], false)}, {prop: "Values", name: "Values", pkg: "", typ: $funcType([$String], [sliceType$2], false)}, {prop: "get", name: "get", pkg: "net/http", typ: $funcType([$String], [$String], false)}, {prop: "has", name: "has", pkg: "net/http", typ: $funcType([$String], [$Bool], false)}, {prop: "Del", name: "Del", pkg: "", typ: $funcType([$String], [], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([io.Writer], [$error], false)}, {prop: "write", name: "write", pkg: "net/http", typ: $funcType([io.Writer, ptrType$48], [$error], false)}, {prop: "Clone", name: "Clone", pkg: "", typ: $funcType([], [Header], false)}, {prop: "sortedKeyValues", name: "sortedKeyValues", pkg: "net/http", typ: $funcType([mapType$12], [sliceType$5, ptrType$
|
|
113517
|
+
Header.methods = [{prop: "Add", name: "Add", pkg: "", typ: $funcType([$String, $String], [], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$String, $String], [], false)}, {prop: "Get", name: "Get", pkg: "", typ: $funcType([$String], [$String], false)}, {prop: "Values", name: "Values", pkg: "", typ: $funcType([$String], [sliceType$2], false)}, {prop: "get", name: "get", pkg: "net/http", typ: $funcType([$String], [$String], false)}, {prop: "has", name: "has", pkg: "net/http", typ: $funcType([$String], [$Bool], false)}, {prop: "Del", name: "Del", pkg: "", typ: $funcType([$String], [], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([io.Writer], [$error], false)}, {prop: "write", name: "write", pkg: "net/http", typ: $funcType([io.Writer, ptrType$48], [$error], false)}, {prop: "Clone", name: "Clone", pkg: "", typ: $funcType([], [Header], false)}, {prop: "sortedKeyValues", name: "sortedKeyValues", pkg: "net/http", typ: $funcType([mapType$12], [sliceType$5, ptrType$86], false)}, {prop: "WriteSubset", name: "WriteSubset", pkg: "", typ: $funcType([io.Writer, mapType$12], [$error], false)}, {prop: "writeSubset", name: "writeSubset", pkg: "net/http", typ: $funcType([io.Writer, mapType$12, ptrType$48], [$error], false)}];
|
|
113466
113518
|
stringWriter.methods = [{prop: "WriteString", name: "WriteString", pkg: "", typ: $funcType([$String], [$Int, $error], false)}];
|
|
113467
|
-
ptrType$
|
|
113519
|
+
ptrType$86.methods = [{prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Swap", name: "Swap", pkg: "", typ: $funcType([$Int, $Int], [], false)}, {prop: "Less", name: "Less", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}];
|
|
113468
113520
|
ptrType$127.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113469
113521
|
noBody.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}, {prop: "WriteTo", name: "WriteTo", pkg: "", typ: $funcType([io.Writer], [$Int64, $error], false)}];
|
|
113470
113522
|
ptrType$128.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113471
|
-
ptrType$6.methods = [{prop: "Context", name: "Context", pkg: "", typ: $funcType([], [context.Context], false)}, {prop: "WithContext", name: "WithContext", pkg: "", typ: $funcType([context.Context], [ptrType$6], false)}, {prop: "Clone", name: "Clone", pkg: "", typ: $funcType([context.Context], [ptrType$6], false)}, {prop: "ProtoAtLeast", name: "ProtoAtLeast", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "UserAgent", name: "UserAgent", pkg: "", typ: $funcType([], [$String], false)}, {prop: "Cookies", name: "Cookies", pkg: "", typ: $funcType([], [sliceType$9], false)}, {prop: "Cookie", name: "Cookie", pkg: "", typ: $funcType([$String], [ptrType$26, $error], false)}, {prop: "AddCookie", name: "AddCookie", pkg: "", typ: $funcType([ptrType$26], [], false)}, {prop: "Referer", name: "Referer", pkg: "", typ: $funcType([], [$String], false)}, {prop: "MultipartReader", name: "MultipartReader", pkg: "", typ: $funcType([], [ptrType$
|
|
113472
|
-
ptrType$
|
|
113523
|
+
ptrType$6.methods = [{prop: "Context", name: "Context", pkg: "", typ: $funcType([], [context.Context], false)}, {prop: "WithContext", name: "WithContext", pkg: "", typ: $funcType([context.Context], [ptrType$6], false)}, {prop: "Clone", name: "Clone", pkg: "", typ: $funcType([context.Context], [ptrType$6], false)}, {prop: "ProtoAtLeast", name: "ProtoAtLeast", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "UserAgent", name: "UserAgent", pkg: "", typ: $funcType([], [$String], false)}, {prop: "Cookies", name: "Cookies", pkg: "", typ: $funcType([], [sliceType$9], false)}, {prop: "Cookie", name: "Cookie", pkg: "", typ: $funcType([$String], [ptrType$26, $error], false)}, {prop: "AddCookie", name: "AddCookie", pkg: "", typ: $funcType([ptrType$26], [], false)}, {prop: "Referer", name: "Referer", pkg: "", typ: $funcType([], [$String], false)}, {prop: "MultipartReader", name: "MultipartReader", pkg: "", typ: $funcType([], [ptrType$87, $error], false)}, {prop: "multipartReader", name: "multipartReader", pkg: "net/http", typ: $funcType([$Bool], [ptrType$87, $error], false)}, {prop: "isH2Upgrade", name: "isH2Upgrade", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([io.Writer], [$error], false)}, {prop: "WriteProxy", name: "WriteProxy", pkg: "", typ: $funcType([io.Writer], [$error], false)}, {prop: "write", name: "write", pkg: "net/http", typ: $funcType([io.Writer, $Bool, Header, funcType$3], [$error], false)}, {prop: "BasicAuth", name: "BasicAuth", pkg: "", typ: $funcType([], [$String, $String, $Bool], false)}, {prop: "SetBasicAuth", name: "SetBasicAuth", pkg: "", typ: $funcType([$String, $String], [], false)}, {prop: "ParseForm", name: "ParseForm", pkg: "", typ: $funcType([], [$error], false)}, {prop: "ParseMultipartForm", name: "ParseMultipartForm", pkg: "", typ: $funcType([$Int64], [$error], false)}, {prop: "FormValue", name: "FormValue", pkg: "", typ: $funcType([$String], [$String], false)}, {prop: "PostFormValue", name: "PostFormValue", pkg: "", typ: $funcType([$String], [$String], false)}, {prop: "FormFile", name: "FormFile", pkg: "", typ: $funcType([$String], [multipart.File, ptrType$27, $error], false)}, {prop: "expectsContinue", name: "expectsContinue", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "wantsHttp10KeepAlive", name: "wantsHttp10KeepAlive", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "wantsClose", name: "wantsClose", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "closeBody", name: "closeBody", pkg: "net/http", typ: $funcType([], [$error], false)}, {prop: "isReplayable", name: "isReplayable", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "outgoingLength", name: "outgoingLength", pkg: "net/http", typ: $funcType([], [$Int64], false)}, {prop: "requiresHTTP1", name: "requiresHTTP1", pkg: "net/http", typ: $funcType([], [$Bool], false)}];
|
|
113524
|
+
ptrType$91.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}];
|
|
113473
113525
|
ptrType$18.methods = [{prop: "Cookies", name: "Cookies", pkg: "", typ: $funcType([], [sliceType$9], false)}, {prop: "Location", name: "Location", pkg: "", typ: $funcType([], [ptrType$19, $error], false)}, {prop: "ProtoAtLeast", name: "ProtoAtLeast", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([io.Writer], [$error], false)}, {prop: "closeBody", name: "closeBody", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "bodyIsWritable", name: "bodyIsWritable", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "isProtocolSwitch", name: "isProtocolSwitch", pkg: "net/http", typ: $funcType([], [$Bool], false)}];
|
|
113474
|
-
ptrType$
|
|
113526
|
+
ptrType$98.methods = [{prop: "hijacked", name: "hijacked", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "hijackLocked", name: "hijackLocked", pkg: "net/http", typ: $funcType([], [net.Conn, ptrType$92, $error], false)}, {prop: "readRequest", name: "readRequest", pkg: "net/http", typ: $funcType([context.Context], [ptrType$95, $error], false)}, {prop: "finalFlush", name: "finalFlush", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "close", name: "close", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "closeWriteAndWait", name: "closeWriteAndWait", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "setState", name: "setState", pkg: "net/http", typ: $funcType([net.Conn, ConnState, $Bool], [], false)}, {prop: "getState", name: "getState", pkg: "net/http", typ: $funcType([], [ConnState, $Int64], false)}, {prop: "serve", name: "serve", pkg: "net/http", typ: $funcType([context.Context], [], false)}];
|
|
113475
113527
|
ptrType$131.methods = [{prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "flush", name: "flush", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "close", name: "close", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "writeHeader", name: "writeHeader", pkg: "net/http", typ: $funcType([sliceType$4], [], false)}];
|
|
113476
|
-
ptrType$
|
|
113528
|
+
ptrType$95.methods = [{prop: "finalTrailers", name: "finalTrailers", pkg: "net/http", typ: $funcType([], [Header], false)}, {prop: "declareTrailer", name: "declareTrailer", pkg: "net/http", typ: $funcType([$String], [], false)}, {prop: "requestTooLarge", name: "requestTooLarge", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "needsSniff", name: "needsSniff", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "ReadFrom", name: "ReadFrom", pkg: "", typ: $funcType([io.Reader], [$Int64, $error], false)}, {prop: "Header", name: "Header", pkg: "", typ: $funcType([], [Header], false)}, {prop: "WriteHeader", name: "WriteHeader", pkg: "", typ: $funcType([$Int], [], false)}, {prop: "bodyAllowed", name: "bodyAllowed", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "WriteString", name: "WriteString", pkg: "", typ: $funcType([$String], [$Int, $error], false)}, {prop: "write", name: "write", pkg: "net/http", typ: $funcType([$Int, sliceType$4, $String], [$Int, $error], false)}, {prop: "finishRequest", name: "finishRequest", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "shouldReuseConnection", name: "shouldReuseConnection", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "closedRequestBodyEarly", name: "closedRequestBodyEarly", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "Flush", name: "Flush", pkg: "", typ: $funcType([], [], false)}, {prop: "sendExpectationFailed", name: "sendExpectationFailed", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "Hijack", name: "Hijack", pkg: "", typ: $funcType([], [net.Conn, ptrType$92, $error], false)}, {prop: "CloseNotify", name: "CloseNotify", pkg: "", typ: $funcType([], [chanType$9], false)}];
|
|
113477
113529
|
ptrType$24.methods = [{prop: "isSet", name: "isSet", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "setTrue", name: "setTrue", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "setFalse", name: "setFalse", pkg: "net/http", typ: $funcType([], [], false)}];
|
|
113478
|
-
ptrType$
|
|
113479
|
-
ptrType$
|
|
113530
|
+
ptrType$94.methods = [{prop: "lock", name: "lock", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "unlock", name: "unlock", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "startBackgroundRead", name: "startBackgroundRead", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "backgroundRead", name: "backgroundRead", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "abortPendingRead", name: "abortPendingRead", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "setReadLimit", name: "setReadLimit", pkg: "net/http", typ: $funcType([$Int64], [], false)}, {prop: "setInfiniteReadLimit", name: "setInfiniteReadLimit", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "hitReadLimit", name: "hitReadLimit", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "handleReadError", name: "handleReadError", pkg: "net/http", typ: $funcType([$error], [], false)}, {prop: "closeNotify", name: "closeNotify", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}];
|
|
113531
|
+
ptrType$100.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}];
|
|
113480
113532
|
extraHeader.methods = [{prop: "Write", name: "Write", pkg: "", typ: $funcType([ptrType$9], [], false)}];
|
|
113481
113533
|
statusError.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113482
113534
|
HandlerFunc.methods = [{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}];
|
|
113483
113535
|
ptrType$132.methods = [{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}];
|
|
113484
113536
|
ptrType$133.methods = [{prop: "match", name: "match", pkg: "net/http", typ: $funcType([$String], [Handler, $String], false)}, {prop: "redirectToPathSlash", name: "redirectToPathSlash", pkg: "net/http", typ: $funcType([$String, $String, ptrType$19], [ptrType$19, $Bool], false)}, {prop: "shouldRedirectRLocked", name: "shouldRedirectRLocked", pkg: "net/http", typ: $funcType([$String, $String], [$Bool], false)}, {prop: "Handler", name: "Handler", pkg: "", typ: $funcType([ptrType$6], [Handler, $String], false)}, {prop: "handler", name: "handler", pkg: "net/http", typ: $funcType([$String, $String], [Handler, $String], false)}, {prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}, {prop: "Handle", name: "Handle", pkg: "", typ: $funcType([$String, Handler], [], false)}, {prop: "HandleFunc", name: "HandleFunc", pkg: "", typ: $funcType([$String, funcType$9], [], false)}];
|
|
113485
|
-
ptrType$51.methods = [{prop: "newConn", name: "newConn", pkg: "net/http", typ: $funcType([net.Conn], [ptrType$
|
|
113537
|
+
ptrType$51.methods = [{prop: "newConn", name: "newConn", pkg: "net/http", typ: $funcType([net.Conn], [ptrType$98], false)}, {prop: "maxHeaderBytes", name: "maxHeaderBytes", pkg: "net/http", typ: $funcType([], [$Int], false)}, {prop: "initialReadLimitSize", name: "initialReadLimitSize", pkg: "net/http", typ: $funcType([], [$Int64], false)}, {prop: "getDoneChan", name: "getDoneChan", pkg: "net/http", typ: $funcType([], [chanType$3], false)}, {prop: "getDoneChanLocked", name: "getDoneChanLocked", pkg: "net/http", typ: $funcType([], [chanType$2], false)}, {prop: "closeDoneChanLocked", name: "closeDoneChanLocked", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Shutdown", name: "Shutdown", pkg: "", typ: $funcType([context.Context], [$error], false)}, {prop: "RegisterOnShutdown", name: "RegisterOnShutdown", pkg: "", typ: $funcType([funcType], [], false)}, {prop: "numListeners", name: "numListeners", pkg: "net/http", typ: $funcType([], [$Int], false)}, {prop: "closeIdleConns", name: "closeIdleConns", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "closeListenersLocked", name: "closeListenersLocked", pkg: "net/http", typ: $funcType([], [$error], false)}, {prop: "ListenAndServe", name: "ListenAndServe", pkg: "", typ: $funcType([], [$error], false)}, {prop: "shouldConfigureHTTP2ForServe", name: "shouldConfigureHTTP2ForServe", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "Serve", name: "Serve", pkg: "", typ: $funcType([net.Listener], [$error], false)}, {prop: "ServeTLS", name: "ServeTLS", pkg: "", typ: $funcType([net.Listener, $String, $String], [$error], false)}, {prop: "trackListener", name: "trackListener", pkg: "net/http", typ: $funcType([ptrType$102, $Bool], [$Bool], false)}, {prop: "trackConn", name: "trackConn", pkg: "net/http", typ: $funcType([ptrType$98, $Bool], [], false)}, {prop: "idleTimeout", name: "idleTimeout", pkg: "net/http", typ: $funcType([], [time.Duration], false)}, {prop: "readHeaderTimeout", name: "readHeaderTimeout", pkg: "net/http", typ: $funcType([], [time.Duration], false)}, {prop: "doKeepAlives", name: "doKeepAlives", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "shuttingDown", name: "shuttingDown", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "SetKeepAlivesEnabled", name: "SetKeepAlivesEnabled", pkg: "", typ: $funcType([$Bool], [], false)}, {prop: "logf", name: "logf", pkg: "net/http", typ: $funcType([$String, sliceType], [], true)}, {prop: "ListenAndServeTLS", name: "ListenAndServeTLS", pkg: "", typ: $funcType([$String, $String], [$error], false)}, {prop: "setupHTTP2_ServeTLS", name: "setupHTTP2_ServeTLS", pkg: "net/http", typ: $funcType([], [$error], false)}, {prop: "setupHTTP2_Serve", name: "setupHTTP2_Serve", pkg: "net/http", typ: $funcType([], [$error], false)}, {prop: "onceSetNextProtoDefaults_Serve", name: "onceSetNextProtoDefaults_Serve", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "onceSetNextProtoDefaults", name: "onceSetNextProtoDefaults", pkg: "net/http", typ: $funcType([], [], false)}];
|
|
113486
113538
|
ConnState.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113487
113539
|
serverHandler.methods = [{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}];
|
|
113488
113540
|
ptrType$135.methods = [{prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}, {prop: "close", name: "close", pkg: "net/http", typ: $funcType([], [], false)}];
|
|
@@ -113500,7 +113552,7 @@ $packages["net/http"] = (function() {
|
|
|
113500
113552
|
ptrType$105.methods = [{prop: "shouldSendChunkedRequestBody", name: "shouldSendChunkedRequestBody", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "probeRequestBody", name: "probeRequestBody", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "shouldSendContentLength", name: "shouldSendContentLength", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "writeHeader", name: "writeHeader", pkg: "net/http", typ: $funcType([io.Writer, ptrType$48], [$error], false)}, {prop: "writeBody", name: "writeBody", pkg: "net/http", typ: $funcType([io.Writer], [$error], false)}, {prop: "doBodyCopy", name: "doBodyCopy", pkg: "net/http", typ: $funcType([io.Writer, io.Reader], [$Int64, $error], false)}, {prop: "unwrapBody", name: "unwrapBody", pkg: "net/http", typ: $funcType([], [io.Reader], false)}];
|
|
113501
113553
|
ptrType$142.methods = [{prop: "protoAtLeast", name: "protoAtLeast", pkg: "net/http", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "parseTransferEncoding", name: "parseTransferEncoding", pkg: "net/http", typ: $funcType([], [$error], false)}];
|
|
113502
113554
|
ptrType$107.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113503
|
-
ptrType$
|
|
113555
|
+
ptrType$97.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "readLocked", name: "readLocked", pkg: "net/http", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "readTrailer", name: "readTrailer", pkg: "net/http", typ: $funcType([], [$error], false)}, {prop: "unreadDataSizeLocked", name: "unreadDataSizeLocked", pkg: "net/http", typ: $funcType([], [$Int64], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}, {prop: "didEarlyClose", name: "didEarlyClose", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "bodyRemains", name: "bodyRemains", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "registerOnHitEOF", name: "registerOnHitEOF", pkg: "net/http", typ: $funcType([funcType], [], false)}];
|
|
113504
113556
|
bodyLocked.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}];
|
|
113505
113557
|
finishAsyncByteRead.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}];
|
|
113506
113558
|
bufioFlushWriter.methods = [{prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}];
|
|
@@ -113570,10 +113622,10 @@ $packages["net/http"] = (function() {
|
|
|
113570
113622
|
http2OpenStreamOptions.init("", [{prop: "PusherID", name: "PusherID", embedded: false, exported: true, typ: $Uint32, tag: ""}]);
|
|
113571
113623
|
http2FrameWriteRequest.init("net/http", [{prop: "write", name: "write", embedded: false, exported: false, typ: http2writeFramer, tag: ""}, {prop: "stream", name: "stream", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "done", name: "done", embedded: false, exported: false, typ: chanType, tag: ""}]);
|
|
113572
113624
|
http2writeQueue.init("net/http", [{prop: "s", name: "s", embedded: false, exported: false, typ: sliceType$24, tag: ""}]);
|
|
113573
|
-
http2writeQueuePool.init(ptrType$
|
|
113625
|
+
http2writeQueuePool.init(ptrType$81);
|
|
113574
113626
|
http2PriorityWriteSchedulerConfig.init("", [{prop: "MaxClosedNodesInTree", name: "MaxClosedNodesInTree", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "MaxIdleNodesInTree", name: "MaxIdleNodesInTree", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "ThrottleOutOfOrderWrites", name: "ThrottleOutOfOrderWrites", embedded: false, exported: true, typ: $Bool, tag: ""}]);
|
|
113575
|
-
http2priorityNode.init("net/http", [{prop: "q", name: "q", embedded: false, exported: false, typ: http2writeQueue, tag: ""}, {prop: "id", name: "id", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "weight", name: "weight", embedded: false, exported: false, typ: $Uint8, tag: ""}, {prop: "state", name: "state", embedded: false, exported: false, typ: http2priorityNodeState, tag: ""}, {prop: "bytes", name: "bytes", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "subtreeBytes", name: "subtreeBytes", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "parent", name: "parent", embedded: false, exported: false, typ: ptrType$
|
|
113576
|
-
http2sortPriorityNodeSiblings.init(ptrType$
|
|
113627
|
+
http2priorityNode.init("net/http", [{prop: "q", name: "q", embedded: false, exported: false, typ: http2writeQueue, tag: ""}, {prop: "id", name: "id", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "weight", name: "weight", embedded: false, exported: false, typ: $Uint8, tag: ""}, {prop: "state", name: "state", embedded: false, exported: false, typ: http2priorityNodeState, tag: ""}, {prop: "bytes", name: "bytes", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "subtreeBytes", name: "subtreeBytes", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "parent", name: "parent", embedded: false, exported: false, typ: ptrType$83, tag: ""}, {prop: "kids", name: "kids", embedded: false, exported: false, typ: ptrType$83, tag: ""}, {prop: "prev", name: "prev", embedded: false, exported: false, typ: ptrType$83, tag: ""}, {prop: "next", name: "next", embedded: false, exported: false, typ: ptrType$83, tag: ""}]);
|
|
113628
|
+
http2sortPriorityNodeSiblings.init(ptrType$83);
|
|
113577
113629
|
http2priorityWriteScheduler.init("net/http", [{prop: "root", name: "root", embedded: false, exported: false, typ: http2priorityNode, tag: ""}, {prop: "nodes", name: "nodes", embedded: false, exported: false, typ: mapType$10, tag: ""}, {prop: "maxID", name: "maxID", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "closedNodes", name: "closedNodes", embedded: false, exported: false, typ: sliceType$25, tag: ""}, {prop: "idleNodes", name: "idleNodes", embedded: false, exported: false, typ: sliceType$25, tag: ""}, {prop: "maxClosedNodesInTree", name: "maxClosedNodesInTree", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "maxIdleNodesInTree", name: "maxIdleNodesInTree", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "writeThrottleLimit", name: "writeThrottleLimit", embedded: false, exported: false, typ: $Int32, tag: ""}, {prop: "enableWriteThrottle", name: "enableWriteThrottle", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "tmp", name: "tmp", embedded: false, exported: false, typ: sliceType$25, tag: ""}, {prop: "queuePool", name: "queuePool", embedded: false, exported: false, typ: http2writeQueuePool, tag: ""}]);
|
|
113578
113630
|
http2randomWriteScheduler.init("net/http", [{prop: "zero", name: "zero", embedded: false, exported: false, typ: http2writeQueue, tag: ""}, {prop: "sq", name: "sq", embedded: false, exported: false, typ: mapType$11, tag: ""}, {prop: "queuePool", name: "queuePool", embedded: false, exported: false, typ: http2writeQueuePool, tag: ""}]);
|
|
113579
113631
|
Header.init($String, sliceType$2);
|
|
@@ -113591,13 +113643,13 @@ $packages["net/http"] = (function() {
|
|
|
113591
113643
|
Response.init("", [{prop: "Status", name: "Status", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "StatusCode", name: "StatusCode", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Proto", name: "Proto", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "ProtoMajor", name: "ProtoMajor", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "ProtoMinor", name: "ProtoMinor", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Header", name: "Header", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "Body", name: "Body", embedded: false, exported: true, typ: io.ReadCloser, tag: ""}, {prop: "ContentLength", name: "ContentLength", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "TransferEncoding", name: "TransferEncoding", embedded: false, exported: true, typ: sliceType$2, tag: ""}, {prop: "Close", name: "Close", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "Uncompressed", name: "Uncompressed", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "Trailer", name: "Trailer", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "Request", name: "Request", embedded: false, exported: true, typ: ptrType$6, tag: ""}, {prop: "TLS", name: "TLS", embedded: false, exported: true, typ: ptrType$21, tag: ""}]);
|
|
113592
113644
|
Handler.init([{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}]);
|
|
113593
113645
|
ResponseWriter.init([{prop: "Header", name: "Header", pkg: "", typ: $funcType([], [Header], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "WriteHeader", name: "WriteHeader", pkg: "", typ: $funcType([$Int], [], false)}]);
|
|
113594
|
-
conn.init("net/http", [{prop: "server", name: "server", embedded: false, exported: false, typ: ptrType$51, tag: ""}, {prop: "cancelCtx", name: "cancelCtx", embedded: false, exported: false, typ: context.CancelFunc, tag: ""}, {prop: "rwc", name: "rwc", embedded: false, exported: false, typ: net.Conn, tag: ""}, {prop: "remoteAddr", name: "remoteAddr", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "tlsState", name: "tlsState", embedded: false, exported: false, typ: ptrType$21, tag: ""}, {prop: "werr", name: "werr", embedded: false, exported: false, typ: $error, tag: ""}, {prop: "r", name: "r", embedded: false, exported: false, typ: ptrType$
|
|
113595
|
-
chunkWriter.init("net/http", [{prop: "res", name: "res", embedded: false, exported: false, typ: ptrType$
|
|
113596
|
-
response.init("net/http", [{prop: "conn", name: "conn", embedded: false, exported: false, typ: ptrType$
|
|
113646
|
+
conn.init("net/http", [{prop: "server", name: "server", embedded: false, exported: false, typ: ptrType$51, tag: ""}, {prop: "cancelCtx", name: "cancelCtx", embedded: false, exported: false, typ: context.CancelFunc, tag: ""}, {prop: "rwc", name: "rwc", embedded: false, exported: false, typ: net.Conn, tag: ""}, {prop: "remoteAddr", name: "remoteAddr", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "tlsState", name: "tlsState", embedded: false, exported: false, typ: ptrType$21, tag: ""}, {prop: "werr", name: "werr", embedded: false, exported: false, typ: $error, tag: ""}, {prop: "r", name: "r", embedded: false, exported: false, typ: ptrType$94, tag: ""}, {prop: "bufr", name: "bufr", embedded: false, exported: false, typ: ptrType$77, tag: ""}, {prop: "bufw", name: "bufw", embedded: false, exported: false, typ: ptrType$9, tag: ""}, {prop: "lastMethod", name: "lastMethod", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "curReq", name: "curReq", embedded: false, exported: false, typ: atomic.Value, tag: ""}, {prop: "curState", name: "curState", embedded: false, exported: false, typ: structType$2, tag: ""}, {prop: "mu", name: "mu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "hijackedv", name: "hijackedv", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
113647
|
+
chunkWriter.init("net/http", [{prop: "res", name: "res", embedded: false, exported: false, typ: ptrType$95, tag: ""}, {prop: "header", name: "header", embedded: false, exported: false, typ: Header, tag: ""}, {prop: "wroteHeader", name: "wroteHeader", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "chunking", name: "chunking", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
113648
|
+
response.init("net/http", [{prop: "conn", name: "conn", embedded: false, exported: false, typ: ptrType$98, tag: ""}, {prop: "req", name: "req", embedded: false, exported: false, typ: ptrType$6, tag: ""}, {prop: "reqBody", name: "reqBody", embedded: false, exported: false, typ: io.ReadCloser, tag: ""}, {prop: "cancelCtx", name: "cancelCtx", embedded: false, exported: false, typ: context.CancelFunc, tag: ""}, {prop: "wroteHeader", name: "wroteHeader", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "wroteContinue", name: "wroteContinue", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "wants10KeepAlive", name: "wants10KeepAlive", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "wantsClose", name: "wantsClose", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "canWriteContinue", name: "canWriteContinue", embedded: false, exported: false, typ: atomicBool, tag: ""}, {prop: "writeContinueMu", name: "writeContinueMu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "w", name: "w", embedded: false, exported: false, typ: ptrType$9, tag: ""}, {prop: "cw", name: "cw", embedded: false, exported: false, typ: chunkWriter, tag: ""}, {prop: "handlerHeader", name: "handlerHeader", embedded: false, exported: false, typ: Header, tag: ""}, {prop: "calledHeader", name: "calledHeader", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "written", name: "written", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "contentLength", name: "contentLength", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "status", name: "status", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "closeAfterReply", name: "closeAfterReply", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "requestBodyLimitHit", name: "requestBodyLimitHit", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "trailers", name: "trailers", embedded: false, exported: false, typ: sliceType$2, tag: ""}, {prop: "handlerDone", name: "handlerDone", embedded: false, exported: false, typ: atomicBool, tag: ""}, {prop: "dateBuf", name: "dateBuf", embedded: false, exported: false, typ: arrayType$1, tag: ""}, {prop: "clenBuf", name: "clenBuf", embedded: false, exported: false, typ: arrayType$7, tag: ""}, {prop: "statusBuf", name: "statusBuf", embedded: false, exported: false, typ: arrayType$8, tag: ""}, {prop: "closeNotifyCh", name: "closeNotifyCh", embedded: false, exported: false, typ: chanType$10, tag: ""}, {prop: "didCloseNotify", name: "didCloseNotify", embedded: false, exported: false, typ: $Int32, tag: ""}]);
|
|
113597
113649
|
writerOnly.init("", [{prop: "Writer", name: "Writer", embedded: true, exported: true, typ: io.Writer, tag: ""}]);
|
|
113598
113650
|
readResult.init("net/http", [{prop: "_$0", name: "_", embedded: false, exported: false, typ: incomparable, tag: ""}, {prop: "n", name: "n", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "err", name: "err", embedded: false, exported: false, typ: $error, tag: ""}, {prop: "b", name: "b", embedded: false, exported: false, typ: $Uint8, tag: ""}]);
|
|
113599
|
-
connReader.init("net/http", [{prop: "conn", name: "conn", embedded: false, exported: false, typ: ptrType$
|
|
113600
|
-
expectContinueReader.init("net/http", [{prop: "resp", name: "resp", embedded: false, exported: false, typ: ptrType$
|
|
113651
|
+
connReader.init("net/http", [{prop: "conn", name: "conn", embedded: false, exported: false, typ: ptrType$98, tag: ""}, {prop: "mu", name: "mu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "hasByte", name: "hasByte", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "byteBuf", name: "byteBuf", embedded: false, exported: false, typ: arrayType$6, tag: ""}, {prop: "cond", name: "cond", embedded: false, exported: false, typ: ptrType$73, tag: ""}, {prop: "inRead", name: "inRead", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "aborted", name: "aborted", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "remain", name: "remain", embedded: false, exported: false, typ: $Int64, tag: ""}]);
|
|
113652
|
+
expectContinueReader.init("net/http", [{prop: "resp", name: "resp", embedded: false, exported: false, typ: ptrType$95, tag: ""}, {prop: "readCloser", name: "readCloser", embedded: false, exported: false, typ: io.ReadCloser, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: atomicBool, tag: ""}, {prop: "sawEOF", name: "sawEOF", embedded: false, exported: false, typ: atomicBool, tag: ""}]);
|
|
113601
113653
|
extraHeader.init("net/http", [{prop: "contentType", name: "contentType", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "connection", name: "connection", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "transferEncoding", name: "transferEncoding", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "date", name: "date", embedded: false, exported: false, typ: sliceType$4, tag: ""}, {prop: "contentLength", name: "contentLength", embedded: false, exported: false, typ: sliceType$4, tag: ""}]);
|
|
113602
113654
|
closeWriter.init([{prop: "CloseWrite", name: "CloseWrite", pkg: "", typ: $funcType([], [$error], false)}]);
|
|
113603
113655
|
statusError.init("net/http", [{prop: "code", name: "code", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "text", name: "text", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
@@ -113609,9 +113661,9 @@ $packages["net/http"] = (function() {
|
|
|
113609
113661
|
serverHandler.init("net/http", [{prop: "srv", name: "srv", embedded: false, exported: false, typ: ptrType$51, tag: ""}]);
|
|
113610
113662
|
onceCloseListener.init("net/http", [{prop: "Listener", name: "Listener", embedded: true, exported: true, typ: net.Listener, tag: ""}, {prop: "once", name: "once", embedded: false, exported: false, typ: sync.Once, tag: ""}, {prop: "closeErr", name: "closeErr", embedded: false, exported: false, typ: $error, tag: ""}]);
|
|
113611
113663
|
globalOptionsHandler.init("", []);
|
|
113612
|
-
initALPNRequest.init("net/http", [{prop: "ctx", name: "ctx", embedded: false, exported: false, typ: context.Context, tag: ""}, {prop: "c", name: "c", embedded: false, exported: false, typ: ptrType$
|
|
113664
|
+
initALPNRequest.init("net/http", [{prop: "ctx", name: "ctx", embedded: false, exported: false, typ: context.Context, tag: ""}, {prop: "c", name: "c", embedded: false, exported: false, typ: ptrType$76, tag: ""}, {prop: "h", name: "h", embedded: false, exported: false, typ: serverHandler, tag: ""}]);
|
|
113613
113665
|
loggingConn.init("net/http", [{prop: "name", name: "name", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "Conn", name: "Conn", embedded: true, exported: true, typ: net.Conn, tag: ""}]);
|
|
113614
|
-
checkConnErrorWriter.init("net/http", [{prop: "c", name: "c", embedded: false, exported: false, typ: ptrType$
|
|
113666
|
+
checkConnErrorWriter.init("net/http", [{prop: "c", name: "c", embedded: false, exported: false, typ: ptrType$98, tag: ""}]);
|
|
113615
113667
|
sniffSig.init([{prop: "match", name: "match", pkg: "net/http", typ: $funcType([sliceType$4, $Int], [$String], false)}]);
|
|
113616
113668
|
exactSig.init("net/http", [{prop: "sig", name: "sig", embedded: false, exported: false, typ: sliceType$4, tag: ""}, {prop: "ct", name: "ct", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
113617
113669
|
maskedSig.init("net/http", [{prop: "mask", name: "mask", embedded: false, exported: false, typ: sliceType$4, tag: ""}, {prop: "pat", name: "pat", embedded: false, exported: false, typ: sliceType$4, tag: ""}, {prop: "skipWS", name: "skipWS", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "ct", name: "ct", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
@@ -113620,11 +113672,11 @@ $packages["net/http"] = (function() {
|
|
|
113620
113672
|
textSig.init("", []);
|
|
113621
113673
|
errorReader.init("net/http", [{prop: "err", name: "err", embedded: false, exported: false, typ: $error, tag: ""}]);
|
|
113622
113674
|
byteReader.init("net/http", [{prop: "b", name: "b", embedded: false, exported: false, typ: $Uint8, tag: ""}, {prop: "done", name: "done", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
113623
|
-
transferWriter.init("net/http", [{prop: "Method", name: "Method", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "Body", name: "Body", embedded: false, exported: true, typ: io.Reader, tag: ""}, {prop: "BodyCloser", name: "BodyCloser", embedded: false, exported: true, typ: io.Closer, tag: ""}, {prop: "ResponseToHEAD", name: "ResponseToHEAD", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "ContentLength", name: "ContentLength", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "Close", name: "Close", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "TransferEncoding", name: "TransferEncoding", embedded: false, exported: true, typ: sliceType$2, tag: ""}, {prop: "Header", name: "Header", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "Trailer", name: "Trailer", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "IsResponse", name: "IsResponse", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "bodyReadError", name: "bodyReadError", embedded: false, exported: false, typ: $error, tag: ""}, {prop: "FlushHeaders", name: "FlushHeaders", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "ByteReadCh", name: "ByteReadCh", embedded: false, exported: true, typ: chanType$
|
|
113675
|
+
transferWriter.init("net/http", [{prop: "Method", name: "Method", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "Body", name: "Body", embedded: false, exported: true, typ: io.Reader, tag: ""}, {prop: "BodyCloser", name: "BodyCloser", embedded: false, exported: true, typ: io.Closer, tag: ""}, {prop: "ResponseToHEAD", name: "ResponseToHEAD", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "ContentLength", name: "ContentLength", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "Close", name: "Close", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "TransferEncoding", name: "TransferEncoding", embedded: false, exported: true, typ: sliceType$2, tag: ""}, {prop: "Header", name: "Header", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "Trailer", name: "Trailer", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "IsResponse", name: "IsResponse", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "bodyReadError", name: "bodyReadError", embedded: false, exported: false, typ: $error, tag: ""}, {prop: "FlushHeaders", name: "FlushHeaders", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "ByteReadCh", name: "ByteReadCh", embedded: false, exported: true, typ: chanType$11, tag: ""}]);
|
|
113624
113676
|
transferReader.init("", [{prop: "Header", name: "Header", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "StatusCode", name: "StatusCode", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "RequestMethod", name: "RequestMethod", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "ProtoMajor", name: "ProtoMajor", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "ProtoMinor", name: "ProtoMinor", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Body", name: "Body", embedded: false, exported: true, typ: io.ReadCloser, tag: ""}, {prop: "ContentLength", name: "ContentLength", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "Chunked", name: "Chunked", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "Close", name: "Close", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "Trailer", name: "Trailer", embedded: false, exported: true, typ: Header, tag: ""}]);
|
|
113625
113677
|
unsupportedTEError.init("net/http", [{prop: "err", name: "err", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
113626
|
-
body.init("net/http", [{prop: "src", name: "src", embedded: false, exported: false, typ: io.Reader, tag: ""}, {prop: "hdr", name: "hdr", embedded: false, exported: false, typ: $emptyInterface, tag: ""}, {prop: "r", name: "r", embedded: false, exported: false, typ: ptrType$
|
|
113627
|
-
bodyLocked.init("net/http", [{prop: "b", name: "b", embedded: false, exported: false, typ: ptrType$
|
|
113678
|
+
body.init("net/http", [{prop: "src", name: "src", embedded: false, exported: false, typ: io.Reader, tag: ""}, {prop: "hdr", name: "hdr", embedded: false, exported: false, typ: $emptyInterface, tag: ""}, {prop: "r", name: "r", embedded: false, exported: false, typ: ptrType$77, tag: ""}, {prop: "closing", name: "closing", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "doEarlyClose", name: "doEarlyClose", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "mu", name: "mu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "sawEOF", name: "sawEOF", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "earlyClose", name: "earlyClose", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "onHitEOF", name: "onHitEOF", embedded: false, exported: false, typ: funcType, tag: ""}]);
|
|
113679
|
+
bodyLocked.init("net/http", [{prop: "b", name: "b", embedded: false, exported: false, typ: ptrType$97, tag: ""}]);
|
|
113628
113680
|
finishAsyncByteRead.init("net/http", [{prop: "tw", name: "tw", embedded: false, exported: false, typ: ptrType$105, tag: ""}]);
|
|
113629
113681
|
bufioFlushWriter.init("net/http", [{prop: "w", name: "w", embedded: false, exported: false, typ: io.Writer, tag: ""}]);
|
|
113630
113682
|
readTrackingBody.init("net/http", [{prop: "ReadCloser", name: "ReadCloser", embedded: true, exported: true, typ: io.ReadCloser, tag: ""}, {prop: "didRead", name: "didRead", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "didClose", name: "didClose", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
@@ -113715,6 +113767,7 @@ $packages["net/http"] = (function() {
|
|
|
113715
113767
|
}))]);
|
|
113716
113768
|
http2errReadEmpty = errors.New("read from empty dataBuffer");
|
|
113717
113769
|
http2errCodeName = $makeMap(http2ErrCode.keyFor, [{ k: 0, v: "NO_ERROR" }, { k: 1, v: "PROTOCOL_ERROR" }, { k: 2, v: "INTERNAL_ERROR" }, { k: 3, v: "FLOW_CONTROL_ERROR" }, { k: 4, v: "SETTINGS_TIMEOUT" }, { k: 5, v: "STREAM_CLOSED" }, { k: 6, v: "FRAME_SIZE_ERROR" }, { k: 7, v: "REFUSED_STREAM" }, { k: 8, v: "CANCEL" }, { k: 9, v: "COMPRESSION_ERROR" }, { k: 10, v: "CONNECT_ERROR" }, { k: 11, v: "ENHANCE_YOUR_CALM" }, { k: 12, v: "INADEQUATE_SECURITY" }, { k: 13, v: "HTTP_1_1_REQUIRED" }]);
|
|
113770
|
+
http2errFromPeer = errors.New("received from peer");
|
|
113718
113771
|
http2errMixPseudoHeaderTypes = errors.New("mix of request and response pseudo headers");
|
|
113719
113772
|
http2errPseudoAfterRegular = errors.New("pseudo header field after regular");
|
|
113720
113773
|
http2padZeros = $makeSlice(sliceType$4, 255);
|
|
@@ -113782,6 +113835,7 @@ $packages["net/http"] = (function() {
|
|
|
113782
113835
|
http2errStopReqBodyWrite = errors.New("http2: aborting request body write");
|
|
113783
113836
|
http2errStopReqBodyWriteAndCancel = errors.New("http2: canceling request");
|
|
113784
113837
|
http2errReqBodyTooLong = errors.New("http2: request body larger than specified content length");
|
|
113838
|
+
http2errNilRequestURL = errors.New("http2: Request.URI is nil");
|
|
113785
113839
|
http2errClosedResponseBody = errors.New("http2: response body closed");
|
|
113786
113840
|
http2errResponseHeaderListSize = errors.New("http2: response header list larger than advertised limit");
|
|
113787
113841
|
http2errRequestHeaderListSize = errors.New("http2: request header list larger than peer's advertised limit");
|
|
@@ -136200,6 +136254,18 @@ $packages["github.com/supraio/client-daemon/pkg/window"] = (function() {
|
|
|
136200
136254
|
$pkg.$init = $init;
|
|
136201
136255
|
return $pkg;
|
|
136202
136256
|
})();
|
|
136257
|
+
$packages["github.com/supraio/client-daemon/pkg/x264/general"] = (function() {
|
|
136258
|
+
var $pkg = {}, $init, image;
|
|
136259
|
+
image = $packages["image"];
|
|
136260
|
+
$init = function() {
|
|
136261
|
+
$pkg.$init = function() {};
|
|
136262
|
+
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
136263
|
+
$r = image.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136264
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
136265
|
+
};
|
|
136266
|
+
$pkg.$init = $init;
|
|
136267
|
+
return $pkg;
|
|
136268
|
+
})();
|
|
136203
136269
|
$packages["github.com/nuberu/webgl/types"] = (function() {
|
|
136204
136270
|
var $pkg = {}, $init, js, ActiveInfo, Attributes, GLEnum, PowerPreference, Buffer, FrameBuffer, RenderBuffer, Program, Shader, ShaderPrecisionFormat, Texture, UniformLocation, VertexArray, ptrType, ptrType$1, ptrType$2, ptrType$3, ptrType$4, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, NewActiveInfo, NewBuffer, NewFrameBuffer, NewRenderBuffer, NewProgram, NewShader, NewShaderPrecisionFormat, NewTexture, NewUniformLocation, NewVertexArray;
|
|
136205
136271
|
js = $packages["syscall/js"];
|
|
@@ -136564,7 +136630,7 @@ $packages["github.com/nuberu/webgl/extensions"] = (function() {
|
|
|
136564
136630
|
return $pkg;
|
|
136565
136631
|
})();
|
|
136566
136632
|
$packages["github.com/nuberu/webgl"] = (function() {
|
|
136567
|
-
var $pkg = {}, $init, errors, fmt, extensions, types, reflect, runtime, js, RenderingContext, sliceType, sliceType$1, sliceType$2, sliceType$3, sliceType$4, sliceType$5, sliceType$6, sliceType$7, sliceType$8, sliceType$9, ptrType, ptrType$1, ptrType$2, ptrType$3, ptrType$4, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, sliceType$10, ptrType$10, ptrType$11, ptrType$12, ptrType$13, ptrType$14, ptrType$15, ptrType$16, sliceType$11, ptrType$17, arrayType, arrayType$1, arrayType$2, sliceType$12, sliceType$13, sliceType$14, sliceType$15, ptrType$18, ptrType$19, ptrType$20, ptrType$21, ptrType$22, ptrType$23, sliceToByteSlice, TypedArrayOf, WrapContext, FromCanvas;
|
|
136633
|
+
var $pkg = {}, $init, errors, fmt, extensions, types, reflect, runtime, js, RenderingContext, sliceType, sliceType$1, sliceType$2, sliceType$3, sliceType$4, sliceType$5, sliceType$6, sliceType$7, sliceType$8, sliceType$9, ptrType, ptrType$1, ptrType$2, ptrType$3, ptrType$4, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, sliceType$10, ptrType$10, ptrType$11, ptrType$12, ptrType$13, ptrType$14, ptrType$15, ptrType$16, sliceType$11, ptrType$17, arrayType, arrayType$1, arrayType$2, sliceType$12, sliceType$13, sliceType$14, sliceType$15, ptrType$18, ptrType$19, ptrType$20, ptrType$21, ptrType$22, ptrType$23, sliceToByteSlice, TypedArrayOf, WrapContext, FromCanvas, polyfillOldVersion;
|
|
136568
136634
|
errors = $packages["errors"];
|
|
136569
136635
|
fmt = $packages["fmt"];
|
|
136570
136636
|
extensions = $packages["github.com/nuberu/webgl/extensions"];
|
|
@@ -136652,24 +136718,24 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136652
136718
|
/* */ if ($assertType(_ref, sliceType$9, true)[1]) { $s = 10; continue; }
|
|
136653
136719
|
/* */ $s = 11; continue;
|
|
136654
136720
|
/* if ($assertType(_ref, sliceType, true)[1]) { */ case 1:
|
|
136655
|
-
s$
|
|
136656
|
-
h = ($pointerOfStructConversion(((s$
|
|
136721
|
+
s$8[0] = _ref.$val;
|
|
136722
|
+
h = ($pointerOfStructConversion(((s$8.$ptr || (s$8.$ptr = new ptrType$1(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$8)))), ptrType));
|
|
136657
136723
|
$s = -1; return ((h)).$get();
|
|
136658
136724
|
/* } else if ($assertType(_ref, sliceType$1, true)[1]) { */ case 2:
|
|
136659
|
-
s$
|
|
136660
|
-
h$1 = ($pointerOfStructConversion(((s$
|
|
136725
|
+
s$2[0] = _ref.$val;
|
|
136726
|
+
h$1 = ($pointerOfStructConversion(((s$2.$ptr || (s$2.$ptr = new ptrType$2(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$2)))), ptrType));
|
|
136661
136727
|
h$1.Len = $imul(h$1.Len, (2));
|
|
136662
136728
|
h$1.Cap = $imul(h$1.Cap, (2));
|
|
136663
136729
|
$s = -1; return ((h$1)).$get();
|
|
136664
136730
|
/* } else if ($assertType(_ref, sliceType$2, true)[1]) { */ case 3:
|
|
136665
|
-
s$
|
|
136666
|
-
h$2 = ($pointerOfStructConversion(((s$
|
|
136731
|
+
s$9[0] = _ref.$val;
|
|
136732
|
+
h$2 = ($pointerOfStructConversion(((s$9.$ptr || (s$9.$ptr = new ptrType$3(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$9)))), ptrType));
|
|
136667
136733
|
h$2.Len = $imul(h$2.Len, (4));
|
|
136668
136734
|
h$2.Cap = $imul(h$2.Cap, (4));
|
|
136669
136735
|
$s = -1; return ((h$2)).$get();
|
|
136670
136736
|
/* } else if ($assertType(_ref, sliceType$3, true)[1]) { */ case 4:
|
|
136671
|
-
s$
|
|
136672
|
-
h$3 = ($pointerOfStructConversion(((s$
|
|
136737
|
+
s$4[0] = _ref.$val;
|
|
136738
|
+
h$3 = ($pointerOfStructConversion(((s$4.$ptr || (s$4.$ptr = new ptrType$4(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$4)))), ptrType));
|
|
136673
136739
|
h$3.Len = $imul(h$3.Len, (8));
|
|
136674
136740
|
h$3.Cap = $imul(h$3.Cap, (8));
|
|
136675
136741
|
$s = -1; return ((h$3)).$get();
|
|
@@ -136677,8 +136743,8 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136677
136743
|
s$10 = _ref.$val;
|
|
136678
136744
|
$s = -1; return s$10;
|
|
136679
136745
|
/* } else if ($assertType(_ref, sliceType$5, true)[1]) { */ case 6:
|
|
136680
|
-
s$
|
|
136681
|
-
h$4 = ($pointerOfStructConversion(((s$
|
|
136746
|
+
s$5[0] = _ref.$val;
|
|
136747
|
+
h$4 = ($pointerOfStructConversion(((s$5.$ptr || (s$5.$ptr = new ptrType$5(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$5)))), ptrType));
|
|
136682
136748
|
h$4.Len = $imul(h$4.Len, (2));
|
|
136683
136749
|
h$4.Cap = $imul(h$4.Cap, (2));
|
|
136684
136750
|
$s = -1; return ((h$4)).$get();
|
|
@@ -136689,20 +136755,20 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136689
136755
|
h$5.Cap = $imul(h$5.Cap, (4));
|
|
136690
136756
|
$s = -1; return ((h$5)).$get();
|
|
136691
136757
|
/* } else if ($assertType(_ref, sliceType$7, true)[1]) { */ case 8:
|
|
136692
|
-
s$
|
|
136693
|
-
h$6 = ($pointerOfStructConversion(((s$
|
|
136758
|
+
s$6[0] = _ref.$val;
|
|
136759
|
+
h$6 = ($pointerOfStructConversion(((s$6.$ptr || (s$6.$ptr = new ptrType$7(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$6)))), ptrType));
|
|
136694
136760
|
h$6.Len = $imul(h$6.Len, (8));
|
|
136695
136761
|
h$6.Cap = $imul(h$6.Cap, (8));
|
|
136696
136762
|
$s = -1; return ((h$6)).$get();
|
|
136697
136763
|
/* } else if ($assertType(_ref, sliceType$8, true)[1]) { */ case 9:
|
|
136698
|
-
s$
|
|
136699
|
-
h$7 = ($pointerOfStructConversion(((s$
|
|
136764
|
+
s$1[0] = _ref.$val;
|
|
136765
|
+
h$7 = ($pointerOfStructConversion(((s$1.$ptr || (s$1.$ptr = new ptrType$8(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$1)))), ptrType));
|
|
136700
136766
|
h$7.Len = $imul(h$7.Len, (4));
|
|
136701
136767
|
h$7.Cap = $imul(h$7.Cap, (4));
|
|
136702
136768
|
$s = -1; return ((h$7)).$get();
|
|
136703
136769
|
/* } else if ($assertType(_ref, sliceType$9, true)[1]) { */ case 10:
|
|
136704
|
-
s$
|
|
136705
|
-
h$8 = ($pointerOfStructConversion(((s$
|
|
136770
|
+
s$7[0] = _ref.$val;
|
|
136771
|
+
h$8 = ($pointerOfStructConversion(((s$7.$ptr || (s$7.$ptr = new ptrType$9(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$7)))), ptrType));
|
|
136706
136772
|
h$8.Len = $imul(h$8.Len, (8));
|
|
136707
136773
|
h$8.Cap = $imul(h$8.Cap, (8));
|
|
136708
136774
|
$s = -1; return ((h$8)).$get();
|
|
@@ -136845,25 +136911,47 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136845
136911
|
/* */ $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; canvasEl = $f.canvasEl; jsContext = $f.jsContext; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
136846
136912
|
_r = $clone(canvasEl, js.Value).Call("getContext", new sliceType$10([new $String("webgl2")])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
136847
136913
|
jsContext = $clone(_r, js.Value);
|
|
136848
|
-
/* */ if ($clone(jsContext, js.Value).IsUndefined()) { $s = 2; continue; }
|
|
136914
|
+
/* */ if ($clone(jsContext, js.Value).IsUndefined() || $clone(jsContext, js.Value).IsNull()) { $s = 2; continue; }
|
|
136849
136915
|
/* */ $s = 3; continue;
|
|
136850
|
-
/* if ($clone(jsContext, js.Value).IsUndefined()) { */ case 2:
|
|
136916
|
+
/* if ($clone(jsContext, js.Value).IsUndefined() || $clone(jsContext, js.Value).IsNull()) { */ case 2:
|
|
136851
136917
|
_r$1 = $clone(canvasEl, js.Value).Call("getContext", new sliceType$10([new $String("webgl")])); /* */ $s = 4; case 4: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
136852
136918
|
js.Value.copy(jsContext, _r$1);
|
|
136919
|
+
$r = polyfillOldVersion($clone(jsContext, js.Value)); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136853
136920
|
/* } */ case 3:
|
|
136854
|
-
/* */ if ($clone(jsContext, js.Value).IsUndefined()) { $s =
|
|
136855
|
-
/* */ $s =
|
|
136856
|
-
/* if ($clone(jsContext, js.Value).IsUndefined()) { */ case
|
|
136857
|
-
_r$2 = $clone(canvasEl, js.Value).Call("getContext", new sliceType$10([new $String("experimental-webgl")])); /* */ $s =
|
|
136921
|
+
/* */ if ($clone(jsContext, js.Value).IsUndefined() || $clone(jsContext, js.Value).IsNull()) { $s = 6; continue; }
|
|
136922
|
+
/* */ $s = 7; continue;
|
|
136923
|
+
/* if ($clone(jsContext, js.Value).IsUndefined() || $clone(jsContext, js.Value).IsNull()) { */ case 6:
|
|
136924
|
+
_r$2 = $clone(canvasEl, js.Value).Call("getContext", new sliceType$10([new $String("experimental-webgl")])); /* */ $s = 8; case 8: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
136858
136925
|
js.Value.copy(jsContext, _r$2);
|
|
136859
|
-
|
|
136860
|
-
|
|
136926
|
+
$r = polyfillOldVersion($clone(jsContext, js.Value)); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136927
|
+
/* } */ case 7:
|
|
136928
|
+
if ($clone(jsContext, js.Value).IsUndefined() || $clone(jsContext, js.Value).IsNull()) {
|
|
136861
136929
|
$s = -1; return [ptrType$10.nil, errors.New("browser might not support webgl")];
|
|
136862
136930
|
}
|
|
136863
136931
|
$s = -1; return [WrapContext($clone(jsContext, js.Value)), $ifaceNil];
|
|
136864
136932
|
/* */ } return; } if ($f === undefined) { $f = { $blk: FromCanvas }; } $f._r = _r; $f._r$1 = _r$1; $f._r$2 = _r$2; $f.canvasEl = canvasEl; $f.jsContext = jsContext; $f.$s = $s; $f.$r = $r; return $f;
|
|
136865
136933
|
};
|
|
136866
136934
|
$pkg.FromCanvas = FromCanvas;
|
|
136935
|
+
polyfillOldVersion = function(jsContext) {
|
|
136936
|
+
var _arg, _arg$1, _arg$2, _arg$3, _r, _r$1, _r$2, _r$3, _r$4, jsContext, vaoExt, x, x$1, x$2, x$3, $s, $r;
|
|
136937
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _arg = $f._arg; _arg$1 = $f._arg$1; _arg$2 = $f._arg$2; _arg$3 = $f._arg$3; _r = $f._r; _r$1 = $f._r$1; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; jsContext = $f.jsContext; vaoExt = $f.vaoExt; x = $f.x; x$1 = $f.x$1; x$2 = $f.x$2; x$3 = $f.x$3; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
136938
|
+
_r = $clone(jsContext, js.Value).Call("getExtension", new sliceType$10([new $String("OES_vertex_array_object")])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
136939
|
+
vaoExt = $clone(_r, js.Value);
|
|
136940
|
+
_r$1 = $clone($clone(vaoExt, js.Value).Get("bindVertexArrayOES"), js.Value).Call("bind", new sliceType$10([new vaoExt.constructor.elem(vaoExt)])); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
136941
|
+
_arg = (x = _r$1, new x.constructor.elem(x));
|
|
136942
|
+
$r = $clone(jsContext, js.Value).Set("bindVertexArray", _arg); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136943
|
+
_r$2 = $clone($clone(vaoExt, js.Value).Get("createVertexArrayOES"), js.Value).Call("bind", new sliceType$10([new vaoExt.constructor.elem(vaoExt)])); /* */ $s = 4; case 4: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
136944
|
+
_arg$1 = (x$1 = _r$2, new x$1.constructor.elem(x$1));
|
|
136945
|
+
$r = $clone(jsContext, js.Value).Set("createVertexArray", _arg$1); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136946
|
+
_r$3 = $clone($clone(vaoExt, js.Value).Get("deleteVertexArrayOES"), js.Value).Call("bind", new sliceType$10([new vaoExt.constructor.elem(vaoExt)])); /* */ $s = 6; case 6: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
136947
|
+
_arg$2 = (x$2 = _r$3, new x$2.constructor.elem(x$2));
|
|
136948
|
+
$r = $clone(jsContext, js.Value).Set("deleteVertexArray", _arg$2); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136949
|
+
_r$4 = $clone($clone(vaoExt, js.Value).Get("isVertexArrayOES"), js.Value).Call("bind", new sliceType$10([new vaoExt.constructor.elem(vaoExt)])); /* */ $s = 8; case 8: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
136950
|
+
_arg$3 = (x$3 = _r$4, new x$3.constructor.elem(x$3));
|
|
136951
|
+
$r = $clone(jsContext, js.Value).Set("isVertexArray", _arg$3); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136952
|
+
$s = -1; return;
|
|
136953
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: polyfillOldVersion }; } $f._arg = _arg; $f._arg$1 = _arg$1; $f._arg$2 = _arg$2; $f._arg$3 = _arg$3; $f._r = _r; $f._r$1 = _r$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f.jsContext = jsContext; $f.vaoExt = vaoExt; $f.x = x; $f.x$1 = x$1; $f.x$2 = x$2; $f.x$3 = x$3; $f.$s = $s; $f.$r = $r; return $f;
|
|
136954
|
+
};
|
|
136867
136955
|
RenderingContext.ptr.prototype.GetJs = function() {
|
|
136868
136956
|
var c;
|
|
136869
136957
|
c = this;
|
|
@@ -140478,6 +140566,398 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
140478
140566
|
$pkg.$init = $init;
|
|
140479
140567
|
return $pkg;
|
|
140480
140568
|
})();
|
|
140569
|
+
$packages["golang.org/x/exp/shiny/driver/internal/dom"] = (function() {
|
|
140570
|
+
var $pkg = {}, $init, focus, key, mouse, size, geom, strings, js, DomEvents, funcType, sliceType, sliceType$1, sliceType$2, chanType, ptrType, keyCodesMap, keyCodesByKeyMap, NewDomEvents, getMouseDirection, getWheelButton, getMouseButton, getEventModifiers, isFocusIn, getKeyRune, getKeyDirection, getKeyCode, GetDocWidth, GetDocHeight, GetOrientation;
|
|
140571
|
+
focus = $packages["golang.org/x/mobile/event/focus"];
|
|
140572
|
+
key = $packages["golang.org/x/mobile/event/key"];
|
|
140573
|
+
mouse = $packages["golang.org/x/mobile/event/mouse"];
|
|
140574
|
+
size = $packages["golang.org/x/mobile/event/size"];
|
|
140575
|
+
geom = $packages["golang.org/x/mobile/geom"];
|
|
140576
|
+
strings = $packages["strings"];
|
|
140577
|
+
js = $packages["syscall/js"];
|
|
140578
|
+
DomEvents = $pkg.DomEvents = $newType(0, $kindStruct, "dom.DomEvents", true, "golang.org/x/exp/shiny/driver/internal/dom", true, function(eventChan_, releases_) {
|
|
140579
|
+
this.$val = this;
|
|
140580
|
+
if (arguments.length === 0) {
|
|
140581
|
+
this.eventChan = $chanNil;
|
|
140582
|
+
this.releases = sliceType.nil;
|
|
140583
|
+
return;
|
|
140584
|
+
}
|
|
140585
|
+
this.eventChan = eventChan_;
|
|
140586
|
+
this.releases = releases_;
|
|
140587
|
+
});
|
|
140588
|
+
funcType = $funcType([], [], false);
|
|
140589
|
+
sliceType = $sliceType(funcType);
|
|
140590
|
+
sliceType$1 = $sliceType($emptyInterface);
|
|
140591
|
+
sliceType$2 = $sliceType($Int32);
|
|
140592
|
+
chanType = $chanType($emptyInterface, false, false);
|
|
140593
|
+
ptrType = $ptrType(DomEvents);
|
|
140594
|
+
NewDomEvents = function() {
|
|
140595
|
+
return new DomEvents.ptr(new $Chan($emptyInterface, 0), $makeSlice(sliceType, 0));
|
|
140596
|
+
};
|
|
140597
|
+
$pkg.NewDomEvents = NewDomEvents;
|
|
140598
|
+
DomEvents.ptr.prototype.GetEventChan = function() {
|
|
140599
|
+
var d;
|
|
140600
|
+
d = this;
|
|
140601
|
+
return d.eventChan;
|
|
140602
|
+
};
|
|
140603
|
+
DomEvents.prototype.GetEventChan = function() { return this.$val.GetEventChan(); };
|
|
140604
|
+
DomEvents.ptr.prototype.Release = function() {
|
|
140605
|
+
var _i, _ref, d, release, $s, $r;
|
|
140606
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _i = $f._i; _ref = $f._ref; d = $f.d; release = $f.release; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140607
|
+
d = this;
|
|
140608
|
+
_ref = d.releases;
|
|
140609
|
+
_i = 0;
|
|
140610
|
+
/* while (true) { */ case 1:
|
|
140611
|
+
/* if (!(_i < _ref.$length)) { break; } */ if(!(_i < _ref.$length)) { $s = 2; continue; }
|
|
140612
|
+
release = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
140613
|
+
$r = release(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140614
|
+
_i++;
|
|
140615
|
+
/* } */ $s = 1; continue; case 2:
|
|
140616
|
+
$s = -1; return;
|
|
140617
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: DomEvents.ptr.prototype.Release }; } $f._i = _i; $f._ref = _ref; $f.d = d; $f.release = release; $f.$s = $s; $f.$r = $r; return $f;
|
|
140618
|
+
};
|
|
140619
|
+
DomEvents.prototype.Release = function() { return this.$val.Release(); };
|
|
140620
|
+
DomEvents.ptr.prototype.BindEvents = function() {
|
|
140621
|
+
var d, $s, $r;
|
|
140622
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; d = $f.d; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140623
|
+
d = this;
|
|
140624
|
+
$r = d.bindSizeEvents(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140625
|
+
$go($methodVal(d, "emitSizeEvent"), []);
|
|
140626
|
+
$r = d.bindMouseEvents(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140627
|
+
$r = d.bindKeyEvents(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140628
|
+
$r = d.bindFocusEvents(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140629
|
+
$s = -1; return;
|
|
140630
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: DomEvents.ptr.prototype.BindEvents }; } $f.d = d; $f.$s = $s; $f.$r = $r; return $f;
|
|
140631
|
+
};
|
|
140632
|
+
DomEvents.prototype.BindEvents = function() { return this.$val.BindEvents(); };
|
|
140633
|
+
DomEvents.ptr.prototype.bindSizeEvents = function() {
|
|
140634
|
+
var _r, d, onResize, $s, $r;
|
|
140635
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; d = $f.d; onResize = $f.onResize; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140636
|
+
d = [d];
|
|
140637
|
+
onResize = [onResize];
|
|
140638
|
+
d[0] = this;
|
|
140639
|
+
onResize[0] = $clone(js.FuncOf((function(d, onResize) { return function $b(this$1, args) {
|
|
140640
|
+
var args, this$1, $s, $r;
|
|
140641
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; args = $f.args; this$1 = $f.this$1; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140642
|
+
$r = d[0].emitSizeEvent(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140643
|
+
$s = -1; return $ifaceNil;
|
|
140644
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f.args = args; $f.this$1 = this$1; $f.$s = $s; $f.$r = $r; return $f;
|
|
140645
|
+
}; })(d, onResize)), js.Func);
|
|
140646
|
+
_r = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$1([new $String("resize"), new onResize[0].constructor.elem(onResize[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
140647
|
+
_r;
|
|
140648
|
+
d[0].releases = $append(d[0].releases, (function(d, onResize) { return function $b() {
|
|
140649
|
+
var _r$1, $s, $r;
|
|
140650
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$1 = $f._r$1; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140651
|
+
_r$1 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$1([new $String("resize"), new onResize[0].constructor.elem(onResize[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
140652
|
+
_r$1;
|
|
140653
|
+
$clone(onResize[0], js.Func).Release();
|
|
140654
|
+
$s = -1; return;
|
|
140655
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$1 = _r$1; $f.$s = $s; $f.$r = $r; return $f;
|
|
140656
|
+
}; })(d, onResize));
|
|
140657
|
+
$s = -1; return;
|
|
140658
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: DomEvents.ptr.prototype.bindSizeEvents }; } $f._r = _r; $f.d = d; $f.onResize = onResize; $f.$s = $s; $f.$r = $r; return $f;
|
|
140659
|
+
};
|
|
140660
|
+
DomEvents.prototype.bindSizeEvents = function() { return this.$val.bindSizeEvents(); };
|
|
140661
|
+
DomEvents.ptr.prototype.emitSizeEvent = function() {
|
|
140662
|
+
var _q, _q$1, d, height, orientation, pixelsPerPt, width, x, $s, $r;
|
|
140663
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _q = $f._q; _q$1 = $f._q$1; d = $f.d; height = $f.height; orientation = $f.orientation; pixelsPerPt = $f.pixelsPerPt; width = $f.width; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140664
|
+
d = this;
|
|
140665
|
+
orientation = GetOrientation();
|
|
140666
|
+
pixelsPerPt = 1;
|
|
140667
|
+
width = GetDocWidth();
|
|
140668
|
+
height = GetDocHeight();
|
|
140669
|
+
$r = $send(d.eventChan, (x = new size.Event.ptr(width, height, ((_q = width / ((pixelsPerPt >> 0)), (_q === _q && _q !== 1/0 && _q !== -1/0) ? _q >> 0 : $throwRuntimeError("integer divide by zero"))), ((_q$1 = height / ((pixelsPerPt >> 0)), (_q$1 === _q$1 && _q$1 !== 1/0 && _q$1 !== -1/0) ? _q$1 >> 0 : $throwRuntimeError("integer divide by zero"))), pixelsPerPt, orientation), new x.constructor.elem(x))); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140670
|
+
$s = -1; return;
|
|
140671
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: DomEvents.ptr.prototype.emitSizeEvent }; } $f._q = _q; $f._q$1 = _q$1; $f.d = d; $f.height = height; $f.orientation = orientation; $f.pixelsPerPt = pixelsPerPt; $f.width = width; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
140672
|
+
};
|
|
140673
|
+
DomEvents.prototype.emitSizeEvent = function() { return this.$val.emitSizeEvent(); };
|
|
140674
|
+
DomEvents.ptr.prototype.bindMouseEvents = function() {
|
|
140675
|
+
var _r, _r$1, _r$2, _r$3, d, onClick, onMove, onWheel, $s, $r;
|
|
140676
|
+
/* */ $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; d = $f.d; onClick = $f.onClick; onMove = $f.onMove; onWheel = $f.onWheel; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140677
|
+
d = [d];
|
|
140678
|
+
onClick = [onClick];
|
|
140679
|
+
onMove = [onMove];
|
|
140680
|
+
onWheel = [onWheel];
|
|
140681
|
+
d[0] = this;
|
|
140682
|
+
onMove[0] = $clone(js.FuncOf((function(d, onClick, onMove, onWheel) { return function $b(this$1, args) {
|
|
140683
|
+
var _r, args, this$1, x, $s, $r;
|
|
140684
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; args = $f.args; this$1 = $f.this$1; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140685
|
+
_r = $clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Call("preventDefault", new sliceType$1([])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
140686
|
+
_r;
|
|
140687
|
+
$r = $send(d[0].eventChan, (x = new mouse.Event.ptr(($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetX"), js.Value).Float())), ($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetY"), js.Value).Float())), 0, getEventModifiers($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), 0), new x.constructor.elem(x))); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140688
|
+
$s = -1; return $ifaceNil;
|
|
140689
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r = _r; $f.args = args; $f.this$1 = this$1; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
140690
|
+
}; })(d, onClick, onMove, onWheel)), js.Func);
|
|
140691
|
+
_r = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$1([new $String("mousemove"), new onMove[0].constructor.elem(onMove[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
140692
|
+
_r;
|
|
140693
|
+
onClick[0] = $clone(js.FuncOf((function(d, onClick, onMove, onWheel) { return function $b(this$1, args) {
|
|
140694
|
+
var _r$1, args, this$1, x, $s, $r;
|
|
140695
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$1 = $f._r$1; args = $f.args; this$1 = $f.this$1; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140696
|
+
_r$1 = $clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Call("preventDefault", new sliceType$1([])); /* */ $s = 1; case 1: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
140697
|
+
_r$1;
|
|
140698
|
+
$r = $send(d[0].eventChan, (x = new mouse.Event.ptr(($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetX"), js.Value).Float())), ($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetY"), js.Value).Float())), getMouseButton($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getEventModifiers($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getMouseDirection($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value))), new x.constructor.elem(x))); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140699
|
+
$s = -1; return $ifaceNil;
|
|
140700
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$1 = _r$1; $f.args = args; $f.this$1 = this$1; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
140701
|
+
}; })(d, onClick, onMove, onWheel)), js.Func);
|
|
140702
|
+
_r$1 = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$1([new $String("mousedown"), new onClick[0].constructor.elem(onClick[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
140703
|
+
_r$1;
|
|
140704
|
+
_r$2 = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$1([new $String("mouseup"), new onClick[0].constructor.elem(onClick[0])])); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
140705
|
+
_r$2;
|
|
140706
|
+
onWheel[0] = $clone(js.FuncOf((function(d, onClick, onMove, onWheel) { return function $b(this$1, args) {
|
|
140707
|
+
var args, this$1, x, $s, $r;
|
|
140708
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; args = $f.args; this$1 = $f.this$1; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140709
|
+
$r = $send(d[0].eventChan, (x = new mouse.Event.ptr(($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetX"), js.Value).Float())), ($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetY"), js.Value).Float())), getWheelButton($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getEventModifiers($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), 3), new x.constructor.elem(x))); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140710
|
+
$s = -1; return $ifaceNil;
|
|
140711
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f.args = args; $f.this$1 = this$1; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
140712
|
+
}; })(d, onClick, onMove, onWheel)), js.Func);
|
|
140713
|
+
_r$3 = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$1([new $String("wheel"), new onWheel[0].constructor.elem(onWheel[0])])); /* */ $s = 4; case 4: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
140714
|
+
_r$3;
|
|
140715
|
+
d[0].releases = $append(d[0].releases, (function(d, onClick, onMove, onWheel) { return function $b() {
|
|
140716
|
+
var _r$4, _r$5, _r$6, _r$7, $s, $r;
|
|
140717
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$4 = $f._r$4; _r$5 = $f._r$5; _r$6 = $f._r$6; _r$7 = $f._r$7; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140718
|
+
_r$4 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$1([new $String("mousemove"), new onMove[0].constructor.elem(onMove[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
140719
|
+
_r$4;
|
|
140720
|
+
_r$5 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$1([new $String("mousedown"), new onClick[0].constructor.elem(onClick[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
140721
|
+
_r$5;
|
|
140722
|
+
_r$6 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$1([new $String("mouseup"), new onClick[0].constructor.elem(onClick[0])])); /* */ $s = 3; case 3: if($c) { $c = false; _r$6 = _r$6.$blk(); } if (_r$6 && _r$6.$blk !== undefined) { break s; }
|
|
140723
|
+
_r$6;
|
|
140724
|
+
_r$7 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$1([new $String("wheel"), new onWheel[0].constructor.elem(onWheel[0])])); /* */ $s = 4; case 4: if($c) { $c = false; _r$7 = _r$7.$blk(); } if (_r$7 && _r$7.$blk !== undefined) { break s; }
|
|
140725
|
+
_r$7;
|
|
140726
|
+
$clone(onMove[0], js.Func).Release();
|
|
140727
|
+
$clone(onClick[0], js.Func).Release();
|
|
140728
|
+
$clone(onWheel[0], js.Func).Release();
|
|
140729
|
+
$s = -1; return;
|
|
140730
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$4 = _r$4; $f._r$5 = _r$5; $f._r$6 = _r$6; $f._r$7 = _r$7; $f.$s = $s; $f.$r = $r; return $f;
|
|
140731
|
+
}; })(d, onClick, onMove, onWheel));
|
|
140732
|
+
$s = -1; return;
|
|
140733
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: DomEvents.ptr.prototype.bindMouseEvents }; } $f._r = _r; $f._r$1 = _r$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f.d = d; $f.onClick = onClick; $f.onMove = onMove; $f.onWheel = onWheel; $f.$s = $s; $f.$r = $r; return $f;
|
|
140734
|
+
};
|
|
140735
|
+
DomEvents.prototype.bindMouseEvents = function() { return this.$val.bindMouseEvents(); };
|
|
140736
|
+
getMouseDirection = function(ev) {
|
|
140737
|
+
var dir, ev;
|
|
140738
|
+
dir = 0;
|
|
140739
|
+
dir = 0;
|
|
140740
|
+
if ($clone($clone(ev, js.Value).Get("type"), js.Value).String() === "mousedown") {
|
|
140741
|
+
dir = 1;
|
|
140742
|
+
}
|
|
140743
|
+
if ($clone($clone(ev, js.Value).Get("type"), js.Value).String() === "mouseup") {
|
|
140744
|
+
dir = 2;
|
|
140745
|
+
}
|
|
140746
|
+
return dir;
|
|
140747
|
+
};
|
|
140748
|
+
getWheelButton = function(ev) {
|
|
140749
|
+
var deltaX, deltaY, ev;
|
|
140750
|
+
deltaY = $clone($clone(ev, js.Value).Get("deltaY"), js.Value).Int();
|
|
140751
|
+
deltaX = $clone($clone(ev, js.Value).Get("deltaX"), js.Value).Int();
|
|
140752
|
+
if (deltaY > 0) {
|
|
140753
|
+
return -2;
|
|
140754
|
+
}
|
|
140755
|
+
if (deltaY < 0) {
|
|
140756
|
+
return -1;
|
|
140757
|
+
}
|
|
140758
|
+
if (deltaX > 0) {
|
|
140759
|
+
return -4;
|
|
140760
|
+
}
|
|
140761
|
+
if (deltaX < 0) {
|
|
140762
|
+
return -3;
|
|
140763
|
+
}
|
|
140764
|
+
return 0;
|
|
140765
|
+
};
|
|
140766
|
+
getMouseButton = function(ev) {
|
|
140767
|
+
var _1, ev;
|
|
140768
|
+
_1 = $clone($clone(ev, js.Value).Get("button"), js.Value).Int();
|
|
140769
|
+
if (_1 === (0)) {
|
|
140770
|
+
return 1;
|
|
140771
|
+
} else if (_1 === (1)) {
|
|
140772
|
+
return 2;
|
|
140773
|
+
} else if (_1 === (2)) {
|
|
140774
|
+
return 3;
|
|
140775
|
+
} else if (_1 === (3)) {
|
|
140776
|
+
return 8;
|
|
140777
|
+
} else if (_1 === (4)) {
|
|
140778
|
+
return 9;
|
|
140779
|
+
} else {
|
|
140780
|
+
return 0;
|
|
140781
|
+
}
|
|
140782
|
+
};
|
|
140783
|
+
getEventModifiers = function(ev) {
|
|
140784
|
+
var ev, mod;
|
|
140785
|
+
mod = 0;
|
|
140786
|
+
if ($clone($clone(ev, js.Value).Get("altKey"), js.Value).Bool()) {
|
|
140787
|
+
mod = (mod | (4)) >>> 0;
|
|
140788
|
+
}
|
|
140789
|
+
if ($clone($clone(ev, js.Value).Get("ctrlKey"), js.Value).Bool()) {
|
|
140790
|
+
mod = (mod | (2)) >>> 0;
|
|
140791
|
+
}
|
|
140792
|
+
if ($clone($clone(ev, js.Value).Get("shiftKey"), js.Value).Bool()) {
|
|
140793
|
+
mod = (mod | (1)) >>> 0;
|
|
140794
|
+
}
|
|
140795
|
+
if ($clone($clone(ev, js.Value).Get("metaKey"), js.Value).Bool()) {
|
|
140796
|
+
mod = (mod | (8)) >>> 0;
|
|
140797
|
+
}
|
|
140798
|
+
return mod;
|
|
140799
|
+
};
|
|
140800
|
+
DomEvents.ptr.prototype.bindFocusEvents = function() {
|
|
140801
|
+
var _r, _r$1, d, onFocus, $s, $r;
|
|
140802
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1; d = $f.d; onFocus = $f.onFocus; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140803
|
+
d = [d];
|
|
140804
|
+
onFocus = [onFocus];
|
|
140805
|
+
d[0] = this;
|
|
140806
|
+
onFocus[0] = $clone(js.FuncOf((function(d, onFocus) { return function $b(this$1, args) {
|
|
140807
|
+
var args, this$1, x, $s, $r;
|
|
140808
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; args = $f.args; this$1 = $f.this$1; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140809
|
+
$r = $send(d[0].eventChan, (x = new focus.Event.ptr(isFocusIn($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value))), new x.constructor.elem(x))); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140810
|
+
$s = -1; return $ifaceNil;
|
|
140811
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f.args = args; $f.this$1 = this$1; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
140812
|
+
}; })(d, onFocus)), js.Func);
|
|
140813
|
+
_r = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$1([new $String("focus"), new onFocus[0].constructor.elem(onFocus[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
140814
|
+
_r;
|
|
140815
|
+
_r$1 = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$1([new $String("blur"), new onFocus[0].constructor.elem(onFocus[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
140816
|
+
_r$1;
|
|
140817
|
+
d[0].releases = $append(d[0].releases, (function(d, onFocus) { return function $b() {
|
|
140818
|
+
var _r$2, _r$3, $s, $r;
|
|
140819
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _r$3 = $f._r$3; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140820
|
+
_r$2 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$1([new $String("focus"), new onFocus[0].constructor.elem(onFocus[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
140821
|
+
_r$2;
|
|
140822
|
+
_r$3 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$1([new $String("blur"), new onFocus[0].constructor.elem(onFocus[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
140823
|
+
_r$3;
|
|
140824
|
+
$clone(onFocus[0], js.Func).Release();
|
|
140825
|
+
$s = -1; return;
|
|
140826
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$2 = _r$2; $f._r$3 = _r$3; $f.$s = $s; $f.$r = $r; return $f;
|
|
140827
|
+
}; })(d, onFocus));
|
|
140828
|
+
$s = -1; return;
|
|
140829
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: DomEvents.ptr.prototype.bindFocusEvents }; } $f._r = _r; $f._r$1 = _r$1; $f.d = d; $f.onFocus = onFocus; $f.$s = $s; $f.$r = $r; return $f;
|
|
140830
|
+
};
|
|
140831
|
+
DomEvents.prototype.bindFocusEvents = function() { return this.$val.bindFocusEvents(); };
|
|
140832
|
+
isFocusIn = function(ev) {
|
|
140833
|
+
var ev;
|
|
140834
|
+
if ($clone($clone(ev, js.Value).Get("type"), js.Value).String() === "focus") {
|
|
140835
|
+
return true;
|
|
140836
|
+
}
|
|
140837
|
+
return false;
|
|
140838
|
+
};
|
|
140839
|
+
DomEvents.ptr.prototype.bindKeyEvents = function() {
|
|
140840
|
+
var _r, _r$1, d, onKey, $s, $r;
|
|
140841
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1; d = $f.d; onKey = $f.onKey; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140842
|
+
d = [d];
|
|
140843
|
+
onKey = [onKey];
|
|
140844
|
+
d[0] = this;
|
|
140845
|
+
onKey[0] = $clone(js.FuncOf((function(d, onKey) { return function $b(this$1, args) {
|
|
140846
|
+
var _r, args, this$1, x, $s, $r;
|
|
140847
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; args = $f.args; this$1 = $f.this$1; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140848
|
+
_r = $clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Call("preventDefault", new sliceType$1([])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
140849
|
+
_r;
|
|
140850
|
+
$r = $send(d[0].eventChan, (x = new key.Event.ptr(getKeyRune($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getKeyCode($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getEventModifiers($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getKeyDirection($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value))), new x.constructor.elem(x))); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140851
|
+
$s = -1; return $ifaceNil;
|
|
140852
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r = _r; $f.args = args; $f.this$1 = this$1; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
140853
|
+
}; })(d, onKey)), js.Func);
|
|
140854
|
+
_r = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$1([new $String("keydown"), new onKey[0].constructor.elem(onKey[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
140855
|
+
_r;
|
|
140856
|
+
_r$1 = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$1([new $String("keyup"), new onKey[0].constructor.elem(onKey[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
140857
|
+
_r$1;
|
|
140858
|
+
d[0].releases = $append(d[0].releases, (function(d, onKey) { return function $b() {
|
|
140859
|
+
var _r$2, _r$3, $s, $r;
|
|
140860
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _r$3 = $f._r$3; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140861
|
+
_r$2 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$1([new $String("keydown"), new onKey[0].constructor.elem(onKey[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
140862
|
+
_r$2;
|
|
140863
|
+
_r$3 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$1([new $String("keyup"), new onKey[0].constructor.elem(onKey[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
140864
|
+
_r$3;
|
|
140865
|
+
$clone(onKey[0], js.Func).Release();
|
|
140866
|
+
$s = -1; return;
|
|
140867
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$2 = _r$2; $f._r$3 = _r$3; $f.$s = $s; $f.$r = $r; return $f;
|
|
140868
|
+
}; })(d, onKey));
|
|
140869
|
+
$s = -1; return;
|
|
140870
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: DomEvents.ptr.prototype.bindKeyEvents }; } $f._r = _r; $f._r$1 = _r$1; $f.d = d; $f.onKey = onKey; $f.$s = $s; $f.$r = $r; return $f;
|
|
140871
|
+
};
|
|
140872
|
+
DomEvents.prototype.bindKeyEvents = function() { return this.$val.bindKeyEvents(); };
|
|
140873
|
+
getKeyRune = function(ev) {
|
|
140874
|
+
var ev, key$1;
|
|
140875
|
+
key$1 = (new sliceType$2($stringToRunes($clone($clone(ev, js.Value).Get("key"), js.Value).String())));
|
|
140876
|
+
if (key$1.$length === 1) {
|
|
140877
|
+
return (0 >= key$1.$length ? ($throwRuntimeError("index out of range"), undefined) : key$1.$array[key$1.$offset + 0]);
|
|
140878
|
+
}
|
|
140879
|
+
return -1;
|
|
140880
|
+
};
|
|
140881
|
+
getKeyDirection = function(ev) {
|
|
140882
|
+
var dir, ev;
|
|
140883
|
+
dir = 0;
|
|
140884
|
+
dir = 0;
|
|
140885
|
+
if ($clone($clone(ev, js.Value).Get("type"), js.Value).String() === "keydown") {
|
|
140886
|
+
dir = 1;
|
|
140887
|
+
}
|
|
140888
|
+
if ($clone($clone(ev, js.Value).Get("type"), js.Value).String() === "keyup") {
|
|
140889
|
+
dir = 2;
|
|
140890
|
+
}
|
|
140891
|
+
return dir;
|
|
140892
|
+
};
|
|
140893
|
+
getKeyCode = function(ev) {
|
|
140894
|
+
var _entry, _entry$1, _tuple, _tuple$1, code, code$1, domCode, domKey, ev, exists, exists$1;
|
|
140895
|
+
domCode = $clone($clone(ev, js.Value).Get("code"), js.Value).String();
|
|
140896
|
+
_tuple = (_entry = keyCodesMap[$String.keyFor(domCode)], _entry !== undefined ? [_entry.v, true] : [0, false]);
|
|
140897
|
+
code = _tuple[0];
|
|
140898
|
+
exists = _tuple[1];
|
|
140899
|
+
if (exists) {
|
|
140900
|
+
return code;
|
|
140901
|
+
}
|
|
140902
|
+
domKey = $clone($clone(ev, js.Value).Get("key"), js.Value).String();
|
|
140903
|
+
_tuple$1 = (_entry$1 = keyCodesByKeyMap[$String.keyFor(domKey)], _entry$1 !== undefined ? [_entry$1.v, true] : [0, false]);
|
|
140904
|
+
code$1 = _tuple$1[0];
|
|
140905
|
+
exists$1 = _tuple$1[1];
|
|
140906
|
+
if (exists$1) {
|
|
140907
|
+
return code$1;
|
|
140908
|
+
}
|
|
140909
|
+
return 0;
|
|
140910
|
+
};
|
|
140911
|
+
GetDocWidth = function() {
|
|
140912
|
+
return $clone($clone(js.Global(), js.Value).Get("innerWidth"), js.Value).Int();
|
|
140913
|
+
};
|
|
140914
|
+
$pkg.GetDocWidth = GetDocWidth;
|
|
140915
|
+
GetDocHeight = function() {
|
|
140916
|
+
return $clone($clone(js.Global(), js.Value).Get("innerHeight"), js.Value).Int();
|
|
140917
|
+
};
|
|
140918
|
+
$pkg.GetDocHeight = GetDocHeight;
|
|
140919
|
+
GetOrientation = function() {
|
|
140920
|
+
var orientation, orientationType, $deferred;
|
|
140921
|
+
/* */ var $err = null; try { $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
|
|
140922
|
+
orientation = 0;
|
|
140923
|
+
$deferred.push([(function() {
|
|
140924
|
+
if (!($interfaceIsEqual($recover(), $ifaceNil))) {
|
|
140925
|
+
orientation = 0;
|
|
140926
|
+
}
|
|
140927
|
+
}), []]);
|
|
140928
|
+
orientationType = $clone($clone($clone($clone(js.Global(), js.Value).Get("screen"), js.Value).Get("orientation"), js.Value).Get("type"), js.Value).String();
|
|
140929
|
+
if (strings.HasPrefix(orientationType, "landscape")) {
|
|
140930
|
+
orientation = 2;
|
|
140931
|
+
return orientation;
|
|
140932
|
+
}
|
|
140933
|
+
if (strings.HasPrefix(orientationType, "portrait")) {
|
|
140934
|
+
orientation = 2;
|
|
140935
|
+
return orientation;
|
|
140936
|
+
}
|
|
140937
|
+
orientation = 0;
|
|
140938
|
+
return orientation;
|
|
140939
|
+
/* */ } catch(err) { $err = err; } finally { $callDeferred($deferred, $err); if (!$curGoroutine.asleep) { return orientation; } }
|
|
140940
|
+
};
|
|
140941
|
+
$pkg.GetOrientation = GetOrientation;
|
|
140942
|
+
ptrType.methods = [{prop: "GetEventChan", name: "GetEventChan", pkg: "", typ: $funcType([], [chanType], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([], [], false)}, {prop: "BindEvents", name: "BindEvents", pkg: "", typ: $funcType([], [], false)}, {prop: "bindSizeEvents", name: "bindSizeEvents", pkg: "golang.org/x/exp/shiny/driver/internal/dom", typ: $funcType([], [], false)}, {prop: "emitSizeEvent", name: "emitSizeEvent", pkg: "golang.org/x/exp/shiny/driver/internal/dom", typ: $funcType([], [], false)}, {prop: "bindMouseEvents", name: "bindMouseEvents", pkg: "golang.org/x/exp/shiny/driver/internal/dom", typ: $funcType([], [], false)}, {prop: "bindFocusEvents", name: "bindFocusEvents", pkg: "golang.org/x/exp/shiny/driver/internal/dom", typ: $funcType([], [], false)}, {prop: "bindKeyEvents", name: "bindKeyEvents", pkg: "golang.org/x/exp/shiny/driver/internal/dom", typ: $funcType([], [], false)}];
|
|
140943
|
+
DomEvents.init("golang.org/x/exp/shiny/driver/internal/dom", [{prop: "eventChan", name: "eventChan", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "releases", name: "releases", embedded: false, exported: false, typ: sliceType, tag: ""}]);
|
|
140944
|
+
$init = function() {
|
|
140945
|
+
$pkg.$init = function() {};
|
|
140946
|
+
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
140947
|
+
$r = focus.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140948
|
+
$r = key.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140949
|
+
$r = mouse.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140950
|
+
$r = size.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140951
|
+
$r = geom.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140952
|
+
$r = strings.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140953
|
+
$r = js.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
140954
|
+
keyCodesMap = $makeMap($String.keyFor, [{ k: "KeyA", v: 4 }, { k: "KeyB", v: 5 }, { k: "KeyC", v: 6 }, { k: "KeyD", v: 7 }, { k: "KeyE", v: 8 }, { k: "KeyF", v: 9 }, { k: "KeyG", v: 10 }, { k: "KeyH", v: 11 }, { k: "KeyI", v: 12 }, { k: "KeyJ", v: 13 }, { k: "KeyK", v: 14 }, { k: "KeyL", v: 15 }, { k: "KeyM", v: 16 }, { k: "KeyN", v: 17 }, { k: "KeyO", v: 18 }, { k: "KeyP", v: 19 }, { k: "KeyQ", v: 20 }, { k: "KeyR", v: 21 }, { k: "KeyS", v: 22 }, { k: "KeyT", v: 23 }, { k: "KeyU", v: 24 }, { k: "KeyV", v: 25 }, { k: "KeyW", v: 26 }, { k: "KeyX", v: 27 }, { k: "KeyY", v: 28 }, { k: "KeyZ", v: 29 }, { k: "Digit1", v: 30 }, { k: "Digit2", v: 31 }, { k: "Digit3", v: 32 }, { k: "Digit4", v: 33 }, { k: "Digit5", v: 34 }, { k: "Digit6", v: 35 }, { k: "Digit7", v: 36 }, { k: "Digit8", v: 37 }, { k: "Digit9", v: 38 }, { k: "Digit0", v: 39 }, { k: "Enter", v: 40 }, { k: "Escape", v: 41 }, { k: "Backspace", v: 42 }, { k: "Tab", v: 43 }, { k: "Space", v: 44 }, { k: "Minus", v: 45 }, { k: "Equal", v: 46 }, { k: "BracketLeft", v: 47 }, { k: "BracketRight", v: 48 }, { k: "Backslash", v: 49 }, { k: "Semicolon", v: 51 }, { k: "Quote", v: 52 }, { k: "Backquote", v: 53 }, { k: "Comma", v: 54 }, { k: "Period", v: 55 }, { k: "Slash", v: 56 }, { k: "CapsLock", v: 57 }, { k: "F1", v: 58 }, { k: "F2", v: 59 }, { k: "F3", v: 60 }, { k: "F4", v: 61 }, { k: "F5", v: 62 }, { k: "F6", v: 63 }, { k: "F7", v: 64 }, { k: "F8", v: 65 }, { k: "F9", v: 66 }, { k: "F10", v: 67 }, { k: "F11", v: 68 }, { k: "F12", v: 69 }, { k: "Pause", v: 72 }, { k: "Insert", v: 73 }, { k: "Home", v: 74 }, { k: "PageUp", v: 75 }, { k: "Delete", v: 76 }, { k: "End", v: 77 }, { k: "PageDown", v: 78 }, { k: "ArrowRight", v: 79 }, { k: "ArrowLeft", v: 80 }, { k: "ArrowDown", v: 81 }, { k: "ArrowUp", v: 82 }, { k: "NumLock", v: 83 }, { k: "NumpadDivide", v: 84 }, { k: "NumpadMultiply", v: 85 }, { k: "NumpadSubtract", v: 86 }, { k: "NumpadAdd", v: 87 }, { k: "NumpadEnter", v: 88 }, { k: "Numpad1", v: 89 }, { k: "Numpad2", v: 90 }, { k: "Numpad3", v: 91 }, { k: "Numpad4", v: 92 }, { k: "Numpad5", v: 93 }, { k: "Numpad6", v: 94 }, { k: "Numpad7", v: 95 }, { k: "Numpad8", v: 96 }, { k: "Numpad9", v: 97 }, { k: "Numpad0", v: 98 }, { k: "NumpadDecimal", v: 99 }, { k: "NumpadEqual", v: 103 }, { k: "F13", v: 104 }, { k: "F14", v: 105 }, { k: "F15", v: 106 }, { k: "F16", v: 107 }, { k: "F17", v: 108 }, { k: "F18", v: 109 }, { k: "F19", v: 110 }, { k: "F20", v: 111 }, { k: "F21", v: 112 }, { k: "F22", v: 113 }, { k: "F23", v: 114 }, { k: "F24", v: 115 }, { k: "Help", v: 117 }, { k: "ContextMenu", v: 118 }, { k: "VolumeMute", v: 127 }, { k: "VolumeUp", v: 128 }, { k: "VolumeDown", v: 129 }, { k: "ControlLeft", v: 224 }, { k: "ShiftLeft", v: 225 }, { k: "AltLeft", v: 226 }, { k: "MetaLeft", v: 227 }, { k: "ControlRight", v: 228 }, { k: "ShiftRight", v: 229 }, { k: "AltRight", v: 230 }, { k: "MetaRight", v: 231 }, { k: "PrintScreen", v: 0 }]);
|
|
140955
|
+
keyCodesByKeyMap = $makeMap($String.keyFor, [{ k: "AudioVolumeMute", v: 127 }, { k: "AudioVolumeUp", v: 128 }, { k: "AudioVolumeDown", v: 129 }]);
|
|
140956
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
140957
|
+
};
|
|
140958
|
+
$pkg.$init = $init;
|
|
140959
|
+
return $pkg;
|
|
140960
|
+
})();
|
|
140481
140961
|
$packages["golang.org/x/image/math/f64"] = (function() {
|
|
140482
140962
|
var $pkg = {}, $init, Aff3;
|
|
140483
140963
|
Aff3 = $pkg.Aff3 = $newType(48, $kindArray, "f64.Aff3", true, "golang.org/x/image/math/f64", true, null);
|
|
@@ -141639,14 +142119,14 @@ $packages["image/draw"] = (function() {
|
|
|
141639
142119
|
/* */ if ($assertType(_ref$1, ptrType$5, true)[1]) { $s = 8; continue; }
|
|
141640
142120
|
/* */ $s = 9; continue;
|
|
141641
142121
|
/* if ($assertType(_ref$1, ptrType$1, true)[1]) { */ case 6:
|
|
141642
|
-
src0
|
|
142122
|
+
src0[0] = _ref$1.$val;
|
|
141643
142123
|
pxRGBA = (function(out, src, src0, src0$1, src0$2) { return function(x$1, y) {
|
|
141644
142124
|
var _tuple$2, a$1, b$1, g$1, r$2, x$1, y;
|
|
141645
142125
|
r$2 = 0;
|
|
141646
142126
|
g$1 = 0;
|
|
141647
142127
|
b$1 = 0;
|
|
141648
142128
|
a$1 = 0;
|
|
141649
|
-
_tuple$2 = $clone(src0
|
|
142129
|
+
_tuple$2 = $clone(src0[0].RGBAAt(x$1, y), color.RGBA).RGBA();
|
|
141650
142130
|
r$2 = _tuple$2[0];
|
|
141651
142131
|
g$1 = _tuple$2[1];
|
|
141652
142132
|
b$1 = _tuple$2[2];
|
|
@@ -141655,14 +142135,14 @@ $packages["image/draw"] = (function() {
|
|
|
141655
142135
|
}; })(out, src, src0, src0$1, src0$2);
|
|
141656
142136
|
$s = 9; continue;
|
|
141657
142137
|
/* } else if ($assertType(_ref$1, ptrType$4, true)[1]) { */ case 7:
|
|
141658
|
-
src0[0] = _ref$1.$val;
|
|
142138
|
+
src0$1[0] = _ref$1.$val;
|
|
141659
142139
|
pxRGBA = (function(out, src, src0, src0$1, src0$2) { return function(x$1, y) {
|
|
141660
142140
|
var _tuple$2, a$1, b$1, g$1, r$2, x$1, y;
|
|
141661
142141
|
r$2 = 0;
|
|
141662
142142
|
g$1 = 0;
|
|
141663
142143
|
b$1 = 0;
|
|
141664
142144
|
a$1 = 0;
|
|
141665
|
-
_tuple$2 = $clone(src0[0].NRGBAAt(x$1, y), color.NRGBA).RGBA();
|
|
142145
|
+
_tuple$2 = $clone(src0$1[0].NRGBAAt(x$1, y), color.NRGBA).RGBA();
|
|
141666
142146
|
r$2 = _tuple$2[0];
|
|
141667
142147
|
g$1 = _tuple$2[1];
|
|
141668
142148
|
b$1 = _tuple$2[2];
|
|
@@ -141671,14 +142151,14 @@ $packages["image/draw"] = (function() {
|
|
|
141671
142151
|
}; })(out, src, src0, src0$1, src0$2);
|
|
141672
142152
|
$s = 9; continue;
|
|
141673
142153
|
/* } else if ($assertType(_ref$1, ptrType$5, true)[1]) { */ case 8:
|
|
141674
|
-
src0$
|
|
142154
|
+
src0$2[0] = _ref$1.$val;
|
|
141675
142155
|
pxRGBA = (function(out, src, src0, src0$1, src0$2) { return function(x$1, y) {
|
|
141676
142156
|
var _tuple$2, a$1, b$1, g$1, r$2, x$1, y;
|
|
141677
142157
|
r$2 = 0;
|
|
141678
142158
|
g$1 = 0;
|
|
141679
142159
|
b$1 = 0;
|
|
141680
142160
|
a$1 = 0;
|
|
141681
|
-
_tuple$2 = $clone(src0$
|
|
142161
|
+
_tuple$2 = $clone(src0$2[0].YCbCrAt(x$1, y), color.YCbCr).RGBA();
|
|
141682
142162
|
r$2 = _tuple$2[0];
|
|
141683
142163
|
g$1 = _tuple$2[1];
|
|
141684
142164
|
b$1 = _tuple$2[2];
|
|
@@ -141926,43 +142406,9 @@ $packages["golang.org/x/exp/shiny/screen"] = (function() {
|
|
|
141926
142406
|
return $pkg;
|
|
141927
142407
|
})();
|
|
141928
142408
|
$packages["golang.org/x/exp/shiny/driver/internal/errscreen"] = (function() {
|
|
141929
|
-
var $pkg = {}, $init, screen, image
|
|
142409
|
+
var $pkg = {}, $init, screen, image;
|
|
141930
142410
|
screen = $packages["golang.org/x/exp/shiny/screen"];
|
|
141931
142411
|
image = $packages["image"];
|
|
141932
|
-
stub = $pkg.stub = $newType(0, $kindStruct, "errscreen.stub", true, "golang.org/x/exp/shiny/driver/internal/errscreen", false, function(err_) {
|
|
141933
|
-
this.$val = this;
|
|
141934
|
-
if (arguments.length === 0) {
|
|
141935
|
-
this.err = $ifaceNil;
|
|
141936
|
-
return;
|
|
141937
|
-
}
|
|
141938
|
-
this.err = err_;
|
|
141939
|
-
});
|
|
141940
|
-
ptrType = $ptrType(screen.NewWindowOptions);
|
|
141941
|
-
Stub = function(err) {
|
|
141942
|
-
var err, x;
|
|
141943
|
-
return (x = new stub.ptr(err), new x.constructor.elem(x));
|
|
141944
|
-
};
|
|
141945
|
-
$pkg.Stub = Stub;
|
|
141946
|
-
stub.ptr.prototype.NewBuffer = function(size) {
|
|
141947
|
-
var s, size;
|
|
141948
|
-
s = this;
|
|
141949
|
-
return [$ifaceNil, s.err];
|
|
141950
|
-
};
|
|
141951
|
-
stub.prototype.NewBuffer = function(size) { return this.$val.NewBuffer(size); };
|
|
141952
|
-
stub.ptr.prototype.NewTexture = function(size) {
|
|
141953
|
-
var s, size;
|
|
141954
|
-
s = this;
|
|
141955
|
-
return [$ifaceNil, s.err];
|
|
141956
|
-
};
|
|
141957
|
-
stub.prototype.NewTexture = function(size) { return this.$val.NewTexture(size); };
|
|
141958
|
-
stub.ptr.prototype.NewWindow = function(opts) {
|
|
141959
|
-
var opts, s;
|
|
141960
|
-
s = this;
|
|
141961
|
-
return [$ifaceNil, s.err];
|
|
141962
|
-
};
|
|
141963
|
-
stub.prototype.NewWindow = function(opts) { return this.$val.NewWindow(opts); };
|
|
141964
|
-
stub.methods = [{prop: "NewBuffer", name: "NewBuffer", pkg: "", typ: $funcType([image.Point], [screen.Buffer, $error], false)}, {prop: "NewTexture", name: "NewTexture", pkg: "", typ: $funcType([image.Point], [screen.Texture, $error], false)}, {prop: "NewWindow", name: "NewWindow", pkg: "", typ: $funcType([ptrType], [screen.Window, $error], false)}];
|
|
141965
|
-
stub.init("golang.org/x/exp/shiny/driver/internal/errscreen", [{prop: "err", name: "err", embedded: false, exported: false, typ: $error, tag: ""}]);
|
|
141966
142412
|
$init = function() {
|
|
141967
142413
|
$pkg.$init = function() {};
|
|
141968
142414
|
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
@@ -142007,23 +142453,18 @@ $packages["golang.org/x/exp/shiny/imageutil"] = (function() {
|
|
|
142007
142453
|
return $pkg;
|
|
142008
142454
|
})();
|
|
142009
142455
|
$packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
142010
|
-
var $pkg = {}, $init, fmt, webgl, types, errscreen, imageutil, screen, f64,
|
|
142456
|
+
var $pkg = {}, $init, fmt, webgl, types, dom, errscreen, imageutil, screen, f64, image, color, draw, sync, js, ArrayBufferSlice, YCbCrJS, BufferImpl, screenImpl, windowImpl, sliceType, sliceType$1, sliceType$2, ptrType, ptrType$1, sliceType$3, ptrType$2, ptrType$3, ptrType$4, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, ptrType$10, ptrType$11, ptrType$12, ptrType$13, ptrType$14, elementsIndices, texCoordsVertices, newBuffer, newScreenImpl, main, newWindow;
|
|
142011
142457
|
fmt = $packages["fmt"];
|
|
142012
142458
|
webgl = $packages["github.com/nuberu/webgl"];
|
|
142013
142459
|
types = $packages["github.com/nuberu/webgl/types"];
|
|
142460
|
+
dom = $packages["golang.org/x/exp/shiny/driver/internal/dom"];
|
|
142014
142461
|
errscreen = $packages["golang.org/x/exp/shiny/driver/internal/errscreen"];
|
|
142015
142462
|
imageutil = $packages["golang.org/x/exp/shiny/imageutil"];
|
|
142016
142463
|
screen = $packages["golang.org/x/exp/shiny/screen"];
|
|
142017
142464
|
f64 = $packages["golang.org/x/image/math/f64"];
|
|
142018
|
-
focus = $packages["golang.org/x/mobile/event/focus"];
|
|
142019
|
-
key = $packages["golang.org/x/mobile/event/key"];
|
|
142020
|
-
mouse = $packages["golang.org/x/mobile/event/mouse"];
|
|
142021
|
-
size = $packages["golang.org/x/mobile/event/size"];
|
|
142022
|
-
geom = $packages["golang.org/x/mobile/geom"];
|
|
142023
142465
|
image = $packages["image"];
|
|
142024
142466
|
color = $packages["image/color"];
|
|
142025
142467
|
draw = $packages["image/draw"];
|
|
142026
|
-
strings = $packages["strings"];
|
|
142027
142468
|
sync = $packages["sync"];
|
|
142028
142469
|
js = $packages["syscall/js"];
|
|
142029
142470
|
ArrayBufferSlice = $pkg.ArrayBufferSlice = $newType(0, $kindStruct, "webgldriver.ArrayBufferSlice", true, "golang.org/x/exp/shiny/driver/webgldriver", true, function(ArrayBuffer_, Offset_, Length_) {
|
|
@@ -142088,7 +142529,7 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142088
142529
|
}
|
|
142089
142530
|
this.doc = doc_;
|
|
142090
142531
|
});
|
|
142091
|
-
windowImpl = $pkg.windowImpl = $newType(0, $kindStruct, "webgldriver.windowImpl", true, "golang.org/x/exp/shiny/driver/webgldriver", false, function(screen_, width_, height_, mutex_, canvasEl_, gl_, programRGBA_, imageTexRGBA_, programYUV420_, imageTexY_, imageTexU_, imageTexV_, vertexArray_, released_,
|
|
142532
|
+
windowImpl = $pkg.windowImpl = $newType(0, $kindStruct, "webgldriver.windowImpl", true, "golang.org/x/exp/shiny/driver/webgldriver", false, function(screen_, width_, height_, mutex_, canvasEl_, gl_, programRGBA_, imageTexRGBA_, programYUV420_, imageTexY_, imageTexU_, imageTexV_, vertexArray_, released_, domEvents_) {
|
|
142092
142533
|
this.$val = this;
|
|
142093
142534
|
if (arguments.length === 0) {
|
|
142094
142535
|
this.screen = ptrType.nil;
|
|
@@ -142105,8 +142546,7 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142105
142546
|
this.imageTexV = ptrType$5.nil;
|
|
142106
142547
|
this.vertexArray = ptrType$6.nil;
|
|
142107
142548
|
this.released = false;
|
|
142108
|
-
this.
|
|
142109
|
-
this.eventChan = $chanNil;
|
|
142549
|
+
this.domEvents = ptrType$7.nil;
|
|
142110
142550
|
return;
|
|
142111
142551
|
}
|
|
142112
142552
|
this.screen = screen_;
|
|
@@ -142123,8 +142563,7 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142123
142563
|
this.imageTexV = imageTexV_;
|
|
142124
142564
|
this.vertexArray = vertexArray_;
|
|
142125
142565
|
this.released = released_;
|
|
142126
|
-
this.
|
|
142127
|
-
this.eventChan = eventChan_;
|
|
142566
|
+
this.domEvents = domEvents_;
|
|
142128
142567
|
});
|
|
142129
142568
|
sliceType = $sliceType($Uint16);
|
|
142130
142569
|
sliceType$1 = $sliceType($Float32);
|
|
@@ -142133,21 +142572,18 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142133
142572
|
ptrType$1 = $ptrType(sync.Mutex);
|
|
142134
142573
|
sliceType$3 = $sliceType($Uint8);
|
|
142135
142574
|
ptrType$2 = $ptrType(YCbCrJS);
|
|
142136
|
-
sliceType$4 = $sliceType($Int32);
|
|
142137
142575
|
ptrType$3 = $ptrType(types.Program);
|
|
142138
142576
|
ptrType$4 = $ptrType(webgl.RenderingContext);
|
|
142139
142577
|
ptrType$5 = $ptrType(types.Texture);
|
|
142140
142578
|
ptrType$6 = $ptrType(types.VertexArray);
|
|
142141
|
-
|
|
142142
|
-
|
|
142143
|
-
ptrType$
|
|
142144
|
-
ptrType$
|
|
142145
|
-
ptrType$
|
|
142146
|
-
ptrType$
|
|
142147
|
-
ptrType$
|
|
142148
|
-
ptrType$
|
|
142149
|
-
ptrType$13 = $ptrType(windowImpl);
|
|
142150
|
-
chanType = $chanType($emptyInterface, false, false);
|
|
142579
|
+
ptrType$7 = $ptrType(dom.DomEvents);
|
|
142580
|
+
ptrType$8 = $ptrType(BufferImpl);
|
|
142581
|
+
ptrType$9 = $ptrType(ArrayBufferSlice);
|
|
142582
|
+
ptrType$10 = $ptrType(image.RGBA);
|
|
142583
|
+
ptrType$11 = $ptrType(image.YCbCr);
|
|
142584
|
+
ptrType$12 = $ptrType(screen.NewWindowOptions);
|
|
142585
|
+
ptrType$13 = $ptrType(screen.DrawOptions);
|
|
142586
|
+
ptrType$14 = $ptrType(windowImpl);
|
|
142151
142587
|
ArrayBufferSlice.ptr.prototype.slice = function() {
|
|
142152
142588
|
var _r, a, $s, $r;
|
|
142153
142589
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; a = $f.a; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
@@ -142157,10 +142593,10 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142157
142593
|
/* */ } return; } if ($f === undefined) { $f = { $blk: ArrayBufferSlice.ptr.prototype.slice }; } $f._r = _r; $f.a = a; $f.$s = $s; $f.$r = $r; return $f;
|
|
142158
142594
|
};
|
|
142159
142595
|
ArrayBufferSlice.prototype.slice = function() { return this.$val.slice(); };
|
|
142160
|
-
newBuffer = function(screen$1, size
|
|
142161
|
-
var _q, _q$1, _q$2, b, rect, screen$1, size
|
|
142162
|
-
rect = new image.Rectangle.ptr(new image.Point.ptr(0, 0), $clone(size
|
|
142163
|
-
b = new BufferImpl.ptr(screen$1, $clone(size
|
|
142596
|
+
newBuffer = function(screen$1, size) {
|
|
142597
|
+
var _q, _q$1, _q$2, b, rect, screen$1, size;
|
|
142598
|
+
rect = new image.Rectangle.ptr(new image.Point.ptr(0, 0), $clone(size, image.Point));
|
|
142599
|
+
b = new BufferImpl.ptr(screen$1, $clone(size, image.Point), new sync.Mutex.ptr(0, 0), false, new image.RGBA.ptr($makeSlice(sliceType$3, ($imul(($imul(4, size.X)), size.Y))), $imul(4, size.X), $clone(rect, image.Rectangle)), new image.YCbCr.ptr($makeSlice(sliceType$3, ($imul(size.X, size.Y))), $makeSlice(sliceType$3, (_q$1 = ($imul(size.X, size.Y)) / 4, (_q$1 === _q$1 && _q$1 !== 1/0 && _q$1 !== -1/0) ? _q$1 >> 0 : $throwRuntimeError("integer divide by zero"))), $makeSlice(sliceType$3, (_q$2 = ($imul(size.X, size.Y)) / 4, (_q$2 === _q$2 && _q$2 !== 1/0 && _q$2 !== -1/0) ? _q$2 >> 0 : $throwRuntimeError("integer divide by zero"))), size.X, (_q = size.X / 2, (_q === _q && _q !== 1/0 && _q !== -1/0) ? _q >> 0 : $throwRuntimeError("integer divide by zero")), 2, $clone(rect, image.Rectangle)), ptrType$2.nil);
|
|
142164
142600
|
return b;
|
|
142165
142601
|
};
|
|
142166
142602
|
BufferImpl.ptr.prototype.Size = function() {
|
|
@@ -142216,312 +142652,6 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142216
142652
|
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: BufferImpl.ptr.prototype.Release }; } $f.b = b; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
142217
142653
|
};
|
|
142218
142654
|
BufferImpl.prototype.Release = function() { return this.$val.Release(); };
|
|
142219
|
-
getDocWidth = function() {
|
|
142220
|
-
return $clone($clone(js.Global(), js.Value).Get("innerWidth"), js.Value).Int();
|
|
142221
|
-
};
|
|
142222
|
-
getDocHeight = function() {
|
|
142223
|
-
return $clone($clone(js.Global(), js.Value).Get("innerHeight"), js.Value).Int();
|
|
142224
|
-
};
|
|
142225
|
-
getOrientation = function() {
|
|
142226
|
-
var orientation, orientationType, $deferred;
|
|
142227
|
-
/* */ var $err = null; try { $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
|
|
142228
|
-
orientation = 0;
|
|
142229
|
-
$deferred.push([(function() {
|
|
142230
|
-
if (!($interfaceIsEqual($recover(), $ifaceNil))) {
|
|
142231
|
-
orientation = 0;
|
|
142232
|
-
}
|
|
142233
|
-
}), []]);
|
|
142234
|
-
orientationType = $clone($clone($clone($clone(js.Global(), js.Value).Get("screen"), js.Value).Get("orientation"), js.Value).Get("type"), js.Value).String();
|
|
142235
|
-
if (strings.HasPrefix(orientationType, "landscape")) {
|
|
142236
|
-
orientation = 2;
|
|
142237
|
-
return orientation;
|
|
142238
|
-
}
|
|
142239
|
-
if (strings.HasPrefix(orientationType, "portrait")) {
|
|
142240
|
-
orientation = 2;
|
|
142241
|
-
return orientation;
|
|
142242
|
-
}
|
|
142243
|
-
orientation = 0;
|
|
142244
|
-
return orientation;
|
|
142245
|
-
/* */ } catch(err) { $err = err; } finally { $callDeferred($deferred, $err); if (!$curGoroutine.asleep) { return orientation; } }
|
|
142246
|
-
};
|
|
142247
|
-
windowImpl.ptr.prototype.bindSizeEvents = function() {
|
|
142248
|
-
var _r, onResize, w, $s, $r;
|
|
142249
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; onResize = $f.onResize; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142250
|
-
onResize = [onResize];
|
|
142251
|
-
w = [w];
|
|
142252
|
-
w[0] = this;
|
|
142253
|
-
onResize[0] = $clone(js.FuncOf((function(onResize, w) { return function $b(this$1, args) {
|
|
142254
|
-
var args, this$1, $s, $r;
|
|
142255
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; args = $f.args; this$1 = $f.this$1; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142256
|
-
$r = w[0].emitSizeEvent(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142257
|
-
$s = -1; return $ifaceNil;
|
|
142258
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f.args = args; $f.this$1 = this$1; $f.$s = $s; $f.$r = $r; return $f;
|
|
142259
|
-
}; })(onResize, w)), js.Func);
|
|
142260
|
-
_r = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$2([new $String("resize"), new onResize[0].constructor.elem(onResize[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142261
|
-
_r;
|
|
142262
|
-
w[0].releases = $append(w[0].releases, (function(onResize, w) { return function $b() {
|
|
142263
|
-
var _r$1, $s, $r;
|
|
142264
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$1 = $f._r$1; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142265
|
-
_r$1 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$2([new $String("resize"), new onResize[0].constructor.elem(onResize[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
142266
|
-
_r$1;
|
|
142267
|
-
$clone(onResize[0], js.Func).Release();
|
|
142268
|
-
$s = -1; return;
|
|
142269
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$1 = _r$1; $f.$s = $s; $f.$r = $r; return $f;
|
|
142270
|
-
}; })(onResize, w));
|
|
142271
|
-
$s = -1; return;
|
|
142272
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.bindSizeEvents }; } $f._r = _r; $f.onResize = onResize; $f.w = w; $f.$s = $s; $f.$r = $r; return $f;
|
|
142273
|
-
};
|
|
142274
|
-
windowImpl.prototype.bindSizeEvents = function() { return this.$val.bindSizeEvents(); };
|
|
142275
|
-
windowImpl.ptr.prototype.emitSizeEvent = function() {
|
|
142276
|
-
var _q, _q$1, height, orientation, pixelsPerPt, w, width, x, $s, $r;
|
|
142277
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _q = $f._q; _q$1 = $f._q$1; height = $f.height; orientation = $f.orientation; pixelsPerPt = $f.pixelsPerPt; w = $f.w; width = $f.width; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142278
|
-
w = this;
|
|
142279
|
-
orientation = getOrientation();
|
|
142280
|
-
pixelsPerPt = 1;
|
|
142281
|
-
width = getDocWidth();
|
|
142282
|
-
height = getDocHeight();
|
|
142283
|
-
$r = $send(w.eventChan, (x = new size.Event.ptr(width, height, ((_q = width / ((pixelsPerPt >> 0)), (_q === _q && _q !== 1/0 && _q !== -1/0) ? _q >> 0 : $throwRuntimeError("integer divide by zero"))), ((_q$1 = height / ((pixelsPerPt >> 0)), (_q$1 === _q$1 && _q$1 !== 1/0 && _q$1 !== -1/0) ? _q$1 >> 0 : $throwRuntimeError("integer divide by zero"))), pixelsPerPt, orientation), new x.constructor.elem(x))); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142284
|
-
$s = -1; return;
|
|
142285
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.emitSizeEvent }; } $f._q = _q; $f._q$1 = _q$1; $f.height = height; $f.orientation = orientation; $f.pixelsPerPt = pixelsPerPt; $f.w = w; $f.width = width; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
142286
|
-
};
|
|
142287
|
-
windowImpl.prototype.emitSizeEvent = function() { return this.$val.emitSizeEvent(); };
|
|
142288
|
-
windowImpl.ptr.prototype.bindMouseEvents = function() {
|
|
142289
|
-
var _r, _r$1, _r$2, _r$3, onClick, onMove, onWheel, w, $s, $r;
|
|
142290
|
-
/* */ $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; onClick = $f.onClick; onMove = $f.onMove; onWheel = $f.onWheel; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142291
|
-
onClick = [onClick];
|
|
142292
|
-
onMove = [onMove];
|
|
142293
|
-
onWheel = [onWheel];
|
|
142294
|
-
w = [w];
|
|
142295
|
-
w[0] = this;
|
|
142296
|
-
onMove[0] = $clone(js.FuncOf((function(onClick, onMove, onWheel, w) { return function $b(this$1, args) {
|
|
142297
|
-
var _r, args, this$1, x, $s, $r;
|
|
142298
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; args = $f.args; this$1 = $f.this$1; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142299
|
-
_r = $clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Call("preventDefault", new sliceType$2([])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142300
|
-
_r;
|
|
142301
|
-
$r = $send(w[0].eventChan, (x = new mouse.Event.ptr(($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetX"), js.Value).Float())), ($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetY"), js.Value).Float())), 0, getEventModifiers($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), 0), new x.constructor.elem(x))); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142302
|
-
$s = -1; return $ifaceNil;
|
|
142303
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r = _r; $f.args = args; $f.this$1 = this$1; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
142304
|
-
}; })(onClick, onMove, onWheel, w)), js.Func);
|
|
142305
|
-
_r = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$2([new $String("mousemove"), new onMove[0].constructor.elem(onMove[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142306
|
-
_r;
|
|
142307
|
-
onClick[0] = $clone(js.FuncOf((function(onClick, onMove, onWheel, w) { return function $b(this$1, args) {
|
|
142308
|
-
var _r$1, args, this$1, x, $s, $r;
|
|
142309
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$1 = $f._r$1; args = $f.args; this$1 = $f.this$1; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142310
|
-
_r$1 = $clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Call("preventDefault", new sliceType$2([])); /* */ $s = 1; case 1: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
142311
|
-
_r$1;
|
|
142312
|
-
$r = $send(w[0].eventChan, (x = new mouse.Event.ptr(($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetX"), js.Value).Float())), ($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetY"), js.Value).Float())), getMouseButton($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getEventModifiers($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getMouseDirection($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value))), new x.constructor.elem(x))); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142313
|
-
$s = -1; return $ifaceNil;
|
|
142314
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$1 = _r$1; $f.args = args; $f.this$1 = this$1; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
142315
|
-
}; })(onClick, onMove, onWheel, w)), js.Func);
|
|
142316
|
-
_r$1 = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$2([new $String("mousedown"), new onClick[0].constructor.elem(onClick[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
142317
|
-
_r$1;
|
|
142318
|
-
_r$2 = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$2([new $String("mouseup"), new onClick[0].constructor.elem(onClick[0])])); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
142319
|
-
_r$2;
|
|
142320
|
-
onWheel[0] = $clone(js.FuncOf((function(onClick, onMove, onWheel, w) { return function $b(this$1, args) {
|
|
142321
|
-
var args, this$1, x, $s, $r;
|
|
142322
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; args = $f.args; this$1 = $f.this$1; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142323
|
-
$r = $send(w[0].eventChan, (x = new mouse.Event.ptr(($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetX"), js.Value).Float())), ($fround($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("offsetY"), js.Value).Float())), getWheelButton($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getEventModifiers($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), 3), new x.constructor.elem(x))); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142324
|
-
$s = -1; return $ifaceNil;
|
|
142325
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f.args = args; $f.this$1 = this$1; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
142326
|
-
}; })(onClick, onMove, onWheel, w)), js.Func);
|
|
142327
|
-
_r$3 = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$2([new $String("wheel"), new onWheel[0].constructor.elem(onWheel[0])])); /* */ $s = 4; case 4: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
142328
|
-
_r$3;
|
|
142329
|
-
w[0].releases = $append(w[0].releases, (function(onClick, onMove, onWheel, w) { return function $b() {
|
|
142330
|
-
var _r$4, _r$5, _r$6, _r$7, $s, $r;
|
|
142331
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$4 = $f._r$4; _r$5 = $f._r$5; _r$6 = $f._r$6; _r$7 = $f._r$7; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142332
|
-
_r$4 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$2([new $String("mousemove"), new onMove[0].constructor.elem(onMove[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
142333
|
-
_r$4;
|
|
142334
|
-
_r$5 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$2([new $String("mousedown"), new onClick[0].constructor.elem(onClick[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
142335
|
-
_r$5;
|
|
142336
|
-
_r$6 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$2([new $String("mouseup"), new onClick[0].constructor.elem(onClick[0])])); /* */ $s = 3; case 3: if($c) { $c = false; _r$6 = _r$6.$blk(); } if (_r$6 && _r$6.$blk !== undefined) { break s; }
|
|
142337
|
-
_r$6;
|
|
142338
|
-
_r$7 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$2([new $String("wheel"), new onWheel[0].constructor.elem(onWheel[0])])); /* */ $s = 4; case 4: if($c) { $c = false; _r$7 = _r$7.$blk(); } if (_r$7 && _r$7.$blk !== undefined) { break s; }
|
|
142339
|
-
_r$7;
|
|
142340
|
-
$clone(onMove[0], js.Func).Release();
|
|
142341
|
-
$clone(onClick[0], js.Func).Release();
|
|
142342
|
-
$clone(onWheel[0], js.Func).Release();
|
|
142343
|
-
$s = -1; return;
|
|
142344
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$4 = _r$4; $f._r$5 = _r$5; $f._r$6 = _r$6; $f._r$7 = _r$7; $f.$s = $s; $f.$r = $r; return $f;
|
|
142345
|
-
}; })(onClick, onMove, onWheel, w));
|
|
142346
|
-
$s = -1; return;
|
|
142347
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.bindMouseEvents }; } $f._r = _r; $f._r$1 = _r$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f.onClick = onClick; $f.onMove = onMove; $f.onWheel = onWheel; $f.w = w; $f.$s = $s; $f.$r = $r; return $f;
|
|
142348
|
-
};
|
|
142349
|
-
windowImpl.prototype.bindMouseEvents = function() { return this.$val.bindMouseEvents(); };
|
|
142350
|
-
getMouseDirection = function(ev) {
|
|
142351
|
-
var dir, ev;
|
|
142352
|
-
dir = 0;
|
|
142353
|
-
dir = 0;
|
|
142354
|
-
if ($clone($clone(ev, js.Value).Get("type"), js.Value).String() === "mousedown") {
|
|
142355
|
-
dir = 1;
|
|
142356
|
-
}
|
|
142357
|
-
if ($clone($clone(ev, js.Value).Get("type"), js.Value).String() === "mouseup") {
|
|
142358
|
-
dir = 2;
|
|
142359
|
-
}
|
|
142360
|
-
return dir;
|
|
142361
|
-
};
|
|
142362
|
-
getWheelButton = function(ev) {
|
|
142363
|
-
var deltaX, deltaY, ev;
|
|
142364
|
-
deltaY = $clone($clone(ev, js.Value).Get("deltaY"), js.Value).Int();
|
|
142365
|
-
deltaX = $clone($clone(ev, js.Value).Get("deltaX"), js.Value).Int();
|
|
142366
|
-
if (deltaY > 0) {
|
|
142367
|
-
return -2;
|
|
142368
|
-
}
|
|
142369
|
-
if (deltaY < 0) {
|
|
142370
|
-
return -1;
|
|
142371
|
-
}
|
|
142372
|
-
if (deltaX > 0) {
|
|
142373
|
-
return -4;
|
|
142374
|
-
}
|
|
142375
|
-
if (deltaX < 0) {
|
|
142376
|
-
return -3;
|
|
142377
|
-
}
|
|
142378
|
-
return 0;
|
|
142379
|
-
};
|
|
142380
|
-
getMouseButton = function(ev) {
|
|
142381
|
-
var _1, ev;
|
|
142382
|
-
_1 = $clone($clone(ev, js.Value).Get("button"), js.Value).Int();
|
|
142383
|
-
if (_1 === (0)) {
|
|
142384
|
-
return 1;
|
|
142385
|
-
} else if (_1 === (1)) {
|
|
142386
|
-
return 2;
|
|
142387
|
-
} else if (_1 === (2)) {
|
|
142388
|
-
return 3;
|
|
142389
|
-
} else if (_1 === (3)) {
|
|
142390
|
-
return 8;
|
|
142391
|
-
} else if (_1 === (4)) {
|
|
142392
|
-
return 9;
|
|
142393
|
-
} else {
|
|
142394
|
-
return 0;
|
|
142395
|
-
}
|
|
142396
|
-
};
|
|
142397
|
-
getEventModifiers = function(ev) {
|
|
142398
|
-
var ev, mod;
|
|
142399
|
-
mod = 0;
|
|
142400
|
-
if ($clone($clone(ev, js.Value).Get("altKey"), js.Value).Bool()) {
|
|
142401
|
-
mod = (mod | (4)) >>> 0;
|
|
142402
|
-
}
|
|
142403
|
-
if ($clone($clone(ev, js.Value).Get("ctrlKey"), js.Value).Bool()) {
|
|
142404
|
-
mod = (mod | (2)) >>> 0;
|
|
142405
|
-
}
|
|
142406
|
-
if ($clone($clone(ev, js.Value).Get("shiftKey"), js.Value).Bool()) {
|
|
142407
|
-
mod = (mod | (1)) >>> 0;
|
|
142408
|
-
}
|
|
142409
|
-
if ($clone($clone(ev, js.Value).Get("metaKey"), js.Value).Bool()) {
|
|
142410
|
-
mod = (mod | (8)) >>> 0;
|
|
142411
|
-
}
|
|
142412
|
-
return mod;
|
|
142413
|
-
};
|
|
142414
|
-
windowImpl.ptr.prototype.bindFocusEvents = function() {
|
|
142415
|
-
var _r, _r$1, onFocus, w, $s, $r;
|
|
142416
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1; onFocus = $f.onFocus; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142417
|
-
onFocus = [onFocus];
|
|
142418
|
-
w = [w];
|
|
142419
|
-
w[0] = this;
|
|
142420
|
-
onFocus[0] = $clone(js.FuncOf((function(onFocus, w) { return function $b(this$1, args) {
|
|
142421
|
-
var args, this$1, x, $s, $r;
|
|
142422
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; args = $f.args; this$1 = $f.this$1; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142423
|
-
$r = $send(w[0].eventChan, (x = new focus.Event.ptr(isFocusIn($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value))), new x.constructor.elem(x))); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142424
|
-
$s = -1; return $ifaceNil;
|
|
142425
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f.args = args; $f.this$1 = this$1; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
142426
|
-
}; })(onFocus, w)), js.Func);
|
|
142427
|
-
_r = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$2([new $String("focus"), new onFocus[0].constructor.elem(onFocus[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142428
|
-
_r;
|
|
142429
|
-
_r$1 = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$2([new $String("blur"), new onFocus[0].constructor.elem(onFocus[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
142430
|
-
_r$1;
|
|
142431
|
-
w[0].releases = $append(w[0].releases, (function(onFocus, w) { return function $b() {
|
|
142432
|
-
var _r$2, _r$3, $s, $r;
|
|
142433
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _r$3 = $f._r$3; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142434
|
-
_r$2 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$2([new $String("focus"), new onFocus[0].constructor.elem(onFocus[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
142435
|
-
_r$2;
|
|
142436
|
-
_r$3 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$2([new $String("blur"), new onFocus[0].constructor.elem(onFocus[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
142437
|
-
_r$3;
|
|
142438
|
-
$clone(onFocus[0], js.Func).Release();
|
|
142439
|
-
$s = -1; return;
|
|
142440
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$2 = _r$2; $f._r$3 = _r$3; $f.$s = $s; $f.$r = $r; return $f;
|
|
142441
|
-
}; })(onFocus, w));
|
|
142442
|
-
$s = -1; return;
|
|
142443
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.bindFocusEvents }; } $f._r = _r; $f._r$1 = _r$1; $f.onFocus = onFocus; $f.w = w; $f.$s = $s; $f.$r = $r; return $f;
|
|
142444
|
-
};
|
|
142445
|
-
windowImpl.prototype.bindFocusEvents = function() { return this.$val.bindFocusEvents(); };
|
|
142446
|
-
isFocusIn = function(ev) {
|
|
142447
|
-
var ev;
|
|
142448
|
-
if ($clone($clone(ev, js.Value).Get("type"), js.Value).String() === "focus") {
|
|
142449
|
-
return true;
|
|
142450
|
-
}
|
|
142451
|
-
return false;
|
|
142452
|
-
};
|
|
142453
|
-
windowImpl.ptr.prototype.bindKeyEvents = function() {
|
|
142454
|
-
var _r, _r$1, onKey, w, $s, $r;
|
|
142455
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1; onKey = $f.onKey; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142456
|
-
onKey = [onKey];
|
|
142457
|
-
w = [w];
|
|
142458
|
-
w[0] = this;
|
|
142459
|
-
onKey[0] = $clone(js.FuncOf((function(onKey, w) { return function $b(this$1, args) {
|
|
142460
|
-
var _r, args, this$1, x, $s, $r;
|
|
142461
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; args = $f.args; this$1 = $f.this$1; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142462
|
-
_r = $clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Call("preventDefault", new sliceType$2([])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142463
|
-
_r;
|
|
142464
|
-
$r = $send(w[0].eventChan, (x = new key.Event.ptr(getKeyRune($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getKeyCode($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getEventModifiers($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value)), getKeyDirection($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value))), new x.constructor.elem(x))); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142465
|
-
$s = -1; return $ifaceNil;
|
|
142466
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r = _r; $f.args = args; $f.this$1 = this$1; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
142467
|
-
}; })(onKey, w)), js.Func);
|
|
142468
|
-
_r = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$2([new $String("keydown"), new onKey[0].constructor.elem(onKey[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142469
|
-
_r;
|
|
142470
|
-
_r$1 = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType$2([new $String("keyup"), new onKey[0].constructor.elem(onKey[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
142471
|
-
_r$1;
|
|
142472
|
-
w[0].releases = $append(w[0].releases, (function(onKey, w) { return function $b() {
|
|
142473
|
-
var _r$2, _r$3, $s, $r;
|
|
142474
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _r$3 = $f._r$3; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142475
|
-
_r$2 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$2([new $String("keydown"), new onKey[0].constructor.elem(onKey[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
142476
|
-
_r$2;
|
|
142477
|
-
_r$3 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType$2([new $String("keyup"), new onKey[0].constructor.elem(onKey[0])])); /* */ $s = 2; case 2: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
142478
|
-
_r$3;
|
|
142479
|
-
$clone(onKey[0], js.Func).Release();
|
|
142480
|
-
$s = -1; return;
|
|
142481
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$2 = _r$2; $f._r$3 = _r$3; $f.$s = $s; $f.$r = $r; return $f;
|
|
142482
|
-
}; })(onKey, w));
|
|
142483
|
-
$s = -1; return;
|
|
142484
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.bindKeyEvents }; } $f._r = _r; $f._r$1 = _r$1; $f.onKey = onKey; $f.w = w; $f.$s = $s; $f.$r = $r; return $f;
|
|
142485
|
-
};
|
|
142486
|
-
windowImpl.prototype.bindKeyEvents = function() { return this.$val.bindKeyEvents(); };
|
|
142487
|
-
getKeyRune = function(ev) {
|
|
142488
|
-
var ev, key$1;
|
|
142489
|
-
key$1 = (new sliceType$4($stringToRunes($clone($clone(ev, js.Value).Get("key"), js.Value).String())));
|
|
142490
|
-
if (key$1.$length === 1) {
|
|
142491
|
-
return (0 >= key$1.$length ? ($throwRuntimeError("index out of range"), undefined) : key$1.$array[key$1.$offset + 0]);
|
|
142492
|
-
}
|
|
142493
|
-
return -1;
|
|
142494
|
-
};
|
|
142495
|
-
getKeyDirection = function(ev) {
|
|
142496
|
-
var dir, ev;
|
|
142497
|
-
dir = 0;
|
|
142498
|
-
dir = 0;
|
|
142499
|
-
if ($clone($clone(ev, js.Value).Get("type"), js.Value).String() === "keydown") {
|
|
142500
|
-
dir = 1;
|
|
142501
|
-
}
|
|
142502
|
-
if ($clone($clone(ev, js.Value).Get("type"), js.Value).String() === "keyup") {
|
|
142503
|
-
dir = 2;
|
|
142504
|
-
}
|
|
142505
|
-
return dir;
|
|
142506
|
-
};
|
|
142507
|
-
getKeyCode = function(ev) {
|
|
142508
|
-
var _entry, _entry$1, _tuple, _tuple$1, code, code$1, domCode, domKey, ev, exists, exists$1;
|
|
142509
|
-
domCode = $clone($clone(ev, js.Value).Get("code"), js.Value).String();
|
|
142510
|
-
_tuple = (_entry = keyCodesMap[$String.keyFor(domCode)], _entry !== undefined ? [_entry.v, true] : [0, false]);
|
|
142511
|
-
code = _tuple[0];
|
|
142512
|
-
exists = _tuple[1];
|
|
142513
|
-
if (exists) {
|
|
142514
|
-
return code;
|
|
142515
|
-
}
|
|
142516
|
-
domKey = $clone($clone(ev, js.Value).Get("key"), js.Value).String();
|
|
142517
|
-
_tuple$1 = (_entry$1 = keyCodesByKeyMap[$String.keyFor(domKey)], _entry$1 !== undefined ? [_entry$1.v, true] : [0, false]);
|
|
142518
|
-
code$1 = _tuple$1[0];
|
|
142519
|
-
exists$1 = _tuple$1[1];
|
|
142520
|
-
if (exists$1) {
|
|
142521
|
-
return code$1;
|
|
142522
|
-
}
|
|
142523
|
-
return 0;
|
|
142524
|
-
};
|
|
142525
142655
|
windowImpl.ptr.prototype.createBuffers = function() {
|
|
142526
142656
|
var _r, _r$1, _r$2, elementBuffer, emptyFloat, floatLen, vertexArray, vertexBuffer, w, $s, $r;
|
|
142527
142657
|
/* */ $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; elementBuffer = $f.elementBuffer; emptyFloat = $f.emptyFloat; floatLen = $f.floatLen; vertexArray = $f.vertexArray; vertexBuffer = $f.vertexBuffer; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
@@ -142748,22 +142878,22 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142748
142878
|
s = new screenImpl.ptr($clone($clone(js.Global(), js.Value).Get("document"), js.Value));
|
|
142749
142879
|
return [s, $ifaceNil];
|
|
142750
142880
|
};
|
|
142751
|
-
screenImpl.ptr.prototype.NewBuffer = function(size
|
|
142752
|
-
var buffer, s, size
|
|
142881
|
+
screenImpl.ptr.prototype.NewBuffer = function(size) {
|
|
142882
|
+
var buffer, s, size;
|
|
142753
142883
|
s = this;
|
|
142754
|
-
buffer = newBuffer(s, $clone(size
|
|
142884
|
+
buffer = newBuffer(s, $clone(size, image.Point));
|
|
142755
142885
|
return [buffer, $ifaceNil];
|
|
142756
142886
|
};
|
|
142757
|
-
screenImpl.prototype.NewBuffer = function(size
|
|
142758
|
-
screenImpl.ptr.prototype.NewTexture = function(size
|
|
142759
|
-
var _r, s, size
|
|
142760
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; s = $f.s; size
|
|
142887
|
+
screenImpl.prototype.NewBuffer = function(size) { return this.$val.NewBuffer(size); };
|
|
142888
|
+
screenImpl.ptr.prototype.NewTexture = function(size) {
|
|
142889
|
+
var _r, s, size, $s, $r;
|
|
142890
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; s = $f.s; size = $f.size; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142761
142891
|
s = this;
|
|
142762
142892
|
_r = fmt.Errorf("Texture not implemented", new sliceType$2([])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142763
142893
|
$s = -1; return [$ifaceNil, _r];
|
|
142764
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: screenImpl.ptr.prototype.NewTexture }; } $f._r = _r; $f.s = s; $f.size
|
|
142894
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: screenImpl.ptr.prototype.NewTexture }; } $f._r = _r; $f.s = s; $f.size = size; $f.$s = $s; $f.$r = $r; return $f;
|
|
142765
142895
|
};
|
|
142766
|
-
screenImpl.prototype.NewTexture = function(size
|
|
142896
|
+
screenImpl.prototype.NewTexture = function(size) { return this.$val.NewTexture(size); };
|
|
142767
142897
|
screenImpl.ptr.prototype.NewWindow = function(opts) {
|
|
142768
142898
|
var _r, opts, s, window, $s, $r;
|
|
142769
142899
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; opts = $f.opts; s = $f.s; window = $f.window; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
@@ -142774,20 +142904,6 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142774
142904
|
/* */ } return; } if ($f === undefined) { $f = { $blk: screenImpl.ptr.prototype.NewWindow }; } $f._r = _r; $f.opts = opts; $f.s = s; $f.window = window; $f.$s = $s; $f.$r = $r; return $f;
|
|
142775
142905
|
};
|
|
142776
142906
|
screenImpl.prototype.NewWindow = function(opts) { return this.$val.NewWindow(opts); };
|
|
142777
|
-
Main = function(f) {
|
|
142778
|
-
var _r, err, f, $s, $r;
|
|
142779
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; err = $f.err; f = $f.f; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142780
|
-
_r = main(f); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142781
|
-
err = _r;
|
|
142782
|
-
/* */ if (!($interfaceIsEqual(err, $ifaceNil))) { $s = 2; continue; }
|
|
142783
|
-
/* */ $s = 3; continue;
|
|
142784
|
-
/* if (!($interfaceIsEqual(err, $ifaceNil))) { */ case 2:
|
|
142785
|
-
$r = f(errscreen.Stub(err)); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142786
|
-
/* } */ case 3:
|
|
142787
|
-
$s = -1; return;
|
|
142788
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: Main }; } $f._r = _r; $f.err = err; $f.f = f; $f.$s = $s; $f.$r = $r; return $f;
|
|
142789
|
-
};
|
|
142790
|
-
$pkg.Main = Main;
|
|
142791
142907
|
main = function(f) {
|
|
142792
142908
|
var _tuple, err, f, retErr, s, $s, $r;
|
|
142793
142909
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _tuple = $f._tuple; err = $f.err; f = $f.f; retErr = $f.retErr; s = $f.s; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
@@ -142805,20 +142921,20 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142805
142921
|
/* */ } return; } if ($f === undefined) { $f = { $blk: main }; } $f._tuple = _tuple; $f.err = err; $f.f = f; $f.retErr = retErr; $f.s = s; $f.$s = $s; $f.$r = $r; return $f;
|
|
142806
142922
|
};
|
|
142807
142923
|
newWindow = function(screen$1, opts) {
|
|
142808
|
-
var _q, _q$1, _q$2, _q$3, _r, _r$1, _r$10, _r$11, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, _tuple, _tuple$1, _tuple$2, canvasEl, err, gl, height, opts, screen$1, w, width, $s, $r;
|
|
142809
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _q = $f._q; _q$1 = $f._q$1; _q$2 = $f._q$2; _q$3 = $f._q$3; _r = $f._r; _r$1 = $f._r$1; _r$10 = $f._r$10; _r$11 = $f._r$11; _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; _r$8 = $f._r$8; _r$9 = $f._r$9; _tuple = $f._tuple; _tuple$1 = $f._tuple$1; _tuple$2 = $f._tuple$2; canvasEl = $f.canvasEl; err = $f.err; gl = $f.gl; height = $f.height; opts = $f.opts; screen$1 = $f.screen$1; w = $f.w; width = $f.width; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142924
|
+
var _q, _q$1, _q$2, _q$3, _r, _r$1, _r$10, _r$11, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, _tuple, _tuple$1, _tuple$2, canvasEl, domEvents, err, gl, height, opts, screen$1, w, width, $s, $r;
|
|
142925
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _q = $f._q; _q$1 = $f._q$1; _q$2 = $f._q$2; _q$3 = $f._q$3; _r = $f._r; _r$1 = $f._r$1; _r$10 = $f._r$10; _r$11 = $f._r$11; _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; _r$8 = $f._r$8; _r$9 = $f._r$9; _tuple = $f._tuple; _tuple$1 = $f._tuple$1; _tuple$2 = $f._tuple$2; canvasEl = $f.canvasEl; domEvents = $f.domEvents; err = $f.err; gl = $f.gl; height = $f.height; opts = $f.opts; screen$1 = $f.screen$1; w = $f.w; width = $f.width; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142810
142926
|
_r = $clone(screen$1.doc, js.Value).Call("createElement", new sliceType$2([new $String("canvas")])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142811
142927
|
canvasEl = $clone(_r, js.Value);
|
|
142812
142928
|
_r$1 = $clone($clone(screen$1.doc, js.Value).Get("body"), js.Value).Call("appendChild", new sliceType$2([new canvasEl.constructor.elem(canvasEl)])); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
142813
142929
|
_r$1;
|
|
142814
142930
|
width = opts.Width;
|
|
142815
142931
|
if (opts.Width === 0) {
|
|
142816
|
-
width =
|
|
142932
|
+
width = dom.GetDocWidth();
|
|
142817
142933
|
}
|
|
142818
142934
|
$r = $clone(canvasEl, js.Value).Set("width", new $Int(width)); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142819
142935
|
height = opts.Height;
|
|
142820
142936
|
if (opts.Height === 0) {
|
|
142821
|
-
height =
|
|
142937
|
+
height = dom.GetDocHeight();
|
|
142822
142938
|
}
|
|
142823
142939
|
$r = $clone(canvasEl, js.Value).Set("height", new $Int(height)); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142824
142940
|
/* */ if (!(opts.Title === "")) { $s = 5; continue; }
|
|
@@ -142835,7 +142951,8 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142835
142951
|
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
142836
142952
|
$panic(err);
|
|
142837
142953
|
}
|
|
142838
|
-
|
|
142954
|
+
domEvents = dom.NewDomEvents();
|
|
142955
|
+
w = new windowImpl.ptr(screen$1, width, height, ptrType$1.nil, $clone(canvasEl, js.Value), gl, ptrType$3.nil, ptrType$5.nil, ptrType$3.nil, ptrType$5.nil, ptrType$5.nil, ptrType$5.nil, ptrType$6.nil, false, domEvents);
|
|
142839
142956
|
_r$5 = w.createAndLinkProgramRGBA(); /* */ $s = 11; case 11: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
142840
142957
|
_tuple$1 = _r$5;
|
|
142841
142958
|
w.programRGBA = _tuple$1[0];
|
|
@@ -142863,13 +142980,9 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142863
142980
|
$r = w.gl.Enable(2929); /* */ $s = 18; case 18: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142864
142981
|
$r = w.gl.Viewport(0, 0, w.width, w.height); /* */ $s = 19; case 19: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142865
142982
|
$r = w.clear(); /* */ $s = 20; case 20: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142866
|
-
$r =
|
|
142867
|
-
$go($methodVal(w, "emitSizeEvent"), []);
|
|
142868
|
-
$r = w.bindMouseEvents(); /* */ $s = 22; case 22: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142869
|
-
$r = w.bindKeyEvents(); /* */ $s = 23; case 23: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142870
|
-
$r = w.bindFocusEvents(); /* */ $s = 24; case 24: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142983
|
+
$r = domEvents.BindEvents(); /* */ $s = 21; case 21: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142871
142984
|
$s = -1; return w;
|
|
142872
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: newWindow }; } $f._q = _q; $f._q$1 = _q$1; $f._q$2 = _q$2; $f._q$3 = _q$3; $f._r = _r; $f._r$1 = _r$1; $f._r$10 = _r$10; $f._r$11 = _r$11; $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._r$8 = _r$8; $f._r$9 = _r$9; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f._tuple$2 = _tuple$2; $f.canvasEl = canvasEl; $f.err = err; $f.gl = gl; $f.height = height; $f.opts = opts; $f.screen$1 = screen$1; $f.w = w; $f.width = width; $f.$s = $s; $f.$r = $r; return $f;
|
|
142985
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: newWindow }; } $f._q = _q; $f._q$1 = _q$1; $f._q$2 = _q$2; $f._q$3 = _q$3; $f._r = _r; $f._r$1 = _r$1; $f._r$10 = _r$10; $f._r$11 = _r$11; $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._r$8 = _r$8; $f._r$9 = _r$9; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f._tuple$2 = _tuple$2; $f.canvasEl = canvasEl; $f.domEvents = domEvents; $f.err = err; $f.gl = gl; $f.height = height; $f.opts = opts; $f.screen$1 = screen$1; $f.w = w; $f.width = width; $f.$s = $s; $f.$r = $r; return $f;
|
|
142873
142986
|
};
|
|
142874
142987
|
windowImpl.ptr.prototype.clear = function() {
|
|
142875
142988
|
var w, $s, $r;
|
|
@@ -142882,8 +142995,8 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142882
142995
|
};
|
|
142883
142996
|
windowImpl.prototype.clear = function() { return this.$val.clear(); };
|
|
142884
142997
|
windowImpl.ptr.prototype.Release = function() {
|
|
142885
|
-
var
|
|
142886
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true;
|
|
142998
|
+
var _r, w, $s, $deferred, $r;
|
|
142999
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; w = $f.w; $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);
|
|
142887
143000
|
w = this;
|
|
142888
143001
|
$r = w.mutex.Lock(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142889
143002
|
$deferred.push([$methodVal(w.mutex, "Unlock"), []]);
|
|
@@ -142892,17 +143005,10 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142892
143005
|
}
|
|
142893
143006
|
_r = $clone(w.canvasEl, js.Value).Call("remove", new sliceType$2([])); /* */ $s = 2; case 2: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142894
143007
|
_r;
|
|
142895
|
-
|
|
142896
|
-
_i = 0;
|
|
142897
|
-
/* while (true) { */ case 3:
|
|
142898
|
-
/* if (!(_i < _ref.$length)) { break; } */ if(!(_i < _ref.$length)) { $s = 4; continue; }
|
|
142899
|
-
release = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
142900
|
-
$r = release(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142901
|
-
_i++;
|
|
142902
|
-
/* } */ $s = 3; continue; case 4:
|
|
143008
|
+
$r = w.domEvents.Release(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
142903
143009
|
w.released = true;
|
|
142904
143010
|
$s = -1; return;
|
|
142905
|
-
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.Release }; } $f.
|
|
143011
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.Release }; } $f._r = _r; $f.w = w; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
142906
143012
|
};
|
|
142907
143013
|
windowImpl.prototype.Release = function() { return this.$val.Release(); };
|
|
142908
143014
|
windowImpl.ptr.prototype.Publish = function() {
|
|
@@ -142936,7 +143042,7 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142936
143042
|
var _r, ev, w, $s, $r;
|
|
142937
143043
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; ev = $f.ev; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
142938
143044
|
w = this;
|
|
142939
|
-
_r = $recv(w.
|
|
143045
|
+
_r = $recv(w.domEvents.GetEventChan()); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142940
143046
|
ev = _r[0];
|
|
142941
143047
|
$s = -1; return ev;
|
|
142942
143048
|
/* */ } return; } if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.NextEvent }; } $f._r = _r; $f.ev = ev; $f.w = w; $f.$s = $s; $f.$r = $r; return $f;
|
|
@@ -142962,9 +143068,9 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
142962
143068
|
$s = -1; return;
|
|
142963
143069
|
}
|
|
142964
143070
|
_ref = src;
|
|
142965
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
143071
|
+
/* */ if ($assertType(_ref, ptrType$8, true)[1]) { $s = 1; continue; }
|
|
142966
143072
|
/* */ $s = 2; continue;
|
|
142967
|
-
/* if ($assertType(_ref, ptrType$
|
|
143073
|
+
/* if ($assertType(_ref, ptrType$8, true)[1]) { */ case 1:
|
|
142968
143074
|
jsSrc = _ref.$val;
|
|
142969
143075
|
_r = jsSrc.YCbCrJS(); /* */ $s = 5; case 5: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
142970
143076
|
/* */ if (_r.Use) { $s = 3; continue; }
|
|
@@ -143055,38 +143161,31 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
143055
143161
|
$panic(new $String("Not implemented"));
|
|
143056
143162
|
};
|
|
143057
143163
|
windowImpl.prototype.Scale = function(dr, src, sr, op, opts) { return this.$val.Scale(dr, src, sr, op, opts); };
|
|
143058
|
-
ptrType$
|
|
143059
|
-
ptrType$
|
|
143060
|
-
ptrType.methods = [{prop: "NewBuffer", name: "NewBuffer", pkg: "", typ: $funcType([image.Point], [screen.Buffer, $error], false)}, {prop: "NewTexture", name: "NewTexture", pkg: "", typ: $funcType([image.Point], [screen.Texture, $error], false)}, {prop: "NewWindow", name: "NewWindow", pkg: "", typ: $funcType([ptrType$
|
|
143061
|
-
ptrType$
|
|
143164
|
+
ptrType$9.methods = [{prop: "slice", name: "slice", pkg: "golang.org/x/exp/shiny/driver/webgldriver", typ: $funcType([], [js.Value], false)}];
|
|
143165
|
+
ptrType$8.methods = [{prop: "Size", name: "Size", pkg: "", typ: $funcType([], [image.Point], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [image.Rectangle], false)}, {prop: "RGBA", name: "RGBA", pkg: "", typ: $funcType([], [ptrType$10], false)}, {prop: "YCbCr", name: "YCbCr", pkg: "", typ: $funcType([], [ptrType$11], false)}, {prop: "YCbCrJS", name: "YCbCrJS", pkg: "", typ: $funcType([], [ptrType$2], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([], [], false)}];
|
|
143166
|
+
ptrType.methods = [{prop: "NewBuffer", name: "NewBuffer", pkg: "", typ: $funcType([image.Point], [screen.Buffer, $error], false)}, {prop: "NewTexture", name: "NewTexture", pkg: "", typ: $funcType([image.Point], [screen.Texture, $error], false)}, {prop: "NewWindow", name: "NewWindow", pkg: "", typ: $funcType([ptrType$12], [screen.Window, $error], false)}];
|
|
143167
|
+
ptrType$14.methods = [{prop: "createBuffers", name: "createBuffers", pkg: "golang.org/x/exp/shiny/driver/webgldriver", typ: $funcType([], [ptrType$6], false)}, {prop: "createAndAttachFragmentShader", name: "createAndAttachFragmentShader", pkg: "golang.org/x/exp/shiny/driver/webgldriver", typ: $funcType([ptrType$3, $String], [$error], false)}, {prop: "createTexture", name: "createTexture", pkg: "golang.org/x/exp/shiny/driver/webgldriver", typ: $funcType([types.GLEnum, types.GLEnum, $Int, $Int], [ptrType$5], false)}, {prop: "createAndLinkProgramRGBA", name: "createAndLinkProgramRGBA", pkg: "golang.org/x/exp/shiny/driver/webgldriver", typ: $funcType([], [ptrType$3, $error], false)}, {prop: "drawBufferRGBA", name: "drawBufferRGBA", pkg: "golang.org/x/exp/shiny/driver/webgldriver", typ: $funcType([image.Point, screen.Buffer, image.Rectangle], [], false)}, {prop: "createAndLinkProgramYUV420", name: "createAndLinkProgramYUV420", pkg: "golang.org/x/exp/shiny/driver/webgldriver", typ: $funcType([], [ptrType$3, $error], false)}, {prop: "drawBufferYUV420", name: "drawBufferYUV420", pkg: "golang.org/x/exp/shiny/driver/webgldriver", typ: $funcType([image.Point, screen.Buffer, image.Rectangle], [], false)}, {prop: "drawBufferYUV420JSArrayBuffers", name: "drawBufferYUV420JSArrayBuffers", pkg: "golang.org/x/exp/shiny/driver/webgldriver", typ: $funcType([image.Point, js.Value, js.Value, js.Value, image.Rectangle], [], false)}, {prop: "createAndAttachVertexShader", name: "createAndAttachVertexShader", pkg: "golang.org/x/exp/shiny/driver/webgldriver", typ: $funcType([ptrType$3], [$error], false)}, {prop: "clear", name: "clear", pkg: "golang.org/x/exp/shiny/driver/webgldriver", typ: $funcType([], [], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([], [], false)}, {prop: "Publish", name: "Publish", pkg: "", typ: $funcType([], [screen.PublishResult], false)}, {prop: "Send", name: "Send", pkg: "", typ: $funcType([$emptyInterface], [], false)}, {prop: "SendFirst", name: "SendFirst", pkg: "", typ: $funcType([$emptyInterface], [], false)}, {prop: "NextEvent", name: "NextEvent", pkg: "", typ: $funcType([], [$emptyInterface], false)}, {prop: "Upload", name: "Upload", pkg: "", typ: $funcType([image.Point, screen.Buffer, image.Rectangle], [], false)}, {prop: "UploadYCbCr", name: "UploadYCbCr", pkg: "", typ: $funcType([image.Point, screen.Buffer, image.Rectangle], [], false)}, {prop: "Fill", name: "Fill", pkg: "", typ: $funcType([image.Rectangle, color.Color, draw.Op], [], false)}, {prop: "Draw", name: "Draw", pkg: "", typ: $funcType([f64.Aff3, screen.Texture, image.Rectangle, draw.Op, ptrType$13], [], false)}, {prop: "DrawUniform", name: "DrawUniform", pkg: "", typ: $funcType([f64.Aff3, color.Color, image.Rectangle, draw.Op, ptrType$13], [], false)}, {prop: "Copy", name: "Copy", pkg: "", typ: $funcType([image.Point, screen.Texture, image.Rectangle, draw.Op, ptrType$13], [], false)}, {prop: "Scale", name: "Scale", pkg: "", typ: $funcType([image.Rectangle, screen.Texture, image.Rectangle, draw.Op, ptrType$13], [], false)}];
|
|
143062
143168
|
ArrayBufferSlice.init("", [{prop: "ArrayBuffer", name: "ArrayBuffer", embedded: false, exported: true, typ: js.Value, tag: ""}, {prop: "Offset", name: "Offset", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Length", name: "Length", embedded: false, exported: true, typ: $Int, tag: ""}]);
|
|
143063
143169
|
YCbCrJS.init("", [{prop: "Y", name: "Y", embedded: false, exported: true, typ: ArrayBufferSlice, tag: ""}, {prop: "Cb", name: "Cb", embedded: false, exported: true, typ: ArrayBufferSlice, tag: ""}, {prop: "Cr", name: "Cr", embedded: false, exported: true, typ: ArrayBufferSlice, tag: ""}, {prop: "YStride", name: "YStride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "CStride", name: "CStride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "SubsampleRatio", name: "SubsampleRatio", embedded: false, exported: true, typ: image.YCbCrSubsampleRatio, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: image.Rectangle, tag: ""}, {prop: "Use", name: "Use", embedded: false, exported: true, typ: $Bool, tag: ""}]);
|
|
143064
143170
|
BufferImpl.init("golang.org/x/exp/shiny/driver/webgldriver", [{prop: "screen", name: "screen", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "size", name: "size", embedded: false, exported: false, typ: image.Point, tag: ""}, {prop: "mutex", name: "mutex", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "released", name: "released", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "rgba", name: "rgba", embedded: false, exported: false, typ: image.RGBA, tag: ""}, {prop: "ycbcr", name: "ycbcr", embedded: false, exported: false, typ: image.YCbCr, tag: ""}, {prop: "ycbcrJS", name: "ycbcrJS", embedded: false, exported: false, typ: ptrType$2, tag: ""}]);
|
|
143065
143171
|
screenImpl.init("golang.org/x/exp/shiny/driver/webgldriver", [{prop: "doc", name: "doc", embedded: false, exported: false, typ: js.Value, tag: ""}]);
|
|
143066
|
-
windowImpl.init("golang.org/x/exp/shiny/driver/webgldriver", [{prop: "screen", name: "screen", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "width", name: "width", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "height", name: "height", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "mutex", name: "mutex", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "canvasEl", name: "canvasEl", embedded: false, exported: false, typ: js.Value, tag: ""}, {prop: "gl", name: "gl", embedded: false, exported: false, typ: ptrType$4, tag: ""}, {prop: "programRGBA", name: "programRGBA", embedded: false, exported: false, typ: ptrType$3, tag: ""}, {prop: "imageTexRGBA", name: "imageTexRGBA", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "programYUV420", name: "programYUV420", embedded: false, exported: false, typ: ptrType$3, tag: ""}, {prop: "imageTexY", name: "imageTexY", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "imageTexU", name: "imageTexU", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "imageTexV", name: "imageTexV", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "vertexArray", name: "vertexArray", embedded: false, exported: false, typ: ptrType$6, tag: ""}, {prop: "released", name: "released", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "
|
|
143172
|
+
windowImpl.init("golang.org/x/exp/shiny/driver/webgldriver", [{prop: "screen", name: "screen", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "width", name: "width", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "height", name: "height", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "mutex", name: "mutex", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "canvasEl", name: "canvasEl", embedded: false, exported: false, typ: js.Value, tag: ""}, {prop: "gl", name: "gl", embedded: false, exported: false, typ: ptrType$4, tag: ""}, {prop: "programRGBA", name: "programRGBA", embedded: false, exported: false, typ: ptrType$3, tag: ""}, {prop: "imageTexRGBA", name: "imageTexRGBA", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "programYUV420", name: "programYUV420", embedded: false, exported: false, typ: ptrType$3, tag: ""}, {prop: "imageTexY", name: "imageTexY", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "imageTexU", name: "imageTexU", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "imageTexV", name: "imageTexV", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "vertexArray", name: "vertexArray", embedded: false, exported: false, typ: ptrType$6, tag: ""}, {prop: "released", name: "released", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "domEvents", name: "domEvents", embedded: false, exported: false, typ: ptrType$7, tag: ""}]);
|
|
143067
143173
|
$init = function() {
|
|
143068
143174
|
$pkg.$init = function() {};
|
|
143069
143175
|
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143070
143176
|
$r = fmt.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143071
143177
|
$r = webgl.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143072
143178
|
$r = types.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143073
|
-
$r =
|
|
143074
|
-
$r =
|
|
143075
|
-
$r =
|
|
143076
|
-
$r =
|
|
143077
|
-
$r =
|
|
143078
|
-
$r =
|
|
143079
|
-
$r =
|
|
143080
|
-
$r =
|
|
143081
|
-
$r =
|
|
143082
|
-
$r =
|
|
143083
|
-
$r = color.$init(); /* */ $s = 14; case 14: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143084
|
-
$r = draw.$init(); /* */ $s = 15; case 15: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143085
|
-
$r = strings.$init(); /* */ $s = 16; case 16: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143086
|
-
$r = sync.$init(); /* */ $s = 17; case 17: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143087
|
-
$r = js.$init(); /* */ $s = 18; case 18: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143088
|
-
keyCodesMap = $makeMap($String.keyFor, [{ k: "KeyA", v: 4 }, { k: "KeyB", v: 5 }, { k: "KeyC", v: 6 }, { k: "KeyD", v: 7 }, { k: "KeyE", v: 8 }, { k: "KeyF", v: 9 }, { k: "KeyG", v: 10 }, { k: "KeyH", v: 11 }, { k: "KeyI", v: 12 }, { k: "KeyJ", v: 13 }, { k: "KeyK", v: 14 }, { k: "KeyL", v: 15 }, { k: "KeyM", v: 16 }, { k: "KeyN", v: 17 }, { k: "KeyO", v: 18 }, { k: "KeyP", v: 19 }, { k: "KeyQ", v: 20 }, { k: "KeyR", v: 21 }, { k: "KeyS", v: 22 }, { k: "KeyT", v: 23 }, { k: "KeyU", v: 24 }, { k: "KeyV", v: 25 }, { k: "KeyW", v: 26 }, { k: "KeyX", v: 27 }, { k: "KeyY", v: 28 }, { k: "KeyZ", v: 29 }, { k: "Digit1", v: 30 }, { k: "Digit2", v: 31 }, { k: "Digit3", v: 32 }, { k: "Digit4", v: 33 }, { k: "Digit5", v: 34 }, { k: "Digit6", v: 35 }, { k: "Digit7", v: 36 }, { k: "Digit8", v: 37 }, { k: "Digit9", v: 38 }, { k: "Digit0", v: 39 }, { k: "Enter", v: 40 }, { k: "Escape", v: 41 }, { k: "Backspace", v: 42 }, { k: "Tab", v: 43 }, { k: "Space", v: 44 }, { k: "Minus", v: 45 }, { k: "Equal", v: 46 }, { k: "BracketLeft", v: 47 }, { k: "BracketRight", v: 48 }, { k: "Backslash", v: 49 }, { k: "Semicolon", v: 51 }, { k: "Quote", v: 52 }, { k: "Backquote", v: 53 }, { k: "Comma", v: 54 }, { k: "Period", v: 55 }, { k: "Slash", v: 56 }, { k: "CapsLock", v: 57 }, { k: "F1", v: 58 }, { k: "F2", v: 59 }, { k: "F3", v: 60 }, { k: "F4", v: 61 }, { k: "F5", v: 62 }, { k: "F6", v: 63 }, { k: "F7", v: 64 }, { k: "F8", v: 65 }, { k: "F9", v: 66 }, { k: "F10", v: 67 }, { k: "F11", v: 68 }, { k: "F12", v: 69 }, { k: "Pause", v: 72 }, { k: "Insert", v: 73 }, { k: "Home", v: 74 }, { k: "PageUp", v: 75 }, { k: "Delete", v: 76 }, { k: "End", v: 77 }, { k: "PageDown", v: 78 }, { k: "ArrowRight", v: 79 }, { k: "ArrowLeft", v: 80 }, { k: "ArrowDown", v: 81 }, { k: "ArrowUp", v: 82 }, { k: "NumLock", v: 83 }, { k: "NumpadDivide", v: 84 }, { k: "NumpadMultiply", v: 85 }, { k: "NumpadSubtract", v: 86 }, { k: "NumpadAdd", v: 87 }, { k: "NumpadEnter", v: 88 }, { k: "Numpad1", v: 89 }, { k: "Numpad2", v: 90 }, { k: "Numpad3", v: 91 }, { k: "Numpad4", v: 92 }, { k: "Numpad5", v: 93 }, { k: "Numpad6", v: 94 }, { k: "Numpad7", v: 95 }, { k: "Numpad8", v: 96 }, { k: "Numpad9", v: 97 }, { k: "Numpad0", v: 98 }, { k: "NumpadDecimal", v: 99 }, { k: "NumpadEqual", v: 103 }, { k: "F13", v: 104 }, { k: "F14", v: 105 }, { k: "F15", v: 106 }, { k: "F16", v: 107 }, { k: "F17", v: 108 }, { k: "F18", v: 109 }, { k: "F19", v: 110 }, { k: "F20", v: 111 }, { k: "F21", v: 112 }, { k: "F22", v: 113 }, { k: "F23", v: 114 }, { k: "F24", v: 115 }, { k: "Help", v: 117 }, { k: "ContextMenu", v: 118 }, { k: "VolumeMute", v: 127 }, { k: "VolumeUp", v: 128 }, { k: "VolumeDown", v: 129 }, { k: "ControlLeft", v: 224 }, { k: "ShiftLeft", v: 225 }, { k: "AltLeft", v: 226 }, { k: "MetaLeft", v: 227 }, { k: "ControlRight", v: 228 }, { k: "ShiftRight", v: 229 }, { k: "AltRight", v: 230 }, { k: "MetaRight", v: 231 }, { k: "PrintScreen", v: 0 }]);
|
|
143089
|
-
keyCodesByKeyMap = $makeMap($String.keyFor, [{ k: "AudioVolumeMute", v: 127 }, { k: "AudioVolumeUp", v: 128 }, { k: "AudioVolumeDown", v: 129 }]);
|
|
143179
|
+
$r = dom.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143180
|
+
$r = errscreen.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143181
|
+
$r = imageutil.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143182
|
+
$r = screen.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143183
|
+
$r = f64.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143184
|
+
$r = image.$init(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143185
|
+
$r = color.$init(); /* */ $s = 10; case 10: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143186
|
+
$r = draw.$init(); /* */ $s = 11; case 11: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143187
|
+
$r = sync.$init(); /* */ $s = 12; case 12: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143188
|
+
$r = js.$init(); /* */ $s = 13; case 13: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143090
143189
|
elementsIndices = new sliceType([0, 1, 3, 1, 2, 3]);
|
|
143091
143190
|
texCoordsVertices = new sliceType$1([1, 1, 1, 0, 1, -1, 1, 1, -1, -1, 0, 1, -1, 1, 0, 0]);
|
|
143092
143191
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
@@ -143094,9 +143193,10 @@ $packages["golang.org/x/exp/shiny/driver/webgldriver"] = (function() {
|
|
|
143094
143193
|
$pkg.$init = $init;
|
|
143095
143194
|
return $pkg;
|
|
143096
143195
|
})();
|
|
143097
|
-
$packages["github.com/supraio/client-daemon/pkg/x264"] = (function() {
|
|
143098
|
-
var $pkg = {}, $init, errs, webgldriver, image, js;
|
|
143196
|
+
$packages["github.com/supraio/client-daemon/pkg/x264/h264decoder"] = (function() {
|
|
143197
|
+
var $pkg = {}, $init, errs, general, webgldriver, image, js;
|
|
143099
143198
|
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
143199
|
+
general = $packages["github.com/supraio/client-daemon/pkg/x264/general"];
|
|
143100
143200
|
webgldriver = $packages["golang.org/x/exp/shiny/driver/webgldriver"];
|
|
143101
143201
|
image = $packages["image"];
|
|
143102
143202
|
js = $packages["syscall/js"];
|
|
@@ -143104,30 +143204,446 @@ $packages["github.com/supraio/client-daemon/pkg/x264"] = (function() {
|
|
|
143104
143204
|
$pkg.$init = function() {};
|
|
143105
143205
|
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143106
143206
|
$r = errs.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143107
|
-
$r =
|
|
143108
|
-
$r =
|
|
143109
|
-
$r =
|
|
143207
|
+
$r = general.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143208
|
+
$r = webgldriver.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143209
|
+
$r = image.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143210
|
+
$r = js.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143110
143211
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
143111
143212
|
};
|
|
143112
143213
|
$pkg.$init = $init;
|
|
143113
143214
|
return $pkg;
|
|
143114
143215
|
})();
|
|
143115
|
-
$packages["
|
|
143116
|
-
var $pkg = {}, $init,
|
|
143117
|
-
|
|
143216
|
+
$packages["github.com/supraio/client-daemon/pkg/jshelper"] = (function() {
|
|
143217
|
+
var $pkg = {}, $init, js;
|
|
143218
|
+
js = $packages["syscall/js"];
|
|
143219
|
+
$init = function() {
|
|
143220
|
+
$pkg.$init = function() {};
|
|
143221
|
+
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143222
|
+
$r = js.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143223
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
143224
|
+
};
|
|
143225
|
+
$pkg.$init = $init;
|
|
143226
|
+
return $pkg;
|
|
143227
|
+
})();
|
|
143228
|
+
$packages["golang.org/x/exp/shiny/driver/canvasdriver"] = (function() {
|
|
143229
|
+
var $pkg = {}, $init, fmt, dom, errscreen, screen, f64, image, color, draw, sync, js, YCbCrJS, BufferImpl, screenImpl, windowImpl, ptrType, ptrType$1, sliceType, ptrType$2, ptrType$3, sliceType$1, ptrType$4, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, ptrType$10, newBuffer, newScreenImpl, main, newWindow;
|
|
143230
|
+
fmt = $packages["fmt"];
|
|
143231
|
+
dom = $packages["golang.org/x/exp/shiny/driver/internal/dom"];
|
|
143232
|
+
errscreen = $packages["golang.org/x/exp/shiny/driver/internal/errscreen"];
|
|
143118
143233
|
screen = $packages["golang.org/x/exp/shiny/screen"];
|
|
143234
|
+
f64 = $packages["golang.org/x/image/math/f64"];
|
|
143235
|
+
image = $packages["image"];
|
|
143236
|
+
color = $packages["image/color"];
|
|
143237
|
+
draw = $packages["image/draw"];
|
|
143238
|
+
sync = $packages["sync"];
|
|
143239
|
+
js = $packages["syscall/js"];
|
|
143240
|
+
YCbCrJS = $pkg.YCbCrJS = $newType(0, $kindStruct, "canvasdriver.YCbCrJS", true, "golang.org/x/exp/shiny/driver/canvasdriver", true, function(CanvasImageSource_) {
|
|
143241
|
+
this.$val = this;
|
|
143242
|
+
if (arguments.length === 0) {
|
|
143243
|
+
this.CanvasImageSource = ptrType$3.nil;
|
|
143244
|
+
return;
|
|
143245
|
+
}
|
|
143246
|
+
this.CanvasImageSource = CanvasImageSource_;
|
|
143247
|
+
});
|
|
143248
|
+
BufferImpl = $pkg.BufferImpl = $newType(0, $kindStruct, "canvasdriver.BufferImpl", true, "golang.org/x/exp/shiny/driver/canvasdriver", true, function(screen_, size_, mutex_, released_, rgba_, ycbcr_, ycbcrJS_) {
|
|
143249
|
+
this.$val = this;
|
|
143250
|
+
if (arguments.length === 0) {
|
|
143251
|
+
this.screen = ptrType.nil;
|
|
143252
|
+
this.size = new image.Point.ptr(0, 0);
|
|
143253
|
+
this.mutex = ptrType$1.nil;
|
|
143254
|
+
this.released = false;
|
|
143255
|
+
this.rgba = new image.RGBA.ptr(sliceType.nil, 0, new image.Rectangle.ptr(new image.Point.ptr(0, 0), new image.Point.ptr(0, 0)));
|
|
143256
|
+
this.ycbcr = new image.YCbCr.ptr(sliceType.nil, sliceType.nil, sliceType.nil, 0, 0, 0, new image.Rectangle.ptr(new image.Point.ptr(0, 0), new image.Point.ptr(0, 0)));
|
|
143257
|
+
this.ycbcrJS = ptrType$2.nil;
|
|
143258
|
+
return;
|
|
143259
|
+
}
|
|
143260
|
+
this.screen = screen_;
|
|
143261
|
+
this.size = size_;
|
|
143262
|
+
this.mutex = mutex_;
|
|
143263
|
+
this.released = released_;
|
|
143264
|
+
this.rgba = rgba_;
|
|
143265
|
+
this.ycbcr = ycbcr_;
|
|
143266
|
+
this.ycbcrJS = ycbcrJS_;
|
|
143267
|
+
});
|
|
143268
|
+
screenImpl = $pkg.screenImpl = $newType(0, $kindStruct, "canvasdriver.screenImpl", true, "golang.org/x/exp/shiny/driver/canvasdriver", false, function(doc_) {
|
|
143269
|
+
this.$val = this;
|
|
143270
|
+
if (arguments.length === 0) {
|
|
143271
|
+
this.doc = new js.Value.ptr(null, false);
|
|
143272
|
+
return;
|
|
143273
|
+
}
|
|
143274
|
+
this.doc = doc_;
|
|
143275
|
+
});
|
|
143276
|
+
windowImpl = $pkg.windowImpl = $newType(0, $kindStruct, "canvasdriver.windowImpl", true, "golang.org/x/exp/shiny/driver/canvasdriver", false, function(screen_, width_, height_, mutex_, canvasEl_, ctx2d_, released_, domEvents_) {
|
|
143277
|
+
this.$val = this;
|
|
143278
|
+
if (arguments.length === 0) {
|
|
143279
|
+
this.screen = ptrType.nil;
|
|
143280
|
+
this.width = 0;
|
|
143281
|
+
this.height = 0;
|
|
143282
|
+
this.mutex = ptrType$1.nil;
|
|
143283
|
+
this.canvasEl = new js.Value.ptr(null, false);
|
|
143284
|
+
this.ctx2d = new js.Value.ptr(null, false);
|
|
143285
|
+
this.released = false;
|
|
143286
|
+
this.domEvents = ptrType$4.nil;
|
|
143287
|
+
return;
|
|
143288
|
+
}
|
|
143289
|
+
this.screen = screen_;
|
|
143290
|
+
this.width = width_;
|
|
143291
|
+
this.height = height_;
|
|
143292
|
+
this.mutex = mutex_;
|
|
143293
|
+
this.canvasEl = canvasEl_;
|
|
143294
|
+
this.ctx2d = ctx2d_;
|
|
143295
|
+
this.released = released_;
|
|
143296
|
+
this.domEvents = domEvents_;
|
|
143297
|
+
});
|
|
143298
|
+
ptrType = $ptrType(screenImpl);
|
|
143299
|
+
ptrType$1 = $ptrType(sync.Mutex);
|
|
143300
|
+
sliceType = $sliceType($Uint8);
|
|
143301
|
+
ptrType$2 = $ptrType(YCbCrJS);
|
|
143302
|
+
ptrType$3 = $ptrType(js.Value);
|
|
143303
|
+
sliceType$1 = $sliceType($emptyInterface);
|
|
143304
|
+
ptrType$4 = $ptrType(dom.DomEvents);
|
|
143305
|
+
ptrType$5 = $ptrType(BufferImpl);
|
|
143306
|
+
ptrType$6 = $ptrType(image.RGBA);
|
|
143307
|
+
ptrType$7 = $ptrType(image.YCbCr);
|
|
143308
|
+
ptrType$8 = $ptrType(screen.NewWindowOptions);
|
|
143309
|
+
ptrType$9 = $ptrType(screen.DrawOptions);
|
|
143310
|
+
ptrType$10 = $ptrType(windowImpl);
|
|
143311
|
+
newBuffer = function(screen$1, size) {
|
|
143312
|
+
var _q, _q$1, _q$2, b, rect, screen$1, size;
|
|
143313
|
+
rect = new image.Rectangle.ptr(new image.Point.ptr(0, 0), $clone(size, image.Point));
|
|
143314
|
+
b = new BufferImpl.ptr(screen$1, $clone(size, image.Point), new sync.Mutex.ptr(0, 0), false, new image.RGBA.ptr($makeSlice(sliceType, ($imul(($imul(4, size.X)), size.Y))), $imul(4, size.X), $clone(rect, image.Rectangle)), new image.YCbCr.ptr($makeSlice(sliceType, ($imul(size.X, size.Y))), $makeSlice(sliceType, (_q$1 = ($imul(size.X, size.Y)) / 4, (_q$1 === _q$1 && _q$1 !== 1/0 && _q$1 !== -1/0) ? _q$1 >> 0 : $throwRuntimeError("integer divide by zero"))), $makeSlice(sliceType, (_q$2 = ($imul(size.X, size.Y)) / 4, (_q$2 === _q$2 && _q$2 !== 1/0 && _q$2 !== -1/0) ? _q$2 >> 0 : $throwRuntimeError("integer divide by zero"))), size.X, (_q = size.X / 2, (_q === _q && _q !== 1/0 && _q !== -1/0) ? _q >> 0 : $throwRuntimeError("integer divide by zero")), 2, $clone(rect, image.Rectangle)), ptrType$2.nil);
|
|
143315
|
+
return b;
|
|
143316
|
+
};
|
|
143317
|
+
BufferImpl.ptr.prototype.Size = function() {
|
|
143318
|
+
var b;
|
|
143319
|
+
b = this;
|
|
143320
|
+
return b.size;
|
|
143321
|
+
};
|
|
143322
|
+
BufferImpl.prototype.Size = function() { return this.$val.Size(); };
|
|
143323
|
+
BufferImpl.ptr.prototype.Bounds = function() {
|
|
143324
|
+
var b;
|
|
143325
|
+
b = this;
|
|
143326
|
+
return new image.Rectangle.ptr(new image.Point.ptr(0, 0), $clone(b.size, image.Point));
|
|
143327
|
+
};
|
|
143328
|
+
BufferImpl.prototype.Bounds = function() { return this.$val.Bounds(); };
|
|
143329
|
+
BufferImpl.ptr.prototype.RGBA = function() {
|
|
143330
|
+
var b;
|
|
143331
|
+
b = this;
|
|
143332
|
+
return b.rgba;
|
|
143333
|
+
};
|
|
143334
|
+
BufferImpl.prototype.RGBA = function() { return this.$val.RGBA(); };
|
|
143335
|
+
BufferImpl.ptr.prototype.YCbCr = function() {
|
|
143336
|
+
var b;
|
|
143337
|
+
b = this;
|
|
143338
|
+
return b.ycbcr;
|
|
143339
|
+
};
|
|
143340
|
+
BufferImpl.prototype.YCbCr = function() { return this.$val.YCbCr(); };
|
|
143341
|
+
BufferImpl.ptr.prototype.YCbCrJS = function() {
|
|
143342
|
+
var b;
|
|
143343
|
+
b = this;
|
|
143344
|
+
if (b.ycbcrJS === ptrType$2.nil) {
|
|
143345
|
+
b.ycbcrJS = new YCbCrJS.ptr(ptrType$3.nil);
|
|
143346
|
+
}
|
|
143347
|
+
return b.ycbcrJS;
|
|
143348
|
+
};
|
|
143349
|
+
BufferImpl.prototype.YCbCrJS = function() { return this.$val.YCbCrJS(); };
|
|
143350
|
+
BufferImpl.ptr.prototype.Release = function() {
|
|
143351
|
+
var b, $s, $deferred, $r;
|
|
143352
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; b = $f.b; $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);
|
|
143353
|
+
b = this;
|
|
143354
|
+
$r = b.mutex.Lock(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143355
|
+
$deferred.push([$methodVal(b.mutex, "Unlock"), []]);
|
|
143356
|
+
if (b.released) {
|
|
143357
|
+
$s = -1; return;
|
|
143358
|
+
}
|
|
143359
|
+
b.released = true;
|
|
143360
|
+
$s = -1; return;
|
|
143361
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: BufferImpl.ptr.prototype.Release }; } $f.b = b; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
143362
|
+
};
|
|
143363
|
+
BufferImpl.prototype.Release = function() { return this.$val.Release(); };
|
|
143364
|
+
newScreenImpl = function() {
|
|
143365
|
+
var s;
|
|
143366
|
+
s = new screenImpl.ptr($clone($clone(js.Global(), js.Value).Get("document"), js.Value));
|
|
143367
|
+
return [s, $ifaceNil];
|
|
143368
|
+
};
|
|
143369
|
+
screenImpl.ptr.prototype.NewBuffer = function(size) {
|
|
143370
|
+
var buffer, s, size;
|
|
143371
|
+
s = this;
|
|
143372
|
+
buffer = newBuffer(s, $clone(size, image.Point));
|
|
143373
|
+
return [buffer, $ifaceNil];
|
|
143374
|
+
};
|
|
143375
|
+
screenImpl.prototype.NewBuffer = function(size) { return this.$val.NewBuffer(size); };
|
|
143376
|
+
screenImpl.ptr.prototype.NewTexture = function(size) {
|
|
143377
|
+
var _r, s, size, $s, $r;
|
|
143378
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; s = $f.s; size = $f.size; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143379
|
+
s = this;
|
|
143380
|
+
_r = fmt.Errorf("Texture not implemented", new sliceType$1([])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
143381
|
+
$s = -1; return [$ifaceNil, _r];
|
|
143382
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: screenImpl.ptr.prototype.NewTexture }; } $f._r = _r; $f.s = s; $f.size = size; $f.$s = $s; $f.$r = $r; return $f;
|
|
143383
|
+
};
|
|
143384
|
+
screenImpl.prototype.NewTexture = function(size) { return this.$val.NewTexture(size); };
|
|
143385
|
+
screenImpl.ptr.prototype.NewWindow = function(opts) {
|
|
143386
|
+
var _r, opts, s, window, $s, $r;
|
|
143387
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; opts = $f.opts; s = $f.s; window = $f.window; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143388
|
+
s = this;
|
|
143389
|
+
_r = newWindow(s, opts); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
143390
|
+
window = _r;
|
|
143391
|
+
$s = -1; return [window, $ifaceNil];
|
|
143392
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: screenImpl.ptr.prototype.NewWindow }; } $f._r = _r; $f.opts = opts; $f.s = s; $f.window = window; $f.$s = $s; $f.$r = $r; return $f;
|
|
143393
|
+
};
|
|
143394
|
+
screenImpl.prototype.NewWindow = function(opts) { return this.$val.NewWindow(opts); };
|
|
143119
143395
|
main = function(f) {
|
|
143120
|
-
var f, $s, $r;
|
|
143121
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; f = $f.f; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143122
|
-
|
|
143396
|
+
var _tuple, err, f, retErr, s, $s, $r;
|
|
143397
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _tuple = $f._tuple; err = $f.err; f = $f.f; retErr = $f.retErr; s = $f.s; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143398
|
+
retErr = $ifaceNil;
|
|
143399
|
+
_tuple = newScreenImpl();
|
|
143400
|
+
s = _tuple[0];
|
|
143401
|
+
err = _tuple[1];
|
|
143402
|
+
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
143403
|
+
retErr = err;
|
|
143404
|
+
$s = -1; return retErr;
|
|
143405
|
+
}
|
|
143406
|
+
$r = f(s); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143407
|
+
retErr = $ifaceNil;
|
|
143408
|
+
$s = -1; return retErr;
|
|
143409
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: main }; } $f._tuple = _tuple; $f.err = err; $f.f = f; $f.retErr = retErr; $f.s = s; $f.$s = $s; $f.$r = $r; return $f;
|
|
143410
|
+
};
|
|
143411
|
+
newWindow = function(screen$1, opts) {
|
|
143412
|
+
var _r, _r$1, _r$2, _r$3, _r$4, _r$5, canvasEl, ctx2d, domEvents, height, opts, screen$1, w, width, $s, $r;
|
|
143413
|
+
/* */ $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; _r$4 = $f._r$4; _r$5 = $f._r$5; canvasEl = $f.canvasEl; ctx2d = $f.ctx2d; domEvents = $f.domEvents; height = $f.height; opts = $f.opts; screen$1 = $f.screen$1; w = $f.w; width = $f.width; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143414
|
+
_r = $clone(screen$1.doc, js.Value).Call("createElement", new sliceType$1([new $String("canvas")])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
143415
|
+
canvasEl = $clone(_r, js.Value);
|
|
143416
|
+
_r$1 = $clone($clone(screen$1.doc, js.Value).Get("body"), js.Value).Call("appendChild", new sliceType$1([new canvasEl.constructor.elem(canvasEl)])); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
143417
|
+
_r$1;
|
|
143418
|
+
width = opts.Width;
|
|
143419
|
+
if (opts.Width === 0) {
|
|
143420
|
+
width = dom.GetDocWidth();
|
|
143421
|
+
}
|
|
143422
|
+
$r = $clone(canvasEl, js.Value).Set("width", new $Int(width)); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143423
|
+
height = opts.Height;
|
|
143424
|
+
if (opts.Height === 0) {
|
|
143425
|
+
height = dom.GetDocHeight();
|
|
143426
|
+
}
|
|
143427
|
+
$r = $clone(canvasEl, js.Value).Set("height", new $Int(height)); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143428
|
+
/* */ if (!(opts.Title === "")) { $s = 5; continue; }
|
|
143429
|
+
/* */ $s = 6; continue;
|
|
143430
|
+
/* if (!(opts.Title === "")) { */ case 5:
|
|
143431
|
+
_r$2 = $clone($clone(screen$1.doc, js.Value).Get("head"), js.Value).Call("getElementsByTagName", new sliceType$1([new $String("title")])); /* */ $s = 7; case 7: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
143432
|
+
_r$3 = $clone(_r$2, js.Value).Call("item", new sliceType$1([new $Int(0)])); /* */ $s = 8; case 8: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
143433
|
+
$r = $clone(_r$3, js.Value).Set("innerHTML", new $String(opts.Title)); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143434
|
+
/* } */ case 6:
|
|
143435
|
+
_r$4 = $clone(canvasEl, js.Value).Call("getContext", new sliceType$1([new $String("2d")])); /* */ $s = 10; case 10: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
143436
|
+
ctx2d = $clone(_r$4, js.Value);
|
|
143437
|
+
/* */ if ($clone(ctx2d, js.Value).IsUndefined() || $clone(ctx2d, js.Value).IsNull()) { $s = 11; continue; }
|
|
143438
|
+
/* */ $s = 12; continue;
|
|
143439
|
+
/* if ($clone(ctx2d, js.Value).IsUndefined() || $clone(ctx2d, js.Value).IsNull()) { */ case 11:
|
|
143440
|
+
_r$5 = fmt.Errorf("Cannot get 2d context of canvas", new sliceType$1([])); /* */ $s = 13; case 13: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
143441
|
+
$panic(_r$5);
|
|
143442
|
+
/* } */ case 12:
|
|
143443
|
+
domEvents = dom.NewDomEvents();
|
|
143444
|
+
w = new windowImpl.ptr(screen$1, width, height, ptrType$1.nil, $clone(canvasEl, js.Value), $clone(ctx2d, js.Value), false, domEvents);
|
|
143445
|
+
$r = domEvents.BindEvents(); /* */ $s = 14; case 14: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143446
|
+
$s = -1; return w;
|
|
143447
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: newWindow }; } $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.canvasEl = canvasEl; $f.ctx2d = ctx2d; $f.domEvents = domEvents; $f.height = height; $f.opts = opts; $f.screen$1 = screen$1; $f.w = w; $f.width = width; $f.$s = $s; $f.$r = $r; return $f;
|
|
143448
|
+
};
|
|
143449
|
+
windowImpl.ptr.prototype.Release = function() {
|
|
143450
|
+
var _r, w, $s, $deferred, $r;
|
|
143451
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; w = $f.w; $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);
|
|
143452
|
+
w = this;
|
|
143453
|
+
$r = w.mutex.Lock(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143454
|
+
$deferred.push([$methodVal(w.mutex, "Unlock"), []]);
|
|
143455
|
+
if (w.released) {
|
|
143456
|
+
$s = -1; return;
|
|
143457
|
+
}
|
|
143458
|
+
_r = $clone(w.canvasEl, js.Value).Call("remove", new sliceType$1([])); /* */ $s = 2; case 2: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
143459
|
+
_r;
|
|
143460
|
+
$r = w.domEvents.Release(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143461
|
+
w.released = true;
|
|
143462
|
+
$s = -1; return;
|
|
143463
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.Release }; } $f._r = _r; $f.w = w; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
143464
|
+
};
|
|
143465
|
+
windowImpl.prototype.Release = function() { return this.$val.Release(); };
|
|
143466
|
+
windowImpl.ptr.prototype.Publish = function() {
|
|
143467
|
+
var w;
|
|
143468
|
+
w = this;
|
|
143469
|
+
if (w.released) {
|
|
143470
|
+
return new screen.PublishResult.ptr(false);
|
|
143471
|
+
}
|
|
143472
|
+
return new screen.PublishResult.ptr(false);
|
|
143473
|
+
};
|
|
143474
|
+
windowImpl.prototype.Publish = function() { return this.$val.Publish(); };
|
|
143475
|
+
windowImpl.ptr.prototype.Send = function(event) {
|
|
143476
|
+
var event, w;
|
|
143477
|
+
w = this;
|
|
143478
|
+
if (w.released) {
|
|
143479
|
+
return;
|
|
143480
|
+
}
|
|
143481
|
+
$panic(new $String("Not implemented"));
|
|
143482
|
+
};
|
|
143483
|
+
windowImpl.prototype.Send = function(event) { return this.$val.Send(event); };
|
|
143484
|
+
windowImpl.ptr.prototype.SendFirst = function(event) {
|
|
143485
|
+
var event, w;
|
|
143486
|
+
w = this;
|
|
143487
|
+
if (w.released) {
|
|
143488
|
+
return;
|
|
143489
|
+
}
|
|
143490
|
+
$panic(new $String("Not implemented"));
|
|
143491
|
+
};
|
|
143492
|
+
windowImpl.prototype.SendFirst = function(event) { return this.$val.SendFirst(event); };
|
|
143493
|
+
windowImpl.ptr.prototype.NextEvent = function() {
|
|
143494
|
+
var _r, ev, w, $s, $r;
|
|
143495
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; ev = $f.ev; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143496
|
+
w = this;
|
|
143497
|
+
_r = $recv(w.domEvents.GetEventChan()); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
143498
|
+
ev = _r[0];
|
|
143499
|
+
$s = -1; return ev;
|
|
143500
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.NextEvent }; } $f._r = _r; $f.ev = ev; $f.w = w; $f.$s = $s; $f.$r = $r; return $f;
|
|
143501
|
+
};
|
|
143502
|
+
windowImpl.prototype.NextEvent = function() { return this.$val.NextEvent(); };
|
|
143503
|
+
windowImpl.ptr.prototype.Upload = function(dp, src, sr) {
|
|
143504
|
+
var _r, dp, sr, src, w, $s, $r;
|
|
143505
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; dp = $f.dp; sr = $f.sr; src = $f.src; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143506
|
+
w = this;
|
|
143507
|
+
if (w.released) {
|
|
143508
|
+
$s = -1; return;
|
|
143509
|
+
}
|
|
143510
|
+
_r = fmt.Errorf("Not implemented, use UploadYCbCr instead", new sliceType$1([])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
143511
|
+
$panic(_r);
|
|
143512
|
+
$s = -1; return;
|
|
143513
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.Upload }; } $f._r = _r; $f.dp = dp; $f.sr = sr; $f.src = src; $f.w = w; $f.$s = $s; $f.$r = $r; return $f;
|
|
143514
|
+
};
|
|
143515
|
+
windowImpl.prototype.Upload = function(dp, src, sr) { return this.$val.Upload(dp, src, sr); };
|
|
143516
|
+
windowImpl.ptr.prototype.UploadYCbCr = function(dp, src, sr) {
|
|
143517
|
+
var _r, _r$1, _ref, dp, jsSrc, sr, src, w, x, $s, $r;
|
|
143518
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1; _ref = $f._ref; dp = $f.dp; jsSrc = $f.jsSrc; sr = $f.sr; src = $f.src; w = $f.w; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143519
|
+
w = this;
|
|
143520
|
+
if (w.released) {
|
|
143521
|
+
$s = -1; return;
|
|
143522
|
+
}
|
|
143523
|
+
_ref = src;
|
|
143524
|
+
/* */ if ($assertType(_ref, ptrType$5, true)[1]) { $s = 1; continue; }
|
|
143525
|
+
/* */ $s = 2; continue;
|
|
143526
|
+
/* if ($assertType(_ref, ptrType$5, true)[1]) { */ case 1:
|
|
143527
|
+
jsSrc = _ref.$val;
|
|
143528
|
+
_r = $clone(w.ctx2d, js.Value).Call("drawImage", new sliceType$1([(x = jsSrc.YCbCrJS().CanvasImageSource, new x.constructor.elem(x)), new $Int(0), new $Int(0)])); /* */ $s = 3; case 3: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
143529
|
+
_r;
|
|
143530
|
+
$s = -1; return;
|
|
143531
|
+
/* } */ case 2:
|
|
143532
|
+
_r$1 = fmt.Errorf("Not implemented, use canvasdriver.BufferImpl instead", new sliceType$1([])); /* */ $s = 4; case 4: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
143533
|
+
$panic(_r$1);
|
|
143123
143534
|
$s = -1; return;
|
|
143124
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk:
|
|
143535
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: windowImpl.ptr.prototype.UploadYCbCr }; } $f._r = _r; $f._r$1 = _r$1; $f._ref = _ref; $f.dp = dp; $f.jsSrc = jsSrc; $f.sr = sr; $f.src = src; $f.w = w; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
143536
|
+
};
|
|
143537
|
+
windowImpl.prototype.UploadYCbCr = function(dp, src, sr) { return this.$val.UploadYCbCr(dp, src, sr); };
|
|
143538
|
+
windowImpl.ptr.prototype.Fill = function(dr, src, op) {
|
|
143539
|
+
var dr, op, src, w;
|
|
143540
|
+
w = this;
|
|
143541
|
+
if (w.released) {
|
|
143542
|
+
return;
|
|
143543
|
+
}
|
|
143544
|
+
$panic(new $String("Not implemented"));
|
|
143545
|
+
};
|
|
143546
|
+
windowImpl.prototype.Fill = function(dr, src, op) { return this.$val.Fill(dr, src, op); };
|
|
143547
|
+
windowImpl.ptr.prototype.Draw = function(src2dst, src, sr, op, opts) {
|
|
143548
|
+
var op, opts, sr, src, src2dst, w;
|
|
143549
|
+
w = this;
|
|
143550
|
+
if (w.released) {
|
|
143551
|
+
return;
|
|
143552
|
+
}
|
|
143553
|
+
$panic(new $String("Not implemented"));
|
|
143125
143554
|
};
|
|
143555
|
+
windowImpl.prototype.Draw = function(src2dst, src, sr, op, opts) { return this.$val.Draw(src2dst, src, sr, op, opts); };
|
|
143556
|
+
windowImpl.ptr.prototype.DrawUniform = function(src2dst, src, sr, op, opts) {
|
|
143557
|
+
var op, opts, sr, src, src2dst, w;
|
|
143558
|
+
w = this;
|
|
143559
|
+
if (w.released) {
|
|
143560
|
+
return;
|
|
143561
|
+
}
|
|
143562
|
+
$panic(new $String("Not implemented"));
|
|
143563
|
+
};
|
|
143564
|
+
windowImpl.prototype.DrawUniform = function(src2dst, src, sr, op, opts) { return this.$val.DrawUniform(src2dst, src, sr, op, opts); };
|
|
143565
|
+
windowImpl.ptr.prototype.Copy = function(dp, src, sr, op, opts) {
|
|
143566
|
+
var dp, op, opts, sr, src, w;
|
|
143567
|
+
w = this;
|
|
143568
|
+
if (w.released) {
|
|
143569
|
+
return;
|
|
143570
|
+
}
|
|
143571
|
+
$panic(new $String("Not implemented"));
|
|
143572
|
+
};
|
|
143573
|
+
windowImpl.prototype.Copy = function(dp, src, sr, op, opts) { return this.$val.Copy(dp, src, sr, op, opts); };
|
|
143574
|
+
windowImpl.ptr.prototype.Scale = function(dr, src, sr, op, opts) {
|
|
143575
|
+
var dr, op, opts, sr, src, w;
|
|
143576
|
+
w = this;
|
|
143577
|
+
if (w.released) {
|
|
143578
|
+
return;
|
|
143579
|
+
}
|
|
143580
|
+
$panic(new $String("Not implemented"));
|
|
143581
|
+
};
|
|
143582
|
+
windowImpl.prototype.Scale = function(dr, src, sr, op, opts) { return this.$val.Scale(dr, src, sr, op, opts); };
|
|
143583
|
+
ptrType$5.methods = [{prop: "Size", name: "Size", pkg: "", typ: $funcType([], [image.Point], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [image.Rectangle], false)}, {prop: "RGBA", name: "RGBA", pkg: "", typ: $funcType([], [ptrType$6], false)}, {prop: "YCbCr", name: "YCbCr", pkg: "", typ: $funcType([], [ptrType$7], false)}, {prop: "YCbCrJS", name: "YCbCrJS", pkg: "", typ: $funcType([], [ptrType$2], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([], [], false)}];
|
|
143584
|
+
ptrType.methods = [{prop: "NewBuffer", name: "NewBuffer", pkg: "", typ: $funcType([image.Point], [screen.Buffer, $error], false)}, {prop: "NewTexture", name: "NewTexture", pkg: "", typ: $funcType([image.Point], [screen.Texture, $error], false)}, {prop: "NewWindow", name: "NewWindow", pkg: "", typ: $funcType([ptrType$8], [screen.Window, $error], false)}];
|
|
143585
|
+
ptrType$10.methods = [{prop: "Release", name: "Release", pkg: "", typ: $funcType([], [], false)}, {prop: "Publish", name: "Publish", pkg: "", typ: $funcType([], [screen.PublishResult], false)}, {prop: "Send", name: "Send", pkg: "", typ: $funcType([$emptyInterface], [], false)}, {prop: "SendFirst", name: "SendFirst", pkg: "", typ: $funcType([$emptyInterface], [], false)}, {prop: "NextEvent", name: "NextEvent", pkg: "", typ: $funcType([], [$emptyInterface], false)}, {prop: "Upload", name: "Upload", pkg: "", typ: $funcType([image.Point, screen.Buffer, image.Rectangle], [], false)}, {prop: "UploadYCbCr", name: "UploadYCbCr", pkg: "", typ: $funcType([image.Point, screen.Buffer, image.Rectangle], [], false)}, {prop: "Fill", name: "Fill", pkg: "", typ: $funcType([image.Rectangle, color.Color, draw.Op], [], false)}, {prop: "Draw", name: "Draw", pkg: "", typ: $funcType([f64.Aff3, screen.Texture, image.Rectangle, draw.Op, ptrType$9], [], false)}, {prop: "DrawUniform", name: "DrawUniform", pkg: "", typ: $funcType([f64.Aff3, color.Color, image.Rectangle, draw.Op, ptrType$9], [], false)}, {prop: "Copy", name: "Copy", pkg: "", typ: $funcType([image.Point, screen.Texture, image.Rectangle, draw.Op, ptrType$9], [], false)}, {prop: "Scale", name: "Scale", pkg: "", typ: $funcType([image.Rectangle, screen.Texture, image.Rectangle, draw.Op, ptrType$9], [], false)}];
|
|
143586
|
+
YCbCrJS.init("", [{prop: "CanvasImageSource", name: "CanvasImageSource", embedded: false, exported: true, typ: ptrType$3, tag: ""}]);
|
|
143587
|
+
BufferImpl.init("golang.org/x/exp/shiny/driver/canvasdriver", [{prop: "screen", name: "screen", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "size", name: "size", embedded: false, exported: false, typ: image.Point, tag: ""}, {prop: "mutex", name: "mutex", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "released", name: "released", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "rgba", name: "rgba", embedded: false, exported: false, typ: image.RGBA, tag: ""}, {prop: "ycbcr", name: "ycbcr", embedded: false, exported: false, typ: image.YCbCr, tag: ""}, {prop: "ycbcrJS", name: "ycbcrJS", embedded: false, exported: false, typ: ptrType$2, tag: ""}]);
|
|
143588
|
+
screenImpl.init("golang.org/x/exp/shiny/driver/canvasdriver", [{prop: "doc", name: "doc", embedded: false, exported: false, typ: js.Value, tag: ""}]);
|
|
143589
|
+
windowImpl.init("golang.org/x/exp/shiny/driver/canvasdriver", [{prop: "screen", name: "screen", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "width", name: "width", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "height", name: "height", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "mutex", name: "mutex", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "canvasEl", name: "canvasEl", embedded: false, exported: false, typ: js.Value, tag: ""}, {prop: "ctx2d", name: "ctx2d", embedded: false, exported: false, typ: js.Value, tag: ""}, {prop: "released", name: "released", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "domEvents", name: "domEvents", embedded: false, exported: false, typ: ptrType$4, tag: ""}]);
|
|
143126
143590
|
$init = function() {
|
|
143127
143591
|
$pkg.$init = function() {};
|
|
143128
143592
|
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143129
|
-
$r =
|
|
143130
|
-
$r =
|
|
143593
|
+
$r = fmt.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143594
|
+
$r = dom.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143595
|
+
$r = errscreen.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143596
|
+
$r = screen.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143597
|
+
$r = f64.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143598
|
+
$r = image.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143599
|
+
$r = color.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143600
|
+
$r = draw.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143601
|
+
$r = sync.$init(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143602
|
+
$r = js.$init(); /* */ $s = 10; case 10: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143603
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
143604
|
+
};
|
|
143605
|
+
$pkg.$init = $init;
|
|
143606
|
+
return $pkg;
|
|
143607
|
+
})();
|
|
143608
|
+
$packages["github.com/supraio/client-daemon/pkg/x264/webcodecs"] = (function() {
|
|
143609
|
+
var $pkg = {}, $init, hex, webgl, errs, jshelper, general, canvasdriver, js;
|
|
143610
|
+
hex = $packages["encoding/hex"];
|
|
143611
|
+
webgl = $packages["github.com/nuberu/webgl"];
|
|
143612
|
+
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
143613
|
+
jshelper = $packages["github.com/supraio/client-daemon/pkg/jshelper"];
|
|
143614
|
+
general = $packages["github.com/supraio/client-daemon/pkg/x264/general"];
|
|
143615
|
+
canvasdriver = $packages["golang.org/x/exp/shiny/driver/canvasdriver"];
|
|
143616
|
+
js = $packages["syscall/js"];
|
|
143617
|
+
$init = function() {
|
|
143618
|
+
$pkg.$init = function() {};
|
|
143619
|
+
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143620
|
+
$r = hex.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143621
|
+
$r = webgl.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143622
|
+
$r = errs.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143623
|
+
$r = jshelper.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143624
|
+
$r = general.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143625
|
+
$r = canvasdriver.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143626
|
+
$r = js.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143627
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
143628
|
+
};
|
|
143629
|
+
$pkg.$init = $init;
|
|
143630
|
+
return $pkg;
|
|
143631
|
+
})();
|
|
143632
|
+
$packages["github.com/supraio/client-daemon/pkg/x264"] = (function() {
|
|
143633
|
+
var $pkg = {}, $init, errs, general, h264_decoder, webcodecs, js;
|
|
143634
|
+
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
143635
|
+
general = $packages["github.com/supraio/client-daemon/pkg/x264/general"];
|
|
143636
|
+
h264_decoder = $packages["github.com/supraio/client-daemon/pkg/x264/h264decoder"];
|
|
143637
|
+
webcodecs = $packages["github.com/supraio/client-daemon/pkg/x264/webcodecs"];
|
|
143638
|
+
js = $packages["syscall/js"];
|
|
143639
|
+
$init = function() {
|
|
143640
|
+
$pkg.$init = function() {};
|
|
143641
|
+
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
143642
|
+
$r = errs.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143643
|
+
$r = general.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143644
|
+
$r = h264_decoder.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143645
|
+
$r = webcodecs.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143646
|
+
$r = js.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143131
143647
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
143132
143648
|
};
|
|
143133
143649
|
$pkg.$init = $init;
|
|
@@ -143146,7 +143662,7 @@ $packages["golang.org/x/mobile/event/lifecycle"] = (function() {
|
|
|
143146
143662
|
return $pkg;
|
|
143147
143663
|
})();
|
|
143148
143664
|
$packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
143149
|
-
var $pkg = {}, $init, binary, json, query, clipboard, errs, input, message, netclient, netpacket, netstream, stats, window, x264,
|
|
143665
|
+
var $pkg = {}, $init, binary, json, query, clipboard, errs, input, message, netclient, netpacket, netstream, stats, window, x264, canvasdriver, webgldriver, screen, focus, key, lifecycle, mouse, size, image, io, ioutil, log, os, path, strings, sync, js, time, ProcessInfo, ProcessInfoManager, ScreenManager, screenParams, sliceType$1, sliceType$2, ptrType$3, ptrType$13, openScreenWindows, mutex, NewProcessInfoManager, NewScreenManager;
|
|
143150
143666
|
binary = $packages["encoding/binary"];
|
|
143151
143667
|
json = $packages["encoding/json"];
|
|
143152
143668
|
query = $packages["github.com/google/go-querystring/query"];
|
|
@@ -143160,7 +143676,8 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
143160
143676
|
stats = $packages["github.com/supraio/client-daemon/pkg/stats"];
|
|
143161
143677
|
window = $packages["github.com/supraio/client-daemon/pkg/window"];
|
|
143162
143678
|
x264 = $packages["github.com/supraio/client-daemon/pkg/x264"];
|
|
143163
|
-
|
|
143679
|
+
canvasdriver = $packages["golang.org/x/exp/shiny/driver/canvasdriver"];
|
|
143680
|
+
webgldriver = $packages["golang.org/x/exp/shiny/driver/webgldriver"];
|
|
143164
143681
|
screen = $packages["golang.org/x/exp/shiny/screen"];
|
|
143165
143682
|
focus = $packages["golang.org/x/mobile/event/focus"];
|
|
143166
143683
|
key = $packages["golang.org/x/mobile/event/key"];
|
|
@@ -143575,23 +144092,24 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
143575
144092
|
$r = stats.$init(); /* */ $s = 11; case 11: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143576
144093
|
$r = window.$init(); /* */ $s = 12; case 12: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143577
144094
|
$r = x264.$init(); /* */ $s = 13; case 13: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143578
|
-
$r =
|
|
143579
|
-
$r =
|
|
143580
|
-
$r =
|
|
143581
|
-
$r =
|
|
143582
|
-
$r =
|
|
143583
|
-
$r =
|
|
143584
|
-
$r =
|
|
143585
|
-
$r =
|
|
143586
|
-
$r =
|
|
143587
|
-
$r =
|
|
143588
|
-
$r =
|
|
143589
|
-
$r =
|
|
143590
|
-
$r =
|
|
143591
|
-
$r =
|
|
143592
|
-
$r =
|
|
143593
|
-
$r =
|
|
143594
|
-
$r =
|
|
144095
|
+
$r = canvasdriver.$init(); /* */ $s = 14; case 14: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144096
|
+
$r = webgldriver.$init(); /* */ $s = 15; case 15: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144097
|
+
$r = screen.$init(); /* */ $s = 16; case 16: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144098
|
+
$r = focus.$init(); /* */ $s = 17; case 17: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144099
|
+
$r = key.$init(); /* */ $s = 18; case 18: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144100
|
+
$r = lifecycle.$init(); /* */ $s = 19; case 19: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144101
|
+
$r = mouse.$init(); /* */ $s = 20; case 20: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144102
|
+
$r = size.$init(); /* */ $s = 21; case 21: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144103
|
+
$r = image.$init(); /* */ $s = 22; case 22: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144104
|
+
$r = io.$init(); /* */ $s = 23; case 23: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144105
|
+
$r = ioutil.$init(); /* */ $s = 24; case 24: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144106
|
+
$r = log.$init(); /* */ $s = 25; case 25: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144107
|
+
$r = os.$init(); /* */ $s = 26; case 26: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144108
|
+
$r = path.$init(); /* */ $s = 27; case 27: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144109
|
+
$r = strings.$init(); /* */ $s = 28; case 28: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144110
|
+
$r = sync.$init(); /* */ $s = 29; case 29: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144111
|
+
$r = js.$init(); /* */ $s = 30; case 30: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144112
|
+
$r = time.$init(); /* */ $s = 31; case 31: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143595
144113
|
openScreenWindows = $makeMap($String.keyFor, []);
|
|
143596
144114
|
mutex = new sync.Mutex.ptr(0, 0);
|
|
143597
144115
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|