diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..9f3768a --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,43 @@ +name: Test +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + os: [linux] + tags: [[], ['null'], [portal], [uinput], [x11], + ['null', portal, uinput, x11]] + include: + - os: windows + tags: [] + - os: windows + tags: ['null'] + env: + GOOS: ${{ matrix.os }} + GOFLAGS: -tags=${{ join(matrix.tags, ',') }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: stable + check-latest: true + - run: sudo apt install libxrandr-dev libxtst-dev libxt-dev + if: ${{ contains(matrix.tags, 'x11') }} + + - name: Go Format + run: gofmt -s -w . && git diff --exit-code + + - name: Go Mod Tidy + run: go mod tidy && git diff --exit-code + + - name: Go Vet + run: go vet ./... + + - name: Go Build + run: go build ./... + + - name: Go Test (with data race detection) + run: go test -race ./... + if: ${{ matrix.os == 'linux' }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..07c477a --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# Binaries +remote-touchpad + +# Systemd service state +.remote-touchpad.service.state + +# Logs and run files +.rts-log + +# Environment files +.env \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e09fa45..e59454c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,97 @@ # Changelog +## 1.5.4 (2026-08-02) + +* Improve X11 keyboard input +* Update dependencies + +## 1.5.3 (2025-12-24) + +* Update dependencies + +## 1.5.2 (2025-10-12) + +* Update dependencies + +## 1.5.0 (2025-03-18) + +* Add restore token support for the remote desktop portal +* Update dependencies + +## 1.4.8 (2024-09-01) + +* Update dependencies + +## 1.4.7 (2024-08-30) + +* Update dependencies + +## 1.4.6 (2024-02-06) + +* Prevent incorrect MIME types + +## 1.4.5 (2024-01-31) + +* Keep text input open after sending +* Workaround for virtual keyboard covering buttons (Chromium & iOS) +* Enable hardware keyboard input in mouse mode + +## 1.4.4 (2024-01-23) + +* Fix Xwayland detection on newer servers +* Fix support for the KDE remote desktop portal +* Set correct minimum version for Go +* Update dependencies + +## 1.4.3 (2023-10-03) + +* Update dependencies + +## 1.4.2 (2023-05-20) + +* Fix Windows support + +## 1.4.1 (2023-05-11) + +* uinput: Fix vertical scroll direction +* Update dependencies + +## 1.4.0 (2023-04-25) + +* Add feedback to buttons +* Add numeric keypad +* Prevent touch triggering mouse mode + +## 1.3.0 (2023-03-03) + +* Initial support for uinput +* Update dependencies + +## 1.2.3 (2022-12-29) + +* Improve XWayland detection +* Update dependencies +* Flatpak: Add Wayland socket to disable X11 socket + +## 1.2.2 (2022-09-23) + +* Update dependencies +* Fix race in RemoteDesktop portal controller + +## 1.2.1 (2022-06-20) + +* Update dependencies + +## 1.2.0 (2022-02-26) + +* Add command-line options for move and scroll speed +* Add hardware mouse support +* Limit update rate +* Windows: Reverse vertical scroll direction +* Show error message if compiled without controller +* Don't show disabled controllers in "unsupported platform" error message +* Switch from go-bindata-assetfs to go:embed + ## 1.1.0 (2022-01-28) * Add more shortcut keys (Arrows, Delete, Enter, …) diff --git a/README.md b/README.md index c6cc377..e039950 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,45 @@ Supports Flatpak's RemoteDesktop portal (for Wayland), Windows and X11. * [Snap](https://snapcraft.io/remote-touchpad) * [Windows](https://github.com/Unrud/remote-touchpad/releases/latest) * Golang: - * Portal & X11: `go get -u -tags portal,x11 github.com/Unrud/remote-touchpad` - * Windows: `get get -u github.com/Unrud/remote-touchpad` + * Portal & uinput & X11: + + ```sh + go install -tags portal,uinput,x11 github.com/unrud/remote-touchpad@latest + ``` + * Windows: + + ```sh + go install github.com/unrud/remote-touchpad@latest + ``` + +## Linux User Service Installation + +To install remote-touchpad as a user-specific systemd service (no root access required): + +1. Clone the repository and navigate to the project directory: + + ```sh + git clone https://github.com/Unrud/remote-touchpad.git + cd remote-touchpad + ``` + +2. Install the service using the provided wrapper script (no sudo required): + + ```sh + ./rts install + ``` + +3. Access the service: + + * View service status: `./rts status` + * Get URL: `./rts url` + * View logs: `./rts log` + * Stop service: `./rts stop` + * Start service: `./rts start` + * Restart service: `./rts restart` + * Uninstall: `./rts uninstall` + +The service will run in the background and maintain a persistent connection with URL and QR code accessible via the `url` command. ## Screenshots diff --git a/backend_portal.go b/backend_portal.go deleted file mode 100644 index d85cae1..0000000 --- a/backend_portal.go +++ /dev/null @@ -1,292 +0,0 @@ -// +build portal - -/* - * Copyright (c) 2018 Unrud - * - * This file is part of Remote-Touchpad. - * - * Remote-Touchpad is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Remote-Touchpad is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Remote-Touchpad. If not, see . - */ - -package main - -import ( - "errors" - "fmt" - "github.com/godbus/dbus/v5" - "sync" -) - -const ( - deviceKeyboard uint32 = 1 - devicePointer uint32 = 2 - - btnReleased uint32 = 0 - btnPressed uint32 = 1 - - // linux/input-event-codes.h - btnLeft int32 = 0x110 - btnRight int32 = 0x111 - btnMiddle int32 = 0x112 -) - -type portalBackend struct { - bus *dbus.Conn - remoteDesktop dbus.BusObject - sessionHandle dbus.ObjectPath - lock sync.RWMutex -} - -func InitPortalBackend() (Backend, error) { - bus, err := dbus.SessionBusPrivate() - if err != nil { - return nil, UnsupportedPlatformError{err} - } - cleanupBus := true - defer func() { - if cleanupBus { - bus.Close() - } - }() - err = bus.Auth(nil) - if err != nil { - return nil, UnsupportedPlatformError{err} - } - err = bus.Hello() - if err != nil { - return nil, UnsupportedPlatformError{err} - } - remoteDesktop := bus.Object("org.freedesktop.portal.Desktop", - "/org/freedesktop/portal/desktop") - availableDeviceTypesV, err := remoteDesktop.GetProperty( - "org.freedesktop.portal.RemoteDesktop.AvailableDeviceTypes") - if err != nil { - return nil, UnsupportedPlatformError{err} - } - availableDeviceTypes, ok := availableDeviceTypesV.Value().(uint32) - if !ok { - return nil, UnsupportedPlatformError{errors.New( - "unexpected 'AvailableDeviceTypes' return type")} - } - if availableDeviceTypes&deviceKeyboard == 0 || - availableDeviceTypes&devicePointer == 0 { - return nil, UnsupportedPlatformError{errors.New( - "keyboard or pointer source type not supported")} - } - inVardict := make(map[string]dbus.Variant) - inVardict["session_handle_token"] = dbus.MakeVariant("t") - result, outVardict, err := getResponse(bus, remoteDesktop, - "org.freedesktop.portal.RemoteDesktop.CreateSession", 0, inVardict) - if err != nil { - return nil, UnsupportedPlatformError{err} - } - if result != 0 { - return nil, UnsupportedPlatformError{errors.New(fmt.Sprintf( - "Calling 'CreateSession' failed (%v)", result))} - } - sessionHandleV, ok := outVardict["session_handle"] - if !ok { - return nil, UnsupportedPlatformError{errors.New( - "'session_handle' missing from 'CreateSession' return value")} - } - sessionHandleS, ok := sessionHandleV.Value().(string) - if !ok { - return nil, UnsupportedPlatformError{errors.New( - "unexpected 'session_handle' type in 'CreateSession' return value")} - } - sessionHandle := dbus.ObjectPath(sessionHandleS) - inVardict = make(map[string]dbus.Variant) - inVardict["type"] = dbus.MakeVariant(deviceKeyboard | devicePointer) - result, outVardict, err = getResponse(bus, remoteDesktop, - "org.freedesktop.portal.RemoteDesktop.SelectDevices", 0, sessionHandle, inVardict) - if err != nil { - return nil, UnsupportedPlatformError{err} - } - if result != 0 { - return nil, UnsupportedPlatformError{errors.New(fmt.Sprintf( - "Calling 'SelectDevices' failed (%v)", result))} - } - inVardict = make(map[string]dbus.Variant) - result, outVardict, err = getResponse(bus, remoteDesktop, - "org.freedesktop.portal.RemoteDesktop.Start", 0, sessionHandle, "", inVardict) - if err != nil { - return nil, UnsupportedPlatformError{err} - } - if result != 0 { - return nil, errors.New("keyboard or pointer access denied") - } - devicesV, ok := outVardict["devices"] - if !ok { - return nil, UnsupportedPlatformError{errors.New( - "'devices' missing from 'Start' return value")} - } - devices, ok := devicesV.Value().(uint32) - if !ok { - return nil, UnsupportedPlatformError{errors.New( - "unexpected 'devices' type in 'Start' return value")} - } - if devices&deviceKeyboard == 0 || devices&devicePointer == 0 { - return nil, errors.New("keyboard or pointer access denied") - } - cleanupBus = false - return &portalBackend{bus: bus, remoteDesktop: remoteDesktop, - sessionHandle: sessionHandle}, nil -} - -func getResponse(bus *dbus.Conn, object dbus.BusObject, method string, - flags dbus.Flags, args ...interface{}) (uint32, map[string]dbus.Variant, error) { - ch := make(chan *dbus.Signal) - bus.Signal(ch) - defer bus.RemoveSignal(ch) - var requestPath dbus.ObjectPath - if err := object.Call(method, flags, args...).Store(&requestPath); err != nil { - return 0, nil, err - } - for { - s := <-ch - if s.Path == requestPath && s.Name == "org.freedesktop.portal.Request.Response" { - if len(s.Body) != 2 { - return 0, nil, errors.New("unexpected 'Response' return length") - } - result, ok := s.Body[0].(uint32) - if !ok { - return 0, nil, errors.New("unexpected 'Response' return type") - } - outVardict, ok := s.Body[1].(map[string]dbus.Variant) - if !ok { - return 0, nil, errors.New("unexpected 'Response' return type") - } - return result, outVardict, nil - } - } -} - -func (p *portalBackend) Close() error { - p.lock.Lock() - defer p.lock.Unlock() - if p.bus == nil { - return errors.New("dbus connection closed") - } - if err := p.bus.Close(); err != nil { - return err - } - p.bus = nil - p.remoteDesktop = nil - return nil -} - -func (p *portalBackend) keyboardKeys(keys []Keysym) error { - p.lock.RLock() - defer p.lock.RUnlock() - if p.bus == nil { - return errors.New("dbus connection closed") - } - inVardict := make(map[string]dbus.Variant) - for _, keysym := range keys { - for _, state := range [...]uint32{btnPressed, btnReleased} { - if err := p.remoteDesktop.Call( - "org.freedesktop.portal.RemoteDesktop.NotifyKeyboardKeysym", - 0, p.sessionHandle, inVardict, keysym, state).Store(); err != nil { - return err - } - } - } - return nil -} - -func (p *portalBackend) KeyboardText(text string) error { - keys := make([]Keysym, 0, len(text)) - for _, runeValue := range text { - keysym, err := RuneToKeysym(runeValue) - if err != nil { - return err - } - keys = append(keys, keysym) - } - return p.keyboardKeys(keys) -} - -func (p *portalBackend) KeyboardKey(key Key) error { - keysym, err := KeyToKeysym(key) - if err != nil { - return err - } - keys := [...]Keysym{keysym} - return p.keyboardKeys(keys[:]) -} - -func (p *portalBackend) PointerButton(button PointerButton, press bool) error { - p.lock.RLock() - defer p.lock.RUnlock() - if p.bus == nil { - return errors.New("dbus connection closed") - } - var btn int32 - if button == PointerButtonLeft { - btn = btnLeft - } else if button == PointerButtonMiddle { - btn = btnMiddle - } else if button == PointerButtonRight { - btn = btnRight - } else { - return errors.New("unsupported pointer button") - } - state := btnReleased - if press { - state = btnPressed - } - inVardict := make(map[string]dbus.Variant) - if err := p.remoteDesktop.Call("org.freedesktop.portal.RemoteDesktop.NotifyPointerButton", - 0, p.sessionHandle, inVardict, btn, state).Store(); err != nil { - return err - } - return nil -} - -func (p *portalBackend) PointerMove(deltaX, deltaY int) error { - p.lock.RLock() - defer p.lock.RUnlock() - if p.bus == nil { - return errors.New("dbus connection closed") - } - inVardict := make(map[string]dbus.Variant) - if err := p.remoteDesktop.Call("org.freedesktop.portal.RemoteDesktop.NotifyPointerMotion", - 0, p.sessionHandle, inVardict, float64(deltaX), float64(deltaY)).Store(); err != nil { - return err - } - return nil -} - -func (p *portalBackend) pointerScrollFull(deltaHorizontal, deltaVertical int, finish bool) error { - p.lock.RLock() - defer p.lock.RUnlock() - if p.bus == nil { - return errors.New("dbus connection closed") - } - inVardict := make(map[string]dbus.Variant) - inVardict["finish"] = dbus.MakeVariant(finish) - if err := p.remoteDesktop.Call("org.freedesktop.portal.RemoteDesktop.NotifyPointerAxis", - 0, p.sessionHandle, inVardict, float64(deltaHorizontal), float64(deltaVertical)).Store(); err != nil { - return err - } - return nil -} - -func (p *portalBackend) PointerScroll(deltaHorizontal, deltaVertical int) error { - return p.pointerScrollFull(deltaHorizontal, deltaVertical, false) -} - -func (p *portalBackend) PointerScrollFinish() error { - return p.pointerScrollFull(0, 0, true) -} diff --git a/backend_x11_disabled.go b/backend_x11_disabled.go deleted file mode 100644 index 11a8234..0000000 --- a/backend_x11_disabled.go +++ /dev/null @@ -1,28 +0,0 @@ -// +build !x11 - -/* - * Copyright (c) 2018 Unrud - * - * This file is part of Remote-Touchpad. - * - * Remote-Touchpad is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Remote-Touchpad is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Remote-Touchpad. If not, see . - */ - -package main - -import "errors" - -func InitX11Backend() (Backend, error) { - return nil, UnsupportedPlatformError{errors.New("disabled")} -} diff --git a/bindata.generated.go b/bindata.generated.go deleted file mode 100644 index b6cc018..0000000 --- a/bindata.generated.go +++ /dev/null @@ -1,384 +0,0 @@ -// Code generated by go-bindata. DO NOT EDIT. -// sources: -// webdata/fn.js -// webdata/icon.png -// webdata/icon.woff -// webdata/index.html -// webdata/main.css -// webdata/sha256.js -// webdata/tex.png -package main - -import ( - "bytes" - "compress/gzip" - "fmt" - "github.com/elazarl/go-bindata-assetfs" - "io" - "io/ioutil" - "os" - "path/filepath" - "strings" - "time" -) - -func bindataRead(data []byte, name string) ([]byte, error) { - gz, err := gzip.NewReader(bytes.NewBuffer(data)) - if err != nil { - return nil, fmt.Errorf("Read %q: %v", name, err) - } - - var buf bytes.Buffer - _, err = io.Copy(&buf, gz) - clErr := gz.Close() - - if err != nil { - return nil, fmt.Errorf("Read %q: %v", name, err) - } - if clErr != nil { - return nil, err - } - - return buf.Bytes(), nil -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -type bindataFileInfo struct { - name string - size int64 - mode os.FileMode - modTime time.Time -} - -func (fi bindataFileInfo) Name() string { - return fi.name -} -func (fi bindataFileInfo) Size() int64 { - return fi.size -} -func (fi bindataFileInfo) Mode() os.FileMode { - return fi.mode -} -func (fi bindataFileInfo) ModTime() time.Time { - return fi.modTime -} -func (fi bindataFileInfo) IsDir() bool { - return false -} -func (fi bindataFileInfo) Sys() interface{} { - return nil -} - -var _webdataFnJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\x3b\x6b\x53\xdb\xc8\x96\xdf\xf9\x15\x27\xfa\x90\x92\x27\xc6\x60\xb2\xb9\x33\x17\xe2\xec\x3a\x20\x06\x2a\x80\x29\x3f\x26\x71\x51\x14\xd5\x96\x8e\x6d\x5d\x64\xb5\x47\xdd\xc2\x78\x26\xfc\xf7\xad\x6e\xbd\x5a\xad\x96\x4c\xb2\xf7\x7e\x59\x57\x25\x58\x3a\x8f\x3e\x8f\x3e\x8f\x3e\x92\xad\x98\x21\x30\x1e\xf9\x2e\xb7\x4e\xf6\x0e\x7e\xd9\x83\x5f\x00\x00\x4e\xe9\x7a\x1b\xf9\x8b\x25\x07\xdb\x6d\xc1\xd1\x61\xf7\xb7\xfd\xa3\xc3\xee\x3f\x61\x12\x46\xb1\x07\x1f\x63\xf1\xe7\x7f\x68\xcc\x03\x4a\x1f\x3b\x2e\x5d\x7d\xda\x83\x8c\x74\xbc\xf4\x19\xcc\xfd\x00\xc1\x67\xb0\x26\x11\x07\x3a\x87\x21\xae\x28\xc7\xfd\x31\x8d\xdd\xe5\x9a\x78\x9d\x02\x5d\x83\x08\xa2\x79\x84\x08\x8c\xce\xf9\x86\x44\x78\x0c\x5b\x1a\x83\x4b\x42\x88\xd0\xf3\x85\xa4\xb3\x98\x23\xf8\x1c\x48\xe8\x1d\xd0\x08\x56\xd4\xf3\xe7\xdb\x94\x9b\xcf\x21\x0e\x3d\x8c\x80\x2f\x11\x38\x46\x2b\x26\x56\x17\x17\xbf\xdf\x4c\xe0\x77\x0c\x31\x22\x01\xdc\xc6\xb3\xc0\x77\xe1\xca\x77\x31\x64\x08\x84\xc1\x5a\xdc\x61\x4b\xf4\x60\x96\xb1\x12\x44\xe7\x42\x92\x51\x2a\x09\x9c\xd3\x38\xf4\x08\xf7\x69\xd8\x06\xf4\xf9\x12\x23\x78\xc2\x88\xf9\x34\x84\xf7\xd9\x32\x29\xcf\x36\xd0\x28\xe5\x63\x13\x2e\x54\x88\x80\xae\x05\x69\x0b\x48\xb8\x85\x80\xf0\x82\xba\xd9\x1a\x85\xd2\x1e\xf8\xa1\x5c\x64\x49\xd7\x08\x7c\x49\xb8\xd0\x77\xe3\x07\x01\xcc\x10\x62\x86\xf3\x38\x68\xa7\x8c\x66\x31\x87\xaf\x97\xe3\x8b\xc1\x64\x0c\xfd\x9b\x29\x7c\xed\x0f\x87\xfd\x9b\xf1\xf4\x04\x36\x3e\x5f\xd2\x98\x03\x3e\x61\xc2\xcd\x5f\xad\x03\x1f\x3d\xd8\x90\x28\x22\x21\xdf\x02\x9d\xa7\x4c\xae\x9d\xe1\xe9\x45\xff\x66\xdc\xff\x7c\x79\x75\x39\x9e\x02\x8d\xe0\xfc\x72\x7c\xe3\x8c\x46\x70\x3e\x18\x42\x1f\x6e\xfb\xc3\xf1\xe5\xe9\xe4\xaa\x3f\x84\xdb\xc9\xf0\x76\x30\x72\x3a\x00\x23\x14\xc2\x61\xca\xa3\xc1\xee\x73\xe9\xbd\x08\xc1\x43\x4e\xfc\x80\x29\x76\x98\xd2\x18\xd8\x92\xc6\x81\x07\x4b\xf2\x84\x10\xa1\x8b\xfe\x13\x7a\x40\xc0\xa5\xeb\xed\x6e\xa7\xa6\x7c\x48\x40\xc3\x85\x54\xb9\xb2\x05\x01\x2e\xe7\x10\x52\xde\x06\x86\x08\x1f\x97\x9c\xaf\x8f\x0f\x0e\x36\x9b\x4d\x67\x11\xc6\x1d\x1a\x2d\x0e\x82\x84\x15\x3b\xf8\x24\x24\x3b\xd8\xdb\x3b\x38\x80\xbb\x2e\x48\x0e\x6d\x38\x4a\xbe\x20\x6b\xc3\xfb\xec\xeb\x3d\xd8\x62\x33\xf9\xcf\x18\xb4\xf6\x9e\x48\x04\xe3\xc1\xe4\xf4\xe2\xe1\x7a\xf0\x87\xf3\x30\xbe\x18\x3a\xa3\x8b\xc1\xd5\x19\xf4\xe0\xae\x7b\xd8\x86\xee\x07\xf1\xef\xfe\x44\xb0\xbd\x26\xcf\xc0\xfd\x15\xc2\x0c\xf9\x06\x31\x04\x97\x86\x0c\xdd\x98\xfb\x4f\x08\x3c\x61\x2e\xed\xe5\x06\xbe\xfb\xe8\x87\x0b\xe1\x0b\x2f\x22\x8b\x85\xf8\x2e\x16\x5d\xf9\x41\xe0\x33\x74\x69\xe8\x31\x75\xed\xf1\xe5\xb5\x23\x36\x41\x0f\x8e\x3e\x1c\xca\xb5\xee\xee\xa4\x80\x07\x09\x72\x1b\x56\x71\xc0\xfd\x75\xe0\xbb\x84\xd3\xe8\xbe\x0d\x9d\x4e\xe7\x5e\x32\xb8\x1d\x5c\xde\x8c\x9d\xe1\x43\xff\xf4\xd4\xb9\x72\x86\xfd\xf1\xe5\xe0\x46\x08\xbf\x27\x2c\x7b\x77\xd8\x86\xc3\xfb\x76\xf2\xfd\xb7\x5f\xdb\xd0\xcd\x2e\xba\xbf\xbe\x57\xae\x3e\x7c\x78\xdf\x86\xa3\xfb\xbd\xfb\x93\xbd\x12\xd3\xcf\x93\xf1\x78\x70\xf3\x70\xe5\x9c\x0b\xd9\x0e\x4f\x4c\xc0\xe1\xe5\xef\x17\x02\xda\x35\x42\xaf\x2f\xcf\xce\xae\x1c\xa1\x58\xca\xfa\x8b\x33\x7d\xf8\x63\x70\x35\xb9\x76\x1e\xae\x27\x63\xa7\x60\xab\x00\xce\x06\x5f\x6f\x0a\x8e\x0a\x60\x72\x9b\x70\xca\x6e\x5f\x3b\x67\x97\xfd\x87\xdb\xab\xfe\xf4\xe1\xb6\x3f\x19\x09\x6e\xef\x2b\xd0\xa1\xf3\xc7\xc3\x78\xd8\x3f\xfd\x02\x3d\xf8\x2f\x1d\x7a\xe3\x7c\x1b\xe7\xd0\x0f\x05\xf4\xf3\x70\xf0\x75\x24\xd4\x48\x20\xff\xa8\x42\xce\x07\xc3\xaf\xfd\xa1\xd8\x28\xbf\x16\xc0\xd1\xe4\xd6\x19\x42\x0f\x7e\x2b\x6e\xa5\xc6\xfb\x67\x71\x27\xb7\x98\xa2\xb9\xd4\xac\xab\x68\x9c\xd9\x40\xd1\xf6\x62\x70\x2d\x34\xec\x2a\x2a\x3a\x37\x42\x80\xae\xa2\x96\x10\xf8\x61\x74\xdb\x3f\x95\xa8\x8a\x46\x67\xce\x95\x23\xed\xdd\x55\x94\x19\x3a\xe3\xc9\x50\xae\xf3\x6b\xea\x9f\x0d\x4b\xbf\xc8\x0d\x7d\x4d\x45\x3c\xf7\x60\x4e\x02\x86\x27\xc5\xfd\x11\x17\x35\x23\xf7\x9d\xbc\x77\x45\x18\x77\x42\x4f\xbb\x3b\xc4\x00\x09\x43\xef\x94\xc6\xa1\x42\x41\xc3\x05\xf5\xc3\x45\x1a\x92\x62\xc3\xde\x27\x80\x15\x7d\xc2\x6f\xa3\x78\x55\xa0\x8a\x3b\xd3\xd2\x1d\xe6\x46\x34\x08\xbe\x19\xee\x95\xf1\xf2\xd8\x2b\x29\x90\xdd\x1d\xfb\x2b\x14\x39\xb6\x07\x61\x1c\x04\x2a\x97\x12\xc9\xde\x3c\x0e\x5d\x51\x14\x60\x1e\x07\x01\x73\x23\xc4\xd0\x09\xc9\x2c\x40\xcf\x6e\xc1\xdf\x32\x80\x22\xe4\x71\x14\x82\xed\x51\x37\x5e\x61\xc8\x3b\x15\x54\xf8\xfe\x5d\x62\x8a\x4f\x8e\xb5\xc1\xd9\xa3\xcf\xcf\x5f\x85\xbb\xa2\x7f\x09\xc4\xd1\x6e\x44\xd6\xc8\x50\x6a\xd5\x3a\xd9\x7b\x51\x14\x8b\xf0\xcf\x18\x99\x22\x88\x8d\x01\x0a\x66\xed\xb4\x1e\xb2\x4c\x51\x7f\x0e\x19\xac\x53\xa1\xca\x90\xc4\xa7\x16\xc9\xce\x38\x9e\x48\xdc\x17\xc0\x80\x61\x89\x6f\x62\x95\xe1\x6b\xb8\xd7\xa0\xee\x5e\x63\x45\xff\x52\xa8\x46\xb5\x0b\x98\xf0\x5e\xc1\x9d\xbd\x4a\x7a\x03\x9a\xce\xbb\xe4\x26\x7c\x56\x37\x8b\xad\xfa\x24\xf7\x7e\x19\x47\x5d\xb5\x06\xc5\xae\xaa\xa1\xed\x4f\x67\x37\x4b\x13\x62\x13\xe3\x15\xfd\xeb\x94\x84\x2e\x06\x66\xeb\x37\xe1\x35\xb2\x65\xaf\x90\x55\x47\xb2\x8d\xb6\x56\x02\x38\xf1\xd6\xab\x62\x3d\x41\x7d\x5d\xac\x37\xe0\x96\x63\xbd\x09\x91\x35\x32\x14\x79\x4d\x0b\x75\xd1\x98\xc9\xa4\x6b\xf3\xa4\x43\x12\x0d\xcd\x88\x93\xd5\x5a\xd3\xaf\xb0\x9c\xef\x61\xc8\xfd\xb9\x8f\xd1\x71\x92\xd2\x3b\xc5\x9d\x76\x8e\xb5\x26\x0b\xfc\x96\x21\xc8\x0b\x0d\x26\x4b\x46\x03\xc2\x54\x85\x4d\x35\x58\x85\x58\x41\xc8\x35\x38\x2e\xbe\x26\x1e\x2d\xab\xae\x96\x9c\xcb\xd0\xc3\xe7\xcf\xdb\x4b\xcf\xf6\xbd\x31\x3d\xf7\x43\x2f\x53\x5f\xf4\x6f\xb6\x28\x05\xbe\xac\x23\xe0\xc3\x47\xad\x58\x75\x02\x0c\x17\x7c\x29\x40\xef\x7a\xd0\x55\x37\x99\xd8\x8d\x65\xe4\x3b\xff\x5e\x31\x17\xf4\x7a\xa0\x2f\x98\x7d\x52\xbb\xfb\x27\xf9\xdd\x97\xbd\xe2\xff\x14\xba\xdf\xd5\xdc\x49\x02\x37\x16\xe7\x94\x5b\xea\x87\x1c\xa3\xbe\xeb\x62\x80\x91\x3c\xff\x5c\xc7\x01\xb7\xd9\x1a\xb1\x51\x37\x53\xff\xd8\xa0\xa1\x2c\x92\x47\xd0\x33\xd2\xdd\xf9\xf7\x77\x87\xf7\x27\x25\x64\xd2\x84\xdc\x55\x90\x85\xed\xd8\x11\x7c\xec\x41\x49\xe6\xec\xe3\xd2\x90\xfb\x61\x8c\xba\x79\x32\x52\x5f\xd8\xf6\xb0\xc6\xa8\xe4\xc8\x44\x26\x75\xe9\xd6\x8a\x07\xfb\xd0\x35\xe8\xb3\x8b\x40\xd5\x29\xcb\x15\x89\x1b\x60\x1f\x58\xb7\x05\x07\x52\x4f\xf9\xbd\x05\xbf\x80\x4d\xc4\x05\xe9\xb6\xe0\x1d\x90\xee\x89\xe2\x73\xa1\x56\x83\x7b\xe0\x53\x59\xdf\x74\x31\xa3\x6c\x4d\x6c\x4a\x52\x97\x76\x5b\x57\x0f\xa0\xb3\x72\xeb\x94\xe7\xc4\xba\x96\x4a\xc0\x36\xac\xc3\x30\xf4\x6c\x6b\x66\xc1\x3b\xe3\xc9\xe2\x1d\x58\x27\x87\x96\x96\xa8\xe2\xb5\x47\x38\x8a\xfe\xb3\x1f\x7a\x23\xd9\x96\xe5\xcb\xe5\x7d\x22\xf4\xe0\x9a\xf0\x65\x87\x47\x71\xe8\xda\x59\xeb\x98\x26\xf4\xbc\x77\xac\x62\x4d\x0b\x2c\x61\x64\x09\x25\x33\x96\x70\x68\xc1\xa7\x1e\x74\xe1\xfb\x77\x28\xdd\x9f\x26\xf7\x55\x8b\xe7\xbd\xea\x7e\x2f\xf9\x7e\x52\x02\x4d\x15\xd0\xb4\x00\xe5\x06\x59\x09\x83\x24\x7a\x08\x13\x64\x57\xd3\x96\xea\x0a\xa5\xdf\x2d\xeb\x51\x34\xc1\x8a\xbe\x69\x17\x6c\xc2\xac\xd3\x39\xe5\x63\xd0\x3a\xa5\xab\xea\xad\xf4\xdf\xfb\xbd\xec\xea\x44\x03\x4f\x4b\xe0\xa9\x0e\x4e\x7a\x6c\x1e\xa9\x11\x9d\x5b\x86\x09\x5b\x64\x5a\x67\xb6\xc9\xc4\x31\x95\xeb\x25\x09\xbd\x00\x65\x95\xb0\xf1\x89\x67\xc2\x8a\x43\xbb\x1c\x90\x2d\x90\x8b\x5c\x29\x7a\xe1\xf4\x24\x8d\xb2\x58\x24\xe7\x75\xbe\x44\x60\x64\x95\x1f\xe2\x73\x23\x19\x13\x7f\x25\xd1\x94\x4e\x44\xf8\xc4\x3b\x79\x19\x3a\x29\xe3\x68\xa7\xa9\xb2\x93\x79\x7e\x14\x12\x2c\xdc\x25\x09\x17\xe8\xa5\x2b\x9f\xd4\xa6\x6f\xfe\x13\x35\x49\xd5\x03\xde\xbe\x85\x37\xbc\xa8\x55\x9c\x44\x0b\xe4\x1d\x37\x20\x8c\x5d\xf9\x8c\x77\x44\xde\x25\x7e\xc8\x6c\x8b\xa7\x43\x19\xab\xf5\x23\xb9\x59\x28\xb3\x8e\xf0\x09\x43\x7e\x86\x73\x22\x6a\x52\xab\x9c\x51\x25\x5f\xe8\xe9\xad\x89\x94\xa7\x5d\xb6\xa7\x46\xe9\x7b\xcf\xd0\xab\xa9\xeb\x7a\xa7\xd2\x2a\x57\x1a\x41\xfa\xb1\x5a\x2f\x34\x43\xad\x63\x96\x4a\xa3\x90\xa7\x9d\x67\x13\xe1\x9d\xef\x3d\xdf\x8b\xed\x2d\x2e\x4d\x56\xa9\x1e\x98\x55\xe1\xde\x64\xf9\x54\x17\x4f\x39\x1c\xd7\xe7\x3d\x15\x79\x6a\x44\x9e\x96\x91\x5f\x4c\x81\xdd\x9c\x6b\xa0\x1c\xe6\xcd\xe9\x26\x53\x4b\xaf\x12\x6f\x92\x32\x51\xd9\x4d\x01\x92\x28\xab\x30\x1a\x8d\xa6\x62\x53\xdd\xd1\x71\x2a\xd9\xa6\xdc\x3f\xe4\x59\x49\x17\xa7\x48\x4a\x73\x4b\x5b\xde\x30\x2d\x28\x33\x37\x25\x29\x27\xf4\xd4\x14\xf5\x9f\x0c\xfd\x57\xc5\x88\xde\xa3\xbe\x2e\x50\x9a\x42\x5e\x0b\x22\xb6\x0e\x7c\x17\x05\xa3\x36\x74\x5b\x5a\x4a\x2c\x8f\x87\xde\xc9\xa1\x5f\x09\xa1\x08\x92\x9a\xcc\xfa\x1f\x74\x5e\xc6\xde\x20\xe9\x27\xe3\xd4\x38\xf5\x45\xa5\x38\x64\x89\xbf\xd8\x80\x2f\xaf\xa8\x31\x22\x37\x9b\x96\x36\x24\xf8\xba\x84\x51\x9d\x80\x19\xad\xb3\xbb\x35\xab\x7a\x59\x26\x2a\x45\xbb\xb7\x6f\xcb\x1e\x82\x7d\xb5\x30\x7e\x2c\x4f\xba\x75\x39\xc5\x4e\x9d\xc5\x9c\xd3\xb0\x9c\x0d\x1b\x3c\xd0\xd3\xcc\x90\x7d\x72\x36\x06\x7d\xca\x8c\x95\x11\x82\x99\xff\xd1\x8f\xf0\x97\x53\xdd\x1f\x5c\xe0\xfd\x8f\x2c\x90\x8c\xd2\xb5\x15\x1a\xfc\x99\xf2\x11\x2e\xec\xea\x9b\x5f\x88\x94\xad\x63\xb4\x94\x49\xb0\x6a\xb6\x65\xc8\xb3\x44\x5d\x39\x1c\xb4\x35\x8f\x1b\x4d\x53\x5d\xa4\x56\x87\x43\x5d\x87\x97\xba\xba\x6a\x18\x39\x43\x4d\x32\x16\x5b\x57\xcf\xc6\x2c\x5e\x7d\x2b\xa8\xd2\x3b\xd3\xf2\x9d\xff\x67\x19\x5b\x8b\x65\x53\x74\x7a\x3e\xe3\x59\x9d\x67\x7f\x46\x3c\x39\x40\xac\xe9\x46\x95\x49\x8e\x75\x60\xdf\xd4\x0d\x75\x8a\x21\x50\x5b\x04\xd6\xbb\x8a\xe7\xeb\x18\x4e\x1b\x18\x4e\x73\x86\x86\x0d\x6e\xce\xac\x8d\x99\x5b\x9d\x9e\xe5\xdb\x5e\x68\x6e\xa6\xba\x33\x2f\x21\x4e\xd4\x26\x4e\x0d\xf9\xf1\x53\xaf\x39\x41\x42\x7d\x29\x69\x8a\x07\xe9\xb9\xe7\xac\x13\x7d\xa5\x93\xca\x4d\xb6\xb7\xad\x92\x37\xba\x44\xeb\xee\xfd\x15\x9e\x61\xc0\x89\x5e\xc1\x6b\x58\x18\x2a\xbc\x0c\xc8\x77\x3d\xa1\xc8\x2f\xbb\x27\x5e\xf9\xf1\xd5\x7b\x6e\xc1\x81\xb2\xfe\x2f\xd0\x3d\x3c\x3c\x6c\x95\xf8\x4e\x25\xdf\xed\x8f\xf1\xdd\xee\xe0\x5b\x6b\x58\x83\x1f\x76\x53\x4d\x0d\xe6\x6f\xa6\x2a\x4c\x6c\x6c\x9a\xb4\xbe\xa6\xb9\x7a\x67\xed\x57\xd3\xfe\x6c\xec\x62\xe4\x48\x61\xe7\x79\xe6\x5d\x4f\x7a\xb9\xe6\x00\x93\x40\xa7\x95\x23\x58\xe3\xc2\x95\xe2\xad\x4d\x2d\x2a\xcb\x69\x63\x8b\xf2\x82\xf9\x37\xe3\x5c\xaa\xbe\xc0\x7c\xc1\xad\x47\x37\xa1\x5a\x63\xe4\x93\x22\x51\x35\x78\x14\x7c\xc1\xad\xb0\x8f\xb8\x24\x01\x57\xae\x7c\x76\x4a\x57\x6b\xca\x34\xa3\x25\x83\x39\x7d\x74\xf0\x88\x22\x46\x0b\x2c\x6b\x30\xb2\x8e\x8b\xe7\xd1\xc5\xa8\xdc\x1a\xc5\x6b\x8c\x6a\x60\xd7\xc8\x49\x0d\xe8\x33\x71\x1f\xd9\x9a\xb8\x98\xc2\x8b\x87\xcc\x0a\x92\x23\xc2\x26\x45\x48\x9e\x2b\x2b\xc0\x33\x0c\x90\x67\xe4\xc9\xa3\x68\x05\x7a\x41\x57\x19\xec\x62\x70\x5d\x66\xea\xa5\x00\xe7\xe6\x4c\xb9\x7f\x85\x73\x9e\x02\x44\xbb\xa2\x40\xfa\x51\x44\x37\xf5\xe0\xa1\xbf\x58\x66\x20\xd9\xb2\xe9\xa4\x4d\x08\x93\x75\x0a\x98\xdc\xea\x64\x66\xd0\x19\xdd\x84\x99\xd2\x83\xaf\x37\x3a\x91\x06\x4e\xdc\x7a\x27\xfc\xff\x88\xdb\xfb\x62\x58\x27\x1c\xfc\xa6\x27\xdf\x9a\x9a\xfb\x61\x12\xae\x6f\x04\x1a\x5b\xfa\x73\xb1\x6d\x4a\x8f\x17\x1b\x27\x2e\x79\x7f\xf5\x28\xfa\xab\x47\xdc\x1a\x1e\x63\x26\xeb\xab\x41\xfc\x13\xfc\xb9\xe0\x9f\xb2\x32\x06\x88\xbb\x24\x81\x58\x02\x87\xc8\xd6\x34\x64\x68\xaf\x90\x31\xb2\xc0\x52\x33\xb6\x24\x83\xd9\xbf\xc4\xc1\x1e\x37\xf0\x2f\x36\xba\xe8\xdb\xd6\xe8\xa2\xbf\x7f\xf4\xe1\x1f\x56\x1b\xac\xb1\xf3\x6d\x9c\xf5\x85\x09\x6a\x87\x21\xbf\xb8\xee\x9f\x7e\xc1\x6d\xc6\xcf\x8c\x97\x04\xb2\xbd\xf1\x43\x8f\x6e\x3a\x01\x75\x65\xaa\xef\x2c\x09\x5b\x76\x58\x3c\x63\x3c\xb2\xbb\x59\x57\x91\xce\xc3\x67\x9c\x12\x3b\x25\x5f\x24\xcb\xd8\xd6\xe7\xe9\xd8\x19\x59\xad\x64\x7c\x9d\x72\x23\x9e\xe7\x08\xfb\x5c\xf9\x8c\x63\x88\x91\x6d\x05\x94\x78\x56\x1b\x32\xe5\x4b\xa3\xec\x33\xe7\xbc\x3f\xb9\x1a\x3f\x7c\x71\xa6\xa3\x87\xd1\xa9\x73\xe3\x94\xa3\xd9\x3a\x86\x43\x65\xe7\x3c\xe2\x76\x46\x49\x24\xe2\xa2\x9b\x98\xb5\xe8\x4b\x49\xcc\x97\xa2\x2d\x74\x09\xd7\x27\x8d\xc9\x78\x18\x43\xd9\xb5\xe6\x4f\x10\xff\x8c\x31\xda\x8e\x30\x40\x97\xd3\xa8\x1f\x04\xb6\x35\xa3\xde\x16\x3e\x41\x47\xe2\x5a\xca\x6c\x99\xae\x31\x4c\x8e\x92\x39\xf5\x02\x79\xfa\xd8\x51\x76\xa7\x56\x8a\xa2\x52\xb9\x01\x65\x52\x94\x5a\xa2\x04\x43\xa5\x59\x93\x46\x02\x39\x83\x3c\x51\xb3\x1f\x6b\x42\x17\x70\x1d\x7f\x94\x19\x42\x5c\x18\x8c\x50\xd5\x3e\xb3\xfa\x8e\x95\x12\xcf\x28\x74\xc5\xd3\xe1\xfc\x5c\x57\x4b\xaf\xe3\x9a\xd6\xe7\xf8\xcc\x5f\x23\x83\xc0\x53\xe9\x89\xcb\xfd\x27\x94\x7a\x97\x4d\xd1\x97\x80\x1b\xb2\xc2\x93\xbd\xe4\xe4\x92\x05\x28\x5b\xd2\x8d\x24\xb0\xa5\x35\xd4\x1c\xa0\x70\x13\xc7\xc0\x82\x6b\x96\xb1\x4c\xcf\xcf\x45\xd2\x92\xa8\xc6\xf1\x72\x41\x51\x1d\x30\x9b\x5f\x59\x80\x52\x61\x56\x15\xef\x3c\x91\x20\x16\x92\x59\x96\x3a\xaf\x14\x3e\xef\xcc\x69\xe4\x10\x77\x69\xe7\xa1\x48\xf9\x12\xa3\x91\xae\xa1\xf8\x14\x10\x45\x62\x4e\x17\x8b\x00\x6d\x6b\xe9\x7b\x1e\x86\x56\x5b\xc1\x12\x39\x3a\x31\x95\x22\x60\x9e\xfb\xaa\xc6\xfd\x92\xed\x44\xdb\x17\x27\x3c\xbd\xa7\x7a\x73\x13\xaf\x66\x18\x75\x7c\x76\x19\x72\x5c\x60\x94\xa1\x7d\xff\x0e\xf2\x9b\x38\xe6\x89\x8b\x62\x47\x67\x39\xfb\x63\x0f\x2a\x2c\x25\x5b\x49\x56\x1a\xb1\x28\xd3\x5f\x64\xcc\xa7\xe1\x88\xd3\x88\x2c\x50\x24\xd2\x4b\x8e\x2b\xbb\xbc\x49\xda\x29\xe3\x82\x81\xe9\xa4\x5b\x91\xc8\x74\xd8\x4d\xbd\x96\x22\x8a\xe6\xb6\xc1\xca\xbe\x30\xae\xbe\xf4\x4b\xa3\x69\xed\x90\xac\x4a\x3e\x2d\x36\xb4\x58\x56\xe1\x53\x56\x51\xec\x1b\x99\x34\xe0\x1d\x48\x1e\xf0\xdf\x60\x1d\x8b\x2b\x79\x71\x0c\x96\xa5\x3d\x88\x10\xd8\x97\xa9\x69\xd7\x24\x62\x78\x19\x72\x5b\x33\xe7\xc2\x68\xce\x96\x7e\x78\x67\x37\xe4\xc6\xce\xf9\x55\x22\x41\x5d\xa9\x5a\x37\xee\xa4\x80\xdf\xbf\x83\x65\x89\x03\x68\x8d\x9b\x4b\x3b\xaf\x58\xaa\x2c\xc8\xd2\x67\x9c\x46\xdb\x0e\xe3\x84\xcb\x8d\xad\xc9\xad\xc9\x95\xa1\xaf\x63\x26\x4e\xb4\x1c\x2b\xdb\xc6\xaa\x8e\x11\x6b\x1c\x27\xc3\xd8\xae\x75\x9c\x04\x97\x9d\x57\x0d\xfc\x1a\xe3\x2b\x29\x3a\x31\x53\x0d\x9b\x39\x75\x63\x66\xef\x32\x89\xca\x6d\x97\x39\x0a\xdc\x26\x53\x94\x84\xa0\xa1\x1f\xae\xe5\x9c\xad\xd2\x36\x34\x84\xab\xba\x50\xd5\x34\x59\x36\x4a\x73\x7d\x61\xd8\xb4\x74\xb7\x52\x40\xf2\x2a\xe8\x64\x78\x95\xb6\x5e\x93\xe1\x95\x6d\x6d\x98\xd5\x86\xa2\x53\x8a\x70\xde\xca\x9e\xf1\x4f\x86\x57\x9d\x75\x44\x39\x75\x69\x00\xbd\xca\x8d\x1e\x58\xf2\xdd\x6d\x4b\x84\xd2\x86\x1d\x5b\x22\x8a\x36\x8c\x1d\x5b\x19\x83\x74\x9d\xaf\x38\x1b\x51\xf7\x11\xb9\x2d\x59\x64\xe2\x6c\x58\x87\x86\x69\x3b\xa7\xda\x43\x39\x56\x65\x5e\x2a\xb5\x40\x86\xe7\x01\xb2\xdd\xb0\xb5\x71\x91\x7a\xae\x2a\x47\x4b\xd6\xcf\x56\xbb\x55\xd1\xdb\x7a\x84\x13\x35\x84\xf5\xfe\x4b\x7b\xbe\x9d\x74\x87\x34\x5c\xd3\xb5\xdc\x44\xb6\xe6\x0e\xa9\xa6\x14\xb0\xce\xe9\x0d\x0d\x5e\xd9\x9f\x49\x57\xa5\xf1\x6f\xec\x91\xb2\x9e\xc3\xd0\xbd\xca\x17\xda\x4d\xed\x2b\x28\xf9\x24\x57\x26\xfd\xbb\xb3\x45\xf9\x3f\x2e\x98\xa6\x89\xf2\xa2\xb2\x6e\x1a\x5e\xd4\x55\xe9\xf5\x36\x4b\x29\x3b\xc4\xf3\xf2\x9a\x53\x7a\x0d\xa3\x42\xf3\x83\x32\xd7\xf4\x44\x3f\xd0\xe8\x98\x06\xe6\xd5\xb7\x6b\x73\xa3\x67\x5f\x9c\xec\x4d\xde\xbf\x43\xf2\xe4\x2f\x64\xe8\x4e\x2e\x8f\x41\x68\x89\xd6\x4b\x35\x11\xed\xf2\x1e\xdb\xf8\xdc\x5d\xfe\xac\xef\xf4\x6a\x79\xf8\x6f\xea\x23\xa4\xdf\xeb\x9a\x89\xa2\xc9\xcc\x5c\x6b\x1a\xaf\xaa\x62\xf9\xbb\x47\xab\x35\x65\x14\xde\xe5\x0f\x39\x33\x53\xde\xe5\x34\x7f\xfb\xde\x31\x58\xb3\x88\x6e\x18\x46\x33\xe2\x3e\xa6\x66\x94\x99\xfa\xb8\xf2\xc3\x83\x97\xb6\x46\xc9\xe2\x35\x46\x55\x1a\x39\xae\xa9\x20\xa7\xcb\xcc\x69\xb4\x29\x82\xcd\xb0\x52\xfa\x43\x86\x0a\xbd\x38\xe3\xf3\xc8\x28\xa4\xfe\xcb\x8a\x2a\x6d\x40\xb6\x6b\x12\x33\xac\xa5\xcd\x7f\xb3\x51\xa1\x0d\xf1\x99\x37\xae\x5b\xfc\x66\xa3\x42\xfb\x44\x83\x78\x85\x1e\xdd\x84\x55\x62\xe5\xc7\x25\x35\x74\xab\x98\x1b\x04\x56\x7e\xad\x52\x43\x17\xaf\x6b\xa9\x26\xb7\x55\xbf\x64\xc3\x34\x83\x4b\xf2\xb9\x5a\x85\x2a\xa9\x50\x55\x92\x64\xd2\x56\x41\xf7\xe4\xbc\xad\x8a\x9e\x8c\xde\x2a\xe8\x4b\xba\x32\x20\x5f\x0c\xae\xab\xa8\x18\x1a\xf6\x92\x73\x53\xdd\x3f\x01\xce\x79\x15\xf3\xca\x39\x1f\x57\x95\xf3\x17\x4b\x03\xae\x1c\xbf\x55\x90\x4d\xd6\x36\x98\xd9\xbc\x09\xa4\xf7\x25\xe6\xbd\xe1\x24\x68\x7c\x61\x5c\x4b\x80\xb4\xe3\x7b\x3f\x9c\xf6\xa0\x32\x79\xa3\xca\x5c\x4c\x4d\x16\xaf\xae\x9e\xff\x96\x92\x5d\x19\x59\xec\x4e\xff\x85\xff\x7f\x78\xd9\x74\x94\xa9\xb7\xa4\x75\x76\xe2\xe9\x84\xd2\xdc\xc2\x66\x9f\x9d\xe7\xfe\x0a\x52\xda\x57\x9b\xc7\x08\x59\xe7\x2e\xa2\x54\x6f\x2e\x2a\xfd\x5b\x5d\x97\xb6\xb3\x0f\x15\x08\xda\x79\x42\x1e\x47\x5a\xf2\x6d\x19\x6e\x5b\xc7\x56\xeb\xee\xf0\x5e\x36\xce\xc9\xfc\xca\x50\xb0\x72\x2f\x96\x18\x65\xc3\x4b\x49\x77\x6c\x65\xaf\xa4\x98\x9f\xbf\x57\x8f\x35\xbd\xa6\x63\x0d\xd4\x74\x5f\x1a\x57\x33\x51\x52\x28\xd7\xc4\xdb\xf1\x1c\xff\x65\xc7\x0e\x8c\x30\xa0\xe4\xa7\xf7\x60\x7e\x7c\x49\xd8\xd4\x36\xad\x86\x99\xa0\x52\xb0\x5b\xd5\xe4\x91\x40\xd4\xa5\x7e\xae\x53\xac\xdb\x84\xd0\x94\x24\xaa\x6b\xc8\xa7\x77\x8c\x93\x88\x5b\x6d\xf5\xf5\xd8\x57\x52\x62\xe8\xe5\x74\x4e\xe8\xbd\x92\xca\x95\x3f\xd6\xf9\x09\xc2\x15\x7d\xc2\x9c\xec\x9a\x3e\x61\x39\xe2\xaa\x54\x8f\xc9\x73\x35\xd5\x88\xa6\xb3\xa0\x32\xa6\x7c\xfb\x56\x9d\x5a\x1a\xbb\xc3\x47\xdc\x56\x5b\xc3\xea\x73\x3c\x53\xcb\x2c\xfe\xfd\x6f\x00\x00\x00\xff\xff\xc1\x47\xb5\xae\xa7\x3f\x00\x00") - -func webdataFnJsBytes() ([]byte, error) { - return bindataRead( - _webdataFnJs, - "webdata/fn.js", - ) -} - -func webdataFnJs() (*asset, error) { - bytes, err := webdataFnJsBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "webdata/fn.js", size: 16295, mode: os.FileMode(436), modTime: time.Unix(1, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -var _webdataIconPng = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x96\xe9\x3b\x14\xfa\xe3\x40\x3f\x63\x24\xb2\x5f\x4b\xb2\xa6\x14\x25\xa9\x64\x8f\x41\xb2\x6f\x59\x52\xb6\x68\x32\x2e\xb2\x94\x5d\x64\x64\xab\x84\xdc\xc9\xcd\x32\xc6\x50\xb6\x61\x48\x64\x1f\x4b\x62\x34\x64\xb9\x96\x21\xc6\x58\xc6\xa0\xc9\xce\x1d\x43\xc6\xef\xb9\x6f\x7e\xaf\xbf\xcf\x79\xce\xf9\x1b\xce\x4b\x3b\x1b\x53\xfe\x13\x92\x27\x00\x00\xfc\xe6\x66\xc6\xf6\x00\x00\xe4\x7f\x72\x73\x01\x00\xba\xf4\xbd\xfa\x00\x00\x5c\x0f\x2c\x4d\x8d\xc1\xd1\x7f\x60\x09\xa5\x28\x00\x4e\x88\x98\x1b\x1b\x3a\x46\xa2\x57\x29\xae\x8f\xa4\xc7\x64\x88\x9b\xeb\x39\x84\xe8\x85\xbe\x2a\xd5\x97\xab\xd9\x9e\x29\x92\xb9\x89\x9c\x86\x46\x48\x1c\xde\x02\x65\x26\xaf\xe2\x74\xce\xc0\x48\x45\x74\x14\x5b\x24\xee\x54\x57\xe4\x47\xc5\xe1\x82\xf0\x65\x16\x4e\xc6\x99\x2e\x17\x87\x3b\x5c\x0b\x5c\x70\xf6\x67\x38\x1d\x6f\x19\x88\xc8\x93\x64\x72\xf2\x8c\xfe\xb8\x1f\x21\xb3\x1e\xad\x3a\xd3\x87\xd6\x7f\xf4\x6b\xc2\x26\xdc\x67\x1c\x43\xc9\xbf\x77\x04\xb3\xbd\x4d\xef\xa7\x55\xa3\xa9\x03\xe8\x1c\x6d\x9f\x93\x89\x42\x46\xdc\xf2\xff\x53\xd6\x8a\xfd\x28\x5e\x67\x32\x27\x02\xb2\xf7\xf5\x8f\x1d\xbf\xce\x07\xcd\x43\xab\x5a\x8e\x9e\xc6\xcf\x3a\xe0\xb5\x03\xf7\x47\x45\x0e\x29\x94\x20\xf2\xa7\xda\x55\xf0\x3a\x6d\xc5\xee\xba\xf8\x11\xde\x84\x22\x28\xa1\xfe\xee\x82\x64\x21\xe7\x4f\xc1\x58\xbd\x9a\x94\xb7\xf6\x51\xba\xba\x13\x27\x3a\x26\xb2\x05\xc2\xba\x11\x47\x3c\xfb\xf4\xdd\x31\x45\x49\xc3\xce\x6d\x82\x1e\xc5\xf4\x57\x62\xc7\xb8\xa2\xb6\x64\x2a\xec\x4c\xfe\xba\x8c\xa4\x80\x15\xd1\x47\xae\x7e\x64\x7c\x8b\x2f\x98\x9d\x7b\xc4\xa5\xd1\xb5\x85\x92\x3b\xec\xb7\x51\xab\x31\x11\x84\x6d\x29\xb7\x58\x5b\xea\x77\x63\x30\x18\x4c\x44\x85\xfa\xa7\x5f\x8e\x5d\xa3\xcc\x49\x5f\x45\x37\xa2\xf3\x75\x6d\xbf\xb1\xde\x4f\x70\x75\xe9\xd0\x12\xd9\xe1\x3f\x2d\x1e\xf7\xe2\xd2\xbc\x81\xe8\xa3\x90\x12\xe9\x61\xce\x77\xae\xea\x1f\x43\xfc\x82\x22\xb0\x42\xc3\xd2\x32\x77\xf8\x69\x3f\xda\x3a\xcd\x81\x86\x16\x4f\x07\x97\x22\x64\x62\x56\x01\x48\xa1\x39\x3d\x13\x50\xe0\x51\x30\x1b\x71\xd2\xce\x99\x74\x9c\x2d\x44\x3a\x69\x0c\x15\x0d\xb1\x23\x25\x68\xe4\xb9\xe7\xf8\xd7\x79\x00\x3e\x18\xee\xbd\xdc\x67\x5f\xb5\xc4\xf7\x97\xda\xd6\x5d\xa2\x19\xde\xe2\xc3\x93\x9c\xfd\xb6\x85\x6a\x0e\xd8\xb0\xda\x8b\x61\x49\xb9\xd0\x37\x7d\xde\x39\x98\x1c\x43\x08\x21\x36\x36\xf1\xe6\x9c\xce\xdb\xcf\x26\xf9\x37\x25\x6a\x84\x37\x8e\x29\x37\x5c\xfd\xbd\x18\xfc\xe8\x07\x1f\x2b\x2a\x34\x86\xef\xd3\xcb\x9e\xb1\xe5\x6b\xea\x19\x90\xf9\x4d\xad\xe2\x07\x99\x0f\x6a\xcc\x1e\x20\x4a\x64\xd5\xc7\x6c\x58\x76\xae\xe1\xf0\x1d\x0f\x27\xc2\xb6\xf3\xba\xf8\x23\xa2\x44\xa3\xf8\x58\xec\xb1\xb2\x5c\x1f\xe2\xe7\xc4\xdc\x41\x90\x64\xe4\xb5\x32\xc8\xf2\x8e\x0b\x94\xf4\xc6\x72\x55\xdf\x4c\xd2\x21\x3f\x7b\xb1\x7c\x45\x02\xb2\xd3\x7f\x30\x30\xb6\x28\x8c\x69\xe7\xb5\x8b\xd5\x1d\x1f\x63\x59\x12\x57\xa6\x5f\xfd\x94\x7c\x82\x3d\x13\xb4\x19\x0a\x1c\x0f\xc4\x1d\x9f\xb6\x87\x10\x19\xb2\x49\x06\x79\x70\xe2\x36\xc7\x3a\x97\xc1\x85\x17\x01\x11\x7b\xd9\x5c\xa4\x15\x78\x33\xda\x27\x08\xea\xe4\xaa\x7a\x51\xa8\x7c\xc6\xc4\xb7\x2a\xfd\x7b\x0d\x21\x04\x53\x54\x1e\xa9\x2c\xbc\x30\xda\xda\xad\x9f\x57\x8f\x8c\xe3\x73\xaf\x53\xaf\xf8\x21\xd6\xa3\xd8\x03\x91\x58\x96\x2b\x8b\xba\x3f\xc8\x85\xfc\xb7\x0d\x97\xd7\xf2\x3c\x6a\x8d\xca\x92\xd7\x2d\xfa\x56\xdc\xde\x12\x40\xbb\xae\x9a\x1e\x44\x5f\x11\x4c\xb9\x90\x23\x66\x72\x68\x51\x78\x96\xf0\xe6\x06\xe3\xe1\xe7\xb0\xcf\x6f\xfa\xf0\x51\xf7\xd7\x3d\x38\xbe\x50\xc4\x34\x4f\x59\x6c\x77\x54\xd5\x88\xe5\x0b\x2e\xaa\x7d\xf9\x9e\x80\x9a\xd6\x7f\x82\xfb\x59\xe8\xa4\x45\x37\x7b\xe9\x31\xfb\x1d\x28\x25\x6d\x39\xb7\x51\xa9\xa7\xf2\xe0\x75\xca\x4e\x8f\x0f\x0a\xf1\x22\xc6\xbf\x8b\x49\x44\x66\xcb\xf2\xdc\x9d\xfc\x28\x35\x60\x82\xf4\xb3\x94\x6c\xee\x1a\x2b\xb0\xdd\xe3\xb3\xbe\xde\x68\xf7\xb8\x05\x37\xe7\xf5\x17\x39\x4a\x0d\x20\x6a\x7e\x22\xbc\x17\x58\x6d\xb8\x2d\x9a\x6d\x9e\xd3\x80\x80\x4a\x4f\x1e\x64\xa8\xc4\x9b\x7b\xbc\xd8\x91\xf5\x6b\xc8\xaf\xf5\x14\x30\x58\x5a\x62\x44\x6c\x44\xcb\x4e\x79\xdf\x90\x02\xff\x8c\x84\xe9\xd6\x55\x2d\xd4\x50\x7a\x6a\x21\x43\x2b\xe5\xfb\x56\xbf\x94\x1e\x7a\xca\xfb\x52\xaa\x6e\x45\x6a\x00\xd1\x90\x65\xda\x29\xa2\x60\x85\x88\x9c\xee\x33\x2b\xcd\xed\x40\x00\xf4\x0e\x5e\xbe\x87\x6a\xe4\x5b\x63\x47\x50\xe9\x32\xd5\xb7\x8d\xe6\x36\x72\x15\xe9\x91\x3a\x20\xfb\xd8\xce\xd7\x23\x03\xdd\xe0\xa9\x3b\xfd\x45\xa5\x33\xf7\x8e\x1e\xe7\x7a\x62\xe3\x90\xec\xf8\x1f\x54\x28\x92\x0c\x05\xcb\x49\xa2\x74\x5a\x1e\xa3\x25\x42\xf5\xe1\x15\x22\x55\xc9\x56\x82\xe2\x79\x43\x0e\x80\x6b\x3c\x3b\x39\x22\xfe\x2d\xea\x56\xb6\x5e\x18\xed\xdb\xb2\xbf\x03\x0c\x66\x62\xa5\x1a\x5d\xe4\xd3\xf4\x0f\x25\x43\xf9\xbe\x20\xfa\x9c\x86\x17\xd5\x88\x93\xcc\xd3\x9a\x53\xc8\xf9\xe9\x0a\x3a\xe0\xe4\x88\x2f\x8e\x8a\xef\x34\xe8\xd8\x7c\x3e\x6e\x59\x3a\x50\xe4\x73\x68\x50\x16\xdd\x52\x1e\x71\x5a\x91\x01\xf5\x13\x30\xb0\x0d\x52\x55\x1b\x19\xc1\x8a\xea\xe9\x11\x76\xcb\xca\x2f\xec\xeb\xf2\x07\xb6\x7e\x31\x75\xfe\xea\xf9\x64\x80\xb6\x28\x98\xfa\xe1\x09\xbe\x1d\x81\xa5\x83\xc4\x9b\x5e\xc9\xc9\x97\x2b\x4c\x55\xac\x43\xfa\xd6\x40\xc3\x3a\xff\xfc\x7d\x8d\x33\xfb\xfb\x18\x10\xb7\x3f\xc8\x11\x84\xf6\x5b\x3d\x79\x13\x7f\x95\xdb\x2d\x85\x61\xfa\x7b\x3a\xea\x90\x34\x70\x7c\x99\x5b\xf9\xd9\x46\x96\x50\xc2\x70\xea\x51\x2a\x87\xfe\xc4\x38\xfc\xa3\xba\x9f\x67\x64\x8c\xb6\x21\x83\x8f\x83\xbc\xfc\x77\x85\x72\x06\xdc\xe8\x59\x77\xbc\xcc\xb3\x74\x82\x7d\x9b\x9e\x63\x47\x67\x3e\x24\x70\x4a\x0a\xab\x62\xb7\xc6\xfa\xda\xfa\xad\xc6\x79\xbb\x75\x6d\x58\xad\x3b\x19\x06\x35\x3e\x3b\x06\xfb\xd2\xd7\x40\xad\x51\xed\x75\xd7\xe4\x7a\xa7\x23\x87\x6d\xa1\xcc\x76\x26\x78\x05\x4e\xaf\x55\xb8\xa6\xed\xd6\xcd\x41\x3d\xc9\xe3\x65\x9d\x99\x94\xac\x41\x71\x66\x8c\xbc\xf1\x50\xc2\x92\x03\x0f\xd2\x7a\x2a\xfa\x35\xae\xef\xf8\x59\xc3\x6e\xfa\x40\xea\x91\xee\x18\x2b\x20\x70\xb1\xb3\x5f\x23\x65\xb0\xc7\xb4\xbb\xa1\xb2\x60\x8a\xe3\xd5\x14\xf3\xd8\xde\xfc\x12\x47\x22\xf4\x0d\xc9\x17\xf3\xb4\xa1\x17\x36\xd3\xef\xf0\x64\x78\xe1\x38\x8f\x81\x4c\x22\xf4\x55\x01\x55\xd2\xe3\xf1\xf1\x61\xe1\x3b\xd3\xe1\xee\x48\xe5\x06\x89\xdf\xf4\xfb\xda\xd3\x5b\x89\x5e\x5d\x1e\x1c\xcf\xd9\x5b\x3f\x3f\x61\xbb\x27\x54\x42\xd9\x70\x99\x9d\x49\x58\x1a\xb5\x46\x35\xf8\xdb\x94\x29\x92\xe2\x1a\x1b\x13\x96\xf2\x54\x3f\x62\xad\xfc\x43\x67\x1b\x73\x51\xe8\x65\x5d\xc9\x59\x37\x02\x3c\x22\x60\x77\xb3\xe3\xbb\x97\x3e\xcc\xf3\xa8\xf6\x13\x1c\x1b\x8d\x0b\x17\xd8\x8f\x64\x13\x74\x6c\xfc\xf0\xf1\xde\xc0\x6a\xe4\xeb\x15\x97\x75\xe3\xab\x12\xea\x12\xaf\x5d\x1a\xd4\x44\x7f\xc9\x95\xaf\x8a\x07\xed\xde\x2c\x4e\xad\xd7\x5c\xee\x53\xb2\xaa\xfd\x67\xbf\x81\xf7\x12\xd4\xee\x52\x16\xb7\x86\x16\x08\x80\x74\x5b\x3b\xef\x35\xe1\xa8\x58\x15\x20\x37\x98\x7d\xe3\x20\x3c\x1e\xcd\xdb\x96\x51\x94\xdb\x9d\x2e\xd8\x48\xdb\xb6\xbf\xe8\x52\xe0\x7d\x09\xfa\xa6\x0f\x21\xb5\x3f\xbe\x9e\x2b\x2f\x67\xda\x2e\x5a\x54\xb1\x6a\x14\x59\xdd\xc4\x57\x45\xa1\x2f\x91\x07\x11\xe6\x2d\x91\x24\x36\x45\x33\x29\x1b\xa3\xb9\x12\x18\x61\xca\x71\xad\xa9\xd2\x5b\xaa\xcf\xc2\x61\xfb\x42\x68\x42\x9b\xb9\xff\xe0\x9b\x8c\xe3\x82\xc9\xce\xa1\xec\xa2\x39\xd9\x84\x02\xd9\x40\xb8\x43\x2f\x81\x39\x7a\x96\xc0\x75\x90\xc2\xd0\xac\xc4\xd5\xe7\xfa\xaa\xe3\xd5\x57\x1c\x17\x77\x33\x2d\x89\x75\x7e\x1b\x3f\xbe\xa1\xca\x67\x30\x33\xff\xa6\x0b\x30\xcc\xc5\x19\x85\xfd\x37\x28\xeb\xb0\x57\xb7\x2b\xf5\x2b\x4a\x27\xc6\x07\x9b\x32\x5b\x86\xd9\x24\x2a\x4d\xd8\xa6\xd5\x86\xb8\xe2\x83\xbe\x3c\x7c\x95\x95\xae\x9c\x23\xd5\x54\x5b\x75\x64\x72\x2d\x47\x21\xf3\x85\x22\x73\x7d\x8a\xec\x84\xcf\xcf\xbf\xcf\xa7\x9d\x65\xf6\xf5\x1b\x1e\xce\xdf\x2c\x53\x18\x12\x74\x2f\x5c\x1f\x09\xd3\x35\xdc\x41\xc1\xcb\x8a\x76\x57\x02\xde\x93\xbc\x6b\xfb\x07\xce\x03\x5c\x75\x02\x71\x26\x04\xb9\xe0\xe2\x7f\x5e\x51\xd1\xec\x1c\x2a\xac\x45\x9a\x93\x0e\xab\xa5\xdc\x31\x0a\xf6\x75\xf1\xff\xeb\x9b\x02\xca\x01\xf5\x27\xfe\xf6\x06\x7a\x4c\x7f\xbc\x5d\x92\xcb\x16\x94\x8c\xe7\x46\x9e\x19\x98\xdc\xac\x55\x58\xa2\x2b\xd1\xb6\xd3\x93\x0d\x4b\x2f\x75\x35\x3f\x4f\xc4\x5a\xf9\x5b\xcb\x17\xf8\x04\x06\xa6\x6f\xd6\xfa\x98\x29\xcc\xa7\x1e\xda\xff\x53\xc2\xf2\xa9\x38\x0c\x48\xbb\xc8\x7e\xba\x45\x83\x77\x30\xc9\xf7\xfc\x9d\xba\x46\xe2\x8a\x55\x1d\x9f\xfa\x20\x62\x28\x31\x42\xda\xc6\xb7\xdd\xef\x8e\x50\xdf\xc9\xc1\xb5\x98\x38\xd4\xa2\xf6\x4f\x74\xdc\x8b\x1a\xb3\xd8\xb8\x14\x07\xe5\xdd\x65\xfe\xa7\x4c\xf6\x10\x2e\x1f\x7f\x90\x75\xd7\x99\x9c\x11\x7f\x92\xec\xea\xa8\x5e\x9b\x74\x85\x37\xe9\x47\x41\xfa\x2d\x0b\x9e\x2a\x92\x34\xb1\x5a\x73\x06\xcd\xb6\x10\x6d\x1d\x92\x15\x80\x3d\x2c\xc5\xe3\xc1\xeb\xf4\xf4\xcb\x5f\x9b\x9b\x05\xa0\x19\x90\xb0\x9c\xfd\xa2\xcf\x0f\xce\x60\x32\x85\x2a\x6d\xcd\x95\x77\xff\xfc\x80\x5f\xdd\xa8\x72\x6f\x41\x1f\x6c\x2e\x2f\xda\xa0\xb5\x1e\x7f\x4e\x7e\xaf\x14\x66\xd6\xb5\x48\x2a\x2c\xc8\x62\x48\xc0\x6c\x94\x58\x90\x64\xfb\x1d\xa6\x31\xf7\x31\xbf\xf6\x82\x81\xbd\x66\xd6\xf5\x18\x68\x02\x6f\x90\xb0\x0a\x26\xbc\xa8\xb2\x39\x78\xeb\x0f\xac\x97\x47\x67\xa9\x4b\xf9\x02\xce\x31\xfa\xc1\x11\xfb\x50\x1d\x1f\x14\xf2\xdd\x21\xcb\x16\xd3\xc6\x34\xe4\xcf\x30\x60\xc5\x9b\xc6\x45\x24\x7e\x3c\x59\x3a\x31\x51\x18\x65\x22\xb3\x47\xc1\x7f\xbf\x0c\x75\xdb\xd1\x69\x94\x60\x44\x4a\x8f\x2a\xdb\xc9\x4e\xda\x28\x5c\xa3\x6d\xad\x45\xc2\xc7\x49\x6e\x22\xc8\xe1\xb3\xed\xf7\x5f\xbc\x7d\x95\x82\x8c\x4b\x48\xc4\xde\x76\x13\x01\x48\xf6\xba\xb4\xa5\xa9\x45\xf1\x59\x33\x6e\xc9\x1e\x27\x08\xe0\x31\x7c\xdf\x74\x19\xd8\xa9\x70\xce\xb8\xc5\xcc\x21\xaa\xf8\x80\xe3\x09\x43\x17\xa3\xd9\x2b\x64\x2e\xa0\xc0\x99\x36\xfb\x13\x20\x13\xb1\x33\x6e\x72\xe0\xae\xf0\xf3\x77\x06\x46\xb3\x0a\xb6\x9c\x80\x24\xaf\xb4\xf2\x45\xf3\x6f\xd8\xa5\x5c\xab\x0f\xe4\x9d\x35\xec\xe4\xa7\xa4\x79\x0c\x82\xfc\xb1\x57\x0d\x02\x24\x08\x8c\x15\x1a\x2b\xe5\x96\x2a\x24\xdb\xa5\x9a\x75\xcc\x5e\x2d\xcb\x6a\x44\x7d\x3b\x4f\x4f\x0c\xdc\x6d\x96\x8e\x49\xf3\x96\x97\xc8\x78\xca\x10\xbf\x8a\x52\x69\xa6\x9d\xd4\xd4\x93\x00\x8d\x5a\x9c\x1e\xcd\xd2\xa2\x16\xe7\x27\x63\x0c\x39\x3e\x7a\x54\x10\x39\x3d\x9a\xa4\x15\xfe\xd2\xb6\x12\x21\xc7\xc8\x11\x7c\xa0\x60\xf1\xaa\xa1\xf9\x92\x60\xb5\x40\xbc\xab\x9c\xd4\xe0\xc0\x52\x2f\xed\x04\xb2\x1e\x06\xad\x1f\xb8\x21\x03\xca\xae\x5f\xb1\x42\x91\x1a\x7d\xc2\xdf\xf8\xfa\x21\x06\xbc\xb5\xde\xe9\xb4\x57\x9a\x87\xb4\x36\x89\xb9\xcf\xb2\x40\xc7\xb9\x40\xe1\xf8\x9c\xa6\x4b\x3e\x08\xba\x79\xc9\x36\x8d\xf7\x7c\xc9\xe4\x84\x18\xeb\x9c\x03\x4a\xf9\x6d\xb6\x35\x7d\xef\x91\xce\xad\x8b\xae\xb2\x7b\xca\x7b\x4a\x99\x02\x84\xa1\xa1\x07\xb8\xe0\xef\xaf\x4f\x2b\xbe\xd6\xdb\x5d\xb5\x29\x38\xa1\xcf\xbb\x5f\x82\x20\xdb\xc7\xf7\x8c\x52\xa7\x9f\x31\x51\x71\xfe\xe1\xf2\xa9\x2e\xf3\x7c\x1f\x97\xbf\x64\x23\xdf\xe5\xb9\xf7\x15\x2b\x15\xc7\xcd\x95\x0c\xa4\x88\xf3\x02\xb4\xa0\x61\xe5\x02\x32\x99\x08\x69\x88\x91\x1a\xd4\xc6\x8f\x46\x98\xb6\xed\xd2\x54\xf3\xdc\x7b\xfd\x54\xc2\x78\xee\xae\xbe\x2f\x5d\xa3\xa4\xcd\x97\xd9\xef\x03\x17\x77\x81\xd1\x88\x24\x86\x05\xca\x62\x3b\xd3\x77\x83\x69\xd7\xf9\x7b\x61\x48\x2f\xee\xa5\xe6\x06\x55\xfc\xff\x47\xab\xb1\xf7\x08\x92\xf1\xb6\xbe\x3e\x54\x6c\xca\x10\x00\x00\xcc\x6f\xd9\x18\x57\x19\x79\x3e\xff\xbf\x00\x00\x00\xff\xff\x9a\xb9\x5e\xe2\x5e\x0a\x00\x00") - -func webdataIconPngBytes() ([]byte, error) { - return bindataRead( - _webdataIconPng, - "webdata/icon.png", - ) -} - -func webdataIconPng() (*asset, error) { - bytes, err := webdataIconPngBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "webdata/icon.png", size: 2654, mode: os.FileMode(436), modTime: time.Unix(1, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -var _webdataIconWoff = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x6c\x97\x67\x50\x13\xf8\xf3\xc6\xbf\x09\x45\xa5\x47\x8a\x14\x81\x20\x4a\x55\x40\x44\x88\x68\x00\x41\x43\x0d\xc1\x50\xa4\x93\x00\xa1\xf7\x62\x50\x90\x26\xc5\x42\x6f\x82\xd2\xa5\x1d\x28\x25\x34\x45\x4a\x88\x44\x04\x12\x40\x8a\x07\x08\x47\x55\x08\x4a\x11\xd0\xa3\x49\xfe\x73\x77\xff\x97\xbf\x9d\x79\xe6\x99\xd9\xd9\x7d\xf3\xec\xbe\xf9\x10\x31\x28\x14\xc6\xc2\x02\x03\x00\x77\x3d\xe0\x04\x00\x00\xc1\x32\x00\x01\xff\xb3\xf4\x50\x28\x38\x00\xac\x02\x00\x9c\xd0\x07\x80\x87\xf2\x34\x82\xb5\x09\x85\xb2\x40\x03\xc0\x1d\x02\x00\x38\xfd\x8f\xd2\xbb\xbe\xf9\xeb\xdf\xb8\x89\x02\x80\xdb\x1e\x00\x20\xfc\x6f\x5f\x10\x08\x60\xcc\x95\x55\x01\x80\x78\x00\x00\x4c\x00\x00\xb8\xdd\x35\x57\x4e\x17\x5f\x7c\x00\x00\xd0\x1d\x00\x20\xc7\x00\x80\x76\xde\xac\x58\x4d\xf3\x20\xe0\x5d\x01\x80\x1c\x07\x00\x5c\x06\x00\xa8\x0b\xcf\xe3\xed\x3c\x3c\x08\x78\x00\x20\x3a\x00\x00\x71\x00\xc0\xd9\x63\x9e\x2c\xc6\x1e\xbe\x21\x61\x00\x70\xa7\x01\x00\x24\x01\x00\x08\x4e\x2e\xa8\x97\x2f\x3e\x2c\x00\x00\x08\x0e\x00\xc0\xfe\xaf\x44\xcd\x80\x1f\xde\x97\x00\x00\xa4\x09\x00\x08\x12\x00\x28\x5f\xfa\xe4\x2b\xe7\x00\xff\xe0\x10\x00\x58\x0e\x01\x00\x42\x00\x00\x38\xb3\x15\xa8\x85\xe5\xbb\xe0\x5c\x71\x38\xe0\x7c\xf4\xfe\x9c\xc8\x8f\x43\x75\x27\x91\xd7\x36\xc2\x3a\x73\xfb\xa2\xb3\xce\x7c\xf7\x31\x0b\xba\x9c\x0f\xe6\xa2\x78\xbf\x6a\xd0\xb6\x74\x94\x8e\xb1\xf0\x1b\x08\x00\x09\x76\x0e\x34\x00\xe0\xff\xf7\x72\x98\x1b\xdd\x7c\xef\x28\x00\x4a\xf3\x17\x16\x16\x31\x83\xf0\x03\x14\x1e\xda\xf1\x6f\x6a\x66\x00\x88\xfe\x37\x87\xc7\xe3\xf2\xc9\xe4\x7e\x32\x59\x2d\x93\xc1\xc5\xc2\xa2\xa7\x1d\xe7\x16\x41\xc7\xd1\x3e\x9c\x10\x20\xe0\xd8\x32\x54\xc8\x3d\xc3\x9b\xe0\x3d\x8f\x41\x30\x1a\x8f\x28\x46\xcc\x33\xa3\xdc\x16\x99\xef\xb9\x2e\xd2\xb6\xb8\xae\x46\x53\x92\x02\xa8\x1c\x3a\x1f\x8e\x83\x16\x0a\x8f\x61\x58\x3e\x21\xad\xc3\x8f\xa2\x22\x10\x9f\x2a\x65\xd6\x66\xb1\x36\x4d\x95\x36\x40\x2f\x85\x41\xa4\x2c\x4a\xce\x48\x85\x96\x43\x2d\xb3\x35\x8b\xf9\xd8\x58\x7b\x3e\x9c\x65\xc1\x0c\xbf\x31\x96\x2c\x71\x29\x4a\xd6\x5f\x79\xe4\x92\xf3\x29\x3d\xb8\xd3\x7b\xa6\xc8\x85\xe5\x75\x37\x2f\xeb\xea\xcf\x68\x8d\x21\x28\x44\x0b\xa9\x11\x10\xef\x3f\x84\x36\xc8\x47\x1e\x3b\xde\xd3\xb1\x2c\xe4\x47\xcd\x5c\x56\x1f\x9a\xcd\x93\x8f\xf5\x46\xd5\xd5\x56\x3b\xc7\xf0\x68\x5d\xd3\x40\xfc\x3d\x10\xcc\xef\x72\xaf\xea\x8a\x8e\xfe\xf4\x5d\xbf\xeb\x1c\x8c\x37\xf4\xed\x53\x26\xb8\x00\xf2\x09\x21\x31\x57\xeb\x17\xc5\xcf\x95\x4e\xee\x54\x89\x72\x5c\x64\x2f\xbb\x12\xe4\x96\x65\x9d\xae\x3f\x66\xac\xe6\x16\xda\xf7\x4c\x7c\x1c\xf7\xe4\x61\x36\x7b\xf8\x35\x28\x7f\x30\x62\x12\xdd\xa2\xe4\xaa\xc1\x30\x7c\xb5\x10\x93\xbf\xdc\x62\xdf\x77\xcb\xa6\x6f\x22\x8b\x3a\x98\xeb\x9b\x95\x8b\x6c\x2c\x72\xc0\x9b\x1a\x70\x31\x2f\x95\x85\x98\x93\x36\x32\x32\x55\x8c\x1b\x83\x5a\xcf\x9a\x38\x60\xe7\xc7\x54\xa5\x43\x95\xa4\xf7\xb3\x84\x83\x9c\xa6\xc6\xd2\x51\x92\x52\xfe\x7c\x6d\xcf\x3d\x22\x73\x9f\xb5\xe7\x8a\x3e\x2f\xc7\xea\x1b\xf1\x10\x2e\xa7\x94\x1e\xe0\x4f\x7b\x95\xff\xd4\x96\xe5\x1c\xac\x47\x6c\x85\xae\x76\xf6\x77\x18\x2e\x35\x3d\x7b\x7c\xd3\x2b\x55\x4c\xfd\x96\x42\x4a\x16\x76\xcb\x3f\xd1\x89\x10\x81\x41\xfc\x7b\xb3\x99\xe1\x0e\xa3\x07\x17\x05\xd8\xe7\x34\x5a\x5a\xac\x0e\x99\xd4\xeb\x9b\xc6\xc5\xda\xa7\xeb\x7a\xba\xbd\x3d\xae\x6a\x8e\x2f\x08\xee\x70\x64\x29\xf9\x45\x62\xed\x43\x05\xdb\x38\x3a\x62\xe0\xe2\x5a\xda\x21\xad\x21\x1f\xa9\xe5\x9d\x7d\x81\x01\x7c\x21\xea\x9b\x4b\x68\x9e\x98\x25\x56\xf2\xb5\x68\xa8\x38\x36\x5d\x02\x87\x78\x37\xdd\xe8\xe5\xdc\x11\x4d\xb5\x56\x5e\xc8\xf0\x0c\x24\x8f\xdb\x8f\x60\x12\x5a\xbe\x54\xd7\xae\xf7\xa0\xbd\x1f\x24\x64\x57\x34\x95\x4b\x3b\x30\x0c\x15\x5e\x4c\x72\x19\x0c\x76\x15\xe4\x1d\x86\xc8\x68\xd3\x53\x0b\xfd\x48\x4f\xbf\x5f\x19\x68\xfc\xfd\xa3\x6f\xb1\xa6\x6b\xbb\xf5\x68\xaa\xf2\x88\x52\xb4\xe7\x72\x7f\x40\xd9\x45\x7e\xd0\xdf\xe9\x2d\x3d\x40\xf9\xa7\x1e\x3f\xad\x84\xe3\xfe\x54\x8e\xee\x89\x00\xcb\x78\xd5\xc6\xda\x7a\xb2\x40\x3c\x47\xb0\xae\x79\xed\x64\x94\x6f\x71\x3d\x97\xda\x4b\x0a\x07\x1c\x1d\x6f\xe9\x66\x87\x4f\x9e\xbc\x65\xed\x7e\x47\x50\x3d\x17\x29\xf8\x97\xfc\x1f\x14\xa1\xe0\xb2\x7a\xee\x6d\xc7\x94\x68\x71\xb7\x78\x0a\x73\x83\x12\x61\x7f\x93\x2c\x61\xa7\x38\x8f\x29\xda\x2e\xea\x95\xed\x96\xc7\x9c\xf9\xf7\x27\xdd\xc0\x03\xa6\x9d\x70\x52\x8c\x80\x34\x8b\x28\x00\xe7\x3f\x42\xbe\xfd\x93\x4f\xf6\x6d\x6e\x1f\x81\x5e\xc1\x42\x6a\xe1\xe7\xee\x3b\x29\xce\x8d\x72\xa6\x05\xc8\x53\x26\x99\xc7\x05\x5d\x74\xc9\xb7\x8c\x05\x7c\x54\x10\xe5\x3a\x23\x5b\xb7\xcf\x29\xc0\x02\x93\x04\xeb\x1d\x7a\xe2\x59\xf9\xeb\xef\xb7\xb6\x86\x6b\x10\xdf\xb6\x12\x73\x99\x5d\x3a\x53\xa2\xb0\xfa\x87\xa3\x16\xc9\x16\x99\x19\x47\x88\xd8\x1b\x68\xb8\xaf\xc5\xf7\xac\x2a\xf4\x4c\x8e\x42\x72\xb5\x4c\xe3\xf2\x95\x85\xce\x49\xa4\xbe\x3a\xdb\xa3\xfd\x88\xed\xaf\xf4\xf6\xfb\xdb\x5f\x7f\x47\xf8\x63\x74\xf7\xf6\x0c\x32\xce\xda\x77\x95\x94\x8b\x18\xf2\xa7\xc5\x59\x21\x32\xd3\x2e\xdd\x0e\x92\xc8\x9d\xa3\x0d\x04\xaf\xd3\x52\x4f\x19\xae\xea\xf3\x3b\x8a\xca\xf7\x9b\x4b\x22\xb5\xb0\x59\x75\x42\xc5\x8f\x86\x6a\x6b\xcb\x76\x06\x0c\xd3\x23\x1e\x2a\x8b\xf9\x0d\xed\x2c\xa8\x3e\x32\x55\xd0\x5b\x51\x24\x60\x67\x97\x54\xd5\x6a\xbe\xa7\x4c\x39\x5b\xc8\x64\x09\x15\xf7\xad\xd4\x54\x41\xe9\x37\xb6\x87\xa1\x4d\xc7\xef\x8b\x21\x13\x3e\x95\xfc\xac\x82\x5d\x7e\x01\x9f\x8a\xd1\x95\x4b\xf0\x69\xe2\x15\xbf\xa9\xad\x5b\x39\x6c\xb3\x73\x69\xc7\x5d\x2d\xae\x16\xf9\x86\x60\x3c\xd0\x82\xe6\xc6\xf8\x87\xca\x76\x5b\x3d\xf5\xf1\xf4\x9a\x5e\xb9\x70\x6d\x9c\xf4\xea\xca\xc4\xb4\x5a\x65\x75\x45\xc5\x7c\x62\x77\x85\x7b\xd1\xf4\xd8\x70\x7b\xc9\xf5\x97\xd3\xda\xee\x85\xfa\xd5\x48\xec\x62\x06\xf5\xc9\x35\xd2\x84\x74\x68\x2c\xcd\x29\xac\x0b\xce\x3b\x98\x27\x6d\x40\x6f\x9f\x94\xf8\xf1\x7a\x4f\x42\x63\x76\xb1\x1a\x49\x1a\xb6\x7b\x59\x20\xf9\xb2\x3a\x1c\xd7\xa2\xa1\xb5\x92\xc2\x89\xb7\xdf\xc5\x39\xf8\x1a\x7f\xdb\xae\x4d\xff\xf2\xb7\xdf\xeb\xba\x88\xc1\xef\xd5\xab\x5b\x96\x74\xbb\x58\x4c\x76\x94\xa2\xdc\x87\x77\x17\xba\x5f\x3d\xb7\xb5\x2d\xcc\x6b\x2e\x21\x6c\xeb\x51\x36\x6a\x37\x60\x19\x21\x7d\x69\xa5\x58\x93\x52\xac\xbd\x91\x41\x85\xab\xa1\x61\x5f\x0e\x16\x6b\x3b\x75\x21\xd4\x30\xbc\xac\x63\x44\xcb\xb3\x2b\x44\x47\x53\x4e\x3c\x83\xc7\x58\xbf\xec\xc5\x8a\xd2\xfc\x67\xcf\xaa\x93\xa1\x70\x7e\x87\xec\x16\x63\x49\x0c\x22\xfd\xef\x3b\x9d\xe9\x45\xdd\xdc\xbb\xa9\x9d\x68\x12\x46\x29\x7d\x80\x90\x69\xb0\x34\xfe\x88\x68\x6a\xaf\xfe\x63\xe6\x91\x34\x5b\xdd\xa9\xc8\xc4\x5f\x57\x14\x0f\xca\x3a\x3b\x4d\xa2\x9c\x1c\x67\xc7\xe6\x6d\x06\xbd\x9d\x68\x5b\x3f\x09\x7a\x8f\x1b\x55\x47\x8b\x1c\xe4\x0f\x6c\xd2\x2c\x8d\x4d\xd1\x28\xcb\x7e\xce\x43\x53\xee\x9a\xc1\x01\xfb\x60\x23\x41\xaf\x9b\xf4\x2a\xc3\x5d\x41\x7d\xaa\xad\xd7\xa9\x71\x8a\xca\x50\x35\x62\x0c\xbf\x31\xa1\x7f\xc2\x7b\xbb\xdc\xbc\xc4\x0c\x1e\xae\xcb\x53\x4e\xf1\xcc\x9e\x61\x8b\x50\x10\x0f\x30\xfd\xc0\xb0\x10\xdd\x55\x4f\x1d\xfa\x83\xa9\x58\xc5\xb4\x35\x45\xda\x91\x63\x39\xc6\x17\x51\x14\xb8\x0f\x3c\x5c\xa3\xe5\x5d\xf8\x1f\x05\x67\xbe\x3f\x0e\xd6\x30\x25\x7a\x1e\x23\x62\x29\x9f\x23\x4a\x02\x4c\x1d\x10\xe2\xd8\x3d\x07\xf2\x72\x0a\x67\x62\x8c\xff\x76\x18\xb3\xf6\x7a\x25\xc1\xcc\xb9\x86\x7d\xeb\x34\x52\x5a\x11\x83\x92\xbc\xbb\xce\xf0\xb5\xfc\xe6\x75\xf7\xe2\xab\x62\xcc\x69\xdb\x88\x88\x77\xca\xd5\xd6\x81\xf4\x2e\xc6\x10\x23\x3c\x31\x3c\x35\x93\x7b\x63\x9e\xee\x5b\xe3\xe4\x51\xca\xfb\xb1\xdf\x49\xbd\x7d\xf4\x4e\x50\xef\x95\x7b\xcf\x22\x03\x22\x57\x0a\x1a\x65\x79\x0b\xaf\x02\x73\xcd\xa6\xd5\xef\x58\x8a\xfb\x91\x80\xfe\xc2\x33\x58\x72\x5a\x8b\x20\x42\xb4\xa1\xc9\x35\xa9\x7e\x9d\x0d\x21\x62\x9c\xf7\xe3\xec\x5e\x74\x41\xcf\xa3\xb2\xc2\xa4\xb3\x1f\xfa\xf5\xe0\x22\xb0\x8c\x6f\x7b\x26\xed\xeb\x2e\x8e\x11\x6f\x62\x4f\x32\xbf\x49\x92\x48\xd7\xad\x7e\x95\xa8\x7d\xf1\xfa\x2a\x7a\x60\x60\x98\x68\x2e\xf5\xf3\x5e\x3c\x66\x42\xd2\x9a\xd3\x91\xb3\x7c\xdc\x24\x1e\x13\xa6\x48\xee\xca\xd3\xf6\x0b\x6f\x5e\xb6\x20\xda\x85\xe1\x97\x77\xd7\x2e\x2f\x16\xfd\xba\x2a\x65\xc5\xd8\x43\x84\xff\x75\x0a\xda\xcb\x2a\x37\x8b\xb9\x2b\x9f\x84\xc8\x62\x37\x5c\x6e\x1f\x2a\xb3\xa2\x98\xf0\x2d\xfb\xdd\x61\xab\xf4\x69\xd3\xf0\xc9\x7c\x99\xab\x27\x70\x52\xf3\xdc\xe4\xdd\x76\x6c\x83\x5c\xdc\xe9\x58\x2c\x4d\xf6\xd2\x2e\x6e\xd4\x44\xe6\xbc\xd7\x23\x0b\x15\x83\x21\x94\x8f\x77\x93\xde\xe8\x71\xe5\xaf\x54\xb8\xf9\xf9\x5d\xd3\x39\x31\xb1\x86\x8a\x66\x73\xba\xcc\xa6\x7d\xc3\x04\x5b\xa7\xf9\x66\x32\xd2\xba\x91\xe1\xf7\x99\xbd\x80\x76\xdf\x68\xd3\x81\xfc\x77\x3e\x64\x4d\xc8\x43\xf6\xa8\xf6\x7a\xc2\x81\xc8\xfa\x83\x86\x5d\x39\x3d\xe7\x9c\xa8\xc1\xdf\x1b\x9f\xbb\xa7\xae\x38\x57\xb9\x96\x1d\x66\x6c\xff\x31\xd2\x7e\x79\xe2\xf4\x87\x96\x01\x7a\xef\x83\x99\xd5\x80\xce\xba\x83\xdd\x27\x33\x90\x4a\x87\xf5\xbf\xf6\x9d\x1b\xef\xfd\x3e\x0c\x22\x7c\x70\x97\x95\xb6\x2d\xc6\x7e\x3a\xd3\x56\x61\xb5\xaf\x36\x43\x62\xd1\x23\xf9\x9e\xf3\xcd\xb6\xc4\x14\x58\xa9\x68\x72\xed\x19\xa1\xa6\x7c\x07\x32\xc7\xfd\x65\x14\xcf\xa6\xcc\xc0\x61\x3f\xce\x66\xc0\x03\x3b\x62\x6f\xbf\xed\x65\xd8\xe2\x3e\xbd\x5e\x3c\x62\x57\x38\x7f\x9b\xba\x13\x1b\xc8\x62\x60\x57\xb8\x23\x1c\x0a\x2f\x60\x65\x7c\x37\x6e\x47\x05\x4e\xcd\xd3\x12\x7b\x39\x08\x9f\x7b\x19\x34\xaa\x4d\x56\xb5\x69\x72\x15\xec\x9c\x4d\xb6\x53\x37\x3e\x79\xdd\xc8\xb3\x07\x16\x7c\x89\xa3\xa1\x94\x75\xa1\x20\xa1\x0b\x10\x0e\xe4\x15\xe3\x61\x95\x52\x2e\x16\x8e\xeb\xec\x7b\x77\x28\x8c\x84\x21\x3b\xe2\xbb\xc9\xc0\xe7\xf3\x34\x4f\xa2\x79\xd5\x04\x5a\x6a\x94\x3b\xc8\x0d\x28\x44\xbd\x16\x34\x59\x2e\x77\x3c\x69\xfe\x57\x91\xe5\xc4\x39\x03\x1d\x24\xde\x6c\xeb\xcb\x94\x00\x91\x1e\xf0\xa7\x26\x7e\x6d\x3f\x24\x6f\xfd\x9a\xf0\xba\x11\xbf\x3b\xc7\x5b\xae\x93\xb9\xeb\xd7\xe6\x48\x8f\x7b\xdb\x9a\xc9\x46\x1d\x62\xee\x15\x03\xeb\x96\xbf\xf5\xe7\xdb\x25\x10\x83\x17\x8e\x0d\xcf\x7f\x8a\x49\x33\x7a\x13\xc9\x20\x0a\x44\x8a\x10\xe3\x79\xca\x56\xb4\xce\x4c\xc8\x2b\x85\x9b\xd5\xeb\xea\xcb\xae\xa8\x04\x99\x16\x52\x94\x63\x58\xef\x18\x0f\x17\xb7\xbd\xad\x48\xb2\xd9\xbe\xda\xe5\x36\x6e\xd2\x39\x4f\xbe\xf5\xc2\xff\x56\xc0\xe0\xe4\x1f\x1a\x97\xd1\xa7\x95\xb2\x48\x22\xe6\x0e\x4f\x1f\xfe\x7e\xee\xb8\x19\x22\x53\xdc\x13\xa1\x99\x7c\xe3\x05\x7b\x49\x83\x47\xd2\x7b\xe7\x8b\xa7\x47\x5d\xee\xe9\xca\x06\xce\x59\x8b\x47\x49\x9b\x7a\x26\x29\xcf\x47\xf5\xd6\xd7\x8d\xca\x71\x43\x9e\x8d\x20\x2e\x7b\x5e\x33\x4d\x78\xda\x88\x09\x54\xc5\x57\x56\xa1\x71\xdc\x5a\x1f\x59\x93\x7b\x17\xd4\x60\x4f\x96\xb5\xc6\x0e\x16\x94\x73\x1a\x8f\xaa\x72\xb1\xb4\x4f\x5b\xda\x72\x79\xe3\x63\x8f\x1d\x24\xe7\x37\xde\x75\xcc\xbe\xff\xc1\x1a\x87\xbc\x7e\x98\xfd\x20\xcf\x30\x9a\x1a\xa6\xb2\x28\x49\x0b\x4e\xb8\xe4\x2d\x80\x4e\x84\xda\x2a\xe9\x67\xa4\x97\xf5\x57\xcb\xd5\x2d\x1a\x37\xd4\x9a\xd3\x47\xfa\xbc\xbf\x35\x94\x7f\x1e\x23\x1d\xb7\xa3\xac\xca\x15\x25\x37\xbb\xf6\x58\x1d\xdc\x2f\x85\xb2\x7c\x17\x14\x79\xfd\xf0\xd9\x4c\x68\xc7\x6d\x58\x9f\x64\x18\xa7\x50\x06\x2c\xfb\xf6\x2d\xab\xde\x1c\xdc\x40\x69\x8b\x5f\xfa\xcf\x3a\xfc\xcc\x48\x55\x2d\xff\x6b\x82\x38\xc1\x72\x82\xbd\xca\xea\xe9\xc1\x8d\xdf\xac\x61\x75\xc4\x9d\x5d\x09\x8d\x5a\xe9\x37\x34\x66\xa6\xa2\xcf\xdb\xf3\x2a\x36\xa1\x32\x77\x7f\xe0\xca\x1d\xaf\x91\x32\xdb\x53\xa8\x53\x4b\x76\xb2\x8f\xc3\xa7\xd6\xb2\xa1\xfe\xdb\x9a\x05\xc3\x8a\xb4\x85\xf2\x42\x9b\x85\xe9\xac\xb9\xd6\x81\x56\xcb\x63\xb7\xa5\x6e\xf0\x4f\x46\xc8\x9b\x17\x30\xe2\x38\x75\x87\x96\x52\xfb\x4b\x89\xd5\x93\x43\xef\x3d\x12\xfc\x16\x23\xbe\x36\x87\x74\x06\xa9\x11\x27\xd9\x7e\xf5\x7b\xac\x07\x5d\x94\xf4\x15\x7a\x4b\xe2\x14\x88\xd4\xee\xd2\xc7\x61\xae\xe2\x78\xdf\x7e\x08\xd7\xaf\x49\x44\xe6\x04\xf3\x55\x19\x57\x06\xf1\x04\xd9\x21\x1c\xcc\x9e\xb4\x22\xbb\xd6\xde\xf8\x0e\x11\x43\xd6\xb9\x36\x92\x9a\x6f\xd8\xa5\x32\xb4\x1f\x15\x94\x2a\x8f\x9a\xc7\x79\x17\x32\xf7\xbf\x5c\x74\xec\xb7\x1f\xd8\x51\x70\x5c\x2c\x3a\xcb\xe9\x62\xa9\x05\x45\x71\xbe\xfa\xdc\x71\xea\x41\x83\x8e\x30\x14\x6e\xb2\x1c\x1d\x60\xd2\x34\x42\xc9\xe5\x2f\xbc\x68\x5a\xe7\x9e\xa4\x1d\xdc\x66\x68\x28\xaa\x8e\x7e\x66\x78\x09\x12\xe7\x5a\xd1\xa7\x26\xd2\x2c\xed\xd6\x33\xe6\xd1\x03\x9f\x9c\xdd\x86\x70\x39\x88\x93\xb2\xbd\x4e\x20\x3d\xf9\xb4\x6b\x70\xcc\xb4\x14\xcd\xb5\xbb\x29\xec\xdd\x35\x72\xb8\x54\x90\xbf\x7a\x66\x90\xdd\x73\xfa\x38\xdc\xf0\xaa\x4f\x72\x58\x1a\x23\x56\x66\x8d\xb5\xb3\x12\x16\xdd\xfc\x84\x63\x38\x9f\x86\x8a\xf9\xf4\x65\x68\x07\x27\x36\xa7\xf6\xa7\x06\xb5\x76\xee\x6d\xf4\x6c\x18\x7b\xb4\x20\xfc\x4f\xb6\xe5\xbe\x52\x31\x97\x77\x63\xf1\xdf\x1c\xa4\x1f\x77\x3f\xd4\x63\xde\x5b\xd9\xce\xd0\x40\x5d\xe8\x8e\x68\x53\x7d\x51\xbc\x44\x4c\x94\x98\x6d\x4c\xa8\x95\x39\x77\xbb\x8b\x87\x86\x64\x5b\x2c\x53\x8e\x8c\x84\xd9\x32\xa8\xd3\xd2\x83\x49\xa8\x73\x1c\x6c\xe2\xc9\xe9\xf1\xaf\x5e\x9b\xff\x49\x9c\x2c\x09\x6e\xae\xfc\x3a\x92\xb7\x23\xf6\x7c\xb9\xd6\xa1\x2c\x9e\x96\x32\xa3\xf9\xa6\x5d\xa4\x32\xc9\x82\x42\x1a\xe2\x2d\x3c\xea\x39\xe4\xdd\x6b\xf0\x89\xf8\xb4\xd3\x47\x3c\xc6\xad\x98\xf1\x90\x1c\x6e\xbb\xf7\xec\xd6\x85\xcb\xc5\x54\x95\xa9\x57\xc3\x03\x8a\x29\xe7\x2b\x78\x47\xa7\xd6\x7e\x3e\xb7\x5a\x95\xaa\x91\xf6\x4d\xfb\x3b\x2e\xa7\x89\x50\x7e\x4f\x49\x52\xac\x58\xf2\x63\x17\x2b\x73\x6c\xb3\x33\x7d\xac\x7b\x3c\x6e\xf6\x00\x89\xdf\x27\x57\x31\x98\xac\xa3\xc7\xc8\x21\x9d\x34\x1b\xe4\xca\x4b\x48\x62\x1d\x24\x63\xf9\xf0\xb1\xf8\xad\x90\x77\xc3\x2c\x93\xe5\x24\x3f\xd1\x9c\xd5\xf3\x3f\x6d\x72\x3c\xd9\xf2\xcb\x49\xe5\xcf\xdb\xf6\xa9\x8b\xe6\xa1\xc8\x56\xff\x2f\xbf\xe8\xd3\x5a\x61\x98\x8e\xaf\xf9\x34\xf9\xaa\xae\xeb\xd7\x7f\x73\x73\xac\xfa\x9b\x99\x6d\xc8\x6f\xf2\x6e\x14\xea\x66\x5b\xc0\x42\xb6\x63\x3b\x6b\x5d\x7e\x18\x33\x10\x38\xd8\xe3\x53\x82\x0d\xab\x94\xce\x30\xe2\x61\x80\xc2\xd1\xd7\x73\xbf\x68\x35\x37\x89\x64\xe5\xd2\x93\x37\x7a\x14\xc3\x91\x87\x13\x57\x1e\x28\x15\xc3\x3c\x49\x21\x45\x4d\x73\x56\xc9\x07\x6e\x7b\x9a\x42\x0e\xa6\x4b\x23\x5a\x89\x4a\xf1\x4e\xce\x71\x72\x1c\x44\xe2\x79\xd4\xc3\xca\x5e\x97\x9e\x0b\x6d\x66\x25\x61\x8a\x6f\xc6\xbd\xcd\xe6\x99\xed\xa4\xa4\xbb\x22\xf2\x34\xc8\x69\xa7\xde\xe5\x2d\x01\x6a\x21\xe4\x54\xd0\xc4\x1e\x94\x40\x8f\xf8\xb8\xf2\x0a\x15\x6e\x8b\x57\xb2\x14\x6a\x5e\x48\x83\x31\xd4\xf4\xca\xd2\x22\xb5\x77\x7a\x52\x24\x85\x4b\x5c\xdd\xfb\xe1\x1b\x2d\x73\x4d\x1f\x09\x79\x9e\xd8\xb0\x25\x3a\xb2\xab\xdc\xff\x23\x71\x4a\xd9\xe7\x37\x7a\x8c\x87\xe5\x7d\x26\x85\x09\x9d\x51\x7e\x29\xf7\x1f\x1b\x44\x03\x09\x76\x18\xbb\x10\x9c\xce\xda\x93\xc4\xc7\x05\xa0\x03\x40\x01\x80\xff\x08\xeb\xf3\x3e\x9d\xf8\x8f\xff\xf9\x12\x1d\xfc\x8f\xff\x25\x3c\x1c\x17\x96\xef\x82\xc7\xe1\x70\x78\x1c\x1f\xde\xfa\xc4\xfb\x63\xdd\x6a\x50\x0e\x55\x81\xd2\x4d\x65\xb2\x35\xa8\x52\x65\x8b\x02\xff\x17\x00\x00\xff\xff\xf8\x6f\xc5\xba\xb0\x0d\x00\x00") - -func webdataIconWoffBytes() ([]byte, error) { - return bindataRead( - _webdataIconWoff, - "webdata/icon.woff", - ) -} - -func webdataIconWoff() (*asset, error) { - bytes, err := webdataIconWoffBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "webdata/icon.woff", size: 3504, mode: os.FileMode(436), modTime: time.Unix(1, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -var _webdataIndexHtml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x55\xcd\x6e\x13\x3d\x14\xdd\xe7\x29\x5c\xaf\xdb\xce\xd7\x4f\x02\xb1\x18\xcf\xa6\x65\xc3\x06\x04\xdd\xb0\x74\xec\x9b\x8c\x89\xc7\x36\xb6\x27\x69\x76\x88\x45\xab\xa2\x4a\xfc\xae\x29\x14\x54\x21\x50\x5a\xc4\x96\xb7\xc9\x13\xf0\x08\x68\x7e\x92\x99\x4c\xda\x4c\x54\x95\x55\x32\xd7\xf7\xdc\x73\xce\xbd\x77\x3c\xe1\xc6\xde\xc3\xdd\xfd\xa7\x8f\xee\xa3\xd8\x27\x32\xea\x84\xd9\x0f\x92\x54\xf5\x09\x06\x85\xa3\x4e\x27\x4c\xc0\x53\xc4\x62\x6a\x1d\x78\x82\x53\xdf\xdb\xba\x87\xa3\x32\xac\x68\x02\x04\x0f\x05\x8c\x8c\xb6\x1e\x23\xa6\x95\x07\xe5\x09\x1e\x09\xee\x63\xc2\x61\x28\x18\x6c\xe5\x0f\x9b\x48\x28\xe1\x05\x95\x5b\x8e\x51\x09\x64\x67\x13\xa5\x0e\x6c\xfe\x44\xbb\x12\xc8\x7f\x59\x55\xc7\xac\x30\x1e\x39\xcb\x08\xee\xa9\xed\x67\x0e\x47\x61\x50\x04\x1b\xa7\x2e\xa6\xff\xdf\xb9\xdb\xcc\xf0\xc2\x4b\x88\x1e\x43\xa2\x3d\xa0\x7d\x9d\xb2\xd8\x50\x1e\x06\x45\xb8\x13\x4a\xa1\x06\x28\xb6\xd0\x23\x38\xa1\x42\x6d\x33\xe7\x30\x4a\x80\x0b\x4a\xb0\x63\x16\x40\x61\x64\x41\x12\xec\xfc\x58\x82\x8b\x01\x3c\x5e\x84\x09\xa6\xd5\xb6\x51\x7d\x8c\xfc\xd8\x00\xc1\x22\xa1\x7d\x08\xf2\x40\x0e\xcc\xce\xf3\xb6\x71\x31\x44\x82\x13\xac\x0d\x28\x91\x1d\x33\x49\x9d\xcb\x68\x40\x01\x8e\x3a\x08\x21\x14\x2a\x5d\x2a\x0f\x4d\xf4\x80\x0e\xe9\x93\xc2\xa0\x70\xc8\xc2\xf3\x54\x58\xe0\x1b\x61\x60\xa2\x30\x98\x27\x16\x38\x13\xed\x6a\xa5\x80\x79\xa1\xfa\xd3\x17\xe7\x59\x4e\x27\x0c\xb8\x18\x46\x15\x31\x93\xda\x01\x5f\xe4\x45\xb1\xe0\x3c\x9f\x6b\x59\x66\x4f\x38\x56\x54\x02\x9e\x57\xc9\xe3\xdd\xd4\x7b\xad\xf2\x2a\x16\xa4\xa6\xbc\x08\xe0\x68\x7a\xf8\x3b\x0c\x8a\x87\x65\x42\x43\x9b\x6c\xbe\x1c\x00\x1a\xc0\x18\xf5\x52\x29\x8b\x1e\x37\x55\xcc\xd0\x92\x76\x41\xce\x4b\xcc\xc0\x38\xaa\xe6\x78\x85\xc0\x01\x8c\xdd\x5c\xde\xf1\xe7\x4a\x5e\x33\xb1\xe2\x9f\xa7\x7f\x3d\xbb\x3e\x7d\x00\xe3\xae\xa6\xb6\xb2\x7e\xf2\xed\x7a\xeb\xb3\xe4\x95\xdd\xf6\x70\xe0\xa9\x05\xba\x80\xc8\x82\xd9\x7b\x23\x1d\xd9\x41\x56\x8f\x1c\xd9\x89\xc2\x60\x96\x5a\x22\x33\x9a\xb2\x70\xa1\xc0\x95\x35\xaf\x13\xbd\xb2\x29\x4d\x90\x03\x55\xb9\xfc\xf8\xa5\xd1\x92\xd2\xe9\xb2\x61\x77\xa3\x61\xd7\xac\x2c\xc2\xea\x8e\x56\xfa\x6d\xca\xef\x66\x5d\x03\xdb\xa5\x6c\x30\x77\x31\xf9\xb4\x6c\x79\xc9\x76\x6a\xc0\xce\x10\x7f\x4e\xbf\x9f\xb6\x43\x4a\xaa\x9e\xb6\xa3\xfa\x66\x4c\xce\xae\x68\x70\xd1\xb0\x9b\x59\x32\x16\x86\xde\xd6\x0d\xbd\xbe\x68\x57\x67\x24\x1d\x1b\x9a\x3a\xa8\x50\x97\xed\x28\x05\x07\xbe\xc1\x35\xb9\x65\x3b\x43\x2d\xd3\x04\xb8\x1e\xa9\xaa\xdd\x1f\x8e\xdb\xa5\x15\xb8\x24\xf5\x50\xc3\x1d\xad\x8b\x4b\x4d\x0d\xf5\x6a\xa5\xa5\xfa\xdf\x7f\xb0\xa0\x94\x0d\x9c\xa1\xac\x9a\xcb\xc9\x8f\x76\x13\x16\x7c\x6a\xab\xab\xea\x62\x8d\x8d\xe6\x20\xc1\xd7\x58\xce\x6f\x79\x8e\xb1\x4e\xaa\xea\x93\x9f\xed\x82\xaa\x11\x4c\x0f\xdf\xb6\xa7\xd7\xef\xa1\xc9\xaf\x5b\x16\x2f\xa1\xe7\x2b\x35\x6f\xd6\xe8\x66\x6d\x5f\xa7\x87\xef\xd7\x98\x98\xe8\xc7\x35\x8a\x77\x6b\xaf\x5c\xfd\x52\x1a\x09\xcf\xe2\x6a\xea\x2f\xaf\xfe\x40\xcd\x5c\xd7\x5f\xdb\xcb\xa3\xa5\xef\xd3\xdf\x00\x00\x00\xff\xff\x03\xc4\x8b\xd1\xde\x09\x00\x00") - -func webdataIndexHtmlBytes() ([]byte, error) { - return bindataRead( - _webdataIndexHtml, - "webdata/index.html", - ) -} - -func webdataIndexHtml() (*asset, error) { - bytes, err := webdataIndexHtmlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "webdata/index.html", size: 2526, mode: os.FileMode(436), modTime: time.Unix(1, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -var _webdataMainCss = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x56\xfd\x6e\xeb\xa8\x13\xfd\x3f\x4f\xc1\xaf\xd5\x4f\x6a\xa5\x92\x75\xfa\xb1\xba\xe2\x4a\xab\xfb\x2a\x18\xc6\x36\x1b\xcc\x20\xc0\x75\xd2\x55\xdf\x7d\x65\x83\x1d\x7f\xc4\xc9\x6a\xb5\xaa\x54\xc5\x83\x99\x39\x9c\x39\x67\xf0\xaf\x02\x4d\xa0\x05\x17\x40\xfe\xda\x11\x42\x48\x7a\xae\x95\x3e\x33\xf2\xa0\x04\x9a\x87\x9f\xfd\x82\x77\x82\x91\xc6\xe9\xa7\x3e\xb8\x6f\xb1\x28\x1e\x9e\x49\x81\xae\xe6\xe1\xe9\x21\x3e\xfe\xdc\x7d\xef\x76\xfb\x4a\x49\x09\x26\xe5\x93\xca\x5b\xcd\xcf\x8c\x18\x34\x40\xfe\xa7\x6a\x8b\x2e\x70\x13\xfa\x57\xab\x50\xeb\x6b\x75\x3d\x37\x9e\x7a\x70\xaa\x88\xb5\x69\x8d\x5f\xb4\xf1\xe0\xa8\x07\x0d\x22\xc4\x6c\x69\xad\x85\xfc\xa8\xc2\xe6\x72\xed\xb7\x96\x36\xc2\x39\x17\xc7\xd2\x61\x63\x24\x15\xa8\xd1\x31\xf2\xf8\x9e\x75\x7f\x71\x39\xc5\xda\x4a\x85\xf5\x06\x55\xf3\x12\x22\x4d\x01\x4e\x7b\x6b\xca\xe7\xf8\x4e\xc0\x46\x54\x94\x8b\xa0\xd0\x0c\xc5\x12\x01\x2f\xbb\x1c\xe5\xf9\x65\xb7\xf7\x02\xcc\xd0\x86\x56\xc9\x50\x31\x72\xc8\xb2\xff\xc7\x04\x15\xa8\xb2\x0a\xd3\x48\xcd\x5d\xa9\x0c\x23\x59\x64\x7d\xba\xdb\xa2\x57\xb1\x92\x03\xcd\x83\xfa\x4c\x48\xc7\x66\x14\x1a\x4e\x31\xd4\xfd\xa2\x52\x39\x48\xd0\x04\xea\xa6\x36\x71\xed\xcf\xc6\x07\x55\x9c\xa9\x40\x13\xc0\x04\x46\x04\x98\x00\x2e\x9d\x1a\x4f\xd4\xab\x2f\x65\x4a\x46\x72\x74\x12\x1c\xcd\xf1\xd4\x63\xb1\x09\xc6\x04\xe1\xd8\x62\xaf\xbe\x80\x91\x57\x07\x75\x0c\xb6\xe8\x24\x6d\x1d\xb7\x8c\xe4\x0e\xf8\x91\x76\x81\xc4\x19\x9c\x02\xe5\x5a\x95\xe6\x52\xf9\x7b\xb7\xcb\x9b\x10\x70\x90\x97\xe5\x52\xf6\x10\xb2\xad\xe6\x05\xc7\x8d\xb7\xdc\x41\xa7\xb9\x08\xbc\x03\xcb\xc8\xc1\x9e\x88\x47\xad\x24\xc9\x35\x17\xc7\x05\xcd\xfb\x8f\x11\x61\x6c\xc5\xeb\xf0\x9c\x0e\xeb\xb8\x54\x8d\x67\xe4\xd5\x9e\x6e\x1c\x6f\xad\x96\x4d\x83\xe1\x27\xb8\x42\x63\xcb\x48\x34\x50\x4a\xd0\x38\xdf\x65\xb0\xa8\x16\x0c\xb0\x02\x45\xe3\x13\x0f\xd8\x04\xad\x0c\x4c\xa4\xf5\x88\x16\x8c\x32\xe5\xcb\xee\x51\x68\xf4\x20\x57\x8c\x91\x6c\xff\xd1\x03\x9d\xbc\x4d\x0c\x7a\xe1\x94\x0d\xc4\x5e\x36\xce\xfb\x49\x73\x0c\x01\x6b\x46\x0e\xc3\x5e\x07\x1a\xb9\x9c\xf5\x65\x42\xc6\xfb\x48\xc6\xa8\x07\xc2\x9b\x80\x43\xec\x44\x67\x62\xef\x12\x5a\x2e\x35\xcf\x61\x98\x0d\x89\xc4\xd2\xf1\xf3\x44\x19\xbe\xe2\x12\x5b\xd6\x07\x7a\xa7\x77\x0d\xed\xff\x65\xb1\xa3\x2f\xe3\xd2\xf6\x4a\x1f\xdd\xdc\x33\x59\x48\x3d\xb2\x5c\xa8\x70\x66\x24\xdb\x67\x3f\x26\xfd\x6c\x93\x6c\x72\xd4\x72\xa5\x86\xf7\x81\xe4\x5f\x35\x48\xc5\xc9\xd3\xe4\xcc\x6f\x9d\x54\x9e\xd3\x39\x97\xe7\x5e\xe4\x39\xbc\x7d\xb6\x31\xf9\xf7\xc0\x12\xf9\x83\x44\xda\x5f\xc8\xe3\x11\xce\x7e\x7c\x5e\x0d\x02\x9e\x7b\xd4\xcd\x20\xc2\x09\x82\x8f\xcb\x3c\x39\xd1\x41\xfe\x1f\x43\x27\x8a\x46\x6b\x2f\x1c\x80\x99\xe5\xd5\x50\x84\x8b\xe7\x92\x1e\xb2\x99\x3f\x86\xe8\x64\xb0\xc6\x85\xb8\xf7\xa2\xd3\x23\x9c\x73\xe4\x6e\xae\x1f\x17\x71\xdc\xac\x90\xde\x59\x15\x98\x57\x4e\x25\xfc\x36\xfe\x80\x76\x99\xba\x0f\xdd\x43\xde\xa9\x90\x3b\xe0\x83\xe4\xbb\x49\x5a\xba\xce\xc0\x87\xf9\xa4\xb9\x24\x72\x10\x5b\x79\x89\x5c\x9d\x1a\xeb\x29\x36\x19\x20\x29\x32\x51\xe5\x62\xce\x6e\x38\x7c\xe0\x99\xec\x23\x15\x7e\x79\x43\x6f\x5f\x0a\x0e\xdb\xad\x1c\x0b\xc1\xfd\xdb\xe6\xaf\x13\x32\xcd\x7d\xa0\x58\xd0\x70\xb6\x70\x87\xe2\xb9\x14\xa6\x4e\x53\x86\x72\x6f\x41\x04\xea\x78\x50\xc8\xc8\xfb\x6f\x6f\xa3\xdd\xc6\xe2\x13\xbb\x5d\x3b\x79\xb4\xdc\x62\xcf\x82\xc5\x7b\x77\xe9\xf6\xfe\x05\x83\xdb\x2a\xbc\x25\xfd\x15\xc5\x57\x6f\xb7\xfb\x20\xae\xb1\xbe\x44\xb4\x91\x7a\x30\x1a\x99\x7f\x8a\x8c\x62\x4c\x52\x9c\x04\xe9\xc2\xd7\xab\xef\x8d\x9e\x50\x30\x32\x6a\xc5\xb7\x2a\x88\xea\xc6\x98\xf8\xc7\x46\x5e\xca\x25\xe1\xee\x6c\xf7\xdf\x8f\x89\x21\xf9\x3d\xd3\xdd\xfc\xda\x5a\x5c\xbd\x53\x32\x7b\x92\x7c\xe5\x94\x39\x8e\xb6\x18\xe6\xf8\xef\x97\xbb\x57\x99\x71\xba\x67\xd7\x70\x8d\x0a\x30\x18\x9e\x66\x32\x78\x9e\x7b\x7b\x8b\xbc\xeb\x72\xbe\x85\xee\xf2\x2d\x9b\xee\xa2\x1f\x33\xb8\x29\xd8\xa3\xfd\x3b\x00\x00\xff\xff\xdc\xd3\xfa\x2e\xa8\x0c\x00\x00") - -func webdataMainCssBytes() ([]byte, error) { - return bindataRead( - _webdataMainCss, - "webdata/main.css", - ) -} - -func webdataMainCss() (*asset, error) { - bytes, err := webdataMainCssBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "webdata/main.css", size: 3240, mode: os.FileMode(436), modTime: time.Unix(1, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -var _webdataSha256Js = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x5a\x5b\x77\xdb\x38\x92\x7e\xd7\xaf\xa0\x75\xb6\xd5\x84\x55\x96\x01\x10\xe0\x45\x14\x94\x63\x3b\xce\xa5\x3b\x9d\xce\xe4\xb2\xdb\x33\x1a\xe5\x1c\x90\x04\x49\x8d\x28\x4a\xa6\x28\x3b\x8e\xe5\xfd\xed\x7b\x40\x52\x37\xdb\x99\xf4\x65\x1e\xf6\x85\x02\xc0\x62\xa1\x50\xf5\xe1\x43\x15\xa9\xd3\xe3\x96\x71\x66\xfc\x24\xaf\xe5\x87\xb0\x98\x2c\x4a\x63\x32\x5b\x64\x6a\xa6\xf2\x52\x96\x93\x79\x6e\xcc\x63\xa3\x4c\x95\xf1\xe1\xd5\x99\x11\xcb\xd9\x24\xbb\xd5\x23\xa9\x5c\xa6\x6a\x09\x86\x5c\xb6\x8c\x48\xc5\x93\x5c\x45\xc6\x24\x37\x5e\xbc\x7e\xf7\xc1\x78\xf7\xe9\xdc\x20\x2e\x3e\x61\x86\xcc\xa3\xdd\x10\xc5\x54\xcb\x1b\x37\x2a\xcb\xf4\xaf\x56\x1a\xce\x8b\x42\x2d\x17\xf3\x3c\x9a\xe4\x49\xcb\x78\xf5\xcb\xd9\xc5\xc3\xe9\xe5\xf2\xe9\x09\x3c\x57\xb6\x5a\xc6\xc5\x7c\x71\x5b\x4c\x92\xb4\x34\x28\xc6\xee\x09\xc5\xc4\x35\xce\x8b\x89\xcc\x8d\x8f\xab\x42\x4d\xc1\x20\x9e\xa7\x87\xb1\x67\xbc\x93\xab\xcc\xf8\x69\x9e\xe6\xcb\x72\x9e\x1b\x1d\xe3\x62\x9e\x97\xc5\x24\x58\x95\xf3\x62\xd9\x32\x9e\x4f\x96\x75\x4f\x45\xc6\x2a\x8f\x54\x51\xd9\x77\xfe\xe1\xb9\xf1\x66\x12\xaa\x7c\xa9\x5a\xc6\x07\xa5\x8c\xb4\x2c\x17\xfd\xd3\xd3\x50\x66\x93\x44\xdb\xd7\x4b\x26\x65\xba\x0a\x7a\xe1\x7c\x76\xfa\xaf\xe5\x87\x57\x67\xa7\x46\x3c\x2f\x8c\xd9\xbc\x50\xc6\x24\x8f\xe7\xc5\xac\x5a\x45\xeb\xf8\xb4\xf5\xe3\x6a\xa9\x0c\x3d\x49\x58\xfe\xe8\x9b\xf1\x2a\x0f\xf5\x1d\xf3\x35\xba\xdb\xb4\x8d\x1b\x33\x04\x09\x11\xba\xbb\x96\x85\x91\x09\x0c\x81\x18\x8d\x21\x11\x18\x62\xc8\x61\x0a\x0a\x52\xb8\x82\x5b\x58\xc0\x4c\x1c\x11\x28\xf5\xdd\x42\x5f\x56\xf0\x55\x1c\x11\x3f\x12\xd1\x7a\x7d\x77\xef\xc7\x22\xea\xa9\x3c\x9c\x6b\xaf\xae\xd7\xed\x4f\x1f\x5f\xb8\x6d\x7f\x25\xa2\x5e\xbe\x9a\xbd\x9f\xaf\xf2\x68\xb9\x5e\x13\x7f\x12\x9b\xab\x23\x21\x16\xb2\x58\xaa\xd7\x79\x69\xae\x80\x60\xb4\x5e\x93\xe1\x0a\x95\x69\x31\xbf\x31\x2e\x8b\x62\x5e\x98\xed\xed\x43\xc6\x6c\xb5\x2c\x0d\x69\x4c\xf2\x52\x25\xaa\x30\x86\xc2\x20\x6d\xa4\xf5\x60\x21\x44\xd8\xcb\xe4\xb2\x7c\x9d\x47\xea\xcb\xaf\xb1\xd9\xfe\xf0\xea\xec\xa4\x0d\x18\xa1\x49\x6c\x5e\x89\xed\x72\x03\x90\xe8\xae\x50\xe5\xaa\xc8\x8d\x33\xdd\x83\x10\xdd\xc3\xed\x81\x00\x64\x10\xd7\x3e\x48\x40\x69\xf5\x95\x32\x4a\x59\x5b\x4f\xb3\x5e\xd7\x5d\x6e\x57\x5d\x94\x08\x53\x76\x6d\x3e\x1c\x0e\xbd\xc1\x80\xa1\x2e\xe1\xa0\x04\xb1\x7d\x95\x2d\x95\x71\xb0\x90\x4f\xb9\xfa\xb2\x50\xa1\x0e\xb1\xd2\x23\x1a\x50\x95\xaa\x07\x98\x6b\x23\x3f\x9e\x17\xa6\x1f\xf4\x32\x95\x27\x65\x3a\x10\x89\x8f\x82\xde\x62\xb5\x4c\x4d\x8c\xfc\x60\x24\x87\xc3\x21\x1f\xaf\x05\xa1\xee\x60\x40\xd9\x89\xfc\xc1\xa2\xbe\x14\xb2\x9b\xf9\xc1\x28\x19\x0b\xd9\x61\xd4\x63\x9e\xed\x50\x8f\xfb\xad\x60\x94\x9c\x90\xb1\x90\xa7\xdb\x41\x7b\x8d\xfd\x4c\x6c\xd4\x57\x93\x49\x81\x7d\x39\xc8\x7c\xd9\x15\x0a\xc5\xe2\xcc\x0c\x7a\xcb\x6c\x12\x2a\x53\x82\xec\x2a\x04\x31\x84\xe8\x91\x2b\x50\x20\x46\xf1\x08\x8f\x21\x1e\x11\x7d\xa1\xfa\x62\xe9\x0b\xd3\x17\xae\x2f\xf6\x78\x5c\xbb\x62\xfb\xf0\xc6\x71\x81\x88\xff\x9a\x93\x9a\x30\x06\xf7\xb0\xd8\x8b\xdf\x36\xbc\x9b\x15\xa0\x7b\x38\xb4\x3a\x15\x9c\x50\x50\x82\x52\xf6\x0d\xd3\xb6\x12\xfc\xa9\x38\x5e\xa4\xf3\xa5\xaa\xac\x32\xae\xa5\xde\xec\xa5\x31\x59\x1a\xf9\xbc\x34\x96\xab\xc5\x62\x5e\x94\x2a\x6a\xa3\x3f\xfd\xdc\x54\x9c\x9b\x12\x62\xe4\xe7\xe2\x8b\x19\x22\xbf\x4c\x27\xcb\xde\x52\x95\x9a\x9c\x7e\x56\x0f\x90\x9a\xd4\x38\xad\x50\x7a\xa4\x77\xc1\xec\x70\xef\x54\x8c\x36\x55\xb7\x86\xcc\x0a\x25\xa3\x5b\x63\xa9\xca\x36\xf2\x5b\x1b\xf1\xaf\x87\xe2\x17\x32\xaf\xcc\x51\xa5\xb1\x7b\x32\x2e\x55\x61\x84\x32\xcb\x26\x79\x62\xac\x16\x91\x2c\x95\x46\xa8\x30\x13\xbd\xd9\xd1\xe3\x9d\x2e\x9b\x15\x98\x01\xf2\x03\x21\x7b\xc1\x24\x7f\xa3\x72\x0d\xd0\xde\xb5\xcc\x56\xca\x57\x22\x1d\x0e\x87\x96\x9f\x08\x75\xca\x4e\x2a\x26\x50\x83\xe0\xd4\x45\x77\x35\x14\x6f\x4d\x09\x01\x60\xd0\xeb\x47\xbe\xdc\xdf\x06\x72\xbb\x0d\xe4\x28\x19\x77\x44\x83\x69\xcc\xf0\xfd\x26\x94\x6a\xb8\x55\xf5\xbb\x9f\xd5\xc2\x81\xc0\x7e\xa0\x05\x83\xae\x20\xa8\x1c\x05\x63\x21\x47\xc1\xf8\xb3\x87\x3d\x4e\x29\x73\x6d\x28\xb6\x63\x84\x33\x8f\x73\xdb\xa5\xae\x9f\x8b\x2b\xb3\x84\x1c\xf9\x99\x48\xfd\x99\x38\xc2\xf7\x75\xc8\x6a\x4f\xed\xc2\x25\xeb\x50\x85\x10\x83\x82\x48\x60\x58\x54\x5e\xe0\x7e\x28\xa6\xd5\x7a\x13\xe4\x4b\x11\x6e\xbc\x15\x8b\xb0\xf1\x56\x28\xaa\xfd\x5e\x6d\x53\x25\xb0\xaf\x06\xa1\xaf\xba\x62\x81\xa2\x6e\x3a\x10\xb2\xd3\x31\xb5\x09\x71\x83\x76\x05\xaa\xbb\x40\x90\x23\x88\xba\x22\x45\x7e\xd6\x15\x91\x1f\x88\xcd\xed\x68\x38\x1c\xb6\x38\xf2\x13\x21\x7f\x48\xfd\xaf\x3b\x73\x13\x55\xbe\x92\xcb\x74\xcf\xde\x0d\x09\x46\x90\xc2\x14\xae\xbe\x05\xb1\x06\x33\x1a\x20\x46\xa3\xa4\xc1\xcc\x52\x95\xa5\xc6\xcc\x06\x4a\x15\xb8\x2f\xcc\x18\xf9\xcb\x9b\x49\x19\xa6\xda\x25\xa1\x5c\x2a\xa3\xfd\xea\xf2\xb7\x76\x3f\x3a\xf0\x55\xb3\x89\x9f\x9b\x12\x14\x4c\xd1\xbd\x1f\x14\x4a\x4e\xfd\x5a\xfe\xdc\x66\xdf\x90\xbf\x7c\x5a\xfe\xef\x1f\x2f\x3f\x7c\xe3\x89\x17\xfa\x89\x07\xf2\x67\xef\xdf\x9f\xfd\xfd\xfc\xd3\x8b\x17\x97\xef\xdb\xfd\xb2\xb8\xbd\x4b\x45\xae\x6e\x8c\xb3\xa2\x90\xb7\xe7\xab\x38\x56\x85\x89\xd1\x7d\x28\xf5\x22\xae\xd1\xdd\x81\x3f\xf6\x9e\x3d\xdc\xdb\x46\x70\x6b\x68\x57\x1b\x2a\xbf\x9e\x14\xf3\x5c\x53\x59\x1b\xf9\xf7\x4f\x5a\xf5\xf2\xc0\xaa\x48\xc5\x72\x95\x95\xfd\x83\x89\xea\xd3\xbd\x3e\x14\x03\x65\xbc\xba\xfc\x0d\x8c\x73\x9b\x81\x51\xad\x16\x8c\x79\x61\xec\xaf\x03\xf9\xad\xfb\x2b\x71\xbb\x25\x76\x04\x09\x64\xb0\x30\x73\x54\x1f\x37\xa9\x20\x7e\x3a\x58\xf9\xa9\x46\xbf\x16\xbc\x02\xb5\xdd\x83\x8d\x55\x91\x79\x85\xf6\xf0\xf2\xcb\xd9\xc5\x93\x78\x99\x42\x09\xab\x0a\x2f\xe4\xfb\x78\xd1\xe0\xb8\x99\x94\xe9\x7c\x55\x1a\xf1\xa4\x58\x96\x4f\xe1\xa6\xfc\x73\xb8\x29\xff\x20\x6e\x1e\xc9\xff\x55\xdc\x44\xff\x0f\x71\x33\x5f\x95\x8b\x55\xf9\xe2\x8f\xa3\x67\xfa\x0d\xf4\xac\xc4\x95\x59\x34\x40\x59\x89\x5b\xb3\x4e\x14\x57\x7b\xa8\x59\xa1\xfb\xfb\x6d\x96\x39\x33\xd1\xdd\xae\xf7\xfc\x30\xe7\x6c\xb7\x7d\x79\x2a\x5c\x5f\xf7\x02\x48\xfc\x1d\x31\xcb\x9a\x97\x13\x11\x8e\x82\xe1\x70\x48\xc7\xc3\xe1\xd0\x3d\x36\xad\x6e\xf0\x03\x3b\x3e\x21\x08\xb2\xae\x68\x63\x42\x2d\xc6\x6d\xc7\xf5\x64\x10\x46\x2a\x6e\xf7\xc2\x54\x16\x67\xa5\x99\x0c\x87\x43\xd6\x21\x1c\x75\xff\x8d\x8c\xbe\xbf\x35\xba\x57\xfb\xe9\xd3\x62\xa1\x8a\x67\x59\xaf\x9c\x57\xad\x0b\xb9\x54\x26\xea\x67\xbb\x05\x5c\x3e\x5c\x00\x04\x42\x9e\xba\x90\xe8\xa4\xb9\xb2\x3f\x11\xd8\x4f\x06\x81\x9f\x74\x85\x85\xf4\x40\x2c\x92\x2e\x19\x04\xcf\xc2\x51\xd2\x25\xd5\x5a\xfa\x18\x72\x91\x74\x69\x33\x48\x77\x83\x66\x38\x4a\x0e\x96\x9b\xd4\xcb\xed\x50\xce\xd1\x60\x40\xec\xb5\x19\x6f\x6e\x99\x49\x97\xa0\x83\xdb\xee\x3a\xdf\xbb\x49\xf7\x6e\x42\x2c\xb0\xcf\x86\xb1\x1f\x6b\xaf\xba\xc7\x49\xd7\x3e\x8e\x07\x42\x3e\xd3\x6e\x3c\x3b\xbf\x78\x7e\xf9\xe2\xe5\xab\xd7\x3f\xfd\xfc\xe6\x97\xb7\xbf\xbe\xfb\xdb\xfb\x0f\x1f\x3f\xfd\xf7\xff\xfc\xf6\xf7\x7f\xd4\x2e\x4b\xd2\xc9\xbf\xa6\xd9\x2c\x9f\x2f\xae\x8a\x65\xb9\xba\xbe\xf9\x72\xfb\x75\xe7\xd6\xee\xe9\xd6\xa5\x7a\xf6\x96\x7d\x6c\x5a\x27\x31\xea\xd8\x16\xea\xeb\xe3\xa8\x17\xd8\xec\x9d\x8c\x36\x9e\xde\xf3\xe5\x0b\xed\xcb\x86\x45\xb4\x27\xb3\xca\x93\x87\x38\xc8\xbe\x83\x83\x6a\x71\x51\x57\x7c\x28\x8b\x49\x9e\xf4\xe2\x62\x3e\xbb\x48\x65\x71\x31\x8f\x94\x99\xec\xc2\xbb\x9b\xf4\xe5\xfe\xa4\x7a\xbe\x0c\x82\x47\xdb\x36\x42\x90\xf8\x49\x35\xfc\x69\x92\x97\x6e\x75\x4f\x27\x38\xda\xb0\x4c\x60\x3f\x1b\x44\xfa\xac\x25\x28\x19\x65\x63\x11\x8e\xb2\x03\xdb\xb2\x9d\x6d\xbb\xb4\x75\x6b\xc1\x85\x19\xd6\xf3\x4b\x71\xb7\x87\xba\xfe\x11\x81\xda\x55\xfd\xb6\x68\xc3\x32\x95\x53\xf5\x46\xe5\xfd\x13\x72\xef\x87\xba\x10\xb9\xbb\xf7\xe5\x3e\x4c\x45\xb8\xdf\x5b\xaf\x8f\x88\x7f\x54\x97\x46\xa9\x5c\xfe\x7a\x93\xbf\x2b\xe6\x0b\x55\x94\xb7\x66\xbb\x56\xdb\x46\x9d\x8e\x29\x9b\x70\xe8\xd4\xa3\x6a\xd4\x79\x7e\x30\x9f\x67\x4a\xe6\xed\x23\x21\xca\xdb\x85\x9a\xc7\xc6\xc1\x54\x87\x9c\xfe\x3a\xbf\x96\xd9\x24\x32\xf6\x04\x8c\xfa\x78\xaa\x88\x7c\xbe\x68\x32\x76\x9d\x77\xb6\x97\x55\x60\x0e\x14\x37\x13\x3f\xa9\xb3\xbe\xf7\xa4\xba\xc6\x93\x72\xe7\xc9\xf3\xbd\x58\x3e\x3a\x2d\xaa\xec\xb4\xbf\x6d\x13\xfb\xfc\xf2\xa0\xfb\xe6\xb2\xdd\xff\x37\xbc\xb9\xc9\x73\xb7\x9c\xa9\xf5\x81\xd1\x68\xaa\x18\x73\xa3\x06\xf9\xf7\xcd\xe4\xe1\x37\x8f\x2a\x08\xa0\x89\x7a\x2c\x36\x69\x2a\x44\x9b\x2a\xbb\xaa\x6a\x8f\x84\x88\x7f\xa0\x87\x6e\xa9\x61\x6d\xcc\x63\x4d\xd9\x86\xf6\xe0\xd6\x9e\x49\x6e\x04\xb7\xa5\xfe\x0d\x8b\xaa\x50\x5a\xb6\x75\x02\x1e\xac\xd7\x23\x3c\xae\x11\x83\xfd\x2b\x11\x56\xb9\xb7\xc6\x6d\x24\xb0\x1f\x0d\x62\x3f\xea\x0a\x8a\xee\xa6\xbb\x52\x5c\xf6\x96\xab\x60\x59\x16\x66\x04\x14\x01\xb1\x2b\x48\x4c\x96\x6f\xe5\x5b\x73\x8a\xbe\x6b\x4f\x38\xcf\x4b\x39\xc9\x97\xc6\xa4\x09\xa1\x26\x03\x19\x96\xaa\xd0\x06\xb5\x52\x51\x65\xa1\x04\x75\xaf\x9a\x9c\x56\xe7\xc1\x74\xaf\xdc\x55\x87\xe5\xae\x1a\xaf\xc5\x74\x30\xa8\x36\x52\x5a\x6f\xa4\xfb\x3a\xf4\x77\x55\x86\xdc\x0f\xa0\x4e\x9a\xfb\xec\x38\xee\x86\xf7\x87\x67\xf2\xc7\xcb\xdf\x3e\x1e\x78\x3e\x84\x60\x43\xd7\xd5\x6b\x0d\x81\x9b\x17\x1b\x33\x58\x40\xb1\x73\x58\xf5\x36\x43\x3b\x2c\xaa\x1c\xa6\xa1\x5b\x21\x48\x08\x21\x2b\x1a\x2f\x84\x05\x4d\x42\xbe\x29\xa5\x95\x66\x80\x9a\xe2\xc3\x8a\x03\x35\xed\x9c\x95\xa6\x42\x90\x8b\xd1\x18\x08\x75\x87\xf1\xb3\xbc\x5e\x5c\x8c\xfa\x14\x33\x3d\x60\x36\x23\xc4\xa3\x6b\xcd\xe6\x36\x82\xcd\x08\x75\xd7\xb1\x66\x4e\xd4\xe7\x9c\x7a\xf6\x30\x5e\xaf\xb9\x63\x31\x36\x10\x5b\x3d\x94\xb2\xea\x29\x42\xa1\x12\xd7\x0a\x3a\xb6\x05\xdb\x67\xfb\xa6\xb6\x0b\x62\x61\x73\x6e\xd9\x5d\xd3\x8c\x3b\x04\x53\x4b\x1f\x1f\x78\xfd\xc0\xce\xfa\xce\x66\x7a\xca\x70\xad\xda\xdd\xaa\x26\x74\xab\xfb\xd1\x44\x08\x52\x81\xfd\x74\x90\x6f\xfc\x51\x25\x93\x77\x0b\x31\xed\xb6\xea\x60\xcf\xc4\xe2\x41\xb0\x67\x87\xc1\x9e\x8d\xd7\x22\x1f\xa5\xe3\x2a\xde\x45\x77\x51\xc7\xdb\x9f\x76\x05\xd9\x56\x78\xdb\xdd\xab\x43\x51\x97\x9d\xd5\xb6\xdb\x8b\x0c\x85\x5c\x1c\x8c\x77\x3a\x47\x78\x4f\xf4\xa8\x1e\x22\x4f\x06\xf0\xee\x51\xf4\x6a\x1e\xcd\x3b\x1d\x33\x15\x71\x73\x7c\xa6\xfa\x78\xad\xce\x5e\xe4\xeb\x15\xfe\x81\x05\xc6\x8f\x57\x47\xbf\x01\x69\xf7\x78\xda\x8d\xee\xbf\x93\xc6\xee\x73\x09\xde\x91\x88\x46\xb4\xc6\xed\x89\x4e\xc3\x65\x6f\xa9\x64\x11\xa6\xe6\xe9\xe7\x91\x3c\xf9\x7a\x76\xf2\x0f\x7c\xe2\x89\xee\x3f\x4f\xc7\xdd\xff\x3a\x45\x4f\x73\xef\x76\xe3\x56\xdc\x22\x97\xea\xc4\x66\x46\xc3\xdf\xba\x98\x93\xbd\xc9\xe6\x7d\x9b\x68\xa3\xaa\xc2\x2f\xd4\x22\x93\xa1\x32\x4f\xff\x29\x4e\x13\x68\xb5\xeb\x17\x74\x27\xe4\x48\x88\x69\xa7\x33\x1d\x6c\xa8\xee\xe9\x09\x7f\x14\x3f\x1a\xf1\x7c\x95\x47\x4f\x4e\xf8\x90\xcb\x66\x7b\x5c\x36\x15\xd8\xdf\x69\xd7\x1e\x65\xe8\xee\x4a\x6c\x99\x6c\x0a\x0c\x6d\xe8\xa6\x0a\xf9\xd5\x41\xc8\xa3\xff\x44\xd2\xb3\x71\xc6\xd5\x48\x8d\x11\xa4\x6b\x11\x0d\x06\xc4\x3d\xb1\x8f\xd5\x5e\xf1\xbe\x99\xf7\x84\x34\x60\x5b\x88\xb8\x3b\x6b\xf8\xf8\x21\x76\xa2\x43\xec\x44\xe3\xb5\x30\x35\x5b\x12\xfb\xc4\x3d\x56\x9b\x24\x4f\x13\xe3\x06\x4a\x3a\x9d\xbb\xff\x26\x96\x1e\xd3\xe3\x13\x25\xce\x0e\x4d\xd1\xe6\xb5\xef\x23\xd7\x4f\xf7\x5c\x9f\x0b\xec\xe7\x3b\xd7\xe7\x5d\xd1\xd2\x0e\x95\xfb\x5b\x28\xd7\xd4\x90\x77\xa7\xd0\xb0\x3d\xec\xb1\x7d\xa7\xb3\x5d\x23\xd4\x6c\x1f\x1d\xb2\xbd\xff\xad\xe5\x6c\xe6\x7c\xb4\xaa\x3f\x52\x88\x65\xff\xc9\x42\xec\xf7\xf8\x2e\x6f\x7c\x97\x3e\x4c\x27\x25\xda\x3b\x96\x65\x4f\x1f\xe6\x6f\x6a\x9f\x46\x1a\x29\x4a\x44\x5d\x7d\x5e\xa9\x07\x0e\x9c\x1e\x3a\x70\x3a\x5e\x8b\x74\x14\x8d\x1b\x1f\xaa\xef\xfa\x70\x37\xcf\x9e\x1f\x7f\xf7\x2b\x07\x7d\xbe\x7e\xb7\x74\x7c\x9c\x75\x17\x75\xa6\xd6\xdc\xd0\x0e\x91\xeb\x70\x30\xb0\xe8\xc9\x5e\x3a\xf7\xd3\xa6\xb6\xda\x88\x75\xe4\xe7\xff\x0d\x3b\x7b\x6a\x7e\x7e\x42\x22\xec\x44\x9f\xe5\xbe\xd0\x1b\x9d\x86\x35\x02\x7a\x5e\x8a\x3e\xeb\x1f\x62\xd5\xbf\x94\xa2\x9d\xec\x2f\x0f\x64\xed\x46\x96\x34\xb2\x7c\x4f\xf6\xed\x03\x59\xa7\x91\x75\xd1\xe7\x2a\xc2\x3b\xc9\x5f\x1f\x48\x92\x8d\xa8\x57\x8b\x12\xbc\x93\x7d\xb7\x5f\x8f\x98\x61\x47\x1f\xda\x1c\x75\x4d\xd9\xb4\x9a\x48\x9a\x66\xf5\xa0\xad\xef\x6c\x1a\x51\xdd\x68\x04\xab\xea\x30\xaa\x3b\x3b\xf5\x7f\xab\x3d\x06\x59\x3d\x45\xf0\xd4\x14\x5d\x33\xda\xb6\xb2\xdf\x3d\x6d\xd7\xcc\x36\x0d\x5d\x99\xb5\x1e\x58\x12\x3c\xb4\xe4\xfd\xc6\x12\x08\x9a\xcf\x2d\xbf\xd7\x96\xae\x19\xfc\x59\xab\xaa\x46\xf2\xd8\x4f\xc9\x43\xeb\xbe\xec\x8a\xb2\xd1\x18\xa2\xef\x7d\x66\xda\x14\x1b\x62\x64\x51\xcb\xb5\x1c\x82\x2d\x0a\x1e\x61\x84\x63\xdb\xb6\xc0\x25\xd4\xc1\xd4\xf3\x3c\x60\x84\x31\x8f\x50\xdb\x73\x80\x51\x0f\x3b\x0e\x77\xb9\x03\xc4\xe1\xd8\xc6\x16\xa6\x1c\x88\xed\x31\xec\xd8\xae\xe5\x81\x45\x31\xc3\x0e\x67\xd4\x1d\x43\x24\x46\xc4\x71\x3c\x6c\x59\x0e\xb6\xc0\x22\x8c\x11\x8b\x51\xc7\x01\x82\x89\xe5\x61\x46\x19\x05\xea\x38\x16\x73\xb1\x63\x53\x20\x16\xf7\x5c\xcf\x22\xc4\x03\x6a\x63\xec\x52\xea\x51\x06\x9c\xba\x8e\xc5\x6c\x8b\x03\xe1\x8c\x30\xee\x51\xca\xc7\xb0\x2d\x52\x36\x9f\x49\xfa\xfb\x5c\xba\xf9\x32\xd2\x97\x22\xf2\x1f\xde\xb0\x5c\xa6\x6f\x8c\x34\x93\xcd\xa0\xbe\xb6\xf6\x3b\xdf\xb8\x8e\x1f\x69\xe2\x84\x3e\xd2\xf4\x07\x14\x3d\xc9\x57\x9f\xf2\x69\x3e\xbf\x39\xf8\xe4\xa2\x09\xfb\xf1\xa7\x99\xb7\xf3\x7d\x99\xe5\xc1\x07\x99\xc7\x55\xe6\xd9\xc1\x2b\x1f\x08\xea\x77\x3d\x4d\xd6\x35\x83\x02\x16\x70\x03\x25\x7c\x81\x15\x7c\x85\x33\x38\x87\x0b\x78\x0e\x97\xf0\x02\xae\x35\x94\x5e\x3e\xfc\x8e\x16\x1d\x7e\x52\x8c\x50\x21\x6c\x06\x37\x82\xc0\x0b\xf1\x76\x35\x0b\x54\x01\xa5\x78\x07\x5f\xc4\xdf\x60\x25\xde\xc3\x57\xf1\x16\xce\xc4\xaf\x70\x2e\xde\xc0\x85\xf8\x05\x2e\xc5\xcf\xf0\x5c\xfc\x04\x2f\xc5\xab\xbf\xf6\x3d\x2d\x12\x52\x9f\x52\x99\x90\x23\x32\xf6\x03\x21\x47\x74\xec\x27\x42\x8e\xac\xb1\x1f\x0b\x39\x62\x63\x3f\x17\x72\xc4\xc7\x3a\xf3\x1b\xd9\x63\x5f\x09\x39\x72\xc6\xd5\x99\xb5\x10\x2d\xec\x2f\x06\x85\xbf\xd0\x27\x15\xb1\x87\x8b\x67\x3a\x15\x3e\xbe\x81\x54\x84\xbb\x54\xf8\x19\xee\x87\xa3\xd9\x18\x66\xfb\x83\x5d\x52\x0f\x77\xc9\x18\xae\x47\x8b\x71\x75\x2c\xbe\x30\x53\x98\x21\xd4\xaf\x06\xbe\x98\x67\xe6\xf5\x68\x71\x42\xc7\x48\x4b\x9c\x38\x63\xf8\x5a\x0d\x10\xde\x8c\x10\x5b\x67\x5c\x62\x65\x2a\xb8\x30\x63\x04\xcf\xcd\x2a\x22\x08\x5e\x8e\x16\xb5\x56\x04\x33\x51\x9a\xe7\x66\x84\xe0\xd2\xac\x49\x07\x81\x12\x53\x98\x8a\x1c\x72\x11\x43\x2c\x4a\x33\x81\x14\x41\x22\x02\x08\x44\x06\x99\x88\x20\x12\x65\x65\x88\xaf\x5d\x23\x4a\x33\x02\xdd\xd0\x5d\xa2\xbb\x19\xe8\x86\xee\x52\xdd\x0d\x40\x37\x74\xd7\x1a\x57\xda\x74\x43\x77\x99\xee\xc6\xa0\x1b\xba\xcb\x75\x37\x07\xdd\xd0\x5d\x5b\x77\xa7\xa0\x1b\xba\xeb\xe8\xae\x02\xdd\xd8\x43\x9f\xc6\xda\x2b\xff\x95\x18\x11\x42\x6c\x8b\x53\x86\x5d\x20\xae\xe7\x31\xe6\x30\x46\xc0\xc2\xcc\xb3\xa8\xc5\x1c\x02\x96\x47\x09\xc6\x1e\x77\x2c\xf0\x6c\xe2\xb9\x0e\xd1\x35\x1a\xc7\xae\xe7\x60\xcf\xb3\x80\x32\x6e\xd9\x16\x77\x98\x0b\xd4\x75\xb0\x63\x5b\x94\x12\xb0\x6c\xca\x2c\x97\x60\x17\x83\x45\x30\xf7\x5c\x86\x09\xd8\xd8\xa1\x94\x53\xc7\x05\xc2\xa8\xed\xba\x5a\x1b\x10\x8f\x72\xec\xb8\x96\xeb\x02\x25\x36\xc5\x8e\x4b\xb1\x0d\x2d\x6a\x13\xe6\xba\x2e\xd1\xec\x44\x99\x4b\x29\xe5\x5a\x97\x6b\x71\x4d\x4f\x98\x00\xc3\x94\x52\xca\x1c\x87\x01\xb5\x99\xc5\x1c\xec\xb8\x60\xe3\x9a\xb0\x5c\x70\x1c\x4c\x39\xf7\x5c\x5d\x4f\x32\x8f\x70\x4c\x28\x05\xc2\x39\xc7\x2e\xb1\x3d\x0a\xc4\xf3\x6c\x6c\x33\xcf\xb5\x81\x72\xce\x28\xc5\xae\x4b\x81\xba\x94\xb8\x16\xb3\x98\x07\xd4\xe3\xd4\xf3\x6c\x17\xbb\x60\x51\x82\x2d\x62\xd9\xda\x1b\x96\x65\x73\x87\xb8\x1e\x01\x8b\xbb\x4c\x33\x20\x21\x40\x88\xe5\x51\x5b\x7b\xc3\xb2\x5c\xca\x88\xeb\x71\xb0\x6d\xdb\xc2\x0e\xc5\x1c\x1c\xc7\xd2\xaa\xaa\x82\xda\x63\x0e\x77\x2c\x47\x33\xaa\x67\x13\xcd\xa3\x44\x53\x34\x27\xae\xe5\x60\x0c\xc4\x73\x6d\xdb\x26\x98\x13\xa0\x44\x2f\xc1\xb6\x38\xd6\x2e\xb6\x3d\x6e\x63\xcb\x01\xea\x58\x98\xb9\xdc\xa3\x44\xdb\xaa\x29\x9e\x11\x02\x16\xe5\x9e\x63\x61\x17\x63\xb0\x2c\xc6\x1d\x9b\x39\xda\x56\x4e\x6c\x6c\x73\x97\x38\x60\xd9\x18\x5b\x9c\xba\x98\x01\xc3\x1e\xe3\x0e\xf1\xb0\x07\x54\x1f\x06\x96\xc5\x18\x30\x0b\xd3\x8a\xee\x81\x63\xdb\x63\xae\x4d\x6c\xb0\xb9\x87\x6d\xcc\xb9\x0d\xae\x6b\x79\x9e\xe3\x3a\x0e\x78\xdc\x25\x96\xc7\x1d\x02\xc4\xa2\x54\x47\x45\xd7\xf2\x5c\xdb\x4e\xb1\xc6\x85\xc3\x1c\xd7\xb1\x1c\xc7\x03\xe2\x71\xce\x6d\x1d\x23\xa0\xda\x4a\xcc\x5c\xc2\x81\x56\xd3\x60\xc6\x29\x50\xcb\x26\x2e\xa7\x8c\x32\xa0\x8c\xba\xcc\xb2\x99\xc3\xa0\x45\x1d\x6e\x3b\x16\x23\xae\x53\x1f\x58\x16\x61\x8e\x07\x96\x45\x3d\x8b\x72\xea\xb9\x63\xbf\xbd\xa1\x4e\xcd\x6f\xcd\x5b\xbf\xfa\x5f\x35\x9d\x4e\xfd\xdb\x93\xb3\xe8\x59\xdd\xdc\xfd\x37\x65\x9b\x32\xdd\xdc\xa3\x7e\x7b\x95\x37\x7f\xc4\xd9\x7b\x75\xa8\xbe\x68\x9a\x5e\x3e\x33\x9f\xbc\x3b\x9b\x47\xab\x4c\x75\x3a\xf5\x6f\xaf\x11\xee\x74\xcc\xc3\x01\x71\x83\x60\xd7\xec\xbf\xee\x55\xff\xa4\x11\x37\xf7\xc8\xd4\xe9\x3e\xf2\x5b\xff\x17\x00\x00\xff\xff\x8a\x1d\x7d\x6b\xa4\x24\x00\x00") - -func webdataSha256JsBytes() ([]byte, error) { - return bindataRead( - _webdataSha256Js, - "webdata/sha256.js", - ) -} - -func webdataSha256Js() (*asset, error) { - bytes, err := webdataSha256JsBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "webdata/sha256.js", size: 9380, mode: os.FileMode(436), modTime: time.Unix(1, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -var _webdataTexPng = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x00\x26\x0f\xd9\xf0\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\x00\x00\x40\x00\x00\x00\x40\x08\x06\x00\x00\x00\xaa\x69\x71\xde\x00\x00\x0e\xed\x49\x44\x41\x54\x78\xda\x75\x9b\xe7\x72\x1b\x4b\x0e\x85\x31\xdd\xd3\x13\x49\x51\xf2\x7d\xff\x47\x5c\x8b\x69\x72\xe8\xfb\x63\x01\xd7\x67\xac\xd6\x55\x2a\xd2\x13\x3a\xa0\x81\x83\x83\xc0\x42\x44\x3e\xe5\xbf\xff\xee\x22\xf2\x25\x22\x2f\x11\x29\x44\xe4\x43\x44\x46\x11\xa9\x45\x64\x12\x91\x56\x44\xa2\x88\x3c\x45\xa4\x14\x91\x55\x44\x92\xde\x2f\x74\x8c\xa7\x8e\x21\x22\xf2\x5b\x44\x6e\x22\xf2\xd6\xf7\x2e\x22\xb2\x88\xc8\xa6\x63\x05\x9d\xf3\x43\xaf\x1d\x22\xd2\x8b\xc8\xa0\x9f\x9b\xce\xc3\xb1\x0b\x11\x69\x74\x8d\xb5\x5e\x5f\x74\x9e\x5d\xc7\x4c\x3a\xd6\x53\x44\x3a\x11\xa9\x44\xe4\xd4\x35\x1c\xf8\xbc\x8b\xc8\x67\x21\x22\xff\xe8\x66\xa2\x2e\xf6\xa2\x0f\xd8\xdf\xa9\x93\xd5\xd8\x98\x88\xc8\x2f\xfd\x3c\xf4\xfd\x56\xbf\x8b\x2e\x30\xeb\xe6\x6c\x61\xab\x2e\x5e\x9c\x40\xef\xba\xe8\x02\xf3\x65\x9d\xaf\xd2\xe7\xa3\x7e\x9e\x2a\x98\xac\xe3\x66\xdd\xe4\x43\x85\x60\x07\x79\xc5\xbb\x6f\x9d\x4b\xdc\x7c\x8d\x88\xcc\x85\x4e\x7c\xd3\x81\x1b\x1d\xb8\xd0\xc1\x0b\x11\x99\xf5\x7a\xc4\x06\xc5\xfd\xdf\x16\xde\x38\x21\x5c\xf5\xfb\xa6\xf7\x3b\x3c\x2f\x38\x11\xd1\xb9\x46\x08\xe6\x70\xc2\x7a\xe9\x18\xbf\x70\xf2\xb5\x6a\x4c\x83\x75\xed\x2a\xec\x52\xd7\xde\xeb\xb8\x9d\x8e\x1b\x39\x77\xd0\x53\x8a\xfa\xe2\x1d\x2a\x57\xe8\xf5\x80\x17\x16\x6c\xee\x50\x21\xd9\xa4\xa6\x7a\x0f\x8c\x11\xf5\x1d\x33\x15\x53\xbd\x51\x37\x33\x61\xe1\xd9\x09\x68\xd0\xef\xad\x6e\xe4\xaa\xe6\xfa\x82\x60\xb8\xf9\xbb\xce\x57\xeb\x38\xa7\x0a\x21\xc2\xcc\x0f\x98\x5b\x14\x91\xdf\x51\x17\xbb\xaa\xa4\x0a\x48\x48\x74\xf3\x41\x17\x57\xea\x46\xde\xaa\x5e\xb6\xb9\x52\x27\xb5\x67\x4d\xf5\x6c\xc3\xb3\x7e\x8f\x3a\x8e\x61\x40\xd2\x3f\x5b\x7c\xa3\x8b\x36\xed\xab\x74\x83\x2d\x4e\xae\xd0\x8d\x47\x7d\xbe\xc4\x5a\x7b\x9d\x6f\xd2\xcf\x46\xff\x82\x0a\xcd\x84\x61\x9a\x91\x04\x17\x2e\x6a\xdb\x3d\x06\x7c\xe9\xc9\x6e\xba\x81\x13\xf6\x65\x42\xb2\x05\x3c\x74\xa1\xa3\x5e\xcb\xba\x88\x0a\x9b\x34\x01\x35\xba\x80\x08\xa1\x98\xe9\x94\x18\xdb\xd6\x76\xa8\xd0\x57\x08\xbb\xd0\xb1\x0c\x28\x03\x80\xb2\xd2\xbf\xd5\x1d\x5e\x80\x69\xd9\xbd\x22\x02\x3c\x3a\x7d\x38\xea\xe6\x3f\x75\xa0\x11\xf6\x66\x92\x0b\xb8\xb6\xeb\xe6\xef\x2a\xc0\x87\x6e\x28\xc1\x56\x03\xd4\x3d\xea\xb8\x19\xf3\x65\x00\xe1\x5d\xc7\x34\x01\x6c\x7a\x40\x83\x2e\xdc\xbc\x52\xa9\xd7\x78\x08\x3d\x4e\xb8\xc6\xf5\xc6\x61\x4f\x65\x42\x8c\x58\x68\xd6\x81\x33\x54\x67\x56\xc1\xd4\x58\xd0\xa4\x2f\xdb\x26\x16\x7d\xde\x54\xbf\xd1\x4d\xd4\x50\xbf\x46\x17\x6f\x9a\xf0\x8d\x93\x7c\xe8\x1c\x87\x9d\x8a\x6a\x9b\x01\x6b\x82\x49\x34\xba\xe9\x4e\x3f\x03\xdc\x9c\xcd\x61\x58\xf2\xad\x02\xa9\x60\xb6\x33\xc6\x7a\x89\xc8\x1e\xa0\x3e\x41\x25\x7f\xc0\xdd\x25\x98\xc4\x81\xd3\xb3\xeb\xab\x9e\xce\x7f\x30\xce\xa4\xae\xd5\x5c\xce\x0d\xa7\xdd\xe9\xc4\xbf\x1c\xfa\x8b\x6e\x68\xd7\xcf\x03\x18\x63\xdc\x21\x38\x20\xeb\x01\x9a\x01\x3c\xa2\x71\x60\x6e\xa6\xfa\x82\x8b\xb7\xef\x75\x04\x8a\x07\xd8\x7a\x05\x9b\x35\xa0\x1b\xb1\xf1\x84\x13\x78\x81\x4b\xd8\xf5\x0a\xbe\x3c\x42\xea\x01\x60\x97\x01\x66\xe2\xfe\x7f\x40\xd5\x2b\x77\x10\x27\xd6\x69\x26\x92\xc0\x63\x6c\xbd\x37\x60\x92\x3d\xb7\xa9\xd0\xcc\x63\x55\x11\xf6\x55\x80\x79\x0d\xba\x20\x5b\xb0\xbd\x6c\x98\x30\xeb\x7b\x11\x13\xbc\xf5\x5d\x53\xed\x05\x4c\x72\xc4\x89\x1b\x43\x9b\x70\xca\x04\x28\xdb\xcc\xa4\x9b\x28\x60\xd3\x77\xa0\x7d\x01\xe0\xe4\x49\x07\xc5\x24\x73\x91\x46\x9a\x2e\xd0\x70\xf3\x68\x6b\xd4\xc1\xff\xd1\x9b\xb6\xc1\x5e\xaf\x9b\xcf\x6c\x71\x8a\x09\xee\x2c\xb9\x01\x47\x80\x8f\x81\x57\x80\x86\x99\x80\x32\x3e\xa9\xc2\x11\xdf\x5b\xb0\xd1\x0a\xe6\xb6\x62\xa3\x01\xa0\x9d\x20\x98\x17\x04\xb9\xab\x20\x7e\xeb\xfb\x46\xb8\x0e\x11\x99\x23\x7c\x7a\x09\x9a\x59\x82\xca\xda\xa2\x9e\x40\x6a\xaa\x5e\xa5\x40\x36\x69\x1c\x30\xea\x84\x6f\x9c\x40\x09\xb7\x45\x5a\x3b\x80\x65\x8a\xbe\x6b\x9a\x76\x60\xb1\x76\x30\xb6\xf9\x13\x6e\x74\x83\xd0\x4b\x70\x90\xa8\xcf\x05\xfd\xbc\x80\x94\xd9\x1c\x7d\x00\xe5\x35\x00\xeb\x75\xb3\x27\x98\x9d\xa8\x5b\x0c\xba\x31\x9e\xf4\xa4\x83\x57\x88\x25\x16\xb8\x57\x5b\x28\x37\x62\xe0\x77\xd1\x77\x66\x9c\x76\xeb\xdc\x66\xd6\x67\xae\xc0\xa4\x84\x53\x4c\xba\xde\x08\x0f\x62\x26\xb7\x02\x9b\x04\x87\x1d\xcc\x6c\x2d\x18\x1a\xc1\x9e\xcc\x95\xb4\xb0\xd1\xda\xf9\xf4\xe0\x82\x1e\x0b\x5c\x9e\xba\xf1\x41\xb5\xe7\x70\xbc\x3e\xc3\x76\x2b\x75\x55\x37\x98\x49\x01\xef\x62\x66\x77\x42\x90\xdc\x68\xed\x22\x3c\x7b\x6f\x03\xd0\x06\x77\x7f\x03\x50\xf7\x46\x84\x6a\xd8\x70\x01\x04\x2e\x15\x74\x2e\x70\x4f\x54\xb7\x59\x37\x59\xc1\x9e\x7b\xbc\x7f\x00\x1f\x02\xe8\xee\x0b\x76\xd9\xc2\x23\x9c\xce\x25\x9b\xea\x2e\x18\xaf\x82\xb6\x74\x10\x6a\x00\x6f\x30\x97\x67\xd4\xbe\xc0\xe6\x03\x40\x32\x88\xc8\x14\x41\x64\x22\x1e\x28\xb1\x11\x23\x44\x2d\xc8\x8e\xc0\xed\xb4\xca\x03\x1a\x6c\xe0\xe1\xdc\xcd\x37\x26\x4d\xc0\x86\x8c\xf1\x36\xb8\xd8\x13\xff\x3f\x61\x7a\x15\x02\x2b\x33\x29\xf3\x50\x2b\x22\xc1\x1e\xe6\x69\xf4\xda\x4e\xfd\xd4\xe7\x5e\x22\x72\x58\xa4\xc4\x10\x78\xd0\x17\x8d\x1a\x5b\x58\x6b\x9c\xbc\x03\xb0\x95\x38\x79\xaa\xdb\x0a\xd5\x4d\xf0\xbf\x46\xab\x3b\xb8\x34\xd2\xe1\x12\x66\xb2\xea\x67\x0b\x97\x59\xaa\x19\xf4\xb0\x6f\x86\xb9\xa5\x0a\xd7\x08\x14\x4d\x38\xc1\x3b\x18\x16\x7d\x44\xd0\x5a\x01\x50\xec\x50\xeb\x13\x12\xbc\x42\x48\x25\xc0\xcc\x10\xdd\x62\x85\x15\x82\x12\xa8\x66\x0b\xac\xf8\x70\x82\x37\xe0\xdb\x41\x86\x12\x68\x6e\x02\xf5\xdd\xb0\xc1\xe8\x98\x2a\xd9\x6a\x09\x52\x26\x78\xdf\xf0\xee\x8f\xe4\x09\x28\x25\x5c\x8d\x00\x41\x1b\xa8\x62\x0f\x97\x46\x54\xed\xf4\xfe\x07\x36\xf5\x40\x14\xf7\x5b\xc7\xe9\x60\xe3\x01\x26\x95\x71\x3a\xd1\xd1\x57\x6a\x67\xab\x63\x12\xa0\x4d\xad\x23\x38\xcd\xe0\x58\xe4\x0a\x93\x9f\x44\xa4\x34\x57\x24\x18\x88\xe4\xe3\xff\x65\x80\xcc\x35\x7d\xba\x28\x4b\x5c\x2e\xa1\x70\xd7\x5e\x50\xd9\x03\x99\x1a\xa6\xbd\x98\xde\xb2\x77\x5a\xbd\xfe\x89\x50\x78\x81\x16\xda\x78\x3b\xbc\xc4\x8a\x54\x98\x99\xcd\x1b\xe1\xb2\x88\x48\x8c\x60\x59\x93\xfe\xd5\x88\xa3\x4d\xc2\x4f\x00\xda\x8c\x81\x0b\xe7\x8f\x0b\x4c\x72\xd7\xe7\xde\xce\xc6\x0b\x10\xa0\xb7\x4b\x9e\x10\x7b\x36\x3c\x9b\x10\x01\x8e\x88\x2c\x67\x08\x61\xd6\x79\xc9\x12\x07\xf0\x89\x5d\x35\x73\x82\x00\xc6\xa8\x76\x5d\x20\xa4\x9d\xa1\x22\x3d\x36\x12\x60\x57\xe1\x87\xcd\xbc\x90\x33\xb0\x88\x50\xc0\xe3\x09\x72\x01\x00\xd5\x23\x91\x31\x63\xde\x1d\x1b\x2a\xc1\xfa\x22\x48\x54\x82\x56\x9d\x08\xd5\x4b\x68\x60\x03\x93\x39\x61\xb2\xab\x88\xf4\x11\x2e\xa5\x41\x52\x81\x8b\xad\x61\xab\xa3\x8b\xed\x4d\x4b\x2a\x00\xce\x84\x34\x75\xc4\x73\xb3\x4b\x4e\xee\x48\xc1\x59\xb4\x79\x45\x7e\xb1\x82\x29\xbd\x21\x04\x03\xb8\x87\x6a\xcd\x0d\xb8\x50\x43\x0b\x99\x29\x9a\xa1\xd9\x34\x83\xb7\x05\x43\x5f\x48\x3e\x04\xd8\xdd\xdb\x05\x40\x09\x83\x32\x17\xb7\x21\x26\xb8\x81\xd7\x07\xdc\xcb\x2e\xc1\x61\xdf\x17\x2c\x28\x42\x5b\xc2\x0f\xae\x30\x80\xe4\x78\x52\xb4\xea\x7a\x6b\xcc\xc7\x58\x63\x80\x86\x1a\x6f\x90\x08\xc6\x74\x47\x14\xf8\x01\x5b\x1f\xe1\x0d\x76\xa8\xd0\x03\xd7\x83\x7b\x66\x05\x2b\xec\x90\x59\x12\x00\xac\x05\x58\x44\xfe\x1a\x3e\x9f\xd9\xa6\x03\x99\xe4\x4f\x68\xd5\x06\x8e\x62\x73\x46\xb0\x42\xcb\x78\x59\x2e\xf3\x89\x9a\x41\x25\x22\x39\x42\xba\x09\xd2\x7e\x02\xa4\x2e\x28\x9c\x04\x70\x80\xfa\x07\x6d\x60\xf8\x1c\x91\x27\x68\x70\xd2\x11\x29\xb1\x1a\xb1\xbb\xc0\x8e\x5b\x44\xa6\x15\xee\x5d\x91\x9e\x8f\x00\xe3\x0c\xe1\x0d\x3f\x30\xdb\x0c\x3c\x58\xa0\x65\x4b\x00\xc1\x99\x61\xb3\x01\x19\xa0\x19\x92\xa5\xdb\x9a\x20\x80\x37\x48\x54\xe9\xdc\x29\xdd\xac\x05\x2b\x9f\x18\x83\x2a\x5c\xe9\xf3\x86\x35\x3d\x38\xc0\x0a\x77\xbb\x81\x27\x30\x65\xd7\x20\x0f\xb0\xb8\x02\x8a\xcd\x37\x83\x7d\x1e\x41\x27\xb4\x45\xd9\x64\x17\x9d\x9c\x2a\xb8\x62\xf3\x0f\x80\xd2\x08\x36\x97\x9d\x40\x5e\x8e\x3b\x64\x10\x93\x11\x3e\x9d\x5e\xa3\x44\x91\x66\x45\x76\x89\x87\xf3\xa1\x5a\x7a\x60\xbe\x07\x34\xc5\x12\xb1\x0c\xdb\x23\x68\x78\xe1\x53\x62\x2c\x2b\x31\x32\xeb\x10\xc9\x31\x4a\xeb\x81\xe2\x8d\x63\x90\x25\xd4\x30\x80\x2d\x9e\x2e\x0b\x64\x41\xcd\x03\x14\x75\x46\x4c\x21\xa8\x21\x6c\x60\xab\x77\x1c\xcc\x05\xf7\x78\x40\xc9\x21\xfe\xa9\xdf\x6f\xa0\xfa\x87\x85\xc3\x33\x22\xa4\x06\x3e\xfe\x1b\x68\xda\xc0\xd7\x33\xb9\x90\x91\xc5\xcd\xf0\xcb\x57\x94\xaa\x4a\x64\x62\x1b\x14\x4d\x32\x4c\xc3\x5c\xb0\xd1\xd7\x1b\x5c\x65\xe7\xc2\x6a\x41\xe2\xd6\xb4\x31\x3b\xfe\x6f\x02\x3f\x11\x34\x7d\x41\x0b\x2d\x4c\x5e\xa2\xaa\x5e\x05\xd5\x0b\x88\xf0\xb2\xa3\x9a\x9b\x8b\x1b\x04\x88\xba\x20\x3b\x14\x11\x18\x95\x70\x85\x56\x07\x48\xd0\x86\xa7\x82\x99\xa9\xec\x27\xd8\xde\x82\xf7\x22\x00\xb6\x81\x20\x04\x07\xe8\xf3\x95\x86\x47\x57\x17\x1e\x9b\xa9\xd5\xd1\x51\xdf\x02\xf6\x41\x4e\x3f\x83\x84\x18\x08\xbd\x9d\x26\x54\x08\x79\x23\x88\x51\x44\xc1\x25\xa1\xa6\x77\xba\xe2\xe9\x82\x8d\xd6\x08\x6d\x77\x9c\x6a\x84\x5a\xef\x20\x5e\x87\x9e\x70\x80\x09\x17\x2e\xc8\xf2\x89\xd8\x87\x61\x40\x80\xbd\x58\x9c\x1e\x20\x98\x01\x8b\xb3\xb8\xe0\x82\x4c\xd0\x0e\xf5\x9c\x41\x70\xde\x18\x23\x02\x79\x05\x9b\x58\x5d\xed\xbe\x74\x69\x2e\x82\xe6\x13\x60\xbb\x20\xfb\xfb\x81\x77\x99\x56\x2b\x61\x3a\x19\x40\xfc\x84\x80\xd7\xa8\x03\x04\x54\x67\xbe\x90\x4b\x2f\x5c\x69\xea\x00\x16\x30\x0e\x67\x89\x2b\x63\xe2\xd1\x35\x50\xb0\x36\x38\x22\x91\x92\x5d\x99\xfc\x0d\x77\x76\x80\x9a\xef\x48\x6e\x94\xae\x77\x81\x01\x50\x05\x0f\x62\xda\xb0\x41\xbb\x2c\x31\xd3\x47\xa0\x26\xeb\x7d\xc1\x15\x40\x17\x00\xcf\x13\x19\xda\xf5\x07\xae\xf0\x86\x06\xd5\x30\x05\x6e\x50\x1c\xc3\x4b\xd0\x8c\x12\x38\xf3\xc6\xe6\x8d\x99\x16\xf0\x0c\x57\x6c\x7e\xc7\xdc\xac\x2e\x99\xe6\xec\x38\x08\x9b\x63\x0f\x2e\x81\x39\xb8\x64\xc4\x0e\x1c\x58\xd0\xb0\x10\xf1\xfd\x70\x99\x99\x8c\x7c\x9e\x20\xc5\x1e\x40\xab\x23\xea\x77\xc4\x9b\xe4\xc6\xba\x20\xc0\xb1\x6a\xd2\x0b\xc9\x54\x92\xa3\x02\x39\xbf\x15\x60\xf7\x81\x14\xdd\x87\xcb\x12\x2f\x11\xfc\x7e\xc0\x20\x0f\x98\x46\x09\x4e\xbd\x83\xba\x96\x08\x78\x12\xaa\xcb\x15\xde\xdb\xe0\xc6\x4e\x54\x6d\x3b\x17\x55\xd6\xa0\xc3\x11\x66\x50\x82\x50\x95\xc0\x9d\x08\x00\x1e\x10\x22\x5b\x06\x69\x82\xc9\x4d\x2e\x95\x57\xc3\x2c\xaa\x88\x4d\xb7\x8e\x46\xd2\xfd\x9c\x70\x71\xb6\xc8\x87\xcb\x07\x36\xe8\x05\x6a\xb1\xc0\x27\x18\x58\x86\xbb\x8b\x30\x15\xcb\x11\x32\x93\x64\xbc\xe4\x1b\x6e\xd3\x67\x7f\x4a\xb7\xce\xc2\xa5\xe3\x33\x34\x3c\x62\x0d\x96\xc7\x88\x85\xfa\xdd\x0d\x38\x30\xa2\xf2\x62\x78\x70\x75\x79\xb5\xca\x55\x94\x04\x4c\x6b\xc2\xc4\xe2\x52\x6a\xab\x6b\xc1\x79\x23\x77\x60\x05\xd7\x6f\x20\xfb\xe1\x3c\x47\xeb\xc6\x9c\x74\xcc\x1b\xa8\xb5\x99\xce\x0b\xcc\x50\xe0\xbd\x58\xdd\x6e\x22\x54\x6a\x06\x15\x35\x81\xdc\x90\x99\x2d\x5d\xc5\xa6\x70\x00\x16\x40\x6b\x1b\xe0\x48\x05\x96\x67\xe5\xeb\x03\x0b\x1d\xa0\x19\x02\xce\xc1\x2c\xd1\x0c\x8e\x91\x1c\x66\x34\x2e\xa9\xc2\x1c\x23\xb9\x00\x4b\x6d\x16\x5a\x2f\x6c\x36\x22\xd3\xaa\xa0\x3a\x3b\x22\x3f\xfa\xd4\x15\x9c\x3a\x41\x4d\xd9\xac\x58\x01\xa0\x8c\xe2\x76\x98\xef\xe1\xa8\x2e\xeb\x77\x0d\xd2\x5b\x8c\x0d\xc4\x95\xca\x58\x43\xb8\x20\x0f\x78\x41\x5d\x23\x21\xb2\x3c\x90\xb5\xbe\x46\x50\x48\xf6\xee\x50\xfd\x4e\xd4\xda\x0e\x04\x17\x27\x8a\x9b\xec\xc6\x4a\xe0\x14\x2c\x46\xd2\x3b\x04\x00\xe4\x0a\xf2\x24\x2e\x33\x35\x40\xb8\xc6\x27\x46\xac\x91\xcc\xd3\x12\x1f\xa5\x6b\xb6\x0a\x28\xea\x5c\x71\x20\x95\x55\x86\x7e\xe9\x8b\x33\xc0\xea\x80\xda\x24\xa8\xd3\x82\x0d\x97\x00\xb1\x02\x2e\xae\x43\x71\x95\x02\x99\x71\x2a\x09\x55\x9e\x0b\x28\x6a\xe1\xf2\x09\x7c\xb7\x43\xc2\xc5\xd7\x28\x18\x7d\xd6\xae\x41\x8b\xb1\x0a\xdb\x72\x32\xed\xa4\x07\xad\xdd\x5c\x3f\xd0\x08\x64\x66\x5d\x6f\x72\x6a\xfc\x72\xe9\xaa\x87\x23\x2a\x74\x97\x01\x44\x85\x79\x84\x19\xc5\xcd\x16\xd7\xd9\x5f\x70\x83\x90\x12\xf2\x92\x9e\x09\x0a\x4c\x72\x82\xe9\xb1\x09\x34\x33\x4e\xdf\xc1\xe6\x6a\xd7\x94\xc4\xf6\x94\xe0\xda\x6a\x3b\x3d\x49\x26\x54\xde\xd8\xfc\x81\x14\x9b\x09\xee\xed\x28\xec\x0b\xa6\x26\xe0\x12\x6c\x8e\xfa\x46\xf3\xf5\xe6\x36\x93\x21\xd8\xe4\xdc\xe5\x00\x2d\x9d\x10\x88\xcd\x22\x52\x17\xc8\xc4\x1c\xae\x1a\x9b\x5d\x17\x57\x74\xcf\x19\x08\x5e\x71\xed\x0e\x15\x3c\x51\x20\xf9\x44\x5e\x3f\xb9\xbe\x81\x19\x45\x8b\x13\xc2\x3d\xe0\x21\x76\x34\x3e\xb1\x5c\xee\xf3\x91\x33\xa8\xee\x0b\x60\x2e\xd8\xcb\x84\xac\xd7\x5f\x1d\x9f\xc1\xd5\xe9\x36\xd7\xb5\xc9\xfa\x5c\x0b\xb2\x52\xaa\xba\x6f\x8a\x27\x23\x62\x00\x36\x51\xcd\xa8\xfe\x18\x3e\x8c\xa8\xfa\x9c\xaa\x29\x02\x6f\xd3\xa2\x96\xb8\xbb\x76\x9d\xda\x01\x2c\x35\x77\x41\x7f\xe3\xee\x1a\x3a\xac\xa7\xe1\xb7\x31\xc1\xc3\x15\x0d\x08\x3a\xd9\xb5\xb0\x65\x78\x8a\x15\x51\x56\x46\x51\x23\x38\xb7\xca\x9e\x9f\x05\x1d\x24\x3d\x04\x65\xf7\x2e\x88\x39\x26\x74\x8f\xef\x30\x8d\x07\xf2\x07\x0d\x90\x3e\x83\x2c\x25\xb4\xc3\x1a\x4e\xd5\xd8\xa7\xad\x6b\x89\x40\xc8\x84\x9e\x7e\x06\x13\xa7\x2b\x81\x9d\x00\xc4\x41\x17\xcd\xae\x8c\x0d\x27\xf8\x44\x00\x62\x9d\x9e\x4f\xb6\xa9\xb9\x34\x56\x04\x4e\x04\x0d\xcd\x17\x78\x87\xec\x50\x7e\xc5\x3b\x2f\xf4\x3a\x2c\x20\x75\x09\x07\x90\x60\xa6\xb5\x65\x84\xae\xae\x53\x2c\xba\x82\xe3\xe8\x72\x7e\xec\xf3\x59\xa0\x5e\x1d\x16\x18\x00\x6a\x77\xd7\x11\x52\x38\x92\x53\x80\xd0\x14\x20\x41\x19\xd9\x9d\x13\x4c\x73\x81\x1b\x5e\x50\x43\xb8\x80\x7f\x6c\x88\x02\x2d\x0c\x9e\x51\x3e\x33\x8d\x0e\x11\xc8\xfe\x00\xdd\xb5\x74\xf7\x05\x51\x5c\x85\x8d\x07\xd7\x57\x9c\xa1\x3d\x6f\x47\x43\x7b\x57\xba\x9e\x5c\x35\x89\xe4\x2a\xc2\x64\x28\xc4\x17\xfa\x0f\x7a\xb8\xc9\x0d\x6a\x3e\x40\xb3\x6a\x68\x14\xab\xc1\x33\xb4\x40\x44\x24\x19\x70\x7c\x23\x1a\x13\xd7\x29\xba\x3a\x96\x66\x9b\x3f\x61\x0e\x1d\xea\xf5\xe9\x87\x5c\x1c\x91\xbb\x41\x32\x93\x6c\x8f\x7d\x7f\xc1\xf1\x8f\x1d\x49\xda\x8c\x1f\x51\x74\x18\xff\x84\xfa\x57\xae\x3f\x28\x39\xd0\x36\xc0\xff\xa3\x01\xcc\xb9\x77\xf8\xd5\xc5\x08\xda\x58\x20\x11\xc9\x9e\xe2\x06\x41\x88\xa9\xe8\x0a\x8a\xcd\x3e\x82\xd3\x2d\xa6\xc0\xe6\x03\xdc\xd9\x08\x95\x0e\x48\x7c\xb0\xc3\xfc\xe2\xbc\x0a\x93\xad\x25\x82\xa3\x1a\xa4\xa9\x72\x6c\x31\x47\xd7\xd4\x10\xf1\xd0\x02\x92\xc1\xf6\xf9\xc9\xd5\x06\x5f\xe8\xbe\xf8\xd2\xfb\xbf\x50\xab\xab\xe5\xef\x5f\x89\x08\x2a\x43\x15\x52\x5f\x6c\xd7\x59\xd1\x25\xde\x41\x6b\x4a\x57\x60\x89\x40\xf9\x16\xe6\xc0\xa6\x88\xd2\x71\x1a\x16\x57\xda\x08\x2e\x2e\xb0\xcf\x01\x54\x32\xa1\x43\x24\xc1\x36\x05\xa9\x6b\xf6\xed\x2d\xae\x5a\x94\xdd\x49\xac\xae\x4c\x76\x3a\xee\x51\x40\xcb\x58\x2a\x2f\xf1\xe3\x07\x3b\x8c\x15\x05\x56\x03\xe5\x01\x59\xeb\x04\xe1\x3c\x71\x68\x7f\xea\x0a\x11\x68\x3c\xa2\xbf\x2e\xa1\xb2\xeb\x55\x94\x1d\x60\x33\x3c\x43\x06\x25\xde\x5c\x34\xc8\xae\xed\x84\x45\x0c\xb0\xc9\x37\x4e\x91\xe4\x26\x40\x43\x4e\xb8\x34\x76\xa9\xcf\x08\x7a\xaa\x1f\x92\xaf\xec\x70\x63\xe9\x2d\xb2\x3f\xc0\xab\xe7\x82\x1f\x3b\xcc\x38\x55\x86\x99\x11\x69\xf0\x1d\xa7\x7c\xa2\xb8\x1a\x40\x4b\x83\x6b\x8d\x3b\x21\xfc\x0b\xdc\x22\x69\xee\x6f\x84\xb1\x3e\x1f\x11\x91\x11\xca\x20\x62\x77\xb4\xdf\xcc\x30\x63\xae\x67\x37\x13\x68\x5d\x8a\xea\xd0\x09\xe9\x3e\x76\xc7\x0f\x46\x70\xfa\x80\xd4\xb8\x65\x81\x16\xa4\xca\x99\xe4\xc8\x40\xf8\x16\xaa\x5d\xbb\x5e\xe2\xec\xba\xbd\x3c\xa5\xbd\x23\x5b\xd4\xb9\x0c\x51\x46\x69\x5d\x5c\x5b\xbd\xdd\xef\x08\x82\xbb\x6b\x42\x30\x35\x9d\xe0\x09\x56\xf9\xfb\x57\x5d\x03\x3c\xc7\x02\x21\x4c\x6a\x02\x35\x9a\x9f\x36\x2c\x76\x83\x1b\x23\x7d\xe5\x2f\x4a\x0a\xd7\xdb\x13\x5d\x5d\xb1\x00\x36\x25\xd7\xa3\x90\x1c\x9d\x2f\x5d\xc0\x74\x07\x86\xfc\x71\x83\x2d\xdc\x58\xf1\x43\xda\xc9\xba\xc7\x5a\x9c\x20\x0b\x1d\xac\xb7\xb5\x08\x75\x59\xa6\x0e\x10\x18\x8b\x2f\xd9\xb9\xcc\xdd\x69\xdc\x13\x59\x67\x33\xa9\x2b\xaa\x44\x34\xc9\x09\x58\xd3\x01\xbb\xc8\x26\xaf\xc0\xab\x49\x44\x5e\x11\x7e\x7f\x40\x80\x53\xe0\x94\x03\xea\xeb\xc9\xd9\xe0\x0c\xa2\xb4\x43\x65\x27\xd8\x68\x01\x04\x7e\xfc\xd0\xba\x52\xe1\xf9\x16\xa5\x36\x12\x23\x56\x83\x6b\x04\x37\x95\x63\x83\xb3\x3b\x04\xeb\x48\x99\xc0\x1b\x46\xe4\x22\xfa\xc8\x5a\xb9\xcb\x99\x95\x6e\xb1\x6f\x14\x45\x0e\x54\x6a\x76\x97\x13\xbc\xc8\xff\xfe\xf8\xaa\xc0\x82\x17\x07\xa8\xec\x4a\xb9\xbb\xdc\xc3\xdb\x9d\x78\x03\xd3\xdc\x61\x52\x07\xb0\x24\xff\xd0\xd5\x56\x03\x1c\x4b\x80\x7c\x64\x73\x31\xab\x36\x6c\x56\x64\x58\xb9\x22\x91\x69\xc1\xc8\x17\xcc\xa1\xc3\x09\xda\xa4\xdf\x00\xcc\x0d\x27\x11\xc1\x0e\x2f\xae\x11\xe3\x81\xee\x90\xc6\xc5\x16\x8c\x1c\x93\xeb\x71\x2a\x71\x78\xb3\xfc\xfd\x63\xac\x09\x1d\x22\xe6\x7d\xd2\xbf\x07\xe4\x68\x00\x10\x3b\x06\x69\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\x01\x00\x00\xff\xff\x91\x78\x0d\x81\x26\x0f\x00\x00") - -func webdataTexPngBytes() ([]byte, error) { - return bindataRead( - _webdataTexPng, - "webdata/tex.png", - ) -} - -func webdataTexPng() (*asset, error) { - bytes, err := webdataTexPngBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "webdata/tex.png", size: 3878, mode: os.FileMode(436), modTime: time.Unix(1, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - cannonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[cannonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - cannonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[cannonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "webdata/fn.js": webdataFnJs, - "webdata/icon.png": webdataIconPng, - "webdata/icon.woff": webdataIconWoff, - "webdata/index.html": webdataIndexHtml, - "webdata/main.css": webdataMainCss, - "webdata/sha256.js": webdataSha256Js, - "webdata/tex.png": webdataTexPng, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("notexist") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - cannonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(cannonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} - -var _bintree = &bintree{nil, map[string]*bintree{ - "webdata": &bintree{nil, map[string]*bintree{ - "fn.js": &bintree{webdataFnJs, map[string]*bintree{}}, - "icon.png": &bintree{webdataIconPng, map[string]*bintree{}}, - "icon.woff": &bintree{webdataIconWoff, map[string]*bintree{}}, - "index.html": &bintree{webdataIndexHtml, map[string]*bintree{}}, - "main.css": &bintree{webdataMainCss, map[string]*bintree{}}, - "sha256.js": &bintree{webdataSha256Js, map[string]*bintree{}}, - "tex.png": &bintree{webdataTexPng, map[string]*bintree{}}, - }}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} - -func _filePath(dir, name string) string { - cannonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) -} - -func assetFS() *assetfs.AssetFS { - assetInfo := func(path string) (os.FileInfo, error) { - return os.Stat(path) - } - for k := range _bintree.Children { - return &assetfs.AssetFS{Asset: Asset, AssetDir: AssetDir, AssetInfo: assetInfo, Prefix: k} - } - panic("unreachable") -} diff --git a/bindata.go b/bindata.go deleted file mode 100644 index f81829b..0000000 --- a/bindata.go +++ /dev/null @@ -1,4 +0,0 @@ -package main - -//go:generate go-bindata-assetfs -mode 0664 -modtime 1 -o ./bindata.generated.go webdata/... -//go:generate gofmt -w ./bindata.generated.go diff --git a/desktop/com.github.unrud.RemoteTouchpad.metainfo.xml b/desktop/com.github.unrud.RemoteTouchpad.metainfo.xml index edab8b7..113ef4d 100644 --- a/desktop/com.github.unrud.RemoteTouchpad.metainfo.xml +++ b/desktop/com.github.unrud.RemoteTouchpad.metainfo.xml @@ -17,8 +17,159 @@ com.github.unrud.RemoteTouchpad.desktop https://github.com/Unrud/remote-touchpad/issues https://github.com/Unrud/remote-touchpad - Unrud + https://github.com/Unrud/remote-touchpad + Unrud + + Unrud + + + +
    +
  • Improve X11 keyboard input
  • +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Add restore token support for the remote desktop portal
  • +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Prevent incorrect MIME types
  • +
+
+
+ + +
    +
  • Keep text input open after sending
  • +
  • Workaround for virtual keyboard covering buttons (Chromium & iOS)
  • +
  • Enable hardware keyboard input in mouse mode
  • +
+
+
+ + +
    +
  • Fix Xwayland detection on newer servers
  • +
  • Fix support for the KDE remote desktop portal
  • +
  • Set correct minimum version for Go
  • +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Fix Windows support
  • +
+
+
+ + +
    +
  • uinput: Fix vertical scroll direction
  • +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Add feedback to buttons
  • +
  • Add numeric keypad
  • +
  • Prevent touch triggering mouse mode
  • +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Initial support for uinput
  • +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Improve XWayland detection
  • +
  • Update dependencies
  • +
  • Flatpak: Add Wayland socket to disable X11 socket
  • +
+
+
+ + +
    +
  • Update dependencies
  • +
  • Fix race in RemoteDesktop portal controller
  • +
+
+
+ + +
    +
  • Update dependencies
  • +
+
+
+ + +
    +
  • Add command-line options for move and scroll speed
  • +
  • Add hardware mouse support
  • +
  • Limit update rate
  • +
  • Windows: Reverse vertical scroll direction
  • +
  • Show error message if compiled without controller
  • +
  • Don't show disabled controllers in "unsupported platform" error message
  • +
  • Switch from go-bindata-assetfs to go:embed
  • +
+
+
    @@ -222,16 +373,16 @@ - https://raw.githubusercontent.com/Unrud/remote-touchpad/v1.1.0/screenshots/1.png + https://raw.githubusercontent.com/Unrud/remote-touchpad/v1.5.4/screenshots/1.png - https://raw.githubusercontent.com/Unrud/remote-touchpad/v1.1.0/screenshots/2.png + https://raw.githubusercontent.com/Unrud/remote-touchpad/v1.5.4/screenshots/2.png - https://raw.githubusercontent.com/Unrud/remote-touchpad/v1.1.0/screenshots/3.png + https://raw.githubusercontent.com/Unrud/remote-touchpad/v1.5.4/screenshots/3.png - https://raw.githubusercontent.com/Unrud/remote-touchpad/v1.1.0/screenshots/4.png + https://raw.githubusercontent.com/Unrud/remote-touchpad/v1.5.4/screenshots/4.png diff --git a/flatpak/com.github.unrud.RemoteTouchpad.yaml b/flatpak/com.github.unrud.RemoteTouchpad.yaml index c035aaa..239160e 100644 --- a/flatpak/com.github.unrud.RemoteTouchpad.yaml +++ b/flatpak/com.github.unrud.RemoteTouchpad.yaml @@ -1,27 +1,24 @@ app-id: com.github.unrud.RemoteTouchpad runtime: org.freedesktop.Platform -runtime-version: '21.08' +runtime-version: '25.08' sdk: org.freedesktop.Sdk command: remote-touchpad sdk-extensions: - org.freedesktop.Sdk.Extension.golang finish-args: - - --socket=x11 - --socket=fallback-x11 + - --socket=wayland + - --share=ipc # Required by Flathub linter - --share=network modules: - name: remote-touchpad sources: - # Vendor dependencies: go mod vendor -v - type: git - url: https://github.com/elazarl/go-bindata-assetfs - tag: v1.0.1 - commit: 234c15e7648ff35458026de92b34c637bae5e6f7 - dest: vendor/github.com/elazarl/go-bindata-assetfs + path: .. - type: git url: https://github.com/godbus/dbus - tag: v5.0.6 - commit: daa017464e266380cdeb4e6f9613eba9182b59a3 + tag: v5.2.2 + commit: a8ac15ba63645f02ffd57f4b443203279ab40b30 dest: vendor/github.com/godbus/dbus/v5 - type: git url: https://github.com/skip2/go-qrcode @@ -29,14 +26,17 @@ modules: dest: vendor/github.com/skip2/go-qrcode - type: git url: https://github.com/golang/net - commit: cd36cc0744dd695657988f15f08446dc81e16efc + tag: v0.57.0 + commit: b8f09f6f062ceb4531b7af4bd17a5c8fe9c4b2b5 dest: vendor/golang.org/x/net + - type: git + url: https://github.com/golang/sys + tag: v0.47.0 + commit: 9e7e939dcafac07e8ab4cffa6e5fc74908413f00 + dest: vendor/golang.org/x/sys - type: file path: modules.txt dest: vendor - - type: git - path: .. - branch: master buildsystem: simple build-commands: - . /usr/lib/sdk/golang/enable.sh; go build -tags portal,x11 diff --git a/flatpak/modules.txt b/flatpak/modules.txt index a515dda..6092904 100644 --- a/flatpak/modules.txt +++ b/flatpak/modules.txt @@ -1,14 +1,17 @@ -# github.com/elazarl/go-bindata-assetfs v1.0.1 -## explicit -github.com/elazarl/go-bindata-assetfs -# github.com/godbus/dbus/v5 v5.0.6 -## explicit +# github.com/bendahl/uinput v1.7.0 +## explicit; go 1.13 +github.com/bendahl/uinput +# github.com/godbus/dbus/v5 v5.2.2 +## explicit; go 1.20 github.com/godbus/dbus/v5 # github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e -## explicit +## explicit; go 1.13 github.com/skip2/go-qrcode github.com/skip2/go-qrcode/bitset github.com/skip2/go-qrcode/reedsolomon -# golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd -## explicit +# golang.org/x/net v0.57.0 +## explicit; go 1.25.0 golang.org/x/net/websocket +# golang.org/x/sys v0.47.0 +## explicit; go 1.25.0 +golang.org/x/sys/unix diff --git a/go.mod b/go.mod index 9453bae..5afd19d 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,12 @@ module github.com/unrud/remote-touchpad -go 1.15 +go 1.25.5 require ( - github.com/elazarl/go-bindata-assetfs v1.0.1 - github.com/godbus/dbus/v5 v5.0.6 + github.com/bendahl/uinput v1.7.0 + github.com/godbus/dbus/v5 v5.2.2 github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e - golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd + golang.org/x/net v0.57.0 ) + +require golang.org/x/sys v0.47.0 // indirect diff --git a/go.sum b/go.sum index 75e1b62..783b4df 100644 --- a/go.sum +++ b/go.sum @@ -1,13 +1,10 @@ -github.com/elazarl/go-bindata-assetfs v1.0.1 h1:m0kkaHRKEu7tUIUFVwhGGGYClXvyl4RE03qmvRTNfbw= -github.com/elazarl/go-bindata-assetfs v1.0.1/go.mod h1:v+YaWX3bdea5J/mo8dSETolEo7R71Vk1u8bnjau5yw4= -github.com/godbus/dbus/v5 v5.0.6 h1:mkgN1ofwASrYnJ5W6U/BxG15eXXXjirgZc7CLqkcaro= -github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/bendahl/uinput v1.7.0 h1:nA4fm8Wu8UYNOPykIZm66nkWEyvxzfmJ8YC02PM40jg= +github.com/bendahl/uinput v1.7.0/go.mod h1:Np7w3DINc9wB83p12fTAM3DPPhFnAKP0WTXRqCQJ6Z8= +github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ= +github.com/godbus/dbus/v5 v5.2.2/go.mod h1:3AAv2+hPq5rdnr5txxxRwiGjPXamgoIHgz9FPBfOp3c= github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e h1:MRM5ITcdelLK2j1vwZ3Je0FKVCfqOLp5zO6trqMLYs0= github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e/go.mod h1:XV66xRDqSt+GTGFMVlhk3ULuV0y9ZmzeVGR4mloJI3M= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/net v0.57.0 h1:K5+3DljvIuDG9/Jv9rvyMywYNFCQ9RSUY6OOTTkT+tE= +golang.org/x/net v0.57.0/go.mod h1:KpXc8iv+r3XplLAG/f7Jsf9RPszJzdR0f58q9vGOuEU= +golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= +golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= diff --git a/host.go b/host.go index 022938e..622b3bf 100644 --- a/host.go +++ b/host.go @@ -28,7 +28,7 @@ import ( const ipv4Rating int = +1 -func FindDefaultHost() string { +func findDefaultHost() string { type hostsValue struct { prio int host string @@ -74,7 +74,8 @@ func FindDefaultHost() string { continue } for _, linkLocalPrefix := range []string{ - "169.254.", "fe8", "fe9", "fea", "feb"} { + "169.254.", "fe8", "fe9", "fea", "feb", + } { if strings.HasPrefix(ip.String(), linkLocalPrefix) { addIP(20, ip) continue addrs diff --git a/icon_font/U+1F507 Speaker with Cancellation Stroke.svg b/icon-font/U+1F507 Speaker with Cancellation Stroke.svg similarity index 100% rename from icon_font/U+1F507 Speaker with Cancellation Stroke.svg rename to icon-font/U+1F507 Speaker with Cancellation Stroke.svg diff --git a/icon_font/U+1F509 Speaker with One Sound Wave.svg b/icon-font/U+1F509 Speaker with One Sound Wave.svg similarity index 100% rename from icon_font/U+1F509 Speaker with One Sound Wave.svg rename to icon-font/U+1F509 Speaker with One Sound Wave.svg diff --git a/icon_font/U+1F50A Speaker with Three Sound Waves.svg b/icon-font/U+1F50A Speaker with Three Sound Waves.svg similarity index 100% rename from icon_font/U+1F50A Speaker with Three Sound Waves.svg rename to icon-font/U+1F50A Speaker with Three Sound Waves.svg diff --git a/icon_font/U+1FA9F Window.svg b/icon-font/U+1FA9F Window.svg similarity index 100% rename from icon_font/U+1FA9F Window.svg rename to icon-font/U+1FA9F Window.svg diff --git a/icon_font/U+2190 Leftwards Arrow.svg b/icon-font/U+2190 Leftwards Arrow.svg similarity index 100% rename from icon_font/U+2190 Leftwards Arrow.svg rename to icon-font/U+2190 Leftwards Arrow.svg diff --git a/icon_font/U+2191 Upwards Arrow.svg b/icon-font/U+2191 Upwards Arrow.svg similarity index 100% rename from icon_font/U+2191 Upwards Arrow.svg rename to icon-font/U+2191 Upwards Arrow.svg diff --git a/icon_font/U+2192 Rightwards Arrow.svg b/icon-font/U+2192 Rightwards Arrow.svg similarity index 100% rename from icon_font/U+2192 Rightwards Arrow.svg rename to icon-font/U+2192 Rightwards Arrow.svg diff --git a/icon_font/U+2193 Downwards Arrow.svg b/icon-font/U+2193 Downwards Arrow.svg similarity index 100% rename from icon_font/U+2193 Downwards Arrow.svg rename to icon-font/U+2193 Downwards Arrow.svg diff --git a/icon_font/U+21BB Clockwise Open Circle Arrow.svg b/icon-font/U+21BB Clockwise Open Circle Arrow.svg similarity index 100% rename from icon_font/U+21BB Clockwise Open Circle Arrow.svg rename to icon-font/U+21BB Clockwise Open Circle Arrow.svg diff --git a/icon_font/U+2261 Identical To.svg b/icon-font/U+2261 Identical To.svg similarity index 100% rename from icon_font/U+2261 Identical To.svg rename to icon-font/U+2261 Identical To.svg diff --git a/icon_font/U+2326 Erase To the Right.svg b/icon-font/U+2326 Erase To the Right.svg similarity index 100% rename from icon_font/U+2326 Erase To the Right.svg rename to icon-font/U+2326 Erase To the Right.svg diff --git a/icon_font/U+2328 Keyboard.svg b/icon-font/U+2328 Keyboard.svg similarity index 100% rename from icon_font/U+2328 Keyboard.svg rename to icon-font/U+2328 Keyboard.svg diff --git a/icon_font/U+232B Erase To the Left.svg b/icon-font/U+232B Erase To the Left.svg similarity index 100% rename from icon_font/U+232B Erase To the Left.svg rename to icon-font/U+232B Erase To the Left.svg diff --git a/icon_font/U+23ED Black Right-Pointing Double Triangle with Vertical Bar.svg b/icon-font/U+23ED Black Right-Pointing Double Triangle with Vertical Bar.svg similarity index 100% rename from icon_font/U+23ED Black Right-Pointing Double Triangle with Vertical Bar.svg rename to icon-font/U+23ED Black Right-Pointing Double Triangle with Vertical Bar.svg diff --git a/icon_font/U+23EE Black Left-Pointing Double Triangle with Vertical Bar.svg b/icon-font/U+23EE Black Left-Pointing Double Triangle with Vertical Bar.svg similarity index 100% rename from icon_font/U+23EE Black Left-Pointing Double Triangle with Vertical Bar.svg rename to icon-font/U+23EE Black Left-Pointing Double Triangle with Vertical Bar.svg diff --git a/icon_font/U+23EF Black Right-Pointing Triangle with Double Vertical Bar.svg b/icon-font/U+23EF Black Right-Pointing Triangle with Double Vertical Bar.svg similarity index 100% rename from icon_font/U+23EF Black Right-Pointing Triangle with Double Vertical Bar.svg rename to icon-font/U+23EF Black Right-Pointing Triangle with Double Vertical Bar.svg diff --git a/icon_font/U+27A3 Three-D Bottom-Lighted Rightwards Arrowhead.svg b/icon-font/U+27A3 Three-D Bottom-Lighted Rightwards Arrowhead.svg similarity index 100% rename from icon_font/U+27A3 Three-D Bottom-Lighted Rightwards Arrowhead.svg rename to icon-font/U+27A3 Three-D Bottom-Lighted Rightwards Arrowhead.svg diff --git a/icon_font/U+2922 North East and South West Arrow.svg b/icon-font/U+2922 North East and South West Arrow.svg similarity index 100% rename from icon_font/U+2922 North East and South West Arrow.svg rename to icon-font/U+2922 North East and South West Arrow.svg diff --git a/icon_font/U+2B60 Leftwards Triangle-Headed Arrow.svg b/icon-font/U+2B60 Leftwards Triangle-Headed Arrow.svg similarity index 100% rename from icon_font/U+2B60 Leftwards Triangle-Headed Arrow.svg rename to icon-font/U+2B60 Leftwards Triangle-Headed Arrow.svg diff --git a/icon_font/U+2B62 Rightwards Triangle-Headed Arrow.svg b/icon-font/U+2B62 Rightwards Triangle-Headed Arrow.svg similarity index 100% rename from icon_font/U+2B62 Rightwards Triangle-Headed Arrow.svg rename to icon-font/U+2B62 Rightwards Triangle-Headed Arrow.svg diff --git a/icon_font/U+2B70 Leftwards Triangle-Headed Arrow To Bar.svg b/icon-font/U+2B70 Leftwards Triangle-Headed Arrow To Bar.svg similarity index 100% rename from icon_font/U+2B70 Leftwards Triangle-Headed Arrow To Bar.svg rename to icon-font/U+2B70 Leftwards Triangle-Headed Arrow To Bar.svg diff --git a/icon_font/U+2B72 Rightwards Triangle-Headed Arrow To Bar.svg b/icon-font/U+2B72 Rightwards Triangle-Headed Arrow To Bar.svg similarity index 100% rename from icon_font/U+2B72 Rightwards Triangle-Headed Arrow To Bar.svg rename to icon-font/U+2B72 Rightwards Triangle-Headed Arrow To Bar.svg diff --git a/icon_font/U+2B82 Rightwards Triangle-Headed Arrow Over Leftwards Triangle-Headed Arrow.svg b/icon-font/U+2B82 Rightwards Triangle-Headed Arrow Over Leftwards Triangle-Headed Arrow.svg similarity index 100% rename from icon_font/U+2B82 Rightwards Triangle-Headed Arrow Over Leftwards Triangle-Headed Arrow.svg rename to icon-font/U+2B82 Rightwards Triangle-Headed Arrow Over Leftwards Triangle-Headed Arrow.svg diff --git a/icon_font/U+2BA0 Downwards Triangle-Headed Arrow with Long Tip Leftwards.svg b/icon-font/U+2BA0 Downwards Triangle-Headed Arrow with Long Tip Leftwards.svg similarity index 100% rename from icon_font/U+2BA0 Downwards Triangle-Headed Arrow with Long Tip Leftwards.svg rename to icon-font/U+2BA0 Downwards Triangle-Headed Arrow with Long Tip Leftwards.svg diff --git a/icon_font/U+2BC7 Black Medium Left-Pointing Triangle Centred.svg b/icon-font/U+2BC7 Black Medium Left-Pointing Triangle Centred.svg similarity index 100% rename from icon_font/U+2BC7 Black Medium Left-Pointing Triangle Centred.svg rename to icon-font/U+2BC7 Black Medium Left-Pointing Triangle Centred.svg diff --git a/icon_font/icon.sfd b/icon-font/icon.sfd similarity index 100% rename from icon_font/icon.sfd rename to icon-font/icon.sfd diff --git a/backend.go b/inputcontrol/controller.go similarity index 66% rename from backend.go rename to inputcontrol/controller.go index 0a6cc92..111e937 100644 --- a/backend.go +++ b/inputcontrol/controller.go @@ -17,10 +17,14 @@ * along with Remote-Touchpad. If not, see . */ -package main +package inputcontrol -type PointerButton int -type Key int +import "sort" + +type ( + PointerButton int + Key int +) const ( PointerButtonLeft PointerButton = iota @@ -51,31 +55,39 @@ const ( KeyLimit ) -type BackendInfo struct { +type ControllerInfo struct { Name string - Init func() (Backend, error) + Init func() (Controller, error) + + priority int } -var Backends []BackendInfo = []BackendInfo{ - {"X11", InitX11Backend}, - {"RemoteDesktop portal", InitPortalBackend}, - {"Windows", InitWindowsBackend}, +var Controllers []ControllerInfo + +func RegisterController(name string, init func() (Controller, error), priority int) { + Controllers = append(Controllers, ControllerInfo{name, init, priority}) + sort.SliceStable(Controllers, func(i, j int) bool { + return Controllers[i].priority < Controllers[j].priority + }) } type UnsupportedPlatformError struct { - err error + Err error } -func (e UnsupportedPlatformError) Error() string { - return e.err.Error() +func (e *UnsupportedPlatformError) Error() string { + return e.Err.Error() } -type Backend interface { +func (e *UnsupportedPlatformError) Unwrap() error { + return e.Err +} + +type Controller interface { Close() error KeyboardText(text string) error KeyboardKey(key Key) error PointerButton(button PointerButton, press bool) error PointerMove(deltaX, deltaY int) error - PointerScroll(deltaHorizontal, deltaVertical int) error - PointerScrollFinish() error + PointerScroll(deltaHorizontal, deltaVertical int, finish bool) error } diff --git a/inputcontrol/controller_null.go b/inputcontrol/controller_null.go new file mode 100644 index 0000000..6188cce --- /dev/null +++ b/inputcontrol/controller_null.go @@ -0,0 +1,66 @@ +//go:build null + +/* + * Copyright (c) 2023 Unrud + * + * This file is part of Remote-Touchpad. + * + * Remote-Touchpad is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Remote-Touchpad is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Remote-Touchpad. If not, see . + */ + +package inputcontrol + +import ( + "log" +) + +type nullController struct{} + +func init() { + RegisterController("null", InitNullController, 1000) +} + +func InitNullController() (Controller, error) { + return &nullController{}, nil +} + +func (p *nullController) Close() error { + return nil +} + +func (p *nullController) KeyboardText(text string) error { + log.Printf("KeyboardText(text: %#v)", text) + return nil +} + +func (p *nullController) KeyboardKey(key Key) error { + log.Printf("KeyboardKey(key: %#v)", key) + return nil +} + +func (p *nullController) PointerButton(button PointerButton, press bool) error { + log.Printf("PointerButton(button: %#v, press: %#v)", button, press) + return nil +} + +func (p *nullController) PointerMove(deltaX, deltaY int) error { + log.Printf("PointerMove(deltaX: %#v, deltaY: %#v)", deltaX, deltaY) + return nil +} + +func (p *nullController) PointerScroll(deltaHorizontal, deltaVertical int, finish bool) error { + log.Printf("PointerScroll(deltaHorizontal: %#v, deltaVertical: %#v, finish: %#v)", + deltaHorizontal, deltaVertical, finish) + return nil +} diff --git a/inputcontrol/controller_portal.go b/inputcontrol/controller_portal.go new file mode 100644 index 0000000..99ecf8b --- /dev/null +++ b/inputcontrol/controller_portal.go @@ -0,0 +1,400 @@ +//go:build portal + +/* + * Copyright (c) 2018 Unrud + * + * This file is part of Remote-Touchpad. + * + * Remote-Touchpad is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Remote-Touchpad is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Remote-Touchpad. If not, see . + */ + +package inputcontrol + +import ( + "crypto/aes" + "crypto/cipher" + "crypto/hkdf" + "crypto/rand" + "crypto/sha256" + "errors" + "fmt" + "io" + "log" + "os" + "path/filepath" + "slices" + + "github.com/godbus/dbus/v5" +) + +const ( + deviceKeyboard uint32 = 1 + devicePointer uint32 = 2 + + btnReleased uint32 = 0 + btnPressed uint32 = 1 + + untilRevoked uint32 = 2 + + // linux/input-event-codes.h + btnLeft int32 = 0x110 + btnRight int32 = 0x111 + btnMiddle int32 = 0x112 +) + +type portalController struct { + bus *dbus.Conn + portalDesktop dbus.BusObject + sessionHandle dbus.ObjectPath +} + +func init() { + RegisterController("RemoteDesktop portal", InitPortalController, 1) +} + +func InitPortalController() (Controller, error) { + bus, err := dbus.SessionBusPrivate() + if err != nil { + return nil, &UnsupportedPlatformError{err} + } + cleanupBus := true + defer func() { + if cleanupBus { + bus.Close() + } + }() + err = bus.Auth(nil) + if err != nil { + return nil, &UnsupportedPlatformError{err} + } + err = bus.Hello() + if err != nil { + return nil, &UnsupportedPlatformError{err} + } + portalDesktop := bus.Object("org.freedesktop.portal.Desktop", + "/org/freedesktop/portal/desktop") + remoteDesktopVersionV, err := portalDesktop.GetProperty( + "org.freedesktop.portal.RemoteDesktop.version") + if err != nil { + return nil, &UnsupportedPlatformError{ + fmt.Errorf("getting 'version' failed: %w", err), + } + } + remoteDesktopVersion, ok := remoteDesktopVersionV.Value().(uint32) + if !ok { + return nil, &UnsupportedPlatformError{ + errors.New("unexpected 'version' type"), + } + } + restoreTokenStore, err := func() (*secretStore, error) { + if remoteDesktopVersion < 2 { + return nil, nil + } + cacheDirectory, err := os.UserCacheDir() + if err != nil { + return nil, err + } + if err := os.MkdirAll(cacheDirectory, 0o700); err != nil { + return nil, err + } + secret, err := retrieveSecret(bus) + if err != nil { + return nil, err + } + return newSecretStore(secret, + filepath.Join(cacheDirectory, "remote-touchpad.portal-restore-token.bin")) + }() + if err != nil { + log.Printf("Skipping restore token: %v", err) + } + availableDeviceTypesV, err := portalDesktop.GetProperty( + "org.freedesktop.portal.RemoteDesktop.AvailableDeviceTypes") + if err != nil { + return nil, &UnsupportedPlatformError{ + fmt.Errorf("getting 'AvailableDeviceTypes' failed: %w", err), + } + } + availableDeviceTypes, ok := availableDeviceTypesV.Value().(uint32) + if !ok { + return nil, &UnsupportedPlatformError{ + errors.New("unexpected 'AvailableDeviceTypes' return type"), + } + } + if availableDeviceTypes&deviceKeyboard == 0 || + availableDeviceTypes&devicePointer == 0 { + return nil, &UnsupportedPlatformError{ + errors.New("keyboard or pointer source type not supported"), + } + } + createSessionResults, err := checkResponse(getResponse(bus, portalDesktop, + "org.freedesktop.portal.RemoteDesktop.CreateSession", 0, + map[string]dbus.Variant{"session_handle_token": dbus.MakeVariant("t")}, + )) + if err != nil { + return nil, &UnsupportedPlatformError{ + fmt.Errorf("calling 'CreateSession' failed: %w", err), + } + } + sessionHandleString, ok := createSessionResults["session_handle"].Value().(string) + if !ok { + return nil, &UnsupportedPlatformError{ + errors.New("unexpected 'session_handle' type in 'CreateSession' return value"), + } + } + sessionHandle := dbus.ObjectPath(sessionHandleString) + selectDevicesOptions := map[string]dbus.Variant{ + "types": dbus.MakeVariant(deviceKeyboard | devicePointer), + } + if restoreTokenStore != nil { + if restoreToken, err := restoreTokenStore.Load(); err != nil { + if !errors.Is(err, os.ErrNotExist) { + log.Printf("Failed to load restore token: %v", err) + } + } else if len(restoreToken) > 0 { + selectDevicesOptions["restore_token"] = dbus.MakeVariant(string(restoreToken)) + } + selectDevicesOptions["persist_mode"] = dbus.MakeVariant(untilRevoked) + } + _, err = checkResponse(getResponse(bus, portalDesktop, + "org.freedesktop.portal.RemoteDesktop.SelectDevices", 0, + sessionHandle, selectDevicesOptions, + )) + if err != nil { + return nil, &UnsupportedPlatformError{ + fmt.Errorf("calling 'SelectDevices' failed: %w", err), + } + } + startResponseStatus, startResults, err := getResponse(bus, portalDesktop, + "org.freedesktop.portal.RemoteDesktop.Start", 0, + sessionHandle, "", map[string]dbus.Variant{}, + ) + if err != nil { + return nil, &UnsupportedPlatformError{ + fmt.Errorf("calling 'Start' failed: %w", err), + } + } + if startResponseStatus != 0 { + return nil, errors.New("keyboard or pointer access denied") + } + if restoreToken, _ := startResults["restore_token"].Value().(string); restoreTokenStore != nil { + if err := restoreTokenStore.Store([]byte(restoreToken)); err != nil { + log.Printf("Failed to store restore token: %v", err) + } + } + devices, ok := startResults["devices"].Value().(uint32) + if !ok { + return nil, &UnsupportedPlatformError{ + errors.New("unexpected 'devices' type in 'Start' return value"), + } + } + if devices&deviceKeyboard == 0 || devices&devicePointer == 0 { + return nil, errors.New("keyboard or pointer access denied") + } + cleanupBus = false + return &portalController{ + bus: bus, portalDesktop: portalDesktop, + sessionHandle: sessionHandle, + }, nil +} + +func retrieveSecret(bus *dbus.Conn) ([]byte, error) { + portalDesktop := bus.Object("org.freedesktop.portal.Desktop", + "/org/freedesktop/portal/desktop") + secretReader, secretWriter, err := os.Pipe() + if err != nil { + return nil, err + } + defer secretReader.Close() + defer secretWriter.Close() + if _, err := checkResponse(getResponse(bus, portalDesktop, + "org.freedesktop.portal.Secret.RetrieveSecret", 0, + dbus.UnixFD(secretWriter.Fd()), map[string]dbus.Variant{}, + )); err != nil { + return nil, fmt.Errorf("calling 'RetrieveSecret' failed: %w", err) + } + if err := secretWriter.Close(); err != nil { + return nil, err + } + secret, err := io.ReadAll(secretReader) + if err != nil { + return nil, err + } + if len(secret) < 16 { + return nil, fmt.Errorf("'RetrieveSecret' returned too few bytes (%d)", len(secret)) + } + return secret, err +} + +type secretStore struct { + aesgcm cipher.AEAD + filename string +} + +func newSecretStore(key []byte, filename string) (*secretStore, error) { + derivedKey, err := hkdf.Key(sha256.New, key, nil, "", 32) + if err != nil { + return nil, err + } + block, err := aes.NewCipher(derivedKey) + if err != nil { + return nil, err + } + aesgcm, err := cipher.NewGCM(block) + if err != nil { + return nil, err + } + return &secretStore{ + aesgcm: aesgcm, + filename: filename, + }, nil +} + +func (s *secretStore) Load() ([]byte, error) { + data, err := os.ReadFile(s.filename) + if err != nil { + return nil, err + } + if len(data) < s.aesgcm.NonceSize() { + return nil, errors.New("invalid ciphertext") + } + nonce := data[:s.aesgcm.NonceSize()] + ciphertext := data[len(nonce):] + return s.aesgcm.Open(nil, nonce, ciphertext, nil) +} + +func (s *secretStore) Store(data []byte) error { + nonce := make([]byte, s.aesgcm.NonceSize()) + if _, err := io.ReadFull(rand.Reader, nonce); err != nil { + return err + } + ciphertext := s.aesgcm.Seal(nil, nonce, data, nil) + return os.WriteFile(s.filename, slices.Concat(nonce, ciphertext), 0o600) +} + +func getResponse(bus *dbus.Conn, object dbus.BusObject, method string, + flags dbus.Flags, args ...interface{}, +) (uint32, map[string]dbus.Variant, error) { + ch := make(chan *dbus.Signal, 512) + bus.Signal(ch) + defer bus.RemoveSignal(ch) + var requestPath dbus.ObjectPath + if err := object.Call(method, flags, args...).Store(&requestPath); err != nil { + return 0, nil, err + } + for { + s := <-ch + if s.Path == requestPath && s.Name == "org.freedesktop.portal.Request.Response" { + if len(s.Body) != 2 { + return 0, nil, fmt.Errorf("unexpected 'Response' return length (%d)", len(s.Body)) + } + responseStatus, ok := s.Body[0].(uint32) + if !ok { + return 0, nil, errors.New("unexpected 'Response' return type") + } + results, ok := s.Body[1].(map[string]dbus.Variant) + if !ok { + return 0, nil, errors.New("unexpected 'Response' return type") + } + return responseStatus, results, nil + } + } +} + +func checkResponse(responseStatus uint32, results map[string]dbus.Variant, err error) (map[string]dbus.Variant, error) { + if err == nil && responseStatus != 0 { + err = fmt.Errorf("unexpected 'Response' status (%d)", responseStatus) + } + return results, err +} + +func (p *portalController) Close() error { + return p.bus.Close() +} + +func (p *portalController) keyboardKeys(keys []Keysym) error { + for _, keysym := range keys { + for _, state := range [...]uint32{btnPressed, btnReleased} { + if err := p.portalDesktop.Call( + "org.freedesktop.portal.RemoteDesktop.NotifyKeyboardKeysym", 0, + p.sessionHandle, map[string]dbus.Variant{}, keysym, state, + ).Store(); err != nil { + return err + } + } + } + return nil +} + +func (p *portalController) KeyboardText(text string) error { + keys := make([]Keysym, 0, len(text)) + for _, runeValue := range text { + keysym, err := RuneToKeysym(runeValue) + if err != nil { + return err + } + keys = append(keys, keysym) + } + return p.keyboardKeys(keys) +} + +func (p *portalController) KeyboardKey(key Key) error { + keysym, err := KeyToKeysym(key) + if err != nil { + return err + } + keys := [...]Keysym{keysym} + return p.keyboardKeys(keys[:]) +} + +func (p *portalController) PointerButton(button PointerButton, press bool) error { + var btn int32 + switch button { + case PointerButtonLeft: + btn = btnLeft + case PointerButtonMiddle: + btn = btnMiddle + case PointerButtonRight: + btn = btnRight + default: + return fmt.Errorf("unsupported pointer button: %#v", button) + } + state := btnReleased + if press { + state = btnPressed + } + if err := p.portalDesktop.Call("org.freedesktop.portal.RemoteDesktop.NotifyPointerButton", 0, + p.sessionHandle, map[string]dbus.Variant{}, btn, state, + ).Store(); err != nil { + return err + } + return nil +} + +func (p *portalController) PointerMove(deltaX, deltaY int) error { + if err := p.portalDesktop.Call("org.freedesktop.portal.RemoteDesktop.NotifyPointerMotion", 0, + p.sessionHandle, map[string]dbus.Variant{}, float64(deltaX), float64(deltaY), + ).Store(); err != nil { + return err + } + return nil +} + +func (p *portalController) PointerScroll(deltaHorizontal, deltaVertical int, finish bool) error { + if err := p.portalDesktop.Call("org.freedesktop.portal.RemoteDesktop.NotifyPointerAxis", 0, + p.sessionHandle, map[string]dbus.Variant{"finish": dbus.MakeVariant(finish)}, float64(deltaHorizontal), float64(deltaVertical), + ).Store(); err != nil { + return err + } + return nil +} diff --git a/inputcontrol/controller_uinput.go b/inputcontrol/controller_uinput.go new file mode 100644 index 0000000..2dd9bab --- /dev/null +++ b/inputcontrol/controller_uinput.go @@ -0,0 +1,200 @@ +//go:build uinput + +/* + * Copyright (c) 2023 De_Coder github.com/ps100000 + * Copyright (c) 2023 Unrud + * + * This file is part of Remote-Touchpad. + * + * Remote-Touchpad is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Remote-Touchpad is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Remote-Touchpad. If not, see . + */ + +package inputcontrol + +import ( + "errors" + "fmt" + "log" + "os" + "time" + + "github.com/bendahl/uinput" +) + +const shiftKeysDelay time.Duration = 50 * time.Millisecond + +type uinputController struct { + keymap *Keymap + keyboard uinput.Keyboard + mouse uinput.Mouse +} + +func init() { + RegisterController("uinput", InitUinputController, 10) +} + +func InitUinputController() (Controller, error) { + keymapName, keymapSet := os.LookupEnv("REMOTE_TOUCHPAD_UINPUT_KEYMAP") + if !keymapSet { + keymapName = "defkeymap" + } + keymap, err := LoadKeymap(keymapName) + if err != nil { + return nil, err + } + keyboard, err := uinput.CreateKeyboard("/dev/uinput", []byte("remote-touchpad-keyboard")) + if errors.Is(err, os.ErrNotExist) || errors.Is(err, os.ErrPermission) { + err = &UnsupportedPlatformError{err} + } + if err != nil { + return nil, err + } + mouse, err := uinput.CreateMouse("/dev/uinput", []byte("remote-touchpad-mouse")) + if errors.Is(err, os.ErrNotExist) || errors.Is(err, os.ErrPermission) { + err = &UnsupportedPlatformError{err} + } + if err != nil { + keyboard.Close() + return nil, err + } + if !keymapSet { + log.Print("Hint: Set the keyboard mapping with the REMOTE_TOUCHPAD_UINPUT_KEYMAP environment variable") + } + return &uinputController{keymap, keyboard, mouse}, nil +} + +func (p *uinputController) Close() error { + return errors.Join(p.keyboard.Close(), p.mouse.Close()) +} + +func (p *uinputController) KeyboardText(text string) error { + var activeShiftKeys KeyCombo + updateShiftKeys := func(keyCombo KeyCombo) error { + if activeShiftKeys.ShiftKeys == keyCombo.ShiftKeys { + activeShiftKeys.Key = keyCombo.Key + return nil + } + if activeShiftKeys.Key != 0 { + time.Sleep(shiftKeysDelay) + activeShiftKeys.Key = 0 + } + for i := range keyCombo.ShiftKeys { + if activeShiftKeys.ShiftKeys[i] != keyCombo.ShiftKeys[i] { + if activeShiftKeys.ShiftKeys[i] != 0 { + if err := p.keyboard.KeyUp(activeShiftKeys.ShiftKeys[i]); err != nil { + return err + } + activeShiftKeys.ShiftKeys[i] = 0 + } + if keyCombo.ShiftKeys[i] != 0 { + if err := p.keyboard.KeyDown(keyCombo.ShiftKeys[i]); err != nil { + return err + } + activeShiftKeys.ShiftKeys[i] = keyCombo.ShiftKeys[i] + } + } + } + if keyCombo.Key != 0 { + activeShiftKeys.Key = keyCombo.Key + time.Sleep(shiftKeysDelay) + } + return nil + } + defer updateShiftKeys(KeyCombo{}) + for _, runeValue := range text { + keyCombo, found := p.keymap.Get(runeValue) + if !found { + return fmt.Errorf("unsupported rune: %q", runeValue) + } + if err := updateShiftKeys(keyCombo); err != nil { + return err + } + if err := p.keyboard.KeyPress(keyCombo.Key); err != nil { + return err + } + } + return updateShiftKeys(KeyCombo{Key: 1}) +} + +func (p *uinputController) KeyboardKey(key Key) error { + var uinputKey int + switch key { + case KeyBackSpace: + uinputKey = uinput.KeyBackspace + case KeyReturn: + uinputKey = uinput.KeyEnter + case KeyDelete: + uinputKey = uinput.KeyDelete + case KeyHome: + uinputKey = uinput.KeyHome + case KeyLeft: + uinputKey = uinput.KeyLeft + case KeyUp: + uinputKey = uinput.KeyUp + case KeyRight: + uinputKey = uinput.KeyRight + case KeyDown: + uinputKey = uinput.KeyDown + case KeyEnd: + uinputKey = uinput.KeyEnd + case KeySuper: + uinputKey = uinput.KeyLeftmeta + case KeyVolumeMute: + uinputKey = uinput.KeyMute + case KeyVolumeDown: + uinputKey = uinput.KeyVolumedown + case KeyVolumeUp: + uinputKey = uinput.KeyVolumeup + case KeyMediaPlayPause: + uinputKey = uinput.KeyPlaypause + case KeyMediaPrevTrack: + uinputKey = uinput.KeyPrevioussong + case KeyMediaNextTrack: + uinputKey = uinput.KeyNextsong + case KeyBrowserBack: + uinputKey = uinput.KeyBack + case KeyBrowserForward: + uinputKey = uinput.KeyForward + default: + return fmt.Errorf("unsupported key: %#v", key) + } + return p.keyboard.KeyPress(uinputKey) +} + +func (p *uinputController) PointerButton(button PointerButton, press bool) error { + switch { + case button == PointerButtonLeft && press: + return p.mouse.LeftPress() + case button == PointerButtonLeft && !press: + return p.mouse.LeftRelease() + case button == PointerButtonRight && press: + return p.mouse.RightPress() + case button == PointerButtonRight && !press: + return p.mouse.RightRelease() + case button == PointerButtonMiddle && press: + return p.mouse.MiddlePress() + case button == PointerButtonMiddle && !press: + return p.mouse.MiddleRelease() + default: + return fmt.Errorf("unsupported pointer button: %#v", button) + } +} + +func (p *uinputController) PointerMove(deltaX, deltaY int) error { + return p.mouse.Move(int32(deltaX), int32(deltaY)) +} + +func (p *uinputController) PointerScroll(deltaHorizontal, deltaVertical int, finish bool) error { + return errors.Join(p.mouse.Wheel(false, int32(-deltaVertical)), p.mouse.Wheel(true, int32(deltaHorizontal))) +} diff --git a/backend_windows.go b/inputcontrol/controller_windows.go similarity index 69% rename from backend_windows.go rename to inputcontrol/controller_windows.go index a4931e9..58b5e9a 100644 --- a/backend_windows.go +++ b/inputcontrol/controller_windows.go @@ -1,4 +1,4 @@ -// +build windows +//go:build windows /* * Copyright (c) 2018 Unrud @@ -19,10 +19,10 @@ * along with Remote-Touchpad. If not, see . */ -package main +package inputcontrol import ( - "errors" + "fmt" "syscall" "unsafe" ) @@ -89,33 +89,36 @@ type keybdInput struct { padding [8]byte } -type windowsBackend struct{} +type windowsController struct{} -func InitWindowsBackend() (Backend, error) { - p := &windowsBackend{} +func init() { + RegisterController("Windows", InitWindowsController, 0) +} + +func InitWindowsController() (Controller, error) { + p := &windowsController{} if err := sendInputProc.Find(); err != nil { - return nil, UnsupportedPlatformError{err} + return nil, &UnsupportedPlatformError{err} } return p, nil } -func (p *windowsBackend) Close() error { +func (p *windowsController) Close() error { return nil } -func (p *windowsBackend) sendInput(inputs []keybdInput) error { +func (p *windowsController) sendInput(inputs []keybdInput) error { if len(inputs) == 0 { return nil } - if r, _, err := sendInputProc.Call(uintptr(len(inputs)), - uintptr(unsafe.Pointer(&inputs[0])), - unsafe.Sizeof(inputs[0])); int(r) != len(inputs) { + if sent, _, err := sendInputProc.Call(uintptr(len(inputs)), + uintptr(unsafe.Pointer(&inputs[0])), unsafe.Sizeof(inputs[0])); int(sent) != len(inputs) { return err } return nil } -func (p *windowsBackend) KeyboardText(text string) error { +func (p *windowsController) KeyboardText(text string) error { inputs := make([]keybdInput, 0, len(text)*2) for _, runeValue := range text { in := keybdInput{typ: inputKeyboard, wScan: uint16(runeValue), dwFlags: keyeventfUnicode} @@ -129,53 +132,54 @@ func (p *windowsBackend) KeyboardText(text string) error { return p.sendInput(inputs) } -func (p *windowsBackend) KeyboardKey(key Key) error { +func (p *windowsController) KeyboardKey(key Key) error { input := keybdInput{typ: inputKeyboard} - if key == KeyBackSpace { + switch key { + case KeyBackSpace: input.wVk = vkBack - } else if key == KeyReturn { + case KeyReturn: input.wVk = vkReturn - } else if key == KeyEnd { + case KeyEnd: input.wVk = vkEnd - } else if key == KeyHome { + case KeyHome: input.wVk = vkHome - } else if key == KeyLeft { + case KeyLeft: input.wVk = vkLeft - } else if key == KeyUp { + case KeyUp: input.wVk = vkUp - } else if key == KeyRight { + case KeyRight: input.wVk = vkRight - } else if key == KeyDown { + case KeyDown: input.wVk = vkDown - } else if key == KeyDelete { + case KeyDelete: input.wVk = vkDelete - } else if key == KeySuper { + case KeySuper: input.wVk = vkLwin - } else if key == KeyBrowserBack { + case KeyBrowserBack: input.wVk = vkBrowserBack - } else if key == KeyBrowserForward { + case KeyBrowserForward: input.wVk = vkBrowserForward - } else if key == KeyVolumeMute { + case KeyVolumeMute: input.wVk = vkVolumeMute - } else if key == KeyVolumeDown { + case KeyVolumeDown: input.wVk = vkVolumeDown - } else if key == KeyVolumeUp { + case KeyVolumeUp: input.wVk = vkVolumeUp - } else if key == KeyMediaNextTrack { + case KeyMediaNextTrack: input.wVk = vkMediaNextTrack - } else if key == KeyMediaPrevTrack { + case KeyMediaPrevTrack: input.wVk = vkMediaPrevTrack - } else if key == KeyMediaPlayPause { + case KeyMediaPlayPause: input.wVk = vkMediaPlayPause - } else { - return errors.New("key not mapped to virtual-key code") + default: + return fmt.Errorf("key not mapped to virtual-key code: %#v", key) } inputs := [...]keybdInput{input, input} inputs[1].dwFlags |= keyeventfKeyup return p.sendInput(inputs[:]) } -func (p *windowsBackend) PointerButton(button PointerButton, press bool) error { +func (p *windowsController) PointerButton(button PointerButton, press bool) error { input := mouseInput{typ: inputMouse} if button == PointerButtonLeft && press { input.dwFlags = mouseeventfLeftdown @@ -190,30 +194,30 @@ func (p *windowsBackend) PointerButton(button PointerButton, press bool) error { } else if button == PointerButtonRight { input.dwFlags = mouseeventfRightup } else { - return errors.New("unsupported pointer button") + return fmt.Errorf("unsupported pointer button: %#v", button) } - if r, _, err := sendInputProc.Call(1, uintptr(unsafe.Pointer(&input)), - unsafe.Sizeof(input)); int(r) != 1 { + if sent, _, err := sendInputProc.Call(1, uintptr(unsafe.Pointer(&input)), + unsafe.Sizeof(input)); int(sent) != 1 { return err } return nil } -func (p *windowsBackend) PointerMove(deltaX, deltaY int) error { +func (p *windowsController) PointerMove(deltaX, deltaY int) error { input := mouseInput{ typ: inputMouse, dx: int32(deltaX), dy: int32(deltaY), dwFlags: mouseeventfMove, } - if r, _, err := sendInputProc.Call(1, uintptr(unsafe.Pointer(&input)), - unsafe.Sizeof(input)); int(r) != 1 { + if sent, _, err := sendInputProc.Call(1, uintptr(unsafe.Pointer(&input)), + unsafe.Sizeof(input)); int(sent) != 1 { return err } return nil } -func (p *windowsBackend) PointerScroll(deltaHorizontal, deltaVertical int) error { +func (p *windowsController) PointerScroll(deltaHorizontal, deltaVertical int, finish bool) error { inputs := make([]mouseInput, 0, 2) if deltaHorizontal != 0 { inputs = append(inputs, mouseInput{ @@ -226,20 +230,15 @@ func (p *windowsBackend) PointerScroll(deltaHorizontal, deltaVertical int) error inputs = append(inputs, mouseInput{ typ: inputMouse, dwFlags: mouseeventfWheel, - mouseData: uint32(deltaVertical * scrollMult), + mouseData: uint32(-deltaVertical * scrollMult), }) } if len(inputs) == 0 { return nil } - if r, _, err := sendInputProc.Call(uintptr(len(inputs)), - uintptr(unsafe.Pointer(&inputs[0])), - unsafe.Sizeof(inputs[0])); int(r) != len(inputs) { + if sent, _, err := sendInputProc.Call(uintptr(len(inputs)), + uintptr(unsafe.Pointer(&inputs[0])), unsafe.Sizeof(inputs[0])); int(sent) != len(inputs) { return err } return nil } - -func (p *windowsBackend) PointerScrollFinish() error { - return nil -} diff --git a/backend_x11.go b/inputcontrol/controller_x11.go similarity index 50% rename from backend_x11.go rename to inputcontrol/controller_x11.go index ad3445b..f45b75b 100644 --- a/backend_x11.go +++ b/inputcontrol/controller_x11.go @@ -1,4 +1,4 @@ -// +build x11 +//go:build x11 /* * Copyright (c) 2018 Unrud @@ -19,52 +19,101 @@ * along with Remote-Touchpad. If not, see . */ -package main +package inputcontrol -// #cgo LDFLAGS: -lX11 -lXtst +// #cgo LDFLAGS: -lX11 -lXrandr -lXtst +// #include // #include // #include +// #include // #include // #include +// Window MacroDefaultRootWindow(Display *dpy) { +// return DefaultRootWindow(dpy); +// } import "C" + import ( "errors" "fmt" - "os" + "maps" + "slices" + "strings" "sync" "time" "unsafe" ) const ( - keyboardMappingDelay time.Duration = 500 * time.Millisecond + keyboardMappingDelay time.Duration = 200 * time.Millisecond scrollDiv int = 20 ) -var modifierIndices [6]uint = [...]uint{C.ShiftMapIndex, C.Mod1MapIndex, - C.Mod2MapIndex, C.Mod3MapIndex, C.Mod4MapIndex, C.Mod5MapIndex} +var modifierIndexes = [...]int{ + C.ShiftMapIndex, + C.Mod1MapIndex, + C.Mod2MapIndex, + C.Mod3MapIndex, + C.Mod4MapIndex, + C.Mod5MapIndex, +} -type x11Backend struct { +type x11Controller struct { display *C.Display lock sync.Mutex scrollHorizontal, scrollVertical int } -func InitX11Backend() (Backend, error) { - sessionType := os.Getenv("XDG_SESSION_TYPE") - if sessionType != "" && sessionType != "x11" { - return nil, UnsupportedPlatformError{errors.New(fmt.Sprintf( - "unsupported session type '%v'", sessionType))} - } - display := C.XOpenDisplay(nil) - if display == nil { - return nil, UnsupportedPlatformError{ - errors.New("failed to connect to X server")} - } - return &x11Backend{display: display}, nil +func init() { + RegisterController("X11", InitX11Controller, 0) } -func (p *x11Backend) Close() error { +func InitX11Controller() (Controller, error) { + display := C.XOpenDisplay(nil) + if display == nil { + return nil, &UnsupportedPlatformError{ + errors.New("failed to connect to X server"), + } + } + p := &x11Controller{display: display} + if p.xIsXwayland() { + p.Close() + return nil, &UnsupportedPlatformError{ + errors.New("X server is Xwayland"), + } + } + return p, nil +} + +func (p *x11Controller) xIsXwayland() bool { + // Detection method from https://gitlab.freedesktop.org/xorg/app/xisxwayland/-/blob/xisxwayland-2/xisxwayland.c + var opcode, event, error, major, minor C.int + xwaylandExtensionName := C.CString("XWAYLAND") + defer C.free(unsafe.Pointer(xwaylandExtensionName)) + if C.XQueryExtension(p.display, xwaylandExtensionName, &opcode, &event, &error) != 0 { + return true + } + if C.XRRQueryExtension(p.display, &event, &error) == 0 || + C.XRRQueryVersion(p.display, &major, &minor) == 0 { + return false + } + resources := C.XRRGetScreenResourcesCurrent(p.display, C.MacroDefaultRootWindow(p.display)) + if resources == nil { + return false + } + defer C.XRRFreeScreenResources(resources) + if resources.noutput < 1 { + return false + } + output := C.XRRGetOutputInfo(p.display, resources, *resources.outputs) + if output == nil { + return false + } + defer C.XRRFreeOutputInfo(output) + return strings.HasPrefix(C.GoString(output.name), "XWAYLAND") +} + +func (p *x11Controller) Close() error { p.lock.Lock() defer p.lock.Unlock() if p.display == nil { @@ -75,53 +124,68 @@ func (p *x11Backend) Close() error { return nil } -func (p *x11Backend) findEmptyKeycodeLocked() (C.KeyCode, C.int, error) { +func (p *x11Controller) findEmptyKeycodeLocked() (keycode C.KeyCode, keysymsPerKeycode int, err error) { var minKeycodes, maxKeycodes C.int C.XDisplayKeycodes(p.display, &minKeycodes, &maxKeycodes) - var keysymsPerKeycode C.int - keysyms := C.XGetKeyboardMapping(p.display, C.KeyCode(minKeycodes), - maxKeycodes-minKeycodes+1, &keysymsPerKeycode) + var keysymsPerKeycodeC C.int + keysyms := C.XGetKeyboardMapping( + p.display, + C.KeyCode(minKeycodes), + maxKeycodes-minKeycodes+1, + &keysymsPerKeycodeC, + ) if keysyms == nil { return 0, 0, errors.New("failed to get keyboard mapping") } defer C.XFree(unsafe.Pointer(keysyms)) + keysymsPerKeycode = int(keysymsPerKeycodeC) keycodes: - for keycode := C.KeyCode(minKeycodes); keycode <= C.KeyCode(maxKeycodes); keycode++ { - for i := 0; i < int(keysymsPerKeycode); i++ { - keysymsIndex := int(keycode- - C.KeyCode(minKeycodes))*int(keysymsPerKeycode) + i - keysym := *(*C.KeySym)(unsafe.Pointer(uintptr(unsafe.Pointer(keysyms)) + - uintptr(keysymsIndex)*unsafe.Sizeof(*keysyms))) + for keycode := int(minKeycodes); keycode <= int(maxKeycodes); keycode++ { + for i := range keysymsPerKeycode { + keysymsIndex := (keycode-int(minKeycodes))*keysymsPerKeycode + i + keysym := *(*C.KeySym)(unsafe.Pointer( + uintptr(unsafe.Pointer(keysyms)) + + uintptr(keysymsIndex)*unsafe.Sizeof(*keysyms), + )) if keysym != 0 { continue keycodes } } - return keycode, keysymsPerKeycode, nil + return C.KeyCode(keycode), keysymsPerKeycode, nil } return 0, 0, errors.New("no empty keycode found") } -func (p *x11Backend) changeKeyMappingLocked(keysymsPerKeycode C.int, - keycode C.KeyCode, keysym Keysym) { +func (p *x11Controller) changeKeyMappingLocked( + keycode C.KeyCode, keysymsPerKeycode int, keysym Keysym, +) { keycodeMapping := make([]C.KeySym, keysymsPerKeycode) for i := range keycodeMapping { keycodeMapping[i] = C.KeySym(keysym) } - C.XChangeKeyboardMapping(p.display, C.int(keycode), keysymsPerKeycode, - (*C.KeySym)(unsafe.Pointer(&keycodeMapping[0])), 1) - C.XFlush(p.display) + C.XChangeKeyboardMapping( + p.display, + C.int(keycode), + C.int(keysymsPerKeycode), + (*C.KeySym)(unsafe.Pointer(&keycodeMapping[0])), + 1, + ) + C.XSync(p.display, C.False) } -func (p *x11Backend) getModKeycodesLocked() map[uint]C.KeyCode { +func (p *x11Controller) getModKeycodesLocked() map[uint]C.KeyCode { modKeymap := C.XGetModifierMapping(p.display) defer C.XFreeModifiermap(modKeymap) modKeycodes := make(map[uint]C.KeyCode) - for _, modIndex := range modifierIndices { - for i := 0; i < int(modKeymap.max_keypermod); i++ { - keycode := *(*C.KeyCode)(unsafe.Pointer(uintptr(unsafe.Pointer(modKeymap.modifiermap)) + - uintptr(uint(modIndex)*uint(modKeymap.max_keypermod)+uint(i)))) + for _, modIndex := range modifierIndexes { + for i := range int(modKeymap.max_keypermod) { + keycodeIndex := modIndex*int(modKeymap.max_keypermod) + i + keycode := *(*C.KeyCode)(unsafe.Pointer( + uintptr(unsafe.Pointer(modKeymap.modifiermap)) + + uintptr(keycodeIndex)*unsafe.Sizeof(*modKeymap.modifiermap), + )) if keycode != 0 { - modKeycodes[1< + * + * This file is part of Remote-Touchpad. + * + * Remote-Touchpad is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Remote-Touchpad is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Remote-Touchpad. If not, see . + */ + +package inputcontrol + +import ( + "fmt" + "os/exec" + "strings" + "unsafe" +) + +const bkeymapFileSignature = "bkeymap" + +// uapi/linux/keyboard.h +const ( + nrKeys = 128 + maxNrKeymaps = 256 + nrShift = 9 + + ktLatin = 0 + ktShift = 7 + ktLetter = 11 +) + +type KeyCombo struct { + Key int + ShiftKeys [nrShift]int +} + +type Keymap struct { + keyComboMap map[rune]KeyCombo +} + +func (keymap Keymap) Get(character rune) (keyCombo KeyCombo, found bool) { + keyCombo, found = keymap.keyComboMap[character] + return +} + +func LoadKeymap(name string) (*Keymap, error) { + if len(name) == 0 || strings.HasPrefix(name, "-") { + return nil, fmt.Errorf("invalid keymap name: %#v", name) + } + bkeymap, err := exec.Command("loadkeys", "--bkeymap", name).Output() + if err != nil { + return nil, &UnsupportedPlatformError{err} + } + if !strings.HasPrefix(string(bkeymap), bkeymapFileSignature) { + return nil, fmt.Errorf("invalid bkeymap: signature not found") + } + bkeymapHeader := bkeymap[len(bkeymapFileSignature):] + var keymaps [][nrKeys]int + if len(bkeymapHeader) < maxNrKeymaps { + return nil, fmt.Errorf("invalid bkeymap: EOF") + } + currentBkeymap := bkeymapHeader[maxNrKeymaps:] + for keymapIndex := 0; keymapIndex < maxNrKeymaps; keymapIndex += 1 { + if bkeymapHeader[keymapIndex] == 0 { + continue + } + if len(currentBkeymap) < nrKeys*2 { + return nil, fmt.Errorf("invalid bkeymap: EOF") + } + for len(keymaps) <= keymapIndex { + keymaps = append(keymaps, [nrKeys]int{}) + } + for key := 0; key < nrKeys; key += 1 { + var keysym uint16 + copy(unsafe.Slice((*byte)(unsafe.Pointer(&keysym)), 2), + currentBkeymap[key*2:]) + keymaps[keymapIndex][key] = int(keysym) + } + currentBkeymap = currentBkeymap[nrKeys*2:] + } + keymap := Keymap{keyComboMap: make(map[rune]KeyCombo)} + if len(keymaps) == 0 { + return &keymap, nil + } + var shiftKeys [nrShift]int + for key, keysym := range keymaps[0] { + keyType := keysym >> 8 + keyValue := keysym & 0xff + if keyType == ktShift && keyValue < nrShift && shiftKeys[keyValue] == 0 { + shiftKeys[keyValue] = key + } + } +keymapLoop: + for keymapIndex := range keymaps { + var activeShiftKeys [nrShift]int + for i, shiftKey := range shiftKeys { + if keymapIndex&(1<> 8 + keyValue := keysym & 0xff + if (keyType != ktLatin && keyType != ktLetter) || keyValue == 0 { + continue + } + character := rune(keyValue) + if _, ok := keymap.keyComboMap[character]; ok { + continue + } + keymap.keyComboMap[character] = KeyCombo{key, activeShiftKeys} + } + } + return &keymap, nil +} diff --git a/keysyms.generated.go b/inputcontrol/keysyms.generated.go similarity index 98% rename from keysyms.generated.go rename to inputcontrol/keysyms.generated.go index 1e36558..8734718 100644 --- a/keysyms.generated.go +++ b/inputcontrol/keysyms.generated.go @@ -1,7 +1,7 @@ // Code generated by keysyms.generator.go. DO NOT EDIT. -// +build portal x11 +//go:build portal || x11 -package main +package inputcontrol var keysymsMap = map[rune]Keysym{ 0x0008: 0x0000ff08, diff --git a/keysyms.generator.go b/inputcontrol/keysyms.generator.go similarity index 97% rename from keysyms.generator.go rename to inputcontrol/keysyms.generator.go index 182e5ed..cc18417 100644 --- a/keysyms.generator.go +++ b/inputcontrol/keysyms.generator.go @@ -1,4 +1,4 @@ -// +build ignore +//go:build ignore /* * Copyright (c) 2018 Unrud @@ -102,8 +102,8 @@ func main() { keysymsMap[unicode] = keysym } content := "// Code generated by keysyms.generator.go. DO NOT EDIT.\n" + - "// +build portal x11\n\n" + - "package main\n\n" + + "//go:build portal || x11\n\n" + + "package inputcontrol\n\n" + "var keysymsMap = map[rune]Keysym{\n" keys := make([]rune, 0) for key := range keysymsMap { diff --git a/keysyms.go b/inputcontrol/keysyms.go similarity index 76% rename from keysyms.go rename to inputcontrol/keysyms.go index ae9b59d..de183a1 100644 --- a/keysyms.go +++ b/inputcontrol/keysyms.go @@ -1,4 +1,4 @@ -// +build portal x11 +//go:build portal || x11 /* * Copyright (c) 2018 Unrud @@ -19,11 +19,11 @@ * along with Remote-Touchpad. If not, see . */ -package main +package inputcontrol //go:generate go run keysyms.generator.go -import "errors" +import "fmt" type Keysym int32 @@ -57,8 +57,8 @@ func RuneToKeysym(runeValue rune) (Keysym, error) { keysym, found := keysymsMap[runeValue] if !found { if runeValue < 0x100 || runeValue > 0x10ffff { - return 0, errors.New("rune not mappend to keysym and " + - "out of range for direct unicode mapping") + return 0, fmt.Errorf("rune not mappend to keysym and "+ + "out of range for direct unicode mapping: %q", runeValue) } keysym = Keysym(0x01000000 + runeValue) } @@ -66,59 +66,44 @@ func RuneToKeysym(runeValue rune) (Keysym, error) { } func KeyToKeysym(key Key) (Keysym, error) { - if key == KeyBackSpace { + switch key { + case KeyBackSpace: return xkBackSpace, nil - } - if key == KeyReturn { + case KeyReturn: return xkReturn, nil - } - if key == KeyDelete { + case KeyDelete: return xkDelete, nil - } - if key == KeyHome { + case KeyHome: return xkHome, nil - } - if key == KeyLeft { + case KeyLeft: return xkLeft, nil - } - if key == KeyUp { + case KeyUp: return xkUp, nil - } - if key == KeyRight { + case KeyRight: return xkRight, nil - } - if key == KeyDown { + case KeyDown: return xkDown, nil - } - if key == KeyEnd { + case KeyEnd: return xkEnd, nil - } - if key == KeySuper { + case KeySuper: return xkSuperL, nil - } - if key == KeyVolumeMute { + case KeyVolumeMute: return xf86xkAudioMute, nil - } - if key == KeyVolumeDown { + case KeyVolumeDown: return xf86xkAudioLowerVolume, nil - } - if key == KeyVolumeUp { + case KeyVolumeUp: return xf86xkAudioRaiseVolume, nil - } - if key == KeyMediaPlayPause { + case KeyMediaPlayPause: return xf86xkAudioPlay, nil - } - if key == KeyMediaPrevTrack { + case KeyMediaPrevTrack: return xf86xkAudioPrev, nil - } - if key == KeyMediaNextTrack { + case KeyMediaNextTrack: return xf86xkAudioNext, nil - } - if key == KeyBrowserBack { + case KeyBrowserBack: return xf86xkBack, nil - } - if key == KeyBrowserForward { + case KeyBrowserForward: return xf86xkForward, nil + default: + return 0, fmt.Errorf("key not mapped to keysym: %#v", key) } - return 0, errors.New("key not mapped to keysym") } diff --git a/main.go b/main.go index a09f493..f8db693 100644 --- a/main.go +++ b/main.go @@ -27,7 +27,6 @@ import ( "errors" "flag" "fmt" - "golang.org/x/net/websocket" "log" mathrand "math/rand" "net" @@ -37,6 +36,10 @@ import ( "strings" "time" "unicode/utf8" + + "github.com/unrud/remote-touchpad/inputcontrol" + "github.com/unrud/remote-touchpad/terminal" + "golang.org/x/net/websocket" ) const ( @@ -45,26 +48,31 @@ const ( authenticationRateBurst int = 10 challengeLength int = 8 defaultBind string = ":0" - version string = "1.1.0" - pretty_app_name string = "Remote Touchpad" + version string = "1.5.4" + prettyAppName string = "Remote Touchpad" ) -func processCommand(backend Backend, command string) error { +type config struct { + UpdateRate uint `json:"updateRate"` + ScrollSpeed float64 `json:"scrollSpeed"` + MoveSpeed float64 `json:"moveSpeed"` + MouseScrollSpeed float64 `json:"mouseScrollSpeed"` + MouseMoveSpeed float64 `json:"mouseMoveSpeed"` +} + +func processCommand(controller inputcontrol.Controller, command string) error { if len(command) == 0 { return errors.New("empty command") } - if command == "sf" { - return backend.PointerScrollFinish() + if command == "S" { + return controller.PointerScroll(0, 0, true) } if command[0] == 't' { text := command[1:] - // normalize line endings - text = strings.Replace(text, "\r\n", "\n", -1) - text = strings.Replace(text, "\r", "\n", -1) if !utf8.ValidString(text) { return errors.New("invalid utf-8") } - return backend.KeyboardText(text) + return controller.KeyboardText(text) } arguments := strings.Split(command[1:], ";") if command[0] == 'k' && len(arguments) != 1 || @@ -76,30 +84,33 @@ func processCommand(backend Backend, command string) error { return err } if command[0] == 'k' { - if x < 0 || x >= int64(KeyLimit) { + if x < 0 || x >= int64(inputcontrol.KeyLimit) { return errors.New("unsupported key") } - return backend.KeyboardKey(Key(x)) + return controller.KeyboardKey(inputcontrol.Key(x)) } y, err := strconv.ParseInt(arguments[1], 10, 32) if err != nil { return err } if command[0] == 'm' { - return backend.PointerMove(int(x), int(y)) + return controller.PointerMove(int(x), int(y)) } if command[0] == 's' { - return backend.PointerScroll(int(x), int(y)) + return controller.PointerScroll(int(x), int(y), false) + } + if command[0] == 'S' { + return controller.PointerScroll(int(x), int(y), true) } if command[0] == 'b' { - if x < 0 || x >= int64(PointerButtonLimit) { + if x < 0 || x >= int64(inputcontrol.PointerButtonLimit) { return errors.New("unsupported pointer button") } b := true if y == 0 { b = false } - return backend.PointerButton(PointerButton(x), b) + return controller.PointerButton(inputcontrol.PointerButton(x), b) } return errors.New("unsupported command") } @@ -140,14 +151,20 @@ func secureRandBase64(length int) string { } func main() { - TerminalSetTitle(pretty_app_name) + terminal.SetTitle(prettyAppName) var bind, certFile, keyFile, secret string var showVersion bool + var config config flag.BoolVar(&showVersion, "version", false, "show program's version number and exit") flag.StringVar(&bind, "bind", defaultBind, "bind server to [HOSTNAME]:PORT") flag.StringVar(&secret, "secret", "", "shared secret for client authentication") flag.StringVar(&certFile, "cert", "", "file containing TLS certificate") flag.StringVar(&keyFile, "key", "", "file containing TLS private key") + flag.UintVar(&config.UpdateRate, "update-rate", 30, "number of updates per second") + flag.Float64Var(&config.MoveSpeed, "move-speed", 1, "move speed multiplier") + flag.Float64Var(&config.ScrollSpeed, "scroll-speed", 1, "scroll speed multiplier") + flag.Float64Var(&config.MouseMoveSpeed, "mouse-move-speed", 1, "mouse move speed multiplier") + flag.Float64Var(&config.MouseScrollSpeed, "mouse-scroll-speed", 1, "mouse scroll speed multiplier") flag.Parse() if showVersion { fmt.Println(version) @@ -163,25 +180,32 @@ func main() { if secret == "" { secret = secureRandBase64(defaultSecretLength) } - var backend Backend - var backendName string - platformErrors := "" - for _, backendInfo := range Backends { - backendName = backendInfo.Name + if len(inputcontrol.Controllers) == 0 { + log.Fatal("compiled without controller") + } + var controller inputcontrol.Controller + var controllerName string + var platformErrs []error + for _, controllerInfo := range inputcontrol.Controllers { + controllerName = controllerInfo.Name var err error - backend, err = backendInfo.Init() + controller, err = controllerInfo.Init() if err == nil { break - } else if _, ok := err.(UnsupportedPlatformError); ok { - platformErrors += fmt.Sprintf("%s backend: %v\n", backendName, err) } else { - log.Fatalf("%s backend: %v", backendName, err) + var unsupportedErr *inputcontrol.UnsupportedPlatformError + wrappedErr := fmt.Errorf("%v controller: %w", controllerName, err) + if errors.As(err, &unsupportedErr) { + platformErrs = append(platformErrs, wrappedErr) + } else { + log.Fatal(wrappedErr) + } } } - if backend == nil { - log.Fatal("unsupported platform:\n" + platformErrors) + if controller == nil { + log.Fatal(fmt.Errorf("unsupported platform:\n%w", errors.Join(platformErrs...))) } - defer backend.Close() + defer controller.Close() authenticationChallenges := make(chan challenge, authenticationRateBurst) go authenticationChallengeGenerator(secret, authenticationChallenges) listener, err := net.Listen("tcp", bind) @@ -201,11 +225,11 @@ func main() { } } if host == "" { - host = FindDefaultHost() + host = findDefaultHost() } port := addr.Port mux := http.NewServeMux() - mux.Handle("/", http.FileServer(assetFS())) + mux.Handle("/", http.FileServer(http.FS(webdataFS))) mux.Handle("/ws", websocket.Handler(func(ws *websocket.Conn) { var message string challenge := <-authenticationChallenges @@ -216,12 +240,13 @@ func main() { if !challenge.verify(message) { return } + websocket.JSON.Send(ws, config) for { if err := websocket.Message.Receive(ws, &message); err != nil { return } - if err := processCommand(backend, message); err != nil { - log.Printf("%s backend: %v", backendName, err) + if err := processCommand(controller, message); err != nil { + log.Print(fmt.Errorf("%s controller: %w", controllerName, err)) return } } @@ -236,7 +261,7 @@ func main() { } url := fmt.Sprintf("%s://%s/#%s", scheme, domain, secret) fmt.Println(url) - if qrCode, err := GenerateQRCode(url, TerminalSupportsColor(os.Stdout.Fd())); err == nil { + if qrCode, err := terminal.GenerateQRCode(url, terminal.SupportsColor(os.Stdout.Fd())); err == nil { fmt.Print(qrCode) } else { log.Printf("QR code error: %v", err) diff --git a/remote-touchpad.service b/remote-touchpad.service new file mode 100644 index 0000000..76f5a74 --- /dev/null +++ b/remote-touchpad.service @@ -0,0 +1,12 @@ +[Unit] +Description=Remote Touchpad Service +After=network.target + +[Service] +Type=simple +ExecStart=%h/.local/bin/remote-touchpad +Restart=always +RestartSec=5s + +[Install] +WantedBy=default.target \ No newline at end of file diff --git a/rts b/rts new file mode 100755 index 0000000..84fbe46 --- /dev/null +++ b/rts @@ -0,0 +1,149 @@ +#!/bin/bash + +# Remote Touchpad CLI Wrapper +# Provides easy access to remote-touchpad service + +SERVICE_NAME="remote-touchpad" +SERVICE_USER="$USER" + +install() { + echo "Installing remote-touchpad as a user systemd service..." + + # Check if Go is installed + if ! command -v go &> /dev/null; then + echo "Error: Go is not installed. Please install Go first." + return 1 + fi + + echo "Building remote-touchpad binary..." + go build -tags portal,uinput,x11 -o remote-touchpad + + if [ ! -f "remote-touchpad" ]; then + echo "Error: Failed to build remote-touchpad binary" + return 1 + fi + + # Setup directories + mkdir -p ~/.local/bin ~/.config/systemd/user + + echo "Installing service files..." + cp remote-touchpad ~/.local/bin/ || echo "Error: cp to ~/.local/bin failed" + cp remote-touchpad.service ~/.config/systemd/user/ || echo "Error: cp to ~/.config/systemd/user failed" + + echo "Enabling and starting service..." + systemctl --user daemon-reload + systemctl --user enable --now ${SERVICE_NAME}.service + + echo "✓ remote-touchpad user service installed and started" + echo "" + echo "Use './rts status' to check the service" + echo "Use './rts url' to get the connection URL" +} + +start() { + systemctl --user start ${SERVICE_NAME}.service + echo "Started remote-touchpad service" +} + +stop() { + systemctl --user stop ${SERVICE_NAME}.service + echo "Stopped remote-touchpad service" +} + +status() { + systemctl --user status ${SERVICE_NAME}.service --no-pager +} + +restart() { + systemctl --user restart ${SERVICE_NAME}.service + echo "Restarted remote-touchpad service" +} + +url() { + # Extract URL from service logs + echo "Fetching remote-touchpad URL..." + local url=$(journalctl --user -u ${SERVICE_NAME}.service -n 100 --no-pager 2>/dev/null | grep -oE "http://[^ ]+|https://[^ ]+" | tail -1) + if [ -n "$url" ]; then + echo "Remote Touchpad URL: $url" + # Generate QR code if qrencode is available + if command -v qrencode &> /dev/null; then + echo "Generating QR code..." + echo "$url" | qrencode -t ansiutf8 + else + echo "QR code generation requires qrencode. Install it with:" + echo " sudo apt-get install qrencode # Debian/Ubuntu" + echo " sudo dnf install qrencode # Fedora" + echo " brew install qrencode # macOS" + fi + else + echo "Could not find URL in service logs. Is the service running?" + fi +} + +log() { + echo "Viewing remote-touchpad service logs..." + journalctl --user -u ${SERVICE_NAME}.service --no-pager +} + +uninstall() { + echo "Uninstalling remote-touchpad..." + systemctl --user stop ${SERVICE_NAME}.service + systemctl --user disable ${SERVICE_NAME}.service + rm -f ~/.config/systemd/user/${SERVICE_NAME}.service + rm -f ~/.local/bin/remote-touchpad + systemctl --user daemon-reload + echo "✓ remote-touchpad uninstalled" +} + +help() { + echo "Remote Touchpad CLI Wrapper" + echo "" + echo "Usage: rts [command]" + echo "" + echo "Commands:" + echo " install - Install remote-touchpad as a systemd user service" + echo " start - Start the remote-touchpad service" + echo " stop - Stop the remote-touchpad service" + echo " status - Check service status" + echo " restart - Restart the service" + echo " url - Show the remote-touchpad URL" + echo " log - View service logs" + echo " uninstall - Uninstall the service" + echo " help - Show this help message" +} + +# Main command handler +case "$1" in + install) + install + ;; + start) + start + ;; + stop) + stop + ;; + status) + status + ;; + restart) + restart + ;; + url) + url + ;; + log) + log + ;; + uninstall) + uninstall + ;; + help|--help|-h|"") + help + ;; + *) + echo "Unknown command: $1" + help + exit 1 + ;; +esac diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index f32c543..6d23326 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,17 +1,21 @@ -# Build by running "snapcraft". +# Build by running `snapcraft`. # WARNING: # Snapcraft uses caching for already build steps but it's buggy and can cause strange problems. -# Clean the cache by running "snapcraft clean". +# Clean the cache by running `snapcraft clean`. name: remote-touchpad license: GPL-3.0+ grade: stable adopt-info: remote-touchpad -base: core18 +base: core24 confinement: strict +platforms: + amd64: + arm64: + apps: remote-touchpad: command: bin/remote-touchpad @@ -20,13 +24,13 @@ apps: - desktop - x11 remote-touchpad-wait-on-error: - command: usr/bin/remote-touchpad-wait-on-error + command: bin/remote-touchpad-wait-on-error plugs: - network-bind - desktop - x11 common-id: com.github.unrud.RemoteTouchpad - desktop: share/applications/com.github.unrud.RemoteTouchpad.desktop + desktop: usr/share/applications/com.github.unrud.RemoteTouchpad.desktop parts: remote-touchpad: @@ -36,18 +40,22 @@ parts: - x11 source: . source-type: git + build-snaps: + - go build-packages: - gcc - libc6-dev - libxt-dev + - libxrandr-dev - libxtst-dev stage-packages: - libxt6 + - libxrandr2 - libxtst6 override-build: | - snapcraftctl build - install -Dm0755 -t "${SNAPCRAFT_PART_INSTALL}/usr/bin" desktop/remote-touchpad-wait-on-error - install -Dm0644 -t "${SNAPCRAFT_PART_INSTALL}/usr/share/metainfo" desktop/com.github.unrud.RemoteTouchpad.metainfo.xml - install -Dm0644 -t "${SNAPCRAFT_PART_INSTALL}/usr/share/applications" desktop/com.github.unrud.RemoteTouchpad.desktop - install -Dm0644 -t "${SNAPCRAFT_PART_INSTALL}/usr/share/icons/hicolor/scalable/apps" desktop/com.github.unrud.RemoteTouchpad.svg + craftctl default + install -Dm0755 -t "${CRAFT_PART_INSTALL}/bin" desktop/remote-touchpad-wait-on-error + install -Dm0644 -t "${CRAFT_PART_INSTALL}/usr/share/metainfo" desktop/com.github.unrud.RemoteTouchpad.metainfo.xml + install -Dm0644 -t "${CRAFT_PART_INSTALL}/usr/share/applications" desktop/com.github.unrud.RemoteTouchpad.desktop + install -Dm0644 -t "${CRAFT_PART_INSTALL}/usr/share/icons/hicolor/scalable/apps" desktop/com.github.unrud.RemoteTouchpad.svg parse-info: [usr/share/metainfo/com.github.unrud.RemoteTouchpad.metainfo.xml] diff --git a/qr.go b/terminal/qr.go similarity index 92% rename from qr.go rename to terminal/qr.go index eb2832a..105aee7 100644 --- a/qr.go +++ b/terminal/qr.go @@ -17,7 +17,7 @@ * along with Remote-Touchpad. If not, see . */ -package main +package terminal import qrcode "github.com/skip2/go-qrcode" @@ -33,7 +33,7 @@ func qrCodeToString(bits [][]bool, colorize bool) string { s := "" for y := -1; y < len(bits); y += 2 { if colorize { - s += TerminalForegroundBlack + TerminalBackgroundWhite + s += ForegroundBlack + BackgroundWhite } for x := range bits[0] { upper := false @@ -55,7 +55,7 @@ func qrCodeToString(bits [][]bool, colorize bool) string { } } if colorize { - s += TerminalForegroundReset + TerminalBackgroundReset + s += ForegroundReset + BackgroundReset } s += "\n" } diff --git a/terminal.go b/terminal/terminal.go similarity index 80% rename from terminal.go rename to terminal/terminal.go index 75de079..8050fc6 100644 --- a/terminal.go +++ b/terminal/terminal.go @@ -17,11 +17,11 @@ * along with Remote-Touchpad. If not, see . */ -package main +package terminal const ( - TerminalForegroundBlack string = "\033[30m" - TerminalForegroundReset string = "\033[39m" - TerminalBackgroundWhite string = "\033[47m" - TerminalBackgroundReset string = "\033[49m" + ForegroundBlack string = "\033[30m" + ForegroundReset string = "\033[39m" + BackgroundWhite string = "\033[47m" + BackgroundReset string = "\033[49m" ) diff --git a/terminal_posix.go b/terminal/terminal_posix.go similarity index 89% rename from terminal_posix.go rename to terminal/terminal_posix.go index e79ea61..9d80e70 100644 --- a/terminal_posix.go +++ b/terminal/terminal_posix.go @@ -1,4 +1,4 @@ -// +build !windows +//go:build !windows /* * Copyright (c) 2018-2019 Unrud @@ -19,17 +19,17 @@ * along with Remote-Touchpad. If not, see . */ -package main +package terminal // #include import "C" import "os" -func TerminalSupportsColor(fd uintptr) bool { +func SupportsColor(fd uintptr) bool { return C.isatty(C.int(fd)) != 0 } -func TerminalSetTitle(title string) bool { +func SetTitle(title string) bool { if C.isatty(C.int(os.Stdout.Fd())) != 0 { os.Stdout.Write([]byte("\x1b]2;" + title + "\x07")) os.Stdout.Sync() diff --git a/terminal_windows.go b/terminal/terminal_windows.go similarity index 93% rename from terminal_windows.go rename to terminal/terminal_windows.go index 5637a7d..b28c084 100644 --- a/terminal_windows.go +++ b/terminal/terminal_windows.go @@ -17,7 +17,7 @@ * along with Remote-Touchpad. If not, see . */ -package main +package terminal import ( "syscall" @@ -36,13 +36,13 @@ var ( setConsoleTitleProc = kernel32DLL.NewProc("SetConsoleTitleW") ) -func TerminalSupportsColor(fd uintptr) bool { +func SupportsColor(fd uintptr) bool { r, _, _ := setConsoleModeProc.Call(fd, uintptr(enableProcessedOuput| enableWrapAtEolOutput|enableVirtualTerminalProcessing)) return r != 0 } -func TerminalSetTitle(title string) bool { +func SetTitle(title string) bool { r, _, _ := setConsoleTitleProc.Call( uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(title)))) return r != 0 diff --git a/backend_portal_disabled.go b/webdata.go similarity index 55% rename from backend_portal_disabled.go rename to webdata.go index 05ca72f..1b816b6 100644 --- a/backend_portal_disabled.go +++ b/webdata.go @@ -1,7 +1,5 @@ -// +build !portal - /* - * Copyright (c) 2018 Unrud + * Copyright (c) 2024 Unrud * * This file is part of Remote-Touchpad. * @@ -21,8 +19,34 @@ package main -import "errors" +import ( + "embed" + "io/fs" + "log" + "mime" +) -func InitPortalBackend() (Backend, error) { - return nil, UnsupportedPlatformError{errors.New("disabled")} +//go:embed webdata/* +var webdataFSWithPrefix embed.FS +var webdataFS fs.FS + +var webdataTypes = map[string]string{ + ".css": "text/css; charset=utf-8", + ".html": "text/html; charset=utf-8", + ".mjs": "text/javascript; charset=utf-8", + ".png": "image/png", + ".woff": "font/woff", +} + +func init() { + var err error + webdataFS, err = fs.Sub(webdataFSWithPrefix, "webdata") + if err != nil { + log.Fatal(err) + } + for ext, typ := range webdataTypes { + if err := mime.AddExtensionType(ext, typ); err != nil { + log.Fatal(err) + } + } } diff --git a/webdata/app/compat.mjs b/webdata/app/compat.mjs new file mode 100644 index 0000000..8a26833 --- /dev/null +++ b/webdata/app/compat.mjs @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2018-2019, 2023 Unrud + * + * This file is part of Remote-Touchpad. + * + * Remote-Touchpad is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Remote-Touchpad is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Remote-Touchpad. If not, see . + */ + +export const fullscreenEnabled = () => { + return (document.fullscreenEnabled || + document.webkitFullscreenEnabled || + false); +}; + +export const requestFullscreen = (element, options) => { + if (element.requestFullscreen) { + element.requestFullscreen(options); + } else if (element.webkitRequestFullscreen) { + element.webkitRequestFullscreen(options); + } +}; + +export const exitFullscreen = () => { + if (document.exitFullscreen) { + document.exitFullscreen(); + } else if (document.webkitExitFullscreen) { + document.webkitExitFullscreen(); + } +}; + +export const fullscreenElement = () => { + return (document.fullscreenElement || + document.webkitFullscreenElement || + null); +}; + +export const addFullscreenchangeEventListener = (listener) => { + if ("onfullscreenchange" in document) { + document.addEventListener("fullscreenchange", listener); + } else if ("onwebkitfullscreenchange" in document) { + document.addEventListener("webkitfullscreenchange", listener); + } +}; + +export const requestPointerLock = (element) => { + if (element.requestPointerLock) { + element.requestPointerLock(); + } +}; + +export const exitPointerLock = () => { + if (document.exitPointerLock) { + document.exitPointerLock(); + } +}; + +export const pointerLockElement = () => { + return document.pointerLockElement || null; +}; + +export const addPointerlockchangeEventListener = (listener) => { + if ("onpointerlockchange" in document) { + document.addEventListener("pointerlockchange", listener); + } +}; + +export const vibrate = (pattern) => { + if (navigator.vibrate) { + navigator.vibrate(pattern); + } +}; diff --git a/webdata/app/inputcontroller.mjs b/webdata/app/inputcontroller.mjs new file mode 100644 index 0000000..a2984fb --- /dev/null +++ b/webdata/app/inputcontroller.mjs @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2018-2019, 2023 Unrud + * + * This file is part of Remote-Touchpad. + * + * Remote-Touchpad is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Remote-Touchpad is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Remote-Touchpad. If not, see . + */ + +export const POINTER_BUTTON_LEFT = 0; +export const POINTER_BUTTON_RIGHT = 1; +export const POINTER_BUTTON_MIDDLE = 2; + +export const KEY_VOLUME_MUTE = 0; +export const KEY_VOLUME_DOWN = 1; +export const KEY_VOLUME_UP = 2; +export const KEY_MEDIA_PLAY_PAUSE = 3; +export const KEY_MEDIA_PREV_TRACK = 4; +export const KEY_MEDIA_NEXT_TRACK = 5; +export const KEY_BROWSER_BACK = 6; +export const KEY_BROWSER_FORWARD = 7; +export const KEY_SUPER = 8; +export const KEY_LEFT = 9; +export const KEY_RIGHT = 10; +export const KEY_UP = 11; +export const KEY_DOWN = 12; +export const KEY_HOME = 13; +export const KEY_END = 14; +export const KEY_BACK_SPACE = 15; +export const KEY_DELETE = 16; +export const KEY_RETURN = 17; + +export default class InputController { + #updateRate = 0; + + #moveXSum = 0; + #moveYSum = 0; + #scrollHSum = 0; + #scrollVSum = 0; + #scrolling = false; + #scrollFinish = false; + #updateTimeoutActive = false; + #socket; + + constructor(socket) { + this.#socket = socket; + } + + configure(config) { + this.#updateRate = config.updateRate; + } + + #startUpdate(fromTimeout) { + if (this.#updateTimeoutActive && !fromTimeout) { + return; + } + this.#updateTimeoutActive = false; + let finished = true; + const xInt = Math.trunc(this.#moveXSum); + const yInt = Math.trunc(this.#moveYSum); + if (xInt != 0 || yInt != 0) { + this.#socket.send("m" + xInt + ";" + yInt); + this.#moveXSum -= xInt; + this.#moveYSum -= yInt; + finished = false; + } + const hInt = Math.trunc(this.#scrollHSum); + const vInt = Math.trunc(this.#scrollVSum); + if (hInt != 0 || vInt != 0) { + this.#socket.send((this.#scrollFinish ? "S" : "s") + hInt + ";" + vInt); + this.#scrollHSum -= hInt; + this.#scrollVSum -= vInt; + this.#scrolling = !this.#scrollFinish; + this.#scrollFinish = false; + finished = false; + } else if (this.#scrollFinish && this.#scrolling) { + this.#socket.send("S"); + this.#scrolling = false; + this.#scrollFinish = false; + } + this.#updateTimeoutActive = !finished && this.#updateRate > 0; + if (this.#updateTimeoutActive) { + setTimeout(this.#startUpdate.bind(this), 1000 / this.#updateRate, true); + } + } + + pointerMove(deltaX, deltaY) { + this.#moveXSum += deltaX; + this.#moveYSum += deltaY; + this.#startUpdate(); + } + + pointerScroll(deltaHorizontal, deltaVertical, finish) { + this.#scrollHSum += deltaHorizontal; + this.#scrollVSum += deltaVertical; + this.#scrollFinish |= finish; + this.#startUpdate(); + }; + + pointerButton(button, press) { + this.#socket.send("b" + button + ";" + (press ? 1 : 0)); + } + + keyboardKey(key) { + this.#socket.send("k" + key); + } + + keyboardText(text) { + this.#socket.send("t" + text); + } +} diff --git a/webdata/app/keyboard.mjs b/webdata/app/keyboard.mjs new file mode 100644 index 0000000..84195d9 --- /dev/null +++ b/webdata/app/keyboard.mjs @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2018-2019, 2023 Unrud + * + * This file is part of Remote-Touchpad. + * + * Remote-Touchpad is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Remote-Touchpad is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Remote-Touchpad. If not, see . + */ + +import { + KEY_SUPER, KEY_BACK_SPACE, KEY_RETURN, KEY_DELETE, KEY_HOME, KEY_END, + KEY_LEFT, KEY_RIGHT, KEY_UP, KEY_DOWN, +} from "./inputcontroller.mjs"; + +export default class Keyboard { + #inputController; + #checkAllowedCallback; + + constructor(inputController, checkAllowedCallback) { + this.#inputController = inputController; + this.#checkAllowedCallback = checkAllowedCallback; + document.addEventListener("keydown", this.#handleKeydown.bind(this)); + } + + configure() {} + + #handleKeydown(event) { + if (!this.#checkAllowedCallback() || + event.ctrlKey || event.altKey || event.isComposing) { + return; + } + let key = null; + if (event.key == "OS" || event.key == "Super" || event.key == "Meta") { + key = KEY_SUPER; + } else if (event.key == "Backspace") { + key = KEY_BACK_SPACE; + } else if (event.key == "Enter") { + key = KEY_RETURN; + } else if (event.key == "Delete") { + key = KEY_DELETE; + } else if (event.key == "Home") { + key = KEY_HOME; + } else if (event.key == "End") { + key = KEY_END; + } else if (event.key == "Left" || event.key == "ArrowLeft") { + key = KEY_LEFT; + } else if (event.key == "Right" || event.key == "ArrowRight") { + key = KEY_RIGHT; + } else if (event.key == "Up" || event.key == "ArrowUp") { + key = KEY_UP; + } else if (event.key == "Down" || event.key == "ArrowDown") { + key = KEY_DOWN; + } + if (key != null) { + if (!event.shiftKey) { + event.preventDefault(); + this.#inputController.keyboardKey(key); + } + } else if (event.key.length == 1) { + event.preventDefault(); + this.#inputController.keyboardText(event.key); + } + } +} diff --git a/webdata/app/main.mjs b/webdata/app/main.mjs new file mode 100644 index 0000000..5477b89 --- /dev/null +++ b/webdata/app/main.mjs @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2018-2019, 2023 Unrud + * + * This file is part of Remote-Touchpad. + * + * Remote-Touchpad is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Remote-Touchpad is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Remote-Touchpad. If not, see . + */ + +import InputController, * as inputcontrollerModule from "./inputcontroller.mjs"; +import Socket from "./socket.mjs"; +import UI from "./ui.mjs"; + +const url = new URL("ws", location.href); +url.protocol = url.protocol == "http:" ? "ws:" : "wss:"; + +const socket = new Socket(url, window.location.hash.substr(1)); +const inputController = new InputController(socket); +const ui = new UI(inputController); + +socket.addEventListener("config", (event) => { + const config = event.detail; + inputController.configure(config); + ui.configure(config); +}); + +socket.addEventListener("close", () => { + ui.close(); +}); + +window.app = { + key: inputController.keyboardKey.bind(inputController), + text: inputController.keyboardText.bind(inputController), + toggleFullscreen: ui.toggleFullscreen.bind(ui), + showTextInput: ui.showTextInput.bind(ui), + showKeys: ui.showKeys.bind(ui), + setKeysPage: ui.setKeysPage.bind(ui), +}; +for (const name in inputcontrollerModule) { + if (name.startsWith("KEY_")) { + window.app[name] = inputcontrollerModule[name]; + } +} diff --git a/webdata/app/mouse.mjs b/webdata/app/mouse.mjs new file mode 100644 index 0000000..8158eb3 --- /dev/null +++ b/webdata/app/mouse.mjs @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2018-2019, 2023 Unrud + * + * This file is part of Remote-Touchpad. + * + * Remote-Touchpad is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Remote-Touchpad is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Remote-Touchpad. If not, see . + */ + +export default class Mouse { + #moveSpeed = 1; + #scrollSpeed = 1; + + #buttons = 0; + #inputController; + + constructor (inputController, element) { + this.#inputController = inputController; + for (const type of ["touchstart", "touchend", "touchcancel", "touchmove"]) { + element.addEventListener(type, (event) => { + event.preventDefault(); + }); + } + element.addEventListener("mousedown", this.#handleMouseDownAndUp.bind(this)); + element.addEventListener("mouseup", this.#handleMouseDownAndUp.bind(this)); + element.addEventListener("mousemove", this.#handleMousemove.bind(this)); + element.addEventListener("wheel", this.#handleWheel.bind(this)); + } + + configure(config) { + this.#moveSpeed = config.mouseMoveSpeed; + this.#scrollSpeed = config.mouseScrollSpeed; + } + + #updateButtons(newButtons) { + for (let button = 0; button < 3; button += 1) { + const flag = 1 << button; + if ((newButtons&flag) != (this.#buttons & flag)) { + this.#inputController.pointerButton(button, newButtons & flag); + } + } + this.#buttons = newButtons; + } + + #handleMouseDownAndUp(event) { + this.#updateButtons(event.buttons); + } + + #handleMousemove(event) { + this.#inputController.pointerMove( + event.movementX * this.#moveSpeed, event.movementY * this.#moveSpeed); + } + + #handleWheel(event) { + if (event.deltaMode == WheelEvent.DOM_DELTA_PIXEL) { + this.#inputController.pointerScroll( + event.deltaX * this.#scrollSpeed, event.deltaY * this.#scrollSpeed, true); + } else if (event.deltaMode == WheelEvent.DOM_DELTA_LINE) { + this.#inputController.pointerScroll( + event.deltaX * 20 * this.#scrollSpeed, event.deltaY * 20 * this.#scrollSpeed, + true); + } + } +} diff --git a/webdata/app/sha256.mjs b/webdata/app/sha256.mjs new file mode 100644 index 0000000..3f7cd3f --- /dev/null +++ b/webdata/app/sha256.mjs @@ -0,0 +1,9 @@ +/** + * A JavaScript implementation of the SHA family of hashes - defined in FIPS PUB 180-4, FIPS PUB 202, + * and SP 800-185 - as well as the corresponding HMAC implementation as defined in FIPS PUB 198-1. + * + * Copyright 2008-2022 Brian Turek, 1998-2009 Paul Johnston & Contributors + * Distributed under the BSD License + * See http://caligatio.github.com/jsSHA/ for more information + */ +const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function r(t,r,n,i){let e,s,o;const h=r||[0],u=(n=n||0)>>>3,f=-1===i?3:0;for(e=0;e>>2,h.length<=s&&h.push(0),h[s]|=t[e]<<8*(f+i*(o%4));return{value:h,binLen:8*t.length+n}}function n(n,i,e){switch(i){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(n){case"HEX":return function(t,r,n){return function(t,r,n,i){let e,s,o,h;if(0!=t.length%2)throw new Error("String of HEX type must be in byte increments");const u=r||[0],f=(n=n||0)>>>3,c=-1===i?3:0;for(e=0;e>>1)+f,o=h>>>2;u.length<=o;)u.push(0);u[o]|=s<<8*(c+i*(h%4))}return{value:u,binLen:4*t.length+n}}(t,r,n,e)};case"TEXT":return function(t,r,n){return function(t,r,n,i,e){let s,o,h,u,f,c,a,w,A=0;const E=n||[0],l=(i=i||0)>>>3;if("UTF8"===r)for(a=-1===e?3:0,h=0;hs?o.push(s):2048>s?(o.push(192|s>>>6),o.push(128|63&s)):55296>s||57344<=s?o.push(224|s>>>12,128|s>>>6&63,128|63&s):(h+=1,s=65536+((1023&s)<<10|1023&t.charCodeAt(h)),o.push(240|s>>>18,128|s>>>12&63,128|s>>>6&63,128|63&s)),u=0;u>>2;E.length<=f;)E.push(0);E[f]|=o[u]<<8*(a+e*(c%4)),A+=1}else for(a=-1===e?2:0,w="UTF16LE"===r&&1!==e||"UTF16LE"!==r&&1===e,h=0;h>>8),c=A+l,f=c>>>2;E.length<=f;)E.push(0);E[f]|=s<<8*(a+e*(c%4)),A+=2}return{value:E,binLen:8*A+i}}(t,i,r,n,e)};case"B64":return function(r,n,i){return function(r,n,i,e){let s,o,h,u,f,c,a,w=0;const A=n||[0],E=(i=i||0)>>>3,l=-1===e?3:0,p=r.indexOf("=");if(-1===r.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(r=r.replace(/=/g,""),-1!==p&&p event.target.classList.remove("click"), 0); + compat.vibrate(CLICK_VIBRATION_PATTERN); + } + + #handleSendText() { + if (textInput.value) { + // normalize line endings + const text = textInput.value.replace(/\r\n?/g, "\n"); + this.#inputController.keyboardText(text); + this.#updateTextInput(""); + } else { + history.back(); + } + } + + #showScene(scene) { + this.#activeScene = scene; + if (compat.fullscreenElement() && !scene.classList.contains("allow-fullscreen")) { + compat.exitFullscreen(); + } + if (compat.pointerLockElement() && this.#activeScene != mouseScene) { + compat.exitPointerLock(); + } + textInput.value = ""; + for (const otherScene of scenes) { + otherScene.classList.toggle("hidden", otherScene != scene); + } + } + + setKeysPage(index, relative = false) { + if (relative) { + for (let i = 0; i < keysPages.length && keysPages[i].classList.contains("hidden"); + i += 1, index += 1); + } + index = ((index % keysPages.length) + keysPages.length) % keysPages.length; + sessionStorage.setItem(this.#keysActiveName, index); + for (let i = 0; i < keysPages.length; i += 1) { + keysPages[i].classList.toggle("hidden", i != index); + } + } + + showKeys(name = "", defaultPageIndex = 0) { + this.#showScene(keysScene); + this.#keysActiveName = "keys" + (name ? ":" + name : ""); + let pageIndex = parseInt(sessionStorage.getItem(this.#keysActiveName)); + if (isNaN(pageIndex)) { + pageIndex = defaultPageIndex; + } + this.setKeysPage(pageIndex); + if (history.state != this.#keysActiveName) { + history.pushState(this.#keysActiveName, ""); + } + } + + showTextInput() { + this.#showScene(textInputScene); + this.#updateTextInput(sessionStorage.getItem("text-input") || ""); + if (history.state != "text-input") { + history.pushState("text-input", ""); + } + } + + toggleFullscreen() { + if (compat.fullscreenElement()) { + compat.exitFullscreen(); + } else { + compat.requestFullscreen(document.documentElement, {navigationUI: "hide"}); + } + } + + #update() { + const fullscreenEnabled = compat.fullscreenEnabled(); + for (const element of document.querySelectorAll(".visble-if-fullscreen-enabled")) { + element.classList.toggle("hidden", !fullscreenEnabled); + } + if (!this.#ready) { + this.#showScene(this.#closed ? closedScene : openingScene); + } else if (compat.pointerLockElement()) { + this.#showScene(mouseScene); + } else if ((history.state || "").split(":")[0] == "keys") { + this.showKeys(history.state.substr("keys:".length)); + } else if (history.state == "text-input") { + this.showTextInput(); + } else { + this.#showScene(padScene); + } + } +} diff --git a/webdata/fn.js b/webdata/fn.js deleted file mode 100644 index 56f9736..0000000 --- a/webdata/fn.js +++ /dev/null @@ -1,506 +0,0 @@ -"use strict"; -/* - * Copyright (c) 2018-2019 Unrud - * - * This file is part of Remote-Touchpad. - * - * Remote-Touchpad is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Remote-Touchpad is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Remote-Touchpad. If not, see . - */ - -// [1 Touch, 2 Touches, 3 Touches] (as pixel) -var TOUCH_MOVE_THRESHOLD = [10, 15, 15]; -// Max time between consecutive touches for clicking or dragging (as milliseconds) -var TOUCH_TIMEOUT = 250; -// [[pixel/second, multiplicator], ...] -var POINTER_ACCELERATION = [ - [0, 0], - [87, 1], - [173, 1], - [553, 2] -]; - -var POINTER_BUTTON_LEFT = 0; -var POINTER_BUTTON_RIGHT = 1; -var POINTER_BUTTON_MIDDLE = 2; - -var KEY_VOLUME_MUTE = 0; -var KEY_VOLUME_DOWN = 1; -var KEY_VOLUME_UP = 2; -var KEY_MEDIA_PLAY_PAUSE = 3; -var KEY_MEDIA_PREV_TRACK = 4; -var KEY_MEDIA_NEXT_TRACK = 5; -var KEY_BROWSER_BACK = 6; -var KEY_BROWSER_FORWARD = 7; -var KEY_SUPER = 8; -var KEY_LEFT = 9; -var KEY_RIGHT = 10; -var KEY_UP = 11; -var KEY_DOWN = 12; -var KEY_HOME = 13; -var KEY_END = 14; -var KEY_BACK_SPACE = 15; -var KEY_DELETE = 16; -var KEY_RETURN = 17; - -var ws; - -var touchMoved = false; -var touchStart = 0; -var touchLastEnd = 0; -var touchReleasedCount = 0; -var ongoingTouches = []; -var moveXSum = 0; -var moveYSum = 0; -var scrollXSum = 0; -var scrollYSum = 0; -var dragging = false; -var draggingTimeout = null; -var scrolling = false; - -function fullscreenEnabled() { - return (document.fullscreenEnabled || - document.webkitFullscreenEnabled || - document.mozFullScreenEnabled || - document.msFullscreenEnabled || - false); -} - -function requestFullscreen(element, options) { - if (element.requestFullscreen) { - element.requestFullscreen(options); - } else if (element.webkitRequestFullscreen) { - element.webkitRequestFullscreen(options); - } else if (element.mozRequestFullScreen) { - element.mozRequestFullScreen(options); - } else if (element.msRequestFullscreen) { - element.msRequestFullscreen(options); - } -} - -function exitFullscreen() { - if (document.exitFullscreen) { - document.exitFullscreen(); - } else if (document.webkitExitFullscreen) { - document.webkitExitFullscreen(); - } else if (document.mozCancelFullScreen) { - document.mozCancelFullScreen(); - } else if (document.msExitFullscreen) { - document.msExitFullscreen(); - } -} - -function fullscreenElement() { - return (document.fullscreenElement || - document.webkitFullscreenElement || - document.mozFullScreenElement || - document.msFullscreenElement || - null); -} - -function copyTouch(touch, timeStamp) { - return { - identifier: touch.identifier, - pageX: touch.pageX, - pageXStart: touch.pageX, - pageY: touch.pageY, - pageYStart: touch.pageY, - timeStamp: timeStamp - }; -} - -function ongoingTouchIndexById(idToFind) { - for (var i = 0; i < ongoingTouches.length; i += 1) { - if (ongoingTouches[i].identifier == idToFind) { - return i; - } - } - return -1; -} - -function calculatePointerAccelerationMult(speed) { - for (var i = 0; i < POINTER_ACCELERATION.length; i += 1) { - var s2 = POINTER_ACCELERATION[i][0]; - var a2 = POINTER_ACCELERATION[i][1]; - if (s2 <= speed) { - continue; - } - if (i == 0) { - return a2; - } - var s1 = POINTER_ACCELERATION[i - 1][0]; - var a1 = POINTER_ACCELERATION[i - 1][1]; - return ((speed - s1) / (s2 - s1)) * (a2 - a1) + a1; - } - if (POINTER_ACCELERATION.length > 0) { - return POINTER_ACCELERATION[POINTER_ACCELERATION.length - 1][1]; - } - return 1; -} - -function onDraggingTimeout() { - draggingTimeout = null; - ws.send("b" + POINTER_BUTTON_LEFT + ";0"); -} - -function updateMoveAndScroll() { - var moveX = Math.trunc(moveXSum); - var moveY = Math.trunc(moveYSum); - if (Math.abs(moveX) >= 1 || Math.abs(moveY) >= 1) { - moveXSum -= moveX; - moveYSum -= moveY; - ws.send("m" + moveX + ";" + moveY); - } - var scrollX = Math.trunc(scrollXSum); - var scrollY = Math.trunc(scrollYSum); - if (Math.abs(scrollX) >= 1 || Math.abs(scrollY) >= 1) { - scrollXSum -= scrollX; - scrollYSum -= scrollY; - scrolling = true; - ws.send("s" + scrollX + ";" + scrollY); - } -} - -function handleStart(evt) { - // Might get called multiple times for the same touches - if (ongoingTouches.length == 0) { - touchStart = evt.timeStamp; - touchMoved = false; - } - var touches = evt.changedTouches; - for (var i = 0; i < touches.length; i += 1) { - if (ongoingTouches.length == 0 && !touches[i].target.classList.contains("touchpad")) { - continue; - } - evt.preventDefault(); - var touch = copyTouch(touches[i], evt.timeStamp); - var idx = ongoingTouchIndexById(touch.identifier); - if (idx < 0) { - ongoingTouches.push(touch); - } else { - ongoingTouches[idx] = touch; - } - touchLastEnd = 0; - if (!dragging) { - moveXSum = Math.trunc(moveXSum); - moveYSum = Math.trunc(moveYSum); - } - scrollXSum = Math.trunc(scrollXSum); - scrollYSum = Math.trunc(scrollYSum); - if (draggingTimeout != null) { - clearTimeout(draggingTimeout); - draggingTimeout = null; - dragging = true; - } - if (scrolling) { - ws.send("sf"); - scrolling = false; - } - } -} - -function handleEnd(evt) { - var touches = evt.changedTouches; - for (var i = 0; i < touches.length; i += 1) { - var idx = ongoingTouchIndexById(touches[i].identifier); - if (idx < 0) { - continue; - } - ongoingTouches.splice(idx, 1); - touchReleasedCount += 1; - touchLastEnd = evt.timeStamp; - if (scrolling) { - ws.send("sf"); - scrolling = false; - } - } - if (touchReleasedCount > TOUCH_MOVE_THRESHOLD.length) { - touchMoved = true; - } - if (ongoingTouches.length == 0 && touchReleasedCount >= 1) { - if (dragging) { - dragging = false; - ws.send("b" + POINTER_BUTTON_LEFT + ";0"); - } - if (!touchMoved && evt.timeStamp - touchStart < TOUCH_TIMEOUT) { - var button = 0; - if (touchReleasedCount == 1) { - button = POINTER_BUTTON_LEFT; - } else if (touchReleasedCount == 2) { - button = POINTER_BUTTON_RIGHT; - } else if (touchReleasedCount == 3) { - button = POINTER_BUTTON_MIDDLE; - } - ws.send("b" + button + ";1"); - if (button == POINTER_BUTTON_LEFT) { - draggingTimeout = setTimeout(onDraggingTimeout, TOUCH_TIMEOUT); - } else { - ws.send("b" + button + ";0"); - } - } - touchReleasedCount = 0; - } -} - -function handleMove(evt) { - var sumX = 0; - var sumY = 0; - var touches = evt.changedTouches; - for (var i = 0; i < touches.length; i += 1) { - var idx = ongoingTouchIndexById(touches[i].identifier); - if (idx < 0) { - continue; - } - if (!touchMoved) { - var dist = Math.sqrt(Math.pow(touches[i].pageX - ongoingTouches[idx].pageXStart, 2) + - Math.pow(touches[i].pageY - ongoingTouches[idx].pageYStart, 2)); - if (ongoingTouches.length > TOUCH_MOVE_THRESHOLD.length || - dist > TOUCH_MOVE_THRESHOLD[ongoingTouches.length - 1] || - evt.timeStamp - touchStart >= TOUCH_TIMEOUT) { - touchMoved = true; - } - } - var dx = touches[i].pageX - ongoingTouches[idx].pageX; - var dy = touches[i].pageY - ongoingTouches[idx].pageY; - var timeDelta = evt.timeStamp - ongoingTouches[idx].timeStamp; - sumX += dx * calculatePointerAccelerationMult(Math.abs(dx) / timeDelta * 1000); - sumY += dy * calculatePointerAccelerationMult(Math.abs(dy) / timeDelta * 1000); - ongoingTouches[idx].pageX = touches[i].pageX; - ongoingTouches[idx].pageY = touches[i].pageY; - ongoingTouches[idx].timeStamp = evt.timeStamp; - } - if (touchMoved && evt.timeStamp - touchLastEnd >= TOUCH_TIMEOUT) { - if (ongoingTouches.length == 1 || dragging) { - moveXSum += sumX; - moveYSum += sumY; - } else if (ongoingTouches.length == 2) { - scrollXSum -= sumX; - scrollYSum -= sumY; - } - updateMoveAndScroll(); - } -} - -function handleKeydown(evt) { - if (evt.ctrlKey || evt.altKey || evt.isComposing) { - return; - } - var key = { - "OS": KEY_SUPER, - "Super": KEY_SUPER, - "Meta": KEY_SUPER, - "Backspace": KEY_BACK_SPACE, - "Enter": KEY_RETURN, - "Delete": KEY_DELETE, - "Home": KEY_HOME, - "End": KEY_END, - "Left": KEY_LEFT, - "ArrowLeft": KEY_LEFT, - "Right": KEY_RIGHT, - "ArrowRight": KEY_RIGHT, - "Up": KEY_UP, - "ArrowUp": KEY_UP, - "Down": KEY_DOWN, - "ArrowDown": KEY_DOWN - }[evt.key]; - if (key != undefined && !evt.shiftKey) { - evt.preventDefault(); - ws.send("k" + key); - } else if (evt.key.length == 1) { - evt.preventDefault(); - ws.send("t" + evt.key); - } -} - -function challengeResponse(message) { - var shaObj = new jsSHA("SHA-256", "TEXT"); - shaObj.setHMACKey(message, "TEXT"); - shaObj.update(window.location.hash.substr(1)); - return btoa(shaObj.getHMAC("BYTES")); -} - -window.addEventListener("load", function() { - var DEFAULT_KEYS_SCENE = { - "": 0, - "keyboard": 1 - }; - var authenticated = false; - var scenes = document.querySelectorAll("body > .scene"); - var opening = document.getElementById("opening"); - var closed = document.getElementById("closed"); - var pad = document.getElementById("pad"); - var keys = document.getElementById("keys"); - var keysScenes = keys.querySelectorAll(".scene"); - var keyboard = document.getElementById("keyboard"); - var fullscreenbutton = document.getElementById("fullscreenbutton"); - var keyboardtext = document.getElementById("keyboardtext"); - var activeScene; - var keysActiveName; - - function showScene(scene) { - activeScene = scene; - if (fullscreenElement() && !scene.classList.contains("fullscreen")) { - exitFullscreen(); - } - keyboardtext.value = ""; - scenes.forEach(function(otherScene) { - otherScene.classList.toggle("hidden", otherScene != scene); - }); - } - - function showKeysScene(index) { - if (!Number.isInteger(index) || index < 0 || keysScenes.length <= index) { - index = 0; - } - sessionStorage.setItem(keysActiveName, index); - for (var i = 0; i < keysScenes.length; i += 1) { - keysScenes[i].classList.toggle("hidden", i != index); - } - } - - function showKeys(name) { - showScene(keys); - keysActiveName = "keys" + (name ? ":" + name : ""); - var keysIndex = parseInt(sessionStorage.getItem(keysActiveName)); - if (isNaN(keysIndex)) { - keysIndex = DEFAULT_KEYS_SCENE[name || ""] || 0; - } - showKeysScene(keysIndex); - if (history.state != keysActiveName) { - history.pushState(keysActiveName, ""); - } - } - - function showKeyboard() { - showScene(keyboard); - keyboardtext.value = sessionStorage.getItem("keyboard") || ""; - keyboardtext.focus(); - if (history.state != "keyboard") { - history.pushState("keyboard", ""); - } - } - - keyboardtext.oninput = function() { - sessionStorage.setItem("keyboard", keyboardtext.value); - }; - - showScene(opening); - - var wsURL = new URL("ws", location.href); - wsURL.protocol = wsURL.protocol == "http:" ? "ws:" : "wss:"; - ws = new WebSocket(wsURL); - - ws.onmessage = function(evt) { - if (authenticated) { - ws.close(); - return; - } - ws.send(challengeResponse(evt.data)); - authenticated = true; - window.onpopstate(); - }; - - ws.onclose = function() { - authenticated = false; - showScene(closed); - }; - - document.getElementById("keysbutton").addEventListener("click", function() { - showKeys(); - }); - document.getElementById("keyboardbutton").addEventListener("click", function() { - showKeyboard(); - }); - if (!fullscreenEnabled()) { - fullscreenbutton.classList.add("hidden"); - } - fullscreenbutton.addEventListener("click", function() { - if (fullscreenElement()) { - exitFullscreen(); - } else { - requestFullscreen(document.documentElement, {navigationUI: "hide"}); - } - }); - document.getElementById("switchbutton").addEventListener("click", function() { - var keysIndex = 0; - for (var i = 0; i < keysScenes.length; i += 1) { - if (!keysScenes[i].classList.contains("hidden")) { - keysIndex = i; - } - } - showKeysScene(keysIndex + 1); - }); - [ - {id: "browserbackbutton", key: KEY_BROWSER_BACK}, - {id: "superbutton", key: KEY_SUPER}, - {id: "browserforwardbutton", key: KEY_BROWSER_FORWARD}, - {id: "prevtrackbutton", key: KEY_MEDIA_PREV_TRACK}, - {id: "playpausebutton", key: KEY_MEDIA_PLAY_PAUSE}, - {id: "nexttrackbutton", key: KEY_MEDIA_NEXT_TRACK}, - {id: "volumedownbutton", key: KEY_VOLUME_DOWN}, - {id: "volumemutebutton", key: KEY_VOLUME_MUTE}, - {id: "volumeupbutton", key: KEY_VOLUME_UP}, - {id: "backspacebutton", key: KEY_BACK_SPACE}, - {id: "returnbutton", key: KEY_RETURN}, - {id: "deletebutton", key: KEY_DELETE}, - {id: "homebutton", key: KEY_HOME}, - {id: "endbutton", key: KEY_END}, - {id: "leftbutton", key: KEY_LEFT}, - {id: "rightbutton", key: KEY_RIGHT}, - {id: "upbutton", key: KEY_UP}, - {id: "downbutton", key: KEY_DOWN} - ].forEach(function(o) { - document.getElementById(o.id).addEventListener("click", function() { - ws.send("k" + o.key); - }); - }); - document.getElementById("keyboardkeysbutton").addEventListener("click", function() { - showKeys("keyboard"); - }); - document.getElementById("sendbutton").addEventListener("click", function() { - if (keyboardtext.value) { - ws.send("t" + keyboardtext.value); - keyboardtext.value = ""; - keyboardtext.oninput(); - } - history.back(); - }); - window.onpopstate = function() { - if (authenticated) { - if ((history.state || "").split(":")[0] == "keys") { - showKeys(history.state.substr("keys:".length)); - } else if (history.state == "keyboard") { - showKeyboard(); - } else { - showScene(pad); - } - } - }; - document.getElementById("reloadbutton").addEventListener("click", function() { - location.reload(); - }); - document.querySelectorAll(".backbutton").forEach(function(button) { - button.addEventListener("click", function() { - history.back(); - }); - }); - document.addEventListener("touchstart", handleStart); - document.addEventListener("touchend", handleEnd); - document.addEventListener("touchcancel", handleEnd); - document.addEventListener("touchmove", handleMove); - window.addEventListener("keydown", function(evt) { - if (activeScene && activeScene.classList.contains("key")) { - handleKeydown(evt); - } - }); -}); diff --git a/webdata/index.html b/webdata/index.html index 605906a..52fb46f 100644 --- a/webdata/index.html +++ b/webdata/index.html @@ -1,10 +1,8 @@ - - - - + + Remote Touchpad @@ -13,58 +11,90 @@

    Connecting…

    -